reshaped 3.8.0-canary.2 → 3.8.0-canary.21
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/dist/bundle.css +1 -1
 - package/dist/bundle.d.ts +2 -1
 - package/dist/bundle.js +11 -11
 - package/dist/components/Accordion/AccordionControlled.js +1 -0
 - package/dist/components/Actionable/Actionable.js +17 -3
 - package/dist/components/Actionable/Actionable.module.css +1 -1
 - package/dist/components/Actionable/Actionable.types.d.ts +15 -3
 - package/dist/components/Actionable/tests/Actionable.stories.d.ts +13 -1
 - package/dist/components/Actionable/tests/Actionable.stories.js +127 -7
 - package/dist/components/Alert/tests/Alert.stories.d.ts +6 -5
 - package/dist/components/Alert/tests/Alert.stories.js +15 -2
 - package/dist/components/Autocomplete/Autocomplete.js +2 -2
 - package/dist/components/Autocomplete/Autocomplete.types.d.ts +1 -1
 - package/dist/components/Badge/Badge.module.css +1 -1
 - package/dist/components/Badge/tests/Badge.stories.d.ts +5 -0
 - package/dist/components/Badge/tests/Badge.stories.js +34 -0
 - package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -0
 - package/dist/components/Breadcrumbs/tests/Breadcrumbs.stories.d.ts +8 -4
 - package/dist/components/Breadcrumbs/tests/Breadcrumbs.stories.js +57 -1
 - package/dist/components/Button/Button.js +2 -2
 - package/dist/components/Button/Button.module.css +1 -1
 - package/dist/components/Button/Button.types.d.ts +1 -1
 - package/dist/components/Button/tests/Button.stories.d.ts +54 -12
 - package/dist/components/Button/tests/Button.stories.js +725 -588
 - package/dist/components/Calendar/CalendarMonth.js +1 -0
 - package/dist/components/Card/Card.d.ts +1 -1
 - package/dist/components/Card/Card.module.css +1 -1
 - package/dist/components/Card/tests/Card.stories.d.ts +29 -7
 - package/dist/components/Card/tests/Card.stories.js +110 -65
 - package/dist/components/Carousel/Carousel.js +1 -0
 - package/dist/components/Carousel/Carousel.module.css +1 -1
 - package/dist/components/Checkbox/Checkbox.module.css +1 -1
 - package/dist/components/Checkbox/tests/Checkbox.stories.d.ts +20 -4
 - package/dist/components/Checkbox/tests/Checkbox.stories.js +150 -79
 - package/dist/components/CheckboxGroup/tests/CheckboxGroup.stories.d.ts +9 -2
 - package/dist/components/CheckboxGroup/tests/CheckboxGroup.stories.js +67 -35
 - package/dist/components/Container/tests/Container.stories.d.ts +2 -0
 - package/dist/components/Container/tests/Container.stories.js +14 -0
 - package/dist/components/ContextMenu/tests/ContextMenu.stories.d.ts +10 -1
 - package/dist/components/ContextMenu/tests/ContextMenu.stories.js +57 -13
 - package/dist/components/Dismissible/tests/Dismissible.stories.d.ts +5 -0
 - package/dist/components/Dismissible/tests/Dismissible.stories.js +30 -1
 - package/dist/components/Divider/tests/Divider.stories.d.ts +8 -3
 - package/dist/components/Divider/tests/Divider.stories.js +71 -41
 - package/dist/components/DropdownMenu/DropdownMenu.js +4 -4
 - package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +2 -2
 - package/dist/components/DropdownMenu/tests/DropdownMenu.stories.d.ts +35 -6
 - package/dist/components/DropdownMenu/tests/DropdownMenu.stories.js +222 -115
 - package/dist/components/FileUpload/FileUpload.module.css +1 -1
 - package/dist/components/Flyout/Flyout.module.css +1 -1
 - package/dist/components/Flyout/Flyout.types.d.ts +7 -7
 - package/dist/components/Flyout/FlyoutContent.js +4 -1
 - package/dist/components/Flyout/FlyoutControlled.js +10 -3
 - package/dist/components/Flyout/index.d.ts +1 -1
 - package/dist/components/Flyout/tests/Flyout.stories.d.ts +8 -0
 - package/dist/components/Flyout/tests/Flyout.stories.js +81 -33
 - package/dist/components/Flyout/useFlyout.d.ts +1 -7
 - package/dist/components/Flyout/useFlyout.js +5 -1
 - package/dist/components/Flyout/utilities/calculatePosition.d.ts +3 -2
 - package/dist/components/Flyout/utilities/calculatePosition.js +47 -22
 - package/dist/components/Flyout/utilities/flyout.js +3 -2
 - package/dist/components/Flyout/utilities/getPositionFallbacks.js +3 -3
 - package/dist/components/Flyout/utilities/isFullyVisible.d.ts +0 -2
 - package/dist/components/Flyout/utilities/isFullyVisible.js +5 -7
 - package/dist/components/FormControl/FormControl.context.d.ts +1 -1
 - package/dist/components/FormControl/tests/FormControl.stories.d.ts +2 -0
 - package/dist/components/FormControl/tests/FormControl.stories.js +35 -0
 - package/dist/components/Hidden/tests/Hidden.stories.d.ts +2 -0
 - package/dist/components/Hidden/tests/Hidden.stories.js +9 -0
 - package/dist/components/HiddenVisually/tests/HiddenVisually.stories.d.ts +2 -0
 - package/dist/components/HiddenVisually/tests/HiddenVisually.stories.js +9 -0
 - package/dist/components/Hotkey/tests/Hotkey.stories.d.ts +2 -0
 - package/dist/components/Hotkey/tests/Hotkey.stories.js +15 -0
 - package/dist/components/Icon/Icon.js +2 -2
 - package/dist/components/Icon/Icon.types.d.ts +1 -1
 - package/dist/components/Icon/tests/Icon.stories.d.ts +3 -0
 - package/dist/components/Icon/tests/Icon.stories.js +29 -1
 - package/dist/components/Link/Link.d.ts +1 -1
 - package/dist/components/Link/Link.js +2 -2
 - package/dist/components/Link/Link.types.d.ts +1 -1
 - package/dist/components/Link/tests/Link.stories.d.ts +29 -6
 - package/dist/components/Link/tests/Link.stories.js +141 -58
 - package/dist/components/Loader/tests/Loader.stories.d.ts +11 -2
 - package/dist/components/Loader/tests/Loader.stories.js +52 -25
 - package/dist/components/MenuItem/MenuItem.js +2 -2
 - package/dist/components/MenuItem/MenuItem.module.css +1 -1
 - package/dist/components/MenuItem/MenuItem.types.d.ts +1 -1
 - package/dist/components/MenuItem/tests/MenuItem.stories.d.ts +37 -7
 - package/dist/components/MenuItem/tests/MenuItem.stories.js +218 -112
 - package/dist/components/Modal/Modal.js +1 -1
 - package/dist/components/Modal/Modal.module.css +1 -1
 - package/dist/components/Modal/tests/Modal.stories.d.ts +49 -10
 - package/dist/components/Modal/tests/Modal.stories.js +350 -210
 - package/dist/components/Overlay/Overlay.js +2 -1
 - package/dist/components/Overlay/tests/Overlay.stories.d.ts +15 -1
 - package/dist/components/Overlay/tests/Overlay.stories.js +135 -1
 - package/dist/components/Pagination/tests/Pagination.stories.d.ts +14 -1
 - package/dist/components/Pagination/tests/Pagination.stories.js +93 -15
 - package/dist/components/PinField/tests/PinField.stories.d.ts +1 -1
 - package/dist/components/PinField/tests/PinField.stories.js +1 -1
 - package/dist/components/Popover/Popover.js +2 -2
 - package/dist/components/Popover/Popover.module.css +1 -1
 - package/dist/components/Popover/Popover.types.d.ts +3 -1
 - package/dist/components/Progress/tests/Progress.stories.d.ts +19 -4
 - package/dist/components/Progress/tests/Progress.stories.js +85 -49
 - package/dist/components/Radio/Radio.module.css +1 -1
 - package/dist/components/Radio/tests/Radio.stories.d.ts +25 -4
 - package/dist/components/Radio/tests/Radio.stories.js +147 -65
 - package/dist/components/RadioGroup/tests/RadioGroup.stories.d.ts +9 -2
 - package/dist/components/RadioGroup/tests/RadioGroup.stories.js +64 -38
 - package/dist/components/Reshaped/Reshaped.css +1 -1
 - package/dist/components/Scrim/tests/Scrim.stories.d.ts +10 -2
 - package/dist/components/Scrim/tests/Scrim.stories.js +51 -31
 - package/dist/components/ScrollArea/ScrollArea.module.css +1 -1
 - package/dist/components/Select/Select.d.ts +8 -1
 - package/dist/components/Select/Select.js +22 -48
 - package/dist/components/Select/Select.module.css +1 -1
 - package/dist/components/Select/Select.types.d.ts +83 -38
 - package/dist/components/Select/SelectCustom.d.ts +3 -0
 - package/dist/components/Select/SelectCustom.js +12 -0
 - package/dist/components/Select/SelectCustomControlled.d.ts +4 -0
 - package/dist/components/Select/SelectCustomControlled.js +105 -0
 - package/dist/components/Select/SelectCustomUncontrolled.d.ts +4 -0
 - package/dist/components/Select/SelectCustomUncontrolled.js +18 -0
 - package/dist/components/Select/SelectEndContent.d.ts +3 -0
 - package/dist/components/Select/SelectEndContent.js +12 -0
 - package/dist/components/Select/SelectNative.d.ts +4 -0
 - package/dist/components/Select/SelectNative.js +29 -0
 - package/dist/components/Select/SelectOption.d.ts +4 -0
 - package/dist/components/Select/SelectOption.js +13 -0
 - package/dist/components/Select/SelectOptionGroup.d.ts +4 -0
 - package/dist/components/Select/SelectOptionGroup.js +9 -0
 - package/dist/components/Select/SelectRoot.d.ts +4 -0
 - package/dist/components/Select/SelectRoot.js +21 -0
 - package/dist/components/Select/SelectStartContent.d.ts +3 -0
 - package/dist/components/Select/SelectStartContent.js +20 -0
 - package/dist/components/Select/SelectTrigger.d.ts +4 -0
 - package/dist/components/Select/SelectTrigger.js +16 -0
 - package/dist/components/Select/tests/Select.stories.d.ts +38 -10
 - package/dist/components/Select/tests/Select.stories.js +504 -175
 - package/dist/components/Skeleton/tests/Skeleton.stories.d.ts +10 -2
 - package/dist/components/Skeleton/tests/Skeleton.stories.js +46 -28
 - package/dist/components/Slider/Slider.module.css +1 -1
 - package/dist/components/Stepper/Stepper.js +2 -2
 - package/dist/components/Stepper/Stepper.types.d.ts +2 -0
 - package/dist/components/Stepper/tests/Stepper.stories.d.ts +18 -3
 - package/dist/components/Stepper/tests/Stepper.stories.js +99 -47
 - package/dist/components/Switch/Switch.module.css +1 -1
 - package/dist/components/Switch/tests/Switch.stories.d.ts +10 -2
 - package/dist/components/Switch/tests/Switch.stories.js +77 -23
 - package/dist/components/Switch/tests/Switch.test.stories.d.ts +0 -10
 - package/dist/components/Switch/tests/Switch.test.stories.js +0 -68
 - package/dist/components/Table/Table.js +5 -3
 - package/dist/components/Table/Table.module.css +1 -1
 - package/dist/components/Table/tests/Table.stories.d.ts +25 -5
 - package/dist/components/Table/tests/Table.stories.js +274 -177
 - package/dist/components/Tabs/Tabs.module.css +1 -1
 - package/dist/components/Tabs/TabsControlled.js +1 -0
 - package/dist/components/Tabs/TabsList.js +3 -20
 - package/dist/components/Text/Text.module.css +1 -1
 - package/dist/components/TextArea/TextArea.module.css +1 -1
 - package/dist/components/TextArea/tests/TextArea.stories.d.ts +41 -9
 - package/dist/components/TextArea/tests/TextArea.stories.js +179 -93
 - package/dist/components/TextField/TextField.js +11 -3
 - package/dist/components/TextField/TextField.module.css +1 -1
 - package/dist/components/TextField/TextField.types.d.ts +5 -1
 - package/dist/components/TextField/tests/TextField.stories.d.ts +41 -11
 - package/dist/components/TextField/tests/TextField.stories.js +209 -129
 - package/dist/components/Theme/Theme.module.css +1 -1
 - package/dist/components/Timeline/Timeline.js +2 -2
 - package/dist/components/Timeline/tests/Timeline.stories.d.ts +10 -2
 - package/dist/components/Timeline/tests/Timeline.stories.js +69 -45
 - package/dist/components/Toast/ToastContainer.js +1 -0
 - package/dist/components/Toast/ToastRegion.js +1 -0
 - package/dist/components/Toast/tests/Toast.stories.d.ts +32 -8
 - package/dist/components/Toast/tests/Toast.stories.js +111 -37
 - package/dist/components/ToggleButton/ToggleButton.types.d.ts +5 -1
 - package/dist/components/ToggleButton/ToggleButtonControlled.js +9 -2
 - package/dist/components/ToggleButton/tests/ToggleButton.stories.d.ts +4 -0
 - package/dist/components/ToggleButton/tests/ToggleButton.stories.js +10 -0
 - package/dist/components/ToggleButtonGroup/ToggleButtonGroup.types.d.ts +10 -0
 - package/dist/components/ToggleButtonGroup/ToggleButtonGroupControlled.js +6 -41
 - package/dist/components/ToggleButtonGroup/tests/ToggleButtonGroup.stories.d.ts +1 -0
 - package/dist/components/ToggleButtonGroup/tests/ToggleButtonGroup.stories.js +17 -0
 - package/dist/components/Tooltip/Tooltip.js +1 -1
 - package/dist/components/Tooltip/Tooltip.types.d.ts +2 -2
 - package/dist/components/Tooltip/tests/Tooltip.stories.d.ts +18 -4
 - package/dist/components/Tooltip/tests/Tooltip.stories.js +139 -107
 - package/dist/components/View/View.js +11 -4
 - package/dist/components/View/View.types.d.ts +1 -1
 - package/dist/components/View/tests/View.stories.d.ts +4 -0
 - package/dist/components/View/tests/View.stories.js +39 -0
 - package/dist/components/_private/Expandable/Expandable.js +3 -1
 - package/dist/components/_private/Portal/Portal.js +4 -1
 - package/dist/hooks/_private/useIsDismissible.d.ts +1 -0
 - package/dist/hooks/_private/useIsDismissible.js +6 -6
 - package/dist/hooks/_private/usePrevious.js +1 -0
 - package/dist/hooks/tests/useDrag.stories.js +1 -1
 - package/dist/{components/Toast/tests/Toast.test.stories.d.ts → hooks/tests/useKeyboardArrowNavigation.stories.d.ts} +4 -5
 - package/dist/hooks/tests/useKeyboardArrowNavigation.stories.js +128 -0
 - package/dist/hooks/useKeyboardArrowNavigation.d.ts +9 -0
 - package/dist/hooks/useKeyboardArrowNavigation.js +62 -0
 - package/dist/hooks/useOnClickOutside.js +0 -2
 - package/dist/hooks/useScrollLock.js +5 -3
 - package/dist/index.d.ts +2 -1
 - package/dist/index.js +1 -0
 - package/dist/styles/resolvers/align/align.css +1 -1
 - package/dist/styles/resolvers/aspectRatio/aspectRatio.css +1 -1
 - package/dist/styles/resolvers/bleed/bleed.module.css +1 -1
 - package/dist/styles/resolvers/justify/justify.css +1 -1
 - package/dist/styles/resolvers/maxHeight/maxHeight.module.css +1 -1
 - package/dist/styles/resolvers/maxWidth/maxWidth.module.css +1 -1
 - package/dist/styles/resolvers/minHeight/minHeight.module.css +1 -1
 - package/dist/styles/resolvers/minWidth/minWidth.module.css +1 -1
 - package/dist/styles/resolvers/position/position.css +1 -1
 - package/dist/styles/resolvers/textAlign/textAlign.css +1 -1
 - package/dist/styles/resolvers/width/width.module.css +1 -1
 - package/dist/utilities/a11y/focus.d.ts +21 -4
 - package/dist/utilities/a11y/focus.js +4 -3
 - package/dist/utilities/scroll/disable.js +2 -2
 - package/dist/utilities/scroll/index.d.ts +1 -1
 - package/dist/utilities/scroll/index.js +1 -1
 - package/dist/utilities/scroll/lock.d.ts +1 -2
 - package/dist/utilities/scroll/lock.js +16 -15
 - package/dist/utilities/scroll/lockSafari.js +1 -0
 - package/package.json +195 -201
 - package/CHANGELOG-extra.md +0 -3
 - package/CHANGELOG.md +0 -57
 - package/dist/components/Actionable/tests/Actionable.test.stories.d.ts +0 -32
 - package/dist/components/Actionable/tests/Actionable.test.stories.js +0 -130
 - package/dist/components/Alert/tests/Alert.test.stories.d.ts +0 -15
 - package/dist/components/Alert/tests/Alert.test.stories.js +0 -26
 - package/dist/components/Badge/tests/Badge.test.stories.d.ts +0 -20
 - package/dist/components/Badge/tests/Badge.test.stories.js +0 -46
 - package/dist/components/Breadcrumbs/tests/Breadcrumbs.test.stories.d.ts +0 -23
 - package/dist/components/Breadcrumbs/tests/Breadcrumbs.test.stories.js +0 -76
 - package/dist/components/Button/tests/Button.test.stories.d.ts +0 -27
 - package/dist/components/Button/tests/Button.test.stories.js +0 -112
 - package/dist/components/Card/tests/Card.test.stories.d.ts +0 -35
 - package/dist/components/Card/tests/Card.test.stories.js +0 -54
 - package/dist/components/Checkbox/tests/Checkbox.test.stories.d.ts +0 -25
 - package/dist/components/Checkbox/tests/Checkbox.test.stories.js +0 -104
 - package/dist/components/CheckboxGroup/tests/CheckboxGroup.test.stories.d.ts +0 -22
 - package/dist/components/CheckboxGroup/tests/CheckboxGroup.test.stories.js +0 -78
 - package/dist/components/Container/tests/Container.test.stories.d.ts +0 -15
 - package/dist/components/Container/tests/Container.test.stories.js +0 -26
 - package/dist/components/ContextMenu/tests/ContextMenu.test.stories.d.ts +0 -25
 - package/dist/components/ContextMenu/tests/ContextMenu.test.stories.js +0 -53
 - package/dist/components/Dismissible/tests/Dismissible.test.stories.d.ts +0 -19
 - package/dist/components/Dismissible/tests/Dismissible.test.stories.js +0 -42
 - package/dist/components/Divider/tests/Divider.test.stories.d.ts +0 -18
 - package/dist/components/Divider/tests/Divider.test.stories.js +0 -47
 - package/dist/components/DropdownMenu/tests/DropdownMenu.test.stories.d.ts +0 -36
 - package/dist/components/DropdownMenu/tests/DropdownMenu.test.stories.js +0 -117
 - package/dist/components/FormControl/tests/FormControl.test.stories.d.ts +0 -20
 - package/dist/components/FormControl/tests/FormControl.test.stories.js +0 -49
 - package/dist/components/Hidden/tests/Hidden.test.stories.d.ts +0 -15
 - package/dist/components/Hidden/tests/Hidden.test.stories.js +0 -20
 - package/dist/components/HiddenVisually/tests/HiddenVisually.test.stories.d.ts +0 -15
 - package/dist/components/HiddenVisually/tests/HiddenVisually.test.stories.js +0 -20
 - package/dist/components/Hotkey/tests/Hotkey.test.stories.d.ts +0 -15
 - package/dist/components/Hotkey/tests/Hotkey.test.stories.js +0 -26
 - package/dist/components/Icon/tests/Icon.test.stories.d.ts +0 -16
 - package/dist/components/Icon/tests/Icon.test.stories.js +0 -35
 - package/dist/components/Link/tests/Link.test.stories.d.ts +0 -29
 - package/dist/components/Link/tests/Link.test.stories.js +0 -87
 - package/dist/components/Loader/tests/Loader.test.stories.d.ts +0 -16
 - package/dist/components/Loader/tests/Loader.test.stories.js +0 -32
 - package/dist/components/MenuItem/tests/MenuItem.test.stories.d.ts +0 -26
 - package/dist/components/MenuItem/tests/MenuItem.test.stories.js +0 -100
 - package/dist/components/Modal/tests/Modal.test.stories.d.ts +0 -31
 - package/dist/components/Modal/tests/Modal.test.stories.js +0 -149
 - package/dist/components/Overlay/tests/Overlay.test.stories.d.ts +0 -28
 - package/dist/components/Overlay/tests/Overlay.test.stories.js +0 -148
 - package/dist/components/Pagination/tests/Pagination.test.stories.d.ts +0 -23
 - package/dist/components/Pagination/tests/Pagination.test.stories.js +0 -86
 - package/dist/components/Progress/tests/Progress.test.stories.d.ts +0 -16
 - package/dist/components/Progress/tests/Progress.test.stories.js +0 -35
 - package/dist/components/Radio/tests/Radio.test.stories.d.ts +0 -30
 - package/dist/components/Radio/tests/Radio.test.stories.js +0 -118
 - package/dist/components/RadioGroup/tests/RadioGroup.test.stories.d.ts +0 -22
 - package/dist/components/RadioGroup/tests/RadioGroup.test.stories.js +0 -78
 - package/dist/components/Scrim/tests/Scrim.test.stories.d.ts +0 -15
 - package/dist/components/Scrim/tests/Scrim.test.stories.js +0 -25
 - package/dist/components/Select/tests/Select.test.stories.d.ts +0 -27
 - package/dist/components/Select/tests/Select.test.stories.js +0 -132
 - package/dist/components/Skeleton/tests/Skeleton.test.stories.d.ts +0 -15
 - package/dist/components/Skeleton/tests/Skeleton.test.stories.js +0 -23
 - package/dist/components/Stepper/tests/Stepper.test.stories.d.ts +0 -20
 - package/dist/components/Stepper/tests/Stepper.test.stories.js +0 -28
 - package/dist/components/Table/tests/Table.test.stories.d.ts +0 -24
 - package/dist/components/Table/tests/Table.test.stories.js +0 -93
 - package/dist/components/TextArea/tests/TextArea.test.stories.d.ts +0 -28
 - package/dist/components/TextArea/tests/TextArea.test.stories.js +0 -99
 - package/dist/components/TextField/tests/TextField.test.stories.d.ts +0 -28
 - package/dist/components/TextField/tests/TextField.test.stories.js +0 -99
 - package/dist/components/Timeline/tests/Timeline.test.stories.d.ts +0 -17
 - package/dist/components/Timeline/tests/Timeline.test.stories.js +0 -32
 - package/dist/components/Toast/tests/Toast.test.stories.js +0 -101
 - package/dist/components/Tooltip/tests/Tooltip.test.stories.d.ts +0 -19
 - package/dist/components/Tooltip/tests/Tooltip.test.stories.js +0 -40
 - package/dist/components/View/tests/View.test.stories.d.ts +0 -24
 - package/dist/components/View/tests/View.test.stories.js +0 -50
 
