@cerberus-design/react 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/legacy/_tsup-dts-rollup.d.cts +21878 -1965
- package/build/legacy/aria-helpers/nav-menu.aria.cjs.map +1 -1
- package/build/legacy/aria-helpers/trap-focus.aria.cjs.map +1 -1
- package/build/legacy/components/CircularProgress.cjs +24 -22
- package/build/legacy/components/CircularProgress.cjs.map +1 -1
- package/build/legacy/components/FeatureFlag.cjs +10 -8
- package/build/legacy/components/FeatureFlag.cjs.map +1 -1
- package/build/legacy/components/FileStatus.cjs +67 -65
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/FileUploader.cjs +34 -32
- package/build/legacy/components/FileUploader.cjs.map +1 -1
- package/build/legacy/components/IconButton.cjs +2 -2
- package/build/legacy/components/IconButton.cjs.map +1 -1
- package/build/legacy/components/Menu.cjs +8 -4
- package/build/legacy/components/Menu.cjs.map +1 -1
- package/build/legacy/components/Menu.d.cts +2 -2
- package/build/legacy/components/Portal.cjs +4 -1
- package/build/legacy/components/Portal.cjs.map +1 -1
- package/build/legacy/components/Portal.d.cts +1 -1
- package/build/legacy/components/ProgressBar.cjs +2 -2
- package/build/legacy/components/ProgressBar.cjs.map +1 -1
- package/build/legacy/components/Show.cjs +8 -7
- package/build/legacy/components/Show.cjs.map +1 -1
- package/build/legacy/components/Spinner.cjs +2 -1
- package/build/legacy/components/Spinner.cjs.map +1 -1
- package/build/legacy/components/Tag.cjs +18 -16
- package/build/legacy/components/Tag.cjs.map +1 -1
- package/build/legacy/components/Text.cjs +1 -1
- package/build/legacy/components/Text.cjs.map +1 -1
- package/build/legacy/components/Tooltip.cjs +2 -2
- package/build/legacy/components/Tooltip.cjs.map +1 -1
- package/build/legacy/components/accordion/index.cjs +25 -21
- package/build/legacy/components/accordion/index.cjs.map +1 -1
- package/build/legacy/components/accordion/index.d.cts +1 -1
- package/build/legacy/components/accordion/item-group.cjs +31 -27
- package/build/legacy/components/accordion/item-group.cjs.map +1 -1
- package/build/legacy/components/accordion/item-group.d.cts +1 -1
- package/build/legacy/components/accordion/item-indicator.cjs +2 -2
- package/build/legacy/components/accordion/item-indicator.cjs.map +1 -1
- package/build/legacy/components/accordion/parts.cjs +2 -2
- package/build/legacy/components/accordion/parts.cjs.map +1 -1
- package/build/legacy/components/accordion/primitives.cjs +2 -2
- package/build/legacy/components/accordion/primitives.cjs.map +1 -1
- package/build/legacy/components/admonition/admonition.cjs +44 -42
- package/build/legacy/components/admonition/admonition.cjs.map +1 -1
- package/build/legacy/components/admonition/index.cjs +44 -42
- package/build/legacy/components/admonition/index.cjs.map +1 -1
- package/build/legacy/components/admonition/match-avatar.cjs +29 -27
- package/build/legacy/components/admonition/match-avatar.cjs.map +1 -1
- package/build/legacy/components/admonition/parts.cjs +2 -2
- package/build/legacy/components/admonition/parts.cjs.map +1 -1
- package/build/legacy/components/admonition/primitives.cjs +2 -2
- package/build/legacy/components/admonition/primitives.cjs.map +1 -1
- package/build/legacy/components/avatar/avatar.cjs +20 -18
- package/build/legacy/components/avatar/avatar.cjs.map +1 -1
- package/build/legacy/components/avatar/index.cjs +16 -14
- package/build/legacy/components/avatar/index.cjs.map +1 -1
- package/build/legacy/components/avatar/parts.cjs +2 -2
- package/build/legacy/components/avatar/parts.cjs.map +1 -1
- package/build/legacy/components/avatar/primitives.cjs +2 -2
- package/build/legacy/components/avatar/primitives.cjs.map +1 -1
- package/build/legacy/components/button/button.cjs +28 -25
- package/build/legacy/components/button/button.cjs.map +1 -1
- package/build/legacy/components/button/index.cjs +28 -25
- package/build/legacy/components/button/index.cjs.map +1 -1
- package/build/legacy/components/button/parts.cjs +28 -25
- package/build/legacy/components/button/parts.cjs.map +1 -1
- package/build/legacy/components/checkbox/checkbox-icon.cjs +12 -10
- package/build/legacy/components/checkbox/checkbox-icon.cjs.map +1 -1
- package/build/legacy/components/checkbox/checkbox.cjs +46 -44
- package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
- package/build/legacy/components/checkbox/index.cjs +46 -44
- package/build/legacy/components/checkbox/index.cjs.map +1 -1
- package/build/legacy/components/checkbox/parts.cjs +2 -2
- package/build/legacy/components/checkbox/parts.cjs.map +1 -1
- package/build/legacy/components/checkbox/primitives.cjs +2 -2
- package/build/legacy/components/checkbox/primitives.cjs.map +1 -1
- package/build/legacy/components/combobox/combobox.cjs +38 -33
- package/build/legacy/components/combobox/combobox.cjs.map +1 -1
- package/build/legacy/components/combobox/index.cjs +38 -33
- package/build/legacy/components/combobox/index.cjs.map +1 -1
- package/build/legacy/components/combobox/item-group.cjs +2 -2
- package/build/legacy/components/combobox/item-group.cjs.map +1 -1
- package/build/legacy/components/combobox/item.cjs +2 -2
- package/build/legacy/components/combobox/item.cjs.map +1 -1
- package/build/legacy/components/combobox/parts.cjs +2 -2
- package/build/legacy/components/combobox/parts.cjs.map +1 -1
- package/build/legacy/components/combobox/primitives.cjs +2 -2
- package/build/legacy/components/combobox/primitives.cjs.map +1 -1
- package/build/legacy/components/combobox/use-stateful-collection.cjs +2 -2
- package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/index.cjs +90 -84
- package/build/legacy/components/cta-dialog/index.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/provider.cjs +90 -84
- package/build/legacy/components/cta-dialog/provider.cjs.map +1 -1
- package/build/legacy/components/cta-dialog/trigger-item.cjs +5 -5
- package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -1
- package/build/legacy/components/date-picker/calendar.cjs +95 -66
- package/build/legacy/components/date-picker/calendar.cjs.map +1 -1
- package/build/legacy/components/date-picker/content.cjs +59 -30
- package/build/legacy/components/date-picker/content.cjs.map +1 -1
- package/build/legacy/components/date-picker/date-picker.cjs +41 -15
- package/build/legacy/components/date-picker/date-picker.cjs.map +1 -1
- package/build/legacy/components/date-picker/day-view.cjs +47 -21
- package/build/legacy/components/date-picker/day-view.cjs.map +1 -1
- package/build/legacy/components/date-picker/index.cjs +80 -51
- package/build/legacy/components/date-picker/index.cjs.map +1 -1
- package/build/legacy/components/date-picker/input.cjs +43 -17
- package/build/legacy/components/date-picker/input.cjs.map +1 -1
- package/build/legacy/components/date-picker/month-view.cjs +47 -21
- package/build/legacy/components/date-picker/month-view.cjs.map +1 -1
- package/build/legacy/components/date-picker/parts.cjs +41 -15
- package/build/legacy/components/date-picker/parts.cjs.map +1 -1
- package/build/legacy/components/date-picker/primitives.cjs +41 -15
- package/build/legacy/components/date-picker/primitives.cjs.map +1 -1
- package/build/legacy/components/date-picker/range-input.cjs +43 -17
- package/build/legacy/components/date-picker/range-input.cjs.map +1 -1
- package/build/legacy/components/date-picker/trigger.cjs +43 -17
- package/build/legacy/components/date-picker/trigger.cjs.map +1 -1
- package/build/legacy/components/date-picker/view-control-group.cjs +47 -21
- package/build/legacy/components/date-picker/view-control-group.cjs.map +1 -1
- package/build/legacy/components/date-picker/year-view.cjs +47 -21
- package/build/legacy/components/date-picker/year-view.cjs.map +1 -1
- package/build/legacy/components/deprecated/FieldMessage.cjs +2 -2
- package/build/legacy/components/deprecated/FieldMessage.cjs.map +1 -1
- package/build/legacy/components/deprecated/FieldsetLabel.cjs +2 -2
- package/build/legacy/components/deprecated/FieldsetLabel.cjs.map +1 -1
- package/build/legacy/components/deprecated/Label.cjs +4 -4
- package/build/legacy/components/deprecated/Label.cjs.map +1 -1
- package/build/legacy/components/deprecated/Legend.cjs +14 -12
- package/build/legacy/components/deprecated/Legend.cjs.map +1 -1
- package/build/legacy/components/deprecated/Modal.cjs +4 -13
- package/build/legacy/components/deprecated/Modal.cjs.map +1 -1
- package/build/legacy/components/deprecated/Modal.d.cts +2 -2
- package/build/legacy/components/deprecated/ModalDescription.cjs +2 -2
- package/build/legacy/components/deprecated/ModalDescription.cjs.map +1 -1
- package/build/legacy/components/deprecated/ModalDescription.d.cts +2 -2
- package/build/legacy/components/deprecated/ModalHeader.cjs +2 -2
- package/build/legacy/components/deprecated/ModalHeader.cjs.map +1 -1
- package/build/legacy/components/deprecated/ModalHeader.d.cts +2 -2
- package/build/legacy/components/deprecated/ModalHeading.cjs +2 -2
- package/build/legacy/components/deprecated/ModalHeading.cjs.map +1 -1
- package/build/legacy/components/deprecated/ModalHeading.d.cts +2 -2
- package/build/legacy/components/deprecated/NavMenuLink.cjs +14 -12
- package/build/legacy/components/deprecated/NavMenuLink.cjs.map +1 -1
- package/build/legacy/components/deprecated/NavMenuList.cjs +15 -13
- package/build/legacy/components/deprecated/NavMenuList.cjs.map +1 -1
- package/build/legacy/components/deprecated/NavMenuTrigger.cjs +17 -15
- package/build/legacy/components/deprecated/NavMenuTrigger.cjs.map +1 -1
- package/build/legacy/components/deprecated/Notification.cjs +3 -3
- package/build/legacy/components/deprecated/Notification.cjs.map +1 -1
- package/build/legacy/components/deprecated/NotificationDescription.cjs +2 -2
- package/build/legacy/components/deprecated/NotificationDescription.cjs.map +1 -1
- package/build/legacy/components/deprecated/NotificationHeading.cjs +2 -2
- package/build/legacy/components/deprecated/NotificationHeading.cjs.map +1 -1
- package/build/legacy/components/dialog/close-icon-trigger.cjs +6 -6
- package/build/legacy/components/dialog/close-icon-trigger.cjs.map +1 -1
- package/build/legacy/components/dialog/dialog.cjs +14 -11
- package/build/legacy/components/dialog/dialog.cjs.map +1 -1
- package/build/legacy/components/dialog/index.cjs +14 -11
- package/build/legacy/components/dialog/index.cjs.map +1 -1
- package/build/legacy/components/dialog/parts.cjs +2 -2
- package/build/legacy/components/dialog/parts.cjs.map +1 -1
- package/build/legacy/components/dialog/primitives.cjs +2 -2
- package/build/legacy/components/dialog/primitives.cjs.map +1 -1
- package/build/legacy/components/field/field.cjs +18 -16
- package/build/legacy/components/field/field.cjs.map +1 -1
- package/build/legacy/components/field/index.cjs +22 -20
- package/build/legacy/components/field/index.cjs.map +1 -1
- package/build/legacy/components/field/parts.cjs +6 -6
- package/build/legacy/components/field/parts.cjs.map +1 -1
- package/build/legacy/components/field/primitives.cjs +6 -6
- package/build/legacy/components/field/primitives.cjs.map +1 -1
- package/build/legacy/components/field/start-indicator.cjs +2 -2
- package/build/legacy/components/field/start-indicator.cjs.map +1 -1
- package/build/legacy/components/field/status-indicator.cjs +2 -2
- package/build/legacy/components/field/status-indicator.cjs.map +1 -1
- package/build/legacy/components/fieldset/fieldset.cjs +2 -2
- package/build/legacy/components/fieldset/fieldset.cjs.map +1 -1
- package/build/legacy/components/fieldset/index.cjs +2 -2
- package/build/legacy/components/fieldset/index.cjs.map +1 -1
- package/build/legacy/components/fieldset/parts.cjs +2 -2
- package/build/legacy/components/fieldset/parts.cjs.map +1 -1
- package/build/legacy/components/fieldset/primitives.cjs +2 -2
- package/build/legacy/components/fieldset/primitives.cjs.map +1 -1
- package/build/legacy/components/for.cjs +2 -1
- package/build/legacy/components/for.cjs.map +1 -1
- package/build/legacy/components/notifications/center.cjs +54 -51
- package/build/legacy/components/notifications/center.cjs.map +1 -1
- package/build/legacy/components/notifications/close-trigger.cjs +2 -2
- package/build/legacy/components/notifications/close-trigger.cjs.map +1 -1
- package/build/legacy/components/notifications/index.cjs +51 -46
- package/build/legacy/components/notifications/index.cjs.map +1 -1
- package/build/legacy/components/notifications/index.d.cts +1 -1
- package/build/legacy/components/notifications/match-icon.cjs +3 -2
- package/build/legacy/components/notifications/match-icon.cjs.map +1 -1
- package/build/legacy/components/notifications/parts.cjs +2 -2
- package/build/legacy/components/notifications/parts.cjs.map +1 -1
- package/build/legacy/components/notifications/primitives.cjs +5 -3
- package/build/legacy/components/notifications/primitives.cjs.map +1 -1
- package/build/legacy/components/notifications/primitives.d.cts +1 -1
- package/build/legacy/components/radio/index.cjs +2 -2
- package/build/legacy/components/radio/index.cjs.map +1 -1
- package/build/legacy/components/radio/parts.cjs +2 -2
- package/build/legacy/components/radio/parts.cjs.map +1 -1
- package/build/legacy/components/radio/primitives.cjs +2 -2
- package/build/legacy/components/radio/primitives.cjs.map +1 -1
- package/build/legacy/components/radio/radio.cjs +2 -2
- package/build/legacy/components/radio/radio.cjs.map +1 -1
- package/build/legacy/components/rating/index.cjs +15 -13
- package/build/legacy/components/rating/index.cjs.map +1 -1
- package/build/legacy/components/rating/parts.cjs +2 -2
- package/build/legacy/components/rating/parts.cjs.map +1 -1
- package/build/legacy/components/rating/primitives.cjs +2 -2
- package/build/legacy/components/rating/primitives.cjs.map +1 -1
- package/build/legacy/components/rating/rating.cjs +23 -21
- package/build/legacy/components/rating/rating.cjs.map +1 -1
- package/build/legacy/components/select/index.cjs +30 -25
- package/build/legacy/components/select/index.cjs.map +1 -1
- package/build/legacy/components/select/option-group.cjs +2 -2
- package/build/legacy/components/select/option-group.cjs.map +1 -1
- package/build/legacy/components/select/parts.cjs +2 -2
- package/build/legacy/components/select/parts.cjs.map +1 -1
- package/build/legacy/components/select/primitives.cjs +2 -2
- package/build/legacy/components/select/primitives.cjs.map +1 -1
- package/build/legacy/components/select/select.cjs +43 -38
- package/build/legacy/components/select/select.cjs.map +1 -1
- package/build/legacy/components/switch/index.cjs +13 -11
- package/build/legacy/components/switch/index.cjs.map +1 -1
- package/build/legacy/components/switch/parts.cjs +10 -8
- package/build/legacy/components/switch/parts.cjs.map +1 -1
- package/build/legacy/components/switch/primitives.cjs +10 -8
- package/build/legacy/components/switch/primitives.cjs.map +1 -1
- package/build/legacy/components/switch/switch.cjs +13 -11
- package/build/legacy/components/switch/switch.cjs.map +1 -1
- package/build/legacy/components/table/index.cjs +13 -11
- package/build/legacy/components/table/index.cjs.map +1 -1
- package/build/legacy/components/table/parts.cjs +2 -2
- package/build/legacy/components/table/parts.cjs.map +1 -1
- package/build/legacy/components/table/primitives.cjs +2 -2
- package/build/legacy/components/table/primitives.cjs.map +1 -1
- package/build/legacy/components/table/table.cjs +13 -11
- package/build/legacy/components/table/table.cjs.map +1 -1
- package/build/legacy/components/tabs/index.cjs +2 -2
- package/build/legacy/components/tabs/index.cjs.map +1 -1
- package/build/legacy/components/tabs/parts.cjs +2 -2
- package/build/legacy/components/tabs/parts.cjs.map +1 -1
- package/build/legacy/components/tabs/primitives.cjs +2 -2
- package/build/legacy/components/tabs/primitives.cjs.map +1 -1
- package/build/legacy/components/tabs/tabs.cjs +2 -2
- package/build/legacy/components/tabs/tabs.cjs.map +1 -1
- package/build/legacy/components/toggle/index.cjs +7 -2
- package/build/legacy/components/toggle/index.cjs.map +1 -1
- package/build/legacy/components/toggle/parts.cjs +7 -2
- package/build/legacy/components/toggle/parts.cjs.map +1 -1
- package/build/legacy/components/toggle/primitives.cjs +7 -2
- package/build/legacy/components/toggle/primitives.cjs.map +1 -1
- package/build/legacy/config/defineIcons.cjs +2 -4
- package/build/legacy/config/defineIcons.cjs.map +1 -1
- package/build/legacy/config/icons/checkbox.icons.cjs +2 -4
- package/build/legacy/config/icons/checkbox.icons.cjs.map +1 -1
- package/build/legacy/config/icons/checkbox.icons.d.cts +0 -2
- package/build/legacy/config/index.cjs +2 -4
- package/build/legacy/config/index.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.cjs +78 -77
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/field.cjs +2 -2
- package/build/legacy/context/field.cjs.map +1 -1
- package/build/legacy/context/navMenu.cjs +1 -1
- package/build/legacy/context/navMenu.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +102 -97
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/context/theme.cjs.map +1 -1
- package/build/legacy/hooks/useModal.cjs.map +1 -1
- package/build/legacy/hooks/useModal.d.cts +2 -2
- package/build/legacy/index.cjs +1451 -1500
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +20 -30
- package/build/modern/_tsup-dts-rollup.d.ts +21878 -1965
- package/build/modern/aria-helpers/nav-menu.aria.js +1 -1
- package/build/modern/aria-helpers/trap-focus.aria.js +1 -1
- package/build/modern/{chunk-R4KLHRCL.js → chunk-25P3FUUT.js} +3 -3
- package/build/modern/{chunk-FZ53535Q.js → chunk-2CZWHED6.js} +2 -2
- package/build/modern/{chunk-JAAMD5EH.js → chunk-2IYWFZTK.js} +2 -2
- package/build/modern/{chunk-LZWNHXRP.js → chunk-3DZW23OX.js} +7 -5
- package/build/modern/chunk-3DZW23OX.js.map +1 -0
- package/build/modern/{chunk-7OYOT5LK.js → chunk-3IT3V3YA.js} +6 -6
- package/build/modern/chunk-3IT3V3YA.js.map +1 -0
- package/build/modern/{chunk-KWZ3CEG6.js → chunk-52ZQ26IV.js} +2 -2
- package/build/modern/chunk-53YVHIGJ.js +11 -0
- package/build/modern/chunk-53YVHIGJ.js.map +1 -0
- package/build/modern/{chunk-XBUXVNTY.js → chunk-5FC7HIAR.js} +2 -2
- package/build/modern/{chunk-TEMFCS72.js → chunk-5HEU3SYR.js} +2 -2
- package/build/modern/{chunk-QCBLRACK.js → chunk-5MUUKSLF.js} +3 -5
- package/build/modern/chunk-5MUUKSLF.js.map +1 -0
- package/build/modern/{chunk-245SMQ45.js → chunk-6DU5QBPR.js} +6 -6
- package/build/modern/chunk-6DU5QBPR.js.map +1 -0
- package/build/modern/{chunk-AIJ75ENY.js → chunk-6KX5P5OU.js} +5 -5
- package/build/modern/chunk-6KX5P5OU.js.map +1 -0
- package/build/modern/{chunk-DEXJQ6UI.js → chunk-6MMH3Y2U.js} +5 -5
- package/build/modern/chunk-6MMH3Y2U.js.map +1 -0
- package/build/modern/{chunk-4IXQNNAM.js → chunk-6UVR3VGK.js} +2 -2
- package/build/modern/{chunk-VHCJ25QC.js → chunk-75DUDVPA.js} +4 -4
- package/build/modern/chunk-75DUDVPA.js.map +1 -0
- package/build/modern/{chunk-JWF7FK7T.js → chunk-7I7LA2EE.js} +2 -2
- package/build/modern/chunk-7I7LA2EE.js.map +1 -0
- package/build/modern/{chunk-6TIMBGFL.js → chunk-ADZRQNW3.js} +3 -3
- package/build/modern/{chunk-7SYJFI5E.js → chunk-AUI74W7J.js} +3 -2
- package/build/modern/chunk-AUI74W7J.js.map +1 -0
- package/build/modern/{chunk-CPNKDKC2.js → chunk-BMPMMTX3.js} +3 -5
- package/build/modern/chunk-BMPMMTX3.js.map +1 -0
- package/build/modern/{chunk-6HOLE2JH.js → chunk-CEJIKL6N.js} +2 -2
- package/build/modern/{chunk-N4RPMT6J.js → chunk-CF4TCMJI.js} +4 -4
- package/build/modern/chunk-CF4TCMJI.js.map +1 -0
- package/build/modern/{chunk-NR5XDIJ7.js → chunk-D4BVNWAY.js} +3 -5
- package/build/modern/chunk-D4BVNWAY.js.map +1 -0
- package/build/modern/{chunk-QDXU6G3X.js → chunk-D6PFYSIP.js} +3 -3
- package/build/modern/{chunk-JLUIGY2U.js → chunk-D7QIPJQC.js} +9 -9
- package/build/modern/chunk-D7QIPJQC.js.map +1 -0
- package/build/modern/{chunk-CYSLIGNU.js → chunk-DHKSNGQX.js} +11 -11
- package/build/modern/chunk-DHKSNGQX.js.map +1 -0
- package/build/modern/{chunk-Z52R6ABJ.js → chunk-EMDNETC7.js} +3 -3
- package/build/modern/chunk-EMDNETC7.js.map +1 -0
- package/build/modern/{chunk-BPRF34DU.js → chunk-ENJUQNVT.js} +3 -5
- package/build/modern/chunk-ENJUQNVT.js.map +1 -0
- package/build/modern/{chunk-YOTXFCCC.js → chunk-F2MWSSK2.js} +3 -3
- package/build/modern/chunk-F2MWSSK2.js.map +1 -0
- package/build/modern/{chunk-XVOEBY5S.js → chunk-F3XFJHGR.js} +7 -7
- package/build/modern/chunk-F3XFJHGR.js.map +1 -0
- package/build/modern/{chunk-EH36PXVP.js → chunk-FAQ3F72W.js} +2 -2
- package/build/modern/{chunk-JIZQFTW6.js → chunk-FHNT274F.js} +1 -1
- package/build/modern/chunk-FHNT274F.js.map +1 -0
- package/build/modern/{chunk-JF76VIL3.js → chunk-FUTYPCHZ.js} +1 -1
- package/build/modern/chunk-FUTYPCHZ.js.map +1 -0
- package/build/modern/{chunk-6WS765J3.js → chunk-FXWN3SPS.js} +2 -2
- package/build/modern/chunk-FXWN3SPS.js.map +1 -0
- package/build/modern/{chunk-RD2YPFRA.js → chunk-GB7W3YNU.js} +6 -8
- package/build/modern/chunk-GB7W3YNU.js.map +1 -0
- package/build/modern/{chunk-R7IDIIST.js → chunk-GBCF6DOS.js} +4 -4
- package/build/modern/chunk-GBCF6DOS.js.map +1 -0
- package/build/modern/{chunk-2CVGNLIM.js → chunk-GC6JUHVS.js} +2 -2
- package/build/modern/{chunk-IASVL7CW.js → chunk-GUAF4FXQ.js} +2 -2
- package/build/modern/{chunk-OS73F4SR.js → chunk-GYUCW2QK.js} +2 -2
- package/build/modern/{chunk-NMDAHO2K.js → chunk-H2HP63H4.js} +8 -8
- package/build/modern/chunk-H2HP63H4.js.map +1 -0
- package/build/modern/{chunk-STLN7BMJ.js → chunk-H2VYN32T.js} +2 -2
- package/build/modern/chunk-H2VYN32T.js.map +1 -0
- package/build/modern/{chunk-BIDE4IJG.js → chunk-H4SH6ORP.js} +2 -2
- package/build/modern/{chunk-5RTNSVYU.js → chunk-HJ7MAPDD.js} +3 -5
- package/build/modern/chunk-HJ7MAPDD.js.map +1 -0
- package/build/modern/{chunk-HUN7VQBT.js → chunk-I4EGYD24.js} +2 -2
- package/build/modern/chunk-I5RGBB57.js +13 -0
- package/build/modern/{chunk-DXOKSZVQ.js.map → chunk-I5RGBB57.js.map} +1 -1
- package/build/modern/{chunk-DRDNNRU3.js → chunk-IIH4VDQA.js} +3 -3
- package/build/modern/chunk-IIH4VDQA.js.map +1 -0
- package/build/modern/{chunk-W47QEZD5.js → chunk-IL677ECW.js} +3 -3
- package/build/modern/chunk-IL677ECW.js.map +1 -0
- package/build/modern/{chunk-32M5JS5F.js → chunk-ILROS7ST.js} +6 -6
- package/build/modern/{chunk-OSAYA6GH.js → chunk-INVZVMY4.js} +7 -7
- package/build/modern/chunk-INVZVMY4.js.map +1 -0
- package/build/modern/{chunk-SYPAA5YF.js → chunk-IUF74GEL.js} +2 -2
- package/build/modern/{chunk-WVFEJCUN.js → chunk-J76SGDYP.js} +2 -2
- package/build/modern/{chunk-UCL7P2OG.js → chunk-JFSCSAHD.js} +9 -9
- package/build/modern/chunk-JFSCSAHD.js.map +1 -0
- package/build/modern/{chunk-RQCJKDXU.js → chunk-JQYW4IOC.js} +2 -2
- package/build/modern/{chunk-JQJTQVPI.js → chunk-KEGLWDD6.js} +3 -3
- package/build/modern/{chunk-EB37HRCN.js → chunk-KOLNLCMZ.js} +1 -1
- package/build/modern/{chunk-EB37HRCN.js.map → chunk-KOLNLCMZ.js.map} +1 -1
- package/build/modern/{chunk-Z3FDG263.js → chunk-KV4NRGKW.js} +3 -5
- package/build/modern/chunk-KV4NRGKW.js.map +1 -0
- package/build/modern/{chunk-LPALHB6R.js → chunk-L2EGF5AV.js} +3 -3
- package/build/modern/chunk-L2EGF5AV.js.map +1 -0
- package/build/modern/{chunk-4GFEWP76.js → chunk-L5FYGWAZ.js} +3 -3
- package/build/modern/chunk-L5FYGWAZ.js.map +1 -0
- package/build/modern/{chunk-RU5LOXWI.js → chunk-L64HQGLQ.js} +2 -2
- package/build/modern/chunk-L64HQGLQ.js.map +1 -0
- package/build/modern/{chunk-6WEW5OGL.js → chunk-LEBDLXJE.js} +10 -10
- package/build/modern/chunk-LEBDLXJE.js.map +1 -0
- package/build/modern/{chunk-A464YKEL.js → chunk-MDXJ6MGF.js} +3 -3
- package/build/modern/chunk-MDXJ6MGF.js.map +1 -0
- package/build/modern/{chunk-KZDEDAIK.js → chunk-MTD4JSHT.js} +2 -2
- package/build/modern/{chunk-FUL2VRDU.js → chunk-MZXSSTS7.js} +2 -2
- package/build/modern/{chunk-ILSKGNUA.js → chunk-N6XHXPBI.js} +7 -7
- package/build/modern/{chunk-LLZE2RBB.js → chunk-NJ37QRAI.js} +2 -2
- package/build/modern/chunk-NJ37QRAI.js.map +1 -0
- package/build/modern/{chunk-LVHQGXJK.js → chunk-NP73HOHI.js} +3 -3
- package/build/modern/{chunk-7TQRTBUP.js → chunk-NQ22M7U7.js} +2 -2
- package/build/modern/{chunk-V243YFI3.js → chunk-NYEUNVKR.js} +5 -5
- package/build/modern/{chunk-63F5MURH.js → chunk-NYRNXRTZ.js} +3 -3
- package/build/modern/chunk-NYRNXRTZ.js.map +1 -0
- package/build/modern/{chunk-MR4DX76C.js → chunk-NYVKL2IS.js} +2 -2
- package/build/modern/{chunk-E3PAEB7Y.js → chunk-OCZCCOWW.js} +3 -5
- package/build/modern/chunk-OCZCCOWW.js.map +1 -0
- package/build/modern/{chunk-5DY66QZD.js → chunk-ONHP3RYL.js} +4 -4
- package/build/modern/chunk-ONHP3RYL.js.map +1 -0
- package/build/modern/{chunk-RKGFPKKK.js → chunk-OY33UHBG.js} +3 -5
- package/build/modern/chunk-OY33UHBG.js.map +1 -0
- package/build/modern/{chunk-LMBMMBKU.js → chunk-OY7BOKWW.js} +5 -5
- package/build/modern/chunk-OY7BOKWW.js.map +1 -0
- package/build/modern/{chunk-MZMZAX4E.js → chunk-P7DWMM56.js} +18 -18
- package/build/modern/chunk-P7DWMM56.js.map +1 -0
- package/build/modern/{chunk-4HUK7YNZ.js → chunk-PHPXOX2Y.js} +7 -5
- package/build/modern/chunk-PHPXOX2Y.js.map +1 -0
- package/build/modern/{chunk-6QHOKCV3.js → chunk-Q3LUIS3M.js} +4 -4
- package/build/modern/chunk-Q3LUIS3M.js.map +1 -0
- package/build/modern/{chunk-KJMCUYWV.js → chunk-Q737W5KJ.js} +3 -3
- package/build/modern/chunk-Q737W5KJ.js.map +1 -0
- package/build/modern/{chunk-QQCB6JXW.js → chunk-QCZ5VNGU.js} +4 -4
- package/build/modern/chunk-QCZ5VNGU.js.map +1 -0
- package/build/modern/{chunk-TNSIYRF7.js → chunk-QD3WAARV.js} +4 -4
- package/build/modern/chunk-QD3WAARV.js.map +1 -0
- package/build/modern/{chunk-XBDEIBW2.js → chunk-QNZIH2KG.js} +2 -2
- package/build/modern/chunk-RP6DNLP3.js +17 -0
- package/build/modern/chunk-RP6DNLP3.js.map +1 -0
- package/build/modern/{chunk-M7T3MBFB.js → chunk-RT7OJ4X5.js} +2 -2
- package/build/modern/{chunk-D7MAAGNA.js → chunk-RW3YEBDW.js} +42 -16
- package/build/modern/chunk-RW3YEBDW.js.map +1 -0
- package/build/modern/{chunk-BJJ4XAVO.js → chunk-RYRB5GPN.js} +3 -3
- package/build/modern/{chunk-7HKULJ4G.js → chunk-SDV6XUM6.js} +14 -11
- package/build/modern/chunk-SDV6XUM6.js.map +1 -0
- package/build/modern/{chunk-D7UIWAFO.js → chunk-SSR3CWJZ.js} +3 -5
- package/build/modern/chunk-SSR3CWJZ.js.map +1 -0
- package/build/modern/{chunk-IPC7LQ4Q.js → chunk-STCGFGTK.js} +8 -8
- package/build/modern/chunk-STCGFGTK.js.map +1 -0
- package/build/modern/{chunk-7JHQVQPS.js → chunk-SZOV7M64.js} +6 -4
- package/build/modern/chunk-SZOV7M64.js.map +1 -0
- package/build/modern/{chunk-L7N24B6B.js → chunk-T2NB3RBO.js} +3 -3
- package/build/modern/chunk-T2NB3RBO.js.map +1 -0
- package/build/modern/{chunk-DYQBRCZC.js → chunk-TGY3RICC.js} +14 -16
- package/build/modern/chunk-TGY3RICC.js.map +1 -0
- package/build/modern/{chunk-2FRF57EU.js → chunk-UGFSACHC.js} +3 -5
- package/build/modern/chunk-UGFSACHC.js.map +1 -0
- package/build/modern/{chunk-SRNDDY5D.js → chunk-UH6XSYYD.js} +3 -5
- package/build/modern/chunk-UH6XSYYD.js.map +1 -0
- package/build/modern/{chunk-AO3GB72J.js → chunk-UJTE43LT.js} +2 -2
- package/build/modern/chunk-UJTE43LT.js.map +1 -0
- package/build/modern/{chunk-3XE3QXUI.js → chunk-URJ6JHLG.js} +15 -15
- package/build/modern/chunk-URJ6JHLG.js.map +1 -0
- package/build/modern/{chunk-FCSO6N2Y.js → chunk-V6EAWUCQ.js} +2 -2
- package/build/modern/{chunk-HIC7Z23X.js → chunk-V6ZOASMM.js} +2 -2
- package/build/modern/chunk-VEAC4I3F.js +17 -0
- package/build/modern/chunk-VEAC4I3F.js.map +1 -0
- package/build/modern/{chunk-CNA2VKAH.js → chunk-VIKVLJGG.js} +3 -3
- package/build/modern/chunk-VIKVLJGG.js.map +1 -0
- package/build/modern/{chunk-YUNLWTUB.js → chunk-W337WQTU.js} +2 -2
- package/build/modern/{chunk-VNPLKMEM.js → chunk-WEL43I6Y.js} +7 -7
- package/build/modern/chunk-WEL43I6Y.js.map +1 -0
- package/build/modern/{chunk-XTNGF4D6.js → chunk-YOYCS3MD.js} +2 -2
- package/build/modern/{chunk-RUR5MV54.js → chunk-YUVPXW6D.js} +12 -6
- package/build/modern/chunk-YUVPXW6D.js.map +1 -0
- package/build/modern/{chunk-MH6CIBDU.js → chunk-Z2KBUTCO.js} +3 -3
- package/build/modern/chunk-Z2KBUTCO.js.map +1 -0
- package/build/modern/{chunk-URO5I5AQ.js → chunk-ZL7AX5EM.js} +5 -5
- package/build/modern/components/CircularProgress.js +2 -2
- package/build/modern/components/FeatureFlag.js +2 -2
- package/build/modern/components/FileStatus.js +12 -12
- package/build/modern/components/FileUploader.js +5 -5
- package/build/modern/components/IconButton.js +1 -1
- package/build/modern/components/Menu.d.ts +2 -2
- package/build/modern/components/Menu.js +1 -1
- package/build/modern/components/Portal.d.ts +1 -1
- package/build/modern/components/Portal.js +1 -1
- package/build/modern/components/ProgressBar.js +1 -1
- package/build/modern/components/Show.js +1 -2
- package/build/modern/components/Spinner.js +1 -1
- package/build/modern/components/Tag.js +3 -3
- package/build/modern/components/Text.js +1 -1
- package/build/modern/components/Tooltip.js +1 -1
- package/build/modern/components/accordion/index.d.ts +1 -1
- package/build/modern/components/accordion/index.js +5 -5
- package/build/modern/components/accordion/item-group.d.ts +1 -1
- package/build/modern/components/accordion/item-group.js +5 -5
- package/build/modern/components/accordion/item-indicator.js +3 -3
- package/build/modern/components/accordion/parts.js +2 -2
- package/build/modern/components/accordion/primitives.js +1 -1
- package/build/modern/components/admonition/admonition.js +8 -8
- package/build/modern/components/admonition/index.js +8 -8
- package/build/modern/components/admonition/match-avatar.js +5 -5
- package/build/modern/components/admonition/parts.js +2 -2
- package/build/modern/components/admonition/primitives.js +1 -1
- package/build/modern/components/avatar/avatar.js +4 -4
- package/build/modern/components/avatar/index.js +4 -4
- package/build/modern/components/avatar/parts.js +2 -2
- package/build/modern/components/avatar/primitives.js +1 -1
- package/build/modern/components/button/button.js +3 -3
- package/build/modern/components/button/index.js +4 -4
- package/build/modern/components/button/parts.js +4 -4
- package/build/modern/components/checkbox/checkbox-icon.js +4 -4
- package/build/modern/components/checkbox/checkbox.js +6 -6
- package/build/modern/components/checkbox/index.js +6 -6
- package/build/modern/components/checkbox/parts.js +2 -2
- package/build/modern/components/checkbox/primitives.js +1 -1
- package/build/modern/components/combobox/combobox.js +5 -5
- package/build/modern/components/combobox/index.js +13 -13
- package/build/modern/components/combobox/item-group.js +3 -3
- package/build/modern/components/combobox/item.js +3 -3
- package/build/modern/components/combobox/parts.js +2 -2
- package/build/modern/components/combobox/primitives.js +1 -1
- package/build/modern/components/combobox/use-stateful-collection.js +2 -2
- package/build/modern/components/cta-dialog/index.js +16 -16
- package/build/modern/components/cta-dialog/provider.js +15 -15
- package/build/modern/components/cta-dialog/trigger-item.js +4 -4
- package/build/modern/components/date-picker/calendar.js +13 -13
- package/build/modern/components/date-picker/content.js +4 -4
- package/build/modern/components/date-picker/date-picker.js +3 -3
- package/build/modern/components/date-picker/day-view.js +8 -8
- package/build/modern/components/date-picker/index.js +19 -19
- package/build/modern/components/date-picker/input.js +5 -5
- package/build/modern/components/date-picker/month-view.js +8 -8
- package/build/modern/components/date-picker/parts.js +2 -2
- package/build/modern/components/date-picker/primitives.js +1 -1
- package/build/modern/components/date-picker/range-input.js +5 -5
- package/build/modern/components/date-picker/trigger.js +4 -4
- package/build/modern/components/date-picker/view-control-group.js +7 -7
- package/build/modern/components/date-picker/year-view.js +8 -8
- package/build/modern/components/deprecated/FieldMessage.js +1 -1
- package/build/modern/components/deprecated/FieldsetLabel.js +1 -1
- package/build/modern/components/deprecated/Label.js +7 -7
- package/build/modern/components/deprecated/Legend.js +2 -2
- package/build/modern/components/deprecated/Modal.d.ts +2 -2
- package/build/modern/components/deprecated/Modal.js +7 -3
- package/build/modern/components/deprecated/Modal.js.map +1 -1
- package/build/modern/components/deprecated/ModalDescription.d.ts +2 -2
- package/build/modern/components/deprecated/ModalDescription.js +7 -3
- package/build/modern/components/deprecated/ModalDescription.js.map +1 -1
- package/build/modern/components/deprecated/ModalHeader.d.ts +2 -2
- package/build/modern/components/deprecated/ModalHeader.js +20 -3
- package/build/modern/components/deprecated/ModalHeader.js.map +1 -1
- package/build/modern/components/deprecated/ModalHeading.d.ts +2 -2
- package/build/modern/components/deprecated/ModalHeading.js +7 -3
- package/build/modern/components/deprecated/ModalHeading.js.map +1 -1
- package/build/modern/components/deprecated/NavMenuLink.js +2 -2
- package/build/modern/components/deprecated/NavMenuList.js +3 -3
- package/build/modern/components/deprecated/NavMenuTrigger.js +4 -4
- package/build/modern/components/deprecated/Notification.js +72 -4
- package/build/modern/components/deprecated/Notification.js.map +1 -1
- package/build/modern/components/deprecated/NotificationDescription.js +16 -2
- package/build/modern/components/deprecated/NotificationDescription.js.map +1 -1
- package/build/modern/components/deprecated/NotificationHeading.js +10 -2
- package/build/modern/components/deprecated/NotificationHeading.js.map +1 -1
- package/build/modern/components/dialog/close-icon-trigger.js +3 -3
- package/build/modern/components/dialog/dialog.js +3 -3
- package/build/modern/components/dialog/index.js +6 -6
- package/build/modern/components/dialog/parts.js +2 -2
- package/build/modern/components/dialog/primitives.js +1 -1
- package/build/modern/components/field/field.js +5 -5
- package/build/modern/components/field/index.js +10 -10
- package/build/modern/components/field/parts.js +4 -4
- package/build/modern/components/field/primitives.js +3 -3
- package/build/modern/components/field/start-indicator.js +1 -1
- package/build/modern/components/field/status-indicator.js +1 -1
- package/build/modern/components/fieldset/fieldset.js +3 -3
- package/build/modern/components/fieldset/index.js +3 -3
- package/build/modern/components/fieldset/parts.js +2 -2
- package/build/modern/components/fieldset/primitives.js +1 -1
- package/build/modern/components/for.js +1 -1
- package/build/modern/components/notifications/center.js +8 -8
- package/build/modern/components/notifications/close-trigger.js +3 -3
- package/build/modern/components/notifications/index.d.ts +1 -1
- package/build/modern/components/notifications/index.js +8 -8
- package/build/modern/components/notifications/match-icon.js +2 -2
- package/build/modern/components/notifications/parts.js +2 -2
- package/build/modern/components/notifications/primitives.d.ts +1 -1
- package/build/modern/components/notifications/primitives.js +1 -1
- package/build/modern/components/radio/index.js +3 -3
- package/build/modern/components/radio/parts.js +2 -2
- package/build/modern/components/radio/primitives.js +1 -1
- package/build/modern/components/radio/radio.js +2 -2
- package/build/modern/components/rating/index.js +4 -4
- package/build/modern/components/rating/parts.js +2 -2
- package/build/modern/components/rating/primitives.js +1 -1
- package/build/modern/components/rating/rating.js +4 -4
- package/build/modern/components/select/index.js +9 -9
- package/build/modern/components/select/option-group.js +2 -2
- package/build/modern/components/select/parts.js +2 -2
- package/build/modern/components/select/primitives.js +1 -1
- package/build/modern/components/select/select.js +5 -5
- package/build/modern/components/switch/index.js +4 -4
- package/build/modern/components/switch/parts.js +2 -2
- package/build/modern/components/switch/primitives.js +1 -1
- package/build/modern/components/switch/switch.js +3 -3
- package/build/modern/components/table/index.js +6 -6
- package/build/modern/components/table/parts.js +2 -2
- package/build/modern/components/table/primitives.js +1 -1
- package/build/modern/components/table/table.js +3 -3
- package/build/modern/components/tabs/index.js +3 -3
- package/build/modern/components/tabs/parts.js +2 -2
- package/build/modern/components/tabs/primitives.js +1 -1
- package/build/modern/components/tabs/tabs.js +3 -3
- package/build/modern/components/toggle/index.js +2 -2
- package/build/modern/components/toggle/parts.js +2 -2
- package/build/modern/components/toggle/primitives.js +1 -1
- package/build/modern/config/defineIcons.js +2 -2
- package/build/modern/config/icons/checkbox.icons.d.ts +0 -2
- package/build/modern/config/icons/checkbox.icons.js +1 -1
- package/build/modern/config/index.js +3 -3
- package/build/modern/context/confirm-modal.js +13 -13
- package/build/modern/context/field.js +3 -3
- package/build/modern/context/field.js.map +1 -1
- package/build/modern/context/navMenu.js +1 -1
- package/build/modern/context/prompt-modal.js +20 -20
- package/build/modern/context/theme.js +1 -1
- package/build/modern/hooks/useModal.d.ts +2 -2
- package/build/modern/hooks/useModal.js +23 -3
- package/build/modern/hooks/useModal.js.map +1 -1
- package/build/modern/index.d.ts +20 -30
- package/build/modern/index.js +256 -276
- package/build/modern/index.js.map +1 -1
- package/package.json +14 -12
- package/src/.DS_Store +0 -0
- package/src/aria-helpers/nav-menu.aria.ts +3 -0
- package/src/aria-helpers/trap-focus.aria.ts +4 -1
- package/src/components/.DS_Store +0 -0
- package/src/components/CircularProgress.tsx +2 -2
- package/src/components/FileStatus.tsx +3 -6
- package/src/components/FileUploader.tsx +4 -4
- package/src/components/IconButton.tsx +3 -6
- package/src/components/Menu.tsx +13 -92
- package/src/components/Portal.tsx +6 -6
- package/src/components/ProgressBar.tsx +2 -2
- package/src/components/Show.tsx +13 -11
- package/src/components/Spinner.tsx +3 -4
- package/src/components/Tag.tsx +2 -2
- package/src/components/Text.tsx +3 -6
- package/src/components/Tooltip.tsx +2 -2
- package/src/components/accordion/item-group.tsx +8 -4
- package/src/components/accordion/item-indicator.tsx +1 -1
- package/src/components/accordion/primitives.tsx +2 -5
- package/src/components/admonition/admonition.tsx +3 -3
- package/src/components/admonition/match-avatar.tsx +1 -1
- package/src/components/admonition/primitives.tsx +2 -5
- package/src/components/avatar/avatar.tsx +2 -2
- package/src/components/avatar/primitives.tsx +2 -5
- package/src/components/button/button.tsx +3 -6
- package/src/components/checkbox/checkbox.tsx +1 -1
- package/src/components/checkbox/primitives.tsx +2 -5
- package/src/components/combobox/combobox.tsx +2 -2
- package/src/components/combobox/primitives.tsx +2 -5
- package/src/components/cta-dialog/provider.tsx +2 -2
- package/src/components/cta-dialog/trigger-item.tsx +2 -2
- package/src/components/date-picker/primitives.tsx +63 -15
- package/src/components/date-picker/view-control-group.tsx +1 -1
- package/src/components/deprecated/FieldMessage.tsx +2 -2
- package/src/components/deprecated/FieldsetLabel.tsx +2 -2
- package/src/components/deprecated/Label.tsx +2 -2
- package/src/components/deprecated/Legend.tsx +3 -3
- package/src/components/deprecated/Modal.tsx +8 -14
- package/src/components/deprecated/ModalDescription.tsx +2 -2
- package/src/components/deprecated/ModalHeader.tsx +2 -2
- package/src/components/deprecated/ModalHeading.tsx +2 -2
- package/src/components/deprecated/NavMenuLink.tsx +2 -2
- package/src/components/deprecated/NavMenuList.tsx +3 -3
- package/src/components/deprecated/NavMenuTrigger.tsx +3 -3
- package/src/components/deprecated/Notification.tsx +4 -4
- package/src/components/deprecated/NotificationDescription.tsx +2 -2
- package/src/components/deprecated/NotificationHeading.tsx +2 -2
- package/src/components/dialog/close-icon-trigger.tsx +2 -2
- package/src/components/dialog/dialog.tsx +1 -1
- package/src/components/dialog/primitives.tsx +2 -5
- package/src/components/field/field.tsx +4 -4
- package/src/components/field/primitives.tsx +2 -2
- package/src/components/field/start-indicator.tsx +2 -2
- package/src/components/field/status-indicator.tsx +2 -2
- package/src/components/fieldset/fieldset.tsx +1 -1
- package/src/components/fieldset/primitives.tsx +2 -5
- package/src/components/for.tsx +1 -1
- package/src/components/notifications/center.tsx +8 -4
- package/src/components/notifications/match-icon.tsx +1 -1
- package/src/components/notifications/primitives.tsx +6 -3
- package/src/components/radio/primitives.tsx +2 -5
- package/src/components/radio/radio.tsx +1 -1
- package/src/components/rating/primitives.tsx +2 -2
- package/src/components/rating/rating.tsx +2 -2
- package/src/components/select/primitives.tsx +2 -5
- package/src/components/select/select.tsx +2 -2
- package/src/components/switch/primitives.tsx +7 -4
- package/src/components/switch/switch.tsx +1 -1
- package/src/components/table/primitives.tsx +2 -2
- package/src/components/table/table.tsx +2 -2
- package/src/components/tabs/primitives.tsx +2 -2
- package/src/components/toggle/primitives.tsx +11 -3
- package/src/config/icons/checkbox.icons.tsx +2 -10
- package/src/context/confirm-modal.tsx +3 -3
- package/src/context/field.tsx +2 -4
- package/src/context/navMenu.tsx +8 -8
- package/src/context/prompt-modal.tsx +5 -5
- package/src/context/theme.tsx +1 -3
- package/src/hooks/useModal.ts +1 -1
- package/src/index.ts +2 -7
- package/build/legacy/context/notification-center/store.cjs +0 -66
- package/build/legacy/context/notification-center/store.cjs.map +0 -1
- package/build/legacy/context/notification-center/store.d.cts +0 -5
- package/build/legacy/context/notification-center/types.cjs +0 -19
- package/build/legacy/context/notification-center/types.cjs.map +0 -1
- package/build/legacy/context/notification-center/types.d.cts +0 -6
- package/build/legacy/context/notification-center.cjs +0 -381
- package/build/legacy/context/notification-center.cjs.map +0 -1
- package/build/legacy/context/notification-center.d.cts +0 -5
- package/build/modern/chunk-245SMQ45.js.map +0 -1
- package/build/modern/chunk-2FRF57EU.js.map +0 -1
- package/build/modern/chunk-3XE3QXUI.js.map +0 -1
- package/build/modern/chunk-4GFEWP76.js.map +0 -1
- package/build/modern/chunk-4HUK7YNZ.js.map +0 -1
- package/build/modern/chunk-5DY66QZD.js.map +0 -1
- package/build/modern/chunk-5RTNSVYU.js.map +0 -1
- package/build/modern/chunk-63F5MURH.js.map +0 -1
- package/build/modern/chunk-6QHOKCV3.js.map +0 -1
- package/build/modern/chunk-6WEW5OGL.js.map +0 -1
- package/build/modern/chunk-6WS765J3.js.map +0 -1
- package/build/modern/chunk-7HKULJ4G.js.map +0 -1
- package/build/modern/chunk-7JHQVQPS.js.map +0 -1
- package/build/modern/chunk-7OYOT5LK.js.map +0 -1
- package/build/modern/chunk-7SYJFI5E.js.map +0 -1
- package/build/modern/chunk-A464YKEL.js.map +0 -1
- package/build/modern/chunk-AIJ75ENY.js.map +0 -1
- package/build/modern/chunk-AO3GB72J.js.map +0 -1
- package/build/modern/chunk-AUALRL3U.js +0 -25
- package/build/modern/chunk-AUALRL3U.js.map +0 -1
- package/build/modern/chunk-BPRF34DU.js.map +0 -1
- package/build/modern/chunk-BUVVRQLZ.js +0 -15
- package/build/modern/chunk-BUVVRQLZ.js.map +0 -1
- package/build/modern/chunk-CIMY2U22.js +0 -10
- package/build/modern/chunk-CIMY2U22.js.map +0 -1
- package/build/modern/chunk-CNA2VKAH.js.map +0 -1
- package/build/modern/chunk-CPNKDKC2.js.map +0 -1
- package/build/modern/chunk-CYSLIGNU.js.map +0 -1
- package/build/modern/chunk-D7MAAGNA.js.map +0 -1
- package/build/modern/chunk-D7UIWAFO.js.map +0 -1
- package/build/modern/chunk-DEXJQ6UI.js.map +0 -1
- package/build/modern/chunk-DRDNNRU3.js.map +0 -1
- package/build/modern/chunk-DXOKSZVQ.js +0 -12
- package/build/modern/chunk-DYQBRCZC.js.map +0 -1
- package/build/modern/chunk-E3PAEB7Y.js.map +0 -1
- package/build/modern/chunk-IHQSE4LR.js +0 -78
- package/build/modern/chunk-IHQSE4LR.js.map +0 -1
- package/build/modern/chunk-IPC7LQ4Q.js.map +0 -1
- package/build/modern/chunk-IQJDVFPP.js +0 -10
- package/build/modern/chunk-IQJDVFPP.js.map +0 -1
- package/build/modern/chunk-JF76VIL3.js.map +0 -1
- package/build/modern/chunk-JIZQFTW6.js.map +0 -1
- package/build/modern/chunk-JLUIGY2U.js.map +0 -1
- package/build/modern/chunk-JWF7FK7T.js.map +0 -1
- package/build/modern/chunk-KGQG5JGW.js +0 -27
- package/build/modern/chunk-KGQG5JGW.js.map +0 -1
- package/build/modern/chunk-KJMCUYWV.js.map +0 -1
- package/build/modern/chunk-L7N24B6B.js.map +0 -1
- package/build/modern/chunk-LLZE2RBB.js.map +0 -1
- package/build/modern/chunk-LMBMMBKU.js.map +0 -1
- package/build/modern/chunk-LPALHB6R.js.map +0 -1
- package/build/modern/chunk-LZWNHXRP.js.map +0 -1
- package/build/modern/chunk-MH6CIBDU.js.map +0 -1
- package/build/modern/chunk-MZMZAX4E.js.map +0 -1
- package/build/modern/chunk-N4RPMT6J.js.map +0 -1
- package/build/modern/chunk-NMDAHO2K.js.map +0 -1
- package/build/modern/chunk-NR5XDIJ7.js.map +0 -1
- package/build/modern/chunk-OSAYA6GH.js.map +0 -1
- package/build/modern/chunk-Q3I4H6EC.js +0 -21
- package/build/modern/chunk-Q3I4H6EC.js.map +0 -1
- package/build/modern/chunk-QCBLRACK.js.map +0 -1
- package/build/modern/chunk-QJ3CJ4CR.js +0 -22
- package/build/modern/chunk-QJ3CJ4CR.js.map +0 -1
- package/build/modern/chunk-QQCB6JXW.js.map +0 -1
- package/build/modern/chunk-R7IDIIST.js.map +0 -1
- package/build/modern/chunk-RD2YPFRA.js.map +0 -1
- package/build/modern/chunk-RKGFPKKK.js.map +0 -1
- package/build/modern/chunk-RU5LOXWI.js.map +0 -1
- package/build/modern/chunk-RUR5MV54.js.map +0 -1
- package/build/modern/chunk-SRNDDY5D.js.map +0 -1
- package/build/modern/chunk-STLN7BMJ.js.map +0 -1
- package/build/modern/chunk-SWX5JWZR.js +0 -12
- package/build/modern/chunk-SWX5JWZR.js.map +0 -1
- package/build/modern/chunk-TNSIYRF7.js.map +0 -1
- package/build/modern/chunk-UCL7P2OG.js.map +0 -1
- package/build/modern/chunk-V3M3ZOQI.js +0 -38
- package/build/modern/chunk-V3M3ZOQI.js.map +0 -1
- package/build/modern/chunk-V6LNXFJV.js +0 -16
- package/build/modern/chunk-V6LNXFJV.js.map +0 -1
- package/build/modern/chunk-VHCJ25QC.js.map +0 -1
- package/build/modern/chunk-VNPLKMEM.js.map +0 -1
- package/build/modern/chunk-W47QEZD5.js.map +0 -1
- package/build/modern/chunk-WECB67DC.js +0 -12
- package/build/modern/chunk-WECB67DC.js.map +0 -1
- package/build/modern/chunk-XVOEBY5S.js.map +0 -1
- package/build/modern/chunk-YOTXFCCC.js.map +0 -1
- package/build/modern/chunk-Z3FDG263.js.map +0 -1
- package/build/modern/chunk-Z52R6ABJ.js.map +0 -1
- package/build/modern/context/notification-center/store.d.ts +0 -5
- package/build/modern/context/notification-center/store.js +0 -15
- package/build/modern/context/notification-center/store.js.map +0 -1
- package/build/modern/context/notification-center/types.d.ts +0 -6
- package/build/modern/context/notification-center/types.js +0 -1
- package/build/modern/context/notification-center/types.js.map +0 -1
- package/build/modern/context/notification-center.d.ts +0 -5
- package/build/modern/context/notification-center.js +0 -183
- package/build/modern/context/notification-center.js.map +0 -1
- package/src/context/notification-center/store.ts +0 -88
- package/src/context/notification-center/types.ts +0 -28
- package/src/context/notification-center.tsx +0 -257
- /package/build/modern/{chunk-R4KLHRCL.js.map → chunk-25P3FUUT.js.map} +0 -0
- /package/build/modern/{chunk-FZ53535Q.js.map → chunk-2CZWHED6.js.map} +0 -0
- /package/build/modern/{chunk-JAAMD5EH.js.map → chunk-2IYWFZTK.js.map} +0 -0
- /package/build/modern/{chunk-KWZ3CEG6.js.map → chunk-52ZQ26IV.js.map} +0 -0
- /package/build/modern/{chunk-XBUXVNTY.js.map → chunk-5FC7HIAR.js.map} +0 -0
- /package/build/modern/{chunk-TEMFCS72.js.map → chunk-5HEU3SYR.js.map} +0 -0
- /package/build/modern/{chunk-4IXQNNAM.js.map → chunk-6UVR3VGK.js.map} +0 -0
- /package/build/modern/{chunk-6TIMBGFL.js.map → chunk-ADZRQNW3.js.map} +0 -0
- /package/build/modern/{chunk-6HOLE2JH.js.map → chunk-CEJIKL6N.js.map} +0 -0
- /package/build/modern/{chunk-QDXU6G3X.js.map → chunk-D6PFYSIP.js.map} +0 -0
- /package/build/modern/{chunk-EH36PXVP.js.map → chunk-FAQ3F72W.js.map} +0 -0
- /package/build/modern/{chunk-2CVGNLIM.js.map → chunk-GC6JUHVS.js.map} +0 -0
- /package/build/modern/{chunk-IASVL7CW.js.map → chunk-GUAF4FXQ.js.map} +0 -0
- /package/build/modern/{chunk-OS73F4SR.js.map → chunk-GYUCW2QK.js.map} +0 -0
- /package/build/modern/{chunk-BIDE4IJG.js.map → chunk-H4SH6ORP.js.map} +0 -0
- /package/build/modern/{chunk-HUN7VQBT.js.map → chunk-I4EGYD24.js.map} +0 -0
- /package/build/modern/{chunk-32M5JS5F.js.map → chunk-ILROS7ST.js.map} +0 -0
- /package/build/modern/{chunk-SYPAA5YF.js.map → chunk-IUF74GEL.js.map} +0 -0
- /package/build/modern/{chunk-WVFEJCUN.js.map → chunk-J76SGDYP.js.map} +0 -0
- /package/build/modern/{chunk-RQCJKDXU.js.map → chunk-JQYW4IOC.js.map} +0 -0
- /package/build/modern/{chunk-JQJTQVPI.js.map → chunk-KEGLWDD6.js.map} +0 -0
- /package/build/modern/{chunk-KZDEDAIK.js.map → chunk-MTD4JSHT.js.map} +0 -0
- /package/build/modern/{chunk-FUL2VRDU.js.map → chunk-MZXSSTS7.js.map} +0 -0
- /package/build/modern/{chunk-ILSKGNUA.js.map → chunk-N6XHXPBI.js.map} +0 -0
- /package/build/modern/{chunk-LVHQGXJK.js.map → chunk-NP73HOHI.js.map} +0 -0
- /package/build/modern/{chunk-7TQRTBUP.js.map → chunk-NQ22M7U7.js.map} +0 -0
- /package/build/modern/{chunk-V243YFI3.js.map → chunk-NYEUNVKR.js.map} +0 -0
- /package/build/modern/{chunk-MR4DX76C.js.map → chunk-NYVKL2IS.js.map} +0 -0
- /package/build/modern/{chunk-XBDEIBW2.js.map → chunk-QNZIH2KG.js.map} +0 -0
- /package/build/modern/{chunk-M7T3MBFB.js.map → chunk-RT7OJ4X5.js.map} +0 -0
- /package/build/modern/{chunk-BJJ4XAVO.js.map → chunk-RYRB5GPN.js.map} +0 -0
- /package/build/modern/{chunk-FCSO6N2Y.js.map → chunk-V6EAWUCQ.js.map} +0 -0
- /package/build/modern/{chunk-HIC7Z23X.js.map → chunk-V6ZOASMM.js.map} +0 -0
- /package/build/modern/{chunk-YUNLWTUB.js.map → chunk-W337WQTU.js.map} +0 -0
- /package/build/modern/{chunk-XTNGF4D6.js.map → chunk-YOYCS3MD.js.map} +0 -0
- /package/build/modern/{chunk-URO5I5AQ.js.map → chunk-ZL7AX5EM.js.map} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Avatar
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
Show
|
|
6
|
-
} from "./chunk-BUVVRQLZ.js";
|
|
3
|
+
} from "./chunk-CF4TCMJI.js";
|
|
7
4
|
import {
|
|
8
5
|
useCerberusContext
|
|
9
6
|
} from "./chunk-GITT5645.js";
|
|
7
|
+
import {
|
|
8
|
+
Show
|
|
9
|
+
} from "./chunk-VEAC4I3F.js";
|
|
10
10
|
|
|
11
11
|
// src/components/FileUploader.tsx
|
|
12
|
-
import { cx } from "
|
|
13
|
-
import { vstack } from "
|
|
14
|
-
import { fileUploader } from "
|
|
12
|
+
import { cx } from "styled-system/css";
|
|
13
|
+
import { vstack } from "styled-system/patterns";
|
|
14
|
+
import { fileUploader } from "styled-system/recipes";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
function FileUploader(props) {
|
|
17
17
|
const { icons } = useCerberusContext();
|
|
@@ -40,7 +40,7 @@ function FileUploader(props) {
|
|
|
40
40
|
),
|
|
41
41
|
htmlFor: props.name,
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */ jsx(Show, { when:
|
|
43
|
+
/* @__PURE__ */ jsx(Show, { when: props.heading, children: /* @__PURE__ */ jsx("p", { className: styles.heading, children: props.heading }) }),
|
|
44
44
|
"Import ",
|
|
45
45
|
props.accept?.replace(",", ", "),
|
|
46
46
|
" files",
|
|
@@ -64,4 +64,4 @@ function FileUploader(props) {
|
|
|
64
64
|
export {
|
|
65
65
|
FileUploader
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-D7QIPJQC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/FileUploader.tsx"],"sourcesContent":["'use client'\n\nimport { cx } from 'styled-system/css'\nimport { vstack } from 'styled-system/patterns'\nimport { type InputHTMLAttributes } from 'react'\nimport { Show } from './Show'\nimport { fileUploader } from 'styled-system/recipes'\nimport { useCerberusContext } from '../context/cerberus'\nimport { Avatar } from './avatar/avatar'\n\nexport interface FileUploaderProps\n extends InputHTMLAttributes<HTMLInputElement> {\n /**\n * The optional heading to display in the FileUploader component.\n */\n heading?: string\n /**\n * The name of the file input element.\n */\n name: string\n /**\n * Disable the FileUploader component. Good for single-use file uploads.\n */\n disabled?: boolean\n}\n\n/**\n * A component that allows the user to upload files.\n * @see https://cerberus.digitalu.design/react/file-uploader\n */\nexport function FileUploader(props: FileUploaderProps) {\n const { icons } = useCerberusContext()\n const styles = fileUploader()\n const { waitingFileUploader: Icon } = icons\n\n return (\n <div\n {...(props.disabled ? { 'aria-disabled': true } : {})}\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.container,\n )}\n >\n <div className={styles.icon}>\n <Avatar gradient=\"charon-light\" fallback={<Icon />} />\n </div>\n\n <label\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.label,\n )}\n htmlFor={props.name}\n >\n <Show when={props.heading}>\n <p className={styles.heading}>{props.heading}</p>\n </Show>\n Import {props.accept?.replace(',', ', ')} files\n <p className={styles.description}>Click to select files</p>\n <input\n {...props}\n className={cx(props.className, styles.input)}\n type=\"file\"\n />\n </label>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;AAEA,SAAS,UAAU;AACnB,SAAS,cAAc;AAGvB,SAAS,oBAAoB;AAwCqB,cAG5C,YAH4C;AAhB3C,SAAS,aAAa,OAA0B;AACrD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,SAAS,aAAa;AAC5B,QAAM,EAAE,qBAAqB,KAAK,IAAI;AAEtC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAI,MAAM,WAAW,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAAA,MACnD,WAAW;AAAA,QACT,OAAO;AAAA,UACL,SAAS;AAAA,QACX,CAAC;AAAA,QACD,OAAO;AAAA,MACT;AAAA,MAEA;AAAA,4BAAC,SAAI,WAAW,OAAO,MACrB,8BAAC,UAAO,UAAS,gBAAe,UAAU,oBAAC,QAAK,GAAI,GACtD;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW;AAAA,cACT,OAAO;AAAA,gBACL,SAAS;AAAA,cACX,CAAC;AAAA,cACD,OAAO;AAAA,YACT;AAAA,YACA,SAAS,MAAM;AAAA,YAEf;AAAA,kCAAC,QAAK,MAAM,MAAM,SAChB,8BAAC,OAAE,WAAW,OAAO,SAAU,gBAAM,SAAQ,GAC/C;AAAA,cAAO;AAAA,cACC,MAAM,QAAQ,QAAQ,KAAK,IAAI;AAAA,cAAE;AAAA,cACzC,oBAAC,OAAE,WAAW,OAAO,aAAa,mCAAqB;AAAA,cACvD;AAAA,gBAAC;AAAA;AAAA,kBACE,GAAG;AAAA,kBACJ,WAAW,GAAG,MAAM,WAAW,OAAO,KAAK;AAAA,kBAC3C,MAAK;AAAA;AAAA,cACP;AAAA;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z2KBUTCO.js";
|
|
4
4
|
import {
|
|
5
5
|
DialogCloseTrigger,
|
|
6
6
|
DialogDescription,
|
|
7
7
|
DialogHeading,
|
|
8
8
|
DialogProvider
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
Avatar
|
|
12
|
-
} from "./chunk-N4RPMT6J.js";
|
|
9
|
+
} from "./chunk-SSR3CWJZ.js";
|
|
13
10
|
import {
|
|
14
11
|
Button
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GB7W3YNU.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
14
|
+
Avatar
|
|
15
|
+
} from "./chunk-CF4TCMJI.js";
|
|
19
16
|
import {
|
|
20
17
|
useCerberusContext
|
|
21
18
|
} from "./chunk-GITT5645.js";
|
|
19
|
+
import {
|
|
20
|
+
Show
|
|
21
|
+
} from "./chunk-VEAC4I3F.js";
|
|
22
22
|
|
|
23
23
|
// src/context/confirm-modal.tsx
|
|
24
24
|
import {
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
useRef,
|
|
30
30
|
useState
|
|
31
31
|
} from "react";
|
|
32
|
-
import { css } from "
|
|
33
|
-
import { HStack, VStack } from "
|
|
32
|
+
import { css } from "styled-system/css";
|
|
33
|
+
import { HStack, VStack } from "styled-system/jsx";
|
|
34
34
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
35
35
|
var ConfirmModalContext = createContext(null);
|
|
36
36
|
function ConfirmModal(props) {
|
|
@@ -153,4 +153,4 @@ export {
|
|
|
153
153
|
ConfirmModal,
|
|
154
154
|
useConfirmModal
|
|
155
155
|
};
|
|
156
|
-
//# sourceMappingURL=chunk-
|
|
156
|
+
//# sourceMappingURL=chunk-DHKSNGQX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/context/confirm-modal.tsx"],"sourcesContent":["'use client'\n\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n} from 'react'\nimport { css } from 'styled-system/css'\nimport { HStack, VStack } from 'styled-system/jsx'\nimport { Button } from '../components/button/button'\nimport { Show } from '../components/Show'\nimport { Avatar } from '../components/avatar/avatar'\nimport {\n Dialog,\n DialogCloseTrigger,\n DialogDescription,\n DialogHeading,\n DialogProvider,\n} from '../components/dialog'\nimport { useCerberusContext } from './cerberus'\n\n/**\n * This module provides a context and hook for the confirm modal.\n * @module\n */\n\nexport interface BaseConfirmOptions {\n /**\n * The heading of the confirm modal.\n */\n heading: string\n /**\n * The text for the action button.\n */\n actionText: string\n /**\n * The text for the cancel button.\n */\n cancelText: string\n}\n\nexport interface DestructiveConfirmOptions extends BaseConfirmOptions {\n /**\n * The kind of confirm modal to show.\n */\n kind?: 'destructive'\n /**\n * The description of the confirm modal. Can only be a string for destructive confirm modals.\n */\n description?: string\n}\n\nexport interface NonDestructiveConfirmModalOptions extends BaseConfirmOptions {\n /**\n * The kind of confirm modal to show.\n * @default 'non-destructive'\n */\n kind?: 'non-destructive'\n /**\n * The description of the confirm modal. Can be a ReactNode for non-destructive kind if you need to display text links.\n * @example\n * ```tsx\n * description: <>Use a Fragment because we put the content within a Paragraph tag.</>\n */\n description?: ReactNode\n}\n\nexport type ShowConfirmModalOptions =\n | NonDestructiveConfirmModalOptions\n | DestructiveConfirmOptions\n\nexport type ShowResult =\n | ((value: boolean | PromiseLike<boolean>) => void)\n | null\n\nexport interface ConfirmModalValue {\n show: (options: ShowConfirmModalOptions) => Promise<boolean>\n}\n\nconst ConfirmModalContext = createContext<ConfirmModalValue | null>(null)\n\nexport type ConfirmModalProviderProps = PropsWithChildren<unknown>\n\n/**\n * Provides a confirm modal to the app.\n * @see https://cerberus.digitalu.design/react/confirm-modal\n * @example\n * ```tsx\n * // Wrap the Provider around the root of the feature.\n * <ConfirmModal>\n * <SomeFeatureSection />\n * </ConfirmModal>\n *\n * // Use the hook to show the confirm modal.\n * const confirm = useConfirmModal()\n *\n * const handleClick = useCallback(async () => {\n * const userConsent = await confirm.show({\n * heading: 'Add new payment method?',\n * description:\n * 'This will add a new payment method to your account to be billed for future purchases.',\n * actionText: 'Yes, add payment method',\n * cancelText: 'No, cancel',\n * })\n * setConsent(userConsent)\n * }, [confirm])\n * ```\n */\nexport function ConfirmModal(\n props: PropsWithChildren<ConfirmModalProviderProps>,\n) {\n const [open, setOpen] = useState<boolean>(false)\n const [content, setContent] = useState<ShowConfirmModalOptions | null>(null)\n const resolveRef = useRef<ShowResult>(null)\n const kind = content?.kind ?? 'non-destructive'\n\n const { icons } = useCerberusContext()\n const { confirmModal: ConfirmIcon } = icons\n\n const palette = useMemo(\n () => (kind === 'destructive' ? 'danger' : 'action'),\n [kind],\n )\n\n const handleChoice = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => {\n const target = e.currentTarget as HTMLButtonElement\n if (target.value === 'true') {\n resolveRef.current?.(true)\n }\n resolveRef.current?.(false)\n setOpen(false)\n },\n [setOpen],\n )\n\n const handleShow = useCallback(\n (options: ShowConfirmModalOptions) => {\n return new Promise<boolean>((resolve) => {\n setContent({ ...options })\n setOpen(true)\n resolveRef.current = resolve\n })\n },\n [setOpen, setContent],\n )\n\n const value = useMemo(\n () => ({\n show: handleShow,\n }),\n [handleShow],\n )\n\n return (\n <ConfirmModalContext.Provider value={value}>\n {props.children}\n\n <DialogProvider open={open} onOpenChange={(e) => setOpen(e.open)}>\n <Dialog size=\"sm\">\n <VStack gap=\"xl\" w=\"full\">\n <VStack alignItems=\"flex-start\" gap=\"md\" w=\"full\">\n <HStack\n alignSelf=\"center\"\n justify=\"center\"\n paddingBlockEnd=\"md\"\n w=\"full\"\n >\n <Show\n when={palette === 'danger'}\n fallback={\n <Avatar\n gradient=\"charon-light\"\n fallback={<ConfirmIcon size={24} />}\n />\n }\n >\n <Avatar\n gradient=\"hades-dark\"\n fallback={<ConfirmIcon size={24} />}\n />\n </Show>\n </HStack>\n <DialogHeading>{content?.heading}</DialogHeading>\n <DialogDescription>{content?.description}</DialogDescription>\n </VStack>\n\n <HStack gap=\"4\" w=\"full\">\n <Button\n autoFocus\n className={css({\n w: '1/2',\n })}\n name=\"confirm\"\n onClick={handleChoice}\n palette={palette}\n value=\"true\"\n >\n {content?.actionText}\n </Button>\n <DialogCloseTrigger asChild>\n <Button\n className={css({\n w: '1/2',\n })}\n name=\"cancel\"\n onClick={handleChoice}\n usage=\"outlined\"\n value=\"false\"\n >\n {content?.cancelText}\n </Button>\n </DialogCloseTrigger>\n </HStack>\n </VStack>\n </Dialog>\n </DialogProvider>\n </ConfirmModalContext.Provider>\n )\n}\n\nexport function useConfirmModal(): ConfirmModalValue {\n const context = useContext(ConfirmModalContext)\n if (context === null) {\n throw new Error(\n 'useConfirmModal must be used within a ConfirmModal Provider',\n )\n }\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP,SAAS,WAAW;AACpB,SAAS,QAAQ,cAAc;AAyJnB,SAYoB,KAZpB;AAlFZ,IAAM,sBAAsB,cAAwC,IAAI;AA6BjE,SAAS,aACd,OACA;AACA,QAAM,CAAC,MAAM,OAAO,IAAI,SAAkB,KAAK;AAC/C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAyC,IAAI;AAC3E,QAAM,aAAa,OAAmB,IAAI;AAC1C,QAAM,OAAO,SAAS,QAAQ;AAE9B,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,cAAc,YAAY,IAAI;AAEtC,QAAM,UAAU;AAAA,IACd,MAAO,SAAS,gBAAgB,WAAW;AAAA,IAC3C,CAAC,IAAI;AAAA,EACP;AAEA,QAAM,eAAe;AAAA,IACnB,CAAC,MAAqC;AACpC,YAAM,SAAS,EAAE;AACjB,UAAI,OAAO,UAAU,QAAQ;AAC3B,mBAAW,UAAU,IAAI;AAAA,MAC3B;AACA,iBAAW,UAAU,KAAK;AAC1B,cAAQ,KAAK;AAAA,IACf;AAAA,IACA,CAAC,OAAO;AAAA,EACV;AAEA,QAAM,aAAa;AAAA,IACjB,CAAC,YAAqC;AACpC,aAAO,IAAI,QAAiB,CAAC,YAAY;AACvC,mBAAW,EAAE,GAAG,QAAQ,CAAC;AACzB,gBAAQ,IAAI;AACZ,mBAAW,UAAU;AAAA,MACvB,CAAC;AAAA,IACH;AAAA,IACA,CAAC,SAAS,UAAU;AAAA,EACtB;AAEA,QAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,CAAC,UAAU;AAAA,EACb;AAEA,SACE,qBAAC,oBAAoB,UAApB,EAA6B,OAC3B;AAAA,UAAM;AAAA,IAEP,oBAAC,kBAAe,MAAY,cAAc,CAAC,MAAM,QAAQ,EAAE,IAAI,GAC7D,8BAAC,UAAO,MAAK,MACX,+BAAC,UAAO,KAAI,MAAK,GAAE,QACjB;AAAA,2BAAC,UAAO,YAAW,cAAa,KAAI,MAAK,GAAE,QACzC;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,SAAQ;AAAA,YACR,iBAAgB;AAAA,YAChB,GAAE;AAAA,YAEF;AAAA,cAAC;AAAA;AAAA,gBACC,MAAM,YAAY;AAAA,gBAClB,UACE;AAAA,kBAAC;AAAA;AAAA,oBACC,UAAS;AAAA,oBACT,UAAU,oBAAC,eAAY,MAAM,IAAI;AAAA;AAAA,gBACnC;AAAA,gBAGF;AAAA,kBAAC;AAAA;AAAA,oBACC,UAAS;AAAA,oBACT,UAAU,oBAAC,eAAY,MAAM,IAAI;AAAA;AAAA,gBACnC;AAAA;AAAA,YACF;AAAA;AAAA,QACF;AAAA,QACA,oBAAC,iBAAe,mBAAS,SAAQ;AAAA,QACjC,oBAAC,qBAAmB,mBAAS,aAAY;AAAA,SAC3C;AAAA,MAEA,qBAAC,UAAO,KAAI,KAAI,GAAE,QAChB;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAS;AAAA,YACT,WAAW,IAAI;AAAA,cACb,GAAG;AAAA,YACL,CAAC;AAAA,YACD,MAAK;AAAA,YACL,SAAS;AAAA,YACT;AAAA,YACA,OAAM;AAAA,YAEL,mBAAS;AAAA;AAAA,QACZ;AAAA,QACA,oBAAC,sBAAmB,SAAO,MACzB;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,IAAI;AAAA,cACb,GAAG;AAAA,YACL,CAAC;AAAA,YACD,MAAK;AAAA,YACL,SAAS;AAAA,YACT,OAAM;AAAA,YACN,OAAM;AAAA,YAEL,mBAAS;AAAA;AAAA,QACZ,GACF;AAAA,SACF;AAAA,OACF,GACF,GACF;AAAA,KACF;AAEJ;AAEO,SAAS,kBAAqC;AACnD,QAAM,UAAU,WAAW,mBAAmB;AAC9C,MAAI,YAAY,MAAM;AACpB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/components/field/start-indicator.tsx
|
|
2
|
-
import { cx } from "
|
|
3
|
-
import { field } from "
|
|
2
|
+
import { cx } from "styled-system/css";
|
|
3
|
+
import { field } from "styled-system/recipes";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
function FieldStartIndicator(props) {
|
|
6
6
|
const styles = field();
|
|
@@ -18,4 +18,4 @@ function FieldStartIndicator(props) {
|
|
|
18
18
|
export {
|
|
19
19
|
FieldStartIndicator
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-EMDNETC7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/field/start-indicator.tsx"],"sourcesContent":["import { cx } from 'styled-system/css'\nimport { field } from 'styled-system/recipes'\nimport type { HTMLAttributes } from 'react'\n\nexport type FieldIndicatorProps = HTMLAttributes<HTMLSpanElement>\n\n/**\n * The start indicator displays an indicator at the start of the Input.\n * @description [Field Docs](https://cerberus.digitalu.design/react/field)\n */\nexport function FieldStartIndicator(props: FieldIndicatorProps) {\n const styles = field()\n\n if (!props.children) return null\n\n return (\n <span\n {...props}\n data-part=\"start-indicator\"\n className={cx(props.className, styles.startIndicator)}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAa;AAelB;AANG,SAAS,oBAAoB,OAA4B;AAC9D,QAAM,SAAS,MAAM;AAErB,MAAI,CAAC,MAAM,SAAU,QAAO;AAE5B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,aAAU;AAAA,MACV,WAAW,GAAG,MAAM,WAAW,OAAO,cAAc;AAAA;AAAA,EACtD;AAEJ;","names":[]}
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Checkbox
|
|
4
4
|
} from "@ark-ui/react";
|
|
5
|
-
import { cx } from "
|
|
6
|
-
import {
|
|
7
|
-
checkbox
|
|
8
|
-
} from "@cerberus/styled-system/recipes";
|
|
5
|
+
import { cx } from "styled-system/css";
|
|
6
|
+
import { checkbox } from "styled-system/recipes";
|
|
9
7
|
import { jsx } from "react/jsx-runtime";
|
|
10
8
|
function CheckboxRoot(props) {
|
|
11
9
|
const styles = checkbox();
|
|
@@ -59,4 +57,4 @@ export {
|
|
|
59
57
|
CheckboxHiddenInput,
|
|
60
58
|
CheckboxGroup
|
|
61
59
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-ENJUQNVT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/checkbox/primitives.tsx"],"sourcesContent":["import {\n Checkbox,\n type CheckboxControlProps,\n type CheckboxGroupProps,\n type CheckboxIndicatorProps,\n type CheckboxLabelProps,\n type CheckboxRootProps,\n} from '@ark-ui/react'\nimport { cx } from 'styled-system/css'\nimport { checkbox, type CheckboxVariantProps } from 'styled-system/recipes'\n\n/**\n * This module contains the Checkbox primitives.\n * @module 'react/checkbox'\n */\n\n/**\n * Checkbox Root component used to provide the context to all other checkbox\n * primitives.\n * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)\n * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)\n */\nexport function CheckboxRoot(props: CheckboxRootProps) {\n const styles = checkbox()\n return (\n <Checkbox.Root {...props} className={cx(styles.root, props.className)} />\n )\n}\n\n/**\n * Checkbox Label component used to display the label of the checkbox.\n * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)\n * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)\n */\nexport function CheckboxLabel(\n props: CheckboxLabelProps & CheckboxVariantProps,\n) {\n const { size, ...labelProps } = props\n const styles = checkbox({ size })\n return (\n <Checkbox.Label\n {...labelProps}\n className={cx(styles.label, labelProps.className)}\n />\n )\n}\n\n/**\n * Checkbox Control component used to display the control of the checkbox.\n * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)\n * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)\n */\nexport function CheckboxControl(\n props: CheckboxControlProps & CheckboxVariantProps,\n) {\n const { size, ...controlProps } = props\n const styles = checkbox({ size })\n return (\n <Checkbox.Control\n {...controlProps}\n className={cx(styles.control, controlProps.className)}\n />\n )\n}\n\n/**\n * Checkbox Indicator component used to display the indicator of the checkbox.\n * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)\n * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)\n */\nexport function CheckboxIndicator(props: CheckboxIndicatorProps) {\n const styles = checkbox()\n return (\n <Checkbox.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * Checkbox HiddenInput component used to provide the native checkbox input.\n * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)\n * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)\n */\nexport function CheckboxHiddenInput(props: CheckboxControlProps) {\n return <Checkbox.HiddenInput {...props} />\n}\n\n/**\n * Checkbox Group is used to group checkboxes together in a consistently styled\n * way.\n * @definition [Cerberus Docs](https://cerberus.digitalu.design/react/checkbox)\n * @definition [Primitive Docs](https://ark-ui.com/react/docs/components/checkbox)\n */\nexport function CheckboxGroup(props: CheckboxGroupProps) {\n const styles = checkbox()\n return (\n <Checkbox.Group {...props} className={cx(styles.group, props.className)} />\n )\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,OAMK;AACP,SAAS,UAAU;AACnB,SAAS,gBAA2C;AAgBhD;AAHG,SAAS,aAAa,OAA0B;AACrD,QAAM,SAAS,SAAS;AACxB,SACE,oBAAC,SAAS,MAAT,EAAe,GAAG,OAAO,WAAW,GAAG,OAAO,MAAM,MAAM,SAAS,GAAG;AAE3E;AAOO,SAAS,cACd,OACA;AACA,QAAM,EAAE,MAAM,GAAG,WAAW,IAAI;AAChC,QAAM,SAAS,SAAS,EAAE,KAAK,CAAC;AAChC,SACE;AAAA,IAAC,SAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,OAAO,WAAW,SAAS;AAAA;AAAA,EAClD;AAEJ;AAOO,SAAS,gBACd,OACA;AACA,QAAM,EAAE,MAAM,GAAG,aAAa,IAAI;AAClC,QAAM,SAAS,SAAS,EAAE,KAAK,CAAC;AAChC,SACE;AAAA,IAAC,SAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,SAAS,aAAa,SAAS;AAAA;AAAA,EACtD;AAEJ;AAOO,SAAS,kBAAkB,OAA+B;AAC/D,QAAM,SAAS,SAAS;AACxB,SACE;AAAA,IAAC,SAAS;AAAA,IAAT;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,WAAW,MAAM,SAAS;AAAA;AAAA,EACjD;AAEJ;AAOO,SAAS,oBAAoB,OAA6B;AAC/D,SAAO,oBAAC,SAAS,aAAT,EAAsB,GAAG,OAAO;AAC1C;AAQO,SAAS,cAAc,OAA2B;AACvD,QAAM,SAAS,SAAS;AACxB,SACE,oBAAC,SAAS,OAAT,EAAgB,GAAG,OAAO,WAAW,GAAG,OAAO,OAAO,MAAM,SAAS,GAAG;AAE7E;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Show
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VEAC4I3F.js";
|
|
4
4
|
|
|
5
5
|
// src/components/deprecated/NavMenuLink.tsx
|
|
6
|
-
import { css, cx } from "
|
|
6
|
+
import { css, cx } from "styled-system/css";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
function NavMenuLink(props) {
|
|
9
9
|
const { as, ...nativeProps } = props;
|
|
@@ -45,4 +45,4 @@ function NavMenuLink(props) {
|
|
|
45
45
|
export {
|
|
46
46
|
NavMenuLink
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-F2MWSSK2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/deprecated/NavMenuLink.tsx"],"sourcesContent":["import type { AnchorHTMLAttributes, ElementType } from 'react'\nimport { css, cx } from 'styled-system/css'\nimport { Show } from '../Show'\n\n/**\n * This module contains the NavMenuLink component.\n * @module\n */\n\nexport interface NavMenuLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement> {\n /**\n * The element type to render as. Recommended to use for Next apps with the\n * `Link` component.\n */\n as?: ElementType\n}\n\n/**\n * @deprecated use the {@link Menu} family instead\n */\nexport function NavMenuLink(props: NavMenuLinkProps) {\n const { as, ...nativeProps } = props\n const hasAs = Boolean(as)\n const AsSub: ElementType = as!\n\n return (\n <li\n className={css({\n w: 'full',\n })}\n >\n <Show\n when={hasAs}\n fallback={\n <a\n {...nativeProps}\n className={cx(\n nativeProps.className,\n css({\n color: 'action.navigation.initial',\n textStyle: 'link',\n _hover: {\n color: 'action.navigation.hover',\n },\n }),\n )}\n />\n }\n >\n {hasAs && <AsSub {...nativeProps} />}\n </Show>\n </li>\n )\n}\n"],"mappings":";;;;;AACA,SAAS,KAAK,UAAU;AAkCd;AAdH,SAAS,YAAY,OAAyB;AACnD,QAAM,EAAE,IAAI,GAAG,YAAY,IAAI;AAC/B,QAAM,QAAQ,QAAQ,EAAE;AACxB,QAAM,QAAqB;AAE3B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,IAAI;AAAA,QACb,GAAG;AAAA,MACL,CAAC;AAAA,MAED;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,UACE;AAAA,YAAC;AAAA;AAAA,cACE,GAAG;AAAA,cACJ,WAAW;AAAA,gBACT,YAAY;AAAA,gBACZ,IAAI;AAAA,kBACF,OAAO;AAAA,kBACP,WAAW;AAAA,kBACX,QAAQ;AAAA,oBACN,OAAO;AAAA,kBACT;AAAA,gBACF,CAAC;AAAA,cACH;AAAA;AAAA,UACF;AAAA,UAGD,mBAAS,oBAAC,SAAO,GAAG,aAAa;AAAA;AAAA,MACpC;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DialogCloseTrigger
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
IconButton
|
|
6
|
-
} from "./chunk-SRNDDY5D.js";
|
|
3
|
+
} from "./chunk-SSR3CWJZ.js";
|
|
7
4
|
import {
|
|
8
5
|
useCerberusContext
|
|
9
6
|
} from "./chunk-GITT5645.js";
|
|
7
|
+
import {
|
|
8
|
+
IconButton
|
|
9
|
+
} from "./chunk-UH6XSYYD.js";
|
|
10
10
|
|
|
11
11
|
// src/components/dialog/close-icon-trigger.tsx
|
|
12
|
-
import { dialog } from "
|
|
13
|
-
import { cx } from "
|
|
12
|
+
import { dialog } from "styled-system/recipes";
|
|
13
|
+
import { cx } from "styled-system/css";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
function DialogCloseIconTrigger(props) {
|
|
16
16
|
const styles = dialog();
|
|
@@ -39,4 +39,4 @@ function DialogCloseIconTrigger(props) {
|
|
|
39
39
|
export {
|
|
40
40
|
DialogCloseIconTrigger
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
42
|
+
//# sourceMappingURL=chunk-F3XFJHGR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/dialog/close-icon-trigger.tsx"],"sourcesContent":["'use client'\n\nimport { type DialogCloseTriggerProps } from '@ark-ui/react/dialog'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { IconButton } from '../IconButton'\nimport { DialogCloseTrigger } from './primitives'\nimport { dialog } from 'styled-system/recipes'\nimport { cx } from 'styled-system/css'\n\n/**\n * This module contains the close trigger for the dialog.\n * @module react/dialog\n */\n\nexport function DialogCloseIconTrigger(props: DialogCloseTriggerProps) {\n const styles = dialog()\n\n const { icons } = useCerberusContext()\n const { close: CloseIcon } = icons\n\n return (\n <DialogCloseTrigger\n {...props}\n className={cx(styles.closeTrigger, props.className)}\n asChild\n >\n <IconButton\n ariaLabel=\"Close dialog\"\n palette=\"action\"\n size=\"lg\"\n usage=\"ghost\"\n >\n <CloseIcon />\n </IconButton>\n </DialogCloseTrigger>\n )\n}\n"],"mappings":";;;;;;;;;;;AAMA,SAAS,cAAc;AACvB,SAAS,UAAU;AAyBX;AAlBD,SAAS,uBAAuB,OAAgC;AACrE,QAAM,SAAS,OAAO;AAEtB,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,OAAO,UAAU,IAAI;AAE7B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,cAAc,MAAM,SAAS;AAAA,MAClD,SAAO;AAAA,MAEP;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,OAAM;AAAA,UAEN,8BAAC,aAAU;AAAA;AAAA,MACb;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TabsParts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W337WQTU.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tabs/tabs.tsx
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -21,4 +21,4 @@ var Tabs = {
|
|
|
21
21
|
export {
|
|
22
22
|
Tabs
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-FAQ3F72W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/aria-helpers/trap-focus.aria.ts"],"sourcesContent":["import type { KeyboardEvent, KeyboardEventHandler, RefObject } from 'react'\n\n/**\n * @deprecated will be removed in a future release\n */\nexport function trapFocus(\n modalRef: RefObject<HTMLDialogElement | null>,\n): KeyboardEventHandler<HTMLDialogElement> {\n const focusableElements =\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n const focusable = Array.from(\n modalRef.current?.querySelectorAll(focusableElements) ?? [],\n )\n const firstFocusable = focusable[0] as HTMLElement\n const lastFocusable = focusable[focusable.length - 1] as HTMLElement\n\n return function handleKeyDown(event: KeyboardEvent<HTMLDialogElement>) {\n if (event.key === 'Tab') {\n if (event.shiftKey) {\n if (document.activeElement === firstFocusable) {\n lastFocusable.focus()\n event.preventDefault()\n }\n } else {\n if (document.activeElement === lastFocusable) {\n firstFocusable.focus()\n event.preventDefault()\n }\n }\n }\n }\n}\n"],"mappings":";AAKO,SAAS,UACd,UACyC;AACzC,QAAM,oBACJ;AACF,QAAM,YAAY,MAAM;AAAA,IACtB,SAAS,SAAS,iBAAiB,iBAAiB,KAAK,CAAC;AAAA,EAC5D;AACA,QAAM,iBAAiB,UAAU,CAAC;AAClC,QAAM,gBAAgB,UAAU,UAAU,SAAS,CAAC;AAEpD,SAAO,SAAS,cAAc,OAAyC;AACrE,QAAI,MAAM,QAAQ,OAAO;AACvB,UAAI,MAAM,UAAU;AAClB,YAAI,SAAS,kBAAkB,gBAAgB;AAC7C,wBAAc,MAAM;AACpB,gBAAM,eAAe;AAAA,QACvB;AAAA,MACF,OAAO;AACL,YAAI,SAAS,kBAAkB,eAAe;AAC5C,yBAAe,MAAM;AACrB,gBAAM,eAAe;AAAA,QACvB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/aria-helpers/nav-menu.aria.ts"],"sourcesContent":["export interface NavTriggerAriaValues {\n controls: string\n expanded?: boolean\n}\n\ninterface NavTriggerAriaReturn {\n ['aria-controls']: string\n ['aria-expanded']: boolean\n}\n\n/**\n * @deprecated will be removed in a future release\n */\nexport function createNavTriggerProps(\n values: NavTriggerAriaValues,\n): NavTriggerAriaReturn {\n return {\n ['aria-controls']: values.controls,\n ['aria-expanded']: values.expanded ?? false,\n }\n}\n"],"mappings":";AAaO,SAAS,sBACd,QACsB;AACtB,SAAO;AAAA,IACL,CAAC,eAAe,GAAG,OAAO;AAAA,IAC1B,CAAC,eAAe,GAAG,OAAO,YAAY;AAAA,EACxC;AACF;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/context/navMenu.tsx
|
|
2
|
-
import { css } from "
|
|
2
|
+
import { css } from "styled-system/css";
|
|
3
3
|
import {
|
|
4
4
|
createContext,
|
|
5
5
|
useCallback,
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
NavMenu,
|
|
49
49
|
useNavMenuContext
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-FXWN3SPS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/context/navMenu.tsx"],"sourcesContent":["'use client'\n\nimport { css } from 'styled-system/css'\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useRef,\n useState,\n type PropsWithChildren,\n type RefObject,\n} from 'react'\n\n/**\n * This module provides a context and hook for the nav menu.\n * @module NavMenu\n */\n\nexport type NavTriggerRef = RefObject<HTMLButtonElement | null>\nexport type NavMenuRef = RefObject<HTMLUListElement | null>\n\nexport interface NavMenuContextValue {\n /**\n * The ref for the trigger button.\n */\n triggerRef: NavTriggerRef\n /**\n * The ref for the menu.\n */\n menuRef: NavMenuRef\n /**\n * Whether the menu is expanded.\n */\n expanded: boolean\n /**\n * Called when the menu button is clicked.\n */\n onToggle: () => void\n}\n\nconst NavMenuContext = createContext<NavMenuContextValue | null>(null)\n\n/**\n * @deprecated use the {@link Menu} family instead\n */\nexport function NavMenu(props: PropsWithChildren) {\n const triggerRef = useRef<HTMLButtonElement | null>(null)\n const menuRef = useRef<HTMLUListElement | null>(null)\n const [expanded, setExpanded] = useState<boolean>(false)\n\n const handleToggle = useCallback(() => {\n setExpanded((prev) => !prev)\n }, [])\n\n const value = useMemo(\n () => ({\n triggerRef,\n menuRef,\n expanded,\n onToggle: handleToggle,\n }),\n [expanded, handleToggle],\n )\n\n return (\n <NavMenuContext.Provider value={value}>\n <nav\n className={css({\n position: 'relative',\n })}\n >\n {props.children}\n </nav>\n </NavMenuContext.Provider>\n )\n}\n\n/**\n * Used to access the nav menu context.\n * @returns The nav menu context.\n */\nexport function useNavMenuContext(): NavMenuContextValue {\n const context = useContext(NavMenuContext)\n if (!context) {\n throw new Error('useNavMenuContext must be used within a NavMenu.')\n }\n return context\n}\n"],"mappings":";AAEA,SAAS,WAAW;AACpB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AAuDD;AA1BN,IAAM,iBAAiB,cAA0C,IAAI;AAK9D,SAAS,QAAQ,OAA0B;AAChD,QAAM,aAAa,OAAiC,IAAI;AACxD,QAAM,UAAU,OAAgC,IAAI;AACpD,QAAM,CAAC,UAAU,WAAW,IAAI,SAAkB,KAAK;AAEvD,QAAM,eAAe,YAAY,MAAM;AACrC,gBAAY,CAAC,SAAS,CAAC,IAAI;AAAA,EAC7B,GAAG,CAAC,CAAC;AAEL,QAAM,QAAQ;AAAA,IACZ,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU;AAAA,IACZ;AAAA,IACA,CAAC,UAAU,YAAY;AAAA,EACzB;AAEA,SACE,oBAAC,eAAe,UAAf,EAAwB,OACvB;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,IAAI;AAAA,QACb,UAAU;AAAA,MACZ,CAAC;AAAA,MAEA,gBAAM;AAAA;AAAA,EACT,GACF;AAEJ;AAMO,SAAS,oBAAyC;AACvD,QAAM,UAAU,WAAW,cAAc;AACzC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,kDAAkD;AAAA,EACpE;AACA,SAAO;AACT;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Spinner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AUI74W7J.js";
|
|
4
4
|
import {
|
|
5
5
|
Show
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VEAC4I3F.js";
|
|
7
7
|
|
|
8
8
|
// src/components/button/button.tsx
|
|
9
9
|
import { ark } from "@ark-ui/react/factory";
|
|
@@ -12,11 +12,9 @@ import {
|
|
|
12
12
|
useContext,
|
|
13
13
|
useMemo
|
|
14
14
|
} from "react";
|
|
15
|
-
import { cx } from "
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
} from "@cerberus/styled-system/recipes";
|
|
19
|
-
import { Box } from "@cerberus/styled-system/jsx";
|
|
15
|
+
import { cx } from "styled-system/css";
|
|
16
|
+
import { button } from "styled-system/recipes";
|
|
17
|
+
import { Box } from "styled-system/jsx";
|
|
20
18
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
21
19
|
var ButtonContext = createContext({
|
|
22
20
|
pending: false
|
|
@@ -50,4 +48,4 @@ export {
|
|
|
50
48
|
Button,
|
|
51
49
|
ButtonIcon
|
|
52
50
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-GB7W3YNU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/button/button.tsx"],"sourcesContent":["'use client'\n\nimport { ark, type HTMLArkProps } from '@ark-ui/react/factory'\nimport {\n type PropsWithChildren,\n createContext,\n useContext,\n useMemo,\n} from 'react'\nimport { cx } from 'styled-system/css'\nimport { button, type ButtonVariantProps } from 'styled-system/recipes'\nimport { Box } from 'styled-system/jsx'\nimport { Show } from '../Show'\nimport { Spinner } from '../Spinner'\n\n/**\n * This module contains the Button component.\n * @module\n */\n\ninterface ButtonContextValue {\n pending: boolean\n}\n\nconst ButtonContext = createContext<ButtonContextValue>({\n pending: false,\n})\n\nexport type ButtonProps = HTMLArkProps<'button'> &\n ButtonVariantProps & {\n pending?: boolean\n }\n\n/**\n * A component that allows the user to perform actions\n * @see https://cerberus.digitalu.design/react/button\n */\nexport function Button(props: ButtonProps) {\n const { palette, usage, shape, size, pending = false, ...nativeProps } = props\n const value = useMemo(() => ({ pending }), [pending])\n\n return (\n <ButtonContext.Provider value={value}>\n <ark.button\n {...nativeProps}\n disabled={pending || nativeProps.disabled}\n className={cx(\n nativeProps.className,\n button({\n palette,\n usage,\n shape,\n size,\n }),\n )}\n />\n </ButtonContext.Provider>\n )\n}\n\n/**\n * An icon to display in a button that utilizes the pending state to display\n * a loading spinner.\n */\nexport function ButtonIcon(props: PropsWithChildren<object>) {\n const { pending } = useContext(ButtonContext)\n return (\n <Show when={pending} fallback={<>{props.children}</>}>\n <Box w=\"4\">\n <Spinner />\n </Box>\n </Show>\n )\n}\n"],"mappings":";;;;;;;;AAEA,SAAS,WAA8B;AACvC;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AACnB,SAAS,cAAuC;AAChD,SAAS,WAAW;AAgCd,SAwB6B,UAxB7B;AAnBN,IAAM,gBAAgB,cAAkC;AAAA,EACtD,SAAS;AACX,CAAC;AAWM,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,SAAS,OAAO,OAAO,MAAM,UAAU,OAAO,GAAG,YAAY,IAAI;AACzE,QAAM,QAAQ,QAAQ,OAAO,EAAE,QAAQ,IAAI,CAAC,OAAO,CAAC;AAEpD,SACE,oBAAC,cAAc,UAAd,EAAuB,OACtB;AAAA,IAAC,IAAI;AAAA,IAAJ;AAAA,MACE,GAAG;AAAA,MACJ,UAAU,WAAW,YAAY;AAAA,MACjC,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF,GACF;AAEJ;AAMO,SAAS,WAAW,OAAkC;AAC3D,QAAM,EAAE,QAAQ,IAAI,WAAW,aAAa;AAC5C,SACE,oBAAC,QAAK,MAAM,SAAS,UAAU,gCAAG,gBAAM,UAAS,GAC/C,8BAAC,OAAI,GAAE,KACL,8BAAC,WAAQ,GACX,GACF;AAEJ;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WEL43I6Y.js";
|
|
4
4
|
|
|
5
5
|
// src/components/deprecated/Label.tsx
|
|
6
|
-
import { label } from "
|
|
7
|
-
import { cx } from "
|
|
6
|
+
import { label } from "styled-system/recipes";
|
|
7
|
+
import { cx } from "styled-system/css";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
function Label(props) {
|
|
10
10
|
const { size, ...nativeProps } = props;
|
|
@@ -20,4 +20,4 @@ function Label(props) {
|
|
|
20
20
|
export {
|
|
21
21
|
Label
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-GBCF6DOS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/deprecated/Label.tsx"],"sourcesContent":["import type { HTMLAttributes, PropsWithChildren } from 'react'\nimport { label, type LabelVariantProps } from 'styled-system/recipes'\nimport { cx } from 'styled-system/css'\nimport { FieldLabel } from '../field'\n\n/**\n * This module contains the Label component.\n * @module\n */\nexport type LabelBaseProps = HTMLAttributes<HTMLLabelElement>\nexport type LabelProps = LabelBaseProps & LabelVariantProps\n\n/**\n * @deprecated Use FieldLabel or FieldParts.Label instead.\n */\nexport function Label(props: PropsWithChildren<LabelProps>) {\n const { size, ...nativeProps } = props\n return (\n <FieldLabel\n {...nativeProps}\n className={cx(label({ size }), props.className)}\n />\n )\n}\n"],"mappings":";;;;;AACA,SAAS,aAAqC;AAC9C,SAAS,UAAU;AAgBf;AAHG,SAAS,MAAM,OAAsC;AAC1D,QAAM,EAAE,MAAM,GAAG,YAAY,IAAI;AACjC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,MAAM,SAAS;AAAA;AAAA,EAChD;AAEJ;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToggleIndicator,
|
|
3
3
|
ToggleRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RP6DNLP3.js";
|
|
5
5
|
|
|
6
6
|
// src/components/toggle/parts.ts
|
|
7
7
|
var ToggleParts = {
|
|
@@ -12,4 +12,4 @@ var ToggleParts = {
|
|
|
12
12
|
export {
|
|
13
13
|
ToggleParts
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-GC6JUHVS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectItemGroup,
|
|
3
3
|
SelectItemGroupLabel
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5MUUKSLF.js";
|
|
5
5
|
|
|
6
6
|
// src/components/select/option-group.tsx
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
OptionGroup,
|
|
17
17
|
OptionGroupLabel
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-GUAF4FXQ.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
RatingItemContext,
|
|
7
7
|
RatingLabel,
|
|
8
8
|
RatingRoot
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IL677ECW.js";
|
|
10
10
|
|
|
11
11
|
// src/components/rating/parts.tsx
|
|
12
12
|
var RatingParts = {
|
|
@@ -22,4 +22,4 @@ var RatingParts = {
|
|
|
22
22
|
export {
|
|
23
23
|
RatingParts
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-GYUCW2QK.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectParts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YOYCS3MD.js";
|
|
4
|
+
import {
|
|
5
|
+
useCerberusContext
|
|
6
|
+
} from "./chunk-GITT5645.js";
|
|
4
7
|
import {
|
|
5
8
|
Show
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VEAC4I3F.js";
|
|
7
10
|
import {
|
|
8
11
|
Portal
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
useCerberusContext
|
|
12
|
-
} from "./chunk-GITT5645.js";
|
|
12
|
+
} from "./chunk-53YVHIGJ.js";
|
|
13
13
|
|
|
14
14
|
// src/components/select/select.tsx
|
|
15
|
-
import { HStack } from "
|
|
15
|
+
import { HStack } from "styled-system/jsx";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
function Select(props) {
|
|
18
18
|
const { collection, placeholder, ...rootProps } = props;
|
|
@@ -44,4 +44,4 @@ export {
|
|
|
44
44
|
Select,
|
|
45
45
|
Option
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-H2HP63H4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/select/select.tsx"],"sourcesContent":["'use client'\n\nimport type { SelectItemProps, SelectRootProps } from '@ark-ui/react/select'\nimport { type SelectVariantProps } from 'styled-system/recipes'\nimport { HStack } from 'styled-system/jsx'\nimport { useCerberusContext } from '../../context/cerberus'\nimport { Portal } from '../Portal'\nimport { Show } from '../Show'\nimport { SelectParts } from './parts'\n\n/**\n * This module contains the Select components.\n * @module 'react/select'\n */\n\nexport interface SelectCollectionItem {\n /**\n * What is displayed in the dropdown list.\n */\n label: string\n /**\n * The value of the selected item used in the form.\n */\n value: string\n /**\n * If the item is disabled.\n */\n disabled?: boolean\n}\n\nexport interface SelectCollection {\n /**\n * The items to be displayed in the dropdown list.\n */\n items: SelectCollectionItem[]\n}\n\nexport interface BaseSelectProps {\n /**\n * The placeholder text when no option is selected.\n */\n placeholder?: string\n}\n\nexport type SelectProps = SelectRootProps<SelectCollectionItem> &\n BaseSelectProps &\n SelectVariantProps\n\n/**\n * The Select component is a dropdown list that allows users to select an\n * option from a list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * import { Select, Option, createListCollection } from '@cerberus-design/react'\n *\n * export function SelectBasicPreview() {\n * const collection = createListCollection({\n * items: [\n * { label: 'Hades', value: 'hades' },\n * { label: 'Persephone', value: 'persephone' },\n * { label: 'Zeus', value: 'zeus', disabled: true },\n * ]\n * })\n *\n * return (\n * <Select\n * collection={collection}\n * label=\"Select Relative\"\n * placeholder=\"Choose option\"\n * >\n * {collection.items.map((item) => (\n * <Option key={item.value} item={item} />\n * ))}\n * </Select>\n * )\n * }\n */\nexport function Select(props: SelectProps) {\n const { collection, placeholder, ...rootProps } = props\n\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons\n\n return (\n <SelectParts.Root collection={collection} {...rootProps}>\n <SelectParts.Control>\n <SelectParts.Trigger>\n <SelectParts.ValueText placeholder={placeholder} />\n\n <HStack>\n <Show when={props.invalid}>\n <InvalidIcon data-part=\"invalid-icon\" />\n </Show>\n <SelectParts.Indicator>\n <SelectArrow />\n </SelectParts.Indicator>\n </HStack>\n </SelectParts.Trigger>\n </SelectParts.Control>\n\n <Portal>\n <SelectParts.Positioner>\n <SelectParts.Content size={rootProps.size}>\n {props.children}\n </SelectParts.Content>\n </SelectParts.Positioner>\n </Portal>\n\n <SelectParts.HiddenSelect />\n </SelectParts.Root>\n )\n}\n\nexport interface OptionProps extends SelectItemProps {\n /**\n * The CollectionListItem to be displayed in the dropdown list.\n */\n item: SelectCollectionItem\n}\n\nexport function Option(props: OptionProps) {\n const { item, ...itemProps } = props\n const { icons } = useCerberusContext()\n const { selectChecked: CheckedIcon } = icons\n\n return (\n <SelectParts.Item {...itemProps} item={item}>\n <SelectParts.ItemText>{item?.label}</SelectParts.ItemText>\n <SelectParts.ItemIndicator>\n <CheckedIcon />\n </SelectParts.ItemIndicator>\n </SelectParts.Item>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAIA,SAAS,cAAc;AAqFb,cAEA,YAFA;AAVH,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,YAAY,aAAa,GAAG,UAAU,IAAI;AAElD,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,aAAa,aAAa,SAAS,YAAY,IAAI;AAE3D,SACE,qBAAC,YAAY,MAAZ,EAAiB,YAAyB,GAAG,WAC5C;AAAA,wBAAC,YAAY,SAAZ,EACC,+BAAC,YAAY,SAAZ,EACC;AAAA,0BAAC,YAAY,WAAZ,EAAsB,aAA0B;AAAA,MAEjD,qBAAC,UACC;AAAA,4BAAC,QAAK,MAAM,MAAM,SAChB,8BAAC,eAAY,aAAU,gBAAe,GACxC;AAAA,QACA,oBAAC,YAAY,WAAZ,EACC,8BAAC,eAAY,GACf;AAAA,SACF;AAAA,OACF,GACF;AAAA,IAEA,oBAAC,UACC,8BAAC,YAAY,YAAZ,EACC,8BAAC,YAAY,SAAZ,EAAoB,MAAM,UAAU,MAClC,gBAAM,UACT,GACF,GACF;AAAA,IAEA,oBAAC,YAAY,cAAZ,EAAyB;AAAA,KAC5B;AAEJ;AASO,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAC/B,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,eAAe,YAAY,IAAI;AAEvC,SACE,qBAAC,YAAY,MAAZ,EAAkB,GAAG,WAAW,MAC/B;AAAA,wBAAC,YAAY,UAAZ,EAAsB,gBAAM,OAAM;AAAA,IACnC,oBAAC,YAAY,eAAZ,EACC,8BAAC,eAAY,GACf;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
RadioGroupItemControl,
|
|
4
4
|
RadioGroupItemHiddenInput,
|
|
5
5
|
RadioGroupItemText
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HJ7MAPDD.js";
|
|
7
7
|
|
|
8
8
|
// src/components/radio/radio.tsx
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -19,4 +19,4 @@ function Radio(props) {
|
|
|
19
19
|
export {
|
|
20
20
|
Radio
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-H2VYN32T.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/radio/radio.tsx"],"sourcesContent":["import type { RadioGroupItemProps } from '@ark-ui/react'\nimport { type RadioGroupVariantProps } from 'styled-system/recipes'\nimport {\n RadioGroupItem,\n RadioGroupItemControl,\n RadioGroupItemHiddenInput,\n RadioGroupItemText,\n} from './primitives'\n\n/**\n * This module contains the Radio component.\n * @module\n */\n\nexport type RadioProps = RadioGroupVariantProps & RadioGroupItemProps\n\n/**\n * The Radio component is used to allow users to select a single option from a list of options.\n * @see https://cerberus.digitalu.design/react/radio\n * @memberof module:Field\n * @example\n * ```tsx\n * <Radio value=\"option1\">Option 1</Radio>\n * ```\n */\nexport function Radio(props: RadioProps) {\n const { size, children, ...groupProps } = props\n return (\n <RadioGroupItem {...groupProps}>\n <RadioGroupItemControl size={size} />\n <RadioGroupItemText size={size}>{children}</RadioGroupItemText>\n <RadioGroupItemHiddenInput />\n </RadioGroupItem>\n )\n}\n"],"mappings":";;;;;;;;AA4BI,SACE,KADF;AAHG,SAAS,MAAM,OAAmB;AACvC,QAAM,EAAE,MAAM,UAAU,GAAG,WAAW,IAAI;AAC1C,SACE,qBAAC,kBAAgB,GAAG,YAClB;AAAA,wBAAC,yBAAsB,MAAY;AAAA,IACnC,oBAAC,sBAAmB,MAAa,UAAS;AAAA,IAC1C,oBAAC,6BAA0B;AAAA,KAC7B;AAEJ;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-CJFW36DZ.js";
|
|
4
4
|
import {
|
|
5
5
|
Show
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VEAC4I3F.js";
|
|
7
7
|
|
|
8
8
|
// src/components/FeatureFlag.tsx
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -15,4 +15,4 @@ function FeatureFlag(props) {
|
|
|
15
15
|
export {
|
|
16
16
|
FeatureFlag
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-H4SH6ORP.js.map
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
RadioGroup as ArkRadioGroup
|
|
4
4
|
} from "@ark-ui/react/radio-group";
|
|
5
|
-
import { cx } from "
|
|
6
|
-
import {
|
|
7
|
-
radioGroup
|
|
8
|
-
} from "@cerberus/styled-system/recipes";
|
|
5
|
+
import { cx } from "styled-system/css";
|
|
6
|
+
import { radioGroup } from "styled-system/recipes";
|
|
9
7
|
import { jsx } from "react/jsx-runtime";
|
|
10
8
|
function RadioGroupRoot(props) {
|
|
11
9
|
const { size, orientation, ...rootProps } = props;
|
|
@@ -85,4 +83,4 @@ export {
|
|
|
85
83
|
RadioGroupItemHiddenInput,
|
|
86
84
|
RadioGroup
|
|
87
85
|
};
|
|
88
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-HJ7MAPDD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/radio/primitives.tsx"],"sourcesContent":["import {\n RadioGroup as ArkRadioGroup,\n type RadioGroupIndicatorProps,\n type RadioGroupItemControlProps,\n type RadioGroupItemHiddenInputProps,\n type RadioGroupItemProps,\n type RadioGroupItemTextProps,\n type RadioGroupLabelProps,\n type RadioGroupRootProps,\n} from '@ark-ui/react/radio-group'\nimport { cx } from 'styled-system/css'\nimport { radioGroup, type RadioGroupVariantProps } from 'styled-system/recipes'\n\n/**\n * This module contains the Radio primitives\n * @module 'react/radio'\n */\n\n/**\n * The RadioGroupRoot component is used to group radio buttons together.\n */\nexport function RadioGroupRoot(\n props: RadioGroupRootProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...rootProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.Root\n {...rootProps}\n className={cx(styles.root, rootProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupLabel component is used to label a group of radio buttons.\n */\nexport function RadioGroupLabel(props: RadioGroupLabelProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Label\n {...props}\n className={cx(styles.label, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupIndicator component is used to indicate the selected radio\n * button in a group.\n */\nexport function RadioGroupIndicator(props: RadioGroupIndicatorProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Indicator\n {...props}\n className={cx(styles.indicator, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItem component is used to render a single radio button in a\n * group.\n */\nexport function RadioGroupItem(props: RadioGroupItemProps) {\n const styles = radioGroup()\n return (\n <ArkRadioGroup.Item\n {...props}\n className={cx(styles.item, props.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemText component is used to render the text label for a\n * single radio button in a group.\n */\nexport function RadioGroupItemText(\n props: RadioGroupItemTextProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemTextProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemText\n {...itemTextProps}\n className={cx(styles.itemText, itemTextProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemControl component is used to render the control for a\n * single radio button in a group.\n */\nexport function RadioGroupItemControl(\n props: RadioGroupItemControlProps & RadioGroupVariantProps,\n) {\n const { size, orientation, ...itemControlProps } = props\n const styles = radioGroup({ size, orientation })\n return (\n <ArkRadioGroup.ItemControl\n {...itemControlProps}\n className={cx(styles.itemControl, itemControlProps.className)}\n />\n )\n}\n\n/**\n * The RadioGroupItemHiddenInput component is used to render the hidden input\n * for a single radio button in a group.\n */\nexport function RadioGroupItemHiddenInput(\n props: RadioGroupItemHiddenInputProps,\n) {\n return <ArkRadioGroup.ItemHiddenInput {...props} />\n}\n\nexport const RadioGroup = RadioGroupRoot\n"],"mappings":";AAAA;AAAA,EACE,cAAc;AAAA,OAQT;AACP,SAAS,UAAU;AACnB,SAAS,kBAA+C;AAgBpD;AANG,SAAS,eACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,UAAU,IAAI;AAC5C,QAAM,SAAS,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,UAAU,SAAS;AAAA;AAAA,EAChD;AAEJ;AAKO,SAAS,gBAAgB,OAA6B;AAC3D,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,OAAO,MAAM,SAAS;AAAA;AAAA,EAC7C;AAEJ;AAMO,SAAS,oBAAoB,OAAiC;AACnE,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,WAAW,MAAM,SAAS;AAAA;AAAA,EACjD;AAEJ;AAMO,SAAS,eAAe,OAA4B;AACzD,QAAM,SAAS,WAAW;AAC1B,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,MAAM,MAAM,SAAS;AAAA;AAAA,EAC5C;AAEJ;AAMO,SAAS,mBACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,cAAc,IAAI;AAChD,QAAM,SAAS,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,UAAU,cAAc,SAAS;AAAA;AAAA,EACxD;AAEJ;AAMO,SAAS,sBACd,OACA;AACA,QAAM,EAAE,MAAM,aAAa,GAAG,iBAAiB,IAAI;AACnD,QAAM,SAAS,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/C,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,OAAO,aAAa,iBAAiB,SAAS;AAAA;AAAA,EAC9D;AAEJ;AAMO,SAAS,0BACd,OACA;AACA,SAAO,oBAAC,cAAc,iBAAd,EAA+B,GAAG,OAAO;AACnD;AAEO,IAAM,aAAa;","names":[]}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SwitchLabel,
|
|
5
5
|
SwitchRoot,
|
|
6
6
|
SwitchThumb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3DZW23OX.js";
|
|
8
8
|
|
|
9
9
|
// src/components/switch/parts.ts
|
|
10
10
|
var SwitchParts = {
|
|
@@ -18,4 +18,4 @@ var SwitchParts = {
|
|
|
18
18
|
export {
|
|
19
19
|
SwitchParts
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-I4EGYD24.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/components/for.tsx
|
|
2
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
function For(props) {
|
|
4
|
+
if (!props.each || !props.each.length) {
|
|
5
|
+
return props.fallback || null;
|
|
6
|
+
}
|
|
7
|
+
return /* @__PURE__ */ jsx(Fragment, { children: props.each?.map(props.children) });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
For
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-I5RGBB57.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/for.tsx"],"sourcesContent":["import type { ReactNode, JSX } from 'react'\n\nexport interface ForProps<T extends readonly unknown[], U extends JSX.Element> {\n /**\n * The array to iterate over.\n */\n each: T | undefined | null | false\n /**\n * The fallback to render when the array is empty.\n */\n fallback?: JSX.Element\n /**\n * The children to render for each item in the array.\n */\n children: (item: T[number], index: number) => U\n}\n\n/**\n * The For component is used to iterate over an array and render a list of\n * components or display a fallback when the array is empty.\n * Inspired by the `<For>` component from SolidJS.\n *\n * @example\n * ```tsx\n * <For each={['a', 'b', 'c']}>\n * {(item, index) => <div key={index}>{item}</div>}\n * </For>\n * ```\n */\nexport function For<T extends readonly unknown[], U extends JSX.Element>(\n props: ForProps<T, U>,\n) {\n if (!props.each || !props.each.length) {\n return props.fallback || null\n }\n\n return props.each?.map(props.children) as ReactNode
|
|
1
|
+
{"version":3,"sources":["../../src/components/for.tsx"],"sourcesContent":["import type { ReactNode, JSX } from 'react'\n\nexport interface ForProps<T extends readonly unknown[], U extends JSX.Element> {\n /**\n * The array to iterate over.\n */\n each: T | undefined | null | false\n /**\n * The fallback to render when the array is empty.\n */\n fallback?: JSX.Element\n /**\n * The children to render for each item in the array.\n */\n children: (item: T[number], index: number) => U\n}\n\n/**\n * The For component is used to iterate over an array and render a list of\n * components or display a fallback when the array is empty.\n * Inspired by the `<For>` component from SolidJS.\n *\n * @example\n * ```tsx\n * <For each={['a', 'b', 'c']}>\n * {(item, index) => <div key={index}>{item}</div>}\n * </For>\n * ```\n */\nexport function For<T extends readonly unknown[], U extends JSX.Element>(\n props: ForProps<T, U>,\n) {\n if (!props.each || !props.each.length) {\n return props.fallback || null\n }\n\n return <>{props.each?.map(props.children) as ReactNode}</>\n}\n"],"mappings":";AAoCS;AAPF,SAAS,IACd,OACA;AACA,MAAI,CAAC,MAAM,QAAQ,CAAC,MAAM,KAAK,QAAQ;AACrC,WAAO,MAAM,YAAY;AAAA,EAC3B;AAEA,SAAO,gCAAG,gBAAM,MAAM,IAAI,MAAM,QAAQ,GAAe;AACzD;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/components/deprecated/FieldsetLabel.tsx
|
|
2
|
-
import { cx } from "
|
|
3
|
-
import { label } from "
|
|
2
|
+
import { cx } from "styled-system/css";
|
|
3
|
+
import { label } from "styled-system/recipes";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
function FieldsetLabel(props) {
|
|
6
6
|
const { size, usage, ...nativeProps } = props;
|
|
@@ -22,4 +22,4 @@ function FieldsetLabel(props) {
|
|
|
22
22
|
export {
|
|
23
23
|
FieldsetLabel
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-IIH4VDQA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/deprecated/FieldsetLabel.tsx"],"sourcesContent":["import { cx } from 'styled-system/css'\nimport { label, type LabelVariantProps } from 'styled-system/recipes'\nimport type { LabelProps } from './Label'\n\n/**\n * This module contains the FieldsetLabel component.\n * @module FieldsetLabel\n */\n\nexport type FieldsetLabelProps = LabelProps &\n LabelVariantProps & {\n htmlFor?: string\n }\n\n/**\n * @deprecated\n */\nexport function FieldsetLabel(props: FieldsetLabelProps) {\n const { size, usage, ...nativeProps } = props\n return (\n <label\n {...nativeProps}\n className={cx(\n nativeProps.className,\n label({\n size,\n usage,\n }),\n )}\n />\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU;AACnB,SAAS,aAAqC;AAmB1C;AAHG,SAAS,cAAc,OAA2B;AACvD,QAAM,EAAE,MAAM,OAAO,GAAG,YAAY,IAAI;AACxC,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW;AAAA,QACT,YAAY;AAAA,QACZ,MAAM;AAAA,UACJ;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
RatingGroup
|
|
4
4
|
} from "@ark-ui/react/rating-group";
|
|
5
|
-
import { cx } from "
|
|
5
|
+
import { cx } from "styled-system/css";
|
|
6
6
|
import {
|
|
7
7
|
ratingGroup
|
|
8
|
-
} from "
|
|
8
|
+
} from "styled-system/recipes";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
function RatingRoot(props) {
|
|
11
11
|
const { orientation, size, ...rootProps } = props;
|
|
@@ -68,4 +68,4 @@ export {
|
|
|
68
68
|
RatingItemContext,
|
|
69
69
|
RatingHiddenInput
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-IL677ECW.js.map
|