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,15 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       3 
     | 
    
         
            -
                title: string;
         
     | 
| 
       4 
     | 
    
         
            -
                component: import("react").FC<import("./..").AlertProps>;
         
     | 
| 
       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 Alert from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            import { Placeholder } from "../../../utilities/storybook/index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            export default {
         
     | 
| 
       5 
     | 
    
         
            -
                title: "Components/Alert/tests",
         
     | 
| 
       6 
     | 
    
         
            -
                component: Alert,
         
     | 
| 
       7 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       8 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       9 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/alert",
         
     | 
| 
       10 
     | 
    
         
            -
                    },
         
     | 
| 
       11 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       12 
     | 
    
         
            -
                },
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       15 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       16 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       17 
     | 
    
         
            -
            			<Alert className="test-classname" attributes={{ id: "test-id" }}>
         
     | 
| 
       18 
     | 
    
         
            -
            				<Placeholder />
         
     | 
| 
       19 
     | 
    
         
            -
            			</Alert>
         
     | 
| 
       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,20 +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("../Badge.types").Export;
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       9 
     | 
    
         
            -
                    };
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       11 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       12 
     | 
    
         
            -
                    };
         
     | 
| 
       13 
     | 
    
         
            -
                };
         
     | 
| 
       14 
     | 
    
         
            -
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       16 
     | 
    
         
            -
            export declare const href: StoryObj;
         
     | 
| 
       17 
     | 
    
         
            -
            export declare const onClick: StoryObj<{
         
     | 
| 
       18 
     | 
    
         
            -
                handleClick: ReturnType<typeof fn>;
         
     | 
| 
       19 
     | 
    
         
            -
            }>;
         
     | 
| 
       20 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,46 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect, fn, userEvent } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Badge from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            export default {
         
     | 
| 
       4 
     | 
    
         
            -
                title: "Components/Badge/tests",
         
     | 
| 
       5 
     | 
    
         
            -
                component: Badge,
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/badge",
         
     | 
| 
       9 
     | 
    
         
            -
                    },
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       11 
     | 
    
         
            -
                },
         
     | 
| 
       12 
     | 
    
         
            -
            };
         
     | 
| 
       13 
     | 
    
         
            -
            export const href = {
         
     | 
| 
       14 
     | 
    
         
            -
                name: "href",
         
     | 
| 
       15 
     | 
    
         
            -
                render: () => (<Badge href="https://reshaped.so" dismissAriaLabel="Dismiss">
         
     | 
| 
       16 
     | 
    
         
            -
            			Badge
         
     | 
| 
       17 
     | 
    
         
            -
            		</Badge>),
         
     | 
| 
       18 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       19 
     | 
    
         
            -
                    const link = canvas.getByRole("link");
         
     | 
| 
       20 
     | 
    
         
            -
                    expect(link).toHaveAttribute("href", "https://reshaped.so");
         
     | 
| 
       21 
     | 
    
         
            -
                },
         
     | 
| 
       22 
     | 
    
         
            -
            };
         
     | 
| 
       23 
     | 
    
         
            -
            export const onClick = {
         
     | 
| 
       24 
     | 
    
         
            -
                name: "onClick",
         
     | 
| 
       25 
     | 
    
         
            -
                args: {
         
     | 
| 
       26 
     | 
    
         
            -
                    handleClick: fn(),
         
     | 
| 
       27 
     | 
    
         
            -
                },
         
     | 
| 
       28 
     | 
    
         
            -
                render: (args) => <Badge onClick={args.handleClick}>Badge</Badge>,
         
     | 
| 
       29 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       30 
     | 
    
         
            -
                    const button = canvas.getAllByRole("button")[0];
         
     | 
| 
       31 
     | 
    
         
            -
                    await userEvent.click(button);
         
     | 
| 
       32 
     | 
    
         
            -
                    expect(args.handleClick).toHaveBeenCalledTimes(1);
         
     | 
| 
       33 
     | 
    
         
            -
                    expect(args.handleClick).toHaveBeenCalledWith(expect.objectContaining({ target: button }));
         
     | 
| 
       34 
     | 
    
         
            -
                },
         
     | 
| 
       35 
     | 
    
         
            -
            };
         
     | 
| 
       36 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       37 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       38 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       39 
     | 
    
         
            -
            			<Badge color="primary" className="test-classname" attributes={{ id: "test-id" }}/>
         
     | 
| 
       40 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       41 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       42 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       43 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       44 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       45 
     | 
    
         
            -
                },
         
     | 
| 
       46 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,23 +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("./..").BreadcrumbsProps> & {
         
     | 
| 
       6 
     | 
    
         
            -
                    Item: import("react").FC<import("../Breadcrumbs.types").ItemProps>;
         
     | 
| 
       7 
     | 
    
         
            -
                };
         
     | 
| 
       8 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       9 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       10 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       11 
     | 
    
         
            -
                    };
         
     | 
