@sigtes/ui 0.0.12 → 0.0.14
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/{dist/dist/Button-BztPLDJi.es.es.js → Button-BztPLDJi.js} +43 -5
- package/dist/Button-C3Twt_rk.cjs +1 -0
- package/dist/UserProvider-BfG9Ccu3.js +395 -0
- package/dist/UserProvider-CQZEZTc7.cjs +22 -0
- package/dist/components/table/DragableRow.d.ts +7 -0
- package/dist/components.cjs.js +2490 -1
- package/dist/components.es.js +70043 -135
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +62 -8
- package/dist/{dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.es.js → locale-provider-BMa5HMi7-CUCoSBuJ.js} +49 -46
- package/dist/locale-provider-BMa5HMi7-jcDwp-6T.cjs +22 -0
- package/dist/locale-provider-BMa5HMi7.js +831 -0
- package/dist/locale-provider-DfKreh8K.cjs +1 -0
- package/dist/navigation-CbiZy04t.js +1857 -0
- package/dist/navigation-Czjt6ygu.cjs +6 -0
- package/dist/pages.cjs.js +1 -1
- package/dist/pages.es.js +61 -5
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.es.js +19 -10
- package/package.json +2 -2
- package/dist/_virtual/_interop_require_default.cjs.js +0 -1
- package/dist/_virtual/_interop_require_default.es.js +0 -4
- package/dist/_virtual/_interop_require_wildcard.cjs.js +0 -1
- package/dist/_virtual/_interop_require_wildcard.es.js +0 -4
- package/dist/_virtual/action-async-storage-instance.cjs.js +0 -1
- package/dist/_virtual/action-async-storage-instance.es.js +0 -4
- package/dist/_virtual/action-async-storage.external.cjs.js +0 -1
- package/dist/_virtual/action-async-storage.external.es.js +0 -4
- package/dist/_virtual/app-router-context.shared-runtime.cjs.js +0 -1
- package/dist/_virtual/app-router-context.shared-runtime.es.js +0 -4
- package/dist/_virtual/app-router-headers.cjs.js +0 -1
- package/dist/_virtual/app-router-headers.es.js +0 -4
- package/dist/_virtual/async-local-storage.cjs.js +0 -1
- package/dist/_virtual/async-local-storage.es.js +0 -4
- package/dist/_virtual/bailout-to-client-rendering.cjs.js +0 -1
- package/dist/_virtual/bailout-to-client-rendering.es.js +0 -4
- package/dist/_virtual/bailout-to-csr.cjs.js +0 -1
- package/dist/_virtual/bailout-to-csr.es.js +0 -4
- package/dist/_virtual/boundary-constants.cjs.js +0 -1
- package/dist/_virtual/boundary-constants.es.js +0 -4
- package/dist/_virtual/dynamic-rendering-utils.cjs.js +0 -1
- package/dist/_virtual/dynamic-rendering-utils.es.js +0 -4
- package/dist/_virtual/dynamic-rendering.cjs.js +0 -1
- package/dist/_virtual/dynamic-rendering.es.js +0 -4
- package/dist/_virtual/forbidden.cjs.js +0 -1
- package/dist/_virtual/forbidden.es.js +0 -4
- package/dist/_virtual/get-segment-value.cjs.js +0 -1
- package/dist/_virtual/get-segment-value.es.js +0 -4
- package/dist/_virtual/hooks-client-context.shared-runtime.cjs.js +0 -1
- package/dist/_virtual/hooks-client-context.shared-runtime.es.js +0 -4
- package/dist/_virtual/hooks-server-context.cjs.js +0 -1
- package/dist/_virtual/hooks-server-context.es.js +0 -4
- package/dist/_virtual/http-access-fallback.cjs.js +0 -1
- package/dist/_virtual/http-access-fallback.es.js +0 -4
- package/dist/_virtual/invariant-error.cjs.js +0 -1
- package/dist/_virtual/invariant-error.es.js +0 -4
- package/dist/_virtual/is-next-router-error.cjs.js +0 -1
- package/dist/_virtual/is-next-router-error.es.js +0 -4
- package/dist/_virtual/is-postpone.cjs.js +0 -1
- package/dist/_virtual/is-postpone.es.js +0 -4
- package/dist/_virtual/jsx-runtime.cjs.js +0 -1
- package/dist/_virtual/jsx-runtime.cjs2.js +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -5
- package/dist/_virtual/jsx-runtime.es2.js +0 -4
- package/dist/_virtual/navigation.cjs.js +0 -1
- package/dist/_virtual/navigation.cjs2.js +0 -1
- package/dist/_virtual/navigation.es.js +0 -5
- package/dist/_virtual/navigation.es2.js +0 -4
- package/dist/_virtual/navigation.react-server.cjs.js +0 -1
- package/dist/_virtual/navigation.react-server.es.js +0 -4
- package/dist/_virtual/not-found.cjs.js +0 -1
- package/dist/_virtual/not-found.es.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.cjs.js +0 -1
- package/dist/_virtual/react-jsx-runtime.development.es.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.cjs.js +0 -1
- package/dist/_virtual/react-jsx-runtime.production.es.js +0 -4
- package/dist/_virtual/redirect-error.cjs.js +0 -1
- package/dist/_virtual/redirect-error.es.js +0 -4
- package/dist/_virtual/redirect-status-code.cjs.js +0 -1
- package/dist/_virtual/redirect-status-code.es.js +0 -4
- package/dist/_virtual/redirect.cjs.js +0 -1
- package/dist/_virtual/redirect.es.js +0 -4
- package/dist/_virtual/scheduler.cjs.js +0 -1
- package/dist/_virtual/scheduler.es.js +0 -4
- package/dist/_virtual/segment.cjs.js +0 -1
- package/dist/_virtual/segment.es.js +0 -4
- package/dist/_virtual/server-inserted-html.shared-runtime.cjs.js +0 -1
- package/dist/_virtual/server-inserted-html.shared-runtime.es.js +0 -4
- package/dist/_virtual/static-generation-bailout.cjs.js +0 -1
- package/dist/_virtual/static-generation-bailout.es.js +0 -4
- package/dist/_virtual/unauthorized.cjs.js +0 -1
- package/dist/_virtual/unauthorized.es.js +0 -4
- package/dist/_virtual/unrecognized-action-error.cjs.js +0 -1
- package/dist/_virtual/unrecognized-action-error.es.js +0 -4
- package/dist/_virtual/unstable-rethrow.browser.cjs.js +0 -1
- package/dist/_virtual/unstable-rethrow.browser.es.js +0 -4
- package/dist/_virtual/unstable-rethrow.cjs.js +0 -1
- package/dist/_virtual/unstable-rethrow.es.js +0 -4
- package/dist/_virtual/unstable-rethrow.server.cjs.js +0 -1
- package/dist/_virtual/unstable-rethrow.server.es.js +0 -4
- package/dist/_virtual/work-async-storage-instance.cjs.js +0 -1
- package/dist/_virtual/work-async-storage-instance.es.js +0 -4
- package/dist/_virtual/work-async-storage.external.cjs.js +0 -1
- package/dist/_virtual/work-async-storage.external.es.js +0 -4
- package/dist/_virtual/work-unit-async-storage-instance.cjs.js +0 -1
- package/dist/_virtual/work-unit-async-storage-instance.es.js +0 -4
- package/dist/_virtual/work-unit-async-storage.external.cjs.js +0 -1
- package/dist/_virtual/work-unit-async-storage.external.es.js +0 -4
- package/dist/components/avatar/Avatar.cjs.js +0 -1
- package/dist/components/avatar/Avatar.es.js +0 -10
- package/dist/components/badge/Badge.cjs.js +0 -1
- package/dist/components/badge/Badge.es.js +0 -25
- package/dist/components/badge/badgeVariants.cjs.js +0 -1
- package/dist/components/badge/badgeVariants.es.js +0 -20
- package/dist/components/button/Button.cjs.js +0 -1
- package/dist/components/button/Button.es.js +0 -27
- package/dist/components/button/buttonVariants.cjs.js +0 -1
- package/dist/components/button/buttonVariants.es.js +0 -29
- package/dist/components/calendar/Calendar.cjs.js +0 -1
- package/dist/components/calendar/Calendar.es.js +0 -174
- package/dist/components/calendar/DatePicker.cjs.js +0 -1
- package/dist/components/calendar/DatePicker.es.js +0 -56
- package/dist/components/calendar/DateRangePicker.cjs.js +0 -1
- package/dist/components/calendar/DateRangePicker.es.js +0 -57
- package/dist/components/card/Card.cjs.js +0 -1
- package/dist/components/card/Card.es.js +0 -109
- package/dist/components/checkbox/Checkbox.cjs.js +0 -1
- package/dist/components/checkbox/Checkbox.es.js +0 -33
- package/dist/components/collapsible/Collapsible.cjs.js +0 -1
- package/dist/components/collapsible/Collapsible.es.js +0 -35
- package/dist/components/combobox/Combobox.cjs.js +0 -1
- package/dist/components/combobox/Combobox.es.js +0 -105
- package/dist/components/command/Command.cjs.js +0 -1
- package/dist/components/command/Command.es.js +0 -172
- package/dist/components/data-table-faceted-filter/data-table-faceted-filter.cjs.js +0 -1
- package/dist/components/data-table-faceted-filter/data-table-faceted-filter.es.js +0 -139
- package/dist/components/dialog/Dialog.cjs.js +0 -1
- package/dist/components/dialog/Dialog.es.js +0 -144
- package/dist/components/dropdown-menu/Dropdown-Menu.cjs.js +0 -1
- package/dist/components/dropdown-menu/Dropdown-Menu.es.js +0 -251
- package/dist/components/form/Form.cjs.js +0 -1
- package/dist/components/form/Form.es.js +0 -109
- package/dist/components/input/Input.cjs.js +0 -1
- package/dist/components/input/Input.es.js +0 -22
- package/dist/components/label/Label.cjs.js +0 -1
- package/dist/components/label/Label.es.js +0 -24
- package/dist/components/popover/Popover.cjs.js +0 -1
- package/dist/components/popover/Popover.es.js +0 -46
- package/dist/components/select/Select.cjs.js +0 -1
- package/dist/components/select/Select.es.js +0 -171
- package/dist/components/separator/Separator.cjs.js +0 -1
- package/dist/components/separator/Separator.es.js +0 -28
- package/dist/components/skeleton/Skeleton.cjs.js +0 -1
- package/dist/components/skeleton/Skeleton.es.js +0 -15
- package/dist/components/sonner/Sonner.cjs.js +0 -1
- package/dist/components/sonner/Sonner.es.js +0 -23
- package/dist/components/table/DargableRow.cjs.js +0 -1
- package/dist/components/table/DargableRow.es.js +0 -46
- package/dist/components/table/DataTable.cjs.js +0 -1
- package/dist/components/table/DataTable.es.js +0 -314
- package/dist/components/table/DragHandle.cjs.js +0 -1
- package/dist/components/table/DragHandle.es.js +0 -27
- package/dist/components/table/Table.cjs.js +0 -1
- package/dist/components/table/Table.es.js +0 -125
- package/dist/components/tabs/Tabs.cjs.js +0 -1
- package/dist/components/tabs/Tabs.es.js +0 -69
- package/dist/components/textarea/Textarea.cjs.js +0 -1
- package/dist/components/textarea/Textarea.es.js +0 -22
- package/dist/dist/_virtual/jsx-runtime.es.cjs.js +0 -1
- package/dist/dist/_virtual/jsx-runtime.es.es.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.es2.cjs.js +0 -1
- package/dist/dist/_virtual/jsx-runtime.es2.es.js +0 -4
- package/dist/dist/_virtual/react-jsx-runtime.development.es.cjs.js +0 -1
- package/dist/dist/_virtual/react-jsx-runtime.development.es.es.js +0 -4
- package/dist/dist/_virtual/react-jsx-runtime.production.es.cjs.js +0 -1
- package/dist/dist/_virtual/react-jsx-runtime.production.es.es.js +0 -4
- package/dist/dist/components/badge/badgeVariants.es.cjs.js +0 -1
- package/dist/dist/components/badge/badgeVariants.es.es.js +0 -17
- package/dist/dist/components/button/Button.es.cjs.js +0 -1
- package/dist/dist/components/button/Button.es.es.js +0 -27
- package/dist/dist/components/button/buttonVariants.es.cjs.js +0 -1
- package/dist/dist/components/button/buttonVariants.es.es.js +0 -29
- package/dist/dist/components/form/Form.es.cjs.js +0 -1
- package/dist/dist/components/form/Form.es.es.js +0 -13
- package/dist/dist/dist/Button-BztPLDJi.es.cjs.js +0 -1
- package/dist/dist/dist/UserProvider-BfG9Ccu3.es.cjs.js +0 -22
- package/dist/dist/dist/UserProvider-BfG9Ccu3.es.es.js +0 -302
- package/dist/dist/dist/components.es.es.cjs.js +0 -1125
- package/dist/dist/dist/components.es.es.es.js +0 -35195
- package/dist/dist/dist/locale-provider-BMa5HMi7-CUCoSBuJ.es.cjs.js +0 -22
- package/dist/dist/dist/locale-provider-BMa5HMi7.es.cjs.js +0 -1
- package/dist/dist/dist/locale-provider-BMa5HMi7.es.es.js +0 -6
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/primitive/dist/index.es.es.js +0 -9
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.es.js +0 -29
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.es.es.js +0 -68
- package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.cjs.js +0 -5
- package/dist/dist/node_modules/@radix-ui/react-dialog/dist/index.es.es.js +0 -209
- package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.es.js +0 -128
- package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.es.js +0 -18
- package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.es.js +0 -137
- package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-portal/dist/index.es.es.js +0 -16
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.es.es.js +0 -71
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.es.es.js +0 -36
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.es.js +0 -10
- package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.es.js +0 -14
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.es.js +0 -6
- package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/aria-hidden/dist/es2015/index.es.es.js +0 -52
- package/dist/dist/node_modules/clsx/dist/clsx.es.cjs.js +0 -1
- package/dist/dist/node_modules/clsx/dist/clsx.es.es.js +0 -17
- package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.cjs.js +0 -1
- package/dist/dist/node_modules/get-nonce/dist/es2015/index.es.es.js +0 -7
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.cjs.js +0 -14
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.es.es.js +0 -247
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.cjs.js +0 -9
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.es.es.js +0 -35
- package/dist/dist/node_modules/react/jsx-runtime.es.cjs.js +0 -1
- package/dist/dist/node_modules/react/jsx-runtime.es.es.js +0 -10
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.es.js +0 -11
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.cjs.js +0 -4
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.es.js +0 -112
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.es.js +0 -31
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.es.js +0 -16
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.es.js +0 -68
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.es.js +0 -5
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.es.js +0 -7
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.cjs.js +0 -38
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.es.js +0 -71
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.es.js +0 -7
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.es.js +0 -25
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/component.es.es.js +0 -11
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/hook.es.es.js +0 -15
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.cjs.js +0 -1
- package/dist/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.es.js +0 -30
- package/dist/dist/node_modules/tslib/tslib.es6.es.cjs.js +0 -1
- package/dist/dist/node_modules/tslib/tslib.es6.es.es.js +0 -27
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.cjs.js +0 -1
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.es.js +0 -6
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.cjs.js +0 -1
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.es.js +0 -26
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.cjs.js +0 -1
- package/dist/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.es.js +0 -25
- package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.cjs.js +0 -1
- package/dist/dist/node_modules/use-sidecar/dist/es2015/exports.es.es.js +0 -18
- package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.cjs.js +0 -1
- package/dist/dist/node_modules/use-sidecar/dist/es2015/medium.es.es.js +0 -67
- package/dist/dist/providers/locale-provider/locale-provider.es.cjs.js +0 -1
- package/dist/dist/providers/locale-provider/locale-provider.es.es.js +0 -6
- package/dist/dist/providers/user-provider/UserProvider.es.cjs.js +0 -1
- package/dist/dist/providers/user-provider/UserProvider.es.es.js +0 -25
- package/dist/dist/utils/utils.es.cjs.js +0 -1
- package/dist/dist/utils/utils.es.es.js +0 -8
- package/dist/hooks/useAuthorization/useAuthorization.cjs.js +0 -1
- package/dist/hooks/useAuthorization/useAuthorization.es.js +0 -17
- package/dist/hooks/useErrors/useErrors.cjs.js +0 -1
- package/dist/hooks/useErrors/useErrors.es.js +0 -17
- package/dist/hooks/useFormState/useFormState.cjs.js +0 -1
- package/dist/hooks/useFormState/useFormState.es.js +0 -36
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +0 -9
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +0 -68
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.js +0 -5
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +0 -258
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +0 -128
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +0 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +0 -137
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +0 -13
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +0 -16
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -71
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +0 -36
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js +0 -1
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -6
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +0 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.es.js +0 -13
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +0 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.es.js +0 -30
- package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.js +0 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.es.js +0 -52
- package/dist/node_modules/clsx/dist/clsx.cjs.js +0 -1
- package/dist/node_modules/clsx/dist/clsx.es.js +0 -17
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.es.js +0 -7
- package/dist/node_modules/date-fns/_lib/defaultOptions.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.es.js +0 -7
- package/dist/node_modules/date-fns/_lib/format/formatters.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.es.js +0 -583
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.es.js +0 -59
- package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.es.js +0 -52
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.es.js +0 -18
- package/dist/node_modules/date-fns/_lib/normalizeDates.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/normalizeDates.es.js +0 -11
- package/dist/node_modules/date-fns/_lib/protectedTokens.cjs.js +0 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.es.js +0 -20
- package/dist/node_modules/date-fns/constants.cjs.js +0 -1
- package/dist/node_modules/date-fns/constants.es.js +0 -6
- package/dist/node_modules/date-fns/constructFrom.cjs.js +0 -1
- package/dist/node_modules/date-fns/constructFrom.es.js +0 -8
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.es.js +0 -16
- package/dist/node_modules/date-fns/format.cjs.js +0 -1
- package/dist/node_modules/date-fns/format.es.js +0 -58
- package/dist/node_modules/date-fns/getDayOfYear.cjs.js +0 -1
- package/dist/node_modules/date-fns/getDayOfYear.es.js +0 -11
- package/dist/node_modules/date-fns/getISOWeek.cjs.js +0 -1
- package/dist/node_modules/date-fns/getISOWeek.es.js +0 -12
- package/dist/node_modules/date-fns/getISOWeekYear.cjs.js +0 -1
- package/dist/node_modules/date-fns/getISOWeekYear.es.js +0 -15
- package/dist/node_modules/date-fns/getWeek.cjs.js +0 -1
- package/dist/node_modules/date-fns/getWeek.es.js +0 -12
- package/dist/node_modules/date-fns/getWeekYear.cjs.js +0 -1
- package/dist/node_modules/date-fns/getWeekYear.es.js +0 -16
- package/dist/node_modules/date-fns/isDate.cjs.js +0 -1
- package/dist/node_modules/date-fns/isDate.es.js +0 -7
- package/dist/node_modules/date-fns/isValid.cjs.js +0 -1
- package/dist/node_modules/date-fns/isValid.es.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js +0 -18
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.es.js +0 -31
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js +0 -15
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.es.js +0 -70
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.es.js +0 -33
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.es.js +0 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.es.js +0 -155
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.es.js +0 -110
- package/dist/node_modules/date-fns/locale/en-US.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US.es.js +0 -21
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.es.js +0 -70
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.es.js +0 -33
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.es.js +0 -17
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.es.js +0 -154
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.es.js +0 -112
- package/dist/node_modules/date-fns/locale/pt-BR.cjs.js +0 -1
- package/dist/node_modules/date-fns/locale/pt-BR.es.js +0 -21
- package/dist/node_modules/date-fns/startOfDay.cjs.js +0 -1
- package/dist/node_modules/date-fns/startOfDay.es.js +0 -9
- package/dist/node_modules/date-fns/startOfISOWeek.cjs.js +0 -1
- package/dist/node_modules/date-fns/startOfISOWeek.es.js +0 -8
- package/dist/node_modules/date-fns/startOfISOWeekYear.cjs.js +0 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.es.js +0 -11
- package/dist/node_modules/date-fns/startOfWeek.cjs.js +0 -1
- package/dist/node_modules/date-fns/startOfWeek.es.js +0 -10
- package/dist/node_modules/date-fns/startOfWeekYear.cjs.js +0 -1
- package/dist/node_modules/date-fns/startOfWeekYear.es.js +0 -12
- package/dist/node_modules/date-fns/startOfYear.cjs.js +0 -1
- package/dist/node_modules/date-fns/startOfYear.es.js +0 -9
- package/dist/node_modules/date-fns/toDate.cjs.js +0 -1
- package/dist/node_modules/date-fns/toDate.es.js +0 -8
- package/dist/node_modules/get-nonce/dist/es2015/index.cjs.js +0 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.es.js +0 -7
- package/dist/node_modules/next/dist/client/components/app-router-headers.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/app-router-headers.es.js +0 -79
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/bailout-to-client-rendering.es.js +0 -40
- package/dist/node_modules/next/dist/client/components/forbidden.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/forbidden.es.js +0 -34
- package/dist/node_modules/next/dist/client/components/hooks-server-context.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/hooks-server-context.es.js +0 -36
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.es.js +0 -63
- package/dist/node_modules/next/dist/client/components/is-next-router-error.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/is-next-router-error.es.js +0 -24
- package/dist/node_modules/next/dist/client/components/navigation.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/navigation.es.js +0 -137
- package/dist/node_modules/next/dist/client/components/navigation.react-server.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/navigation.react-server.es.js +0 -85
- package/dist/node_modules/next/dist/client/components/not-found.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/not-found.es.js +0 -28
- package/dist/node_modules/next/dist/client/components/redirect-error.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/redirect-error.es.js +0 -41
- package/dist/node_modules/next/dist/client/components/redirect-status-code.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/redirect-status-code.es.js +0 -21
- package/dist/node_modules/next/dist/client/components/redirect.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/redirect.es.js +0 -80
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.es.js +0 -21
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.es.js +0 -36
- package/dist/node_modules/next/dist/client/components/unauthorized.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/unauthorized.es.js +0 -34
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.es.js +0 -35
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.es.js +0 -26
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.es.js +0 -21
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.cjs.js +0 -1
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.es.js +0 -30
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.cjs.js +0 -1
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.es.js +0 -33
- package/dist/node_modules/next/dist/lib/scheduler.cjs.js +0 -1
- package/dist/node_modules/next/dist/lib/scheduler.es.js +0 -45
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.es.js +0 -19
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.es.js +0 -19
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.es.js +0 -65
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.cjs.js +0 -6
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.es.js +0 -419
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.es.js +0 -19
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.es.js +0 -19
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.es.js +0 -19
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.es.js +0 -187
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.es.js +0 -72
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.cjs.js +0 -1
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.es.js +0 -21
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.cjs.js +0 -1
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.es.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.cjs.js +0 -1
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.es.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs.js +0 -1
- package/dist/node_modules/next/dist/shared/lib/invariant-error.es.js +0 -22
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.cjs.js +0 -1
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.es.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/segment.cjs.js +0 -1
- package/dist/node_modules/next/dist/shared/lib/segment.es.js +0 -49
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.cjs.js +0 -1
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.es.js +0 -34
- package/dist/node_modules/next/navigation.cjs.js +0 -1
- package/dist/node_modules/next/navigation.es.js +0 -8
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -14
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -247
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +0 -9
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -35
- package/dist/node_modules/react/jsx-runtime.cjs.js +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -10
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.es.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js +0 -4
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +0 -112
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.es.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.es.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js +0 -38
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.js +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.es.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.js +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.es.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.es.js +0 -30
- package/dist/node_modules/tslib/tslib.es6.cjs.js +0 -1
- package/dist/node_modules/tslib/tslib.es6.es.js +0 -27
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.es.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.es.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.js +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.es.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.js +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.es.js +0 -67
- package/dist/pages/error/error.cjs.js +0 -1
- package/dist/pages/error/error.es.js +0 -32
- package/dist/pages/forbidden/forbidden.cjs.js +0 -1
- package/dist/pages/forbidden/forbidden.es.js +0 -31
- package/dist/pages/not-found/not-found.cjs.js +0 -1
- package/dist/pages/not-found/not-found.es.js +0 -17
- package/dist/providers/locale-provider/locale-provider.cjs.js +0 -1
- package/dist/providers/locale-provider/locale-provider.es.js +0 -29
- package/dist/providers/theme-provider/ThemeProvider.cjs.js +0 -1
- package/dist/providers/theme-provider/ThemeProvider.es.js +0 -13
- package/dist/providers/user-provider/UserProvider.cjs.js +0 -1
- package/dist/providers/user-provider/UserProvider.es.js +0 -115
- package/dist/utils/utils.cjs.js +0 -1
- package/dist/utils/utils.es.js +0 -8
@@ -1,5 +0,0 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),g=require("../../primitive/dist/index.cjs.js"),E=require("../../react-compose-refs/dist/index.cjs.js"),M=require("../../react-context/dist/index.cjs.js"),R=require("../../react-id/dist/index.cjs.js"),B=require("../../react-use-controllable-state/dist/index.cjs.js"),V=require("../../react-dismissable-layer/dist/index.cjs.js"),z=require("../../react-focus-scope/dist/index.cjs.js"),K=require("../../react-portal/dist/index.cjs.js"),j=require("../../react-presence/dist/index.cjs.js"),f=require("../../react-primitive/dist/index.cjs.js"),U=require("../../react-focus-guards/dist/index.cjs.js"),Y=require("../../../react-remove-scroll/dist/es2015/Combination.cjs.js"),Z=require("../../../aria-hidden/dist/es2015/index.cjs.js"),J=require("@radix-ui/react-slot"),i=require("../../../../_virtual/jsx-runtime.cjs.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var m="Dialog",[S]=M.createContextScope(m),[X,u]=S(m),C=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:s,onOpenChange:n,modal:l=!0}=e,c=a.useRef(null),p=a.useRef(null),[D,v]=B.useControllableState({prop:r,defaultProp:s??!1,onChange:n,caller:m});return i.jsxRuntimeExports.jsx(X,{scope:t,triggerRef:c,contentRef:p,contentId:R.useId(),titleId:R.useId(),descriptionId:R.useId(),open:D,onOpenChange:v,onOpenToggle:a.useCallback(()=>v(L=>!L),[v]),modal:l,children:o})};C.displayName=m;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(w,o),n=E.useComposedRefs(t,s.triggerRef);return i.jsxRuntimeExports.jsx(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":A(s.open),...r,ref:n,onClick:g.composeEventHandlers(e.onClick,s.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[ee,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:s}=e,n=u(_,t);return i.jsxRuntimeExports.jsx(ee,{scope:t,forceMount:o,children:a.Children.map(r,l=>i.jsxRuntimeExports.jsx(j.Presence,{present:o||n.open,children:i.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:s,children:l})}))})};y.displayName=_;var x="DialogOverlay",O=a.forwardRef((e,t)=>{const o=F(x,e.__scopeDialog),{forceMount:r=o.forceMount,...s}=e,n=u(x,e.__scopeDialog);return n.modal?i.jsxRuntimeExports.jsx(j.Presence,{present:r||n.open,children:i.jsxRuntimeExports.jsx(oe,{...s,ref:t})}):null});O.displayName=x;var te=J.createSlot("DialogOverlay.RemoveScroll"),oe=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(x,o);return i.jsxRuntimeExports.jsx(Y,{as:te,allowPinchZoom:!0,shards:[s.contentRef],children:i.jsxRuntimeExports.jsx(f.Primitive.div,{"data-state":A(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),d="DialogContent",h=a.forwardRef((e,t)=>{const o=F(d,e.__scopeDialog),{forceMount:r=o.forceMount,...s}=e,n=u(d,e.__scopeDialog);return i.jsxRuntimeExports.jsx(j.Presence,{present:r||n.open,children:n.modal?i.jsxRuntimeExports.jsx(ne,{...s,ref:t}):i.jsxRuntimeExports.jsx(re,{...s,ref:t})})});h.displayName=d;var ne=a.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=a.useRef(null),s=E.useComposedRefs(t,o.contentRef,r);return a.useEffect(()=>{const n=r.current;if(n)return Z.hideOthers(n)},[]),i.jsxRuntimeExports.jsx(q,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,n=>{n.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,n=>{const l=n.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&n.preventDefault()}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,n=>n.preventDefault())})}),re=a.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=a.useRef(!1),s=a.useRef(!1);return i.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(r.current||o.triggerRef.current?.focus(),n.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(r.current=!0,n.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=n.target;o.triggerRef.current?.contains(l)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&s.current&&n.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:n,...l}=e,c=u(d,o),p=a.useRef(null),D=E.useComposedRefs(t,p);return U.useFocusGuards(),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:n,children:i.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":A(c.open),...l,ref:D,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(ie,{titleId:c.titleId}),i.jsxRuntimeExports.jsx(ce,{contentRef:p,descriptionId:c.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(N,o);return i.jsxRuntimeExports.jsx(f.Primitive.h2,{id:s.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u($,o);return i.jsxRuntimeExports.jsx(f.Primitive.p,{id:s.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(W,o);return i.jsxRuntimeExports.jsx(f.Primitive.button,{type:"button",...r,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>s.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:d,titleName:N,docsSlug:"dialog"}),ie=({titleId:e})=>{const t=G(k),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
2
|
-
|
3
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
4
|
-
|
5
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},ae="DialogDescriptionWarning",ce=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(ae).contentName}}.`;return a.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},le=C,ue=P,de=y,pe=O,ge=h,fe=b,xe=I,me=T;exports.Close=me;exports.Content=ge;exports.Description=xe;exports.Dialog=C;exports.DialogClose=T;exports.DialogContent=h;exports.DialogDescription=I;exports.DialogOverlay=O;exports.DialogPortal=y;exports.DialogTitle=b;exports.DialogTrigger=P;exports.Overlay=pe;exports.Portal=de;exports.Root=le;exports.Title=fe;exports.Trigger=ue;exports.WarningProvider=se;
|
@@ -1,258 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as s from "react";
|
3
|
-
import { composeEventHandlers as p } from "../../primitive/dist/index.es.js";
|
4
|
-
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.es.js";
|
5
|
-
import { createContextScope as B, createContext as H } from "../../react-context/dist/index.es.js";
|
6
|
-
import { useId as C } from "../../react-id/dist/index.es.js";
|
7
|
-
import { useControllableState as V } from "../../react-use-controllable-state/dist/index.es.js";
|
8
|
-
import { DismissableLayer as q } from "../../react-dismissable-layer/dist/index.es.js";
|
9
|
-
import { FocusScope as K } from "../../react-focus-scope/dist/index.es.js";
|
10
|
-
import { Portal as U } from "../../react-portal/dist/index.es.js";
|
11
|
-
import { Presence as _ } from "../../react-presence/dist/index.es.js";
|
12
|
-
import { Primitive as g } from "../../react-primitive/dist/index.es.js";
|
13
|
-
import { useFocusGuards as Y } from "../../react-focus-guards/dist/index.es.js";
|
14
|
-
import Z from "../../../react-remove-scroll/dist/es2015/Combination.es.js";
|
15
|
-
import { hideOthers as z } from "../../../aria-hidden/dist/es2015/index.es.js";
|
16
|
-
import { createSlot as J } from "@radix-ui/react-slot";
|
17
|
-
import { j as i } from "../../../../_virtual/jsx-runtime.es.js";
|
18
|
-
var D = "Dialog", [N] = B(D), [Q, u] = N(D), P = (e) => {
|
19
|
-
const {
|
20
|
-
__scopeDialog: t,
|
21
|
-
children: n,
|
22
|
-
open: a,
|
23
|
-
defaultOpen: r,
|
24
|
-
onOpenChange: o,
|
25
|
-
modal: l = !0
|
26
|
-
} = e, c = s.useRef(null), f = s.useRef(null), [v, x] = V({
|
27
|
-
prop: a,
|
28
|
-
defaultProp: r ?? !1,
|
29
|
-
onChange: o,
|
30
|
-
caller: D
|
31
|
-
});
|
32
|
-
return /* @__PURE__ */ i.jsx(
|
33
|
-
Q,
|
34
|
-
{
|
35
|
-
scope: t,
|
36
|
-
triggerRef: c,
|
37
|
-
contentRef: f,
|
38
|
-
contentId: C(),
|
39
|
-
titleId: C(),
|
40
|
-
descriptionId: C(),
|
41
|
-
open: v,
|
42
|
-
onOpenChange: x,
|
43
|
-
onOpenToggle: s.useCallback(() => x(($) => !$), [x]),
|
44
|
-
modal: l,
|
45
|
-
children: n
|
46
|
-
}
|
47
|
-
);
|
48
|
-
};
|
49
|
-
P.displayName = D;
|
50
|
-
var O = "DialogTrigger", I = s.forwardRef(
|
51
|
-
(e, t) => {
|
52
|
-
const { __scopeDialog: n, ...a } = e, r = u(O, n), o = R(t, r.triggerRef);
|
53
|
-
return /* @__PURE__ */ i.jsx(
|
54
|
-
g.button,
|
55
|
-
{
|
56
|
-
type: "button",
|
57
|
-
"aria-haspopup": "dialog",
|
58
|
-
"aria-expanded": r.open,
|
59
|
-
"aria-controls": r.contentId,
|
60
|
-
"data-state": y(r.open),
|
61
|
-
...a,
|
62
|
-
ref: o,
|
63
|
-
onClick: p(e.onClick, r.onOpenToggle)
|
64
|
-
}
|
65
|
-
);
|
66
|
-
}
|
67
|
-
);
|
68
|
-
I.displayName = O;
|
69
|
-
var h = "DialogPortal", [X, A] = N(h, {
|
70
|
-
forceMount: void 0
|
71
|
-
}), j = (e) => {
|
72
|
-
const { __scopeDialog: t, forceMount: n, children: a, container: r } = e, o = u(h, t);
|
73
|
-
return /* @__PURE__ */ i.jsx(X, { scope: t, forceMount: n, children: s.Children.map(a, (l) => /* @__PURE__ */ i.jsx(_, { present: n || o.open, children: /* @__PURE__ */ i.jsx(U, { asChild: !0, container: r, children: l }) })) });
|
74
|
-
};
|
75
|
-
j.displayName = h;
|
76
|
-
var m = "DialogOverlay", T = s.forwardRef(
|
77
|
-
(e, t) => {
|
78
|
-
const n = A(m, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(m, e.__scopeDialog);
|
79
|
-
return o.modal ? /* @__PURE__ */ i.jsx(_, { present: a || o.open, children: /* @__PURE__ */ i.jsx(oe, { ...r, ref: t }) }) : null;
|
80
|
-
}
|
81
|
-
);
|
82
|
-
T.displayName = m;
|
83
|
-
var ee = J("DialogOverlay.RemoveScroll"), oe = s.forwardRef(
|
84
|
-
(e, t) => {
|
85
|
-
const { __scopeDialog: n, ...a } = e, r = u(m, n);
|
86
|
-
return (
|
87
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
88
|
-
// ie. when `Overlay` and `Content` are siblings
|
89
|
-
/* @__PURE__ */ i.jsx(Z, { as: ee, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i.jsx(
|
90
|
-
g.div,
|
91
|
-
{
|
92
|
-
"data-state": y(r.open),
|
93
|
-
...a,
|
94
|
-
ref: t,
|
95
|
-
style: { pointerEvents: "auto", ...a.style }
|
96
|
-
}
|
97
|
-
) })
|
98
|
-
);
|
99
|
-
}
|
100
|
-
), d = "DialogContent", b = s.forwardRef(
|
101
|
-
(e, t) => {
|
102
|
-
const n = A(d, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(d, e.__scopeDialog);
|
103
|
-
return /* @__PURE__ */ i.jsx(_, { present: a || o.open, children: o.modal ? /* @__PURE__ */ i.jsx(te, { ...r, ref: t }) : /* @__PURE__ */ i.jsx(re, { ...r, ref: t }) });
|
104
|
-
}
|
105
|
-
);
|
106
|
-
b.displayName = d;
|
107
|
-
var te = s.forwardRef(
|
108
|
-
(e, t) => {
|
109
|
-
const n = u(d, e.__scopeDialog), a = s.useRef(null), r = R(t, n.contentRef, a);
|
110
|
-
return s.useEffect(() => {
|
111
|
-
const o = a.current;
|
112
|
-
if (o) return z(o);
|
113
|
-
}, []), /* @__PURE__ */ i.jsx(
|
114
|
-
M,
|
115
|
-
{
|
116
|
-
...e,
|
117
|
-
ref: r,
|
118
|
-
trapFocus: n.open,
|
119
|
-
disableOutsidePointerEvents: !0,
|
120
|
-
onCloseAutoFocus: p(e.onCloseAutoFocus, (o) => {
|
121
|
-
o.preventDefault(), n.triggerRef.current?.focus();
|
122
|
-
}),
|
123
|
-
onPointerDownOutside: p(e.onPointerDownOutside, (o) => {
|
124
|
-
const l = o.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
|
125
|
-
(l.button === 2 || c) && o.preventDefault();
|
126
|
-
}),
|
127
|
-
onFocusOutside: p(
|
128
|
-
e.onFocusOutside,
|
129
|
-
(o) => o.preventDefault()
|
130
|
-
)
|
131
|
-
}
|
132
|
-
);
|
133
|
-
}
|
134
|
-
), re = s.forwardRef(
|
135
|
-
(e, t) => {
|
136
|
-
const n = u(d, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
137
|
-
return /* @__PURE__ */ i.jsx(
|
138
|
-
M,
|
139
|
-
{
|
140
|
-
...e,
|
141
|
-
ref: t,
|
142
|
-
trapFocus: !1,
|
143
|
-
disableOutsidePointerEvents: !1,
|
144
|
-
onCloseAutoFocus: (o) => {
|
145
|
-
e.onCloseAutoFocus?.(o), o.defaultPrevented || (a.current || n.triggerRef.current?.focus(), o.preventDefault()), a.current = !1, r.current = !1;
|
146
|
-
},
|
147
|
-
onInteractOutside: (o) => {
|
148
|
-
e.onInteractOutside?.(o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
149
|
-
const l = o.target;
|
150
|
-
n.triggerRef.current?.contains(l) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && r.current && o.preventDefault();
|
151
|
-
}
|
152
|
-
}
|
153
|
-
);
|
154
|
-
}
|
155
|
-
), M = s.forwardRef(
|
156
|
-
(e, t) => {
|
157
|
-
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...l } = e, c = u(d, n), f = s.useRef(null), v = R(t, f);
|
158
|
-
return Y(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
159
|
-
/* @__PURE__ */ i.jsx(
|
160
|
-
K,
|
161
|
-
{
|
162
|
-
asChild: !0,
|
163
|
-
loop: !0,
|
164
|
-
trapped: a,
|
165
|
-
onMountAutoFocus: r,
|
166
|
-
onUnmountAutoFocus: o,
|
167
|
-
children: /* @__PURE__ */ i.jsx(
|
168
|
-
q,
|
169
|
-
{
|
170
|
-
role: "dialog",
|
171
|
-
id: c.contentId,
|
172
|
-
"aria-describedby": c.descriptionId,
|
173
|
-
"aria-labelledby": c.titleId,
|
174
|
-
"data-state": y(c.open),
|
175
|
-
...l,
|
176
|
-
ref: v,
|
177
|
-
onDismiss: () => c.onOpenChange(!1)
|
178
|
-
}
|
179
|
-
)
|
180
|
-
}
|
181
|
-
),
|
182
|
-
/* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
183
|
-
/* @__PURE__ */ i.jsx(ne, { titleId: c.titleId }),
|
184
|
-
/* @__PURE__ */ i.jsx(ie, { contentRef: f, descriptionId: c.descriptionId })
|
185
|
-
] })
|
186
|
-
] });
|
187
|
-
}
|
188
|
-
), E = "DialogTitle", w = s.forwardRef(
|
189
|
-
(e, t) => {
|
190
|
-
const { __scopeDialog: n, ...a } = e, r = u(E, n);
|
191
|
-
return /* @__PURE__ */ i.jsx(g.h2, { id: r.titleId, ...a, ref: t });
|
192
|
-
}
|
193
|
-
);
|
194
|
-
w.displayName = E;
|
195
|
-
var F = "DialogDescription", S = s.forwardRef(
|
196
|
-
(e, t) => {
|
197
|
-
const { __scopeDialog: n, ...a } = e, r = u(F, n);
|
198
|
-
return /* @__PURE__ */ i.jsx(g.p, { id: r.descriptionId, ...a, ref: t });
|
199
|
-
}
|
200
|
-
);
|
201
|
-
S.displayName = F;
|
202
|
-
var W = "DialogClose", k = s.forwardRef(
|
203
|
-
(e, t) => {
|
204
|
-
const { __scopeDialog: n, ...a } = e, r = u(W, n);
|
205
|
-
return /* @__PURE__ */ i.jsx(
|
206
|
-
g.button,
|
207
|
-
{
|
208
|
-
type: "button",
|
209
|
-
...a,
|
210
|
-
ref: t,
|
211
|
-
onClick: p(e.onClick, () => r.onOpenChange(!1))
|
212
|
-
}
|
213
|
-
);
|
214
|
-
}
|
215
|
-
);
|
216
|
-
k.displayName = W;
|
217
|
-
function y(e) {
|
218
|
-
return e ? "open" : "closed";
|
219
|
-
}
|
220
|
-
var G = "DialogTitleWarning", [he, L] = H(G, {
|
221
|
-
contentName: d,
|
222
|
-
titleName: E,
|
223
|
-
docsSlug: "dialog"
|
224
|
-
}), ne = ({ titleId: e }) => {
|
225
|
-
const t = L(G), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
226
|
-
|
227
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
228
|
-
|
229
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
230
|
-
return s.useEffect(() => {
|
231
|
-
e && (document.getElementById(e) || console.error(n));
|
232
|
-
}, [n, e]), null;
|
233
|
-
}, ae = "DialogDescriptionWarning", ie = ({ contentRef: e, descriptionId: t }) => {
|
234
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(ae).contentName}}.`;
|
235
|
-
return s.useEffect(() => {
|
236
|
-
const r = e.current?.getAttribute("aria-describedby");
|
237
|
-
t && r && (document.getElementById(t) || console.warn(a));
|
238
|
-
}, [a, e, t]), null;
|
239
|
-
}, Ee = P, ye = I, Ne = j, Pe = T, Oe = b, Ie = w, Ae = S, je = k;
|
240
|
-
export {
|
241
|
-
je as Close,
|
242
|
-
Oe as Content,
|
243
|
-
Ae as Description,
|
244
|
-
P as Dialog,
|
245
|
-
k as DialogClose,
|
246
|
-
b as DialogContent,
|
247
|
-
S as DialogDescription,
|
248
|
-
T as DialogOverlay,
|
249
|
-
j as DialogPortal,
|
250
|
-
w as DialogTitle,
|
251
|
-
I as DialogTrigger,
|
252
|
-
Pe as Overlay,
|
253
|
-
Ne as Portal,
|
254
|
-
Ee as Root,
|
255
|
-
Ie as Title,
|
256
|
-
ye as Trigger,
|
257
|
-
he as WarningProvider
|
258
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),b=require("../../primitive/dist/index.cjs.js"),p=require("../../react-primitive/dist/index.cjs.js"),R=require("../../react-compose-refs/dist/index.cjs.js"),w=require("../../react-use-callback-ref/dist/index.cjs.js"),H=require("../../react-use-escape-keydown/dist/index.cjs.js"),x=require("../../../../_virtual/jsx-runtime.cjs.js");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=U(q);var z="DismissableLayer",m="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",L,T=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...v}=e,a=i.useContext(T),[u,I]=i.useState(null),l=u?.ownerDocument??globalThis?.document,[,j]=i.useState({}),N=R.useComposedRefs(t,s=>I(s)),h=Array.from(a.layers),[W]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(W),D=u?h.indexOf(u):-1,A=a.layersWithOutsidePointerEventsDisabled.size>0,O=D>=_,k=X(s=>{const E=s.target,C=[...a.branches].some(y=>y.contains(E));!O||C||(o?.(s),f?.(s),s.defaultPrevented||d?.())},l),P=Y(s=>{const E=s.target;[...a.branches].some(y=>y.contains(E))||(c?.(s),f?.(s),s.defaultPrevented||d?.())},l);return H.useEscapeKeydown(s=>{D===a.layers.size-1&&(r?.(s),!s.defaultPrevented&&d&&(s.preventDefault(),d()))},l),i.useEffect(()=>{if(u)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(L=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(u)),a.layers.add(u),g(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(l.body.style.pointerEvents=L)}},[u,l,n,a]),i.useEffect(()=>()=>{u&&(a.layers.delete(u),a.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,a]),i.useEffect(()=>{const s=()=>j({});return document.addEventListener(m,s),()=>document.removeEventListener(m,s)},[]),x.jsxRuntimeExports.jsx(p.Primitive.div,{...v,ref:N,style:{pointerEvents:A?O?"auto":"none":void 0,...e.style},onFocusCapture:b.composeEventHandlers(e.onFocusCapture,P.onFocusCapture),onBlurCapture:b.composeEventHandlers(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:b.composeEventHandlers(e.onPointerDownCapture,k.onPointerDownCapture)})});S.displayName=z;var K="DismissableLayerBranch",B=i.forwardRef((e,t)=>{const n=i.useContext(T),r=i.useRef(null),o=R.useComposedRefs(t,r);return i.useEffect(()=>{const c=r.current;if(c)return n.branches.add(c),()=>{n.branches.delete(c)}},[n.branches]),x.jsxRuntimeExports.jsx(p.Primitive.div,{...e,ref:o})});B.displayName=K;function X(e,t=globalThis?.document){const n=w.useCallbackRef(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const c=d=>{if(d.target&&!r.current){let v=function(){F(M,n,a,{discrete:!0})};const a={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=v,t.addEventListener("click",o.current,{once:!0})):v()}else t.removeEventListener("click",o.current);r.current=!1},f=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),t.removeEventListener("pointerdown",c),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Y(e,t=globalThis?.document){const n=w.useCallbackRef(e),r=i.useRef(!1);return i.useEffect(()=>{const o=c=>{c.target&&!r.current&&F($,n,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function g(){const e=new CustomEvent(m);document.dispatchEvent(e)}function F(e,t,n,{discrete:r}){const o=n.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?p.dispatchDiscreteCustomEvent(o,c):o.dispatchEvent(c)}exports.DismissableLayer=S;exports.DismissableLayerBranch=B;
|
@@ -1,128 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as s from "react";
|
3
|
-
import { composeEventHandlers as h } from "../../primitive/dist/index.es.js";
|
4
|
-
import { Primitive as w, dispatchDiscreteCustomEvent as k } from "../../react-primitive/dist/index.es.js";
|
5
|
-
import { useComposedRefs as g } from "../../react-compose-refs/dist/index.es.js";
|
6
|
-
import { useCallbackRef as R } from "../../react-use-callback-ref/dist/index.es.js";
|
7
|
-
import { useEscapeKeydown as U } from "../../react-use-escape-keydown/dist/index.es.js";
|
8
|
-
import { j as x } from "../../../../_virtual/jsx-runtime.es.js";
|
9
|
-
var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer.pointerDownOutside", H = "dismissableLayer.focusOutside", C, T = s.createContext({
|
10
|
-
layers: /* @__PURE__ */ new Set(),
|
11
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
12
|
-
branches: /* @__PURE__ */ new Set()
|
13
|
-
}), M = s.forwardRef(
|
14
|
-
(n, e) => {
|
15
|
-
const {
|
16
|
-
disableOutsidePointerEvents: r = !1,
|
17
|
-
onEscapeKeyDown: a,
|
18
|
-
onPointerDownOutside: i,
|
19
|
-
onFocusOutside: u,
|
20
|
-
onInteractOutside: f,
|
21
|
-
onDismiss: d,
|
22
|
-
...E
|
23
|
-
} = n, o = s.useContext(T), [c, F] = s.useState(null), l = c?.ownerDocument ?? globalThis?.document, [, I] = s.useState({}), S = g(e, (t) => F(t)), y = Array.from(o.layers), [W] = [...o.layersWithOutsidePointerEventsDisabled].slice(-1), A = y.indexOf(W), b = c ? y.indexOf(c) : -1, N = o.layersWithOutsidePointerEventsDisabled.size > 0, D = b >= A, _ = Y((t) => {
|
24
|
-
const v = t.target, P = [...o.branches].some((m) => m.contains(v));
|
25
|
-
!D || P || (i?.(t), f?.(t), t.defaultPrevented || d?.());
|
26
|
-
}, l), O = q((t) => {
|
27
|
-
const v = t.target;
|
28
|
-
[...o.branches].some((m) => m.contains(v)) || (u?.(t), f?.(t), t.defaultPrevented || d?.());
|
29
|
-
}, l);
|
30
|
-
return U((t) => {
|
31
|
-
b === o.layers.size - 1 && (a?.(t), !t.defaultPrevented && d && (t.preventDefault(), d()));
|
32
|
-
}, l), s.useEffect(() => {
|
33
|
-
if (c)
|
34
|
-
return r && (o.layersWithOutsidePointerEventsDisabled.size === 0 && (C = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), o.layersWithOutsidePointerEventsDisabled.add(c)), o.layers.add(c), L(), () => {
|
35
|
-
r && o.layersWithOutsidePointerEventsDisabled.size === 1 && (l.body.style.pointerEvents = C);
|
36
|
-
};
|
37
|
-
}, [c, l, r, o]), s.useEffect(() => () => {
|
38
|
-
c && (o.layers.delete(c), o.layersWithOutsidePointerEventsDisabled.delete(c), L());
|
39
|
-
}, [c, o]), s.useEffect(() => {
|
40
|
-
const t = () => I({});
|
41
|
-
return document.addEventListener(p, t), () => document.removeEventListener(p, t);
|
42
|
-
}, []), /* @__PURE__ */ x.jsx(
|
43
|
-
w.div,
|
44
|
-
{
|
45
|
-
...E,
|
46
|
-
ref: S,
|
47
|
-
style: {
|
48
|
-
pointerEvents: N ? D ? "auto" : "none" : void 0,
|
49
|
-
...n.style
|
50
|
-
},
|
51
|
-
onFocusCapture: h(n.onFocusCapture, O.onFocusCapture),
|
52
|
-
onBlurCapture: h(n.onBlurCapture, O.onBlurCapture),
|
53
|
-
onPointerDownCapture: h(
|
54
|
-
n.onPointerDownCapture,
|
55
|
-
_.onPointerDownCapture
|
56
|
-
)
|
57
|
-
}
|
58
|
-
);
|
59
|
-
}
|
60
|
-
);
|
61
|
-
M.displayName = j;
|
62
|
-
var K = "DismissableLayerBranch", X = s.forwardRef((n, e) => {
|
63
|
-
const r = s.useContext(T), a = s.useRef(null), i = g(e, a);
|
64
|
-
return s.useEffect(() => {
|
65
|
-
const u = a.current;
|
66
|
-
if (u)
|
67
|
-
return r.branches.add(u), () => {
|
68
|
-
r.branches.delete(u);
|
69
|
-
};
|
70
|
-
}, [r.branches]), /* @__PURE__ */ x.jsx(w.div, { ...n, ref: i });
|
71
|
-
});
|
72
|
-
X.displayName = K;
|
73
|
-
function Y(n, e = globalThis?.document) {
|
74
|
-
const r = R(n), a = s.useRef(!1), i = s.useRef(() => {
|
75
|
-
});
|
76
|
-
return s.useEffect(() => {
|
77
|
-
const u = (d) => {
|
78
|
-
if (d.target && !a.current) {
|
79
|
-
let E = function() {
|
80
|
-
B(
|
81
|
-
z,
|
82
|
-
r,
|
83
|
-
o,
|
84
|
-
{ discrete: !0 }
|
85
|
-
);
|
86
|
-
};
|
87
|
-
const o = { originalEvent: d };
|
88
|
-
d.pointerType === "touch" ? (e.removeEventListener("click", i.current), i.current = E, e.addEventListener("click", i.current, { once: !0 })) : E();
|
89
|
-
} else
|
90
|
-
e.removeEventListener("click", i.current);
|
91
|
-
a.current = !1;
|
92
|
-
}, f = window.setTimeout(() => {
|
93
|
-
e.addEventListener("pointerdown", u);
|
94
|
-
}, 0);
|
95
|
-
return () => {
|
96
|
-
window.clearTimeout(f), e.removeEventListener("pointerdown", u), e.removeEventListener("click", i.current);
|
97
|
-
};
|
98
|
-
}, [e, r]), {
|
99
|
-
// ensures we check React component tree (not just DOM tree)
|
100
|
-
onPointerDownCapture: () => a.current = !0
|
101
|
-
};
|
102
|
-
}
|
103
|
-
function q(n, e = globalThis?.document) {
|
104
|
-
const r = R(n), a = s.useRef(!1);
|
105
|
-
return s.useEffect(() => {
|
106
|
-
const i = (u) => {
|
107
|
-
u.target && !a.current && B(H, r, { originalEvent: u }, {
|
108
|
-
discrete: !1
|
109
|
-
});
|
110
|
-
};
|
111
|
-
return e.addEventListener("focusin", i), () => e.removeEventListener("focusin", i);
|
112
|
-
}, [e, r]), {
|
113
|
-
onFocusCapture: () => a.current = !0,
|
114
|
-
onBlurCapture: () => a.current = !1
|
115
|
-
};
|
116
|
-
}
|
117
|
-
function L() {
|
118
|
-
const n = new CustomEvent(p);
|
119
|
-
document.dispatchEvent(n);
|
120
|
-
}
|
121
|
-
function B(n, e, r, { discrete: a }) {
|
122
|
-
const i = r.originalEvent.target, u = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: r });
|
123
|
-
e && i.addEventListener(n, e, { once: !0 }), a ? k(i, u) : i.dispatchEvent(u);
|
124
|
-
}
|
125
|
-
export {
|
126
|
-
M as DismissableLayer,
|
127
|
-
X as DismissableLayerBranch
|
128
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=a(c);var r=0;function d(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??u()),document.body.insertAdjacentElement("beforeend",e[1]??u()),r++,()=>{r===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),r--}},[])}function u(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}exports.useFocusGuards=d;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as r from "react";
|
3
|
-
var t = 0;
|
4
|
-
function u() {
|
5
|
-
r.useEffect(() => {
|
6
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
7
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? n()), document.body.insertAdjacentElement("beforeend", e[1] ?? n()), t++, () => {
|
8
|
-
t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((o) => o.remove()), t--;
|
9
|
-
};
|
10
|
-
}, []);
|
11
|
-
}
|
12
|
-
function n() {
|
13
|
-
const e = document.createElement("span");
|
14
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
15
|
-
}
|
16
|
-
export {
|
17
|
-
u as useFocusGuards
|
18
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react"),x=require("../../react-compose-refs/dist/index.cjs.js"),A=require("../../react-primitive/dist/index.cjs.js"),T=require("../../react-use-callback-ref/dist/index.cjs.js"),k=require("../../../../_virtual/jsx-runtime.cjs.js");function w(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=w(U);var F="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},K="FocusScope",C=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:p,onUnmountAutoFocus:L,...P}=e,[s,R]=f.useState(null),v=T.useCallbackRef(p),E=T.useCallbackRef(L),b=f.useRef(null),_=x.useComposedRefs(t,u=>R(u)),a=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let u=function(i){if(a.paused||!s)return;const c=i.target;s.contains(c)?b.current=c:d(b.current,{select:!0})},l=function(i){if(a.paused||!s)return;const c=i.relatedTarget;c!==null&&(s.contains(c)||d(b.current,{select:!0}))},r=function(i){if(document.activeElement===document.body)for(const S of i)S.removedNodes.length>0&&d(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",l);const m=new MutationObserver(r);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",l),m.disconnect()}}},[o,s,a.paused]),f.useEffect(()=>{if(s){N.add(a);const u=document.activeElement;if(!s.contains(u)){const r=new CustomEvent(F,O);s.addEventListener(F,v),s.dispatchEvent(r),r.defaultPrevented||(j(W(I(s)),{select:!0}),document.activeElement===u&&d(s))}return()=>{s.removeEventListener(F,v),setTimeout(()=>{const r=new CustomEvent(y,O);s.addEventListener(y,E),s.dispatchEvent(r),r.defaultPrevented||d(u??document.body,{select:!0}),s.removeEventListener(y,E),N.remove(a)},0)}}},[s,v,E,a]);const M=f.useCallback(u=>{if(!n&&!o||a.paused)return;const l=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,r=document.activeElement;if(l&&r){const m=u.currentTarget,[i,c]=D(m);i&&c?!u.shiftKey&&r===c?(u.preventDefault(),n&&d(i,{select:!0})):u.shiftKey&&r===i&&(u.preventDefault(),n&&d(c,{select:!0})):r===m&&u.preventDefault()}},[n,o,a.paused]);return k.jsxRuntimeExports.jsx(A.Primitive.div,{tabIndex:-1,...P,ref:_,onKeyDown:M})});C.displayName=K;function j(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(d(o,{select:t}),document.activeElement!==n)return}function D(e){const t=I(e),n=h(t,e),o=h(t.reverse(),e);return[n,o]}function I(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const p=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||p?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){for(const n of e)if(!q(n,{upTo:t}))return n}function q(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function H(e){return e instanceof HTMLInputElement&&"select"in e}function d(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&H(e)&&t&&e.select()}}var N=V();function V(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=g(e,t),e.unshift(t)},remove(t){e=g(e,t),e[0]?.resume()}}}function g(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function W(e){return e.filter(t=>t.tagName!=="A")}exports.FocusScope=C;
|
@@ -1,137 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as d from "react";
|
3
|
-
import { useComposedRefs as R } from "../../react-compose-refs/dist/index.es.js";
|
4
|
-
import { Primitive as M } from "../../react-primitive/dist/index.es.js";
|
5
|
-
import { useCallbackRef as y } from "../../react-use-callback-ref/dist/index.es.js";
|
6
|
-
import { j as _ } from "../../../../_virtual/jsx-runtime.es.js";
|
7
|
-
var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, t) => {
|
8
|
-
const {
|
9
|
-
loop: n = !1,
|
10
|
-
trapped: u = !1,
|
11
|
-
onMountAutoFocus: p,
|
12
|
-
onUnmountAutoFocus: L,
|
13
|
-
...g
|
14
|
-
} = e, [o, U] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), A = R(t, (s) => U(s)), a = d.useRef({
|
15
|
-
paused: !1,
|
16
|
-
pause() {
|
17
|
-
this.paused = !0;
|
18
|
-
},
|
19
|
-
resume() {
|
20
|
-
this.paused = !1;
|
21
|
-
}
|
22
|
-
}).current;
|
23
|
-
d.useEffect(() => {
|
24
|
-
if (u) {
|
25
|
-
let s = function(i) {
|
26
|
-
if (a.paused || !o) return;
|
27
|
-
const c = i.target;
|
28
|
-
o.contains(c) ? b.current = c : f(b.current, { select: !0 });
|
29
|
-
}, l = function(i) {
|
30
|
-
if (a.paused || !o) return;
|
31
|
-
const c = i.relatedTarget;
|
32
|
-
c !== null && (o.contains(c) || f(b.current, { select: !0 }));
|
33
|
-
}, r = function(i) {
|
34
|
-
if (document.activeElement === document.body)
|
35
|
-
for (const h of i)
|
36
|
-
h.removedNodes.length > 0 && f(o);
|
37
|
-
};
|
38
|
-
document.addEventListener("focusin", s), document.addEventListener("focusout", l);
|
39
|
-
const m = new MutationObserver(r);
|
40
|
-
return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
|
41
|
-
document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
|
42
|
-
};
|
43
|
-
}
|
44
|
-
}, [u, o, a.paused]), d.useEffect(() => {
|
45
|
-
if (o) {
|
46
|
-
O.add(a);
|
47
|
-
const s = document.activeElement;
|
48
|
-
if (!o.contains(s)) {
|
49
|
-
const r = new CustomEvent(F, N);
|
50
|
-
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(V(I(o)), { select: !0 }), document.activeElement === s && f(o));
|
51
|
-
}
|
52
|
-
return () => {
|
53
|
-
o.removeEventListener(F, E), setTimeout(() => {
|
54
|
-
const r = new CustomEvent(T, N);
|
55
|
-
o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), O.remove(a);
|
56
|
-
}, 0);
|
57
|
-
};
|
58
|
-
}
|
59
|
-
}, [o, E, v, a]);
|
60
|
-
const P = d.useCallback(
|
61
|
-
(s) => {
|
62
|
-
if (!n && !u || a.paused) return;
|
63
|
-
const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
|
64
|
-
if (l && r) {
|
65
|
-
const m = s.currentTarget, [i, c] = x(m);
|
66
|
-
i && c ? !s.shiftKey && r === c ? (s.preventDefault(), n && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), n && f(c, { select: !0 })) : r === m && s.preventDefault();
|
67
|
-
}
|
68
|
-
},
|
69
|
-
[n, u, a.paused]
|
70
|
-
);
|
71
|
-
return /* @__PURE__ */ _.jsx(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
|
72
|
-
});
|
73
|
-
k.displayName = K;
|
74
|
-
function w(e, { select: t = !1 } = {}) {
|
75
|
-
const n = document.activeElement;
|
76
|
-
for (const u of e)
|
77
|
-
if (f(u, { select: t }), document.activeElement !== n) return;
|
78
|
-
}
|
79
|
-
function x(e) {
|
80
|
-
const t = I(e), n = S(t, e), u = S(t.reverse(), e);
|
81
|
-
return [n, u];
|
82
|
-
}
|
83
|
-
function I(e) {
|
84
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
85
|
-
acceptNode: (u) => {
|
86
|
-
const p = u.tagName === "INPUT" && u.type === "hidden";
|
87
|
-
return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
88
|
-
}
|
89
|
-
});
|
90
|
-
for (; n.nextNode(); ) t.push(n.currentNode);
|
91
|
-
return t;
|
92
|
-
}
|
93
|
-
function S(e, t) {
|
94
|
-
for (const n of e)
|
95
|
-
if (!D(n, { upTo: t })) return n;
|
96
|
-
}
|
97
|
-
function D(e, { upTo: t }) {
|
98
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
99
|
-
for (; e; ) {
|
100
|
-
if (t !== void 0 && e === t) return !1;
|
101
|
-
if (getComputedStyle(e).display === "none") return !0;
|
102
|
-
e = e.parentElement;
|
103
|
-
}
|
104
|
-
return !1;
|
105
|
-
}
|
106
|
-
function H(e) {
|
107
|
-
return e instanceof HTMLInputElement && "select" in e;
|
108
|
-
}
|
109
|
-
function f(e, { select: t = !1 } = {}) {
|
110
|
-
if (e && e.focus) {
|
111
|
-
const n = document.activeElement;
|
112
|
-
e.focus({ preventScroll: !0 }), e !== n && H(e) && t && e.select();
|
113
|
-
}
|
114
|
-
}
|
115
|
-
var O = j();
|
116
|
-
function j() {
|
117
|
-
let e = [];
|
118
|
-
return {
|
119
|
-
add(t) {
|
120
|
-
const n = e[0];
|
121
|
-
t !== n && n?.pause(), e = C(e, t), e.unshift(t);
|
122
|
-
},
|
123
|
-
remove(t) {
|
124
|
-
e = C(e, t), e[0]?.resume();
|
125
|
-
}
|
126
|
-
};
|
127
|
-
}
|
128
|
-
function C(e, t) {
|
129
|
-
const n = [...e], u = n.indexOf(t);
|
130
|
-
return u !== -1 && n.splice(u, 1), n;
|
131
|
-
}
|
132
|
-
function V(e) {
|
133
|
-
return e.filter((t) => t.tagName !== "A");
|
134
|
-
}
|
135
|
-
export {
|
136
|
-
k as FocusScope
|
137
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("../../react-use-layout-effect/dist/index.cjs.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=i(u);var a=o[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=o.useState(a());return c.useLayoutEffect(()=>{r(n=>n??String(s++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import * as r from "react";
|
2
|
-
import { useLayoutEffect as a } from "../../react-use-layout-effect/dist/index.es.js";
|
3
|
-
var s = r[" useId ".trim().toString()] || (() => {
|
4
|
-
}), f = 0;
|
5
|
-
function n(t) {
|
6
|
-
const [o, e] = r.useState(s());
|
7
|
-
return a(() => {
|
8
|
-
e((u) => u ?? String(f++));
|
9
|
-
}, [t]), t || (o ? `radix-${o}` : "");
|
10
|
-
}
|
11
|
-
export {
|
12
|
-
n as useId
|
13
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),l=require("react-dom"),d=require("../../react-primitive/dist/index.cjs.js"),f=require("../../react-use-layout-effect/dist/index.cjs.js"),p=require("../../../../_virtual/jsx-runtime.cjs.js");function m(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=m(s);var P="Portal",a=i.forwardRef((e,r)=>{const{container:t,...o}=e,[c,u]=i.useState(!1);f.useLayoutEffect(()=>u(!0),[]);const n=t||c&&globalThis?.document?.body;return n?l.createPortal(p.jsxRuntimeExports.jsx(d.Primitive.div,{...o,ref:r}),n):null});a.displayName=P;exports.Portal=a;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use client";
|
2
|
-
import * as o from "react";
|
3
|
-
import m from "react-dom";
|
4
|
-
import { Primitive as f } from "../../react-primitive/dist/index.es.js";
|
5
|
-
import { useLayoutEffect as u } from "../../react-use-layout-effect/dist/index.es.js";
|
6
|
-
import { j as l } from "../../../../_virtual/jsx-runtime.es.js";
|
7
|
-
var c = "Portal", p = o.forwardRef((r, e) => {
|
8
|
-
const { container: a, ...s } = r, [i, n] = o.useState(!1);
|
9
|
-
u(() => n(!0), []);
|
10
|
-
const t = a || i && globalThis?.document?.body;
|
11
|
-
return t ? m.createPortal(/* @__PURE__ */ l.jsx(f.div, { ...s, ref: e }), t) : null;
|
12
|
-
});
|
13
|
-
p.displayName = c;
|
14
|
-
export {
|
15
|
-
p as Portal
|
16
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),P=require("../../react-compose-refs/dist/index.cjs.js"),g=require("../../react-use-layout-effect/dist/index.cjs.js");function S(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const o=S(T);function E(n,e){return o.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),a=typeof t=="function"?t({present:r.isPresent}):o.Children.only(t),c=P.useComposedRefs(r.ref,R(a));return typeof t=="function"||r.isPresent?o.cloneElement(a,{ref:c}):null};O.displayName="Presence";function v(n){const[e,t]=o.useState(),r=o.useRef(null),a=o.useRef(n),c=o.useRef("none"),p=n?"mounted":"unmounted",[N,s]=E(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const i=f(r.current);c.current=N==="mounted"?i:"none"},[N]),g.useLayoutEffect(()=>{const i=r.current,d=a.current;if(d!==n){const l=c.current,u=f(i);n?s("MOUNT"):u==="none"||i?.display==="none"?s("UNMOUNT"):s(d&&l!==u?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,s]),g.useLayoutEffect(()=>{if(e){let i;const d=e.ownerDocument.defaultView??window,m=u=>{const A=f(r.current).includes(CSS.escape(u.animationName));if(u.target===e&&A&&(s("ANIMATION_END"),!a.current)){const M=e.style.animationFillMode;e.style.animationFillMode="forwards",i=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=M)})}},l=u=>{u.target===e&&(c.current=f(r.current))};return e.addEventListener("animationstart",l),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(i),e.removeEventListener("animationstart",l),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:o.useCallback(i=>{r.current=i?getComputedStyle(i):null,t(i)},[])}}function f(n){return n?.animationName||"none"}function R(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
|