@utilitywarehouse/hearth-react-native 0.34.4 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +194 -0
- package/README.md +52 -0
- package/SKILL.md +361 -0
- package/build/components/Alert/AlertIcon.js +4 -4
- package/build/components/Badge/BadgeIcon.js +4 -4
- package/build/components/Card/CardAction/CardActionIcon.js +2 -2
- package/build/components/Card/CardAction/CardActionTrailingIcon.js +2 -2
- package/build/components/Carousel/CarouselControlItem.js +2 -2
- package/build/components/Carousel/CarouselControls.js +2 -2
- package/build/components/Checkbox/CheckboxGroup.d.ts +1 -1
- package/build/components/Checkbox/CheckboxGroup.js +5 -2
- package/build/components/Checkbox/CheckboxGroup.props.d.ts +4 -0
- package/build/components/Combobox/Combobox.js +2 -9
- package/build/components/Combobox/Combobox.utils.d.ts +2 -0
- package/build/components/Combobox/Combobox.utils.js +8 -0
- package/build/components/Combobox/Combobox.utils.test.d.ts +1 -0
- package/build/components/Combobox/Combobox.utils.test.js +27 -0
- package/build/components/DatePicker/DatePickerHeader/DatePickerNextButton.js +2 -2
- package/build/components/DatePicker/DatePickerHeader/DatePickerPrevButton.js +2 -2
- package/build/components/DatePicker/DatePickerHeader/DatePickerSelectors.js +2 -2
- package/build/components/DatePicker/utils.test.d.ts +1 -0
- package/build/components/DatePicker/utils.test.js +191 -0
- package/build/components/DatePickerInput/DatePickerInput.js +1 -8
- package/build/components/DatePickerInput/DatePickerInput.utils.d.ts +2 -0
- package/build/components/DatePickerInput/DatePickerInput.utils.js +8 -0
- package/build/components/DatePickerInput/DatePickerInput.utils.test.d.ts +1 -0
- package/build/components/DatePickerInput/DatePickerInput.utils.test.js +22 -0
- package/build/components/ExpandableCard/ExpandableCardIcon.js +2 -2
- package/build/components/Helper/HelperIcon.js +2 -2
- package/build/components/IconButton/IconButtonIcon.js +4 -4
- package/build/components/List/ListAction/ListActionTrailingIcon.js +2 -2
- package/build/components/List/ListItem/ListItemIcon.js +2 -2
- package/build/components/Modal/Modal.js +3 -1
- package/build/components/Modal/Modal.shared.types.d.ts +1 -1
- package/build/components/Modal/Modal.web.js +3 -1
- package/build/components/NavModal/NavModal.js +3 -1
- package/build/components/PillGroup/PillGroup.d.ts +1 -1
- package/build/components/PillGroup/PillGroup.js +4 -2
- package/build/components/PillGroup/PillGroup.props.d.ts +10 -0
- package/build/components/Radio/RadioGroup.d.ts +1 -1
- package/build/components/Radio/RadioGroup.js +5 -2
- package/build/components/Radio/RadioGroup.props.d.ts +4 -0
- package/build/components/RadioCard/RadioCard.d.ts +5 -24
- package/build/components/RadioCard/RadioCard.js +5 -1
- package/build/components/RadioCard/RadioCardGroup.props.d.ts +4 -0
- package/build/components/Rating/Rating.d.ts +1 -1
- package/build/components/Rating/Rating.js +3 -2
- package/build/components/Rating/Rating.props.d.ts +5 -0
- package/build/components/SegmentedControl/SegmentedControl.js +2 -2
- package/build/components/Select/Select.js +2 -3
- package/build/components/Select/Select.utils.d.ts +2 -0
- package/build/components/Select/Select.utils.js +1 -0
- package/build/components/Select/Select.utils.test.d.ts +1 -0
- package/build/components/Select/Select.utils.test.js +21 -0
- package/build/components/StepperInput/StepperInput.js +1 -62
- package/build/components/StepperInput/StepperInput.utils.d.ts +6 -0
- package/build/components/StepperInput/StepperInput.utils.js +62 -0
- package/build/components/StepperInput/StepperInput.utils.test.d.ts +1 -0
- package/build/components/StepperInput/StepperInput.utils.test.js +99 -0
- package/build/components/Switch/Switch.js +10 -8
- package/build/components/Switch/Switch.props.d.ts +11 -1
- package/build/components/Switch/Switch.web.js +10 -8
- package/build/components/TimePickerInput/TimePickerInput.js +1 -8
- package/build/components/TimePickerInput/TimePickerInput.utils.d.ts +3 -0
- package/build/components/TimePickerInput/TimePickerInput.utils.js +8 -0
- package/build/components/TimePickerInput/TimePickerInput.utils.test.d.ts +1 -0
- package/build/components/TimePickerInput/TimePickerInput.utils.test.js +20 -0
- package/build/components/Toast/ToastItem.js +2 -2
- package/build/components/ToggleButton/ToggleButtonRoot.js +1 -1
- package/build/components/ToggleButtonCard/ToggleButtonCard.d.ts +5 -1
- package/build/components/ToggleButtonCard/ToggleButtonCard.js +5 -1
- package/build/components/ToggleButtonCard/ToggleButtonCardGroup.props.d.ts +4 -0
- package/build/tokens/components/dark/chip.d.ts +14 -0
- package/build/tokens/components/dark/chip.js +13 -0
- package/build/tokens/components/dark/icon.d.ts +26 -0
- package/build/tokens/components/dark/icon.js +25 -0
- package/build/tokens/components/dark/index.d.ts +2 -0
- package/build/tokens/components/dark/index.js +2 -0
- package/build/tokens/components/light/chip.d.ts +14 -0
- package/build/tokens/components/light/chip.js +13 -0
- package/build/tokens/components/light/icon.d.ts +26 -0
- package/build/tokens/components/light/icon.js +25 -0
- package/build/tokens/components/light/index.d.ts +2 -0
- package/build/tokens/components/light/index.js +2 -0
- package/build/tokens/semantic-dark.d.ts +4 -4
- package/build/tokens/semantic-dark.js +4 -4
- package/build/tokens/semantic-light.d.ts +4 -4
- package/build/tokens/semantic-light.js +4 -4
- package/build/utils/formatThousands.test.d.ts +1 -0
- package/build/utils/formatThousands.test.js +31 -0
- package/build/utils/getFlattenedColorValue.test.d.ts +1 -0
- package/build/utils/getFlattenedColorValue.test.js +21 -0
- package/build/utils/getInitials.test.d.ts +1 -0
- package/build/utils/getInitials.test.js +23 -0
- package/build/utils/hexWithOpacity.test.d.ts +1 -0
- package/build/utils/hexWithOpacity.test.js +22 -0
- package/build/utils/isEqual.test.d.ts +1 -0
- package/build/utils/isEqual.test.js +44 -0
- package/build/utils/themeValueHelpers.test.d.ts +1 -0
- package/build/utils/themeValueHelpers.test.js +82 -0
- package/package.json +23 -7
- package/{src/components/Accordion/Accordion.docs.mdx → public/llms/components/accordion.md} +62 -97
- package/{src/components/Alert/Alert.docs.mdx → public/llms/components/alert.md} +46 -49
- package/{src/components/Avatar/Avatar.docs.mdx → public/llms/components/avatar.md} +18 -50
- package/{src/components/Badge/Badge.docs.mdx → public/llms/components/badge.md} +56 -38
- package/{src/components/Banner/Banner.docs.mdx → public/llms/components/banner.md} +487 -40
- package/{src/components/BodyText/BodyText.docs.mdx → public/llms/components/body-text.md} +32 -25
- package/{src/components/BottomSheet/BottomSheet.docs.mdx → public/llms/components/bottom-sheet.md} +25 -33
- package/{src/components/Box/Box.docs.mdx → public/llms/components/box.md} +7 -21
- package/{src/components/Button/Button.docs.mdx → public/llms/components/button.md} +118 -109
- package/{src/components/Card/Card.docs.mdx → public/llms/components/card.md} +281 -47
- package/{src/components/Carousel/Carousel.docs.mdx → public/llms/components/carousel.md} +14 -92
- package/public/llms/components/center.md +24 -0
- package/{src/components/Checkbox/Checkbox.docs.mdx → public/llms/components/checkbox.md} +114 -155
- package/{src/components/Combobox/Combobox.docs.mdx → public/llms/components/combobox.md} +53 -47
- package/{src/components/Container/Container.docs.mdx → public/llms/components/container.md} +59 -26
- package/{src/components/CurrencyInput/CurrencyInput.docs.mdx → public/llms/components/currency-input.md} +48 -44
- package/{src/components/DateInput/DateInput.docs.mdx → public/llms/components/date-input.md} +162 -29
- package/{src/components/DatePickerInput/DatePickerInput.docs.mdx → public/llms/components/date-picker-input.md} +11 -51
- package/{src/components/DatePicker/DatePicker.docs.mdx → public/llms/components/date-picker.md} +49 -26
- package/{src/components/DescriptionList/DescriptionList.docs.mdx → public/llms/components/description-list.md} +64 -31
- package/{src/components/DetailText/DetailText.docs.mdx → public/llms/components/detail-text.md} +47 -25
- package/{src/components/Divider/Divider.docs.mdx → public/llms/components/divider.md} +10 -22
- package/{src/components/ExpandableCard/ExpandableCard.docs.mdx → public/llms/components/expandable-card.md} +213 -28
- package/{src/components/Expandable/Expandable.docs.mdx → public/llms/components/expandable.md} +165 -21
- package/{src/components/Flex/Flex.docs.mdx → public/llms/components/flex.md} +18 -24
- package/{src/components/FormField/FormField.docs.mdx → public/llms/components/form-field.md} +57 -109
- package/{src/components/Grid/Grid.docs.mdx → public/llms/components/grid.md} +15 -79
- package/{src/components/Heading/Heading.docs.mdx → public/llms/components/heading.md} +32 -21
- package/{src/components/HighlightBanner/HighlightBanner.docs.mdx → public/llms/components/highlight-banner.md} +204 -41
- package/{src/components/HTMLElements/Lists.docs.mdx → public/llms/components/html-elements/lists.md} +20 -43
- package/{src/components/IconButton/IconButton.docs.mdx → public/llms/components/icon-button.md} +134 -32
- package/{src/components/IconContainer/IconContainer.docs.mdx → public/llms/components/icon-container.md} +44 -35
- package/{src/components/Icon/Icon.docs.mdx → public/llms/components/icon.md} +6 -30
- package/public/llms/components/indicator-icon-button.md +138 -0
- package/{src/components/InlineLink/InlineLink.docs.mdx → public/llms/components/inline-link.md} +7 -26
- package/{src/components/Input/Input.docs.mdx → public/llms/components/input.md} +73 -75
- package/{src/components/Link/Link.docs.mdx → public/llms/components/link.md} +5 -20
- package/{src/components/List/List.docs.mdx → public/llms/components/list.md} +192 -127
- package/{src/components/Menu/Menu.docs.mdx → public/llms/components/menu.md} +52 -29
- package/{src/components/Modal/Modal.docs.mdx → public/llms/components/modal.md} +160 -64
- package/{src/components/NavModal/NavModal.docs.mdx → public/llms/components/nav-modal.md} +81 -25
- package/{src/components/Pagination/Pagination.docs.mdx → public/llms/components/pagination.md} +38 -27
- package/public/llms/components/pill-group.md +162 -0
- package/{src/components/ProgressBar/ProgressBar.docs.mdx → public/llms/components/progress-bar.md} +42 -28
- package/public/llms/components/progress-stepper.md +144 -0
- package/{src/components/RadioCard/RadioCard.docs.mdx → public/llms/components/radio-card.md} +19 -50
- package/{src/components/Radio/Radio.docs.mdx → public/llms/components/radio.md} +146 -132
- package/public/llms/components/rating.md +147 -0
- package/{src/components/Roundel/Roundel.docs.mdx → public/llms/components/roundel.md} +19 -19
- package/{src/components/SectionHeader/Sectionheader.docs.mdx → public/llms/components/section-header.md} +46 -19
- package/{src/components/SegmentedControl/SegmentedControl.docs.mdx → public/llms/components/segmented-control.md} +40 -28
- package/{src/components/Select/Select.docs.mdx → public/llms/components/select.md} +70 -57
- package/{src/components/Skeleton/Skeleton.docs.mdx → public/llms/components/skeleton.md} +5 -9
- package/{src/components/Spinner/Spinner.docs.mdx → public/llms/components/spinner.md} +22 -22
- package/{src/components/StepperInput/StepperInput.docs.mdx → public/llms/components/stepper-input.md} +102 -29
- package/{src/components/Switch/Switch.docs.mdx → public/llms/components/switch.md} +56 -60
- package/public/llms/components/table.md +408 -0
- package/{src/components/Tabs/Tabs.docs.mdx → public/llms/components/tabs.md} +176 -41
- package/{src/components/Textarea/Textarea.docs.mdx → public/llms/components/textarea.md} +7 -49
- package/{src/components/ThemedImage/ThemedImage.docs.mdx → public/llms/components/themed-image.md} +79 -14
- package/{src/components/TimePickerInput/TimePickerInput.docs.mdx → public/llms/components/time-picker-input.md} +10 -48
- package/{src/components/TimePicker/TimePicker.docs.mdx → public/llms/components/time-picker.md} +17 -20
- package/{src/components/Timeline/Timeline.docs.mdx → public/llms/components/timeline.md} +30 -73
- package/{src/components/Toast/Toast.docs.mdx → public/llms/components/toast.md} +50 -31
- package/{src/components/ToggleButtonCard/ToggleButtonCard.docs.mdx → public/llms/components/toggle-button-card.md} +34 -56
- package/{src/components/VerificationInput/VerificationInput.docs.mdx → public/llms/components/verification-input.md} +106 -21
- package/{docs/adding-shadows.mdx → public/llms/docs/adding-shadows.md} +2 -29
- package/public/llms/docs/all-components.md +3 -0
- package/{docs/dark-mode-best-practice.mdx → public/llms/docs/dark-mode-best-practice.md} +10 -139
- package/{docs/getting-started.mdx → public/llms/docs/getting-started.md} +2 -13
- package/{docs/hooks.mdx → public/llms/docs/hooks.md} +16 -13
- package/{docs/introduction.mdx → public/llms/docs/introduction.md} +6 -12
- package/{docs/layout-components.docs.mdx → public/llms/docs/layout-components.md} +59 -26
- package/{docs/styling.mdx → public/llms/docs/styling.md} +21 -17
- package/{docs/theme-tokens.mdx → public/llms/docs/theme-tokens.md} +23 -18
- package/public/llms.txt +123 -0
- package/scripts/init-ai.js +157 -0
- package/.storybook/main.ts +0 -81
- package/.storybook/manager.ts +0 -11
- package/.storybook/preview.tsx +0 -174
- package/.storybook/prism-setup.ts +0 -104
- package/.storybook/vitest.setup.ts +0 -31
- package/.turbo/turbo-build.log +0 -1
- package/CHANGELOG.md +0 -2052
- package/chromatic.config.json +0 -6
- package/docs/all-components.mdx +0 -19
- package/docs/assets/bank-logo.png +0 -0
- package/docs/assets/bank-logo1.png +0 -0
- package/docs/assets/modal-android.mp4 +0 -0
- package/docs/assets/modal-ios.mp4 +0 -0
- package/docs/assets/pigs.png +0 -0
- package/docs/assets/toast-ios.MP4 +0 -0
- package/docs/changelog.mdx +0 -2069
- package/docs/components/AdvancedInputExample.tsx +0 -39
- package/docs/components/AllComponents.web.tsx +0 -1005
- package/docs/components/BackToTopButton.tsx +0 -58
- package/docs/components/BadgeList.tsx +0 -30
- package/docs/components/DocComponentWrap.tsx +0 -7
- package/docs/components/InputShadowExample.tsx +0 -19
- package/docs/components/NextPrevPage.tsx +0 -54
- package/docs/components/SwitchExample.tsx +0 -13
- package/docs/components/SwitchList.tsx +0 -52
- package/docs/components/UsageWrap.tsx +0 -21
- package/docs/components/VariantTitle.tsx +0 -40
- package/docs/components/ViewFigmaButton.tsx +0 -43
- package/docs/components/ViewWrap.tsx +0 -32
- package/docs/components/index.ts +0 -13
- package/docs/heplers/addReactNativePrefix.ts +0 -8
- package/docs/heplers/index.ts +0 -1
- package/docs/llm-docs/unistyles-llms-full.txt +0 -9135
- package/docs/llm-docs/unistyles-llms-small.txt +0 -247
- package/eslint.config.js +0 -35
- package/figma.config.json +0 -11
- package/scripts/copyChangelog.js +0 -57
- package/scripts/copyTokens.js +0 -96
- package/src/components/Accordion/Accordion.context.tsx +0 -13
- package/src/components/Accordion/Accordion.figma.tsx +0 -21
- package/src/components/Accordion/Accordion.props.ts +0 -43
- package/src/components/Accordion/Accordion.stories.tsx +0 -118
- package/src/components/Accordion/Accordion.tsx +0 -127
- package/src/components/Accordion/AccordionContent.tsx +0 -44
- package/src/components/Accordion/AccordionContentText.tsx +0 -10
- package/src/components/Accordion/AccordionHeader.tsx +0 -18
- package/src/components/Accordion/AccordionIcon.tsx +0 -11
- package/src/components/Accordion/AccordionItem.context.tsx +0 -11
- package/src/components/Accordion/AccordionItem.figma.tsx +0 -27
- package/src/components/Accordion/AccordionItem.props.ts +0 -20
- package/src/components/Accordion/AccordionItemRoot.tsx +0 -27
- package/src/components/Accordion/AccordionRoot.tsx +0 -35
- package/src/components/Accordion/AccordionTitleText.tsx +0 -19
- package/src/components/Accordion/AccordionTrigger.tsx +0 -54
- package/src/components/Accordion/index.ts +0 -10
- package/src/components/Alert/Alert.context.ts +0 -8
- package/src/components/Alert/Alert.figma.tsx +0 -47
- package/src/components/Alert/Alert.props.ts +0 -67
- package/src/components/Alert/Alert.stories.tsx +0 -87
- package/src/components/Alert/Alert.tsx +0 -109
- package/src/components/Alert/AlertCloseButton.tsx +0 -54
- package/src/components/Alert/AlertContent.tsx +0 -22
- package/src/components/Alert/AlertIcon.tsx +0 -54
- package/src/components/Alert/AlertIconButton.tsx +0 -49
- package/src/components/Alert/AlertLink.tsx +0 -60
- package/src/components/Alert/AlertText.tsx +0 -39
- package/src/components/Alert/AlertTitle.tsx +0 -39
- package/src/components/Alert/index.ts +0 -8
- package/src/components/Avatar/Avatar.figma.tsx +0 -23
- package/src/components/Avatar/Avatar.props.ts +0 -31
- package/src/components/Avatar/Avatar.stories.tsx +0 -76
- package/src/components/Avatar/Avatar.tsx +0 -134
- package/src/components/Avatar/index.ts +0 -2
- package/src/components/Badge/Badge.context.ts +0 -11
- package/src/components/Badge/Badge.figma.tsx +0 -47
- package/src/components/Badge/Badge.props.ts +0 -26
- package/src/components/Badge/Badge.stories.tsx +0 -184
- package/src/components/Badge/Badge.tsx +0 -300
- package/src/components/Badge/BadgeIcon.tsx +0 -158
- package/src/components/Badge/BadgeText.tsx +0 -166
- package/src/components/Badge/index.ts +0 -3
- package/src/components/Banner/Banner.context.ts +0 -11
- package/src/components/Banner/Banner.figma.tsx +0 -23
- package/src/components/Banner/Banner.props.ts +0 -99
- package/src/components/Banner/Banner.stories.tsx +0 -650
- package/src/components/Banner/Banner.tsx +0 -337
- package/src/components/Banner/BannerIllustration.figma.tsx +0 -30
- package/src/components/Banner/BannerIllustration.tsx +0 -58
- package/src/components/Banner/BannerImage.tsx +0 -63
- package/src/components/Banner/index.ts +0 -4
- package/src/components/BodyText/BodyText.props.ts +0 -10
- package/src/components/BodyText/BodyText.stories.tsx +0 -147
- package/src/components/BodyText/BodyText.tsx +0 -144
- package/src/components/BodyText/index.ts +0 -2
- package/src/components/BottomSheet/BottomSheet.context.ts +0 -15
- package/src/components/BottomSheet/BottomSheet.props.ts +0 -49
- package/src/components/BottomSheet/BottomSheet.stories.tsx +0 -335
- package/src/components/BottomSheet/BottomSheet.tsx +0 -71
- package/src/components/BottomSheet/BottomSheetBackdrop.tsx +0 -29
- package/src/components/BottomSheet/BottomSheetFlatList.tsx +0 -65
- package/src/components/BottomSheet/BottomSheetHandle.tsx +0 -48
- package/src/components/BottomSheet/BottomSheetModal.figma.tsx +0 -20
- package/src/components/BottomSheet/BottomSheetModal.tsx +0 -70
- package/src/components/BottomSheet/BottomSheetModalProvider.tsx +0 -33
- package/src/components/BottomSheet/BottomSheetScrollView.tsx +0 -74
- package/src/components/BottomSheet/BottomSheetView.tsx +0 -67
- package/src/components/BottomSheet/index.ts +0 -20
- package/src/components/BottomSheet/useBottomSheetLogic.tsx +0 -53
- package/src/components/Box/Box.props.ts +0 -13
- package/src/components/Box/Box.stories.tsx +0 -70
- package/src/components/Box/Box.tsx +0 -107
- package/src/components/Box/index.ts +0 -1
- package/src/components/Button/Button.context.ts +0 -13
- package/src/components/Button/Button.figma.tsx +0 -132
- package/src/components/Button/Button.props.tsx +0 -84
- package/src/components/Button/Button.stories.tsx +0 -293
- package/src/components/Button/Button.tsx +0 -83
- package/src/components/Button/ButtonGroup.context.ts +0 -5
- package/src/components/Button/ButtonGroup.tsx +0 -25
- package/src/components/Button/ButtonGroupRoot.tsx +0 -85
- package/src/components/Button/ButtonIcon.tsx +0 -141
- package/src/components/Button/ButtonRoot.tsx +0 -451
- package/src/components/Button/ButtonSpinner.tsx +0 -60
- package/src/components/Button/ButtonText.tsx +0 -134
- package/src/components/Button/index.ts +0 -3
- package/src/components/Card/Card.context.ts +0 -19
- package/src/components/Card/Card.figma.tsx +0 -29
- package/src/components/Card/Card.props.ts +0 -34
- package/src/components/Card/Card.stories.tsx +0 -370
- package/src/components/Card/Card.tsx +0 -10
- package/src/components/Card/CardAction/CardAction.context.ts +0 -22
- package/src/components/Card/CardAction/CardAction.figma.tsx +0 -44
- package/src/components/Card/CardAction/CardAction.props.ts +0 -86
- package/src/components/Card/CardAction/CardAction.stories.tsx +0 -412
- package/src/components/Card/CardAction/CardAction.tsx +0 -10
- package/src/components/Card/CardAction/CardActionContent.tsx +0 -20
- package/src/components/Card/CardAction/CardActionHelperText.tsx +0 -21
- package/src/components/Card/CardAction/CardActionIcon.tsx +0 -32
- package/src/components/Card/CardAction/CardActionLeadingContent.tsx +0 -9
- package/src/components/Card/CardAction/CardActionRoot.tsx +0 -270
- package/src/components/Card/CardAction/CardActionText.tsx +0 -17
- package/src/components/Card/CardAction/CardActionTrailingContent.tsx +0 -9
- package/src/components/Card/CardAction/CardActionTrailingIcon.tsx +0 -32
- package/src/components/Card/CardAction/index.ts +0 -10
- package/src/components/Card/CardActions.context.ts +0 -12
- package/src/components/Card/CardActions.tsx +0 -40
- package/src/components/Card/CardContent.tsx +0 -40
- package/src/components/Card/CardPressHandler.context.ts +0 -12
- package/src/components/Card/CardPressHandler.tsx +0 -20
- package/src/components/Card/CardRoot.tsx +0 -357
- package/src/components/Card/helpers.tsx +0 -195
- package/src/components/Card/index.ts +0 -7
- package/src/components/Carousel/Carousel.context.tsx +0 -8
- package/src/components/Carousel/Carousel.figma.tsx +0 -22
- package/src/components/Carousel/Carousel.props.ts +0 -89
- package/src/components/Carousel/Carousel.stories.tsx +0 -317
- package/src/components/Carousel/Carousel.tsx +0 -448
- package/src/components/Carousel/CarouselControlItem.tsx +0 -87
- package/src/components/Carousel/CarouselControls.tsx +0 -150
- package/src/components/Carousel/CarouselItem.tsx +0 -68
- package/src/components/Carousel/index.ts +0 -6
- package/src/components/Center/Center.docs.mdx +0 -42
- package/src/components/Center/Center.stories.tsx +0 -30
- package/src/components/Center/Center.tsx +0 -12
- package/src/components/Center/index.ts +0 -1
- package/src/components/Checkbox/Checkbox.context.ts +0 -9
- package/src/components/Checkbox/Checkbox.figma.tsx +0 -26
- package/src/components/Checkbox/Checkbox.props.ts +0 -47
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -217
- package/src/components/Checkbox/Checkbox.tsx +0 -110
- package/src/components/Checkbox/CheckboxGroup.context.ts +0 -10
- package/src/components/Checkbox/CheckboxGroup.figma.tsx +0 -73
- package/src/components/Checkbox/CheckboxGroup.props.ts +0 -23
- package/src/components/Checkbox/CheckboxGroup.stories.tsx +0 -100
- package/src/components/Checkbox/CheckboxGroup.tsx +0 -114
- package/src/components/Checkbox/CheckboxGroupRoot.tsx +0 -36
- package/src/components/Checkbox/CheckboxGroupTextContent.tsx +0 -14
- package/src/components/Checkbox/CheckboxIcon.tsx +0 -30
- package/src/components/Checkbox/CheckboxImage.figma.tsx +0 -27
- package/src/components/Checkbox/CheckboxImage.tsx +0 -14
- package/src/components/Checkbox/CheckboxIndicator.tsx +0 -63
- package/src/components/Checkbox/CheckboxLabel.tsx +0 -14
- package/src/components/Checkbox/CheckboxRoot.tsx +0 -64
- package/src/components/Checkbox/CheckboxTextContent.tsx +0 -21
- package/src/components/Checkbox/CheckboxTileRoot.figma.tsx +0 -29
- package/src/components/Checkbox/CheckboxTileRoot.tsx +0 -50
- package/src/components/Checkbox/index.ts +0 -12
- package/src/components/Combobox/Combobox.context.ts +0 -26
- package/src/components/Combobox/Combobox.figma.tsx +0 -60
- package/src/components/Combobox/Combobox.props.ts +0 -187
- package/src/components/Combobox/Combobox.stories.tsx +0 -233
- package/src/components/Combobox/Combobox.tsx +0 -446
- package/src/components/Combobox/ComboboxOption.tsx +0 -100
- package/src/components/Combobox/index.ts +0 -9
- package/src/components/Container/Container.props.ts +0 -32
- package/src/components/Container/Container.stories.tsx +0 -290
- package/src/components/Container/Container.tsx +0 -52
- package/src/components/Container/index.tsx +0 -2
- package/src/components/CurrencyInput/CurrencyInput.figma.tsx +0 -72
- package/src/components/CurrencyInput/CurrencyInput.props.ts +0 -27
- package/src/components/CurrencyInput/CurrencyInput.stories.tsx +0 -147
- package/src/components/CurrencyInput/CurrencyInput.tsx +0 -101
- package/src/components/CurrencyInput/index.ts +0 -1
- package/src/components/DateInput/DateInput.figma.tsx +0 -88
- package/src/components/DateInput/DateInput.props.ts +0 -125
- package/src/components/DateInput/DateInput.stories.tsx +0 -314
- package/src/components/DateInput/DateInput.tsx +0 -135
- package/src/components/DateInput/DateInputSegment.tsx +0 -69
- package/src/components/DateInput/index.ts +0 -2
- package/src/components/DatePicker/DatePicker.context.ts +0 -23
- package/src/components/DatePicker/DatePicker.figma.tsx +0 -47
- package/src/components/DatePicker/DatePicker.props.ts +0 -139
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -98
- package/src/components/DatePicker/DatePicker.tsx +0 -673
- package/src/components/DatePicker/DatePickerCalendar.tsx +0 -58
- package/src/components/DatePicker/DatePickerDay.tsx +0 -302
- package/src/components/DatePicker/DatePickerDays.tsx +0 -241
- package/src/components/DatePicker/DatePickerFooter.tsx +0 -35
- package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.props.ts +0 -8
- package/src/components/DatePicker/DatePickerHeader/DatePickerMonthButton.tsx +0 -29
- package/src/components/DatePicker/DatePickerHeader/DatePickerNextButton.tsx +0 -46
- package/src/components/DatePicker/DatePickerHeader/DatePickerPrevButton.tsx +0 -46
- package/src/components/DatePicker/DatePickerHeader/DatePickerSelectors.tsx +0 -96
- package/src/components/DatePicker/DatePickerHeader/DatePickerTimeButton.tsx +0 -48
- package/src/components/DatePicker/DatePickerHeader/DatePickerYearButton.tsx +0 -50
- package/src/components/DatePicker/DatePickerHeader/index.tsx +0 -64
- package/src/components/DatePicker/DatePickerMonths.tsx +0 -101
- package/src/components/DatePicker/DatePickerWeekdays.tsx +0 -49
- package/src/components/DatePicker/DatePickerYears.tsx +0 -119
- package/src/components/DatePicker/enums.ts +0 -14
- package/src/components/DatePicker/index.ts +0 -15
- package/src/components/DatePicker/polyfill.ts +0 -21
- package/src/components/DatePicker/utils.ts +0 -549
- package/src/components/DatePickerInput/DatePickerInput.figma.tsx +0 -34
- package/src/components/DatePickerInput/DatePickerInput.props.ts +0 -56
- package/src/components/DatePickerInput/DatePickerInput.stories.tsx +0 -178
- package/src/components/DatePickerInput/DatePickerInput.tsx +0 -277
- package/src/components/DatePickerInput/DatePickerInputDoneButton.tsx +0 -42
- package/src/components/DatePickerInput/DatePickerInputDoneButton.web.tsx +0 -7
- package/src/components/DatePickerInput/index.ts +0 -2
- package/src/components/DescriptionList/DescriptionList.context.ts +0 -18
- package/src/components/DescriptionList/DescriptionList.figma.tsx +0 -47
- package/src/components/DescriptionList/DescriptionList.props.ts +0 -14
- package/src/components/DescriptionList/DescriptionList.stories.tsx +0 -172
- package/src/components/DescriptionList/DescriptionList.tsx +0 -54
- package/src/components/DescriptionList/DescriptionListItem.figma.tsx +0 -42
- package/src/components/DescriptionList/DescriptionListItem.props.ts +0 -15
- package/src/components/DescriptionList/DescriptionListItem.tsx +0 -106
- package/src/components/DescriptionList/index.ts +0 -4
- package/src/components/DetailText/DetailText.props.ts +0 -8
- package/src/components/DetailText/DetailText.stories.tsx +0 -148
- package/src/components/DetailText/DetailText.tsx +0 -147
- package/src/components/DetailText/index.ts +0 -1
- package/src/components/Divider/Divider.figma.tsx +0 -12
- package/src/components/Divider/Divider.props.ts +0 -19
- package/src/components/Divider/Divider.stories.tsx +0 -60
- package/src/components/Divider/Divider.tsx +0 -240
- package/src/components/Divider/index.ts +0 -1
- package/src/components/Expandable/Expandable.props.ts +0 -46
- package/src/components/Expandable/Expandable.stories.tsx +0 -284
- package/src/components/Expandable/Expandable.tsx +0 -92
- package/src/components/Expandable/index.ts +0 -2
- package/src/components/ExpandableCard/ExpandableCard.figma.tsx +0 -49
- package/src/components/ExpandableCard/ExpandableCard.props.ts +0 -108
- package/src/components/ExpandableCard/ExpandableCard.stories.tsx +0 -376
- package/src/components/ExpandableCard/ExpandableCard.tsx +0 -84
- package/src/components/ExpandableCard/ExpandableCardContent.tsx +0 -21
- package/src/components/ExpandableCard/ExpandableCardExpandedContent.tsx +0 -42
- package/src/components/ExpandableCard/ExpandableCardGroup.figma.tsx +0 -40
- package/src/components/ExpandableCard/ExpandableCardGroup.props.ts +0 -36
- package/src/components/ExpandableCard/ExpandableCardGroup.tsx +0 -42
- package/src/components/ExpandableCard/ExpandableCardHelperText.tsx +0 -21
- package/src/components/ExpandableCard/ExpandableCardIcon.tsx +0 -32
- package/src/components/ExpandableCard/ExpandableCardLeadingContent.tsx +0 -9
- package/src/components/ExpandableCard/ExpandableCardText.tsx +0 -14
- package/src/components/ExpandableCard/ExpandableCardTrailingContent.tsx +0 -9
- package/src/components/ExpandableCard/ExpandableCardTrailingIcon.tsx +0 -30
- package/src/components/ExpandableCard/ExpandableCardTrigger.props.ts +0 -76
- package/src/components/ExpandableCard/ExpandableCardTrigger.tsx +0 -9
- package/src/components/ExpandableCard/ExpandableCardTriggerRoot.tsx +0 -173
- package/src/components/ExpandableCard/index.ts +0 -14
- package/src/components/Flex/Flex.props.ts +0 -31
- package/src/components/Flex/Flex.stories.tsx +0 -78
- package/src/components/Flex/Flex.tsx +0 -46
- package/src/components/Flex/index.ts +0 -1
- package/src/components/FormField/FormFielInvalidIcon.tsx +0 -11
- package/src/components/FormField/FormField.context.ts +0 -11
- package/src/components/FormField/FormField.figma.tsx +0 -23
- package/src/components/FormField/FormField.props.ts +0 -20
- package/src/components/FormField/FormField.stories.tsx +0 -134
- package/src/components/FormField/FormField.tsx +0 -123
- package/src/components/FormField/FormFieldHelper.tsx +0 -23
- package/src/components/FormField/FormFieldInvalid.tsx +0 -33
- package/src/components/FormField/FormFieldLabel.tsx +0 -16
- package/src/components/FormField/FormFieldRoot.tsx +0 -21
- package/src/components/FormField/FormFieldValid.tsx +0 -33
- package/src/components/FormField/FormFieldValidIcon.tsx +0 -11
- package/src/components/FormField/index.ts +0 -16
- package/src/components/Grid/Grid.props.ts +0 -62
- package/src/components/Grid/Grid.stories.tsx +0 -199
- package/src/components/Grid/Grid.tsx +0 -146
- package/src/components/Grid/index.ts +0 -2
- package/src/components/HTMLElements/ListItem.tsx +0 -33
- package/src/components/HTMLElements/OrderedList.stories.tsx +0 -86
- package/src/components/HTMLElements/OrderedList.tsx +0 -98
- package/src/components/HTMLElements/UnorderedList.stories.tsx +0 -110
- package/src/components/HTMLElements/UnorderedList.tsx +0 -92
- package/src/components/HTMLElements/index.ts +0 -3
- package/src/components/Heading/Heading.props.ts +0 -8
- package/src/components/Heading/Heading.stories.tsx +0 -128
- package/src/components/Heading/Heading.tsx +0 -193
- package/src/components/Heading/index.ts +0 -1
- package/src/components/Helper/Helper.props.ts +0 -24
- package/src/components/Helper/Helper.tsx +0 -66
- package/src/components/Helper/HelperContext.ts +0 -6
- package/src/components/Helper/HelperIcon.tsx +0 -44
- package/src/components/Helper/HelperText.figma.tsx +0 -23
- package/src/components/Helper/HelperText.tsx +0 -46
- package/src/components/Helper/index.ts +0 -3
- package/src/components/HighlightBanner/HighlightBanner.figma.tsx +0 -46
- package/src/components/HighlightBanner/HighlightBanner.props.ts +0 -29
- package/src/components/HighlightBanner/HighlightBanner.stories.tsx +0 -314
- package/src/components/HighlightBanner/HighlightBanner.tsx +0 -127
- package/src/components/HighlightBanner/HighlightBannerImage.tsx +0 -20
- package/src/components/HighlightBanner/index.ts +0 -3
- package/src/components/Icon/Icon.props.ts +0 -17
- package/src/components/Icon/Icon.stories.tsx +0 -44
- package/src/components/Icon/Icon.tsx +0 -52
- package/src/components/Icon/index.tsx +0 -2
- package/src/components/IconButton/IconButton.context.ts +0 -13
- package/src/components/IconButton/IconButton.figma.tsx +0 -45
- package/src/components/IconButton/IconButton.props.ts +0 -45
- package/src/components/IconButton/IconButton.stories.tsx +0 -271
- package/src/components/IconButton/IconButton.tsx +0 -37
- package/src/components/IconButton/IconButtonIcon.tsx +0 -156
- package/src/components/IconButton/IconButtonRoot.tsx +0 -478
- package/src/components/IconButton/IconButtonSpinner.tsx +0 -68
- package/src/components/IconButton/index.tsx +0 -2
- package/src/components/IconContainer/IconContainer.figma.tsx +0 -44
- package/src/components/IconContainer/IconContainer.props.ts +0 -17
- package/src/components/IconContainer/IconContainer.stories.tsx +0 -135
- package/src/components/IconContainer/IconContainer.tsx +0 -178
- package/src/components/IconContainer/index.tsx +0 -2
- package/src/components/Icons/CircleIcon.tsx +0 -21
- package/src/components/Icons/index.ts +0 -1
- package/src/components/IndicatorIconButton/IndicatorIconButton.docs.mdx +0 -85
- package/src/components/IndicatorIconButton/IndicatorIconButton.figma.tsx +0 -16
- package/src/components/IndicatorIconButton/IndicatorIconButton.props.ts +0 -12
- package/src/components/IndicatorIconButton/IndicatorIconButton.stories.tsx +0 -150
- package/src/components/IndicatorIconButton/IndicatorIconButton.tsx +0 -36
- package/src/components/IndicatorIconButton/index.tsx +0 -2
- package/src/components/InlineLink/InlineLink.context.ts +0 -10
- package/src/components/InlineLink/InlineLink.props.ts +0 -10
- package/src/components/InlineLink/InlineLink.stories.tsx +0 -91
- package/src/components/InlineLink/InlineLink.tsx +0 -26
- package/src/components/InlineLink/InlineLinkRoot.tsx +0 -87
- package/src/components/InlineLink/index.ts +0 -3
- package/src/components/Input/Input.context.ts +0 -6
- package/src/components/Input/Input.figma.tsx +0 -123
- package/src/components/Input/Input.props.ts +0 -118
- package/src/components/Input/Input.stories.tsx +0 -235
- package/src/components/Input/Input.tsx +0 -215
- package/src/components/Input/InputField.tsx +0 -75
- package/src/components/Input/InputIcon.tsx +0 -30
- package/src/components/Input/InputRoot.tsx +0 -89
- package/src/components/Input/InputSlot.tsx +0 -32
- package/src/components/Input/index.ts +0 -1
- package/src/components/Label/Label.figma.tsx +0 -24
- package/src/components/Label/Label.props.ts +0 -9
- package/src/components/Label/Label.tsx +0 -44
- package/src/components/Label/index.ts +0 -1
- package/src/components/Link/Link.context.ts +0 -10
- package/src/components/Link/Link.figma.tsx +0 -35
- package/src/components/Link/Link.props.ts +0 -18
- package/src/components/Link/Link.stories.tsx +0 -75
- package/src/components/Link/Link.tsx +0 -44
- package/src/components/Link/LinkIcon.tsx +0 -60
- package/src/components/Link/LinkRoot.tsx +0 -65
- package/src/components/Link/LinkText.tsx +0 -59
- package/src/components/Link/index.ts +0 -4
- package/src/components/List/List.context.ts +0 -16
- package/src/components/List/List.figma.tsx +0 -45
- package/src/components/List/List.props.ts +0 -13
- package/src/components/List/List.stories.tsx +0 -535
- package/src/components/List/List.tsx +0 -109
- package/src/components/List/ListAction/ListAction.figma.tsx +0 -21
- package/src/components/List/ListAction/ListAction.props.ts +0 -10
- package/src/components/List/ListAction/ListAction.tsx +0 -165
- package/src/components/List/ListAction/ListActionContent.tsx +0 -21
- package/src/components/List/ListAction/ListActionText.tsx +0 -14
- package/src/components/List/ListAction/ListActionTrailingContent.tsx +0 -9
- package/src/components/List/ListAction/ListActionTrailingIcon.tsx +0 -33
- package/src/components/List/ListAction/index.ts +0 -6
- package/src/components/List/ListItem/ListItem.context.ts +0 -11
- package/src/components/List/ListItem/ListItem.figma.tsx +0 -56
- package/src/components/List/ListItem/ListItem.props.ts +0 -38
- package/src/components/List/ListItem/ListItem.tsx +0 -10
- package/src/components/List/ListItem/ListItemContent.tsx +0 -21
- package/src/components/List/ListItem/ListItemHeading.tsx +0 -20
- package/src/components/List/ListItem/ListItemHelperText.tsx +0 -20
- package/src/components/List/ListItem/ListItemIcon.tsx +0 -32
- package/src/components/List/ListItem/ListItemLeadingContent.figma.tsx +0 -29
- package/src/components/List/ListItem/ListItemLeadingContent.tsx +0 -9
- package/src/components/List/ListItem/ListItemRoot.tsx +0 -221
- package/src/components/List/ListItem/ListItemTrailingContent.figma.tsx +0 -27
- package/src/components/List/ListItem/ListItemTrailingContent.tsx +0 -9
- package/src/components/List/ListItem/ListItemTrailingIcon.tsx +0 -31
- package/src/components/List/ListItem/index.ts +0 -9
- package/src/components/List/index.ts +0 -4
- package/src/components/Menu/Menu.context.ts +0 -15
- package/src/components/Menu/Menu.figma.tsx +0 -30
- package/src/components/Menu/Menu.props.ts +0 -20
- package/src/components/Menu/Menu.stories.tsx +0 -292
- package/src/components/Menu/Menu.tsx +0 -51
- package/src/components/Menu/MenuItem.figma.tsx +0 -39
- package/src/components/Menu/MenuItem.props.ts +0 -29
- package/src/components/Menu/MenuItem.tsx +0 -145
- package/src/components/Menu/MenuTrigger.props.ts +0 -14
- package/src/components/Menu/MenuTrigger.tsx +0 -20
- package/src/components/Menu/index.ts +0 -7
- package/src/components/Modal/Modal.figma.tsx +0 -67
- package/src/components/Modal/Modal.props.ts +0 -25
- package/src/components/Modal/Modal.shared.types.ts +0 -43
- package/src/components/Modal/Modal.stories.tsx +0 -405
- package/src/components/Modal/Modal.tsx +0 -411
- package/src/components/Modal/Modal.web.tsx +0 -238
- package/src/components/Modal/ModalImage.tsx +0 -20
- package/src/components/Modal/index.ts +0 -3
- package/src/components/NavModal/NavModal.figma.tsx +0 -13
- package/src/components/NavModal/NavModal.props.ts +0 -31
- package/src/components/NavModal/NavModal.stories.tsx +0 -160
- package/src/components/NavModal/NavModal.tsx +0 -426
- package/src/components/NavModal/index.ts +0 -2
- package/src/components/Pagination/Pagination.figma.tsx +0 -20
- package/src/components/Pagination/Pagination.props.ts +0 -28
- package/src/components/Pagination/Pagination.stories.tsx +0 -88
- package/src/components/Pagination/Pagination.tsx +0 -248
- package/src/components/Pagination/Pagination.utils.test.ts +0 -20
- package/src/components/Pagination/Pagination.utils.ts +0 -37
- package/src/components/Pagination/index.ts +0 -2
- package/src/components/PillGroup/Pill.figma.tsx +0 -12
- package/src/components/PillGroup/Pill.props.ts +0 -13
- package/src/components/PillGroup/Pill.tsx +0 -118
- package/src/components/PillGroup/PillGroup.context.tsx +0 -12
- package/src/components/PillGroup/PillGroup.docs.mdx +0 -96
- package/src/components/PillGroup/PillGroup.figma.tsx +0 -20
- package/src/components/PillGroup/PillGroup.props.ts +0 -36
- package/src/components/PillGroup/PillGroup.stories.tsx +0 -158
- package/src/components/PillGroup/PillGroup.tsx +0 -70
- package/src/components/PillGroup/index.ts +0 -4
- package/src/components/ProgressBar/ProgressBar.figma.tsx +0 -79
- package/src/components/ProgressBar/ProgressBar.props.ts +0 -60
- package/src/components/ProgressBar/ProgressBar.stories.tsx +0 -117
- package/src/components/ProgressBar/ProgressBar.tsx +0 -74
- package/src/components/ProgressBar/ProgressBarCircular.tsx +0 -181
- package/src/components/ProgressBar/ProgressBarLinear.tsx +0 -127
- package/src/components/ProgressBar/index.ts +0 -7
- package/src/components/ProgressStepper/ProgressStep.figma.tsx +0 -19
- package/src/components/ProgressStepper/ProgressStep.tsx +0 -134
- package/src/components/ProgressStepper/ProgressStepper.docs.mdx +0 -87
- package/src/components/ProgressStepper/ProgressStepper.figma.tsx +0 -13
- package/src/components/ProgressStepper/ProgressStepper.props.ts +0 -27
- package/src/components/ProgressStepper/ProgressStepper.stories.tsx +0 -107
- package/src/components/ProgressStepper/ProgressStepper.tsx +0 -26
- package/src/components/ProgressStepper/ProgressStepperRoot.tsx +0 -32
- package/src/components/ProgressStepper/index.ts +0 -3
- package/src/components/Radio/Radio.context.ts +0 -9
- package/src/components/Radio/Radio.figma.tsx +0 -38
- package/src/components/Radio/Radio.props.ts +0 -38
- package/src/components/Radio/Radio.stories.tsx +0 -254
- package/src/components/Radio/Radio.tsx +0 -98
- package/src/components/Radio/RadioGroup.context.ts +0 -10
- package/src/components/Radio/RadioGroup.figma.tsx +0 -82
- package/src/components/Radio/RadioGroup.props.ts +0 -23
- package/src/components/Radio/RadioGroup.stories.tsx +0 -131
- package/src/components/Radio/RadioGroup.tsx +0 -113
- package/src/components/Radio/RadioGroupRoot.tsx +0 -36
- package/src/components/Radio/RadioGroupTextContent.tsx +0 -14
- package/src/components/Radio/RadioIcon.tsx +0 -37
- package/src/components/Radio/RadioImage.figma.tsx +0 -27
- package/src/components/Radio/RadioImage.tsx +0 -14
- package/src/components/Radio/RadioIndicator.tsx +0 -63
- package/src/components/Radio/RadioLabel.tsx +0 -14
- package/src/components/Radio/RadioRoot.tsx +0 -65
- package/src/components/Radio/RadioTextContent.tsx +0 -21
- package/src/components/Radio/RadioTile.figma.tsx +0 -38
- package/src/components/Radio/RadioTileRoot.tsx +0 -46
- package/src/components/Radio/index.ts +0 -6
- package/src/components/RadioCard/RadioCard.context.ts +0 -8
- package/src/components/RadioCard/RadioCard.figma.tsx +0 -24
- package/src/components/RadioCard/RadioCard.props.ts +0 -19
- package/src/components/RadioCard/RadioCard.stories.tsx +0 -45
- package/src/components/RadioCard/RadioCard.tsx +0 -62
- package/src/components/RadioCard/RadioCardGroup.context.ts +0 -16
- package/src/components/RadioCard/RadioCardGroup.props.ts +0 -36
- package/src/components/RadioCard/RadioCardGroup.stories.tsx +0 -94
- package/src/components/RadioCard/RadioCardGroup.tsx +0 -57
- package/src/components/RadioCard/RadioCardIcon.tsx +0 -33
- package/src/components/RadioCard/RadioCardIndicator.tsx +0 -63
- package/src/components/RadioCard/RadioCardLabel.tsx +0 -19
- package/src/components/RadioCard/RadioCardRoot.tsx +0 -85
- package/src/components/RadioCard/index.ts +0 -8
- package/src/components/Rating/Rating.docs.mdx +0 -217
- package/src/components/Rating/Rating.figma.tsx +0 -39
- package/src/components/Rating/Rating.props.ts +0 -28
- package/src/components/Rating/Rating.stories.tsx +0 -112
- package/src/components/Rating/Rating.tsx +0 -198
- package/src/components/Rating/Rating.utils.test.ts +0 -15
- package/src/components/Rating/Rating.utils.ts +0 -14
- package/src/components/Rating/RatingEmoji.tsx +0 -28
- package/src/components/Rating/RatingStarEmpty.tsx +0 -22
- package/src/components/Rating/RatingStarFilled.tsx +0 -27
- package/src/components/Rating/index.ts +0 -2
- package/src/components/Roundel/Roundel.figma.tsx +0 -17
- package/src/components/Roundel/Roundel.props.ts +0 -8
- package/src/components/Roundel/Roundel.stories.tsx +0 -49
- package/src/components/Roundel/Roundel.tsx +0 -51
- package/src/components/Roundel/index.ts +0 -2
- package/src/components/SectionHeader/SectionHeader.figma.tsx +0 -37
- package/src/components/SectionHeader/SectionHeader.props.ts +0 -29
- package/src/components/SectionHeader/SectionHeader.stories.tsx +0 -86
- package/src/components/SectionHeader/SectionHeader.tsx +0 -61
- package/src/components/SectionHeader/SectionHeaderHeading.tsx +0 -14
- package/src/components/SectionHeader/SectionHeaderHelperText.tsx +0 -21
- package/src/components/SectionHeader/SectionHeaderTextContent.tsx +0 -21
- package/src/components/SectionHeader/SectionHeaderTrailingContent.tsx +0 -20
- package/src/components/SectionHeader/index.ts +0 -5
- package/src/components/SegmentedControl/SegmentedControl.context.ts +0 -22
- package/src/components/SegmentedControl/SegmentedControl.figma.tsx +0 -39
- package/src/components/SegmentedControl/SegmentedControl.props.ts +0 -20
- package/src/components/SegmentedControl/SegmentedControl.stories.tsx +0 -98
- package/src/components/SegmentedControl/SegmentedControl.tsx +0 -260
- package/src/components/SegmentedControl/SegmentedControlOption.props.ts +0 -16
- package/src/components/SegmentedControl/SegmentedControlOption.tsx +0 -237
- package/src/components/SegmentedControl/index.ts +0 -4
- package/src/components/Select/Select.context.ts +0 -15
- package/src/components/Select/Select.figma.tsx +0 -56
- package/src/components/Select/Select.props.ts +0 -161
- package/src/components/Select/Select.stories.tsx +0 -290
- package/src/components/Select/Select.tsx +0 -321
- package/src/components/Select/SelectOption.figma.tsx +0 -18
- package/src/components/Select/SelectOption.tsx +0 -103
- package/src/components/Select/index.ts +0 -7
- package/src/components/Skeleton/Skeleton.props.ts +0 -11
- package/src/components/Skeleton/Skeleton.stories.tsx +0 -33
- package/src/components/Skeleton/Skeleton.tsx +0 -77
- package/src/components/Skeleton/index.ts +0 -1
- package/src/components/Spinner/Spinner.figma.tsx +0 -14
- package/src/components/Spinner/Spinner.props.ts +0 -10
- package/src/components/Spinner/Spinner.stories.tsx +0 -56
- package/src/components/Spinner/Spinner.tsx +0 -157
- package/src/components/Spinner/Spinner.web.tsx +0 -149
- package/src/components/Spinner/index.ts +0 -2
- package/src/components/StepperInput/StepperButton.tsx +0 -83
- package/src/components/StepperInput/StepperInput.figma.tsx +0 -45
- package/src/components/StepperInput/StepperInput.props.ts +0 -39
- package/src/components/StepperInput/StepperInput.stories.tsx +0 -270
- package/src/components/StepperInput/StepperInput.tsx +0 -322
- package/src/components/StepperInput/index.ts +0 -2
- package/src/components/Switch/Switch.figma.tsx +0 -16
- package/src/components/Switch/Switch.props.ts +0 -10
- package/src/components/Switch/Switch.stories.tsx +0 -80
- package/src/components/Switch/Switch.tsx +0 -209
- package/src/components/Switch/Switch.web.tsx +0 -207
- package/src/components/Switch/index.ts +0 -1
- package/src/components/Table/Table.context.tsx +0 -23
- package/src/components/Table/Table.docs.mdx +0 -239
- package/src/components/Table/Table.figma.tsx +0 -65
- package/src/components/Table/Table.props.ts +0 -65
- package/src/components/Table/Table.stories.tsx +0 -399
- package/src/components/Table/Table.tsx +0 -127
- package/src/components/Table/Table.utils.test.ts +0 -82
- package/src/components/Table/Table.utils.ts +0 -72
- package/src/components/Table/TableBody.tsx +0 -25
- package/src/components/Table/TableCell.tsx +0 -67
- package/src/components/Table/TableHeader.tsx +0 -41
- package/src/components/Table/TableHeaderCell.tsx +0 -145
- package/src/components/Table/TablePagination.tsx +0 -10
- package/src/components/Table/TableRow.tsx +0 -42
- package/src/components/Table/index.ts +0 -16
- package/src/components/Tabs/Tab.figma.tsx +0 -21
- package/src/components/Tabs/Tab.props.ts +0 -16
- package/src/components/Tabs/Tab.tsx +0 -114
- package/src/components/Tabs/TabPanel.props.ts +0 -10
- package/src/components/Tabs/TabPanel.tsx +0 -46
- package/src/components/Tabs/Tabs.context.ts +0 -26
- package/src/components/Tabs/Tabs.figma.tsx +0 -20
- package/src/components/Tabs/Tabs.props.ts +0 -21
- package/src/components/Tabs/Tabs.stories.tsx +0 -270
- package/src/components/Tabs/Tabs.tsx +0 -138
- package/src/components/Tabs/TabsList.props.ts +0 -8
- package/src/components/Tabs/TabsList.tsx +0 -194
- package/src/components/Tabs/index.ts +0 -8
- package/src/components/Textarea/Textarea.context.ts +0 -6
- package/src/components/Textarea/Textarea.figma.tsx +0 -64
- package/src/components/Textarea/Textarea.props.ts +0 -74
- package/src/components/Textarea/Textarea.stories.tsx +0 -106
- package/src/components/Textarea/Textarea.tsx +0 -207
- package/src/components/Textarea/TextareaField.tsx +0 -45
- package/src/components/Textarea/TextareaRoot.tsx +0 -83
- package/src/components/Textarea/index.ts +0 -1
- package/src/components/ThemedImage/ThemedImage.props.ts +0 -15
- package/src/components/ThemedImage/ThemedImage.stories.tsx +0 -175
- package/src/components/ThemedImage/ThemedImage.tsx +0 -34
- package/src/components/ThemedImage/index.tsx +0 -2
- package/src/components/TimePicker/TimePicker.figma.tsx +0 -29
- package/src/components/TimePicker/TimePicker.props.ts +0 -45
- package/src/components/TimePicker/TimePicker.stories.tsx +0 -85
- package/src/components/TimePicker/TimePicker.tsx +0 -150
- package/src/components/TimePicker/TimePickerView.tsx +0 -216
- package/src/components/TimePicker/TimePickerWheel.tsx +0 -161
- package/src/components/TimePicker/TimePickerWheel.web.tsx +0 -217
- package/src/components/TimePicker/index.ts +0 -8
- package/src/components/TimePickerInput/TimePickerInput.figma.tsx +0 -34
- package/src/components/TimePickerInput/TimePickerInput.props.ts +0 -55
- package/src/components/TimePickerInput/TimePickerInput.stories.tsx +0 -175
- package/src/components/TimePickerInput/TimePickerInput.tsx +0 -283
- package/src/components/TimePickerInput/TimePickerInputDoneButton.tsx +0 -42
- package/src/components/TimePickerInput/TimePickerInputDoneButton.web.tsx +0 -7
- package/src/components/TimePickerInput/index.ts +0 -2
- package/src/components/Timeline/Timeline.figma.tsx +0 -89
- package/src/components/Timeline/Timeline.props.ts +0 -51
- package/src/components/Timeline/Timeline.stories.tsx +0 -102
- package/src/components/Timeline/Timeline.tsx +0 -48
- package/src/components/Timeline/TimelineItem.tsx +0 -293
- package/src/components/Timeline/index.ts +0 -9
- package/src/components/Toast/Toast.context.tsx +0 -139
- package/src/components/Toast/Toast.props.ts +0 -38
- package/src/components/Toast/Toast.stories.tsx +0 -385
- package/src/components/Toast/ToastItem.figma.tsx +0 -15
- package/src/components/Toast/ToastItem.tsx +0 -205
- package/src/components/Toast/index.ts +0 -3
- package/src/components/ToggleButton/ToggleButton.props.tsx +0 -7
- package/src/components/ToggleButton/ToggleButton.stories.tsx +0 -35
- package/src/components/ToggleButton/ToggleButton.tsx +0 -32
- package/src/components/ToggleButton/ToggleButtonIcon.tsx +0 -47
- package/src/components/ToggleButton/ToggleButtonRoot.tsx +0 -98
- package/src/components/ToggleButton/ToggleButtonText.tsx +0 -29
- package/src/components/ToggleButton/index.ts +0 -2
- package/src/components/ToggleButtonCard/ToggleButtonCard.context.ts +0 -8
- package/src/components/ToggleButtonCard/ToggleButtonCard.figma.tsx +0 -24
- package/src/components/ToggleButtonCard/ToggleButtonCard.props.ts +0 -17
- package/src/components/ToggleButtonCard/ToggleButtonCard.stories.tsx +0 -45
- package/src/components/ToggleButtonCard/ToggleButtonCard.tsx +0 -32
- package/src/components/ToggleButtonCard/ToggleButtonCardGroup.props.ts +0 -34
- package/src/components/ToggleButtonCard/ToggleButtonCardGroup.stories.tsx +0 -85
- package/src/components/ToggleButtonCard/ToggleButtonCardGroup.tsx +0 -48
- package/src/components/ToggleButtonCard/ToggleButtonCardRoot.tsx +0 -97
- package/src/components/ToggleButtonCard/index.ts +0 -2
- package/src/components/UnstyledIconButton/UnstyledIconButton.context.ts +0 -11
- package/src/components/UnstyledIconButton/UnstyledIconButton.figma.tsx +0 -49
- package/src/components/UnstyledIconButton/UnstyledIconButton.props.ts +0 -34
- package/src/components/UnstyledIconButton/UnstyledIconButton.stories.tsx +0 -96
- package/src/components/UnstyledIconButton/UnstyledIconButton.tsx +0 -68
- package/src/components/UnstyledIconButton/UnstyledIconButtonIcon.tsx +0 -74
- package/src/components/UnstyledIconButton/UnstyledIconButtonRoot.tsx +0 -61
- package/src/components/UnstyledIconButton/UnstyledIconButtonSpinner.tsx +0 -39
- package/src/components/UnstyledIconButton/index.tsx +0 -2
- package/src/components/VerificationInput/VerificationInput.figma.tsx +0 -53
- package/src/components/VerificationInput/VerificationInput.props.ts +0 -66
- package/src/components/VerificationInput/VerificationInput.stories.tsx +0 -249
- package/src/components/VerificationInput/VerificationInput.tsx +0 -290
- package/src/components/VerificationInput/VerificationInput.utils.test.ts +0 -48
- package/src/components/VerificationInput/VerificationInput.utils.ts +0 -32
- package/src/components/VerificationInput/VerificationInputSlot.tsx +0 -170
- package/src/components/VerificationInput/index.ts +0 -7
- package/src/components/index.ts +0 -77
- package/src/core/breakpoints.ts +0 -10
- package/src/core/index.ts +0 -38
- package/src/core/themes.ts +0 -390
- package/src/hooks/index.ts +0 -8
- package/src/hooks/useBreakpointValue.ts +0 -62
- package/src/hooks/useColorMode.ts +0 -18
- package/src/hooks/useFormFieldAccessibility.test.tsx +0 -74
- package/src/hooks/useFormFieldAccessibility.ts +0 -67
- package/src/hooks/useMedia.ts +0 -31
- package/src/hooks/usePrevious.ts +0 -9
- package/src/hooks/useStyleProps.ts +0 -95
- package/src/hooks/useTheme.ts +0 -9
- package/src/hooks/useToken.ts +0 -40
- package/src/index.ts +0 -4
- package/src/legacyTokens/common/brand.ts +0 -18
- package/src/legacyTokens/common/index.ts +0 -10
- package/src/legacyTokens/common/service.ts +0 -22
- package/src/legacyTokens/dark/apple.ts +0 -30
- package/src/legacyTokens/dark/cyan.ts +0 -50
- package/src/legacyTokens/dark/gold.ts +0 -46
- package/src/legacyTokens/dark/grape.ts +0 -30
- package/src/legacyTokens/dark/green.ts +0 -42
- package/src/legacyTokens/dark/grey.ts +0 -62
- package/src/legacyTokens/dark/index.ts +0 -42
- package/src/legacyTokens/dark/pink.ts +0 -30
- package/src/legacyTokens/dark/purple.ts +0 -50
- package/src/legacyTokens/dark/red.ts +0 -42
- package/src/legacyTokens/dark/rose.ts +0 -30
- package/src/legacyTokens/index.ts +0 -14
- package/src/legacyTokens/light/apple.ts +0 -30
- package/src/legacyTokens/light/cyan.ts +0 -50
- package/src/legacyTokens/light/gold.ts +0 -46
- package/src/legacyTokens/light/grape.ts +0 -30
- package/src/legacyTokens/light/green.ts +0 -42
- package/src/legacyTokens/light/grey.ts +0 -62
- package/src/legacyTokens/light/index.ts +0 -42
- package/src/legacyTokens/light/pink.ts +0 -30
- package/src/legacyTokens/light/purple.ts +0 -50
- package/src/legacyTokens/light/red.ts +0 -42
- package/src/legacyTokens/light/rose.ts +0 -34
- package/src/tokens/README.md +0 -7
- package/src/tokens/border-radius.ts +0 -12
- package/src/tokens/border-width.ts +0 -8
- package/src/tokens/color.ts +0 -659
- package/src/tokens/components/dark/accordion.ts +0 -27
- package/src/tokens/components/dark/alert.ts +0 -23
- package/src/tokens/components/dark/avatar.ts +0 -19
- package/src/tokens/components/dark/badge.ts +0 -24
- package/src/tokens/components/dark/banner.ts +0 -53
- package/src/tokens/components/dark/bottom-navigation.ts +0 -30
- package/src/tokens/components/dark/bottom-sheet.ts +0 -16
- package/src/tokens/components/dark/breadcrumb.ts +0 -7
- package/src/tokens/components/dark/button.ts +0 -19
- package/src/tokens/components/dark/card-accordion.ts +0 -13
- package/src/tokens/components/dark/card-action.ts +0 -11
- package/src/tokens/components/dark/card-content.ts +0 -25
- package/src/tokens/components/dark/card.ts +0 -38
- package/src/tokens/components/dark/carousel-control.ts +0 -11
- package/src/tokens/components/dark/checkbox.ts +0 -42
- package/src/tokens/components/dark/date-picker.ts +0 -44
- package/src/tokens/components/dark/description-list.ts +0 -20
- package/src/tokens/components/dark/divider.ts +0 -11
- package/src/tokens/components/dark/drawer.ts +0 -29
- package/src/tokens/components/dark/expandable-card.ts +0 -11
- package/src/tokens/components/dark/form-field.ts +0 -10
- package/src/tokens/components/dark/icon-button.ts +0 -46
- package/src/tokens/components/dark/icon-container.ts +0 -25
- package/src/tokens/components/dark/illustrations.ts +0 -7
- package/src/tokens/components/dark/index.ts +0 -58
- package/src/tokens/components/dark/indicator-icon-button.ts +0 -11
- package/src/tokens/components/dark/inline-link.ts +0 -14
- package/src/tokens/components/dark/input.ts +0 -43
- package/src/tokens/components/dark/link.ts +0 -20
- package/src/tokens/components/dark/list.ts +0 -48
- package/src/tokens/components/dark/menu.ts +0 -34
- package/src/tokens/components/dark/modal.ts +0 -36
- package/src/tokens/components/dark/navigation.ts +0 -61
- package/src/tokens/components/dark/overlay.ts +0 -8
- package/src/tokens/components/dark/pagination.ts +0 -13
- package/src/tokens/components/dark/parts.ts +0 -33
- package/src/tokens/components/dark/pill.ts +0 -16
- package/src/tokens/components/dark/progress-bar.ts +0 -41
- package/src/tokens/components/dark/progress-stepper.ts +0 -24
- package/src/tokens/components/dark/radio.ts +0 -39
- package/src/tokens/components/dark/rating.ts +0 -8
- package/src/tokens/components/dark/section-header.ts +0 -10
- package/src/tokens/components/dark/segmented-control.ts +0 -19
- package/src/tokens/components/dark/select.ts +0 -45
- package/src/tokens/components/dark/skeleton.ts +0 -7
- package/src/tokens/components/dark/spinner.ts +0 -24
- package/src/tokens/components/dark/switch.ts +0 -25
- package/src/tokens/components/dark/table.ts +0 -27
- package/src/tokens/components/dark/tabs.ts +0 -25
- package/src/tokens/components/dark/time-picker.ts +0 -30
- package/src/tokens/components/dark/timeline.ts +0 -27
- package/src/tokens/components/dark/toast.ts +0 -17
- package/src/tokens/components/dark/toggle-button.ts +0 -13
- package/src/tokens/components/dark/tooltip.ts +0 -13
- package/src/tokens/components/dark/top-navigation.ts +0 -18
- package/src/tokens/components/index.ts +0 -6
- package/src/tokens/components/light/accordion.ts +0 -27
- package/src/tokens/components/light/alert.ts +0 -23
- package/src/tokens/components/light/avatar.ts +0 -19
- package/src/tokens/components/light/badge.ts +0 -24
- package/src/tokens/components/light/banner.ts +0 -53
- package/src/tokens/components/light/bottom-navigation.ts +0 -30
- package/src/tokens/components/light/bottom-sheet.ts +0 -16
- package/src/tokens/components/light/breadcrumb.ts +0 -7
- package/src/tokens/components/light/button.ts +0 -19
- package/src/tokens/components/light/card-accordion.ts +0 -13
- package/src/tokens/components/light/card-action.ts +0 -11
- package/src/tokens/components/light/card-content.ts +0 -25
- package/src/tokens/components/light/card.ts +0 -38
- package/src/tokens/components/light/carousel-control.ts +0 -11
- package/src/tokens/components/light/checkbox.ts +0 -42
- package/src/tokens/components/light/date-picker.ts +0 -44
- package/src/tokens/components/light/description-list.ts +0 -20
- package/src/tokens/components/light/divider.ts +0 -11
- package/src/tokens/components/light/drawer.ts +0 -29
- package/src/tokens/components/light/expandable-card.ts +0 -11
- package/src/tokens/components/light/form-field.ts +0 -10
- package/src/tokens/components/light/icon-button.ts +0 -46
- package/src/tokens/components/light/icon-container.ts +0 -25
- package/src/tokens/components/light/illustrations.ts +0 -7
- package/src/tokens/components/light/index.ts +0 -58
- package/src/tokens/components/light/indicator-icon-button.ts +0 -11
- package/src/tokens/components/light/inline-link.ts +0 -14
- package/src/tokens/components/light/input.ts +0 -43
- package/src/tokens/components/light/link.ts +0 -20
- package/src/tokens/components/light/list.ts +0 -48
- package/src/tokens/components/light/menu.ts +0 -34
- package/src/tokens/components/light/modal.ts +0 -36
- package/src/tokens/components/light/navigation.ts +0 -61
- package/src/tokens/components/light/overlay.ts +0 -8
- package/src/tokens/components/light/pagination.ts +0 -13
- package/src/tokens/components/light/parts.ts +0 -33
- package/src/tokens/components/light/pill.ts +0 -16
- package/src/tokens/components/light/progress-bar.ts +0 -41
- package/src/tokens/components/light/progress-stepper.ts +0 -24
- package/src/tokens/components/light/radio.ts +0 -39
- package/src/tokens/components/light/rating.ts +0 -8
- package/src/tokens/components/light/section-header.ts +0 -10
- package/src/tokens/components/light/segmented-control.ts +0 -19
- package/src/tokens/components/light/select.ts +0 -45
- package/src/tokens/components/light/skeleton.ts +0 -7
- package/src/tokens/components/light/spinner.ts +0 -24
- package/src/tokens/components/light/switch.ts +0 -25
- package/src/tokens/components/light/table.ts +0 -27
- package/src/tokens/components/light/tabs.ts +0 -25
- package/src/tokens/components/light/time-picker.ts +0 -30
- package/src/tokens/components/light/timeline.ts +0 -27
- package/src/tokens/components/light/toast.ts +0 -17
- package/src/tokens/components/light/toggle-button.ts +0 -13
- package/src/tokens/components/light/tooltip.ts +0 -13
- package/src/tokens/components/light/top-navigation.ts +0 -18
- package/src/tokens/font.ts +0 -29
- package/src/tokens/index.ts +0 -20
- package/src/tokens/layout.ts +0 -94
- package/src/tokens/letter-spacing.ts +0 -13
- package/src/tokens/line-height.ts +0 -16
- package/src/tokens/motion.ts +0 -23
- package/src/tokens/primitive.ts +0 -102
- package/src/tokens/semantic-dark.ts +0 -255
- package/src/tokens/semantic-light.ts +0 -255
- package/src/tokens/semantic.ts +0 -9
- package/src/tokens/shadow.ts +0 -52
- package/src/tokens/space.ts +0 -23
- package/src/tokens/typography.ts +0 -298
- package/src/types/index.ts +0 -6
- package/src/types/refs.ts +0 -8
- package/src/types/semanticColorValues.ts +0 -26
- package/src/types/states.ts +0 -11
- package/src/types/unistyles.ts +0 -12
- package/src/types/utilityProps.ts +0 -410
- package/src/types/values.ts +0 -81
- package/src/utils/coloursAsArray.ts +0 -65
- package/src/utils/formatThousands.ts +0 -14
- package/src/utils/getFlattenedColorValue.ts +0 -13
- package/src/utils/getInitials.ts +0 -7
- package/src/utils/getStyleValue.ts +0 -9
- package/src/utils/hasChildrenByDisplayName.ts +0 -43
- package/src/utils/hexWithOpacity.ts +0 -19
- package/src/utils/index.ts +0 -17
- package/src/utils/isEqual.ts +0 -30
- package/src/utils/isThemedImageProps.ts +0 -8
- package/src/utils/styleUtils.ts +0 -264
- package/src/utils/themeValueHelpers.ts +0 -98
- package/src/vite-env.d.ts +0 -19
- package/tsconfig.eslint.json +0 -14
- package/tsconfig.json +0 -45
- package/vitest.config.js +0 -37
- package/vitest.unit.config.ts +0 -9
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { Meta } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import { BackToTopButton, NextPrevPage } from './components';
|
|
3
|
-
|
|
4
|
-
<Meta title="Styling" />
|
|
5
|
-
<BackToTopButton />
|
|
6
|
-
|
|
7
1
|
# Styling
|
|
8
2
|
|
|
9
3
|
Hearth React Native uses [Unistyles](https://www.unistyl.es/) for styling components and exposes the library
|
|
@@ -49,6 +43,7 @@ Some of the key features of Unistyles include:
|
|
|
49
43
|
To start using Unistyles for styling your components, simply import the `StyleSheet` from Hearth React Native:
|
|
50
44
|
|
|
51
45
|
```tsx
|
|
46
|
+
// Example usage
|
|
52
47
|
import { StyleSheet, View, Text } from '@utilitywarehouse/hearth-react-native';
|
|
53
48
|
|
|
54
49
|
const MyComponent = () => {
|
|
@@ -82,6 +77,7 @@ Hearth React Native comes with a comprehensive set of design tokens that ensure
|
|
|
82
77
|
To access design tokens, create your styles using a function that receives the theme as the first parameter:
|
|
83
78
|
|
|
84
79
|
```tsx
|
|
80
|
+
// Example usage
|
|
85
81
|
import { StyleSheet, View, Text } from '@utilitywarehouse/hearth-react-native';
|
|
86
82
|
|
|
87
83
|
const MyComponent = () => {
|
|
@@ -107,13 +103,12 @@ const styles = StyleSheet.create(theme => ({
|
|
|
107
103
|
}));
|
|
108
104
|
```
|
|
109
105
|
|
|
110
|
-
### Available Design Tokens
|
|
111
|
-
|
|
112
106
|
#### Colors
|
|
113
107
|
|
|
114
108
|
The theme provides a comprehensive color palette organized by semantic meaning:
|
|
115
109
|
|
|
116
110
|
```tsx
|
|
111
|
+
// Example usage
|
|
117
112
|
const styles = StyleSheet.create(theme => ({
|
|
118
113
|
// Primary colors
|
|
119
114
|
primaryButton: {
|
|
@@ -147,6 +142,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
147
142
|
Use consistent spacing values from the design system:
|
|
148
143
|
|
|
149
144
|
```tsx
|
|
145
|
+
// Example usage
|
|
150
146
|
const styles = StyleSheet.create(theme => ({
|
|
151
147
|
container: {
|
|
152
148
|
// Use space tokens for consistent spacing
|
|
@@ -171,6 +167,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
171
167
|
Access font families, sizes, weights, and line heights:
|
|
172
168
|
|
|
173
169
|
```tsx
|
|
170
|
+
// Example usage
|
|
174
171
|
const styles = StyleSheet.create(theme => ({
|
|
175
172
|
heading: {
|
|
176
173
|
fontFamily: theme.font.family.display, // Comic Hams
|
|
@@ -198,6 +195,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
198
195
|
Use consistent border radius values:
|
|
199
196
|
|
|
200
197
|
```tsx
|
|
198
|
+
// Example usage
|
|
201
199
|
const styles = StyleSheet.create(theme => ({
|
|
202
200
|
card: {
|
|
203
201
|
borderRadius: theme.borderRadius.lg,
|
|
@@ -218,6 +216,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
218
216
|
Apply consistent shadow styles:
|
|
219
217
|
|
|
220
218
|
```tsx
|
|
219
|
+
// Example usage
|
|
221
220
|
const styles = StyleSheet.create(theme => ({
|
|
222
221
|
card: {
|
|
223
222
|
...theme.shadow.md,
|
|
@@ -236,6 +235,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
236
235
|
Create responsive layouts using the built-in breakpoint system:
|
|
237
236
|
|
|
238
237
|
```tsx
|
|
238
|
+
// Example usage
|
|
239
239
|
const styles = StyleSheet.create(theme => ({
|
|
240
240
|
container: {
|
|
241
241
|
padding: {
|
|
@@ -265,6 +265,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
265
265
|
Styles automatically adapt to the current color mode when using theme tokens:
|
|
266
266
|
|
|
267
267
|
```tsx
|
|
268
|
+
// Example usage
|
|
268
269
|
const styles = StyleSheet.create(theme => ({
|
|
269
270
|
container: {
|
|
270
271
|
// Automatically switches between light and dark mode
|
|
@@ -284,6 +285,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
284
285
|
You can also define styles that apply only in light or dark mode:
|
|
285
286
|
|
|
286
287
|
```tsx
|
|
288
|
+
// Example usage
|
|
287
289
|
const styles = StyleSheet.create(theme => ({
|
|
288
290
|
text: {
|
|
289
291
|
color: theme.isLight ? theme.color.grey[900] : theme.color.grey[100],
|
|
@@ -296,6 +298,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
296
298
|
Access theme values and device information at runtime:
|
|
297
299
|
|
|
298
300
|
```tsx
|
|
301
|
+
// Example usage
|
|
299
302
|
import { StyleSheet, UnistylesRuntime } from '@utilitywarehouse/hearth-react-native';
|
|
300
303
|
|
|
301
304
|
const styles = StyleSheet.create((theme, rt) => ({
|
|
@@ -323,6 +326,7 @@ Read more about the [Unistyles Runtime API](https://www.unistyl.es/v3/references
|
|
|
323
326
|
Use component-specific design tokens for consistent styling:
|
|
324
327
|
|
|
325
328
|
```tsx
|
|
329
|
+
// Example usage
|
|
326
330
|
const styles = StyleSheet.create(theme => ({
|
|
327
331
|
button: {
|
|
328
332
|
backgroundColor: theme.components.button.background.primary,
|
|
@@ -351,6 +355,7 @@ Unistyles provides powerful variant systems that allow you to create flexible, r
|
|
|
351
355
|
Variants allow you to define different styles based on props passed to your component:
|
|
352
356
|
|
|
353
357
|
```tsx
|
|
358
|
+
// Example usage
|
|
354
359
|
import { StyleSheet, View, Text } from '@utilitywarehouse/hearth-react-native';
|
|
355
360
|
|
|
356
361
|
interface ButtonProps {
|
|
@@ -449,6 +454,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
449
454
|
You can also use boolean values for simpler variant logic:
|
|
450
455
|
|
|
451
456
|
```tsx
|
|
457
|
+
// Example usage
|
|
452
458
|
interface AlertProps {
|
|
453
459
|
message: string;
|
|
454
460
|
isError?: boolean;
|
|
@@ -523,6 +529,7 @@ Read more about [Unistyles Variants](https://www.unistyl.es/v3/references/varian
|
|
|
523
529
|
Compound variants allow you to apply specific styles when certain combinations of variants are active:
|
|
524
530
|
|
|
525
531
|
```tsx
|
|
532
|
+
// Example usage
|
|
526
533
|
interface BadgeProps {
|
|
527
534
|
variant?: 'solid' | 'outline' | 'soft';
|
|
528
535
|
color?: 'purple' | 'green' | 'red' | 'grey';
|
|
@@ -742,6 +749,7 @@ Read more about [Unistyles Compound Variants](https://www.unistyl.es/v3/referenc
|
|
|
742
749
|
You can specify default variants that will be applied when no variant is explicitly set:
|
|
743
750
|
|
|
744
751
|
```tsx
|
|
752
|
+
// Example usage
|
|
745
753
|
const styles = StyleSheet.create(theme => ({
|
|
746
754
|
button: {
|
|
747
755
|
borderRadius: theme.borderRadius.md,
|
|
@@ -777,6 +785,7 @@ Read more about [Unistyles Default Variants](https://www.unistyl.es/v3/reference
|
|
|
777
785
|
You can combine variants with responsive breakpoints:
|
|
778
786
|
|
|
779
787
|
```tsx
|
|
788
|
+
// Example usage
|
|
780
789
|
const styles = StyleSheet.create(theme => ({
|
|
781
790
|
card: {
|
|
782
791
|
borderRadius: theme.borderRadius.lg,
|
|
@@ -809,11 +818,10 @@ const styles = StyleSheet.create(theme => ({
|
|
|
809
818
|
|
|
810
819
|
Using variants and compound variants with Hearth React Native allows you to build flexible, maintainable component APIs that adapt to different use cases while maintaining consistency with your design system.
|
|
811
820
|
|
|
812
|
-
## Best Practices
|
|
813
|
-
|
|
814
821
|
### 1. Always Use Theme Tokens
|
|
815
822
|
|
|
816
823
|
```tsx
|
|
824
|
+
// Example usage
|
|
817
825
|
// ✅ Good - Uses theme tokens
|
|
818
826
|
const styles = StyleSheet.create(theme => ({
|
|
819
827
|
text: {
|
|
@@ -834,6 +842,7 @@ const styles = StyleSheet.create({
|
|
|
834
842
|
### 2. Leverage Responsive Design
|
|
835
843
|
|
|
836
844
|
```tsx
|
|
845
|
+
// Example usage
|
|
837
846
|
// ✅ Good - Responsive design
|
|
838
847
|
const styles = StyleSheet.create(theme => ({
|
|
839
848
|
container: {
|
|
@@ -849,6 +858,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
849
858
|
### 3. Use Semantic Color Names
|
|
850
859
|
|
|
851
860
|
```tsx
|
|
861
|
+
// Example usage
|
|
852
862
|
// ✅ Good - Semantic meaning
|
|
853
863
|
const styles = StyleSheet.create(theme => ({
|
|
854
864
|
errorText: {
|
|
@@ -863,6 +873,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
863
873
|
### 4. Consistent Spacing
|
|
864
874
|
|
|
865
875
|
```tsx
|
|
876
|
+
// Example usage
|
|
866
877
|
// ✅ Good - Consistent spacing scale
|
|
867
878
|
const styles = StyleSheet.create(theme => ({
|
|
868
879
|
card: {
|
|
@@ -874,10 +885,3 @@ const styles = StyleSheet.create(theme => ({
|
|
|
874
885
|
```
|
|
875
886
|
|
|
876
887
|
By following these patterns and using the design tokens provided by Hearth React Native, you'll create consistent, maintainable, and accessible user interfaces that work seamlessly across different platforms and screen sizes.
|
|
877
|
-
|
|
878
|
-
<NextPrevPage
|
|
879
|
-
prevLink="changelog"
|
|
880
|
-
prevTitle="Changelog"
|
|
881
|
-
nextLink="theme-tokens"
|
|
882
|
-
nextTitle="Theme Tokens"
|
|
883
|
-
/>
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { ColorItem, ColorPalette, Meta } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import { color } from '@utilitywarehouse/hearth-tokens/js';
|
|
3
|
-
import { Box, Link } from '../src/components';
|
|
4
|
-
import { BackToTopButton, NextPrevPage } from './components';
|
|
5
|
-
|
|
6
|
-
<Meta title="Theme Tokens" />
|
|
7
|
-
<BackToTopButton />
|
|
8
|
-
|
|
9
1
|
# Theme Tokens
|
|
10
2
|
|
|
11
3
|
Hearth React Native provides a comprehensive set of design tokens that ensure consistency across your application. These tokens are built on top of the primitive design system and include semantic meanings for colors, typography, spacing, and other design properties.
|
|
@@ -40,6 +32,7 @@ Theme tokens are accessible through the theme object in your stylesheets or with
|
|
|
40
32
|
Here's an example of how to use them in a component:
|
|
41
33
|
|
|
42
34
|
```tsx
|
|
35
|
+
// Example usage
|
|
43
36
|
import { StyleSheet, View, Text } from '@utilitywarehouse/hearth-react-native';
|
|
44
37
|
|
|
45
38
|
const MyComponent = () => {
|
|
@@ -95,6 +88,7 @@ Utility tokens are tokens provide helpful context or helper functions to simplif
|
|
|
95
88
|
They can be used to create consistent styles across your application.
|
|
96
89
|
|
|
97
90
|
```tsx
|
|
91
|
+
// Example usage
|
|
98
92
|
const styles = StyleSheet.create(theme => ({
|
|
99
93
|
container: {
|
|
100
94
|
backgroundColor: theme.isDark ? theme.color.grey[900] : theme.color.grey[100],
|
|
@@ -119,7 +113,7 @@ The color system provides both semantic and primitive color tokens that automati
|
|
|
119
113
|
You can view the full color scales below.
|
|
120
114
|
|
|
121
115
|
<Box
|
|
122
|
-
|
|
116
|
+
style={{
|
|
123
117
|
position: 'sticky',
|
|
124
118
|
top: 0,
|
|
125
119
|
width: 240,
|
|
@@ -129,7 +123,9 @@ You can view the full color scales below.
|
|
|
129
123
|
marginLeft: '-260px !important',
|
|
130
124
|
zIndex: 1,
|
|
131
125
|
}}
|
|
126
|
+
|
|
132
127
|
>
|
|
128
|
+
|
|
133
129
|
<ul
|
|
134
130
|
style={{
|
|
135
131
|
listStyleType: 'none',
|
|
@@ -168,6 +164,7 @@ You can view the full color scales below.
|
|
|
168
164
|
These colors represent the core brand identity and various services:
|
|
169
165
|
|
|
170
166
|
```tsx
|
|
167
|
+
// Example usage
|
|
171
168
|
const styles = StyleSheet.create(theme => ({
|
|
172
169
|
brandButton: {
|
|
173
170
|
backgroundColor: theme.color.surface.brand.default,
|
|
@@ -207,6 +204,7 @@ Semantic colors provide meaning and context to your UI elements:
|
|
|
207
204
|
#### Background Colors
|
|
208
205
|
|
|
209
206
|
```tsx
|
|
207
|
+
// Example usage
|
|
210
208
|
const styles = StyleSheet.create(theme => ({
|
|
211
209
|
primaryBackground: {
|
|
212
210
|
backgroundColor: theme.color.background.primary, // Main app background
|
|
@@ -223,6 +221,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
223
221
|
#### Text Colors
|
|
224
222
|
|
|
225
223
|
```tsx
|
|
224
|
+
// Example usage
|
|
226
225
|
const styles = StyleSheet.create(theme => ({
|
|
227
226
|
primaryText: {
|
|
228
227
|
color: theme.color.text.primary, // Main text color
|
|
@@ -239,6 +238,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
239
238
|
#### Interactive Colors
|
|
240
239
|
|
|
241
240
|
```tsx
|
|
241
|
+
// Example usage
|
|
242
242
|
const styles = StyleSheet.create(theme => ({
|
|
243
243
|
primaryButton: {
|
|
244
244
|
backgroundColor: theme.color.interactive.brand.surface.strong.default,
|
|
@@ -266,6 +266,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
266
266
|
#### Feedback Colors
|
|
267
267
|
|
|
268
268
|
```tsx
|
|
269
|
+
// Example usage
|
|
269
270
|
const styles = StyleSheet.create(theme => ({
|
|
270
271
|
errorMessage: {
|
|
271
272
|
backgroundColor: theme.color.feedback.danger.surface.subtle,
|
|
@@ -590,6 +591,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
590
591
|
Access the full primitive color palette for custom use cases:
|
|
591
592
|
|
|
592
593
|
```tsx
|
|
594
|
+
// Example usage
|
|
593
595
|
const styles = StyleSheet.create(theme => ({
|
|
594
596
|
customElement: {
|
|
595
597
|
backgroundColor: theme.color.purple[400],
|
|
@@ -661,6 +663,7 @@ The typography system provides a cohesive set of font properties based on the de
|
|
|
661
663
|
### Font Family
|
|
662
664
|
|
|
663
665
|
```tsx
|
|
666
|
+
// Example usage
|
|
664
667
|
const styles = StyleSheet.create(theme => ({
|
|
665
668
|
heading: {
|
|
666
669
|
fontFamily: theme.font.family.heading, // Comic Hams
|
|
@@ -685,6 +688,7 @@ Available font families:
|
|
|
685
688
|
The font size scale provides consistent typography sizing:
|
|
686
689
|
|
|
687
690
|
```tsx
|
|
691
|
+
// Example usage
|
|
688
692
|
const styles = StyleSheet.create(theme => ({
|
|
689
693
|
caption: {
|
|
690
694
|
fontSize: theme.font.size['50'], // 10px
|
|
@@ -726,6 +730,7 @@ Available font sizes:
|
|
|
726
730
|
### Font Weight
|
|
727
731
|
|
|
728
732
|
```tsx
|
|
733
|
+
// Example usage
|
|
729
734
|
const styles = StyleSheet.create(theme => ({
|
|
730
735
|
regular: {
|
|
731
736
|
fontWeight: theme.font.weight.regular, // 400
|
|
@@ -747,6 +752,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
747
752
|
Optimized letter spacing values for each font size:
|
|
748
753
|
|
|
749
754
|
```tsx
|
|
755
|
+
// Example usage
|
|
750
756
|
const styles = StyleSheet.create(theme => ({
|
|
751
757
|
tightText: {
|
|
752
758
|
letterSpacing: theme.letterSpacing['700'], // Tight spacing for large text
|
|
@@ -762,6 +768,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
762
768
|
Consistent line height values for optimal readability:
|
|
763
769
|
|
|
764
770
|
```tsx
|
|
771
|
+
// Example usage
|
|
765
772
|
const styles = StyleSheet.create(theme => ({
|
|
766
773
|
bodyText: {
|
|
767
774
|
lineHeight: theme.lineHeight['400'], // 22px for body text
|
|
@@ -777,6 +784,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
777
784
|
The spacing system provides a consistent scale for padding, margins, and gaps:
|
|
778
785
|
|
|
779
786
|
```tsx
|
|
787
|
+
// Example usage
|
|
780
788
|
const styles = StyleSheet.create(theme => ({
|
|
781
789
|
container: {
|
|
782
790
|
padding: theme.space['200'], // 16px
|
|
@@ -834,6 +842,7 @@ These responsive layout spacings live under `theme.layout.[mobile|tablet|desktop
|
|
|
834
842
|
layout structure (page/frame scaffolding) rather than component-level internal spacing (which should prefer the core `space` scale).
|
|
835
843
|
|
|
836
844
|
```tsx
|
|
845
|
+
// Example usage
|
|
837
846
|
const styles = StyleSheet.create(theme => ({
|
|
838
847
|
pageSection: {
|
|
839
848
|
padding: theme.space.xl, // 20px on mobile, 24px on tablet/desktop
|
|
@@ -862,11 +871,10 @@ Percentage-based spacing is also available:
|
|
|
862
871
|
- `1/5`, `2/5`, `3/5`, `4/5`
|
|
863
872
|
- `1/6`, `5/6`, `full` (100%)
|
|
864
873
|
|
|
865
|
-
## Border
|
|
866
|
-
|
|
867
874
|
### Border Width
|
|
868
875
|
|
|
869
876
|
```tsx
|
|
877
|
+
// Example usage
|
|
870
878
|
const styles = StyleSheet.create(theme => ({
|
|
871
879
|
thinBorder: {
|
|
872
880
|
borderWidth: theme.borderWidth['1'], // 1px
|
|
@@ -880,6 +888,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
880
888
|
### Border Radius
|
|
881
889
|
|
|
882
890
|
```tsx
|
|
891
|
+
// Example usage
|
|
883
892
|
const styles = StyleSheet.create(theme => ({
|
|
884
893
|
card: {
|
|
885
894
|
borderRadius: theme.borderRadius.lg, // 12px
|
|
@@ -909,6 +918,7 @@ Available border radius values:
|
|
|
909
918
|
The shadow system provides elevation through predefined shadow styles:
|
|
910
919
|
|
|
911
920
|
```tsx
|
|
921
|
+
// Example usage
|
|
912
922
|
const styles = StyleSheet.create(theme => ({
|
|
913
923
|
card: {
|
|
914
924
|
...theme.shadow.sm, // Subtle shadow
|
|
@@ -927,6 +937,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
927
937
|
Access responsive layout values for different screen sizes:
|
|
928
938
|
|
|
929
939
|
```tsx
|
|
940
|
+
// Example usage
|
|
930
941
|
const styles = StyleSheet.create(theme => ({
|
|
931
942
|
container: {
|
|
932
943
|
padding: {
|
|
@@ -943,6 +954,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
943
954
|
Access component-specific design tokens for consistent styling:
|
|
944
955
|
|
|
945
956
|
```tsx
|
|
957
|
+
// Example usage
|
|
946
958
|
const styles = StyleSheet.create(theme => ({
|
|
947
959
|
customButton: {
|
|
948
960
|
backgroundColor: theme.components.button.background.primary,
|
|
@@ -965,10 +977,3 @@ We also offer a dedicated tokens package that provides access to all design toke
|
|
|
965
977
|
This package can be used independently or alongside the main Hearth React Native library.
|
|
966
978
|
|
|
967
979
|
To read more about the tokens package, visit the [Hearth Tokens documentation](https://hearth.prod.uw.systems/?path=/docs/tokens_introduction--docs).
|
|
968
|
-
|
|
969
|
-
<NextPrevPage
|
|
970
|
-
prevLink="/?path=/docs/styling--docs"
|
|
971
|
-
prevTitle="Styling"
|
|
972
|
-
nextLink="/?path=/docs/hooks--docs"
|
|
973
|
-
nextTitle="Hooks"
|
|
974
|
-
/>
|
package/public/llms.txt
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Hearth React Native
|
|
2
|
+
|
|
3
|
+
> @utilitywarehouse/hearth-react-native - React Native component library for Utility Warehouse products.
|
|
4
|
+
|
|
5
|
+
## Guides
|
|
6
|
+
|
|
7
|
+
- [Adding Shadows](llms/docs/adding-shadows.md)
|
|
8
|
+
- Using Predefined Shadows
|
|
9
|
+
- Components with Shadow Props
|
|
10
|
+
- [All Components](llms/docs/all-components.md)
|
|
11
|
+
- [Dark Mode Best Practice](llms/docs/dark-mode-best-practice.md)
|
|
12
|
+
- Setting Up Dark Mode
|
|
13
|
+
- Use Semantic Theme Colours
|
|
14
|
+
- Use Semantic Utility Props
|
|
15
|
+
- Use the asset libraries
|
|
16
|
+
- `ThemedImage` component
|
|
17
|
+
- [Getting Started](llms/docs/getting-started.md)
|
|
18
|
+
- [Hooks](llms/docs/hooks.md)
|
|
19
|
+
- useTheme
|
|
20
|
+
- useToken
|
|
21
|
+
- useColorMode
|
|
22
|
+
- useBreakpointValue
|
|
23
|
+
- useMedia
|
|
24
|
+
- [Hearth React Native](llms/docs/introduction.md)
|
|
25
|
+
- Installation
|
|
26
|
+
- Additional packages
|
|
27
|
+
- Fonts
|
|
28
|
+
- Babel configuration
|
|
29
|
+
- Jest configuration
|
|
30
|
+
- [Layout Components](llms/docs/layout-components.md)
|
|
31
|
+
- Box
|
|
32
|
+
- Container
|
|
33
|
+
- Flex
|
|
34
|
+
- Grid
|
|
35
|
+
- [Styling](llms/docs/styling.md)
|
|
36
|
+
- Unistyles Features
|
|
37
|
+
- Usage
|
|
38
|
+
- Design Tokens and Theme
|
|
39
|
+
- Responsive Design with Breakpoints
|
|
40
|
+
- Dark Mode Support
|
|
41
|
+
- Color Mode Specific Styles
|
|
42
|
+
- Runtime Access
|
|
43
|
+
- Component-Specific Tokens
|
|
44
|
+
- Variants and Compound Variants
|
|
45
|
+
- [Theme Tokens](llms/docs/theme-tokens.md)
|
|
46
|
+
- How to Use Tokens
|
|
47
|
+
- Utility Tokens
|
|
48
|
+
- Colors
|
|
49
|
+
- Typography
|
|
50
|
+
- Spacing
|
|
51
|
+
- Shadows
|
|
52
|
+
- Layout Tokens
|
|
53
|
+
- Component Tokens
|
|
54
|
+
- Tokens Package
|
|
55
|
+
|
|
56
|
+
## Components
|
|
57
|
+
|
|
58
|
+
- [Accordion](llms/components/accordion.md): The Accordion component is a vertically stacked set of interactive headers that each reveal a section of content.
|
|
59
|
+
- [Alert](llms/components/alert.md): The `Alert` component displays a short, important message in a way that attracts the user's attention without interrupting the user's task.
|
|
60
|
+
- [Avatar](llms/components/avatar.md): Avatars help humanise the product experience by connecting users with the product and to each other.
|
|
61
|
+
- [Badge](llms/components/badge.md): Use the `Badge` component to draw attention to another interface element or to provide additional context (such as status).
|
|
62
|
+
- [Banner](llms/components/banner.md): The `Banner` component is a versatile card-based component for displaying informational content with an icon or image. It supports various layouts, interactive features like pressable states and close buttons, and optional action elements like buttons or links.
|
|
63
|
+
- [BodyText](llms/components/body-text.md): The `BodyText` component gives you the ability to create text for your screen. It can be used to display text in different sizes and styles.
|
|
64
|
+
- [Bottom Sheet](llms/components/bottom-sheet.md): The `BottomSheet` component provides a drawer-like interface that slides up from the bottom of the screen. It's commonly used for displaying additional content or actions without navigating away from the current screen.
|
|
65
|
+
- [Box](llms/components/box.md): When you need to center-align content, the Center component comes in handy. It is a layout component that can be used with other components to create complex layouts and positioning.
|
|
66
|
+
- [Button](llms/components/button.md): The `Button` component is used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
|
|
67
|
+
- [Card](llms/components/card.md): A Card component serves as a visual container that groups related content and actions.
|
|
68
|
+
- [Carousel](llms/components/carousel.md): Carousels provide users with a dynamic and interactive way to browse through a series of content items, such as images, articles, or products. It allows users to view multiple items within a confined space, enabling efficient content discovery and engagement.
|
|
69
|
+
- [Center](llms/components/center.md): When you need to center-align content, the Center component comes in handy. It is a layout component that can be used with other components to create complex layouts and positioning.
|
|
70
|
+
- [Checkbox](llms/components/checkbox.md): Whether you're building a simple form or a complex data collection system, the Checkbox component offers a user-friendly way for users to select multiple options from a list.
|
|
71
|
+
- [Combobox](llms/components/combobox.md): The `Combobox` component lets people search and select from a list inside a bottom sheet. It keeps the trigger text and the bottom sheet search input in sync, and can render either the built-in options list or fully custom sheet content.
|
|
72
|
+
- [Container](llms/components/container.md): The Container component is a layout primitive that provides consistent spacing and structure using the design system's layout tokens. It automatically applies responsive margin and padding based on the current breakpoint, and supports additional customization through spacing props.
|
|
73
|
+
- [Currency Input](llms/components/currency-input.md): An input specialised for monetary amounts. It shows a currency symbol prefix and uses a decimal keypad where supported.
|
|
74
|
+
- [Date Input](llms/components/date-input.md): The `DateInput` component allows users to enter dates manually using separate input fields for day, month, and year. It provides flexibility to show only the date segments you need, supports validation states, and integrates seamlessly with the React Native form system.
|
|
75
|
+
- [Date Picker](llms/components/date-picker.md): The `DatePicker` component presents a calendar experience in a bottom sheet so people can choose one or more dates without leaving the current screen. It supports single-day, ranged, and multi-date selection while respecting locale, calendar, and availability rules.
|
|
76
|
+
- [Date Picker Input](llms/components/date-picker-input.md): `DatePickerInput` extends the base input to present a calendar trigger for choosing dates while still allowing direct text entry. It keeps the field inline while delegating selection to the `DatePicker` bottom sheet and formats values with Day.js when needed. The default `DD/MM/YYYY` mask auto-inserts separators and surfaces a numeric keypad for faster entry.
|
|
77
|
+
- [Description List](llms/components/description-list.md): Display pairs of related metadata (heading + description). Supports column (stacked) and row (two-column) layouts, optional SectionHeader (heading + helper text), and per-item action links.
|
|
78
|
+
- [DetailText](llms/components/detail-text.md): The `DetailText` component gives you the ability to create text for your screen. It can be used to display detail text in different sizes and styles.
|
|
79
|
+
- [Divider](llms/components/divider.md): `Divider` components in `hearth-react-native` enhances visual organisation by creating clear boundaries between sections, improving readability and content grouping. They reinforce the visual hierarchy, making it easier for users to understand relationships between elements.
|
|
80
|
+
- [Expandable](llms/components/expandable.md): The Expandable component is a primitive for creating expandable content with smooth animations. It's commonly used as a building block for components like accordions, collapsible sections, and other interactive content that needs to expand and collapse.
|
|
81
|
+
- [Expandable Card](llms/components/expandable-card.md): The `ExpandableCard` component is an interactive card that expands to reveal additional content when clicked. It's a Card component with smooth expansion animations, making it perfect for displaying collapsible information sections.
|
|
82
|
+
- [Flex](llms/components/flex.md): When you need to center-align content, the Center component comes in handy. It is a layout component that can be used with other components to create complex layouts and positioning.
|
|
83
|
+
- [Form Field](llms/components/form-field.md): The `FormField` component is a container for form elements such as input fields. It provides a consistent layout and styling for form elements in which developers can provide important context to form elements. This context can include whether the element is invalid, disabled, or required.
|
|
84
|
+
- [Grid](llms/components/grid.md): The Grid component helps you create responsive grid layouts with configurable columns and spacing. It's perfect for creating photo galleries, card layouts, and other grid-based UI elements.
|
|
85
|
+
- [Heading](llms/components/heading.md): The `Heading` component gives you the ability to create headings for your screen with different sizes.
|
|
86
|
+
- [Highlight Banner](llms/components/highlight-banner.md): A `HighlightBanner` component is a specialised card layout designed for highlighting featured content with an image. It combines a colored heading banner, an optional image, and descriptive text with optional action buttons or links. Perfect for promotional content, featured articles, or important announcements.
|
|
87
|
+
- [Icon Button](llms/components/icon-button.md): The `IconButton` component is used to trigger an action or event, such as opening a dialog, canceling an action, or performing a delete operation.
|
|
88
|
+
- [Icon Container](llms/components/icon-container.md): The `IconContainer` component provides a consistent background and sizing (via component tokens) for any standalone icon, with semantic colour families and subtle/emphasis variants.
|
|
89
|
+
- [Icons](llms/components/icon.md): Icons are often used to enhance the usability and accessibility of digital products by providing users with clear and intuitive visual cues. It serves as an intuitive and easily recognizable way to communicate with users.
|
|
90
|
+
- [Indicator Icon Button](llms/components/indicator-icon-button.md): The `IndicatorIconButton` component is used to trigger an action or event, such as opening a dialog or navigating to other screen. It extends the regular `UnstyledIconButton` with an optional red dot indicator in the top-right corner, useful for showing notifications or unread status.
|
|
91
|
+
- [Inline Link](llms/components/inline-link.md): An `InlineLink` is a hyperlink embedded directly within a sentence or paragraph of text.
|
|
92
|
+
- [Input](llms/components/input.md): The input component is a text field that allows users to enter text, numbers, or other data. It is commonly used in forms and search fields.
|
|
93
|
+
- [Link](llms/components/link.md): Links are used to navigate a user to another screen or website, another place on the same page, or to open a link in a new tab.
|
|
94
|
+
- [List](llms/components/list.md): The List component serves as the primary wrapper for List Items and List Heading components.
|
|
95
|
+
- [Menu](llms/components/menu.md): The `Menu` component provides a bottom sheet modal with a list of actions. It's perfect for contextual menus, action sheets, and option lists. The component uses `BottomSheetModal` under the hood and includes `MenuItem` components that can display icons, text, and support different color schemes.
|
|
96
|
+
- [Modal](llms/components/modal.md): The `Modal` component provides a versatile dialog interface that slides up from the bottom of the screen. It's built on top of
|
|
97
|
+
- [Nav Modal](llms/components/nav-modal.md): The `NavModal` component is the screen-based modal layout for navigation flows. Use it when a screen is already being presented by React Navigation with `presentation: 'modal'` or `presentation: 'fullScreenModal'` and you want Hearth's modal structure, actions, and Android close animation support.
|
|
98
|
+
- [Pagination](llms/components/pagination.md): Pagination helps users move between pages of content while keeping the current position visible. It supports both a full page list and a condensed “Page X of Y” layout.
|
|
99
|
+
- [Pill Group](llms/components/pill-group.md): A container component that groups multiple `Pill` components together for filtering and categorization. It provides layout control with optional wrapping behavior and manages selection state.
|
|
100
|
+
- [Progress Bar](llms/components/progress-bar.md): Progress bars communicate task completion for linear flows and bounded operations. Use the linear variant for
|
|
101
|
+
- [Progress Stepper](llms/components/progress-stepper.md): A form helper component that displays a series of dots connected by lines, showing the progress through a multi-step process. Each step can be marked as completed, active, or uncompleted.
|
|
102
|
+
- [Radio](llms/components/radio.md): The Radio component presents users with predefined choices and enables them to select only one option. It is commonly used for providing a single-choice selection in forms or surveys.
|
|
103
|
+
- [Radio Card](llms/components/radio-card.md): The `RadioCard` component is a UI element that allows users to select one option from a set of predefined choices.
|
|
104
|
+
- [Rating](llms/components/rating.md): Use Rating to collect a score with an optional descriptive label. Supports star and emoji variants.
|
|
105
|
+
- [Roundel](llms/components/roundel.md): The `Roundel` component is a compact status indicator with success, pending, and error variants.
|
|
106
|
+
- [Section Header](llms/components/section-header.md): Use the `Section Header` component to help define and separate content within a screen. It provides structure, clarity, and improves page scannability for users. It is nested within components, such as List, but can be used outside of components too.
|
|
107
|
+
- [Segmented Control](llms/components/segmented-control.md): Segmented Control lets users switch between a small set of related options.
|
|
108
|
+
- [Select](llms/components/select.md): The `Select` component creates a dropdown menu that allows users to choose from a list of options. It's commonly used in forms for selecting one option from many.
|
|
109
|
+
- [Skeleton](llms/components/skeleton.md): The `Skeleton` component is used to show a loading state for a component that is still loading.
|
|
110
|
+
- [Spinner](llms/components/spinner.md): Using a Spinner is a common method for indicating that an asynchronous process is ongoing. Additionally, it informs users that they should refrain from clicking or tapping the UI until the loading state has been resolved.
|
|
111
|
+
- [Stepper Input](llms/components/stepper-input.md): The Stepper Input combines a numeric text input with decrement and increment controls. Use it when the value should stay within a defined range but still needs direct text entry.
|
|
112
|
+
- [Switch](llms/components/switch.md): The Switch component is used to indicate switching between two opposing options. Switches allow users
|
|
113
|
+
- [Table](llms/components/table.md): Table arranges structured data into rows and columns, with optional pagination beneath the rows. The React Native version uses horizontal scrolling automatically when the columns need more space than the viewport allows.
|
|
114
|
+
- [Tabs](llms/components/tabs.md): Tabs are a navigational component that allows users to move easily between groups of related content.
|
|
115
|
+
- [Textarea](llms/components/textarea.md): The input component is a text field that allows users to enter text, numbers, or other data. It is commonly used in forms and search fields.
|
|
116
|
+
- [Themed Image](llms/components/themed-image.md): The `ThemedImage` component automatically switches between light and dark mode images or SVG components based on the current theme. It's perfect for illustrations, logos, or any visual assets that need different appearances for light and dark modes.
|
|
117
|
+
- [Time Picker](llms/components/time-picker.md): `TimePicker` presents a wheel-based time selector inside a bottom sheet, letting people pick hours and minutes without leaving the current context. It supports 12-hour and 24-hour clocks and returns a JavaScript `Date` whenever the selection changes.
|
|
118
|
+
- [Time Picker Input](llms/components/time-picker-input.md): `TimePickerInput` extends the base input to present a time picker trigger while still allowing direct text entry. It keeps the field inline and formats values with Day.js when needed.
|
|
119
|
+
- [Timeline](llms/components/timeline.md): Timeline presents a sequence of related stops or steps using either a static stop indicator or a progress state indicator. Each item supports a label, optional helper text, and optional custom content.
|
|
120
|
+
- [Toast](llms/components/toast.md): The `Toast` component provides a non-intrusive way to display brief messages to users. Toasts appear at the bottom of the screen, can be stacked vertically, and automatically dismiss after a configurable duration. They support swipe-to-dismiss gestures and can include icons, action links, and a dismiss button.
|
|
121
|
+
- [Toggle Button Card](llms/components/toggle-button-card.md): The `ToggleButtonCard` component is a UI element that allows users to select one option from a set of predefined choices.
|
|
122
|
+
- [UL & OL (Lists)](llms/components/html-elements/lists.md): The `UL` (Unordered List) and `OL` (Ordered List) components are used to display lists of items. `UL` displays a bulleted list, and `OL` displays a numbered list. The `LI` (List Item) component is used to define each item within these lists.
|
|
123
|
+
- [Verification Input](llms/components/verification-input.md): The verification input component is used to capture OTP (One Time Password) or other verification codes.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* init-ai.js
|
|
5
|
+
* Adds the @utilitywarehouse/hearth-react-native AI skill reference to the
|
|
6
|
+
* project's AI assistant config file.
|
|
7
|
+
*
|
|
8
|
+
* Usage: npx @utilitywarehouse/hearth-react-native init-ai
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import fs from 'fs';
|
|
12
|
+
import path from 'path';
|
|
13
|
+
import readline from 'readline';
|
|
14
|
+
const PACKAGE_NAME = '@utilitywarehouse/hearth-react-native';
|
|
15
|
+
|
|
16
|
+
function resolveSkillPath(projectRoot) {
|
|
17
|
+
let dir = projectRoot;
|
|
18
|
+
while (dir !== path.parse(dir).root) {
|
|
19
|
+
const candidate = path.join(dir, 'node_modules', PACKAGE_NAME);
|
|
20
|
+
if (fs.existsSync(candidate)) {
|
|
21
|
+
return path.relative(projectRoot, path.join(candidate, 'SKILL.md')).replace(/\\/g, '/');
|
|
22
|
+
}
|
|
23
|
+
dir = path.dirname(dir);
|
|
24
|
+
}
|
|
25
|
+
return `node_modules/${PACKAGE_NAME}/SKILL.md`;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Config files for each tool, in detection priority order
|
|
29
|
+
function buildAiTools(skillPath) {
|
|
30
|
+
return [
|
|
31
|
+
{
|
|
32
|
+
name: 'Claude Code',
|
|
33
|
+
files: ['CLAUDE.md'],
|
|
34
|
+
line: `@${skillPath}`,
|
|
35
|
+
supportsAtImport: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Cursor',
|
|
39
|
+
files: ['.cursorrules'],
|
|
40
|
+
line: `@${skillPath}`,
|
|
41
|
+
supportsAtImport: true,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Windsurf',
|
|
45
|
+
files: ['.windsurfrules'],
|
|
46
|
+
line: `@${skillPath}`,
|
|
47
|
+
supportsAtImport: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Cline / Roo',
|
|
51
|
+
files: ['.clinerules'],
|
|
52
|
+
line: `@${skillPath}`,
|
|
53
|
+
supportsAtImport: true,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Codex / OpenAI agents',
|
|
57
|
+
files: ['AGENTS.md'],
|
|
58
|
+
line: `See ${skillPath} for ${PACKAGE_NAME} component usage guidelines.`,
|
|
59
|
+
supportsAtImport: false,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'GitHub Copilot',
|
|
63
|
+
files: ['.github/copilot-instructions.md'],
|
|
64
|
+
line: `See ${skillPath} for ${PACKAGE_NAME} component usage guidelines.`,
|
|
65
|
+
supportsAtImport: false,
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const COMMENT = `<!-- ${PACKAGE_NAME} — AI skill for component library usage guidance -->\n<!-- Added by: npx ${PACKAGE_NAME} init-ai -->`;
|
|
71
|
+
|
|
72
|
+
function findProjectRoot() {
|
|
73
|
+
let dir = process.cwd();
|
|
74
|
+
while (dir !== path.parse(dir).root) {
|
|
75
|
+
if (fs.existsSync(path.join(dir, 'package.json'))) return dir;
|
|
76
|
+
dir = path.dirname(dir);
|
|
77
|
+
}
|
|
78
|
+
return process.cwd();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function alreadyAdded(content, line) {
|
|
82
|
+
return content.includes(line.trim());
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function appendToFile(filePath, line) {
|
|
86
|
+
const dir = path.dirname(filePath);
|
|
87
|
+
if (!fs.existsSync(dir)) {
|
|
88
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
let content = '';
|
|
92
|
+
let existed = false;
|
|
93
|
+
if (fs.existsSync(filePath)) {
|
|
94
|
+
content = fs.readFileSync(filePath, 'utf8');
|
|
95
|
+
existed = true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (alreadyAdded(content, line)) {
|
|
99
|
+
return { existed, alreadyPresent: true };
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const separator = content.length > 0 && !content.endsWith('\n') ? '\n' : '';
|
|
103
|
+
fs.appendFileSync(filePath, `${separator}\n${COMMENT}\n${line}\n`);
|
|
104
|
+
return { existed, alreadyPresent: false };
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function detectAndUpdate(projectRoot) {
|
|
108
|
+
const results = [];
|
|
109
|
+
for (const tool of AI_TOOLS) {
|
|
110
|
+
for (const file of tool.files) {
|
|
111
|
+
const filePath = path.join(projectRoot, file);
|
|
112
|
+
if (fs.existsSync(filePath)) {
|
|
113
|
+
const { alreadyPresent } = appendToFile(filePath, tool.line);
|
|
114
|
+
results.push({ tool: tool.name, file, alreadyPresent, created: false });
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return results;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function promptCreate(projectRoot, aiTools) {
|
|
122
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
123
|
+
rl.question('\nNo AI assistant config file detected. Create CLAUDE.md? (Y/n) ', answer => {
|
|
124
|
+
rl.close();
|
|
125
|
+
if (answer.trim().toLowerCase() !== 'n') {
|
|
126
|
+
const tool = aiTools.find(t => t.name === 'Claude Code');
|
|
127
|
+
const filePath = path.join(projectRoot, 'CLAUDE.md');
|
|
128
|
+
appendToFile(filePath, tool.line);
|
|
129
|
+
console.log(`\n✅ Created CLAUDE.md with ${PACKAGE_NAME} skill reference.`);
|
|
130
|
+
} else {
|
|
131
|
+
console.log('\nSkipped. You can add the skill manually — see the README for instructions.');
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// ── Main ──────────────────────────────────────────────────────────────────────
|
|
137
|
+
|
|
138
|
+
const projectRoot = findProjectRoot();
|
|
139
|
+
const skillPath = resolveSkillPath(projectRoot);
|
|
140
|
+
const AI_TOOLS = buildAiTools(skillPath);
|
|
141
|
+
|
|
142
|
+
console.log(`\n🔍 Scanning for AI assistant config files in ${projectRoot}...\n`);
|
|
143
|
+
|
|
144
|
+
const results = detectAndUpdate(projectRoot);
|
|
145
|
+
|
|
146
|
+
if (results.length === 0) {
|
|
147
|
+
promptCreate(projectRoot, AI_TOOLS);
|
|
148
|
+
} else {
|
|
149
|
+
for (const r of results) {
|
|
150
|
+
if (r.alreadyPresent) {
|
|
151
|
+
console.log(`⏭ ${r.tool} (${r.file}) — skill already present, skipped`);
|
|
152
|
+
} else {
|
|
153
|
+
console.log(`✅ ${r.tool} (${r.file}) — skill reference added`);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
console.log(`\nDone! Your AI assistant will now use the ${PACKAGE_NAME} skill.\n`);
|
|
157
|
+
}
|