reshaped 2.7.5-beta.0 → 2.8.1
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/CHANGELOG.md +3 -15
- package/bin/clean.sh +1 -3
- package/bin/cli.js +1 -1
- package/dist/bundle.css +1 -0
- package/dist/bundle.js +27 -0
- package/dist/components/Accordion/Accordion.d.ts +7 -0
- package/dist/components/Accordion/Accordion.js +14 -0
- package/dist/components/Accordion/Accordion.types.d.ts +39 -0
- package/dist/components/Accordion/AccordionContent.d.ts +3 -0
- package/dist/components/Accordion/AccordionContent.js +10 -0
- package/dist/components/Accordion/AccordionControlled.d.ts +3 -0
- package/dist/components/Accordion/AccordionControlled.js +23 -0
- package/dist/components/Accordion/AccordionTrigger.d.ts +3 -0
- package/dist/components/Accordion/AccordionTrigger.js +24 -0
- package/dist/components/Accordion/AccordionUncontrolled.d.ts +3 -0
- package/dist/components/Accordion/AccordionUncontrolled.js +25 -0
- package/dist/components/ActionBar/ActionBar.d.ts +3 -0
- package/dist/components/ActionBar/ActionBar.js +10 -0
- package/dist/components/ActionBar/ActionBar.types.d.ts +10 -0
- package/dist/components/Actionable/Actionable.js +66 -0
- package/dist/components/Actionable/Actionable.module.css +1 -0
- package/dist/components/Alert/Alert.d.ts +3 -0
- package/dist/components/Alert/Alert.js +21 -0
- package/dist/components/Alert/Alert.types.d.ts +14 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -0
- package/dist/components/Autocomplete/Autocomplete.js +73 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.js +29 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +19 -0
- package/dist/components/Badge/BadgeContainer.d.ts +3 -0
- package/dist/components/Badge/BadgeContainer.js +9 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +42 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +13 -0
- package/dist/components/Breadcrumbs/BreadcrumbsItem.d.ts +3 -0
- package/dist/components/Breadcrumbs/BreadcrumbsItem.js +11 -0
- package/dist/components/Breadcrumbs/index.d.ts +8 -0
- package/dist/components/Button/Button.js +35 -0
- package/dist/components/Button/Button.module.css +1 -0
- package/dist/components/Button/ButtonAligner.d.ts +3 -0
- package/dist/components/Button/ButtonAligner.js +7 -0
- package/dist/components/Button/ButtonGroup.d.ts +3 -0
- package/dist/components/Button/ButtonGroup.js +9 -0
- package/dist/components/Button/tests/Button.stories.d.ts +17 -0
- package/dist/components/Button/tests/Button.stories.js +639 -0
- package/dist/components/Calendar/Calendar.d.ts +3 -0
- package/dist/components/Calendar/Calendar.js +9 -0
- package/dist/components/Calendar/CalendarControlled.d.ts +3 -0
- package/dist/components/Calendar/CalendarControlled.js +69 -0
- package/dist/components/Calendar/CalendarControls.d.ts +3 -0
- package/dist/components/Calendar/CalendarControls.js +46 -0
- package/dist/components/Calendar/CalendarDate.d.ts +3 -0
- package/dist/components/Calendar/CalendarDate.js +57 -0
- package/dist/components/Calendar/CalendarMonth.d.ts +3 -0
- package/dist/components/Calendar/CalendarMonth.js +51 -0
- package/dist/components/Calendar/CalendarUncontrolled.d.ts +3 -0
- package/dist/components/Calendar/CalendarUncontrolled.js +30 -0
- package/dist/components/Calendar/CalendarYear.d.ts +3 -0
- package/dist/components/Calendar/CalendarYear.js +44 -0
- package/dist/components/Card/Card.d.ts +17 -0
- package/dist/components/Card/Card.js +30 -0
- package/dist/components/Card/Card.types.d.ts +16 -0
- package/dist/components/Carousel/Carousel.d.ts +3 -0
- package/dist/components/Carousel/Carousel.js +64 -0
- package/dist/components/Carousel/Carousel.module.css +1 -0
- package/dist/components/Carousel/Carousel.types.d.ts +28 -0
- package/dist/components/Carousel/CarouselControl.d.ts +3 -0
- package/dist/components/Carousel/CarouselControl.js +42 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +39 -0
- package/dist/components/Checkbox/Checkbox.module.css +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +26 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +3 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +10 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.types.d.ts +28 -0
- package/dist/components/CheckboxGroup/CheckboxGroupControlled.d.ts +3 -0
- package/dist/components/CheckboxGroup/CheckboxGroupControlled.js +22 -0
- package/dist/components/CheckboxGroup/CheckboxGroupUncontrolled.d.ts +3 -0
- package/dist/components/CheckboxGroup/CheckboxGroupUncontrolled.js +17 -0
- package/dist/components/Container/Container.d.ts +3 -0
- package/dist/components/Container/Container.js +10 -0
- package/dist/components/Container/Container.types.d.ts +9 -0
- package/dist/components/Dismissible/Dismissible.d.ts +3 -0
- package/dist/components/Dismissible/Dismissible.js +12 -0
- package/dist/components/Dismissible/Dismissible.types.d.ts +20 -0
- package/dist/components/Divider/Divider.d.ts +3 -0
- package/dist/components/Divider/Divider.js +14 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +12 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +90 -0
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +16 -0
- package/dist/components/FileUpload/FileUpload.d.ts +6 -0
- package/dist/components/FileUpload/FileUpload.js +52 -0
- package/dist/components/FileUpload/FileUpload.types.d.ts +13 -0
- package/dist/components/FormControl/FormControl.context.d.ts +280 -0
- package/dist/components/FormControl/FormControl.d.ts +8 -0
- package/dist/components/FormControl/FormControl.js +66 -0
- package/dist/components/FormControl/FormControl.types.d.ts +33 -0
- package/dist/components/Hidden/Hidden.d.ts +3 -0
- package/dist/components/Hidden/Hidden.js +11 -0
- package/dist/components/Hidden/Hidden.types.d.ts +9 -0
- package/dist/components/HiddenVisually/HiddenVisually.d.ts +3 -0
- package/dist/components/HiddenVisually/HiddenVisually.js +7 -0
- package/dist/components/HiddenVisually/HiddenVisually.module.css +1 -0
- package/dist/components/HiddenVisually/HiddenVisually.types.d.ts +4 -0
- package/dist/components/Hotkey/Hotkey.d.ts +3 -0
- package/dist/components/Hotkey/Hotkey.js +10 -0
- package/dist/components/Hotkey/Hotkey.types.d.ts +8 -0
- package/dist/components/Icon/Icon.d.ts +3 -0
- package/dist/components/Icon/Icon.js +18 -0
- package/dist/components/Icon/Icon.types.d.ts +10 -0
- package/dist/components/Image/Image.d.ts +3 -0
- package/dist/components/Image/Image.js +38 -0
- package/dist/components/Image/Image.types.d.ts +19 -0
- package/dist/components/Link/Link.js +12 -0
- package/dist/components/Loader/Loader.d.ts +3 -0
- package/dist/components/Loader/Loader.js +10 -0
- package/dist/components/MenuItem/MenuItem.js +18 -0
- package/dist/components/MenuItem/MenuItem.module.css +1 -0
- package/dist/components/MenuItem/MenuItemAligner.d.ts +3 -0
- package/dist/components/MenuItem/MenuItemAligner.js +7 -0
- package/dist/components/Modal/Modal.d.ts +7 -0
- package/dist/components/Modal/Modal.js +163 -0
- package/dist/components/Modal/Modal.types.d.ts +26 -0
- package/dist/components/Overlay/Overlay.d.ts +3 -0
- package/dist/components/Overlay/Overlay.js +112 -0
- package/dist/components/Overlay/Overlay.module.css +1 -0
- package/dist/components/Overlay/Overlay.types.d.ts +12 -0
- package/dist/components/Popover/Popover.d.ts +7 -0
- package/dist/components/Popover/Popover.js +19 -0
- package/dist/components/Popover/Popover.types.d.ts +7 -0
- package/dist/components/Progress/Progress.d.ts +3 -0
- package/dist/components/Progress/Progress.js +17 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/Radio.js +30 -0
- package/dist/components/Radio/Radio.module.css +1 -0
- package/dist/components/Radio/Radio.types.d.ts +25 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.js +10 -0
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +28 -0
- package/dist/components/RadioGroup/RadioGroupControlled.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroupControlled.js +14 -0
- package/dist/components/RadioGroup/RadioGroupUncontrolled.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroupUncontrolled.js +17 -0
- package/dist/components/Reshaped/Reshaped.d.ts +4 -0
- package/dist/components/Reshaped/Reshaped.js +22 -0
- package/dist/components/Scrim/Scrim.d.ts +3 -0
- package/dist/components/Scrim/Scrim.js +10 -0
- package/dist/components/Select/Select.d.ts +3 -0
- package/dist/components/Select/Select.js +49 -0
- package/dist/components/Skeleton/Skeleton.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.js +10 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +6 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.js +26 -0
- package/dist/components/Slider/Slider.module.css +1 -0
- package/dist/components/Slider/SliderControlled.d.ts +3 -0
- package/dist/components/Slider/SliderControlled.js +169 -0
- package/dist/components/Slider/SliderThumb.js +18 -0
- package/dist/components/Slider/SliderUncontrolled.d.ts +3 -0
- package/dist/components/Slider/SliderUncontrolled.js +33 -0
- package/dist/components/Stepper/Stepper.d.ts +6 -0
- package/dist/components/Stepper/Stepper.js +30 -0
- package/dist/components/Stepper/Stepper.types.d.ts +26 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.js +27 -0
- package/dist/components/Switch/Switch.module.css +1 -0
- package/dist/components/Table/Table.d.ts +10 -0
- package/dist/components/Table/Table.js +45 -0
- package/dist/components/Tabs/Tabs.d.ts +8 -0
- package/dist/components/Tabs/Tabs.js +16 -0
- package/dist/components/Tabs/Tabs.module.css +1 -0
- package/dist/components/Tabs/Tabs.types.d.ts +61 -0
- package/dist/components/Tabs/TabsControlled.d.ts +3 -0
- package/dist/components/Tabs/TabsControlled.js +42 -0
- package/dist/components/Tabs/TabsItem.js +61 -0
- package/dist/components/Tabs/TabsList.d.ts +3 -0
- package/dist/components/Tabs/TabsList.js +153 -0
- package/dist/components/Tabs/TabsPanel.d.ts +3 -0
- package/dist/components/Tabs/TabsPanel.js +13 -0
- package/dist/components/Tabs/TabsUncontrolled.d.ts +3 -0
- package/dist/components/Tabs/TabsUncontrolled.js +19 -0
- package/dist/components/Text/Text.d.ts +3 -0
- package/dist/components/Text/Text.js +24 -0
- package/dist/components/Text/Text.module.css +1 -0
- package/dist/components/Text/Text.types.d.ts +15 -0
- package/dist/components/TextArea/TextArea.d.ts +6 -0
- package/dist/components/TextArea/TextArea.js +26 -0
- package/dist/components/TextField/TextField.d.ts +6 -0
- package/dist/components/TextField/TextField.js +45 -0
- package/dist/components/TextField/TextField.module.css +1 -0
- package/dist/components/TextField/TextField.types.d.ts +42 -0
- package/dist/components/Theme/GlobalColorMode.d.ts +3 -0
- package/dist/components/Theme/GlobalColorMode.js +43 -0
- package/dist/components/Theme/Theme.d.ts +3 -0
- package/dist/components/Theme/Theme.js +48 -0
- package/dist/components/Timeline/Timeline.d.ts +6 -0
- package/dist/components/Timeline/Timeline.js +20 -0
- package/dist/components/Timeline/Timeline.types.d.ts +13 -0
- package/dist/components/Toast/Toast.d.ts +5 -0
- package/dist/components/Toast/Toast.js +44 -0
- package/dist/components/Toast/Toast.types.d.ts +78 -0
- package/dist/components/Toast/ToastContainer.d.ts +3 -0
- package/dist/components/Toast/ToastContainer.js +96 -0
- package/dist/components/Toast/ToastProvider.d.ts +3 -0
- package/dist/components/Toast/ToastProvider.js +81 -0
- package/dist/components/Toast/ToastRegion.d.ts +3 -0
- package/dist/components/Toast/ToastRegion.js +64 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.js +11 -0
- package/dist/components/View/View.d.ts +6 -0
- package/dist/components/View/View.js +143 -0
- package/dist/components/View/View.module.css +1 -0
- package/dist/components/View/View.types.d.ts +66 -0
- package/dist/components/View/tests/View.stories.d.ts +33 -0
- package/dist/components/View/tests/View.stories.js +1072 -0
- package/dist/components/_private/Aligner/Aligner.d.ts +11 -0
- package/dist/components/_private/Aligner/Aligner.js +10 -0
- package/dist/components/_private/Expandable/Expandable.d.ts +3 -0
- package/dist/components/_private/Expandable/Expandable.js +44 -0
- package/dist/components/_private/Flyout/Flyout.d.ts +7 -0
- package/dist/components/_private/Flyout/Flyout.js +14 -0
- package/dist/components/_private/Flyout/FlyoutContent.d.ts +3 -0
- package/dist/components/_private/Flyout/FlyoutContent.js +44 -0
- package/dist/components/_private/Flyout/FlyoutControlled.d.ts +3 -0
- package/dist/components/_private/Flyout/FlyoutControlled.js +223 -0
- package/dist/components/_private/Flyout/FlyoutTrigger.d.ts +3 -0
- package/dist/components/_private/Flyout/FlyoutTrigger.js +38 -0
- package/dist/components/_private/Flyout/FlyoutUncontrolled.d.ts +3 -0
- package/dist/components/_private/Flyout/FlyoutUncontrolled.js +20 -0
- package/dist/components/_private/HiddenInput/HiddenInput.d.ts +3 -0
- package/dist/components/_private/HiddenInput/HiddenInput.js +9 -0
- package/dist/components/_private/Portal/Portal.d.ts +12 -0
- package/dist/components/_private/Portal/Portal.js +34 -0
- package/dist/hooks/_private/useSingletonHotkeys.d.ts +34 -0
- package/dist/hooks/_private/useSingletonHotkeys.js +203 -0
- package/dist/icons/ArrowUpRight.d.ts +2 -0
- package/dist/icons/ArrowUpRight.js +5 -0
- package/dist/icons/Checkmark.d.ts +2 -0
- package/dist/icons/Checkmark.js +5 -0
- package/dist/icons/ChevronDown.d.ts +2 -0
- package/dist/icons/ChevronDown.js +5 -0
- package/dist/icons/ChevronLeft.d.ts +2 -0
- package/dist/icons/ChevronLeft.js +5 -0
- package/dist/icons/ChevronRight.d.ts +2 -0
- package/dist/icons/ChevronRight.js +5 -0
- package/dist/icons/ChevronVertical.d.ts +2 -0
- package/dist/icons/ChevronVertical.js +3 -0
- package/dist/icons/Close.d.ts +2 -0
- package/dist/icons/Close.js +5 -0
- package/dist/icons/DotsHorizontal.d.ts +2 -0
- package/dist/icons/DotsHorizontal.js +3 -0
- package/dist/icons/Mic.d.ts +2 -0
- package/dist/icons/Mic.js +5 -0
- package/dist/icons/Zap.d.ts +2 -0
- package/dist/icons/Zap.js +5 -0
- package/dist/styles/bleed/bleed.module.css +1 -0
- package/dist/styles/minHeight/index.js +10 -0
- package/dist/styles/minHeight/minHeight.module.css +1 -0
- package/dist/styles/minWidth/index.d.ts +3 -0
- package/dist/styles/padding/padding.module.css +1 -0
- package/dist/tests/themingWithDefinition.js +5 -0
- package/dist/tests/themingWithoutDefinition.js +5 -0
- package/dist/themes/_generator/tests/themes.stories.js +176 -0
- package/dist/themes/_generator/utilities/generateColors.js +131 -0
- package/dist/themes/_generator/utilities/tests/generateColors.test.d.ts +1 -0
- package/dist/types/global.js +1 -0
- package/dist/utilities/storybook/Example.d.ts +13 -0
- package/dist/utilities/storybook/Example.js +14 -0
- package/dist/utilities/storybook/Placeholder.d.ts +9 -0
- package/dist/utilities/storybook/Placeholder.js +17 -0
- package/package.json +92 -61
- package/bundle.css +0 -1
- package/bundle.js +0 -27
- package/components/Accordion/Accordion.d.ts +0 -8
- package/components/Accordion/Accordion.js +0 -14
- package/components/Accordion/Accordion.types.d.ts +0 -39
- package/components/Accordion/AccordionContent.d.ts +0 -4
- package/components/Accordion/AccordionContent.js +0 -9
- package/components/Accordion/AccordionControlled.d.ts +0 -4
- package/components/Accordion/AccordionControlled.js +0 -23
- package/components/Accordion/AccordionTrigger.d.ts +0 -4
- package/components/Accordion/AccordionTrigger.js +0 -26
- package/components/Accordion/AccordionUncontrolled.d.ts +0 -4
- package/components/Accordion/AccordionUncontrolled.js +0 -24
- package/components/ActionBar/ActionBar.d.ts +0 -4
- package/components/ActionBar/ActionBar.js +0 -10
- package/components/ActionBar/ActionBar.types.d.ts +0 -10
- package/components/Actionable/Actionable.js +0 -65
- package/components/Actionable/Actionable.module.css +0 -1
- package/components/Alert/Alert.d.ts +0 -4
- package/components/Alert/Alert.js +0 -31
- package/components/Alert/Alert.types.d.ts +0 -14
- package/components/Autocomplete/Autocomplete.d.ts +0 -7
- package/components/Autocomplete/Autocomplete.js +0 -75
- package/components/Avatar/Avatar.d.ts +0 -4
- package/components/Avatar/Avatar.js +0 -29
- package/components/Badge/Badge.d.ts +0 -7
- package/components/Badge/Badge.js +0 -24
- package/components/Badge/BadgeContainer.d.ts +0 -4
- package/components/Badge/BadgeContainer.js +0 -9
- package/components/Breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/components/Breadcrumbs/Breadcrumbs.js +0 -45
- package/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -13
- package/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -4
- package/components/Breadcrumbs/BreadcrumbsItem.js +0 -11
- package/components/Breadcrumbs/index.d.ts +0 -8
- package/components/Button/Button.js +0 -39
- package/components/Button/Button.module.css +0 -1
- package/components/Button/ButtonAligner.d.ts +0 -4
- package/components/Button/ButtonAligner.js +0 -7
- package/components/Button/ButtonGroup.d.ts +0 -4
- package/components/Button/ButtonGroup.js +0 -9
- package/components/Button/tests/Button.stories.d.ts +0 -16
- package/components/Button/tests/Button.stories.js +0 -628
- package/components/Calendar/Calendar.d.ts +0 -4
- package/components/Calendar/Calendar.js +0 -9
- package/components/Calendar/CalendarControlled.d.ts +0 -4
- package/components/Calendar/CalendarControlled.js +0 -72
- package/components/Calendar/CalendarControls.d.ts +0 -4
- package/components/Calendar/CalendarControls.js +0 -56
- package/components/Calendar/CalendarDate.d.ts +0 -4
- package/components/Calendar/CalendarDate.js +0 -58
- package/components/Calendar/CalendarMonth.d.ts +0 -4
- package/components/Calendar/CalendarMonth.js +0 -54
- package/components/Calendar/CalendarUncontrolled.d.ts +0 -4
- package/components/Calendar/CalendarUncontrolled.js +0 -29
- package/components/Calendar/CalendarYear.d.ts +0 -4
- package/components/Calendar/CalendarYear.js +0 -45
- package/components/Card/Card.d.ts +0 -17
- package/components/Card/Card.js +0 -31
- package/components/Card/Card.types.d.ts +0 -16
- package/components/Carousel/Carousel.d.ts +0 -4
- package/components/Carousel/Carousel.js +0 -67
- package/components/Carousel/Carousel.module.css +0 -1
- package/components/Carousel/Carousel.types.d.ts +0 -28
- package/components/Carousel/CarouselControl.d.ts +0 -4
- package/components/Carousel/CarouselControl.js +0 -42
- package/components/Checkbox/Checkbox.d.ts +0 -4
- package/components/Checkbox/Checkbox.js +0 -43
- package/components/Checkbox/Checkbox.module.css +0 -1
- package/components/Checkbox/Checkbox.types.d.ts +0 -26
- package/components/CheckboxGroup/CheckboxGroup.d.ts +0 -4
- package/components/CheckboxGroup/CheckboxGroup.js +0 -10
- package/components/CheckboxGroup/CheckboxGroup.types.d.ts +0 -28
- package/components/CheckboxGroup/CheckboxGroupControlled.d.ts +0 -4
- package/components/CheckboxGroup/CheckboxGroupControlled.js +0 -22
- package/components/CheckboxGroup/CheckboxGroupUncontrolled.d.ts +0 -4
- package/components/CheckboxGroup/CheckboxGroupUncontrolled.js +0 -16
- package/components/Container/Container.d.ts +0 -4
- package/components/Container/Container.js +0 -10
- package/components/Container/Container.types.d.ts +0 -9
- package/components/Dismissible/Dismissible.d.ts +0 -4
- package/components/Dismissible/Dismissible.js +0 -15
- package/components/Dismissible/Dismissible.types.d.ts +0 -20
- package/components/Divider/Divider.d.ts +0 -4
- package/components/Divider/Divider.js +0 -14
- package/components/DropdownMenu/DropdownMenu.d.ts +0 -13
- package/components/DropdownMenu/DropdownMenu.js +0 -90
- package/components/DropdownMenu/DropdownMenu.types.d.ts +0 -16
- package/components/FileUpload/FileUpload.d.ts +0 -7
- package/components/FileUpload/FileUpload.js +0 -56
- package/components/FileUpload/FileUpload.types.d.ts +0 -13
- package/components/FormControl/FormControl.context.d.ts +0 -281
- package/components/FormControl/FormControl.d.ts +0 -9
- package/components/FormControl/FormControl.js +0 -68
- package/components/FormControl/FormControl.types.d.ts +0 -33
- package/components/Hidden/Hidden.d.ts +0 -4
- package/components/Hidden/Hidden.js +0 -11
- package/components/Hidden/Hidden.types.d.ts +0 -9
- package/components/HiddenVisually/HiddenVisually.d.ts +0 -4
- package/components/HiddenVisually/HiddenVisually.js +0 -7
- package/components/HiddenVisually/HiddenVisually.module.css +0 -1
- package/components/HiddenVisually/HiddenVisually.types.d.ts +0 -4
- package/components/Hotkey/Hotkey.d.ts +0 -4
- package/components/Hotkey/Hotkey.js +0 -10
- package/components/Hotkey/Hotkey.types.d.ts +0 -8
- package/components/Icon/Icon.d.ts +0 -4
- package/components/Icon/Icon.js +0 -17
- package/components/Icon/Icon.types.d.ts +0 -10
- package/components/Image/Image.d.ts +0 -4
- package/components/Image/Image.js +0 -37
- package/components/Image/Image.types.d.ts +0 -19
- package/components/Link/Link.js +0 -13
- package/components/Loader/Loader.d.ts +0 -4
- package/components/Loader/Loader.js +0 -11
- package/components/MenuItem/MenuItem.js +0 -22
- package/components/MenuItem/MenuItem.module.css +0 -1
- package/components/MenuItem/MenuItemAligner.d.ts +0 -4
- package/components/MenuItem/MenuItemAligner.js +0 -7
- package/components/Modal/Modal.d.ts +0 -8
- package/components/Modal/Modal.js +0 -163
- package/components/Modal/Modal.types.d.ts +0 -26
- package/components/Overlay/Overlay.d.ts +0 -4
- package/components/Overlay/Overlay.js +0 -115
- package/components/Overlay/Overlay.module.css +0 -1
- package/components/Overlay/Overlay.types.d.ts +0 -12
- package/components/Popover/Popover.d.ts +0 -8
- package/components/Popover/Popover.js +0 -19
- package/components/Popover/Popover.types.d.ts +0 -7
- package/components/Progress/Progress.d.ts +0 -4
- package/components/Progress/Progress.js +0 -18
- package/components/Radio/Radio.d.ts +0 -4
- package/components/Radio/Radio.js +0 -34
- package/components/Radio/Radio.module.css +0 -1
- package/components/Radio/Radio.types.d.ts +0 -25
- package/components/RadioGroup/RadioGroup.d.ts +0 -4
- package/components/RadioGroup/RadioGroup.js +0 -10
- package/components/RadioGroup/RadioGroup.types.d.ts +0 -28
- package/components/RadioGroup/RadioGroupControlled.d.ts +0 -4
- package/components/RadioGroup/RadioGroupControlled.js +0 -14
- package/components/RadioGroup/RadioGroupUncontrolled.d.ts +0 -4
- package/components/RadioGroup/RadioGroupUncontrolled.js +0 -16
- package/components/Reshaped/Reshaped.d.ts +0 -5
- package/components/Reshaped/Reshaped.js +0 -26
- package/components/Scrim/Scrim.d.ts +0 -4
- package/components/Scrim/Scrim.js +0 -13
- package/components/Select/Select.d.ts +0 -4
- package/components/Select/Select.js +0 -59
- package/components/Skeleton/Skeleton.d.ts +0 -4
- package/components/Skeleton/Skeleton.js +0 -10
- package/components/Skeleton/Skeleton.types.d.ts +0 -6
- package/components/Slider/Slider.d.ts +0 -4
- package/components/Slider/Slider.js +0 -26
- package/components/Slider/Slider.module.css +0 -1
- package/components/Slider/SliderControlled.d.ts +0 -4
- package/components/Slider/SliderControlled.js +0 -172
- package/components/Slider/SliderThumb.js +0 -21
- package/components/Slider/SliderUncontrolled.d.ts +0 -4
- package/components/Slider/SliderUncontrolled.js +0 -32
- package/components/Stepper/Stepper.d.ts +0 -7
- package/components/Stepper/Stepper.js +0 -43
- package/components/Stepper/Stepper.types.d.ts +0 -26
- package/components/Switch/Switch.d.ts +0 -4
- package/components/Switch/Switch.js +0 -31
- package/components/Switch/Switch.module.css +0 -1
- package/components/Table/Table.d.ts +0 -11
- package/components/Table/Table.js +0 -45
- package/components/Tabs/Tabs.d.ts +0 -9
- package/components/Tabs/Tabs.js +0 -16
- package/components/Tabs/Tabs.module.css +0 -1
- package/components/Tabs/Tabs.types.d.ts +0 -61
- package/components/Tabs/TabsControlled.d.ts +0 -4
- package/components/Tabs/TabsControlled.js +0 -41
- package/components/Tabs/TabsItem.js +0 -65
- package/components/Tabs/TabsList.d.ts +0 -4
- package/components/Tabs/TabsList.js +0 -160
- package/components/Tabs/TabsPanel.d.ts +0 -4
- package/components/Tabs/TabsPanel.js +0 -13
- package/components/Tabs/TabsUncontrolled.d.ts +0 -4
- package/components/Tabs/TabsUncontrolled.js +0 -18
- package/components/Text/Text.d.ts +0 -4
- package/components/Text/Text.js +0 -24
- package/components/Text/Text.module.css +0 -1
- package/components/Text/Text.types.d.ts +0 -15
- package/components/TextArea/TextArea.d.ts +0 -7
- package/components/TextArea/TextArea.js +0 -27
- package/components/TextField/TextField.d.ts +0 -7
- package/components/TextField/TextField.js +0 -49
- package/components/TextField/TextField.module.css +0 -1
- package/components/TextField/TextField.types.d.ts +0 -42
- package/components/Theme/GlobalColorMode.d.ts +0 -4
- package/components/Theme/GlobalColorMode.js +0 -42
- package/components/Theme/Theme.d.ts +0 -4
- package/components/Theme/Theme.js +0 -48
- package/components/Timeline/Timeline.d.ts +0 -7
- package/components/Timeline/Timeline.js +0 -21
- package/components/Timeline/Timeline.types.d.ts +0 -13
- package/components/Toast/Toast.d.ts +0 -6
- package/components/Toast/Toast.js +0 -55
- package/components/Toast/Toast.types.d.ts +0 -78
- package/components/Toast/ToastContainer.d.ts +0 -4
- package/components/Toast/ToastContainer.js +0 -97
- package/components/Toast/ToastProvider.d.ts +0 -4
- package/components/Toast/ToastProvider.js +0 -82
- package/components/Toast/ToastRegion.d.ts +0 -4
- package/components/Toast/ToastRegion.js +0 -63
- package/components/Tooltip/Tooltip.d.ts +0 -4
- package/components/Tooltip/Tooltip.js +0 -15
- package/components/View/View.d.ts +0 -7
- package/components/View/View.js +0 -138
- package/components/View/View.module.css +0 -1
- package/components/View/View.types.d.ts +0 -64
- package/components/View/tests/View.stories.d.ts +0 -32
- package/components/View/tests/View.stories.js +0 -1057
- package/components/_private/Aligner/Aligner.d.ts +0 -12
- package/components/_private/Aligner/Aligner.js +0 -18
- package/components/_private/Expandable/Expandable.d.ts +0 -4
- package/components/_private/Expandable/Expandable.js +0 -43
- package/components/_private/Flyout/Flyout.d.ts +0 -8
- package/components/_private/Flyout/Flyout.js +0 -14
- package/components/_private/Flyout/FlyoutContent.d.ts +0 -4
- package/components/_private/Flyout/FlyoutContent.js +0 -44
- package/components/_private/Flyout/FlyoutControlled.d.ts +0 -4
- package/components/_private/Flyout/FlyoutControlled.js +0 -222
- package/components/_private/Flyout/FlyoutTrigger.d.ts +0 -4
- package/components/_private/Flyout/FlyoutTrigger.js +0 -38
- package/components/_private/Flyout/FlyoutUncontrolled.d.ts +0 -4
- package/components/_private/Flyout/FlyoutUncontrolled.js +0 -19
- package/components/_private/HiddenInput/HiddenInput.d.ts +0 -4
- package/components/_private/HiddenInput/HiddenInput.js +0 -9
- package/components/_private/Portal/Portal.d.ts +0 -13
- package/components/_private/Portal/Portal.js +0 -33
- package/hooks/_private/useSingletonHotkeys.d.ts +0 -34
- package/hooks/_private/useSingletonHotkeys.js +0 -202
- package/icons/ArrowUpRight.d.ts +0 -3
- package/icons/ArrowUpRight.js +0 -7
- package/icons/Checkmark.d.ts +0 -3
- package/icons/Checkmark.js +0 -6
- package/icons/ChevronDown.d.ts +0 -3
- package/icons/ChevronDown.js +0 -6
- package/icons/ChevronLeft.d.ts +0 -3
- package/icons/ChevronLeft.js +0 -6
- package/icons/ChevronRight.d.ts +0 -3
- package/icons/ChevronRight.js +0 -6
- package/icons/ChevronVertical.d.ts +0 -3
- package/icons/ChevronVertical.js +0 -5
- package/icons/Close.d.ts +0 -3
- package/icons/Close.js +0 -7
- package/icons/DotsHorizontal.d.ts +0 -3
- package/icons/DotsHorizontal.js +0 -6
- package/icons/Mic.d.ts +0 -3
- package/icons/Mic.js +0 -9
- package/icons/Zap.d.ts +0 -3
- package/icons/Zap.js +0 -6
- package/styles/bleed/bleed.module.css +0 -1
- package/styles/padding/padding.module.css +0 -1
- package/themes/_generator/tests/themes.stories.js +0 -153
- package/themes/_generator/utilities/generateColors.js +0 -131
- package/utilities/storybook/Example.d.ts +0 -13
- package/utilities/storybook/Example.js +0 -18
- package/utilities/storybook/Placeholder.d.ts +0 -9
- package/utilities/storybook/Placeholder.js +0 -17
- /package/{bundle.d.ts → dist/bundle.d.ts} +0 -0
- /package/{cli → dist/cli}/theming/index.d.ts +0 -0
- /package/{cli → dist/cli}/theming/index.js +0 -0
- /package/{cli → dist/cli}/theming/reshaped.config.d.ts +0 -0
- /package/{cli → dist/cli}/theming/reshaped.config.js +0 -0
- /package/{components → dist/components}/Accordion/Accordion.context.d.ts +0 -0
- /package/{components → dist/components}/Accordion/Accordion.context.js +0 -0
- /package/{components → dist/components}/Accordion/Accordion.module.css +0 -0
- /package/{components → dist/components}/Accordion/Accordion.types.js +0 -0
- /package/{components → dist/components}/Accordion/index.d.ts +0 -0
- /package/{components → dist/components}/Accordion/index.js +0 -0
- /package/{components → dist/components}/Accordion/tests/Accordion.stories.d.ts +0 -0
- /package/{components → dist/components}/Accordion/tests/Accordion.stories.js +0 -0
- /package/{components → dist/components}/ActionBar/ActionBar.module.css +0 -0
- /package/{components → dist/components}/ActionBar/ActionBar.types.js +0 -0
- /package/{components → dist/components}/ActionBar/index.d.ts +0 -0
- /package/{components → dist/components}/ActionBar/index.js +0 -0
- /package/{components → dist/components}/ActionBar/tests/ActionBar.stories.d.ts +0 -0
- /package/{components → dist/components}/ActionBar/tests/ActionBar.stories.js +0 -0
- /package/{components → dist/components}/Actionable/Actionable.d.ts +0 -0
- /package/{components → dist/components}/Actionable/Actionable.types.d.ts +0 -0
- /package/{components → dist/components}/Actionable/Actionable.types.js +0 -0
- /package/{components → dist/components}/Actionable/index.d.ts +0 -0
- /package/{components → dist/components}/Actionable/index.js +0 -0
- /package/{components → dist/components}/Actionable/tests/Actionable.stories.d.ts +0 -0
- /package/{components → dist/components}/Actionable/tests/Actionable.stories.js +0 -0
- /package/{components → dist/components}/Alert/Alert.types.js +0 -0
- /package/{components → dist/components}/Alert/index.d.ts +0 -0
- /package/{components → dist/components}/Alert/index.js +0 -0
- /package/{components → dist/components}/Alert/tests/Alert.stories.d.ts +0 -0
- /package/{components → dist/components}/Alert/tests/Alert.stories.js +0 -0
- /package/{components → dist/components}/Autocomplete/Autocomplete.types.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/Autocomplete.types.js +0 -0
- /package/{components → dist/components}/Autocomplete/index.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/index.js +0 -0
- /package/{components → dist/components}/Autocomplete/tests/Autocomplete.stories.d.ts +0 -0
- /package/{components → dist/components}/Autocomplete/tests/Autocomplete.stories.js +0 -0
- /package/{components → dist/components}/Avatar/Avatar.module.css +0 -0
- /package/{components → dist/components}/Avatar/Avatar.types.d.ts +0 -0
- /package/{components → dist/components}/Avatar/Avatar.types.js +0 -0
- /package/{components → dist/components}/Avatar/index.d.ts +0 -0
- /package/{components → dist/components}/Avatar/index.js +0 -0
- /package/{components → dist/components}/Avatar/tests/Avatar.stories.d.ts +0 -0
- /package/{components → dist/components}/Avatar/tests/Avatar.stories.js +0 -0
- /package/{components → dist/components}/Badge/Badge.module.css +0 -0
- /package/{components → dist/components}/Badge/Badge.types.d.ts +0 -0
- /package/{components → dist/components}/Badge/Badge.types.js +0 -0
- /package/{components → dist/components}/Badge/index.d.ts +0 -0
- /package/{components → dist/components}/Badge/index.js +0 -0
- /package/{components → dist/components}/Badge/tests/Badge.stories.d.ts +0 -0
- /package/{components → dist/components}/Badge/tests/Badge.stories.js +0 -0
- /package/{components → dist/components}/Breadcrumbs/Breadcrumbs.types.js +0 -0
- /package/{components → dist/components}/Breadcrumbs/index.js +0 -0
- /package/{components → dist/components}/Breadcrumbs/tests/Breadcrumbs.stories.d.ts +0 -0
- /package/{components → dist/components}/Breadcrumbs/tests/Breadcrumbs.stories.js +0 -0
- /package/{components → dist/components}/Button/Button.d.ts +0 -0
- /package/{components → dist/components}/Button/Button.types.d.ts +0 -0
- /package/{components → dist/components}/Button/Button.types.js +0 -0
- /package/{components → dist/components}/Button/index.d.ts +0 -0
- /package/{components → dist/components}/Button/index.js +0 -0
- /package/{components → dist/components}/Calendar/Calendar.module.css +0 -0
- /package/{components → dist/components}/Calendar/Calendar.types.d.ts +0 -0
- /package/{components → dist/components}/Calendar/Calendar.types.js +0 -0
- /package/{components → dist/components}/Calendar/Calendar.utils.d.ts +0 -0
- /package/{components → dist/components}/Calendar/Calendar.utils.js +0 -0
- /package/{components → dist/components}/Calendar/index.d.ts +0 -0
- /package/{components → dist/components}/Calendar/index.js +0 -0
- /package/{components → dist/components}/Calendar/tests/Calendar.stories.d.ts +0 -0
- /package/{components → dist/components}/Calendar/tests/Calendar.stories.js +0 -0
- /package/{components → dist/components}/Calendar/useCalendarKeyboardNavigation.d.ts +0 -0
- /package/{components → dist/components}/Calendar/useCalendarKeyboardNavigation.js +0 -0
- /package/{components → dist/components}/Card/Card.module.css +0 -0
- /package/{components → dist/components}/Card/Card.types.js +0 -0
- /package/{components → dist/components}/Card/index.d.ts +0 -0
- /package/{components → dist/components}/Card/index.js +0 -0
- /package/{components → dist/components}/Card/tests/Card.stories.d.ts +0 -0
- /package/{components → dist/components}/Card/tests/Card.stories.js +0 -0
- /package/{components → dist/components}/Carousel/Carousel.types.js +0 -0
- /package/{components → dist/components}/Carousel/index.d.ts +0 -0
- /package/{components → dist/components}/Carousel/index.js +0 -0
- /package/{components → dist/components}/Carousel/tests/Carousel.stories.d.ts +0 -0
- /package/{components → dist/components}/Carousel/tests/Carousel.stories.js +0 -0
- /package/{components → dist/components}/Checkbox/Checkbox.types.js +0 -0
- /package/{components → dist/components}/Checkbox/index.d.ts +0 -0
- /package/{components → dist/components}/Checkbox/index.js +0 -0
- /package/{components → dist/components}/Checkbox/tests/Checkbox.stories.d.ts +0 -0
- /package/{components → dist/components}/Checkbox/tests/Checkbox.stories.js +0 -0
- /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.context.d.ts +0 -0
- /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.context.js +0 -0
- /package/{components → dist/components}/CheckboxGroup/CheckboxGroup.types.js +0 -0
- /package/{components → dist/components}/CheckboxGroup/index.d.ts +0 -0
- /package/{components → dist/components}/CheckboxGroup/index.js +0 -0
- /package/{components → dist/components}/CheckboxGroup/tests/CheckboxGroup.stories.d.ts +0 -0
- /package/{components → dist/components}/CheckboxGroup/tests/CheckboxGroup.stories.js +0 -0
- /package/{components → dist/components}/Container/Container.module.css +0 -0
- /package/{components → dist/components}/Container/Container.types.js +0 -0
- /package/{components → dist/components}/Container/index.d.ts +0 -0
- /package/{components → dist/components}/Container/index.js +0 -0
- /package/{components → dist/components}/Container/tests/Container.stories.d.ts +0 -0
- /package/{components → dist/components}/Container/tests/Container.stories.js +0 -0
- /package/{components → dist/components}/Dismissible/Dismissible.module.css +0 -0
- /package/{components → dist/components}/Dismissible/Dismissible.types.js +0 -0
- /package/{components → dist/components}/Dismissible/index.d.ts +0 -0
- /package/{components → dist/components}/Dismissible/index.js +0 -0
- /package/{components → dist/components}/Dismissible/tests/Dismissible.stories.d.ts +0 -0
- /package/{components → dist/components}/Dismissible/tests/Dismissible.stories.js +0 -0
- /package/{components → dist/components}/Divider/Divider.module.css +0 -0
- /package/{components → dist/components}/Divider/Divider.types.d.ts +0 -0
- /package/{components → dist/components}/Divider/Divider.types.js +0 -0
- /package/{components → dist/components}/Divider/index.d.ts +0 -0
- /package/{components → dist/components}/Divider/index.js +0 -0
- /package/{components → dist/components}/Divider/tests/Divider.stories.d.ts +0 -0
- /package/{components → dist/components}/Divider/tests/Divider.stories.js +0 -0
- /package/{components → dist/components}/DropdownMenu/DropdownMenu.module.css +0 -0
- /package/{components → dist/components}/DropdownMenu/DropdownMenu.types.js +0 -0
- /package/{components → dist/components}/DropdownMenu/index.d.ts +0 -0
- /package/{components → dist/components}/DropdownMenu/index.js +0 -0
- /package/{components → dist/components}/DropdownMenu/tests/DropdownMenu.stories.d.ts +0 -0
- /package/{components → dist/components}/DropdownMenu/tests/DropdownMenu.stories.js +0 -0
- /package/{components → dist/components}/FileUpload/FileUpload.module.css +0 -0
- /package/{components → dist/components}/FileUpload/FileUpload.types.js +0 -0
- /package/{components → dist/components}/FileUpload/index.d.ts +0 -0
- /package/{components → dist/components}/FileUpload/index.js +0 -0
- /package/{components → dist/components}/FileUpload/tests/FileUpload.stories.d.ts +0 -0
- /package/{components → dist/components}/FileUpload/tests/FileUpload.stories.js +0 -0
- /package/{components → dist/components}/FormControl/FormControl.context.js +0 -0
- /package/{components → dist/components}/FormControl/FormControl.module.css +0 -0
- /package/{components → dist/components}/FormControl/FormControl.types.js +0 -0
- /package/{components → dist/components}/FormControl/index.d.ts +0 -0
- /package/{components → dist/components}/FormControl/index.js +0 -0
- /package/{components → dist/components}/FormControl/tests/FormControl.stories.d.ts +0 -0
- /package/{components → dist/components}/FormControl/tests/FormControl.stories.js +0 -0
- /package/{components → dist/components}/Hidden/Hidden.module.css +0 -0
- /package/{components → dist/components}/Hidden/Hidden.types.js +0 -0
- /package/{components → dist/components}/Hidden/index.d.ts +0 -0
- /package/{components → dist/components}/Hidden/index.js +0 -0
- /package/{components → dist/components}/Hidden/tests/Hidden.stories.d.ts +0 -0
- /package/{components → dist/components}/Hidden/tests/Hidden.stories.js +0 -0
- /package/{components → dist/components}/HiddenVisually/HiddenVisually.types.js +0 -0
- /package/{components → dist/components}/HiddenVisually/index.d.ts +0 -0
- /package/{components → dist/components}/HiddenVisually/index.js +0 -0
- /package/{components → dist/components}/HiddenVisually/tests/HiddenVisually.stories.d.ts +0 -0
- /package/{components → dist/components}/HiddenVisually/tests/HiddenVisually.stories.js +0 -0
- /package/{components → dist/components}/Hotkey/Hotkey.module.css +0 -0
- /package/{components → dist/components}/Hotkey/Hotkey.types.js +0 -0
- /package/{components → dist/components}/Hotkey/index.d.ts +0 -0
- /package/{components → dist/components}/Hotkey/index.js +0 -0
- /package/{components → dist/components}/Hotkey/tests/Hotkey.stories.d.ts +0 -0
- /package/{components → dist/components}/Hotkey/tests/Hotkey.stories.js +0 -0
- /package/{components → dist/components}/Icon/Icon.module.css +0 -0
- /package/{components → dist/components}/Icon/Icon.types.js +0 -0
- /package/{components → dist/components}/Icon/index.d.ts +0 -0
- /package/{components → dist/components}/Icon/index.js +0 -0
- /package/{components → dist/components}/Icon/tests/Icon.stories.d.ts +0 -0
- /package/{components → dist/components}/Icon/tests/Icon.stories.js +0 -0
- /package/{components → dist/components}/Image/Image.module.css +0 -0
- /package/{components → dist/components}/Image/Image.types.js +0 -0
- /package/{components → dist/components}/Image/index.d.ts +0 -0
- /package/{components → dist/components}/Image/index.js +0 -0
- /package/{components → dist/components}/Image/tests/Image.stories.d.ts +0 -0
- /package/{components → dist/components}/Image/tests/Image.stories.js +0 -0
- /package/{components → dist/components}/Link/Link.d.ts +0 -0
- /package/{components → dist/components}/Link/Link.module.css +0 -0
- /package/{components → dist/components}/Link/Link.types.d.ts +0 -0
- /package/{components → dist/components}/Link/Link.types.js +0 -0
- /package/{components → dist/components}/Link/index.d.ts +0 -0
- /package/{components → dist/components}/Link/index.js +0 -0
- /package/{components → dist/components}/Link/tests/Link.stories.d.ts +0 -0
- /package/{components → dist/components}/Link/tests/Link.stories.js +0 -0
- /package/{components → dist/components}/Loader/Loader.module.css +0 -0
- /package/{components → dist/components}/Loader/Loader.types.d.ts +0 -0
- /package/{components → dist/components}/Loader/Loader.types.js +0 -0
- /package/{components → dist/components}/Loader/index.d.ts +0 -0
- /package/{components → dist/components}/Loader/index.js +0 -0
- /package/{components → dist/components}/Loader/tests/Loader.stories.d.ts +0 -0
- /package/{components → dist/components}/Loader/tests/Loader.stories.js +0 -0
- /package/{components → dist/components}/MenuItem/MenuItem.d.ts +0 -0
- /package/{components → dist/components}/MenuItem/MenuItem.types.d.ts +0 -0
- /package/{components → dist/components}/MenuItem/MenuItem.types.js +0 -0
- /package/{components → dist/components}/MenuItem/index.d.ts +0 -0
- /package/{components → dist/components}/MenuItem/index.js +0 -0
- /package/{components → dist/components}/MenuItem/tests/MenuItem.stories.d.ts +0 -0
- /package/{components → dist/components}/MenuItem/tests/MenuItem.stories.js +0 -0
- /package/{components → dist/components}/Modal/Modal.module.css +0 -0
- /package/{components → dist/components}/Modal/Modal.types.js +0 -0
- /package/{components → dist/components}/Modal/index.d.ts +0 -0
- /package/{components → dist/components}/Modal/index.js +0 -0
- /package/{components → dist/components}/Modal/tests/Modal.stories.d.ts +0 -0
- /package/{components → dist/components}/Modal/tests/Modal.stories.js +0 -0
- /package/{components → dist/components}/Overlay/Overlay.types.js +0 -0
- /package/{components → dist/components}/Overlay/index.d.ts +0 -0
- /package/{components → dist/components}/Overlay/index.js +0 -0
- /package/{components → dist/components}/Overlay/tests/Overlay.stories.d.ts +0 -0
- /package/{components → dist/components}/Overlay/tests/Overlay.stories.js +0 -0
- /package/{components → dist/components}/Popover/Popover.module.css +0 -0
- /package/{components → dist/components}/Popover/Popover.types.js +0 -0
- /package/{components → dist/components}/Popover/index.d.ts +0 -0
- /package/{components → dist/components}/Popover/index.js +0 -0
- /package/{components → dist/components}/Popover/tests/Popover.stories.d.ts +0 -0
- /package/{components → dist/components}/Popover/tests/Popover.stories.js +0 -0
- /package/{components → dist/components}/Progress/Progress.module.css +0 -0
- /package/{components → dist/components}/Progress/Progress.types.d.ts +0 -0
- /package/{components → dist/components}/Progress/Progress.types.js +0 -0
- /package/{components → dist/components}/Progress/index.d.ts +0 -0
- /package/{components → dist/components}/Progress/index.js +0 -0
- /package/{components → dist/components}/Progress/tests/Progress.stories.d.ts +0 -0
- /package/{components → dist/components}/Progress/tests/Progress.stories.js +0 -0
- /package/{components → dist/components}/Radio/Radio.types.js +0 -0
- /package/{components → dist/components}/Radio/index.d.ts +0 -0
- /package/{components → dist/components}/Radio/index.js +0 -0
- /package/{components → dist/components}/Radio/tests/Radio.stories.d.ts +0 -0
- /package/{components → dist/components}/Radio/tests/Radio.stories.js +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.context.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.context.js +0 -0
- /package/{components → dist/components}/RadioGroup/RadioGroup.types.js +0 -0
- /package/{components → dist/components}/RadioGroup/index.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup/index.js +0 -0
- /package/{components → dist/components}/RadioGroup/tests/RadioGroup.stories.d.ts +0 -0
- /package/{components → dist/components}/RadioGroup/tests/RadioGroup.stories.js +0 -0
- /package/{components → dist/components}/Reshaped/Reshaped.css +0 -0
- /package/{components → dist/components}/Reshaped/Reshaped.module.css +0 -0
- /package/{components → dist/components}/Reshaped/Reshaped.types.d.ts +0 -0
- /package/{components → dist/components}/Reshaped/Reshaped.types.js +0 -0
- /package/{components → dist/components}/Reshaped/index.d.ts +0 -0
- /package/{components → dist/components}/Reshaped/index.js +0 -0
- /package/{components → dist/components}/Scrim/Scrim.module.css +0 -0
- /package/{components → dist/components}/Scrim/Scrim.types.d.ts +0 -0
- /package/{components → dist/components}/Scrim/Scrim.types.js +0 -0
- /package/{components → dist/components}/Scrim/index.d.ts +0 -0
- /package/{components → dist/components}/Scrim/index.js +0 -0
- /package/{components → dist/components}/Scrim/tests/Scrim.stories.d.ts +0 -0
- /package/{components → dist/components}/Scrim/tests/Scrim.stories.js +0 -0
- /package/{components → dist/components}/Select/Select.module.css +0 -0
- /package/{components → dist/components}/Select/Select.types.d.ts +0 -0
- /package/{components → dist/components}/Select/Select.types.js +0 -0
- /package/{components → dist/components}/Select/index.d.ts +0 -0
- /package/{components → dist/components}/Select/index.js +0 -0
- /package/{components → dist/components}/Select/tests/Select.stories.d.ts +0 -0
- /package/{components → dist/components}/Select/tests/Select.stories.js +0 -0
- /package/{components → dist/components}/Skeleton/Skeleton.module.css +0 -0
- /package/{components → dist/components}/Skeleton/Skeleton.types.js +0 -0
- /package/{components → dist/components}/Skeleton/index.d.ts +0 -0
- /package/{components → dist/components}/Skeleton/index.js +0 -0
- /package/{components → dist/components}/Skeleton/tests/Skeleton.stories.d.ts +0 -0
- /package/{components → dist/components}/Skeleton/tests/Skeleton.stories.js +0 -0
- /package/{components → dist/components}/Slider/Slider.types.d.ts +0 -0
- /package/{components → dist/components}/Slider/Slider.types.js +0 -0
- /package/{components → dist/components}/Slider/SliderThumb.d.ts +0 -0
- /package/{components → dist/components}/Slider/index.d.ts +0 -0
- /package/{components → dist/components}/Slider/index.js +0 -0
- /package/{components → dist/components}/Slider/tests/Slider.stories.d.ts +0 -0
- /package/{components → dist/components}/Slider/tests/Slider.stories.js +0 -0
- /package/{components → dist/components}/Stepper/Stepper.module.css +0 -0
- /package/{components → dist/components}/Stepper/Stepper.types.js +0 -0
- /package/{components → dist/components}/Stepper/index.d.ts +0 -0
- /package/{components → dist/components}/Stepper/index.js +0 -0
- /package/{components → dist/components}/Stepper/tests/Stepper.stories.d.ts +0 -0
- /package/{components → dist/components}/Stepper/tests/Stepper.stories.js +0 -0
- /package/{components → dist/components}/Switch/Switch.types.d.ts +0 -0
- /package/{components → dist/components}/Switch/Switch.types.js +0 -0
- /package/{components → dist/components}/Switch/index.d.ts +0 -0
- /package/{components → dist/components}/Switch/index.js +0 -0
- /package/{components → dist/components}/Switch/tests/Switch.stories.d.ts +0 -0
- /package/{components → dist/components}/Switch/tests/Switch.stories.js +0 -0
- /package/{components → dist/components}/Table/Table.module.css +0 -0
- /package/{components → dist/components}/Table/Table.types.d.ts +0 -0
- /package/{components → dist/components}/Table/Table.types.js +0 -0
- /package/{components → dist/components}/Table/index.d.ts +0 -0
- /package/{components → dist/components}/Table/index.js +0 -0
- /package/{components → dist/components}/Table/tests/Table.stories.d.ts +0 -0
- /package/{components → dist/components}/Table/tests/Table.stories.js +0 -0
- /package/{components → dist/components}/Tabs/Tabs.types.js +0 -0
- /package/{components → dist/components}/Tabs/TabsContext.d.ts +0 -0
- /package/{components → dist/components}/Tabs/TabsContext.js +0 -0
- /package/{components → dist/components}/Tabs/TabsItem.d.ts +0 -0
- /package/{components → dist/components}/Tabs/index.d.ts +0 -0
- /package/{components → dist/components}/Tabs/index.js +0 -0
- /package/{components → dist/components}/Tabs/tests/Tabs.stories.d.ts +0 -0
- /package/{components → dist/components}/Tabs/tests/Tabs.stories.js +0 -0
- /package/{components → dist/components}/Text/Text.types.js +0 -0
- /package/{components → dist/components}/Text/index.d.ts +0 -0
- /package/{components → dist/components}/Text/index.js +0 -0
- /package/{components → dist/components}/Text/tests/Text.stories.d.ts +0 -0
- /package/{components → dist/components}/Text/tests/Text.stories.js +0 -0
- /package/{components → dist/components}/TextArea/TextArea.module.css +0 -0
- /package/{components → dist/components}/TextArea/TextArea.types.d.ts +0 -0
- /package/{components → dist/components}/TextArea/TextArea.types.js +0 -0
- /package/{components → dist/components}/TextArea/index.d.ts +0 -0
- /package/{components → dist/components}/TextArea/index.js +0 -0
- /package/{components → dist/components}/TextArea/tests/TextArea.stories.d.ts +0 -0
- /package/{components → dist/components}/TextArea/tests/TextArea.stories.js +0 -0
- /package/{components → dist/components}/TextField/TextField.types.js +0 -0
- /package/{components → dist/components}/TextField/index.d.ts +0 -0
- /package/{components → dist/components}/TextField/index.js +0 -0
- /package/{components → dist/components}/TextField/tests/TextField.stories.d.ts +0 -0
- /package/{components → dist/components}/TextField/tests/TextField.stories.js +0 -0
- /package/{components → dist/components}/Theme/Theme.context.d.ts +0 -0
- /package/{components → dist/components}/Theme/Theme.context.js +0 -0
- /package/{components → dist/components}/Theme/Theme.module.css +0 -0
- /package/{components → dist/components}/Theme/Theme.types.d.ts +0 -0
- /package/{components → dist/components}/Theme/Theme.types.js +0 -0
- /package/{components → dist/components}/Theme/index.d.ts +0 -0
- /package/{components → dist/components}/Theme/index.js +0 -0
- /package/{components → dist/components}/Theme/tests/Theme.stories.d.ts +0 -0
- /package/{components → dist/components}/Theme/tests/Theme.stories.js +0 -0
- /package/{components → dist/components}/Theme/useTheme.d.ts +0 -0
- /package/{components → dist/components}/Theme/useTheme.js +0 -0
- /package/{components → dist/components}/Timeline/Timeline.module.css +0 -0
- /package/{components → dist/components}/Timeline/Timeline.types.js +0 -0
- /package/{components → dist/components}/Timeline/index.d.ts +0 -0
- /package/{components → dist/components}/Timeline/index.js +0 -0
- /package/{components → dist/components}/Timeline/tests/Timeline.stories.d.ts +0 -0
- /package/{components → dist/components}/Timeline/tests/Timeline.stories.js +0 -0
- /package/{components → dist/components}/Toast/Toast.constants.d.ts +0 -0
- /package/{components → dist/components}/Toast/Toast.constants.js +0 -0
- /package/{components → dist/components}/Toast/Toast.context.d.ts +0 -0
- /package/{components → dist/components}/Toast/Toast.context.js +0 -0
- /package/{components → dist/components}/Toast/Toast.module.css +0 -0
- /package/{components → dist/components}/Toast/Toast.types.js +0 -0
- /package/{components → dist/components}/Toast/index.d.ts +0 -0
- /package/{components → dist/components}/Toast/index.js +0 -0
- /package/{components → dist/components}/Toast/tests/Toast.stories.d.ts +0 -0
- /package/{components → dist/components}/Toast/tests/Toast.stories.js +0 -0
- /package/{components → dist/components}/Toast/useToast.d.ts +0 -0
- /package/{components → dist/components}/Toast/useToast.js +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.module.css +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.types.d.ts +0 -0
- /package/{components → dist/components}/Tooltip/Tooltip.types.js +0 -0
- /package/{components → dist/components}/Tooltip/index.d.ts +0 -0
- /package/{components → dist/components}/Tooltip/index.js +0 -0
- /package/{components → dist/components}/Tooltip/tests/Tooltip.stories.d.ts +0 -0
- /package/{components → dist/components}/Tooltip/tests/Tooltip.stories.js +0 -0
- /package/{components → dist/components}/View/View.types.js +0 -0
- /package/{components → dist/components}/View/index.d.ts +0 -0
- /package/{components → dist/components}/View/index.js +0 -0
- /package/{components → dist/components}/_private/Aligner/Aligner.module.css +0 -0
- /package/{components → dist/components}/_private/Aligner/Aligner.types.d.ts +0 -0
- /package/{components → dist/components}/_private/Aligner/Aligner.types.js +0 -0
- /package/{components → dist/components}/_private/Aligner/index.d.ts +0 -0
- /package/{components → dist/components}/_private/Aligner/index.js +0 -0
- /package/{components → dist/components}/_private/Expandable/Expandable.module.css +0 -0
- /package/{components → dist/components}/_private/Expandable/Expandable.types.d.ts +0 -0
- /package/{components → dist/components}/_private/Expandable/Expandable.types.js +0 -0
- /package/{components → dist/components}/_private/Expandable/index.d.ts +0 -0
- /package/{components → dist/components}/_private/Expandable/index.js +0 -0
- /package/{components → dist/components}/_private/Flyout/Flyout.context.d.ts +0 -0
- /package/{components → dist/components}/_private/Flyout/Flyout.context.js +0 -0
- /package/{components → dist/components}/_private/Flyout/Flyout.module.css +0 -0
- /package/{components → dist/components}/_private/Flyout/Flyout.types.d.ts +0 -0
- /package/{components → dist/components}/_private/Flyout/Flyout.types.js +0 -0
- /package/{components → dist/components}/_private/Flyout/index.d.ts +0 -0
- /package/{components → dist/components}/_private/Flyout/index.js +0 -0
- /package/{components → dist/components}/_private/Flyout/tests/Flyout.stories.d.ts +0 -0
- /package/{components → dist/components}/_private/Flyout/tests/Flyout.stories.js +0 -0
- /package/{components → dist/components}/_private/HiddenInput/HiddenInput.module.css +0 -0
- /package/{components → dist/components}/_private/HiddenInput/HiddenInput.types.d.ts +0 -0
- /package/{components → dist/components}/_private/HiddenInput/HiddenInput.types.js +0 -0
- /package/{components → dist/components}/_private/HiddenInput/index.d.ts +0 -0
- /package/{components → dist/components}/_private/HiddenInput/index.js +0 -0
- /package/{components → dist/components}/_private/Portal/Portal.types.d.ts +0 -0
- /package/{components → dist/components}/_private/Portal/Portal.types.js +0 -0
- /package/{components → dist/components}/_private/Portal/index.d.ts +0 -0
- /package/{components → dist/components}/_private/Portal/index.js +0 -0
- /package/{components → dist/components}/_private/Portal/tests/Portal.stories.d.ts +0 -0
- /package/{components → dist/components}/_private/Portal/tests/Portal.stories.js +0 -0
- /package/{config → dist/config}/postcss.d.ts +0 -0
- /package/{config → dist/config}/postcss.js +0 -0
- /package/{config → dist/config}/tailwind.d.ts +0 -0
- /package/{config → dist/config}/tailwind.js +0 -0
- /package/{constants → dist/constants}/attributes.d.ts +0 -0
- /package/{constants → dist/constants}/attributes.js +0 -0
- /package/{constants → dist/constants}/keys.d.ts +0 -0
- /package/{constants → dist/constants}/keys.js +0 -0
- /package/{constants → dist/constants}/timeouts.d.ts +0 -0
- /package/{constants → dist/constants}/timeouts.js +0 -0
- /package/{hooks → dist/hooks}/_private/useFlyout.d.ts +0 -0
- /package/{hooks → dist/hooks}/_private/useFlyout.js +0 -0
- /package/{hooks → dist/hooks}/_private/useIsDismissible.d.ts +0 -0
- /package/{hooks → dist/hooks}/_private/useIsDismissible.js +0 -0
- /package/{hooks → dist/hooks}/_private/useOnClickOutside.d.ts +0 -0
- /package/{hooks → dist/hooks}/_private/useOnClickOutside.js +0 -0
- /package/{hooks → dist/hooks}/_private/useSingletonEnvironment.d.ts +0 -0
- /package/{hooks → dist/hooks}/_private/useSingletonEnvironment.js +0 -0
- /package/{hooks → dist/hooks}/_private/useSingletonKeyboardMode.d.ts +0 -0
- /package/{hooks → dist/hooks}/_private/useSingletonKeyboardMode.js +0 -0
- /package/{hooks → dist/hooks}/tests/useHotkeys.stories.d.ts +0 -0
- /package/{hooks → dist/hooks}/tests/useHotkeys.stories.js +0 -0
- /package/{hooks → dist/hooks}/tests/useResponsiveClientValue.stories.d.ts +0 -0
- /package/{hooks → dist/hooks}/tests/useResponsiveClientValue.stories.js +0 -0
- /package/{hooks → dist/hooks}/useElementId.d.ts +0 -0
- /package/{hooks → dist/hooks}/useElementId.js +0 -0
- /package/{hooks → dist/hooks}/useHotkeys.d.ts +0 -0
- /package/{hooks → dist/hooks}/useHotkeys.js +0 -0
- /package/{hooks → dist/hooks}/useIsomorphicLayoutEffect.d.ts +0 -0
- /package/{hooks → dist/hooks}/useIsomorphicLayoutEffect.js +0 -0
- /package/{hooks → dist/hooks}/useRTL.d.ts +0 -0
- /package/{hooks → dist/hooks}/useRTL.js +0 -0
- /package/{hooks → dist/hooks}/useResponsiveClientValue.d.ts +0 -0
- /package/{hooks → dist/hooks}/useResponsiveClientValue.js +0 -0
- /package/{hooks → dist/hooks}/useScrollLock.d.ts +0 -0
- /package/{hooks → dist/hooks}/useScrollLock.js +0 -0
- /package/{hooks → dist/hooks}/useToggle.d.ts +0 -0
- /package/{hooks → dist/hooks}/useToggle.js +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{styles → dist/styles}/aspectRatio/aspectRatio.module.css +0 -0
- /package/{styles → dist/styles}/aspectRatio/index.d.ts +0 -0
- /package/{styles → dist/styles}/aspectRatio/index.js +0 -0
- /package/{styles → dist/styles}/bleed/index.d.ts +0 -0
- /package/{styles → dist/styles}/bleed/index.js +0 -0
- /package/{styles → dist/styles}/height/height.module.css +0 -0
- /package/{styles → dist/styles}/height/index.d.ts +0 -0
- /package/{styles → dist/styles}/height/index.js +0 -0
- /package/{styles → dist/styles}/inset/index.d.ts +0 -0
- /package/{styles → dist/styles}/inset/index.js +0 -0
- /package/{styles → dist/styles}/inset/inset.module.css +0 -0
- /package/{styles → dist/styles}/maxHeight/index.d.ts +0 -0
- /package/{styles → dist/styles}/maxHeight/index.js +0 -0
- /package/{styles → dist/styles}/maxHeight/maxHeight.module.css +0 -0
- /package/{styles → dist/styles}/maxWidth/index.d.ts +0 -0
- /package/{styles → dist/styles}/maxWidth/index.js +0 -0
- /package/{styles → dist/styles}/maxWidth/maxWidth.module.css +0 -0
- /package/{styles/minWidth → dist/styles/minHeight}/index.d.ts +0 -0
- /package/{styles → dist/styles}/minWidth/index.js +0 -0
- /package/{styles → dist/styles}/minWidth/minWidth.module.css +0 -0
- /package/{styles → dist/styles}/padding/index.d.ts +0 -0
- /package/{styles → dist/styles}/padding/index.js +0 -0
- /package/{styles → dist/styles}/position/index.d.ts +0 -0
- /package/{styles → dist/styles}/position/index.js +0 -0
- /package/{styles → dist/styles}/position/position.module.css +0 -0
- /package/{styles → dist/styles}/radius/index.d.ts +0 -0
- /package/{styles → dist/styles}/radius/index.js +0 -0
- /package/{styles → dist/styles}/radius/radius.module.css +0 -0
- /package/{styles → dist/styles}/types.d.ts +0 -0
- /package/{styles → dist/styles}/types.js +0 -0
- /package/{styles → dist/styles}/width/index.d.ts +0 -0
- /package/{styles → dist/styles}/width/index.js +0 -0
- /package/{styles → dist/styles}/width/width.module.css +0 -0
- /package/{themes/_generator/utilities/tests/color.test.d.ts → dist/tests/themingWithDefinition.d.ts} +0 -0
- /package/{themes/_generator/utilities/tests/generateColors.test.d.ts → dist/tests/themingWithoutDefinition.d.ts} +0 -0
- /package/{themes → dist/themes}/_generator/constants.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/constants.js +0 -0
- /package/{themes → dist/themes}/_generator/definitions/figma.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/definitions/figma.js +0 -0
- /package/{themes → dist/themes}/_generator/definitions/reshaped.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/definitions/reshaped.js +0 -0
- /package/{themes → dist/themes}/_generator/definitions/slate.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/definitions/slate.js +0 -0
- /package/{themes → dist/themes}/_generator/tests/themes.stories.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/color/color.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/color/color.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/color/color.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/color/color.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/duration/duration.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/duration/duration.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/duration/duration.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/duration/duration.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/easing/easing.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/easing/easing.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/easing/easing.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/easing/easing.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/font/font.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/font/font.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/font/font.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/font/font.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontFamily/fontFamily.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontFamily/fontFamily.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontFamily/fontFamily.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontFamily/fontFamily.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontWeight/fontWeight.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontWeight/fontWeight.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontWeight/fontWeight.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/fontWeight/fontWeight.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/shadow/shadow.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/shadow/shadow.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/shadow/shadow.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/shadow/shadow.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/unit/unit.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/unit/unit.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/unit/unit.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/unit/unit.types.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/viewport/viewport.transforms.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/viewport/viewport.transforms.js +0 -0
- /package/{themes → dist/themes}/_generator/tokens/viewport/viewport.types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/tokens/viewport/viewport.types.js +0 -0
- /package/{themes → dist/themes}/_generator/transform.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/transform.js +0 -0
- /package/{themes → dist/themes}/_generator/types.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/types.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/color.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/color.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/css.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/css.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/generateBackgroundColors.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/generateBackgroundColors.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/generateColors.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/generateUnits.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/generateUnits.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/mergeDeep.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/mergeDeep.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/mergeDefinitions.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/mergeDefinitions.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/resolveTokenReference.d.ts +0 -0
- /package/{themes → dist/themes}/_generator/utilities/resolveTokenReference.js +0 -0
- /package/{types/global.js → dist/themes/_generator/utilities/tests/color.test.d.ts} +0 -0
- /package/{themes → dist/themes}/_generator/utilities/tests/color.test.js +0 -0
- /package/{themes → dist/themes}/_generator/utilities/tests/generateColors.test.js +0 -0
- /package/{themes → dist/themes}/figma/media.css +0 -0
- /package/{themes → dist/themes}/figma/theme.css +0 -0
- /package/{themes → dist/themes}/fragments/twitter/theme.css +0 -0
- /package/{themes → dist/themes}/index.d.ts +0 -0
- /package/{themes → dist/themes}/index.js +0 -0
- /package/{themes → dist/themes}/reshaped/media.css +0 -0
- /package/{themes → dist/themes}/reshaped/theme.css +0 -0
- /package/{themes → dist/themes}/slate/media.css +0 -0
- /package/{themes → dist/themes}/slate/theme.css +0 -0
- /package/{types → dist/types}/config.d.ts +0 -0
- /package/{types → dist/types}/config.js +0 -0
- /package/{types → dist/types}/global.d.ts +0 -0
- /package/{utilities → dist/utilities}/Chain.d.ts +0 -0
- /package/{utilities → dist/utilities}/Chain.js +0 -0
- /package/{utilities → dist/utilities}/a11y.d.ts +0 -0
- /package/{utilities → dist/utilities}/a11y.js +0 -0
- /package/{utilities → dist/utilities}/animation.d.ts +0 -0
- /package/{utilities → dist/utilities}/animation.js +0 -0
- /package/{utilities → dist/utilities}/dom.d.ts +0 -0
- /package/{utilities → dist/utilities}/dom.js +0 -0
- /package/{utilities → dist/utilities}/helpers.d.ts +0 -0
- /package/{utilities → dist/utilities}/helpers.js +0 -0
- /package/{utilities → dist/utilities}/storybook/Example.module.css +0 -0
- /package/{utilities → dist/utilities}/storybook/index.d.ts +0 -0
- /package/{utilities → dist/utilities}/storybook/index.js +0 -0
- /package/{utilities → dist/utilities}/string.d.ts +0 -0
- /package/{utilities → dist/utilities}/string.js +0 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
"use client";
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
import React from "react";
|
4
|
+
import View from "../View/index.js";
|
5
|
+
import { onNextFrame } from "../../utilities/animation.js";
|
6
|
+
import { setMonthToPrevious, setMonthToNext, setMonthTo, setYearToNext, setYearToPrevious, applyNavigationBounds, } from "./Calendar.utils.js";
|
7
|
+
import useCalendarKeyboardNavigation from "./useCalendarKeyboardNavigation.js";
|
8
|
+
import CalendarMonth from "./CalendarMonth.js";
|
9
|
+
import CalendarYear from "./CalendarYear.js";
|
10
|
+
import CalendarControls from "./CalendarControls.js";
|
11
|
+
const CalendarControlled = (props) => {
|
12
|
+
const { value, onChange, defaultMonth, min, max, range, firstWeekDay, renderMonthLabel, renderSelectedMonthLabel, renderWeekDay, previousMonthAriaLabel, previousYearAriaLabel, nextMonthAriaLabel, nextYearAriaLabel, monthSelectionAriaLabel, renderMonthAriaLabel, renderDateAriaLabel, } = props;
|
13
|
+
const [selectionMode, setSelectionMode] = React.useState("date");
|
14
|
+
const [monthDate, setMonthDate] = React.useState(defaultMonth || new Date());
|
15
|
+
const [hoveredDate, setHoveredDate] = React.useState(null);
|
16
|
+
const monthTitleRef = React.useRef(null);
|
17
|
+
const prevSelectionModeRef = React.useRef(selectionMode);
|
18
|
+
const bounds = applyNavigationBounds({ date: monthDate, min, max });
|
19
|
+
const selectionRootRef = React.useRef(null);
|
20
|
+
const handlePreviousClick = () => {
|
21
|
+
if (selectionMode === "month") {
|
22
|
+
setMonthDate((prev) => setYearToPrevious(prev));
|
23
|
+
return;
|
24
|
+
}
|
25
|
+
setMonthDate((prev) => setMonthToPrevious(prev));
|
26
|
+
};
|
27
|
+
const handleNextClick = () => {
|
28
|
+
if (selectionMode === "month") {
|
29
|
+
setMonthDate((prev) => setYearToNext(prev));
|
30
|
+
return;
|
31
|
+
}
|
32
|
+
setMonthDate((prev) => setMonthToNext(prev));
|
33
|
+
};
|
34
|
+
const handleMonthTitleClick = () => {
|
35
|
+
setSelectionMode("month");
|
36
|
+
};
|
37
|
+
const handleMonthClick = (i) => {
|
38
|
+
setMonthDate((prev) => setMonthTo(prev, i));
|
39
|
+
setSelectionMode("date");
|
40
|
+
};
|
41
|
+
const handleDateHover = (date) => {
|
42
|
+
setHoveredDate(date);
|
43
|
+
};
|
44
|
+
const handleDateHoverEnd = (date) => {
|
45
|
+
if (hoveredDate && +hoveredDate === +date)
|
46
|
+
setHoveredDate(null);
|
47
|
+
};
|
48
|
+
React.useEffect(() => {
|
49
|
+
if (selectionMode === "date" && selectionMode !== prevSelectionModeRef.current) {
|
50
|
+
onNextFrame(() => {
|
51
|
+
var _a;
|
52
|
+
(_a = monthTitleRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
53
|
+
});
|
54
|
+
}
|
55
|
+
prevSelectionModeRef.current = selectionMode;
|
56
|
+
}, [selectionMode]);
|
57
|
+
useCalendarKeyboardNavigation({
|
58
|
+
monthDate,
|
59
|
+
rootRef: selectionRootRef,
|
60
|
+
changeToNextMonth: handleNextClick,
|
61
|
+
changeToPreviousMonth: handlePreviousClick,
|
62
|
+
// Each row has 7 days in date selection and 3 months in month
|
63
|
+
verticalDelta: selectionMode === "date" ? 7 : 3,
|
64
|
+
min,
|
65
|
+
max,
|
66
|
+
});
|
67
|
+
return (_jsxs(View, { gap: 2, children: [_jsx(CalendarControls, { renderSelectedMonthLabel: renderSelectedMonthLabel, monthDate: monthDate, selectionMode: selectionMode, isFirstMonth: bounds.isFirstMonth, isLastMonth: bounds.isLastMonth, monthTitleRef: monthTitleRef, onMonthTitleClick: handleMonthTitleClick, onNextClick: handleNextClick, onPreviousClick: handlePreviousClick, previousMonthAriaLabel: previousMonthAriaLabel, previousYearAriaLabel: previousYearAriaLabel, nextMonthAriaLabel: nextMonthAriaLabel, nextYearAriaLabel: nextYearAriaLabel, monthSelectionAriaLabel: monthSelectionAriaLabel }), _jsxs(View.Item, { attributes: { ref: selectionRootRef }, children: [selectionMode === "date" && (_jsx(CalendarMonth, { date: monthDate, value: value, onChange: onChange, min: min, max: max, range: range, firstWeekDay: firstWeekDay, hoveredDate: hoveredDate, onDateHover: handleDateHover, onDateHoverEnd: handleDateHoverEnd, renderWeekDay: renderWeekDay, renderDateAriaLabel: renderDateAriaLabel })), selectionMode === "month" && (_jsx(CalendarYear, { monthDate: monthDate, onMonthClick: handleMonthClick, renderMonthLabel: renderMonthLabel, renderMonthAriaLabel: renderMonthAriaLabel, min: min, max: max }))] })] }));
|
68
|
+
};
|
69
|
+
export default CalendarControlled;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import Button from "../Button/index.js";
|
4
|
+
import View from "../View/index.js";
|
5
|
+
import Hidden from "../Hidden/index.js";
|
6
|
+
import Text from "../Text/index.js";
|
7
|
+
import HiddenVisually from "../HiddenVisually/index.js";
|
8
|
+
import IconChevronLeft from "../../icons/ChevronLeft.js";
|
9
|
+
import IconChevronRight from "../../icons/ChevronRight.js";
|
10
|
+
import { onNextFrame } from "../../utilities/animation.js";
|
11
|
+
import s from "./Calendar.module.css";
|
12
|
+
const CalendarControls = (props) => {
|
13
|
+
const { selectionMode, onMonthTitleClick, monthTitleRef, monthDate, renderSelectedMonthLabel, isFirstMonth, isLastMonth, onNextClick, onPreviousClick, monthSelectionAriaLabel = "Select a month", previousMonthAriaLabel = "Previous month", previousYearAriaLabel = "Previous year", nextMonthAriaLabel = "Next month", nextYearAriaLabel = "Next year", } = props;
|
14
|
+
const prevRef = React.useRef(null);
|
15
|
+
const nextRef = React.useRef(null);
|
16
|
+
React.useEffect(() => {
|
17
|
+
if (!isFirstMonth)
|
18
|
+
return;
|
19
|
+
if (document.activeElement !== prevRef.current)
|
20
|
+
return;
|
21
|
+
const targetEl = nextRef.current || monthTitleRef.current;
|
22
|
+
onNextFrame(() => {
|
23
|
+
targetEl === null || targetEl === void 0 ? void 0 : targetEl.focus();
|
24
|
+
});
|
25
|
+
}, [isFirstMonth, monthTitleRef]);
|
26
|
+
React.useEffect(() => {
|
27
|
+
if (!isLastMonth)
|
28
|
+
return;
|
29
|
+
if (document.activeElement !== nextRef.current)
|
30
|
+
return;
|
31
|
+
const targetEl = prevRef.current || monthTitleRef.current;
|
32
|
+
onNextFrame(() => {
|
33
|
+
targetEl === null || targetEl === void 0 ? void 0 : targetEl.focus();
|
34
|
+
});
|
35
|
+
}, [isLastMonth, monthTitleRef]);
|
36
|
+
return (_jsxs(View, { direction: "row", gap: 2, align: "center", children: [_jsx(Hidden, { visibility: true, hide: isFirstMonth, children: _jsx("div", { className: s.control, children: _jsx(Button, { variant: "ghost", icon: IconChevronLeft, onClick: onPreviousClick, attributes: {
|
37
|
+
ref: prevRef,
|
38
|
+
"aria-label": selectionMode === "date" ? previousMonthAriaLabel : previousYearAriaLabel,
|
39
|
+
} }) }) }), _jsxs(View.Item, { grow: true, children: [selectionMode === "date" && (_jsxs(Button, { fullWidth: true, variant: "ghost", onClick: onMonthTitleClick, attributes: { ref: monthTitleRef }, children: [renderSelectedMonthLabel
|
40
|
+
? renderSelectedMonthLabel({ date: monthDate })
|
41
|
+
: monthDate.toLocaleDateString("en-US", { month: "long", year: "numeric" }), _jsx(HiddenVisually, { children: monthSelectionAriaLabel })] })), selectionMode === "month" && (_jsx(Text, { align: "center", weight: "medium", children: monthDate.toLocaleDateString("en-US", { year: "numeric" }) }))] }), _jsx(Hidden, { visibility: true, hide: isLastMonth, children: _jsx("div", { className: s.control, children: _jsx(Button, { variant: "ghost", icon: IconChevronRight, onClick: onNextClick, attributes: {
|
42
|
+
ref: nextRef,
|
43
|
+
"aria-label": selectionMode === "date" ? nextMonthAriaLabel : nextYearAriaLabel,
|
44
|
+
} }) }) })] }));
|
45
|
+
};
|
46
|
+
export default CalendarControls;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
"use client";
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
import Actionable from "../Actionable/index.js";
|
4
|
+
import { classNames } from "../../utilities/helpers.js";
|
5
|
+
import { getLocalISODate } from "./Calendar.utils.js";
|
6
|
+
import s from "./Calendar.module.css";
|
7
|
+
const CalendarDate = (props) => {
|
8
|
+
const { date, startValue, endValue, isActiveStart, isActiveEnd, disabled, focusable, onChange, range, hoveredDate, onDateHover, onDateHoverEnd, renderAriaLabel, } = props;
|
9
|
+
if (!date)
|
10
|
+
return _jsx("td", { className: s.cell, "aria-hidden": "true" });
|
11
|
+
const inRange = startValue &&
|
12
|
+
startValue < date &&
|
13
|
+
((endValue && endValue > date) || (hoveredDate && !endValue && hoveredDate > date));
|
14
|
+
const dateClassNames = classNames([
|
15
|
+
s.cell,
|
16
|
+
!range && isActiveStart && s["cell--active-single"],
|
17
|
+
isActiveStart && s["cell--active-start"],
|
18
|
+
(isActiveEnd ||
|
19
|
+
(!endValue && isActiveStart && !(hoveredDate && startValue && hoveredDate > startValue))) &&
|
20
|
+
s["cell--active-end"],
|
21
|
+
inRange && s["cell--in-range"],
|
22
|
+
]);
|
23
|
+
const handleClick = () => {
|
24
|
+
if (!range) {
|
25
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({ value: date });
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const bothDatesSelected = startValue && endValue;
|
29
|
+
const noneDatesSelected = !startValue && !endValue;
|
30
|
+
const selectingBeforeStart = startValue && date < startValue;
|
31
|
+
const selectingStart = bothDatesSelected || noneDatesSelected || selectingBeforeStart;
|
32
|
+
const start = selectingStart ? date : startValue;
|
33
|
+
const end = !selectingStart ? date : null;
|
34
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({ value: { start, end } });
|
35
|
+
};
|
36
|
+
const handleMouseEnter = () => {
|
37
|
+
onDateHover(date);
|
38
|
+
};
|
39
|
+
const handleMouseLeave = () => {
|
40
|
+
onDateHoverEnd(date);
|
41
|
+
};
|
42
|
+
return (_jsx("td", { className: dateClassNames, role: disabled ? "presentation" : "gridcell", children: _jsx(Actionable, { fullWidth: true, insetFocus: true, className: s["cell-button"], disabled: disabled, onClick: handleClick, attributes: {
|
43
|
+
role: "checkbox",
|
44
|
+
tabIndex: focusable ? 0 : -1,
|
45
|
+
"aria-hidden": disabled,
|
46
|
+
"aria-label": renderAriaLabel
|
47
|
+
? renderAriaLabel({ date })
|
48
|
+
: date.toLocaleDateString("en-us", { month: "long", day: "numeric", weekday: "long" }),
|
49
|
+
"aria-checked": isActiveStart || isActiveEnd,
|
50
|
+
"data-rs-date": getLocalISODate({ date }),
|
51
|
+
onMouseEnter: handleMouseEnter,
|
52
|
+
onMouseLeave: handleMouseLeave,
|
53
|
+
onFocus: handleMouseEnter,
|
54
|
+
onBlur: handleMouseLeave,
|
55
|
+
}, children: date.getDate() }) }));
|
56
|
+
};
|
57
|
+
export default CalendarDate;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
"use client";
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
import { getMonthWeeks, getWeekdayNames, getLocalISODate } from "./Calendar.utils.js";
|
4
|
+
import CalendarDate from "./CalendarDate.js";
|
5
|
+
import s from "./Calendar.module.css";
|
6
|
+
const CalendarMonth = (props) => {
|
7
|
+
const { date, value, onChange, min, max, range, firstWeekDay, hoveredDate, onDateHover, onDateHoverEnd, renderWeekDay, renderDateAriaLabel, } = props;
|
8
|
+
let foundFocusableDate = false;
|
9
|
+
const month = date.getMonth();
|
10
|
+
const weeks = getMonthWeeks({ date, firstWeekDay });
|
11
|
+
const weekdayNames = getWeekdayNames({ firstWeekDay, renderWeekDay });
|
12
|
+
return (_jsxs("table", { className: s.selection, role: "grid", children: [_jsx("thead", { "aria-hidden": "true", children: _jsx("tr", { children: weekdayNames.map((dayName) => (_jsx("th", { className: s.weekday, scope: "col", children: dayName }, dayName))) }) }), _jsx("tbody", { children: weeks.map((week) => {
|
13
|
+
var _a;
|
14
|
+
const key = [month, (_a = week[0]) === null || _a === void 0 ? void 0 : _a.getDate()].filter(Boolean).join("-");
|
15
|
+
return (_jsx("tr", { className: s.row, children: week.map((date, index) => {
|
16
|
+
const disabled = !!date && ((min && date < min) || (max && date > max));
|
17
|
+
const month = date === null || date === void 0 ? void 0 : date.getMonth();
|
18
|
+
const today = new Date();
|
19
|
+
const isoToday = getLocalISODate({ date: today });
|
20
|
+
const startValue = value && "start" in value ? value.start : value;
|
21
|
+
const endValue = value && "end" in value ? value.end : value;
|
22
|
+
const isoDate = date && getLocalISODate({ date });
|
23
|
+
const isoStartValue = startValue && getLocalISODate({ date: startValue });
|
24
|
+
const isoEndValue = endValue && getLocalISODate({ date: endValue });
|
25
|
+
const isActiveStart = !!isoDate && !!isoStartValue && isoDate === isoStartValue;
|
26
|
+
const isActiveEnd = !!isoDate && !!isoEndValue && isoDate === isoEndValue;
|
27
|
+
/**
|
28
|
+
* Decide if date has to be focusable with Tab (only one date should be)
|
29
|
+
* 1. If there is a selected value - it's focusable
|
30
|
+
* 2. Otherwise, today's date is focusable
|
31
|
+
* 3. Otherwise, first non-disabled date is focusable
|
32
|
+
*/
|
33
|
+
let focusable = false;
|
34
|
+
if (!foundFocusableDate && date) {
|
35
|
+
if (!!startValue && startValue.getMonth() === (date === null || date === void 0 ? void 0 : date.getMonth())) {
|
36
|
+
focusable = +startValue === +date;
|
37
|
+
}
|
38
|
+
else if (isoDate && month === today.getMonth()) {
|
39
|
+
focusable = isoDate >= isoToday && !disabled;
|
40
|
+
}
|
41
|
+
else {
|
42
|
+
focusable = !disabled;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
if (focusable)
|
46
|
+
foundFocusableDate = true;
|
47
|
+
return (_jsx(CalendarDate, { date: date, disabled: disabled, range: range, focusable: focusable, startValue: startValue, endValue: endValue, isActiveStart: isActiveStart, isActiveEnd: isActiveEnd, onChange: onChange, hoveredDate: hoveredDate, onDateHover: onDateHover, onDateHoverEnd: onDateHoverEnd, renderAriaLabel: renderDateAriaLabel }, index));
|
48
|
+
}) }, key));
|
49
|
+
}) })] }));
|
50
|
+
};
|
51
|
+
export default CalendarMonth;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use client";
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
3
|
+
var t = {};
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5
|
+
t[p] = s[p];
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
9
|
+
t[p[i]] = s[p[i]];
|
10
|
+
}
|
11
|
+
return t;
|
12
|
+
};
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
+
import React from "react";
|
15
|
+
import CalendarControlled from "./CalendarControlled.js";
|
16
|
+
const CalendarUncontrolled = (props) => {
|
17
|
+
const { onChange, defaultValue, range } = props, controlledProps = __rest(props, ["onChange", "defaultValue", "range"]);
|
18
|
+
const [value, setValue] = React.useState(defaultValue || null);
|
19
|
+
if (range) {
|
20
|
+
return (_jsx(CalendarControlled, Object.assign({ range: true }, controlledProps, { value: value, onChange: (args) => {
|
21
|
+
setValue(args.value);
|
22
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(args);
|
23
|
+
} })));
|
24
|
+
}
|
25
|
+
return (_jsx(CalendarControlled, Object.assign({}, controlledProps, { value: value, onChange: (args) => {
|
26
|
+
setValue(args.value);
|
27
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(args);
|
28
|
+
} })));
|
29
|
+
};
|
30
|
+
export default CalendarUncontrolled;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import Actionable from "../Actionable/index.js";
|
4
|
+
import { onNextFrame } from "../../utilities/animation.js";
|
5
|
+
import { getMonthNames } from "./Calendar.utils.js";
|
6
|
+
import s from "./Calendar.module.css";
|
7
|
+
const MONTHS_PER_ROW = 3;
|
8
|
+
const CalendarYear = (props) => {
|
9
|
+
const { renderMonthLabel, renderMonthAriaLabel, monthDate, min, max, onMonthClick } = props;
|
10
|
+
const rootRef = React.useRef(null);
|
11
|
+
const monthNames = getMonthNames({ renderMonthLabel });
|
12
|
+
const rows = [];
|
13
|
+
for (let i = 0; i < monthNames.length; i += MONTHS_PER_ROW) {
|
14
|
+
const chunk = monthNames.slice(i, i + MONTHS_PER_ROW);
|
15
|
+
rows.push(chunk);
|
16
|
+
}
|
17
|
+
React.useEffect(() => {
|
18
|
+
var _a;
|
19
|
+
const focusableEl = (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('[tabIndex="0"]');
|
20
|
+
// Waitinf for key press events to finish before focusing the month
|
21
|
+
// To avoid it trigger the month click
|
22
|
+
onNextFrame(() => {
|
23
|
+
focusableEl === null || focusableEl === void 0 ? void 0 : focusableEl.focus();
|
24
|
+
});
|
25
|
+
}, []);
|
26
|
+
return (_jsx("table", { ref: rootRef, role: "grid", className: s.selection, children: _jsx("tbody", { children: rows.map((row, i) => (_jsx("tr", { className: s.row, children: row.map((name, j) => {
|
27
|
+
const monthIndex = i * MONTHS_PER_ROW + j;
|
28
|
+
const date = new Date(monthDate.getFullYear(), monthIndex);
|
29
|
+
const isOutsideMinBound = min && min.getFullYear() >= date.getFullYear() && min.getMonth() > date.getMonth();
|
30
|
+
const isOutsideMaxBound = max && max.getFullYear() <= date.getFullYear() && max.getMonth() < date.getMonth();
|
31
|
+
const disabled = isOutsideMaxBound || isOutsideMinBound;
|
32
|
+
return (_jsx("td", { role: disabled ? "presentation" : "gridcell", className: s.cell, children: _jsx(Actionable, { fullWidth: true, insetFocus: true, className: s["cell-button"], disabled: disabled, onClick: () => onMonthClick(monthIndex), attributes: {
|
33
|
+
tabIndex: monthIndex === monthDate.getMonth() ? 0 : -1,
|
34
|
+
"aria-hidden": disabled,
|
35
|
+
"aria-label": renderMonthAriaLabel
|
36
|
+
? renderMonthAriaLabel({ month: monthIndex })
|
37
|
+
: name,
|
38
|
+
"data-rs-date": `${monthDate.getFullYear()}-${(monthIndex + 1)
|
39
|
+
.toString()
|
40
|
+
.padStart(2, "0")}`,
|
41
|
+
}, children: name }) }, name));
|
42
|
+
}) }, i))) }) }));
|
43
|
+
};
|
44
|
+
export default CalendarYear;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type * as T from "./Card.types";
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
4
|
+
padding?: import("../..").Responsive<number> | undefined;
|
5
|
+
bleed?: import("../..").Responsive<number> | undefined;
|
6
|
+
selected?: boolean | undefined;
|
7
|
+
elevated?: boolean | undefined;
|
8
|
+
children?: React.ReactNode;
|
9
|
+
onClick?: ((e: React.KeyboardEvent<HTMLElement> | React.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
|
10
|
+
href?: string | undefined;
|
11
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
12
|
+
className?: import("../../types/global").ClassName;
|
13
|
+
attributes?: (import("../../types/global").Attributes<keyof JSX.IntrinsicElements, T.Props<"div">> & Omit<import("../../types/global").Attributes<"button", void>, "ref"> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, `data-${string}` | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "disabled" | "color" | "suppressHydrationWarning" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | "value" | keyof React.ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name"> & {
|
14
|
+
ref?: React.RefObject<HTMLAnchorElement | HTMLButtonElement> | undefined;
|
15
|
+
}) | undefined;
|
16
|
+
} & Pick<import("../View").ViewProps, "height"> & React.RefAttributes<HTMLElement>>;
|
17
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import React from "react";
|
3
|
+
import { classNames } from "../../utilities/helpers.js";
|
4
|
+
import Actionable from "../Actionable/index.js";
|
5
|
+
import s from "./Card.module.css";
|
6
|
+
import getRadiusStyles from "../../styles/radius/index.js";
|
7
|
+
import getBleedStyles from "../../styles/bleed/index.js";
|
8
|
+
import getPaddingStyles from "../../styles/padding/index.js";
|
9
|
+
import getHeightStyles from "../../styles/height/index.js";
|
10
|
+
const Card = (props, ref) => {
|
11
|
+
const { padding = 4 } = props;
|
12
|
+
const { selected, elevated, bleed, height, onClick, href, children, className, attributes,
|
13
|
+
/**
|
14
|
+
* Using any here to let TS save on type resolving, otherwise TS throws an error due to the type complexity
|
15
|
+
* It still resolves the attributes correctly based on the tag
|
16
|
+
*/
|
17
|
+
as: TagName = "div", } = props;
|
18
|
+
const isActionable = !!href || !!onClick;
|
19
|
+
const radiusStyles = getRadiusStyles("medium");
|
20
|
+
const bleedStyles = getBleedStyles(bleed);
|
21
|
+
const paddingStyles = getPaddingStyles(padding);
|
22
|
+
const heightStyles = getHeightStyles(height);
|
23
|
+
const rootClassNames = classNames(s.root, radiusStyles === null || radiusStyles === void 0 ? void 0 : radiusStyles.classNames, bleedStyles === null || bleedStyles === void 0 ? void 0 : bleedStyles.classNames, paddingStyles === null || paddingStyles === void 0 ? void 0 : paddingStyles.classNames, heightStyles === null || heightStyles === void 0 ? void 0 : heightStyles.classNames, isActionable && s["--actionable"], elevated && s["--elevated"], selected && s["--selected"], className);
|
24
|
+
const style = Object.assign(Object.assign(Object.assign(Object.assign({}, attributes === null || attributes === void 0 ? void 0 : attributes.style), bleedStyles === null || bleedStyles === void 0 ? void 0 : bleedStyles.variables), paddingStyles === null || paddingStyles === void 0 ? void 0 : paddingStyles.variables), heightStyles === null || heightStyles === void 0 ? void 0 : heightStyles.variables);
|
25
|
+
if (isActionable) {
|
26
|
+
return (_jsx(Actionable, { className: rootClassNames, attributes: Object.assign(Object.assign({}, attributes), { style }), href: href, as: TagName, onClick: onClick, ref: ref, children: _jsx("span", { className: s.content, children: children }) }));
|
27
|
+
}
|
28
|
+
return (_jsx(TagName, Object.assign({}, attributes, { onClick: onClick, href: href, ref: ref, className: rootClassNames, style: style, children: _jsx("span", { className: s.content, children: children }) })));
|
29
|
+
};
|
30
|
+
export default React.forwardRef(Card);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import type { ActionableProps } from "../Actionable";
|
3
|
+
import type { ViewProps } from "../View";
|
4
|
+
import type * as G from "../../types/global";
|
5
|
+
export type Props<TagName extends keyof JSX.IntrinsicElements = "div"> = {
|
6
|
+
padding?: G.Responsive<number>;
|
7
|
+
bleed?: G.Responsive<number>;
|
8
|
+
selected?: boolean;
|
9
|
+
elevated?: boolean;
|
10
|
+
children?: React.ReactNode;
|
11
|
+
onClick?: ActionableProps["onClick"];
|
12
|
+
href?: string;
|
13
|
+
as?: TagName;
|
14
|
+
className?: G.ClassName;
|
15
|
+
attributes?: G.Attributes<TagName, Props> & ActionableProps["attributes"];
|
16
|
+
} & Pick<ViewProps, "height">;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use client";
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
import React from "react";
|
4
|
+
import { classNames, responsiveVariables, responsiveClassNames, debounceHandler, } from "../../utilities/helpers.js";
|
5
|
+
import View from "../View/index.js";
|
6
|
+
import useRTL from "../../hooks/useRTL.js";
|
7
|
+
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
8
|
+
import CarouselControl from "./CarouselControl.js";
|
9
|
+
import * as T from "./Carousel.types.js";
|
10
|
+
import s from "./Carousel.module.css";
|
11
|
+
const Carousel = (props) => {
|
12
|
+
const { children, gap = 3, visibleItems, bleed, navigationDisplay, instanceRef, className, attributes, } = props;
|
13
|
+
const [mounted, setMounted] = React.useState(false);
|
14
|
+
const [scrollPosition, setScrollPosition] = React.useState(0);
|
15
|
+
const [isRTL] = useRTL();
|
16
|
+
const scrollElRef = React.useRef(null);
|
17
|
+
const bleedClassNames = {};
|
18
|
+
if (typeof bleed === "object") {
|
19
|
+
Object.entries(bleed).forEach(([key, value]) => {
|
20
|
+
bleedClassNames[key] = typeof value === "number" && value > 0;
|
21
|
+
});
|
22
|
+
}
|
23
|
+
const rootClassNames = classNames(s.root, className, ...responsiveClassNames(s, "--bleed", typeof bleed === "number" ? true : bleedClassNames));
|
24
|
+
const handleScroll = debounceHandler((event) => {
|
25
|
+
const el = event.target;
|
26
|
+
setScrollPosition(el.scrollLeft);
|
27
|
+
}, 16);
|
28
|
+
const getItemsGap = () => {
|
29
|
+
const style = getComputedStyle(scrollElRef.current);
|
30
|
+
// Safari returns Npx Npx as a value, we need only the first one
|
31
|
+
const xGap = style.gap.split(" ")[0];
|
32
|
+
return Number(xGap.replace("px", ""));
|
33
|
+
};
|
34
|
+
const navigateRight = () => {
|
35
|
+
const scrollEl = scrollElRef.current;
|
36
|
+
scrollEl.scrollBy({
|
37
|
+
left: scrollEl.clientWidth + getItemsGap(),
|
38
|
+
top: 0,
|
39
|
+
behavior: "smooth",
|
40
|
+
});
|
41
|
+
};
|
42
|
+
const navigateLeft = () => {
|
43
|
+
const scrollEl = scrollElRef.current;
|
44
|
+
scrollEl.scrollBy({
|
45
|
+
left: -scrollEl.clientWidth - getItemsGap(),
|
46
|
+
top: 0,
|
47
|
+
behavior: "smooth",
|
48
|
+
});
|
49
|
+
};
|
50
|
+
const navigateBack = isRTL ? navigateRight : navigateLeft;
|
51
|
+
const navigateForward = isRTL ? navigateLeft : navigateRight;
|
52
|
+
React.useImperativeHandle(instanceRef, () => ({
|
53
|
+
navigateBack,
|
54
|
+
navigateForward,
|
55
|
+
}));
|
56
|
+
/**
|
57
|
+
* Changing flag here since scroll ref changing won't rerender the controls and show them after SSR
|
58
|
+
*/
|
59
|
+
useIsomorphicLayoutEffect(() => {
|
60
|
+
setMounted(true);
|
61
|
+
}, []);
|
62
|
+
return (_jsxs("section", Object.assign({}, attributes, { className: rootClassNames, style: Object.assign(Object.assign({}, responsiveVariables("--rs-carousel-items", visibleItems)), responsiveVariables("--rs-carousel-bleed", bleed)), children: [navigationDisplay !== "hidden" && (_jsxs(_Fragment, { children: [_jsx(CarouselControl, { isRTL: isRTL, type: T.ControlType.back, scrollElRef: scrollElRef, scrollPosition: scrollPosition, onClick: navigateBack, mounted: mounted }), _jsx(CarouselControl, { isRTL: isRTL, type: T.ControlType.forward, scrollElRef: scrollElRef, scrollPosition: scrollPosition, onClick: navigateForward, mounted: mounted })] })), _jsx(View, { as: "ul", direction: "row", wrap: false, gap: gap, className: s.scroll, attributes: { ref: scrollElRef, onScroll: handleScroll }, children: React.Children.map(children, (child) => (_jsx(View.Item, { className: s.item, as: "li", children: child }))) })] })));
|
63
|
+
};
|
64
|
+
export default Carousel;
|
@@ -0,0 +1 @@
|
|
1
|
+
.root{position:relative}.control{display:none;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%) scale(.75);transform-origin:50%;transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:opacity,transform;z-index:var(--rs-z-index-raised)}.--control-prev{left:0}.--control-next{left:100%}.--control-visible{opacity:1;transform:translate(-50%,-50%) scale(1)}.scroll{overflow:auto;-ms-overflow-style:none;overflow:-moz-scrollbars-none;-webkit-overflow-scrolling:touch;backface-visibility:hidden;margin:0 calc(var(--rs-unit-x1) * var(--rs-carousel-bleed) * -1);padding:0 calc(var(--rs-unit-x1) * var(--rs-carousel-bleed));scroll-behavior:smooth;scroll-padding-inline-start:calc(var(--rs-unit-x1) * var(--rs-carousel-bleed));scroll-snap-type:inline;scrollbar-width:none}.scroll::-webkit-scrollbar{display:none;height:0;width:0}.item{--rs-carousel-item-width:calc(100% / var(--rs-carousel-items) - var(--rs-view-gap-value) * (var(--rs-carousel-items) - 1) / var(--rs-carousel-items));position:relative;scroll-snap-align:start;width:var(--rs-carousel-item-width)}@media (--rs-viewport-l ),(hover:hover){.--control-rendered{display:block}}@media (hover:none){.--bleed .item{width:calc(var(--rs-carousel-item-width) - 10% / var(--rs-carousel-items))}}@media (--rs-viewport-m ) and (hover:none){.--bleed-true--m .item{width:calc(var(--rs-carousel-item-width) - 10% / var(--rs-carousel-items))}.--bleed-false--m .item{width:var(--rs-carousel-item-width)}}@media (--rs-viewport-l ) and (hover:none){.--bleed-true--l .item{width:calc(var(--rs-carousel-item-width) - 10% / var(--rs-carousel-items))}.--bleed-false--l .item{width:var(--rs-carousel-item-width)}}@media (--rs-viewport-xl ) and (hover:none){.--bleed-true--xl .item{width:calc(var(--rs-carousel-item-width) - 10% / var(--rs-carousel-items))}.--bleed-false--xl .item{width:var(--rs-carousel-item-width)}}.root{--rs-carousel-items-s:unset;--rs-carousel-items-m:var(--rs-carousel-items-s);--rs-carousel-items-l:var(--rs-carousel-items-m);--rs-carousel-items-xl:var(--rs-carousel-items-l);--rs-carousel-items:var(--rs-carousel-items-s);--rs-carousel-bleed-s:0;--rs-carousel-bleed-m:var(--rs-carousel-bleed-s);--rs-carousel-bleed-l:var(--rs-carousel-bleed-m);--rs-carousel-bleed-xl:var(--rs-carousel-bleed-l);--rs-carousel-bleed:var(--rs-carousel-bleed-s)}@media (--rs-viewport-m ){.root{--rs-carousel-items:var(--rs-carousel-items-m);--rs-carousel-bleed:var(--rs-carousel-bleed-m)}}@media (--rs-viewport-l ){.root{--rs-carousel-items:var(--rs-carousel-items-l);--rs-carousel-bleed:var(--rs-carousel-bleed-l)}}@media (--rs-viewport-xl ){.root{--rs-carousel-items:var(--rs-carousel-items-xl);--rs-carousel-bleed:var(--rs-carousel-bleed-xl)}}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import type * as G from "../../types/global";
|
3
|
+
export type InstanceRef = {
|
4
|
+
navigateBack: () => void;
|
5
|
+
navigateForward: () => void;
|
6
|
+
} | undefined;
|
7
|
+
export declare enum ControlType {
|
8
|
+
back = "back",
|
9
|
+
forward = "forward"
|
10
|
+
}
|
11
|
+
export type ControlProps = {
|
12
|
+
type: ControlType;
|
13
|
+
scrollElRef: React.RefObject<HTMLElement>;
|
14
|
+
scrollPosition: number;
|
15
|
+
onClick: () => void;
|
16
|
+
isRTL: boolean;
|
17
|
+
mounted: boolean;
|
18
|
+
};
|
19
|
+
export type Props = {
|
20
|
+
children?: React.ReactNode;
|
21
|
+
visibleItems?: G.Responsive<number>;
|
22
|
+
gap?: G.Responsive<number>;
|
23
|
+
bleed?: G.Responsive<number>;
|
24
|
+
navigationDisplay?: "hidden";
|
25
|
+
instanceRef?: React.Ref<InstanceRef>;
|
26
|
+
className?: G.ClassName;
|
27
|
+
attributes?: G.Attributes<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
28
|
+
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use client";
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
+
import React from "react";
|
4
|
+
import { classNames } from "../../utilities/helpers.js";
|
5
|
+
import Button from "../Button/index.js";
|
6
|
+
import IconChevronRight from "../../icons/ChevronRight.js";
|
7
|
+
import IconChevronLeft from "../../icons/ChevronLeft.js";
|
8
|
+
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
9
|
+
import * as T from "./Carousel.types.js";
|
10
|
+
import s from "./Carousel.module.css";
|
11
|
+
const CarouselControl = (props) => {
|
12
|
+
const { type, scrollElRef, scrollPosition, onClick, isRTL, mounted } = props;
|
13
|
+
const [visible, setVisible] = React.useState(false);
|
14
|
+
const [rendered, setRendered] = React.useState(false);
|
15
|
+
const isNext = type === T.ControlType.forward;
|
16
|
+
const isDisplayedAsNext = type === (isRTL ? T.ControlType.back : T.ControlType.forward);
|
17
|
+
const controlClassNames = classNames(s.control, isDisplayedAsNext ? s["--control-next"] : s["--control-prev"], visible && s["--control-visible"], rendered && s["--control-rendered"]);
|
18
|
+
useIsomorphicLayoutEffect(() => {
|
19
|
+
const scrollEl = scrollElRef.current;
|
20
|
+
if (!scrollEl || !mounted)
|
21
|
+
return;
|
22
|
+
let timer;
|
23
|
+
const normalizedScrollPosition = Math.abs(scrollPosition);
|
24
|
+
const isScrollAtStart = normalizedScrollPosition <= 0;
|
25
|
+
const isScrollAtEnd = normalizedScrollPosition + scrollEl.clientWidth >= scrollEl.scrollWidth - 1;
|
26
|
+
const hideControl = isNext ? isScrollAtEnd : isScrollAtStart;
|
27
|
+
if (hideControl) {
|
28
|
+
setVisible(false);
|
29
|
+
timer = setTimeout(() => setRendered(false), 1500);
|
30
|
+
}
|
31
|
+
else {
|
32
|
+
setRendered(true);
|
33
|
+
setVisible(true);
|
34
|
+
}
|
35
|
+
return () => {
|
36
|
+
if (timer)
|
37
|
+
clearTimeout(timer);
|
38
|
+
};
|
39
|
+
}, [scrollPosition, scrollElRef.current, mounted]);
|
40
|
+
return (_jsx("div", { className: controlClassNames, "aria-hidden": "true", children: _jsx(Button, { onClick: onClick, icon: isDisplayedAsNext ? IconChevronRight : IconChevronLeft, rounded: true, variant: "faded", elevated: true, attributes: { "aria-disabled": !visible } }) }));
|
41
|
+
};
|
42
|
+
export default CarouselControl;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use client";
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
3
|
+
import React from "react";
|
4
|
+
import { classNames } from "../../utilities/helpers.js";
|
5
|
+
import useIsomorphicLayoutEffect from "../../hooks/useIsomorphicLayoutEffect.js";
|
6
|
+
import HiddenInput from "../_private/HiddenInput/index.js";
|
7
|
+
import { useFormControl } from "../FormControl/index.js";
|
8
|
+
import { useCheckboxGroup } from "../CheckboxGroup/index.js";
|
9
|
+
import Icon from "../Icon/index.js";
|
10
|
+
import IconCheckmark from "../../icons/Checkmark.js";
|
11
|
+
import s from "./Checkbox.module.css";
|
12
|
+
const Checkbox = (props) => {
|
13
|
+
var _a;
|
14
|
+
const { children, value, onChange, onFocus, onBlur, indeterminate, className, attributes, inputAttributes, } = props;
|
15
|
+
const checkboxGroup = useCheckboxGroup();
|
16
|
+
const formControl = useFormControl();
|
17
|
+
const hasError = (formControl === null || formControl === void 0 ? void 0 : formControl.hasError) || props.hasError || (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.hasError);
|
18
|
+
const disabled = (formControl === null || formControl === void 0 ? void 0 : formControl.disabled) || props.disabled || (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled);
|
19
|
+
const checked = checkboxGroup ? (_a = checkboxGroup.value) === null || _a === void 0 ? void 0 : _a.includes(value) : props.checked;
|
20
|
+
const defaultChecked = checkboxGroup ? undefined : props.defaultChecked;
|
21
|
+
const name = checkboxGroup ? checkboxGroup.name : props.name;
|
22
|
+
const inputRef = React.useRef(null);
|
23
|
+
const rootClassName = classNames(s.root, className, hasError && s["--error"], disabled && s["--disabled"]);
|
24
|
+
const handleChange = (event) => {
|
25
|
+
if (!name)
|
26
|
+
return;
|
27
|
+
const { checked } = event.target;
|
28
|
+
const changeArgs = { name, value, checked, event };
|
29
|
+
if (onChange)
|
30
|
+
onChange(changeArgs);
|
31
|
+
if (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.onChange)
|
32
|
+
checkboxGroup.onChange(changeArgs);
|
33
|
+
};
|
34
|
+
useIsomorphicLayoutEffect(() => {
|
35
|
+
inputRef.current.indeterminate = indeterminate || false;
|
36
|
+
}, [indeterminate, checked]);
|
37
|
+
return (_jsxs("label", Object.assign({}, attributes, { className: rootClassName, children: [_jsxs("span", { className: s.field, children: [_jsx(HiddenInput, { className: s.input, type: "checkbox", checked: checked, defaultChecked: defaultChecked, name: name, disabled: disabled, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, attributes: Object.assign(Object.assign({}, inputAttributes), { ref: inputRef }) }), _jsx("div", { className: s.decorator, children: _jsx(Icon, { svg: IconCheckmark, className: s.icon }) })] }), children && _jsx("span", { className: s.text, children: children })] })));
|
38
|
+
};
|
39
|
+
export default Checkbox;
|
@@ -0,0 +1 @@
|
|
1
|
+
.root{align-items:center;cursor:pointer;display:inline-flex;gap:var(--rs-unit-x2);user-select:none;vertical-align:top;-webkit-tap-highlight-color:transparent}.root:hover .decorator{background:var(--rs-color-background-neutral-faded)}.field{position:relative}.decorator{background:var(--rs-color-background-elevation-base);border:1px solid var(--rs-color-border-neutral);border-radius:var(--rs-unit-radius-small);height:var(--rs-line-height-body-3);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:background-color,border-color;width:var(--rs-line-height-body-3)}.decorator:before{background:var(--rs-color-on-background-primary);border-radius:999px;content:"";height:1.5px;width:var(--rs-unit-x2)}.decorator:before,.icon{left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:opacity,transform}[data-rs-keyboard] .input:focus+.decorator{box-shadow:var(--rs-focus-shadow)}.input:indeterminate+.decorator,.root.--error .input:indeterminate+.decorator,.root.--error:hover .input:indeterminate+.decorator,.root:hover .input:indeterminate+.decorator{background:var(--rs-color-background-primary);border-color:var(--rs-color-background-primary)}.input:indeterminate+.decorator:before,.root.--error .input:indeterminate+.decorator:before,.root.--error:hover .input:indeterminate+.decorator:before,.root:hover .input:indeterminate+.decorator:before{opacity:1;transform:translate(-50%,-50%) scale(1)}.input:checked+.decorator,.root.--error .input:checked+.decorator,.root.--error:hover .input:checked+.decorator,.root:hover .input:checked+.decorator{background:var(--rs-color-background-primary);border-color:var(--rs-color-background-primary);color:var(--rs-color-on-background-primary)}.input:checked+.decorator .icon,.root.--error .input:checked+.decorator .icon,.root.--error:hover .input:checked+.decorator .icon,.root:hover .input:checked+.decorator .icon{opacity:1;transform:translate(-50%,-50%) scale(1)}.root.--error .decorator{border-color:var(--rs-color-border-critical)}.root.--disabled{color:var(--rs-color-foreground-disabled);cursor:not-allowed}.root.--disabled .decorator,.root.--disabled .input:checked+.decorator,.root.--disabled:hover .decorator,.root.--disabled:hover .input:checked+.decorator{background:var(--rs-color-background-disabled-faded);border-color:var(--rs-color-border-disabled);color:var(--rs-color-foreground-disabled)}.root.--disabled .input:checked+.decorator,.root.--disabled .input:indeterminate+.decorator,.root.--disabled:hover .input:checked+.decorator,.root.--disabled:hover .input:indeterminate+.decorator{background:var(--rs-color-background-disabled);border-color:transparent}.root.--disabled .input:indeterminate+.decorator:before{background:var(--rs-color-foreground-disabled)}.root.--disabled .input:checked+.decorator:after{background:var(--rs-color-border-disabled)}
|