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,8 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { userEvent } from "storybook/test";
         
     | 
| 
      
 1 
     | 
    
         
            +
            import { expect, fn, userEvent, waitFor, within } from "storybook/test";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { Example } from "../../../utilities/storybook/index.js";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import Overlay from "../index.js";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import Button from "../../Button/index.js";
         
     | 
| 
       5 
5 
     | 
    
         
             
            import useToggle from "../../../hooks/useToggle.js";
         
     | 
| 
      
 6 
     | 
    
         
            +
            import React from "react";
         
     | 
| 
      
 7 
     | 
    
         
            +
            import { sleep } from "../../../utilities/helpers.js";
         
     | 
| 
       6 
8 
     | 
    
         
             
            export default {
         
     | 
| 
       7 
9 
     | 
    
         
             
                title: "Utility components/Overlay",
         
     | 
| 
       8 
10 
     | 
    
         
             
                component: Overlay,
         
     | 
| 
         @@ -66,3 +68,135 @@ export const blurred = { 
     | 
|
| 
       66 
68 
     | 
    
         
             
                    await userEvent.click(trigger);
         
     | 
| 
       67 
69 
     | 
    
         
             
                },
         
     | 
| 
       68 
70 
     | 
    
         
             
            };
         
     | 
| 
      
 71 
     | 
    
         
            +
            export const renderProps = {
         
     | 
| 
      
 72 
     | 
    
         
            +
                name: "children, render props",
         
     | 
| 
      
 73 
     | 
    
         
            +
                render: () => (<Overlay active className="test-classname" attributes={{ "data-testid": "test-id" }}>
         
     | 
| 
      
 74 
     | 
    
         
            +
            			{(args) => (args.active ? "Opened" : "Closed")}
         
     | 
| 
      
 75 
     | 
    
         
            +
            		</Overlay>),
         
     | 
| 
      
 76 
     | 
    
         
            +
                play: async ({ canvasElement }) => {
         
     | 
| 
      
 77 
     | 
    
         
            +
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
      
 78 
     | 
    
         
            +
                    const root = canvas.getByText("Opened");
         
     | 
| 
      
 79 
     | 
    
         
            +
                    expect(root).toBeInTheDocument();
         
     | 
| 
      
 80 
     | 
    
         
            +
                },
         
     | 
| 
      
 81 
     | 
    
         
            +
            };
         
     | 
| 
      
 82 
     | 
    
         
            +
            export const handlers = {
         
     | 
| 
      
 83 
     | 
    
         
            +
                name: "onOpen, onClose, onAfterOpen, onAfterClose",
         
     | 
| 
      
 84 
     | 
    
         
            +
                args: {
         
     | 
| 
      
 85 
     | 
    
         
            +
                    handleOpen: fn(),
         
     | 
| 
      
 86 
     | 
    
         
            +
                    handleClose: fn(),
         
     | 
| 
      
 87 
     | 
    
         
            +
                    handleAfterClose: fn(),
         
     | 
| 
      
 88 
     | 
    
         
            +
                    handleAfterOpen: fn(),
         
     | 
| 
      
 89 
     | 
    
         
            +
                },
         
     | 
| 
      
 90 
     | 
    
         
            +
                render: (args) => {
         
     | 
| 
      
 91 
     | 
    
         
            +
                    const overlayToggle = useToggle();
         
     | 
| 
      
 92 
     | 
    
         
            +
                    return (<>
         
     | 
| 
      
 93 
     | 
    
         
            +
            				<Button onClick={() => overlayToggle.toggle()}>Open overlay</Button>
         
     | 
| 
      
 94 
     | 
    
         
            +
            				<Overlay active={overlayToggle.active} onClose={(closeArgs) => {
         
     | 
| 
      
 95 
     | 
    
         
            +
                            overlayToggle.deactivate();
         
     | 
| 
      
 96 
     | 
    
         
            +
                            args.handleClose(closeArgs);
         
     | 
| 
      
 97 
     | 
    
         
            +
                        }} onOpen={args.handleOpen} onAfterOpen={args.handleAfterOpen} onAfterClose={args.handleAfterClose}>
         
     | 
| 
      
 98 
     | 
    
         
            +
            					Content
         
     | 
| 
      
 99 
     | 
    
         
            +
            				</Overlay>
         
     | 
| 
      
 100 
     | 
    
         
            +
            			</>);
         
     | 
| 
      
 101 
     | 
    
         
            +
                },
         
     | 
| 
      
 102 
     | 
    
         
            +
                play: async ({ canvasElement, args }) => {
         
     | 
| 
      
 103 
     | 
    
         
            +
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
      
 104 
     | 
    
         
            +
                    const trigger = canvas.getAllByRole("button")[0];
         
     | 
| 
      
 105 
     | 
    
         
            +
                    let overlay;
         
     | 
| 
      
 106 
     | 
    
         
            +
                    await userEvent.click(trigger);
         
     | 
| 
      
 107 
     | 
    
         
            +
                    overlay = canvas.getByText("Content");
         
     | 
| 
      
 108 
     | 
    
         
            +
                    await waitFor(() => {
         
     | 
| 
      
 109 
     | 
    
         
            +
                        expect(args.handleOpen).toHaveBeenCalledTimes(1);
         
     | 
| 
      
 110 
     | 
    
         
            +
                        expect(args.handleOpen).toHaveBeenCalledWith();
         
     | 
| 
      
 111 
     | 
    
         
            +
                    });
         
     | 
| 
      
 112 
     | 
    
         
            +
                    // Wait for transition
         
     | 
| 
      
 113 
     | 
    
         
            +
                    await waitFor(() => {
         
     | 
| 
      
 114 
     | 
    
         
            +
                        expect(args.handleAfterOpen).toHaveBeenCalledTimes(1);
         
     | 
| 
      
 115 
     | 
    
         
            +
                        expect(args.handleAfterOpen).toHaveBeenCalledWith();
         
     | 
| 
      
 116 
     | 
    
         
            +
                    });
         
     | 
| 
      
 117 
     | 
    
         
            +
                    // Close by changing the state after the trigger click
         
     | 
| 
      
 118 
     | 
    
         
            +
                    await userEvent.click(trigger);
         
     | 
| 
      
 119 
     | 
    
         
            +
                    // Changing state doesn't trigger onClose
         
     | 
| 
      
 120 
     | 
    
         
            +
                    expect(args.handleClose).toHaveBeenCalledTimes(0);
         
     | 
| 
      
 121 
     | 
    
         
            +
                    // Wait for transition
         
     | 
| 
      
 122 
     | 
    
         
            +
                    await waitFor(() => {
         
     | 
| 
      
 123 
     | 
    
         
            +
                        expect(args.handleAfterClose).toHaveBeenCalledTimes(1);
         
     | 
| 
      
 124 
     | 
    
         
            +
                        expect(args.handleAfterClose).toHaveBeenCalledWith();
         
     | 
| 
      
 125 
     | 
    
         
            +
                    });
         
     | 
| 
      
 126 
     | 
    
         
            +
                    // Open
         
     | 
| 
      
 127 
     | 
    
         
            +
                    await userEvent.click(trigger);
         
     | 
| 
      
 128 
     | 
    
         
            +
                    overlay = canvas.getByText("Content");
         
     | 
| 
      
 129 
     | 
    
         
            +
                    // TODO: Fails CLI tests in Storybook without a timeout
         
     | 
| 
      
 130 
     | 
    
         
            +
                    await sleep(100);
         
     | 
| 
      
 131 
     | 
    
         
            +
                    // Close by clicking on the overlay
         
     | 
| 
      
 132 
     | 
    
         
            +
                    await userEvent.click(overlay);
         
     | 
| 
      
 133 
     | 
    
         
            +
                    expect(args.handleClose).toHaveBeenCalledTimes(1);
         
     | 
| 
      
 134 
     | 
    
         
            +
                    expect(args.handleClose).toHaveBeenCalledWith({ reason: "overlay-click" });
         
     | 
| 
      
 135 
     | 
    
         
            +
                    await waitFor(() => {
         
     | 
| 
      
 136 
     | 
    
         
            +
                        expect(args.handleAfterClose).toHaveBeenCalledTimes(2);
         
     | 
| 
      
 137 
     | 
    
         
            +
                        expect(args.handleAfterClose).toHaveBeenCalledWith();
         
     | 
| 
      
 138 
     | 
    
         
            +
                    });
         
     | 
| 
      
 139 
     | 
    
         
            +
                    // Open
         
     | 
| 
      
 140 
     | 
    
         
            +
                    await userEvent.click(trigger);
         
     | 
| 
      
 141 
     | 
    
         
            +
                    // TODO: Fails CLI tests in Storybook without a timeout
         
     | 
| 
      
 142 
     | 
    
         
            +
                    await sleep(100);
         
     | 
| 
      
 143 
     | 
    
         
            +
                    // Close by pressing Escape
         
     | 
| 
      
 144 
     | 
    
         
            +
                    await userEvent.keyboard("{Escape}");
         
     | 
| 
      
 145 
     | 
    
         
            +
                    expect(args.handleClose).toHaveBeenCalledTimes(2);
         
     | 
| 
      
 146 
     | 
    
         
            +
                    expect(args.handleClose).toHaveBeenCalledWith({ reason: "escape-key" });
         
     | 
| 
      
 147 
     | 
    
         
            +
                    await waitFor(() => {
         
     | 
| 
      
 148 
     | 
    
         
            +
                        expect(args.handleAfterClose).toHaveBeenCalledTimes(3);
         
     | 
| 
      
 149 
     | 
    
         
            +
                        expect(args.handleAfterClose).toHaveBeenCalledWith();
         
     | 
| 
      
 150 
     | 
    
         
            +
                    });
         
     | 
| 
      
 151 
     | 
    
         
            +
                },
         
     | 
| 
      
 152 
     | 
    
         
            +
            };
         
     | 