| 
       12 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       13 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       14 
     | 
    
         
            -
                    };
         
     | 
| 
       15 
     | 
    
         
            -
                };
         
     | 
| 
       16 
     | 
    
         
            -
            };
         
     | 
| 
       17 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       18 
     | 
    
         
            -
            export declare const onClick: StoryObj<{
         
     | 
| 
       19 
     | 
    
         
            -
                handleClick: ReturnType<typeof fn>;
         
     | 
| 
       20 
     | 
    
         
            -
            }>;
         
     | 
| 
       21 
     | 
    
         
            -
            export declare const href: StoryObj;
         
     | 
| 
       22 
     | 
    
         
            -
            export declare const collapsible: StoryObj;
         
     | 
| 
       23 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,76 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { fn, expect, userEvent } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Breadcrumbs from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            export default {
         
     | 
| 
       4 
     | 
    
         
            -
                title: "Components/Breadcrumbs/tests",
         
     | 
| 
       5 
     | 
    
         
            -
                component: Breadcrumbs,
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/breadcrumbs",
         
     | 
| 
       9 
     | 
    
         
            -
                    },
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       11 
     | 
    
         
            -
                },
         
     | 
| 
       12 
     | 
    
         
            -
            };
         
     | 
| 
       13 
     | 
    
         
            -
            export const onClick = {
         
     | 
| 
       14 
     | 
    
         
            -
                name: "item, onClick, disabled",
         
     | 
| 
       15 
     | 
    
         
            -
                args: {
         
     | 
| 
       16 
     | 
    
         
            -
                    handleClick: fn(),
         
     | 
| 
       17 
     | 
    
         
            -
                },
         
     | 
| 
       18 
     | 
    
         
            -
                render: (args) => (<Breadcrumbs>
         
     | 
| 
       19 
     | 
    
         
            -
            			<Breadcrumbs.Item onClick={args.handleClick}>Trigger</Breadcrumbs.Item>
         
     | 
| 
       20 
     | 
    
         
            -
            			<Breadcrumbs.Item onClick={args.handleClick} disabled>
         
     | 
| 
       21 
     | 
    
         
            -
            				Trigger
         
     | 
| 
       22 
     | 
    
         
            -
            			</Breadcrumbs.Item>
         
     | 
| 
       23 
     | 
    
         
            -
            		</Breadcrumbs>),
         
     | 
| 
       24 
     | 
    
         
            -
                play: async ({ args, canvas }) => {
         
     | 
| 
       25 
     | 
    
         
            -
                    const trigggers = canvas.getAllByRole("button");
         
     | 
| 
       26 
     | 
    
         
            -
                    await userEvent.click(trigggers[0]);
         
     | 
| 
       27 
     | 
    
         
            -
                    expect(args.handleClick).toHaveBeenCalledTimes(1);
         
     | 
| 
       28 
     | 
    
         
            -
                    expect(args.handleClick).toHaveBeenCalledWith(expect.objectContaining({ target: trigggers[0] }));
         
     | 
| 
       29 
     | 
    
         
            -
                    await userEvent.click(trigggers[1]);
         
     | 
| 
       30 
     | 
    
         
            -
                    expect(args.handleClick).toHaveBeenCalledTimes(1);
         
     | 
| 
       31 
     | 
    
         
            -
                },
         
     | 
| 
       32 
     | 
    
         
            -
            };
         
     | 
| 
       33 
     | 
    
         
            -
            export const href = {
         
     | 
| 
       34 
     | 
    
         
            -
                name: "item, href",
         
     | 
| 
       35 
     | 
    
         
            -
                render: () => (<Breadcrumbs>
         
     | 
| 
       36 
     | 
    
         
            -
            			<Breadcrumbs.Item href="https://reshaped.so">Trigger</Breadcrumbs.Item>
         
     | 
| 
       37 
     | 
    
         
            -
            		</Breadcrumbs>),
         
     | 
| 
       38 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       39 
     | 
    
         
            -
                    const trigggers = canvas.getAllByRole("link");
         
     | 
| 
       40 
     | 
    
         
            -
                    expect(trigggers[0]).toHaveAttribute("href", "https://reshaped.so");
         
     | 
| 
       41 
     | 
    
         
            -
                },
         
     | 
| 
       42 
     | 
    
         
            -
            };
         
     | 