| 
         @@ -1,78 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { fn, userEvent, expect } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import CheckboxGroup from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            import Checkbox from "../../Checkbox/index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            export default {
         
     | 
| 
       5 
     | 
    
         
            -
                title: "Components/CheckboxGroup/tests",
         
     | 
| 
       6 
     | 
    
         
            -
                component: CheckboxGroup,
         
     | 
| 
       7 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       8 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       9 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/checkbox",
         
     | 
| 
       10 
     | 
    
         
            -
                    },
         
     | 
| 
       11 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       12 
     | 
    
         
            -
                },
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export const value = {
         
     | 
| 
       15 
     | 
    
         
            -
                name: "value, controlled",
         
     | 
| 
       16 
     | 
    
         
            -
                args: {
         
     | 
| 
       17 
     | 
    
         
            -
                    handleChange: fn(),
         
     | 
| 
       18 
     | 
    
         
            -
                },
         
     | 
| 
       19 
     | 
    
         
            -
                render: (args) => (<CheckboxGroup name="test-name" value={["1"]} onChange={args.handleChange}>
         
     | 
| 
       20 
     | 
    
         
            -
            			{/* checked should be ignored */}
         
     | 
| 
       21 
     | 
    
         
            -
            			<Checkbox value="1" checked={false}>
         
     | 
| 
       22 
     | 
    
         
            -
            				Content
         
     | 
| 
       23 
     | 
    
         
            -
            			</Checkbox>
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            			<Checkbox value="2">Content 2</Checkbox>
         
     | 
| 
       26 
     | 
    
         
            -
            		</CheckboxGroup>),
         
     | 
| 
       27 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       28 
     | 
    
         
            -
                    const inputs = canvas.getAllByRole("checkbox");
         
     | 
| 
       29 
     | 
    
         
            -
                    expect(inputs[0]).toBeChecked();
         
     | 
| 
       30 
     | 
    
         
            -
                    await userEvent.click(inputs[1]);
         
     | 
| 
       31 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledTimes(1);
         
     | 
| 
       32 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledWith({
         
     | 
| 
       33 
     | 
    
         
            -
                        name: "test-name",
         
     | 
| 
       34 
     | 
    
         
            -
                        value: ["1", "2"],
         
     | 
| 
       35 
     | 
    
         
            -
                        event: expect.objectContaining({ target: inputs[1] }),
         
     | 
| 
       36 
     | 
    
         
            -
                    });
         
     | 
| 
       37 
     | 
    
         
            -
                    // Still checked because it's controlled
         
     | 
| 
       38 
     | 
    
         
            -
                    expect(inputs[0]).toBeChecked();
         
     | 
| 
       39 
     | 
    
         
            -
                    expect(inputs[1]).not.toBeChecked();
         
     | 
| 
       40 
     | 
    
         
            -
                },
         
     | 