| 
      
 153 
     | 
    
         
            +
            export const disableCloseOnClick = {
         
     | 
| 
      
 154 
     | 
    
         
            +
                name: "disableCloseOnClick",
         
     | 
| 
      
 155 
     | 
    
         
            +
                args: {
         
     | 
| 
      
 156 
     | 
    
         
            +
                    handleClose: fn(),
         
     | 
| 
      
 157 
     | 
    
         
            +
                },
         
     | 
| 
      
 158 
     | 
    
         
            +
                render: (args) => (<Overlay active disableCloseOnClick onClose={(closeArgs) => {
         
     | 
| 
      
 159 
     | 
    
         
            +
                        args.handleClose(closeArgs);
         
     | 
| 
      
 160 
     | 
    
         
            +
                    }}>
         
     | 
| 
      
 161 
     | 
    
         
            +
            			Content
         
     | 
| 
      
 162 
     | 
    
         
            +
            		</Overlay>),
         
     | 
| 
      
 163 
     | 
    
         
            +
                play: async ({ canvasElement, args }) => {
         
     | 
| 
      
 164 
     | 
    
         
            +
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
      
 165 
     | 
    
         
            +
                    const overlay = canvas.getByText("Content");
         
     | 
| 
      
 166 
     | 
    
         
            +
                    await userEvent.click(overlay);
         
     | 
| 
      
 167 
     | 
    
         
            +
                    // TODO: Fails CLI tests in Storybook without a timeout
         
     | 
| 
      
 168 
     | 
    
         
            +
                    await sleep(100);
         
     | 
| 
      
 169 
     | 
    
         
            +
                    expect(args.handleClose).toHaveBeenCalledTimes(0);
         
     | 
| 
      
 170 
     | 
    
         
            +
                    await userEvent.keyboard("{Escape}");
         
     | 
| 
      
 171 
     | 
    
         
            +
                    expect(args.handleClose).toHaveBeenCalledTimes(1);
         
     | 
| 
      
 172 
     | 
    
         
            +
                },
         
     | 
| 
      
 173 
     | 
    
         
            +
            };
         
     | 
| 
      
 174 
     | 
    
         
            +
            export const containerRef = {
         
     | 
| 
      
 175 
     | 
    
         
            +
                name: "containerRef",
         
     | 
| 
      
 176 
     | 
    
         
            +
                render: () => {
         
     | 
| 
      
 177 
     | 
    
         
            +
                    const containerRef = React.useRef(null);
         
     | 
| 
      
 178 
     | 
    
         
            +
                    return (<>
         
     | 
| 
      
 179 
     | 
    
         
            +
            				<div ref={containerRef} data-testid="test-id" style={{ height: 200 }}/>
         
     | 
| 
      
 180 
     | 
    
         
            +
            				<Overlay active containerRef={containerRef}>
         
     | 
| 
      
 181 
     | 
    
         
            +
            					Content
         
     | 
| 
      
 182 
     | 
    
         
            +
            				</Overlay>
         
     | 
| 
      
 183 
     | 
    
         
            +
            			</>);
         
     | 
| 
      
 184 
     | 
    
         
            +
                },
         
     | 
| 
      
 185 
     | 
    
         
            +
                play: ({ canvasElement }) => {
         
     | 
| 
      
 186 
     | 
    
         
            +
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
      
 187 
     | 
    
         
            +
                    const container = canvas.getByTestId("test-id");
         
     | 
| 
      
 188 
     | 
    
         
            +
                    const overlay = canvas.getByText("Content");
         
     | 
| 
      
 189 
     | 
    
         
            +
                    expect(container).toContainElement(overlay);
         
     | 
| 
      
 190 
     | 
    
         
            +
                },
         
     | 
| 
      
 191 
     | 
    
         
            +
            };
         
     | 
