@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
|
@@ -4,7 +4,7 @@ import * as n from "react";
|
|
|
4
4
|
import pt, { useMemo as ge, useRef as be, useReducer as lt, useEffect as Ee, useCallback as K, forwardRef as ct, useImperativeHandle as st, Fragment as Fa, createContext as dt, useState as Ke, useContext as mt } from "react";
|
|
5
5
|
import { p as fe } from "./IconBase.es-DJ1oCtpo.js";
|
|
6
6
|
import { e as ut } from "./X.es-BJ1O93El.js";
|
|
7
|
-
import { u as _a } from "./use-translations-
|
|
7
|
+
import { u as _a } from "./use-translations-DSltA7H_.js";
|
|
8
8
|
import { Modal as ft } from "./components/floating/modal.js";
|
|
9
9
|
var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function Pa(e) {
|
|
@@ -321,41 +321,41 @@ function Tt(e, a) {
|
|
|
321
321
|
};
|
|
322
322
|
const t = a.bits ? a.binary ? jt : kt : a.binary ? At : Et, i = a.space ? a.nonBreakingSpace ? " " : " " : "", o = typeof e == "number" ? e === 0 : e === 0n;
|
|
323
323
|
if (a.signed && o) {
|
|
324
|
-
const
|
|
325
|
-
return ca(
|
|
324
|
+
const f = ` 0${i}${t[0]}`;
|
|
325
|
+
return ca(f, a.fixedWidth);
|
|
326
326
|
}
|
|
327
327
|
const r = e < 0, l = r ? "-" : a.signed ? "+" : "";
|
|
328
328
|
r && (e = -e);
|
|
329
329
|
const c = Mt(a);
|
|
330
|
-
let
|
|
330
|
+
let g;
|
|
331
331
|
if (e < 1) {
|
|
332
|
-
const
|
|
333
|
-
|
|
332
|
+
const f = la(e, a.locale, c);
|
|
333
|
+
g = l + f + i + t[0];
|
|
334
334
|
} else {
|
|
335
|
-
const
|
|
336
|
-
if (e = Vt(e, (a.binary ? 1024 : 1e3) **
|
|
335
|
+
const f = Math.min(Math.floor(a.binary ? Ht(e) / Math.log(1024) : Ia(e) / 3), t.length - 1);
|
|
336
|
+
if (e = Vt(e, (a.binary ? 1024 : 1e3) ** f), !c) {
|
|
337
337
|
const O = Math.max(3, Math.floor(e).toString().length);
|
|
338
338
|
e = e.toPrecision(O);
|
|
339
339
|
}
|
|
340
|
-
const
|
|
341
|
-
|
|
340
|
+
const v = la(Number(e), a.locale, c), b = t[f];
|
|
341
|
+
g = l + v + i + b;
|
|
342
342
|
}
|
|
343
|
-
return ca(
|
|
343
|
+
return ca(g, a.fixedWidth);
|
|
344
344
|
}
|
|
345
345
|
var Ve = { exports: {} }, Me = { exports: {} }, T = {};
|
|
346
346
|
var sa;
|
|
347
347
|
function Dt() {
|
|
348
348
|
if (sa) return T;
|
|
349
349
|
sa = 1;
|
|
350
|
-
var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110,
|
|
350
|
+
var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, f = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, b = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, O = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, C = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, M = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, U = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, re = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
351
351
|
function I(m) {
|
|
352
352
|
if (typeof m == "object" && m !== null) {
|
|
353
353
|
var X = m.$$typeof;
|
|
354
354
|
switch (X) {
|
|
355
355
|
case a:
|
|
356
356
|
switch (m = m.type, m) {
|
|
357
|
+
case g:
|
|
357
358
|
case f:
|
|
358
|
-
case x:
|
|
359
359
|
case i:
|
|
360
360
|
case r:
|
|
361
361
|
case o:
|
|
@@ -364,7 +364,7 @@ function Dt() {
|
|
|
364
364
|
default:
|
|
365
365
|
switch (m = m && m.$$typeof, m) {
|
|
366
366
|
case c:
|
|
367
|
-
case
|
|
367
|
+
case v:
|
|
368
368
|
case C:
|
|
369
369
|
case _:
|
|
370
370
|
case l:
|
|
@@ -379,10 +379,10 @@ function Dt() {
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
function L(m) {
|
|
382
|
-
return I(m) ===
|
|
382
|
+
return I(m) === f;
|
|
383
383
|
}
|
|
384
|
-
return T.AsyncMode =
|
|
385
|
-
return L(m) || I(m) ===
|
|
384
|
+
return T.AsyncMode = g, T.ConcurrentMode = f, T.ContextConsumer = c, T.ContextProvider = l, T.Element = a, T.ForwardRef = v, T.Fragment = i, T.Lazy = C, T.Memo = _, T.Portal = t, T.Profiler = r, T.StrictMode = o, T.Suspense = b, T.isAsyncMode = function(m) {
|
|
385
|
+
return L(m) || I(m) === g;
|
|
386
386
|
}, T.isConcurrentMode = L, T.isContextConsumer = function(m) {
|
|
387
387
|
return I(m) === c;
|
|
388
388
|
}, T.isContextProvider = function(m) {
|
|
@@ -390,7 +390,7 @@ function Dt() {
|
|
|
390
390
|
}, T.isElement = function(m) {
|
|
391
391
|
return typeof m == "object" && m !== null && m.$$typeof === a;
|
|
392
392
|
}, T.isForwardRef = function(m) {
|
|
393
|
-
return I(m) ===
|
|
393
|
+
return I(m) === v;
|
|
394
394
|
}, T.isFragment = function(m) {
|
|
395
395
|
return I(m) === i;
|
|
396
396
|
}, T.isLazy = function(m) {
|
|
@@ -406,17 +406,17 @@ function Dt() {
|
|
|
406
406
|
}, T.isSuspense = function(m) {
|
|
407
407
|
return I(m) === b;
|
|
408
408
|
}, T.isValidElementType = function(m) {
|
|
409
|
-
return typeof m == "string" || typeof m == "function" || m === i || m ===
|
|
409
|
+
return typeof m == "string" || typeof m == "function" || m === i || m === f || m === r || m === o || m === b || m === O || typeof m == "object" && m !== null && (m.$$typeof === C || m.$$typeof === _ || m.$$typeof === l || m.$$typeof === c || m.$$typeof === v || m.$$typeof === R || m.$$typeof === U || m.$$typeof === re || m.$$typeof === M);
|
|
410
410
|
}, T.typeOf = I, T;
|
|
411
411
|
}
|
|
412
412
|
var D = {};
|
|
413
413
|
var da;
|
|
414
414
|
function Zt() {
|
|
415
415
|
return da || (da = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
416
|
-
var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110,
|
|
416
|
+
var e = typeof Symbol == "function" && Symbol.for, a = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, t = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, f = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, b = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, O = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, C = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, M = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, U = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, re = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
417
417
|
function I(s) {
|
|
418
418
|
return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
419
|
-
s === i || s ===
|
|
419
|
+
s === i || s === f || s === r || s === o || s === b || s === O || typeof s == "object" && s !== null && (s.$$typeof === C || s.$$typeof === _ || s.$$typeof === l || s.$$typeof === c || s.$$typeof === v || s.$$typeof === R || s.$$typeof === U || s.$$typeof === re || s.$$typeof === M);
|
|
420
420
|
}
|
|
421
421
|
function L(s) {
|
|
422
422
|
if (typeof s == "object" && s !== null) {
|
|
@@ -425,8 +425,8 @@ function Zt() {
|
|
|
425
425
|
case a:
|
|
426
426
|
var me = s.type;
|
|
427
427
|
switch (me) {
|
|
428
|
+
case g:
|
|
428
429
|
case f:
|
|
429
|
-
case x:
|
|
430
430
|
case i:
|
|
431
431
|
case r:
|
|
432
432
|
case o:
|
|
@@ -436,7 +436,7 @@ function Zt() {
|
|
|
436
436
|
var ye = me && me.$$typeof;
|
|
437
437
|
switch (ye) {
|
|
438
438
|
case c:
|
|
439
|
-
case
|
|
439
|
+
case v:
|
|
440
440
|
case C:
|
|
441
441
|
case _:
|
|
442
442
|
case l:
|
|
@@ -450,12 +450,12 @@ function Zt() {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
var m =
|
|
453
|
+
var m = g, X = f, J = c, ce = l, te = a, ie = v, se = i, de = C, pe = _, S = t, W = r, G = o, Q = b, le = !1;
|
|
454
454
|
function q(s) {
|
|
455
|
-
return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(s) || L(s) ===
|
|
455
|
+
return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(s) || L(s) === g;
|
|
456
456
|
}
|
|
457
457
|
function p(s) {
|
|
458
|
-
return L(s) ===
|
|
458
|
+
return L(s) === f;
|
|
459
459
|
}
|
|
460
460
|
function u(s) {
|
|
461
461
|
return L(s) === c;
|
|
@@ -467,7 +467,7 @@ function Zt() {
|
|
|
467
467
|
return typeof s == "object" && s !== null && s.$$typeof === a;
|
|
468
468
|
}
|
|
469
469
|
function h(s) {
|
|
470
|
-
return L(s) ===
|
|
470
|
+
return L(s) === v;
|
|
471
471
|
}
|
|
472
472
|
function E(s) {
|
|
473
473
|
return L(s) === i;
|
|
@@ -516,31 +516,31 @@ function Ot() {
|
|
|
516
516
|
return !1;
|
|
517
517
|
for (var l = {}, c = 0; c < 10; c++)
|
|
518
518
|
l["_" + String.fromCharCode(c)] = c;
|
|
519
|
-
var
|
|
520
|
-
return l[
|
|
519
|
+
var g = Object.getOwnPropertyNames(l).map(function(v) {
|
|
520
|
+
return l[v];
|
|
521
521
|
});
|
|
522
|
-
if (
|
|
522
|
+
if (g.join("") !== "0123456789")
|
|
523
523
|
return !1;
|
|
524
|
-
var
|
|
525
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
526
|
-
|
|
527
|
-
}), Object.keys(Object.assign({},
|
|
524
|
+
var f = {};
|
|
525
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(v) {
|
|
526
|
+
f[v] = v;
|
|
527
|
+
}), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
|
|
528
528
|
} catch {
|
|
529
529
|
return !1;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
return qe = o() ? Object.assign : function(r, l) {
|
|
533
|
-
for (var c,
|
|
534
|
-
c = Object(arguments[
|
|
533
|
+
for (var c, g = i(r), f, v = 1; v < arguments.length; v++) {
|
|
534
|
+
c = Object(arguments[v]);
|
|
535
535
|
for (var b in c)
|
|
536
|
-
a.call(c, b) && (
|
|
536
|
+
a.call(c, b) && (g[b] = c[b]);
|
|
537
537
|
if (e) {
|
|
538
|
-
|
|
539
|
-
for (var O = 0; O <
|
|
540
|
-
t.call(c,
|
|
538
|
+
f = e(c);
|
|
539
|
+
for (var O = 0; O < f.length; O++)
|
|
540
|
+
t.call(c, f[O]) && (g[f[O]] = c[f[O]]);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
return
|
|
543
|
+
return g;
|
|
544
544
|
}, qe;
|
|
545
545
|
}
|
|
546
546
|
var $e, fa;
|
|
@@ -571,27 +571,27 @@ function Ft() {
|
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
function o(r, l, c,
|
|
574
|
+
function o(r, l, c, g, f) {
|
|
575
575
|
if (process.env.NODE_ENV !== "production") {
|
|
576
|
-
for (var
|
|
577
|
-
if (i(r,
|
|
576
|
+
for (var v in r)
|
|
577
|
+
if (i(r, v)) {
|
|
578
578
|
var b;
|
|
579
579
|
try {
|
|
580
|
-
if (typeof r[
|
|
580
|
+
if (typeof r[v] != "function") {
|
|
581
581
|
var O = Error(
|
|
582
|
-
(
|
|
582
|
+
(g || "React class") + ": " + c + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
583
583
|
);
|
|
584
584
|
throw O.name = "Invariant Violation", O;
|
|
585
585
|
}
|
|
586
|
-
b = r[
|
|
586
|
+
b = r[v](l, v, g, c, null, a);
|
|
587
587
|
} catch (C) {
|
|
588
588
|
b = C;
|
|
589
589
|
}
|
|
590
590
|
if (b && !(b instanceof Error) && e(
|
|
591
|
-
(
|
|
591
|
+
(g || "React class") + ": type specification of " + c + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof b + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
592
592
|
), b instanceof Error && !(b.message in t)) {
|
|
593
593
|
t[b.message] = !0;
|
|
594
|
-
var _ =
|
|
594
|
+
var _ = f ? f() : "";
|
|
595
595
|
e(
|
|
596
596
|
"Failed " + c + " type: " + b.message + (_ ?? "")
|
|
597
597
|
);
|
|
@@ -610,20 +610,20 @@ function _t() {
|
|
|
610
610
|
var e = La(), a = Ot(), t = /* @__PURE__ */ na(), i = /* @__PURE__ */ qa(), o = /* @__PURE__ */ Ft(), r = function() {
|
|
611
611
|
};
|
|
612
612
|
process.env.NODE_ENV !== "production" && (r = function(c) {
|
|
613
|
-
var
|
|
614
|
-
typeof console < "u" && console.error(
|
|
613
|
+
var g = "Warning: " + c;
|
|
614
|
+
typeof console < "u" && console.error(g);
|
|
615
615
|
try {
|
|
616
|
-
throw new Error(
|
|
616
|
+
throw new Error(g);
|
|
617
617
|
} catch {
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
620
|
function l() {
|
|
621
621
|
return null;
|
|
622
622
|
}
|
|
623
|
-
return Ye = function(c,
|
|
624
|
-
var
|
|
623
|
+
return Ye = function(c, g) {
|
|
624
|
+
var f = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
625
625
|
function b(p) {
|
|
626
|
-
var u = p && (
|
|
626
|
+
var u = p && (f && p[f] || p[v]);
|
|
627
627
|
if (typeof u == "function")
|
|
628
628
|
return u;
|
|
629
629
|
}
|
|
@@ -660,7 +660,7 @@ function _t() {
|
|
|
660
660
|
var u = {}, w = 0;
|
|
661
661
|
function k(E, A, y, j, V, H, N) {
|
|
662
662
|
if (j = j || O, H = H || y, N !== t) {
|
|
663
|
-
if (
|
|
663
|
+
if (g) {
|
|
664
664
|
var s = new Error(
|
|
665
665
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
666
666
|
);
|
|
@@ -934,7 +934,7 @@ function Pt() {
|
|
|
934
934
|
function t() {
|
|
935
935
|
}
|
|
936
936
|
return t.resetWarningCache = a, We = function() {
|
|
937
|
-
function i(l, c,
|
|
937
|
+
function i(l, c, g, f, v, b) {
|
|
938
938
|
if (b !== e) {
|
|
939
939
|
var O = new Error(
|
|
940
940
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -991,24 +991,24 @@ function ve(e, a, t, i) {
|
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
993
|
return new (t || (t = Promise))(function(r, l) {
|
|
994
|
-
function c(
|
|
994
|
+
function c(v) {
|
|
995
995
|
try {
|
|
996
|
-
|
|
996
|
+
f(i.next(v));
|
|
997
997
|
} catch (b) {
|
|
998
998
|
l(b);
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function g(v) {
|
|
1002
1002
|
try {
|
|
1003
|
-
|
|
1003
|
+
f(i.throw(v));
|
|
1004
1004
|
} catch (b) {
|
|
1005
1005
|
l(b);
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
|
|
1008
|
+
function f(v) {
|
|
1009
|
+
v.done ? r(v.value) : o(v.value).then(c, g);
|
|
1010
1010
|
}
|
|
1011
|
-
|
|
1011
|
+
f((i = i.apply(e, a || [])).next());
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
1014
|
const Rt = /* @__PURE__ */ new Map([
|
|
@@ -2446,8 +2446,8 @@ function ti(e, a) {
|
|
|
2446
2446
|
try {
|
|
2447
2447
|
for (t = t.call(e); !(o = (l = t.next()).done) && (i.push(l.value), !(a && i.length === a)); o = !0)
|
|
2448
2448
|
;
|
|
2449
|
-
} catch (
|
|
2450
|
-
r = !0, c =
|
|
2449
|
+
} catch (g) {
|
|
2450
|
+
r = !0, c = g;
|
|
2451
2451
|
} finally {
|
|
2452
2452
|
try {
|
|
2453
2453
|
!o && t.return != null && t.return();
|
|
@@ -2504,8 +2504,8 @@ function ue(e) {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
function mi(e) {
|
|
2506
2506
|
var a = e.files, t = e.accept, i = e.minSize, o = e.maxSize, r = e.multiple, l = e.maxFiles, c = e.validator;
|
|
2507
|
-
return !r && a.length > 1 || r && l >= 1 && a.length > l ? !1 : a.every(function(
|
|
2508
|
-
var
|
|
2507
|
+
return !r && a.length > 1 || r && l >= 1 && a.length > l ? !1 : a.every(function(g) {
|
|
2508
|
+
var f = Wa(g, t), v = Ae(f, 1), b = v[0], O = Ua(g, i, o), _ = Ae(O, 1), C = _[0], M = c ? c(g) : null;
|
|
2509
2509
|
return b && C && !M;
|
|
2510
2510
|
});
|
|
2511
2511
|
}
|
|
@@ -2624,8 +2624,8 @@ function Ti(e, a) {
|
|
|
2624
2624
|
try {
|
|
2625
2625
|
for (t = t.call(e); !(o = (l = t.next()).done) && (i.push(l.value), !(a && i.length === a)); o = !0)
|
|
2626
2626
|
;
|
|
2627
|
-
} catch (
|
|
2628
|
-
r = !0, c =
|
|
2627
|
+
} catch (g) {
|
|
2628
|
+
r = !0, c = g;
|
|
2629
2629
|
} finally {
|
|
2630
2630
|
try {
|
|
2631
2631
|
!o && t.return != null && t.return();
|
|
@@ -2888,7 +2888,7 @@ var ia = {
|
|
|
2888
2888
|
fileRejections: []
|
|
2889
2889
|
};
|
|
2890
2890
|
function Qa() {
|
|
2891
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = P(P({}, Xa), e), t = a.accept, i = a.disabled, o = a.getFilesFromEvent, r = a.maxSize, l = a.minSize, c = a.multiple,
|
|
2891
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = P(P({}, Xa), e), t = a.accept, i = a.disabled, o = a.getFilesFromEvent, r = a.maxSize, l = a.minSize, c = a.multiple, g = a.maxFiles, f = a.onDragEnter, v = a.onDragLeave, b = a.onDragOver, O = a.onDrop, _ = a.onDropAccepted, C = a.onDropRejected, M = a.onFileDialogCancel, R = a.onFileDialogOpen, U = a.useFsAccessApi, re = a.autoFocus, I = a.preventDropOnDocument, L = a.noClick, m = a.noKeyboard, X = a.noDrag, J = a.noDragEventsBubbling, ce = a.onError, te = a.validator, ie = ge(function() {
|
|
2892
2892
|
return hi(t);
|
|
2893
2893
|
}, [t]), se = ge(function() {
|
|
2894
2894
|
return gi(t);
|
|
@@ -2899,8 +2899,8 @@ function Qa() {
|
|
|
2899
2899
|
}, [M]), S = be(null), W = be(null), G = lt(Oi, ia), Q = Ge(G, 2), le = Q[0], q = Q[1], p = le.isFocused, u = le.isFileDialogActive, w = be(typeof window < "u" && window.isSecureContext && U && xi()), k = function() {
|
|
2900
2900
|
!w.current && u && setTimeout(function() {
|
|
2901
2901
|
if (W.current) {
|
|
2902
|
-
var
|
|
2903
|
-
|
|
2902
|
+
var x = W.current.files;
|
|
2903
|
+
x.length || (q({
|
|
2904
2904
|
type: "closeDialog"
|
|
2905
2905
|
}), pe());
|
|
2906
2906
|
}
|
|
@@ -2911,8 +2911,8 @@ function Qa() {
|
|
|
2911
2911
|
window.removeEventListener("focus", k, !1);
|
|
2912
2912
|
};
|
|
2913
2913
|
}, [W, u, pe, w]);
|
|
2914
|
-
var h = be([]), E = be([]), A = function(
|
|
2915
|
-
S.current && S.current.contains(
|
|
2914
|
+
var h = be([]), E = be([]), A = function(x) {
|
|
2915
|
+
S.current && S.current.contains(x.target) || (x.preventDefault(), h.current = []);
|
|
2916
2916
|
};
|
|
2917
2917
|
Ee(function() {
|
|
2918
2918
|
return I && (document.addEventListener("dragover", Ta, !1), document.addEventListener("drop", A, !1)), function() {
|
|
@@ -2924,7 +2924,7 @@ function Qa() {
|
|
|
2924
2924
|
isDragGlobal: !0,
|
|
2925
2925
|
type: "setDragGlobal"
|
|
2926
2926
|
});
|
|
2927
|
-
},
|
|
2927
|
+
}, x = function(ee) {
|
|
2928
2928
|
E.current = E.current.filter(function(ne) {
|
|
2929
2929
|
return ne !== ee.target && ne !== null;
|
|
2930
2930
|
}), !(E.current.length > 0) && q({
|
|
@@ -2942,8 +2942,8 @@ function Qa() {
|
|
|
2942
2942
|
type: "setDragGlobal"
|
|
2943
2943
|
});
|
|
2944
2944
|
};
|
|
2945
|
-
return document.addEventListener("dragenter", d, !1), document.addEventListener("dragleave",
|
|
2946
|
-
document.removeEventListener("dragenter", d), document.removeEventListener("dragleave",
|
|
2945
|
+
return document.addEventListener("dragenter", d, !1), document.addEventListener("dragleave", x, !1), document.addEventListener("dragend", z, !1), document.addEventListener("drop", $, !1), function() {
|
|
2946
|
+
document.removeEventListener("dragenter", d), document.removeEventListener("dragleave", x), document.removeEventListener("dragend", z), document.removeEventListener("drop", $);
|
|
2947
2947
|
};
|
|
2948
2948
|
}, [S]), Ee(function() {
|
|
2949
2949
|
return !i && re && S.current && S.current.focus(), function() {
|
|
@@ -2952,15 +2952,15 @@ function Qa() {
|
|
|
2952
2952
|
var y = K(function(d) {
|
|
2953
2953
|
ce ? ce(d) : console.error(d);
|
|
2954
2954
|
}, [ce]), j = K(function(d) {
|
|
2955
|
-
d.preventDefault(), d.persist(), je(d), h.current = [].concat(Da(h.current), [d.target]), we(d) && Promise.resolve(o(d)).then(function(
|
|
2955
|
+
d.preventDefault(), d.persist(), je(d), h.current = [].concat(Da(h.current), [d.target]), we(d) && Promise.resolve(o(d)).then(function(x) {
|
|
2956
2956
|
if (!(Oe(d) && !J)) {
|
|
2957
|
-
var z =
|
|
2958
|
-
files:
|
|
2957
|
+
var z = x.length, $ = z > 0 && mi({
|
|
2958
|
+
files: x,
|
|
2959
2959
|
accept: ie,
|
|
2960
2960
|
minSize: l,
|
|
2961
2961
|
maxSize: r,
|
|
2962
2962
|
multiple: c,
|
|
2963
|
-
maxFiles:
|
|
2963
|
+
maxFiles: g,
|
|
2964
2964
|
validator: te
|
|
2965
2965
|
}), Y = z > 0 && !$;
|
|
2966
2966
|
q({
|
|
@@ -2968,32 +2968,32 @@ function Qa() {
|
|
|
2968
2968
|
isDragReject: Y,
|
|
2969
2969
|
isDragActive: !0,
|
|
2970
2970
|
type: "setDraggedFiles"
|
|
2971
|
-
}),
|
|
2971
|
+
}), f && f(d);
|
|
2972
2972
|
}
|
|
2973
|
-
}).catch(function(
|
|
2974
|
-
return y(
|
|
2973
|
+
}).catch(function(x) {
|
|
2974
|
+
return y(x);
|
|
2975
2975
|
});
|
|
2976
|
-
}, [o,
|
|
2976
|
+
}, [o, f, y, J, ie, l, r, c, g, te]), V = K(function(d) {
|
|
2977
2977
|
d.preventDefault(), d.persist(), je(d);
|
|
2978
|
-
var
|
|
2979
|
-
if (
|
|
2978
|
+
var x = we(d);
|
|
2979
|
+
if (x && d.dataTransfer)
|
|
2980
2980
|
try {
|
|
2981
2981
|
d.dataTransfer.dropEffect = "copy";
|
|
2982
2982
|
} catch {
|
|
2983
2983
|
}
|
|
2984
|
-
return
|
|
2984
|
+
return x && b && b(d), !1;
|
|
2985
2985
|
}, [b, J]), H = K(function(d) {
|
|
2986
2986
|
d.preventDefault(), d.persist(), je(d);
|
|
2987
|
-
var
|
|
2987
|
+
var x = h.current.filter(function($) {
|
|
2988
2988
|
return S.current && S.current.contains($);
|
|
2989
|
-
}), z =
|
|
2990
|
-
z !== -1 &&
|
|
2989
|
+
}), z = x.indexOf(d.target);
|
|
2990
|
+
z !== -1 && x.splice(z, 1), h.current = x, !(x.length > 0) && (q({
|
|
2991
2991
|
type: "setDraggedFiles",
|
|
2992
2992
|
isDragActive: !1,
|
|
2993
2993
|
isDragAccept: !1,
|
|
2994
2994
|
isDragReject: !1
|
|
2995
|
-
}), we(d) &&
|
|
2996
|
-
}, [S,
|
|
2995
|
+
}), we(d) && v && v(d));
|
|
2996
|
+
}, [S, v, J]), N = K(function(d, x) {
|
|
2997
2997
|
var z = [], $ = [];
|
|
2998
2998
|
d.forEach(function(Y) {
|
|
2999
2999
|
var ee = Wa(Y, ie), ne = Ge(ee, 2), Pe = ne[0], Se = ne[1], ze = Ua(Y, l, r), He = Ge(ze, 2), Re = He[0], Ce = He[1], Ie = te ? te(Y) : null;
|
|
@@ -3008,7 +3008,7 @@ function Qa() {
|
|
|
3008
3008
|
})
|
|
3009
3009
|
});
|
|
3010
3010
|
}
|
|
3011
|
-
}), (!c && z.length > 1 || c &&
|
|
3011
|
+
}), (!c && z.length > 1 || c && g >= 1 && z.length > g) && (z.forEach(function(Y) {
|
|
3012
3012
|
$.push({
|
|
3013
3013
|
file: Y,
|
|
3014
3014
|
errors: [si]
|
|
@@ -3017,12 +3017,12 @@ function Qa() {
|
|
|
3017
3017
|
acceptedFiles: z,
|
|
3018
3018
|
fileRejections: $,
|
|
3019
3019
|
type: "setFiles"
|
|
3020
|
-
}), O && O(z, $,
|
|
3021
|
-
}, [q, c, ie, l, r,
|
|
3022
|
-
d.preventDefault(), d.persist(), je(d), h.current = [], we(d) && Promise.resolve(o(d)).then(function(
|
|
3023
|
-
Oe(d) && !J || N(
|
|
3024
|
-
}).catch(function(
|
|
3025
|
-
return y(
|
|
3020
|
+
}), O && O(z, $, x), $.length > 0 && C && C($, x), z.length > 0 && _ && _(z, x);
|
|
3021
|
+
}, [q, c, ie, l, r, g, O, _, C, te]), s = K(function(d) {
|
|
3022
|
+
d.preventDefault(), d.persist(), je(d), h.current = [], we(d) && Promise.resolve(o(d)).then(function(x) {
|
|
3023
|
+
Oe(d) && !J || N(x, d);
|
|
3024
|
+
}).catch(function(x) {
|
|
3025
|
+
return y(x);
|
|
3026
3026
|
}), q({
|
|
3027
3027
|
type: "reset"
|
|
3028
3028
|
});
|
|
@@ -3035,16 +3035,16 @@ function Qa() {
|
|
|
3035
3035
|
multiple: c,
|
|
3036
3036
|
types: se
|
|
3037
3037
|
};
|
|
3038
|
-
window.showOpenFilePicker(d).then(function(
|
|
3039
|
-
return o(
|
|
3040
|
-
}).then(function(
|
|
3041
|
-
N(
|
|
3038
|
+
window.showOpenFilePicker(d).then(function(x) {
|
|
3039
|
+
return o(x);
|
|
3040
|
+
}).then(function(x) {
|
|
3041
|
+
N(x, null), q({
|
|
3042
3042
|
type: "closeDialog"
|
|
3043
3043
|
});
|
|
3044
|
-
}).catch(function(
|
|
3045
|
-
yi(
|
|
3044
|
+
}).catch(function(x) {
|
|
3045
|
+
yi(x) ? (pe(x), q({
|
|
3046
3046
|
type: "closeDialog"
|
|
3047
|
-
})) : bi(
|
|
3047
|
+
})) : bi(x) ? (w.current = !1, W.current ? (W.current.value = null, W.current.click()) : y(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : y(x);
|
|
3048
3048
|
});
|
|
3049
3049
|
return;
|
|
3050
3050
|
}
|
|
@@ -3063,17 +3063,17 @@ function Qa() {
|
|
|
3063
3063
|
});
|
|
3064
3064
|
}, []), pa = K(function() {
|
|
3065
3065
|
L || (vi() ? setTimeout(B, 0) : B());
|
|
3066
|
-
}, [L, B]), xe = function(
|
|
3067
|
-
return i ? null :
|
|
3068
|
-
}, _e = function(
|
|
3069
|
-
return m ? null : xe(
|
|
3070
|
-
}, ke = function(
|
|
3071
|
-
return X ? null : xe(
|
|
3072
|
-
}, je = function(
|
|
3073
|
-
J &&
|
|
3066
|
+
}, [L, B]), xe = function(x) {
|
|
3067
|
+
return i ? null : x;
|
|
3068
|
+
}, _e = function(x) {
|
|
3069
|
+
return m ? null : xe(x);
|
|
3070
|
+
}, ke = function(x) {
|
|
3071
|
+
return X ? null : xe(x);
|
|
3072
|
+
}, je = function(x) {
|
|
3073
|
+
J && x.stopPropagation();
|
|
3074
3074
|
}, tt = ge(function() {
|
|
3075
3075
|
return function() {
|
|
3076
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3076
|
+
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, x = d.refKey, z = x === void 0 ? "ref" : x, $ = d.role, Y = d.onKeyDown, ee = d.onFocus, ne = d.onBlur, Pe = d.onClick, Se = d.onDragEnter, ze = d.onDragOver, He = d.onDragLeave, Re = d.onDrop, Ce = Fe(d, Ai);
|
|
3077
3077
|
return P(P(ta({
|
|
3078
3078
|
onKeyDown: _e(ae(Y, me)),
|
|
3079
3079
|
onFocus: _e(ae(ee, ye)),
|
|
@@ -3092,7 +3092,7 @@ function Qa() {
|
|
|
3092
3092
|
d.stopPropagation();
|
|
3093
3093
|
}, []), nt = ge(function() {
|
|
3094
3094
|
return function() {
|
|
3095
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3095
|
+
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, x = d.refKey, z = x === void 0 ? "ref" : x, $ = d.onChange, Y = d.onClick, ee = Fe(d, ki), ne = ta({
|
|
3096
3096
|
accept: ie,
|
|
3097
3097
|
multiple: c,
|
|
3098
3098
|
type: "file",
|
|
@@ -3180,18 +3180,27 @@ const et = dt([null, () => {
|
|
|
3180
3180
|
}, Si = (e) => {
|
|
3181
3181
|
const [, a] = Fi(), [t, i] = Ke({ url: "", type: "", size: "" });
|
|
3182
3182
|
Ee(() => {
|
|
3183
|
-
const f = e.file,
|
|
3184
|
-
return i({ url:
|
|
3183
|
+
const f = e.file, v = URL.createObjectURL(f);
|
|
3184
|
+
return i({ url: v, type: _i(f), size: Tt(f.size) }), () => URL.revokeObjectURL(v);
|
|
3185
3185
|
}, [e.file]);
|
|
3186
3186
|
const o = (f) => {
|
|
3187
3187
|
f.stopPropagation(), f.preventDefault(), a({ ...t, file: e.file });
|
|
3188
3188
|
}, r = (f) => {
|
|
3189
3189
|
f.preventDefault(), f.stopPropagation(), e.onDeleteFile?.(e.file);
|
|
3190
|
-
}, l = Pi[e.file.name.split(".").at(-1)] ?? rt,
|
|
3190
|
+
}, l = e.file.name, c = Pi[e.file.name.split(".").at(-1)] ?? rt, g = t.type === "img" ? /* @__PURE__ */ Z("img", { src: t.url, className: "w-full object-contain", alt: e.file.name }) : /* @__PURE__ */ Z(c, { size: 48 });
|
|
3191
3191
|
return /* @__PURE__ */ oe("li", { className: "flex w-full flex-row justify-between gap-4 border-b border-card-border last:border-b-transparent", children: [
|
|
3192
3192
|
/* @__PURE__ */ oe("div", { className: "flex flex-col gap-4", children: [
|
|
3193
3193
|
/* @__PURE__ */ oe("div", { className: "flex flex-row items-center gap-4", children: [
|
|
3194
|
-
/* @__PURE__ */ Z(
|
|
3194
|
+
/* @__PURE__ */ Z(
|
|
3195
|
+
"button",
|
|
3196
|
+
{
|
|
3197
|
+
type: "button",
|
|
3198
|
+
onClick: o,
|
|
3199
|
+
"aria-label": `View ${l}`,
|
|
3200
|
+
className: "m-2 flex size-16 max-w-16 items-center justify-center overflow-hidden",
|
|
3201
|
+
children: g
|
|
3202
|
+
}
|
|
3203
|
+
),
|
|
3195
3204
|
/* @__PURE__ */ oe("div", { className: "flex flex-col items-start justify-start text-left", children: [
|
|
3196
3205
|
/* @__PURE__ */ Z("span", { children: e.file.name }),
|
|
3197
3206
|
/* @__PURE__ */ Z("span", { className: "text-sm italic", children: t.size })
|
|
@@ -3199,7 +3208,7 @@ const et = dt([null, () => {
|
|
|
3199
3208
|
] }),
|
|
3200
3209
|
e.File ? /* @__PURE__ */ Z("div", { className: "min-w-full flex-1", children: /* @__PURE__ */ Z(e.File, { file: e.file }) }) : null
|
|
3201
3210
|
] }),
|
|
3202
|
-
/* @__PURE__ */ Z("div", { className: "align-start flex justify-start py-4 transition-colors duration-300 ease-linear hover:text-danger-hover", children: /* @__PURE__ */ Z("button", { onClick: r, type: "button", className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ Z(ut, { size: 16 }) }) })
|
|
3211
|
+
/* @__PURE__ */ Z("div", { className: "align-start flex justify-start py-4 transition-colors duration-300 ease-linear hover:text-danger-hover", children: /* @__PURE__ */ Z("button", { onClick: r, type: "button", "aria-label": `Remove ${l}`, className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ Z(ut, { size: 16, "aria-hidden": "true" }) }) })
|
|
3203
3212
|
] });
|
|
3204
3213
|
}, zi = (e) => /* @__PURE__ */ Z("ul", { className: "w-full space-y-8", children: e.files.map((a) => /* @__PURE__ */ Z(Si, { File: e.File, onDeleteFile: e.onDeleteFile, file: a }, a.name)) }), at = (e) => {
|
|
3205
3214
|
const a = _a(), t = e.dragging ? Ra : za;
|
|
@@ -3218,20 +3227,21 @@ const et = dt([null, () => {
|
|
|
3218
3227
|
t === "img" ? /* @__PURE__ */ Z("img", { className: "container inline-block w-full max-w-96", src: e.item.url, alt: a.name }) : t === "video" ? /* @__PURE__ */ Z("video", { className: "container block w-full max-w-96", src: e.item.url, controls: !0, muted: !0 }) : t === "audio" ? /* @__PURE__ */ Z("figure", { children: /* @__PURE__ */ Z("audio", { controls: !0, src: e.item.url }) }) : null
|
|
3219
3228
|
] });
|
|
3220
3229
|
}, Ki = ({ idle: e = Ci, onDeleteFile: a, File: t, onDrop: i, ...o }) => {
|
|
3221
|
-
const r = _a(), l = Ke(null), [c,
|
|
3222
|
-
i?.(M),
|
|
3230
|
+
const r = _a(), l = Ke(null), [c, g] = Ke([]), f = o.files ?? c, v = () => l[1](null), b = (M) => {
|
|
3231
|
+
i?.(M), g((R) => R.concat(M));
|
|
3223
3232
|
}, { getRootProps: O, getInputProps: _, isDragActive: C } = Qa({ onDrop: b });
|
|
3224
3233
|
return /* @__PURE__ */ oe(et.Provider, { value: l, children: [
|
|
3225
|
-
/* @__PURE__ */ Z(ft, { overlayClickClose: !0, title: r.uploadDialogTitle, ariaTitle: r.uploadDialogTitle, open: l[0] !== null, onChange:
|
|
3234
|
+
/* @__PURE__ */ Z(ft, { overlayClickClose: !0, title: r.uploadDialogTitle, ariaTitle: r.uploadDialogTitle, open: l[0] !== null, onChange: v, children: l[0] ? /* @__PURE__ */ Z(Ii, { item: l[0] }) : null }),
|
|
3226
3235
|
/* @__PURE__ */ oe(
|
|
3227
3236
|
"div",
|
|
3228
3237
|
{
|
|
3229
3238
|
...O(),
|
|
3230
|
-
"
|
|
3239
|
+
"aria-label": r.fileUploadZoneLabel,
|
|
3240
|
+
"data-active": f ? f.length > 0 : !1,
|
|
3231
3241
|
className: "flex flex-col items-center justify-center rounded-lg border border-card-border p-6 text-foreground data-[active=true]:border-solid data-[active=false]:border-dashed data-[active=true]:border-transparent data-[active=true]:bg-card-background",
|
|
3232
3242
|
children: [
|
|
3233
3243
|
/* @__PURE__ */ Z("input", { ..._(o), name: o.name, id: o.name }),
|
|
3234
|
-
/* @__PURE__ */ Z(Ri, { File: t, onDeleteFile: a, isDragActive: C, idle: e, files:
|
|
3244
|
+
/* @__PURE__ */ Z(Ri, { File: t, onDeleteFile: a, isDragActive: C, idle: e, files: f })
|
|
3235
3245
|
]
|
|
3236
3246
|
}
|
|
3237
3247
|
)
|
|
@@ -3242,4 +3252,4 @@ export {
|
|
|
3242
3252
|
Ui as c,
|
|
3243
3253
|
Gi as g
|
|
3244
3254
|
};
|
|
3245
|
-
//# sourceMappingURL=file-upload-
|
|
3255
|
+
//# sourceMappingURL=file-upload-93d5DR4q.js.map
|