| 
       41 
     | 
    
         
            -
            };
         
     | 
| 
       42 
     | 
    
         
            -
            export const defaultValue = {
         
     | 
| 
       43 
     | 
    
         
            -
                name: "defaultValue, uncontrolled",
         
     | 
| 
       44 
     | 
    
         
            -
                args: {
         
     | 
| 
       45 
     | 
    
         
            -
                    handleChange: fn(),
         
     | 
| 
       46 
     | 
    
         
            -
                },
         
     | 
| 
       47 
     | 
    
         
            -
                render: (args) => (<CheckboxGroup name="test-name" defaultValue={["1"]} onChange={args.handleChange}>
         
     | 
| 
       48 
     | 
    
         
            -
            			{/* checked should be ignored */}
         
     | 
| 
       49 
     | 
    
         
            -
            			<Checkbox value="1" checked={false}>
         
     | 
| 
       50 
     | 
    
         
            -
            				Content
         
     | 
| 
       51 
     | 
    
         
            -
            			</Checkbox>
         
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
            			<Checkbox value="2">Content 2</Checkbox>
         
     | 
| 
       54 
     | 
    
         
            -
            		</CheckboxGroup>),
         
     | 
| 
       55 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       56 
     | 
    
         
            -
                    const inputs = canvas.getAllByRole("checkbox");
         
     | 
| 
       57 
     | 
    
         
            -
                    expect(inputs[0]).toBeChecked();
         
     | 
| 
       58 
     | 
    
         
            -
                    await userEvent.click(inputs[1]);
         
     | 
| 
       59 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledTimes(1);
         
     | 
| 
       60 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledWith({
         
     | 
| 
       61 
     | 
    
         
            -
                        name: "test-name",
         
     | 
| 
       62 
     | 
    
         
            -
                        value: ["1", "2"],
         
     | 
| 
       63 
     | 
    
         
            -
                        event: expect.objectContaining({ target: inputs[1] }),
         
     | 
| 
       64 
     | 
    
         
            -
                    });
         
     | 
| 
       65 
     | 
    
         
            -
                    expect(inputs[0]).toBeChecked();
         
     | 
| 
       66 
     | 
    
         
            -
                    expect(inputs[1]).toBeChecked();
         
     | 
| 
       67 
     | 
    
         
            -
                },
         
     | 