| 
      
 192 
     | 
    
         
            +
            export const className = {
         
     | 
| 
      
 193 
     | 
    
         
            +
                name: "className, attributes",
         
     | 
| 
      
 194 
     | 
    
         
            +
                render: () => (<Overlay active className="test-classname" attributes={{ "data-testid": "test-id" }}>
         
     | 
| 
      
 195 
     | 
    
         
            +
            			Content
         
     | 
| 
      
 196 
     | 
    
         
            +
            		</Overlay>),
         
     | 
| 
      
 197 
     | 
    
         
            +
                play: async ({ canvasElement }) => {
         
     | 
| 
      
 198 
     | 
    
         
            +
                    const canvas = within(canvasElement.ownerDocument.body);
         
     | 
| 
      
 199 
     | 
    
         
            +
                    const root = canvas.getByTestId("test-id");
         
     | 
| 
      
 200 
     | 
    
         
            +
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
      
 201 
     | 
    
         
            +
                },
         
     | 
| 
      
 202 
     | 
    
         
            +
            };
         
     | 
| 
         @@ -1,3 +1,5 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { fn } from "storybook/test";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       1 
3 
     | 
    
         
             
            declare const _default: {
         
     | 
| 
       2 
4 
     | 
    
         
             
                title: string;
         
     | 
| 
       3 
5 
     | 
    
         
             
                component: import("react").FC<import("./..").PaginationProps>;
         
     | 
| 
         @@ -8,4 +10,15 @@ declare const _default: { 
     | 
|
| 
       8 
10 
     | 
    
         
             
                };
         
     | 
| 
       9 
11 
     | 
    
         
             
            };
         
     | 
| 
       10 
12 
     | 
    
         
             
            export default _default;
         
     | 
| 
       11 
     | 
    
         
            -
            export declare const truncate:  
     | 
| 
      
 13 
     | 
    
         
            +
            export declare const truncate: {
         
     | 
| 
      
 14 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 15 
     | 
    
         
            +
                render: () => import("react").JSX.Element;
         
     | 
| 
      
 16 
     | 
    
         
            +
            };
         
     | 
| 
      
 17 
     | 
    
         
            +
            export declare const render: StoryObj;
         
     | 
| 
      
 18 
     | 
    
         
            +
            export declare const defaultPage: StoryObj<{
         
     | 
| 
      
 19 
     | 
    
         
            +
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
      
 20 
     | 
    
         
            +
            }>;
         
     | 
| 
      
 21 
     | 
    
         
            +
            export declare const page: StoryObj<{
         
     | 
| 
      
 22 
     | 
    
         
            +
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
      
 23 
     | 
    
         
            +
            }>;
         
     | 
| 
      
 24 
     | 
    
         
            +
            export declare const className: StoryObj;
         
     | 
| 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import { Example } from "../../../utilities/storybook/index.js";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import Pagination from "../index.js";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import { expect, fn, userEvent, within } from "storybook/test";
         
     | 
| 
       3 
4 
     | 
    
         
             
            export default {
         
     | 
| 
       4 
5 
     | 
    
         
             
                title: "Components/Pagination",
         
     | 
| 
       5 
6 
     | 
    
         
             
                component: Pagination,
         
     | 
| 
         @@ -9,19 +10,96 @@ export default { 
     | 
|
| 
       9 
10 
     | 
    
         
             
                    },
         
     | 
| 
       10 
11 
     | 
    
         
             
                },
         
     | 
| 
       11 
12 
     | 
    
         
             
            };
         
     | 
| 
       12 
     | 
    
         
            -
            export const truncate =  
     | 
| 
       13 
     | 
    
         
            -
                 
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            				 
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
            				 
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
            				 
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
      
 13 
     | 
    
         
            +
            export const truncate = {
         
     | 
| 
      
 14 
     | 
    
         
            +
                name: "truncate",
         
     | 
| 
      
 15 
     | 
    
         
            +
                render: () => {
         
     | 
| 
      
 16 
     | 
    
         
            +
                    return (<Example>
         
     | 
| 
      
 17 
     | 
    
         
            +
            				<Example.Item title="start">
         
     | 
| 
      
 18 
     | 
    
         
            +
            					<Pagination total={10} previousAriaLabel="Previous page" nextAriaLabel="Next page" pageAriaLabel={(args) => `Page ${args.page}`}/>
         
     | 
| 
      
 19 
     | 
    
         
            +
            				</Example.Item>
         
     | 
| 
      
 20 
     | 
    
         
            +
            				<Example.Item title="middle">
         
     | 
| 
      
 21 
     | 
    
         
            +
            					<Pagination total={10} defaultPage={5} previousAriaLabel="Previous page" nextAriaLabel="Next page" pageAriaLabel={(args) => `Page ${args.page}`}/>
         
     | 
| 
      
 22 
     | 
    
         
            +
            				</Example.Item>
         
     | 
| 
      
 23 
     | 
    
         
            +
            				<Example.Item title="end">
         
     | 
| 
      
 24 
     | 
    
         
            +
            					<Pagination total={10} defaultPage={10} previousAriaLabel="Previous page" nextAriaLabel="Next page" pageAriaLabel={(args) => `Page ${args.page}`}/>
         
     | 
| 
      
 25 
     | 
    
         
            +
            				</Example.Item>
         
     | 
| 
      
 26 
     | 
    
         
            +
            				<Example.Item title="no truncation">
         
     | 
| 
      
 27 
     | 
    
         
            +
            					<Pagination total={4} previousAriaLabel="Previous page" nextAriaLabel="Next page" pageAriaLabel={(args) => `Page ${args.page}`}/>
         
     | 
| 
      
 28 
     | 
    
         
            +
            				</Example.Item>
         
     | 
| 
      
 29 
     | 
    
         
            +
            			</Example>);
         
     | 
| 
      
 30 
     | 
    
         
            +
                },
         
     | 
| 
      
 31 
     | 
    
         
            +
            };
         
     | 