| 
       43 
     | 
    
         
            -
            export const collapsible = {
         
     | 
| 
       44 
     | 
    
         
            -
                name: "collapsible",
         
     | 
| 
       45 
     | 
    
         
            -
                render: () => (<Breadcrumbs defaultVisibleItems={2} expandAriaLabel="Expand">
         
     | 
| 
       46 
     | 
    
         
            -
            			<Breadcrumbs.Item onClick={() => { }}>Trigger 1</Breadcrumbs.Item>
         
     | 
| 
       47 
     | 
    
         
            -
            			<Breadcrumbs.Item onClick={() => { }}>Trigger 2</Breadcrumbs.Item>
         
     | 
| 
       48 
     | 
    
         
            -
            			<Breadcrumbs.Item onClick={() => { }}>Trigger 3</Breadcrumbs.Item>
         
     | 
| 
       49 
     | 
    
         
            -
            			<Breadcrumbs.Item onClick={() => { }}>Trigger 4</Breadcrumbs.Item>
         
     | 
| 
       50 
     | 
    
         
            -
            		</Breadcrumbs>),
         
     | 
| 
       51 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       52 
     | 
    
         
            -
                    let triggers = canvas.getAllByRole("button");
         
     | 
| 
       53 
     | 
    
         
            -
                    expect(triggers[0]).toHaveTextContent("Trigger 1");
         
     | 
| 
       54 
     | 
    
         
            -
                    expect(triggers[1]).toHaveAccessibleName("Expand");
         
     | 
| 
       55 
     | 
    
         
            -
                    expect(triggers[2]).toHaveTextContent("Trigger 4");
         
     | 
| 
       56 
     | 
    
         
            -
                    await userEvent.click(triggers[1]);
         
     | 
| 
       57 
     | 
    
         
            -
                    triggers = canvas.getAllByRole("button");
         
     | 
| 
       58 
     | 
    
         
            -
                    expect(triggers[0]).toHaveTextContent("Trigger 1");
         
     | 
| 
       59 
     | 
    
         
            -
                    expect(triggers[1]).toHaveTextContent("Trigger 2");
         
     | 
| 
       60 
     | 
    
         
            -
                    expect(triggers[2]).toHaveTextContent("Trigger 3");
         
     | 
| 
       61 
     | 
    
         
            -
                    expect(triggers[3]).toHaveTextContent("Trigger 4");
         
     | 
| 
       62 
     | 
    
         
            -
                },
         
     | 
| 
       63 
     | 
    
         
            -
            };
         
     | 
| 
       64 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       65 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       66 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       67 
     | 
    
         
            -
            			<Breadcrumbs className="test-classname" attributes={{ id: "test-id" }}>
         
     | 
| 
       68 
     | 
    
         
            -
            				<Breadcrumbs.Item>Trigger</Breadcrumbs.Item>
         
     | 
| 
       69 
     | 
    
         
            -
            			</Breadcrumbs>
         
     | 
| 
       70 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       71 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       72 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       73 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       74 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       75 
     | 
    
         
            -
                },
         
     | 
| 
       76 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,27 +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("../Button.types").Export;
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       9 
     | 
    
         
            -
                    };
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       11 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       12 
     | 
    
         
            -
                    };
         
     | 
| 
       13 
     | 
    
         
            -
                };
         
     | 
| 
       14 
     | 
    
         
            -
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       16 
     | 
    
         
            -
            export declare const children: StoryObj;
         
     | 
| 
       17 
     | 
    
         
            -
            export declare const href: StoryObj;
         
     | 
| 
       18 
     | 
    
         
            -
            export declare const onClick: StoryObj<{
         
     | 
| 
       19 
     | 
    
         
            -
                handleClick: ReturnType<typeof fn>;
         
     | 
| 
       20 
     | 
    
         
            -
            }>;
         
     | 
| 
       21 
     | 
    
         
            -
            export declare const hrefOnClick: StoryObj<{
         
     | 
| 
       22 
     | 
    
         
            -
                handleClick: ReturnType<typeof fn>;
         
     | 
| 
       23 
     | 
    
         
            -
            }>;
         
     | 
| 
       24 
     | 
    
         
            -
            export declare const disabled: StoryObj;
         
     | 
| 
       25 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
       26 
     | 
    
         
            -
            export declare const group: StoryObj;
         
     | 
| 
       27 
     | 
    
         
            -
            export declare const groupClassName: StoryObj;
         
     | 
| 
         @@ -1,112 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { userEvent, expect, fn } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Button from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            export default {
         
     | 
| 
       4 
     | 
    
         
            -
                title: "Components/Button/tests",
         
     | 
| 
       5 
     | 
    
         
            -
                component: Button,
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/button",
         
     | 
| 
       9 
     | 
    
         
            -
                    },
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       11 
     | 
    
         
            -
                },
         
     | 
| 
       12 
     | 
    
         
            -
            };
         
     | 
| 
       13 
     | 
    
         
            -
            export const children = {
         
     | 
| 
       14 
     | 
    
         
            -
                name: "children",
         
     | 
| 
       15 
     | 
    
         
            -
                render: () => <Button>Trigger</Button>,
         
     | 
| 
       16 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       17 
     | 
    
         
            -
                    const el = canvas.getByText("Trigger");
         
     | 
| 
       18 
     | 
    
         
            -
                    expect(el).toBeInTheDocument();
         
     | 
| 
       19 
     | 
    
         
            -
                    expect(el.tagName).toBe("SPAN");
         
     | 
| 
       20 
     | 
    
         
            -
                },
         
     | 