| 
       68 
     | 
    
         
            -
            };
         
     | 
| 
       69 
     | 
    
         
            -
            export const disabled = {
         
     | 
| 
       70 
     | 
    
         
            -
                name: "disabled",
         
     | 
| 
       71 
     | 
    
         
            -
                render: () => (<CheckboxGroup name="test-name" disabled>
         
     | 
| 
       72 
     | 
    
         
            -
            			<Checkbox value="test-value">Content</Checkbox>
         
     | 
| 
       73 
     | 
    
         
            -
            		</CheckboxGroup>),
         
     | 
| 
       74 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       75 
     | 
    
         
            -
                    const input = canvas.getByRole("checkbox");
         
     | 
| 
       76 
     | 
    
         
            -
                    expect(input).toBeDisabled();
         
     | 
| 
       77 
     | 
    
         
            -
                },
         
     | 
| 
       78 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,15 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       3 
     | 
    
         
            -
                title: string;
         
     | 
| 
       4 
     | 
    
         
            -
                component: import("react").FC<import("./..").ContainerProps>;
         
     | 
| 
       5 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       6 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       7 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       8 
     | 
    
         
            -
                    };
         
     | 
| 
       9 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       10 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       11 
     | 
    
         
            -
                    };
         
     | 
| 
       12 
     | 
    
         
            -
                };
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       15 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,26 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Container from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            import { Placeholder } from "../../../utilities/storybook/index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            export default {
         
     | 
| 
       5 
     | 
    
         
            -
                title: "Utility components/Container/tests",
         
     | 
| 
       6 
     | 
    
         
            -
                component: Container,
         
     | 
| 
       7 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       8 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       9 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/action-bar",
         
     | 
| 
       10 
     | 
    
         
            -
                    },
         
     | 
| 
       11 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       12 
     | 
    
         
            -
                },
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       15 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       16 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       17 
     | 
    
         
            -
            			<Container className="test-classname" attributes={{ id: "test-id" }}>
         
     | 
| 
       18 
     | 
    
         
            -
            				<Placeholder />
         
     | 
| 
       19 
     | 
    
         
            -
            			</Container>
         
     | 
| 
       20 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       21 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       22 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       23 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       24 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       25 
     | 
    
         
            -
                },
         
     | 
| 
       26 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,25 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            import { fn } from "storybook/test";
         
     | 
| 
       3 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       4 
     | 
    
         
            -
                title: string;
         
     | 
| 
       5 
     | 
    
         
            -
                component: import("react").FC<import("./..").ContextMenuProps> & {
         
     | 
| 
       6 
     | 
    
         
            -
                    Content: import("react").FC<import("../../DropdownMenu/DropdownMenu.types").ContentProps>;
         
     | 
| 
       7 
     | 
    
         
            -
                    Item: import("react").FC<import("../../DropdownMenu/DropdownMenu.types").ItemProps>;
         
     | 
| 
       8 
     | 
    
         
            -
                    Section: import("react").FC<import("../../DropdownMenu/DropdownMenu.types").SectionProps>;
         
     | 
| 
       9 
     | 
    
         
            -
                    SubMenu: import("react").FC<import("../../DropdownMenu/DropdownMenu.types").SubMenuProps>;
         
     | 
| 
       10 
     | 
    
         
            -
                    SubTrigger: import("react").FC<import("../../DropdownMenu/DropdownMenu.types").SubTriggerProps>;
         
     | 
| 
       11 
     | 
    
         
            -
                };
         
     | 
| 
       12 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       13 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       14 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       15 
     | 
    
         
            -
                    };
         
     | 
| 
       16 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       17 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       18 
     | 
    
         
            -
                    };
         
     | 
| 
       19 
     | 
    
         
            -
                };
         
     | 
| 
       20 
     | 
    
         
            -
            };
         
     | 
| 
       21 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       22 
     | 
    
         
            -
            export declare const handlers: StoryObj<{
         
     | 
| 
       23 
     | 
    
         
            -
                handleOpen: ReturnType<typeof fn>;
         
     | 
| 
       24 
     | 
    
         
            -
                handleClose: ReturnType<typeof fn>;
         
     | 
| 
       25 
     | 
    
         
            -
            }>;
         
     | 
| 
         @@ -1,53 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect, fn, userEvent, waitFor, within } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import ContextMenu from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            import View from "../../View/index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            import { sleep } from "../../../utilities/helpers.js";
         
     | 