| 
      
 32 
     | 
    
         
            +
            export const render = {
         
     | 
| 
      
 33 
     | 
    
         
            +
                name: "rendering",
         
     | 
| 
      
 34 
     | 
    
         
            +
                render: () => (<div data-testid="root">
         
     | 
| 
      
 35 
     | 
    
         
            +
            			<Pagination total={10} previousAriaLabel="Previous" nextAriaLabel="Next" pageAriaLabel={(args) => `Page ${args.page}`}/>
         
     | 
| 
      
 36 
     | 
    
         
            +
            		</div>),
         
     | 
| 
      
 37 
     | 
    
         
            +
                play: async ({ canvas }) => {
         
     | 
| 
      
 38 
     | 
    
         
            +
                    const root = within(canvas.getByTestId("root"));
         
     | 
| 
      
 39 
     | 
    
         
            +
                    const buttons = root.getAllByRole("button");
         
     | 
| 
      
 40 
     | 
    
         
            +
                    const pages = buttons.slice(1, -1);
         
     | 
| 
      
 41 
     | 
    
         
            +
                    const prevButton = root.getByLabelText("Previous");
         
     | 
| 
      
 42 
     | 
    
         
            +
                    const nextButton = root.getByLabelText("Next");
         
     | 
| 
      
 43 
     | 
    
         
            +
                    const firstPageButton = root.getByLabelText("Page 1");
         
     | 
| 
      
 44 
     | 
    
         
            +
                    expect(buttons.length).toBe(8);
         
     | 
| 
      
 45 
     | 
    
         
            +
                    expect(prevButton).toEqual(buttons[0]);
         
     | 
| 
      
 46 
     | 
    
         
            +
                    expect(prevButton).toBeDisabled();
         
     | 
| 
      
 47 
     | 
    
         
            +
                    expect(nextButton).toEqual(buttons.at(-1));
         
     | 
| 
      
 48 
     | 
    
         
            +
                    expect(nextButton).not.toBeDisabled();
         
     | 
| 
      
 49 
     | 
    
         
            +
                    expect(firstPageButton).toBeInTheDocument();
         
     | 
| 
      
 50 
     | 
    
         
            +
                    expect(firstPageButton).toEqual(pages[0]);
         
     | 
| 
      
 51 
     | 
    
         
            +
                    expect(firstPageButton).toHaveAttribute("aria-current", "true");
         
     | 
| 
      
 52 
     | 
    
         
            +
                },
         
     | 
| 
      
 53 
     | 
    
         
            +
            };
         
     | 
| 
      
 54 
     | 
    
         
            +
            export const defaultPage = {
         
     | 
| 
      
 55 
     | 
    
         
            +
                name: "defaultPage, uncontrolled",
         
     | 
| 
      
 56 
     | 
    
         
            +
                args: {
         
     | 
| 
      
 57 
     | 
    
         
            +
                    handleChange: fn(),
         
     | 
| 
      
 58 
     | 
    
         
            +
                },
         
     | 
| 
      
 59 
     | 
    
         
            +
                render: (args) => (<div data-testid="root">
         
     | 
| 
      
 60 
     | 
    
         
            +
            			<Pagination total={10} defaultPage={2} onChange={args.handleChange} previousAriaLabel="Previous" nextAriaLabel="Next"/>
         
     | 
| 
      
 61 
     | 
    
         
            +
            		</div>),
         
     | 
| 
      
 62 
     | 
    
         
            +
                play: async ({ canvas, args }) => {
         
     | 
| 
      
 63 
     | 
    
         
            +
                    const root = within(canvas.getByTestId("root"));
         
     | 
| 
      
 64 
     | 
    
         
            +
                    const buttons = root.getAllByRole("button");
         
     | 
| 
      
 65 
     | 
    
         
            +
                    const pages = buttons.slice(1, -1);
         
     | 
| 
      
 66 
     | 
    
         
            +
                    expect(pages[1]).toHaveAttribute("aria-current");
         
     | 
| 
      
 67 
     | 
    
         
            +
                    await userEvent.click(pages[2]);
         
     | 
| 
      
 68 
     | 
    
         
            +
                    expect(args.handleChange).toHaveBeenCalledTimes(1);
         
     | 
| 
      
 69 
     | 
    
         
            +
                    expect(args.handleChange).toHaveBeenCalledWith({ page: 3 });
         
     | 
| 
      
 70 
     | 
    
         
            +
                    expect(pages[1]).toHaveAttribute("aria-current", "false");
         
     | 
| 
      
 71 
     | 
    
         
            +
                    expect(pages[2]).toHaveAttribute("aria-current", "true");
         
     | 
| 
      
 72 
     | 
    
         
            +
                },
         
     | 
| 
      
 73 
     | 
    
         
            +
            };
         
     | 
| 
      
 74 
     | 
    
         
            +
            export const page = {
         
     | 
| 
      
 75 
     | 
    
         
            +
                name: "page, controlled",
         
     | 
| 
      
 76 
     | 
    
         
            +
                args: {
         
     | 
| 
      
 77 
     | 
    
         
            +
                    handleChange: fn(),
         
     | 
| 
      
 78 
     | 
    
         
            +
                },
         
     | 
| 
      
 79 
     | 
    
         
            +
                render: (args) => (<div data-testid="root">
         
     | 
| 
      
 80 
     | 
    
         
            +
            			<Pagination total={10} page={2} onChange={args.handleChange} previousAriaLabel="Previous" nextAriaLabel="Next"/>
         
     | 
| 
      
 81 
     | 
    
         
            +
            		</div>),
         
     | 
| 
      
 82 
     | 
    
         
            +
                play: async ({ canvas, args }) => {
         
     | 
| 
      
 83 
     | 
    
         
            +
                    const root = within(canvas.getByTestId("root"));
         
     | 
| 
      
 84 
     | 
    
         
            +
                    const buttons = root.getAllByRole("button");
         
     | 
| 
      
 85 
     | 
    
         
            +
                    const pages = buttons.slice(1, -1);
         
     | 
| 
      
 86 
     | 
    
         
            +
                    expect(pages[1]).toHaveAttribute("aria-current");
         
     | 
| 
      
 87 
     | 
    
         
            +
                    await userEvent.click(pages[2]);
         
     | 
| 
      
 88 
     | 
    
         
            +
                    expect(args.handleChange).toHaveBeenCalledTimes(1);
         
     | 
| 
      
 89 
     | 
    
         
            +
                    expect(args.handleChange).toHaveBeenCalledWith({ page: 3 });
         
     | 
| 
      
 90 
     | 
    
         
            +
                    // Stays the same because it's controlled
         
     | 
| 
      
 91 
     | 
    
         
            +
                    expect(pages[1]).toHaveAttribute("aria-current", "true");
         
     | 
| 
      
 92 
     | 
    
         
            +
                    expect(pages[2]).toHaveAttribute("aria-current", "false");
         
     | 
| 
      
 93 
     | 
    
         
            +
                },
         
     | 
| 
      
 94 
     | 
    
         
            +
            };
         
     | 