| 
       21 
     | 
    
         
            -
            };
         
     | 
| 
       22 
     | 
    
         
            -
            export const href = {
         
     | 
| 
       23 
     | 
    
         
            -
                name: "href",
         
     | 
| 
       24 
     | 
    
         
            -
                render: () => <Button href="https://reshaped.so">Trigger</Button>,
         
     | 
| 
       25 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       26 
     | 
    
         
            -
                    const el = canvas.getByRole("link");
         
     | 
| 
       27 
     | 
    
         
            -
                    expect(el).toHaveAttribute("href", "https://reshaped.so");
         
     | 
| 
       28 
     | 
    
         
            -
                },
         
     | 
| 
       29 
     | 
    
         
            -
            };
         
     | 
| 
       30 
     | 
    
         
            -
            export const onClick = {
         
     | 
| 
       31 
     | 
    
         
            -
                name: "onClick",
         
     | 
| 
       32 
     | 
    
         
            -
                args: {
         
     | 
| 
       33 
     | 
    
         
            -
                    handleClick: fn(),
         
     | 
| 
       34 
     | 
    
         
            -
                },
         
     | 
| 
       35 
     | 
    
         
            -
                render: (args) => <Button onClick={args.handleClick}>Trigger</Button>,
         
     | 
| 
       36 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       37 
     | 
    
         
            -
                    const { handleClick } = args;
         
     | 
| 
       38 
     | 
    
         
            -
                    const el = canvas.getAllByRole("button")[0];
         
     | 
| 
       39 
     | 
    
         
            -
                    await userEvent.click(el);
         
     | 
| 
       40 
     | 
    
         
            -
                    expect(el).toHaveAttribute("type", "button");
         
     | 
| 
       41 
     | 
    
         
            -
                    expect(handleClick).toHaveBeenCalledTimes(1);
         
     | 
| 
       42 
     | 
    
         
            -
                    expect(handleClick).toHaveBeenCalledWith(expect.objectContaining({ target: el }));
         
     | 
| 
       43 
     | 
    
         
            -
                },
         
     | 
| 
       44 
     | 
    
         
            -
            };
         
     | 
| 
       45 
     | 
    
         
            -
            export const hrefOnClick = {
         
     | 
| 
       46 
     | 
    
         
            -
                name: "href + onClick",
         
     | 
| 
       47 
     | 
    
         
            -
                args: {
         
     | 
| 
       48 
     | 
    
         
            -
                    handleClick: fn(),
         
     | 
| 
       49 
     | 
    
         
            -
                },
         
     | 
| 
       50 
     | 
    
         
            -
                render: (args) => (<Button onClick={(e) => {
         
     | 
| 
       51 
     | 
    
         
            -
                        e.preventDefault();
         
     | 
| 
       52 
     | 
    
         
            -
                        args.handleClick(e);
         
     | 
| 
       53 
     | 
    
         
            -
                    }} href="https://reshaped.so">
         
     | 
| 
       54 
     | 
    
         
            -
            			Trigger
         
     | 
| 
       55 
     | 
    
         
            -
            		</Button>),
         
     | 
| 
       56 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       57 
     | 
    
         
            -
                    const { handleClick } = args;
         
     | 
| 
       58 
     | 
    
         
            -
                    const el = canvas.getByRole("link");
         
     | 
| 
       59 
     | 
    
         
            -
                    await userEvent.click(el);
         
     | 
| 
       60 
     | 
    
         
            -
                    expect(el).toHaveAttribute("href", "https://reshaped.so");
         
     | 
| 
       61 
     | 
    
         
            -
                    expect(handleClick).toHaveBeenCalledTimes(1);
         
     | 
| 
       62 
     | 
    
         
            -
                    expect(handleClick).toHaveBeenCalledWith(expect.objectContaining({ target: el }));
         
     | 
| 
       63 
     | 
    
         
            -
                },
         
     | 
| 
       64 
     | 
    
         
            -
            };
         
     | 
| 
       65 
     | 
    
         
            -
            export const disabled = {
         
     | 
| 
       66 
     | 
    
         
            -
                name: "disabled",
         
     | 
| 
       67 
     | 
    
         
            -
                render: () => (<Button disabled onClick={() => { }}>
         
     | 
| 
       68 
     | 
    
         
            -
            			Trigger
         
     | 
| 
       69 
     | 
    
         
            -
            		</Button>),
         
     | 
| 
       70 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       71 
     | 
    
         
            -
                    const el = canvas.getAllByRole("button")[0];
         
     | 
| 
       72 
     | 
    
         
            -
                    expect(el).toBeDisabled();
         
     | 
| 
       73 
     | 
    
         
            -
                },
         
     | 
| 
       74 
     | 
    
         
            -
            };
         
     | 
| 
       75 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       76 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       77 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       78 
     | 
    
         
            -
            			<Button className="test-classname" attributes={{ id: "test-id" }}>
         
     | 
| 
       79 
     | 
    
         
            -
            				Trigger
         
     | 