| 
       5 
     | 
    
         
            -
            export default {
         
     | 
| 
       6 
     | 
    
         
            -
                title: "Components/ContextMenu/tests",
         
     | 
| 
       7 
     | 
    
         
            -
                component: ContextMenu,
         
     | 
| 
       8 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       9 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       10 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/context-menu",
         
     | 
| 
       11 
     | 
    
         
            -
                    },
         
     | 
| 
       12 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       13 
     | 
    
         
            -
                },
         
     | 
| 
       14 
     | 
    
         
            -
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export const handlers = {
         
     | 
| 
       16 
     | 
    
         
            -
                name: "handleOpen, handleClose",
         
     | 
| 
       17 
     | 
    
         
            -
                args: {
         
     | 
| 
       18 
     | 
    
         
            -
                    handleOpen: fn(),
         
     | 
| 
       19 
     | 
    
         
            -
                    handleClose: fn(),
         
     | 
| 
       20 
     | 
    
         
            -
                },
         
     | 
| 
       21 
     | 
    
         
            -
                render: (args) => (<div style={{ height: 200, overflow: "auto" }} data-testid="scroll">
         
     | 
| 
       22 
     | 
    
         
            -
            			<ContextMenu onOpen={args.handleOpen} onClose={args.handleClose}>
         
     | 
| 
       23 
     | 
    
         
            -
            				<View height="400px" backgroundColor="neutral-faded" borderRadius="medium" attributes={{ "data-testid": "root" }}/>
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            				<ContextMenu.Content>
         
     | 
| 
       26 
     | 
    
         
            -
            					<ContextMenu.Item>Item</ContextMenu.Item>
         
     | 
| 
       27 
     | 
    
         
            -
            				</ContextMenu.Content>
         
     | 
| 
       28 
     | 
    
         
            -
            			</ContextMenu>
         
     | 
| 
       29 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       30 
     | 
    
         
            -
                play: async ({ canvasElement, args }) => {
         
     | 
| 
       31 
     | 
    
         
            -
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
       32 
     | 
    
         
            -
                    const root = canvas.getByTestId("root");
         
     | 
| 
       33 
     | 
    
         
            -
                    const scroll = canvas.getByTestId("scroll");
         
     | 
| 
       34 
     | 
    
         
            -
                    await userEvent.pointer({ keys: "[MouseRight>]", target: root });
         
     | 
| 
       35 
     | 
    
         
            -
                    expect(args.handleOpen).toHaveBeenCalledTimes(1);
         
     | 
| 
       36 
     | 
    
         
            -
                    expect(args.handleOpen).toHaveBeenCalledWith();
         
     | 
| 
       37 
     | 
    
         
            -
                    const item = canvas.getByText("Item");
         
     | 
| 
       38 
     | 
    
         
            -
                    expect(item).toBeInTheDocument();
         
     | 
| 
       39 
     | 
    
         
            -
                    // Context menu locks the scroll of the closest scrollable parent
         
     | 
| 
       40 
     | 
    
         
            -
                    expect(scroll).toHaveStyle("overflow: hidden");
         
     | 
| 
       41 
     | 
    
         
            -
                    // Wait for the open animation to finish
         
     | 
| 
       42 
     | 
    
         
            -
                    await sleep(500);
         
     | 
| 
       43 
     | 
    
         
            -
                    await userEvent.click(root);
         
     | 
| 
       44 
     | 
    
         
            -
                    expect(args.handleClose).toHaveBeenCalledTimes(1);
         
     | 
| 
       45 
     | 
    
         
            -
                    expect(args.handleClose).toHaveBeenCalledWith({ reason: "outside-click" });
         
     | 
| 
       46 
     | 
    
         
            -
                    await waitFor(() => {
         
     | 
| 
       47 
     | 
    
         
            -
                        expect(item).not.toBeInTheDocument();
         
     | 
| 
       48 
     | 
    
         
            -
                        expect(scroll).not.toHaveStyle("overflow: hidden");
         
     | 
| 
       49 
     | 
    
         
            -
                    }, {
         
     | 
| 
       50 
     | 
    
         
            -
                        timeout: 1000,
         
     | 
| 
       51 
     | 
    
         
            -
                    });
         
     | 
| 
       52 
     | 
    
         
            -
                },
         
     | 
| 
       53 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,19 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            import { fn } from "storybook/test";
         
     | 
| 
       3 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       4 
     | 
    
         
            -
                title: string;
         
     | 
| 
       5 
     | 
    
         
            -
                component: import("react").FC<import("./..").DismissibleProps>;
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       9 
     | 
    
         
            -
                    };
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       11 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       12 
     | 
    
         
            -
                    };
         
     | 
| 
       13 
     | 
    
         
            -
                };
         
     | 
| 
       14 
     | 
    
         
            -
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       16 
     | 
    
         
            -
            export declare const closeAriaLabel: StoryObj<{
         
     | 
| 
       17 
     | 
    
         
            -
                handleClose: ReturnType<typeof fn>;
         
     | 
| 
       18 
     | 
    
         
            -
            }>;
         
     | 
| 
       19 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,42 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect, fn, userEvent } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Dismissible from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            import { Placeholder } from "../../../utilities/storybook/index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            export default {
         
     | 
| 
       5 
     | 
    
         
            -
                title: "Utility components/Dismissible/tests",
         
     | 
| 
       6 
     | 
    
         
            -
                component: Dismissible,
         
     | 
| 
       7 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       8 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       9 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/action-bar",
         
     | 
| 
       10 
     | 
    
         
            -
                    },
         
     | 
| 
       11 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       12 
     | 
    
         
            -
                },
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export const closeAriaLabel = {
         
     | 
| 
       15 
     | 
    
         
            -
                args: {
         
     | 
| 
       16 
     | 
    
         
            -
                    handleClose: fn(),
         
     | 
| 
       17 
     | 
    
         
            -
                },
         
     | 
| 
       18 
     | 
    
         
            -
                name: "onClose, closeAriaLabel",
         
     | 
| 
       19 
     | 
    
         
            -
                render: (args) => (<Dismissible closeAriaLabel="Close" onClose={args.handleClose}>
         
     | 
| 
       20 
     | 
    
         
            -
            			<Placeholder />
         
     | 
| 
       21 
     | 
    
         
            -
            		</Dismissible>),
         
     | 
| 
       22 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       23 
     | 
    
         
            -
                    const button = canvas.getAllByRole("button")[0];
         
     | 
| 
       24 
     | 
    
         
            -
                    await userEvent.click(button);
         
     | 
| 
       25 
     | 
    
         
            -
                    expect(button).toHaveAttribute("aria-label", "Close");
         
     | 
| 
       26 
     | 
    
         
            -
                    expect(args.handleClose).toHaveBeenCalledTimes(1);
         
     | 
| 
       27 
     | 
    
         
            -
                    expect(args.handleClose).toHaveBeenCalledWith();
         
     | 
| 
       28 
     | 
    
         
            -
                },
         
     | 
| 
       29 
     | 
    
         
            -
            };
         
     | 
| 
       30 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       31 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       32 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       33 
     | 
    
         
            -
            			<Dismissible closeAriaLabel="Close" onClose={() => { }} className="test-classname" attributes={{ id: "test-id" }}>
         
     | 
| 
       34 
     | 
    
         
            -
            				<Placeholder />
         
     | 
| 
       35 
     | 
    
         
            -
            			</Dismissible>
         
     | 
| 
       36 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       37 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       38 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       39 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       40 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       41 
     | 
    
         
            -
                },
         
     | 
| 
       42 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,18 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       3 
     | 
    
         
            -
                title: string;
         
     | 
| 
       4 
     | 
    
         
            -
                component: import("react").FC<import("./..").DividerProps>;
         
     | 
| 
       5 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       6 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       7 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       8 
     | 
    
         
            -
                    };
         
     | 
| 
       9 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       10 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       11 
     | 
    
         
            -
                    };
         
     | 
| 
       12 
     | 
    
         
            -
                };
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       15 
     | 
    
         
            -
            export declare const horizontal: StoryObj;
         
     | 
| 
       16 
     | 
    
         
            -
            export declare const vertical: StoryObj;
         
     | 
| 
       17 
     | 
    
         
            -
            export declare const responsive: StoryObj;
         
     | 
