@cerberus-design/react 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/legacy/_tsup-dts-rollup.d.cts +5680 -4852
- package/build/legacy/aria-helpers/nav-menu.aria.d.cts +2 -0
- package/build/legacy/aria-helpers/trap-focus.aria.d.cts +1 -0
- package/build/legacy/components/AnimatingUploadIcon.cjs +2 -2
- package/build/legacy/components/AnimatingUploadIcon.cjs.map +1 -1
- package/build/legacy/components/AnimatingUploadIcon.d.cts +2 -0
- package/build/legacy/components/CircularProgress.d.cts +2 -0
- package/build/legacy/components/Droppable.d.cts +2 -0
- package/build/legacy/components/FeatureFlag.d.cts +2 -0
- package/build/legacy/components/FileStatus.cjs +107 -142
- package/build/legacy/components/FileStatus.cjs.map +1 -1
- package/build/legacy/components/FileStatus.d.cts +6 -0
- package/build/legacy/components/FileUploader.cjs +80 -102
- package/build/legacy/components/FileUploader.cjs.map +1 -1
- package/build/legacy/components/FileUploader.d.cts +2 -0
- package/build/legacy/components/IconButton.cjs +2 -1
- package/build/legacy/components/IconButton.cjs.map +1 -1
- package/build/legacy/components/IconButton.d.cts +3 -0
- package/build/legacy/components/Menu.d.cts +7 -0
- package/build/legacy/components/Portal.d.cts +2 -0
- package/build/legacy/components/ProgressBar.cjs +3 -2
- package/build/legacy/components/ProgressBar.cjs.map +1 -1
- package/build/legacy/components/ProgressBar.d.cts +5 -0
- package/build/legacy/components/Show.d.cts +2 -0
- package/build/legacy/components/Spinner.d.cts +2 -0
- package/build/legacy/components/Tag.cjs +51 -30
- package/build/legacy/components/Tag.cjs.map +1 -1
- package/build/legacy/components/Tag.d.cts +4 -0
- package/build/legacy/components/Text.d.cts +4 -0
- package/build/legacy/components/Tooltip.d.cts +2 -0
- package/build/legacy/components/accordion/index.cjs +178 -0
- package/build/legacy/components/accordion/index.cjs.map +1 -0
- package/build/legacy/components/accordion/index.d.cts +9 -0
- package/build/legacy/components/accordion/item-group.cjs +166 -0
- package/build/legacy/components/accordion/item-group.cjs.map +1 -0
- package/build/legacy/components/accordion/item-group.d.cts +3 -0
- package/build/legacy/components/accordion/item-indicator.cjs +114 -0
- package/build/legacy/components/accordion/item-indicator.cjs.map +1 -0
- package/build/legacy/components/accordion/item-indicator.d.cts +1 -0
- package/build/legacy/components/accordion/parts.cjs +91 -0
- package/build/legacy/components/accordion/parts.cjs.map +1 -0
- package/build/legacy/components/accordion/parts.d.cts +1 -0
- package/build/legacy/components/{Accordion.cjs → accordion/primitives.cjs} +35 -32
- package/build/legacy/components/accordion/primitives.cjs.map +1 -0
- package/build/legacy/components/accordion/primitives.d.cts +5 -0
- package/build/legacy/components/admonition/admonition.cjs +238 -0
- package/build/legacy/components/admonition/admonition.cjs.map +1 -0
- package/build/legacy/components/admonition/admonition.d.cts +2 -0
- package/build/legacy/components/admonition/index.cjs +250 -0
- package/build/legacy/components/admonition/index.cjs.map +1 -0
- package/build/legacy/components/admonition/index.d.cts +8 -0
- package/build/legacy/components/admonition/match-avatar.cjs +155 -0
- package/build/legacy/components/admonition/match-avatar.cjs.map +1 -0
- package/build/legacy/components/admonition/match-avatar.d.cts +1 -0
- package/build/legacy/components/admonition/parts.cjs +88 -0
- package/build/legacy/components/admonition/parts.cjs.map +1 -0
- package/build/legacy/components/admonition/parts.d.cts +1 -0
- package/build/legacy/components/admonition/primitives.cjs +85 -0
- package/build/legacy/components/admonition/primitives.cjs.map +1 -0
- package/build/legacy/components/admonition/primitives.d.cts +5 -0
- package/build/legacy/components/avatar/avatar.cjs +120 -0
- package/build/legacy/components/avatar/avatar.cjs.map +1 -0
- package/build/legacy/components/avatar/avatar.d.cts +3 -0
- package/build/legacy/components/avatar/index.cjs +133 -0
- package/build/legacy/components/avatar/index.cjs.map +1 -0
- package/build/legacy/components/avatar/index.d.cts +8 -0
- package/build/legacy/components/avatar/parts.cjs +68 -0
- package/build/legacy/components/avatar/parts.cjs.map +1 -0
- package/build/legacy/components/avatar/parts.d.cts +1 -0
- package/build/legacy/components/avatar/primitives.cjs +63 -0
- package/build/legacy/components/avatar/primitives.cjs.map +1 -0
- package/build/legacy/components/avatar/primitives.d.cts +3 -0
- package/build/legacy/components/button/button.cjs +2 -1
- package/build/legacy/components/button/button.cjs.map +1 -1
- package/build/legacy/components/button/button.d.cts +3 -0
- package/build/legacy/components/button/index.cjs +2 -1
- package/build/legacy/components/button/index.cjs.map +1 -1
- package/build/legacy/components/button/index.d.cts +4 -0
- package/build/legacy/components/button/parts.cjs +2 -1
- package/build/legacy/components/button/parts.cjs.map +1 -1
- package/build/legacy/components/button/parts.d.cts +1 -0
- package/build/legacy/components/checkbox/checkbox-icon.d.cts +1 -0
- package/build/legacy/components/checkbox/checkbox.cjs.map +1 -1
- package/build/legacy/components/checkbox/checkbox.d.cts +2 -0
- package/build/legacy/components/checkbox/index.cjs.map +1 -1
- package/build/legacy/components/checkbox/index.d.cts +9 -0
- package/build/legacy/components/checkbox/parts.d.cts +1 -0
- package/build/legacy/components/checkbox/primitives.d.cts +6 -0
- package/build/legacy/components/combobox/combobox.cjs +224 -0
- package/build/legacy/components/combobox/combobox.cjs.map +1 -0
- package/build/legacy/components/combobox/combobox.d.cts +2 -0
- package/build/legacy/components/combobox/index.cjs +326 -0
- package/build/legacy/components/combobox/index.cjs.map +1 -0
- package/build/legacy/components/combobox/index.d.cts +24 -0
- package/build/legacy/components/combobox/item-group.cjs +178 -0
- package/build/legacy/components/combobox/item-group.cjs.map +1 -0
- package/build/legacy/components/combobox/item-group.d.cts +2 -0
- package/build/legacy/components/combobox/item.cjs +192 -0
- package/build/legacy/components/combobox/item.cjs.map +1 -0
- package/build/legacy/components/combobox/item.d.cts +1 -0
- package/build/legacy/components/combobox/parts.cjs +168 -0
- package/build/legacy/components/combobox/parts.cjs.map +1 -0
- package/build/legacy/components/combobox/parts.d.cts +1 -0
- package/build/legacy/components/combobox/primitives.cjs +182 -0
- package/build/legacy/components/combobox/primitives.cjs.map +1 -0
- package/build/legacy/components/combobox/primitives.d.cts +16 -0
- package/build/legacy/components/combobox/use-stateful-collection.cjs +72 -0
- package/build/legacy/components/combobox/use-stateful-collection.cjs.map +1 -0
- package/build/legacy/components/combobox/use-stateful-collection.d.cts +2 -0
- package/build/legacy/components/{Thead.cjs → cta-dialog/context.cjs} +10 -13
- package/build/legacy/components/cta-dialog/context.cjs.map +1 -0
- package/build/legacy/components/cta-dialog/context.d.cts +3 -0
- package/build/legacy/components/cta-dialog/index.cjs +446 -0
- package/build/legacy/components/cta-dialog/index.cjs.map +1 -0
- package/build/legacy/components/cta-dialog/index.d.cts +6 -0
- package/build/legacy/components/cta-dialog/provider.cjs +424 -0
- package/build/legacy/components/cta-dialog/provider.cjs.map +1 -0
- package/build/legacy/components/cta-dialog/provider.d.cts +2 -0
- package/build/legacy/components/cta-dialog/trigger-item.cjs +100 -0
- package/build/legacy/components/cta-dialog/trigger-item.cjs.map +1 -0
- package/build/legacy/components/cta-dialog/trigger-item.d.cts +2 -0
- package/build/legacy/components/{Td.cjs → cta-dialog/utils.cjs} +23 -24
- package/build/legacy/components/cta-dialog/utils.cjs.map +1 -0
- package/build/legacy/components/cta-dialog/utils.d.cts +4 -0
- package/build/legacy/components/date-picker/calendar.cjs +352 -0
- package/build/legacy/components/date-picker/calendar.cjs.map +1 -0
- package/build/legacy/components/date-picker/calendar.d.cts +1 -0
- package/build/legacy/components/date-picker/content.cjs +198 -0
- package/build/legacy/components/date-picker/content.cjs.map +1 -0
- package/build/legacy/components/date-picker/content.d.cts +1 -0
- package/build/legacy/components/date-picker/date-picker.cjs +201 -0
- package/build/legacy/components/date-picker/date-picker.cjs.map +1 -0
- package/build/legacy/components/date-picker/date-picker.d.cts +1 -0
- package/build/legacy/components/date-picker/day-view.cjs +314 -0
- package/build/legacy/components/date-picker/day-view.cjs.map +1 -0
- package/build/legacy/components/date-picker/day-view.d.cts +2 -0
- package/build/legacy/components/date-picker/index.cjs +481 -0
- package/build/legacy/components/date-picker/index.cjs.map +1 -0
- package/build/legacy/components/date-picker/index.d.cts +30 -0
- package/build/legacy/components/date-picker/input.cjs +247 -0
- package/build/legacy/components/date-picker/input.cjs.map +1 -0
- package/build/legacy/components/date-picker/input.d.cts +1 -0
- package/build/legacy/components/date-picker/month-view.cjs +289 -0
- package/build/legacy/components/date-picker/month-view.cjs.map +1 -0
- package/build/legacy/components/date-picker/month-view.d.cts +1 -0
- package/build/legacy/components/date-picker/parts.cjs +187 -0
- package/build/legacy/components/date-picker/parts.cjs.map +1 -0
- package/build/legacy/components/date-picker/parts.d.cts +1 -0
- package/build/legacy/components/date-picker/primitives.cjs +203 -0
- package/build/legacy/components/date-picker/primitives.cjs.map +1 -0
- package/build/legacy/components/date-picker/primitives.d.cts +24 -0
- package/build/legacy/components/date-picker/range-input.cjs +267 -0
- package/build/legacy/components/date-picker/range-input.cjs.map +1 -0
- package/build/legacy/components/date-picker/range-input.d.cts +2 -0
- package/build/legacy/components/date-picker/trigger.cjs +232 -0
- package/build/legacy/components/date-picker/trigger.cjs.map +1 -0
- package/build/legacy/components/date-picker/trigger.d.cts +1 -0
- package/build/legacy/components/date-picker/view-control-group.cjs +280 -0
- package/build/legacy/components/date-picker/view-control-group.cjs.map +1 -0
- package/build/legacy/components/date-picker/view-control-group.d.cts +1 -0
- package/build/legacy/components/date-picker/year-view.cjs +289 -0
- package/build/legacy/components/date-picker/year-view.cjs.map +1 -0
- package/build/legacy/components/date-picker/year-view.d.cts +1 -0
- package/build/legacy/components/deprecated/FieldMessage.d.cts +3 -0
- package/build/legacy/components/deprecated/FieldsetLabel.d.cts +2 -0
- package/build/legacy/components/deprecated/Label.d.cts +3 -0
- package/build/legacy/components/{Legend.cjs → deprecated/Legend.cjs} +3 -3
- package/build/legacy/components/deprecated/Legend.cjs.map +1 -0
- package/build/legacy/components/deprecated/Legend.d.cts +2 -0
- package/build/legacy/components/deprecated/Modal.d.cts +2 -0
- package/build/legacy/components/deprecated/ModalDescription.d.cts +2 -0
- package/build/legacy/components/deprecated/ModalHeader.d.cts +2 -0
- package/build/legacy/components/deprecated/ModalHeading.d.cts +2 -0
- package/build/legacy/components/deprecated/NavMenuLink.d.cts +2 -0
- package/build/legacy/components/deprecated/NavMenuList.d.cts +3 -0
- package/build/legacy/components/deprecated/NavMenuTrigger.d.cts +2 -0
- package/build/legacy/components/{Notification.cjs → deprecated/Notification.cjs} +2 -2
- package/build/legacy/components/deprecated/Notification.cjs.map +1 -0
- package/build/legacy/components/deprecated/Notification.d.cts +3 -0
- package/build/legacy/components/{NotificationDescription.cjs → deprecated/NotificationDescription.cjs} +1 -1
- package/build/legacy/components/deprecated/NotificationDescription.cjs.map +1 -0
- package/build/legacy/components/deprecated/NotificationDescription.d.cts +3 -0
- package/build/legacy/components/{NotificationHeading.cjs → deprecated/NotificationHeading.cjs} +1 -1
- package/build/legacy/components/deprecated/NotificationHeading.cjs.map +1 -0
- package/build/legacy/components/deprecated/NotificationHeading.d.cts +3 -0
- package/build/legacy/components/{Dialog.client.cjs → dialog/close-icon-trigger.cjs} +38 -29
- package/build/legacy/components/dialog/close-icon-trigger.cjs.map +1 -0
- package/build/legacy/components/dialog/close-icon-trigger.d.cts +1 -0
- package/build/legacy/components/dialog/dialog.cjs +80 -0
- package/build/legacy/components/dialog/dialog.cjs.map +1 -0
- package/build/legacy/components/dialog/dialog.d.cts +2 -0
- package/build/legacy/components/dialog/index.cjs +209 -0
- package/build/legacy/components/dialog/index.cjs.map +1 -0
- package/build/legacy/components/dialog/index.d.cts +13 -0
- package/build/legacy/components/dialog/parts.cjs +109 -0
- package/build/legacy/components/dialog/parts.cjs.map +1 -0
- package/build/legacy/components/dialog/parts.d.cts +1 -0
- package/build/legacy/components/dialog/primitives.cjs +112 -0
- package/build/legacy/components/dialog/primitives.cjs.map +1 -0
- package/build/legacy/components/dialog/primitives.d.cts +9 -0
- package/build/legacy/components/field/field.d.cts +2 -0
- package/build/legacy/components/field/index.d.cts +18 -0
- package/build/legacy/components/field/parts.d.cts +1 -0
- package/build/legacy/components/field/primitives.d.cts +11 -0
- package/build/legacy/components/field/start-indicator.d.cts +2 -0
- package/build/legacy/components/field/status-indicator.d.cts +2 -0
- package/build/legacy/components/fieldset/fieldset.d.cts +2 -0
- package/build/legacy/components/fieldset/index.d.cts +7 -0
- package/build/legacy/components/fieldset/parts.d.cts +1 -0
- package/build/legacy/components/fieldset/primitives.d.cts +4 -0
- package/build/legacy/components/for.cjs +3 -4
- package/build/legacy/components/for.cjs.map +1 -1
- package/build/legacy/components/for.d.cts +2 -0
- package/build/legacy/components/notifications/center.cjs +294 -0
- package/build/legacy/components/notifications/center.cjs.map +1 -0
- package/build/legacy/components/notifications/center.d.cts +3 -0
- package/build/legacy/components/notifications/close-trigger.cjs +104 -0
- package/build/legacy/components/notifications/close-trigger.cjs.map +1 -0
- package/build/legacy/components/notifications/close-trigger.d.cts +1 -0
- package/build/legacy/components/notifications/index.cjs +310 -0
- package/build/legacy/components/notifications/index.cjs.map +1 -0
- package/build/legacy/components/notifications/index.d.cts +12 -0
- package/build/legacy/components/notifications/match-icon.cjs +135 -0
- package/build/legacy/components/notifications/match-icon.cjs.map +1 -0
- package/build/legacy/components/notifications/match-icon.d.cts +1 -0
- package/build/legacy/components/notifications/parts.cjs +83 -0
- package/build/legacy/components/notifications/parts.cjs.map +1 -0
- package/build/legacy/components/notifications/parts.d.cts +1 -0
- package/build/legacy/components/notifications/primitives.cjs +83 -0
- package/build/legacy/components/notifications/primitives.cjs.map +1 -0
- package/build/legacy/components/notifications/primitives.d.cts +6 -0
- package/build/legacy/components/notifications/types.cjs +19 -0
- package/build/legacy/components/notifications/types.cjs.map +1 -0
- package/build/legacy/components/notifications/types.d.cts +2 -0
- package/build/legacy/components/radio/index.d.cts +11 -0
- package/build/legacy/components/radio/parts.d.cts +1 -0
- package/build/legacy/components/radio/primitives.d.cts +8 -0
- package/build/legacy/components/radio/radio.d.cts +2 -0
- package/build/legacy/components/rating/index.cjs +167 -0
- package/build/legacy/components/rating/index.cjs.map +1 -0
- package/build/legacy/components/rating/index.d.cts +12 -0
- package/build/legacy/components/rating/parts.cjs +98 -0
- package/build/legacy/components/rating/parts.cjs.map +1 -0
- package/build/legacy/components/rating/parts.d.cts +1 -0
- package/build/legacy/components/rating/primitives.cjs +97 -0
- package/build/legacy/components/rating/primitives.cjs.map +1 -0
- package/build/legacy/components/rating/primitives.d.cts +7 -0
- package/build/legacy/components/rating/rating.cjs +151 -0
- package/build/legacy/components/rating/rating.cjs.map +1 -0
- package/build/legacy/components/rating/rating.d.cts +2 -0
- package/build/legacy/components/select/index.cjs.map +1 -1
- package/build/legacy/components/select/index.d.cts +28 -0
- package/build/legacy/components/select/option-group.d.cts +2 -0
- package/build/legacy/components/select/parts.d.cts +1 -0
- package/build/legacy/components/select/primitives.d.cts +18 -0
- package/build/legacy/components/select/select.cjs.map +1 -1
- package/build/legacy/components/select/select.d.cts +7 -0
- package/build/legacy/components/switch/index.cjs.map +1 -1
- package/build/legacy/components/switch/index.d.cts +8 -0
- package/build/legacy/components/switch/parts.cjs.map +1 -1
- package/build/legacy/components/switch/parts.d.cts +1 -0
- package/build/legacy/components/switch/primitives.d.cts +5 -0
- package/build/legacy/components/switch/switch-indicator.d.cts +1 -0
- package/build/legacy/components/switch/switch.cjs.map +1 -1
- package/build/legacy/components/switch/switch.d.cts +2 -0
- package/build/legacy/components/table/index.cjs +228 -0
- package/build/legacy/components/table/index.cjs.map +1 -0
- package/build/legacy/components/table/index.d.cts +13 -0
- package/build/legacy/components/table/parts.cjs +174 -0
- package/build/legacy/components/table/parts.cjs.map +1 -0
- package/build/legacy/components/table/parts.d.cts +2 -0
- package/build/legacy/components/table/primitives.cjs +176 -0
- package/build/legacy/components/table/primitives.cjs.map +1 -0
- package/build/legacy/components/table/primitives.d.cts +10 -0
- package/build/legacy/components/table/table.cjs +192 -0
- package/build/legacy/components/table/table.cjs.map +1 -0
- package/build/legacy/components/table/table.d.cts +1 -0
- package/build/legacy/components/tabs/index.cjs +106 -0
- package/build/legacy/components/tabs/index.cjs.map +1 -0
- package/build/legacy/components/tabs/index.d.cts +8 -0
- package/build/legacy/components/tabs/parts.cjs +78 -0
- package/build/legacy/components/tabs/parts.cjs.map +1 -0
- package/build/legacy/components/tabs/parts.d.cts +2 -0
- package/build/legacy/components/tabs/primitives.cjs +75 -0
- package/build/legacy/components/tabs/primitives.cjs.map +1 -0
- package/build/legacy/components/tabs/primitives.d.cts +5 -0
- package/build/legacy/components/tabs/tabs.cjs +94 -0
- package/build/legacy/components/tabs/tabs.cjs.map +1 -0
- package/build/legacy/components/tabs/tabs.d.cts +1 -0
- package/build/legacy/components/toggle/index.d.cts +3 -0
- package/build/legacy/components/toggle/parts.d.cts +1 -0
- package/build/legacy/components/toggle/primitives.d.cts +2 -0
- package/build/legacy/config/defineIcons.cjs +2 -2
- package/build/legacy/config/defineIcons.cjs.map +1 -1
- package/build/legacy/config/defineIcons.d.cts +1 -0
- package/build/legacy/config/icons/checkbox.icons.d.cts +4 -0
- package/build/legacy/config/index.cjs +2 -2
- package/build/legacy/config/index.cjs.map +1 -1
- package/build/legacy/config/index.d.cts +5 -0
- package/build/legacy/config/types.d.cts +3 -0
- package/build/legacy/context/cerberus.d.cts +2 -0
- package/build/legacy/context/confirm-modal.cjs +162 -151
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.d.cts +9 -0
- package/build/legacy/context/feature-flags.d.cts +4 -0
- package/build/legacy/context/field.d.cts +3 -0
- package/build/legacy/context/navMenu.d.cts +5 -0
- package/build/legacy/context/notification-center/store.d.cts +5 -0
- package/build/legacy/context/notification-center/types.d.cts +6 -0
- package/build/legacy/context/notification-center.cjs +15 -20
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/notification-center.d.cts +5 -0
- package/build/legacy/context/prompt-modal.cjs +174 -164
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.d.cts +6 -0
- package/build/legacy/context/theme.d.cts +7 -0
- package/build/legacy/hooks/useDate.d.cts +8 -0
- package/build/legacy/hooks/useModal.d.cts +2 -0
- package/build/legacy/hooks/useRootColors.d.cts +2 -0
- package/build/legacy/hooks/useTheme.d.cts +4 -0
- package/build/legacy/hooks/useToggle.d.cts +3 -0
- package/build/legacy/index.cjs +2874 -2451
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +462 -0
- package/build/legacy/types.d.cts +1 -0
- package/build/legacy/utils/index.d.cts +4 -0
- package/build/legacy/utils/localStorage.d.cts +2 -0
- package/build/modern/_tsup-dts-rollup.d.ts +5680 -4852
- package/build/modern/aria-helpers/nav-menu.aria.d.ts +2 -0
- package/build/modern/aria-helpers/trap-focus.aria.d.ts +1 -0
- package/build/modern/chunk-2FRF57EU.js +41 -0
- package/build/modern/chunk-2FRF57EU.js.map +1 -0
- package/build/modern/chunk-2LP4KQYQ.js +44 -0
- package/build/modern/chunk-2LP4KQYQ.js.map +1 -0
- package/build/modern/chunk-4GFEWP76.js +49 -0
- package/build/modern/chunk-4GFEWP76.js.map +1 -0
- package/build/modern/chunk-4HUK7YNZ.js +38 -0
- package/build/modern/chunk-4HUK7YNZ.js.map +1 -0
- package/build/modern/chunk-4HVKAHBX.js +1 -0
- package/build/modern/chunk-4IXQNNAM.js +31 -0
- package/build/modern/chunk-4IXQNNAM.js.map +1 -0
- package/build/modern/chunk-4LSTU6WU.js +8 -0
- package/build/modern/chunk-4LSTU6WU.js.map +1 -0
- package/build/modern/chunk-5DY66QZD.js +41 -0
- package/build/modern/chunk-5DY66QZD.js.map +1 -0
- package/build/modern/chunk-6HOLE2JH.js +22 -0
- package/build/modern/chunk-6HOLE2JH.js.map +1 -0
- package/build/modern/chunk-6MNFE6U6.js +45 -0
- package/build/modern/chunk-6MNFE6U6.js.map +1 -0
- package/build/modern/chunk-7JHQVQPS.js +57 -0
- package/build/modern/chunk-7JHQVQPS.js.map +1 -0
- package/build/modern/chunk-7OYOT5LK.js +41 -0
- package/build/modern/chunk-7OYOT5LK.js.map +1 -0
- package/build/modern/chunk-A464YKEL.js +143 -0
- package/build/modern/chunk-A464YKEL.js.map +1 -0
- package/build/modern/chunk-BD4UH5GS.js +42 -0
- package/build/modern/chunk-BD4UH5GS.js.map +1 -0
- package/build/modern/chunk-BJJ4XAVO.js +18 -0
- package/build/modern/chunk-BJJ4XAVO.js.map +1 -0
- package/build/modern/{chunk-245SMQ45.js → chunk-CHSC2LEM.js} +4 -4
- package/build/modern/chunk-CPNKDKC2.js +64 -0
- package/build/modern/chunk-CPNKDKC2.js.map +1 -0
- package/build/modern/chunk-D7MAAGNA.js +158 -0
- package/build/modern/chunk-D7MAAGNA.js.map +1 -0
- package/build/modern/chunk-D7UIWAFO.js +84 -0
- package/build/modern/chunk-D7UIWAFO.js.map +1 -0
- package/build/modern/chunk-DC4F5ZK5.js +7 -0
- package/build/modern/chunk-DC4F5ZK5.js.map +1 -0
- package/build/modern/{chunk-RBNOEAWJ.js → chunk-DEXJQ6UI.js} +3 -3
- package/build/modern/chunk-DEXJQ6UI.js.map +1 -0
- package/build/modern/chunk-DJOYRUNT.js +1 -0
- package/build/modern/chunk-DXOKSZVQ.js +12 -0
- package/build/modern/chunk-DXOKSZVQ.js.map +1 -0
- package/build/modern/chunk-E7FVTKUT.js +20 -0
- package/build/modern/chunk-E7FVTKUT.js.map +1 -0
- package/build/modern/chunk-EH36PXVP.js +24 -0
- package/build/modern/chunk-EH36PXVP.js.map +1 -0
- package/build/modern/{chunk-RDRD6ACD.js → chunk-EUYI7C2E.js} +2 -2
- package/build/modern/chunk-EUYI7C2E.js.map +1 -0
- package/build/modern/chunk-FCRD3ZRZ.js +46 -0
- package/build/modern/chunk-FCRD3ZRZ.js.map +1 -0
- package/build/modern/chunk-FCSO6N2Y.js +27 -0
- package/build/modern/chunk-FCSO6N2Y.js.map +1 -0
- package/build/modern/chunk-FZ53535Q.js +18 -0
- package/build/modern/chunk-FZ53535Q.js.map +1 -0
- package/build/modern/chunk-GBCJKBWH.js +27 -0
- package/build/modern/chunk-GBCJKBWH.js.map +1 -0
- package/build/modern/chunk-GBHYDL2K.js +67 -0
- package/build/modern/chunk-GBHYDL2K.js.map +1 -0
- package/build/modern/{chunk-6BN3XKQF.js → chunk-GVU6L6CZ.js} +10 -10
- package/build/modern/chunk-GVU6L6CZ.js.map +1 -0
- package/build/modern/{chunk-ZDANBCM3.js → chunk-HB6MBJSG.js} +30 -39
- package/build/modern/chunk-HB6MBJSG.js.map +1 -0
- package/build/modern/chunk-HIC7Z23X.js +37 -0
- package/build/modern/chunk-HIC7Z23X.js.map +1 -0
- package/build/modern/{chunk-KQQPZJEI.js → chunk-HUN7VQBT.js} +1 -1
- package/build/modern/chunk-HUN7VQBT.js.map +1 -0
- package/build/modern/chunk-IKDXADLX.js +1 -0
- package/build/modern/chunk-IOLYX3SY.js +1 -0
- package/build/modern/{chunk-H54FR7IP.js → chunk-IP3O6AIC.js} +11 -13
- package/build/modern/chunk-IP3O6AIC.js.map +1 -0
- package/build/modern/{chunk-2BIHLH4V.js → chunk-JAAMD5EH.js} +2 -2
- package/build/modern/{chunk-OVHCXBBI.js → chunk-JOM5AAVW.js} +2 -2
- package/build/modern/chunk-JWF7FK7T.js +21 -0
- package/build/modern/chunk-JWF7FK7T.js.map +1 -0
- package/build/modern/chunk-K2TZB3I4.js +22 -0
- package/build/modern/chunk-K2TZB3I4.js.map +1 -0
- package/build/modern/chunk-KB52N3HJ.js +27 -0
- package/build/modern/chunk-KB52N3HJ.js.map +1 -0
- package/build/modern/{chunk-WZJ5UQNM.js → chunk-KJMCUYWV.js} +4 -3
- package/build/modern/chunk-KJMCUYWV.js.map +1 -0
- package/build/modern/chunk-KZDEDAIK.js +21 -0
- package/build/modern/chunk-KZDEDAIK.js.map +1 -0
- package/build/modern/chunk-LLZE2RBB.js +33 -0
- package/build/modern/chunk-LLZE2RBB.js.map +1 -0
- package/build/modern/chunk-M6WOFFOA.js +1 -0
- package/build/modern/{chunk-5SNLQZYP.js → chunk-M7T3MBFB.js} +2 -2
- package/build/modern/chunk-MH6CIBDU.js +22 -0
- package/build/modern/chunk-MH6CIBDU.js.map +1 -0
- package/build/modern/chunk-ML2IKLMJ.js +1 -0
- package/build/modern/{chunk-CMYD5KWA.js → chunk-MPS6BAJ2.js} +12 -14
- package/build/modern/chunk-MPS6BAJ2.js.map +1 -0
- package/build/modern/chunk-MR4DX76C.js +38 -0
- package/build/modern/chunk-MR4DX76C.js.map +1 -0
- package/build/modern/chunk-MV2AU6UV.js +1 -0
- package/build/modern/chunk-N4RPMT6J.js +35 -0
- package/build/modern/chunk-N4RPMT6J.js.map +1 -0
- package/build/modern/{chunk-Y4ZEJ2EF.js → chunk-NHBL7NNP.js} +4 -4
- package/build/modern/chunk-NHBL7NNP.js.map +1 -0
- package/build/modern/chunk-NOXZZHDH.js +27 -0
- package/build/modern/chunk-NOXZZHDH.js.map +1 -0
- package/build/modern/chunk-NR5XDIJ7.js +148 -0
- package/build/modern/chunk-NR5XDIJ7.js.map +1 -0
- package/build/modern/chunk-OS73F4SR.js +25 -0
- package/build/modern/chunk-OS73F4SR.js.map +1 -0
- package/build/modern/chunk-PLHYOCY3.js +23 -0
- package/build/modern/chunk-PLHYOCY3.js.map +1 -0
- package/build/modern/{chunk-MISIUX63.js → chunk-QD4TL3L6.js} +12 -13
- package/build/modern/chunk-QD4TL3L6.js.map +1 -0
- package/build/modern/chunk-QG4NDPST.js +20 -0
- package/build/modern/chunk-QG4NDPST.js.map +1 -0
- package/build/modern/{chunk-UXY3KCC3.js → chunk-QJ3CJ4CR.js} +2 -2
- package/build/modern/chunk-QJ3CJ4CR.js.map +1 -0
- package/build/modern/chunk-QQCB6JXW.js +36 -0
- package/build/modern/chunk-QQCB6JXW.js.map +1 -0
- package/build/modern/chunk-R2V75WU6.js +1 -0
- package/build/modern/{chunk-6KZVE4HC.js → chunk-RD2YPFRA.js} +3 -2
- package/build/modern/chunk-RD2YPFRA.js.map +1 -0
- package/build/modern/chunk-RKGFPKKK.js +59 -0
- package/build/modern/chunk-RKGFPKKK.js.map +1 -0
- package/build/modern/chunk-RQCJKDXU.js +21 -0
- package/build/modern/chunk-RQCJKDXU.js.map +1 -0
- package/build/modern/{chunk-APD6IX5R.js → chunk-SRNDDY5D.js} +3 -2
- package/build/modern/chunk-SRNDDY5D.js.map +1 -0
- package/build/modern/chunk-SYPAA5YF.js +17 -0
- package/build/modern/chunk-SYPAA5YF.js.map +1 -0
- package/build/modern/chunk-TEMFCS72.js +19 -0
- package/build/modern/chunk-TEMFCS72.js.map +1 -0
- package/build/modern/chunk-TNSIYRF7.js +47 -0
- package/build/modern/chunk-TNSIYRF7.js.map +1 -0
- package/build/modern/chunk-U3ISYEUF.js +1 -0
- package/build/modern/chunk-UR2NYAQC.js +1 -0
- package/build/modern/{chunk-SLHYBPJ5.js → chunk-V6LNXFJV.js} +2 -2
- package/build/modern/chunk-V6LNXFJV.js.map +1 -0
- package/build/modern/{chunk-ZFFW5ELD.js → chunk-VOYXV3US.js} +11 -13
- package/build/modern/chunk-VOYXV3US.js.map +1 -0
- package/build/modern/{chunk-IW3LIRDG.js → chunk-VV2G62UD.js} +3 -3
- package/build/modern/{chunk-IW3LIRDG.js.map → chunk-VV2G62UD.js.map} +1 -1
- package/build/modern/chunk-W47QEZD5.js +71 -0
- package/build/modern/chunk-W47QEZD5.js.map +1 -0
- package/build/modern/{chunk-7SU6FCTJ.js → chunk-WMRSNYYG.js} +3 -12
- package/build/modern/chunk-WMRSNYYG.js.map +1 -0
- package/build/modern/chunk-WVFEJCUN.js +59 -0
- package/build/modern/chunk-WVFEJCUN.js.map +1 -0
- package/build/modern/chunk-XBDEIBW2.js +21 -0
- package/build/modern/chunk-XBDEIBW2.js.map +1 -0
- package/build/modern/chunk-XBUXVNTY.js +22 -0
- package/build/modern/chunk-XBUXVNTY.js.map +1 -0
- package/build/modern/chunk-YUNLWTUB.js +21 -0
- package/build/modern/chunk-YUNLWTUB.js.map +1 -0
- package/build/modern/{chunk-P3SF56LT.js → chunk-Z5K4J4MS.js} +4 -4
- package/build/modern/chunk-Z5K4J4MS.js.map +1 -0
- package/build/modern/chunk-ZOSGUATV.js +1 -0
- package/build/modern/components/AnimatingUploadIcon.d.ts +2 -0
- package/build/modern/components/AnimatingUploadIcon.js +1 -1
- package/build/modern/components/CircularProgress.d.ts +2 -0
- package/build/modern/components/Droppable.d.ts +2 -0
- package/build/modern/components/FeatureFlag.d.ts +2 -0
- package/build/modern/components/FileStatus.d.ts +6 -0
- package/build/modern/components/FileStatus.js +7 -5
- package/build/modern/components/FileUploader.d.ts +2 -0
- package/build/modern/components/FileUploader.js +6 -2
- package/build/modern/components/IconButton.d.ts +3 -0
- package/build/modern/components/IconButton.js +1 -1
- package/build/modern/components/Menu.d.ts +7 -0
- package/build/modern/components/Portal.d.ts +2 -0
- package/build/modern/components/ProgressBar.d.ts +5 -0
- package/build/modern/components/ProgressBar.js +1 -1
- package/build/modern/components/Show.d.ts +2 -0
- package/build/modern/components/Spinner.d.ts +2 -0
- package/build/modern/components/Tag.d.ts +4 -0
- package/build/modern/components/Tag.js +2 -1
- package/build/modern/components/Text.d.ts +4 -0
- package/build/modern/components/Tooltip.d.ts +2 -0
- package/build/modern/components/accordion/index.d.ts +9 -0
- package/build/modern/components/accordion/index.js +31 -0
- package/build/modern/components/accordion/item-group.d.ts +3 -0
- package/build/modern/components/accordion/item-group.js +16 -0
- package/build/modern/components/accordion/item-indicator.d.ts +1 -0
- package/build/modern/components/accordion/item-indicator.js +11 -0
- package/build/modern/components/accordion/parts.d.ts +1 -0
- package/build/modern/components/accordion/parts.js +8 -0
- package/build/modern/components/accordion/primitives.d.ts +5 -0
- package/build/modern/components/accordion/primitives.js +15 -0
- package/build/modern/components/admonition/admonition.d.ts +2 -0
- package/build/modern/components/admonition/admonition.js +17 -0
- package/build/modern/components/admonition/index.d.ts +8 -0
- package/build/modern/components/admonition/index.js +32 -0
- package/build/modern/components/admonition/match-avatar.d.ts +1 -0
- package/build/modern/components/admonition/match-avatar.js +15 -0
- package/build/modern/components/admonition/parts.d.ts +1 -0
- package/build/modern/components/admonition/parts.js +8 -0
- package/build/modern/components/admonition/primitives.d.ts +5 -0
- package/build/modern/components/admonition/primitives.js +15 -0
- package/build/modern/components/avatar/avatar.d.ts +3 -0
- package/build/modern/components/avatar/avatar.js +12 -0
- package/build/modern/components/avatar/index.d.ts +8 -0
- package/build/modern/components/avatar/index.js +26 -0
- package/build/modern/components/avatar/index.js.map +1 -0
- package/build/modern/components/avatar/parts.d.ts +1 -0
- package/build/modern/components/avatar/parts.js +8 -0
- package/build/modern/components/avatar/parts.js.map +1 -0
- package/build/modern/components/avatar/primitives.d.ts +3 -0
- package/build/modern/components/avatar/primitives.js +11 -0
- package/build/modern/components/avatar/primitives.js.map +1 -0
- package/build/modern/components/button/button.d.ts +3 -0
- package/build/modern/components/button/button.js +1 -1
- package/build/modern/components/button/index.d.ts +4 -0
- package/build/modern/components/button/index.js +2 -2
- package/build/modern/components/button/parts.d.ts +1 -0
- package/build/modern/components/button/parts.js +2 -2
- package/build/modern/components/checkbox/checkbox-icon.d.ts +1 -0
- package/build/modern/components/checkbox/checkbox.d.ts +2 -0
- package/build/modern/components/checkbox/checkbox.js +2 -2
- package/build/modern/components/checkbox/index.d.ts +9 -0
- package/build/modern/components/checkbox/index.js +2 -2
- package/build/modern/components/checkbox/parts.d.ts +1 -0
- package/build/modern/components/checkbox/primitives.d.ts +6 -0
- package/build/modern/components/combobox/combobox.d.ts +2 -0
- package/build/modern/components/combobox/combobox.js +13 -0
- package/build/modern/components/combobox/combobox.js.map +1 -0
- package/build/modern/components/combobox/index.d.ts +24 -0
- package/build/modern/components/combobox/index.js +60 -0
- package/build/modern/components/combobox/index.js.map +1 -0
- package/build/modern/components/combobox/item-group.d.ts +2 -0
- package/build/modern/components/combobox/item-group.js +9 -0
- package/build/modern/components/combobox/item-group.js.map +1 -0
- package/build/modern/components/combobox/item.d.ts +1 -0
- package/build/modern/components/combobox/item.js +11 -0
- package/build/modern/components/combobox/item.js.map +1 -0
- package/build/modern/components/combobox/parts.d.ts +1 -0
- package/build/modern/components/combobox/parts.js +8 -0
- package/build/modern/components/combobox/parts.js.map +1 -0
- package/build/modern/components/combobox/primitives.d.ts +16 -0
- package/build/modern/components/combobox/primitives.js +35 -0
- package/build/modern/components/combobox/primitives.js.map +1 -0
- package/build/modern/components/combobox/use-stateful-collection.d.ts +2 -0
- package/build/modern/components/combobox/use-stateful-collection.js +9 -0
- package/build/modern/components/combobox/use-stateful-collection.js.map +1 -0
- package/build/modern/components/cta-dialog/context.d.ts +3 -0
- package/build/modern/components/cta-dialog/context.js +8 -0
- package/build/modern/components/cta-dialog/context.js.map +1 -0
- package/build/modern/components/cta-dialog/index.d.ts +6 -0
- package/build/modern/components/cta-dialog/index.js +33 -0
- package/build/modern/components/cta-dialog/index.js.map +1 -0
- package/build/modern/components/cta-dialog/provider.d.ts +2 -0
- package/build/modern/components/cta-dialog/provider.js +29 -0
- package/build/modern/components/cta-dialog/provider.js.map +1 -0
- package/build/modern/components/cta-dialog/trigger-item.d.ts +2 -0
- package/build/modern/components/cta-dialog/trigger-item.js +10 -0
- package/build/modern/components/cta-dialog/trigger-item.js.map +1 -0
- package/build/modern/components/cta-dialog/utils.d.ts +4 -0
- package/build/modern/components/cta-dialog/utils.js +7 -0
- package/build/modern/components/cta-dialog/utils.js.map +1 -0
- package/build/modern/components/date-picker/calendar.d.ts +1 -0
- package/build/modern/components/date-picker/calendar.js +20 -0
- package/build/modern/components/date-picker/calendar.js.map +1 -0
- package/build/modern/components/date-picker/content.d.ts +1 -0
- package/build/modern/components/date-picker/content.js +10 -0
- package/build/modern/components/date-picker/content.js.map +1 -0
- package/build/modern/components/date-picker/date-picker.d.ts +1 -0
- package/build/modern/components/date-picker/date-picker.js +9 -0
- package/build/modern/components/date-picker/date-picker.js.map +1 -0
- package/build/modern/components/date-picker/day-view.d.ts +2 -0
- package/build/modern/components/date-picker/day-view.js +16 -0
- package/build/modern/components/date-picker/day-view.js.map +1 -0
- package/build/modern/components/date-picker/index.d.ts +30 -0
- package/build/modern/components/date-picker/index.js +86 -0
- package/build/modern/components/date-picker/index.js.map +1 -0
- package/build/modern/components/date-picker/input.d.ts +1 -0
- package/build/modern/components/date-picker/input.js +12 -0
- package/build/modern/components/date-picker/input.js.map +1 -0
- package/build/modern/components/date-picker/month-view.d.ts +1 -0
- package/build/modern/components/date-picker/month-view.js +16 -0
- package/build/modern/components/date-picker/month-view.js.map +1 -0
- package/build/modern/components/date-picker/parts.d.ts +1 -0
- package/build/modern/components/date-picker/parts.js +8 -0
- package/build/modern/components/date-picker/parts.js.map +1 -0
- package/build/modern/components/date-picker/primitives.d.ts +24 -0
- package/build/modern/components/date-picker/primitives.js +53 -0
- package/build/modern/components/date-picker/primitives.js.map +1 -0
- package/build/modern/components/date-picker/range-input.d.ts +2 -0
- package/build/modern/components/date-picker/range-input.js +13 -0
- package/build/modern/components/date-picker/range-input.js.map +1 -0
- package/build/modern/components/date-picker/trigger.d.ts +1 -0
- package/build/modern/components/date-picker/trigger.js +12 -0
- package/build/modern/components/date-picker/trigger.js.map +1 -0
- package/build/modern/components/date-picker/view-control-group.d.ts +1 -0
- package/build/modern/components/date-picker/view-control-group.js +15 -0
- package/build/modern/components/date-picker/view-control-group.js.map +1 -0
- package/build/modern/components/date-picker/year-view.d.ts +1 -0
- package/build/modern/components/date-picker/year-view.js +16 -0
- package/build/modern/components/date-picker/year-view.js.map +1 -0
- package/build/modern/components/deprecated/FieldMessage.d.ts +3 -0
- package/build/modern/components/deprecated/FieldsetLabel.d.ts +2 -0
- package/build/modern/components/deprecated/Label.d.ts +3 -0
- package/build/modern/components/deprecated/Label.js +1 -1
- package/build/modern/components/deprecated/Legend.d.ts +2 -0
- package/build/modern/components/deprecated/Legend.js +9 -0
- package/build/modern/components/deprecated/Legend.js.map +1 -0
- package/build/modern/components/deprecated/Modal.d.ts +2 -0
- package/build/modern/components/deprecated/ModalDescription.d.ts +2 -0
- package/build/modern/components/deprecated/ModalHeader.d.ts +2 -0
- package/build/modern/components/deprecated/ModalHeading.d.ts +2 -0
- package/build/modern/components/deprecated/NavMenuLink.d.ts +2 -0
- package/build/modern/components/deprecated/NavMenuList.d.ts +3 -0
- package/build/modern/components/deprecated/NavMenuTrigger.d.ts +2 -0
- package/build/modern/components/deprecated/NavMenuTrigger.js +2 -2
- package/build/modern/components/deprecated/Notification.d.ts +3 -0
- package/build/modern/components/deprecated/Notification.js +10 -0
- package/build/modern/components/deprecated/Notification.js.map +1 -0
- package/build/modern/components/deprecated/NotificationDescription.d.ts +3 -0
- package/build/modern/components/deprecated/NotificationDescription.js +7 -0
- package/build/modern/components/deprecated/NotificationDescription.js.map +1 -0
- package/build/modern/components/deprecated/NotificationHeading.d.ts +3 -0
- package/build/modern/components/deprecated/NotificationHeading.js +7 -0
- package/build/modern/components/deprecated/NotificationHeading.js.map +1 -0
- package/build/modern/components/dialog/close-icon-trigger.d.ts +1 -0
- package/build/modern/components/dialog/close-icon-trigger.js +11 -0
- package/build/modern/components/dialog/close-icon-trigger.js.map +1 -0
- package/build/modern/components/dialog/dialog.d.ts +2 -0
- package/build/modern/components/dialog/dialog.js +9 -0
- package/build/modern/components/dialog/dialog.js.map +1 -0
- package/build/modern/components/dialog/index.d.ts +13 -0
- package/build/modern/components/dialog/index.js +39 -0
- package/build/modern/components/dialog/index.js.map +1 -0
- package/build/modern/components/dialog/parts.d.ts +1 -0
- package/build/modern/components/dialog/parts.js +8 -0
- package/build/modern/components/dialog/parts.js.map +1 -0
- package/build/modern/components/dialog/primitives.d.ts +9 -0
- package/build/modern/components/{Dialog.js → dialog/primitives.js} +4 -5
- package/build/modern/components/dialog/primitives.js.map +1 -0
- package/build/modern/components/field/field.d.ts +2 -0
- package/build/modern/components/field/field.js +1 -1
- package/build/modern/components/field/index.d.ts +18 -0
- package/build/modern/components/field/index.js +1 -1
- package/build/modern/components/field/parts.d.ts +1 -0
- package/build/modern/components/field/primitives.d.ts +11 -0
- package/build/modern/components/field/start-indicator.d.ts +2 -0
- package/build/modern/components/field/status-indicator.d.ts +2 -0
- package/build/modern/components/fieldset/fieldset.d.ts +2 -0
- package/build/modern/components/fieldset/index.d.ts +7 -0
- package/build/modern/components/fieldset/parts.d.ts +1 -0
- package/build/modern/components/fieldset/primitives.d.ts +4 -0
- package/build/modern/components/for.d.ts +2 -0
- package/build/modern/components/for.js +1 -1
- package/build/modern/components/notifications/center.d.ts +3 -0
- package/build/modern/components/notifications/center.js +20 -0
- package/build/modern/components/notifications/center.js.map +1 -0
- package/build/modern/components/notifications/close-trigger.d.ts +1 -0
- package/build/modern/components/notifications/close-trigger.js +11 -0
- package/build/modern/components/notifications/close-trigger.js.map +1 -0
- package/build/modern/components/notifications/index.d.ts +12 -0
- package/build/modern/components/notifications/index.js +37 -0
- package/build/modern/components/notifications/index.js.map +1 -0
- package/build/modern/components/notifications/match-icon.d.ts +1 -0
- package/build/modern/components/notifications/match-icon.js +10 -0
- package/build/modern/components/notifications/match-icon.js.map +1 -0
- package/build/modern/components/notifications/parts.d.ts +1 -0
- package/build/modern/components/notifications/parts.js +8 -0
- package/build/modern/components/notifications/parts.js.map +1 -0
- package/build/modern/components/notifications/primitives.d.ts +6 -0
- package/build/modern/components/notifications/primitives.js +17 -0
- package/build/modern/components/notifications/primitives.js.map +1 -0
- package/build/modern/components/notifications/types.d.ts +2 -0
- package/build/modern/components/notifications/types.js +2 -0
- package/build/modern/components/notifications/types.js.map +1 -0
- package/build/modern/components/radio/index.d.ts +11 -0
- package/build/modern/components/radio/index.js +3 -3
- package/build/modern/components/radio/parts.d.ts +1 -0
- package/build/modern/components/radio/primitives.d.ts +8 -0
- package/build/modern/components/radio/radio.d.ts +2 -0
- package/build/modern/components/rating/index.d.ts +12 -0
- package/build/modern/components/rating/index.js +31 -0
- package/build/modern/components/rating/index.js.map +1 -0
- package/build/modern/components/rating/parts.d.ts +1 -0
- package/build/modern/components/rating/parts.js +8 -0
- package/build/modern/components/rating/parts.js.map +1 -0
- package/build/modern/components/rating/primitives.d.ts +7 -0
- package/build/modern/components/rating/primitives.js +19 -0
- package/build/modern/components/rating/primitives.js.map +1 -0
- package/build/modern/components/rating/rating.d.ts +2 -0
- package/build/modern/components/rating/rating.js +12 -0
- package/build/modern/components/rating/rating.js.map +1 -0
- package/build/modern/components/select/index.d.ts +28 -0
- package/build/modern/components/select/index.js +2 -2
- package/build/modern/components/select/option-group.d.ts +2 -0
- package/build/modern/components/select/parts.d.ts +1 -0
- package/build/modern/components/select/primitives.d.ts +18 -0
- package/build/modern/components/select/select.d.ts +7 -0
- package/build/modern/components/select/select.js +2 -2
- package/build/modern/components/switch/index.d.ts +8 -0
- package/build/modern/components/switch/index.js +2 -2
- package/build/modern/components/switch/parts.d.ts +1 -0
- package/build/modern/components/switch/parts.js +1 -1
- package/build/modern/components/switch/primitives.d.ts +5 -0
- package/build/modern/components/switch/switch-indicator.d.ts +1 -0
- package/build/modern/components/switch/switch.d.ts +2 -0
- package/build/modern/components/switch/switch.js +2 -2
- package/build/modern/components/table/index.d.ts +13 -0
- package/build/modern/components/table/index.js +35 -0
- package/build/modern/components/table/index.js.map +1 -0
- package/build/modern/components/table/parts.d.ts +2 -0
- package/build/modern/components/table/parts.js +8 -0
- package/build/modern/components/table/parts.js.map +1 -0
- package/build/modern/components/table/primitives.d.ts +10 -0
- package/build/modern/components/table/primitives.js +25 -0
- package/build/modern/components/table/primitives.js.map +1 -0
- package/build/modern/components/table/table.d.ts +1 -0
- package/build/modern/components/table/table.js +9 -0
- package/build/modern/components/table/table.js.map +1 -0
- package/build/modern/components/tabs/index.d.ts +8 -0
- package/build/modern/components/tabs/index.js +24 -0
- package/build/modern/components/tabs/index.js.map +1 -0
- package/build/modern/components/tabs/parts.d.ts +2 -0
- package/build/modern/components/tabs/parts.js +8 -0
- package/build/modern/components/tabs/parts.js.map +1 -0
- package/build/modern/components/tabs/primitives.d.ts +5 -0
- package/build/modern/components/tabs/primitives.js +15 -0
- package/build/modern/components/tabs/primitives.js.map +1 -0
- package/build/modern/components/tabs/tabs.d.ts +1 -0
- package/build/modern/components/tabs/tabs.js +9 -0
- package/build/modern/components/tabs/tabs.js.map +1 -0
- package/build/modern/components/toggle/index.d.ts +3 -0
- package/build/modern/components/toggle/parts.d.ts +1 -0
- package/build/modern/components/toggle/primitives.d.ts +2 -0
- package/build/modern/config/defineIcons.d.ts +1 -0
- package/build/modern/config/defineIcons.js +2 -2
- package/build/modern/config/icons/checkbox.icons.d.ts +4 -0
- package/build/modern/config/index.d.ts +5 -0
- package/build/modern/config/index.js +2 -2
- package/build/modern/config/types.d.ts +3 -0
- package/build/modern/context/cerberus.d.ts +2 -0
- package/build/modern/context/confirm-modal.d.ts +9 -0
- package/build/modern/context/confirm-modal.js +14 -5
- package/build/modern/context/feature-flags.d.ts +4 -0
- package/build/modern/context/field.d.ts +3 -0
- package/build/modern/context/navMenu.d.ts +5 -0
- package/build/modern/context/notification-center/store.d.ts +5 -0
- package/build/modern/context/notification-center/types.d.ts +6 -0
- package/build/modern/context/notification-center.d.ts +5 -0
- package/build/modern/context/notification-center.js +175 -12
- package/build/modern/context/notification-center.js.map +1 -1
- package/build/modern/context/prompt-modal.d.ts +6 -0
- package/build/modern/context/prompt-modal.js +13 -6
- package/build/modern/context/theme.d.ts +7 -0
- package/build/modern/hooks/useDate.d.ts +8 -0
- package/build/modern/hooks/useModal.d.ts +2 -0
- package/build/modern/hooks/useRootColors.d.ts +2 -0
- package/build/modern/hooks/useTheme.d.ts +4 -0
- package/build/modern/hooks/useToggle.d.ts +3 -0
- package/build/modern/index.d.ts +462 -0
- package/build/modern/index.js +456 -269
- package/build/modern/index.js.map +1 -1
- package/build/modern/types.d.ts +1 -0
- package/build/modern/utils/index.d.ts +4 -0
- package/build/modern/utils/localStorage.d.ts +2 -0
- package/package.json +38 -38
- package/src/components/AnimatingUploadIcon.tsx +2 -2
- package/src/components/FileStatus.tsx +2 -4
- package/src/components/FileUploader.tsx +2 -8
- package/src/components/IconButton.tsx +3 -4
- package/src/components/ProgressBar.tsx +5 -5
- package/src/components/Tag.tsx +16 -24
- package/src/components/accordion/index.ts +3 -0
- package/src/components/accordion/item-group.tsx +66 -0
- package/src/components/accordion/item-indicator.tsx +27 -0
- package/src/components/accordion/parts.ts +53 -0
- package/src/components/accordion/primitives.tsx +101 -0
- package/src/components/admonition/admonition.tsx +65 -0
- package/src/components/admonition/index.ts +3 -0
- package/src/components/admonition/match-avatar.tsx +52 -0
- package/src/components/admonition/parts.ts +53 -0
- package/src/components/admonition/primitives.tsx +73 -0
- package/src/components/avatar/avatar.tsx +55 -0
- package/src/components/avatar/index.ts +5 -0
- package/src/components/avatar/parts.ts +37 -0
- package/src/components/avatar/primitives.tsx +53 -0
- package/src/components/button/button.tsx +4 -4
- package/src/components/checkbox/checkbox.tsx +2 -2
- package/src/components/combobox/combobox.tsx +66 -0
- package/src/components/combobox/index.ts +6 -0
- package/src/components/combobox/item-group.tsx +19 -0
- package/src/components/combobox/item.tsx +30 -0
- package/src/components/combobox/parts.ts +101 -0
- package/src/components/combobox/primitives.tsx +209 -0
- package/src/components/combobox/use-stateful-collection.ts +65 -0
- package/src/components/cta-dialog/context.tsx +34 -0
- package/src/components/cta-dialog/index.ts +2 -0
- package/src/{context/cta-modal.tsx → components/cta-dialog/provider.tsx} +35 -71
- package/src/components/cta-dialog/trigger-item.tsx +53 -0
- package/src/components/cta-dialog/utils.ts +57 -0
- package/src/components/date-picker/calendar.tsx +34 -0
- package/src/components/date-picker/content.tsx +29 -0
- package/src/components/date-picker/date-picker.tsx +32 -0
- package/src/components/date-picker/day-view.tsx +82 -0
- package/src/components/date-picker/index.ts +6 -0
- package/src/components/date-picker/input.tsx +26 -0
- package/src/components/date-picker/month-view.tsx +51 -0
- package/src/components/date-picker/parts.ts +167 -0
- package/src/components/date-picker/primitives.tsx +232 -0
- package/src/components/date-picker/range-input.tsx +53 -0
- package/src/components/date-picker/trigger.tsx +28 -0
- package/src/components/date-picker/view-control-group.tsx +54 -0
- package/src/components/date-picker/year-view.tsx +49 -0
- package/src/components/{Legend.tsx → deprecated/Legend.tsx} +3 -34
- package/src/components/{Notification.tsx → deprecated/Notification.tsx} +3 -15
- package/src/components/{NotificationDescription.tsx → deprecated/NotificationDescription.tsx} +1 -4
- package/src/components/{NotificationHeading.tsx → deprecated/NotificationHeading.tsx} +1 -4
- package/src/components/{Dialog.client.tsx → dialog/close-icon-trigger.tsx} +11 -13
- package/src/components/dialog/dialog.tsx +41 -0
- package/src/components/dialog/index.ts +4 -0
- package/src/components/dialog/parts.ts +71 -0
- package/src/components/dialog/primitives.tsx +116 -0
- package/src/components/for.tsx +13 -18
- package/src/components/notifications/center.tsx +74 -0
- package/src/components/notifications/close-trigger.tsx +21 -0
- package/src/components/notifications/index.ts +4 -0
- package/src/components/notifications/match-icon.tsx +37 -0
- package/src/components/notifications/parts.ts +53 -0
- package/src/components/notifications/primitives.tsx +74 -0
- package/src/components/notifications/types.ts +32 -0
- package/src/components/rating/index.ts +8 -0
- package/src/components/rating/parts.tsx +65 -0
- package/src/components/rating/primitives.tsx +99 -0
- package/src/components/rating/rating.tsx +78 -0
- package/src/components/select/select.tsx +1 -0
- package/src/components/switch/parts.ts +3 -3
- package/src/components/table/index.ts +3 -0
- package/src/components/table/parts.ts +83 -0
- package/src/components/table/primitives.tsx +163 -0
- package/src/components/table/table.tsx +75 -0
- package/src/components/tabs/index.ts +3 -0
- package/src/components/tabs/parts.ts +53 -0
- package/src/components/tabs/primitives.tsx +70 -0
- package/src/components/tabs/tabs.tsx +48 -0
- package/src/context/confirm-modal.tsx +4 -8
- package/src/context/notification-center.tsx +9 -41
- package/src/context/prompt-modal.tsx +4 -8
- package/src/index.ts +14 -24
- package/build/legacy/components/Accordion.cjs.map +0 -1
- package/build/legacy/components/Accordion.client.cjs +0 -64
- package/build/legacy/components/Accordion.client.cjs.map +0 -1
- package/build/legacy/components/AccordionItemGroup.cjs +0 -142
- package/build/legacy/components/AccordionItemGroup.cjs.map +0 -1
- package/build/legacy/components/Admonition.cjs +0 -273
- package/build/legacy/components/Admonition.cjs.map +0 -1
- package/build/legacy/components/Admonition.client.cjs +0 -219
- package/build/legacy/components/Admonition.client.cjs.map +0 -1
- package/build/legacy/components/Avatar.cjs +0 -146
- package/build/legacy/components/Avatar.cjs.map +0 -1
- package/build/legacy/components/DatePicker.client.cjs +0 -341
- package/build/legacy/components/DatePicker.client.cjs.map +0 -1
- package/build/legacy/components/DatePicker.server.cjs +0 -111
- package/build/legacy/components/DatePicker.server.cjs.map +0 -1
- package/build/legacy/components/Dialog.cjs +0 -86
- package/build/legacy/components/Dialog.cjs.map +0 -1
- package/build/legacy/components/Dialog.client.cjs.map +0 -1
- package/build/legacy/components/Legend.cjs.map +0 -1
- package/build/legacy/components/Notification.cjs.map +0 -1
- package/build/legacy/components/NotificationDescription.cjs.map +0 -1
- package/build/legacy/components/NotificationHeading.cjs.map +0 -1
- package/build/legacy/components/Table.cjs +0 -53
- package/build/legacy/components/Table.cjs.map +0 -1
- package/build/legacy/components/Tabs.client.cjs +0 -104
- package/build/legacy/components/Tabs.client.cjs.map +0 -1
- package/build/legacy/components/Tbody.cjs +0 -48
- package/build/legacy/components/Tbody.cjs.map +0 -1
- package/build/legacy/components/Td.cjs.map +0 -1
- package/build/legacy/components/Th.cjs +0 -84
- package/build/legacy/components/Th.cjs.map +0 -1
- package/build/legacy/components/Thead.cjs.map +0 -1
- package/build/legacy/context/cta-modal.cjs +0 -374
- package/build/legacy/context/cta-modal.cjs.map +0 -1
- package/build/legacy/context/tabs.cjs +0 -107
- package/build/legacy/context/tabs.cjs.map +0 -1
- package/build/legacy/noExternals.d.cts +0 -1
- package/build/modern/chunk-2HOUQ2DX.js +0 -82
- package/build/modern/chunk-2HOUQ2DX.js.map +0 -1
- package/build/modern/chunk-3R4TIF2X.js +0 -24
- package/build/modern/chunk-3R4TIF2X.js.map +0 -1
- package/build/modern/chunk-5EWCH7AI.js +0 -82
- package/build/modern/chunk-5EWCH7AI.js.map +0 -1
- package/build/modern/chunk-6BN3XKQF.js.map +0 -1
- package/build/modern/chunk-6KZVE4HC.js.map +0 -1
- package/build/modern/chunk-7SU6FCTJ.js.map +0 -1
- package/build/modern/chunk-APD6IX5R.js.map +0 -1
- package/build/modern/chunk-AZRFYQO7.js +0 -60
- package/build/modern/chunk-AZRFYQO7.js.map +0 -1
- package/build/modern/chunk-B4CVET74.js +0 -28
- package/build/modern/chunk-B4CVET74.js.map +0 -1
- package/build/modern/chunk-CMYD5KWA.js.map +0 -1
- package/build/modern/chunk-DXBZ3HMY.js +0 -68
- package/build/modern/chunk-DXBZ3HMY.js.map +0 -1
- package/build/modern/chunk-FMRWRVUS.js +0 -180
- package/build/modern/chunk-FMRWRVUS.js.map +0 -1
- package/build/modern/chunk-H54FR7IP.js.map +0 -1
- package/build/modern/chunk-IIH363FO.js +0 -13
- package/build/modern/chunk-IIH363FO.js.map +0 -1
- package/build/modern/chunk-KQQPZJEI.js.map +0 -1
- package/build/modern/chunk-MISIUX63.js.map +0 -1
- package/build/modern/chunk-N7O6D7BW.js +0 -63
- package/build/modern/chunk-N7O6D7BW.js.map +0 -1
- package/build/modern/chunk-P3SF56LT.js.map +0 -1
- package/build/modern/chunk-RBNOEAWJ.js.map +0 -1
- package/build/modern/chunk-RDRD6ACD.js.map +0 -1
- package/build/modern/chunk-RHCTPSKT.js +0 -204
- package/build/modern/chunk-RHCTPSKT.js.map +0 -1
- package/build/modern/chunk-RZ7NG77U.js +0 -77
- package/build/modern/chunk-RZ7NG77U.js.map +0 -1
- package/build/modern/chunk-SGKHA4EB.js +0 -50
- package/build/modern/chunk-SGKHA4EB.js.map +0 -1
- package/build/modern/chunk-SLHYBPJ5.js.map +0 -1
- package/build/modern/chunk-SXLPDPOZ.js +0 -105
- package/build/modern/chunk-SXLPDPOZ.js.map +0 -1
- package/build/modern/chunk-TFL56AYR.js +0 -56
- package/build/modern/chunk-TFL56AYR.js.map +0 -1
- package/build/modern/chunk-UXY3KCC3.js.map +0 -1
- package/build/modern/chunk-WN7TJX6J.js +0 -41
- package/build/modern/chunk-WN7TJX6J.js.map +0 -1
- package/build/modern/chunk-WZJ5UQNM.js.map +0 -1
- package/build/modern/chunk-XZGXRRSQ.js +0 -31
- package/build/modern/chunk-XZGXRRSQ.js.map +0 -1
- package/build/modern/chunk-Y4ZEJ2EF.js.map +0 -1
- package/build/modern/chunk-Y6QQCRQV.js +0 -12
- package/build/modern/chunk-Y6QQCRQV.js.map +0 -1
- package/build/modern/chunk-ZDANBCM3.js.map +0 -1
- package/build/modern/chunk-ZFFW5ELD.js.map +0 -1
- package/build/modern/chunk-ZR37P4NZ.js +0 -24
- package/build/modern/chunk-ZR37P4NZ.js.map +0 -1
- package/build/modern/components/Accordion.client.js +0 -9
- package/build/modern/components/Accordion.js +0 -13
- package/build/modern/components/AccordionItemGroup.js +0 -11
- package/build/modern/components/Admonition.client.js +0 -11
- package/build/modern/components/Admonition.js +0 -15
- package/build/modern/components/Avatar.js +0 -10
- package/build/modern/components/DatePicker.client.js +0 -33
- package/build/modern/components/DatePicker.server.js +0 -21
- package/build/modern/components/Dialog.client.js +0 -10
- package/build/modern/components/Legend.js +0 -9
- package/build/modern/components/Notification.js +0 -10
- package/build/modern/components/NotificationDescription.js +0 -7
- package/build/modern/components/NotificationHeading.js +0 -7
- package/build/modern/components/Table.js +0 -9
- package/build/modern/components/Tabs.client.js +0 -18
- package/build/modern/components/Tbody.js +0 -7
- package/build/modern/components/Td.js +0 -7
- package/build/modern/components/Th.js +0 -9
- package/build/modern/components/Thead.js +0 -7
- package/build/modern/context/cta-modal.js +0 -19
- package/build/modern/context/tabs.js +0 -13
- package/build/modern/noExternals.d.ts +0 -1
- package/src/components/Accordion.client.tsx +0 -46
- package/src/components/Accordion.tsx +0 -125
- package/src/components/AccordionItemGroup.tsx +0 -79
- package/src/components/Admonition.client.tsx +0 -73
- package/src/components/Admonition.tsx +0 -117
- package/src/components/Avatar.tsx +0 -162
- package/src/components/DatePicker.client.tsx +0 -449
- package/src/components/DatePicker.server.tsx +0 -156
- package/src/components/Dialog.tsx +0 -165
- package/src/components/Table.tsx +0 -61
- package/src/components/Tabs.client.tsx +0 -113
- package/src/components/Tbody.tsx +0 -36
- package/src/components/Td.tsx +0 -34
- package/src/components/Th.tsx +0 -73
- package/src/components/Thead.tsx +0 -24
- package/src/context/tabs.tsx +0 -133
- /package/build/modern/{components/Accordion.client.js.map → chunk-4HVKAHBX.js.map} +0 -0
- /package/build/modern/{chunk-245SMQ45.js.map → chunk-CHSC2LEM.js.map} +0 -0
- /package/build/modern/{components/Accordion.js.map → chunk-DJOYRUNT.js.map} +0 -0
- /package/build/modern/{components/AccordionItemGroup.js.map → chunk-IKDXADLX.js.map} +0 -0
- /package/build/modern/{components/Admonition.client.js.map → chunk-IOLYX3SY.js.map} +0 -0
- /package/build/modern/{chunk-2BIHLH4V.js.map → chunk-JAAMD5EH.js.map} +0 -0
- /package/build/modern/{chunk-OVHCXBBI.js.map → chunk-JOM5AAVW.js.map} +0 -0
- /package/build/modern/{components/Admonition.js.map → chunk-M6WOFFOA.js.map} +0 -0
- /package/build/modern/{chunk-5SNLQZYP.js.map → chunk-M7T3MBFB.js.map} +0 -0
- /package/build/modern/{components/Avatar.js.map → chunk-ML2IKLMJ.js.map} +0 -0
- /package/build/modern/{components/DatePicker.client.js.map → chunk-MV2AU6UV.js.map} +0 -0
- /package/build/modern/{components/DatePicker.server.js.map → chunk-R2V75WU6.js.map} +0 -0
- /package/build/modern/{components/Dialog.client.js.map → chunk-U3ISYEUF.js.map} +0 -0
- /package/build/modern/{components/Dialog.js.map → chunk-UR2NYAQC.js.map} +0 -0
- /package/build/modern/{components/Legend.js.map → chunk-ZOSGUATV.js.map} +0 -0
- /package/build/modern/components/{Notification.js.map → accordion/index.js.map} +0 -0
- /package/build/modern/components/{NotificationDescription.js.map → accordion/item-group.js.map} +0 -0
- /package/build/modern/components/{NotificationHeading.js.map → accordion/item-indicator.js.map} +0 -0
- /package/build/modern/components/{Table.js.map → accordion/parts.js.map} +0 -0
- /package/build/modern/components/{Tabs.client.js.map → accordion/primitives.js.map} +0 -0
- /package/build/modern/components/{Tbody.js.map → admonition/admonition.js.map} +0 -0
- /package/build/modern/components/{Td.js.map → admonition/index.js.map} +0 -0
- /package/build/modern/components/{Th.js.map → admonition/match-avatar.js.map} +0 -0
- /package/build/modern/components/{Thead.js.map → admonition/parts.js.map} +0 -0
- /package/build/modern/{context/cta-modal.js.map → components/admonition/primitives.js.map} +0 -0
- /package/build/modern/{context/tabs.js.map → components/avatar/avatar.js.map} +0 -0
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/components/DatePicker.client.tsx
|
|
22
|
-
var DatePicker_client_exports = {};
|
|
23
|
-
__export(DatePicker_client_exports, {
|
|
24
|
-
DatePicker: () => DatePicker,
|
|
25
|
-
DatePickerCalendar: () => DatePickerCalendar,
|
|
26
|
-
DatePickerContent: () => DatePickerContent,
|
|
27
|
-
DatePickerDayView: () => DatePickerDayView,
|
|
28
|
-
DatePickerInput: () => DatePickerInput,
|
|
29
|
-
DatePickerMonthView: () => DatePickerMonthView,
|
|
30
|
-
DatePickerTrigger: () => DatePickerTrigger,
|
|
31
|
-
DatePickerViewControlGroup: () => DatePickerViewControlGroup,
|
|
32
|
-
DatePickerYearView: () => DatePickerYearView,
|
|
33
|
-
RangePickerInput: () => RangePickerInput
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(DatePicker_client_exports);
|
|
36
|
-
var import_react5 = require("@ark-ui/react");
|
|
37
|
-
|
|
38
|
-
// src/components/Portal.tsx
|
|
39
|
-
var import_react = require("@ark-ui/react");
|
|
40
|
-
var Portal = import_react.Portal;
|
|
41
|
-
|
|
42
|
-
// src/components/DatePicker.client.tsx
|
|
43
|
-
var import_recipes4 = require("@cerberus/styled-system/recipes");
|
|
44
|
-
var import_css4 = require("@cerberus/styled-system/css");
|
|
45
|
-
|
|
46
|
-
// src/components/DatePicker.server.tsx
|
|
47
|
-
var import_react2 = require("@ark-ui/react");
|
|
48
|
-
var import_css = require("@cerberus/styled-system/css");
|
|
49
|
-
var import_recipes = require("@cerberus/styled-system/recipes");
|
|
50
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
|
-
var datePickerStyles = (0, import_recipes.datePicker)();
|
|
52
|
-
function DatePickerViewControl(props) {
|
|
53
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
-
import_react2.DatePicker.Control,
|
|
55
|
-
{
|
|
56
|
-
...props,
|
|
57
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.viewControl)
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
function DatePickerTable(props) {
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
|
-
import_react2.DatePicker.Table,
|
|
64
|
-
{
|
|
65
|
-
...props,
|
|
66
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.table)
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
function DatePickerTableHeader(props) {
|
|
71
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
-
import_react2.DatePicker.TableHeader,
|
|
73
|
-
{
|
|
74
|
-
...props,
|
|
75
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.tableHeader)
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
function DatePickerTableCell(props) {
|
|
80
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
81
|
-
import_react2.DatePicker.TableCell,
|
|
82
|
-
{
|
|
83
|
-
...props,
|
|
84
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.tableCell)
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
function DatePickerTableCellTrigger(props) {
|
|
89
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
90
|
-
import_react2.DatePicker.TableCellTrigger,
|
|
91
|
-
{
|
|
92
|
-
...props,
|
|
93
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.tableCellTrigger)
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
var DatePickerView = import_react2.DatePicker.View;
|
|
98
|
-
var DatePickerContext = import_react2.DatePicker.Context;
|
|
99
|
-
|
|
100
|
-
// src/components/IconButton.tsx
|
|
101
|
-
var import_css2 = require("@cerberus/styled-system/css");
|
|
102
|
-
var import_recipes2 = require("@cerberus/styled-system/recipes");
|
|
103
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
104
|
-
function IconButton(props) {
|
|
105
|
-
const { ariaLabel, palette, usage, size, ...nativeProps } = props;
|
|
106
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
107
|
-
"button",
|
|
108
|
-
{
|
|
109
|
-
...nativeProps,
|
|
110
|
-
"aria-label": ariaLabel ?? "Icon Button",
|
|
111
|
-
className: (0, import_css2.cx)(
|
|
112
|
-
nativeProps.className,
|
|
113
|
-
(0, import_recipes2.iconButton)({
|
|
114
|
-
palette,
|
|
115
|
-
usage,
|
|
116
|
-
size
|
|
117
|
-
})
|
|
118
|
-
)
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// src/components/button/button.tsx
|
|
124
|
-
var import_react3 = require("react");
|
|
125
|
-
var import_css3 = require("@cerberus/styled-system/css");
|
|
126
|
-
var import_recipes3 = require("@cerberus/styled-system/recipes");
|
|
127
|
-
var import_jsx = require("@cerberus/styled-system/jsx");
|
|
128
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
129
|
-
var ButtonContext = (0, import_react3.createContext)({
|
|
130
|
-
pending: false
|
|
131
|
-
});
|
|
132
|
-
function Button(props) {
|
|
133
|
-
const { palette, usage, shape, size, pending = false, ...nativeProps } = props;
|
|
134
|
-
const value = (0, import_react3.useMemo)(() => ({ pending }), [pending]);
|
|
135
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
136
|
-
"button",
|
|
137
|
-
{
|
|
138
|
-
...nativeProps,
|
|
139
|
-
disabled: pending || nativeProps.disabled,
|
|
140
|
-
className: (0, import_css3.cx)(
|
|
141
|
-
nativeProps.className,
|
|
142
|
-
(0, import_recipes3.button)({
|
|
143
|
-
palette,
|
|
144
|
-
usage,
|
|
145
|
-
shape,
|
|
146
|
-
size
|
|
147
|
-
})
|
|
148
|
-
)
|
|
149
|
-
}
|
|
150
|
-
) });
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// src/context/cerberus.tsx
|
|
154
|
-
var import_react4 = require("react");
|
|
155
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
156
|
-
var CerberusContext = (0, import_react4.createContext)(null);
|
|
157
|
-
function useCerberusContext() {
|
|
158
|
-
const context = (0, import_react4.useContext)(CerberusContext);
|
|
159
|
-
if (!context) {
|
|
160
|
-
throw new Error("useCerberus must be used within a CerberusProvider");
|
|
161
|
-
}
|
|
162
|
-
return context;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// src/components/DatePicker.client.tsx
|
|
166
|
-
var import_react6 = require("react");
|
|
167
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
168
|
-
var datePickerStyles2 = (0, import_recipes4.datePicker)();
|
|
169
|
-
function DatePicker(props) {
|
|
170
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
171
|
-
import_react5.DatePicker.Root,
|
|
172
|
-
{
|
|
173
|
-
...props,
|
|
174
|
-
positioning: {
|
|
175
|
-
placement: "bottom-start"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
function DatePickerViewControlGroup(props) {
|
|
181
|
-
const { icons } = useCerberusContext();
|
|
182
|
-
const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons;
|
|
183
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(DatePickerViewControl, { ...props, children: [
|
|
184
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.PrevTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconButton, { ariaLabel: "Previous", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PrevIcon, {}) }) }),
|
|
185
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.ViewTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
186
|
-
Button,
|
|
187
|
-
{
|
|
188
|
-
className: (0, import_css4.css)({
|
|
189
|
-
h: "2rem",
|
|
190
|
-
paddingInline: "md"
|
|
191
|
-
}),
|
|
192
|
-
shape: "rounded",
|
|
193
|
-
size: "sm",
|
|
194
|
-
usage: "ghost",
|
|
195
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.RangeText, {})
|
|
196
|
-
}
|
|
197
|
-
) }),
|
|
198
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.NextTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconButton, { ariaLabel: "Next", size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(NextIcon, {}) }) })
|
|
199
|
-
] });
|
|
200
|
-
}
|
|
201
|
-
function DatePickerTrigger(props) {
|
|
202
|
-
const { icons } = useCerberusContext();
|
|
203
|
-
const { calendar: CalendarIcon } = icons;
|
|
204
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
205
|
-
import_react5.DatePicker.Trigger,
|
|
206
|
-
{
|
|
207
|
-
...props,
|
|
208
|
-
className: (0, import_css4.cx)(
|
|
209
|
-
props.className,
|
|
210
|
-
(0, import_recipes4.iconButton)({
|
|
211
|
-
size: "sm",
|
|
212
|
-
usage: "ghost"
|
|
213
|
-
}),
|
|
214
|
-
datePickerStyles2.trigger
|
|
215
|
-
),
|
|
216
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CalendarIcon, {})
|
|
217
|
-
}
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
function DatePickerInput(props) {
|
|
221
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react5.DatePicker.Control, { className: datePickerStyles2.control, children: [
|
|
222
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTrigger, {}),
|
|
223
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
224
|
-
import_react5.DatePicker.Input,
|
|
225
|
-
{
|
|
226
|
-
...props,
|
|
227
|
-
className: (0, import_css4.cx)(props.className, datePickerStyles2.input),
|
|
228
|
-
placeholder: props.placeholder ?? "DD MMM YYYY",
|
|
229
|
-
maxLength: 11
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
] });
|
|
233
|
-
}
|
|
234
|
-
function RangePickerInput(props) {
|
|
235
|
-
const { defaultValue, ...nativeProps } = props;
|
|
236
|
-
const startDate = (0, import_react6.useMemo)(() => defaultValue == null ? void 0 : defaultValue[0], [defaultValue]);
|
|
237
|
-
const endDate = (0, import_react6.useMemo)(() => defaultValue == null ? void 0 : defaultValue[1], [defaultValue]);
|
|
238
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react5.DatePicker.Control, { "data-range": true, className: datePickerStyles2.control, children: [
|
|
239
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTrigger, {}),
|
|
240
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
241
|
-
import_react5.DatePicker.Input,
|
|
242
|
-
{
|
|
243
|
-
...nativeProps,
|
|
244
|
-
"data-range-input": true,
|
|
245
|
-
defaultValue: startDate,
|
|
246
|
-
className: (0, import_css4.cx)(props.className, datePickerStyles2.input),
|
|
247
|
-
placeholder: props.placeholder ?? "DD MMM YYYY",
|
|
248
|
-
maxLength: 11,
|
|
249
|
-
index: 0
|
|
250
|
-
}
|
|
251
|
-
),
|
|
252
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
253
|
-
import_react5.DatePicker.Input,
|
|
254
|
-
{
|
|
255
|
-
...nativeProps,
|
|
256
|
-
"data-range-input": true,
|
|
257
|
-
defaultValue: endDate,
|
|
258
|
-
"data-range-end-input": true,
|
|
259
|
-
className: (0, import_css4.cx)(props.className, datePickerStyles2.input),
|
|
260
|
-
placeholder: props.placeholder ?? "DD MMM YYYY",
|
|
261
|
-
maxLength: 11,
|
|
262
|
-
index: 1
|
|
263
|
-
}
|
|
264
|
-
)
|
|
265
|
-
] });
|
|
266
|
-
}
|
|
267
|
-
function DatePickerContent(props) {
|
|
268
|
-
const { children, withModal, ...contentProps } = props;
|
|
269
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Portal, { disabled: withModal ?? false, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.Positioner, { className: datePickerStyles2.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
270
|
-
import_react5.DatePicker.Content,
|
|
271
|
-
{
|
|
272
|
-
...contentProps,
|
|
273
|
-
className: (0, import_css4.cx)(contentProps.className, datePickerStyles2.content),
|
|
274
|
-
children
|
|
275
|
-
}
|
|
276
|
-
) }) });
|
|
277
|
-
}
|
|
278
|
-
function DatePickerDayView(props) {
|
|
279
|
-
function isToday(date) {
|
|
280
|
-
const today = /* @__PURE__ */ new Date();
|
|
281
|
-
const formatted = today.toISOString().split("T")[0];
|
|
282
|
-
const arkDate = `${date.year}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
283
|
-
return formatted === arkDate;
|
|
284
|
-
}
|
|
285
|
-
function isPastDay(date) {
|
|
286
|
-
const today = /* @__PURE__ */ new Date();
|
|
287
|
-
const arkDate = `${date.year}-${String(date.month).padStart(2, "0")}-${String(date.day).padStart(2, "0")}`;
|
|
288
|
-
return new Date(arkDate) < today;
|
|
289
|
-
}
|
|
290
|
-
function getDayValue(date) {
|
|
291
|
-
if (isToday(date)) return "today";
|
|
292
|
-
if (isPastDay(date)) return "past";
|
|
293
|
-
return "future";
|
|
294
|
-
}
|
|
295
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerView, { ...props, view: "day", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerContext, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
296
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerViewControlGroup, {}),
|
|
297
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(DatePickerTable, { children: [
|
|
298
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableRow, { children: datePicker3.weekDays.map((weekDay, id) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTableHeader, { children: weekDay.narrow }, id)) }) }),
|
|
299
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableBody, { children: datePicker3.weeks.map((week, id) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTableCell, { value: day, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
300
|
-
DatePickerTableCellTrigger,
|
|
301
|
-
{
|
|
302
|
-
"data-date": getDayValue(day),
|
|
303
|
-
children: day.day
|
|
304
|
-
}
|
|
305
|
-
) }, id2)) }, id)) })
|
|
306
|
-
] })
|
|
307
|
-
] }) }) });
|
|
308
|
-
}
|
|
309
|
-
function DatePickerMonthView(props) {
|
|
310
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.View, { ...props, view: "month", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
311
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerViewControlGroup, {}),
|
|
312
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableBody, { children: datePicker3.getMonthsGrid({ columns: 4, format: "short" }).map((months, id) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTableCell, { value: month.value, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTableCellTrigger, { children: month.label }) }, id2)) }, id)) }) })
|
|
313
|
-
] }) }) });
|
|
314
|
-
}
|
|
315
|
-
function DatePickerYearView(props) {
|
|
316
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.View, { ...props, view: "year", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.Context, { children: (datePicker3) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
317
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerViewControlGroup, {}),
|
|
318
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTable, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableBody, { children: datePicker3.getYearsGrid({ columns: 4 }).map((years, id) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react5.DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTableCell, { value: year.value, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerTableCellTrigger, { children: year.label }) }, id2)) }, id)) }) })
|
|
319
|
-
] }) }) });
|
|
320
|
-
}
|
|
321
|
-
function DatePickerCalendar(props) {
|
|
322
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(DatePickerContent, { withModal: props.withModal, children: [
|
|
323
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerDayView, {}),
|
|
324
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerMonthView, {}),
|
|
325
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DatePickerYearView, {})
|
|
326
|
-
] });
|
|
327
|
-
}
|
|
328
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
329
|
-
0 && (module.exports = {
|
|
330
|
-
DatePicker,
|
|
331
|
-
DatePickerCalendar,
|
|
332
|
-
DatePickerContent,
|
|
333
|
-
DatePickerDayView,
|
|
334
|
-
DatePickerInput,
|
|
335
|
-
DatePickerMonthView,
|
|
336
|
-
DatePickerTrigger,
|
|
337
|
-
DatePickerViewControlGroup,
|
|
338
|
-
DatePickerYearView,
|
|
339
|
-
RangePickerInput
|
|
340
|
-
});
|
|
341
|
-
//# sourceMappingURL=DatePicker.client.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/DatePicker.client.tsx","../../../src/components/Portal.tsx","../../../src/components/DatePicker.server.tsx","../../../src/components/IconButton.tsx","../../../src/components/button/button.tsx","../../../src/context/cerberus.tsx"],"sourcesContent":["'use client'\n\nimport {\n DatePicker as ArkDP,\n type DatePickerContentProps,\n type DatePickerInputProps,\n type DatePickerRootProps,\n type DatePickerTriggerProps,\n type DatePickerViewControlProps,\n type DatePickerViewProps,\n} from '@ark-ui/react'\nimport { Portal } from './Portal'\nimport { datePicker, iconButton } from '@cerberus/styled-system/recipes'\nimport { css, cx } from '@cerberus/styled-system/css'\nimport {\n DatePickerView,\n DatePickerContext,\n DatePickerTable,\n DatePickerTableHeader,\n DatePickerTableCellTrigger,\n DatePickerTableCell,\n DatePickerViewControl,\n} from './DatePicker.server'\nimport { IconButton } from './IconButton'\nimport { Button } from './button/button'\nimport { useCerberusContext } from '../context/cerberus'\nimport { useMemo, type InputHTMLAttributes } from 'react'\n\n/**\n * This module contains the DatePicker client family components.\n * @module DatePicker:client\n */\n\n// We are not exposing this to the public API\nconst datePickerStyles = datePicker()\n\n/**\n * The main context provider for the DatePicker family components.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePicker(props: DatePickerRootProps) {\n // There is a bug with the Root component that causes random date selection\n // onBlur after the first selection if the format prop is used.\n // ref: https://github.com/chakra-ui/ark/issues/3112#event-16047829195\n\n // const handleFormat = useCallback((value: DateValue) => {\n // return formatISOToMilitary(value.toString())\n // }, [])\n\n return (\n <ArkDP.Root\n {...props}\n positioning={{\n placement: 'bottom-start',\n }}\n />\n )\n}\n\n/**\n * An abstraction of the DatePicker control that contains the prev, view, and\n * next triggers which control the calendar output.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerViewControlGroup />\n * ```\n */\nexport function DatePickerViewControlGroup(props: DatePickerViewControlProps) {\n const { icons } = useCerberusContext()\n const { calendarPrev: PrevIcon, calendarNext: NextIcon } = icons\n return (\n <DatePickerViewControl {...props}>\n <ArkDP.PrevTrigger asChild>\n <IconButton ariaLabel=\"Previous\" size=\"sm\">\n <PrevIcon />\n </IconButton>\n </ArkDP.PrevTrigger>\n\n <ArkDP.ViewTrigger asChild>\n <Button\n className={css({\n h: '2rem',\n paddingInline: 'md',\n })}\n shape=\"rounded\"\n size=\"sm\"\n usage=\"ghost\"\n >\n <ArkDP.RangeText />\n </Button>\n </ArkDP.ViewTrigger>\n\n <ArkDP.NextTrigger asChild>\n <IconButton ariaLabel=\"Next\" size=\"sm\">\n <NextIcon />\n </IconButton>\n </ArkDP.NextTrigger>\n </DatePickerViewControl>\n )\n}\n\n/**\n * The trigger component for the DatePicker which opens the calendar.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTrigger />\n * ```\n */\nexport function DatePickerTrigger(props: DatePickerTriggerProps) {\n const { icons } = useCerberusContext()\n const { calendar: CalendarIcon } = icons\n return (\n <ArkDP.Trigger\n {...props}\n className={cx(\n props.className,\n iconButton({\n size: 'sm',\n usage: 'ghost',\n }),\n datePickerStyles.trigger,\n )}\n >\n <CalendarIcon />\n </ArkDP.Trigger>\n )\n}\n\n/**\n * The input component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerInput(props: DatePickerInputProps) {\n return (\n <ArkDP.Control className={datePickerStyles.control}>\n <DatePickerTrigger />\n <ArkDP.Input\n {...props}\n className={cx(props.className, datePickerStyles.input)}\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n />\n </ArkDP.Control>\n )\n}\n\nexport interface RangePickerInputProps\n extends Omit<DatePickerInputProps, 'defaultValue'> {\n /**\n * The defaultValue to add for the inputs. The first item is the start date\n * and the second item is the end date.\n */\n defaultValue?: [\n InputHTMLAttributes<HTMLInputElement>['defaultValue'],\n InputHTMLAttributes<HTMLInputElement>['defaultValue'],\n ]\n}\n\n/**\n * The input component for the DatePicker that uses ranges.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\" selection=\"range\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <RangePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function RangePickerInput(props: RangePickerInputProps) {\n const { defaultValue, ...nativeProps } = props\n\n const startDate = useMemo(() => defaultValue?.[0], [defaultValue])\n const endDate = useMemo(() => defaultValue?.[1], [defaultValue])\n\n return (\n <ArkDP.Control data-range className={datePickerStyles.control}>\n <DatePickerTrigger />\n <ArkDP.Input\n {...nativeProps}\n data-range-input\n defaultValue={startDate}\n className={cx(props.className, datePickerStyles.input)}\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n index={0}\n />\n <ArkDP.Input\n {...nativeProps}\n data-range-input\n defaultValue={endDate}\n data-range-end-input\n className={cx(props.className, datePickerStyles.input)}\n placeholder={props.placeholder ?? 'DD MMM YYYY'}\n maxLength={11}\n index={1}\n />\n </ArkDP.Control>\n )\n}\n\n/**\n * The content component for the DatePicker which contains the calendar.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerContent(\n props: DatePickerContentProps & {\n withModal?: boolean\n },\n) {\n const { children, withModal, ...contentProps } = props\n return (\n <Portal disabled={withModal ?? false}>\n <ArkDP.Positioner className={datePickerStyles.positioner}>\n <ArkDP.Content\n {...contentProps}\n className={cx(contentProps.className, datePickerStyles.content)}\n >\n {children}\n </ArkDP.Content>\n </ArkDP.Positioner>\n </Portal>\n )\n}\n\n/**\n * The day view component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerDayView(props: Omit<DatePickerViewProps, 'view'>) {\n function isToday(date: ArkDP.DateValue): boolean {\n const today = new Date()\n const formatted = today.toISOString().split('T')[0]\n const arkDate = `${date.year}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`\n return formatted === arkDate\n }\n\n function isPastDay(date: ArkDP.DateValue): boolean {\n const today = new Date()\n const arkDate = `${date.year}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`\n return new Date(arkDate) < today\n }\n\n function getDayValue(date: ArkDP.DateValue): 'today' | 'past' | 'future' {\n if (isToday(date)) return 'today'\n if (isPastDay(date)) return 'past'\n return 'future'\n }\n\n return (\n <DatePickerView {...props} view=\"day\">\n <DatePickerContext>\n {(datePicker) => (\n <>\n <DatePickerViewControlGroup />\n\n <DatePickerTable>\n <ArkDP.TableHead>\n <ArkDP.TableRow>\n {datePicker.weekDays.map((weekDay, id) => (\n <DatePickerTableHeader key={id}>\n {weekDay.narrow}\n </DatePickerTableHeader>\n ))}\n </ArkDP.TableRow>\n </ArkDP.TableHead>\n\n <ArkDP.TableBody>\n {datePicker.weeks.map((week, id) => (\n <ArkDP.TableRow key={id}>\n {week.map((day, id) => (\n <DatePickerTableCell key={id} value={day}>\n <DatePickerTableCellTrigger\n data-date={getDayValue(day)}\n >\n {day.day}\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </ArkDP.TableRow>\n ))}\n </ArkDP.TableBody>\n </DatePickerTable>\n </>\n )}\n </DatePickerContext>\n </DatePickerView>\n )\n}\n\n/**\n * The month view component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerMonthView(props: Omit<DatePickerViewProps, 'view'>) {\n return (\n <ArkDP.View {...props} view=\"month\">\n <ArkDP.Context>\n {(datePicker) => (\n <>\n <DatePickerViewControlGroup />\n\n <DatePickerTable>\n <ArkDP.TableBody>\n {datePicker\n .getMonthsGrid({ columns: 4, format: 'short' })\n .map((months, id) => (\n <ArkDP.TableRow key={id}>\n {months.map((month, id) => (\n <DatePickerTableCell key={id} value={month.value}>\n <DatePickerTableCellTrigger>\n {month.label}\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </ArkDP.TableRow>\n ))}\n </ArkDP.TableBody>\n </DatePickerTable>\n </>\n )}\n </ArkDP.Context>\n </ArkDP.View>\n )\n}\n\n/**\n * The year view component for the DatePicker.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerYearView(props: Omit<DatePickerViewProps, 'view'>) {\n return (\n <ArkDP.View {...props} view=\"year\">\n <ArkDP.Context>\n {(datePicker) => (\n <>\n <DatePickerViewControlGroup />\n\n <DatePickerTable>\n <ArkDP.TableBody>\n {datePicker.getYearsGrid({ columns: 4 }).map((years, id) => (\n <ArkDP.TableRow key={id}>\n {years.map((year, id) => (\n <DatePickerTableCell key={id} value={year.value}>\n <DatePickerTableCellTrigger>\n {year.label}\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </ArkDP.TableRow>\n ))}\n </ArkDP.TableBody>\n </DatePickerTable>\n </>\n )}\n </ArkDP.Context>\n </ArkDP.View>\n )\n}\n\n/**\n * An abstraction of the DatePicker content components that contain the\n * different calendar views and controls.\n * @definition [Date Picker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <Field>\n * <DatePicker name=\"start_date\">\n * <DatePickerLabel>Start date</DatePickerLabel>\n * <DatePickerInput />\n * <DatePickerCalendar />\n * </DatePicker>\n * </Field>\n * ```\n */\nexport function DatePickerCalendar(props: { withModal?: boolean }) {\n return (\n <DatePickerContent withModal={props.withModal}>\n <DatePickerDayView />\n <DatePickerMonthView />\n <DatePickerYearView />\n </DatePickerContent>\n )\n}\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n","import {\n DatePicker as ArkDP,\n type DatePickerLabelProps,\n type DatePickerTableCellProps,\n type DatePickerTableCellTriggerProps,\n type DatePickerTableHeaderProps,\n type DatePickerTableProps,\n type DatePickerViewControlProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport { datePicker, label } from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the DatePicker server family components.\n * @module DatePicker\n */\n\n// We are not exposing this to the public API\nconst datePickerStyles = datePicker()\n\n/**\n * The label component for the DatePicker.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerLabel>\n * <DatePickerLabel.Label>...</DatePickerLabel.Label>\n * </DatePickerLabel>\n * ```\n */\nexport function DatePickerLabel(props: DatePickerLabelProps) {\n const { className, ...arkProps } = props\n return (\n <ArkDP.Label\n {...arkProps}\n className={cx(\n className,\n label({\n size: 'sm',\n }),\n )}\n />\n )\n}\n\n/**\n * The control component for the DatePicker which wraps the triggers to switch\n * between calendar views.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerViewControl>\n * <PrevTrigger />\n * <ViewTrigger />\n * <NextTrigger />\n * </DatePickerViewControl>\n * ```\n */\nexport function DatePickerViewControl(props: DatePickerViewControlProps) {\n return (\n <ArkDP.Control\n {...props}\n className={cx(props.className, datePickerStyles.viewControl)}\n />\n )\n}\n\n/**\n * The table component for the DatePicker.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTable />\n * ```\n */\nexport function DatePickerTable(props: DatePickerTableProps) {\n return (\n <ArkDP.Table\n {...props}\n className={cx(props.className, datePickerStyles.table)}\n />\n )\n}\n\n/**\n * The header component for the DatePicker table.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTableHeader />\n * ```\n */\nexport function DatePickerTableHeader(props: DatePickerTableHeaderProps) {\n return (\n <ArkDP.TableHeader\n {...props}\n className={cx(props.className, datePickerStyles.tableHeader)}\n />\n )\n}\n\n/**\n * The cell component for the DatePicker table.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTableCell />\n * ```\n */\nexport function DatePickerTableCell(props: DatePickerTableCellProps) {\n return (\n <ArkDP.TableCell\n {...props}\n className={cx(props.className, datePickerStyles.tableCell)}\n />\n )\n}\n\n/**\n * The cell component for the DatePicker table.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTableCell />\n * ```\n */\nexport function DatePickerTableCellTrigger(\n props: DatePickerTableCellTriggerProps,\n) {\n return (\n <ArkDP.TableCellTrigger\n {...props}\n className={cx(props.className, datePickerStyles.tableCellTrigger)}\n />\n )\n}\n\n/**\n * The view container which wraps the control and content components.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerView />\n * ```\n */\nexport const DatePickerView = ArkDP.View\n\n/**\n * The context component for the DatePicker which provides the DatePicker state.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerContext />\n * ```\n */\nexport const DatePickerContext = ArkDP.Context\n","import type { ButtonHTMLAttributes } from 'react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n iconButton,\n type IconButtonVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Icon Button component.\n * @module\n */\n\nexport interface IconButtonRawProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * The aria-label attribute for the icon button.\n */\n ariaLabel: string\n}\nexport type IconButtonProps = IconButtonRawProps & IconButtonVariantProps\n\n/**\n * A component that allows the user to perform actions using an icon\n * @see https://cerberus.digitalu.design/react/icon-button\n */\nexport function IconButton(props: IconButtonProps): JSX.Element {\n const { ariaLabel, palette, usage, size, ...nativeProps } = props\n return (\n <button\n {...nativeProps}\n aria-label={ariaLabel ?? 'Icon Button'}\n className={cx(\n nativeProps.className,\n iconButton({\n palette,\n usage,\n size,\n }),\n )}\n />\n )\n}\n","'use client'\n\nimport {\n type ButtonHTMLAttributes,\n type PropsWithChildren,\n createContext,\n useContext,\n useMemo,\n} from 'react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n button,\n type ButtonVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { Box } from '@cerberus/styled-system/jsx'\nimport { Show } from '../Show'\nimport { Spinner } from '../Spinner'\n\n/**\n * This module contains the Button component.\n * @module\n */\n\ninterface ButtonContextValue {\n pending: boolean\n}\n\nconst ButtonContext = createContext<ButtonContextValue>({\n pending: false,\n})\n\nexport type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &\n ButtonVariantProps & {\n pending?: boolean\n }\n\n/**\n * A component that allows the user to perform actions\n * @see https://cerberus.digitalu.design/react/button\n */\nexport function Button(props: ButtonProps): JSX.Element {\n const { palette, usage, shape, size, pending = false, ...nativeProps } = props\n const value = useMemo(() => ({ pending }), [pending])\n\n return (\n <ButtonContext.Provider value={value}>\n <button\n {...nativeProps}\n disabled={pending || nativeProps.disabled}\n className={cx(\n nativeProps.className,\n button({\n palette,\n usage,\n shape,\n size,\n }),\n )}\n />\n </ButtonContext.Provider>\n )\n}\n\n/**\n * An icon to display in a button that utilizes the pending state to display\n * a loading spinner.\n */\nexport function ButtonIcon(props: PropsWithChildren<object>) {\n const { pending } = useContext(ButtonContext)\n return (\n <Show when={pending} fallback={<>{props.children}</>}>\n <Box w=\"4\">\n <Spinner />\n </Box>\n </Show>\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n"],"mappings":"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","names":["import_react","ArkPortal","import_recipes","import_css","import_react","ArkDP","import_css","import_recipes","import_jsx_runtime","import_react","import_css","import_recipes","import_jsx_runtime","import_react","import_jsx_runtime","import_react","import_jsx_runtime","datePickerStyles","ArkDP","datePicker","id"]}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/components/DatePicker.server.tsx
|
|
21
|
-
var DatePicker_server_exports = {};
|
|
22
|
-
__export(DatePicker_server_exports, {
|
|
23
|
-
DatePickerContext: () => DatePickerContext,
|
|
24
|
-
DatePickerLabel: () => DatePickerLabel,
|
|
25
|
-
DatePickerTable: () => DatePickerTable,
|
|
26
|
-
DatePickerTableCell: () => DatePickerTableCell,
|
|
27
|
-
DatePickerTableCellTrigger: () => DatePickerTableCellTrigger,
|
|
28
|
-
DatePickerTableHeader: () => DatePickerTableHeader,
|
|
29
|
-
DatePickerView: () => DatePickerView,
|
|
30
|
-
DatePickerViewControl: () => DatePickerViewControl
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(DatePicker_server_exports);
|
|
33
|
-
var import_react = require("@ark-ui/react");
|
|
34
|
-
var import_css = require("@cerberus/styled-system/css");
|
|
35
|
-
var import_recipes = require("@cerberus/styled-system/recipes");
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var datePickerStyles = (0, import_recipes.datePicker)();
|
|
38
|
-
function DatePickerLabel(props) {
|
|
39
|
-
const { className, ...arkProps } = props;
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
-
import_react.DatePicker.Label,
|
|
42
|
-
{
|
|
43
|
-
...arkProps,
|
|
44
|
-
className: (0, import_css.cx)(
|
|
45
|
-
className,
|
|
46
|
-
(0, import_recipes.label)({
|
|
47
|
-
size: "sm"
|
|
48
|
-
})
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
function DatePickerViewControl(props) {
|
|
54
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
-
import_react.DatePicker.Control,
|
|
56
|
-
{
|
|
57
|
-
...props,
|
|
58
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.viewControl)
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
function DatePickerTable(props) {
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
64
|
-
import_react.DatePicker.Table,
|
|
65
|
-
{
|
|
66
|
-
...props,
|
|
67
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.table)
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
function DatePickerTableHeader(props) {
|
|
72
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
73
|
-
import_react.DatePicker.TableHeader,
|
|
74
|
-
{
|
|
75
|
-
...props,
|
|
76
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.tableHeader)
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
function DatePickerTableCell(props) {
|
|
81
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
-
import_react.DatePicker.TableCell,
|
|
83
|
-
{
|
|
84
|
-
...props,
|
|
85
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.tableCell)
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
function DatePickerTableCellTrigger(props) {
|
|
90
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
91
|
-
import_react.DatePicker.TableCellTrigger,
|
|
92
|
-
{
|
|
93
|
-
...props,
|
|
94
|
-
className: (0, import_css.cx)(props.className, datePickerStyles.tableCellTrigger)
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
var DatePickerView = import_react.DatePicker.View;
|
|
99
|
-
var DatePickerContext = import_react.DatePicker.Context;
|
|
100
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
-
0 && (module.exports = {
|
|
102
|
-
DatePickerContext,
|
|
103
|
-
DatePickerLabel,
|
|
104
|
-
DatePickerTable,
|
|
105
|
-
DatePickerTableCell,
|
|
106
|
-
DatePickerTableCellTrigger,
|
|
107
|
-
DatePickerTableHeader,
|
|
108
|
-
DatePickerView,
|
|
109
|
-
DatePickerViewControl
|
|
110
|
-
});
|
|
111
|
-
//# sourceMappingURL=DatePicker.server.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/DatePicker.server.tsx"],"sourcesContent":["import {\n DatePicker as ArkDP,\n type DatePickerLabelProps,\n type DatePickerTableCellProps,\n type DatePickerTableCellTriggerProps,\n type DatePickerTableHeaderProps,\n type DatePickerTableProps,\n type DatePickerViewControlProps,\n} from '@ark-ui/react'\nimport { cx } from '@cerberus/styled-system/css'\nimport { datePicker, label } from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the DatePicker server family components.\n * @module DatePicker\n */\n\n// We are not exposing this to the public API\nconst datePickerStyles = datePicker()\n\n/**\n * The label component for the DatePicker.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerLabel>\n * <DatePickerLabel.Label>...</DatePickerLabel.Label>\n * </DatePickerLabel>\n * ```\n */\nexport function DatePickerLabel(props: DatePickerLabelProps) {\n const { className, ...arkProps } = props\n return (\n <ArkDP.Label\n {...arkProps}\n className={cx(\n className,\n label({\n size: 'sm',\n }),\n )}\n />\n )\n}\n\n/**\n * The control component for the DatePicker which wraps the triggers to switch\n * between calendar views.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerViewControl>\n * <PrevTrigger />\n * <ViewTrigger />\n * <NextTrigger />\n * </DatePickerViewControl>\n * ```\n */\nexport function DatePickerViewControl(props: DatePickerViewControlProps) {\n return (\n <ArkDP.Control\n {...props}\n className={cx(props.className, datePickerStyles.viewControl)}\n />\n )\n}\n\n/**\n * The table component for the DatePicker.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTable />\n * ```\n */\nexport function DatePickerTable(props: DatePickerTableProps) {\n return (\n <ArkDP.Table\n {...props}\n className={cx(props.className, datePickerStyles.table)}\n />\n )\n}\n\n/**\n * The header component for the DatePicker table.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTableHeader />\n * ```\n */\nexport function DatePickerTableHeader(props: DatePickerTableHeaderProps) {\n return (\n <ArkDP.TableHeader\n {...props}\n className={cx(props.className, datePickerStyles.tableHeader)}\n />\n )\n}\n\n/**\n * The cell component for the DatePicker table.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTableCell />\n * ```\n */\nexport function DatePickerTableCell(props: DatePickerTableCellProps) {\n return (\n <ArkDP.TableCell\n {...props}\n className={cx(props.className, datePickerStyles.tableCell)}\n />\n )\n}\n\n/**\n * The cell component for the DatePicker table.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerTableCell />\n * ```\n */\nexport function DatePickerTableCellTrigger(\n props: DatePickerTableCellTriggerProps,\n) {\n return (\n <ArkDP.TableCellTrigger\n {...props}\n className={cx(props.className, datePickerStyles.tableCellTrigger)}\n />\n )\n}\n\n/**\n * The view container which wraps the control and content components.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerView />\n * ```\n */\nexport const DatePickerView = ArkDP.View\n\n/**\n * The context component for the DatePicker which provides the DatePicker state.\n * @definition [datePicker docs](https://cerberus.digitalu.design/react/date-picker)\n * @example\n * ```tsx\n * <DatePickerContext />\n * ```\n */\nexport const DatePickerContext = ArkDP.Context\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAQO;AACP,iBAAmB;AACnB,qBAAkC;AAuB9B;AAfJ,IAAM,uBAAmB,2BAAW;AAY7B,SAAS,gBAAgB,OAA6B;AAC3D,QAAM,EAAE,WAAW,GAAG,SAAS,IAAI;AACnC,SACE;AAAA,IAAC,aAAAA,WAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,eAAW;AAAA,QACT;AAAA,YACA,sBAAM;AAAA,UACJ,MAAM;AAAA,QACR,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;AAeO,SAAS,sBAAsB,OAAmC;AACvE,SACE;AAAA,IAAC,aAAAA,WAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,MAAM,WAAW,iBAAiB,WAAW;AAAA;AAAA,EAC7D;AAEJ;AAUO,SAAS,gBAAgB,OAA6B;AAC3D,SACE;AAAA,IAAC,aAAAA,WAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,MAAM,WAAW,iBAAiB,KAAK;AAAA;AAAA,EACvD;AAEJ;AAUO,SAAS,sBAAsB,OAAmC;AACvE,SACE;AAAA,IAAC,aAAAA,WAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,MAAM,WAAW,iBAAiB,WAAW;AAAA;AAAA,EAC7D;AAEJ;AAUO,SAAS,oBAAoB,OAAiC;AACnE,SACE;AAAA,IAAC,aAAAA,WAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,MAAM,WAAW,iBAAiB,SAAS;AAAA;AAAA,EAC3D;AAEJ;AAUO,SAAS,2BACd,OACA;AACA,SACE;AAAA,IAAC,aAAAA,WAAM;AAAA,IAAN;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,MAAM,WAAW,iBAAiB,gBAAgB;AAAA;AAAA,EAClE;AAEJ;AAUO,IAAM,iBAAiB,aAAAA,WAAM;AAU7B,IAAM,oBAAoB,aAAAA,WAAM;","names":["ArkDP"]}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/components/Dialog.tsx
|
|
21
|
-
var Dialog_exports = {};
|
|
22
|
-
__export(Dialog_exports, {
|
|
23
|
-
Dialog: () => Dialog,
|
|
24
|
-
DialogBackdrop: () => DialogBackdrop,
|
|
25
|
-
DialogCloseTrigger: () => DialogCloseTrigger,
|
|
26
|
-
DialogContent: () => DialogContent,
|
|
27
|
-
DialogDescription: () => DialogDescription,
|
|
28
|
-
DialogHeading: () => DialogHeading,
|
|
29
|
-
DialogPositioner: () => DialogPositioner,
|
|
30
|
-
DialogProvider: () => DialogProvider,
|
|
31
|
-
DialogTrigger: () => DialogTrigger
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(Dialog_exports);
|
|
34
|
-
var import_react2 = require("@ark-ui/react");
|
|
35
|
-
var import_recipes = require("@cerberus/styled-system/recipes");
|
|
36
|
-
|
|
37
|
-
// src/components/Portal.tsx
|
|
38
|
-
var import_react = require("@ark-ui/react");
|
|
39
|
-
var Portal = import_react.Portal;
|
|
40
|
-
|
|
41
|
-
// src/components/Dialog.tsx
|
|
42
|
-
var import_css = require("@cerberus/styled-system/css");
|
|
43
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
|
-
function DialogProvider(props) {
|
|
45
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Dialog.Root, { ...props });
|
|
46
|
-
}
|
|
47
|
-
function Dialog(props) {
|
|
48
|
-
const { size, ...contentProps } = props;
|
|
49
|
-
const styles = (0, import_recipes.dialog)({ size });
|
|
50
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Portal, { children: [
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogBackdrop, { className: styles.backdrop }),
|
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogPositioner, { className: styles.positioner, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogContent, { className: styles.content, ...contentProps }) })
|
|
53
|
-
] });
|
|
54
|
-
}
|
|
55
|
-
function DialogHeading(props) {
|
|
56
|
-
const styles = (0, import_recipes.dialog)();
|
|
57
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Dialog.Title, { ...props, className: (0, import_css.cx)(props.className, styles.title) });
|
|
58
|
-
}
|
|
59
|
-
function DialogDescription(props) {
|
|
60
|
-
const styles = (0, import_recipes.dialog)();
|
|
61
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
-
import_react2.Dialog.Description,
|
|
63
|
-
{
|
|
64
|
-
...props,
|
|
65
|
-
className: (0, import_css.cx)(props.className, styles.description)
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
var DialogTrigger = import_react2.Dialog.Trigger;
|
|
70
|
-
var DialogCloseTrigger = import_react2.Dialog.CloseTrigger;
|
|
71
|
-
var DialogBackdrop = import_react2.Dialog.Backdrop;
|
|
72
|
-
var DialogPositioner = import_react2.Dialog.Positioner;
|
|
73
|
-
var DialogContent = import_react2.Dialog.Content;
|
|
74
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
75
|
-
0 && (module.exports = {
|
|
76
|
-
Dialog,
|
|
77
|
-
DialogBackdrop,
|
|
78
|
-
DialogCloseTrigger,
|
|
79
|
-
DialogContent,
|
|
80
|
-
DialogDescription,
|
|
81
|
-
DialogHeading,
|
|
82
|
-
DialogPositioner,
|
|
83
|
-
DialogProvider,
|
|
84
|
-
DialogTrigger
|
|
85
|
-
});
|
|
86
|
-
//# sourceMappingURL=Dialog.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Dialog.tsx","../../../src/components/Portal.tsx"],"sourcesContent":["import {\n Dialog as ArkDialog,\n type DialogContentProps as ArkDialogContentProps,\n type DialogRootProps,\n type DialogTitleProps,\n} from '@ark-ui/react'\nimport {\n dialog,\n type DialogVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { Portal } from './Portal'\nimport { cx } from '@cerberus/styled-system/css'\n\nexport type DialogProviderProps = DialogRootProps\n\n/**\n * The provider that controls the dialog components.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <Text>Dialog Content</Text>\n * <DialogCloseTrigger>Close</DialogCloseTrigger>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function DialogProvider(props: DialogProviderProps) {\n return <ArkDialog.Root {...props} />\n}\n\nexport interface DialogProps\n extends Omit<ArkDialogContentProps, 'size'>,\n DialogVariantProps {}\n\n/**\n * The content of the dialog. Must be used within the `DialogProvider` component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <Text>Dialog Content</Text>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function Dialog(props: DialogProps) {\n const { size, ...contentProps } = props\n const styles = dialog({ size })\n return (\n <Portal>\n <DialogBackdrop className={styles.backdrop} />\n <DialogPositioner className={styles.positioner}>\n <DialogContent className={styles.content} {...contentProps} />\n </DialogPositioner>\n </Portal>\n )\n}\n\n/**\n * The heading of the dialog. Must be used within the `DialogContent` component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <DialogHeading>Dialog Title</DialogHeading>\n * <Text>Dialog Content</Text>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function DialogHeading(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <ArkDialog.Title {...props} className={cx(props.className, styles.title)} />\n )\n}\n\n/**\n * The description of the dialog. Must be used within the `DialogContent` component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <DialogHeading>Dialog Title</DialogHeading>\n * <DialogDescription>Dialog Description</DialogDescription>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport function DialogDescription(props: DialogTitleProps) {\n const styles = dialog()\n return (\n <ArkDialog.Description\n {...props}\n className={cx(props.className, styles.description)}\n />\n )\n}\n\n/**\n * The trigger that opens the dialog. Must be used within the `DialogProvider`\n * component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @example\n * ```tsx\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * ```\n */\nexport const DialogTrigger = ArkDialog.Trigger\n\n/**\n * The trigger that closes the dialog. Must be used within the `DialogProvider`\n * component.\n * @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)\n * @example\n * ```tsx\n * <DialogProvider>\n * <DialogTrigger asChild>\n * <Button>Open Dialog</Button>\n * </DialogTrigger>\n * <Dialog>\n * <Text>Dialog Content</Text>\n * <DialogCloseTrigger>Close</DialogCloseTrigger>\n * </Dialog>\n * </DialogProvider>\n * ```\n */\nexport const DialogCloseTrigger = ArkDialog.CloseTrigger\n\n/**\n * The backdrop of the dialog. Must be used within the `DialogProvider`\n * component.\n */\nexport const DialogBackdrop = ArkDialog.Backdrop\n\n/**\n * The positioner of the dialog. Must be used within the `DialogProvider`\n * component.\n */\nexport const DialogPositioner = ArkDialog.Positioner\n\n/**\n * The content of the dialog. Must be used within the `DialogProvider`\n * component.\n */\nexport const DialogContent = ArkDialog.Content\n","import {\n Portal as ArkPortal,\n type PortalProps as ArkPortalProps,\n} from '@ark-ui/react'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport type PortalProps = ArkPortalProps\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n * @example\n * ```tsx\n * 'use client'\n *\n * import { Portal } from '@cerberus/react'\n *\n * function SomeFeatureWithinSSRPage() {\n * return (\n * <Portal>\n * <div>Portal Content outside of the React VDom tree</div>\n * </Portal>\n * )\n * }\n */\nexport const Portal = ArkPortal\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,gBAKO;AACP,qBAGO;;;ACTP,mBAGO;AA2BA,IAAM,SAAS,aAAAC;;;ADnBtB,iBAAmB;AAqBV;AADF,SAAS,eAAe,OAA4B;AACzD,SAAO,4CAAC,cAAAC,OAAU,MAAV,EAAgB,GAAG,OAAO;AACpC;AAqBO,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,GAAG,aAAa,IAAI;AAClC,QAAM,aAAS,uBAAO,EAAE,KAAK,CAAC;AAC9B,SACE,6CAAC,UACC;AAAA,gDAAC,kBAAe,WAAW,OAAO,UAAU;AAAA,IAC5C,4CAAC,oBAAiB,WAAW,OAAO,YAClC,sDAAC,iBAAc,WAAW,OAAO,SAAU,GAAG,cAAc,GAC9D;AAAA,KACF;AAEJ;AAkBO,SAAS,cAAc,OAAyB;AACrD,QAAM,aAAS,uBAAO;AACtB,SACE,4CAAC,cAAAA,OAAU,OAAV,EAAiB,GAAG,OAAO,eAAW,eAAG,MAAM,WAAW,OAAO,KAAK,GAAG;AAE9E;AAkBO,SAAS,kBAAkB,OAAyB;AACzD,QAAM,aAAS,uBAAO;AACtB,SACE;AAAA,IAAC,cAAAA,OAAU;AAAA,IAAV;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,eAAG,MAAM,WAAW,OAAO,WAAW;AAAA;AAAA,EACnD;AAEJ;AAaO,IAAM,gBAAgB,cAAAA,OAAU;AAmBhC,IAAM,qBAAqB,cAAAA,OAAU;AAMrC,IAAM,iBAAiB,cAAAA,OAAU;AAMjC,IAAM,mBAAmB,cAAAA,OAAU;AAMnC,IAAM,gBAAgB,cAAAA,OAAU;","names":["import_react","ArkPortal","ArkDialog"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Dialog.client.tsx","../../../src/components/IconButton.tsx","../../../src/context/cerberus.tsx"],"sourcesContent":["'use client'\n\nimport {\n Dialog as ArkDialog,\n type DialogCloseTriggerProps,\n} from '@ark-ui/react'\nimport { dialog } from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport { IconButton } from './IconButton'\nimport { useCerberusContext } from '../context/cerberus'\n\n/**\n * This module contains client-side components for the Dialog family.\n * @module @cerberus-design/react/dialog\n */\n\nexport function DialogCloseIconTrigger(props: DialogCloseTriggerProps) {\n const { icons } = useCerberusContext()\n const { close: CloseIcon } = icons\n\n const styles = dialog()\n\n return (\n <ArkDialog.CloseTrigger\n {...props}\n className={cx(props.className, styles.closeTrigger)}\n asChild\n >\n <IconButton\n ariaLabel=\"Close dialog\"\n palette=\"action\"\n size=\"lg\"\n usage=\"ghost\"\n >\n <CloseIcon />\n </IconButton>\n </ArkDialog.CloseTrigger>\n )\n}\n","import type { ButtonHTMLAttributes } from 'react'\nimport { cx } from '@cerberus/styled-system/css'\nimport {\n iconButton,\n type IconButtonVariantProps,\n} from '@cerberus/styled-system/recipes'\n\n/**\n * This module contains the Icon Button component.\n * @module\n */\n\nexport interface IconButtonRawProps\n extends ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * The aria-label attribute for the icon button.\n */\n ariaLabel: string\n}\nexport type IconButtonProps = IconButtonRawProps & IconButtonVariantProps\n\n/**\n * A component that allows the user to perform actions using an icon\n * @see https://cerberus.digitalu.design/react/icon-button\n */\nexport function IconButton(props: IconButtonProps): JSX.Element {\n const { ariaLabel, palette, usage, size, ...nativeProps } = props\n return (\n <button\n {...nativeProps}\n aria-label={ariaLabel ?? 'Icon Button'}\n className={cx(\n nativeProps.className,\n iconButton({\n palette,\n usage,\n size,\n }),\n )}\n />\n )\n}\n","'use client'\n\nimport { createContext, useContext, type PropsWithChildren } from 'react'\nimport type { SystemConfig } from '../config'\n\n/**\n * This module contains the Cerberus configuration context and helpers.\n * @module context/cerberus\n */\n\ntype CerberusContextValue = SystemConfig\n\nconst CerberusContext = createContext<CerberusContextValue | null>(null)\n\ninterface CerberusProviderProps {\n config: SystemConfig\n}\n\n/**\n * Cerberus configuration provider.\n * @param props.config The Cerberus configuration created with\n * `makeSystemConfig` helper.\n */\nexport function CerberusProvider(\n props: PropsWithChildren<CerberusProviderProps>,\n) {\n return (\n <CerberusContext.Provider value={props.config}>\n {props.children}\n </CerberusContext.Provider>\n )\n}\n\n/**\n * Returns the Cerberus configuration context.\n * @returns The Cerberus configuration context.\n */\nexport function useCerberusContext() {\n const context = useContext(CerberusContext)\n if (!context) {\n throw new Error('useCerberus must be used within a CerberusProvider')\n }\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,IAAAA,gBAGO;AACP,IAAAC,kBAAuB;AACvB,IAAAC,cAAmB;;;ACNnB,iBAAmB;AACnB,qBAGO;AAuBH;AAHG,SAAS,WAAW,OAAqC;AAC9D,QAAM,EAAE,WAAW,SAAS,OAAO,MAAM,GAAG,YAAY,IAAI;AAC5D,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,cAAY,aAAa;AAAA,MACzB,eAAW;AAAA,QACT,YAAY;AAAA,YACZ,2BAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA;AAAA,QACF,CAAC;AAAA,MACH;AAAA;AAAA,EACF;AAEJ;;;ACvCA,mBAAkE;AAyB9D,IAAAC,sBAAA;AAfJ,IAAM,sBAAkB,4BAA2C,IAAI;AAyBhE,SAAS,qBAAqB;AACnC,QAAM,cAAU,yBAAW,eAAe;AAC1C,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,oDAAoD;AAAA,EACtE;AACA,SAAO;AACT;;;AFTQ,IAAAC,sBAAA;AAlBD,SAAS,uBAAuB,OAAgC;AACrE,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,OAAO,UAAU,IAAI;AAE7B,QAAM,aAAS,wBAAO;AAEtB,SACE;AAAA,IAAC,cAAAC,OAAU;AAAA,IAAV;AAAA,MACE,GAAG;AAAA,MACJ,eAAW,gBAAG,MAAM,WAAW,OAAO,YAAY;AAAA,MAClD,SAAO;AAAA,MAEP;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAQ;AAAA,UACR,MAAK;AAAA,UACL,OAAM;AAAA,UAEN,uDAAC,aAAU;AAAA;AAAA,MACb;AAAA;AAAA,EACF;AAEJ;","names":["import_react","import_recipes","import_css","import_jsx_runtime","import_jsx_runtime","ArkDialog"]}
|