@k3-universe/react-kit 0.0.27 → 0.0.28
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/dist/index.js +194 -478
- package/dist/kit/builder/data-table/components/DataTable.d.ts +2 -1
- package/dist/kit/builder/data-table/components/DataTable.d.ts.map +1 -1
- package/dist/kit/builder/data-table/components/DataTablePagination.d.ts +2 -1
- package/dist/kit/builder/data-table/components/DataTablePagination.d.ts.map +1 -1
- package/dist/kit/themes/base.css +1 -1
- package/dist/kit/themes/clean-slate.css +5 -5
- package/dist/kit/themes/default.css +5 -5
- package/dist/kit/themes/minimal-modern.css +5 -5
- package/dist/kit/themes/spotify.css +5 -5
- package/package.json +1 -1
- package/src/kit/builder/data-table/components/DataTable.tsx +3 -1
- package/src/kit/builder/data-table/components/DataTablePagination.tsx +31 -23
- package/storybook-static/assets/Accordion.stories-KU4JBR8U.js +0 -52
- package/storybook-static/assets/AdminLayout-CPvVCwfY.js +0 -53
- package/storybook-static/assets/AdminLayout.Basic.stories-DkP2UVXe.js +0 -4
- package/storybook-static/assets/AdminLayout.Collapsible.stories-BuuVjtpW.js +0 -4
- package/storybook-static/assets/AdminLayout.Complex.stories-D-k4H0hJ.js +0 -29
- package/storybook-static/assets/AdminLayout.CustomSidebarHeaderComponent.stories-B_0IEDd4.js +0 -9
- package/storybook-static/assets/AdminLayout.CustomSidebarTitleAndIcon.stories-CvAeXUyA.js +0 -4
- package/storybook-static/assets/AdminLayout.HeaderSlots.stories-RBFHoSZK.js +0 -7
- package/storybook-static/assets/Alert.stories-DKxKtIc0.js +0 -27
- package/storybook-static/assets/AlertDialog.stories-BqTpZ_nG.js +0 -43
- package/storybook-static/assets/AspectRatio.stories-DPO9QQ5F.js +0 -22
- package/storybook-static/assets/Autocomplete-Cpg4CaJe.js +0 -56
- package/storybook-static/assets/Autocomplete.stories-CWj4G5fh.js +0 -56
- package/storybook-static/assets/Avatar.stories-DPhov_2g.js +0 -12
- package/storybook-static/assets/Badge.stories-DFKrRdXq.js +0 -12
- package/storybook-static/assets/Breadcrumb.stories-CTE6CZUC.js +0 -25
- package/storybook-static/assets/Button.stories-cbt2InL-.js +0 -26
- package/storybook-static/assets/Calendar.stories-DRhTw_43.js +0 -3
- package/storybook-static/assets/Card.stories-Isf6n_K3.js +0 -15
- package/storybook-static/assets/Carousel.stories-Cmg0I3fR.js +0 -15
- package/storybook-static/assets/Chart.stories-aQ-fNijT.js +0 -126
- package/storybook-static/assets/Checkbox.stories-B7YMXPDc.js +0 -12
- package/storybook-static/assets/Collapsible.stories-BUzl17ZZ.js +0 -18
- package/storybook-static/assets/Combination-BdQWAuko.js +0 -41
- package/storybook-static/assets/Command.stories-DzBlWQs0.js +0 -30
- package/storybook-static/assets/ContextMenu.stories-CJlBQyXc.js +0 -31
- package/storybook-static/assets/DataTable.Basic.stories-BWYKFDmK.js +0 -6
- package/storybook-static/assets/DataTable.Filters.stories-uZdtJk8t.js +0 -21
- package/storybook-static/assets/DataTable.Pagination.stories-C5N1khkp.js +0 -24
- package/storybook-static/assets/DataTable.SelectionAndActions.stories-FhCqZKvO.js +0 -26
- package/storybook-static/assets/DataTable.Sorting.stories-D-k7EtRj.js +0 -6
- package/storybook-static/assets/Dialog.stories-C62AF-Gx.js +0 -54
- package/storybook-static/assets/Dialog.stories-lrjRwOus.js +0 -18
- package/storybook-static/assets/Drawer.stories-CGjkdJeV.js +0 -24
- package/storybook-static/assets/DropdownMenu.stories-DkGClRAA.js +0 -35
- package/storybook-static/assets/Form.ArrayLayouts.stories-C5d_062d.js +0 -130
- package/storybook-static/assets/Form.Autocomplete.stories-CPZPkk4o.js +0 -142
- package/storybook-static/assets/Form.Basic.stories-Bhcu3-3n.js +0 -58
- package/storybook-static/assets/Form.Complex.stories-QnXh5a7Q.js +0 -361
- package/storybook-static/assets/Form.Dynamic.stories-DFW6wIuT.js +0 -502
- package/storybook-static/assets/Form.Simple.stories-BhJcyhbE.js +0 -53
- package/storybook-static/assets/Form.stories-PFNsMYxO.js +0 -3
- package/storybook-static/assets/FormBuilder-BQBBxo_k.js +0 -5
- package/storybook-static/assets/HoverCard.stories-CAlQEVn8.js +0 -21
- package/storybook-static/assets/Input.stories-CEhODt0V.js +0 -16
- package/storybook-static/assets/InputOtp.stories-DSvNP4dS.js +0 -42
- package/storybook-static/assets/Label.stories-B3pa8ZLY.js +0 -14
- package/storybook-static/assets/Login.stories-C7KQkmR_.js +0 -37
- package/storybook-static/assets/Menubar.stories-CHXhSHxc.js +0 -44
- package/storybook-static/assets/MonthPicker.stories-BnrOc4fm.js +0 -99
- package/storybook-static/assets/MonthRangePicker.stories-55Gk1t-7.js +0 -134
- package/storybook-static/assets/NavigationMenu.stories-CXoS080P.js +0 -30
- package/storybook-static/assets/Page.stories-GdSJgZ6-.js +0 -91
- package/storybook-static/assets/Pagination.stories-BEBwqH4N.js +0 -29
- package/storybook-static/assets/Popover.stories-BICy98Cw.js +0 -15
- package/storybook-static/assets/Progress.stories-DECHNOME.js +0 -8
- package/storybook-static/assets/RadioGroup.stories-DA7-uKfV.js +0 -16
- package/storybook-static/assets/Resizable.stories-B99kWkH7.js +0 -25
- package/storybook-static/assets/ScrollArea.stories-BqvUAXqU.js +0 -12
- package/storybook-static/assets/Section.stories-lFMlFBQn.js +0 -277
- package/storybook-static/assets/SectionBuilder-BQW705x0.js +0 -1
- package/storybook-static/assets/Select.stories-BsKyZ6Io.js +0 -17
- package/storybook-static/assets/Separator.stories-BTDOaOM2.js +0 -17
- package/storybook-static/assets/Sheet.stories-Cam1gR6G.js +0 -24
- package/storybook-static/assets/Sidebar.stories-DnOa6G7y.js +0 -106
- package/storybook-static/assets/Skeleton.stories-BQNIuIe5.js +0 -9
- package/storybook-static/assets/Slider.stories-Bslq7hjq.js +0 -6
- package/storybook-static/assets/Sonner.stories-D34pBBtI.js +0 -18
- package/storybook-static/assets/Switch.stories-Puyb1-Bx.js +0 -3
- package/storybook-static/assets/Table.stories-ClZxAhut.js +0 -35
- package/storybook-static/assets/Tabs.stories-CURNTETB.js +0 -10
- package/storybook-static/assets/Textarea.stories-Cf1ZBrWw.js +0 -17
- package/storybook-static/assets/Toggle.stories-CdMHY_bi.js +0 -3
- package/storybook-static/assets/ToggleGroup.stories-BM68m1dX.js +0 -13
- package/storybook-static/assets/Tooltip.stories-DiQv64dM.js +0 -10
- package/storybook-static/assets/accordion-DVgwQcnw.js +0 -1
- package/storybook-static/assets/alert-dialog-DCUEwpqm.js +0 -7
- package/storybook-static/assets/avatar-BzwOE-mi.js +0 -1
- package/storybook-static/assets/axe-HmUsR1st.js +0 -30
- package/storybook-static/assets/badge-BnQWua6u.js +0 -1
- package/storybook-static/assets/button-0oMkiryo.js +0 -1
- package/storybook-static/assets/card-BJpPOzP8.js +0 -1
- package/storybook-static/assets/chart-column-DZGb4ZZS.js +0 -6
- package/storybook-static/assets/check-B9hBGj6o.js +0 -6
- package/storybook-static/assets/checkbox-CyIeaWHX.js +0 -1
- package/storybook-static/assets/chevron-down-D_37S6il.js +0 -6
- package/storybook-static/assets/chevron-left-BBoN0vbI.js +0 -6
- package/storybook-static/assets/chevron-right-B5vIMLxK.js +0 -6
- package/storybook-static/assets/circle-C5Lzx6Nx.js +0 -6
- package/storybook-static/assets/clean-slate-D1HmMFJM.css +0 -1
- package/storybook-static/assets/command-Csa9p8_a.js +0 -6
- package/storybook-static/assets/createLucideIcon-BrHXro7t.js +0 -21
- package/storybook-static/assets/default-CN_Fo1GY.css +0 -1
- package/storybook-static/assets/dependencies-ctrV69dx.js +0 -1
- package/storybook-static/assets/dialog-CsnqITTn.js +0 -1
- package/storybook-static/assets/dropdown-menu-BWxxwPHL.js +0 -1
- package/storybook-static/assets/ellipsis-BRS038RR.js +0 -6
- package/storybook-static/assets/grip-vertical-BxXG8KNA.js +0 -6
- package/storybook-static/assets/iframe-C9bogcIc.css +0 -1
- package/storybook-static/assets/iframe-v7iAhKit.js +0 -1555
- package/storybook-static/assets/index-0-qMRXou.js +0 -1
- package/storybook-static/assets/index-AvwFFKJc.js +0 -1
- package/storybook-static/assets/index-BVDb4dFc.js +0 -1
- package/storybook-static/assets/index-B_qx7A5T.js +0 -1
- package/storybook-static/assets/index-BdQq_4o_.js +0 -1
- package/storybook-static/assets/index-BfiCOk42.js +0 -1
- package/storybook-static/assets/index-Bv9yk470.js +0 -1
- package/storybook-static/assets/index-Bw1A27Kp.js +0 -1
- package/storybook-static/assets/index-ByqivBWx.js +0 -1
- package/storybook-static/assets/index-C9Ta0ZTH.js +0 -1
- package/storybook-static/assets/index-CDY5kTx5.js +0 -1
- package/storybook-static/assets/index-CGnyVRgB.js +0 -1
- package/storybook-static/assets/index-CGrAONsN.js +0 -1
- package/storybook-static/assets/index-CWjrGFAQ.js +0 -1
- package/storybook-static/assets/index-CwBdPBFz.js +0 -9
- package/storybook-static/assets/index-D8RXF03I.js +0 -1
- package/storybook-static/assets/index-DLIxT4Z7.js +0 -1
- package/storybook-static/assets/index-DW48STyt.js +0 -1
- package/storybook-static/assets/index-DbaA6-o1.js +0 -1
- package/storybook-static/assets/index-Dph_5COR.js +0 -1
- package/storybook-static/assets/index-DrN5n71E.js +0 -1
- package/storybook-static/assets/index-Tp9IdbR8.js +0 -1
- package/storybook-static/assets/index-WyF3-wTE.js +0 -9
- package/storybook-static/assets/index-XSmPROEP.js +0 -1
- package/storybook-static/assets/index-Z6wF44KX.js +0 -5
- package/storybook-static/assets/index-_RPqOjlQ.js +0 -1
- package/storybook-static/assets/index-jrimW4QO.js +0 -1
- package/storybook-static/assets/index-nqc17SX4.js +0 -1
- package/storybook-static/assets/input-11YRd9gD.js +0 -1
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +0 -9
- package/storybook-static/assets/label-Do8ODIVk.js +0 -1
- package/storybook-static/assets/lodash-DDwpuhPG.js +0 -73
- package/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
- package/storybook-static/assets/minimal-modern-BlYVzfQU.css +0 -1
- package/storybook-static/assets/popover-CcciSWAw.js +0 -1
- package/storybook-static/assets/preload-helper-Dp1pzeXC.js +0 -1
- package/storybook-static/assets/radio-group-DiJ0Y_KQ.js +0 -1
- package/storybook-static/assets/react-18-Cr9fq_Ip.js +0 -25
- package/storybook-static/assets/react-icons.esm-B_ULMmNU.js +0 -1
- package/storybook-static/assets/refresh-cw-BmRDhIV_.js +0 -6
- package/storybook-static/assets/schemas-CGNYCiJ6.js +0 -18
- package/storybook-static/assets/section-factories-DCCY9R35.js +0 -1
- package/storybook-static/assets/select-DDrkxaOg.js +0 -6
- package/storybook-static/assets/separator-o5SAUnaJ.js +0 -1
- package/storybook-static/assets/settings-2-xWGvvbG6.js +0 -6
- package/storybook-static/assets/sheet-C7jhU3XE.js +0 -1
- package/storybook-static/assets/shopping-cart-BFlrufvo.js +0 -11
- package/storybook-static/assets/sidebar-C8hU1Mxy.js +0 -6
- package/storybook-static/assets/skeleton-CjDnQs43.js +0 -1
- package/storybook-static/assets/spotify-CUDj7g8m.css +0 -1
- package/storybook-static/assets/switch-CKGRuk3u.js +0 -1
- package/storybook-static/assets/table-CP3vMqFn.js +0 -1
- package/storybook-static/assets/tabs-CopK2m3j.js +0 -1
- package/storybook-static/assets/textarea-Dw2vruMl.js +0 -1
- package/storybook-static/assets/toggle-DmHbWetf.js +0 -16
- package/storybook-static/assets/tooltip-_LqYEYFw.js +0 -1
- package/storybook-static/assets/trash-2-xdbApPby.js +0 -11
- package/storybook-static/assets/utils-D-KgF5mV.js +0 -1
- package/storybook-static/assets/x-B1a4fyWM.js +0 -6
- package/storybook-static/favicon-wrapper.svg +0 -46
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -687
- package/storybook-static/index.d.ts +0 -64
- package/storybook-static/index.d.ts.map +0 -1
- package/storybook-static/index.html +0 -166
- package/storybook-static/index.json +0 -1
- package/storybook-static/kit/builder/data-table/components/DataTable.d.ts +0 -37
- package/storybook-static/kit/builder/data-table/components/DataTable.d.ts.map +0 -1
- package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts +0 -8
- package/storybook-static/kit/builder/data-table/components/DataTableColumnHeader.d.ts.map +0 -1
- package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts +0 -6
- package/storybook-static/kit/builder/data-table/components/DataTablePagination.d.ts.map +0 -1
- package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts +0 -5
- package/storybook-static/kit/builder/data-table/components/DataTableViewOptions.d.ts.map +0 -1
- package/storybook-static/kit/builder/data-table/index.d.ts +0 -7
- package/storybook-static/kit/builder/data-table/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/data-table/types.d.ts +0 -27
- package/storybook-static/kit/builder/data-table/types.d.ts.map +0 -1
- package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts +0 -2
- package/storybook-static/kit/builder/data-table/utils/dotAccessor.d.ts.map +0 -1
- package/storybook-static/kit/builder/dialog/index.d.ts +0 -3
- package/storybook-static/kit/builder/dialog/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/dialog/provider.d.ts +0 -26
- package/storybook-static/kit/builder/dialog/provider.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/FormBuilder.d.ts +0 -137
- package/storybook-static/kit/builder/form/components/FormBuilder.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts +0 -20
- package/storybook-static/kit/builder/form/components/FormBuilderActions.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts +0 -12
- package/storybook-static/kit/builder/form/components/FormBuilderField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/ArrayField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/ArrayField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/AutocompleteField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/AutocompleteField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/CheckboxField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/CheckboxField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/DateField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/DateField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/FileField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/FileField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/NumberField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/NumberField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/ObjectField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/ObjectField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/RadioField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/RadioField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/SelectField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/SelectField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/SwitchField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/SwitchField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/TextField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/TextField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/TextareaField.d.ts +0 -3
- package/storybook-static/kit/builder/form/components/fields/TextareaField.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/index.d.ts +0 -14
- package/storybook-static/kit/builder/form/components/fields/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/fields/types.d.ts +0 -14
- package/storybook-static/kit/builder/form/components/fields/types.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/components/index.d.ts +0 -4
- package/storybook-static/kit/builder/form/components/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/index.d.ts +0 -3
- package/storybook-static/kit/builder/form/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/common-forms.d.ts +0 -7
- package/storybook-static/kit/builder/form/utils/common-forms.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/dependencies.d.ts +0 -41
- package/storybook-static/kit/builder/form/utils/dependencies.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/field-factories.d.ts +0 -23
- package/storybook-static/kit/builder/form/utils/field-factories.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/index.d.ts +0 -15
- package/storybook-static/kit/builder/form/utils/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/section-factories.d.ts +0 -7
- package/storybook-static/kit/builder/form/utils/section-factories.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/transformers.d.ts +0 -6
- package/storybook-static/kit/builder/form/utils/transformers.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/validations.d.ts +0 -13
- package/storybook-static/kit/builder/form/utils/validations.d.ts.map +0 -1
- package/storybook-static/kit/builder/form/utils/validators.d.ts +0 -8
- package/storybook-static/kit/builder/form/utils/validators.d.ts.map +0 -1
- package/storybook-static/kit/builder/page/Page.d.ts +0 -48
- package/storybook-static/kit/builder/page/Page.d.ts.map +0 -1
- package/storybook-static/kit/builder/page/index.d.ts +0 -2
- package/storybook-static/kit/builder/page/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/section/SectionBuilder.d.ts +0 -3
- package/storybook-static/kit/builder/section/SectionBuilder.d.ts.map +0 -1
- package/storybook-static/kit/builder/section/index.d.ts +0 -3
- package/storybook-static/kit/builder/section/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/section/types.d.ts +0 -70
- package/storybook-static/kit/builder/section/types.d.ts.map +0 -1
- package/storybook-static/kit/builder/stack-dialog/context.d.ts +0 -3
- package/storybook-static/kit/builder/stack-dialog/context.d.ts.map +0 -1
- package/storybook-static/kit/builder/stack-dialog/hooks.d.ts +0 -6
- package/storybook-static/kit/builder/stack-dialog/hooks.d.ts.map +0 -1
- package/storybook-static/kit/builder/stack-dialog/index.d.ts +0 -5
- package/storybook-static/kit/builder/stack-dialog/index.d.ts.map +0 -1
- package/storybook-static/kit/builder/stack-dialog/provider.d.ts +0 -3
- package/storybook-static/kit/builder/stack-dialog/provider.d.ts.map +0 -1
- package/storybook-static/kit/builder/stack-dialog/renderer.d.ts +0 -6
- package/storybook-static/kit/builder/stack-dialog/renderer.d.ts.map +0 -1
- package/storybook-static/kit/builder/stack-dialog/types.d.ts +0 -20
- package/storybook-static/kit/builder/stack-dialog/types.d.ts.map +0 -1
- package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts +0 -53
- package/storybook-static/kit/components/autocomplete/Autocomplete.d.ts.map +0 -1
- package/storybook-static/kit/components/autocomplete/index.d.ts +0 -4
- package/storybook-static/kit/components/autocomplete/index.d.ts.map +0 -1
- package/storybook-static/kit/components/autocomplete/types.d.ts +0 -19
- package/storybook-static/kit/components/autocomplete/types.d.ts.map +0 -1
- package/storybook-static/kit/components/login/Login.d.ts +0 -29
- package/storybook-static/kit/components/login/Login.d.ts.map +0 -1
- package/storybook-static/kit/components/login/index.d.ts +0 -2
- package/storybook-static/kit/components/login/index.d.ts.map +0 -1
- package/storybook-static/kit/components/monthpicker/MonthPicker.d.ts +0 -32
- package/storybook-static/kit/components/monthpicker/MonthPicker.d.ts.map +0 -1
- package/storybook-static/kit/components/monthpicker/MonthRangePicker.d.ts +0 -48
- package/storybook-static/kit/components/monthpicker/MonthRangePicker.d.ts.map +0 -1
- package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts +0 -17
- package/storybook-static/kit/layouts/admin/components/AdminLayout.d.ts.map +0 -1
- package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts +0 -5
- package/storybook-static/kit/layouts/admin/components/ThemeToggle.d.ts.map +0 -1
- package/storybook-static/kit/layouts/admin/hooks/menu.d.ts +0 -13
- package/storybook-static/kit/layouts/admin/hooks/menu.d.ts.map +0 -1
- package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts +0 -7
- package/storybook-static/kit/layouts/admin/providers/AdminMenuProvider.d.ts.map +0 -1
- package/storybook-static/kit/layouts/admin/types/index.d.ts +0 -27
- package/storybook-static/kit/layouts/admin/types/index.d.ts.map +0 -1
- package/storybook-static/kit/providers/ThemeProvider.d.ts +0 -14
- package/storybook-static/kit/providers/ThemeProvider.d.ts.map +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/a11y-5/manager-bundle.js +0 -5
- package/storybook-static/sb-addons/essentials-backgrounds-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-measure-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-3/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/interactions-4/manager-bundle.js +0 -57
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -971
- package/storybook-static/sb-addons/storysource-6/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -797
- package/storybook-static/sb-manager/globals-runtime.js +0 -69653
- package/storybook-static/sb-manager/globals.js +0 -34
- package/storybook-static/sb-manager/runtime.js +0 -13181
- package/storybook-static/shadcn/hooks/use-mobile.d.ts +0 -2
- package/storybook-static/shadcn/hooks/use-mobile.d.ts.map +0 -1
- package/storybook-static/shadcn/lib/utils.d.ts +0 -3
- package/storybook-static/shadcn/lib/utils.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/accordion.d.ts +0 -8
- package/storybook-static/shadcn/ui/accordion.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/alert-dialog.d.ts +0 -15
- package/storybook-static/shadcn/ui/alert-dialog.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/alert.d.ts +0 -10
- package/storybook-static/shadcn/ui/alert.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/aspect-ratio.d.ts +0 -4
- package/storybook-static/shadcn/ui/aspect-ratio.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/avatar.d.ts +0 -7
- package/storybook-static/shadcn/ui/avatar.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/badge.d.ts +0 -10
- package/storybook-static/shadcn/ui/badge.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/breadcrumb.d.ts +0 -12
- package/storybook-static/shadcn/ui/breadcrumb.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/button.d.ts +0 -11
- package/storybook-static/shadcn/ui/button.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/calendar.d.ts +0 -9
- package/storybook-static/shadcn/ui/calendar.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/card.d.ts +0 -10
- package/storybook-static/shadcn/ui/card.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/carousel.d.ts +0 -20
- package/storybook-static/shadcn/ui/carousel.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/chart.d.ts +0 -41
- package/storybook-static/shadcn/ui/chart.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/checkbox.d.ts +0 -5
- package/storybook-static/shadcn/ui/checkbox.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/collapsible.d.ts +0 -6
- package/storybook-static/shadcn/ui/collapsible.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/command.d.ts +0 -19
- package/storybook-static/shadcn/ui/command.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/context-menu.d.ts +0 -26
- package/storybook-static/shadcn/ui/context-menu.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/dialog.d.ts +0 -16
- package/storybook-static/shadcn/ui/dialog.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/drawer.d.ts +0 -14
- package/storybook-static/shadcn/ui/drawer.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/dropdown-menu.d.ts +0 -26
- package/storybook-static/shadcn/ui/dropdown-menu.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/form.d.ts +0 -25
- package/storybook-static/shadcn/ui/form.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/hover-card.d.ts +0 -7
- package/storybook-static/shadcn/ui/hover-card.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/input-otp.d.ts +0 -12
- package/storybook-static/shadcn/ui/input-otp.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/input.d.ts +0 -4
- package/storybook-static/shadcn/ui/input.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/label.d.ts +0 -5
- package/storybook-static/shadcn/ui/label.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/menubar.d.ts +0 -27
- package/storybook-static/shadcn/ui/menubar.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/navigation-menu.d.ts +0 -15
- package/storybook-static/shadcn/ui/navigation-menu.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/pagination.d.ts +0 -14
- package/storybook-static/shadcn/ui/pagination.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/popover.d.ts +0 -8
- package/storybook-static/shadcn/ui/popover.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/progress.d.ts +0 -5
- package/storybook-static/shadcn/ui/progress.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/radio-group.d.ts +0 -6
- package/storybook-static/shadcn/ui/radio-group.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/resizable.d.ts +0 -9
- package/storybook-static/shadcn/ui/resizable.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/scroll-area.d.ts +0 -6
- package/storybook-static/shadcn/ui/scroll-area.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/select.d.ts +0 -16
- package/storybook-static/shadcn/ui/select.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/separator.d.ts +0 -5
- package/storybook-static/shadcn/ui/separator.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/sheet.d.ts +0 -14
- package/storybook-static/shadcn/ui/sheet.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/sidebar.d.ts +0 -70
- package/storybook-static/shadcn/ui/sidebar.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/skeleton.d.ts +0 -3
- package/storybook-static/shadcn/ui/skeleton.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/slider.d.ts +0 -5
- package/storybook-static/shadcn/ui/slider.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/sonner.d.ts +0 -4
- package/storybook-static/shadcn/ui/sonner.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/switch.d.ts +0 -5
- package/storybook-static/shadcn/ui/switch.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/table.d.ts +0 -11
- package/storybook-static/shadcn/ui/table.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/tabs.d.ts +0 -8
- package/storybook-static/shadcn/ui/tabs.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/textarea.d.ts +0 -4
- package/storybook-static/shadcn/ui/textarea.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/toggle-group.d.ts +0 -8
- package/storybook-static/shadcn/ui/toggle-group.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/toggle.d.ts +0 -10
- package/storybook-static/shadcn/ui/toggle.d.ts.map +0 -1
- package/storybook-static/shadcn/ui/tooltip.d.ts +0 -8
- package/storybook-static/shadcn/ui/tooltip.d.ts.map +0 -1
- package/storybook-static/vite-inject-mocker-entry.js +0 -18
package/dist/index.js
CHANGED
|
@@ -7228,7 +7228,7 @@ function useDirection(localDir) {
|
|
|
7228
7228
|
var ACCORDION_NAME = "Accordion";
|
|
7229
7229
|
var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
|
|
7230
7230
|
var [Collection$6, useCollection$6, createCollectionScope$6] = createCollection(ACCORDION_NAME);
|
|
7231
|
-
var [createAccordionContext] = createContextScope(ACCORDION_NAME, [
|
|
7231
|
+
var [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [
|
|
7232
7232
|
createCollectionScope$6,
|
|
7233
7233
|
createCollapsibleScope
|
|
7234
7234
|
]);
|
|
@@ -7701,7 +7701,7 @@ function useSize(element) {
|
|
|
7701
7701
|
return size2;
|
|
7702
7702
|
}
|
|
7703
7703
|
var CHECKBOX_NAME = "Checkbox";
|
|
7704
|
-
var [createCheckboxContext] = createContextScope(CHECKBOX_NAME);
|
|
7704
|
+
var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
|
|
7705
7705
|
var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
|
7706
7706
|
function CheckboxProvider(props2) {
|
|
7707
7707
|
const {
|
|
@@ -8382,7 +8382,6 @@ function useController(props2) {
|
|
|
8382
8382
|
exact: true
|
|
8383
8383
|
});
|
|
8384
8384
|
const _props = React__default.useRef(props2);
|
|
8385
|
-
const _previousNameRef = React__default.useRef(void 0);
|
|
8386
8385
|
const _registerProps = React__default.useRef(control.register(name, {
|
|
8387
8386
|
...props2.rules,
|
|
8388
8387
|
value,
|
|
@@ -8446,10 +8445,6 @@ function useController(props2) {
|
|
|
8446
8445
|
}), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);
|
|
8447
8446
|
React__default.useEffect(() => {
|
|
8448
8447
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
8449
|
-
const previousName = _previousNameRef.current;
|
|
8450
|
-
if (previousName && previousName !== name && !isArrayField) {
|
|
8451
|
-
control.unregister(previousName);
|
|
8452
|
-
}
|
|
8453
8448
|
control.register(name, {
|
|
8454
8449
|
..._props.current.rules,
|
|
8455
8450
|
...isBoolean$1(_props.current.disabled) ? { disabled: _props.current.disabled } : {}
|
|
@@ -8462,14 +8457,13 @@ function useController(props2) {
|
|
|
8462
8457
|
};
|
|
8463
8458
|
updateMounted(name, true);
|
|
8464
8459
|
if (_shouldUnregisterField) {
|
|
8465
|
-
const value2 = cloneObject(get(control._options.defaultValues, name
|
|
8460
|
+
const value2 = cloneObject(get(control._options.defaultValues, name));
|
|
8466
8461
|
set$1(control._defaultValues, name, value2);
|
|
8467
8462
|
if (isUndefined(get(control._formValues, name))) {
|
|
8468
8463
|
set$1(control._formValues, name, value2);
|
|
8469
8464
|
}
|
|
8470
8465
|
}
|
|
8471
8466
|
!isArrayField && control.register(name);
|
|
8472
|
-
_previousNameRef.current = name;
|
|
8473
8467
|
return () => {
|
|
8474
8468
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
8475
8469
|
};
|
|
@@ -8522,24 +8516,6 @@ var createSubject = () => {
|
|
|
8522
8516
|
unsubscribe
|
|
8523
8517
|
};
|
|
8524
8518
|
};
|
|
8525
|
-
function extractFormValues(fieldsState, formValues) {
|
|
8526
|
-
const values = {};
|
|
8527
|
-
for (const key in fieldsState) {
|
|
8528
|
-
if (fieldsState.hasOwnProperty(key)) {
|
|
8529
|
-
const fieldState = fieldsState[key];
|
|
8530
|
-
const fieldValue = formValues[key];
|
|
8531
|
-
if (fieldState && isObject$5(fieldState) && fieldValue) {
|
|
8532
|
-
const nestedFieldsState = extractFormValues(fieldState, fieldValue);
|
|
8533
|
-
if (isObject$5(nestedFieldsState)) {
|
|
8534
|
-
values[key] = nestedFieldsState;
|
|
8535
|
-
}
|
|
8536
|
-
} else if (fieldsState[key]) {
|
|
8537
|
-
values[key] = fieldValue;
|
|
8538
|
-
}
|
|
8539
|
-
}
|
|
8540
|
-
}
|
|
8541
|
-
return values;
|
|
8542
|
-
}
|
|
8543
8519
|
var isEmptyObject = (value) => isObject$5(value) && !Object.keys(value).length;
|
|
8544
8520
|
var isFileInput = (element) => element.type === "file";
|
|
8545
8521
|
var isFunction$1 = (value) => typeof value === "function";
|
|
@@ -8591,37 +8567,38 @@ var objectHasFunction = (data) => {
|
|
|
8591
8567
|
}
|
|
8592
8568
|
return false;
|
|
8593
8569
|
};
|
|
8594
|
-
function isTraversable(value) {
|
|
8595
|
-
return Array.isArray(value) || isObject$5(value) && !objectHasFunction(value);
|
|
8596
|
-
}
|
|
8597
8570
|
function markFieldsDirty(data, fields = {}) {
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8571
|
+
const isParentNodeArray = Array.isArray(data);
|
|
8572
|
+
if (isObject$5(data) || isParentNodeArray) {
|
|
8573
|
+
for (const key in data) {
|
|
8574
|
+
if (Array.isArray(data[key]) || isObject$5(data[key]) && !objectHasFunction(data[key])) {
|
|
8575
|
+
fields[key] = Array.isArray(data[key]) ? [] : {};
|
|
8576
|
+
markFieldsDirty(data[key], fields[key]);
|
|
8577
|
+
} else if (!isNullOrUndefined(data[key])) {
|
|
8578
|
+
fields[key] = true;
|
|
8579
|
+
}
|
|
8604
8580
|
}
|
|
8605
8581
|
}
|
|
8606
8582
|
return fields;
|
|
8607
8583
|
}
|
|
8608
|
-
function
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8584
|
+
function getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {
|
|
8585
|
+
const isParentNodeArray = Array.isArray(data);
|
|
8586
|
+
if (isObject$5(data) || isParentNodeArray) {
|
|
8587
|
+
for (const key in data) {
|
|
8588
|
+
if (Array.isArray(data[key]) || isObject$5(data[key]) && !objectHasFunction(data[key])) {
|
|
8589
|
+
if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key])) {
|
|
8590
|
+
dirtyFieldsFromValues[key] = Array.isArray(data[key]) ? markFieldsDirty(data[key], []) : { ...markFieldsDirty(data[key]) };
|
|
8591
|
+
} else {
|
|
8592
|
+
getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);
|
|
8593
|
+
}
|
|
8616
8594
|
} else {
|
|
8617
|
-
|
|
8595
|
+
dirtyFieldsFromValues[key] = !deepEqual$1(data[key], formValues[key]);
|
|
8618
8596
|
}
|
|
8619
|
-
} else {
|
|
8620
|
-
dirtyFieldsFromValues[key] = !deepEqual$1(data[key], formValues[key]);
|
|
8621
8597
|
}
|
|
8622
8598
|
}
|
|
8623
8599
|
return dirtyFieldsFromValues;
|
|
8624
8600
|
}
|
|
8601
|
+
var getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));
|
|
8625
8602
|
const defaultResult = {
|
|
8626
8603
|
value: false,
|
|
8627
8604
|
isValid: false
|
|
@@ -8774,11 +8751,12 @@ var updateFieldArrayRootError = (errors, error, name) => {
|
|
|
8774
8751
|
set$1(errors, name, fieldArrayErrors);
|
|
8775
8752
|
return errors;
|
|
8776
8753
|
};
|
|
8754
|
+
var isMessage = (value) => isString$2(value);
|
|
8777
8755
|
function getValidateError(result, ref, type = "validate") {
|
|
8778
|
-
if (
|
|
8756
|
+
if (isMessage(result) || Array.isArray(result) && result.every(isMessage) || isBoolean$1(result) && !result) {
|
|
8779
8757
|
return {
|
|
8780
8758
|
type,
|
|
8781
|
-
message:
|
|
8759
|
+
message: isMessage(result) ? result : "",
|
|
8782
8760
|
ref
|
|
8783
8761
|
};
|
|
8784
8762
|
}
|
|
@@ -8816,7 +8794,7 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
|
|
|
8816
8794
|
};
|
|
8817
8795
|
};
|
|
8818
8796
|
if (isFieldArray ? !Array.isArray(inputValue) || !inputValue.length : required2 && (!isRadioOrCheckbox2 && (isEmpty || isNullOrUndefined(inputValue)) || isBoolean$1(inputValue) && !inputValue || isCheckBox && !getCheckboxValue(refs).isValid || isRadio && !getRadioValue(refs).isValid)) {
|
|
8819
|
-
const { value, message: message2 } =
|
|
8797
|
+
const { value, message: message2 } = isMessage(required2) ? { value: !!required2, message: required2 } : getValueAndMessage(required2);
|
|
8820
8798
|
if (value) {
|
|
8821
8799
|
error[name] = {
|
|
8822
8800
|
type: INPUT_VALIDATION_RULES.required,
|
|
@@ -9160,11 +9138,11 @@ function createFormControl(props2 = {}) {
|
|
|
9160
9138
|
const isFieldArrayRoot = _names.array.has(_f.name);
|
|
9161
9139
|
const isPromiseFunction = field._f && hasPromiseValidation(field._f);
|
|
9162
9140
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
9163
|
-
_updateIsValidating([
|
|
9141
|
+
_updateIsValidating([name], true);
|
|
9164
9142
|
}
|
|
9165
9143
|
const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);
|
|
9166
9144
|
if (isPromiseFunction && _proxyFormState.validatingFields) {
|
|
9167
|
-
_updateIsValidating([
|
|
9145
|
+
_updateIsValidating([name]);
|
|
9168
9146
|
}
|
|
9169
9147
|
if (fieldError[_f.name]) {
|
|
9170
9148
|
context.valid = false;
|
|
@@ -9339,7 +9317,7 @@ function createFormControl(props2 = {}) {
|
|
|
9339
9317
|
}
|
|
9340
9318
|
}
|
|
9341
9319
|
if (isFieldValueUpdated) {
|
|
9342
|
-
field._f.deps &&
|
|
9320
|
+
field._f.deps && trigger(field._f.deps);
|
|
9343
9321
|
shouldRenderByError(name, isValid2, error, fieldState);
|
|
9344
9322
|
}
|
|
9345
9323
|
}
|
|
@@ -9376,13 +9354,10 @@ function createFormControl(props2 = {}) {
|
|
|
9376
9354
|
options.shouldFocus && !validationResult && iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);
|
|
9377
9355
|
return validationResult;
|
|
9378
9356
|
};
|
|
9379
|
-
const getValues = (fieldNames
|
|
9380
|
-
|
|
9357
|
+
const getValues = (fieldNames) => {
|
|
9358
|
+
const values = {
|
|
9381
9359
|
..._state.mount ? _formValues : _defaultValues
|
|
9382
9360
|
};
|
|
9383
|
-
if (config2) {
|
|
9384
|
-
values = extractFormValues(config2.dirtyFields ? _formState.dirtyFields : _formState.touchedFields, values);
|
|
9385
|
-
}
|
|
9386
9361
|
return isUndefined(fieldNames) ? values : isString$2(fieldNames) ? get(values, fieldNames) : fieldNames.map((name) => get(values, name));
|
|
9387
9362
|
};
|
|
9388
9363
|
const getFieldState = (name, formState) => ({
|
|
@@ -9857,9 +9832,11 @@ function useFieldArray(props2) {
|
|
|
9857
9832
|
const { control = methods.control, name, keyName = "id", shouldUnregister, rules } = props2;
|
|
9858
9833
|
const [fields, setFields] = React__default.useState(control._getFieldArray(name));
|
|
9859
9834
|
const ids = React__default.useRef(control._getFieldArray(name).map(generateId$1));
|
|
9835
|
+
const _fieldIds = React__default.useRef(fields);
|
|
9860
9836
|
const _actioned = React__default.useRef(false);
|
|
9837
|
+
_fieldIds.current = fields;
|
|
9861
9838
|
control._names.array.add(name);
|
|
9862
|
-
React__default.useMemo(() => rules &&
|
|
9839
|
+
React__default.useMemo(() => rules && control.register(name, rules), [control, rules, name]);
|
|
9863
9840
|
useIsomorphicLayoutEffect$4(() => control._subjects.array.subscribe({
|
|
9864
9841
|
next: ({ values, name: fieldArrayName }) => {
|
|
9865
9842
|
if (fieldArrayName === name || !fieldArrayName) {
|
|
@@ -10477,7 +10454,7 @@ function wrapArray$3(array2, startIndex) {
|
|
|
10477
10454
|
var Root$d = RovingFocusGroup;
|
|
10478
10455
|
var Item$2 = RovingFocusGroupItem;
|
|
10479
10456
|
var TABS_NAME = "Tabs";
|
|
10480
|
-
var [createTabsContext] = createContextScope(TABS_NAME, [
|
|
10457
|
+
var [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
|
|
10481
10458
|
createRovingFocusGroupScope
|
|
10482
10459
|
]);
|
|
10483
10460
|
var useRovingFocusGroupScope$4 = createRovingFocusGroupScope();
|
|
@@ -14654,8 +14631,7 @@ function c$1(e2, u2, c2, i2) {
|
|
|
14654
14631
|
}
|
|
14655
14632
|
};
|
|
14656
14633
|
return W2.cancel = function() {
|
|
14657
|
-
|
|
14658
|
-
r3 && (x2 ? cancelAnimationFrame(v.current) : clearTimeout(v.current)), f.current = 0, m2.current = o2.current = d.current = v.current = null, r3 && i2 && i2({});
|
|
14634
|
+
v.current && (x2 ? cancelAnimationFrame(v.current) : clearTimeout(v.current)), f.current = 0, m2.current = o2.current = d.current = v.current = null;
|
|
14659
14635
|
}, W2.isPending = function() {
|
|
14660
14636
|
return !!v.current;
|
|
14661
14637
|
}, W2.flush = function() {
|
|
@@ -16224,9 +16200,15 @@ function getWindowScrollBarX(element, rect) {
|
|
|
16224
16200
|
}
|
|
16225
16201
|
return rect.left + leftScroll;
|
|
16226
16202
|
}
|
|
16227
|
-
function getHTMLOffset(documentElement, scroll) {
|
|
16203
|
+
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
16204
|
+
if (ignoreScrollbarX === void 0) {
|
|
16205
|
+
ignoreScrollbarX = false;
|
|
16206
|
+
}
|
|
16228
16207
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
16229
|
-
const x2 = htmlRect.left + scroll.scrollLeft -
|
|
16208
|
+
const x2 = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 : (
|
|
16209
|
+
// RTL <body> scrollbar.
|
|
16210
|
+
getWindowScrollBarX(documentElement, htmlRect)
|
|
16211
|
+
));
|
|
16230
16212
|
const y = htmlRect.top + scroll.scrollTop;
|
|
16231
16213
|
return {
|
|
16232
16214
|
x: x2,
|
|
@@ -16264,7 +16246,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
16264
16246
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
16265
16247
|
}
|
|
16266
16248
|
}
|
|
16267
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
16249
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
|
|
16268
16250
|
return {
|
|
16269
16251
|
width: rect.width * scale.x,
|
|
16270
16252
|
height: rect.height * scale.y,
|
|
@@ -16293,7 +16275,6 @@ function getDocumentRect(element) {
|
|
|
16293
16275
|
y
|
|
16294
16276
|
};
|
|
16295
16277
|
}
|
|
16296
|
-
const SCROLLBAR_MAX = 25;
|
|
16297
16278
|
function getViewportRect(element, strategy) {
|
|
16298
16279
|
const win = getWindow(element);
|
|
16299
16280
|
const html = getDocumentElement(element);
|
|
@@ -16311,19 +16292,6 @@ function getViewportRect(element, strategy) {
|
|
|
16311
16292
|
y = visualViewport2.offsetTop;
|
|
16312
16293
|
}
|
|
16313
16294
|
}
|
|
16314
|
-
const windowScrollbarX = getWindowScrollBarX(html);
|
|
16315
|
-
if (windowScrollbarX <= 0) {
|
|
16316
|
-
const doc = html.ownerDocument;
|
|
16317
|
-
const body = doc.body;
|
|
16318
|
-
const bodyStyles = getComputedStyle(body);
|
|
16319
|
-
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
16320
|
-
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
16321
|
-
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
16322
|
-
width -= clippingStableScrollbarWidth;
|
|
16323
|
-
}
|
|
16324
|
-
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
16325
|
-
width += windowScrollbarX;
|
|
16326
|
-
}
|
|
16327
16295
|
return {
|
|
16328
16296
|
width,
|
|
16329
16297
|
height,
|
|
@@ -18027,7 +17995,7 @@ var ReactRemoveScroll = React.forwardRef(function(props2, ref) {
|
|
|
18027
17995
|
});
|
|
18028
17996
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
18029
17997
|
var POPOVER_NAME = "Popover";
|
|
18030
|
-
var [createPopoverContext] = createContextScope(POPOVER_NAME, [
|
|
17998
|
+
var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
18031
17999
|
createPopperScope
|
|
18032
18000
|
]);
|
|
18033
18001
|
var usePopperScope$4 = createPopperScope();
|
|
@@ -18931,7 +18899,7 @@ var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
|
|
18931
18899
|
var SELECTION_KEYS$1 = [" ", "Enter"];
|
|
18932
18900
|
var SELECT_NAME = "Select";
|
|
18933
18901
|
var [Collection$4, useCollection$4, createCollectionScope$4] = createCollection(SELECT_NAME);
|
|
18934
|
-
var [createSelectContext] = createContextScope(SELECT_NAME, [
|
|
18902
|
+
var [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [
|
|
18935
18903
|
createCollectionScope$4,
|
|
18936
18904
|
createPopperScope
|
|
18937
18905
|
]);
|
|
@@ -20296,7 +20264,7 @@ function CheckboxField({ field, fieldPath, value, onChange, className }) {
|
|
|
20296
20264
|
] });
|
|
20297
20265
|
}
|
|
20298
20266
|
var SWITCH_NAME = "Switch";
|
|
20299
|
-
var [createSwitchContext] = createContextScope(SWITCH_NAME);
|
|
20267
|
+
var [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
|
|
20300
20268
|
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
|
20301
20269
|
var Switch$1 = React.forwardRef(
|
|
20302
20270
|
(props2, forwardedRef) => {
|
|
@@ -20643,7 +20611,7 @@ function getState$1(checked) {
|
|
|
20643
20611
|
}
|
|
20644
20612
|
var ARROW_KEYS$2 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
20645
20613
|
var RADIO_GROUP_NAME$4 = "RadioGroup";
|
|
20646
|
-
var [createRadioGroupContext] = createContextScope(RADIO_GROUP_NAME$4, [
|
|
20614
|
+
var [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME$4, [
|
|
20647
20615
|
createRovingFocusGroupScope,
|
|
20648
20616
|
createRadioScope
|
|
20649
20617
|
]);
|
|
@@ -21288,21 +21256,6 @@ function startOfYear(date2, options) {
|
|
|
21288
21256
|
date_.setHours(0, 0, 0, 0);
|
|
21289
21257
|
return date_;
|
|
21290
21258
|
}
|
|
21291
|
-
function eachYearOfInterval(interval, options) {
|
|
21292
|
-
const { start, end } = normalizeInterval(options == null ? void 0 : options.in, interval);
|
|
21293
|
-
let reversed = +start > +end;
|
|
21294
|
-
const endTime = reversed ? +start : +end;
|
|
21295
|
-
const date2 = reversed ? end : start;
|
|
21296
|
-
date2.setHours(0, 0, 0, 0);
|
|
21297
|
-
date2.setMonth(0, 1);
|
|
21298
|
-
let step = 1;
|
|
21299
|
-
const dates = [];
|
|
21300
|
-
while (+date2 <= endTime) {
|
|
21301
|
-
dates.push(constructFrom(start, date2));
|
|
21302
|
-
date2.setFullYear(date2.getFullYear() + step);
|
|
21303
|
-
}
|
|
21304
|
-
return reversed ? dates.reverse() : dates;
|
|
21305
|
-
}
|
|
21306
21259
|
function endOfWeek(date2, options) {
|
|
21307
21260
|
var _a, _b, _c, _d;
|
|
21308
21261
|
const defaultOptions2 = getDefaultOptions();
|
|
@@ -22836,19 +22789,6 @@ class DateLib {
|
|
|
22836
22789
|
var _a;
|
|
22837
22790
|
return ((_a = this.overrides) == null ? void 0 : _a.eachMonthOfInterval) ? this.overrides.eachMonthOfInterval(interval) : eachMonthOfInterval(interval);
|
|
22838
22791
|
};
|
|
22839
|
-
this.eachYearOfInterval = (interval) => {
|
|
22840
|
-
var _a;
|
|
22841
|
-
const years = ((_a = this.overrides) == null ? void 0 : _a.eachYearOfInterval) ? this.overrides.eachYearOfInterval(interval) : eachYearOfInterval(interval);
|
|
22842
|
-
const uniqueYears = new Set(years.map((d) => this.getYear(d)));
|
|
22843
|
-
if (uniqueYears.size === years.length) {
|
|
22844
|
-
return years;
|
|
22845
|
-
}
|
|
22846
|
-
const yearsArray = [];
|
|
22847
|
-
uniqueYears.forEach((y) => {
|
|
22848
|
-
yearsArray.push(new Date(y, 0, 1));
|
|
22849
|
-
});
|
|
22850
|
-
return yearsArray;
|
|
22851
|
-
};
|
|
22852
22792
|
this.endOfBroadcastWeek = (date2) => {
|
|
22853
22793
|
var _a;
|
|
22854
22794
|
return ((_a = this.overrides) == null ? void 0 : _a.endOfBroadcastWeek) ? this.overrides.endOfBroadcastWeek(date2) : endOfBroadcastWeek(date2, this);
|
|
@@ -22999,62 +22939,7 @@ class DateLib {
|
|
|
22999
22939
|
formatNumber(value) {
|
|
23000
22940
|
return this.replaceDigits(value.toString());
|
|
23001
22941
|
}
|
|
23002
|
-
|
|
23003
|
-
* Returns the preferred ordering for month and year labels for the current
|
|
23004
|
-
* locale.
|
|
23005
|
-
*/
|
|
23006
|
-
getMonthYearOrder() {
|
|
23007
|
-
var _a;
|
|
23008
|
-
const code = (_a = this.options.locale) == null ? void 0 : _a.code;
|
|
23009
|
-
if (!code) {
|
|
23010
|
-
return "month-first";
|
|
23011
|
-
}
|
|
23012
|
-
return DateLib.yearFirstLocales.has(code) ? "year-first" : "month-first";
|
|
23013
|
-
}
|
|
23014
|
-
/**
|
|
23015
|
-
* Formats the month/year pair respecting locale conventions.
|
|
23016
|
-
*
|
|
23017
|
-
* @since 9.11.0
|
|
23018
|
-
*/
|
|
23019
|
-
formatMonthYear(date2) {
|
|
23020
|
-
const { locale, timeZone, numerals } = this.options;
|
|
23021
|
-
const localeCode = locale == null ? void 0 : locale.code;
|
|
23022
|
-
if (localeCode && DateLib.yearFirstLocales.has(localeCode)) {
|
|
23023
|
-
try {
|
|
23024
|
-
const intl = new Intl.DateTimeFormat(localeCode, {
|
|
23025
|
-
month: "long",
|
|
23026
|
-
year: "numeric",
|
|
23027
|
-
timeZone,
|
|
23028
|
-
numberingSystem: numerals
|
|
23029
|
-
});
|
|
23030
|
-
const formatted = intl.format(date2);
|
|
23031
|
-
return formatted;
|
|
23032
|
-
} catch {
|
|
23033
|
-
}
|
|
23034
|
-
}
|
|
23035
|
-
const pattern = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
|
|
23036
|
-
return this.format(date2, pattern);
|
|
23037
|
-
}
|
|
23038
|
-
}
|
|
23039
|
-
DateLib.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
23040
|
-
"eu",
|
|
23041
|
-
"hu",
|
|
23042
|
-
"ja",
|
|
23043
|
-
"ja-Hira",
|
|
23044
|
-
"ja-JP",
|
|
23045
|
-
"ko",
|
|
23046
|
-
"ko-KR",
|
|
23047
|
-
"lt",
|
|
23048
|
-
"lt-LT",
|
|
23049
|
-
"lv",
|
|
23050
|
-
"lv-LV",
|
|
23051
|
-
"mn",
|
|
23052
|
-
"mn-MN",
|
|
23053
|
-
"zh",
|
|
23054
|
-
"zh-CN",
|
|
23055
|
-
"zh-HK",
|
|
23056
|
-
"zh-TW"
|
|
23057
|
-
]);
|
|
22942
|
+
}
|
|
23058
22943
|
const defaultDateLib = new DateLib();
|
|
23059
22944
|
class CalendarDay {
|
|
23060
22945
|
constructor(date2, displayMonth, dateLib = defaultDateLib) {
|
|
@@ -23526,8 +23411,7 @@ function getDefaultClassNames() {
|
|
|
23526
23411
|
return classNames;
|
|
23527
23412
|
}
|
|
23528
23413
|
function formatCaption(month, options, dateLib) {
|
|
23529
|
-
|
|
23530
|
-
return lib.formatMonthYear(month);
|
|
23414
|
+
return (dateLib ?? new DateLib(options)).format(month, "LLLL y");
|
|
23531
23415
|
}
|
|
23532
23416
|
const formatMonthCaption = formatCaption;
|
|
23533
23417
|
function formatDay(date2, options, dateLib) {
|
|
@@ -23615,16 +23499,21 @@ function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false)
|
|
|
23615
23499
|
return void 0;
|
|
23616
23500
|
if (!navEnd)
|
|
23617
23501
|
return void 0;
|
|
23618
|
-
const { startOfYear: startOfYear2, endOfYear: endOfYear2,
|
|
23502
|
+
const { startOfYear: startOfYear2, endOfYear: endOfYear2, addYears: addYears2, getYear: getYear2, isBefore: isBefore2, isSameYear: isSameYear2 } = dateLib;
|
|
23619
23503
|
const firstNavYear = startOfYear2(navStart);
|
|
23620
23504
|
const lastNavYear = endOfYear2(navEnd);
|
|
23621
|
-
const years =
|
|
23505
|
+
const years = [];
|
|
23506
|
+
let year = firstNavYear;
|
|
23507
|
+
while (isBefore2(year, lastNavYear) || isSameYear2(year, lastNavYear)) {
|
|
23508
|
+
years.push(year);
|
|
23509
|
+
year = addYears2(year, 1);
|
|
23510
|
+
}
|
|
23622
23511
|
if (reverse)
|
|
23623
23512
|
years.reverse();
|
|
23624
|
-
return years.map((
|
|
23625
|
-
const label = formatters2.formatYearDropdown(
|
|
23513
|
+
return years.map((year2) => {
|
|
23514
|
+
const label = formatters2.formatYearDropdown(year2, dateLib);
|
|
23626
23515
|
return {
|
|
23627
|
-
value: getYear2(
|
|
23516
|
+
value: getYear2(year2),
|
|
23628
23517
|
label,
|
|
23629
23518
|
disabled: false
|
|
23630
23519
|
};
|
|
@@ -23640,8 +23529,7 @@ function labelDayButton(date2, modifiers, options, dateLib) {
|
|
|
23640
23529
|
}
|
|
23641
23530
|
const labelDay = labelDayButton;
|
|
23642
23531
|
function labelGrid(date2, options, dateLib) {
|
|
23643
|
-
|
|
23644
|
-
return lib.formatMonthYear(date2);
|
|
23532
|
+
return (dateLib ?? new DateLib(options)).format(date2, "LLLL y");
|
|
23645
23533
|
}
|
|
23646
23534
|
const labelCaption = labelGrid;
|
|
23647
23535
|
function labelGridcell(date2, modifiers, options, dateLib) {
|
|
@@ -24133,12 +24021,6 @@ function useFocus(props2, calendar, getModifiers, isSelected, dateLib) {
|
|
|
24133
24021
|
const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props2, dateLib);
|
|
24134
24022
|
if (!nextFocus)
|
|
24135
24023
|
return;
|
|
24136
|
-
if (props2.disableNavigation) {
|
|
24137
|
-
const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));
|
|
24138
|
-
if (!isNextInCalendar) {
|
|
24139
|
-
return;
|
|
24140
|
-
}
|
|
24141
|
-
}
|
|
24142
24024
|
calendar.goToDay(nextFocus);
|
|
24143
24025
|
setFocused(nextFocus);
|
|
24144
24026
|
};
|
|
@@ -24559,7 +24441,7 @@ function DayPicker(initialProps) {
|
|
|
24559
24441
|
{ value: contextValue },
|
|
24560
24442
|
React__default.createElement(
|
|
24561
24443
|
components2.Root,
|
|
24562
|
-
{ rootRef: props2.animate ? rootElRef : void 0, className, style, dir: props2.dir, id: props2.id, lang: props2.lang, nonce: props2.nonce, title: props2.title, role: props2.role, "aria-label": props2["aria-label"],
|
|
24444
|
+
{ rootRef: props2.animate ? rootElRef : void 0, className, style, dir: props2.dir, id: props2.id, lang: props2.lang, nonce: props2.nonce, title: props2.title, role: props2.role, "aria-label": props2["aria-label"], ...dataAttributes },
|
|
24563
24445
|
React__default.createElement(
|
|
24564
24446
|
components2.Months,
|
|
24565
24447
|
{ className: classNames[UI.Months], style: styles == null ? void 0 : styles[UI.Months] },
|
|
@@ -24584,12 +24466,8 @@ function DayPicker(initialProps) {
|
|
|
24584
24466
|
React__default.createElement(components2.MonthCaption, { "data-animated-caption": props2.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles == null ? void 0 : styles[UI.MonthCaption], calendarMonth, displayIndex }, (captionLayout == null ? void 0 : captionLayout.startsWith("dropdown")) ? React__default.createElement(
|
|
24585
24467
|
components2.DropdownNav,
|
|
24586
24468
|
{ className: classNames[UI.Dropdowns], style: styles == null ? void 0 : styles[UI.Dropdowns] },
|
|
24587
|
-
(()
|
|
24588
|
-
|
|
24589
|
-
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React__default.createElement(components2.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components: components2, disabled: Boolean(props2.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props2.reverseYears)), style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React__default.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
|
|
24590
|
-
const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
|
|
24591
|
-
return controls;
|
|
24592
|
-
})(),
|
|
24469
|
+
captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React__default.createElement(components2.MonthsDropdown, { className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components: components2, disabled: Boolean(props2.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : React__default.createElement("span", null, formatMonthDropdown2(calendarMonth.date, dateLib)),
|
|
24470
|
+
captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React__default.createElement(components2.YearsDropdown, { className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components: components2, disabled: Boolean(props2.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props2.reverseYears)), style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React__default.createElement("span", null, formatYearDropdown2(calendarMonth.date, dateLib)),
|
|
24593
24471
|
React__default.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
24594
24472
|
border: 0,
|
|
24595
24473
|
clip: "rect(0 0 0 0)",
|
|
@@ -29582,7 +29460,7 @@ function noop$1() {
|
|
|
29582
29460
|
}
|
|
29583
29461
|
var PROGRESS_NAME = "Progress";
|
|
29584
29462
|
var DEFAULT_MAX = 100;
|
|
29585
|
-
var [createProgressContext] = createContextScope(PROGRESS_NAME);
|
|
29463
|
+
var [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);
|
|
29586
29464
|
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
29587
29465
|
var Progress$1 = React.forwardRef(
|
|
29588
29466
|
(props2, forwardedRef) => {
|
|
@@ -29691,7 +29569,7 @@ function Progress({
|
|
|
29691
29569
|
}
|
|
29692
29570
|
);
|
|
29693
29571
|
}
|
|
29694
|
-
var [createTooltipContext] = createContextScope("Tooltip", [
|
|
29572
|
+
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
29695
29573
|
createPopperScope
|
|
29696
29574
|
]);
|
|
29697
29575
|
var usePopperScope$2 = createPopperScope();
|
|
@@ -31289,12 +31167,6 @@ class $ZodAsyncError extends Error {
|
|
|
31289
31167
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
31290
31168
|
}
|
|
31291
31169
|
}
|
|
31292
|
-
class $ZodEncodeError extends Error {
|
|
31293
|
-
constructor(name) {
|
|
31294
|
-
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
31295
|
-
this.name = "ZodEncodeError";
|
|
31296
|
-
}
|
|
31297
|
-
}
|
|
31298
31170
|
const globalConfig = {};
|
|
31299
31171
|
function config(newConfig) {
|
|
31300
31172
|
return globalConfig;
|
|
@@ -31366,6 +31238,9 @@ function defineLazy(object2, key, getter) {
|
|
|
31366
31238
|
configurable: true
|
|
31367
31239
|
});
|
|
31368
31240
|
}
|
|
31241
|
+
function objectClone(obj) {
|
|
31242
|
+
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
31243
|
+
}
|
|
31369
31244
|
function assignProp(target, prop, value) {
|
|
31370
31245
|
Object.defineProperty(target, prop, {
|
|
31371
31246
|
value,
|
|
@@ -31420,8 +31295,6 @@ function isPlainObject(o2) {
|
|
|
31420
31295
|
function shallowClone(o2) {
|
|
31421
31296
|
if (isPlainObject(o2))
|
|
31422
31297
|
return { ...o2 };
|
|
31423
|
-
if (Array.isArray(o2))
|
|
31424
|
-
return [...o2];
|
|
31425
31298
|
return o2;
|
|
31426
31299
|
}
|
|
31427
31300
|
const propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
@@ -31506,11 +31379,6 @@ function extend(schema, shape) {
|
|
|
31506
31379
|
if (!isPlainObject(shape)) {
|
|
31507
31380
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
31508
31381
|
}
|
|
31509
|
-
const checks = schema._zod.def.checks;
|
|
31510
|
-
const hasChecks = checks && checks.length > 0;
|
|
31511
|
-
if (hasChecks) {
|
|
31512
|
-
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
31513
|
-
}
|
|
31514
31382
|
const def = mergeDefs(schema._zod.def, {
|
|
31515
31383
|
get shape() {
|
|
31516
31384
|
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
@@ -31521,21 +31389,6 @@ function extend(schema, shape) {
|
|
|
31521
31389
|
});
|
|
31522
31390
|
return clone(schema, def);
|
|
31523
31391
|
}
|
|
31524
|
-
function safeExtend(schema, shape) {
|
|
31525
|
-
if (!isPlainObject(shape)) {
|
|
31526
|
-
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
31527
|
-
}
|
|
31528
|
-
const def = {
|
|
31529
|
-
...schema._zod.def,
|
|
31530
|
-
get shape() {
|
|
31531
|
-
const _shape = { ...schema._zod.def.shape, ...shape };
|
|
31532
|
-
assignProp(this, "shape", _shape);
|
|
31533
|
-
return _shape;
|
|
31534
|
-
},
|
|
31535
|
-
checks: schema._zod.def.checks
|
|
31536
|
-
};
|
|
31537
|
-
return clone(schema, def);
|
|
31538
|
-
}
|
|
31539
31392
|
function merge(a2, b2) {
|
|
31540
31393
|
const def = mergeDefs(a2._zod.def, {
|
|
31541
31394
|
get shape() {
|
|
@@ -31617,8 +31470,6 @@ function required(Class, schema, mask) {
|
|
|
31617
31470
|
}
|
|
31618
31471
|
function aborted(x2, startIndex = 0) {
|
|
31619
31472
|
var _a;
|
|
31620
|
-
if (x2.aborted === true)
|
|
31621
|
-
return true;
|
|
31622
31473
|
for (let i2 = startIndex; i2 < x2.issues.length; i2++) {
|
|
31623
31474
|
if (((_a = x2.issues[i2]) == null ? void 0 : _a.continue) !== true) {
|
|
31624
31475
|
return true;
|
|
@@ -31701,7 +31552,10 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
31701
31552
|
}
|
|
31702
31553
|
return { formErrors, fieldErrors };
|
|
31703
31554
|
}
|
|
31704
|
-
function formatError(error,
|
|
31555
|
+
function formatError(error, _mapper) {
|
|
31556
|
+
const mapper = _mapper || function(issue2) {
|
|
31557
|
+
return issue2.message;
|
|
31558
|
+
};
|
|
31705
31559
|
const fieldErrors = { _errors: [] };
|
|
31706
31560
|
const processError = (error2) => {
|
|
31707
31561
|
for (const issue2 of error2.issues) {
|
|
@@ -31784,34 +31638,6 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
31784
31638
|
} : { success: true, data: result.value };
|
|
31785
31639
|
};
|
|
31786
31640
|
const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
31787
|
-
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
31788
|
-
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
31789
|
-
return _parse(_Err)(schema, value, ctx);
|
|
31790
|
-
};
|
|
31791
|
-
const _decode = (_Err) => (schema, value, _ctx) => {
|
|
31792
|
-
return _parse(_Err)(schema, value, _ctx);
|
|
31793
|
-
};
|
|
31794
|
-
const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
31795
|
-
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
31796
|
-
return _parseAsync(_Err)(schema, value, ctx);
|
|
31797
|
-
};
|
|
31798
|
-
const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
31799
|
-
return _parseAsync(_Err)(schema, value, _ctx);
|
|
31800
|
-
};
|
|
31801
|
-
const _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
31802
|
-
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
31803
|
-
return _safeParse(_Err)(schema, value, ctx);
|
|
31804
|
-
};
|
|
31805
|
-
const _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
31806
|
-
return _safeParse(_Err)(schema, value, _ctx);
|
|
31807
|
-
};
|
|
31808
|
-
const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
31809
|
-
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
31810
|
-
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
31811
|
-
};
|
|
31812
|
-
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
31813
|
-
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
31814
|
-
};
|
|
31815
31641
|
const cuid = /^[cC][^\s-]{8,}$/;
|
|
31816
31642
|
const cuid2 = /^[0-9a-z]+$/;
|
|
31817
31643
|
const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -31822,7 +31648,7 @@ const duration$1 = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\
|
|
|
31822
31648
|
const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
31823
31649
|
const uuid = (version2) => {
|
|
31824
31650
|
if (!version2)
|
|
31825
|
-
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000
|
|
31651
|
+
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;
|
|
31826
31652
|
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
31827
31653
|
};
|
|
31828
31654
|
const email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
|
|
@@ -31831,7 +31657,7 @@ function emoji() {
|
|
|
31831
31657
|
return new RegExp(_emoji$1, "u");
|
|
31832
31658
|
}
|
|
31833
31659
|
const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
31834
|
-
const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}
|
|
31660
|
+
const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;
|
|
31835
31661
|
const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
|
|
31836
31662
|
const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
31837
31663
|
const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
@@ -31862,10 +31688,10 @@ const string$1 = (params) => {
|
|
|
31862
31688
|
const regex = params ? `[\\s\\S]{${(params == null ? void 0 : params.minimum) ?? 0},${(params == null ? void 0 : params.maximum) ?? ""}}` : `[\\s\\S]*`;
|
|
31863
31689
|
return new RegExp(`^${regex}$`);
|
|
31864
31690
|
};
|
|
31865
|
-
const integer =
|
|
31866
|
-
const number$1 = /^-?\d+(?:\.\d+)
|
|
31867
|
-
const boolean$1 =
|
|
31868
|
-
const _null$2 =
|
|
31691
|
+
const integer = /^\d+$/;
|
|
31692
|
+
const number$1 = /^-?\d+(?:\.\d+)?/i;
|
|
31693
|
+
const boolean$1 = /true|false/i;
|
|
31694
|
+
const _null$2 = /null/i;
|
|
31869
31695
|
const lowercase = /^[^A-Z]*$/;
|
|
31870
31696
|
const uppercase = /^[^a-z]*$/;
|
|
31871
31697
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
@@ -32289,8 +32115,8 @@ class Doc {
|
|
|
32289
32115
|
}
|
|
32290
32116
|
const version = {
|
|
32291
32117
|
major: 4,
|
|
32292
|
-
minor:
|
|
32293
|
-
patch:
|
|
32118
|
+
minor: 0,
|
|
32119
|
+
patch: 17
|
|
32294
32120
|
};
|
|
32295
32121
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
32296
32122
|
var _a2;
|
|
@@ -32354,32 +32180,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
32354
32180
|
}
|
|
32355
32181
|
return payload;
|
|
32356
32182
|
};
|
|
32357
|
-
const handleCanaryResult = (canary, payload, ctx) => {
|
|
32358
|
-
if (aborted(canary)) {
|
|
32359
|
-
canary.aborted = true;
|
|
32360
|
-
return canary;
|
|
32361
|
-
}
|
|
32362
|
-
const checkResult = runChecks(payload, checks, ctx);
|
|
32363
|
-
if (checkResult instanceof Promise) {
|
|
32364
|
-
if (ctx.async === false)
|
|
32365
|
-
throw new $ZodAsyncError();
|
|
32366
|
-
return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
|
|
32367
|
-
}
|
|
32368
|
-
return inst._zod.parse(checkResult, ctx);
|
|
32369
|
-
};
|
|
32370
32183
|
inst._zod.run = (payload, ctx) => {
|
|
32371
|
-
if (ctx.skipChecks) {
|
|
32372
|
-
return inst._zod.parse(payload, ctx);
|
|
32373
|
-
}
|
|
32374
|
-
if (ctx.direction === "backward") {
|
|
32375
|
-
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
32376
|
-
if (canary instanceof Promise) {
|
|
32377
|
-
return canary.then((canary2) => {
|
|
32378
|
-
return handleCanaryResult(canary2, payload, ctx);
|
|
32379
|
-
});
|
|
32380
|
-
}
|
|
32381
|
-
return handleCanaryResult(canary, payload, ctx);
|
|
32382
|
-
}
|
|
32383
32184
|
const result = inst._zod.parse(payload, ctx);
|
|
32384
32185
|
if (result instanceof Promise) {
|
|
32385
32186
|
if (ctx.async === false)
|
|
@@ -32591,11 +32392,8 @@ const $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
32591
32392
|
def.pattern ?? (def.pattern = cidrv6);
|
|
32592
32393
|
$ZodStringFormat.init(inst, def);
|
|
32593
32394
|
inst._zod.check = (payload) => {
|
|
32594
|
-
const
|
|
32395
|
+
const [address, prefix] = payload.value.split("/");
|
|
32595
32396
|
try {
|
|
32596
|
-
if (parts.length !== 2)
|
|
32597
|
-
throw new Error();
|
|
32598
|
-
const [address, prefix] = parts;
|
|
32599
32397
|
if (!prefix)
|
|
32600
32398
|
throw new Error();
|
|
32601
32399
|
const prefixNum = Number(prefix);
|
|
@@ -32869,72 +32667,24 @@ function handlePropertyResult(result, final, key, input) {
|
|
|
32869
32667
|
final.value[key] = result.value;
|
|
32870
32668
|
}
|
|
32871
32669
|
}
|
|
32872
|
-
function normalizeDef(def) {
|
|
32873
|
-
var _a, _b, _c, _d;
|
|
32874
|
-
const keys = Object.keys(def.shape);
|
|
32875
|
-
for (const k2 of keys) {
|
|
32876
|
-
if (!((_d = (_c = (_b = (_a = def.shape) == null ? void 0 : _a[k2]) == null ? void 0 : _b._zod) == null ? void 0 : _c.traits) == null ? void 0 : _d.has("$ZodType"))) {
|
|
32877
|
-
throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
|
|
32878
|
-
}
|
|
32879
|
-
}
|
|
32880
|
-
const okeys = optionalKeys(def.shape);
|
|
32881
|
-
return {
|
|
32882
|
-
...def,
|
|
32883
|
-
keys,
|
|
32884
|
-
keySet: new Set(keys),
|
|
32885
|
-
numKeys: keys.length,
|
|
32886
|
-
optionalKeys: new Set(okeys)
|
|
32887
|
-
};
|
|
32888
|
-
}
|
|
32889
|
-
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
32890
|
-
const unrecognized = [];
|
|
32891
|
-
const keySet = def.keySet;
|
|
32892
|
-
const _catchall = def.catchall._zod;
|
|
32893
|
-
const t2 = _catchall.def.type;
|
|
32894
|
-
for (const key of Object.keys(input)) {
|
|
32895
|
-
if (keySet.has(key))
|
|
32896
|
-
continue;
|
|
32897
|
-
if (t2 === "never") {
|
|
32898
|
-
unrecognized.push(key);
|
|
32899
|
-
continue;
|
|
32900
|
-
}
|
|
32901
|
-
const r2 = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
32902
|
-
if (r2 instanceof Promise) {
|
|
32903
|
-
proms.push(r2.then((r3) => handlePropertyResult(r3, payload, key, input)));
|
|
32904
|
-
} else {
|
|
32905
|
-
handlePropertyResult(r2, payload, key, input);
|
|
32906
|
-
}
|
|
32907
|
-
}
|
|
32908
|
-
if (unrecognized.length) {
|
|
32909
|
-
payload.issues.push({
|
|
32910
|
-
code: "unrecognized_keys",
|
|
32911
|
-
keys: unrecognized,
|
|
32912
|
-
input,
|
|
32913
|
-
inst
|
|
32914
|
-
});
|
|
32915
|
-
}
|
|
32916
|
-
if (!proms.length)
|
|
32917
|
-
return payload;
|
|
32918
|
-
return Promise.all(proms).then(() => {
|
|
32919
|
-
return payload;
|
|
32920
|
-
});
|
|
32921
|
-
}
|
|
32922
32670
|
const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
32923
32671
|
$ZodType.init(inst, def);
|
|
32924
|
-
const
|
|
32925
|
-
|
|
32926
|
-
const
|
|
32927
|
-
|
|
32928
|
-
|
|
32929
|
-
const newSh = { ...sh };
|
|
32930
|
-
Object.defineProperty(def, "shape", {
|
|
32931
|
-
value: newSh
|
|
32932
|
-
});
|
|
32933
|
-
return newSh;
|
|
32672
|
+
const _normalized = cached(() => {
|
|
32673
|
+
const keys = Object.keys(def.shape);
|
|
32674
|
+
for (const k2 of keys) {
|
|
32675
|
+
if (!def.shape[k2]._zod.traits.has("$ZodType")) {
|
|
32676
|
+
throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
|
|
32934
32677
|
}
|
|
32935
|
-
}
|
|
32936
|
-
|
|
32937
|
-
|
|
32678
|
+
}
|
|
32679
|
+
const okeys = optionalKeys(def.shape);
|
|
32680
|
+
return {
|
|
32681
|
+
shape: def.shape,
|
|
32682
|
+
keys,
|
|
32683
|
+
keySet: new Set(keys),
|
|
32684
|
+
numKeys: keys.length,
|
|
32685
|
+
optionalKeys: new Set(okeys)
|
|
32686
|
+
};
|
|
32687
|
+
});
|
|
32938
32688
|
defineLazy(inst._zod, "propValues", () => {
|
|
32939
32689
|
const shape = def.shape;
|
|
32940
32690
|
const propValues = {};
|
|
@@ -32948,43 +32698,6 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
32948
32698
|
}
|
|
32949
32699
|
return propValues;
|
|
32950
32700
|
});
|
|
32951
|
-
const isObject2 = isObject$3;
|
|
32952
|
-
const catchall = def.catchall;
|
|
32953
|
-
let value;
|
|
32954
|
-
inst._zod.parse = (payload, ctx) => {
|
|
32955
|
-
value ?? (value = _normalized.value);
|
|
32956
|
-
const input = payload.value;
|
|
32957
|
-
if (!isObject2(input)) {
|
|
32958
|
-
payload.issues.push({
|
|
32959
|
-
expected: "object",
|
|
32960
|
-
code: "invalid_type",
|
|
32961
|
-
input,
|
|
32962
|
-
inst
|
|
32963
|
-
});
|
|
32964
|
-
return payload;
|
|
32965
|
-
}
|
|
32966
|
-
payload.value = {};
|
|
32967
|
-
const proms = [];
|
|
32968
|
-
const shape = value.shape;
|
|
32969
|
-
for (const key of value.keys) {
|
|
32970
|
-
const el = shape[key];
|
|
32971
|
-
const r2 = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
32972
|
-
if (r2 instanceof Promise) {
|
|
32973
|
-
proms.push(r2.then((r3) => handlePropertyResult(r3, payload, key, input)));
|
|
32974
|
-
} else {
|
|
32975
|
-
handlePropertyResult(r2, payload, key, input);
|
|
32976
|
-
}
|
|
32977
|
-
}
|
|
32978
|
-
if (!catchall) {
|
|
32979
|
-
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
32980
|
-
}
|
|
32981
|
-
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
32982
|
-
};
|
|
32983
|
-
});
|
|
32984
|
-
const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
32985
|
-
$ZodObject.init(inst, def);
|
|
32986
|
-
const superParse = inst._zod.parse;
|
|
32987
|
-
const _normalized = cached(() => normalizeDef(def));
|
|
32988
32701
|
const generateFastpass = (shape) => {
|
|
32989
32702
|
const doc = new Doc(["shape", "payload", "ctx"]);
|
|
32990
32703
|
const normalized = _normalized.value;
|
|
@@ -32998,7 +32711,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
32998
32711
|
for (const key of normalized.keys) {
|
|
32999
32712
|
ids[key] = `key_${counter2++}`;
|
|
33000
32713
|
}
|
|
33001
|
-
doc.write(`const newResult = {}
|
|
32714
|
+
doc.write(`const newResult = {}`);
|
|
33002
32715
|
for (const key of normalized.keys) {
|
|
33003
32716
|
const id = ids[key];
|
|
33004
32717
|
const k2 = esc(key);
|
|
@@ -33011,7 +32724,6 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
33011
32724
|
})));
|
|
33012
32725
|
}
|
|
33013
32726
|
|
|
33014
|
-
|
|
33015
32727
|
if (${id}.value === undefined) {
|
|
33016
32728
|
if (${k2} in input) {
|
|
33017
32729
|
newResult[${k2}] = undefined;
|
|
@@ -33019,7 +32731,6 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
33019
32731
|
} else {
|
|
33020
32732
|
newResult[${k2}] = ${id}.value;
|
|
33021
32733
|
}
|
|
33022
|
-
|
|
33023
32734
|
`);
|
|
33024
32735
|
}
|
|
33025
32736
|
doc.write(`payload.value = newResult;`);
|
|
@@ -33046,15 +32757,58 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
33046
32757
|
});
|
|
33047
32758
|
return payload;
|
|
33048
32759
|
}
|
|
32760
|
+
const proms = [];
|
|
33049
32761
|
if (jit && fastEnabled && (ctx == null ? void 0 : ctx.async) === false && ctx.jitless !== true) {
|
|
33050
32762
|
if (!fastpass)
|
|
33051
32763
|
fastpass = generateFastpass(def.shape);
|
|
33052
32764
|
payload = fastpass(payload, ctx);
|
|
33053
|
-
|
|
33054
|
-
|
|
33055
|
-
|
|
32765
|
+
} else {
|
|
32766
|
+
payload.value = {};
|
|
32767
|
+
const shape = value.shape;
|
|
32768
|
+
for (const key of value.keys) {
|
|
32769
|
+
const el = shape[key];
|
|
32770
|
+
const r2 = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
32771
|
+
if (r2 instanceof Promise) {
|
|
32772
|
+
proms.push(r2.then((r3) => handlePropertyResult(r3, payload, key, input)));
|
|
32773
|
+
} else {
|
|
32774
|
+
handlePropertyResult(r2, payload, key, input);
|
|
32775
|
+
}
|
|
32776
|
+
}
|
|
33056
32777
|
}
|
|
33057
|
-
|
|
32778
|
+
if (!catchall) {
|
|
32779
|
+
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
|
32780
|
+
}
|
|
32781
|
+
const unrecognized = [];
|
|
32782
|
+
const keySet = value.keySet;
|
|
32783
|
+
const _catchall = catchall._zod;
|
|
32784
|
+
const t2 = _catchall.def.type;
|
|
32785
|
+
for (const key of Object.keys(input)) {
|
|
32786
|
+
if (keySet.has(key))
|
|
32787
|
+
continue;
|
|
32788
|
+
if (t2 === "never") {
|
|
32789
|
+
unrecognized.push(key);
|
|
32790
|
+
continue;
|
|
32791
|
+
}
|
|
32792
|
+
const r2 = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
32793
|
+
if (r2 instanceof Promise) {
|
|
32794
|
+
proms.push(r2.then((r3) => handlePropertyResult(r3, payload, key, input)));
|
|
32795
|
+
} else {
|
|
32796
|
+
handlePropertyResult(r2, payload, key, input);
|
|
32797
|
+
}
|
|
32798
|
+
}
|
|
32799
|
+
if (unrecognized.length) {
|
|
32800
|
+
payload.issues.push({
|
|
32801
|
+
code: "unrecognized_keys",
|
|
32802
|
+
keys: unrecognized,
|
|
32803
|
+
input,
|
|
32804
|
+
inst
|
|
32805
|
+
});
|
|
32806
|
+
}
|
|
32807
|
+
if (!proms.length)
|
|
32808
|
+
return payload;
|
|
32809
|
+
return Promise.all(proms).then(() => {
|
|
32810
|
+
return payload;
|
|
32811
|
+
});
|
|
33058
32812
|
};
|
|
33059
32813
|
});
|
|
33060
32814
|
function handleUnionResults(results, final, inst, ctx) {
|
|
@@ -33220,12 +32974,9 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
33220
32974
|
});
|
|
33221
32975
|
const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
33222
32976
|
$ZodType.init(inst, def);
|
|
33223
|
-
inst._zod.parse = (payload,
|
|
33224
|
-
if (ctx.direction === "backward") {
|
|
33225
|
-
throw new $ZodEncodeError(inst.constructor.name);
|
|
33226
|
-
}
|
|
32977
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
33227
32978
|
const _out = def.transform(payload.value, payload);
|
|
33228
|
-
if (
|
|
32979
|
+
if (_ctx.async) {
|
|
33229
32980
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
33230
32981
|
return output.then((output2) => {
|
|
33231
32982
|
payload.value = output2;
|
|
@@ -33291,9 +33042,6 @@ const $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
|
33291
33042
|
inst._zod.optin = "optional";
|
|
33292
33043
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
33293
33044
|
inst._zod.parse = (payload, ctx) => {
|
|
33294
|
-
if (ctx.direction === "backward") {
|
|
33295
|
-
return def.innerType._zod.run(payload, ctx);
|
|
33296
|
-
}
|
|
33297
33045
|
if (payload.value === void 0) {
|
|
33298
33046
|
payload.value = def.defaultValue;
|
|
33299
33047
|
return payload;
|
|
@@ -33316,9 +33064,6 @@ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) =>
|
|
|
33316
33064
|
inst._zod.optin = "optional";
|
|
33317
33065
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
33318
33066
|
inst._zod.parse = (payload, ctx) => {
|
|
33319
|
-
if (ctx.direction === "backward") {
|
|
33320
|
-
return def.innerType._zod.run(payload, ctx);
|
|
33321
|
-
}
|
|
33322
33067
|
if (payload.value === void 0) {
|
|
33323
33068
|
payload.value = def.defaultValue;
|
|
33324
33069
|
}
|
|
@@ -33356,9 +33101,6 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
33356
33101
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
33357
33102
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
33358
33103
|
inst._zod.parse = (payload, ctx) => {
|
|
33359
|
-
if (ctx.direction === "backward") {
|
|
33360
|
-
return def.innerType._zod.run(payload, ctx);
|
|
33361
|
-
}
|
|
33362
33104
|
const result = def.innerType._zod.run(payload, ctx);
|
|
33363
33105
|
if (result instanceof Promise) {
|
|
33364
33106
|
return result.then((result2) => {
|
|
@@ -33397,26 +33139,18 @@ const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
33397
33139
|
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
|
33398
33140
|
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
|
33399
33141
|
inst._zod.parse = (payload, ctx) => {
|
|
33400
|
-
if (ctx.direction === "backward") {
|
|
33401
|
-
const right = def.out._zod.run(payload, ctx);
|
|
33402
|
-
if (right instanceof Promise) {
|
|
33403
|
-
return right.then((right2) => handlePipeResult(right2, def.in, ctx));
|
|
33404
|
-
}
|
|
33405
|
-
return handlePipeResult(right, def.in, ctx);
|
|
33406
|
-
}
|
|
33407
33142
|
const left = def.in._zod.run(payload, ctx);
|
|
33408
33143
|
if (left instanceof Promise) {
|
|
33409
|
-
return left.then((left2) => handlePipeResult(left2, def
|
|
33144
|
+
return left.then((left2) => handlePipeResult(left2, def, ctx));
|
|
33410
33145
|
}
|
|
33411
|
-
return handlePipeResult(left, def
|
|
33146
|
+
return handlePipeResult(left, def, ctx);
|
|
33412
33147
|
};
|
|
33413
33148
|
});
|
|
33414
|
-
function handlePipeResult(left,
|
|
33149
|
+
function handlePipeResult(left, def, ctx) {
|
|
33415
33150
|
if (left.issues.length) {
|
|
33416
|
-
left.aborted = true;
|
|
33417
33151
|
return left;
|
|
33418
33152
|
}
|
|
33419
|
-
return
|
|
33153
|
+
return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
33420
33154
|
}
|
|
33421
33155
|
const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
33422
33156
|
$ZodType.init(inst, def);
|
|
@@ -33425,9 +33159,6 @@ const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) =>
|
|
|
33425
33159
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
33426
33160
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
33427
33161
|
inst._zod.parse = (payload, ctx) => {
|
|
33428
|
-
if (ctx.direction === "backward") {
|
|
33429
|
-
return def.innerType._zod.run(payload, ctx);
|
|
33430
|
-
}
|
|
33431
33162
|
const result = def.innerType._zod.run(payload, ctx);
|
|
33432
33163
|
if (result instanceof Promise) {
|
|
33433
33164
|
return result.then(handleReadonlyResult);
|
|
@@ -33474,7 +33205,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
33474
33205
|
}
|
|
33475
33206
|
class $ZodRegistry {
|
|
33476
33207
|
constructor() {
|
|
33477
|
-
this._map = /* @__PURE__ */ new
|
|
33208
|
+
this._map = /* @__PURE__ */ new Map();
|
|
33478
33209
|
this._idmap = /* @__PURE__ */ new Map();
|
|
33479
33210
|
}
|
|
33480
33211
|
add(schema, ..._meta) {
|
|
@@ -33489,7 +33220,7 @@ class $ZodRegistry {
|
|
|
33489
33220
|
return this;
|
|
33490
33221
|
}
|
|
33491
33222
|
clear() {
|
|
33492
|
-
this._map = /* @__PURE__ */ new
|
|
33223
|
+
this._map = /* @__PURE__ */ new Map();
|
|
33493
33224
|
this._idmap = /* @__PURE__ */ new Map();
|
|
33494
33225
|
return this;
|
|
33495
33226
|
}
|
|
@@ -34138,26 +33869,21 @@ const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
|
34138
33869
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
34139
33870
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
34140
33871
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
34141
|
-
const encode = /* @__PURE__ */ _encode(ZodRealError);
|
|
34142
|
-
const decode = /* @__PURE__ */ _decode(ZodRealError);
|
|
34143
|
-
const encodeAsync = /* @__PURE__ */ _encodeAsync(ZodRealError);
|
|
34144
|
-
const decodeAsync = /* @__PURE__ */ _decodeAsync(ZodRealError);
|
|
34145
|
-
const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
34146
|
-
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
34147
|
-
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
34148
|
-
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
34149
33872
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
34150
33873
|
$ZodType.init(inst, def);
|
|
34151
33874
|
inst.def = def;
|
|
34152
|
-
inst.type = def.type;
|
|
34153
33875
|
Object.defineProperty(inst, "_def", { value: def });
|
|
34154
33876
|
inst.check = (...checks) => {
|
|
34155
|
-
return inst.clone(
|
|
34156
|
-
|
|
34157
|
-
...def
|
|
34158
|
-
|
|
34159
|
-
|
|
34160
|
-
|
|
33877
|
+
return inst.clone(
|
|
33878
|
+
{
|
|
33879
|
+
...def,
|
|
33880
|
+
checks: [
|
|
33881
|
+
...def.checks ?? [],
|
|
33882
|
+
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
33883
|
+
]
|
|
33884
|
+
}
|
|
33885
|
+
// { parent: true }
|
|
33886
|
+
);
|
|
34161
33887
|
};
|
|
34162
33888
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
34163
33889
|
inst.brand = () => inst;
|
|
@@ -34170,14 +33896,6 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
34170
33896
|
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
34171
33897
|
inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
|
|
34172
33898
|
inst.spa = inst.safeParseAsync;
|
|
34173
|
-
inst.encode = (data, params) => encode(inst, data, params);
|
|
34174
|
-
inst.decode = (data, params) => decode(inst, data, params);
|
|
34175
|
-
inst.encodeAsync = async (data, params) => encodeAsync(inst, data, params);
|
|
34176
|
-
inst.decodeAsync = async (data, params) => decodeAsync(inst, data, params);
|
|
34177
|
-
inst.safeEncode = (data, params) => safeEncode(inst, data, params);
|
|
34178
|
-
inst.safeDecode = (data, params) => safeDecode(inst, data, params);
|
|
34179
|
-
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
|
|
34180
|
-
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
34181
33899
|
inst.refine = (check, params) => inst.check(refine(check, params));
|
|
34182
33900
|
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
34183
33901
|
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
@@ -34450,11 +34168,9 @@ function array(element, params) {
|
|
|
34450
34168
|
return _array(ZodArray, element, params);
|
|
34451
34169
|
}
|
|
34452
34170
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
34453
|
-
$
|
|
34171
|
+
$ZodObject.init(inst, def);
|
|
34454
34172
|
ZodType.init(inst, def);
|
|
34455
|
-
defineLazy(inst, "shape", () =>
|
|
34456
|
-
return def.shape;
|
|
34457
|
-
});
|
|
34173
|
+
defineLazy(inst, "shape", () => def.shape);
|
|
34458
34174
|
inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
|
|
34459
34175
|
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
|
34460
34176
|
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
|
@@ -34464,9 +34180,6 @@ const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
34464
34180
|
inst.extend = (incoming) => {
|
|
34465
34181
|
return extend(inst, incoming);
|
|
34466
34182
|
};
|
|
34467
|
-
inst.safeExtend = (incoming) => {
|
|
34468
|
-
return safeExtend(inst, incoming);
|
|
34469
|
-
};
|
|
34470
34183
|
inst.merge = (other) => merge(inst, other);
|
|
34471
34184
|
inst.pick = (mask) => pick(inst, mask);
|
|
34472
34185
|
inst.omit = (mask) => omit(inst, mask);
|
|
@@ -34476,7 +34189,10 @@ const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
34476
34189
|
function object(shape, params) {
|
|
34477
34190
|
const def = {
|
|
34478
34191
|
type: "object",
|
|
34479
|
-
|
|
34192
|
+
get shape() {
|
|
34193
|
+
assignProp(this, "shape", shape ? objectClone(shape) : {});
|
|
34194
|
+
return this.shape;
|
|
34195
|
+
},
|
|
34480
34196
|
...normalizeParams(params)
|
|
34481
34197
|
};
|
|
34482
34198
|
return new ZodObject(def);
|
|
@@ -34553,9 +34269,6 @@ const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) =>
|
|
|
34553
34269
|
$ZodTransform.init(inst, def);
|
|
34554
34270
|
ZodType.init(inst, def);
|
|
34555
34271
|
inst._zod.parse = (payload, _ctx) => {
|
|
34556
|
-
if (_ctx.direction === "backward") {
|
|
34557
|
-
throw new $ZodEncodeError(inst.constructor.name);
|
|
34558
|
-
}
|
|
34559
34272
|
payload.addIssue = (issue$1) => {
|
|
34560
34273
|
if (typeof issue$1 === "string") {
|
|
34561
34274
|
payload.issues.push(issue(issue$1, payload.value, def));
|
|
@@ -35568,10 +35281,13 @@ const commonForms = {
|
|
|
35568
35281
|
])
|
|
35569
35282
|
]
|
|
35570
35283
|
};
|
|
35571
|
-
function DataTablePagination({
|
|
35284
|
+
function DataTablePagination({
|
|
35285
|
+
table,
|
|
35286
|
+
paginationVariant = "full"
|
|
35287
|
+
}) {
|
|
35572
35288
|
const pagination = table.getState().pagination ?? { pageIndex: 0, pageSize: 10 };
|
|
35573
35289
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-2", children: [
|
|
35574
|
-
/* @__PURE__ */ jsxs("div", { className: "text-muted-foreground flex-1 text-sm", children: [
|
|
35290
|
+
paginationVariant === "full" && /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground flex-1 text-sm", children: [
|
|
35575
35291
|
table.getFilteredSelectedRowModel().rows.length,
|
|
35576
35292
|
" of",
|
|
35577
35293
|
" ",
|
|
@@ -35579,7 +35295,7 @@ function DataTablePagination({ table }) {
|
|
|
35579
35295
|
" row(s) selected."
|
|
35580
35296
|
] }),
|
|
35581
35297
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-6 lg:space-x-8", children: [
|
|
35582
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
35298
|
+
paginationVariant === "full" && /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
35583
35299
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "Rows per page" }),
|
|
35584
35300
|
/* @__PURE__ */ jsxs(
|
|
35585
35301
|
Select$1,
|
|
@@ -36486,7 +36202,7 @@ var Sub = MenuSub;
|
|
|
36486
36202
|
var SubTrigger = MenuSubTrigger;
|
|
36487
36203
|
var SubContent = MenuSubContent;
|
|
36488
36204
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
36489
|
-
var [createDropdownMenuContext] = createContextScope(
|
|
36205
|
+
var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
|
36490
36206
|
DROPDOWN_MENU_NAME,
|
|
36491
36207
|
[createMenuScope]
|
|
36492
36208
|
);
|
|
@@ -36988,6 +36704,7 @@ function DataTable({
|
|
|
36988
36704
|
onColumnFiltersChange,
|
|
36989
36705
|
rowCount,
|
|
36990
36706
|
pagination,
|
|
36707
|
+
paginationVariant = "full",
|
|
36991
36708
|
onPaginationChange,
|
|
36992
36709
|
paginationState,
|
|
36993
36710
|
columnVisibility,
|
|
@@ -37240,7 +36957,7 @@ function DataTable({
|
|
|
37240
36957
|
)) : /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { colSpan: table.getVisibleLeafColumns().length, className: "h-24 text-center", children: emptyText }) }) })
|
|
37241
36958
|
] })
|
|
37242
36959
|
] }),
|
|
37243
|
-
isPaginationEnabled && /* @__PURE__ */ jsx(DataTablePagination, { table })
|
|
36960
|
+
isPaginationEnabled && /* @__PURE__ */ jsx(DataTablePagination, { table, paginationVariant })
|
|
37244
36961
|
] });
|
|
37245
36962
|
}
|
|
37246
36963
|
function DataTableColumnHeader({
|
|
@@ -43073,7 +42790,7 @@ var Title = DialogTitle$1;
|
|
|
43073
42790
|
var Description = DialogDescription$1;
|
|
43074
42791
|
var Close = DialogClose$1;
|
|
43075
42792
|
var ROOT_NAME = "AlertDialog";
|
|
43076
|
-
var [createAlertDialogContext] = createContextScope(ROOT_NAME, [
|
|
42793
|
+
var [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [
|
|
43077
42794
|
createDialogScope
|
|
43078
42795
|
]);
|
|
43079
42796
|
var useDialogScope = createDialogScope();
|
|
@@ -46273,7 +45990,7 @@ function subscribe() {
|
|
|
46273
45990
|
};
|
|
46274
45991
|
}
|
|
46275
45992
|
var AVATAR_NAME = "Avatar";
|
|
46276
|
-
var [createAvatarContext] = createContextScope(AVATAR_NAME);
|
|
45993
|
+
var [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);
|
|
46277
45994
|
var [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);
|
|
46278
45995
|
var Avatar$1 = React.forwardRef(
|
|
46279
45996
|
(props2, forwardedRef) => {
|
|
@@ -54805,7 +54522,7 @@ function CommandShortcut({
|
|
|
54805
54522
|
);
|
|
54806
54523
|
}
|
|
54807
54524
|
var CONTEXT_MENU_NAME = "ContextMenu";
|
|
54808
|
-
var [createContextMenuContext] = createContextScope(CONTEXT_MENU_NAME, [
|
|
54525
|
+
var [createContextMenuContext, createContextMenuScope] = createContextScope(CONTEXT_MENU_NAME, [
|
|
54809
54526
|
createMenuScope
|
|
54810
54527
|
]);
|
|
54811
54528
|
var useMenuScope$1 = createMenuScope();
|
|
@@ -56966,7 +56683,7 @@ function FormMessage({ className, ...props2 }) {
|
|
|
56966
56683
|
}
|
|
56967
56684
|
var originalBodyUserSelect;
|
|
56968
56685
|
var HOVERCARD_NAME = "HoverCard";
|
|
56969
|
-
var [createHoverCardContext] = createContextScope(HOVERCARD_NAME, [
|
|
56686
|
+
var [createHoverCardContext, createHoverCardScope] = createContextScope(HOVERCARD_NAME, [
|
|
56970
56687
|
createPopperScope
|
|
56971
56688
|
]);
|
|
56972
56689
|
var usePopperScope = createPopperScope();
|
|
@@ -57479,7 +57196,7 @@ function InputOTPSeparator({ ...props2 }) {
|
|
|
57479
57196
|
}
|
|
57480
57197
|
var MENUBAR_NAME = "Menubar";
|
|
57481
57198
|
var [Collection$2, useCollection$2, createCollectionScope$2] = createCollection(MENUBAR_NAME);
|
|
57482
|
-
var [createMenubarContext] = createContextScope(MENUBAR_NAME, [
|
|
57199
|
+
var [createMenubarContext, createMenubarScope] = createContextScope(MENUBAR_NAME, [
|
|
57483
57200
|
createCollectionScope$2,
|
|
57484
57201
|
createRovingFocusGroupScope
|
|
57485
57202
|
]);
|
|
@@ -58128,7 +57845,7 @@ function MenubarSubContent({
|
|
|
58128
57845
|
var NAVIGATION_MENU_NAME = "NavigationMenu";
|
|
58129
57846
|
var [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(NAVIGATION_MENU_NAME);
|
|
58130
57847
|
var [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
58131
|
-
var [createNavigationMenuContext] = createContextScope(
|
|
57848
|
+
var [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(
|
|
58132
57849
|
NAVIGATION_MENU_NAME,
|
|
58133
57850
|
[createCollectionScope$1, createFocusGroupCollectionScope]
|
|
58134
57851
|
);
|
|
@@ -59576,8 +59293,7 @@ function handlePointerMove(event) {
|
|
|
59576
59293
|
x: x2,
|
|
59577
59294
|
y
|
|
59578
59295
|
} = getResizeEventCoordinates(event);
|
|
59579
|
-
if (isPointerDown &&
|
|
59580
|
-
event.type !== "pointerleave" && event.buttons === 0) {
|
|
59296
|
+
if (isPointerDown && event.buttons === 0) {
|
|
59581
59297
|
isPointerDown = false;
|
|
59582
59298
|
updateResizeHandlerStates("up", event);
|
|
59583
59299
|
}
|
|
@@ -59926,7 +59642,7 @@ function adjustLayoutByDelta({
|
|
|
59926
59642
|
if (!fuzzyNumbersEqual(prevSize, safeSize)) {
|
|
59927
59643
|
deltaApplied += prevSize - safeSize;
|
|
59928
59644
|
nextLayout[index2] = safeSize;
|
|
59929
|
-
if (deltaApplied.
|
|
59645
|
+
if (deltaApplied.toPrecision(3).localeCompare(Math.abs(delta).toPrecision(3), void 0, {
|
|
59930
59646
|
numeric: true
|
|
59931
59647
|
}) >= 0) {
|
|
59932
59648
|
break;
|
|
@@ -60351,11 +60067,11 @@ function computePanelFlexBoxStyle({
|
|
|
60351
60067
|
const size2 = layout[panelIndex];
|
|
60352
60068
|
let flexGrow;
|
|
60353
60069
|
if (size2 == null) {
|
|
60354
|
-
flexGrow = defaultSize != void 0 ? defaultSize.
|
|
60070
|
+
flexGrow = defaultSize != void 0 ? defaultSize.toPrecision(precision) : "1";
|
|
60355
60071
|
} else if (panelData.length === 1) {
|
|
60356
60072
|
flexGrow = "1";
|
|
60357
60073
|
} else {
|
|
60358
|
-
flexGrow = size2.
|
|
60074
|
+
flexGrow = size2.toPrecision(precision);
|
|
60359
60075
|
}
|
|
60360
60076
|
return {
|
|
60361
60077
|
flexBasis: 0,
|
|
@@ -61310,7 +61026,7 @@ function useStateMachine(initialState2, machine) {
|
|
|
61310
61026
|
}, initialState2);
|
|
61311
61027
|
}
|
|
61312
61028
|
var SCROLL_AREA_NAME = "ScrollArea";
|
|
61313
|
-
var [createScrollAreaContext] = createContextScope(SCROLL_AREA_NAME);
|
|
61029
|
+
var [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME);
|
|
61314
61030
|
var [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);
|
|
61315
61031
|
var ScrollArea$1 = React.forwardRef(
|
|
61316
61032
|
(props2, forwardedRef) => {
|
|
@@ -62072,7 +61788,7 @@ var BACK_KEYS = {
|
|
|
62072
61788
|
};
|
|
62073
61789
|
var SLIDER_NAME = "Slider";
|
|
62074
61790
|
var [Collection, useCollection, createCollectionScope] = createCollection(SLIDER_NAME);
|
|
62075
|
-
var [createSliderContext] = createContextScope(SLIDER_NAME, [
|
|
61791
|
+
var [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME, [
|
|
62076
61792
|
createCollectionScope
|
|
62077
61793
|
]);
|
|
62078
61794
|
var [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
|
|
@@ -62703,7 +62419,7 @@ var Toggle$1 = React.forwardRef((props2, forwardedRef) => {
|
|
|
62703
62419
|
Toggle$1.displayName = NAME;
|
|
62704
62420
|
var Root = Toggle$1;
|
|
62705
62421
|
var TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
62706
|
-
var [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [
|
|
62422
|
+
var [createToggleGroupContext, createToggleGroupScope] = createContextScope(TOGGLE_GROUP_NAME, [
|
|
62707
62423
|
createRovingFocusGroupScope
|
|
62708
62424
|
]);
|
|
62709
62425
|
var useRovingFocusGroupScope = createRovingFocusGroupScope();
|