| 
       18 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,47 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Divider from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            export default {
         
     | 
| 
       4 
     | 
    
         
            -
                title: "Components/Divider/tests",
         
     | 
| 
       5 
     | 
    
         
            -
                component: Divider,
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/divider",
         
     | 
| 
       9 
     | 
    
         
            -
                    },
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       11 
     | 
    
         
            -
                },
         
     | 
| 
       12 
     | 
    
         
            -
            };
         
     | 
| 
       13 
     | 
    
         
            -
            export const horizontal = {
         
     | 
| 
       14 
     | 
    
         
            -
                name: "orientation, horizontal",
         
     | 
| 
       15 
     | 
    
         
            -
                render: () => <Divider />,
         
     | 
| 
       16 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       17 
     | 
    
         
            -
                    const el = canvas.getByRole("separator");
         
     | 
| 
       18 
     | 
    
         
            -
                    expect(el).toHaveAttribute("aria-orientation", "horizontal");
         
     | 
| 
       19 
     | 
    
         
            -
                },
         
     | 
| 
       20 
     | 
    
         
            -
            };
         
     | 
| 
       21 
     | 
    
         
            -
            export const vertical = {
         
     | 
| 
       22 
     | 
    
         
            -
                name: "orientation, vertical",
         
     | 
| 
       23 
     | 
    
         
            -
                render: () => <Divider vertical/>,
         
     | 
| 
       24 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       25 
     | 
    
         
            -
                    const el = canvas.getByRole("separator");
         
     | 
| 
       26 
     | 
    
         
            -
                    expect(el).toHaveAttribute("aria-orientation", "vertical");
         
     | 
| 
       27 
     | 
    
         
            -
                },
         
     | 
| 
       28 
     | 
    
         
            -
            };
         
     | 
| 
       29 
     | 
    
         
            -
            export const responsive = {
         
     | 
| 
       30 
     | 
    
         
            -
                name: "orientation, responsive",
         
     | 
| 
       31 
     | 
    
         
            -
                render: () => <Divider vertical={{ s: true, l: false }}/>,
         
     | 
| 
       32 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       33 
     | 
    
         
            -
                    const el = canvas.getByRole("separator");
         
     | 
| 
       34 
     | 
    
         
            -
                    expect(el).not.toHaveAttribute("aria-orientation");
         
     | 
| 
       35 
     | 
    
         
            -
                },
         
     | 
| 
       36 
     | 
    
         
            -
            };
         
     | 
| 
       37 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       38 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       39 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       40 
     | 
    
         
            -
            			<Divider className="test-classname" attributes={{ id: "test-id" }}/>
         
     | 
| 
       41 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       42 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       43 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       44 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       45 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       46 
     | 
    
         
            -
                },
         
     | 
| 
       47 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,36 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            import { fn } from "storybook/test";
         
     | 
| 
       3 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       4 
     | 
    
         
            -
                title: string;
         
     | 
| 
       5 
     | 
    
         
            -
                component: import("react").FC<import("./..").DropdownMenuProps> & {
         
     | 
| 
       6 
     | 
    
         
            -
                    Dismissible: import("react").FC<import("../../Dismissible").DismissibleProps>;
         
     | 
| 
       7 
     | 
    
         
            -
                    Trigger: import("react").FC<import("../../Flyout").FlyoutTriggerProps>;
         
     | 
| 
       8 
     | 
    
         
            -
                    Content: import("react").FC<import("../DropdownMenu.types").ContentProps>;
         
     | 
| 
       9 
     | 
    
         
            -
                    Section: import("react").FC<import("../DropdownMenu.types").SectionProps>;
         
     | 
| 
       10 
     | 
    
         
            -
                    Item: import("react").FC<import("../DropdownMenu.types").ItemProps>;
         
     | 
| 
       11 
     | 
    
         
            -
                    SubMenu: import("react").FC<import("../DropdownMenu.types").SubMenuProps>;
         
     | 
| 
       12 
     | 
    
         
            -
                    SubTrigger: import("react").FC<import("../DropdownMenu.types").SubTriggerProps>;
         
     | 
| 
       13 
     | 
    
         
            -
                };
         
     | 
| 
       14 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       15 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       16 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       17 
     | 
    
         
            -
                    };
         
     | 
| 
       18 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       19 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       20 
     | 
    
         
            -
                    };
         
     | 
| 
       21 
     | 
    
         
            -
                };
         
     | 
| 
       22 
     | 
    
         
            -
            };
         
     | 
| 
       23 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       24 
     | 
    
         
            -
            export declare const defaultActive: StoryObj<{
         
     | 
| 
       25 
     | 
    
         
            -
                handleOpen: ReturnType<typeof fn>;
         
     | 
| 
       26 
     | 
    
         
            -
                handleClose: ReturnType<typeof fn>;
         
     | 
| 
       27 
     | 
    
         
            -
            }>;
         
     | 
| 
       28 
     | 
    
         
            -
            export declare const active: StoryObj<{
         
     | 
| 
       29 
     | 
    
         
            -
                handleOpen: ReturnType<typeof fn>;
         
     | 
| 
       30 
     | 
    
         
            -
                handleClose: ReturnType<typeof fn>;
         
     | 
| 
       31 
     | 
    
         
            -
            }>;
         
     | 
| 
       32 
     | 
    
         
            -
            export declare const activeFalse: StoryObj<{
         
     | 
| 
       33 
     | 
    
         
            -
                handleOpen: ReturnType<typeof fn>;
         
     | 
| 
       34 
     | 
    
         
            -
                handleClose: ReturnType<typeof fn>;
         
     | 
| 
       35 
     | 
    
         
            -
            }>;
         
     | 
| 
       36 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,117 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect, fn, userEvent, waitFor, within } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Button from "../../Button/index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            import DropdownMenu from "../index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            import { sleep } from "../../../utilities/helpers.js";
         
     | 
| 
       5 
     | 
    
         
            -
            export default {
         
     | 
| 
       6 
     | 
    
         
            -
                title: "Components/DropdownMenu/tests",
         
     | 
| 
       7 
     | 
    
         
            -
                component: DropdownMenu,
         
     | 
| 
       8 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       9 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       10 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/dropdown-menu",
         
     | 
| 
       11 
     | 
    
         
            -
                    },
         
     | 
| 
       12 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       13 
     | 
    
         
            -
                },
         
     | 
| 
       14 
     | 
    
         
            -
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export const defaultActive = {
         
     | 
| 
       16 
     | 
    
         
            -
                name: "defaultActive, uncontrolled",
         
     | 
| 
       17 
     | 
    
         
            -
                args: {
         
     | 
| 
       18 
     | 
    
         
            -
                    handleOpen: fn(),
         
     | 
| 
       19 
     | 
    
         
            -
                    handleClose: fn(),
         
     | 
| 
       20 
     | 
    
         
            -
                },
         
     | 
| 
       21 
     | 
    
         
            -
                render: (args) => (<DropdownMenu onOpen={args.handleOpen} onClose={args.handleClose} defaultActive>
         
     | 
| 
       22 
     | 
    
         
            -
            			<DropdownMenu.Trigger>
         
     | 
| 
       23 
     | 
    
         
            -
            				{(attributes) => <Button attributes={attributes}>Open</Button>}
         
     | 
| 
       24 
     | 
    
         
            -
            			</DropdownMenu.Trigger>
         
     | 
| 
       25 
     | 
    
         
            -
            			<DropdownMenu.Content>
         
     | 
| 
       26 
     | 
    
         
            -
            				<DropdownMenu.Item>Item</DropdownMenu.Item>
         
     | 
| 
       27 
     | 
    
         
            -
            			</DropdownMenu.Content>
         
     | 
| 
       28 
     | 
    
         
            -
            		</DropdownMenu>),
         
     | 
| 
       29 
     | 
    
         
            -
                play: async ({ canvasElement, args }) => {
         
     | 
| 
       30 
     | 
    
         
            -
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
       31 
     | 
    
         
            -
                    const trigger = canvas.getAllByRole("button")[0];
         
     | 
| 
       32 
     | 
    
         
            -
                    let item = canvas.getByText("Item");
         
     | 
| 
       33 
     | 
    
         
            -
                    await sleep(500);
         
     | 
| 
       34 
     | 
    
         
            -
                    await userEvent.click(document.body);
         
     | 
| 
       35 
     | 
    
         
            -
                    await waitFor(() => {
         
     | 
| 
       36 
     | 
    
         
            -
                        expect(args.handleClose).toHaveBeenCalledTimes(1);
         
     | 
| 
       37 
     | 
    
         
            -
                        expect(args.handleClose).toHaveBeenCalledWith({ reason: "outside-click" });
         
     | 
| 
       38 
     | 
    
         
            -
                        expect(item).not.toBeInTheDocument();
         
     | 
| 
       39 
     | 
    
         
            -
                    });
         
     | 
| 
       40 
     | 
    
         
            -
                    await userEvent.click(trigger);
         
     | 
| 
       41 
     | 
    
         
            -
                    item = canvas.getByText("Item");
         
     | 
| 
       42 
     | 
    
         
            -
                    await waitFor(() => {
         
     | 
| 
       43 
     | 
    
         
            -
                        expect(args.handleOpen).toHaveBeenCalledTimes(1);
         
     | 
| 
       44 
     | 
    
         
            -
                        expect(args.handleOpen).toHaveBeenCalledWith();
         
     | 
| 
       45 
     | 
    
         
            -
                        expect(item).toBeInTheDocument();
         
     | 
| 
       46 
     | 
    
         
            -
                    });
         
     | 
| 
       47 
     | 
    
         
            -
                },
         
     | 
| 
       48 
     | 
    
         
            -
            };
         
     | 
