@g4rcez/components 4.0.2 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/SKILL.md +120 -153
- package/ai/docs/Alert.md +47 -48
- package/ai/docs/AnimatedList.md +88 -87
- package/ai/docs/Autocomplete.md +102 -106
- package/ai/docs/Button.md +33 -33
- package/ai/docs/Calendar.md +67 -101
- package/ai/docs/Card.md +59 -55
- package/ai/docs/Checkbox.md +77 -82
- package/ai/docs/CommandPalette.md +154 -172
- package/ai/docs/DatePicker.md +45 -64
- package/ai/docs/Dropdown.md +98 -126
- package/ai/docs/Empty.md +41 -44
- package/ai/docs/Expand.md +40 -54
- package/ai/docs/FileUpload.md +102 -109
- package/ai/docs/Form.md +35 -29
- package/ai/docs/FormReset.md +37 -37
- package/ai/docs/Heading.md +4 -6
- package/ai/docs/Input.md +73 -98
- package/ai/docs/InputField.md +67 -67
- package/ai/docs/List.md +88 -85
- package/ai/docs/Menu.md +62 -60
- package/ai/docs/Modal.md +129 -136
- package/ai/docs/MultiSelect.md +65 -84
- package/ai/docs/Notifications.md +96 -96
- package/ai/docs/PageCalendar.md +88 -97
- package/ai/docs/Polymorph.md +25 -41
- package/ai/docs/Progress.md +55 -51
- package/ai/docs/Radiobox.md +49 -41
- package/ai/docs/RenderOnView.md +26 -32
- package/ai/docs/Resizable.md +60 -65
- package/ai/docs/Select.md +158 -158
- package/ai/docs/Shortcut.md +14 -14
- package/ai/docs/Skeleton.md +56 -60
- package/ai/docs/Slider.md +26 -49
- package/ai/docs/Slot.md +15 -17
- package/ai/docs/Spinner.md +17 -15
- package/ai/docs/Stats.md +44 -42
- package/ai/docs/Step.md +60 -60
- package/ai/docs/Switch.md +44 -54
- package/ai/docs/Table.md +124 -136
- package/ai/docs/Tabs.md +90 -90
- package/ai/docs/Tag.md +63 -65
- package/ai/docs/TaskList.md +40 -50
- package/ai/docs/Textarea.md +47 -70
- package/ai/docs/Timeline.md +98 -96
- package/ai/docs/Toolbar.md +46 -46
- package/ai/docs/Tooltip.md +103 -103
- package/ai/docs/Typography.md +55 -55
- package/ai/docs/Wizard.md +104 -109
- package/ai/docs/index.md +116 -116
- package/dist/autocomplete-DcTNOwyg.js +393 -0
- package/dist/autocomplete-DcTNOwyg.js.map +1 -0
- package/dist/{calendar-B5lSd0ID.js → calendar-BJMHRoy2.js} +104 -105
- package/dist/calendar-BJMHRoy2.js.map +1 -0
- package/dist/components/core/button.js +10 -10
- package/dist/components/core/button.js.map +1 -1
- package/dist/components/core/tag.js +4 -4
- package/dist/components/core/tag.js.map +1 -1
- package/dist/components/display/alert.js +48 -46
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/calendar.js +6 -6
- package/dist/components/display/card.js +2 -2
- package/dist/components/display/card.js.map +1 -1
- package/dist/components/display/list.js +1 -1
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/notifications.js +3 -3
- package/dist/components/display/stats.js +1 -1
- package/dist/components/display/tabs.js +2 -2
- package/dist/components/display/timeline.js +1 -1
- package/dist/components/floating/dropdown.js +25 -17
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/expand.js +7 -7
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/menu.js +10 -10
- package/dist/components/floating/menu.js.map +1 -1
- package/dist/components/floating/modal.js +106 -102
- package/dist/components/floating/modal.js.map +1 -1
- package/dist/components/floating/tooltip.js +14 -14
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/form/autocomplete.js +6 -6
- package/dist/components/form/checkbox.js +1 -1
- package/dist/components/form/date-picker.js +5 -5
- package/dist/components/form/file-upload.js +2 -2
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/radiobox.js +1 -1
- package/dist/components/form/select.js +3 -3
- package/dist/components/form/switch.js +2 -2
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/table/table.js +3 -3
- package/dist/{date-picker-DwNo22lx.js → date-picker-Bnl07nd8.js} +8 -6
- package/dist/date-picker-Bnl07nd8.js.map +1 -0
- package/dist/{dom-Dl8XH0CK.js → dom-CyQHY7ID.js} +66 -61
- package/dist/dom-CyQHY7ID.js.map +1 -0
- package/dist/{file-upload-Brf2NkLr.js → file-upload-93d5DR4q.js} +139 -129
- package/dist/file-upload-93d5DR4q.js.map +1 -0
- package/dist/{floating-ui.react-QNHG9W4N.js → floating-ui.react-M2PGXLDp.js} +8 -8
- package/dist/floating-ui.react-M2PGXLDp.js.map +1 -0
- package/dist/{fns-D2eyJKd5.js → fns-C7Dt27Qd.js} +2 -2
- package/dist/fns-C7Dt27Qd.js.map +1 -0
- package/dist/index-BJ1ayTam.js +126 -0
- package/dist/index-BJ1ayTam.js.map +1 -0
- package/dist/index-C-PuFUZi.js.map +1 -1
- package/dist/{index-BelDtX5M.js → index-DDeQW0JW.js} +399 -404
- package/dist/index-DDeQW0JW.js.map +1 -0
- package/dist/index-DE4shK8D.js +215 -0
- package/dist/index-DE4shK8D.js.map +1 -0
- package/dist/{index-DJSMaZR4.js → index-DlJ_2RBL.js} +2 -2
- package/dist/index-DlJ_2RBL.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.esm-BaIwleSE.js.map +1 -1
- package/dist/index.js +2810 -2756
- package/dist/index.js.map +1 -1
- package/dist/{input-CrGrSnUt.js → input-_MVxmIpu.js} +116 -114
- package/dist/input-_MVxmIpu.js.map +1 -0
- package/dist/{input-field-5vYcz5tT.js → input-field-CDCOODOl.js} +63 -47
- package/dist/input-field-CDCOODOl.js.map +1 -0
- package/dist/notifications-Dp0ydKJS.js +2576 -0
- package/dist/notifications-Dp0ydKJS.js.map +1 -0
- package/dist/polymorph-B5n9fs_K.js.map +1 -1
- package/dist/preset/plugin.tailwind.d.ts.map +1 -1
- package/dist/preset/plugin.tailwind.js +20 -18
- package/dist/preset/preset.tailwind.js +24 -25
- package/dist/preset/src/styles/common.js +6 -3
- package/dist/preset/src/styles/dark.d.ts.map +1 -1
- package/dist/preset/src/styles/dark.js +9 -5
- package/dist/preset/src/styles/design-tokens.js +68 -89
- package/dist/preset/src/styles/light.d.ts.map +1 -1
- package/dist/preset/src/styles/light.js +9 -5
- package/dist/preset/src/styles/theme.js +7 -4
- package/dist/preset/src/styles/theme.types.d.ts +2 -1
- package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
- package/dist/preset/src/styles/theme.types.js +2 -1
- package/dist/skeleton-BjJobYYf.js +24 -0
- package/dist/skeleton-BjJobYYf.js.map +1 -0
- package/dist/slot-CRyweuj0.js.map +1 -1
- package/dist/styles/common.js +6 -3
- package/dist/styles/dark.d.ts.map +1 -1
- package/dist/styles/dark.js +9 -5
- package/dist/styles/design-tokens.js +68 -89
- package/dist/styles/light.d.ts.map +1 -1
- package/dist/styles/light.js +9 -5
- package/dist/styles/theme.js +7 -4
- package/dist/styles/theme.types.d.ts +2 -1
- package/dist/styles/theme.types.d.ts.map +1 -1
- package/dist/styles/theme.types.js +2 -1
- package/dist/tabs-B0g7YtQv.js +123 -0
- package/dist/tabs-B0g7YtQv.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/{context-BFXNJVn2.js → use-translations-DSltA7H_.js} +38 -30
- package/dist/use-translations-DSltA7H_.js.map +1 -0
- package/package.json +99 -86
- package/ai/docs/TransferList.md +0 -142
- package/dist/autocomplete-Cn9Z2hLq.js +0 -375
- package/dist/autocomplete-Cn9Z2hLq.js.map +0 -1
- package/dist/calendar-B5lSd0ID.js.map +0 -1
- package/dist/components/core/button.d.ts +0 -77
- package/dist/components/core/button.d.ts.map +0 -1
- package/dist/components/core/heading.d.ts +0 -3
- package/dist/components/core/heading.d.ts.map +0 -1
- package/dist/components/core/polymorph.d.ts +0 -10
- package/dist/components/core/polymorph.d.ts.map +0 -1
- package/dist/components/core/render-on-view.d.ts +0 -7
- package/dist/components/core/render-on-view.d.ts.map +0 -1
- package/dist/components/core/resizable.d.ts +0 -3
- package/dist/components/core/resizable.d.ts.map +0 -1
- package/dist/components/core/slot.d.ts +0 -16
- package/dist/components/core/slot.d.ts.map +0 -1
- package/dist/components/core/tag.d.ts +0 -35
- package/dist/components/core/tag.d.ts.map +0 -1
- package/dist/components/core/typography.d.ts +0 -25
- package/dist/components/core/typography.d.ts.map +0 -1
- package/dist/components/display/alert.d.ts +0 -28
- package/dist/components/display/alert.d.ts.map +0 -1
- package/dist/components/display/calendar.d.ts +0 -42
- package/dist/components/display/calendar.d.ts.map +0 -1
- package/dist/components/display/card.d.ts +0 -29
- package/dist/components/display/card.d.ts.map +0 -1
- package/dist/components/display/empty.d.ts +0 -8
- package/dist/components/display/empty.d.ts.map +0 -1
- package/dist/components/display/list.d.ts +0 -16
- package/dist/components/display/list.d.ts.map +0 -1
- package/dist/components/display/notifications.d.ts +0 -27
- package/dist/components/display/notifications.d.ts.map +0 -1
- package/dist/components/display/progress.d.ts +0 -13
- package/dist/components/display/progress.d.ts.map +0 -1
- package/dist/components/display/shortcut.d.ts +0 -4
- package/dist/components/display/shortcut.d.ts.map +0 -1
- package/dist/components/display/skeleton.d.ts +0 -12
- package/dist/components/display/skeleton.d.ts.map +0 -1
- package/dist/components/display/spinner.d.ts +0 -5
- package/dist/components/display/spinner.d.ts.map +0 -1
- package/dist/components/display/stats.d.ts +0 -12
- package/dist/components/display/stats.d.ts.map +0 -1
- package/dist/components/display/step.d.ts +0 -24
- package/dist/components/display/step.d.ts.map +0 -1
- package/dist/components/display/tabs.d.ts +0 -24
- package/dist/components/display/tabs.d.ts.map +0 -1
- package/dist/components/display/timeline.d.ts +0 -10
- package/dist/components/display/timeline.d.ts.map +0 -1
- package/dist/components/floating/command-palette.d.ts +0 -49
- package/dist/components/floating/command-palette.d.ts.map +0 -1
- package/dist/components/floating/dropdown.d.ts +0 -15
- package/dist/components/floating/dropdown.d.ts.map +0 -1
- package/dist/components/floating/expand.d.ts +0 -11
- package/dist/components/floating/expand.d.ts.map +0 -1
- package/dist/components/floating/menu.d.ts +0 -52
- package/dist/components/floating/menu.d.ts.map +0 -1
- package/dist/components/floating/modal.d.ts +0 -60
- package/dist/components/floating/modal.d.ts.map +0 -1
- package/dist/components/floating/toolbar.d.ts +0 -6
- package/dist/components/floating/toolbar.d.ts.map +0 -1
- package/dist/components/floating/tooltip.d.ts +0 -17
- package/dist/components/floating/tooltip.d.ts.map +0 -1
- package/dist/components/floating/wizard.d.ts +0 -26
- package/dist/components/floating/wizard.d.ts.map +0 -1
- package/dist/components/form/autocomplete.d.ts +0 -16
- package/dist/components/form/autocomplete.d.ts.map +0 -1
- package/dist/components/form/checkbox.d.ts +0 -12
- package/dist/components/form/checkbox.d.ts.map +0 -1
- package/dist/components/form/date-picker.d.ts +0 -10
- package/dist/components/form/date-picker.d.ts.map +0 -1
- package/dist/components/form/file-upload.d.ts +0 -15
- package/dist/components/form/file-upload.d.ts.map +0 -1
- package/dist/components/form/form.d.ts +0 -3
- package/dist/components/form/form.d.ts.map +0 -1
- package/dist/components/form/formReset.d.ts +0 -2
- package/dist/components/form/formReset.d.ts.map +0 -1
- package/dist/components/form/free-text.d.ts +0 -11
- package/dist/components/form/free-text.d.ts.map +0 -1
- package/dist/components/form/input-field.d.ts +0 -34
- package/dist/components/form/input-field.d.ts.map +0 -1
- package/dist/components/form/input.d.ts +0 -52
- package/dist/components/form/input.d.ts.map +0 -1
- package/dist/components/form/multi-select.d.ts +0 -19
- package/dist/components/form/multi-select.d.ts.map +0 -1
- package/dist/components/form/radiobox.d.ts +0 -7
- package/dist/components/form/radiobox.d.ts.map +0 -1
- package/dist/components/form/select.d.ts +0 -13
- package/dist/components/form/select.d.ts.map +0 -1
- package/dist/components/form/slider.d.ts +0 -7
- package/dist/components/form/slider.d.ts.map +0 -1
- package/dist/components/form/switch.d.ts +0 -9
- package/dist/components/form/switch.d.ts.map +0 -1
- package/dist/components/form/task-list.d.ts +0 -3
- package/dist/components/form/task-list.d.ts.map +0 -1
- package/dist/components/form/textarea.d.ts +0 -6
- package/dist/components/form/textarea.d.ts.map +0 -1
- package/dist/components/form/transfer-list.d.ts +0 -14
- package/dist/components/form/transfer-list.d.ts.map +0 -1
- package/dist/components/form/transfer-list.js +0 -55
- package/dist/components/form/transfer-list.js.map +0 -1
- package/dist/components/index.d.ts +0 -46
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/page-calendar/calendar-header.d.ts +0 -16
- package/dist/components/page-calendar/calendar-header.d.ts.map +0 -1
- package/dist/components/page-calendar/day-view.d.ts +0 -12
- package/dist/components/page-calendar/day-view.d.ts.map +0 -1
- package/dist/components/page-calendar/event-pill.d.ts +0 -9
- package/dist/components/page-calendar/event-pill.d.ts.map +0 -1
- package/dist/components/page-calendar/index.d.ts +0 -4
- package/dist/components/page-calendar/index.d.ts.map +0 -1
- package/dist/components/page-calendar/month-view.d.ts +0 -11
- package/dist/components/page-calendar/month-view.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.d.ts +0 -18
- package/dist/components/page-calendar/page-calendar.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.types.d.ts +0 -18
- package/dist/components/page-calendar/page-calendar.types.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.utils.d.ts +0 -24
- package/dist/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
- package/dist/components/page-calendar/week-view.d.ts +0 -11
- package/dist/components/page-calendar/week-view.d.ts.map +0 -1
- package/dist/components/table/filter.d.ts +0 -42
- package/dist/components/table/filter.d.ts.map +0 -1
- package/dist/components/table/group.d.ts +0 -17
- package/dist/components/table/group.d.ts.map +0 -1
- package/dist/components/table/index.d.ts +0 -20
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/inner-table.d.ts +0 -29
- package/dist/components/table/inner-table.d.ts.map +0 -1
- package/dist/components/table/metadata.d.ts +0 -4
- package/dist/components/table/metadata.d.ts.map +0 -1
- package/dist/components/table/pagination.d.ts +0 -3
- package/dist/components/table/pagination.d.ts.map +0 -1
- package/dist/components/table/row.d.ts +0 -12
- package/dist/components/table/row.d.ts.map +0 -1
- package/dist/components/table/sort.d.ts +0 -28
- package/dist/components/table/sort.d.ts.map +0 -1
- package/dist/components/table/table-lib.d.ts +0 -135
- package/dist/components/table/table-lib.d.ts.map +0 -1
- package/dist/components/table/table.context.d.ts +0 -10
- package/dist/components/table/table.context.d.ts.map +0 -1
- package/dist/components/table/thead.d.ts +0 -9
- package/dist/components/table/thead.d.ts.map +0 -1
- package/dist/config/context.d.ts +0 -21
- package/dist/config/context.d.ts.map +0 -1
- package/dist/config/default-translations.d.ts +0 -90
- package/dist/config/default-translations.d.ts.map +0 -1
- package/dist/config/default-tweaks.d.ts +0 -13
- package/dist/config/default-tweaks.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +0 -1
- package/dist/context-BFXNJVn2.js.map +0 -1
- package/dist/date-picker-DwNo22lx.js.map +0 -1
- package/dist/dom-Dl8XH0CK.js.map +0 -1
- package/dist/file-upload-Brf2NkLr.js.map +0 -1
- package/dist/floating-ui.react-QNHG9W4N.js.map +0 -1
- package/dist/fns-D2eyJKd5.js.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-color-parser.d.ts +0 -2
- package/dist/hooks/use-color-parser.d.ts.map +0 -1
- package/dist/hooks/use-components-provider.d.ts +0 -15
- package/dist/hooks/use-components-provider.d.ts.map +0 -1
- package/dist/hooks/use-debounce.d.ts +0 -5
- package/dist/hooks/use-debounce.d.ts.map +0 -1
- package/dist/hooks/use-floating-ref.d.ts +0 -2
- package/dist/hooks/use-floating-ref.d.ts.map +0 -1
- package/dist/hooks/use-form.d.ts +0 -394
- package/dist/hooks/use-form.d.ts.map +0 -1
- package/dist/hooks/use-hover.d.ts +0 -3
- package/dist/hooks/use-hover.d.ts.map +0 -1
- package/dist/hooks/use-input-id.d.ts +0 -4
- package/dist/hooks/use-input-id.d.ts.map +0 -1
- package/dist/hooks/use-is-coarse-device.d.ts +0 -2
- package/dist/hooks/use-is-coarse-device.d.ts.map +0 -1
- package/dist/hooks/use-locale.d.ts +0 -3
- package/dist/hooks/use-locale.d.ts.map +0 -1
- package/dist/hooks/use-media-query.d.ts +0 -2
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-on-event.d.ts +0 -4
- package/dist/hooks/use-on-event.d.ts.map +0 -1
- package/dist/hooks/use-parent.d.ts +0 -3
- package/dist/hooks/use-parent.d.ts.map +0 -1
- package/dist/hooks/use-preferences.d.ts +0 -2
- package/dist/hooks/use-preferences.d.ts.map +0 -1
- package/dist/hooks/use-previous.d.ts +0 -2
- package/dist/hooks/use-previous.d.ts.map +0 -1
- package/dist/hooks/use-reactive.d.ts +0 -2
- package/dist/hooks/use-reactive.d.ts.map +0 -1
- package/dist/hooks/use-remove-scroll.d.ts +0 -4
- package/dist/hooks/use-remove-scroll.d.ts.map +0 -1
- package/dist/hooks/use-resize-observer.d.ts +0 -2
- package/dist/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/hooks/use-stable-ref.d.ts +0 -2
- package/dist/hooks/use-stable-ref.d.ts.map +0 -1
- package/dist/hooks/use-swipe.d.ts +0 -8
- package/dist/hooks/use-swipe.d.ts.map +0 -1
- package/dist/hooks/use-translations.d.ts +0 -88
- package/dist/hooks/use-translations.d.ts.map +0 -1
- package/dist/hooks/use-tweaks.d.ts +0 -3
- package/dist/hooks/use-tweaks.d.ts.map +0 -1
- package/dist/hooks/use-window-size.d.ts +0 -5
- package/dist/hooks/use-window-size.d.ts.map +0 -1
- package/dist/index-BelDtX5M.js.map +0 -1
- package/dist/index-DJSMaZR4.js.map +0 -1
- package/dist/index-Z-fZHxfJ.js +0 -335
- package/dist/index-Z-fZHxfJ.js.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/input-CrGrSnUt.js.map +0 -1
- package/dist/input-field-5vYcz5tT.js.map +0 -1
- package/dist/lib/combi-keys.d.ts +0 -15
- package/dist/lib/combi-keys.d.ts.map +0 -1
- package/dist/lib/dict.d.ts +0 -12
- package/dist/lib/dict.d.ts.map +0 -1
- package/dist/lib/dom.d.ts +0 -19
- package/dist/lib/dom.d.ts.map +0 -1
- package/dist/lib/fns.d.ts +0 -11
- package/dist/lib/fns.d.ts.map +0 -1
- package/dist/lib/fzf.d.ts +0 -16
- package/dist/lib/fzf.d.ts.map +0 -1
- package/dist/lib/keyboard-area.d.ts +0 -16
- package/dist/lib/keyboard-area.d.ts.map +0 -1
- package/dist/notifications-cUdVPs-B.js +0 -2786
- package/dist/notifications-cUdVPs-B.js.map +0 -1
- package/dist/skeleton-D75GFBV6.js +0 -10
- package/dist/skeleton-D75GFBV6.js.map +0 -1
- package/dist/tabs-S00a8qq8.js +0 -106
- package/dist/tabs-S00a8qq8.js.map +0 -1
- package/dist/types.d.ts +0 -26
- package/dist/types.d.ts.map +0 -1
- package/dist/use-translations-BwLKTrZv.js +0 -10
- package/dist/use-translations-BwLKTrZv.js.map +0 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as f, jsxs as Y } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
3
|
import { useContext as Ft, useRef as R, useEffect as Ct } from "react";
|
|
4
4
|
import { p as At } from "./IconBase.es-DJ1oCtpo.js";
|
|
5
5
|
import { e as It } from "./CaretRight.es-0-M8D9y8.js";
|
|
6
|
-
import { c as X, I as C } from "./dom-
|
|
7
|
-
import { a as _t, I as qt } from "./input-
|
|
8
|
-
import { u as Ht } from "./index-
|
|
9
|
-
import { C as Lt } from "./
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as Rt, a as Xt } from "./fns-D2eyJKd5.js";
|
|
6
|
+
import { c as X, I as C } from "./dom-CyQHY7ID.js";
|
|
7
|
+
import { a as _t, I as qt } from "./input-_MVxmIpu.js";
|
|
8
|
+
import { u as Ht } from "./index-BJ1ayTam.js";
|
|
9
|
+
import { C as Lt, u as yt } from "./use-translations-DSltA7H_.js";
|
|
10
|
+
import { u as Rt, a as Xt } from "./fns-C7Dt27Qd.js";
|
|
12
11
|
import { A as jt, m as E } from "./proxy-BZcQiBrp.js";
|
|
13
12
|
import { M as Vt } from "./index-0YMC-_Lt.js";
|
|
14
13
|
const Qt = /* @__PURE__ */ new Map([
|
|
@@ -43,7 +42,7 @@ const $t = (t) => {
|
|
|
43
42
|
if (t) return t;
|
|
44
43
|
if (e)
|
|
45
44
|
return e.locale || t;
|
|
46
|
-
}, bt = 6048e5, Bt = 864e5,
|
|
45
|
+
}, bt = 6048e5, Bt = 864e5, An = 6e4, In = 36e5, _n = 1e3, it = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
47
46
|
function M(t, e) {
|
|
48
47
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && it in t ? t[it](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
49
48
|
}
|
|
@@ -77,7 +76,7 @@ function F(t, e, n) {
|
|
|
77
76
|
hours: c = 0,
|
|
78
77
|
minutes: g = 0,
|
|
79
78
|
seconds: w = 0
|
|
80
|
-
} = e, l = y(t, n?.in),
|
|
79
|
+
} = e, l = y(t, n?.in), m = r || a ? pt(l, r + a * 12) : l, S = s || o ? Mt(m, s + o * 7) : m, V = g + c * 60, J = (w + V * 60) * 1e3;
|
|
81
80
|
return M(t, +S + J);
|
|
82
81
|
}
|
|
83
82
|
let Gt = {};
|
|
@@ -304,15 +303,15 @@ function q(t) {
|
|
|
304
303
|
return r[o];
|
|
305
304
|
};
|
|
306
305
|
}
|
|
307
|
-
const
|
|
306
|
+
const he = {
|
|
308
307
|
narrow: ["B", "A"],
|
|
309
308
|
abbreviated: ["BC", "AD"],
|
|
310
309
|
wide: ["Before Christ", "Anno Domini"]
|
|
311
|
-
},
|
|
310
|
+
}, me = {
|
|
312
311
|
narrow: ["1", "2", "3", "4"],
|
|
313
312
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
314
313
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
315
|
-
},
|
|
314
|
+
}, fe = {
|
|
316
315
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
317
316
|
abbreviated: [
|
|
318
317
|
"Jan",
|
|
@@ -432,16 +431,16 @@ const me = {
|
|
|
432
431
|
}, Me = {
|
|
433
432
|
ordinalNumber: be,
|
|
434
433
|
era: q({
|
|
435
|
-
values:
|
|
434
|
+
values: he,
|
|
436
435
|
defaultWidth: "wide"
|
|
437
436
|
}),
|
|
438
437
|
quarter: q({
|
|
439
|
-
values:
|
|
438
|
+
values: me,
|
|
440
439
|
defaultWidth: "wide",
|
|
441
440
|
argumentCallback: (t) => t - 1
|
|
442
441
|
}),
|
|
443
442
|
month: q({
|
|
444
|
-
values:
|
|
443
|
+
values: fe,
|
|
445
444
|
defaultWidth: "wide"
|
|
446
445
|
}),
|
|
447
446
|
day: q({
|
|
@@ -460,9 +459,9 @@ function H(t) {
|
|
|
460
459
|
const a = n.width, r = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], o = e.match(r);
|
|
461
460
|
if (!o)
|
|
462
461
|
return null;
|
|
463
|
-
const s = o[0], c = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], g = Array.isArray(c) ? De(c, (
|
|
462
|
+
const s = o[0], c = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], g = Array.isArray(c) ? De(c, (m) => m.test(s)) : (
|
|
464
463
|
// [TODO] -- I challenge you to fix the type
|
|
465
|
-
pe(c, (
|
|
464
|
+
pe(c, (m) => m.test(s))
|
|
466
465
|
);
|
|
467
466
|
let w;
|
|
468
467
|
w = t.valueCallback ? t.valueCallback(g) : g, w = n.valueCallback ? (
|
|
@@ -635,7 +634,7 @@ function Le(t, e) {
|
|
|
635
634
|
const n = y(t, e?.in), a = +N(n, e) - +He(n, e);
|
|
636
635
|
return Math.round(a / bt) + 1;
|
|
637
636
|
}
|
|
638
|
-
function
|
|
637
|
+
function h(t, e) {
|
|
639
638
|
const n = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(e, "0");
|
|
640
639
|
return n + a;
|
|
641
640
|
}
|
|
@@ -643,16 +642,16 @@ const O = {
|
|
|
643
642
|
// Year
|
|
644
643
|
y(t, e) {
|
|
645
644
|
const n = t.getFullYear(), a = n > 0 ? n : 1 - n;
|
|
646
|
-
return
|
|
645
|
+
return h(e === "yy" ? a % 100 : a, e.length);
|
|
647
646
|
},
|
|
648
647
|
// Month
|
|
649
648
|
M(t, e) {
|
|
650
649
|
const n = t.getMonth();
|
|
651
|
-
return e === "M" ? String(n + 1) :
|
|
650
|
+
return e === "M" ? String(n + 1) : h(n + 1, 2);
|
|
652
651
|
},
|
|
653
652
|
// Day of the month
|
|
654
653
|
d(t, e) {
|
|
655
|
-
return
|
|
654
|
+
return h(t.getDate(), e.length);
|
|
656
655
|
},
|
|
657
656
|
// AM or PM
|
|
658
657
|
a(t, e) {
|
|
@@ -671,26 +670,26 @@ const O = {
|
|
|
671
670
|
},
|
|
672
671
|
// Hour [1-12]
|
|
673
672
|
h(t, e) {
|
|
674
|
-
return
|
|
673
|
+
return h(t.getHours() % 12 || 12, e.length);
|
|
675
674
|
},
|
|
676
675
|
// Hour [0-23]
|
|
677
676
|
H(t, e) {
|
|
678
|
-
return
|
|
677
|
+
return h(t.getHours(), e.length);
|
|
679
678
|
},
|
|
680
679
|
// Minute
|
|
681
680
|
m(t, e) {
|
|
682
|
-
return
|
|
681
|
+
return h(t.getMinutes(), e.length);
|
|
683
682
|
},
|
|
684
683
|
// Second
|
|
685
684
|
s(t, e) {
|
|
686
|
-
return
|
|
685
|
+
return h(t.getSeconds(), e.length);
|
|
687
686
|
},
|
|
688
687
|
// Fraction of second
|
|
689
688
|
S(t, e) {
|
|
690
689
|
const n = e.length, a = t.getMilliseconds(), r = Math.trunc(
|
|
691
690
|
a * Math.pow(10, n - 3)
|
|
692
691
|
);
|
|
693
|
-
return
|
|
692
|
+
return h(r, e.length);
|
|
694
693
|
}
|
|
695
694
|
}, W = {
|
|
696
695
|
midnight: "midnight",
|
|
@@ -729,14 +728,14 @@ const O = {
|
|
|
729
728
|
const r = St(t, a), o = r > 0 ? r : 1 - r;
|
|
730
729
|
if (e === "YY") {
|
|
731
730
|
const s = o % 100;
|
|
732
|
-
return
|
|
731
|
+
return h(s, 2);
|
|
733
732
|
}
|
|
734
|
-
return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) :
|
|
733
|
+
return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : h(o, e.length);
|
|
735
734
|
},
|
|
736
735
|
// ISO week-numbering year
|
|
737
736
|
R: function(t, e) {
|
|
738
737
|
const n = Dt(t);
|
|
739
|
-
return
|
|
738
|
+
return h(n, e.length);
|
|
740
739
|
},
|
|
741
740
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
742
741
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -749,7 +748,7 @@ const O = {
|
|
|
749
748
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
750
749
|
u: function(t, e) {
|
|
751
750
|
const n = t.getFullYear();
|
|
752
|
-
return
|
|
751
|
+
return h(n, e.length);
|
|
753
752
|
},
|
|
754
753
|
// Quarter
|
|
755
754
|
Q: function(t, e, n) {
|
|
@@ -760,7 +759,7 @@ const O = {
|
|
|
760
759
|
return String(a);
|
|
761
760
|
// 01, 02, 03, 04
|
|
762
761
|
case "QQ":
|
|
763
|
-
return
|
|
762
|
+
return h(a, 2);
|
|
764
763
|
// 1st, 2nd, 3rd, 4th
|
|
765
764
|
case "Qo":
|
|
766
765
|
return n.ordinalNumber(a, { unit: "quarter" });
|
|
@@ -792,7 +791,7 @@ const O = {
|
|
|
792
791
|
return String(a);
|
|
793
792
|
// 01, 02, 03, 04
|
|
794
793
|
case "qq":
|
|
795
|
-
return
|
|
794
|
+
return h(a, 2);
|
|
796
795
|
// 1st, 2nd, 3rd, 4th
|
|
797
796
|
case "qo":
|
|
798
797
|
return n.ordinalNumber(a, { unit: "quarter" });
|
|
@@ -850,7 +849,7 @@ const O = {
|
|
|
850
849
|
return String(a + 1);
|
|
851
850
|
// 01, 02, ..., 12
|
|
852
851
|
case "LL":
|
|
853
|
-
return
|
|
852
|
+
return h(a + 1, 2);
|
|
854
853
|
// 1st, 2nd, ..., 12th
|
|
855
854
|
case "Lo":
|
|
856
855
|
return n.ordinalNumber(a + 1, { unit: "month" });
|
|
@@ -873,12 +872,12 @@ const O = {
|
|
|
873
872
|
// Local week of year
|
|
874
873
|
w: function(t, e, n, a) {
|
|
875
874
|
const r = Le(t, a);
|
|
876
|
-
return e === "wo" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
875
|
+
return e === "wo" ? n.ordinalNumber(r, { unit: "week" }) : h(r, e.length);
|
|
877
876
|
},
|
|
878
877
|
// ISO week of year
|
|
879
878
|
I: function(t, e, n) {
|
|
880
879
|
const a = qe(t);
|
|
881
|
-
return e === "Io" ? n.ordinalNumber(a, { unit: "week" }) :
|
|
880
|
+
return e === "Io" ? n.ordinalNumber(a, { unit: "week" }) : h(a, e.length);
|
|
882
881
|
},
|
|
883
882
|
// Day of the month
|
|
884
883
|
d: function(t, e, n) {
|
|
@@ -887,7 +886,7 @@ const O = {
|
|
|
887
886
|
// Day of year
|
|
888
887
|
D: function(t, e, n) {
|
|
889
888
|
const a = _e(t);
|
|
890
|
-
return e === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) :
|
|
889
|
+
return e === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : h(a, e.length);
|
|
891
890
|
},
|
|
892
891
|
// Day of week
|
|
893
892
|
E: function(t, e, n) {
|
|
@@ -929,7 +928,7 @@ const O = {
|
|
|
929
928
|
return String(o);
|
|
930
929
|
// Padded numerical value
|
|
931
930
|
case "ee":
|
|
932
|
-
return
|
|
931
|
+
return h(o, 2);
|
|
933
932
|
// 1st, 2nd, ..., 7th
|
|
934
933
|
case "eo":
|
|
935
934
|
return n.ordinalNumber(o, { unit: "day" });
|
|
@@ -966,7 +965,7 @@ const O = {
|
|
|
966
965
|
return String(o);
|
|
967
966
|
// Padded numerical value
|
|
968
967
|
case "cc":
|
|
969
|
-
return
|
|
968
|
+
return h(o, e.length);
|
|
970
969
|
// 1st, 2nd, ..., 7th
|
|
971
970
|
case "co":
|
|
972
971
|
return n.ordinalNumber(o, { unit: "day" });
|
|
@@ -1003,7 +1002,7 @@ const O = {
|
|
|
1003
1002
|
return String(r);
|
|
1004
1003
|
// 02
|
|
1005
1004
|
case "ii":
|
|
1006
|
-
return
|
|
1005
|
+
return h(r, e.length);
|
|
1007
1006
|
// 2nd
|
|
1008
1007
|
case "io":
|
|
1009
1008
|
return n.ordinalNumber(r, { unit: "day" });
|
|
@@ -1126,12 +1125,12 @@ const O = {
|
|
|
1126
1125
|
// Hour [0-11]
|
|
1127
1126
|
K: function(t, e, n) {
|
|
1128
1127
|
const a = t.getHours() % 12;
|
|
1129
|
-
return e === "Ko" ? n.ordinalNumber(a, { unit: "hour" }) :
|
|
1128
|
+
return e === "Ko" ? n.ordinalNumber(a, { unit: "hour" }) : h(a, e.length);
|
|
1130
1129
|
},
|
|
1131
1130
|
// Hour [1-24]
|
|
1132
1131
|
k: function(t, e, n) {
|
|
1133
1132
|
let a = t.getHours();
|
|
1134
|
-
return a === 0 && (a = 24), e === "ko" ? n.ordinalNumber(a, { unit: "hour" }) :
|
|
1133
|
+
return a === 0 && (a = 24), e === "ko" ? n.ordinalNumber(a, { unit: "hour" }) : h(a, e.length);
|
|
1135
1134
|
},
|
|
1136
1135
|
// Minute
|
|
1137
1136
|
m: function(t, e, n) {
|
|
@@ -1212,25 +1211,25 @@ const O = {
|
|
|
1212
1211
|
// Seconds timestamp
|
|
1213
1212
|
t: function(t, e, n) {
|
|
1214
1213
|
const a = Math.trunc(+t / 1e3);
|
|
1215
|
-
return
|
|
1214
|
+
return h(a, e.length);
|
|
1216
1215
|
},
|
|
1217
1216
|
// Milliseconds timestamp
|
|
1218
1217
|
T: function(t, e, n) {
|
|
1219
|
-
return
|
|
1218
|
+
return h(+t, e.length);
|
|
1220
1219
|
}
|
|
1221
1220
|
};
|
|
1222
1221
|
function dt(t, e = "") {
|
|
1223
1222
|
const n = t > 0 ? "-" : "+", a = Math.abs(t), r = Math.trunc(a / 60), o = a % 60;
|
|
1224
|
-
return o === 0 ? n + String(r) : n + String(r) + e +
|
|
1223
|
+
return o === 0 ? n + String(r) : n + String(r) + e + h(o, 2);
|
|
1225
1224
|
}
|
|
1226
1225
|
function lt(t, e) {
|
|
1227
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") +
|
|
1226
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + h(Math.abs(t) / 60, 2) : T(t, e);
|
|
1228
1227
|
}
|
|
1229
1228
|
function T(t, e = "") {
|
|
1230
|
-
const n = t > 0 ? "-" : "+", a = Math.abs(t), r =
|
|
1229
|
+
const n = t > 0 ? "-" : "+", a = Math.abs(t), r = h(Math.trunc(a / 60), 2), o = h(a % 60, 2);
|
|
1231
1230
|
return n + r + e + o;
|
|
1232
1231
|
}
|
|
1233
|
-
const
|
|
1232
|
+
const ht = (t, e) => {
|
|
1234
1233
|
switch (t) {
|
|
1235
1234
|
case "P":
|
|
1236
1235
|
return e.date({ width: "short" });
|
|
@@ -1255,7 +1254,7 @@ const mt = (t, e) => {
|
|
|
1255
1254
|
}, Re = (t, e) => {
|
|
1256
1255
|
const n = t.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
|
|
1257
1256
|
if (!r)
|
|
1258
|
-
return
|
|
1257
|
+
return ht(t, e);
|
|
1259
1258
|
let o;
|
|
1260
1259
|
switch (a) {
|
|
1261
1260
|
case "P":
|
|
@@ -1271,7 +1270,7 @@ const mt = (t, e) => {
|
|
|
1271
1270
|
o = e.dateTime({ width: "full" });
|
|
1272
1271
|
break;
|
|
1273
1272
|
}
|
|
1274
|
-
return o.replace("{{date}}",
|
|
1273
|
+
return o.replace("{{date}}", ht(a, e)).replace("{{time}}", kt(r, e));
|
|
1275
1274
|
}, Xe = {
|
|
1276
1275
|
p: kt,
|
|
1277
1276
|
P: Re
|
|
@@ -1296,23 +1295,23 @@ function en(t, e, n) {
|
|
|
1296
1295
|
if (!te(c))
|
|
1297
1296
|
throw new RangeError("Invalid time value");
|
|
1298
1297
|
let g = e.match(Ke).map((l) => {
|
|
1299
|
-
const
|
|
1300
|
-
if (
|
|
1301
|
-
const S = Xe[
|
|
1298
|
+
const m = l[0];
|
|
1299
|
+
if (m === "p" || m === "P") {
|
|
1300
|
+
const S = Xe[m];
|
|
1302
1301
|
return S(l, r.formatLong);
|
|
1303
1302
|
}
|
|
1304
1303
|
return l;
|
|
1305
1304
|
}).join("").match(Je).map((l) => {
|
|
1306
1305
|
if (l === "''")
|
|
1307
1306
|
return { isToken: !1, value: "'" };
|
|
1308
|
-
const
|
|
1309
|
-
if (
|
|
1307
|
+
const m = l[0];
|
|
1308
|
+
if (m === "'")
|
|
1310
1309
|
return { isToken: !1, value: nn(l) };
|
|
1311
|
-
if (ut[
|
|
1310
|
+
if (ut[m])
|
|
1312
1311
|
return { isToken: !0, value: l };
|
|
1313
|
-
if (
|
|
1312
|
+
if (m.match(tn))
|
|
1314
1313
|
throw new RangeError(
|
|
1315
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1314
|
+
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
1316
1315
|
);
|
|
1317
1316
|
return { isToken: !1, value: l };
|
|
1318
1317
|
});
|
|
@@ -1324,10 +1323,10 @@ function en(t, e, n) {
|
|
|
1324
1323
|
};
|
|
1325
1324
|
return g.map((l) => {
|
|
1326
1325
|
if (!l.isToken) return l.value;
|
|
1327
|
-
const
|
|
1328
|
-
(Be(
|
|
1329
|
-
const S = ut[
|
|
1330
|
-
return S(c,
|
|
1326
|
+
const m = l.value;
|
|
1327
|
+
(Be(m) || $e(m)) && Ge(m, e, String(t));
|
|
1328
|
+
const S = ut[m[0]];
|
|
1329
|
+
return S(c, m, r.localize, w);
|
|
1331
1330
|
}).join("");
|
|
1332
1331
|
}
|
|
1333
1332
|
function nn(t) {
|
|
@@ -1371,11 +1370,11 @@ function ln(t, e, n) {
|
|
|
1371
1370
|
let a = y(t, n?.in);
|
|
1372
1371
|
return isNaN(+a) ? M(t, NaN) : (e.year != null && a.setFullYear(e.year), e.month != null && (a = dn(a, e.month)), e.date != null && a.setDate(e.date), e.hours != null && a.setHours(e.hours), e.minutes != null && a.setMinutes(e.minutes), e.seconds != null && a.setSeconds(e.seconds), e.milliseconds != null && a.setMilliseconds(e.milliseconds), a);
|
|
1373
1372
|
}
|
|
1374
|
-
function
|
|
1373
|
+
function hn(t, e, n) {
|
|
1375
1374
|
const a = y(t, n?.in);
|
|
1376
1375
|
return isNaN(+a) ? M(t, NaN) : (a.setFullYear(e), a);
|
|
1377
1376
|
}
|
|
1378
|
-
function
|
|
1377
|
+
function mn(t, e, n) {
|
|
1379
1378
|
return pt(t, -e, n);
|
|
1380
1379
|
}
|
|
1381
1380
|
function L(t, e, n) {
|
|
@@ -1387,17 +1386,17 @@ function L(t, e, n) {
|
|
|
1387
1386
|
hours: c = 0,
|
|
1388
1387
|
minutes: g = 0,
|
|
1389
1388
|
seconds: w = 0
|
|
1390
|
-
} = e, l =
|
|
1391
|
-
return M(t, +
|
|
1389
|
+
} = e, l = mn(t, r + a * 12, n), m = un(l, s + o * 7, n), S = g + c * 60, Q = (w + S * 60) * 1e3;
|
|
1390
|
+
return M(t, +m - Q);
|
|
1392
1391
|
}
|
|
1393
|
-
const
|
|
1392
|
+
const fn = (t, e = 0) => {
|
|
1394
1393
|
let n;
|
|
1395
1394
|
return function(...r) {
|
|
1396
1395
|
clearTimeout(n), n = setTimeout(() => t(...r), e);
|
|
1397
1396
|
};
|
|
1398
1397
|
};
|
|
1399
1398
|
function gn(t, e) {
|
|
1400
|
-
return R(
|
|
1399
|
+
return R(fn(t, e)).current;
|
|
1401
1400
|
}
|
|
1402
1401
|
function yn(t, e) {
|
|
1403
1402
|
const n = R(null);
|
|
@@ -1407,16 +1406,16 @@ function yn(t, e) {
|
|
|
1407
1406
|
Math.abs(c) > e && t(o, c > 0 ? "right" : "left"), n.current = null;
|
|
1408
1407
|
} };
|
|
1409
1408
|
}
|
|
1410
|
-
const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, duration: 0.6 },
|
|
1411
|
-
enter:
|
|
1412
|
-
exit:
|
|
1409
|
+
const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, duration: 0.6 }, mt = (t) => (e = 1) => ({ x: `${100 * t * e}%`, opacity: 0.25 }), Ot = {
|
|
1410
|
+
enter: mt(1),
|
|
1411
|
+
exit: mt(-1),
|
|
1413
1412
|
middle: { x: "0%", opacity: 1 }
|
|
1414
|
-
},
|
|
1413
|
+
}, ft = { exit: { visibility: "hidden" } }, Mn = (t) => {
|
|
1415
1414
|
const e = N(vt(t));
|
|
1416
1415
|
return xt({ start: e, end: F(e, { days: 41 }) });
|
|
1417
1416
|
}, Pt = (t, e) => t.toLocaleDateString(e, { month: "long" }), pn = (t, e, n) => Array.from({ length: 12 }).map((a, r) => {
|
|
1418
1417
|
const o = vt(new Date(1970, r, 1).setMonth(r)), s = Pt(o, n);
|
|
1419
|
-
return /* @__PURE__ */
|
|
1418
|
+
return /* @__PURE__ */ f("option", { value: s, "data-index": r, children: s }, `${t}-${s}`);
|
|
1420
1419
|
}), rt = {
|
|
1421
1420
|
ArrowLeft: (t, e) => e === "days" ? L(t, { days: 1 }) : L(t, { months: 1 }),
|
|
1422
1421
|
ArrowRight: (t, e) => e === "days" ? F(t, { days: 1 }) : F(t, { months: 1 }),
|
|
@@ -1436,10 +1435,10 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1436
1435
|
a === 0 && o(), setTimeout(o, a);
|
|
1437
1436
|
}, P = (t) => t.getFullYear().toString().padStart(4, "0"), Dn = (t, e, n) => t === void 0 || n === void 0 ? !1 : rn(e, t) && on(e, n), xn = (t) => {
|
|
1438
1437
|
const e = yt();
|
|
1439
|
-
return /* @__PURE__ */
|
|
1438
|
+
return /* @__PURE__ */ f(E.tbody, { layout: !0, variants: Ot, custom: t.direction, onKeyDown: t.onKeyDown, className: X(t.styles?.week), children: t.zip.map((n, a) => {
|
|
1440
1439
|
const r = C.function(t.styles?.week) ? t.styles?.week(n) : t.styles?.week;
|
|
1441
|
-
return /* @__PURE__ */
|
|
1442
|
-
const s = o.toISOString(), c = t.rangeMode ? s === t.range?.to?.toISOString() || s === t.range?.from?.toISOString() : s === (t.date ? A(t.date).toISOString() : void 0), g = cn(o) && t.markToday, w = t.disabledDate?.(o) || !1, l = sn(o, t.stateDate),
|
|
1440
|
+
return /* @__PURE__ */ f("tr", { className: r, children: n.map((o) => {
|
|
1441
|
+
const s = o.toISOString(), c = t.rangeMode ? s === t.range?.to?.toISOString() || s === t.range?.from?.toISOString() : s === (t.date ? A(t.date).toISOString() : void 0), g = cn(o) && t.markToday, w = t.disabledDate?.(o) || !1, l = sn(o, t.stateDate), m = !l || w, S = t.rangeMode ? Dn(t.range?.from, o, t.range?.to) : !1;
|
|
1443
1442
|
return /* @__PURE__ */ Y(
|
|
1444
1443
|
"td",
|
|
1445
1444
|
{
|
|
@@ -1460,26 +1459,26 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1460
1459
|
onClick: t.dispatch.onSelectDate,
|
|
1461
1460
|
"data-view": t.stateDate.getMonth().toString(),
|
|
1462
1461
|
className: X(
|
|
1463
|
-
`relative flex size-9 items-center justify-center rounded-full proportional-nums disabled:cursor-not-allowed ${g ? "text-emphasis" : ""} ${
|
|
1462
|
+
`relative flex size-9 items-center justify-center rounded-full proportional-nums disabled:cursor-not-allowed ${g ? "text-emphasis" : ""} ${m ? "text-disabled" : ""} ${c ? "bg-primary text-primary-foreground" : ""}`,
|
|
1464
1463
|
S && t.markRange ? "size-9 border border-dashed border-card-border" : "",
|
|
1465
1464
|
C.function(t.styles?.day) ? t.styles?.day(o) : t.styles?.day
|
|
1466
1465
|
),
|
|
1467
1466
|
children: [
|
|
1468
|
-
/* @__PURE__ */
|
|
1467
|
+
/* @__PURE__ */ f("div", {}),
|
|
1469
1468
|
o.getDate(),
|
|
1470
|
-
c && t.stateRange.from?.toISOString() === s ? /* @__PURE__ */
|
|
1471
|
-
c && t.stateRange.to?.toISOString() === s ? /* @__PURE__ */
|
|
1469
|
+
c && t.stateRange.from?.toISOString() === s ? /* @__PURE__ */ f("span", { className: "absolute -top-2 left-0 h-full w-full", children: /* @__PURE__ */ f("span", { className: "text-xs text-foreground", children: t.labelRange?.from ?? e.calendarFromDate }) }) : null,
|
|
1470
|
+
c && t.stateRange.to?.toISOString() === s ? /* @__PURE__ */ f("span", { className: "absolute -top-2 left-0 h-full w-full", children: /* @__PURE__ */ f("span", { className: "text-xs text-foreground", children: t.labelRange?.to ?? e.calendarToDate }) }) : null
|
|
1472
1471
|
]
|
|
1473
1472
|
}
|
|
1474
1473
|
),
|
|
1475
|
-
t.RenderOnDay ? /* @__PURE__ */
|
|
1474
|
+
t.RenderOnDay ? /* @__PURE__ */ f(t.RenderOnDay, { date: o }) : null
|
|
1476
1475
|
]
|
|
1477
1476
|
},
|
|
1478
1477
|
s
|
|
1479
1478
|
);
|
|
1480
1479
|
}) }, `week-${n.length}-${a}`);
|
|
1481
1480
|
}) });
|
|
1482
|
-
}, vn = () => A(/* @__PURE__ */ new Date()),
|
|
1481
|
+
}, vn = () => A(/* @__PURE__ */ new Date()), qn = ({
|
|
1483
1482
|
RenderOnDay: t,
|
|
1484
1483
|
changeOnlyOnClick: e = !1,
|
|
1485
1484
|
labelRange: n,
|
|
@@ -1491,7 +1490,7 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1491
1490
|
rangeMode: g = !1,
|
|
1492
1491
|
onChange: w,
|
|
1493
1492
|
styles: l,
|
|
1494
|
-
markRange:
|
|
1493
|
+
markRange: m = !0,
|
|
1495
1494
|
type: S = "date",
|
|
1496
1495
|
datetimeTitle: V,
|
|
1497
1496
|
...Q
|
|
@@ -1574,14 +1573,14 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1574
1573
|
Ct(() => {
|
|
1575
1574
|
e || w?.(x.date);
|
|
1576
1575
|
}, [Yt, e]);
|
|
1577
|
-
const Nt = gn((u) => v.date((d) =>
|
|
1576
|
+
const Nt = gn((u) => v.date((d) => hn(new Date(d), +u)), 1200), Wt = (u) => {
|
|
1578
1577
|
const d = u.currentTarget.value;
|
|
1579
1578
|
v.onChangeYear(d), c?.(new Date(d)), Nt(d);
|
|
1580
1579
|
}, st = yn((u, d) => (u.preventDefault(), d === "right" ? v.previousMonth() : v.nextMonth()), 10), Et = () => {
|
|
1581
1580
|
const u = vn();
|
|
1582
1581
|
v.date(() => u), w?.(u);
|
|
1583
1582
|
};
|
|
1584
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ f(Vt, { transition: bn, children: /* @__PURE__ */ Y(
|
|
1585
1584
|
"div",
|
|
1586
1585
|
{
|
|
1587
1586
|
ref: Z,
|
|
@@ -1590,22 +1589,22 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1590
1589
|
onTouchStart: st.onTouchStart,
|
|
1591
1590
|
className: X("relative overflow-hidden", C.function(l?.calendar) ? l?.calendar(ot) : l?.calendar),
|
|
1592
1591
|
children: [
|
|
1593
|
-
/* @__PURE__ */
|
|
1592
|
+
/* @__PURE__ */ f("div", { className: "flex flex-col justify-center rounded text-center", children: /* @__PURE__ */ f(jt, { initial: !1, mode: "popLayout", custom: x.direction, onExitComplete: v.onExitComplete, children: /* @__PURE__ */ Y(E.div, { initial: "enter", animate: "middle", exit: "exit", children: [
|
|
1594
1593
|
/* @__PURE__ */ Y("header", { className: "relative flex justify-between", children: [
|
|
1595
|
-
/* @__PURE__ */
|
|
1594
|
+
/* @__PURE__ */ f(
|
|
1596
1595
|
E.button,
|
|
1597
1596
|
{
|
|
1598
1597
|
layout: !0,
|
|
1599
1598
|
type: "button",
|
|
1600
1599
|
"data-focustrap": "prev",
|
|
1601
|
-
variants:
|
|
1600
|
+
variants: ft,
|
|
1602
1601
|
onClick: v.previousMonth,
|
|
1603
1602
|
title: I.calendarBackMonth,
|
|
1604
1603
|
className: "z-calendar rounded-full p-1.5 hover:bg-primary hover:text-primary-foreground",
|
|
1605
|
-
children: /* @__PURE__ */
|
|
1604
|
+
children: /* @__PURE__ */ f(wt, { className: "h-4 w-4" })
|
|
1606
1605
|
}
|
|
1607
1606
|
),
|
|
1608
|
-
/* @__PURE__ */
|
|
1607
|
+
/* @__PURE__ */ f(
|
|
1609
1608
|
E.span,
|
|
1610
1609
|
{
|
|
1611
1610
|
layout: !0,
|
|
@@ -1613,7 +1612,7 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1613
1612
|
custom: x.direction,
|
|
1614
1613
|
className: "absolute inset-0 isolate z-normal flex items-center justify-center font-semibold",
|
|
1615
1614
|
children: /* @__PURE__ */ Y("span", { className: "flex w-fit items-center justify-center gap-0.5 py-1", children: [
|
|
1616
|
-
/* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ f(
|
|
1617
1616
|
"select",
|
|
1618
1617
|
{
|
|
1619
1618
|
value: tt,
|
|
@@ -1624,7 +1623,7 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1624
1623
|
children: x.months
|
|
1625
1624
|
}
|
|
1626
1625
|
),
|
|
1627
|
-
/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ f(
|
|
1628
1627
|
_t,
|
|
1629
1628
|
{
|
|
1630
1629
|
mask: "int",
|
|
@@ -1639,22 +1638,22 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1639
1638
|
] })
|
|
1640
1639
|
}
|
|
1641
1640
|
),
|
|
1642
|
-
/* @__PURE__ */
|
|
1641
|
+
/* @__PURE__ */ f(
|
|
1643
1642
|
E.button,
|
|
1644
1643
|
{
|
|
1645
1644
|
layout: !0,
|
|
1646
1645
|
type: "button",
|
|
1647
1646
|
"data-focustrap": "next",
|
|
1648
|
-
variants:
|
|
1647
|
+
variants: ft,
|
|
1649
1648
|
onClick: v.nextMonth,
|
|
1650
1649
|
title: I.calendarNextMonth,
|
|
1651
1650
|
className: "z-calendar rounded-full p-1.5 hover:bg-primary hover:text-primary-foreground",
|
|
1652
|
-
children: /* @__PURE__ */
|
|
1651
|
+
children: /* @__PURE__ */ f(It, { className: "h-4 w-4" })
|
|
1653
1652
|
}
|
|
1654
1653
|
)
|
|
1655
1654
|
] }),
|
|
1656
1655
|
/* @__PURE__ */ Y(E.table, { className: "mt-2 table min-w-full table-auto border-0", children: [
|
|
1657
|
-
/* @__PURE__ */
|
|
1656
|
+
/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ f("tr", { children: x.week.map((u) => /* @__PURE__ */ f(
|
|
1658
1657
|
"th",
|
|
1659
1658
|
{
|
|
1660
1659
|
role: "columnheader",
|
|
@@ -1666,7 +1665,7 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1666
1665
|
},
|
|
1667
1666
|
u.toString()
|
|
1668
1667
|
)) }) }),
|
|
1669
|
-
/* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ f(
|
|
1670
1669
|
xn,
|
|
1671
1670
|
{
|
|
1672
1671
|
zip: Tt,
|
|
@@ -1674,7 +1673,7 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1674
1673
|
styles: l,
|
|
1675
1674
|
date: $ || null,
|
|
1676
1675
|
dispatch: v,
|
|
1677
|
-
markRange:
|
|
1676
|
+
markRange: m,
|
|
1678
1677
|
markToday: o,
|
|
1679
1678
|
rangeMode: g,
|
|
1680
1679
|
stateDate: x.date,
|
|
@@ -1688,7 +1687,7 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1688
1687
|
)
|
|
1689
1688
|
] })
|
|
1690
1689
|
] }, tt) }) }),
|
|
1691
|
-
S === "datetime" ? /* @__PURE__ */
|
|
1690
|
+
S === "datetime" ? /* @__PURE__ */ f("section", { className: "my-4 grid items-center", children: /* @__PURE__ */ f(
|
|
1692
1691
|
qt,
|
|
1693
1692
|
{
|
|
1694
1693
|
info: null,
|
|
@@ -1706,7 +1705,7 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1706
1705
|
}
|
|
1707
1706
|
}
|
|
1708
1707
|
) }) : null,
|
|
1709
|
-
/* @__PURE__ */
|
|
1708
|
+
/* @__PURE__ */ f("footer", { className: "mt-2 text-center text-primary", children: /* @__PURE__ */ f("button", { type: "button", onClick: Et, className: "transition-transform duration-300 hover:scale-105", children: I.calendarToday }) })
|
|
1710
1709
|
]
|
|
1711
1710
|
}
|
|
1712
1711
|
) });
|
|
@@ -1714,12 +1713,12 @@ const wn = /^(?<hour>\d\d):(?<min>\d\d)$/, bn = { type: "spring", bounce: 0.3, d
|
|
|
1714
1713
|
export {
|
|
1715
1714
|
Ge as A,
|
|
1716
1715
|
$e as B,
|
|
1717
|
-
|
|
1716
|
+
qn as C,
|
|
1718
1717
|
en as D,
|
|
1719
1718
|
A as E,
|
|
1720
1719
|
Mt as a,
|
|
1721
1720
|
N as b,
|
|
1722
|
-
|
|
1721
|
+
mn as c,
|
|
1723
1722
|
un as d,
|
|
1724
1723
|
pt as e,
|
|
1725
1724
|
sn as f,
|
|
@@ -1730,9 +1729,9 @@ export {
|
|
|
1730
1729
|
j as k,
|
|
1731
1730
|
y as l,
|
|
1732
1731
|
M as m,
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1732
|
+
In as n,
|
|
1733
|
+
An as o,
|
|
1734
|
+
_n as p,
|
|
1736
1735
|
St as q,
|
|
1737
1736
|
G as r,
|
|
1738
1737
|
vt as s,
|
|
@@ -1744,4 +1743,4 @@ export {
|
|
|
1744
1743
|
Xe as y,
|
|
1745
1744
|
Be as z
|
|
1746
1745
|
};
|
|
1747
|
-
//# sourceMappingURL=calendar-
|
|
1746
|
+
//# sourceMappingURL=calendar-BJMHRoy2.js.map
|