| 
       80 
     | 
    
         
            -
            			</Button>
         
     | 
| 
       81 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       82 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       83 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       84 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       85 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       86 
     | 
    
         
            -
                },
         
     | 
| 
       87 
     | 
    
         
            -
            };
         
     | 
| 
       88 
     | 
    
         
            -
            export const group = {
         
     | 
| 
       89 
     | 
    
         
            -
                name: "group",
         
     | 
| 
       90 
     | 
    
         
            -
                render: () => (<Button.Group>
         
     | 
| 
       91 
     | 
    
         
            -
            			<Button>Trigger</Button>
         
     | 
| 
       92 
     | 
    
         
            -
            			<Button>Trigger</Button>
         
     | 
| 
       93 
     | 
    
         
            -
            		</Button.Group>),
         
     | 
| 
       94 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       95 
     | 
    
         
            -
                    const el = canvas.getByRole("group");
         
     | 
| 
       96 
     | 
    
         
            -
                    expect(el).toBeInTheDocument();
         
     | 
| 
       97 
     | 
    
         
            -
                    expect(el.childElementCount).toEqual(2);
         
     | 
| 
       98 
     | 
    
         
            -
                },
         
     | 
| 
       99 
     | 
    
         
            -
            };
         
     | 
| 
       100 
     | 
    
         
            -
            export const groupClassName = {
         
     | 
| 
       101 
     | 
    
         
            -
                name: "group className, attributes",
         
     | 
| 
       102 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       103 
     | 
    
         
            -
            			<Button.Group className="test-classname" attributes={{ id: "test-id" }}>
         
     | 
| 
       104 
     | 
    
         
            -
            				<Button>Trigger</Button>
         
     | 
| 
       105 
     | 
    
         
            -
            			</Button.Group>
         
     | 
| 
       106 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       107 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       108 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       109 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       110 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       111 
     | 
    
         
            -
                },
         
     | 
| 
       112 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,35 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import React from "react";
         
     | 
| 
       2 
     | 
    
         
            -
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       3 
     | 
    
         
            -
            import { fn } from "storybook/test";
         
     | 
| 
       4 
     | 
    
         
            -
            declare const _default: {
         
     | 
| 
       5 
     | 
    
         
            -
                title: string;
         
     | 
| 
       6 
     | 
    
         
            -
                component: React.ForwardRefExoticComponent<{
         
     | 
| 
       7 
     | 
    
         
            -
                    padding?: import("../../../types/global").Responsive<number>;
         
     | 
| 
       8 
     | 
    
         
            -
                    bleed?: import("../../../types/global").Responsive<number>;
         
     | 
| 
       9 
     | 
    
         
            -
                    selected?: boolean;
         
     | 
| 
       10 
     | 
    
         
            -
                    elevated?: boolean;
         
     | 
| 
       11 
     | 
    
         
            -
                    children?: React.ReactNode;
         
     | 
| 
       12 
     | 
    
         
            -
                    onClick?: import("../../Actionable").ActionableProps["onClick"];
         
     | 
| 
       13 
     | 
    
         
            -
                    href?: string;
         
     | 
| 
       14 
     | 
    
         
            -
                    as?: keyof React.JSX.IntrinsicElements | undefined;
         
     | 
| 
       15 
     | 
    
         
            -
                    className?: import("../../../types/global").ClassName;
         
     | 
| 
       16 
     | 
    
         
            -
                    attributes?: (import("../../../types/global").Attributes<keyof React.JSX.IntrinsicElements> & ((import("../../../types/global").Attributes<"button"> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "children" | "ref" | "style" | "form" | "slot" | "title" | "disabled" | "key" | "value" | "hidden" | "color" | "content" | "className" | "aria-orientation" | "role" | "suppressHydrationWarning" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dir" | "name" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "onToggle" | "type" | "id" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture"> & {
         
     | 
| 
       17 
     | 
    
         
            -
                        ref?: React.RefObject<HTMLButtonElement | HTMLAnchorElement | null>;
         
     | 
| 
       18 
     | 
    
         
            -
                    }) | undefined)) | undefined;
         
     | 
| 
       19 
     | 
    
         
            -
                } & Pick<import("../../View").ViewProps, "height"> & React.RefAttributes<HTMLElement>>;
         
     | 
| 
       20 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       21 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       22 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       23 
     | 
    
         
            -
                    };
         
     | 
| 
       24 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       25 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       26 
     | 
    
         
            -
                    };
         
     | 
| 
       27 
     | 
    
         
            -
                };
         
     | 
| 
       28 
     | 
    
         
            -
            };
         
     | 
| 
       29 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       30 
     | 
    
         
            -
            export declare const onClick: StoryObj<{
         
     | 
| 
       31 
     | 
    
         
            -
                handleClick: ReturnType<typeof fn>;
         
     | 
| 
       32 
     | 
    
         
            -
            }>;
         
     | 
