@cerberus-design/react 0.17.2 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/legacy/_tsup-dts-rollup.d.cts +21882 -1964
- 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 +37 -57
- 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 +1455 -1525
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +20 -30
- package/build/modern/_tsup-dts-rollup.d.ts +21882 -1964
- 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-UCL7P2OG.js → chunk-25S67KZH.js} +9 -9
- package/build/modern/chunk-25S67KZH.js.map +1 -0
- 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-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-NMDAHO2K.js → chunk-CJVKAGCJ.js} +8 -8
- package/build/modern/chunk-CJVKAGCJ.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-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-6QHOKCV3.js → chunk-IE2HWT3I.js} +17 -38
- package/build/modern/chunk-IE2HWT3I.js.map +1 -0
- 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-RQCJKDXU.js → chunk-JQYW4IOC.js} +2 -2
- package/build/modern/{chunk-DYQBRCZC.js → chunk-KABRV6TB.js} +15 -17
- package/build/modern/chunk-KABRV6TB.js.map +1 -0
- 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-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-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-7HKULJ4G.js → chunk-RF4VKGOQ.js} +14 -11
- package/build/modern/chunk-RF4VKGOQ.js.map +1 -0
- 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-D7UIWAFO.js → chunk-SSR3CWJZ.js} +3 -5
- package/build/modern/chunk-SSR3CWJZ.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-63F5MURH.js → chunk-TS7PAQPV.js} +5 -5
- package/build/modern/chunk-TS7PAQPV.js.map +1 -0
- package/build/modern/{chunk-IPC7LQ4Q.js → chunk-TV346AYO.js} +8 -8
- package/build/modern/chunk-TV346AYO.js.map +1 -0
- package/build/modern/{chunk-245SMQ45.js → chunk-UCVB2VOI.js} +8 -8
- package/build/modern/chunk-UCVB2VOI.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 -3
- 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 +21 -21
- 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 +8 -8
- 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 +12 -12
- 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 +9 -9
- 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 +263 -283
- package/build/modern/index.js.map +1 -1
- package/package.json +14 -13
- package/src/aria-helpers/nav-menu.aria.ts +3 -0
- package/src/aria-helpers/trap-focus.aria.ts +4 -1
- package/src/components/CircularProgress.tsx +26 -38
- 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
package/build/legacy/index.cjs
CHANGED
|
@@ -154,10 +154,6 @@ __export(index_exports, {
|
|
|
154
154
|
MenuItemGroup: () => MenuItemGroup,
|
|
155
155
|
MenuSeparator: () => MenuSeparator,
|
|
156
156
|
MenuTrigger: () => MenuTrigger,
|
|
157
|
-
Modal: () => Modal,
|
|
158
|
-
ModalDescription: () => ModalDescription,
|
|
159
|
-
ModalHeader: () => ModalHeader,
|
|
160
|
-
ModalHeading: () => ModalHeading,
|
|
161
157
|
NavMenu: () => NavMenu,
|
|
162
158
|
NavMenuLink: () => NavMenuLink,
|
|
163
159
|
NavMenuList: () => NavMenuList,
|
|
@@ -265,13 +261,12 @@ __export(index_exports, {
|
|
|
265
261
|
splitProps: () => splitProps,
|
|
266
262
|
toaster: () => toaster,
|
|
267
263
|
trapFocus: () => trapFocus,
|
|
268
|
-
useAvatarContext: () =>
|
|
264
|
+
useAvatarContext: () => import_avatar3.useAvatarContext,
|
|
269
265
|
useCTAModal: () => useCTAModal,
|
|
270
266
|
useCerberusContext: () => useCerberusContext,
|
|
271
267
|
useConfirmModal: () => useConfirmModal,
|
|
272
268
|
useDate: () => useDate,
|
|
273
269
|
useFeatureFlags: () => useFeatureFlags,
|
|
274
|
-
useModal: () => useModal,
|
|
275
270
|
useNavMenuContext: () => useNavMenuContext,
|
|
276
271
|
useNotificationCenter: () => useNotificationCenter,
|
|
277
272
|
usePromptModal: () => usePromptModal,
|
|
@@ -284,8 +279,8 @@ __export(index_exports, {
|
|
|
284
279
|
module.exports = __toCommonJS(index_exports);
|
|
285
280
|
|
|
286
281
|
// src/components/deprecated/FieldMessage.tsx
|
|
287
|
-
var import_css = require("
|
|
288
|
-
var import_recipes = require("
|
|
282
|
+
var import_css = require("styled-system/css");
|
|
283
|
+
var import_recipes = require("styled-system/recipes");
|
|
289
284
|
var import_field = require("@ark-ui/react/field");
|
|
290
285
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
291
286
|
function FieldMessage(props) {
|
|
@@ -301,8 +296,8 @@ function FieldMessage(props) {
|
|
|
301
296
|
}
|
|
302
297
|
|
|
303
298
|
// src/components/deprecated/FieldsetLabel.tsx
|
|
304
|
-
var import_css2 = require("
|
|
305
|
-
var import_recipes2 = require("
|
|
299
|
+
var import_css2 = require("styled-system/css");
|
|
300
|
+
var import_recipes2 = require("styled-system/recipes");
|
|
306
301
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
307
302
|
function FieldsetLabel(props) {
|
|
308
303
|
const { size, usage, ...nativeProps } = props;
|
|
@@ -322,8 +317,8 @@ function FieldsetLabel(props) {
|
|
|
322
317
|
}
|
|
323
318
|
|
|
324
319
|
// src/components/deprecated/Label.tsx
|
|
325
|
-
var import_recipes6 = require("
|
|
326
|
-
var import_css6 = require("
|
|
320
|
+
var import_recipes6 = require("styled-system/recipes");
|
|
321
|
+
var import_css6 = require("styled-system/css");
|
|
327
322
|
|
|
328
323
|
// src/utils/localStorage.ts
|
|
329
324
|
function getLocalStorage(key, defaultValue) {
|
|
@@ -364,13 +359,13 @@ function splitProps(props, ...keyGroups) {
|
|
|
364
359
|
|
|
365
360
|
// src/components/field/primitives.tsx
|
|
366
361
|
var import_field2 = require("@ark-ui/react/field");
|
|
367
|
-
var import_css5 = require("
|
|
368
|
-
var import_recipes5 = require("
|
|
362
|
+
var import_css5 = require("styled-system/css");
|
|
363
|
+
var import_recipes5 = require("styled-system/recipes");
|
|
369
364
|
|
|
370
365
|
// src/components/field/status-indicator.tsx
|
|
371
366
|
var import_react2 = require("@ark-ui/react");
|
|
372
|
-
var import_css3 = require("
|
|
373
|
-
var import_recipes3 = require("
|
|
367
|
+
var import_css3 = require("styled-system/css");
|
|
368
|
+
var import_recipes3 = require("styled-system/recipes");
|
|
374
369
|
|
|
375
370
|
// src/context/cerberus.tsx
|
|
376
371
|
var import_react = require("react");
|
|
@@ -420,8 +415,8 @@ function FieldStatusIndicator(props) {
|
|
|
420
415
|
}
|
|
421
416
|
|
|
422
417
|
// src/components/field/start-indicator.tsx
|
|
423
|
-
var import_css4 = require("
|
|
424
|
-
var import_recipes4 = require("
|
|
418
|
+
var import_css4 = require("styled-system/css");
|
|
419
|
+
var import_recipes4 = require("styled-system/recipes");
|
|
425
420
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
426
421
|
function FieldStartIndicator(props) {
|
|
427
422
|
const styles = (0, import_recipes4.field)();
|
|
@@ -513,35 +508,37 @@ var Input = FieldInput;
|
|
|
513
508
|
var Textarea = FieldTextarea;
|
|
514
509
|
|
|
515
510
|
// src/components/field/field.tsx
|
|
516
|
-
var import_jsx = require("
|
|
511
|
+
var import_jsx = require("styled-system/jsx");
|
|
517
512
|
|
|
518
513
|
// src/components/Show.tsx
|
|
519
|
-
var
|
|
514
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
520
515
|
function Show(props) {
|
|
521
516
|
const { when, children, fallback } = props;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
517
|
+
if (when) {
|
|
518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children });
|
|
519
|
+
}
|
|
520
|
+
if (fallback) {
|
|
521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: fallback });
|
|
522
|
+
}
|
|
523
|
+
return null;
|
|
527
524
|
}
|
|
528
525
|
|
|
529
526
|
// src/components/field/field.tsx
|
|
530
|
-
var
|
|
527
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
531
528
|
function Field2(props) {
|
|
532
529
|
const [statusProps, fieldProps, rootProps] = splitProps(
|
|
533
530
|
props,
|
|
534
531
|
["disabled", "required", "readOnly", "invalid"],
|
|
535
532
|
["label", "helperText", "secondaryHelperText", "errorText", "children"]
|
|
536
533
|
);
|
|
537
|
-
return /* @__PURE__ */ (0,
|
|
538
|
-
/* @__PURE__ */ (0,
|
|
534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(FieldRoot, { ...statusProps, ...rootProps, children: [
|
|
535
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Show, { when: fieldProps.label, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FieldLabel, { children: fieldProps.label }) }),
|
|
539
536
|
fieldProps.children,
|
|
540
|
-
/* @__PURE__ */ (0,
|
|
541
|
-
/* @__PURE__ */ (0,
|
|
542
|
-
/* @__PURE__ */ (0,
|
|
537
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Show, { when: fieldProps.helperText && !statusProps.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx.HStack, { justifyContent: "space-between", w: "full", children: [
|
|
538
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FieldHelperText, { children: fieldProps.helperText }),
|
|
539
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Show, { when: fieldProps.secondaryHelperText, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FieldHelperText, { children: fieldProps.secondaryHelperText }) })
|
|
543
540
|
] }) }),
|
|
544
|
-
/* @__PURE__ */ (0,
|
|
541
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(FieldErrorText, { children: fieldProps.errorText })
|
|
545
542
|
] });
|
|
546
543
|
}
|
|
547
544
|
|
|
@@ -559,10 +556,10 @@ var FieldParts = {
|
|
|
559
556
|
};
|
|
560
557
|
|
|
561
558
|
// src/components/deprecated/Label.tsx
|
|
562
|
-
var
|
|
559
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
563
560
|
function Label(props) {
|
|
564
561
|
const { size, ...nativeProps } = props;
|
|
565
|
-
return /* @__PURE__ */ (0,
|
|
562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
566
563
|
FieldLabel,
|
|
567
564
|
{
|
|
568
565
|
...nativeProps,
|
|
@@ -571,64 +568,10 @@ function Label(props) {
|
|
|
571
568
|
);
|
|
572
569
|
}
|
|
573
570
|
|
|
574
|
-
// src/components/deprecated/Modal.tsx
|
|
575
|
-
var import_css7 = require("@cerberus/styled-system/css");
|
|
576
|
-
var import_recipes7 = require("@cerberus/styled-system/recipes");
|
|
577
|
-
var import_react4 = require("react");
|
|
578
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
579
|
-
function ModalEl(props, ref) {
|
|
580
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
581
|
-
"dialog",
|
|
582
|
-
{
|
|
583
|
-
...props,
|
|
584
|
-
className: (0, import_css7.cx)(props.className, (0, import_recipes7.modal)().dialog),
|
|
585
|
-
ref
|
|
586
|
-
}
|
|
587
|
-
);
|
|
588
|
-
}
|
|
589
|
-
var Modal = (0, import_react4.forwardRef)(ModalEl);
|
|
590
|
-
|
|
591
|
-
// src/components/deprecated/ModalHeader.tsx
|
|
592
|
-
var import_css8 = require("@cerberus/styled-system/css");
|
|
593
|
-
var import_patterns = require("@cerberus/styled-system/patterns");
|
|
594
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
595
|
-
function ModalHeader(props) {
|
|
596
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
597
|
-
"div",
|
|
598
|
-
{
|
|
599
|
-
...props,
|
|
600
|
-
className: (0, import_css8.cx)(
|
|
601
|
-
props.className,
|
|
602
|
-
(0, import_patterns.vstack)({
|
|
603
|
-
alignItems: "flex-start",
|
|
604
|
-
gap: "md",
|
|
605
|
-
position: "relative"
|
|
606
|
-
})
|
|
607
|
-
)
|
|
608
|
-
}
|
|
609
|
-
);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
// src/components/deprecated/ModalHeading.tsx
|
|
613
|
-
var import_css9 = require("@cerberus/styled-system/css");
|
|
614
|
-
var import_recipes8 = require("@cerberus/styled-system/recipes");
|
|
615
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
616
|
-
function ModalHeading(props) {
|
|
617
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { ...props, className: (0, import_css9.cx)(props.className, (0, import_recipes8.modal)().heading) });
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
// src/components/deprecated/ModalDescription.tsx
|
|
621
|
-
var import_css10 = require("@cerberus/styled-system/css");
|
|
622
|
-
var import_recipes9 = require("@cerberus/styled-system/recipes");
|
|
623
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
624
|
-
function ModalDescription(props) {
|
|
625
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { ...props, className: (0, import_css10.cx)(props.className, (0, import_recipes9.modal)().description) });
|
|
626
|
-
}
|
|
627
|
-
|
|
628
571
|
// src/components/deprecated/NavMenuTrigger.tsx
|
|
629
|
-
var
|
|
630
|
-
var
|
|
631
|
-
var
|
|
572
|
+
var import_react4 = require("react");
|
|
573
|
+
var import_css8 = require("styled-system/css");
|
|
574
|
+
var import_recipes7 = require("styled-system/recipes");
|
|
632
575
|
|
|
633
576
|
// src/aria-helpers/nav-menu.aria.ts
|
|
634
577
|
function createNavTriggerProps(values) {
|
|
@@ -639,18 +582,18 @@ function createNavTriggerProps(values) {
|
|
|
639
582
|
}
|
|
640
583
|
|
|
641
584
|
// src/context/navMenu.tsx
|
|
642
|
-
var
|
|
643
|
-
var
|
|
644
|
-
var
|
|
645
|
-
var NavMenuContext = (0,
|
|
585
|
+
var import_css7 = require("styled-system/css");
|
|
586
|
+
var import_react3 = require("react");
|
|
587
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
588
|
+
var NavMenuContext = (0, import_react3.createContext)(null);
|
|
646
589
|
function NavMenu(props) {
|
|
647
|
-
const triggerRef = (0,
|
|
648
|
-
const menuRef = (0,
|
|
649
|
-
const [expanded, setExpanded] = (0,
|
|
650
|
-
const handleToggle = (0,
|
|
590
|
+
const triggerRef = (0, import_react3.useRef)(null);
|
|
591
|
+
const menuRef = (0, import_react3.useRef)(null);
|
|
592
|
+
const [expanded, setExpanded] = (0, import_react3.useState)(false);
|
|
593
|
+
const handleToggle = (0, import_react3.useCallback)(() => {
|
|
651
594
|
setExpanded((prev) => !prev);
|
|
652
595
|
}, []);
|
|
653
|
-
const value = (0,
|
|
596
|
+
const value = (0, import_react3.useMemo)(
|
|
654
597
|
() => ({
|
|
655
598
|
triggerRef,
|
|
656
599
|
menuRef,
|
|
@@ -659,10 +602,10 @@ function NavMenu(props) {
|
|
|
659
602
|
}),
|
|
660
603
|
[expanded, handleToggle]
|
|
661
604
|
);
|
|
662
|
-
return /* @__PURE__ */ (0,
|
|
605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(NavMenuContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
663
606
|
"nav",
|
|
664
607
|
{
|
|
665
|
-
className: (0,
|
|
608
|
+
className: (0, import_css7.css)({
|
|
666
609
|
position: "relative"
|
|
667
610
|
}),
|
|
668
611
|
children: props.children
|
|
@@ -670,7 +613,7 @@ function NavMenu(props) {
|
|
|
670
613
|
) });
|
|
671
614
|
}
|
|
672
615
|
function useNavMenuContext() {
|
|
673
|
-
const context = (0,
|
|
616
|
+
const context = (0, import_react3.useContext)(NavMenuContext);
|
|
674
617
|
if (!context) {
|
|
675
618
|
throw new Error("useNavMenuContext must be used within a NavMenu.");
|
|
676
619
|
}
|
|
@@ -678,7 +621,7 @@ function useNavMenuContext() {
|
|
|
678
621
|
}
|
|
679
622
|
|
|
680
623
|
// src/components/deprecated/NavMenuTrigger.tsx
|
|
681
|
-
var
|
|
624
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
682
625
|
function NavMenuTrigger(props) {
|
|
683
626
|
const {
|
|
684
627
|
as,
|
|
@@ -697,25 +640,25 @@ function NavMenuTrigger(props) {
|
|
|
697
640
|
});
|
|
698
641
|
const hasAs = Boolean(as);
|
|
699
642
|
const AsSub = as;
|
|
700
|
-
const handleClick = (0,
|
|
643
|
+
const handleClick = (0, import_react4.useCallback)(
|
|
701
644
|
(e) => {
|
|
702
645
|
if (onClick) return onClick(e);
|
|
703
646
|
onToggle();
|
|
704
647
|
},
|
|
705
648
|
[onClick, onToggle]
|
|
706
649
|
);
|
|
707
|
-
return /* @__PURE__ */ (0,
|
|
650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
708
651
|
Show,
|
|
709
652
|
{
|
|
710
653
|
when: hasAs,
|
|
711
|
-
fallback: /* @__PURE__ */ (0,
|
|
654
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
712
655
|
"button",
|
|
713
656
|
{
|
|
714
657
|
...nativeProps,
|
|
715
658
|
...ariaProps,
|
|
716
|
-
className: (0,
|
|
659
|
+
className: (0, import_css8.cx)(
|
|
717
660
|
nativeProps.className,
|
|
718
|
-
(0,
|
|
661
|
+
(0, import_recipes7.button)({
|
|
719
662
|
palette,
|
|
720
663
|
usage,
|
|
721
664
|
shape
|
|
@@ -726,7 +669,7 @@ function NavMenuTrigger(props) {
|
|
|
726
669
|
children: props.children
|
|
727
670
|
}
|
|
728
671
|
),
|
|
729
|
-
children: hasAs && /* @__PURE__ */ (0,
|
|
672
|
+
children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
730
673
|
AsSub,
|
|
731
674
|
{
|
|
732
675
|
...nativeProps,
|
|
@@ -740,10 +683,10 @@ function NavMenuTrigger(props) {
|
|
|
740
683
|
}
|
|
741
684
|
|
|
742
685
|
// src/components/deprecated/NavMenuList.tsx
|
|
743
|
-
var
|
|
744
|
-
var
|
|
745
|
-
var
|
|
746
|
-
var
|
|
686
|
+
var import_react5 = require("react");
|
|
687
|
+
var import_css9 = require("styled-system/css");
|
|
688
|
+
var import_patterns = require("styled-system/patterns");
|
|
689
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
747
690
|
function getPosition(position) {
|
|
748
691
|
const defaultPositions = {
|
|
749
692
|
left: "auto",
|
|
@@ -764,7 +707,7 @@ function getPosition(position) {
|
|
|
764
707
|
return defaultPositions;
|
|
765
708
|
}
|
|
766
709
|
}
|
|
767
|
-
var navListStyles = (0,
|
|
710
|
+
var navListStyles = (0, import_patterns.vstack)({
|
|
768
711
|
alignItems: "flex-start",
|
|
769
712
|
bgColor: "page.surface.100",
|
|
770
713
|
boxShadow: "lg",
|
|
@@ -797,16 +740,16 @@ var navListStyles = (0, import_patterns2.vstack)({
|
|
|
797
740
|
function NavMenuList(props) {
|
|
798
741
|
const { position, ...nativeProps } = props;
|
|
799
742
|
const { menuRef, expanded } = useNavMenuContext();
|
|
800
|
-
const locationStyles = (0,
|
|
743
|
+
const locationStyles = (0, import_react5.useMemo)(
|
|
801
744
|
() => getPosition(position ?? "bottom"),
|
|
802
745
|
[position]
|
|
803
746
|
);
|
|
804
|
-
return /* @__PURE__ */ (0,
|
|
747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Show, { when: expanded, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
805
748
|
"ul",
|
|
806
749
|
{
|
|
807
750
|
...nativeProps,
|
|
808
751
|
"data-position": position ?? "bottom",
|
|
809
|
-
className: (0,
|
|
752
|
+
className: (0, import_css9.cx)(nativeProps.className, navListStyles),
|
|
810
753
|
ref: menuRef,
|
|
811
754
|
style: locationStyles
|
|
812
755
|
}
|
|
@@ -814,29 +757,29 @@ function NavMenuList(props) {
|
|
|
814
757
|
}
|
|
815
758
|
|
|
816
759
|
// src/components/deprecated/NavMenuLink.tsx
|
|
817
|
-
var
|
|
818
|
-
var
|
|
760
|
+
var import_css10 = require("styled-system/css");
|
|
761
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
819
762
|
function NavMenuLink(props) {
|
|
820
763
|
const { as, ...nativeProps } = props;
|
|
821
764
|
const hasAs = Boolean(as);
|
|
822
765
|
const AsSub = as;
|
|
823
|
-
return /* @__PURE__ */ (0,
|
|
766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
824
767
|
"li",
|
|
825
768
|
{
|
|
826
|
-
className: (0,
|
|
769
|
+
className: (0, import_css10.css)({
|
|
827
770
|
w: "full"
|
|
828
771
|
}),
|
|
829
|
-
children: /* @__PURE__ */ (0,
|
|
772
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
830
773
|
Show,
|
|
831
774
|
{
|
|
832
775
|
when: hasAs,
|
|
833
|
-
fallback: /* @__PURE__ */ (0,
|
|
776
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
834
777
|
"a",
|
|
835
778
|
{
|
|
836
779
|
...nativeProps,
|
|
837
|
-
className: (0,
|
|
780
|
+
className: (0, import_css10.cx)(
|
|
838
781
|
nativeProps.className,
|
|
839
|
-
(0,
|
|
782
|
+
(0, import_css10.css)({
|
|
840
783
|
color: "action.navigation.initial",
|
|
841
784
|
textStyle: "link",
|
|
842
785
|
_hover: {
|
|
@@ -846,7 +789,7 @@ function NavMenuLink(props) {
|
|
|
846
789
|
)
|
|
847
790
|
}
|
|
848
791
|
),
|
|
849
|
-
children: hasAs && /* @__PURE__ */ (0,
|
|
792
|
+
children: hasAs && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(AsSub, { ...nativeProps })
|
|
850
793
|
}
|
|
851
794
|
)
|
|
852
795
|
}
|
|
@@ -855,702 +798,53 @@ function NavMenuLink(props) {
|
|
|
855
798
|
|
|
856
799
|
// src/components/deprecated/Legend.tsx
|
|
857
800
|
var import_field4 = require("@ark-ui/react/field");
|
|
858
|
-
var
|
|
859
|
-
var
|
|
860
|
-
var
|
|
861
|
-
var
|
|
801
|
+
var import_css11 = require("styled-system/css");
|
|
802
|
+
var import_recipes8 = require("styled-system/recipes");
|
|
803
|
+
var import_patterns2 = require("styled-system/patterns");
|
|
804
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
862
805
|
function Legend(props) {
|
|
863
806
|
const { size, ...nativeProps } = props;
|
|
864
807
|
const { invalid, required } = (0, import_field4.useFieldContext)();
|
|
865
|
-
return /* @__PURE__ */ (0,
|
|
808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
866
809
|
"legend",
|
|
867
810
|
{
|
|
868
811
|
...nativeProps,
|
|
869
812
|
...invalid && { "aria-invalid": true },
|
|
870
|
-
className: (0,
|
|
813
|
+
className: (0, import_css11.cx)(
|
|
871
814
|
nativeProps.className,
|
|
872
|
-
(0,
|
|
815
|
+
(0, import_patterns2.hstack)({
|
|
873
816
|
justify: "space-between",
|
|
874
817
|
w: "full"
|
|
875
818
|
}),
|
|
876
|
-
(0,
|
|
819
|
+
(0, import_recipes8.label)({
|
|
877
820
|
size
|
|
878
821
|
})
|
|
879
822
|
),
|
|
880
823
|
children: [
|
|
881
824
|
nativeProps.children,
|
|
882
|
-
/* @__PURE__ */ (0,
|
|
825
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Show, { when: required, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
883
826
|
"span",
|
|
884
827
|
{
|
|
885
|
-
className: (0,
|
|
828
|
+
className: (0, import_css11.css)({
|
|
886
829
|
color: "page.text.100",
|
|
887
830
|
fontSize: "inherit"
|
|
888
|
-
}),
|
|
889
|
-
children: "(required)"
|
|
890
|
-
}
|
|
891
|
-
) })
|
|
892
|
-
]
|
|
893
|
-
}
|
|
894
|
-
);
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
// src/context/confirm-modal.tsx
|
|
898
|
-
var import_react10 = require("react");
|
|
899
|
-
|
|
900
|
-
// src/components/button/button.tsx
|
|
901
|
-
var import_factory = require("@ark-ui/react/factory");
|
|
902
|
-
var import_react8 = require("react");
|
|
903
|
-
var import_css16 = require("@cerberus/styled-system/css");
|
|
904
|
-
var import_recipes12 = require("@cerberus/styled-system/recipes");
|
|
905
|
-
var import_jsx2 = require("@cerberus/styled-system/jsx");
|
|
906
|
-
|
|
907
|
-
// src/components/Spinner.tsx
|
|
908
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
909
|
-
function Spinner(props) {
|
|
910
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
911
|
-
"svg",
|
|
912
|
-
{
|
|
913
|
-
"aria-busy": "true",
|
|
914
|
-
role: "status",
|
|
915
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
916
|
-
height: props.size,
|
|
917
|
-
width: props.size,
|
|
918
|
-
viewBox: "0 0 24 24",
|
|
919
|
-
...props,
|
|
920
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
921
|
-
"g",
|
|
922
|
-
{
|
|
923
|
-
fill: "none",
|
|
924
|
-
stroke: "currentColor",
|
|
925
|
-
strokeLinecap: "round",
|
|
926
|
-
strokeLinejoin: "round",
|
|
927
|
-
strokeWidth: 2,
|
|
928
|
-
children: [
|
|
929
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
930
|
-
"path",
|
|
931
|
-
{
|
|
932
|
-
strokeDasharray: 16,
|
|
933
|
-
strokeDashoffset: 16,
|
|
934
|
-
d: "M12 3c4.97 0 9 4.03 9 9",
|
|
935
|
-
children: [
|
|
936
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
937
|
-
"animate",
|
|
938
|
-
{
|
|
939
|
-
fill: "freeze",
|
|
940
|
-
attributeName: "stroke-dashoffset",
|
|
941
|
-
dur: "0.15s",
|
|
942
|
-
values: "16;0"
|
|
943
|
-
}
|
|
944
|
-
),
|
|
945
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
946
|
-
"animateTransform",
|
|
947
|
-
{
|
|
948
|
-
attributeName: "transform",
|
|
949
|
-
dur: "0.75s",
|
|
950
|
-
repeatCount: "indefinite",
|
|
951
|
-
type: "rotate",
|
|
952
|
-
values: "0 12 12;360 12 12"
|
|
953
|
-
}
|
|
954
|
-
)
|
|
955
|
-
]
|
|
956
|
-
}
|
|
957
|
-
),
|
|
958
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
959
|
-
"path",
|
|
960
|
-
{
|
|
961
|
-
strokeDasharray: 64,
|
|
962
|
-
strokeDashoffset: 64,
|
|
963
|
-
strokeOpacity: 0.3,
|
|
964
|
-
d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",
|
|
965
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
966
|
-
"animate",
|
|
967
|
-
{
|
|
968
|
-
fill: "freeze",
|
|
969
|
-
attributeName: "stroke-dashoffset",
|
|
970
|
-
dur: "0.6s",
|
|
971
|
-
values: "64;0"
|
|
972
|
-
}
|
|
973
|
-
)
|
|
974
|
-
}
|
|
975
|
-
)
|
|
976
|
-
]
|
|
977
|
-
}
|
|
978
|
-
)
|
|
979
|
-
}
|
|
980
|
-
);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
// src/components/button/button.tsx
|
|
984
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
985
|
-
var ButtonContext = (0, import_react8.createContext)({
|
|
986
|
-
pending: false
|
|
987
|
-
});
|
|
988
|
-
function Button(props) {
|
|
989
|
-
const { palette, usage, shape, size, pending = false, ...nativeProps } = props;
|
|
990
|
-
const value = (0, import_react8.useMemo)(() => ({ pending }), [pending]);
|
|
991
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ButtonContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
992
|
-
import_factory.ark.button,
|
|
993
|
-
{
|
|
994
|
-
...nativeProps,
|
|
995
|
-
disabled: pending || nativeProps.disabled,
|
|
996
|
-
className: (0, import_css16.cx)(
|
|
997
|
-
nativeProps.className,
|
|
998
|
-
(0, import_recipes12.button)({
|
|
999
|
-
palette,
|
|
1000
|
-
usage,
|
|
1001
|
-
shape,
|
|
1002
|
-
size
|
|
1003
|
-
})
|
|
1004
|
-
)
|
|
1005
|
-
}
|
|
1006
|
-
) });
|
|
1007
|
-
}
|
|
1008
|
-
function ButtonIcon(props) {
|
|
1009
|
-
const { pending } = (0, import_react8.useContext)(ButtonContext);
|
|
1010
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Show, { when: pending, fallback: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children: props.children }), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx2.Box, { w: "4", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Spinner, {}) }) });
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
// src/context/confirm-modal.tsx
|
|
1014
|
-
var import_css21 = require("@cerberus/styled-system/css");
|
|
1015
|
-
|
|
1016
|
-
// src/components/avatar/primitives.tsx
|
|
1017
|
-
var import_avatar = require("@ark-ui/react/avatar");
|
|
1018
|
-
var import_recipes13 = require("@cerberus/styled-system/recipes");
|
|
1019
|
-
var import_css17 = require("@cerberus/styled-system/css");
|
|
1020
|
-
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1021
|
-
function AvatarRoot(props) {
|
|
1022
|
-
const { gradient, shape, size, ...rootProps } = props;
|
|
1023
|
-
const styles = (0, import_recipes13.avatar)({ gradient, shape, size });
|
|
1024
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1025
|
-
import_avatar.Avatar.Root,
|
|
1026
|
-
{
|
|
1027
|
-
...rootProps,
|
|
1028
|
-
className: (0, import_css17.cx)(styles.root, rootProps.className)
|
|
1029
|
-
}
|
|
1030
|
-
);
|
|
1031
|
-
}
|
|
1032
|
-
function AvatarImage(props) {
|
|
1033
|
-
const styles = (0, import_recipes13.avatar)();
|
|
1034
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_avatar.Avatar.Image, { ...props, className: (0, import_css17.cx)(styles.image, props.className) });
|
|
1035
|
-
}
|
|
1036
|
-
function AvatarFallback(props) {
|
|
1037
|
-
const styles = (0, import_recipes13.avatar)();
|
|
1038
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1039
|
-
import_avatar.Avatar.Fallback,
|
|
1040
|
-
{
|
|
1041
|
-
...props,
|
|
1042
|
-
className: (0, import_css17.cx)(styles.fallback, props.className)
|
|
1043
|
-
}
|
|
1044
|
-
);
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
// src/components/avatar/parts.ts
|
|
1048
|
-
var AvatarParts = {
|
|
1049
|
-
Root: AvatarRoot,
|
|
1050
|
-
Image: AvatarImage,
|
|
1051
|
-
Fallback: AvatarFallback
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
// src/components/avatar/avatar.tsx
|
|
1055
|
-
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1056
|
-
function Avatar2(props) {
|
|
1057
|
-
const [imgProps, { fallback, children }, rootProps] = splitProps(
|
|
1058
|
-
props,
|
|
1059
|
-
["alt", "src"],
|
|
1060
|
-
["fallback", "children"]
|
|
1061
|
-
);
|
|
1062
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AvatarParts.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1063
|
-
Show,
|
|
1064
|
-
{
|
|
1065
|
-
when: Boolean(children),
|
|
1066
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
|
|
1067
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AvatarParts.Fallback, { children: fallback }),
|
|
1068
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AvatarParts.Image, { ...imgProps })
|
|
1069
|
-
] }),
|
|
1070
|
-
children
|
|
1071
|
-
}
|
|
1072
|
-
) });
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
// src/context/confirm-modal.tsx
|
|
1076
|
-
var import_jsx3 = require("@cerberus/styled-system/jsx");
|
|
1077
|
-
|
|
1078
|
-
// src/components/dialog/primitives.tsx
|
|
1079
|
-
var import_dialog = require("@ark-ui/react/dialog");
|
|
1080
|
-
var import_css18 = require("@cerberus/styled-system/css");
|
|
1081
|
-
var import_recipes14 = require("@cerberus/styled-system/recipes");
|
|
1082
|
-
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1083
|
-
function DialogRoot(props) {
|
|
1084
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_dialog.Dialog.Root, { ...props });
|
|
1085
|
-
}
|
|
1086
|
-
function DialogTrigger(props) {
|
|
1087
|
-
const styles = (0, import_recipes14.dialog)();
|
|
1088
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1089
|
-
import_dialog.Dialog.Trigger,
|
|
1090
|
-
{
|
|
1091
|
-
...props,
|
|
1092
|
-
className: (0, import_css18.cx)(styles.trigger, props.className)
|
|
1093
|
-
}
|
|
1094
|
-
);
|
|
1095
|
-
}
|
|
1096
|
-
function DialogBackdrop(props) {
|
|
1097
|
-
const styles = (0, import_recipes14.dialog)();
|
|
1098
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1099
|
-
import_dialog.Dialog.Backdrop,
|
|
1100
|
-
{
|
|
1101
|
-
...props,
|
|
1102
|
-
className: (0, import_css18.cx)(styles.backdrop, props.className)
|
|
1103
|
-
}
|
|
1104
|
-
);
|
|
1105
|
-
}
|
|
1106
|
-
function DialogPositioner(props) {
|
|
1107
|
-
const styles = (0, import_recipes14.dialog)();
|
|
1108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1109
|
-
import_dialog.Dialog.Positioner,
|
|
1110
|
-
{
|
|
1111
|
-
...props,
|
|
1112
|
-
className: (0, import_css18.cx)(styles.positioner, props.className)
|
|
1113
|
-
}
|
|
1114
|
-
);
|
|
1115
|
-
}
|
|
1116
|
-
function DialogContent(props) {
|
|
1117
|
-
const { size, ...contentProps } = props;
|
|
1118
|
-
const styles = (0, import_recipes14.dialog)({ size });
|
|
1119
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1120
|
-
import_dialog.Dialog.Content,
|
|
1121
|
-
{
|
|
1122
|
-
...contentProps,
|
|
1123
|
-
className: (0, import_css18.cx)(styles.content, contentProps.className)
|
|
1124
|
-
}
|
|
1125
|
-
);
|
|
1126
|
-
}
|
|
1127
|
-
function DialogHeading(props) {
|
|
1128
|
-
const styles = (0, import_recipes14.dialog)();
|
|
1129
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_dialog.Dialog.Title, { ...props, className: (0, import_css18.cx)(styles.title, props.className) });
|
|
1130
|
-
}
|
|
1131
|
-
function DialogDescription(props) {
|
|
1132
|
-
const styles = (0, import_recipes14.dialog)();
|
|
1133
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1134
|
-
import_dialog.Dialog.Description,
|
|
1135
|
-
{
|
|
1136
|
-
...props,
|
|
1137
|
-
className: (0, import_css18.cx)(styles.description, props.className)
|
|
1138
|
-
}
|
|
1139
|
-
);
|
|
1140
|
-
}
|
|
1141
|
-
function DialogCloseTrigger(props) {
|
|
1142
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_dialog.Dialog.CloseTrigger, { ...props });
|
|
1143
|
-
}
|
|
1144
|
-
var DialogProvider = DialogRoot;
|
|
1145
|
-
|
|
1146
|
-
// src/components/dialog/parts.ts
|
|
1147
|
-
var DialogParts = {
|
|
1148
|
-
Root: DialogRoot,
|
|
1149
|
-
Trigger: DialogTrigger,
|
|
1150
|
-
Backdrop: DialogBackdrop,
|
|
1151
|
-
Positioner: DialogPositioner,
|
|
1152
|
-
Content: DialogContent,
|
|
1153
|
-
Heading: DialogHeading,
|
|
1154
|
-
Description: DialogDescription,
|
|
1155
|
-
CloseTrigger: DialogCloseTrigger
|
|
1156
|
-
};
|
|
1157
|
-
|
|
1158
|
-
// src/components/IconButton.tsx
|
|
1159
|
-
var import_factory2 = require("@ark-ui/react/factory");
|
|
1160
|
-
var import_css19 = require("@cerberus/styled-system/css");
|
|
1161
|
-
var import_recipes15 = require("@cerberus/styled-system/recipes");
|
|
1162
|
-
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1163
|
-
function IconButton(props) {
|
|
1164
|
-
const { ariaLabel, palette, usage, size, ...nativeProps } = props;
|
|
1165
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1166
|
-
import_factory2.ark.button,
|
|
1167
|
-
{
|
|
1168
|
-
...nativeProps,
|
|
1169
|
-
"aria-label": ariaLabel ?? "Icon Button",
|
|
1170
|
-
className: (0, import_css19.cx)(
|
|
1171
|
-
nativeProps.className,
|
|
1172
|
-
(0, import_recipes15.iconButton)({
|
|
1173
|
-
palette,
|
|
1174
|
-
usage,
|
|
1175
|
-
size
|
|
1176
|
-
})
|
|
1177
|
-
)
|
|
1178
|
-
}
|
|
1179
|
-
);
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
// src/components/dialog/close-icon-trigger.tsx
|
|
1183
|
-
var import_recipes16 = require("@cerberus/styled-system/recipes");
|
|
1184
|
-
var import_css20 = require("@cerberus/styled-system/css");
|
|
1185
|
-
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1186
|
-
function DialogCloseIconTrigger(props) {
|
|
1187
|
-
const styles = (0, import_recipes16.dialog)();
|
|
1188
|
-
const { icons } = useCerberusContext();
|
|
1189
|
-
const { close: CloseIcon } = icons;
|
|
1190
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1191
|
-
DialogCloseTrigger,
|
|
1192
|
-
{
|
|
1193
|
-
...props,
|
|
1194
|
-
className: (0, import_css20.cx)(styles.closeTrigger, props.className),
|
|
1195
|
-
asChild: true,
|
|
1196
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1197
|
-
IconButton,
|
|
1198
|
-
{
|
|
1199
|
-
ariaLabel: "Close dialog",
|
|
1200
|
-
palette: "action",
|
|
1201
|
-
size: "lg",
|
|
1202
|
-
usage: "ghost",
|
|
1203
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CloseIcon, {})
|
|
1204
|
-
}
|
|
1205
|
-
)
|
|
1206
|
-
}
|
|
1207
|
-
);
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
// src/components/Portal.tsx
|
|
1211
|
-
var import_react9 = require("@ark-ui/react");
|
|
1212
|
-
var Portal = import_react9.Portal;
|
|
1213
|
-
|
|
1214
|
-
// src/components/dialog/dialog.tsx
|
|
1215
|
-
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1216
|
-
function Dialog2(props) {
|
|
1217
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Portal, { children: [
|
|
1218
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogBackdrop, {}),
|
|
1219
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DialogContent, { ...props }) })
|
|
1220
|
-
] });
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
// src/context/confirm-modal.tsx
|
|
1224
|
-
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1225
|
-
var ConfirmModalContext = (0, import_react10.createContext)(null);
|
|
1226
|
-
function ConfirmModal(props) {
|
|
1227
|
-
const [open, setOpen] = (0, import_react10.useState)(false);
|
|
1228
|
-
const [content, setContent] = (0, import_react10.useState)(null);
|
|
1229
|
-
const resolveRef = (0, import_react10.useRef)(null);
|
|
1230
|
-
const kind = (content == null ? void 0 : content.kind) ?? "non-destructive";
|
|
1231
|
-
const { icons } = useCerberusContext();
|
|
1232
|
-
const { confirmModal: ConfirmIcon } = icons;
|
|
1233
|
-
const palette = (0, import_react10.useMemo)(
|
|
1234
|
-
() => kind === "destructive" ? "danger" : "action",
|
|
1235
|
-
[kind]
|
|
1236
|
-
);
|
|
1237
|
-
const handleChoice = (0, import_react10.useCallback)(
|
|
1238
|
-
(e) => {
|
|
1239
|
-
var _a, _b;
|
|
1240
|
-
const target = e.currentTarget;
|
|
1241
|
-
if (target.value === "true") {
|
|
1242
|
-
(_a = resolveRef.current) == null ? void 0 : _a.call(resolveRef, true);
|
|
1243
|
-
}
|
|
1244
|
-
(_b = resolveRef.current) == null ? void 0 : _b.call(resolveRef, false);
|
|
1245
|
-
setOpen(false);
|
|
1246
|
-
},
|
|
1247
|
-
[setOpen]
|
|
1248
|
-
);
|
|
1249
|
-
const handleShow = (0, import_react10.useCallback)(
|
|
1250
|
-
(options) => {
|
|
1251
|
-
return new Promise((resolve) => {
|
|
1252
|
-
setContent({ ...options });
|
|
1253
|
-
setOpen(true);
|
|
1254
|
-
resolveRef.current = resolve;
|
|
1255
|
-
});
|
|
1256
|
-
},
|
|
1257
|
-
[setOpen, setContent]
|
|
1258
|
-
);
|
|
1259
|
-
const value = (0, import_react10.useMemo)(
|
|
1260
|
-
() => ({
|
|
1261
|
-
show: handleShow
|
|
1262
|
-
}),
|
|
1263
|
-
[handleShow]
|
|
1264
|
-
);
|
|
1265
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(ConfirmModalContext.Provider, { value, children: [
|
|
1266
|
-
props.children,
|
|
1267
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Dialog2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx3.VStack, { gap: "xl", w: "full", children: [
|
|
1268
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx3.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
|
|
1269
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1270
|
-
import_jsx3.HStack,
|
|
1271
|
-
{
|
|
1272
|
-
alignSelf: "center",
|
|
1273
|
-
justify: "center",
|
|
1274
|
-
paddingBlockEnd: "md",
|
|
1275
|
-
w: "full",
|
|
1276
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1277
|
-
Show,
|
|
1278
|
-
{
|
|
1279
|
-
when: palette === "danger",
|
|
1280
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1281
|
-
Avatar2,
|
|
1282
|
-
{
|
|
1283
|
-
gradient: "charon-light",
|
|
1284
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ConfirmIcon, { size: 24 })
|
|
1285
|
-
}
|
|
1286
|
-
),
|
|
1287
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1288
|
-
Avatar2,
|
|
1289
|
-
{
|
|
1290
|
-
gradient: "hades-dark",
|
|
1291
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ConfirmIcon, { size: 24 })
|
|
1292
|
-
}
|
|
1293
|
-
)
|
|
1294
|
-
}
|
|
1295
|
-
)
|
|
1296
|
-
}
|
|
1297
|
-
),
|
|
1298
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
1299
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
1300
|
-
] }),
|
|
1301
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx3.HStack, { gap: "4", w: "full", children: [
|
|
1302
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1303
|
-
Button,
|
|
1304
|
-
{
|
|
1305
|
-
autoFocus: true,
|
|
1306
|
-
className: (0, import_css21.css)({
|
|
1307
|
-
w: "1/2"
|
|
1308
|
-
}),
|
|
1309
|
-
name: "confirm",
|
|
1310
|
-
onClick: handleChoice,
|
|
1311
|
-
palette,
|
|
1312
|
-
value: "true",
|
|
1313
|
-
children: content == null ? void 0 : content.actionText
|
|
1314
|
-
}
|
|
1315
|
-
),
|
|
1316
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1317
|
-
Button,
|
|
1318
|
-
{
|
|
1319
|
-
className: (0, import_css21.css)({
|
|
1320
|
-
w: "1/2"
|
|
1321
|
-
}),
|
|
1322
|
-
name: "cancel",
|
|
1323
|
-
onClick: handleChoice,
|
|
1324
|
-
usage: "outlined",
|
|
1325
|
-
value: "false",
|
|
1326
|
-
children: content == null ? void 0 : content.cancelText
|
|
1327
|
-
}
|
|
1328
|
-
) })
|
|
1329
|
-
] })
|
|
1330
|
-
] }) }) })
|
|
1331
|
-
] });
|
|
1332
|
-
}
|
|
1333
|
-
function useConfirmModal() {
|
|
1334
|
-
const context = (0, import_react10.useContext)(ConfirmModalContext);
|
|
1335
|
-
if (context === null) {
|
|
1336
|
-
throw new Error(
|
|
1337
|
-
"useConfirmModal must be used within a ConfirmModal Provider"
|
|
1338
|
-
);
|
|
1339
|
-
}
|
|
1340
|
-
return context;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
// src/context/prompt-modal.tsx
|
|
1344
|
-
var import_react11 = require("react");
|
|
1345
|
-
var import_react12 = require("@ark-ui/react");
|
|
1346
|
-
var import_jsx5 = require("@cerberus/styled-system/jsx");
|
|
1347
|
-
var import_css22 = require("@cerberus/styled-system/css");
|
|
1348
|
-
var import_patterns4 = require("@cerberus/styled-system/patterns");
|
|
1349
|
-
|
|
1350
|
-
// src/components/Text.tsx
|
|
1351
|
-
var import_jsx4 = require("@cerberus/styled-system/jsx");
|
|
1352
|
-
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1353
|
-
function Text(props) {
|
|
1354
|
-
const { as = "p", ...pandaJSXProps } = props;
|
|
1355
|
-
switch (as) {
|
|
1356
|
-
case "h1":
|
|
1357
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.H1, { ...pandaJSXProps });
|
|
1358
|
-
case "h2":
|
|
1359
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.H2, { ...pandaJSXProps });
|
|
1360
|
-
case "h3":
|
|
1361
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.H3, { ...pandaJSXProps });
|
|
1362
|
-
case "h4":
|
|
1363
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.H4, { ...pandaJSXProps });
|
|
1364
|
-
case "h5":
|
|
1365
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.H5, { ...pandaJSXProps });
|
|
1366
|
-
case "h6":
|
|
1367
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.H6, { ...pandaJSXProps });
|
|
1368
|
-
case "strong":
|
|
1369
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.Strong, { ...pandaJSXProps });
|
|
1370
|
-
case "em":
|
|
1371
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.Em, { ...pandaJSXProps });
|
|
1372
|
-
case "small":
|
|
1373
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.Small, { ...pandaJSXProps });
|
|
1374
|
-
case "span":
|
|
1375
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.Span, { ...pandaJSXProps });
|
|
1376
|
-
default:
|
|
1377
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx4.P, { ...pandaJSXProps });
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
// src/context/prompt-modal.tsx
|
|
1382
|
-
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1383
|
-
var PromptModalContext = (0, import_react11.createContext)(null);
|
|
1384
|
-
function PromptModal(props) {
|
|
1385
|
-
const resolveRef = (0, import_react11.useRef)(null);
|
|
1386
|
-
const [open, setOpen] = (0, import_react11.useState)(false);
|
|
1387
|
-
const [content, setContent] = (0, import_react11.useState)(null);
|
|
1388
|
-
const [inputValue, setInputValue] = (0, import_react11.useState)("");
|
|
1389
|
-
const { icons } = useCerberusContext();
|
|
1390
|
-
const { promptModal: PromptIcon } = icons;
|
|
1391
|
-
const isValid = (0, import_react11.useMemo)(
|
|
1392
|
-
() => inputValue === (content == null ? void 0 : content.key),
|
|
1393
|
-
[inputValue, content]
|
|
1394
|
-
);
|
|
1395
|
-
const palette = (0, import_react11.useMemo)(
|
|
1396
|
-
() => (content == null ? void 0 : content.kind) === "destructive" ? "danger" : "action",
|
|
1397
|
-
[content]
|
|
1398
|
-
);
|
|
1399
|
-
const handleChange = (0, import_react11.useCallback)(
|
|
1400
|
-
(e) => {
|
|
1401
|
-
setInputValue(e.currentTarget.value);
|
|
1402
|
-
},
|
|
1403
|
-
[content]
|
|
1404
|
-
);
|
|
1405
|
-
const handleChoice = (0, import_react11.useCallback)(
|
|
1406
|
-
(e) => {
|
|
1407
|
-
var _a;
|
|
1408
|
-
const target = e.currentTarget;
|
|
1409
|
-
if (target.value === "true") {
|
|
1410
|
-
(_a = resolveRef.current) == null ? void 0 : _a.call(resolveRef, inputValue);
|
|
1411
|
-
}
|
|
1412
|
-
setOpen(false);
|
|
1413
|
-
},
|
|
1414
|
-
[inputValue, setOpen]
|
|
1415
|
-
);
|
|
1416
|
-
const handleShow = (0, import_react11.useCallback)(
|
|
1417
|
-
(options) => {
|
|
1418
|
-
return new Promise((resolve) => {
|
|
1419
|
-
setContent({ ...options, kind: options.kind || "non-destructive" });
|
|
1420
|
-
setOpen(true);
|
|
1421
|
-
resolveRef.current = resolve;
|
|
1422
|
-
});
|
|
1423
|
-
},
|
|
1424
|
-
[setOpen]
|
|
1425
|
-
);
|
|
1426
|
-
const value = (0, import_react11.useMemo)(
|
|
1427
|
-
() => ({
|
|
1428
|
-
show: handleShow
|
|
1429
|
-
}),
|
|
1430
|
-
[handleShow]
|
|
1431
|
-
);
|
|
1432
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(PromptModalContext.Provider, { value, children: [
|
|
1433
|
-
props.children,
|
|
1434
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx5.VStack, { gap: "xl", w: "full", children: [
|
|
1435
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx5.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
|
|
1436
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1437
|
-
import_jsx5.HStack,
|
|
1438
|
-
{
|
|
1439
|
-
alignSelf: "center",
|
|
1440
|
-
justify: "center",
|
|
1441
|
-
paddingBlockEnd: "md",
|
|
1442
|
-
w: "full",
|
|
1443
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1444
|
-
Show,
|
|
1445
|
-
{
|
|
1446
|
-
when: palette === "danger",
|
|
1447
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1448
|
-
Avatar2,
|
|
1449
|
-
{
|
|
1450
|
-
gradient: "charon-light",
|
|
1451
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PromptIcon, { size: 24 })
|
|
1452
|
-
}
|
|
1453
|
-
),
|
|
1454
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1455
|
-
Avatar2,
|
|
1456
|
-
{
|
|
1457
|
-
gradient: "hades-dark",
|
|
1458
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PromptIcon, { size: 24 })
|
|
1459
|
-
}
|
|
1460
|
-
)
|
|
1461
|
-
}
|
|
1462
|
-
)
|
|
1463
|
-
}
|
|
1464
|
-
),
|
|
1465
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
1466
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
1467
|
-
] }),
|
|
1468
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1469
|
-
import_jsx5.VStack,
|
|
1470
|
-
{
|
|
1471
|
-
alignItems: "flex-start",
|
|
1472
|
-
marginBlockStart: "md",
|
|
1473
|
-
marginBlockEnd: "lg",
|
|
1474
|
-
w: "full",
|
|
1475
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1476
|
-
FieldRoot,
|
|
1477
|
-
{
|
|
1478
|
-
ids: {
|
|
1479
|
-
control: "confirm"
|
|
1480
|
-
},
|
|
1481
|
-
invalid: !isValid,
|
|
1482
|
-
children: [
|
|
1483
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1484
|
-
FieldLabel,
|
|
1485
|
-
{
|
|
1486
|
-
className: (0, import_patterns4.hstack)({
|
|
1487
|
-
gap: "xs",
|
|
1488
|
-
justify: "flex-start !important",
|
|
1489
|
-
marginBlockEnd: "xs",
|
|
1490
|
-
textStyle: "label-md"
|
|
1491
|
-
}),
|
|
1492
|
-
children: [
|
|
1493
|
-
"Type",
|
|
1494
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
|
|
1495
|
-
"to confirm"
|
|
1496
|
-
]
|
|
1497
|
-
}
|
|
1498
|
-
),
|
|
1499
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
|
|
1500
|
-
]
|
|
1501
|
-
}
|
|
1502
|
-
)
|
|
1503
|
-
}
|
|
1504
|
-
),
|
|
1505
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx5.HStack, { gap: "md", justify: "stretch", w: "full", children: [
|
|
1506
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1507
|
-
Button,
|
|
1508
|
-
{
|
|
1509
|
-
autoFocus: true,
|
|
1510
|
-
className: (0, import_css22.css)({
|
|
1511
|
-
w: "1/2"
|
|
1512
|
-
}),
|
|
1513
|
-
disabled: !isValid,
|
|
1514
|
-
name: "confirm",
|
|
1515
|
-
onClick: handleChoice,
|
|
1516
|
-
palette,
|
|
1517
|
-
value: "true",
|
|
1518
|
-
children: content == null ? void 0 : content.actionText
|
|
1519
|
-
}
|
|
1520
|
-
),
|
|
1521
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react12.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1522
|
-
Button,
|
|
1523
|
-
{
|
|
1524
|
-
className: (0, import_css22.css)({
|
|
1525
|
-
w: "1/2"
|
|
1526
|
-
}),
|
|
1527
|
-
name: "cancel",
|
|
1528
|
-
onClick: handleChoice,
|
|
1529
|
-
usage: "outlined",
|
|
1530
|
-
value: "false",
|
|
1531
|
-
children: content == null ? void 0 : content.cancelText
|
|
831
|
+
}),
|
|
832
|
+
children: "(required)"
|
|
1532
833
|
}
|
|
1533
834
|
) })
|
|
1534
|
-
]
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1538
|
-
function usePromptModal() {
|
|
1539
|
-
const context = (0, import_react11.useContext)(PromptModalContext);
|
|
1540
|
-
if (context === null) {
|
|
1541
|
-
throw new Error("usePromptModal must be used within a PromptModal Provider");
|
|
1542
|
-
}
|
|
1543
|
-
return context;
|
|
835
|
+
]
|
|
836
|
+
}
|
|
837
|
+
);
|
|
1544
838
|
}
|
|
1545
839
|
|
|
1546
840
|
// src/hooks/useDate.ts
|
|
1547
|
-
var
|
|
841
|
+
var import_react6 = require("react");
|
|
1548
842
|
function useDate(options) {
|
|
1549
843
|
const initialValue = (options == null ? void 0 : options.initialValue) ?? "";
|
|
1550
844
|
const format = (options == null ? void 0 : options.format) ?? DateFormats.USMilitary;
|
|
1551
845
|
const onChange = options == null ? void 0 : options.onChange;
|
|
1552
|
-
const [value, setValue] = (0,
|
|
1553
|
-
const handleChange = (0,
|
|
846
|
+
const [value, setValue] = (0, import_react6.useState)(initialValue);
|
|
847
|
+
const handleChange = (0, import_react6.useCallback)(
|
|
1554
848
|
(e) => {
|
|
1555
849
|
const newValue = formatMilitaryDate(e.currentTarget.value);
|
|
1556
850
|
if (onChange) onChange(e);
|
|
@@ -1558,7 +852,7 @@ function useDate(options) {
|
|
|
1558
852
|
},
|
|
1559
853
|
[onChange]
|
|
1560
854
|
);
|
|
1561
|
-
return (0,
|
|
855
|
+
return (0, import_react6.useMemo)(
|
|
1562
856
|
() => ({
|
|
1563
857
|
format,
|
|
1564
858
|
value,
|
|
@@ -1636,37 +930,12 @@ var MONTHS = [
|
|
|
1636
930
|
"DEC"
|
|
1637
931
|
];
|
|
1638
932
|
|
|
1639
|
-
// src/hooks/useModal.ts
|
|
1640
|
-
var import_react14 = require("react");
|
|
1641
|
-
function useModal() {
|
|
1642
|
-
const modalRef = (0, import_react14.useRef)(null);
|
|
1643
|
-
const [isOpen, setIsOpen] = (0, import_react14.useState)(false);
|
|
1644
|
-
const show = (0, import_react14.useCallback)(() => {
|
|
1645
|
-
var _a;
|
|
1646
|
-
(_a = modalRef.current) == null ? void 0 : _a.showModal();
|
|
1647
|
-
setIsOpen(true);
|
|
1648
|
-
}, []);
|
|
1649
|
-
const close = (0, import_react14.useCallback)(() => {
|
|
1650
|
-
var _a;
|
|
1651
|
-
(_a = modalRef.current) == null ? void 0 : _a.close();
|
|
1652
|
-
setIsOpen(false);
|
|
1653
|
-
}, []);
|
|
1654
|
-
return (0, import_react14.useMemo)(() => {
|
|
1655
|
-
return {
|
|
1656
|
-
modalRef,
|
|
1657
|
-
show,
|
|
1658
|
-
close,
|
|
1659
|
-
isOpen
|
|
1660
|
-
};
|
|
1661
|
-
}, [modalRef, show, close, isOpen]);
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
933
|
// src/hooks/useToggle.ts
|
|
1665
|
-
var
|
|
934
|
+
var import_react7 = require("react");
|
|
1666
935
|
function useToggle(options) {
|
|
1667
|
-
const [checked, setChecked] = (0,
|
|
936
|
+
const [checked, setChecked] = (0, import_react7.useState)((options == null ? void 0 : options.checked) ?? "");
|
|
1668
937
|
const onChange = options == null ? void 0 : options.onChange;
|
|
1669
|
-
const handleChange = (0,
|
|
938
|
+
const handleChange = (0, import_react7.useCallback)(
|
|
1670
939
|
(e) => {
|
|
1671
940
|
const target = e.currentTarget;
|
|
1672
941
|
setChecked((prev) => {
|
|
@@ -1676,52 +945,52 @@ function useToggle(options) {
|
|
|
1676
945
|
},
|
|
1677
946
|
[onChange]
|
|
1678
947
|
);
|
|
1679
|
-
return (0,
|
|
948
|
+
return (0, import_react7.useMemo)(() => ({ checked, handleChange }), [checked, handleChange]);
|
|
1680
949
|
}
|
|
1681
950
|
|
|
1682
951
|
// src/components/admonition/primitives.tsx
|
|
1683
|
-
var
|
|
1684
|
-
var
|
|
1685
|
-
var
|
|
1686
|
-
var
|
|
952
|
+
var import_factory = require("@ark-ui/react/factory");
|
|
953
|
+
var import_css12 = require("styled-system/css");
|
|
954
|
+
var import_recipes9 = require("styled-system/recipes");
|
|
955
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1687
956
|
function AdmonitionRoot(props) {
|
|
1688
957
|
const { palette, usage, ...nativeProps } = props;
|
|
1689
|
-
const styles = (0,
|
|
1690
|
-
return /* @__PURE__ */ (0,
|
|
1691
|
-
|
|
958
|
+
const styles = (0, import_recipes9.admonition)({ palette, usage });
|
|
959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
960
|
+
import_factory.ark.aside,
|
|
1692
961
|
{
|
|
1693
962
|
...nativeProps,
|
|
1694
|
-
className: (0,
|
|
963
|
+
className: (0, import_css12.cx)(styles.root, nativeProps.className),
|
|
1695
964
|
"data-scope": "admonition",
|
|
1696
965
|
"data-part": "root"
|
|
1697
966
|
}
|
|
1698
967
|
);
|
|
1699
968
|
}
|
|
1700
969
|
function AdmonitionIndicator(props) {
|
|
1701
|
-
return /* @__PURE__ */ (0,
|
|
970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_factory.ark.span, { ...props, "data-scope": "admonition", "data-part": "indicator" });
|
|
1702
971
|
}
|
|
1703
972
|
function AdmonitionContent(props) {
|
|
1704
|
-
return /* @__PURE__ */ (0,
|
|
973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_factory.ark.div, { ...props, "data-scope": "admonition", "data-part": "content" });
|
|
1705
974
|
}
|
|
1706
975
|
function AdmonitionHeading(props) {
|
|
1707
|
-
const styles = (0,
|
|
1708
|
-
return /* @__PURE__ */ (0,
|
|
1709
|
-
|
|
976
|
+
const styles = (0, import_recipes9.admonition)();
|
|
977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
978
|
+
import_factory.ark.p,
|
|
1710
979
|
{
|
|
1711
980
|
...props,
|
|
1712
|
-
className: (0,
|
|
981
|
+
className: (0, import_css12.cx)(styles.heading, props.className),
|
|
1713
982
|
"data-scope": "admonition",
|
|
1714
983
|
"data-part": "heading"
|
|
1715
984
|
}
|
|
1716
985
|
);
|
|
1717
986
|
}
|
|
1718
987
|
function AdmonitionDescription(props) {
|
|
1719
|
-
const styles = (0,
|
|
1720
|
-
return /* @__PURE__ */ (0,
|
|
1721
|
-
|
|
988
|
+
const styles = (0, import_recipes9.admonition)();
|
|
989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
990
|
+
import_factory.ark.p,
|
|
1722
991
|
{
|
|
1723
992
|
...props,
|
|
1724
|
-
className: (0,
|
|
993
|
+
className: (0, import_css12.cx)(styles.description, props.className),
|
|
1725
994
|
"data-scope": "admonition",
|
|
1726
995
|
"data-part": "description"
|
|
1727
996
|
}
|
|
@@ -1738,8 +1007,69 @@ var AdmonitionParts = {
|
|
|
1738
1007
|
};
|
|
1739
1008
|
|
|
1740
1009
|
// src/components/admonition/match-avatar.tsx
|
|
1741
|
-
var
|
|
1742
|
-
|
|
1010
|
+
var import_react8 = require("react");
|
|
1011
|
+
|
|
1012
|
+
// src/components/avatar/primitives.tsx
|
|
1013
|
+
var import_avatar = require("@ark-ui/react/avatar");
|
|
1014
|
+
var import_recipes10 = require("styled-system/recipes");
|
|
1015
|
+
var import_css13 = require("styled-system/css");
|
|
1016
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1017
|
+
function AvatarRoot(props) {
|
|
1018
|
+
const { gradient, shape, size, ...rootProps } = props;
|
|
1019
|
+
const styles = (0, import_recipes10.avatar)({ gradient, shape, size });
|
|
1020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1021
|
+
import_avatar.Avatar.Root,
|
|
1022
|
+
{
|
|
1023
|
+
...rootProps,
|
|
1024
|
+
className: (0, import_css13.cx)(styles.root, rootProps.className)
|
|
1025
|
+
}
|
|
1026
|
+
);
|
|
1027
|
+
}
|
|
1028
|
+
function AvatarImage(props) {
|
|
1029
|
+
const styles = (0, import_recipes10.avatar)();
|
|
1030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_avatar.Avatar.Image, { ...props, className: (0, import_css13.cx)(styles.image, props.className) });
|
|
1031
|
+
}
|
|
1032
|
+
function AvatarFallback(props) {
|
|
1033
|
+
const styles = (0, import_recipes10.avatar)();
|
|
1034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1035
|
+
import_avatar.Avatar.Fallback,
|
|
1036
|
+
{
|
|
1037
|
+
...props,
|
|
1038
|
+
className: (0, import_css13.cx)(styles.fallback, props.className)
|
|
1039
|
+
}
|
|
1040
|
+
);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// src/components/avatar/parts.ts
|
|
1044
|
+
var AvatarParts = {
|
|
1045
|
+
Root: AvatarRoot,
|
|
1046
|
+
Image: AvatarImage,
|
|
1047
|
+
Fallback: AvatarFallback
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
// src/components/avatar/avatar.tsx
|
|
1051
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1052
|
+
function Avatar2(props) {
|
|
1053
|
+
const [imgProps, { fallback, children }, rootProps] = splitProps(
|
|
1054
|
+
props,
|
|
1055
|
+
["alt", "src"],
|
|
1056
|
+
["fallback", "children"]
|
|
1057
|
+
);
|
|
1058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(AvatarParts.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1059
|
+
Show,
|
|
1060
|
+
{
|
|
1061
|
+
when: children,
|
|
1062
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
1063
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(AvatarParts.Fallback, { children: fallback }),
|
|
1064
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(AvatarParts.Image, { ...imgProps })
|
|
1065
|
+
] }),
|
|
1066
|
+
children
|
|
1067
|
+
}
|
|
1068
|
+
) });
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
// src/components/admonition/match-avatar.tsx
|
|
1072
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1743
1073
|
function MatchAvatar(props) {
|
|
1744
1074
|
const { palette = "page" } = props;
|
|
1745
1075
|
const { icons } = useCerberusContext();
|
|
@@ -1749,88 +1079,88 @@ function MatchAvatar(props) {
|
|
|
1749
1079
|
warningNotification: WarningIcon,
|
|
1750
1080
|
dangerNotification: DangerIcon
|
|
1751
1081
|
} = icons;
|
|
1752
|
-
const elRef = (0,
|
|
1753
|
-
page: /* @__PURE__ */ (0,
|
|
1754
|
-
info: /* @__PURE__ */ (0,
|
|
1755
|
-
success: /* @__PURE__ */ (0,
|
|
1756
|
-
warning: /* @__PURE__ */ (0,
|
|
1757
|
-
danger: /* @__PURE__ */ (0,
|
|
1082
|
+
const elRef = (0, import_react8.useRef)({
|
|
1083
|
+
page: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar2, { gradient: "charon-light", fallback: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InfoIcon, {}), size: "sm" }),
|
|
1084
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar2, { gradient: "amphiaraus-dark", fallback: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InfoIcon, {}), size: "sm" }),
|
|
1085
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar2, { gradient: "thanatos-dark", fallback: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SuccessIcon, {}), size: "sm" }),
|
|
1086
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar2, { gradient: "asphodel-light", fallback: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(WarningIcon, {}), size: "sm" }),
|
|
1087
|
+
danger: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar2, { gradient: "hades-light", fallback: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DangerIcon, {}), size: "sm" })
|
|
1758
1088
|
});
|
|
1759
|
-
return /* @__PURE__ */ (0,
|
|
1089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: elRef.current[palette] });
|
|
1760
1090
|
}
|
|
1761
1091
|
|
|
1762
1092
|
// src/components/admonition/admonition.tsx
|
|
1763
|
-
var
|
|
1093
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1764
1094
|
function Admonition(props) {
|
|
1765
1095
|
const [elProps, styleProps, rootProps] = splitProps(
|
|
1766
1096
|
props,
|
|
1767
1097
|
["heading", "icon", "children"],
|
|
1768
1098
|
["palette", "usage"]
|
|
1769
1099
|
);
|
|
1770
|
-
return /* @__PURE__ */ (0,
|
|
1771
|
-
/* @__PURE__ */ (0,
|
|
1100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AdmonitionParts.Root, { ...styleProps, ...rootProps, children: [
|
|
1101
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1772
1102
|
Show,
|
|
1773
1103
|
{
|
|
1774
|
-
when:
|
|
1775
|
-
fallback: /* @__PURE__ */ (0,
|
|
1776
|
-
children: /* @__PURE__ */ (0,
|
|
1104
|
+
when: elProps.icon,
|
|
1105
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(MatchAvatar, { palette: styleProps.palette }),
|
|
1106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AdmonitionParts.Indicator, { children: elProps.icon })
|
|
1777
1107
|
}
|
|
1778
1108
|
),
|
|
1779
|
-
/* @__PURE__ */ (0,
|
|
1780
|
-
/* @__PURE__ */ (0,
|
|
1781
|
-
/* @__PURE__ */ (0,
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(AdmonitionParts.Content, { children: [
|
|
1110
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Show, { when: elProps.heading, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AdmonitionParts.Heading, { children: elProps.heading }) }),
|
|
1111
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AdmonitionParts.Description, { children: elProps.children })
|
|
1782
1112
|
] })
|
|
1783
1113
|
] });
|
|
1784
1114
|
}
|
|
1785
1115
|
|
|
1786
1116
|
// src/components/accordion/primitives.tsx
|
|
1787
1117
|
var import_accordion = require("@ark-ui/react/accordion");
|
|
1788
|
-
var
|
|
1789
|
-
var
|
|
1790
|
-
var
|
|
1118
|
+
var import_css14 = require("styled-system/css");
|
|
1119
|
+
var import_recipes11 = require("styled-system/recipes");
|
|
1120
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1791
1121
|
function AccordionRoot(props) {
|
|
1792
1122
|
const { size, ...rootProps } = props;
|
|
1793
|
-
const styles = (0,
|
|
1794
|
-
return /* @__PURE__ */ (0,
|
|
1123
|
+
const styles = (0, import_recipes11.accordion)({ size });
|
|
1124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1795
1125
|
import_accordion.Accordion.Root,
|
|
1796
1126
|
{
|
|
1797
1127
|
...props,
|
|
1798
|
-
className: (0,
|
|
1128
|
+
className: (0, import_css14.cx)(styles.root, rootProps.className),
|
|
1799
1129
|
"data-size": size
|
|
1800
1130
|
}
|
|
1801
1131
|
);
|
|
1802
1132
|
}
|
|
1803
1133
|
function AccordionItem(props) {
|
|
1804
|
-
const styles = (0,
|
|
1805
|
-
return /* @__PURE__ */ (0,
|
|
1134
|
+
const styles = (0, import_recipes11.accordion)();
|
|
1135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_accordion.Accordion.Item, { ...props, className: (0, import_css14.cx)(styles.item, props.className) });
|
|
1806
1136
|
}
|
|
1807
1137
|
function AccordionItemTrigger(props) {
|
|
1808
|
-
const styles = (0,
|
|
1809
|
-
return /* @__PURE__ */ (0,
|
|
1138
|
+
const styles = (0, import_recipes11.accordion)();
|
|
1139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1810
1140
|
import_accordion.Accordion.ItemTrigger,
|
|
1811
1141
|
{
|
|
1812
1142
|
...props,
|
|
1813
|
-
className: (0,
|
|
1143
|
+
className: (0, import_css14.cx)(styles.itemTrigger, props.className)
|
|
1814
1144
|
}
|
|
1815
1145
|
);
|
|
1816
1146
|
}
|
|
1817
1147
|
function AccordionItemIndicator(props) {
|
|
1818
|
-
const styles = (0,
|
|
1819
|
-
return /* @__PURE__ */ (0,
|
|
1148
|
+
const styles = (0, import_recipes11.accordion)();
|
|
1149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1820
1150
|
import_accordion.Accordion.ItemIndicator,
|
|
1821
1151
|
{
|
|
1822
1152
|
...props,
|
|
1823
|
-
className: (0,
|
|
1153
|
+
className: (0, import_css14.cx)(styles.itemIndicator, props.className)
|
|
1824
1154
|
}
|
|
1825
1155
|
);
|
|
1826
1156
|
}
|
|
1827
1157
|
function AccordionItemContent(props) {
|
|
1828
|
-
const styles = (0,
|
|
1829
|
-
return /* @__PURE__ */ (0,
|
|
1158
|
+
const styles = (0, import_recipes11.accordion)();
|
|
1159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1830
1160
|
import_accordion.Accordion.ItemContent,
|
|
1831
1161
|
{
|
|
1832
1162
|
...props,
|
|
1833
|
-
className: (0,
|
|
1163
|
+
className: (0, import_css14.cx)(styles.itemContent, props.className)
|
|
1834
1164
|
}
|
|
1835
1165
|
);
|
|
1836
1166
|
}
|
|
@@ -1845,18 +1175,20 @@ var AccordionParts = {
|
|
|
1845
1175
|
};
|
|
1846
1176
|
|
|
1847
1177
|
// src/components/accordion/item-indicator.tsx
|
|
1848
|
-
var
|
|
1178
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1849
1179
|
function AccordionChevronItemIndicator(props) {
|
|
1850
1180
|
const { size, ...indicatorProps } = props;
|
|
1851
1181
|
const iconSize = size === "sm" ? 16 : "24";
|
|
1852
1182
|
const { icons } = useCerberusContext();
|
|
1853
1183
|
const { accordionIndicator: ChevronDown } = icons;
|
|
1854
|
-
return /* @__PURE__ */ (0,
|
|
1184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AccordionParts.ItemIndicator, { ...indicatorProps, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronDown, { size: iconSize }) });
|
|
1855
1185
|
}
|
|
1856
1186
|
|
|
1857
1187
|
// src/components/accordion/item-group.tsx
|
|
1858
|
-
var
|
|
1859
|
-
|
|
1188
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1189
|
+
function Accordion2(props) {
|
|
1190
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionParts.Root, { ...props });
|
|
1191
|
+
}
|
|
1860
1192
|
function AccordionItemGroup(props) {
|
|
1861
1193
|
const [groupProps, itemProps] = splitProps(props, [
|
|
1862
1194
|
"heading",
|
|
@@ -1864,18 +1196,132 @@ function AccordionItemGroup(props) {
|
|
|
1864
1196
|
"indicatorPosition"
|
|
1865
1197
|
]);
|
|
1866
1198
|
const indicatorPosition = groupProps.indicatorPosition ?? "end";
|
|
1867
|
-
return /* @__PURE__ */ (0,
|
|
1868
|
-
/* @__PURE__ */ (0,
|
|
1869
|
-
/* @__PURE__ */ (0,
|
|
1199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(AccordionParts.Item, { ...itemProps, children: [
|
|
1200
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(AccordionParts.ItemTrigger, { "data-indicator-position": indicatorPosition, children: [
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Show, { when: indicatorPosition === "start", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionChevronItemIndicator, {}) }),
|
|
1870
1202
|
groupProps.heading,
|
|
1871
|
-
/* @__PURE__ */ (0,
|
|
1203
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Show, { when: indicatorPosition === "end", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionChevronItemIndicator, {}) })
|
|
1872
1204
|
] }),
|
|
1873
|
-
/* @__PURE__ */ (0,
|
|
1205
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AccordionParts.ItemContent, { children: groupProps.children })
|
|
1874
1206
|
] });
|
|
1875
1207
|
}
|
|
1876
1208
|
|
|
1877
1209
|
// src/components/avatar/index.ts
|
|
1878
|
-
var
|
|
1210
|
+
var import_avatar3 = require("@ark-ui/react/avatar");
|
|
1211
|
+
|
|
1212
|
+
// src/components/button/button.tsx
|
|
1213
|
+
var import_factory2 = require("@ark-ui/react/factory");
|
|
1214
|
+
var import_react9 = require("react");
|
|
1215
|
+
var import_css15 = require("styled-system/css");
|
|
1216
|
+
var import_recipes12 = require("styled-system/recipes");
|
|
1217
|
+
var import_jsx2 = require("styled-system/jsx");
|
|
1218
|
+
|
|
1219
|
+
// src/components/Spinner.tsx
|
|
1220
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1221
|
+
function Spinner(props) {
|
|
1222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1223
|
+
"svg",
|
|
1224
|
+
{
|
|
1225
|
+
"aria-busy": "true",
|
|
1226
|
+
"data-scope": "spinner",
|
|
1227
|
+
"data-part": "root",
|
|
1228
|
+
role: "status",
|
|
1229
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1230
|
+
height: props.size,
|
|
1231
|
+
width: props.size,
|
|
1232
|
+
viewBox: "0 0 24 24",
|
|
1233
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1234
|
+
"g",
|
|
1235
|
+
{
|
|
1236
|
+
fill: "none",
|
|
1237
|
+
stroke: "currentColor",
|
|
1238
|
+
strokeLinecap: "round",
|
|
1239
|
+
strokeLinejoin: "round",
|
|
1240
|
+
strokeWidth: 2,
|
|
1241
|
+
children: [
|
|
1242
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1243
|
+
"path",
|
|
1244
|
+
{
|
|
1245
|
+
strokeDasharray: 16,
|
|
1246
|
+
strokeDashoffset: 16,
|
|
1247
|
+
d: "M12 3c4.97 0 9 4.03 9 9",
|
|
1248
|
+
children: [
|
|
1249
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1250
|
+
"animate",
|
|
1251
|
+
{
|
|
1252
|
+
fill: "freeze",
|
|
1253
|
+
attributeName: "stroke-dashoffset",
|
|
1254
|
+
dur: "0.15s",
|
|
1255
|
+
values: "16;0"
|
|
1256
|
+
}
|
|
1257
|
+
),
|
|
1258
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1259
|
+
"animateTransform",
|
|
1260
|
+
{
|
|
1261
|
+
attributeName: "transform",
|
|
1262
|
+
dur: "0.75s",
|
|
1263
|
+
repeatCount: "indefinite",
|
|
1264
|
+
type: "rotate",
|
|
1265
|
+
values: "0 12 12;360 12 12"
|
|
1266
|
+
}
|
|
1267
|
+
)
|
|
1268
|
+
]
|
|
1269
|
+
}
|
|
1270
|
+
),
|
|
1271
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1272
|
+
"path",
|
|
1273
|
+
{
|
|
1274
|
+
strokeDasharray: 64,
|
|
1275
|
+
strokeDashoffset: 64,
|
|
1276
|
+
strokeOpacity: 0.3,
|
|
1277
|
+
d: "M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",
|
|
1278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1279
|
+
"animate",
|
|
1280
|
+
{
|
|
1281
|
+
fill: "freeze",
|
|
1282
|
+
attributeName: "stroke-dashoffset",
|
|
1283
|
+
dur: "0.6s",
|
|
1284
|
+
values: "64;0"
|
|
1285
|
+
}
|
|
1286
|
+
)
|
|
1287
|
+
}
|
|
1288
|
+
)
|
|
1289
|
+
]
|
|
1290
|
+
}
|
|
1291
|
+
)
|
|
1292
|
+
}
|
|
1293
|
+
);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
// src/components/button/button.tsx
|
|
1297
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1298
|
+
var ButtonContext = (0, import_react9.createContext)({
|
|
1299
|
+
pending: false
|
|
1300
|
+
});
|
|
1301
|
+
function Button(props) {
|
|
1302
|
+
const { palette, usage, shape, size, pending = false, ...nativeProps } = props;
|
|
1303
|
+
const value = (0, import_react9.useMemo)(() => ({ pending }), [pending]);
|
|
1304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ButtonContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1305
|
+
import_factory2.ark.button,
|
|
1306
|
+
{
|
|
1307
|
+
...nativeProps,
|
|
1308
|
+
disabled: pending || nativeProps.disabled,
|
|
1309
|
+
className: (0, import_css15.cx)(
|
|
1310
|
+
nativeProps.className,
|
|
1311
|
+
(0, import_recipes12.button)({
|
|
1312
|
+
palette,
|
|
1313
|
+
usage,
|
|
1314
|
+
shape,
|
|
1315
|
+
size
|
|
1316
|
+
})
|
|
1317
|
+
)
|
|
1318
|
+
}
|
|
1319
|
+
) });
|
|
1320
|
+
}
|
|
1321
|
+
function ButtonIcon(props) {
|
|
1322
|
+
const { pending } = (0, import_react9.useContext)(ButtonContext);
|
|
1323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Show, { when: pending, fallback: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: props.children }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx2.Box, { w: "4", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Spinner, {}) }) });
|
|
1324
|
+
}
|
|
1879
1325
|
|
|
1880
1326
|
// src/components/button/parts.ts
|
|
1881
1327
|
var ButtonParts = {
|
|
@@ -1883,53 +1329,84 @@ var ButtonParts = {
|
|
|
1883
1329
|
Icon: ButtonIcon
|
|
1884
1330
|
};
|
|
1885
1331
|
|
|
1332
|
+
// src/components/Text.tsx
|
|
1333
|
+
var import_jsx3 = require("styled-system/jsx");
|
|
1334
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1335
|
+
function Text(props) {
|
|
1336
|
+
const { as = "p", ...pandaJSXProps } = props;
|
|
1337
|
+
switch (as) {
|
|
1338
|
+
case "h1":
|
|
1339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.H1, { ...pandaJSXProps });
|
|
1340
|
+
case "h2":
|
|
1341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.H2, { ...pandaJSXProps });
|
|
1342
|
+
case "h3":
|
|
1343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.H3, { ...pandaJSXProps });
|
|
1344
|
+
case "h4":
|
|
1345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.H4, { ...pandaJSXProps });
|
|
1346
|
+
case "h5":
|
|
1347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.H5, { ...pandaJSXProps });
|
|
1348
|
+
case "h6":
|
|
1349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.H6, { ...pandaJSXProps });
|
|
1350
|
+
case "strong":
|
|
1351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.Strong, { ...pandaJSXProps });
|
|
1352
|
+
case "em":
|
|
1353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.Em, { ...pandaJSXProps });
|
|
1354
|
+
case "small":
|
|
1355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.Small, { ...pandaJSXProps });
|
|
1356
|
+
case "span":
|
|
1357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.Span, { ...pandaJSXProps });
|
|
1358
|
+
default:
|
|
1359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx3.P, { ...pandaJSXProps });
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1886
1363
|
// src/components/checkbox/primitives.tsx
|
|
1887
|
-
var
|
|
1888
|
-
var
|
|
1889
|
-
var
|
|
1890
|
-
var
|
|
1364
|
+
var import_react10 = require("@ark-ui/react");
|
|
1365
|
+
var import_css16 = require("styled-system/css");
|
|
1366
|
+
var import_recipes13 = require("styled-system/recipes");
|
|
1367
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1891
1368
|
function CheckboxRoot(props) {
|
|
1892
|
-
const styles = (0,
|
|
1893
|
-
return /* @__PURE__ */ (0,
|
|
1369
|
+
const styles = (0, import_recipes13.checkbox)();
|
|
1370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react10.Checkbox.Root, { ...props, className: (0, import_css16.cx)(styles.root, props.className) });
|
|
1894
1371
|
}
|
|
1895
1372
|
function CheckboxLabel(props) {
|
|
1896
1373
|
const { size, ...labelProps } = props;
|
|
1897
|
-
const styles = (0,
|
|
1898
|
-
return /* @__PURE__ */ (0,
|
|
1899
|
-
|
|
1374
|
+
const styles = (0, import_recipes13.checkbox)({ size });
|
|
1375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1376
|
+
import_react10.Checkbox.Label,
|
|
1900
1377
|
{
|
|
1901
1378
|
...labelProps,
|
|
1902
|
-
className: (0,
|
|
1379
|
+
className: (0, import_css16.cx)(styles.label, labelProps.className)
|
|
1903
1380
|
}
|
|
1904
1381
|
);
|
|
1905
1382
|
}
|
|
1906
1383
|
function CheckboxControl(props) {
|
|
1907
1384
|
const { size, ...controlProps } = props;
|
|
1908
|
-
const styles = (0,
|
|
1909
|
-
return /* @__PURE__ */ (0,
|
|
1910
|
-
|
|
1385
|
+
const styles = (0, import_recipes13.checkbox)({ size });
|
|
1386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1387
|
+
import_react10.Checkbox.Control,
|
|
1911
1388
|
{
|
|
1912
1389
|
...controlProps,
|
|
1913
|
-
className: (0,
|
|
1390
|
+
className: (0, import_css16.cx)(styles.control, controlProps.className)
|
|
1914
1391
|
}
|
|
1915
1392
|
);
|
|
1916
1393
|
}
|
|
1917
1394
|
function CheckboxIndicator(props) {
|
|
1918
|
-
const styles = (0,
|
|
1919
|
-
return /* @__PURE__ */ (0,
|
|
1920
|
-
|
|
1395
|
+
const styles = (0, import_recipes13.checkbox)();
|
|
1396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1397
|
+
import_react10.Checkbox.Indicator,
|
|
1921
1398
|
{
|
|
1922
1399
|
...props,
|
|
1923
|
-
className: (0,
|
|
1400
|
+
className: (0, import_css16.cx)(styles.indicator, props.className)
|
|
1924
1401
|
}
|
|
1925
1402
|
);
|
|
1926
1403
|
}
|
|
1927
1404
|
function CheckboxHiddenInput(props) {
|
|
1928
|
-
return /* @__PURE__ */ (0,
|
|
1405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react10.Checkbox.HiddenInput, { ...props });
|
|
1929
1406
|
}
|
|
1930
1407
|
function CheckboxGroup(props) {
|
|
1931
|
-
const styles = (0,
|
|
1932
|
-
return /* @__PURE__ */ (0,
|
|
1408
|
+
const styles = (0, import_recipes13.checkbox)();
|
|
1409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react10.Checkbox.Group, { ...props, className: (0, import_css16.cx)(styles.group, props.className) });
|
|
1933
1410
|
}
|
|
1934
1411
|
|
|
1935
1412
|
// src/components/checkbox/parts.ts
|
|
@@ -1943,38 +1420,43 @@ var CheckboxParts = {
|
|
|
1943
1420
|
};
|
|
1944
1421
|
|
|
1945
1422
|
// src/components/checkbox/checkbox-icon.tsx
|
|
1946
|
-
var
|
|
1423
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1947
1424
|
function CheckboxIcon(props) {
|
|
1948
1425
|
const { icons } = useCerberusContext();
|
|
1949
1426
|
const { checkbox: CheckIcon, indeterminate: IndeterminateIcon2 } = icons;
|
|
1950
|
-
return /* @__PURE__ */ (0,
|
|
1427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CheckboxParts.Indicator, { indeterminate: props.indeterminate, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Show, { when: props.indeterminate, fallback: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CheckIcon, {}), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(IndeterminateIcon2, {}) }) });
|
|
1951
1428
|
}
|
|
1952
1429
|
|
|
1953
1430
|
// src/components/checkbox/checkbox.tsx
|
|
1954
|
-
var
|
|
1431
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1955
1432
|
function Checkbox2(props) {
|
|
1956
1433
|
const { size, children, ...rootProps } = props;
|
|
1957
|
-
return /* @__PURE__ */ (0,
|
|
1958
|
-
/* @__PURE__ */ (0,
|
|
1959
|
-
/* @__PURE__ */ (0,
|
|
1434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(CheckboxParts.Root, { ...rootProps, children: [
|
|
1435
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CheckboxParts.Control, { size, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CheckboxIcon, { indeterminate: rootProps.checked === "indeterminate" }) }),
|
|
1436
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(CheckboxParts.Label, { size, children: [
|
|
1960
1437
|
children,
|
|
1961
|
-
/* @__PURE__ */ (0,
|
|
1438
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Show, { when: props.required, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Text, { as: "span", "data-part": "required-indicator", children: "(required)" }) })
|
|
1962
1439
|
] }),
|
|
1963
|
-
/* @__PURE__ */ (0,
|
|
1440
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CheckboxParts.HiddenInput, {})
|
|
1964
1441
|
] });
|
|
1965
1442
|
}
|
|
1966
1443
|
|
|
1967
1444
|
// src/components/CircularProgress.tsx
|
|
1968
|
-
var
|
|
1969
|
-
var
|
|
1970
|
-
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1445
|
+
var import_recipes14 = require("styled-system/recipes");
|
|
1446
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1971
1447
|
function CircularProgress(props) {
|
|
1448
|
+
const { size = "1.1em" } = props;
|
|
1449
|
+
const sizeProps = props.size ? {
|
|
1450
|
+
height: size,
|
|
1451
|
+
width: size
|
|
1452
|
+
} : {};
|
|
1972
1453
|
const strokeW = 14;
|
|
1973
1454
|
const radius = `calc(50% * (1 - ${strokeW}/100))`;
|
|
1974
1455
|
const status = props.syntax ?? "Done";
|
|
1975
1456
|
const now = props.now >= 100 ? 100 : props.now;
|
|
1976
1457
|
const bgStyle = props.bgStyle ?? "filled";
|
|
1977
|
-
|
|
1458
|
+
const styles = (0, import_recipes14.circularProgress)();
|
|
1459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1978
1460
|
"div",
|
|
1979
1461
|
{
|
|
1980
1462
|
id: props.id,
|
|
@@ -1982,39 +1464,31 @@ function CircularProgress(props) {
|
|
|
1982
1464
|
"aria-valuemin": 0,
|
|
1983
1465
|
"aria-valuemax": 100,
|
|
1984
1466
|
"aria-valuenow": now,
|
|
1985
|
-
className:
|
|
1986
|
-
alignSelf: "stretch",
|
|
1987
|
-
flex: 1,
|
|
1988
|
-
m: "4px",
|
|
1989
|
-
position: "relative"
|
|
1990
|
-
}),
|
|
1467
|
+
className: styles.root,
|
|
1991
1468
|
role: "progressbar",
|
|
1992
|
-
children: /* @__PURE__ */ (0,
|
|
1469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1993
1470
|
"svg",
|
|
1994
1471
|
{
|
|
1995
1472
|
"data-complete": now === 100,
|
|
1996
|
-
className:
|
|
1997
|
-
display: "block",
|
|
1998
|
-
rounded: "full",
|
|
1999
|
-
transition: "all 0.5s ease"
|
|
2000
|
-
}),
|
|
1473
|
+
className: styles.group,
|
|
2001
1474
|
fill: "none",
|
|
2002
1475
|
strokeLinecap: "round",
|
|
2003
1476
|
strokeWidth: strokeW,
|
|
2004
1477
|
viewBox: "0 0 100 100",
|
|
2005
1478
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1479
|
+
...sizeProps,
|
|
2006
1480
|
children: [
|
|
2007
|
-
/* @__PURE__ */ (0,
|
|
2008
|
-
/* @__PURE__ */ (0,
|
|
2009
|
-
/* @__PURE__ */ (0,
|
|
2010
|
-
/* @__PURE__ */ (0,
|
|
1481
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("title", { children: props.title }),
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("desc", { children: `${now}% ${status}` }),
|
|
1483
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("linearGradient", { id: "gradient", children: [
|
|
1484
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2011
1485
|
"stop",
|
|
2012
1486
|
{
|
|
2013
1487
|
offset: "0%",
|
|
2014
1488
|
stopColor: "var(--cerberus-colors-data-viz-progress-start)"
|
|
2015
1489
|
}
|
|
2016
1490
|
),
|
|
2017
|
-
/* @__PURE__ */ (0,
|
|
1491
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2018
1492
|
"stop",
|
|
2019
1493
|
{
|
|
2020
1494
|
offset: "100%",
|
|
@@ -2022,41 +1496,31 @@ function CircularProgress(props) {
|
|
|
2022
1496
|
}
|
|
2023
1497
|
)
|
|
2024
1498
|
] }) }),
|
|
2025
|
-
/* @__PURE__ */ (0,
|
|
1499
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Show, { when: bgStyle === "filled", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2026
1500
|
"circle",
|
|
2027
1501
|
{
|
|
2028
|
-
className:
|
|
2029
|
-
fill: "page.surface.initial"
|
|
2030
|
-
}),
|
|
1502
|
+
className: styles.base,
|
|
2031
1503
|
cx: "50%",
|
|
2032
1504
|
cy: "50%",
|
|
2033
1505
|
r: `calc(50% * (1 - ${strokeW}/100))`,
|
|
2034
1506
|
pathLength: "100"
|
|
2035
1507
|
}
|
|
2036
1508
|
) }),
|
|
2037
|
-
/* @__PURE__ */ (0,
|
|
1509
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2038
1510
|
"circle",
|
|
2039
1511
|
{
|
|
2040
|
-
className:
|
|
2041
|
-
stroke: "page.bg.100"
|
|
2042
|
-
}),
|
|
1512
|
+
className: styles.track,
|
|
2043
1513
|
cx: "50%",
|
|
2044
1514
|
cy: "50%",
|
|
2045
1515
|
r: radius,
|
|
2046
1516
|
pathLength: "100"
|
|
2047
1517
|
}
|
|
2048
1518
|
),
|
|
2049
|
-
/* @__PURE__ */ (0,
|
|
1519
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2050
1520
|
"circle",
|
|
2051
1521
|
{
|
|
2052
1522
|
"data-complete": now === 100,
|
|
2053
|
-
className:
|
|
2054
|
-
stroke: "url(#gradient)",
|
|
2055
|
-
transition: "stroke-dashoffset, stroke 0.5s ease",
|
|
2056
|
-
_isComplete: {
|
|
2057
|
-
stroke: "success.bg.initial"
|
|
2058
|
-
}
|
|
2059
|
-
}),
|
|
1523
|
+
className: styles.path,
|
|
2060
1524
|
cx: "50%",
|
|
2061
1525
|
cy: "50%",
|
|
2062
1526
|
fill: "none",
|
|
@@ -2067,15 +1531,11 @@ function CircularProgress(props) {
|
|
|
2067
1531
|
transform: "rotate(-90 50 50)"
|
|
2068
1532
|
}
|
|
2069
1533
|
),
|
|
2070
|
-
/* @__PURE__ */ (0,
|
|
2071
|
-
/* @__PURE__ */ (0,
|
|
1534
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("g", { children: [
|
|
1535
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2072
1536
|
"text",
|
|
2073
1537
|
{
|
|
2074
|
-
className:
|
|
2075
|
-
fill: "page.text.initial",
|
|
2076
|
-
fontFamily: "mono",
|
|
2077
|
-
textStyle: "1.25rem"
|
|
2078
|
-
}),
|
|
1538
|
+
className: styles.title,
|
|
2079
1539
|
x: "50%",
|
|
2080
1540
|
y: "47%",
|
|
2081
1541
|
dominantBaseline: "middle",
|
|
@@ -2086,14 +1546,10 @@ function CircularProgress(props) {
|
|
|
2086
1546
|
]
|
|
2087
1547
|
}
|
|
2088
1548
|
),
|
|
2089
|
-
/* @__PURE__ */ (0,
|
|
1549
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2090
1550
|
"text",
|
|
2091
1551
|
{
|
|
2092
|
-
className:
|
|
2093
|
-
fill: "page.text.100",
|
|
2094
|
-
fontSize: "0.5rem",
|
|
2095
|
-
fontWeight: 600
|
|
2096
|
-
}),
|
|
1552
|
+
className: styles.description,
|
|
2097
1553
|
x: "50%",
|
|
2098
1554
|
y: "59%",
|
|
2099
1555
|
dominantBaseline: "middle",
|
|
@@ -2111,127 +1567,127 @@ function CircularProgress(props) {
|
|
|
2111
1567
|
|
|
2112
1568
|
// src/components/combobox/primitives.tsx
|
|
2113
1569
|
var import_combobox = require("@ark-ui/react/combobox");
|
|
2114
|
-
var
|
|
2115
|
-
var
|
|
2116
|
-
var
|
|
2117
|
-
var
|
|
1570
|
+
var import_factory3 = require("@ark-ui/react/factory");
|
|
1571
|
+
var import_recipes15 = require("styled-system/recipes");
|
|
1572
|
+
var import_css17 = require("styled-system/css");
|
|
1573
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2118
1574
|
function ComboboxRoot(props) {
|
|
2119
1575
|
const { size, ...rootProps } = props;
|
|
2120
|
-
const styles = (0,
|
|
2121
|
-
return /* @__PURE__ */ (0,
|
|
1576
|
+
const styles = (0, import_recipes15.combobox)({ size });
|
|
1577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2122
1578
|
import_combobox.Combobox.Root,
|
|
2123
1579
|
{
|
|
2124
1580
|
...rootProps,
|
|
2125
|
-
className: (0,
|
|
1581
|
+
className: (0, import_css17.cx)(styles.root, rootProps.className)
|
|
2126
1582
|
}
|
|
2127
1583
|
);
|
|
2128
1584
|
}
|
|
2129
1585
|
function ComboboxLabel(props) {
|
|
2130
|
-
const styles = (0,
|
|
2131
|
-
return /* @__PURE__ */ (0,
|
|
1586
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Label, { ...props, className: (0, import_css17.cx)(styles.label, props.className) });
|
|
2132
1588
|
}
|
|
2133
1589
|
function ComboboxControl(props) {
|
|
2134
|
-
const styles = (0,
|
|
2135
|
-
return /* @__PURE__ */ (0,
|
|
1590
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2136
1592
|
import_combobox.Combobox.Control,
|
|
2137
1593
|
{
|
|
2138
1594
|
...props,
|
|
2139
|
-
className: (0,
|
|
1595
|
+
className: (0, import_css17.cx)(styles.control, props.className)
|
|
2140
1596
|
}
|
|
2141
1597
|
);
|
|
2142
1598
|
}
|
|
2143
1599
|
function ComboboxInput(props) {
|
|
2144
|
-
const styles = (0,
|
|
2145
|
-
return /* @__PURE__ */ (0,
|
|
1600
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Input, { ...props, className: (0, import_css17.cx)(styles.input, props.className) });
|
|
2146
1602
|
}
|
|
2147
1603
|
function ComboboxTrigger(props) {
|
|
2148
|
-
const styles = (0,
|
|
2149
|
-
return /* @__PURE__ */ (0,
|
|
1604
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2150
1606
|
import_combobox.Combobox.Trigger,
|
|
2151
1607
|
{
|
|
2152
1608
|
...props,
|
|
2153
|
-
className: (0,
|
|
1609
|
+
className: (0, import_css17.cx)(styles.trigger, props.className)
|
|
2154
1610
|
}
|
|
2155
1611
|
);
|
|
2156
1612
|
}
|
|
2157
1613
|
function ComboboxClearTrigger(props) {
|
|
2158
|
-
const styles = (0,
|
|
2159
|
-
return /* @__PURE__ */ (0,
|
|
1614
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2160
1616
|
import_combobox.Combobox.ClearTrigger,
|
|
2161
1617
|
{
|
|
2162
1618
|
...props,
|
|
2163
|
-
className: (0,
|
|
1619
|
+
className: (0, import_css17.cx)(styles.clearTrigger, props.className)
|
|
2164
1620
|
}
|
|
2165
1621
|
);
|
|
2166
1622
|
}
|
|
2167
1623
|
function ComboboxPositioner(props) {
|
|
2168
|
-
const styles = (0,
|
|
2169
|
-
return /* @__PURE__ */ (0,
|
|
1624
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2170
1626
|
import_combobox.Combobox.Positioner,
|
|
2171
1627
|
{
|
|
2172
1628
|
...props,
|
|
2173
|
-
className: (0,
|
|
1629
|
+
className: (0, import_css17.cx)(styles.positioner, props.className)
|
|
2174
1630
|
}
|
|
2175
1631
|
);
|
|
2176
1632
|
}
|
|
2177
1633
|
function ComboboxContent(props) {
|
|
2178
1634
|
const { size, ...contentProps } = props;
|
|
2179
|
-
const styles = (0,
|
|
2180
|
-
return /* @__PURE__ */ (0,
|
|
1635
|
+
const styles = (0, import_recipes15.combobox)({ size });
|
|
1636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2181
1637
|
import_combobox.Combobox.Content,
|
|
2182
1638
|
{
|
|
2183
1639
|
...contentProps,
|
|
2184
|
-
className: (0,
|
|
1640
|
+
className: (0, import_css17.cx)(styles.content, contentProps.className)
|
|
2185
1641
|
}
|
|
2186
1642
|
);
|
|
2187
1643
|
}
|
|
2188
1644
|
function ComboboxItemGroup(props) {
|
|
2189
|
-
const styles = (0,
|
|
2190
|
-
return /* @__PURE__ */ (0,
|
|
1645
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2191
1647
|
import_combobox.Combobox.ItemGroup,
|
|
2192
1648
|
{
|
|
2193
1649
|
...props,
|
|
2194
|
-
className: (0,
|
|
1650
|
+
className: (0, import_css17.cx)(styles.itemGroup, props.className)
|
|
2195
1651
|
}
|
|
2196
1652
|
);
|
|
2197
1653
|
}
|
|
2198
1654
|
function ComboboxItemGroupLabel(props) {
|
|
2199
|
-
const styles = (0,
|
|
2200
|
-
return /* @__PURE__ */ (0,
|
|
1655
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2201
1657
|
import_combobox.Combobox.ItemGroupLabel,
|
|
2202
1658
|
{
|
|
2203
1659
|
...props,
|
|
2204
|
-
className: (0,
|
|
1660
|
+
className: (0, import_css17.cx)(styles.itemGroupLabel, props.className)
|
|
2205
1661
|
}
|
|
2206
1662
|
);
|
|
2207
1663
|
}
|
|
2208
1664
|
function ComboboxItem(props) {
|
|
2209
|
-
const styles = (0,
|
|
2210
|
-
return /* @__PURE__ */ (0,
|
|
1665
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_combobox.Combobox.Item, { ...props, className: (0, import_css17.cx)(styles.item, props.className) });
|
|
2211
1667
|
}
|
|
2212
1668
|
function ComboboxItemText(props) {
|
|
2213
|
-
const styles = (0,
|
|
2214
|
-
return /* @__PURE__ */ (0,
|
|
1669
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2215
1671
|
import_combobox.Combobox.ItemText,
|
|
2216
1672
|
{
|
|
2217
1673
|
...props,
|
|
2218
|
-
className: (0,
|
|
1674
|
+
className: (0, import_css17.cx)(styles.itemText, props.className)
|
|
2219
1675
|
}
|
|
2220
1676
|
);
|
|
2221
1677
|
}
|
|
2222
1678
|
function ComboboxItemIndicator(props) {
|
|
2223
|
-
const styles = (0,
|
|
2224
|
-
return /* @__PURE__ */ (0,
|
|
1679
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2225
1681
|
import_combobox.Combobox.ItemIndicator,
|
|
2226
1682
|
{
|
|
2227
1683
|
...props,
|
|
2228
|
-
className: (0,
|
|
1684
|
+
className: (0, import_css17.cx)(styles.itemIndicator, props.className)
|
|
2229
1685
|
}
|
|
2230
1686
|
);
|
|
2231
1687
|
}
|
|
2232
1688
|
function ComboboxStartIcon(props) {
|
|
2233
|
-
const styles = (0,
|
|
2234
|
-
return /* @__PURE__ */ (0,
|
|
1689
|
+
const styles = (0, import_recipes15.combobox)();
|
|
1690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_factory3.ark.span, { ...props, className: styles.startIcon });
|
|
2235
1691
|
}
|
|
2236
1692
|
var ComboItemText = ComboboxItemText;
|
|
2237
1693
|
|
|
@@ -2252,156 +1708,163 @@ var ComboboxParts = {
|
|
|
2252
1708
|
ItemIndicator: ComboboxItemIndicator
|
|
2253
1709
|
};
|
|
2254
1710
|
|
|
1711
|
+
// src/components/Portal.tsx
|
|
1712
|
+
var import_react11 = require("@ark-ui/react");
|
|
1713
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1714
|
+
function Portal(props) {
|
|
1715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react11.Portal, { ...props });
|
|
1716
|
+
}
|
|
1717
|
+
|
|
2255
1718
|
// src/components/combobox/combobox.tsx
|
|
2256
|
-
var
|
|
1719
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2257
1720
|
function Combobox2(props) {
|
|
2258
1721
|
const { label: label4, children, startIcon, ...rootProps } = props;
|
|
2259
1722
|
const { icons } = useCerberusContext();
|
|
2260
1723
|
const { selectArrow: SelectArrow, close: CloseIcon } = icons;
|
|
2261
1724
|
const hasStartIcon = Boolean(startIcon);
|
|
2262
|
-
return /* @__PURE__ */ (0,
|
|
2263
|
-
/* @__PURE__ */ (0,
|
|
2264
|
-
/* @__PURE__ */ (0,
|
|
2265
|
-
/* @__PURE__ */ (0,
|
|
2266
|
-
/* @__PURE__ */ (0,
|
|
1725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(ComboboxParts.Root, { ...rootProps, children: [
|
|
1726
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Show, { when: label4, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComboboxParts.Label, { children: label4 }) }),
|
|
1727
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(ComboboxParts.Control, { children: [
|
|
1728
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Show, { when: hasStartIcon, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComboboxStartIcon, { children: startIcon }) }),
|
|
1729
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2267
1730
|
ComboboxParts.Input,
|
|
2268
1731
|
{
|
|
2269
1732
|
...hasStartIcon && { "data-has": "start-indicator" }
|
|
2270
1733
|
}
|
|
2271
1734
|
),
|
|
2272
|
-
/* @__PURE__ */ (0,
|
|
2273
|
-
/* @__PURE__ */ (0,
|
|
1735
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComboboxParts.ClearTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(CloseIcon, {}) }),
|
|
1736
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComboboxParts.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectArrow, {}) })
|
|
2274
1737
|
] }),
|
|
2275
|
-
/* @__PURE__ */ (0,
|
|
1738
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComboboxParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ComboboxParts.Content, { size: rootProps.size, children }) }) })
|
|
2276
1739
|
] });
|
|
2277
1740
|
}
|
|
2278
1741
|
|
|
2279
1742
|
// src/components/combobox/item.tsx
|
|
2280
|
-
var
|
|
1743
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2281
1744
|
function ComboItemWithIndicator(props) {
|
|
2282
1745
|
const { icons } = useCerberusContext();
|
|
2283
1746
|
const { selectChecked: CheckedIcon } = icons;
|
|
2284
|
-
return /* @__PURE__ */ (0,
|
|
2285
|
-
/* @__PURE__ */ (0,
|
|
1747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(ComboboxParts.Item, { ...props, children: [
|
|
1748
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ComboboxParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CheckedIcon, {}) }),
|
|
2286
1749
|
props.children
|
|
2287
1750
|
] });
|
|
2288
1751
|
}
|
|
2289
1752
|
|
|
2290
1753
|
// src/components/combobox/item-group.tsx
|
|
2291
|
-
var
|
|
1754
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2292
1755
|
function ComboItemGroup(props) {
|
|
2293
1756
|
const { label: label4, children, ...groupProps } = props;
|
|
2294
|
-
return /* @__PURE__ */ (0,
|
|
2295
|
-
/* @__PURE__ */ (0,
|
|
1757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ComboboxParts.ItemGroup, { ...groupProps, children: [
|
|
1758
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ComboboxParts.ItemGroupLabel, { children: label4 }),
|
|
2296
1759
|
children
|
|
2297
1760
|
] });
|
|
2298
1761
|
}
|
|
2299
1762
|
|
|
2300
1763
|
// src/components/combobox/use-stateful-collection.ts
|
|
2301
|
-
var
|
|
1764
|
+
var import_react12 = require("react");
|
|
2302
1765
|
|
|
2303
1766
|
// src/components/select/primitives.tsx
|
|
2304
1767
|
var import_select = require("@ark-ui/react/select");
|
|
2305
|
-
var
|
|
2306
|
-
var
|
|
2307
|
-
var
|
|
1768
|
+
var import_recipes16 = require("styled-system/recipes");
|
|
1769
|
+
var import_css18 = require("styled-system/css");
|
|
1770
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2308
1771
|
function SelectRoot(props) {
|
|
2309
1772
|
const { size, ...rootProps } = props;
|
|
2310
|
-
const styles = (0,
|
|
2311
|
-
return /* @__PURE__ */ (0,
|
|
1773
|
+
const styles = (0, import_recipes16.select)({ size });
|
|
1774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2312
1775
|
import_select.Select.Root,
|
|
2313
1776
|
{
|
|
2314
1777
|
...rootProps,
|
|
2315
|
-
className: (0,
|
|
1778
|
+
className: (0, import_css18.cx)(styles.root, rootProps.className)
|
|
2316
1779
|
}
|
|
2317
1780
|
);
|
|
2318
1781
|
}
|
|
2319
1782
|
function SelectLabel(props) {
|
|
2320
|
-
const styles = (0,
|
|
2321
|
-
return /* @__PURE__ */ (0,
|
|
1783
|
+
const styles = (0, import_recipes16.select)();
|
|
1784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Label, { ...props, className: (0, import_css18.cx)(styles.label, props.className) });
|
|
2322
1785
|
}
|
|
2323
1786
|
function SelectControl(props) {
|
|
2324
|
-
return /* @__PURE__ */ (0,
|
|
1787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Control, { ...props });
|
|
2325
1788
|
}
|
|
2326
1789
|
function SelectTrigger(props) {
|
|
2327
|
-
const styles = (0,
|
|
2328
|
-
return /* @__PURE__ */ (0,
|
|
1790
|
+
const styles = (0, import_recipes16.select)();
|
|
1791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2329
1792
|
import_select.Select.Trigger,
|
|
2330
1793
|
{
|
|
2331
1794
|
...props,
|
|
2332
|
-
className: (0,
|
|
1795
|
+
className: (0, import_css18.cx)(styles.trigger, props.className)
|
|
2333
1796
|
}
|
|
2334
1797
|
);
|
|
2335
1798
|
}
|
|
2336
1799
|
function SelectValueText(props) {
|
|
2337
|
-
return /* @__PURE__ */ (0,
|
|
1800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ValueText, { ...props });
|
|
2338
1801
|
}
|
|
2339
1802
|
function SelectIndicator(props) {
|
|
2340
|
-
const styles = (0,
|
|
2341
|
-
return /* @__PURE__ */ (0,
|
|
1803
|
+
const styles = (0, import_recipes16.select)();
|
|
1804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2342
1805
|
import_select.Select.Indicator,
|
|
2343
1806
|
{
|
|
2344
1807
|
...props,
|
|
2345
|
-
className: (0,
|
|
1808
|
+
className: (0, import_css18.cx)(styles.indicator, props.className)
|
|
2346
1809
|
}
|
|
2347
1810
|
);
|
|
2348
1811
|
}
|
|
2349
1812
|
function SelectClearTrigger(props) {
|
|
2350
|
-
return /* @__PURE__ */ (0,
|
|
1813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ClearTrigger, { ...props });
|
|
2351
1814
|
}
|
|
2352
1815
|
function SelectPositioner(props) {
|
|
2353
|
-
const styles = (0,
|
|
2354
|
-
return /* @__PURE__ */ (0,
|
|
1816
|
+
const styles = (0, import_recipes16.select)();
|
|
1817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2355
1818
|
import_select.Select.Positioner,
|
|
2356
1819
|
{
|
|
2357
1820
|
...props,
|
|
2358
|
-
className: (0,
|
|
1821
|
+
className: (0, import_css18.cx)(styles.positioner, props.className)
|
|
2359
1822
|
}
|
|
2360
1823
|
);
|
|
2361
1824
|
}
|
|
2362
1825
|
function SelectContent(props) {
|
|
2363
1826
|
const { size, ...contentProps } = props;
|
|
2364
|
-
const styles = (0,
|
|
2365
|
-
return /* @__PURE__ */ (0,
|
|
1827
|
+
const styles = (0, import_recipes16.select)({ size });
|
|
1828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2366
1829
|
import_select.Select.Content,
|
|
2367
1830
|
{
|
|
2368
1831
|
...contentProps,
|
|
2369
|
-
className: (0,
|
|
1832
|
+
className: (0, import_css18.cx)(styles.content, contentProps.className)
|
|
2370
1833
|
}
|
|
2371
1834
|
);
|
|
2372
1835
|
}
|
|
2373
1836
|
function SelectItemGroup(props) {
|
|
2374
|
-
return /* @__PURE__ */ (0,
|
|
1837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ItemGroup, { ...props });
|
|
2375
1838
|
}
|
|
2376
1839
|
function SelectItemGroupLabel(props) {
|
|
2377
|
-
const styles = (0,
|
|
2378
|
-
return /* @__PURE__ */ (0,
|
|
1840
|
+
const styles = (0, import_recipes16.select)();
|
|
1841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2379
1842
|
import_select.Select.ItemGroupLabel,
|
|
2380
1843
|
{
|
|
2381
1844
|
...props,
|
|
2382
|
-
className: (0,
|
|
1845
|
+
className: (0, import_css18.cx)(styles.itemGroupLabel, props.className)
|
|
2383
1846
|
}
|
|
2384
1847
|
);
|
|
2385
1848
|
}
|
|
2386
1849
|
function SelectItem(props) {
|
|
2387
|
-
const styles = (0,
|
|
2388
|
-
return /* @__PURE__ */ (0,
|
|
1850
|
+
const styles = (0, import_recipes16.select)();
|
|
1851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.Item, { ...props, className: (0, import_css18.cx)(styles.item, props.className) });
|
|
2389
1852
|
}
|
|
2390
1853
|
function SelectItemText(props) {
|
|
2391
|
-
return /* @__PURE__ */ (0,
|
|
1854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.ItemText, { ...props });
|
|
2392
1855
|
}
|
|
2393
1856
|
function SelectItemIndicator(props) {
|
|
2394
|
-
const styles = (0,
|
|
2395
|
-
return /* @__PURE__ */ (0,
|
|
1857
|
+
const styles = (0, import_recipes16.select)();
|
|
1858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2396
1859
|
import_select.Select.ItemIndicator,
|
|
2397
1860
|
{
|
|
2398
1861
|
...props,
|
|
2399
|
-
className: (0,
|
|
1862
|
+
className: (0, import_css18.cx)(styles.itemIndicator, props.className)
|
|
2400
1863
|
}
|
|
2401
1864
|
);
|
|
2402
1865
|
}
|
|
2403
1866
|
function SelectHiddenSelect(props) {
|
|
2404
|
-
return /* @__PURE__ */ (0,
|
|
1867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_select.Select.HiddenSelect, { ...props });
|
|
2405
1868
|
}
|
|
2406
1869
|
function createSelectCollection(collection) {
|
|
2407
1870
|
return (0, import_select.createListCollection)({
|
|
@@ -2411,10 +1874,10 @@ function createSelectCollection(collection) {
|
|
|
2411
1874
|
|
|
2412
1875
|
// src/components/combobox/use-stateful-collection.ts
|
|
2413
1876
|
function useStatefulCollection(initialItems = []) {
|
|
2414
|
-
const [items, setItems] = (0,
|
|
2415
|
-
const [filterValue, setFilterValue] = (0,
|
|
2416
|
-
const collection = (0,
|
|
2417
|
-
const handleInputChange = (0,
|
|
1877
|
+
const [items, setItems] = (0, import_react12.useState)(initialItems);
|
|
1878
|
+
const [filterValue, setFilterValue] = (0, import_react12.useState)([]);
|
|
1879
|
+
const collection = (0, import_react12.useMemo)(() => createSelectCollection(items), [items]);
|
|
1880
|
+
const handleInputChange = (0, import_react12.useCallback)(
|
|
2418
1881
|
(details) => {
|
|
2419
1882
|
if (details.inputValue === "") {
|
|
2420
1883
|
return setItems(initialItems);
|
|
@@ -2428,7 +1891,7 @@ function useStatefulCollection(initialItems = []) {
|
|
|
2428
1891
|
},
|
|
2429
1892
|
[initialItems]
|
|
2430
1893
|
);
|
|
2431
|
-
return (0,
|
|
1894
|
+
return (0, import_react12.useMemo)(
|
|
2432
1895
|
() => ({
|
|
2433
1896
|
collection,
|
|
2434
1897
|
filterChars: filterValue,
|
|
@@ -2439,39 +1902,181 @@ function useStatefulCollection(initialItems = []) {
|
|
|
2439
1902
|
}
|
|
2440
1903
|
|
|
2441
1904
|
// src/components/cta-dialog/provider.tsx
|
|
2442
|
-
var
|
|
2443
|
-
var
|
|
1905
|
+
var import_react14 = require("react");
|
|
1906
|
+
var import_jsx4 = require("styled-system/jsx");
|
|
2444
1907
|
|
|
2445
1908
|
// src/components/for.tsx
|
|
1909
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2446
1910
|
function For(props) {
|
|
2447
1911
|
var _a;
|
|
2448
1912
|
if (!props.each || !props.each.length) {
|
|
2449
1913
|
return props.fallback || null;
|
|
2450
1914
|
}
|
|
2451
|
-
return (_a = props.each) == null ? void 0 : _a.map(props.children);
|
|
1915
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: (_a = props.each) == null ? void 0 : _a.map(props.children) });
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
// src/components/dialog/primitives.tsx
|
|
1919
|
+
var import_dialog = require("@ark-ui/react/dialog");
|
|
1920
|
+
var import_css19 = require("styled-system/css");
|
|
1921
|
+
var import_recipes17 = require("styled-system/recipes");
|
|
1922
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1923
|
+
function DialogRoot(props) {
|
|
1924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_dialog.Dialog.Root, { ...props });
|
|
1925
|
+
}
|
|
1926
|
+
function DialogTrigger(props) {
|
|
1927
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1929
|
+
import_dialog.Dialog.Trigger,
|
|
1930
|
+
{
|
|
1931
|
+
...props,
|
|
1932
|
+
className: (0, import_css19.cx)(styles.trigger, props.className)
|
|
1933
|
+
}
|
|
1934
|
+
);
|
|
1935
|
+
}
|
|
1936
|
+
function DialogBackdrop(props) {
|
|
1937
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1939
|
+
import_dialog.Dialog.Backdrop,
|
|
1940
|
+
{
|
|
1941
|
+
...props,
|
|
1942
|
+
className: (0, import_css19.cx)(styles.backdrop, props.className)
|
|
1943
|
+
}
|
|
1944
|
+
);
|
|
1945
|
+
}
|
|
1946
|
+
function DialogPositioner(props) {
|
|
1947
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1949
|
+
import_dialog.Dialog.Positioner,
|
|
1950
|
+
{
|
|
1951
|
+
...props,
|
|
1952
|
+
className: (0, import_css19.cx)(styles.positioner, props.className)
|
|
1953
|
+
}
|
|
1954
|
+
);
|
|
1955
|
+
}
|
|
1956
|
+
function DialogContent(props) {
|
|
1957
|
+
const { size, ...contentProps } = props;
|
|
1958
|
+
const styles = (0, import_recipes17.dialog)({ size });
|
|
1959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1960
|
+
import_dialog.Dialog.Content,
|
|
1961
|
+
{
|
|
1962
|
+
...contentProps,
|
|
1963
|
+
className: (0, import_css19.cx)(styles.content, contentProps.className)
|
|
1964
|
+
}
|
|
1965
|
+
);
|
|
1966
|
+
}
|
|
1967
|
+
function DialogHeading(props) {
|
|
1968
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_dialog.Dialog.Title, { ...props, className: (0, import_css19.cx)(styles.title, props.className) });
|
|
1970
|
+
}
|
|
1971
|
+
function DialogDescription(props) {
|
|
1972
|
+
const styles = (0, import_recipes17.dialog)();
|
|
1973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1974
|
+
import_dialog.Dialog.Description,
|
|
1975
|
+
{
|
|
1976
|
+
...props,
|
|
1977
|
+
className: (0, import_css19.cx)(styles.description, props.className)
|
|
1978
|
+
}
|
|
1979
|
+
);
|
|
1980
|
+
}
|
|
1981
|
+
function DialogCloseTrigger(props) {
|
|
1982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_dialog.Dialog.CloseTrigger, { ...props });
|
|
1983
|
+
}
|
|
1984
|
+
var DialogProvider = DialogRoot;
|
|
1985
|
+
|
|
1986
|
+
// src/components/dialog/parts.ts
|
|
1987
|
+
var DialogParts = {
|
|
1988
|
+
Root: DialogRoot,
|
|
1989
|
+
Trigger: DialogTrigger,
|
|
1990
|
+
Backdrop: DialogBackdrop,
|
|
1991
|
+
Positioner: DialogPositioner,
|
|
1992
|
+
Content: DialogContent,
|
|
1993
|
+
Heading: DialogHeading,
|
|
1994
|
+
Description: DialogDescription,
|
|
1995
|
+
CloseTrigger: DialogCloseTrigger
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
// src/components/IconButton.tsx
|
|
1999
|
+
var import_factory4 = require("@ark-ui/react/factory");
|
|
2000
|
+
var import_css20 = require("styled-system/css");
|
|
2001
|
+
var import_recipes18 = require("styled-system/recipes");
|
|
2002
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2003
|
+
function IconButton(props) {
|
|
2004
|
+
const { ariaLabel, palette, usage, size, ...nativeProps } = props;
|
|
2005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2006
|
+
import_factory4.ark.button,
|
|
2007
|
+
{
|
|
2008
|
+
...nativeProps,
|
|
2009
|
+
"aria-label": ariaLabel ?? "Icon Button",
|
|
2010
|
+
className: (0, import_css20.cx)(
|
|
2011
|
+
nativeProps.className,
|
|
2012
|
+
(0, import_recipes18.iconButton)({
|
|
2013
|
+
palette,
|
|
2014
|
+
usage,
|
|
2015
|
+
size
|
|
2016
|
+
})
|
|
2017
|
+
)
|
|
2018
|
+
}
|
|
2019
|
+
);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
// src/components/dialog/close-icon-trigger.tsx
|
|
2023
|
+
var import_recipes19 = require("styled-system/recipes");
|
|
2024
|
+
var import_css21 = require("styled-system/css");
|
|
2025
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2026
|
+
function DialogCloseIconTrigger(props) {
|
|
2027
|
+
const styles = (0, import_recipes19.dialog)();
|
|
2028
|
+
const { icons } = useCerberusContext();
|
|
2029
|
+
const { close: CloseIcon } = icons;
|
|
2030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2031
|
+
DialogCloseTrigger,
|
|
2032
|
+
{
|
|
2033
|
+
...props,
|
|
2034
|
+
className: (0, import_css21.cx)(styles.closeTrigger, props.className),
|
|
2035
|
+
asChild: true,
|
|
2036
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2037
|
+
IconButton,
|
|
2038
|
+
{
|
|
2039
|
+
ariaLabel: "Close dialog",
|
|
2040
|
+
palette: "action",
|
|
2041
|
+
size: "lg",
|
|
2042
|
+
usage: "ghost",
|
|
2043
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CloseIcon, {})
|
|
2044
|
+
}
|
|
2045
|
+
)
|
|
2046
|
+
}
|
|
2047
|
+
);
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
// src/components/dialog/dialog.tsx
|
|
2051
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2052
|
+
function Dialog2(props) {
|
|
2053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Portal, { children: [
|
|
2054
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DialogBackdrop, {}),
|
|
2055
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DialogPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DialogContent, { ...props }) })
|
|
2056
|
+
] });
|
|
2452
2057
|
}
|
|
2453
2058
|
|
|
2454
2059
|
// src/components/cta-dialog/context.tsx
|
|
2455
|
-
var
|
|
2456
|
-
var CTAModalContext = (0,
|
|
2060
|
+
var import_react13 = require("react");
|
|
2061
|
+
var CTAModalContext = (0, import_react13.createContext)(null);
|
|
2457
2062
|
|
|
2458
2063
|
// src/components/cta-dialog/trigger-item.tsx
|
|
2459
|
-
var
|
|
2064
|
+
var import_css22 = require("styled-system/css");
|
|
2460
2065
|
var import_factory5 = require("@ark-ui/react/factory");
|
|
2461
|
-
var
|
|
2462
|
-
var
|
|
2066
|
+
var import_recipes20 = require("styled-system/recipes");
|
|
2067
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2463
2068
|
function TriggerItem(props) {
|
|
2464
2069
|
const { asChild, children, ...buttonProps } = props;
|
|
2465
2070
|
if (asChild) {
|
|
2466
|
-
return /* @__PURE__ */ (0,
|
|
2071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2467
2072
|
import_factory5.ark.div,
|
|
2468
2073
|
{
|
|
2469
|
-
className: (0,
|
|
2470
|
-
(0,
|
|
2074
|
+
className: (0, import_css22.cx)(
|
|
2075
|
+
(0, import_recipes20.button)({
|
|
2471
2076
|
shape: "rounded",
|
|
2472
2077
|
usage: "ghost"
|
|
2473
2078
|
}),
|
|
2474
|
-
(0,
|
|
2079
|
+
(0, import_css22.css)({
|
|
2475
2080
|
w: "1/2"
|
|
2476
2081
|
})
|
|
2477
2082
|
),
|
|
@@ -2480,11 +2085,11 @@ function TriggerItem(props) {
|
|
|
2480
2085
|
}
|
|
2481
2086
|
);
|
|
2482
2087
|
}
|
|
2483
|
-
return /* @__PURE__ */ (0,
|
|
2088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2484
2089
|
Button,
|
|
2485
2090
|
{
|
|
2486
2091
|
...buttonProps,
|
|
2487
|
-
className: (0,
|
|
2092
|
+
className: (0, import_css22.css)({
|
|
2488
2093
|
w: "1/2"
|
|
2489
2094
|
}),
|
|
2490
2095
|
shape: "rounded",
|
|
@@ -2495,21 +2100,21 @@ function TriggerItem(props) {
|
|
|
2495
2100
|
}
|
|
2496
2101
|
|
|
2497
2102
|
// src/components/cta-dialog/provider.tsx
|
|
2498
|
-
var
|
|
2103
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2499
2104
|
function CTAModal(props) {
|
|
2500
|
-
const [open, setOpen] = (0,
|
|
2501
|
-
const [content, setContent] = (0,
|
|
2105
|
+
const [open, setOpen] = (0, import_react14.useState)(false);
|
|
2106
|
+
const [content, setContent] = (0, import_react14.useState)(null);
|
|
2502
2107
|
const confirmIcon = content == null ? void 0 : content.icon;
|
|
2503
2108
|
const { icons } = useCerberusContext();
|
|
2504
2109
|
const { confirmModal: FallbackIcon } = icons;
|
|
2505
|
-
const handleShow = (0,
|
|
2110
|
+
const handleShow = (0, import_react14.useCallback)(
|
|
2506
2111
|
(options) => {
|
|
2507
2112
|
setContent({ ...options });
|
|
2508
2113
|
setOpen(true);
|
|
2509
2114
|
},
|
|
2510
2115
|
[setOpen]
|
|
2511
2116
|
);
|
|
2512
|
-
const handleActionClick = (0,
|
|
2117
|
+
const handleActionClick = (0, import_react14.useCallback)(
|
|
2513
2118
|
(event) => {
|
|
2514
2119
|
var _a;
|
|
2515
2120
|
const index = Number(event.currentTarget.getAttribute("data-index"));
|
|
@@ -2520,43 +2125,43 @@ function CTAModal(props) {
|
|
|
2520
2125
|
},
|
|
2521
2126
|
[content, setOpen]
|
|
2522
2127
|
);
|
|
2523
|
-
const value = (0,
|
|
2128
|
+
const value = (0, import_react14.useMemo)(
|
|
2524
2129
|
() => ({
|
|
2525
2130
|
show: handleShow
|
|
2526
2131
|
}),
|
|
2527
2132
|
[handleShow]
|
|
2528
2133
|
);
|
|
2529
|
-
return /* @__PURE__ */ (0,
|
|
2134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(CTAModalContext.Provider, { value, children: [
|
|
2530
2135
|
props.children,
|
|
2531
|
-
/* @__PURE__ */ (0,
|
|
2532
|
-
/* @__PURE__ */ (0,
|
|
2533
|
-
/* @__PURE__ */ (0,
|
|
2534
|
-
/* @__PURE__ */ (0,
|
|
2535
|
-
/* @__PURE__ */ (0,
|
|
2136
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Dialog2, { size: "sm", children: [
|
|
2137
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DialogCloseIconTrigger, {}),
|
|
2138
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx4.VStack, { gap: "xl", w: "full", children: [
|
|
2139
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx4.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx4.VStack, { gap: "lg", w: "full", children: [
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2536
2141
|
Avatar2,
|
|
2537
2142
|
{
|
|
2538
2143
|
gradient: "charon-light",
|
|
2539
|
-
fallback: /* @__PURE__ */ (0,
|
|
2144
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2540
2145
|
Show,
|
|
2541
2146
|
{
|
|
2542
|
-
when:
|
|
2543
|
-
fallback: /* @__PURE__ */ (0,
|
|
2147
|
+
when: confirmIcon,
|
|
2148
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FallbackIcon, { size: 24 }),
|
|
2544
2149
|
children: confirmIcon
|
|
2545
2150
|
}
|
|
2546
2151
|
)
|
|
2547
2152
|
}
|
|
2548
2153
|
),
|
|
2549
|
-
/* @__PURE__ */ (0,
|
|
2550
|
-
/* @__PURE__ */ (0,
|
|
2154
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
2155
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
2551
2156
|
] }) }),
|
|
2552
|
-
/* @__PURE__ */ (0,
|
|
2157
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx4.HStack, { gap: "md", w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(For, { each: content == null ? void 0 : content.actions._actions, children: (action, index) => {
|
|
2553
2158
|
var _a;
|
|
2554
|
-
return /* @__PURE__ */ (0,
|
|
2159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2555
2160
|
Show,
|
|
2556
2161
|
{
|
|
2557
2162
|
when: ((_a = content == null ? void 0 : content.actions) == null ? void 0 : _a.type) === "btnAction",
|
|
2558
|
-
fallback: /* @__PURE__ */ (0,
|
|
2559
|
-
children: /* @__PURE__ */ (0,
|
|
2163
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TriggerItem, { asChild: true, children: action }),
|
|
2164
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TriggerItem, { "data-index": index, onClick: handleActionClick, children: action == null ? void 0 : action.text })
|
|
2560
2165
|
},
|
|
2561
2166
|
index
|
|
2562
2167
|
);
|
|
@@ -2566,7 +2171,7 @@ function CTAModal(props) {
|
|
|
2566
2171
|
] });
|
|
2567
2172
|
}
|
|
2568
2173
|
function useCTAModal() {
|
|
2569
|
-
const context = (0,
|
|
2174
|
+
const context = (0, import_react14.useContext)(CTAModalContext);
|
|
2570
2175
|
if (context === null) {
|
|
2571
2176
|
throw new Error("useCTAModal must be used within a CTAModal Provider");
|
|
2572
2177
|
}
|
|
@@ -2594,132 +2199,158 @@ function createCTAModalActions(providedActions) {
|
|
|
2594
2199
|
|
|
2595
2200
|
// src/components/date-picker/primitives.tsx
|
|
2596
2201
|
var import_date_picker = require("@ark-ui/react/date-picker");
|
|
2597
|
-
var
|
|
2598
|
-
var
|
|
2599
|
-
var
|
|
2202
|
+
var import_css23 = require("styled-system/css");
|
|
2203
|
+
var import_recipes21 = require("styled-system/recipes");
|
|
2204
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2600
2205
|
function DatePickerLabel(props) {
|
|
2601
|
-
const styles = (0,
|
|
2602
|
-
return /* @__PURE__ */ (0,
|
|
2206
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2603
2208
|
import_date_picker.DatePicker.Label,
|
|
2604
2209
|
{
|
|
2605
2210
|
...props,
|
|
2606
|
-
className: (0,
|
|
2211
|
+
className: (0, import_css23.cx)(styles.label, props.className)
|
|
2607
2212
|
}
|
|
2608
2213
|
);
|
|
2609
2214
|
}
|
|
2610
2215
|
function DatePickerControl(props) {
|
|
2611
|
-
const styles = (0,
|
|
2612
|
-
return /* @__PURE__ */ (0,
|
|
2216
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2613
2218
|
import_date_picker.DatePicker.Control,
|
|
2614
2219
|
{
|
|
2615
2220
|
...props,
|
|
2616
|
-
className: (0,
|
|
2221
|
+
className: (0, import_css23.cx)(styles.control, props.className)
|
|
2617
2222
|
}
|
|
2618
2223
|
);
|
|
2619
2224
|
}
|
|
2620
2225
|
function DatePickerInputEl(props) {
|
|
2621
|
-
const styles = (0,
|
|
2622
|
-
return /* @__PURE__ */ (0,
|
|
2226
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2623
2228
|
import_date_picker.DatePicker.Input,
|
|
2624
2229
|
{
|
|
2625
2230
|
...props,
|
|
2626
|
-
className: (0,
|
|
2231
|
+
className: (0, import_css23.cx)(styles.input, props.className)
|
|
2627
2232
|
}
|
|
2628
2233
|
);
|
|
2629
2234
|
}
|
|
2630
2235
|
function DatePickerTrigger(props) {
|
|
2631
|
-
const styles = (0,
|
|
2632
|
-
return /* @__PURE__ */ (0,
|
|
2236
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2633
2238
|
import_date_picker.DatePicker.Trigger,
|
|
2634
2239
|
{
|
|
2635
2240
|
...props,
|
|
2636
|
-
className: (0,
|
|
2241
|
+
className: (0, import_css23.cx)(styles.trigger, props.className)
|
|
2637
2242
|
}
|
|
2638
2243
|
);
|
|
2639
2244
|
}
|
|
2640
2245
|
function DatePickerContent(props) {
|
|
2641
|
-
const styles = (0,
|
|
2642
|
-
return /* @__PURE__ */ (0,
|
|
2246
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2643
2248
|
import_date_picker.DatePicker.Content,
|
|
2644
2249
|
{
|
|
2645
2250
|
...props,
|
|
2646
|
-
className: (0,
|
|
2251
|
+
className: (0, import_css23.cx)(styles.content, props.className)
|
|
2647
2252
|
}
|
|
2648
2253
|
);
|
|
2649
2254
|
}
|
|
2650
2255
|
function DatePickerViewControl(props) {
|
|
2651
|
-
const styles = (0,
|
|
2652
|
-
return /* @__PURE__ */ (0,
|
|
2256
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2653
2258
|
import_date_picker.DatePicker.Control,
|
|
2654
2259
|
{
|
|
2655
2260
|
...props,
|
|
2656
|
-
className: (0,
|
|
2261
|
+
className: (0, import_css23.cx)(styles.viewControl, props.className)
|
|
2657
2262
|
}
|
|
2658
2263
|
);
|
|
2659
2264
|
}
|
|
2660
2265
|
function DatePickerRangeText(props) {
|
|
2661
|
-
const styles = (0,
|
|
2662
|
-
return /* @__PURE__ */ (0,
|
|
2266
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2663
2268
|
import_date_picker.DatePicker.RangeText,
|
|
2664
2269
|
{
|
|
2665
2270
|
...props,
|
|
2666
|
-
className: (0,
|
|
2271
|
+
className: (0, import_css23.cx)(styles.rangeText, props.className)
|
|
2667
2272
|
}
|
|
2668
2273
|
);
|
|
2669
2274
|
}
|
|
2670
2275
|
function DatePickerTable(props) {
|
|
2671
|
-
const styles = (0,
|
|
2672
|
-
return /* @__PURE__ */ (0,
|
|
2276
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2673
2278
|
import_date_picker.DatePicker.Table,
|
|
2674
2279
|
{
|
|
2675
2280
|
...props,
|
|
2676
|
-
className: (0,
|
|
2281
|
+
className: (0, import_css23.cx)(styles.table, props.className)
|
|
2677
2282
|
}
|
|
2678
2283
|
);
|
|
2679
2284
|
}
|
|
2680
2285
|
function DatePickerTableHeader(props) {
|
|
2681
|
-
const styles = (0,
|
|
2682
|
-
return /* @__PURE__ */ (0,
|
|
2286
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2683
2288
|
import_date_picker.DatePicker.TableHeader,
|
|
2684
2289
|
{
|
|
2685
2290
|
...props,
|
|
2686
|
-
className: (0,
|
|
2291
|
+
className: (0, import_css23.cx)(styles.tableHeader, props.className)
|
|
2687
2292
|
}
|
|
2688
2293
|
);
|
|
2689
2294
|
}
|
|
2690
2295
|
function DatePickerTableCell(props) {
|
|
2691
|
-
const styles = (0,
|
|
2692
|
-
return /* @__PURE__ */ (0,
|
|
2296
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2693
2298
|
import_date_picker.DatePicker.TableCell,
|
|
2694
2299
|
{
|
|
2695
2300
|
...props,
|
|
2696
|
-
className: (0,
|
|
2301
|
+
className: (0, import_css23.cx)(styles.tableCell, props.className)
|
|
2697
2302
|
}
|
|
2698
2303
|
);
|
|
2699
2304
|
}
|
|
2700
2305
|
function DatePickerTableCellTrigger(props) {
|
|
2701
|
-
const styles = (0,
|
|
2702
|
-
return /* @__PURE__ */ (0,
|
|
2306
|
+
const styles = (0, import_recipes21.datePicker)();
|
|
2307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2703
2308
|
import_date_picker.DatePicker.TableCellTrigger,
|
|
2704
2309
|
{
|
|
2705
2310
|
...props,
|
|
2706
|
-
className: (0,
|
|
2311
|
+
className: (0, import_css23.cx)(styles.tableCellTrigger, props.className)
|
|
2707
2312
|
}
|
|
2708
2313
|
);
|
|
2709
2314
|
}
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2315
|
+
function DatePickerRoot(props) {
|
|
2316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.Root, { ...props });
|
|
2317
|
+
}
|
|
2318
|
+
function DatePickerClearTrigger(props) {
|
|
2319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.ClearTrigger, { ...props });
|
|
2320
|
+
}
|
|
2321
|
+
function DatePickerPositioner(props) {
|
|
2322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.Positioner, { ...props });
|
|
2323
|
+
}
|
|
2324
|
+
function DatePickerYearSelect(props) {
|
|
2325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.YearSelect, { ...props });
|
|
2326
|
+
}
|
|
2327
|
+
function DatePickerMonthSelect(props) {
|
|
2328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.MonthSelect, { ...props });
|
|
2329
|
+
}
|
|
2330
|
+
function DatePickerView(props) {
|
|
2331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.View, { ...props });
|
|
2332
|
+
}
|
|
2333
|
+
function DatePickerContext(props) {
|
|
2334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.Context, { ...props });
|
|
2335
|
+
}
|
|
2336
|
+
function DatePickerPrevTrigger(props) {
|
|
2337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.PrevTrigger, { ...props });
|
|
2338
|
+
}
|
|
2339
|
+
function DatePickerNextTrigger(props) {
|
|
2340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.NextTrigger, { ...props });
|
|
2341
|
+
}
|
|
2342
|
+
function DatePickerViewTrigger(props) {
|
|
2343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.ViewTrigger, { ...props });
|
|
2344
|
+
}
|
|
2345
|
+
function DatePickerTableHead(props) {
|
|
2346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.TableHead, { ...props });
|
|
2347
|
+
}
|
|
2348
|
+
function DatePickerTableRow(props) {
|
|
2349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.TableRow, { ...props });
|
|
2350
|
+
}
|
|
2351
|
+
function DatePickerTableBody(props) {
|
|
2352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_date_picker.DatePicker.TableBody, { ...props });
|
|
2353
|
+
}
|
|
2723
2354
|
|
|
2724
2355
|
// src/components/date-picker/parts.ts
|
|
2725
2356
|
var DatePickerParts = {
|
|
@@ -2750,9 +2381,9 @@ var DatePickerParts = {
|
|
|
2750
2381
|
};
|
|
2751
2382
|
|
|
2752
2383
|
// src/components/date-picker/date-picker.tsx
|
|
2753
|
-
var
|
|
2384
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2754
2385
|
function DatePicker2(props) {
|
|
2755
|
-
return /* @__PURE__ */ (0,
|
|
2386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2756
2387
|
DatePickerParts.Root,
|
|
2757
2388
|
{
|
|
2758
2389
|
...props,
|
|
@@ -2764,19 +2395,19 @@ function DatePicker2(props) {
|
|
|
2764
2395
|
}
|
|
2765
2396
|
|
|
2766
2397
|
// src/components/date-picker/trigger.tsx
|
|
2767
|
-
var
|
|
2398
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2768
2399
|
function DatePickerTrigger2(props) {
|
|
2769
2400
|
const { icons } = useCerberusContext();
|
|
2770
2401
|
const { calendar: CalendarIcon } = icons;
|
|
2771
|
-
return /* @__PURE__ */ (0,
|
|
2402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DatePickerParts.Trigger, { ...props, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(IconButton, { ariaLabel: "Open calendar", size: "sm", usage: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CalendarIcon, {}) }) });
|
|
2772
2403
|
}
|
|
2773
2404
|
|
|
2774
2405
|
// src/components/date-picker/input.tsx
|
|
2775
|
-
var
|
|
2406
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2776
2407
|
function DatePickerInput(props) {
|
|
2777
|
-
return /* @__PURE__ */ (0,
|
|
2778
|
-
/* @__PURE__ */ (0,
|
|
2779
|
-
/* @__PURE__ */ (0,
|
|
2408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(DatePickerParts.Control, { children: [
|
|
2409
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DatePickerTrigger2, {}),
|
|
2410
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2780
2411
|
DatePickerParts.Input,
|
|
2781
2412
|
{
|
|
2782
2413
|
...props,
|
|
@@ -2788,15 +2419,15 @@ function DatePickerInput(props) {
|
|
|
2788
2419
|
}
|
|
2789
2420
|
|
|
2790
2421
|
// src/components/date-picker/range-input.tsx
|
|
2791
|
-
var
|
|
2792
|
-
var
|
|
2422
|
+
var import_react15 = require("react");
|
|
2423
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2793
2424
|
function RangePickerInput(props) {
|
|
2794
2425
|
const { defaultValue, ...nativeProps } = props;
|
|
2795
|
-
const startDate = (0,
|
|
2796
|
-
const endDate = (0,
|
|
2797
|
-
return /* @__PURE__ */ (0,
|
|
2798
|
-
/* @__PURE__ */ (0,
|
|
2799
|
-
/* @__PURE__ */ (0,
|
|
2426
|
+
const startDate = (0, import_react15.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
|
|
2427
|
+
const endDate = (0, import_react15.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
|
|
2428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(DatePickerParts.Control, { "data-range": true, children: [
|
|
2429
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DatePickerTrigger2, {}),
|
|
2430
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2800
2431
|
DatePickerParts.Input,
|
|
2801
2432
|
{
|
|
2802
2433
|
...nativeProps,
|
|
@@ -2807,7 +2438,7 @@ function RangePickerInput(props) {
|
|
|
2807
2438
|
index: 0
|
|
2808
2439
|
}
|
|
2809
2440
|
),
|
|
2810
|
-
/* @__PURE__ */ (0,
|
|
2441
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2811
2442
|
DatePickerParts.Input,
|
|
2812
2443
|
{
|
|
2813
2444
|
...nativeProps,
|
|
@@ -2823,39 +2454,39 @@ function RangePickerInput(props) {
|
|
|
2823
2454
|
}
|
|
2824
2455
|
|
|
2825
2456
|
// src/components/date-picker/content.tsx
|
|
2826
|
-
var
|
|
2457
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2827
2458
|
function DatePickerContent2(props) {
|
|
2828
2459
|
const { withModal, ...contentProps } = props;
|
|
2829
|
-
return /* @__PURE__ */ (0,
|
|
2460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DatePickerParts.Content, { ...contentProps }) }) });
|
|
2830
2461
|
}
|
|
2831
2462
|
|
|
2832
2463
|
// src/components/date-picker/view-control-group.tsx
|
|
2833
|
-
var
|
|
2834
|
-
var
|
|
2464
|
+
var import_css24 = require("styled-system/css");
|
|
2465
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2835
2466
|
function DatePickerViewControlGroup(props) {
|
|
2836
2467
|
const { icons } = useCerberusContext();
|
|
2837
2468
|
const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons;
|
|
2838
|
-
return /* @__PURE__ */ (0,
|
|
2839
|
-
/* @__PURE__ */ (0,
|
|
2840
|
-
/* @__PURE__ */ (0,
|
|
2469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DatePickerParts.ViewControl, { ...props, children: [
|
|
2470
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PrevIcon, {}) }) }),
|
|
2471
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2841
2472
|
Button,
|
|
2842
2473
|
{
|
|
2843
|
-
className: (0,
|
|
2474
|
+
className: (0, import_css24.css)({
|
|
2844
2475
|
h: "2rem",
|
|
2845
2476
|
paddingInline: "md"
|
|
2846
2477
|
}),
|
|
2847
2478
|
shape: "rounded",
|
|
2848
2479
|
size: "sm",
|
|
2849
2480
|
usage: "ghost",
|
|
2850
|
-
children: /* @__PURE__ */ (0,
|
|
2481
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.RangeText, {})
|
|
2851
2482
|
}
|
|
2852
2483
|
) }),
|
|
2853
|
-
/* @__PURE__ */ (0,
|
|
2484
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DatePickerParts.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(NextIcon, {}) }) })
|
|
2854
2485
|
] });
|
|
2855
2486
|
}
|
|
2856
2487
|
|
|
2857
2488
|
// src/components/date-picker/day-view.tsx
|
|
2858
|
-
var
|
|
2489
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2859
2490
|
function DatePickerDayView(props) {
|
|
2860
2491
|
function isToday(date) {
|
|
2861
2492
|
const today = /* @__PURE__ */ new Date();
|
|
@@ -2873,11 +2504,11 @@ function DatePickerDayView(props) {
|
|
|
2873
2504
|
if (isPastDay(date)) return "past";
|
|
2874
2505
|
return "future";
|
|
2875
2506
|
}
|
|
2876
|
-
return /* @__PURE__ */ (0,
|
|
2877
|
-
/* @__PURE__ */ (0,
|
|
2878
|
-
/* @__PURE__ */ (0,
|
|
2879
|
-
/* @__PURE__ */ (0,
|
|
2880
|
-
/* @__PURE__ */ (0,
|
|
2507
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.View, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.Context, { children: (datePickerData) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
2508
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerViewControlGroup, {}),
|
|
2509
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(DatePickerParts.Table, { children: [
|
|
2510
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableRow, { children: datePickerData.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableHeader, { children: weekDay.narrow }, id)) }) }),
|
|
2511
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableBody, { children: datePickerData.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DatePickerParts.TableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2881
2512
|
DatePickerParts.TableCellTrigger,
|
|
2882
2513
|
{
|
|
2883
2514
|
"data-date": getDayValue(day),
|
|
@@ -2889,47 +2520,47 @@ function DatePickerDayView(props) {
|
|
|
2889
2520
|
}
|
|
2890
2521
|
|
|
2891
2522
|
// src/components/date-picker/month-view.tsx
|
|
2892
|
-
var
|
|
2523
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2893
2524
|
function DatePickerMonthView(props) {
|
|
2894
|
-
return /* @__PURE__ */ (0,
|
|
2895
|
-
/* @__PURE__ */ (0,
|
|
2896
|
-
/* @__PURE__ */ (0,
|
|
2525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerParts.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerParts.Context, { children: (datePicker2) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
2526
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerViewControlGroup, {}),
|
|
2527
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerParts.Table, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerParts.TableBody, { children: datePicker2.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerParts.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerParts.TableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DatePickerParts.TableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
|
|
2897
2528
|
] }) }) });
|
|
2898
2529
|
}
|
|
2899
2530
|
|
|
2900
2531
|
// src/components/date-picker/year-view.tsx
|
|
2901
|
-
var
|
|
2532
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2902
2533
|
function DatePickerYearView(props) {
|
|
2903
|
-
return /* @__PURE__ */ (0,
|
|
2904
|
-
/* @__PURE__ */ (0,
|
|
2905
|
-
/* @__PURE__ */ (0,
|
|
2534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerParts.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerParts.Context, { children: (datePicker2) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
2535
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerViewControlGroup, {}),
|
|
2536
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerParts.Table, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerParts.TableBody, { children: datePicker2.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerParts.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerParts.TableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DatePickerParts.TableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
|
|
2906
2537
|
] }) }) });
|
|
2907
2538
|
}
|
|
2908
2539
|
|
|
2909
2540
|
// src/components/date-picker/calendar.tsx
|
|
2910
|
-
var
|
|
2541
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2911
2542
|
function DatePickerCalendar(props) {
|
|
2912
|
-
return /* @__PURE__ */ (0,
|
|
2913
|
-
/* @__PURE__ */ (0,
|
|
2914
|
-
/* @__PURE__ */ (0,
|
|
2915
|
-
/* @__PURE__ */ (0,
|
|
2543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(DatePickerContent2, { withModal: props.withModal, children: [
|
|
2544
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DatePickerDayView, {}),
|
|
2545
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DatePickerMonthView, {}),
|
|
2546
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DatePickerYearView, {})
|
|
2916
2547
|
] });
|
|
2917
2548
|
}
|
|
2918
2549
|
|
|
2919
2550
|
// src/components/Droppable.tsx
|
|
2920
2551
|
var import_core = require("@dnd-kit/core");
|
|
2921
|
-
var
|
|
2922
|
-
var
|
|
2552
|
+
var import_react16 = require("react");
|
|
2553
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2923
2554
|
function Droppable(props) {
|
|
2924
2555
|
const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } = props;
|
|
2925
|
-
const uuid = (0,
|
|
2556
|
+
const uuid = (0, import_react16.useId)();
|
|
2926
2557
|
const { isOver, setNodeRef } = (0, import_core.useDroppable)({
|
|
2927
2558
|
data,
|
|
2928
2559
|
disabled,
|
|
2929
2560
|
id: id || uuid,
|
|
2930
2561
|
resizeObserverConfig
|
|
2931
2562
|
});
|
|
2932
|
-
return /* @__PURE__ */ (0,
|
|
2563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
2933
2564
|
"div",
|
|
2934
2565
|
{
|
|
2935
2566
|
...nativeProps,
|
|
@@ -2942,14 +2573,14 @@ function Droppable(props) {
|
|
|
2942
2573
|
}
|
|
2943
2574
|
|
|
2944
2575
|
// src/context/feature-flags.tsx
|
|
2945
|
-
var
|
|
2946
|
-
var
|
|
2947
|
-
var FeatureFlagContext = (0,
|
|
2576
|
+
var import_react17 = require("react");
|
|
2577
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2578
|
+
var FeatureFlagContext = (0, import_react17.createContext)(null);
|
|
2948
2579
|
function FeatureFlags(props) {
|
|
2949
|
-
return /* @__PURE__ */ (0,
|
|
2580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(FeatureFlagContext.Provider, { value: props.flags, children: props.children });
|
|
2950
2581
|
}
|
|
2951
2582
|
function useFeatureFlags(key) {
|
|
2952
|
-
const context = (0,
|
|
2583
|
+
const context = (0, import_react17.useContext)(FeatureFlagContext);
|
|
2953
2584
|
if (context === null) {
|
|
2954
2585
|
throw new Error(
|
|
2955
2586
|
"useFeatureFlag must be used within a FeatureFlags Provider"
|
|
@@ -2959,50 +2590,50 @@ function useFeatureFlags(key) {
|
|
|
2959
2590
|
}
|
|
2960
2591
|
|
|
2961
2592
|
// src/components/FeatureFlag.tsx
|
|
2962
|
-
var
|
|
2593
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2963
2594
|
function FeatureFlag(props) {
|
|
2964
2595
|
const showContent = useFeatureFlags(props.flag);
|
|
2965
|
-
return /* @__PURE__ */ (0,
|
|
2596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Show, { when: showContent, children: props.children });
|
|
2966
2597
|
}
|
|
2967
2598
|
|
|
2968
2599
|
// src/components/fieldset/primitives.tsx
|
|
2969
2600
|
var import_fieldset = require("@ark-ui/react/fieldset");
|
|
2970
|
-
var
|
|
2971
|
-
var
|
|
2972
|
-
var
|
|
2601
|
+
var import_css25 = require("styled-system/css");
|
|
2602
|
+
var import_recipes22 = require("styled-system/recipes");
|
|
2603
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2973
2604
|
function FieldsetRoot(props) {
|
|
2974
|
-
const styles = (0,
|
|
2975
|
-
return /* @__PURE__ */ (0,
|
|
2605
|
+
const styles = (0, import_recipes22.fieldset)();
|
|
2606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_fieldset.Fieldset.Root, { ...props, className: (0, import_css25.cx)(styles.root, props.className) });
|
|
2976
2607
|
}
|
|
2977
2608
|
function FieldsetLegend(props) {
|
|
2978
2609
|
const { usage, ...legendProps } = props;
|
|
2979
|
-
const styles = (0,
|
|
2980
|
-
return /* @__PURE__ */ (0,
|
|
2610
|
+
const styles = (0, import_recipes22.fieldset)({ usage });
|
|
2611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2981
2612
|
import_fieldset.Fieldset.Legend,
|
|
2982
2613
|
{
|
|
2983
2614
|
...legendProps,
|
|
2984
|
-
className: (0,
|
|
2615
|
+
className: (0, import_css25.cx)(styles.legend, legendProps.className)
|
|
2985
2616
|
}
|
|
2986
2617
|
);
|
|
2987
2618
|
}
|
|
2988
2619
|
function FieldsetHelperText(props) {
|
|
2989
2620
|
const { usage, ...helperTextProps } = props;
|
|
2990
|
-
const styles = (0,
|
|
2991
|
-
return /* @__PURE__ */ (0,
|
|
2621
|
+
const styles = (0, import_recipes22.fieldset)({ usage });
|
|
2622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2992
2623
|
import_fieldset.Fieldset.HelperText,
|
|
2993
2624
|
{
|
|
2994
2625
|
...helperTextProps,
|
|
2995
|
-
className: (0,
|
|
2626
|
+
className: (0, import_css25.cx)(styles.helperText, helperTextProps.className)
|
|
2996
2627
|
}
|
|
2997
2628
|
);
|
|
2998
2629
|
}
|
|
2999
2630
|
function FieldsetErrorText(props) {
|
|
3000
|
-
const styles = (0,
|
|
3001
|
-
return /* @__PURE__ */ (0,
|
|
2631
|
+
const styles = (0, import_recipes22.fieldset)();
|
|
2632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3002
2633
|
import_fieldset.Fieldset.ErrorText,
|
|
3003
2634
|
{
|
|
3004
2635
|
...props,
|
|
3005
|
-
className: (0,
|
|
2636
|
+
className: (0, import_css25.cx)(styles.errorText, props.className)
|
|
3006
2637
|
}
|
|
3007
2638
|
);
|
|
3008
2639
|
}
|
|
@@ -3016,40 +2647,40 @@ var FieldsetParts = {
|
|
|
3016
2647
|
};
|
|
3017
2648
|
|
|
3018
2649
|
// src/components/fieldset/fieldset.tsx
|
|
3019
|
-
var
|
|
2650
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3020
2651
|
function Fieldset2(props) {
|
|
3021
2652
|
const [fieldsetProps, { usage }, rootProps] = splitProps(
|
|
3022
2653
|
props,
|
|
3023
2654
|
["legend", "helperText", "errorText", "children"],
|
|
3024
2655
|
["usage"]
|
|
3025
2656
|
);
|
|
3026
|
-
return /* @__PURE__ */ (0,
|
|
3027
|
-
/* @__PURE__ */ (0,
|
|
3028
|
-
/* @__PURE__ */ (0,
|
|
2657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(FieldsetParts.Root, { ...rootProps, children: [
|
|
2658
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FieldsetParts.Legend, { usage, children: fieldsetProps.legend }),
|
|
2659
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FieldsetParts.HelperText, { usage, children: fieldsetProps.helperText }),
|
|
3029
2660
|
fieldsetProps.children,
|
|
3030
|
-
/* @__PURE__ */ (0,
|
|
2661
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FieldsetParts.ErrorText, { children: fieldsetProps.errorText })
|
|
3031
2662
|
] });
|
|
3032
2663
|
}
|
|
3033
2664
|
|
|
3034
2665
|
// src/components/FileStatus.tsx
|
|
3035
|
-
var
|
|
3036
|
-
var
|
|
3037
|
-
var
|
|
3038
|
-
var
|
|
2666
|
+
var import_react18 = require("react");
|
|
2667
|
+
var import_recipes24 = require("styled-system/recipes");
|
|
2668
|
+
var import_css27 = require("styled-system/css");
|
|
2669
|
+
var import_patterns3 = require("styled-system/patterns");
|
|
3039
2670
|
|
|
3040
2671
|
// src/components/ProgressBar.tsx
|
|
3041
2672
|
var import_factory6 = require("@ark-ui/react/factory");
|
|
3042
|
-
var
|
|
3043
|
-
var
|
|
3044
|
-
var
|
|
2673
|
+
var import_css26 = require("styled-system/css");
|
|
2674
|
+
var import_recipes23 = require("styled-system/recipes");
|
|
2675
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3045
2676
|
function ProgressBar(props) {
|
|
3046
2677
|
const { indeterminate, size, usage, now, label: label4, ...nativeProps } = props;
|
|
3047
|
-
const styles = (0,
|
|
2678
|
+
const styles = (0, import_recipes23.progressBar)({ size, usage });
|
|
3048
2679
|
const nowClamped = Math.min(100, Math.max(0, now || 0));
|
|
3049
2680
|
const width = {
|
|
3050
2681
|
width: indeterminate ? "50%" : `${nowClamped}%`
|
|
3051
2682
|
};
|
|
3052
|
-
return /* @__PURE__ */ (0,
|
|
2683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3053
2684
|
import_factory6.ark.div,
|
|
3054
2685
|
{
|
|
3055
2686
|
...nativeProps,
|
|
@@ -3057,9 +2688,9 @@ function ProgressBar(props) {
|
|
|
3057
2688
|
"aria-valuemin": 0,
|
|
3058
2689
|
"aria-valuemax": 100,
|
|
3059
2690
|
"aria-valuenow": indeterminate ? 0 : nowClamped,
|
|
3060
|
-
className: (0,
|
|
2691
|
+
className: (0, import_css26.cx)(nativeProps.className, styles.root),
|
|
3061
2692
|
role: "progressbar",
|
|
3062
|
-
children: /* @__PURE__ */ (0,
|
|
2693
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
3063
2694
|
import_factory6.ark.div,
|
|
3064
2695
|
{
|
|
3065
2696
|
...indeterminate && { "data-indeterminate": true },
|
|
@@ -3073,7 +2704,7 @@ function ProgressBar(props) {
|
|
|
3073
2704
|
}
|
|
3074
2705
|
|
|
3075
2706
|
// src/components/FileStatus.tsx
|
|
3076
|
-
var
|
|
2707
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
3077
2708
|
var processStatus = /* @__PURE__ */ ((processStatus2) => {
|
|
3078
2709
|
processStatus2["TODO"] = "todo";
|
|
3079
2710
|
processStatus2["PROCESSING"] = "processing";
|
|
@@ -3083,24 +2714,24 @@ var processStatus = /* @__PURE__ */ ((processStatus2) => {
|
|
|
3083
2714
|
})(processStatus || {});
|
|
3084
2715
|
function FileStatus(props) {
|
|
3085
2716
|
const { file, now, status, onClick, ...nativeProps } = props;
|
|
3086
|
-
const actionLabel = (0,
|
|
3087
|
-
const palette = (0,
|
|
3088
|
-
const modalIconPalette = (0,
|
|
3089
|
-
const styles = (0,
|
|
2717
|
+
const actionLabel = (0, import_react18.useMemo)(() => getStatusActionLabel(status), [status]);
|
|
2718
|
+
const palette = (0, import_react18.useMemo)(() => getPalette(status), [status]);
|
|
2719
|
+
const modalIconPalette = (0, import_react18.useMemo)(() => getModalIconPalette(status), [status]);
|
|
2720
|
+
const styles = (0, import_react18.useMemo)(() => {
|
|
3090
2721
|
switch (status) {
|
|
3091
2722
|
case "todo" /* TODO */:
|
|
3092
|
-
return (0,
|
|
2723
|
+
return (0, import_recipes24.fileStatus)({ status: "todo" });
|
|
3093
2724
|
case "processing" /* PROCESSING */:
|
|
3094
|
-
return (0,
|
|
2725
|
+
return (0, import_recipes24.fileStatus)({ status: "processing" });
|
|
3095
2726
|
case "done" /* DONE */:
|
|
3096
|
-
return (0,
|
|
2727
|
+
return (0, import_recipes24.fileStatus)({ status: "done" });
|
|
3097
2728
|
case "error" /* ERROR */:
|
|
3098
|
-
return (0,
|
|
2729
|
+
return (0, import_recipes24.fileStatus)({ status: "error" });
|
|
3099
2730
|
default:
|
|
3100
|
-
return (0,
|
|
2731
|
+
return (0, import_recipes24.fileStatus)();
|
|
3101
2732
|
}
|
|
3102
2733
|
}, [status]);
|
|
3103
|
-
const handleClick = (0,
|
|
2734
|
+
const handleClick = (0, import_react18.useCallback)(
|
|
3104
2735
|
(e) => {
|
|
3105
2736
|
const actionStatus = getStatusActionLabel(
|
|
3106
2737
|
status
|
|
@@ -3109,39 +2740,39 @@ function FileStatus(props) {
|
|
|
3109
2740
|
},
|
|
3110
2741
|
[onClick]
|
|
3111
2742
|
);
|
|
3112
|
-
return /* @__PURE__ */ (0,
|
|
2743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
3113
2744
|
"div",
|
|
3114
2745
|
{
|
|
3115
2746
|
...nativeProps,
|
|
3116
|
-
className: (0,
|
|
2747
|
+
className: (0, import_css27.cx)(nativeProps.className, styles.root, (0, import_patterns3.hstack)()),
|
|
3117
2748
|
children: [
|
|
3118
|
-
/* @__PURE__ */ (0,
|
|
2749
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3119
2750
|
Avatar2,
|
|
3120
2751
|
{
|
|
3121
2752
|
gradient: modalIconPalette,
|
|
3122
|
-
fallback: /* @__PURE__ */ (0,
|
|
2753
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MatchFileStatusIcon, { size: 24, status })
|
|
3123
2754
|
}
|
|
3124
2755
|
),
|
|
3125
|
-
/* @__PURE__ */ (0,
|
|
2756
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
3126
2757
|
"div",
|
|
3127
2758
|
{
|
|
3128
|
-
className: (0,
|
|
2759
|
+
className: (0, import_patterns3.vstack)({
|
|
3129
2760
|
alignItems: "flex-start",
|
|
3130
2761
|
gap: "0.12rem",
|
|
3131
2762
|
w: "full"
|
|
3132
2763
|
}),
|
|
3133
2764
|
children: [
|
|
3134
|
-
/* @__PURE__ */ (0,
|
|
2765
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3135
2766
|
"small",
|
|
3136
2767
|
{
|
|
3137
|
-
className: (0,
|
|
2768
|
+
className: (0, import_css27.css)({
|
|
3138
2769
|
color: "page.text.initial",
|
|
3139
2770
|
textStyle: "label-sm"
|
|
3140
2771
|
}),
|
|
3141
2772
|
children: file
|
|
3142
2773
|
}
|
|
3143
2774
|
),
|
|
3144
|
-
/* @__PURE__ */ (0,
|
|
2775
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3145
2776
|
ProgressBar,
|
|
3146
2777
|
{
|
|
3147
2778
|
id: props.id,
|
|
@@ -3150,27 +2781,27 @@ function FileStatus(props) {
|
|
|
3150
2781
|
size: "sm"
|
|
3151
2782
|
}
|
|
3152
2783
|
),
|
|
3153
|
-
/* @__PURE__ */ (0,
|
|
2784
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field2, { label: "", invalid: modalIconPalette === "hades-dark", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3154
2785
|
FieldHelperText,
|
|
3155
2786
|
{
|
|
3156
|
-
className: (0,
|
|
2787
|
+
className: (0, import_css27.css)({
|
|
3157
2788
|
color: "page.text.100"
|
|
3158
2789
|
}),
|
|
3159
2790
|
id: `help:${file}`,
|
|
3160
|
-
children: /* @__PURE__ */ (0,
|
|
2791
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MatchFileStatusText, { status, now })
|
|
3161
2792
|
}
|
|
3162
2793
|
) })
|
|
3163
2794
|
]
|
|
3164
2795
|
}
|
|
3165
2796
|
),
|
|
3166
|
-
/* @__PURE__ */ (0,
|
|
2797
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
3167
2798
|
IconButton,
|
|
3168
2799
|
{
|
|
3169
2800
|
ariaLabel: actionLabel,
|
|
3170
2801
|
onClick: handleClick,
|
|
3171
2802
|
palette,
|
|
3172
2803
|
size: "sm",
|
|
3173
|
-
children: /* @__PURE__ */ (0,
|
|
2804
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MatchStatusAction, { status })
|
|
3174
2805
|
}
|
|
3175
2806
|
)
|
|
3176
2807
|
]
|
|
@@ -3187,13 +2818,13 @@ function MatchFileStatusIcon(props) {
|
|
|
3187
2818
|
} = icons;
|
|
3188
2819
|
switch (props.status) {
|
|
3189
2820
|
case "todo" /* TODO */:
|
|
3190
|
-
return /* @__PURE__ */ (0,
|
|
2821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TodoIcon, { size: props.size });
|
|
3191
2822
|
case "processing" /* PROCESSING */:
|
|
3192
|
-
return /* @__PURE__ */ (0,
|
|
2823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FileUploaderIcon, { size: props.size });
|
|
3193
2824
|
case "done" /* DONE */:
|
|
3194
|
-
return /* @__PURE__ */ (0,
|
|
2825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DoneIcon, { size: props.size });
|
|
3195
2826
|
case "error" /* ERROR */:
|
|
3196
|
-
return /* @__PURE__ */ (0,
|
|
2827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InvalidIcon, { size: props.size });
|
|
3197
2828
|
default:
|
|
3198
2829
|
throw new Error("Unknown status");
|
|
3199
2830
|
}
|
|
@@ -3218,11 +2849,11 @@ function MatchStatusAction(props) {
|
|
|
3218
2849
|
switch (props.status) {
|
|
3219
2850
|
case "todo" /* TODO */:
|
|
3220
2851
|
case "processing" /* PROCESSING */:
|
|
3221
|
-
return /* @__PURE__ */ (0,
|
|
2852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CloseIcon, {});
|
|
3222
2853
|
case "error" /* ERROR */:
|
|
3223
|
-
return /* @__PURE__ */ (0,
|
|
2854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RedoIcon, {});
|
|
3224
2855
|
case "done" /* DONE */:
|
|
3225
|
-
return /* @__PURE__ */ (0,
|
|
2856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(TrashIcon, {});
|
|
3226
2857
|
default:
|
|
3227
2858
|
throw new Error("Invalid status");
|
|
3228
2859
|
}
|
|
@@ -3268,48 +2899,48 @@ function getModalIconPalette(status) {
|
|
|
3268
2899
|
}
|
|
3269
2900
|
|
|
3270
2901
|
// src/components/FileUploader.tsx
|
|
3271
|
-
var
|
|
3272
|
-
var
|
|
3273
|
-
var
|
|
3274
|
-
var
|
|
2902
|
+
var import_css28 = require("styled-system/css");
|
|
2903
|
+
var import_patterns4 = require("styled-system/patterns");
|
|
2904
|
+
var import_recipes25 = require("styled-system/recipes");
|
|
2905
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3275
2906
|
function FileUploader(props) {
|
|
3276
2907
|
var _a;
|
|
3277
2908
|
const { icons } = useCerberusContext();
|
|
3278
|
-
const styles = (0,
|
|
2909
|
+
const styles = (0, import_recipes25.fileUploader)();
|
|
3279
2910
|
const { waitingFileUploader: Icon } = icons;
|
|
3280
|
-
return /* @__PURE__ */ (0,
|
|
2911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
3281
2912
|
"div",
|
|
3282
2913
|
{
|
|
3283
2914
|
...props.disabled ? { "aria-disabled": true } : {},
|
|
3284
|
-
className: (0,
|
|
3285
|
-
(0,
|
|
2915
|
+
className: (0, import_css28.cx)(
|
|
2916
|
+
(0, import_patterns4.vstack)({
|
|
3286
2917
|
justify: "center"
|
|
3287
2918
|
}),
|
|
3288
2919
|
styles.container
|
|
3289
2920
|
),
|
|
3290
2921
|
children: [
|
|
3291
|
-
/* @__PURE__ */ (0,
|
|
3292
|
-
/* @__PURE__ */ (0,
|
|
2922
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Avatar2, { gradient: "charon-light", fallback: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon, {}) }) }),
|
|
2923
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
3293
2924
|
"label",
|
|
3294
2925
|
{
|
|
3295
|
-
className: (0,
|
|
3296
|
-
(0,
|
|
2926
|
+
className: (0, import_css28.cx)(
|
|
2927
|
+
(0, import_patterns4.vstack)({
|
|
3297
2928
|
justify: "center"
|
|
3298
2929
|
}),
|
|
3299
2930
|
styles.label
|
|
3300
2931
|
),
|
|
3301
2932
|
htmlFor: props.name,
|
|
3302
2933
|
children: [
|
|
3303
|
-
/* @__PURE__ */ (0,
|
|
2934
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Show, { when: props.heading, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: styles.heading, children: props.heading }) }),
|
|
3304
2935
|
"Import ",
|
|
3305
2936
|
(_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
|
|
3306
2937
|
" files",
|
|
3307
|
-
/* @__PURE__ */ (0,
|
|
3308
|
-
/* @__PURE__ */ (0,
|
|
2938
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: styles.description, children: "Click to select files" }),
|
|
2939
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
3309
2940
|
"input",
|
|
3310
2941
|
{
|
|
3311
2942
|
...props,
|
|
3312
|
-
className: (0,
|
|
2943
|
+
className: (0, import_css28.cx)(props.className, styles.input),
|
|
3313
2944
|
type: "file"
|
|
3314
2945
|
}
|
|
3315
2946
|
)
|
|
@@ -3322,88 +2953,94 @@ function FileUploader(props) {
|
|
|
3322
2953
|
}
|
|
3323
2954
|
|
|
3324
2955
|
// src/components/Menu.tsx
|
|
3325
|
-
var
|
|
3326
|
-
var
|
|
3327
|
-
var
|
|
3328
|
-
var
|
|
3329
|
-
var menuStyles = (0,
|
|
3330
|
-
|
|
2956
|
+
var import_react19 = require("@ark-ui/react");
|
|
2957
|
+
var import_recipes26 = require("styled-system/recipes");
|
|
2958
|
+
var import_css29 = require("styled-system/css");
|
|
2959
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2960
|
+
var menuStyles = (0, import_recipes26.menu)();
|
|
2961
|
+
function Menu(props) {
|
|
2962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.Root, { ...props });
|
|
2963
|
+
}
|
|
3331
2964
|
function MenuTrigger(props) {
|
|
3332
|
-
return /* @__PURE__ */ (0,
|
|
2965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.Trigger, { ...props, asChild: true });
|
|
3333
2966
|
}
|
|
3334
2967
|
function MenuContent(props) {
|
|
3335
|
-
return /* @__PURE__ */ (0,
|
|
3336
|
-
|
|
2968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2969
|
+
import_react19.Menu.Content,
|
|
3337
2970
|
{
|
|
3338
2971
|
...props,
|
|
3339
|
-
className: (0,
|
|
2972
|
+
className: (0, import_css29.cx)(props.className, menuStyles.content)
|
|
3340
2973
|
}
|
|
3341
2974
|
) });
|
|
3342
2975
|
}
|
|
3343
2976
|
function MenuItem(props) {
|
|
3344
|
-
return /* @__PURE__ */ (0,
|
|
2977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.Item, { ...props, className: (0, import_css29.cx)(props.className, menuStyles.item) });
|
|
2978
|
+
}
|
|
2979
|
+
function MenuItemGroup(props) {
|
|
2980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react19.Menu.ItemGroup, { ...props });
|
|
3345
2981
|
}
|
|
3346
|
-
var MenuItemGroup = import_react25.Menu.ItemGroup;
|
|
3347
2982
|
function MenuGroupLabel(props) {
|
|
3348
|
-
return /* @__PURE__ */ (0,
|
|
3349
|
-
|
|
2983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2984
|
+
import_react19.Menu.ItemGroupLabel,
|
|
3350
2985
|
{
|
|
3351
2986
|
...props,
|
|
3352
|
-
className: (0,
|
|
2987
|
+
className: (0, import_css29.cx)(props.className, menuStyles.itemGroupLabel)
|
|
3353
2988
|
}
|
|
3354
2989
|
);
|
|
3355
2990
|
}
|
|
3356
2991
|
function MenuSeparator(props) {
|
|
3357
|
-
return /* @__PURE__ */ (0,
|
|
3358
|
-
|
|
2992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2993
|
+
import_react19.Menu.Separator,
|
|
3359
2994
|
{
|
|
3360
2995
|
...props,
|
|
3361
|
-
className: (0,
|
|
2996
|
+
className: (0, import_css29.cx)(props.className, menuStyles.separator)
|
|
3362
2997
|
}
|
|
3363
2998
|
);
|
|
3364
2999
|
}
|
|
3365
3000
|
|
|
3366
3001
|
// src/components/notifications/primitives.tsx
|
|
3367
3002
|
var import_toast = require("@ark-ui/react/toast");
|
|
3368
|
-
var
|
|
3369
|
-
var
|
|
3370
|
-
var
|
|
3371
|
-
|
|
3003
|
+
var import_css30 = require("styled-system/css");
|
|
3004
|
+
var import_recipes27 = require("styled-system/recipes");
|
|
3005
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3006
|
+
function NotificationProvider(props) {
|
|
3007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toaster, { ...props });
|
|
3008
|
+
}
|
|
3372
3009
|
function NotificationRoot(props) {
|
|
3373
|
-
const styles = (0,
|
|
3374
|
-
return /* @__PURE__ */ (0,
|
|
3010
|
+
const styles = (0, import_recipes27.toast)();
|
|
3011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toast.Root, { ...props, className: (0, import_css30.cx)(styles.root, props.className) });
|
|
3375
3012
|
}
|
|
3376
3013
|
function NotificationHeading(props) {
|
|
3377
|
-
const styles = (0,
|
|
3378
|
-
return /* @__PURE__ */ (0,
|
|
3014
|
+
const styles = (0, import_recipes27.toast)();
|
|
3015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_toast.Toast.Title, { ...props, className: (0, import_css30.cx)(styles.title, props.className) });
|
|
3379
3016
|
}
|
|
3380
3017
|
function NotificationDescription(props) {
|
|
3381
|
-
const styles = (0,
|
|
3382
|
-
return /* @__PURE__ */ (0,
|
|
3018
|
+
const styles = (0, import_recipes27.toast)();
|
|
3019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3383
3020
|
import_toast.Toast.Description,
|
|
3384
3021
|
{
|
|
3385
3022
|
...props,
|
|
3386
|
-
className: (0,
|
|
3023
|
+
className: (0, import_css30.cx)(styles.description, props.className)
|
|
3387
3024
|
}
|
|
3388
3025
|
);
|
|
3389
3026
|
}
|
|
3390
3027
|
function NotificationCloseTrigger(props) {
|
|
3391
|
-
const styles = (0,
|
|
3392
|
-
return /* @__PURE__ */ (0,
|
|
3028
|
+
const styles = (0, import_recipes27.toast)();
|
|
3029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3393
3030
|
import_toast.Toast.CloseTrigger,
|
|
3394
3031
|
{
|
|
3395
3032
|
...props,
|
|
3396
|
-
className: (0,
|
|
3033
|
+
className: (0, import_css30.cx)(styles.closeTrigger, props.className)
|
|
3397
3034
|
}
|
|
3398
3035
|
);
|
|
3399
3036
|
}
|
|
3400
3037
|
function NotificationActionTrigger(props) {
|
|
3401
|
-
const styles = (0,
|
|
3402
|
-
return /* @__PURE__ */ (0,
|
|
3038
|
+
const styles = (0, import_recipes27.toast)();
|
|
3039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3403
3040
|
import_toast.Toast.ActionTrigger,
|
|
3404
3041
|
{
|
|
3405
3042
|
...props,
|
|
3406
|
-
className: (0,
|
|
3043
|
+
className: (0, import_css30.cx)(styles.actionTrigger, props.className)
|
|
3407
3044
|
}
|
|
3408
3045
|
);
|
|
3409
3046
|
}
|
|
@@ -3419,53 +3056,53 @@ var NotificationParts = {
|
|
|
3419
3056
|
|
|
3420
3057
|
// src/components/notifications/center.tsx
|
|
3421
3058
|
var import_toast2 = require("@ark-ui/react/toast");
|
|
3422
|
-
var
|
|
3059
|
+
var import_jsx5 = require("styled-system/jsx");
|
|
3423
3060
|
|
|
3424
3061
|
// src/components/notifications/match-icon.tsx
|
|
3425
|
-
var
|
|
3062
|
+
var import_recipes28 = require("styled-system/recipes");
|
|
3426
3063
|
var import_factory7 = require("@ark-ui/react/factory");
|
|
3427
|
-
var
|
|
3064
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3428
3065
|
function MatchNotificationIcon(props) {
|
|
3429
3066
|
const { icons } = useCerberusContext();
|
|
3430
3067
|
const type = props.type || "info";
|
|
3431
|
-
const styles = (0,
|
|
3068
|
+
const styles = (0, import_recipes28.toast)();
|
|
3432
3069
|
const key = `${type}Notification`;
|
|
3433
3070
|
const Icon = icons[key] || ToastLoadingIcon;
|
|
3434
|
-
return /* @__PURE__ */ (0,
|
|
3071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_factory7.ark.div, { className: styles.icon, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, {}) });
|
|
3435
3072
|
}
|
|
3436
3073
|
function ToastLoadingIcon() {
|
|
3437
|
-
return /* @__PURE__ */ (0,
|
|
3074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Spinner, { size: "1rem" });
|
|
3438
3075
|
}
|
|
3439
3076
|
|
|
3440
3077
|
// src/components/notifications/close-trigger.tsx
|
|
3441
|
-
var
|
|
3078
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
3442
3079
|
function ToastCloseTrigger(props) {
|
|
3443
3080
|
const { icons } = useCerberusContext();
|
|
3444
3081
|
const { close: CloseIcon } = icons;
|
|
3445
|
-
return /* @__PURE__ */ (0,
|
|
3082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(NotificationParts.CloseTrigger, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CloseIcon, {}) });
|
|
3446
3083
|
}
|
|
3447
3084
|
|
|
3448
3085
|
// src/components/notifications/center.tsx
|
|
3449
|
-
var
|
|
3086
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3450
3087
|
var toaster = (0, import_toast2.createToaster)({
|
|
3451
3088
|
gap: 16,
|
|
3452
3089
|
overlap: true,
|
|
3453
3090
|
placement: "top-end"
|
|
3454
3091
|
});
|
|
3455
3092
|
function NotificationCenter() {
|
|
3456
|
-
return /* @__PURE__ */ (0,
|
|
3093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_toast2.Toaster, { toaster, children: (toast3) => {
|
|
3457
3094
|
var _a;
|
|
3458
|
-
return /* @__PURE__ */ (0,
|
|
3459
|
-
/* @__PURE__ */ (0,
|
|
3095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(NotificationParts.Root, { children: [
|
|
3096
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3460
3097
|
MatchNotificationIcon,
|
|
3461
3098
|
{
|
|
3462
3099
|
type: toast3.type
|
|
3463
3100
|
}
|
|
3464
3101
|
),
|
|
3465
|
-
/* @__PURE__ */ (0,
|
|
3466
|
-
/* @__PURE__ */ (0,
|
|
3467
|
-
/* @__PURE__ */ (0,
|
|
3468
|
-
/* @__PURE__ */ (0,
|
|
3102
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx5.Box, { flex: "1", paddingBlock: "sm", children: [
|
|
3103
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NotificationParts.Heading, { children: toast3.title }),
|
|
3104
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NotificationParts.Description, { children: toast3.description }),
|
|
3105
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Show, { when: toast3.action, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(NotificationParts.ActionTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3469
3106
|
Button,
|
|
3470
3107
|
{
|
|
3471
3108
|
palette: toast3.type,
|
|
@@ -3475,7 +3112,7 @@ function NotificationCenter() {
|
|
|
3475
3112
|
}
|
|
3476
3113
|
) }) })
|
|
3477
3114
|
] }),
|
|
3478
|
-
/* @__PURE__ */ (0,
|
|
3115
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ToastCloseTrigger, {})
|
|
3479
3116
|
] }, toast3.id);
|
|
3480
3117
|
} });
|
|
3481
3118
|
}
|
|
@@ -3493,74 +3130,74 @@ function useNotificationCenter() {
|
|
|
3493
3130
|
|
|
3494
3131
|
// src/components/radio/primitives.tsx
|
|
3495
3132
|
var import_radio_group = require("@ark-ui/react/radio-group");
|
|
3496
|
-
var
|
|
3497
|
-
var
|
|
3498
|
-
var
|
|
3133
|
+
var import_css31 = require("styled-system/css");
|
|
3134
|
+
var import_recipes29 = require("styled-system/recipes");
|
|
3135
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3499
3136
|
function RadioGroupRoot(props) {
|
|
3500
3137
|
const { size, orientation, ...rootProps } = props;
|
|
3501
|
-
const styles = (0,
|
|
3502
|
-
return /* @__PURE__ */ (0,
|
|
3138
|
+
const styles = (0, import_recipes29.radioGroup)({ size, orientation });
|
|
3139
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3503
3140
|
import_radio_group.RadioGroup.Root,
|
|
3504
3141
|
{
|
|
3505
3142
|
...rootProps,
|
|
3506
|
-
className: (0,
|
|
3143
|
+
className: (0, import_css31.cx)(styles.root, rootProps.className)
|
|
3507
3144
|
}
|
|
3508
3145
|
);
|
|
3509
3146
|
}
|
|
3510
3147
|
function RadioGroupLabel(props) {
|
|
3511
|
-
const styles = (0,
|
|
3512
|
-
return /* @__PURE__ */ (0,
|
|
3148
|
+
const styles = (0, import_recipes29.radioGroup)();
|
|
3149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3513
3150
|
import_radio_group.RadioGroup.Label,
|
|
3514
3151
|
{
|
|
3515
3152
|
...props,
|
|
3516
|
-
className: (0,
|
|
3153
|
+
className: (0, import_css31.cx)(styles.label, props.className)
|
|
3517
3154
|
}
|
|
3518
3155
|
);
|
|
3519
3156
|
}
|
|
3520
3157
|
function RadioGroupIndicator(props) {
|
|
3521
|
-
const styles = (0,
|
|
3522
|
-
return /* @__PURE__ */ (0,
|
|
3158
|
+
const styles = (0, import_recipes29.radioGroup)();
|
|
3159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3523
3160
|
import_radio_group.RadioGroup.Indicator,
|
|
3524
3161
|
{
|
|
3525
3162
|
...props,
|
|
3526
|
-
className: (0,
|
|
3163
|
+
className: (0, import_css31.cx)(styles.indicator, props.className)
|
|
3527
3164
|
}
|
|
3528
3165
|
);
|
|
3529
3166
|
}
|
|
3530
3167
|
function RadioGroupItem(props) {
|
|
3531
|
-
const styles = (0,
|
|
3532
|
-
return /* @__PURE__ */ (0,
|
|
3168
|
+
const styles = (0, import_recipes29.radioGroup)();
|
|
3169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3533
3170
|
import_radio_group.RadioGroup.Item,
|
|
3534
3171
|
{
|
|
3535
3172
|
...props,
|
|
3536
|
-
className: (0,
|
|
3173
|
+
className: (0, import_css31.cx)(styles.item, props.className)
|
|
3537
3174
|
}
|
|
3538
3175
|
);
|
|
3539
3176
|
}
|
|
3540
3177
|
function RadioGroupItemText(props) {
|
|
3541
3178
|
const { size, orientation, ...itemTextProps } = props;
|
|
3542
|
-
const styles = (0,
|
|
3543
|
-
return /* @__PURE__ */ (0,
|
|
3179
|
+
const styles = (0, import_recipes29.radioGroup)({ size, orientation });
|
|
3180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3544
3181
|
import_radio_group.RadioGroup.ItemText,
|
|
3545
3182
|
{
|
|
3546
3183
|
...itemTextProps,
|
|
3547
|
-
className: (0,
|
|
3184
|
+
className: (0, import_css31.cx)(styles.itemText, itemTextProps.className)
|
|
3548
3185
|
}
|
|
3549
3186
|
);
|
|
3550
3187
|
}
|
|
3551
3188
|
function RadioGroupItemControl(props) {
|
|
3552
3189
|
const { size, orientation, ...itemControlProps } = props;
|
|
3553
|
-
const styles = (0,
|
|
3554
|
-
return /* @__PURE__ */ (0,
|
|
3190
|
+
const styles = (0, import_recipes29.radioGroup)({ size, orientation });
|
|
3191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3555
3192
|
import_radio_group.RadioGroup.ItemControl,
|
|
3556
3193
|
{
|
|
3557
3194
|
...itemControlProps,
|
|
3558
|
-
className: (0,
|
|
3195
|
+
className: (0, import_css31.cx)(styles.itemControl, itemControlProps.className)
|
|
3559
3196
|
}
|
|
3560
3197
|
);
|
|
3561
3198
|
}
|
|
3562
3199
|
function RadioGroupItemHiddenInput(props) {
|
|
3563
|
-
return /* @__PURE__ */ (0,
|
|
3200
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_radio_group.RadioGroup.ItemHiddenInput, { ...props });
|
|
3564
3201
|
}
|
|
3565
3202
|
var RadioGroup = RadioGroupRoot;
|
|
3566
3203
|
|
|
@@ -3576,71 +3213,71 @@ var RadioParts = {
|
|
|
3576
3213
|
};
|
|
3577
3214
|
|
|
3578
3215
|
// src/components/radio/radio.tsx
|
|
3579
|
-
var
|
|
3216
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3580
3217
|
function Radio(props) {
|
|
3581
3218
|
const { size, children, ...groupProps } = props;
|
|
3582
|
-
return /* @__PURE__ */ (0,
|
|
3583
|
-
/* @__PURE__ */ (0,
|
|
3584
|
-
/* @__PURE__ */ (0,
|
|
3585
|
-
/* @__PURE__ */ (0,
|
|
3219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(RadioGroupItem, { ...groupProps, children: [
|
|
3220
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(RadioGroupItemControl, { size }),
|
|
3221
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(RadioGroupItemText, { size, children }),
|
|
3222
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(RadioGroupItemHiddenInput, {})
|
|
3586
3223
|
] });
|
|
3587
3224
|
}
|
|
3588
3225
|
|
|
3589
3226
|
// src/components/rating/primitives.tsx
|
|
3590
3227
|
var import_rating_group = require("@ark-ui/react/rating-group");
|
|
3591
|
-
var
|
|
3592
|
-
var
|
|
3593
|
-
var
|
|
3228
|
+
var import_css32 = require("styled-system/css");
|
|
3229
|
+
var import_recipes30 = require("styled-system/recipes");
|
|
3230
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3594
3231
|
function RatingRoot(props) {
|
|
3595
3232
|
const { orientation, size, ...rootProps } = props;
|
|
3596
|
-
const styles = (0,
|
|
3597
|
-
return /* @__PURE__ */ (0,
|
|
3233
|
+
const styles = (0, import_recipes30.ratingGroup)({ orientation, size });
|
|
3234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3598
3235
|
import_rating_group.RatingGroup.Root,
|
|
3599
3236
|
{
|
|
3600
3237
|
...rootProps,
|
|
3601
|
-
className: (0,
|
|
3238
|
+
className: (0, import_css32.cx)(styles.root, rootProps.className)
|
|
3602
3239
|
}
|
|
3603
3240
|
);
|
|
3604
3241
|
}
|
|
3605
3242
|
function RatingLabel(props) {
|
|
3606
|
-
const styles = (0,
|
|
3607
|
-
return /* @__PURE__ */ (0,
|
|
3243
|
+
const styles = (0, import_recipes30.ratingGroup)();
|
|
3244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3608
3245
|
import_rating_group.RatingGroup.Label,
|
|
3609
3246
|
{
|
|
3610
3247
|
...props,
|
|
3611
|
-
className: (0,
|
|
3248
|
+
className: (0, import_css32.cx)(styles.label, props.className)
|
|
3612
3249
|
}
|
|
3613
3250
|
);
|
|
3614
3251
|
}
|
|
3615
3252
|
function RatingControl(props) {
|
|
3616
|
-
const styles = (0,
|
|
3617
|
-
return /* @__PURE__ */ (0,
|
|
3253
|
+
const styles = (0, import_recipes30.ratingGroup)();
|
|
3254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3618
3255
|
import_rating_group.RatingGroup.Control,
|
|
3619
3256
|
{
|
|
3620
3257
|
...props,
|
|
3621
|
-
className: (0,
|
|
3258
|
+
className: (0, import_css32.cx)(styles.control, props.className)
|
|
3622
3259
|
}
|
|
3623
3260
|
);
|
|
3624
3261
|
}
|
|
3625
3262
|
function RatingContext(props) {
|
|
3626
|
-
return /* @__PURE__ */ (0,
|
|
3263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_rating_group.RatingGroup.Context, { ...props });
|
|
3627
3264
|
}
|
|
3628
3265
|
function RatingItem(props) {
|
|
3629
3266
|
const { palette, ...itemProps } = props;
|
|
3630
|
-
const styles = (0,
|
|
3631
|
-
return /* @__PURE__ */ (0,
|
|
3267
|
+
const styles = (0, import_recipes30.ratingGroup)({ palette });
|
|
3268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3632
3269
|
import_rating_group.RatingGroup.Item,
|
|
3633
3270
|
{
|
|
3634
3271
|
...itemProps,
|
|
3635
|
-
className: (0,
|
|
3272
|
+
className: (0, import_css32.cx)(styles.item, itemProps.className)
|
|
3636
3273
|
}
|
|
3637
3274
|
);
|
|
3638
3275
|
}
|
|
3639
3276
|
function RatingItemContext(props) {
|
|
3640
|
-
return /* @__PURE__ */ (0,
|
|
3277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_rating_group.RatingGroup.ItemContext, { ...props });
|
|
3641
3278
|
}
|
|
3642
3279
|
function RatingHiddenInput(props) {
|
|
3643
|
-
return /* @__PURE__ */ (0,
|
|
3280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_rating_group.RatingGroup.HiddenInput, { ...props });
|
|
3644
3281
|
}
|
|
3645
3282
|
|
|
3646
3283
|
// src/components/rating/parts.tsx
|
|
@@ -3655,21 +3292,21 @@ var RatingParts = {
|
|
|
3655
3292
|
};
|
|
3656
3293
|
|
|
3657
3294
|
// src/components/rating/rating.tsx
|
|
3658
|
-
var
|
|
3295
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3659
3296
|
function Rating(props) {
|
|
3660
3297
|
const [{ label: label4 }, styleProps, rootProps] = splitProps(
|
|
3661
3298
|
props,
|
|
3662
3299
|
["label"],
|
|
3663
3300
|
["orientation", "palette", "size"]
|
|
3664
3301
|
);
|
|
3665
|
-
return /* @__PURE__ */ (0,
|
|
3666
|
-
/* @__PURE__ */ (0,
|
|
3667
|
-
/* @__PURE__ */ (0,
|
|
3302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(RatingParts.Root, { ...styleProps, ...rootProps, children: [
|
|
3303
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Show, { when: label4, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(RatingParts.Label, { children: label4 }) }),
|
|
3304
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(RatingParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(RatingParts.Context, { children: (context) => context.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3668
3305
|
RatingParts.Item,
|
|
3669
3306
|
{
|
|
3670
3307
|
index: item,
|
|
3671
3308
|
palette: styleProps.palette,
|
|
3672
|
-
children: /* @__PURE__ */ (0,
|
|
3309
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(RatingParts.ItemContext, { children: rootProps.children })
|
|
3673
3310
|
},
|
|
3674
3311
|
item
|
|
3675
3312
|
)) }) })
|
|
@@ -3696,78 +3333,80 @@ var SelectParts = {
|
|
|
3696
3333
|
};
|
|
3697
3334
|
|
|
3698
3335
|
// src/components/select/select.tsx
|
|
3699
|
-
var
|
|
3700
|
-
var
|
|
3336
|
+
var import_jsx6 = require("styled-system/jsx");
|
|
3337
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3701
3338
|
function Select2(props) {
|
|
3702
3339
|
const { collection, placeholder, ...rootProps } = props;
|
|
3703
3340
|
const { icons } = useCerberusContext();
|
|
3704
3341
|
const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
|
|
3705
|
-
return /* @__PURE__ */ (0,
|
|
3706
|
-
/* @__PURE__ */ (0,
|
|
3707
|
-
/* @__PURE__ */ (0,
|
|
3708
|
-
/* @__PURE__ */ (0,
|
|
3709
|
-
/* @__PURE__ */ (0,
|
|
3710
|
-
/* @__PURE__ */ (0,
|
|
3342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(SelectParts.Root, { collection, ...rootProps, children: [
|
|
3343
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(SelectParts.Trigger, { children: [
|
|
3344
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.ValueText, { placeholder }),
|
|
3345
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx6.HStack, { children: [
|
|
3346
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Show, { when: props.invalid, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(InvalidIcon, { "data-part": "invalid-icon" }) }),
|
|
3347
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectArrow, {}) })
|
|
3711
3348
|
] })
|
|
3712
3349
|
] }) }),
|
|
3713
|
-
/* @__PURE__ */ (0,
|
|
3714
|
-
/* @__PURE__ */ (0,
|
|
3350
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.Content, { size: rootProps.size, children: props.children }) }) }),
|
|
3351
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.HiddenSelect, {})
|
|
3715
3352
|
] });
|
|
3716
3353
|
}
|
|
3717
3354
|
function Option(props) {
|
|
3718
3355
|
const { item, ...itemProps } = props;
|
|
3719
3356
|
const { icons } = useCerberusContext();
|
|
3720
3357
|
const { selectChecked: CheckedIcon } = icons;
|
|
3721
|
-
return /* @__PURE__ */ (0,
|
|
3722
|
-
/* @__PURE__ */ (0,
|
|
3723
|
-
/* @__PURE__ */ (0,
|
|
3358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(SelectParts.Item, { ...itemProps, item, children: [
|
|
3359
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.ItemText, { children: item == null ? void 0 : item.label }),
|
|
3360
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(SelectParts.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CheckedIcon, {}) })
|
|
3724
3361
|
] });
|
|
3725
3362
|
}
|
|
3726
3363
|
|
|
3727
3364
|
// src/components/select/option-group.tsx
|
|
3728
|
-
var
|
|
3365
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3729
3366
|
function OptionGroup(props) {
|
|
3730
|
-
return /* @__PURE__ */ (0,
|
|
3367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SelectItemGroup, { ...props });
|
|
3731
3368
|
}
|
|
3732
3369
|
function OptionGroupLabel(props) {
|
|
3733
|
-
return /* @__PURE__ */ (0,
|
|
3370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(SelectItemGroupLabel, { ...props });
|
|
3734
3371
|
}
|
|
3735
3372
|
|
|
3736
3373
|
// src/components/switch/primitives.tsx
|
|
3737
|
-
var
|
|
3738
|
-
var
|
|
3739
|
-
var
|
|
3740
|
-
var
|
|
3374
|
+
var import_switch = require("@ark-ui/react/switch");
|
|
3375
|
+
var import_css33 = require("styled-system/css");
|
|
3376
|
+
var import_recipes31 = require("styled-system/recipes");
|
|
3377
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3741
3378
|
function SwitchRoot(props) {
|
|
3742
3379
|
const { size, ...rootProps } = props;
|
|
3743
|
-
const styles = (0,
|
|
3744
|
-
return /* @__PURE__ */ (0,
|
|
3745
|
-
|
|
3380
|
+
const styles = (0, import_recipes31.switchRecipe)({ size });
|
|
3381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3382
|
+
import_switch.Switch.Root,
|
|
3746
3383
|
{
|
|
3747
3384
|
...rootProps,
|
|
3748
|
-
className: (0,
|
|
3385
|
+
className: (0, import_css33.cx)(styles.root, rootProps.className)
|
|
3749
3386
|
}
|
|
3750
3387
|
);
|
|
3751
3388
|
}
|
|
3752
3389
|
function SwitchLabel(props) {
|
|
3753
|
-
const styles = (0,
|
|
3754
|
-
return /* @__PURE__ */ (0,
|
|
3390
|
+
const styles = (0, import_recipes31.switchRecipe)();
|
|
3391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.Label, { ...props, className: (0, import_css33.cx)(styles.label, props.className) });
|
|
3755
3392
|
}
|
|
3756
3393
|
function SwitchControl(props) {
|
|
3757
|
-
const styles = (0,
|
|
3758
|
-
return /* @__PURE__ */ (0,
|
|
3759
|
-
|
|
3394
|
+
const styles = (0, import_recipes31.switchRecipe)();
|
|
3395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3396
|
+
import_switch.Switch.Control,
|
|
3760
3397
|
{
|
|
3761
3398
|
...props,
|
|
3762
|
-
className: (0,
|
|
3399
|
+
className: (0, import_css33.cx)(styles.control, props.className)
|
|
3763
3400
|
}
|
|
3764
3401
|
);
|
|
3765
3402
|
}
|
|
3766
3403
|
function SwitchThumb(props) {
|
|
3767
|
-
const styles = (0,
|
|
3768
|
-
return /* @__PURE__ */ (0,
|
|
3404
|
+
const styles = (0, import_recipes31.switchRecipe)();
|
|
3405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.Thumb, { ...props, className: (0, import_css33.cx)(styles.thumb, props.className) });
|
|
3406
|
+
}
|
|
3407
|
+
function SwitchHiddenInput(props) {
|
|
3408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_switch.Switch.HiddenInput, { ...props });
|
|
3769
3409
|
}
|
|
3770
|
-
var SwitchHiddenInput = import_react26.Switch.HiddenInput;
|
|
3771
3410
|
|
|
3772
3411
|
// src/components/switch/parts.ts
|
|
3773
3412
|
var SwitchParts = {
|
|
@@ -3779,148 +3418,148 @@ var SwitchParts = {
|
|
|
3779
3418
|
};
|
|
3780
3419
|
|
|
3781
3420
|
// src/components/switch/switch-indicator.tsx
|
|
3782
|
-
var
|
|
3421
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3783
3422
|
function SwitchIndicator() {
|
|
3784
3423
|
const { icons } = useCerberusContext();
|
|
3785
3424
|
const { toggleChecked: CheckIcon } = icons;
|
|
3786
|
-
return /* @__PURE__ */ (0,
|
|
3425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(CheckIcon, {});
|
|
3787
3426
|
}
|
|
3788
3427
|
|
|
3789
3428
|
// src/components/switch/switch.tsx
|
|
3790
|
-
var
|
|
3429
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3791
3430
|
function Switch2(props) {
|
|
3792
3431
|
const { children, ...rootProps } = props;
|
|
3793
|
-
return /* @__PURE__ */ (0,
|
|
3794
|
-
/* @__PURE__ */ (0,
|
|
3795
|
-
/* @__PURE__ */ (0,
|
|
3796
|
-
/* @__PURE__ */ (0,
|
|
3432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(SwitchParts.Root, { ...rootProps, children: [
|
|
3433
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SwitchParts.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SwitchParts.Thumb, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SwitchIndicator, {}) }) }),
|
|
3434
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SwitchParts.Label, { children }),
|
|
3435
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SwitchParts.HiddenInput, {})
|
|
3797
3436
|
] });
|
|
3798
3437
|
}
|
|
3799
3438
|
|
|
3800
3439
|
// src/components/table/primitives.tsx
|
|
3801
3440
|
var import_factory8 = require("@ark-ui/react/factory");
|
|
3802
|
-
var
|
|
3803
|
-
var
|
|
3804
|
-
var
|
|
3441
|
+
var import_css34 = require("styled-system/css");
|
|
3442
|
+
var import_recipes32 = require("styled-system/recipes");
|
|
3443
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3805
3444
|
function TableRoot(props) {
|
|
3806
3445
|
const { decoration, size, ...rootProps } = props;
|
|
3807
|
-
const styles = (0,
|
|
3446
|
+
const styles = (0, import_recipes32.table)({
|
|
3808
3447
|
decoration,
|
|
3809
3448
|
size
|
|
3810
3449
|
});
|
|
3811
|
-
return /* @__PURE__ */ (0,
|
|
3450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3812
3451
|
import_factory8.ark.div,
|
|
3813
3452
|
{
|
|
3814
3453
|
...rootProps,
|
|
3815
|
-
className: (0,
|
|
3454
|
+
className: (0, import_css34.cx)(styles.root, rootProps.className),
|
|
3816
3455
|
"data-scope": "table",
|
|
3817
3456
|
"data-part": "root"
|
|
3818
3457
|
}
|
|
3819
3458
|
);
|
|
3820
3459
|
}
|
|
3821
3460
|
function TableEl(props) {
|
|
3822
|
-
const styles = (0,
|
|
3823
|
-
return /* @__PURE__ */ (0,
|
|
3461
|
+
const styles = (0, import_recipes32.table)();
|
|
3462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3824
3463
|
import_factory8.ark.table,
|
|
3825
3464
|
{
|
|
3826
3465
|
...props,
|
|
3827
|
-
className: (0,
|
|
3466
|
+
className: (0, import_css34.cx)(styles.table, props.className),
|
|
3828
3467
|
"data-scope": "table",
|
|
3829
3468
|
"data-part": "table"
|
|
3830
3469
|
}
|
|
3831
3470
|
);
|
|
3832
3471
|
}
|
|
3833
3472
|
function Caption(props) {
|
|
3834
|
-
const styles = (0,
|
|
3835
|
-
return /* @__PURE__ */ (0,
|
|
3473
|
+
const styles = (0, import_recipes32.table)();
|
|
3474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3836
3475
|
import_factory8.ark.caption,
|
|
3837
3476
|
{
|
|
3838
3477
|
...props,
|
|
3839
|
-
className: (0,
|
|
3478
|
+
className: (0, import_css34.cx)(styles.caption, props.className),
|
|
3840
3479
|
"data-scope": "table",
|
|
3841
3480
|
"data-part": "caption"
|
|
3842
3481
|
}
|
|
3843
3482
|
);
|
|
3844
3483
|
}
|
|
3845
3484
|
function Thead(props) {
|
|
3846
|
-
const styles = (0,
|
|
3847
|
-
return /* @__PURE__ */ (0,
|
|
3485
|
+
const styles = (0, import_recipes32.table)();
|
|
3486
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3848
3487
|
import_factory8.ark.thead,
|
|
3849
3488
|
{
|
|
3850
3489
|
...props,
|
|
3851
|
-
className: (0,
|
|
3490
|
+
className: (0, import_css34.cx)(styles.thead, props.className),
|
|
3852
3491
|
"data-scope": "table",
|
|
3853
3492
|
"data-part": "header"
|
|
3854
3493
|
}
|
|
3855
3494
|
);
|
|
3856
3495
|
}
|
|
3857
3496
|
function Th(props) {
|
|
3858
|
-
const styles = (0,
|
|
3859
|
-
return /* @__PURE__ */ (0,
|
|
3497
|
+
const styles = (0, import_recipes32.table)();
|
|
3498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3860
3499
|
import_factory8.ark.th,
|
|
3861
3500
|
{
|
|
3862
3501
|
...props,
|
|
3863
|
-
className: (0,
|
|
3502
|
+
className: (0, import_css34.cx)(styles.th, props.className),
|
|
3864
3503
|
"data-scope": "table",
|
|
3865
3504
|
"data-part": "header-col"
|
|
3866
3505
|
}
|
|
3867
3506
|
);
|
|
3868
3507
|
}
|
|
3869
3508
|
function Tbody(props) {
|
|
3870
|
-
const styles = (0,
|
|
3871
|
-
return /* @__PURE__ */ (0,
|
|
3509
|
+
const styles = (0, import_recipes32.table)();
|
|
3510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3872
3511
|
import_factory8.ark.tbody,
|
|
3873
3512
|
{
|
|
3874
3513
|
...props,
|
|
3875
|
-
className: (0,
|
|
3514
|
+
className: (0, import_css34.cx)(styles.tbody, props.className),
|
|
3876
3515
|
"data-scope": "table",
|
|
3877
3516
|
"data-part": "body"
|
|
3878
3517
|
}
|
|
3879
3518
|
);
|
|
3880
3519
|
}
|
|
3881
3520
|
function Tr(props) {
|
|
3882
|
-
const styles = (0,
|
|
3883
|
-
return /* @__PURE__ */ (0,
|
|
3521
|
+
const styles = (0, import_recipes32.table)();
|
|
3522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3884
3523
|
import_factory8.ark.tr,
|
|
3885
3524
|
{
|
|
3886
3525
|
...props,
|
|
3887
|
-
className: (0,
|
|
3526
|
+
className: (0, import_css34.cx)(styles.tr, props.className),
|
|
3888
3527
|
"data-scope": "table",
|
|
3889
3528
|
"data-part": "row"
|
|
3890
3529
|
}
|
|
3891
3530
|
);
|
|
3892
3531
|
}
|
|
3893
3532
|
function Td(props) {
|
|
3894
|
-
const styles = (0,
|
|
3895
|
-
return /* @__PURE__ */ (0,
|
|
3533
|
+
const styles = (0, import_recipes32.table)();
|
|
3534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3896
3535
|
import_factory8.ark.td,
|
|
3897
3536
|
{
|
|
3898
3537
|
...props,
|
|
3899
|
-
className: (0,
|
|
3538
|
+
className: (0, import_css34.cx)(styles.td, props.className),
|
|
3900
3539
|
"data-scope": "table",
|
|
3901
3540
|
"data-part": "cell"
|
|
3902
3541
|
}
|
|
3903
3542
|
);
|
|
3904
3543
|
}
|
|
3905
3544
|
function Tfoot(props) {
|
|
3906
|
-
const styles = (0,
|
|
3907
|
-
return /* @__PURE__ */ (0,
|
|
3545
|
+
const styles = (0, import_recipes32.table)();
|
|
3546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3908
3547
|
import_factory8.ark.tfoot,
|
|
3909
3548
|
{
|
|
3910
3549
|
...props,
|
|
3911
|
-
className: (0,
|
|
3550
|
+
className: (0, import_css34.cx)(styles.tfoot, props.className),
|
|
3912
3551
|
"data-scope": "table",
|
|
3913
3552
|
"data-part": "footer"
|
|
3914
3553
|
}
|
|
3915
3554
|
);
|
|
3916
3555
|
}
|
|
3917
3556
|
function TableTrigger(props) {
|
|
3918
|
-
const styles = (0,
|
|
3919
|
-
return /* @__PURE__ */ (0,
|
|
3557
|
+
const styles = (0, import_recipes32.table)();
|
|
3558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3920
3559
|
import_factory8.ark.button,
|
|
3921
3560
|
{
|
|
3922
3561
|
...props,
|
|
3923
|
-
className: (0,
|
|
3562
|
+
className: (0, import_css34.cx)(styles.trigger, props.className),
|
|
3924
3563
|
"data-scope": "table",
|
|
3925
3564
|
"data-part": "trigger"
|
|
3926
3565
|
}
|
|
@@ -3942,11 +3581,11 @@ var TableParts = {
|
|
|
3942
3581
|
};
|
|
3943
3582
|
|
|
3944
3583
|
// src/components/table/table.tsx
|
|
3945
|
-
var
|
|
3584
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3946
3585
|
function TableRootEl(props) {
|
|
3947
3586
|
const { sticky, caption, ...rootProps } = props;
|
|
3948
|
-
return /* @__PURE__ */ (0,
|
|
3949
|
-
/* @__PURE__ */ (0,
|
|
3587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TableRoot, { ...rootProps, "data-sticky": sticky ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(TableEl, { children: [
|
|
3588
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Show, { when: caption, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Caption, { children: caption }) }),
|
|
3950
3589
|
rootProps.children
|
|
3951
3590
|
] }) });
|
|
3952
3591
|
}
|
|
@@ -3964,39 +3603,39 @@ var Table = {
|
|
|
3964
3603
|
|
|
3965
3604
|
// src/components/tabs/primitives.tsx
|
|
3966
3605
|
var import_tabs = require("@ark-ui/react/tabs");
|
|
3967
|
-
var
|
|
3968
|
-
var
|
|
3969
|
-
var
|
|
3606
|
+
var import_css35 = require("styled-system/css");
|
|
3607
|
+
var import_recipes33 = require("styled-system/recipes");
|
|
3608
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
3970
3609
|
function TabsRoot(props) {
|
|
3971
3610
|
const { palette, ...rootProps } = props;
|
|
3972
|
-
const styles = (0,
|
|
3973
|
-
return /* @__PURE__ */ (0,
|
|
3611
|
+
const styles = (0, import_recipes33.tabs)({ palette });
|
|
3612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3974
3613
|
import_tabs.Tabs.Root,
|
|
3975
3614
|
{
|
|
3976
3615
|
...rootProps,
|
|
3977
|
-
className: (0,
|
|
3616
|
+
className: (0, import_css35.cx)(styles.root, rootProps.className)
|
|
3978
3617
|
}
|
|
3979
3618
|
);
|
|
3980
3619
|
}
|
|
3981
3620
|
function TabsList(props) {
|
|
3982
|
-
const styles = (0,
|
|
3983
|
-
return /* @__PURE__ */ (0,
|
|
3621
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.List, { ...props, className: (0, import_css35.cx)(styles.list, props.className) });
|
|
3984
3623
|
}
|
|
3985
3624
|
function TabsTrigger(props) {
|
|
3986
|
-
const styles = (0,
|
|
3987
|
-
return /* @__PURE__ */ (0,
|
|
3625
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.Trigger, { ...props, className: (0, import_css35.cx)(styles.trigger, props.className) });
|
|
3988
3627
|
}
|
|
3989
3628
|
function TabsContent(props) {
|
|
3990
|
-
const styles = (0,
|
|
3991
|
-
return /* @__PURE__ */ (0,
|
|
3629
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_tabs.Tabs.Content, { ...props, className: (0, import_css35.cx)(styles.content, props.className) });
|
|
3992
3631
|
}
|
|
3993
3632
|
function TabsIndicator(props) {
|
|
3994
|
-
const styles = (0,
|
|
3995
|
-
return /* @__PURE__ */ (0,
|
|
3633
|
+
const styles = (0, import_recipes33.tabs)();
|
|
3634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3996
3635
|
import_tabs.Tabs.Indicator,
|
|
3997
3636
|
{
|
|
3998
3637
|
...props,
|
|
3999
|
-
className: (0,
|
|
3638
|
+
className: (0, import_css35.cx)(styles.indicator, props.className)
|
|
4000
3639
|
}
|
|
4001
3640
|
);
|
|
4002
3641
|
}
|
|
@@ -4011,12 +3650,12 @@ var TabsParts = {
|
|
|
4011
3650
|
};
|
|
4012
3651
|
|
|
4013
3652
|
// src/components/tabs/tabs.tsx
|
|
4014
|
-
var
|
|
3653
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4015
3654
|
function TabsList2(props) {
|
|
4016
3655
|
const { children, ...listProps } = props;
|
|
4017
|
-
return /* @__PURE__ */ (0,
|
|
3656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(TabsParts.List, { ...listProps, children: [
|
|
4018
3657
|
children,
|
|
4019
|
-
/* @__PURE__ */ (0,
|
|
3658
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TabsParts.Indicator, {})
|
|
4020
3659
|
] });
|
|
4021
3660
|
}
|
|
4022
3661
|
var Tabs2 = {
|
|
@@ -4028,9 +3667,9 @@ var Tabs2 = {
|
|
|
4028
3667
|
|
|
4029
3668
|
// src/components/Tag.tsx
|
|
4030
3669
|
var import_factory9 = require("@ark-ui/react/factory");
|
|
4031
|
-
var
|
|
4032
|
-
var
|
|
4033
|
-
var
|
|
3670
|
+
var import_css36 = require("styled-system/css");
|
|
3671
|
+
var import_recipes34 = require("styled-system/recipes");
|
|
3672
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4034
3673
|
function Tag(props) {
|
|
4035
3674
|
const { shape: initShape, gradient, onClick, usage, ...nativeProps } = props;
|
|
4036
3675
|
const palette = (props == null ? void 0 : props.palette) ?? "page";
|
|
@@ -4039,13 +3678,13 @@ function Tag(props) {
|
|
|
4039
3678
|
const closableStyles = isClosable ? closableCss : "";
|
|
4040
3679
|
const { icons } = useCerberusContext();
|
|
4041
3680
|
const { close: Close } = icons;
|
|
4042
|
-
return /* @__PURE__ */ (0,
|
|
3681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
4043
3682
|
import_factory9.ark.span,
|
|
4044
3683
|
{
|
|
4045
3684
|
...nativeProps,
|
|
4046
|
-
className: (0,
|
|
3685
|
+
className: (0, import_css36.cx)(
|
|
4047
3686
|
nativeProps.className,
|
|
4048
|
-
(0,
|
|
3687
|
+
(0, import_recipes34.tag)({
|
|
4049
3688
|
gradient,
|
|
4050
3689
|
palette,
|
|
4051
3690
|
shape,
|
|
@@ -4055,7 +3694,7 @@ function Tag(props) {
|
|
|
4055
3694
|
),
|
|
4056
3695
|
children: [
|
|
4057
3696
|
props.children,
|
|
4058
|
-
/* @__PURE__ */ (0,
|
|
3697
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Show, { when: isClosable, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4059
3698
|
IconButton,
|
|
4060
3699
|
{
|
|
4061
3700
|
ariaLabel: "Close",
|
|
@@ -4063,14 +3702,14 @@ function Tag(props) {
|
|
|
4063
3702
|
palette: "action",
|
|
4064
3703
|
usage: "filled",
|
|
4065
3704
|
size: "sm",
|
|
4066
|
-
children: /* @__PURE__ */ (0,
|
|
3705
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Close, {})
|
|
4067
3706
|
}
|
|
4068
3707
|
) })
|
|
4069
3708
|
]
|
|
4070
3709
|
}
|
|
4071
3710
|
);
|
|
4072
3711
|
}
|
|
4073
|
-
var closableCss = (0,
|
|
3712
|
+
var closableCss = (0, import_css36.css)({
|
|
4074
3713
|
bgColor: "action.bg.active",
|
|
4075
3714
|
color: "action.text.initial",
|
|
4076
3715
|
paddingInlineEnd: "0"
|
|
@@ -4078,8 +3717,13 @@ var closableCss = (0, import_css43.css)({
|
|
|
4078
3717
|
|
|
4079
3718
|
// src/components/toggle/primitives.tsx
|
|
4080
3719
|
var import_toggle = require("@ark-ui/react/toggle");
|
|
4081
|
-
var
|
|
4082
|
-
|
|
3720
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
3721
|
+
function ToggleRoot(props) {
|
|
3722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_toggle.Toggle.Root, { ...props });
|
|
3723
|
+
}
|
|
3724
|
+
function ToggleIndicator(props) {
|
|
3725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_toggle.Toggle.Indicator, { ...props });
|
|
3726
|
+
}
|
|
4083
3727
|
|
|
4084
3728
|
// src/components/toggle/parts.ts
|
|
4085
3729
|
var ToggleParts = {
|
|
@@ -4089,24 +3733,24 @@ var ToggleParts = {
|
|
|
4089
3733
|
|
|
4090
3734
|
// src/components/Tooltip.tsx
|
|
4091
3735
|
var import_tooltip = require("@ark-ui/react/tooltip");
|
|
4092
|
-
var
|
|
4093
|
-
var
|
|
4094
|
-
var
|
|
3736
|
+
var import_css37 = require("styled-system/css");
|
|
3737
|
+
var import_recipes35 = require("styled-system/recipes");
|
|
3738
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
4095
3739
|
function Tooltip(props) {
|
|
4096
3740
|
const { content, children, asChild, ...nativeProps } = props;
|
|
4097
|
-
const styles = (0,
|
|
3741
|
+
const styles = (0, import_recipes35.tooltip)();
|
|
4098
3742
|
const position = {
|
|
4099
3743
|
placement: props.position || "top"
|
|
4100
3744
|
};
|
|
4101
|
-
return /* @__PURE__ */ (0,
|
|
4102
|
-
/* @__PURE__ */ (0,
|
|
4103
|
-
/* @__PURE__ */ (0,
|
|
3745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_tooltip.Tooltip.Root, { openDelay: 400, positioning: position, children: [
|
|
3746
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_tooltip.Tooltip.Trigger, { className: styles.trigger, asChild, children }),
|
|
3747
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_tooltip.Tooltip.Positioner, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
4104
3748
|
import_tooltip.Tooltip.Content,
|
|
4105
3749
|
{
|
|
4106
3750
|
...nativeProps,
|
|
4107
|
-
className: (0,
|
|
3751
|
+
className: (0, import_css37.cx)(nativeProps.className, styles.content),
|
|
4108
3752
|
children: [
|
|
4109
|
-
/* @__PURE__ */ (0,
|
|
3753
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_tooltip.Tooltip.Arrow, { className: styles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_tooltip.Tooltip.ArrowTip, { className: styles.arrowTip }) }),
|
|
4110
3754
|
content
|
|
4111
3755
|
]
|
|
4112
3756
|
}
|
|
@@ -4114,51 +3758,344 @@ function Tooltip(props) {
|
|
|
4114
3758
|
] });
|
|
4115
3759
|
}
|
|
4116
3760
|
|
|
3761
|
+
// src/context/confirm-modal.tsx
|
|
3762
|
+
var import_react20 = require("react");
|
|
3763
|
+
var import_css38 = require("styled-system/css");
|
|
3764
|
+
var import_jsx7 = require("styled-system/jsx");
|
|
3765
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3766
|
+
var ConfirmModalContext = (0, import_react20.createContext)(null);
|
|
3767
|
+
function ConfirmModal(props) {
|
|
3768
|
+
const [open, setOpen] = (0, import_react20.useState)(false);
|
|
3769
|
+
const [content, setContent] = (0, import_react20.useState)(null);
|
|
3770
|
+
const resolveRef = (0, import_react20.useRef)(null);
|
|
3771
|
+
const kind = (content == null ? void 0 : content.kind) ?? "non-destructive";
|
|
3772
|
+
const { icons } = useCerberusContext();
|
|
3773
|
+
const { confirmModal: ConfirmIcon } = icons;
|
|
3774
|
+
const palette = (0, import_react20.useMemo)(
|
|
3775
|
+
() => kind === "destructive" ? "danger" : "action",
|
|
3776
|
+
[kind]
|
|
3777
|
+
);
|
|
3778
|
+
const handleChoice = (0, import_react20.useCallback)(
|
|
3779
|
+
(e) => {
|
|
3780
|
+
var _a, _b;
|
|
3781
|
+
const target = e.currentTarget;
|
|
3782
|
+
if (target.value === "true") {
|
|
3783
|
+
(_a = resolveRef.current) == null ? void 0 : _a.call(resolveRef, true);
|
|
3784
|
+
}
|
|
3785
|
+
(_b = resolveRef.current) == null ? void 0 : _b.call(resolveRef, false);
|
|
3786
|
+
setOpen(false);
|
|
3787
|
+
},
|
|
3788
|
+
[setOpen]
|
|
3789
|
+
);
|
|
3790
|
+
const handleShow = (0, import_react20.useCallback)(
|
|
3791
|
+
(options) => {
|
|
3792
|
+
return new Promise((resolve) => {
|
|
3793
|
+
setContent({ ...options });
|
|
3794
|
+
setOpen(true);
|
|
3795
|
+
resolveRef.current = resolve;
|
|
3796
|
+
});
|
|
3797
|
+
},
|
|
3798
|
+
[setOpen, setContent]
|
|
3799
|
+
);
|
|
3800
|
+
const value = (0, import_react20.useMemo)(
|
|
3801
|
+
() => ({
|
|
3802
|
+
show: handleShow
|
|
3803
|
+
}),
|
|
3804
|
+
[handleShow]
|
|
3805
|
+
);
|
|
3806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(ConfirmModalContext.Provider, { value, children: [
|
|
3807
|
+
props.children,
|
|
3808
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Dialog2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx7.VStack, { gap: "xl", w: "full", children: [
|
|
3809
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx7.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
|
|
3810
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3811
|
+
import_jsx7.HStack,
|
|
3812
|
+
{
|
|
3813
|
+
alignSelf: "center",
|
|
3814
|
+
justify: "center",
|
|
3815
|
+
paddingBlockEnd: "md",
|
|
3816
|
+
w: "full",
|
|
3817
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3818
|
+
Show,
|
|
3819
|
+
{
|
|
3820
|
+
when: palette === "danger",
|
|
3821
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3822
|
+
Avatar2,
|
|
3823
|
+
{
|
|
3824
|
+
gradient: "charon-light",
|
|
3825
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ConfirmIcon, { size: 24 })
|
|
3826
|
+
}
|
|
3827
|
+
),
|
|
3828
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3829
|
+
Avatar2,
|
|
3830
|
+
{
|
|
3831
|
+
gradient: "hades-dark",
|
|
3832
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ConfirmIcon, { size: 24 })
|
|
3833
|
+
}
|
|
3834
|
+
)
|
|
3835
|
+
}
|
|
3836
|
+
)
|
|
3837
|
+
}
|
|
3838
|
+
),
|
|
3839
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
3840
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
3841
|
+
] }),
|
|
3842
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx7.HStack, { gap: "4", w: "full", children: [
|
|
3843
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3844
|
+
Button,
|
|
3845
|
+
{
|
|
3846
|
+
autoFocus: true,
|
|
3847
|
+
className: (0, import_css38.css)({
|
|
3848
|
+
w: "1/2"
|
|
3849
|
+
}),
|
|
3850
|
+
name: "confirm",
|
|
3851
|
+
onClick: handleChoice,
|
|
3852
|
+
palette,
|
|
3853
|
+
value: "true",
|
|
3854
|
+
children: content == null ? void 0 : content.actionText
|
|
3855
|
+
}
|
|
3856
|
+
),
|
|
3857
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3858
|
+
Button,
|
|
3859
|
+
{
|
|
3860
|
+
className: (0, import_css38.css)({
|
|
3861
|
+
w: "1/2"
|
|
3862
|
+
}),
|
|
3863
|
+
name: "cancel",
|
|
3864
|
+
onClick: handleChoice,
|
|
3865
|
+
usage: "outlined",
|
|
3866
|
+
value: "false",
|
|
3867
|
+
children: content == null ? void 0 : content.cancelText
|
|
3868
|
+
}
|
|
3869
|
+
) })
|
|
3870
|
+
] })
|
|
3871
|
+
] }) }) })
|
|
3872
|
+
] });
|
|
3873
|
+
}
|
|
3874
|
+
function useConfirmModal() {
|
|
3875
|
+
const context = (0, import_react20.useContext)(ConfirmModalContext);
|
|
3876
|
+
if (context === null) {
|
|
3877
|
+
throw new Error(
|
|
3878
|
+
"useConfirmModal must be used within a ConfirmModal Provider"
|
|
3879
|
+
);
|
|
3880
|
+
}
|
|
3881
|
+
return context;
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
// src/context/prompt-modal.tsx
|
|
3885
|
+
var import_react21 = require("react");
|
|
3886
|
+
var import_dialog4 = require("@ark-ui/react/dialog");
|
|
3887
|
+
var import_jsx8 = require("styled-system/jsx");
|
|
3888
|
+
var import_css39 = require("styled-system/css");
|
|
3889
|
+
var import_patterns5 = require("styled-system/patterns");
|
|
3890
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
3891
|
+
var PromptModalContext = (0, import_react21.createContext)(null);
|
|
3892
|
+
function PromptModal(props) {
|
|
3893
|
+
const resolveRef = (0, import_react21.useRef)(null);
|
|
3894
|
+
const [open, setOpen] = (0, import_react21.useState)(false);
|
|
3895
|
+
const [content, setContent] = (0, import_react21.useState)(null);
|
|
3896
|
+
const [inputValue, setInputValue] = (0, import_react21.useState)("");
|
|
3897
|
+
const { icons } = useCerberusContext();
|
|
3898
|
+
const { promptModal: PromptIcon } = icons;
|
|
3899
|
+
const isValid = (0, import_react21.useMemo)(
|
|
3900
|
+
() => inputValue === (content == null ? void 0 : content.key),
|
|
3901
|
+
[inputValue, content]
|
|
3902
|
+
);
|
|
3903
|
+
const palette = (0, import_react21.useMemo)(
|
|
3904
|
+
() => (content == null ? void 0 : content.kind) === "destructive" ? "danger" : "action",
|
|
3905
|
+
[content]
|
|
3906
|
+
);
|
|
3907
|
+
const handleChange = (0, import_react21.useCallback)(
|
|
3908
|
+
(e) => {
|
|
3909
|
+
setInputValue(e.currentTarget.value);
|
|
3910
|
+
},
|
|
3911
|
+
[content]
|
|
3912
|
+
);
|
|
3913
|
+
const handleChoice = (0, import_react21.useCallback)(
|
|
3914
|
+
(e) => {
|
|
3915
|
+
var _a;
|
|
3916
|
+
const target = e.currentTarget;
|
|
3917
|
+
if (target.value === "true") {
|
|
3918
|
+
(_a = resolveRef.current) == null ? void 0 : _a.call(resolveRef, inputValue);
|
|
3919
|
+
}
|
|
3920
|
+
setOpen(false);
|
|
3921
|
+
},
|
|
3922
|
+
[inputValue, setOpen]
|
|
3923
|
+
);
|
|
3924
|
+
const handleShow = (0, import_react21.useCallback)(
|
|
3925
|
+
(options) => {
|
|
3926
|
+
return new Promise((resolve) => {
|
|
3927
|
+
setContent({ ...options, kind: options.kind || "non-destructive" });
|
|
3928
|
+
setOpen(true);
|
|
3929
|
+
resolveRef.current = resolve;
|
|
3930
|
+
});
|
|
3931
|
+
},
|
|
3932
|
+
[setOpen]
|
|
3933
|
+
);
|
|
3934
|
+
const value = (0, import_react21.useMemo)(
|
|
3935
|
+
() => ({
|
|
3936
|
+
show: handleShow
|
|
3937
|
+
}),
|
|
3938
|
+
[handleShow]
|
|
3939
|
+
);
|
|
3940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(PromptModalContext.Provider, { value, children: [
|
|
3941
|
+
props.children,
|
|
3942
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DialogProvider, { open, onOpenChange: (e) => setOpen(e.open), children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dialog2, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx8.VStack, { gap: "xl", w: "full", children: [
|
|
3943
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx8.VStack, { alignItems: "flex-start", gap: "md", w: "full", children: [
|
|
3944
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3945
|
+
import_jsx8.HStack,
|
|
3946
|
+
{
|
|
3947
|
+
alignSelf: "center",
|
|
3948
|
+
justify: "center",
|
|
3949
|
+
paddingBlockEnd: "md",
|
|
3950
|
+
w: "full",
|
|
3951
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3952
|
+
Show,
|
|
3953
|
+
{
|
|
3954
|
+
when: palette === "danger",
|
|
3955
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3956
|
+
Avatar2,
|
|
3957
|
+
{
|
|
3958
|
+
gradient: "charon-light",
|
|
3959
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PromptIcon, { size: 24 })
|
|
3960
|
+
}
|
|
3961
|
+
),
|
|
3962
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3963
|
+
Avatar2,
|
|
3964
|
+
{
|
|
3965
|
+
gradient: "hades-dark",
|
|
3966
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PromptIcon, { size: 24 })
|
|
3967
|
+
}
|
|
3968
|
+
)
|
|
3969
|
+
}
|
|
3970
|
+
)
|
|
3971
|
+
}
|
|
3972
|
+
),
|
|
3973
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DialogHeading, { children: content == null ? void 0 : content.heading }),
|
|
3974
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DialogDescription, { children: content == null ? void 0 : content.description })
|
|
3975
|
+
] }),
|
|
3976
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3977
|
+
import_jsx8.VStack,
|
|
3978
|
+
{
|
|
3979
|
+
alignItems: "flex-start",
|
|
3980
|
+
marginBlockStart: "md",
|
|
3981
|
+
marginBlockEnd: "lg",
|
|
3982
|
+
w: "full",
|
|
3983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
3984
|
+
FieldRoot,
|
|
3985
|
+
{
|
|
3986
|
+
ids: {
|
|
3987
|
+
control: "confirm"
|
|
3988
|
+
},
|
|
3989
|
+
invalid: !isValid,
|
|
3990
|
+
children: [
|
|
3991
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
3992
|
+
FieldLabel,
|
|
3993
|
+
{
|
|
3994
|
+
className: (0, import_patterns5.hstack)({
|
|
3995
|
+
gap: "xs",
|
|
3996
|
+
justify: "flex-start !important",
|
|
3997
|
+
marginBlockEnd: "xs",
|
|
3998
|
+
textStyle: "label-md"
|
|
3999
|
+
}),
|
|
4000
|
+
children: [
|
|
4001
|
+
"Type",
|
|
4002
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Text, { as: "strong", textTransform: "uppercase", children: content == null ? void 0 : content.key }),
|
|
4003
|
+
"to confirm"
|
|
4004
|
+
]
|
|
4005
|
+
}
|
|
4006
|
+
),
|
|
4007
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Input, { name: "confirm", onChange: handleChange, type: "text" })
|
|
4008
|
+
]
|
|
4009
|
+
}
|
|
4010
|
+
)
|
|
4011
|
+
}
|
|
4012
|
+
),
|
|
4013
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx8.HStack, { gap: "md", justify: "stretch", w: "full", children: [
|
|
4014
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
4015
|
+
Button,
|
|
4016
|
+
{
|
|
4017
|
+
autoFocus: true,
|
|
4018
|
+
className: (0, import_css39.css)({
|
|
4019
|
+
w: "1/2"
|
|
4020
|
+
}),
|
|
4021
|
+
disabled: !isValid,
|
|
4022
|
+
name: "confirm",
|
|
4023
|
+
onClick: handleChoice,
|
|
4024
|
+
palette,
|
|
4025
|
+
value: "true",
|
|
4026
|
+
children: content == null ? void 0 : content.actionText
|
|
4027
|
+
}
|
|
4028
|
+
),
|
|
4029
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_dialog4.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
4030
|
+
Button,
|
|
4031
|
+
{
|
|
4032
|
+
className: (0, import_css39.css)({
|
|
4033
|
+
w: "1/2"
|
|
4034
|
+
}),
|
|
4035
|
+
name: "cancel",
|
|
4036
|
+
onClick: handleChoice,
|
|
4037
|
+
usage: "outlined",
|
|
4038
|
+
value: "false",
|
|
4039
|
+
children: content == null ? void 0 : content.cancelText
|
|
4040
|
+
}
|
|
4041
|
+
) })
|
|
4042
|
+
] })
|
|
4043
|
+
] }) }) })
|
|
4044
|
+
] });
|
|
4045
|
+
}
|
|
4046
|
+
function usePromptModal() {
|
|
4047
|
+
const context = (0, import_react21.useContext)(PromptModalContext);
|
|
4048
|
+
if (context === null) {
|
|
4049
|
+
throw new Error("usePromptModal must be used within a PromptModal Provider");
|
|
4050
|
+
}
|
|
4051
|
+
return context;
|
|
4052
|
+
}
|
|
4053
|
+
|
|
4117
4054
|
// src/context/theme.tsx
|
|
4118
|
-
var
|
|
4055
|
+
var import_react23 = require("react");
|
|
4119
4056
|
|
|
4120
4057
|
// src/hooks/useTheme.ts
|
|
4121
|
-
var
|
|
4058
|
+
var import_react22 = require("react");
|
|
4122
4059
|
var THEME_KEY = "cerberus-theme";
|
|
4123
4060
|
var MODE_KEY = "cerberus-mode";
|
|
4124
4061
|
function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options = {}) {
|
|
4125
4062
|
const { updateMode, updateTheme, cache } = options;
|
|
4126
|
-
const [theme, setTheme] = (0,
|
|
4127
|
-
const [colorMode, setColorMode] = (0,
|
|
4128
|
-
const handleThemeChange = (0,
|
|
4063
|
+
const [theme, setTheme] = (0, import_react22.useState)(defaultTheme);
|
|
4064
|
+
const [colorMode, setColorMode] = (0, import_react22.useState)(defaultColorMode);
|
|
4065
|
+
const handleThemeChange = (0, import_react22.useCallback)(
|
|
4129
4066
|
(newTheme) => {
|
|
4130
4067
|
setTheme(newTheme);
|
|
4131
4068
|
updateTheme == null ? void 0 : updateTheme(newTheme);
|
|
4132
4069
|
},
|
|
4133
4070
|
[updateTheme]
|
|
4134
4071
|
);
|
|
4135
|
-
const handleColorModeChange = (0,
|
|
4072
|
+
const handleColorModeChange = (0, import_react22.useCallback)(
|
|
4136
4073
|
(newMode) => {
|
|
4137
4074
|
setColorMode(newMode);
|
|
4138
4075
|
updateMode == null ? void 0 : updateMode(newMode);
|
|
4139
4076
|
},
|
|
4140
4077
|
[updateMode]
|
|
4141
4078
|
);
|
|
4142
|
-
(0,
|
|
4079
|
+
(0, import_react22.useLayoutEffect)(() => {
|
|
4143
4080
|
const theme2 = localStorage.getItem(THEME_KEY);
|
|
4144
4081
|
if (theme2) {
|
|
4145
4082
|
setTheme(theme2);
|
|
4146
4083
|
}
|
|
4147
4084
|
}, []);
|
|
4148
|
-
(0,
|
|
4085
|
+
(0, import_react22.useLayoutEffect)(() => {
|
|
4149
4086
|
const mode = localStorage.getItem(MODE_KEY);
|
|
4150
4087
|
if (mode) {
|
|
4151
4088
|
setColorMode(mode);
|
|
4152
4089
|
}
|
|
4153
4090
|
}, []);
|
|
4154
|
-
(0,
|
|
4091
|
+
(0, import_react22.useEffect)(() => {
|
|
4155
4092
|
const root = document.documentElement;
|
|
4156
4093
|
root.dataset.pandaTheme = theme;
|
|
4157
4094
|
if (cache) {
|
|
4158
4095
|
localStorage.setItem(THEME_KEY, theme);
|
|
4159
4096
|
}
|
|
4160
4097
|
}, [theme, cache]);
|
|
4161
|
-
(0,
|
|
4098
|
+
(0, import_react22.useEffect)(() => {
|
|
4162
4099
|
const root = document.documentElement;
|
|
4163
4100
|
if (colorMode === "system") {
|
|
4164
4101
|
root.dataset.colorMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
@@ -4169,7 +4106,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
|
|
|
4169
4106
|
localStorage.setItem(MODE_KEY, colorMode);
|
|
4170
4107
|
}
|
|
4171
4108
|
}, [colorMode, cache]);
|
|
4172
|
-
return (0,
|
|
4109
|
+
return (0, import_react22.useMemo)(
|
|
4173
4110
|
() => ({
|
|
4174
4111
|
theme,
|
|
4175
4112
|
mode: colorMode,
|
|
@@ -4182,7 +4119,7 @@ function useTheme(defaultTheme = "cerberus", defaultColorMode = "light", options
|
|
|
4182
4119
|
|
|
4183
4120
|
// src/context/theme.tsx
|
|
4184
4121
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
4185
|
-
var ThemeContext = (0,
|
|
4122
|
+
var ThemeContext = (0, import_react23.createContext)(
|
|
4186
4123
|
null
|
|
4187
4124
|
);
|
|
4188
4125
|
function ThemeProvider(props) {
|
|
@@ -4194,7 +4131,7 @@ function ThemeProvider(props) {
|
|
|
4194
4131
|
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ThemeContext.Provider, { value: state, children: props.children });
|
|
4195
4132
|
}
|
|
4196
4133
|
function useThemeContext() {
|
|
4197
|
-
const context = (0,
|
|
4134
|
+
const context = (0, import_react23.useContext)(ThemeContext);
|
|
4198
4135
|
if (!context) {
|
|
4199
4136
|
throw new Error("useThemeContext must be used within a ThemeProvider");
|
|
4200
4137
|
}
|
|
@@ -4202,20 +4139,20 @@ function useThemeContext() {
|
|
|
4202
4139
|
}
|
|
4203
4140
|
|
|
4204
4141
|
// src/hooks/useRootColors.ts
|
|
4205
|
-
var
|
|
4142
|
+
var import_react24 = require("react");
|
|
4206
4143
|
function useRootColors(colors = []) {
|
|
4207
|
-
const [state, dispatch] = (0,
|
|
4208
|
-
const handleRefetch = (0,
|
|
4144
|
+
const [state, dispatch] = (0, import_react24.useReducer)(rootColorsReducer, {});
|
|
4145
|
+
const handleRefetch = (0, import_react24.useCallback)(() => {
|
|
4209
4146
|
return new Promise((resolve) => {
|
|
4210
4147
|
dispatch(formatColors(colors));
|
|
4211
4148
|
resolve();
|
|
4212
4149
|
});
|
|
4213
4150
|
}, []);
|
|
4214
|
-
(0,
|
|
4151
|
+
(0, import_react24.useEffect)(() => {
|
|
4215
4152
|
if (Object.keys(state).length === colors.length) return;
|
|
4216
4153
|
dispatch(formatColors(colors));
|
|
4217
4154
|
}, [colors]);
|
|
4218
|
-
return (0,
|
|
4155
|
+
return (0, import_react24.useMemo)(
|
|
4219
4156
|
() => ({ colors: state, refetch: handleRefetch }),
|
|
4220
4157
|
[state, handleRefetch]
|
|
4221
4158
|
);
|
|
@@ -4263,7 +4200,7 @@ function trapFocus(modalRef) {
|
|
|
4263
4200
|
|
|
4264
4201
|
// src/config/icons/checkbox.icons.tsx
|
|
4265
4202
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
4266
|
-
function CheckmarkIcon(
|
|
4203
|
+
function CheckmarkIcon() {
|
|
4267
4204
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4268
4205
|
"svg",
|
|
4269
4206
|
{
|
|
@@ -4272,7 +4209,6 @@ function CheckmarkIcon(props) {
|
|
|
4272
4209
|
fill: "none",
|
|
4273
4210
|
role: "img",
|
|
4274
4211
|
viewBox: "0 0 24 24",
|
|
4275
|
-
...props,
|
|
4276
4212
|
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4277
4213
|
"path",
|
|
4278
4214
|
{
|
|
@@ -4283,7 +4219,7 @@ function CheckmarkIcon(props) {
|
|
|
4283
4219
|
}
|
|
4284
4220
|
);
|
|
4285
4221
|
}
|
|
4286
|
-
function IndeterminateIcon(
|
|
4222
|
+
function IndeterminateIcon() {
|
|
4287
4223
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4288
4224
|
"svg",
|
|
4289
4225
|
{
|
|
@@ -4292,7 +4228,6 @@ function IndeterminateIcon(props) {
|
|
|
4292
4228
|
role: "img",
|
|
4293
4229
|
fill: "none",
|
|
4294
4230
|
viewBox: "0 0 24 24",
|
|
4295
|
-
...props,
|
|
4296
4231
|
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { fill: "currentColor", d: "M4 11h16v2.667H4z" })
|
|
4297
4232
|
}
|
|
4298
4233
|
);
|
|
@@ -4549,10 +4484,6 @@ __reExport(index_exports, require("@dnd-kit/core"), module.exports);
|
|
|
4549
4484
|
MenuItemGroup,
|
|
4550
4485
|
MenuSeparator,
|
|
4551
4486
|
MenuTrigger,
|
|
4552
|
-
Modal,
|
|
4553
|
-
ModalDescription,
|
|
4554
|
-
ModalHeader,
|
|
4555
|
-
ModalHeading,
|
|
4556
4487
|
NavMenu,
|
|
4557
4488
|
NavMenuLink,
|
|
4558
4489
|
NavMenuList,
|
|
@@ -4666,7 +4597,6 @@ __reExport(index_exports, require("@dnd-kit/core"), module.exports);
|
|
|
4666
4597
|
useConfirmModal,
|
|
4667
4598
|
useDate,
|
|
4668
4599
|
useFeatureFlags,
|
|
4669
|
-
useModal,
|
|
4670
4600
|
useNavMenuContext,
|
|
4671
4601
|
useNotificationCenter,
|
|
4672
4602
|
usePromptModal,
|