| 
       49 
     | 
    
         
            -
            export const active = {
         
     | 
| 
       50 
     | 
    
         
            -
                name: "active, controlled",
         
     | 
| 
       51 
     | 
    
         
            -
                args: {
         
     | 
| 
       52 
     | 
    
         
            -
                    handleOpen: fn(),
         
     | 
| 
       53 
     | 
    
         
            -
                    handleClose: fn(),
         
     | 
| 
       54 
     | 
    
         
            -
                },
         
     | 
| 
       55 
     | 
    
         
            -
                render: (args) => (<DropdownMenu onOpen={args.handleOpen} onClose={args.handleClose} active>
         
     | 
| 
       56 
     | 
    
         
            -
            			<DropdownMenu.Trigger>
         
     | 
| 
       57 
     | 
    
         
            -
            				{(attributes) => <Button attributes={attributes}>Open</Button>}
         
     | 
| 
       58 
     | 
    
         
            -
            			</DropdownMenu.Trigger>
         
     | 
| 
       59 
     | 
    
         
            -
            			<DropdownMenu.Content>
         
     | 
| 
       60 
     | 
    
         
            -
            				<DropdownMenu.Item>Item</DropdownMenu.Item>
         
     | 
| 
       61 
     | 
    
         
            -
            			</DropdownMenu.Content>
         
     | 
| 
       62 
     | 
    
         
            -
            		</DropdownMenu>),
         
     | 
| 
       63 
     | 
    
         
            -
                play: async ({ canvasElement, args }) => {
         
     | 
| 
       64 
     | 
    
         
            -
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
       65 
     | 
    
         
            -
                    const item = canvas.getByText("Item");
         
     | 
| 
       66 
     | 
    
         
            -
                    await userEvent.click(document.body);
         
     | 
| 
       67 
     | 
    
         
            -
                    await waitFor(() => {
         
     | 
| 
       68 
     | 
    
         
            -
                        expect(args.handleClose).toHaveBeenCalledTimes(1);
         
     | 
| 
       69 
     | 
    
         
            -
                        expect(args.handleClose).toHaveBeenCalledWith({ reason: "outside-click" });
         
     | 
| 
       70 
     | 
    
         
            -
                    });
         
     | 
| 
       71 
     | 
    
         
            -
                    expect(item).toBeInTheDocument();
         
     | 
| 
       72 
     | 
    
         
            -
                },
         
     | 
| 
       73 
     | 
    
         
            -
            };
         
     | 
| 
       74 
     | 
    
         
            -
            export const activeFalse = {
         
     | 
| 
       75 
     | 
    
         
            -
                name: "active false, controlled",
         
     | 
| 
       76 
     | 
    
         
            -
                args: {
         
     | 
| 
       77 
     | 
    
         
            -
                    handleOpen: fn(),
         
     | 
| 
       78 
     | 
    
         
            -
                    handleClose: fn(),
         
     | 
| 
       79 
     | 
    
         
            -
                },
         
     | 
| 
       80 
     | 
    
         
            -
                render: (args) => (<DropdownMenu onOpen={args.handleOpen} onClose={args.handleClose} active={false}>
         
     | 
| 
       81 
     | 
    
         
            -
            			<DropdownMenu.Trigger>
         
     | 
| 
       82 
     | 
    
         
            -
            				{(attributes) => <Button attributes={attributes}>Open</Button>}
         
     | 
| 
       83 
     | 
    
         
            -
            			</DropdownMenu.Trigger>
         
     | 
| 
       84 
     | 
    
         
            -
            			<DropdownMenu.Content>
         
     | 
| 
       85 
     | 
    
         
            -
            				<DropdownMenu.Item>Item</DropdownMenu.Item>
         
     | 
| 
       86 
     | 
    
         
            -
            			</DropdownMenu.Content>
         
     | 
| 
       87 
     | 
    
         
            -
            		</DropdownMenu>),
         
     | 
| 
       88 
     | 
    
         
            -
                play: async ({ canvasElement, args }) => {
         
     | 
| 
       89 
     | 
    
         
            -
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
       90 
     | 
    
         
            -
                    const trigger = canvas.getAllByRole("button")[0];
         
     | 
| 
       91 
     | 
    
         
            -
                    await userEvent.click(trigger);
         
     | 
| 
       92 
     | 
    
         
            -
                    await waitFor(() => {
         
     | 
| 
       93 
     | 
    
         
            -
                        expect(args.handleOpen).toHaveBeenCalledTimes(1);
         
     | 
| 
       94 
     | 
    
         
            -
                        expect(args.handleOpen).toHaveBeenCalledWith();
         
     | 
| 
       95 
     | 
    
         
            -
                    });
         
     | 
| 
       96 
     | 
    
         
            -
                    const item = canvas.queryByText("Item");
         
     | 
| 
       97 
     | 
    
         
            -
                    expect(item).not.toBeInTheDocument();
         
     | 
| 
       98 
     | 
    
         
            -
                },
         
     | 
| 
       99 
     | 
    
         
            -
            };
         
     | 
| 
       100 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       101 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       102 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       103 
     | 
    
         
            -
            			<DropdownMenu active>
         
     | 
| 
       104 
     | 
    
         
            -
            				<DropdownMenu.Trigger>
         
     | 
| 
       105 
     | 
    
         
            -
            					{(attributes) => <Button attributes={attributes}>Open</Button>}
         
     | 
| 
       106 
     | 
    
         
            -
            				</DropdownMenu.Trigger>
         
     | 
| 
       107 
     | 
    
         
            -
            				<DropdownMenu.Content className="test-classname" attributes={{ "data-testid": "test-id" }}>
         
     | 
| 
       108 
     | 
    
         
            -
            					<DropdownMenu.Item>Item</DropdownMenu.Item>
         
     | 
| 
       109 
     | 
    
         
            -
            				</DropdownMenu.Content>
         
     | 
| 
       110 
     | 
    
         
            -
            			</DropdownMenu>
         
     | 
| 
       111 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       112 
     | 
    
         
            -
                play: async ({ canvasElement }) => {
         
     | 
| 
       113 
     | 
    
         
            -
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
       114 
     | 
    
         
            -
                    const menu = await canvas.findByTestId("test-id");
         
     | 
| 
       115 
     | 
    
         
            -
                    expect(menu).toHaveClass("test-classname");
         
     | 
| 
       116 
     | 
    
         
            -
                },
         
     | 
| 
       117 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,20 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       3 
     | 
    
         
            -
                title: string;
         
     | 
| 
       4 
     | 
    
         
            -
                component: import("react").FC<import("./..").FormControlProps> & {
         
     | 
| 
       5 
     | 
    
         
            -
                    Label: import("react").FC<import("../FormControl.types").LabelProps>;
         
     | 
| 
       6 
     | 
    
         
            -
                    Helper: import("react").FC<import("../FormControl.types").CaptionProps>;
         
     | 
| 
       7 
     | 
    
         
            -
                    Error: import("react").FC<import("../FormControl.types").CaptionProps>;
         
     | 
| 
       8 
     | 
    
         
            -
                };
         
     | 