| 
       33 
     | 
    
         
            -
            export declare const href: StoryObj;
         
     | 
| 
       34 
     | 
    
         
            -
            export declare const as: StoryObj;
         
     | 
| 
       35 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,54 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import React from "react";
         
     | 
| 
       2 
     | 
    
         
            -
            import { expect, fn, userEvent } from "storybook/test";
         
     | 
| 
       3 
     | 
    
         
            -
            import Card from "../index.js";
         
     | 
| 
       4 
     | 
    
         
            -
            export default {
         
     | 
| 
       5 
     | 
    
         
            -
                title: "Components/Card/tests",
         
     | 
| 
       6 
     | 
    
         
            -
                component: Card,
         
     | 
| 
       7 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       8 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       9 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/card",
         
     | 
| 
       10 
     | 
    
         
            -
                    },
         
     | 
| 
       11 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       12 
     | 
    
         
            -
                },
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export const onClick = {
         
     | 
| 
       15 
     | 
    
         
            -
                name: "onClick",
         
     | 
| 
       16 
     | 
    
         
            -
                args: {
         
     | 
| 
       17 
     | 
    
         
            -
                    handleClick: fn(),
         
     | 
| 
       18 
     | 
    
         
            -
                },
         
     | 
| 
       19 
     | 
    
         
            -
                render: (args) => <Card onClick={args.handleClick}>Trigger</Card>,
         
     | 
| 
       20 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       21 
     | 
    
         
            -
                    const { handleClick } = args;
         
     | 
| 
       22 
     | 
    
         
            -
                    const el = canvas.getAllByRole("button")[0];
         
     | 
| 
       23 
     | 
    
         
            -
                    await userEvent.click(el);
         
     | 
| 
       24 
     | 
    
         
            -
                    expect(handleClick).toHaveBeenCalledTimes(1);
         
     | 
| 
       25 
     | 
    
         
            -
                    expect(handleClick).toHaveBeenCalledWith(expect.objectContaining({ target: el }));
         
     | 
| 
       26 
     | 
    
         
            -
                },
         
     | 
| 
       27 
     | 
    
         
            -
            };
         
     | 
| 
       28 
     | 
    
         
            -
            export const href = {
         
     | 
| 
       29 
     | 
    
         
            -
                name: "href",
         
     | 
| 
       30 
     | 
    
         
            -
                render: () => <Card href="https://reshaped.so">Trigger</Card>,
         
     | 
| 
       31 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       32 
     | 
    
         
            -
                    const el = canvas.getByRole("link");
         
     | 
| 
       33 
     | 
    
         
            -
                    expect(el).toHaveAttribute("href", "https://reshaped.so");
         
     | 
| 
       34 
     | 
    
         
            -
                },
         
     | 
| 
       35 
     | 
    
         
            -
            };
         
     | 
| 
       36 
     | 
    
         
            -
            export const as = {
         
     | 
| 
       37 
     | 
    
         
            -
                name: "as",
         
     | 
| 
       38 
     | 
    
         
            -
                render: () => <Card as="span" attributes={{ "data-testid": "root" }}/>,
         
     | 
| 
       39 
     | 
    
         
            -
                play: ({ canvas }) => {
         
     | 
| 
       40 
     | 
    
         
            -
                    const root = canvas.getByTestId("root");
         
     | 
| 
       41 
     | 
    
         
            -
                    expect(root.tagName).toBe("SPAN");
         
     | 
| 
       42 
     | 
    
         
            -
                },
         
     | 
| 
       43 
     | 
    
         
            -
            };
         
     | 
| 
       44 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       45 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       46 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       47 
     | 
    
         
            -
            			<Card className="test-classname" attributes={{ id: "test-id" }}/>
         
     | 
| 
       48 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       49 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       50 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       51 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       52 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       53 
     | 
    
         
            -
                },
         
     | 
| 
       54 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -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("./..").CheckboxProps>;
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       9 
     | 
    
         
            -
                    };
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       11 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       12 
     | 
    
         
            -
                    };
         
     | 
| 
       13 
     | 
    
         
            -
                };
         
     | 
| 
       14 
     | 
    
         
            -
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       16 
     | 
    
         
            -
            export declare const render: StoryObj;
         
     | 
| 
       17 
     | 
    
         
            -
            export declare const checked: StoryObj<{
         
     | 
| 
       18 
     | 
    
         
            -
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
       19 
     | 
    
         
            -
            }>;
         
     | 
| 
       20 
     | 
    
         
            -
            export declare const defaultChecked: StoryObj<{
         
     | 
| 
       21 
     | 
    
         
            -
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
       22 
     | 
    
         
            -
            }>;
         
     | 
| 
       23 
     | 
    
         
            -
            export declare const disabled: StoryObj;
         
     | 
| 
       24 
     | 
    
         
            -
            export declare const indeterminate: StoryObj;
         
     | 
| 
       25 
     | 
    
         
            -
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,104 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect, userEvent, fn } from "storybook/test";
         
     | 
