diff --git a/.changeset/angry-actors-film.md b/.changeset/angry-actors-film.md new file mode 100644 index 000000000..b3eb3acbd --- /dev/null +++ b/.changeset/angry-actors-film.md @@ -0,0 +1,5 @@ +--- +"@hopper-ui/components": patch +--- + +Update links to documentation in the JSDoc diff --git a/packages/components/src/Accordion/src/Accordion.tsx b/packages/components/src/Accordion/src/Accordion.tsx index 85dfbe852..b519d492c 100644 --- a/packages/components/src/Accordion/src/Accordion.tsx +++ b/packages/components/src/Accordion/src/Accordion.tsx @@ -86,7 +86,7 @@ function Accordion(props:AccordionProps, ref: ForwardedRef) { /** * An accordion is a container for multiple disclosures. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Accordion) */ const _Accordion = forwardRef(Accordion); _Accordion.displayName = "Accordion"; diff --git a/packages/components/src/Avatar/src/AnonymousAvatar.tsx b/packages/components/src/Avatar/src/AnonymousAvatar.tsx index 4b0da458c..37eae9b42 100644 --- a/packages/components/src/Avatar/src/AnonymousAvatar.tsx +++ b/packages/components/src/Avatar/src/AnonymousAvatar.tsx @@ -80,7 +80,7 @@ function AnonymousAvatar(props: AnonymousAvatarProps, ref: ForwardedRef(AnonymousAvatar); _AnonymousAvatar.displayName = "AnonymousAvatar"; diff --git a/packages/components/src/Avatar/src/Avatar.tsx b/packages/components/src/Avatar/src/Avatar.tsx index 08e19da8b..3c4404377 100644 --- a/packages/components/src/Avatar/src/Avatar.tsx +++ b/packages/components/src/Avatar/src/Avatar.tsx @@ -233,7 +233,7 @@ function Avatar(props: AvatarProps, ref: ForwardedRef) { /** * Avatars are used to show a thumbnail representation of an individual, team or group in the interface. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Avatar) */ const _Avatar = slotFn("avatar", forwardRef(Avatar)); _Avatar.displayName = "Avatar"; diff --git a/packages/components/src/Avatar/src/DeletedAvatar.tsx b/packages/components/src/Avatar/src/DeletedAvatar.tsx index e3da1702b..bb91fd4fb 100644 --- a/packages/components/src/Avatar/src/DeletedAvatar.tsx +++ b/packages/components/src/Avatar/src/DeletedAvatar.tsx @@ -82,7 +82,7 @@ function DeletedAvatar(props: DeletedAvatarProps, ref: ForwardedRef(DeletedAvatar); _DeletedAvatar.displayName = "DeletedAvatar"; diff --git a/packages/components/src/Avatar/src/RichIconAvatarImage.tsx b/packages/components/src/Avatar/src/RichIconAvatarImage.tsx index a8016fdd6..45b9ef818 100644 --- a/packages/components/src/Avatar/src/RichIconAvatarImage.tsx +++ b/packages/components/src/Avatar/src/RichIconAvatarImage.tsx @@ -113,7 +113,7 @@ function RichIconAvatarImage(props: RichIconAvatarImageProps, ref: ForwardedRef< /** * RichIconAvatarImage is a wrapper component that provides a consistent way to style the image of a RichIcon. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Avatar) */ const _RichIconAvatarImage = slotFn("avatar", forwardRef(RichIconAvatarImage)); _RichIconAvatarImage.displayName = "RichIconAvatarImage"; diff --git a/packages/components/src/Badge/src/Badge.tsx b/packages/components/src/Badge/src/Badge.tsx index aa5c8a739..f52c88e0a 100644 --- a/packages/components/src/Badge/src/Badge.tsx +++ b/packages/components/src/Badge/src/Badge.tsx @@ -132,7 +132,7 @@ function Badge(props: BadgeProps, ref: ForwardedRef) { /** * A badge displays either a number, text or a dot to indicate the status of an element. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Badge) */ const _Badge = slotFn("badge", forwardRef(Badge)); _Badge.displayName = "Badge"; diff --git a/packages/components/src/Badge/src/FloatingBadge.tsx b/packages/components/src/Badge/src/FloatingBadge.tsx index 676e1af1e..5d18ca9e7 100644 --- a/packages/components/src/Badge/src/FloatingBadge.tsx +++ b/packages/components/src/Badge/src/FloatingBadge.tsx @@ -100,7 +100,7 @@ function FloatingBadge(props: FloatingBadgeProps, ref: ForwardedRef(FloatingBadge); _FloatingBadge.displayName = "FloatingBadge"; diff --git a/packages/components/src/Card/src/Card.tsx b/packages/components/src/Card/src/Card.tsx index bae439153..e8cb9c119 100644 --- a/packages/components/src/Card/src/Card.tsx +++ b/packages/components/src/Card/src/Card.tsx @@ -63,7 +63,7 @@ const Card = (props: CardProps, ref: ForwardedRef) => { /** * Cards are used to group similar concepts and tasks to make it easier for users to scan, read and get things done. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Card) */ const _Card = forwardRef(Card); _Card.displayName = "Card"; diff --git a/packages/components/src/ComboBox/src/ComboBox.tsx b/packages/components/src/ComboBox/src/ComboBox.tsx index bac55ffde..a4117dc0f 100644 --- a/packages/components/src/ComboBox/src/ComboBox.tsx +++ b/packages/components/src/ComboBox/src/ComboBox.tsx @@ -376,7 +376,7 @@ function ComboBox(props: ComboBoxProps, ref: ForwardedRef( props: ComboBoxProps & { ref?: ForwardedRef } diff --git a/packages/components/src/Disclosure/src/Disclosure.tsx b/packages/components/src/Disclosure/src/Disclosure.tsx index 81ad55c05..7db449899 100644 --- a/packages/components/src/Disclosure/src/Disclosure.tsx +++ b/packages/components/src/Disclosure/src/Disclosure.tsx @@ -88,7 +88,7 @@ function Disclosure(props: DisclosureProps, ref: ForwardedRef) { /** * The Disclosure component is used to organize lengthy sections of information within an expandable block, allowing users to reveal or hide content as needed. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Disclosure) */ const _Disclosure = forwardRef(Disclosure); _Disclosure.displayName = "Disclosure"; diff --git a/packages/components/src/Disclosure/src/DisclosureHeader.tsx b/packages/components/src/Disclosure/src/DisclosureHeader.tsx index 84b49f3b6..e6429e11e 100644 --- a/packages/components/src/Disclosure/src/DisclosureHeader.tsx +++ b/packages/components/src/Disclosure/src/DisclosureHeader.tsx @@ -121,7 +121,7 @@ function DisclosureHeader(props: DisclosureHeaderProps, ref: ForwardedRef(DisclosureHeader); _DisclosureHeader.displayName = "DisclosureHeader"; diff --git a/packages/components/src/Disclosure/src/DisclosurePanel.tsx b/packages/components/src/Disclosure/src/DisclosurePanel.tsx index 720154b92..5eac9ac33 100644 --- a/packages/components/src/Disclosure/src/DisclosurePanel.tsx +++ b/packages/components/src/Disclosure/src/DisclosurePanel.tsx @@ -66,7 +66,7 @@ function DisclosurePanel(props: DisclosurePanelProps, ref: ForwardedRef(DisclosurePanel); _DisclosurePanel.displayName = "DisclosurePanel"; diff --git a/packages/components/src/Divider/src/Divider.tsx b/packages/components/src/Divider/src/Divider.tsx index 53b0549b4..b833bde9d 100644 --- a/packages/components/src/Divider/src/Divider.tsx +++ b/packages/components/src/Divider/src/Divider.tsx @@ -53,7 +53,7 @@ function Divider(props: DividerProps, ref: ForwardedRef) { /** * The Divider separates the distinguishes sections of content or groups. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Divider) */ const _Divider = forwardRef(Divider); _Divider.displayName = "Divider"; diff --git a/packages/components/src/ErrorMessage/src/ErrorMessage.tsx b/packages/components/src/ErrorMessage/src/ErrorMessage.tsx index 9077460a8..ee4250a25 100644 --- a/packages/components/src/ErrorMessage/src/ErrorMessage.tsx +++ b/packages/components/src/ErrorMessage/src/ErrorMessage.tsx @@ -37,7 +37,7 @@ function ErrorMessage(props: ErrorMessageProps, ref: ForwardedRef(ErrorMessage); _ErrorMessage.displayName = "ErrorMessage"; diff --git a/packages/components/src/Form/src/Form.tsx b/packages/components/src/Form/src/Form.tsx index 72828f42a..a1f19728d 100644 --- a/packages/components/src/Form/src/Form.tsx +++ b/packages/components/src/Form/src/Form.tsx @@ -49,7 +49,7 @@ export function useFormProps(props: T): T { return useMemo(() => { let result: T = props; - + if (ctx) { result = { ...props }; @@ -60,7 +60,7 @@ export function useFormProps(props: T): T { } } } - + return result; }, [ctx, props]); } @@ -112,7 +112,7 @@ function Form(props: FormProps, ref: ForwardedRef) { /** * Forms are commonly used to provide user interaction in web applications. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Form) */ const _Form = forwardRef(Form); _Form.displayName = "Form"; diff --git a/packages/components/src/Header/src/Header.tsx b/packages/components/src/Header/src/Header.tsx index c15371c9b..055f68719 100644 --- a/packages/components/src/Header/src/Header.tsx +++ b/packages/components/src/Header/src/Header.tsx @@ -49,7 +49,7 @@ function Header(props: HeaderProps, ref: ForwardedRef) { /** * The Header component represents a header within a Hopper container such as a Modal or Section. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Header) */ const _Header = slotFn("header", forwardRef(Header)); _Header.displayName = "Header"; diff --git a/packages/components/src/HelperMessage/src/HelperMessage.tsx b/packages/components/src/HelperMessage/src/HelperMessage.tsx index 345ca3aed..50ef54163 100644 --- a/packages/components/src/HelperMessage/src/HelperMessage.tsx +++ b/packages/components/src/HelperMessage/src/HelperMessage.tsx @@ -32,7 +32,7 @@ function HelperMessage(props: HelperMessageProps, ref: ForwardedRef(HelperMessage); _HelperMessage.displayName = "HelperMessage"; diff --git a/packages/components/src/HopperProvider/src/HopperProvider.tsx b/packages/components/src/HopperProvider/src/HopperProvider.tsx index c16949866..94654b6cb 100644 --- a/packages/components/src/HopperProvider/src/HopperProvider.tsx +++ b/packages/components/src/HopperProvider/src/HopperProvider.tsx @@ -94,7 +94,7 @@ const HopperProvider = (props: HopperProviderProps, ref: ForwardedRef(HopperProvider); _HopperProvider.displayName = "HopperProvider"; diff --git a/packages/components/src/IconList/src/IconList.tsx b/packages/components/src/IconList/src/IconList.tsx index 37d337d23..8230ffdef 100644 --- a/packages/components/src/IconList/src/IconList.tsx +++ b/packages/components/src/IconList/src/IconList.tsx @@ -61,7 +61,7 @@ function IconList(props:IconListProps, ref: ForwardedRef) { /** * A component that allows you to render a list of icons * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/IconList) */ const _IconList = slotFn("icon", forwardRef(IconList)); _IconList.displayName = "IconList"; diff --git a/packages/components/src/IllustratedMessage/src/IllustratedMessage.tsx b/packages/components/src/IllustratedMessage/src/IllustratedMessage.tsx index b328f5f64..14c4d0eec 100644 --- a/packages/components/src/IllustratedMessage/src/IllustratedMessage.tsx +++ b/packages/components/src/IllustratedMessage/src/IllustratedMessage.tsx @@ -94,7 +94,7 @@ function IllustratedMessage(props: IllustratedMessageProps, ref: ForwardedRef(IllustratedMessage); _IllustratedMessage.displayName = "IllustratedMessage"; diff --git a/packages/components/src/Image/src/Image.tsx b/packages/components/src/Image/src/Image.tsx index c5ae30d10..8859a3a0e 100644 --- a/packages/components/src/Image/src/Image.tsx +++ b/packages/components/src/Image/src/Image.tsx @@ -82,7 +82,7 @@ function Image(props: ImageProps, ref: ForwardedRef) { /** * An image component that can be used to display images. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Image) */ const _Image = forwardRef(Image); _Image.displayName = "Image"; diff --git a/packages/components/src/Image/src/SvgImage.tsx b/packages/components/src/Image/src/SvgImage.tsx index cc354a228..0f612f86f 100644 --- a/packages/components/src/Image/src/SvgImage.tsx +++ b/packages/components/src/Image/src/SvgImage.tsx @@ -68,7 +68,7 @@ function SvgImage(props: SvgImageProps, ref: ForwardedRef) { /** * An SvgImage component that can be used to display SVGs. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/SvgImage) */ const _SvgImage = forwardRef(SvgImage); _SvgImage.displayName = "SvgImage"; diff --git a/packages/components/src/Link/src/Link.tsx b/packages/components/src/Link/src/Link.tsx index c6f4ddd9f..84234c042 100644 --- a/packages/components/src/Link/src/Link.tsx +++ b/packages/components/src/Link/src/Link.tsx @@ -161,7 +161,7 @@ function Link(props: LinkProps, ref: ForwardedRef) { /** * Links allow users to navigate to a different location. They can be presented inline inside a paragraph, as standalone text or as an image. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Link) */ const _Link = forwardRef(Link); _Link.displayName = "Link"; diff --git a/packages/components/src/ListBox/src/ListBox.tsx b/packages/components/src/ListBox/src/ListBox.tsx index f24829272..d8db3a2b9 100644 --- a/packages/components/src/ListBox/src/ListBox.tsx +++ b/packages/components/src/ListBox/src/ListBox.tsx @@ -201,7 +201,7 @@ function ListBox(props: ListBoxProps, ref: ForwardedRef( props: ListBoxProps & { ref?: ForwardedRef } diff --git a/packages/components/src/ListBox/src/ListBoxItem.tsx b/packages/components/src/ListBox/src/ListBoxItem.tsx index aeb98a344..ad59e0c0e 100644 --- a/packages/components/src/ListBox/src/ListBoxItem.tsx +++ b/packages/components/src/ListBox/src/ListBoxItem.tsx @@ -311,7 +311,7 @@ function ListBoxItem(props: ListBoxItemProps, ref: Forwarde /** * A ListBoxItem represents an item within a ListBox component. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/ListBox) */ const _ListBoxItem = (forwardRef as forwardRefType)(ListBoxItem); (_ListBoxItem as NamedExoticComponent).displayName = "ListBoxItem"; diff --git a/packages/components/src/ListBox/src/ListBoxItemSkeleton.tsx b/packages/components/src/ListBox/src/ListBoxItemSkeleton.tsx index d93d6d27f..a12fe7f18 100644 --- a/packages/components/src/ListBox/src/ListBoxItemSkeleton.tsx +++ b/packages/components/src/ListBox/src/ListBoxItemSkeleton.tsx @@ -63,7 +63,7 @@ function ListBoxItemSkeleton(props: ListBoxItemSkeletonProps, ref: ForwardedRef< /** * A ListBoxItem represents an item within a ListBox component. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/ListBox) */ const _ListBoxItemSkeleton = forwardRef(ListBoxItemSkeleton); _ListBoxItemSkeleton.displayName = "ListBoxItemSkeleton"; diff --git a/packages/components/src/ListBoxSection/src/ListBoxSection.tsx b/packages/components/src/ListBoxSection/src/ListBoxSection.tsx index 3f2d7ba07..9e352263d 100644 --- a/packages/components/src/ListBoxSection/src/ListBoxSection.tsx +++ b/packages/components/src/ListBoxSection/src/ListBoxSection.tsx @@ -45,7 +45,7 @@ function ListBoxSection(props: ListBoxSectionProps, ref: Fo /** * A Section serves as a versatile container component, encapsulating an HTML section element to facilitate the organization and grouping of content. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/ListBox) */ const _ListBoxSection = forwardRef(ListBoxSection) as ( props: ListBoxSectionProps & { ref?: ForwardedRef } diff --git a/packages/components/src/Select/src/Select.tsx b/packages/components/src/Select/src/Select.tsx index b15383b7a..2dda26416 100644 --- a/packages/components/src/Select/src/Select.tsx +++ b/packages/components/src/Select/src/Select.tsx @@ -306,7 +306,7 @@ function Select(props: SelectProps, ref: ForwardedRef( props: SelectProps & { ref?: ForwardedRef } diff --git a/packages/components/src/Select/src/SelectValue.tsx b/packages/components/src/Select/src/SelectValue.tsx index 9af3c70f2..8050590ac 100644 --- a/packages/components/src/Select/src/SelectValue.tsx +++ b/packages/components/src/Select/src/SelectValue.tsx @@ -133,7 +133,7 @@ function SelectValue(props: SelectValueProps, ref: Forwarde /** * A select value displays the selected value of a select. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Select) */ const _SelectValue = forwardRef(SelectValue) as ( props: SelectValueProps & { ref?: ForwardedRef } diff --git a/packages/components/src/Spinner/src/Spinner.tsx b/packages/components/src/Spinner/src/Spinner.tsx index 4d0807cb1..91782baa0 100644 --- a/packages/components/src/Spinner/src/Spinner.tsx +++ b/packages/components/src/Spinner/src/Spinner.tsx @@ -107,7 +107,7 @@ const Spinner = (props: SpinnerProps, ref: ForwardedRef) => { /** * A spinner indicates that a part of the product is currently performing a task, and the duration of this process is unknown. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Spinner) */ const _Spinner = forwardRef(Spinner); _Spinner.displayName = "Spinner"; diff --git a/packages/components/src/ToggleArrow/src/ToggleArrow.tsx b/packages/components/src/ToggleArrow/src/ToggleArrow.tsx index 6a0a88aad..9b3e2be1d 100644 --- a/packages/components/src/ToggleArrow/src/ToggleArrow.tsx +++ b/packages/components/src/ToggleArrow/src/ToggleArrow.tsx @@ -58,8 +58,6 @@ function ToggleArrow(props:ToggleArrowProps, ref: ForwardedRef) { /** * A simple arrow icon for expanding and collapsing content. - * - * [View Documentation](TODO) */ const _ToggleArrow = forwardRef(ToggleArrow); _ToggleArrow.displayName = "ToggleArrow"; diff --git a/packages/components/src/buttons/src/Button.tsx b/packages/components/src/buttons/src/Button.tsx index 9f7ba8122..1418d6430 100644 --- a/packages/components/src/buttons/src/Button.tsx +++ b/packages/components/src/buttons/src/Button.tsx @@ -176,7 +176,7 @@ function Button(props: ButtonProps, ref: ForwardedRef) { /** * Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it. - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Button) * */ const _Button = slotFn("button", forwardRef(Button)); diff --git a/packages/components/src/buttons/src/ButtonGroup.tsx b/packages/components/src/buttons/src/ButtonGroup.tsx index 6d2fc83b6..2619d1b62 100644 --- a/packages/components/src/buttons/src/ButtonGroup.tsx +++ b/packages/components/src/buttons/src/ButtonGroup.tsx @@ -122,7 +122,7 @@ function ButtonGroup(props: ButtonGroupProps, ref: ForwardedRef) /** * ButtonGroup handles the spacing and orientation for a grouping of buttons whose actions are related to each other. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/ButtonGroup) */ const _ButtonGroup = slotFn("button-group", forwardRef(ButtonGroup)); diff --git a/packages/components/src/buttons/src/ClearButton.tsx b/packages/components/src/buttons/src/ClearButton.tsx index 9ea32ec3b..c83ade68e 100644 --- a/packages/components/src/buttons/src/ClearButton.tsx +++ b/packages/components/src/buttons/src/ClearButton.tsx @@ -38,8 +38,6 @@ function ClearButton(props: ClearButtonProps, ref: ForwardedRef(ClearButton); diff --git a/packages/components/src/buttons/src/EmbeddedButton.tsx b/packages/components/src/buttons/src/EmbeddedButton.tsx index 6136d4710..dc11b3544 100644 --- a/packages/components/src/buttons/src/EmbeddedButton.tsx +++ b/packages/components/src/buttons/src/EmbeddedButton.tsx @@ -116,8 +116,6 @@ function EmbeddedButton(props: EmbeddedButtonProps, ref: ForwardedRef(EmbeddedButton)); diff --git a/packages/components/src/buttons/src/LinkButton.tsx b/packages/components/src/buttons/src/LinkButton.tsx index 91ca7e796..088e64f69 100644 --- a/packages/components/src/buttons/src/LinkButton.tsx +++ b/packages/components/src/buttons/src/LinkButton.tsx @@ -157,7 +157,8 @@ function LinkButton(props: LinkButtonProps, ref: ForwardedRef /** * A LinkButton merges the functionality of a link with the appearance of a button, providing a user-friendly way to direct users to other pages. - * [View Documentation](TODO) + * + * [View Documentation](https://hopper.workleap.design/components/LinkButton) * */ const _LinkButton = slotFn("button", forwardRef(LinkButton)); diff --git a/packages/components/src/checkbox/src/Checkbox.tsx b/packages/components/src/checkbox/src/Checkbox.tsx index 855a91a40..78d457db9 100644 --- a/packages/components/src/checkbox/src/Checkbox.tsx +++ b/packages/components/src/checkbox/src/Checkbox.tsx @@ -121,7 +121,7 @@ function Checkbox(props: CheckboxProps, ref: ForwardedRef) { /** * The Checkbox component indicates the selection state of an option. It displays either one of three states: checked, unchecked, or indeterminate. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Checkbox) */ const _Checkbox = forwardRef(Checkbox); _Checkbox.displayName = "Checkbox"; diff --git a/packages/components/src/checkbox/src/CheckboxField.tsx b/packages/components/src/checkbox/src/CheckboxField.tsx index 1eb36c378..91c59645e 100644 --- a/packages/components/src/checkbox/src/CheckboxField.tsx +++ b/packages/components/src/checkbox/src/CheckboxField.tsx @@ -131,7 +131,7 @@ function CheckboxField(props: CheckboxFieldProps, ref: ForwardedRef(CheckboxField); _CheckboxField.displayName = "CheckboxField"; diff --git a/packages/components/src/checkbox/src/CheckboxGroup.tsx b/packages/components/src/checkbox/src/CheckboxGroup.tsx index 08a6c5fb1..85e6b6f8a 100644 --- a/packages/components/src/checkbox/src/CheckboxGroup.tsx +++ b/packages/components/src/checkbox/src/CheckboxGroup.tsx @@ -111,10 +111,10 @@ function CheckboxGroup(props: CheckboxGroupProps, ref: ForwardedRef { return ( -
{prev} @@ -176,7 +176,7 @@ function CheckboxGroup(props: CheckboxGroupProps, ref: ForwardedRef(CheckboxGroup); _CheckboxGroup.displayName = "CheckboxGroup"; diff --git a/packages/components/src/checkbox/src/DecorativeCheckbox.tsx b/packages/components/src/checkbox/src/DecorativeCheckbox.tsx index 60e1e5598..bf2eeaaad 100644 --- a/packages/components/src/checkbox/src/DecorativeCheckbox.tsx +++ b/packages/components/src/checkbox/src/DecorativeCheckbox.tsx @@ -143,8 +143,6 @@ function DecorativeCheckbox(props: DecorativeCheckboxProps, ref: ForwardedRef(DecorativeCheckbox); _DecorativeCheckbox.displayName = "DecorativeCheckbox"; diff --git a/packages/components/src/inputs/src/InputGroup.tsx b/packages/components/src/inputs/src/InputGroup.tsx index 09bb1b59f..5101d620b 100644 --- a/packages/components/src/inputs/src/InputGroup.tsx +++ b/packages/components/src/inputs/src/InputGroup.tsx @@ -148,7 +148,7 @@ function InputGroup(props: InputGroupProps, ref: ForwardedRef) { /** * An input group combines an input component with addons. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/InputGroup) */ const _InputGroup = forwardRef(InputGroup); _InputGroup.displayName = "InputGroup"; diff --git a/packages/components/src/inputs/src/NumberField.tsx b/packages/components/src/inputs/src/NumberField.tsx index 6c3f55662..36b4982b2 100644 --- a/packages/components/src/inputs/src/NumberField.tsx +++ b/packages/components/src/inputs/src/NumberField.tsx @@ -217,7 +217,7 @@ function NumberField(props: NumberFieldProps, ref: ForwardedRef) /** * A number field allows a user to enter a number value with a keyboard or increment and decrement buttons. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/NumberField) */ const _NumberField = forwardRef(NumberField); _NumberField.displayName = "NumberField"; diff --git a/packages/components/src/inputs/src/PasswordField.tsx b/packages/components/src/inputs/src/PasswordField.tsx index f8301ffed..e6fea53d6 100644 --- a/packages/components/src/inputs/src/PasswordField.tsx +++ b/packages/components/src/inputs/src/PasswordField.tsx @@ -180,7 +180,7 @@ function PasswordField(props: PasswordFieldProps, ref: ForwardedRef(PasswordField); _PasswordField.displayName = "PasswordField"; diff --git a/packages/components/src/inputs/src/RemainingCharacterCount.tsx b/packages/components/src/inputs/src/RemainingCharacterCount.tsx index 74cbc198f..79d8ed79e 100644 --- a/packages/components/src/inputs/src/RemainingCharacterCount.tsx +++ b/packages/components/src/inputs/src/RemainingCharacterCount.tsx @@ -74,8 +74,6 @@ function RemainingCharacterCount(props: RemainingCharacterCountProps, ref: Forwa /** * The RemainingCharacterCount component displays the number of characters remaining. - * - * [View Documentation](TODO) */ const _RemainingCharacterCount = forwardRef(RemainingCharacterCount); _RemainingCharacterCount.displayName = "RemainingCharacterCount"; diff --git a/packages/components/src/inputs/src/SearchField.tsx b/packages/components/src/inputs/src/SearchField.tsx index 4190495af..a8b25b984 100644 --- a/packages/components/src/inputs/src/SearchField.tsx +++ b/packages/components/src/inputs/src/SearchField.tsx @@ -181,7 +181,7 @@ function SearchField(props: SearchFieldProps, ref: ForwardedRef) /** * A specialized text input for [search input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search). * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/SearchField) */ const _SearchField = forwardRef(SearchField); _SearchField.displayName = "SearchField"; diff --git a/packages/components/src/inputs/src/TextArea.tsx b/packages/components/src/inputs/src/TextArea.tsx index e7050bd99..ed566aa6f 100644 --- a/packages/components/src/inputs/src/TextArea.tsx +++ b/packages/components/src/inputs/src/TextArea.tsx @@ -311,7 +311,7 @@ function TextArea(props: TextAreaProps, ref: ForwardedRef) { /** * A textarea field allows a user to enter a plain text value with a keyboard. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/TextArea) */ const _TextArea = forwardRef(TextArea); _TextArea.displayName = "TextArea"; diff --git a/packages/components/src/inputs/src/TextField.tsx b/packages/components/src/inputs/src/TextField.tsx index 6b80a1c9a..b7274b705 100644 --- a/packages/components/src/inputs/src/TextField.tsx +++ b/packages/components/src/inputs/src/TextField.tsx @@ -261,7 +261,7 @@ function TextField(props: TextFieldProps, ref: ForwardedRef) { /** * A text field allows a user to enter a plain text value with a keyboard. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/TextField) */ const _TextField = forwardRef(TextField); _TextField.displayName = "TextField"; diff --git a/packages/components/src/layout/src/Content.tsx b/packages/components/src/layout/src/Content.tsx index 6e3d2cc1e..592dd3b02 100644 --- a/packages/components/src/layout/src/Content.tsx +++ b/packages/components/src/layout/src/Content.tsx @@ -50,7 +50,7 @@ function Content(props: ContentProps, ref: ForwardedRef) { /** * The Content component represents a Content within a Hopper container such as a Modal or Popover. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Content) */ const _Content = slotFn("content", forwardRef(Content)); _Content.displayName = "Content"; diff --git a/packages/components/src/layout/src/Flex.tsx b/packages/components/src/layout/src/Flex.tsx index 3c98ebd49..d1120a416 100644 --- a/packages/components/src/layout/src/Flex.tsx +++ b/packages/components/src/layout/src/Flex.tsx @@ -104,7 +104,7 @@ function flexWrapValue(value: DivProps["flexWrap"] | boolean) { /** * The Flex component is used to create a flex container and provides some shortcuts for the flex properties. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Flex) */ const _Flex = forwardRef(Flex); _Flex.displayName = "Flex"; diff --git a/packages/components/src/layout/src/Footer.tsx b/packages/components/src/layout/src/Footer.tsx index f271595cb..43b3362b5 100644 --- a/packages/components/src/layout/src/Footer.tsx +++ b/packages/components/src/layout/src/Footer.tsx @@ -49,7 +49,7 @@ function Footer(props: FooterProps, ref: ForwardedRef) { /** * The Footer component represents a Footer within a Hopper container such as a Modal or Popover. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Footer) */ const _Footer = slotFn("footer", forwardRef(Footer)); _Footer.displayName = "Footer"; diff --git a/packages/components/src/layout/src/Grid.tsx b/packages/components/src/layout/src/Grid.tsx index 119f4f048..7e0209c70 100644 --- a/packages/components/src/layout/src/Grid.tsx +++ b/packages/components/src/layout/src/Grid.tsx @@ -1,5 +1,5 @@ -import { Div } from "@hopper-ui/styled-system"; import type { DivProps } from "@hopper-ui/styled-system"; +import { Div } from "@hopper-ui/styled-system"; import { forwardRef, type Ref } from "react"; export interface GridProps extends @@ -110,7 +110,7 @@ function Grid(props: GridProps, ref: Ref) { /** * The Grid component is used to create a grid container and provides some shortcuts for the grid properties. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Grid) */ const _Grid = forwardRef(Grid); _Grid.displayName = "Grid"; diff --git a/packages/components/src/layout/src/Inline.tsx b/packages/components/src/layout/src/Inline.tsx index 0ef1ce9ba..0733e7191 100644 --- a/packages/components/src/layout/src/Inline.tsx +++ b/packages/components/src/layout/src/Inline.tsx @@ -45,7 +45,7 @@ function Inline(props: InlineProps, ref: Ref) { /** * The Inline pattern is a layout primitive that can be used to stack elements in the horizontal direction and apply a space between them. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Inline) */ const _Inline = forwardRef(Inline); _Inline.displayName = "Inline"; diff --git a/packages/components/src/layout/src/Stack.tsx b/packages/components/src/layout/src/Stack.tsx index 81360bab6..ec2a2edf8 100644 --- a/packages/components/src/layout/src/Stack.tsx +++ b/packages/components/src/layout/src/Stack.tsx @@ -44,7 +44,7 @@ function Stack(props: StackProps, ref: Ref) { /** * The Stack pattern is a layout primitive that can be used to stack elements in the vertical direction and apply a space between them. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Stack) */ const _Stack = forwardRef(Stack); _Stack.displayName = "Stack"; diff --git a/packages/components/src/overlays/Popover/src/Popover.tsx b/packages/components/src/overlays/Popover/src/Popover.tsx index c532f2f04..13cf5c40f 100644 --- a/packages/components/src/overlays/Popover/src/Popover.tsx +++ b/packages/components/src/overlays/Popover/src/Popover.tsx @@ -198,7 +198,7 @@ function Popover(props: PopoverProps, ref: ForwardedRef) { /** * Popovers are small overlays that open on demand. They let users access additional content and actions without cluttering the page. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Popover) */ const _Popover = forwardRef(Popover); _Popover.displayName = "Popover"; diff --git a/packages/components/src/radio/src/DecorativeRadio.tsx b/packages/components/src/radio/src/DecorativeRadio.tsx index 19f3995c2..6a10820f6 100644 --- a/packages/components/src/radio/src/DecorativeRadio.tsx +++ b/packages/components/src/radio/src/DecorativeRadio.tsx @@ -140,8 +140,6 @@ function DecorativeRadio(props: DecorativeRadioProps, ref: ForwardedRef(DecorativeRadio); _DecorativeRadio.displayName = "DecorativeRadio"; diff --git a/packages/components/src/radio/src/Radio.tsx b/packages/components/src/radio/src/Radio.tsx index 68eee20ce..fa3844d50 100644 --- a/packages/components/src/radio/src/Radio.tsx +++ b/packages/components/src/radio/src/Radio.tsx @@ -118,7 +118,7 @@ function Radio(props: RadioProps, ref: ForwardedRef) { /** * The Radio component indicates the selection state of an option. It displays either one of three states: checked, unchecked, or indeterminate. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/RadioGroup) */ const _Radio = forwardRef(Radio); _Radio.displayName = "Radio"; diff --git a/packages/components/src/radio/src/RadioField.tsx b/packages/components/src/radio/src/RadioField.tsx index 193075331..0abb14319 100644 --- a/packages/components/src/radio/src/RadioField.tsx +++ b/packages/components/src/radio/src/RadioField.tsx @@ -139,7 +139,7 @@ function RadioField(props: RadioFieldProps, ref: ForwardedRef) { /** * The Radio Field component is a container for a radio and a description. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/RadioGroup) */ const _RadioField = forwardRef(RadioField); _RadioField.displayName = "RadioField"; diff --git a/packages/components/src/radio/src/RadioGroup.tsx b/packages/components/src/radio/src/RadioGroup.tsx index 87d0f6589..73b5c9e8b 100644 --- a/packages/components/src/radio/src/RadioGroup.tsx +++ b/packages/components/src/radio/src/RadioGroup.tsx @@ -68,7 +68,7 @@ function RadioGroup(props: RadioGroupProps, ref: ForwardedRef) { necessityIndicator, ...otherProps } = ownProps; - + const { className: listClassName, slot: listSlot, @@ -111,10 +111,10 @@ function RadioGroup(props: RadioGroupProps, ref: ForwardedRef) { const children = composeRenderProps(childrenProp, prev => { return ( -
{prev} @@ -176,7 +176,7 @@ function RadioGroup(props: RadioGroupProps, ref: ForwardedRef) { /** * The RadioGroup component is used to group multiple Radio or RadioField components together. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/RadioGroup) */ const _RadioGroup = forwardRef(RadioGroup); _RadioGroup.displayName = "RadioGroup"; diff --git a/packages/components/src/switch/src/Switch.tsx b/packages/components/src/switch/src/Switch.tsx index 18bbe4d6f..395b70f64 100644 --- a/packages/components/src/switch/src/Switch.tsx +++ b/packages/components/src/switch/src/Switch.tsx @@ -114,7 +114,7 @@ function Switch(props: SwitchProps, ref: ForwardedRef) { /** * A switch is used to quickly switch between two possible states. They are commonly used for “on/off” switches. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Switch) */ const _Switch = forwardRef(Switch); _Switch.displayName = "Switch"; diff --git a/packages/components/src/switch/src/SwitchField.tsx b/packages/components/src/switch/src/SwitchField.tsx index 6497377da..9a9853e48 100644 --- a/packages/components/src/switch/src/SwitchField.tsx +++ b/packages/components/src/switch/src/SwitchField.tsx @@ -129,7 +129,7 @@ function SwitchField(props: SwitchFieldProps, ref: ForwardedRef) /** * The Switch Field component is a container for a switch and a description. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Switch) */ const _SwitchField = forwardRef(SwitchField); _SwitchField.displayName = "SwitchField"; diff --git a/packages/components/src/tag/src/Tag.tsx b/packages/components/src/tag/src/Tag.tsx index 56a320d42..c7d9d376a 100644 --- a/packages/components/src/tag/src/Tag.tsx +++ b/packages/components/src/tag/src/Tag.tsx @@ -215,7 +215,7 @@ function Tag(props: TagProps, ref: ForwardedRef) { /** * A tag group is an interactive collection of labels, categories, keywords, or filters, with capabilities for keyboard navigation, selection, and removal. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/TagGroup) */ const _Tag = slotFn("tag", forwardRef(Tag)); _Tag.displayName = "Tag"; diff --git a/packages/components/src/tag/src/TagGroup.tsx b/packages/components/src/tag/src/TagGroup.tsx index 43b85be03..36392f209 100644 --- a/packages/components/src/tag/src/TagGroup.tsx +++ b/packages/components/src/tag/src/TagGroup.tsx @@ -76,7 +76,7 @@ function TagGroup(props: TagGroupProps, ref: ForwardedRef(props: TagGroupProps, ref: ForwardedRef( props: TagGroupProps & { ref?: ForwardedRef } diff --git a/packages/components/src/typography/Heading/src/Heading.tsx b/packages/components/src/typography/Heading/src/Heading.tsx index 531cdf15d..185ab4f71 100644 --- a/packages/components/src/typography/Heading/src/Heading.tsx +++ b/packages/components/src/typography/Heading/src/Heading.tsx @@ -62,7 +62,7 @@ function Heading(props: HeadingProps, ref: ForwardedRef) { /** * A primitive heading component matching Hopper's typography type scale. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Heading) */ const _Heading = slotFn("heading", forwardRef(Heading)); _Heading.displayName = "Heading"; @@ -85,41 +85,47 @@ function createHeading(as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6") { /** * * A primitive h1 component matching Hopper's typography type scale. - * [View Documentation](TODO) + * + * [View Documentation](https://hopper.workleap.design/components/Heading) */ export const H1 = createHeading("h1"); /** * * A primitive h2 component matching Hopper's typography type scale. - * [View Documentation](TODO) + * + * [View Documentation](https://hopper.workleap.design/components/Heading) */ export const H2 = createHeading("h2"); /** * * A primitive h3 component matching Hopper's typography type scale. - * [View Documentation](TODO) + * + * [View Documentation](https://hopper.workleap.design/components/Heading) */ export const H3 = createHeading("h3"); /** * * A primitive h4 component matching Hopper's typography type scale. - * [View Documentation](TODO) + * + * [View Documentation](https://hopper.workleap.design/components/Heading) */ export const H4 = createHeading("h4"); /** * * A primitive h5 component matching Hopper's typography type scale. - * [View Documentation](TODO) + * + * [View Documentation](https://hopper.workleap.design/components/Heading) */ export const H5 = createHeading("h5"); /** * * A primitive h6 component matching Hopper's typography type scale. - * [View Documentation](TODO) + * + * [View Documentation](https://hopper.workleap.design/components/Heading) */ export const H6 = createHeading("h6"); diff --git a/packages/components/src/typography/Label/src/Label.tsx b/packages/components/src/typography/Label/src/Label.tsx index 9d21d4f08..c95ca3b9d 100644 --- a/packages/components/src/typography/Label/src/Label.tsx +++ b/packages/components/src/typography/Label/src/Label.tsx @@ -88,7 +88,7 @@ function Label(props: LabelProps, ref: ForwardedRef) { /** * A primitive label component matching Hopper's typography type scale. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Label) */ const _Label = forwardRef(Label); _Label.displayName = "Label"; diff --git a/packages/components/src/typography/OverlineText/src/OverlineText.tsx b/packages/components/src/typography/OverlineText/src/OverlineText.tsx index 4f7b165ce..90532c46d 100644 --- a/packages/components/src/typography/OverlineText/src/OverlineText.tsx +++ b/packages/components/src/typography/OverlineText/src/OverlineText.tsx @@ -50,7 +50,7 @@ function OverlineText(props: OverlineTextProps, ref: ForwardedRef(OverlineText); _OverlineText.displayName = "OverlineText"; diff --git a/packages/components/src/typography/Text/src/Text.tsx b/packages/components/src/typography/Text/src/Text.tsx index 5707ce5c8..7daf58c4e 100644 --- a/packages/components/src/typography/Text/src/Text.tsx +++ b/packages/components/src/typography/Text/src/Text.tsx @@ -76,7 +76,7 @@ function Text(props: TextProps, ref: ForwardedRef) { /** * A primitive text component matching Hopper's typography type scale. * - * [View Documentation](TODO) + * [View Documentation](https://hopper.workleap.design/components/Text) */ const _Text = slotFn("text", forwardRef(Text)); _Text.displayName = "Text"; diff --git a/packages/components/src/utils/src/SlotProvider.ts b/packages/components/src/utils/src/SlotProvider.ts index 669579c80..6721865fd 100644 --- a/packages/components/src/utils/src/SlotProvider.ts +++ b/packages/components/src/utils/src/SlotProvider.ts @@ -5,8 +5,6 @@ import { Provider } from "react-aria-components"; * In complex components, you may need to provide many contexts. The SlotProvider component is a utility that makes it * easier to provide multiple React contexts without manually nesting them. * This can be achieved by passing pairs of contexts and values as an array to the values prop. - * - * [View Documentation](TODO) */ export const SlotProvider = Provider; export type SlotProviderProps = ComponentProps;