| 
      
 95 
     | 
    
         
            +
            export const className = {
         
     | 
| 
      
 96 
     | 
    
         
            +
                name: "className, attributes",
         
     | 
| 
      
 97 
     | 
    
         
            +
                render: () => (<div data-testid="root">
         
     | 
| 
      
 98 
     | 
    
         
            +
            			<Pagination className="test-classname" attributes={{ id: "test-id" }} total={10} previousAriaLabel="Previous" nextAriaLabel="Next"/>
         
     | 
| 
      
 99 
     | 
    
         
            +
            		</div>),
         
     | 
| 
      
 100 
     | 
    
         
            +
                play: async ({ canvas }) => {
         
     | 
| 
      
 101 
     | 
    
         
            +
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
      
 102 
     | 
    
         
            +
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
      
 103 
     | 
    
         
            +
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
      
 104 
     | 
    
         
            +
                },
         
     | 
| 
       27 
105 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { expect, fn, userEvent, waitFor } from "storybook/ 
     | 
| 
      
 1 
     | 
    
         
            +
            import { expect, fn, userEvent, waitFor } from "storybook/test";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import { Example } from "../../../utilities/storybook/index.js";
         
     | 
| 
       3 
3 
     | 
    
         
             
            import PinField from "../index.js";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import FormControl from "../../FormControl/index.js";
         
     | 
| 
         @@ -5,11 +5,11 @@ import Dismissible from "../Dismissible/index.js"; 
     | 
|
| 
       5 
5 
     | 
    
         
             
            import s from "./Popover.module.css";
         
     | 
| 
       6 
6 
     | 
    
         
             
            import { resolveMixin } from "../../styles/mixin.js";
         
     | 
| 
       7 
7 
     | 
    
         
             
            const Popover = (props) => {
         
     | 
| 
       8 
     | 
    
         
            -
                const { width, variant = "elevated", triggerType = "click", position = "bottom", elevation, ...flyoutProps } = props;
         
     | 
| 
      
 8 
     | 
    
         
            +
                const { width, variant = "elevated", triggerType = "click", position = "bottom", elevation, borderRadius, ...flyoutProps } = props;
         
     | 
| 
       9 
9 
     | 
    
         
             
                const padding = props.padding ?? (variant === "headless" ? 0 : 4);
         
     | 
| 
       10 
10 
     | 
    
         
             
                const trapFocusMode = props.trapFocusMode ?? (triggerType === "hover" ? "content-menu" : undefined);
         
     | 
| 
       11 
11 
     | 
    
         
             
                const mixinStyles = resolveMixin({ padding });
         
     | 
| 
       12 
     | 
    
         
            -
                const contentClassName = classNames(s.content, !!width && s["content--has-width"], variant && s[`content--variant-${variant}`], elevation && s[`content--elevation-${elevation}`], mixinStyles.classNames);
         
     | 
| 
      
 12 
     | 
    
         
            +
                const contentClassName = classNames(s.content, !!width && s["content--has-width"], variant && s[`content--variant-${variant}`], elevation && s[`content--elevation-${elevation}`], borderRadius && s[`content--radius-${borderRadius}`], mixinStyles.classNames);
         
     | 
| 
       13 
13 
     | 
    
         
             
                return (_jsx(Flyout, { ...flyoutProps, position: position, trapFocusMode: trapFocusMode, triggerType: triggerType, width: width, contentClassName: contentClassName, contentAttributes: { style: { ...mixinStyles.variables } } }));
         
     | 
| 
       14 
14 
     | 
    
         
             
            };
         
     | 
| 
       15 
15 
     | 
    
         
             
            const PopoverDismissible = (props) => {
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            .content{max-width:360px}.content--variant-elevated{background:var(--rs-color-background-elevation-overlay);border-radius:var(--rs-radius-medium);box-shadow:var(--rs- 
     | 
| 
      
 1 
     | 
    
         
            +
            .content{max-width:360px}.content--variant-elevated{background:var(--rs-color-background-elevation-overlay);border-radius:var(--rs-radius-medium);box-shadow:0 0 0 1px var(--rs-color-border-neutral-faded) inset,var(--rs-shadow-overlay);color:var(--rs-color-foreground-neutral);min-width:220px}.content--variant-elevated.content--elevation-raised{box-shadow:0 0 0 1px var(--rs-color-border-neutral-faded) inset,var(--rs-shadow-raised)}.content--radius-small{border-radius:var(--rs-radius-small)}.content.content--has-width{max-width:none;min-width:0}@media (--rs-viewport-s ){.content{max-width:none}}
         
     | 
| 
         @@ -1,13 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import type React from "react";
         
     | 
| 
       2 
2 
     | 
    
         
             
            import type { FlyoutProps, FlyoutInstance } from "../Flyout";
         
     | 
| 
       3 
3 
     | 
    
         
             
            export type Instance = FlyoutInstance;
         
     | 
| 
       4 
     | 
    
         
            -
            export type Props = Pick<FlyoutProps, "id" | "position" | "forcePosition" | "fallbackPositions" | "fallbackAdjustLayout" | "onOpen" | "onClose" | "width" | "trapFocusMode" | "active" | "defaultActive" | "contentGap" | "contentShift" | "instanceRef" | "triggerType" | "disableHideAnimation" | "disableContentHover" | "disableCloseOnOutsideClick" | "autoFocus" | "containerRef" | "initialFocusRef" | "originCoordinates"> & {
         
     | 
| 
      
 4 
     | 
    
         
            +
            export type Props = Pick<FlyoutProps, "id" | "position" | "forcePosition" | "fallbackPositions" | "fallbackAdjustLayout" | "fallbackMinWidth" | "fallbackMinHeight" | "onOpen" | "onClose" | "width" | "trapFocusMode" | "active" | "defaultActive" | "contentGap" | "contentShift" | "instanceRef" | "triggerType" | "disableHideAnimation" | "disableContentHover" | "disableCloseOnOutsideClick" | "autoFocus" | "containerRef" | "initialFocusRef" | "originCoordinates"> & {
         
     | 
| 
       5 
5 
     | 
    
         
             
                /** Node for inserting children */
         
     | 
| 
       6 
6 
     | 
    
         
             
                children?: React.ReactNode;
         
     | 
| 
       7 
7 
     | 
    
         
             
                /** Content element padding, unit token multiplier */
         
     | 
| 
       8 
8 
     | 
    
         
             
                padding?: number;
         
     | 
| 
       9 
9 
     | 
    
         
             
                /** Component elevation level */
         
     | 
| 
       10 
10 
     | 
    
         
             
                elevation?: "raised" | "overlay";
         
     | 
| 
      
 11 
     | 
    
         
            +
                /** Border radius for the content */
         
     | 
| 
      
 12 
     | 
    
         
            +
                borderRadius?: "small" | "medium";
         
     | 
| 
       11 
13 
     | 
    
         
             
                /** @deprecated use Flyout utility instead, will be removed in v4 */
         
     | 
| 
       12 
14 
     | 
    
         
             
                variant?: "elevated" | "headless";
         
     | 
| 
       13 
15 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1,4 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import React from "react";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
       2 
3 
     | 
    
         
             
            declare const _default: {
         
     | 
| 
       3 
4 
     | 
    
         
             
                title: string;
         
     | 
| 
       4 
5 
     | 
    
         
             
                component: React.FC<import("./..").ProgressProps>;
         
     | 
| 
         @@ -9,7 +10,21 @@ declare const _default: { 
     | 
|
| 
       9 
10 
     | 
    
         
             
                };
         
     | 
| 
       10 
11 
     | 
    
         
             
            };
         
     | 
| 
       11 
12 
     | 
    
         
             
            export default _default;
         
     | 
| 
       12 
     | 
    
         
            -
            export declare const value:  
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
      
 13 
     | 
    
         
            +
            export declare const value: {
         
     | 
| 
      
 14 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 15 
     | 
    
         
            +
                render: () => React.JSX.Element;
         
     | 
| 
      
 16 
     | 
    
         
            +
            };
         
     | 
| 
      
 17 
     | 
    
         
            +
            export declare const size: {
         
     | 
| 
      
 18 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 19 
     | 
    
         
            +
                render: () => React.JSX.Element;
         
     | 
| 
      
 20 
     | 
    
         
            +
            };
         
     | 
| 
      
 21 
     | 
    
         
            +
            export declare const color: {
         
     | 
| 
      
 22 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 23 
     | 
    
         
            +
                render: () => React.JSX.Element;
         
     | 
| 
      
 24 
     | 
    
         
            +
            };
         
     | 
| 
      
 25 
     | 
    
         
            +
            export declare const duration: {
         
     | 
| 
      
 26 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 27 
     | 
    
         
            +
                render: () => React.JSX.Element;
         
     | 
| 
      
 28 
     | 
    
         
            +
            };
         
     | 
| 
      
 29 
     | 
    
         
            +
            export declare const render: StoryObj;
         
     | 
| 
      
 30 
     | 
    
         
            +
            export declare const className: StoryObj;
         
     | 
| 
         @@ -3,6 +3,7 @@ import { Example } from "../../../utilities/storybook/index.js"; 
     | 
|
| 
       3 
3 
     | 
    
         
             
            import View from "../../View/index.js";
         
     | 
| 
       4 
4 
     | 
    
         
             
            import Progress from "../index.js";
         
     | 
| 
       5 
5 
     | 
    
         
             
            import Button from "../../Button/index.js";
         
     | 
| 
      
 6 
     | 
    
         
            +
            import { expect } from "storybook/test";
         
     | 
| 
       6 
7 
     | 
    
         
             
            export default {
         
     | 
| 
       7 
8 
     | 
    
         
             
                title: "Components/Progress",
         
     | 
| 
       8 
9 
     | 
    
         
             
                component: Progress,
         
     | 
| 
         @@ -12,55 +13,90 @@ export default { 
     | 
|
| 
       12 
13 
     | 
    
         
             
                    },
         
     | 
| 
       13 
14 
     | 
    
         
             
                },
         
     | 
| 
       14 
15 
     | 
    
         
             
            };
         
     | 
| 
       15 
     | 
    
         
            -
            export const value =  
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            			 
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
            			 
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
            		 
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
            		 
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
            			 
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
                return (<Example>
         
     | 
| 
       56 
     | 
    
         
            -
            			<Example.Item title="duration: 2000">
         
     | 
| 
       57 
     | 
    
         
            -
            				<View gap={3}>
         
     | 
| 
       58 
     | 
    
         
            -
            					<View.Item>
         
     | 
| 
       59 
     | 
    
         
            -
            						<Button onClick={handleChange}>Change</Button>
         
     | 
| 
       60 
     | 
    
         
            -
            					</View.Item>
         
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
            					<Progress value={active ? 100 : 0} duration={2000} ariaLabel="rating value"/>
         
     | 
| 
      
 16 
     | 
    
         
            +
            export const value = {
         
     | 
| 
      
 17 
     | 
    
         
            +
                name: "value",
         
     | 
| 
      
 18 
     | 
    
         
            +
                render: () => (<Example>
         
     | 
| 
      
 19 
     | 
    
         
            +
            			<Example.Item title="value: 50">
         
     | 
| 
      
 20 
     | 
    
         
            +
            				<Progress value={50} ariaLabel="rating value"/>
         
     | 
| 
      
 21 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 22 
     | 
    
         
            +
            			<Example.Item title="value: 20, min: 0, max: 40">
         
     | 
| 
      
 23 
     | 
    
         
            +
            				<Progress value={20} min={0} max={40} ariaLabel="rating value"/>
         
     | 
| 
      
 24 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 25 
     | 
    
         
            +
            			<Example.Item title="value: 50, min: 0, max: 40">
         
     | 
| 
      
 26 
     | 
    
         
            +
            				<Progress value={50} min={0} max={40} ariaLabel="rating value"/>
         
     | 
| 
      
 27 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 28 
     | 
    
         
            +
            		</Example>),
         
     | 
| 
      
 29 
     | 
    
         
            +
            };
         
     | 
| 
      
 30 
     | 
    
         
            +
            export const size = {
         
     | 
| 
      
 31 
     | 
    
         
            +
                name: "size",
         
     | 
| 
      
 32 
     | 
    
         
            +
                render: () => (<Example>
         
     | 
| 
      
 33 
     | 
    
         
            +
            			<Example.Item title="size: small, value: 50">
         
     | 
| 
      
 34 
     | 
    
         
            +
            				<Progress value={50} size="small" ariaLabel="rating value"/>
         
     | 
| 
      
 35 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 36 
     | 
    
         
            +
            			<Example.Item title="size: medium, value: 50">
         
     | 
| 
      
 37 
     | 
    
         
            +
            				<Progress value={50} size="medium" ariaLabel="rating value"/>
         
     | 
| 
      
 38 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 39 
     | 
    
         
            +
            		</Example>),
         
     | 
| 
      
 40 
     | 
    
         
            +
            };
         
     | 
| 
      
 41 
     | 
    
         
            +
            export const color = {
         
     | 
| 
      
 42 
     | 
    
         
            +
                name: "color",
         
     | 
| 
      
 43 
     | 
    
         
            +
                render: () => (<Example>
         
     | 
| 
      
 44 
     | 
    
         
            +
            			<Example.Item title="color: critical, value: 50">
         
     | 
| 
      
 45 
     | 
    
         
            +
            				<Progress value={50} color="critical" ariaLabel="rating value"/>
         
     | 
| 
      
 46 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 47 
     | 
    
         
            +
            			<Example.Item title="color: warning, value: 50">
         
     | 
| 
      
 48 
     | 
    
         
            +
            				<Progress value={50} color="warning" ariaLabel="rating value"/>
         
     | 
| 
      
 49 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 50 
     | 
    
         
            +
            			<Example.Item title="color: positive, value: 50">
         
     | 
| 
      
 51 
     | 
    
         
            +
            				<Progress value={50} color="positive" ariaLabel="rating value"/>
         
     | 
| 
      
 52 
     | 
    
         
            +
            			</Example.Item>
         
     | 
| 
      
 53 
     | 
    
         
            +
            			<Example.Item title="color: media, value: 50">
         
     | 
| 
      
 54 
     | 
    
         
            +
            				<View padding={4} backgroundColor="black" borderRadius="medium">
         
     | 
| 
      
 55 
     | 
    
         
            +
            					<Progress value={50} color="media" ariaLabel="rating value"/>
         
     | 
| 
       63 
56 
     | 
    
         
             
            				</View>
         
     | 
| 
       64 
57 
     | 
    
         
             
            			</Example.Item>
         
     | 
| 
       65 
     | 
    
         
            -
            		</Example>) 
     | 
| 
      
 58 
     | 
    
         
            +
            		</Example>),
         
     | 
| 
      
 59 
     | 
    
         
            +
            };
         
     | 
| 
      
 60 
     | 
    
         
            +
            export const duration = {
         
     | 
| 
      
 61 
     | 
    
         
            +
                name: "duration",
         
     | 
| 
      
 62 
     | 
    
         
            +
                render: () => {
         
     | 
| 
      
 63 
     | 
    
         
            +
                    const [active, setActive] = React.useState(false);
         
     | 
| 
      
 64 
     | 
    
         
            +
                    const handleChange = () => {
         
     | 
| 
      
 65 
     | 
    
         
            +
                        setActive((state) => !state);
         
     | 
| 
      
 66 
     | 
    
         
            +
                    };
         
     | 
| 
      
 67 
     | 
    
         
            +
                    return (<Example>
         
     | 
| 
      
 68 
     | 
    
         
            +
            				<Example.Item title="duration: 2000">
         
     | 
| 
      
 69 
     | 
    
         
            +
            					<View gap={3}>
         
     | 
| 
      
 70 
     | 
    
         
            +
            						<View.Item>
         
     | 
| 
      
 71 
     | 
    
         
            +
            							<Button onClick={handleChange}>Change</Button>
         
     | 
| 
      
 72 
     | 
    
         
            +
            						</View.Item>
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
            						<Progress value={active ? 100 : 0} duration={2000} ariaLabel="rating value"/>
         
     | 
| 
      
 75 
     | 
    
         
            +
            					</View>
         
     | 
| 
      
 76 
     | 
    
         
            +
            				</Example.Item>
         
     | 
| 
      
 77 
     | 
    
         
            +
            			</Example>);
         
     | 
| 
      
 78 
     | 
    
         
            +
                },
         
     | 
| 
      
 79 
     | 
    
         
            +
            };
         
     | 
| 
      
 80 
     | 
    
         
            +
            export const render = {
         
     | 
| 
      
 81 
     | 
    
         
            +
                name: "rendering",
         
     | 
| 
      
 82 
     | 
    
         
            +
                render: () => <Progress value={75} min={50} max={100} ariaLabel="progress"/>,
         
     | 
| 
      
 83 
     | 
    
         
            +
                play: async ({ canvas }) => {
         
     | 
| 
      
 84 
     | 
    
         
            +
                    const el = canvas.getByRole("progressbar");
         
     | 
| 
      
 85 
     | 
    
         
            +
                    expect(el).toBeInTheDocument();
         
     | 
| 
      
 86 
     | 
    
         
            +
                    expect(el).toHaveAttribute("aria-valuenow", "75");
         
     | 
| 
      
 87 
     | 
    
         
            +
                    expect(el).toHaveAttribute("aria-valuemin", "50");
         
     | 
| 
      
 88 
     | 
    
         
            +
                    expect(el).toHaveAttribute("aria-valuemax", "100");
         
     | 
| 
      
 89 
     | 
    
         
            +
                    expect(el).toHaveAccessibleName("progress");
         
     | 
| 
      
 90 
     | 
    
         
            +
                },
         
     | 
| 
      
 91 
     | 
    
         
            +
            };
         
     | 
| 
      
 92 
     | 
    
         
            +
            export const className = {
         
     | 
| 
      
 93 
     | 
    
         
            +
                name: "className, attributes",
         
     | 
| 
      
 94 
     | 
    
         
            +
                render: () => (<div data-testid="root">
         
     | 
| 
      
 95 
     | 
    
         
            +
            			<Progress className="test-classname" attributes={{ id: "test-id" }} ariaLabel="progress"/>
         
     | 
| 
      
 96 
     | 
    
         
            +
            		</div>),
         
     | 
| 
      
 97 
     | 
    
         
            +
                play: async ({ canvas }) => {
         
     | 
| 
      
 98 
     | 
    
         
            +
                    const root = canvas.getByTestId("root").firstChild;
         
     | 
| 
      
 99 
     | 
    
         
            +
                    expect(root).toHaveClass("test-classname");
         
     | 
| 
      
 100 
     | 
    
         
            +
                    expect(root).toHaveAttribute("id", "test-id");
         
     | 
| 
      
 101 
     | 
    
         
            +
                },
         
     | 
| 
       66 
102 
     | 
    
         
             
            };
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            .root{align-items:center;cursor:pointer;display:inline-flex;gap:var(--rs-radio-gap);user-select:none;vertical-align:top;-webkit-tap-highlight-color:transparent}@media (hover:hover) and (pointer:fine){.root:hover .decorator{background:var(--rs-color-background-neutral-faded)}}.field{position:relative}.decorator{background:var(--rs-color-background-elevation-base);border:1px solid var(--rs-color-border-neutral);border-radius:50%;height:var(--rs-radio-line-height);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:background-color,border-color;width:var(--rs-radio-line-height)}.decorator:after{background:var(--rs-color-on-background-primary);border-radius:50%;content:"";height:calc(var(--rs-radio-line-height) * .4);left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:opacity,transform;width:calc(var(--rs-radio-line-height) * .4)}.--size-small{--rs-radio-line-height:var(--rs-line-height-caption-1);--rs-radio-gap:var(--rs-unit-x1)}.--size-medium{--rs-radio-line-height:var(--rs-line-height-body-3);--rs-radio-gap:var(--rs-unit-x2)}.--size-large{--rs-radio-line-height:var(--rs-line-height-body-2);--rs-radio-gap:var(--rs-unit-x2)}[data-rs-keyboard] .input:focus+.decorator{box-shadow:var(--rs-focus 
     | 
| 
      
 1 
     | 
    
         
            +
            .root{align-items:center;cursor:pointer;display:inline-flex;gap:var(--rs-radio-gap);user-select:none;vertical-align:top;-webkit-tap-highlight-color:transparent}@media (hover:hover) and (pointer:fine){.root:hover .decorator{background:var(--rs-color-background-neutral-faded)}}.field{position:relative}.decorator{background:var(--rs-color-background-elevation-base);border:1px solid var(--rs-color-border-neutral);border-radius:50%;height:var(--rs-radio-line-height);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:background-color,border-color;width:var(--rs-radio-line-height)}.decorator:after{background:var(--rs-color-on-background-primary);border-radius:50%;content:"";height:calc(var(--rs-radio-line-height) * .4);left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:var(--rs-duration-fast) var(--rs-easing-standard);transition-property:opacity,transform;width:calc(var(--rs-radio-line-height) * .4)}.--size-small{--rs-radio-line-height:var(--rs-line-height-caption-1);--rs-radio-gap:var(--rs-unit-x1)}.--size-medium{--rs-radio-line-height:var(--rs-line-height-body-3);--rs-radio-gap:var(--rs-unit-x2)}.--size-large{--rs-radio-line-height:var(--rs-line-height-body-2);--rs-radio-gap:var(--rs-unit-x2)}[data-rs-keyboard] .input:focus+.decorator{box-shadow:var(--rs-shadow-focus)}.root.--error .decorator{border-color:var(--rs-color-border-critical)}.input:checked+.decorator{background:var(--rs-color-background-primary);border-color:var(--rs-color-background-primary)}.input:checked+.decorator:after{opacity:1;transform:translate(-50%,-50%) scale(1)}.root.--disabled{color:var(--rs-color-foreground-disabled);cursor:not-allowed}.root.--disabled .decorator{background:var(--rs-color-background-disabled-faded);border-color:var(--rs-color-border-disabled)}.root.--disabled .decorator:after{background-color:var(--rs-color-foreground-disabled)}.root.--disabled .input:checked+.decorator{background:var(--rs-color-background-disabled);border-color:transparent}@media (--rs-viewport-m ){.--size-small--m{--rs-radio-line-height:var(--rs-line-height-caption-1);--rs-radio-gap:var(--rs-unit-x1)}.--size-medium--m{--rs-radio-line-height:var(--rs-line-height-body-3);--rs-radio-gap:var(--rs-unit-x2)}.--size-large--m{--rs-radio-line-height:var(--rs-line-height-body-2);--rs-radio-gap:var(--rs-unit-x2)}}@media (--rs-viewport-l ){.--size-small--l{--rs-radio-line-height:var(--rs-line-height-caption-1);--rs-radio-gap:var(--rs-unit-x1)}.--size-medium--l{--rs-radio-line-height:var(--rs-line-height-body-3);--rs-radio-gap:var(--rs-unit-x2)}.--size-large--l{--rs-radio-line-height:var(--rs-line-height-body-2);--rs-radio-gap:var(--rs-unit-x2)}}@media (--rs-viewport-xl ){.--size-small--xl{--rs-radio-line-height:var(--rs-line-height-caption-1);--rs-radio-gap:var(--rs-unit-x1)}.--size-medium--xl{--rs-radio-line-height:var(--rs-line-height-body-3);--rs-radio-gap:var(--rs-unit-x2)}.--size-large--xl{--rs-radio-line-height:var(--rs-line-height-body-2);--rs-radio-gap:var(--rs-unit-x2)}}
         
     | 
| 
         @@ -1,3 +1,5 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { StoryObj } from "@storybook/react-vite";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { fn } from "storybook/test";
         
     | 
| 
       1 
3 
     | 
    
         
             
            declare const _default: {
         
     | 
| 
       2 
4 
     | 
    
         
             
                title: string;
         
     | 
| 
       3 
5 
     | 
    
         
             
                component: import("react").FC<import("./..").RadioProps>;
         
     | 
| 
         @@ -8,7 +10,26 @@ declare const _default: { 
     | 
|
| 
       8 
10 
     | 
    
         
             
                };
         
     | 
| 
       9 
11 
     | 
    
         
             
            };
         
     | 
| 
       10 
12 
     | 
    
         
             
            export default _default;
         
     | 
| 
       11 
     | 
    
         
            -
            export declare const  
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
      
 13 
     | 
    
         
            +
            export declare const size: {
         
     | 
| 
      
 14 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 15 
     | 
    
         
            +
                render: () => import("react").JSX.Element;
         
     | 
| 
      
 16 
     | 
    
         
            +
            };
         
     | 
| 
      
 17 
     | 
    
         
            +
            export declare const error: {
         
     | 
| 
      
 18 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 19 
     | 
    
         
            +
                render: () => import("react").JSX.Element;
         
     | 
| 
      
 20 
     | 
    
         
            +
            };
         
     | 
| 
      
 21 
     | 
    
         
            +
            export declare const render: StoryObj;
         
     | 
| 
      
 22 
     | 
    
         
            +
            export declare const checked: StoryObj<{
         
     | 
| 
      
 23 
     | 
    
         
            +
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
      
 24 
     | 
    
         
            +
            }>;
         
     | 
| 
      
 25 
     | 
    
         
            +
            export declare const checkedFalse: StoryObj<{
         
     | 
| 
      
 26 
     | 
    
         
            +
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
      
 27 
     | 
    
         
            +
            }>;
         
     | 
| 
      
 28 
     | 
    
         
            +
            export declare const defaultChecked: StoryObj<{
         
     | 
| 
      
 29 
     | 
    
         
            +
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
      
 30 
     | 
    
         
            +
            }>;
         
     | 
| 
      
 31 
     | 
    
         
            +
            export declare const defaultCheckedFalse: StoryObj<{
         
     | 
| 
      
 32 
     | 
    
         
            +
                handleChange: ReturnType<typeof fn>;
         
     | 
| 
      
 33 
     | 
    
         
            +
            }>;
         
     | 
| 
      
 34 
     | 
    
         
            +
            export declare const disabled: StoryObj;
         
     | 
| 
      
 35 
     | 
    
         
            +
            export declare const className: StoryObj;
         
     |