| 
       2 
     | 
    
         
            -
            import Checkbox from "../index.js";
         
     | 
| 
       3 
     | 
    
         
            -
            export default {
         
     | 
| 
       4 
     | 
    
         
            -
                title: "Components/Checkbox/tests",
         
     | 
| 
       5 
     | 
    
         
            -
                component: Checkbox,
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: "https://reshaped.so/docs/components/checkbox",
         
     | 
| 
       9 
     | 
    
         
            -
                    },
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: { disableSnapshot: true },
         
     | 
| 
       11 
     | 
    
         
            -
                },
         
     | 
| 
       12 
     | 
    
         
            -
            };
         
     | 
| 
       13 
     | 
    
         
            -
            export const render = {
         
     | 
| 
       14 
     | 
    
         
            -
                name: "name, value",
         
     | 
| 
       15 
     | 
    
         
            -
                render: () => (<Checkbox name="test-name" value="test-value">
         
     | 
| 
       16 
     | 
    
         
            -
            			Content
         
     | 
| 
       17 
     | 
    
         
            -
            		</Checkbox>),
         
     | 
| 
       18 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       19 
     | 
    
         
            -
                    const input = canvas.getByRole("checkbox");
         
     | 
| 
       20 
     | 
    
         
            -
                    expect(input).toHaveAttribute("value", "test-value");
         
     | 
| 
       21 
     | 
    
         
            -
                    expect(input).toHaveAttribute("name", "test-name");
         
     | 
| 
       22 
     | 
    
         
            -
                    expect(input).not.toBeChecked();
         
     | 
| 
       23 
     | 
    
         
            -
                },
         
     | 
| 
       24 
     | 
    
         
            -
            };
         
     | 
| 
       25 
     | 
    
         
            -
            export const checked = {
         
     | 
| 
       26 
     | 
    
         
            -
                name: "checked, controlled",
         
     | 
| 
       27 
     | 
    
         
            -
                args: {
         
     | 
| 
       28 
     | 
    
         
            -
                    handleChange: fn(),
         
     | 
| 
       29 
     | 
    
         
            -
                },
         
     | 
| 
       30 
     | 
    
         
            -
                render: (args) => (<Checkbox name="test-name" value="test-value" checked onChange={args.handleChange}>
         
     | 
| 
       31 
     | 
    
         
            -
            			Content
         
     | 
| 
       32 
     | 
    
         
            -
            		</Checkbox>),
         
     | 
| 
       33 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       34 
     | 
    
         
            -
                    const input = canvas.getByRole("checkbox");
         
     | 
| 
       35 
     | 
    
         
            -
                    expect(input).toBeChecked();
         
     | 
| 
       36 
     | 
    
         
            -
                    await userEvent.click(input);
         
     | 
| 
       37 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledTimes(1);
         
     | 
| 
       38 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledWith({
         
     | 
| 
       39 
     | 
    
         
            -
                        name: "test-name",
         
     | 
| 
       40 
     | 
    
         
            -
                        value: "test-value",
         
     | 
| 
       41 
     | 
    
         
            -
                        checked: false,
         
     | 
| 
       42 
     | 
    
         
            -
                        event: expect.objectContaining({ target: input }),
         
     | 
| 
       43 
     | 
    
         
            -
                    });
         
     | 
| 
       44 
     | 
    
         
            -
                    // Still checked because it's controlled
         
     | 
| 
       45 
     | 
    
         
            -
                    expect(input).toBeChecked();
         
     | 
| 
       46 
     | 
    
         
            -
                },
         
     | 
| 
       47 
     | 
    
         
            -
            };
         
     | 
| 
       48 
     | 
    
         
            -
            export const defaultChecked = {
         
     | 
| 
       49 
     | 
    
         
            -
                name: "defaultChecked, uncontrolled",
         
     | 
| 
       50 
     | 
    
         
            -
                args: {
         
     | 
| 
       51 
     | 
    
         
            -
                    handleChange: fn(),
         
     | 
| 
       52 
     | 
    
         
            -
                },
         
     | 
| 
       53 
     | 
    
         
            -
                render: (args) => (<Checkbox name="test-name" value="test-value" defaultChecked onChange={args.handleChange}>
         
     | 
| 
       54 
     | 
    
         
            -
            			Content
         
     | 
| 
       55 
     | 
    
         
            -
            		</Checkbox>),
         
     | 
| 
       56 
     | 
    
         
            -
                play: async ({ canvas, args }) => {
         
     | 
| 
       57 
     | 
    
         
            -
                    const input = canvas.getByRole("checkbox");
         
     | 
| 
       58 
     | 
    
         
            -
                    expect(input).toBeChecked();
         
     | 
| 
       59 
     | 
    
         
            -
                    await userEvent.click(input);
         
     | 
| 
       60 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledTimes(1);
         
     | 
| 
       61 
     | 
    
         
            -
                    expect(args.handleChange).toHaveBeenCalledWith({
         
     | 
| 
       62 
     | 
    
         
            -
                        name: "test-name",
         
     | 
| 
       63 
     | 
    
         
            -
                        value: "test-value",
         
     | 
| 
       64 
     | 
    
         
            -
                        checked: false,
         
     | 
| 
       65 
     | 
    
         
            -
                        event: expect.objectContaining({ target: input }),
         
     | 
| 
       66 
     | 
    
         
            -
                    });
         
     | 
| 
       67 
     | 
    
         
            -
                    expect(input).not.toBeChecked();
         
     | 
| 
       68 
     | 
    
         
            -
                },
         
     | 
| 
       69 
     | 
    
         
            -
            };
         
     | 