| 
       9 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       10 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       11 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       12 
     | 
    
         
            -
                    };
         
     | 
| 
       13 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       14 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       15 
     | 
    
         
            -
                    };
         
     | 
| 
       16 
     | 
    
         
            -
                };
         
     | 
| 
       17 
     | 
    
         
            -
            };
         
     | 
| 
       18 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       19 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
       20 
     | 
    
         
            -
            export declare const group: StoryObj;
         
     | 
| 
         @@ -1,49 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import FormControl from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            import Radio from "../../Radio/index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            import RadioGroup from "../../RadioGroup/index.js";
         
     | 
| 
       5 
     | 
    
         
            -
            import TextField from "../../TextField/index.js";
         
     | 
| 
       6 
     | 
    
         
            -
            import View from "../../View/index.js";
         
     | 
| 
       7 
     | 
    
         
            -
            export default {
         
     | 
| 
       8 
     | 
    
         
            -
                title: "Utility components/FormControl/tests",
         
     | 
| 
       9 
     | 
    
         
            -
                component: FormControl,
         
     | 
| 
       10 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       11 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       12 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/utilities/form-control",
         
     | 
| 
       13 
     | 
    
         
            -
                    },
         
     | 
| 
       14 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       15 
     | 
    
         
            -
                },
         
     | 
| 
       16 
     | 
    
         
            -
            };
         
     | 
| 
       17 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       18 
     | 
    
         
            -
                name: "id",
         
     | 
| 
       19 
     | 
    
         
            -
                render: () => (<FormControl id="test-id" hasError>
         
     | 
| 
       20 
     | 
    
         
            -
            			<FormControl.Label>Label</FormControl.Label>
         
     | 
| 
       21 
     | 
    
         
            -
            			<TextField name="name"/>
         
     | 
| 
       22 
     | 
    
         
            -
            			<FormControl.Helper>Caption</FormControl.Helper>
         
     | 
| 
       23 
     | 
    
         
            -
            			<FormControl.Error>Error</FormControl.Error>
         
     | 
| 
       24 
     | 
    
         
            -
            		</FormControl>),
         
     | 
| 
       25 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       26 
     | 
    
         
            -
                    const input = canvas.getByRole("textbox");
         
     | 
| 
       27 
     | 
    
         
            -
                    const label = canvas.getByText("Label");
         
     | 
| 
       28 
     | 
    
         
            -
                    expect(input).toHaveAttribute("id", "test-id");
         
     | 
| 
       29 
     | 
    
         
            -
                    expect(input).toHaveAttribute("aria-describedby", `test-id-caption test-id-error`);
         
     | 
| 
       30 
     | 
    
         
            -
                    expect(label).toHaveAttribute("for", "test-id");
         
     | 
| 
       31 
     | 
    
         
            -
                    expect(label).toHaveAttribute("id", `test-id-label`);
         
     | 
| 
       32 
     | 
    
         
            -
                },
         
     | 
| 
       33 
     | 
    
         
            -
            };
         
     | 
| 
       34 
     | 
    
         
            -
            export const group = {
         
     | 
| 
       35 
     | 
    
         
            -
                name: "group",
         
     | 
| 
       36 
     | 
    
         
            -
                render: () => (<FormControl group>
         
     | 
| 
       37 
     | 
    
         
            -
            			<FormControl.Label>Label</FormControl.Label>
         
     | 
| 
       38 
     | 
    
         
            -
            			<RadioGroup name="name">
         
     | 
| 
       39 
     | 
    
         
            -
            				<View gap={2}>
         
     | 
| 
       40 
     | 
    
         
            -
            					<Radio value="1">One</Radio>
         
     | 
| 
       41 
     | 
    
         
            -
            					<Radio value="2">Two</Radio>
         
     | 
| 
       42 
     | 
    
         
            -
            				</View>
         
     | 
| 
       43 
     | 
    
         
            -
            			</RadioGroup>
         
     | 
| 
       44 
     | 
    
         
            -
            		</FormControl>),
         
     | 
| 
       45 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       46 
     | 
    
         
            -
                    const group = canvas.getByRole("group");
         
     | 
| 
       47 
     | 
    
         
            -
                    expect(group).toBeInTheDocument();
         
     | 
| 
       48 
     | 
    
         
            -
                },
         
     | 
| 
       49 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,15 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       3 
     | 
    
         
            -
                title: string;
         
     | 
| 
       4 
     | 
    
         
            -
                component: import("react").FC<import("./..").HiddenProps>;
         
     | 
| 
       5 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       6 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       7 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       8 
     | 
    
         
            -
                    };
         
     | 
| 
       9 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       10 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       11 
     | 
    
         
            -
                    };
         
     | 
| 
       12 
     | 
    
         
            -
                };
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       15 
     | 
    
         
            -
            export declare const as: StoryObj;
         
     | 
| 
         @@ -1,20 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Hidden from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            export default {
         
     | 
| 
       4 
     | 
    
         
            -
                title: "Utility components/Hidden/tests",
         
     | 
| 
       5 
     | 
    
         
            -
                component: Hidden,
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/utilities/hidden",
         
     | 
| 
       9 
     | 
    
         
            -
                    },
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       11 
     | 
    
         
            -
                },
         
     | 
| 
       12 
     | 
    
         
            -
            };
         
     | 
| 
       13 
     | 
    
         
            -
            export const as = {
         
     | 
| 
       14 
     | 
    
         
            -
                name: "as",
         
     | 
| 
       15 
     | 
    
         
            -
                render: () => <Hidden as="span">Content</Hidden>,
         
     | 
| 
       16 
     | 
    
         
            -
                play: ({ canvas }) => {
         
     | 
| 
       17 
     | 
    
         
            -
                    const el = canvas.getByText("Content");
         
     | 
| 
       18 
     | 
    
         
            -
                    expect(el.tagName).toEqual("SPAN");
         
     | 
| 
       19 
     | 
    
         
            -
                },
         
     | 
| 
       20 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,15 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       3 
     | 
    
         
            -
                title: string;
         
     | 
| 
       4 
     | 
    
         
            -
                component: import("react").FC<import("./..").HiddenVisuallyProps>;
         
     | 
| 
       5 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       6 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       7 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       8 
     | 
    
         
            -
                    };
         
     | 
| 
       9 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       10 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       11 
     | 
    
         
            -
                    };
         
     | 
| 
       12 
     | 
    
         
            -
                };
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       15 
     | 
    
         
            -
            export declare const children: StoryObj;
         
     | 
| 
         @@ -1,20 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import HiddenVisually from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            export default {
         
     | 
| 
       4 
     | 
    
         
            -
                title: "Utility components/HiddenVisually/tests",
         
     | 
| 
       5 
     | 
    
         
            -
                component: HiddenVisually,
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/utilities/hidden-visually",
         
     | 
| 
       9 
     | 
    
         
            -
                    },
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       11 
     | 
    
         
            -
                },
         
     | 
| 
       12 
     | 
    
         
            -
            };
         
     | 
| 
       13 
     | 
    
         
            -
            export const children = {
         
     | 
| 
       14 
     | 
    
         
            -
                name: "children",
         
     | 
| 
       15 
     | 
    
         
            -
                render: () => <HiddenVisually>Content</HiddenVisually>,
         
     | 
| 
       16 
     | 
    
         
            -
                play: ({ canvas }) => {
         
     | 
| 
       17 
     | 
    
         
            -
                    const el = canvas.getByText("Content");
         
     | 
| 
       18 
     | 
    
         
            -
                    expect(el).toBeInTheDocument();
         
     | 
| 
       19 
     | 
    
         
            -
                },
         
     | 
| 
       20 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,15 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       3 
     | 
    
         
            -
                title: string;
         
     | 
| 
       4 
     | 
    
         
            -
                component: import("react").FC<import("..").HotkeyProps>;
         
     | 
| 
       5 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       6 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       7 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       8 
     | 
    
         
            -
                    };
         
     | 
| 
       9 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       10 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       11 
     | 
    
         
            -
                    };
         
     | 
| 
       12 
     | 
    
         
            -
                };
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       15 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     |