| 
       70 
     | 
    
         
            -
            export const disabled = {
         
     | 
| 
       71 
     | 
    
         
            -
                name: "disabled",
         
     | 
| 
       72 
     | 
    
         
            -
                render: () => (<Checkbox name="test-name" value="test-value" disabled>
         
     | 
| 
       73 
     | 
    
         
            -
            			Content
         
     | 
| 
       74 
     | 
    
         
            -
            		</Checkbox>),
         
     | 
| 
       75 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       76 
     | 
    
         
            -
                    const input = canvas.getByRole("checkbox");
         
     | 
| 
       77 
     | 
    
         
            -
                    expect(input).toBeDisabled();
         
     | 
| 
       78 
     | 
    
         
            -
                },
         
     | 
| 
       79 
     | 
    
         
            -
            };
         
     | 
| 
       80 
     | 
    
         
            -
            export const indeterminate = {
         
     | 
| 
       81 
     | 
    
         
            -
                name: "indeterminate",
         
     | 
| 
       82 
     | 
    
         
            -
                render: () => (<Checkbox name="test-name" value="test-value" indeterminate>
         
     | 
| 
       83 
     | 
    
         
            -
            			Content
         
     | 
| 
       84 
     | 
    
         
            -
            		</Checkbox>),
         
     | 
| 
       85 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       86 
     | 
    
         
            -
                    const input = canvas.getByRole("checkbox");
         
     | 
| 
       87 
     | 
    
         
            -
                    expect(input.indeterminate).toBeTruthy();
         
     | 
| 
       88 
     | 
    
         
            -
                    await userEvent.click(input);
         
     | 
| 
       89 
     | 
    
         
            -
                    expect(input.indeterminate).toBeFalsy();
         
     | 
| 
       90 
     | 
    
         
            -
                },
         
     | 
| 
       91 
     | 
    
         
            -
            };
         
     | 
| 
       92 
     | 
    
         
            -
            export const className = {
         
     | 
| 
       93 
     | 
    
         
            -
                name: "className, attributes",
         
     | 
| 
       94 
     | 
    
         
            -
                render: () => (<div data-testid="root">
         
     | 
| 
       95 
     | 
    
         
            -
            			<Checkbox className="test-classname" attributes={{ id: "test-id" }}>
         
     | 
| 
       96 
     | 
    
         
            -
            				Content
         
     | 
| 
       97 
     | 
    
         
            -
            			</Checkbox>
         
     | 
| 
       98 
     | 
    
         
            -
            		</div>),
         
     | 
| 
       99 
     | 
    
         
            -
                play: async ({ canvas }) => {
         
     | 
| 
       100 
     | 
    
         
            -
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
       101 
     | 
    
         
            -
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
       102 
     | 
    
         
            -
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
       103 
     | 
    
         
            -
                },
         
     | 
| 
       104 
     | 
    
         
            -
            };
         
     | 
| 
         @@ -1,22 +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("./..").CheckboxGroupProps>;
         
     | 
| 
       6 
     | 
    
         
            -
                parameters: {
         
     | 
| 
       7 
     | 
    
         
            -
                    iframe: {
         
     | 
| 
       8 
     | 
    
         
            -
                        url: string;
         
     | 
| 
       9 
     | 
    
         
            -
                    };
         
     | 
| 
       10 
     | 
    
         
            -
                    chromatic: {
         
     | 
| 
       11 
     | 
    
         
            -
                        disableSnapshot: boolean;
         
     | 
| 
       12 
     | 
    
         
            -
                    };
         
     | 
| 
       13 
     | 
    
         
            -
                };
         
     | 
| 
       14 
     | 
    
         
            -
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export default _default;
         
     | 
| 
       16 
     | 
    
         
            -
            export declare const value: StoryObj<{
         
     | 
| 
       17 
     | 
    
         
            -
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
       18 
     | 
    
         
            -
            }>;
         
     | 
| 
       19 
     | 
    
         
            -
            export declare const defaultValue: StoryObj<{
         
     | 
| 
       20 
     | 
    
         
            -
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
       21 
     | 
    
         
            -
            }>;
         
     | 
| 
       22 
     | 
    
         
            -
            export declare const disabled: StoryObj;
         
     |