@inspirare/design-system 0.0.21 → 0.0.23
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/components/ui/accordion.js +44 -0
- package/dist/components/ui/alert-dialog.js +61 -0
- package/dist/{src/components → components}/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +6 -0
- package/dist/components/ui/avatar.js +29 -0
- package/dist/{src/components → components}/ui/badge.js +6 -6
- package/dist/components/ui/breadcrumb.js +60 -0
- package/dist/components/ui/button-group.js +38 -0
- package/dist/{src/components → components}/ui/button.js +6 -6
- package/dist/{src/components → components}/ui/calendar.js +16 -16
- package/dist/{src/components → components}/ui/carousel.js +29 -29
- package/dist/{src/components → components}/ui/checkbox.js +10 -10
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/{src/components → components}/ui/combobox.js +10 -10
- package/dist/{src/components → components}/ui/command.js +17 -17
- package/dist/{src/components → components}/ui/context-menu.js +37 -37
- package/dist/{src/components → components}/ui/dialog.js +36 -36
- package/dist/{src/components → components}/ui/dropdown-menu.js +46 -46
- package/dist/{src/components → components}/ui/empty.js +21 -21
- package/dist/{src/components → components}/ui/field.js +27 -27
- package/dist/components/ui/form.js +77 -0
- package/dist/{src/components → components}/ui/hover-card.js +14 -14
- package/dist/{src/components → components}/ui/input-group.js +18 -18
- package/dist/{src/components → components}/ui/input-otp.js +13 -13
- package/dist/components/ui/item.js +116 -0
- package/dist/{src/components → components}/ui/label.js +3 -3
- package/dist/components/ui/menubar.js +105 -0
- package/dist/components/ui/navigation-menu.js +58 -0
- package/dist/{src/components → components}/ui/pagination.js +18 -18
- package/dist/components/ui/popover.js +36 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/{src/components → components}/ui/radio-group.js +14 -14
- package/dist/{src/components → components}/ui/resizable.js +7 -7
- package/dist/{src/components → components}/ui/select.js +44 -44
- package/dist/{src/components → components}/ui/separator.js +3 -3
- package/dist/{src/components → components}/ui/sheet.js +35 -35
- package/dist/{src/components → components}/ui/sidebar.js +124 -124
- package/dist/{src/components → components}/ui/slider.js +20 -20
- package/dist/{src/components → components}/ui/spinner.js +3 -3
- package/dist/{src/components → components}/ui/switch.js +9 -9
- package/dist/{src/components → components}/ui/tabs.js +19 -19
- package/dist/{src/components → components}/ui/theme-toggle.js +10 -10
- package/dist/components/ui/toggle-group.js +44 -0
- package/dist/{src/components → components}/ui/toggle.js +7 -7
- package/dist/components/ui/tooltip.js +37 -0
- package/package.json +5 -5
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -359
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -328
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -212
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -106
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +0 -195
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -119
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +0 -20
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -31
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +0 -73
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -158
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -97
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +0 -62
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
- package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -240
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +0 -80
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -108
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -146
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -161
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.2_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +0 -12
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +0 -563
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +0 -312
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -553
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +0 -199
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +0 -203
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +0 -85
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +0 -41
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -249
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -154
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +0 -727
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +0 -23
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +0 -404
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.5_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +0 -138
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +0 -120
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -125
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -351
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -45
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -5
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +0 -29
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -27
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -46
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -70
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -4
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -14
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -13
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -28
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -19
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -22
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +0 -16
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +0 -69
- package/dist/src/components/ui/accordion.js +0 -44
- package/dist/src/components/ui/alert-dialog.js +0 -61
- package/dist/src/components/ui/aspect-ratio.js +0 -6
- package/dist/src/components/ui/avatar.js +0 -29
- package/dist/src/components/ui/breadcrumb.js +0 -60
- package/dist/src/components/ui/button-group.js +0 -38
- package/dist/src/components/ui/collapsible.js +0 -26
- package/dist/src/components/ui/form.js +0 -76
- package/dist/src/components/ui/item.js +0 -116
- package/dist/src/components/ui/menubar.js +0 -105
- package/dist/src/components/ui/navigation-menu.js +0 -58
- package/dist/src/components/ui/popover.js +0 -36
- package/dist/src/components/ui/progress.js +0 -20
- package/dist/src/components/ui/toggle-group.js +0 -44
- package/dist/src/components/ui/tooltip.js +0 -37
- /package/dist/{src/components → components}/ui/accessibility-improvements.js +0 -0
- /package/dist/{src/components → components}/ui/card.js +0 -0
- /package/dist/{src/components → components}/ui/chart.js +0 -0
- /package/dist/{src/components → components}/ui/color-picker.js +0 -0
- /package/dist/{src/components → components}/ui/drawer.js +0 -0
- /package/dist/{src/components → components}/ui/input.js +0 -0
- /package/dist/{src/components → components}/ui/kbd.js +0 -0
- /package/dist/{src/components → components}/ui/scroll-area.js +0 -0
- /package/dist/{src/components → components}/ui/skeleton.js +0 -0
- /package/dist/{src/components → components}/ui/sonner.js +0 -0
- /package/dist/{src/components → components}/ui/table.js +0 -0
- /package/dist/{src/components → components}/ui/textarea.js +0 -0
- /package/dist/{src/hooks → hooks}/use-mobile.js +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/lib → lib}/utils.js +0 -0
|
@@ -1,727 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createContextScope as e } from "../../../../../@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
-
import { useComposedRefs as t } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
4
|
-
import { createSlot as n } from "../../../../../@radix-ui_react-slot@1.2.5_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js";
|
|
5
|
-
import { createCollection as r } from "../../../../../@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js";
|
|
6
|
-
import { composeEventHandlers as i } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
7
|
-
import { useLayoutEffect2 as a } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
8
|
-
import { useControllableState as o } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
9
|
-
import { Primitive as s } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
10
|
-
import { Presence as c } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
|
|
11
|
-
import { useId as l } from "../../../../../@radix-ui_react-id@1.1.2_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js";
|
|
12
|
-
import { useDirection as u } from "../../../../../@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js";
|
|
13
|
-
import { useCallbackRef as d } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
14
|
-
import { DismissableLayer as f } from "../../../../../@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js";
|
|
15
|
-
import { FocusScope as p } from "../../../../../@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js";
|
|
16
|
-
import { Portal as m } from "../../../../../@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js";
|
|
17
|
-
import { useFocusGuards as h } from "../../../../../@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js";
|
|
18
|
-
import g from "../../../../../react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js";
|
|
19
|
-
import { hideOthers as _ } from "../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js";
|
|
20
|
-
import { VISUALLY_HIDDEN_STYLES as v } from "../../../../../@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js";
|
|
21
|
-
import { usePrevious as y } from "../../../../../@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js";
|
|
22
|
-
import { Anchor as b, Arrow as x, Content as S, Root2 as C, createPopperScope as w } from "../../../../../@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js";
|
|
23
|
-
import { clamp as T } from "../../../../../@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js";
|
|
24
|
-
import * as E from "react";
|
|
25
|
-
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
26
|
-
import * as A from "react-dom";
|
|
27
|
-
//#region node_modules/.pnpm/@radix-ui+react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.mjs
|
|
28
|
-
var j = [
|
|
29
|
-
" ",
|
|
30
|
-
"Enter",
|
|
31
|
-
"ArrowUp",
|
|
32
|
-
"ArrowDown"
|
|
33
|
-
], M = [" ", "Enter"], N = "Select", [P, F, I] = r(N), [L, R] = e(N, [I, w]), z = w(), [ee, B] = L(N), [V, H] = L(N), U = "SelectProvider";
|
|
34
|
-
function W(e) {
|
|
35
|
-
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: s, defaultValue: c, onValueChange: d, dir: f, name: p, autoComplete: m, disabled: h, required: g, form: _, internal_do_not_use_render: v } = e, y = z(t), [b, x] = E.useState(null), [S, w] = E.useState(null), [T, D] = E.useState(!1), k = u(f), [A, j] = o({
|
|
36
|
-
prop: r,
|
|
37
|
-
defaultProp: i ?? !1,
|
|
38
|
-
onChange: a,
|
|
39
|
-
caller: N
|
|
40
|
-
}), [M, F] = o({
|
|
41
|
-
prop: s,
|
|
42
|
-
defaultProp: c,
|
|
43
|
-
onChange: d,
|
|
44
|
-
caller: N
|
|
45
|
-
}), I = E.useRef(null), L = b ? !!_ || !!b.closest("form") : !0, [R, B] = E.useState(/* @__PURE__ */ new Set()), H = l(), U = Array.from(R).map((e) => e.props.value).join(";"), W = E.useCallback((e) => {
|
|
46
|
-
B((t) => new Set(t).add(e));
|
|
47
|
-
}, []), G = E.useCallback((e) => {
|
|
48
|
-
B((t) => {
|
|
49
|
-
let n = new Set(t);
|
|
50
|
-
return n.delete(e), n;
|
|
51
|
-
});
|
|
52
|
-
}, []), K = {
|
|
53
|
-
required: g,
|
|
54
|
-
trigger: b,
|
|
55
|
-
onTriggerChange: x,
|
|
56
|
-
valueNode: S,
|
|
57
|
-
onValueNodeChange: w,
|
|
58
|
-
valueNodeHasChildren: T,
|
|
59
|
-
onValueNodeHasChildrenChange: D,
|
|
60
|
-
contentId: H,
|
|
61
|
-
value: M,
|
|
62
|
-
onValueChange: F,
|
|
63
|
-
open: A,
|
|
64
|
-
onOpenChange: j,
|
|
65
|
-
dir: k,
|
|
66
|
-
triggerPointerDownPosRef: I,
|
|
67
|
-
disabled: h,
|
|
68
|
-
name: p,
|
|
69
|
-
autoComplete: m,
|
|
70
|
-
form: _,
|
|
71
|
-
nativeOptions: R,
|
|
72
|
-
nativeSelectKey: U,
|
|
73
|
-
isFormControl: L
|
|
74
|
-
};
|
|
75
|
-
return /* @__PURE__ */ O(C, {
|
|
76
|
-
...y,
|
|
77
|
-
children: /* @__PURE__ */ O(ee, {
|
|
78
|
-
scope: t,
|
|
79
|
-
...K,
|
|
80
|
-
children: /* @__PURE__ */ O(P.Provider, {
|
|
81
|
-
scope: t,
|
|
82
|
-
children: /* @__PURE__ */ O(V, {
|
|
83
|
-
scope: t,
|
|
84
|
-
onNativeOptionAdd: W,
|
|
85
|
-
onNativeOptionRemove: G,
|
|
86
|
-
children: Ge(v) ? v(K) : n
|
|
87
|
-
})
|
|
88
|
-
})
|
|
89
|
-
})
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
W.displayName = U;
|
|
93
|
-
var G = (e) => {
|
|
94
|
-
let { __scopeSelect: t, children: n, ...r } = e;
|
|
95
|
-
return /* @__PURE__ */ O(W, {
|
|
96
|
-
__scopeSelect: t,
|
|
97
|
-
...r,
|
|
98
|
-
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ k(D, { children: [n, e ? /* @__PURE__ */ O(We, { __scopeSelect: t }) : null] })
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
G.displayName = N;
|
|
102
|
-
var K = "SelectTrigger", q = E.forwardRef((e, n) => {
|
|
103
|
-
let { __scopeSelect: r, disabled: a = !1, ...o } = e, c = z(r), l = B(K, r), u = l.disabled || a, d = t(n, l.onTriggerChange), f = F(r), p = E.useRef("touch"), [m, h, g] = qe((e) => {
|
|
104
|
-
let t = f().filter((e) => !e.disabled), n = Je(t, e, t.find((e) => e.value === l.value));
|
|
105
|
-
n !== void 0 && l.onValueChange(n.value);
|
|
106
|
-
}), _ = (e) => {
|
|
107
|
-
u || (l.onOpenChange(!0), g()), e && (l.triggerPointerDownPosRef.current = {
|
|
108
|
-
x: Math.round(e.pageX),
|
|
109
|
-
y: Math.round(e.pageY)
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
return /* @__PURE__ */ O(b, {
|
|
113
|
-
asChild: !0,
|
|
114
|
-
...c,
|
|
115
|
-
children: /* @__PURE__ */ O(s.button, {
|
|
116
|
-
type: "button",
|
|
117
|
-
role: "combobox",
|
|
118
|
-
"aria-controls": l.open ? l.contentId : void 0,
|
|
119
|
-
"aria-expanded": l.open,
|
|
120
|
-
"aria-required": l.required,
|
|
121
|
-
"aria-autocomplete": "none",
|
|
122
|
-
dir: l.dir,
|
|
123
|
-
"data-state": l.open ? "open" : "closed",
|
|
124
|
-
disabled: u,
|
|
125
|
-
"data-disabled": u ? "" : void 0,
|
|
126
|
-
"data-placeholder": Ke(l.value) ? "" : void 0,
|
|
127
|
-
...o,
|
|
128
|
-
ref: d,
|
|
129
|
-
onClick: i(o.onClick, (e) => {
|
|
130
|
-
e.currentTarget.focus(), p.current !== "mouse" && _(e);
|
|
131
|
-
}),
|
|
132
|
-
onPointerDown: i(o.onPointerDown, (e) => {
|
|
133
|
-
p.current = e.pointerType;
|
|
134
|
-
let t = e.target;
|
|
135
|
-
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (_(e), e.preventDefault());
|
|
136
|
-
}),
|
|
137
|
-
onKeyDown: i(o.onKeyDown, (e) => {
|
|
138
|
-
let t = m.current !== "";
|
|
139
|
-
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && h(e.key), !(t && e.key === " ") && j.includes(e.key) && (_(), e.preventDefault());
|
|
140
|
-
})
|
|
141
|
-
})
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
q.displayName = K;
|
|
145
|
-
var te = "SelectValue", ne = E.forwardRef((e, n) => {
|
|
146
|
-
let { __scopeSelect: r, className: i, style: o, children: c, placeholder: l = "", ...u } = e, d = B(te, r), { onValueNodeHasChildrenChange: f } = d, p = c !== void 0, m = t(n, d.onValueNodeChange);
|
|
147
|
-
a(() => {
|
|
148
|
-
f(p);
|
|
149
|
-
}, [f, p]);
|
|
150
|
-
let h = Ke(d.value);
|
|
151
|
-
return /* @__PURE__ */ O(s.span, {
|
|
152
|
-
...u,
|
|
153
|
-
asChild: h ? !1 : u.asChild,
|
|
154
|
-
ref: m,
|
|
155
|
-
style: { pointerEvents: "none" },
|
|
156
|
-
children: /* @__PURE__ */ O(E.Fragment, { children: h ? l : c }, h ? "placeholder" : "value")
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
ne.displayName = te;
|
|
160
|
-
var re = "SelectIcon", J = E.forwardRef((e, t) => {
|
|
161
|
-
let { __scopeSelect: n, children: r, ...i } = e;
|
|
162
|
-
return /* @__PURE__ */ O(s.span, {
|
|
163
|
-
"aria-hidden": !0,
|
|
164
|
-
...i,
|
|
165
|
-
ref: t,
|
|
166
|
-
children: r || "▼"
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
J.displayName = re;
|
|
170
|
-
var ie = "SelectPortal", [ae, oe] = L(ie, { forceMount: void 0 }), se = (e) => {
|
|
171
|
-
let { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
172
|
-
return /* @__PURE__ */ O(ae, {
|
|
173
|
-
scope: e.__scopeSelect,
|
|
174
|
-
forceMount: n,
|
|
175
|
-
children: /* @__PURE__ */ O(m, {
|
|
176
|
-
asChild: !0,
|
|
177
|
-
...r
|
|
178
|
-
})
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
se.displayName = ie;
|
|
182
|
-
var Y = "SelectContent", ce = E.forwardRef((e, t) => {
|
|
183
|
-
let n = oe(Y, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, o = B(Y, e.__scopeSelect), [s, l] = E.useState();
|
|
184
|
-
return a(() => {
|
|
185
|
-
l(new DocumentFragment());
|
|
186
|
-
}, []), /* @__PURE__ */ O(c, {
|
|
187
|
-
present: r || o.open,
|
|
188
|
-
children: ({ present: e }) => e ? /* @__PURE__ */ O(pe, {
|
|
189
|
-
...i,
|
|
190
|
-
ref: t
|
|
191
|
-
}) : /* @__PURE__ */ O(le, {
|
|
192
|
-
...i,
|
|
193
|
-
fragment: s
|
|
194
|
-
})
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
ce.displayName = Y;
|
|
198
|
-
var le = E.forwardRef((e, t) => {
|
|
199
|
-
let { __scopeSelect: n, children: r, fragment: i } = e;
|
|
200
|
-
return i ? A.createPortal(/* @__PURE__ */ O(ue, {
|
|
201
|
-
scope: n,
|
|
202
|
-
children: /* @__PURE__ */ O(P.Slot, {
|
|
203
|
-
scope: n,
|
|
204
|
-
children: /* @__PURE__ */ O("div", {
|
|
205
|
-
ref: t,
|
|
206
|
-
children: r
|
|
207
|
-
})
|
|
208
|
-
})
|
|
209
|
-
}), i) : null;
|
|
210
|
-
});
|
|
211
|
-
le.displayName = "SelectContentFragment";
|
|
212
|
-
var X = 10, [ue, Z] = L(Y), de = "SelectContentImpl", fe = n("SelectContent.RemoveScroll"), pe = E.forwardRef((e, n) => {
|
|
213
|
-
let { __scopeSelect: r } = e, { position: a = "item-aligned", onCloseAutoFocus: o, onEscapeKeyDown: s, onPointerDownOutside: c, side: l, sideOffset: u, align: d, alignOffset: m, arrowPadding: v, collisionBoundary: y, collisionPadding: b, sticky: x, hideWhenDetached: S, avoidCollisions: C, ...w } = e, T = B(Y, r), [D, k] = E.useState(null), [A, j] = E.useState(null), M = t(n, (e) => k(e)), [N, P] = E.useState(null), [I, L] = E.useState(null), R = F(r), [z, ee] = E.useState(!1), V = E.useRef(!1);
|
|
214
|
-
E.useEffect(() => {
|
|
215
|
-
if (D) return _(D);
|
|
216
|
-
}, [D]), h();
|
|
217
|
-
let H = E.useCallback((e) => {
|
|
218
|
-
let [t, ...n] = R().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
|
|
219
|
-
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && A && (A.scrollTop = 0), n === r && A && (A.scrollTop = A.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
220
|
-
}, [R, A]), U = E.useCallback(() => H([N, D]), [
|
|
221
|
-
H,
|
|
222
|
-
N,
|
|
223
|
-
D
|
|
224
|
-
]);
|
|
225
|
-
E.useEffect(() => {
|
|
226
|
-
z && U();
|
|
227
|
-
}, [z, U]);
|
|
228
|
-
let { onOpenChange: W, triggerPointerDownPosRef: G } = T;
|
|
229
|
-
E.useEffect(() => {
|
|
230
|
-
if (D) {
|
|
231
|
-
let e = {
|
|
232
|
-
x: 0,
|
|
233
|
-
y: 0
|
|
234
|
-
}, t = (t) => {
|
|
235
|
-
e = {
|
|
236
|
-
x: Math.abs(Math.round(t.pageX) - (G.current?.x ?? 0)),
|
|
237
|
-
y: Math.abs(Math.round(t.pageY) - (G.current?.y ?? 0))
|
|
238
|
-
};
|
|
239
|
-
}, n = (n) => {
|
|
240
|
-
e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(D) || W(!1), document.removeEventListener("pointermove", t), G.current = null;
|
|
241
|
-
};
|
|
242
|
-
return G.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
|
|
243
|
-
capture: !0,
|
|
244
|
-
once: !0
|
|
245
|
-
})), () => {
|
|
246
|
-
document.removeEventListener("pointermove", t), document.removeEventListener("pointerup", n, { capture: !0 });
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
}, [
|
|
250
|
-
D,
|
|
251
|
-
W,
|
|
252
|
-
G
|
|
253
|
-
]), E.useEffect(() => {
|
|
254
|
-
let e = () => W(!1);
|
|
255
|
-
return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
|
|
256
|
-
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
|
|
257
|
-
};
|
|
258
|
-
}, [W]);
|
|
259
|
-
let [K, q] = qe((e) => {
|
|
260
|
-
let t = R().filter((e) => !e.disabled), n = Je(t, e, t.find((e) => e.ref.current === document.activeElement));
|
|
261
|
-
n && setTimeout(() => n.ref.current.focus());
|
|
262
|
-
}), te = E.useCallback((e, t, n) => {
|
|
263
|
-
let r = !V.current && !n;
|
|
264
|
-
(T.value !== void 0 && T.value === t || r) && (P(e), r && (V.current = !0));
|
|
265
|
-
}, [T.value]), ne = E.useCallback(() => D?.focus(), [D]), re = E.useCallback((e, t, n) => {
|
|
266
|
-
let r = !V.current && !n;
|
|
267
|
-
(T.value !== void 0 && T.value === t || r) && L(e);
|
|
268
|
-
}, [T.value]), J = a === "popper" ? _e : he, ie = J === _e ? {
|
|
269
|
-
side: l,
|
|
270
|
-
sideOffset: u,
|
|
271
|
-
align: d,
|
|
272
|
-
alignOffset: m,
|
|
273
|
-
arrowPadding: v,
|
|
274
|
-
collisionBoundary: y,
|
|
275
|
-
collisionPadding: b,
|
|
276
|
-
sticky: x,
|
|
277
|
-
hideWhenDetached: S,
|
|
278
|
-
avoidCollisions: C
|
|
279
|
-
} : {};
|
|
280
|
-
return /* @__PURE__ */ O(ue, {
|
|
281
|
-
scope: r,
|
|
282
|
-
content: D,
|
|
283
|
-
viewport: A,
|
|
284
|
-
onViewportChange: j,
|
|
285
|
-
itemRefCallback: te,
|
|
286
|
-
selectedItem: N,
|
|
287
|
-
onItemLeave: ne,
|
|
288
|
-
itemTextRefCallback: re,
|
|
289
|
-
focusSelectedItem: U,
|
|
290
|
-
selectedItemText: I,
|
|
291
|
-
position: a,
|
|
292
|
-
isPositioned: z,
|
|
293
|
-
searchRef: K,
|
|
294
|
-
children: /* @__PURE__ */ O(g, {
|
|
295
|
-
as: fe,
|
|
296
|
-
allowPinchZoom: !0,
|
|
297
|
-
children: /* @__PURE__ */ O(p, {
|
|
298
|
-
asChild: !0,
|
|
299
|
-
trapped: T.open,
|
|
300
|
-
onMountAutoFocus: (e) => {
|
|
301
|
-
e.preventDefault();
|
|
302
|
-
},
|
|
303
|
-
onUnmountAutoFocus: i(o, (e) => {
|
|
304
|
-
T.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
|
|
305
|
-
}),
|
|
306
|
-
children: /* @__PURE__ */ O(f, {
|
|
307
|
-
asChild: !0,
|
|
308
|
-
disableOutsidePointerEvents: !0,
|
|
309
|
-
onEscapeKeyDown: s,
|
|
310
|
-
onPointerDownOutside: c,
|
|
311
|
-
onFocusOutside: (e) => e.preventDefault(),
|
|
312
|
-
onDismiss: () => T.onOpenChange(!1),
|
|
313
|
-
children: /* @__PURE__ */ O(J, {
|
|
314
|
-
role: "listbox",
|
|
315
|
-
id: T.contentId,
|
|
316
|
-
"data-state": T.open ? "open" : "closed",
|
|
317
|
-
dir: T.dir,
|
|
318
|
-
onContextMenu: (e) => e.preventDefault(),
|
|
319
|
-
...w,
|
|
320
|
-
...ie,
|
|
321
|
-
onPlaced: () => ee(!0),
|
|
322
|
-
ref: M,
|
|
323
|
-
style: {
|
|
324
|
-
display: "flex",
|
|
325
|
-
flexDirection: "column",
|
|
326
|
-
outline: "none",
|
|
327
|
-
...w.style
|
|
328
|
-
},
|
|
329
|
-
onKeyDown: i(w.onKeyDown, (e) => {
|
|
330
|
-
let t = e.ctrlKey || e.altKey || e.metaKey;
|
|
331
|
-
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && q(e.key), [
|
|
332
|
-
"ArrowUp",
|
|
333
|
-
"ArrowDown",
|
|
334
|
-
"Home",
|
|
335
|
-
"End"
|
|
336
|
-
].includes(e.key)) {
|
|
337
|
-
let t = R().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
338
|
-
if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
339
|
-
let n = e.target, r = t.indexOf(n);
|
|
340
|
-
t = t.slice(r + 1);
|
|
341
|
-
}
|
|
342
|
-
setTimeout(() => H(t)), e.preventDefault();
|
|
343
|
-
}
|
|
344
|
-
})
|
|
345
|
-
})
|
|
346
|
-
})
|
|
347
|
-
})
|
|
348
|
-
})
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
pe.displayName = de;
|
|
352
|
-
var me = "SelectItemAlignedPosition", he = E.forwardRef((e, n) => {
|
|
353
|
-
let { __scopeSelect: r, onPlaced: i, ...o } = e, c = B(Y, r), l = Z(Y, r), [u, d] = E.useState(null), [f, p] = E.useState(null), m = t(n, (e) => p(e)), h = F(r), g = E.useRef(!1), _ = E.useRef(!0), { viewport: v, selectedItem: y, selectedItemText: b, focusSelectedItem: x } = l, S = E.useCallback(() => {
|
|
354
|
-
if (c.trigger && c.valueNode && u && f && v && y && b) {
|
|
355
|
-
let e = c.trigger.getBoundingClientRect(), t = f.getBoundingClientRect(), n = c.valueNode.getBoundingClientRect(), r = b.getBoundingClientRect();
|
|
356
|
-
if (c.dir !== "rtl") {
|
|
357
|
-
let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - X, d = T(a, [X, Math.max(X, l - c)]);
|
|
358
|
-
u.style.minWidth = s + "px", u.style.left = d + "px";
|
|
359
|
-
} else {
|
|
360
|
-
let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - X, d = T(a, [X, Math.max(X, l - c)]);
|
|
361
|
-
u.style.minWidth = s + "px", u.style.right = d + "px";
|
|
362
|
-
}
|
|
363
|
-
let a = h(), o = window.innerHeight - X * 2, s = v.scrollHeight, l = window.getComputedStyle(f), d = parseInt(l.borderTopWidth, 10), p = parseInt(l.paddingTop, 10), m = parseInt(l.borderBottomWidth, 10), _ = parseInt(l.paddingBottom, 10), x = d + p + s + _ + m, S = Math.min(y.offsetHeight * 5, x), C = window.getComputedStyle(v), w = parseInt(C.paddingTop, 10), E = parseInt(C.paddingBottom, 10), D = e.top + e.height / 2 - X, O = o - D, k = y.offsetHeight / 2, A = y.offsetTop + k, j = d + p + A, M = x - j;
|
|
364
|
-
if (j <= D) {
|
|
365
|
-
let e = a.length > 0 && y === a[a.length - 1].ref.current;
|
|
366
|
-
u.style.bottom = "0px";
|
|
367
|
-
let t = f.clientHeight - v.offsetTop - v.offsetHeight, n = j + Math.max(O, k + (e ? E : 0) + t + m);
|
|
368
|
-
u.style.height = n + "px";
|
|
369
|
-
} else {
|
|
370
|
-
let e = a.length > 0 && y === a[0].ref.current;
|
|
371
|
-
u.style.top = "0px";
|
|
372
|
-
let t = Math.max(D, d + v.offsetTop + (e ? w : 0) + k) + M;
|
|
373
|
-
u.style.height = t + "px", v.scrollTop = j - D + v.offsetTop;
|
|
374
|
-
}
|
|
375
|
-
u.style.margin = `${X}px 0`, u.style.minHeight = S + "px", u.style.maxHeight = o + "px", i?.(), requestAnimationFrame(() => g.current = !0);
|
|
376
|
-
}
|
|
377
|
-
}, [
|
|
378
|
-
h,
|
|
379
|
-
c.trigger,
|
|
380
|
-
c.valueNode,
|
|
381
|
-
u,
|
|
382
|
-
f,
|
|
383
|
-
v,
|
|
384
|
-
y,
|
|
385
|
-
b,
|
|
386
|
-
c.dir,
|
|
387
|
-
i
|
|
388
|
-
]);
|
|
389
|
-
a(() => S(), [S]);
|
|
390
|
-
let [C, w] = E.useState();
|
|
391
|
-
return a(() => {
|
|
392
|
-
f && w(window.getComputedStyle(f).zIndex);
|
|
393
|
-
}, [f]), /* @__PURE__ */ O(ve, {
|
|
394
|
-
scope: r,
|
|
395
|
-
contentWrapper: u,
|
|
396
|
-
shouldExpandOnScrollRef: g,
|
|
397
|
-
onScrollButtonChange: E.useCallback((e) => {
|
|
398
|
-
e && _.current === !0 && (S(), x?.(), _.current = !1);
|
|
399
|
-
}, [S, x]),
|
|
400
|
-
children: /* @__PURE__ */ O("div", {
|
|
401
|
-
ref: d,
|
|
402
|
-
style: {
|
|
403
|
-
display: "flex",
|
|
404
|
-
flexDirection: "column",
|
|
405
|
-
position: "fixed",
|
|
406
|
-
zIndex: C
|
|
407
|
-
},
|
|
408
|
-
children: /* @__PURE__ */ O(s.div, {
|
|
409
|
-
...o,
|
|
410
|
-
ref: m,
|
|
411
|
-
style: {
|
|
412
|
-
boxSizing: "border-box",
|
|
413
|
-
maxHeight: "100%",
|
|
414
|
-
...o.style
|
|
415
|
-
}
|
|
416
|
-
})
|
|
417
|
-
})
|
|
418
|
-
});
|
|
419
|
-
});
|
|
420
|
-
he.displayName = me;
|
|
421
|
-
var ge = "SelectPopperPosition", _e = E.forwardRef((e, t) => {
|
|
422
|
-
let { __scopeSelect: n, align: r = "start", collisionPadding: i = X, ...a } = e;
|
|
423
|
-
return /* @__PURE__ */ O(S, {
|
|
424
|
-
...z(n),
|
|
425
|
-
...a,
|
|
426
|
-
ref: t,
|
|
427
|
-
align: r,
|
|
428
|
-
collisionPadding: i,
|
|
429
|
-
style: {
|
|
430
|
-
boxSizing: "border-box",
|
|
431
|
-
...a.style,
|
|
432
|
-
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
433
|
-
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
|
|
434
|
-
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
|
|
435
|
-
"--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
|
|
436
|
-
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
_e.displayName = ge;
|
|
441
|
-
var [ve, ye] = L(Y, {}), be = "SelectViewport", xe = E.forwardRef((e, n) => {
|
|
442
|
-
let { __scopeSelect: r, nonce: a, ...o } = e, c = Z(be, r), l = ye(be, r), u = t(n, c.onViewportChange), d = E.useRef(0);
|
|
443
|
-
return /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("style", {
|
|
444
|
-
dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
|
|
445
|
-
nonce: a
|
|
446
|
-
}), /* @__PURE__ */ O(P.Slot, {
|
|
447
|
-
scope: r,
|
|
448
|
-
children: /* @__PURE__ */ O(s.div, {
|
|
449
|
-
"data-radix-select-viewport": "",
|
|
450
|
-
role: "presentation",
|
|
451
|
-
...o,
|
|
452
|
-
ref: u,
|
|
453
|
-
style: {
|
|
454
|
-
position: "relative",
|
|
455
|
-
flex: 1,
|
|
456
|
-
overflow: "hidden auto",
|
|
457
|
-
...o.style
|
|
458
|
-
},
|
|
459
|
-
onScroll: i(o.onScroll, (e) => {
|
|
460
|
-
let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = l;
|
|
461
|
-
if (r?.current && n) {
|
|
462
|
-
let e = Math.abs(d.current - t.scrollTop);
|
|
463
|
-
if (e > 0) {
|
|
464
|
-
let r = window.innerHeight - X * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
|
|
465
|
-
if (o < r) {
|
|
466
|
-
let i = o + e, a = Math.min(r, i), s = i - a;
|
|
467
|
-
n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
d.current = t.scrollTop;
|
|
472
|
-
})
|
|
473
|
-
})
|
|
474
|
-
})] });
|
|
475
|
-
});
|
|
476
|
-
xe.displayName = be;
|
|
477
|
-
var Se = "SelectGroup", [Ce, we] = L(Se), Te = E.forwardRef((e, t) => {
|
|
478
|
-
let { __scopeSelect: n, ...r } = e, i = l();
|
|
479
|
-
return /* @__PURE__ */ O(Ce, {
|
|
480
|
-
scope: n,
|
|
481
|
-
id: i,
|
|
482
|
-
children: /* @__PURE__ */ O(s.div, {
|
|
483
|
-
role: "group",
|
|
484
|
-
"aria-labelledby": i,
|
|
485
|
-
...r,
|
|
486
|
-
ref: t
|
|
487
|
-
})
|
|
488
|
-
});
|
|
489
|
-
});
|
|
490
|
-
Te.displayName = Se;
|
|
491
|
-
var Ee = "SelectLabel", De = E.forwardRef((e, t) => {
|
|
492
|
-
let { __scopeSelect: n, ...r } = e, i = we(Ee, n);
|
|
493
|
-
return /* @__PURE__ */ O(s.div, {
|
|
494
|
-
id: i.id,
|
|
495
|
-
...r,
|
|
496
|
-
ref: t
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
|
-
De.displayName = Ee;
|
|
500
|
-
var Q = "SelectItem", [Oe, ke] = L(Q), Ae = E.forwardRef((e, n) => {
|
|
501
|
-
let { __scopeSelect: r, value: a, disabled: o = !1, textValue: c, ...u } = e, d = B(Q, r), f = Z(Q, r), p = d.value === a, [m, h] = E.useState(c ?? ""), [g, _] = E.useState(!1), v = t(n, (e) => f.itemRefCallback?.(e, a, o)), y = l(), b = E.useRef("touch"), x = () => {
|
|
502
|
-
o || (d.onValueChange(a), d.onOpenChange(!1));
|
|
503
|
-
};
|
|
504
|
-
if (a === "") throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
505
|
-
return /* @__PURE__ */ O(Oe, {
|
|
506
|
-
scope: r,
|
|
507
|
-
value: a,
|
|
508
|
-
disabled: o,
|
|
509
|
-
textId: y,
|
|
510
|
-
isSelected: p,
|
|
511
|
-
onItemTextChange: E.useCallback((e) => {
|
|
512
|
-
h((t) => t || (e?.textContent ?? "").trim());
|
|
513
|
-
}, []),
|
|
514
|
-
children: /* @__PURE__ */ O(P.ItemSlot, {
|
|
515
|
-
scope: r,
|
|
516
|
-
value: a,
|
|
517
|
-
disabled: o,
|
|
518
|
-
textValue: m,
|
|
519
|
-
children: /* @__PURE__ */ O(s.div, {
|
|
520
|
-
role: "option",
|
|
521
|
-
"aria-labelledby": y,
|
|
522
|
-
"data-highlighted": g ? "" : void 0,
|
|
523
|
-
"aria-selected": p && g,
|
|
524
|
-
"data-state": p ? "checked" : "unchecked",
|
|
525
|
-
"aria-disabled": o || void 0,
|
|
526
|
-
"data-disabled": o ? "" : void 0,
|
|
527
|
-
tabIndex: o ? void 0 : -1,
|
|
528
|
-
...u,
|
|
529
|
-
ref: v,
|
|
530
|
-
onFocus: i(u.onFocus, () => _(!0)),
|
|
531
|
-
onBlur: i(u.onBlur, () => _(!1)),
|
|
532
|
-
onClick: i(u.onClick, () => {
|
|
533
|
-
b.current !== "mouse" && x();
|
|
534
|
-
}),
|
|
535
|
-
onPointerUp: i(u.onPointerUp, () => {
|
|
536
|
-
b.current === "mouse" && x();
|
|
537
|
-
}),
|
|
538
|
-
onPointerDown: i(u.onPointerDown, (e) => {
|
|
539
|
-
b.current = e.pointerType;
|
|
540
|
-
}),
|
|
541
|
-
onPointerMove: i(u.onPointerMove, (e) => {
|
|
542
|
-
b.current = e.pointerType, o ? f.onItemLeave?.() : b.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
|
|
543
|
-
}),
|
|
544
|
-
onPointerLeave: i(u.onPointerLeave, (e) => {
|
|
545
|
-
e.currentTarget === document.activeElement && f.onItemLeave?.();
|
|
546
|
-
}),
|
|
547
|
-
onKeyDown: i(u.onKeyDown, (e) => {
|
|
548
|
-
f.searchRef?.current !== "" && e.key === " " || (M.includes(e.key) && x(), e.key === " " && e.preventDefault());
|
|
549
|
-
})
|
|
550
|
-
})
|
|
551
|
-
})
|
|
552
|
-
});
|
|
553
|
-
});
|
|
554
|
-
Ae.displayName = Q;
|
|
555
|
-
var $ = "SelectItemText", je = E.forwardRef((e, n) => {
|
|
556
|
-
let { __scopeSelect: r, className: i, style: o, ...c } = e, l = B($, r), u = Z($, r), d = ke($, r), f = H($, r), [p, m] = E.useState(null), h = t(n, (e) => m(e), d.onItemTextChange, (e) => u.itemTextRefCallback?.(e, d.value, d.disabled)), g = p?.textContent, _ = E.useMemo(() => /* @__PURE__ */ O("option", {
|
|
557
|
-
value: d.value,
|
|
558
|
-
disabled: d.disabled,
|
|
559
|
-
children: g
|
|
560
|
-
}, d.value), [
|
|
561
|
-
d.disabled,
|
|
562
|
-
d.value,
|
|
563
|
-
g
|
|
564
|
-
]), { onNativeOptionAdd: v, onNativeOptionRemove: y } = f;
|
|
565
|
-
return a(() => (v(_), () => y(_)), [
|
|
566
|
-
v,
|
|
567
|
-
y,
|
|
568
|
-
_
|
|
569
|
-
]), /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(s.span, {
|
|
570
|
-
id: d.textId,
|
|
571
|
-
...c,
|
|
572
|
-
ref: h
|
|
573
|
-
}), d.isSelected && l.valueNode && !l.valueNodeHasChildren ? A.createPortal(c.children, l.valueNode) : null] });
|
|
574
|
-
});
|
|
575
|
-
je.displayName = $;
|
|
576
|
-
var Me = "SelectItemIndicator", Ne = E.forwardRef((e, t) => {
|
|
577
|
-
let { __scopeSelect: n, ...r } = e;
|
|
578
|
-
return ke(Me, n).isSelected ? /* @__PURE__ */ O(s.span, {
|
|
579
|
-
"aria-hidden": !0,
|
|
580
|
-
...r,
|
|
581
|
-
ref: t
|
|
582
|
-
}) : null;
|
|
583
|
-
});
|
|
584
|
-
Ne.displayName = Me;
|
|
585
|
-
var Pe = "SelectScrollUpButton", Fe = E.forwardRef((e, n) => {
|
|
586
|
-
let r = Z(Pe, e.__scopeSelect), i = ye(Pe, e.__scopeSelect), [o, s] = E.useState(!1), c = t(n, i.onScrollButtonChange);
|
|
587
|
-
return a(() => {
|
|
588
|
-
if (r.viewport && r.isPositioned) {
|
|
589
|
-
let e = function() {
|
|
590
|
-
s(t.scrollTop > 0);
|
|
591
|
-
}, t = r.viewport;
|
|
592
|
-
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
593
|
-
}
|
|
594
|
-
}, [r.viewport, r.isPositioned]), o ? /* @__PURE__ */ O(Re, {
|
|
595
|
-
...e,
|
|
596
|
-
ref: c,
|
|
597
|
-
onAutoScroll: () => {
|
|
598
|
-
let { viewport: e, selectedItem: t } = r;
|
|
599
|
-
e && t && (e.scrollTop -= t.offsetHeight);
|
|
600
|
-
}
|
|
601
|
-
}) : null;
|
|
602
|
-
});
|
|
603
|
-
Fe.displayName = Pe;
|
|
604
|
-
var Ie = "SelectScrollDownButton", Le = E.forwardRef((e, n) => {
|
|
605
|
-
let r = Z(Ie, e.__scopeSelect), i = ye(Ie, e.__scopeSelect), [o, s] = E.useState(!1), c = t(n, i.onScrollButtonChange);
|
|
606
|
-
return a(() => {
|
|
607
|
-
if (r.viewport && r.isPositioned) {
|
|
608
|
-
let e = function() {
|
|
609
|
-
let e = t.scrollHeight - t.clientHeight;
|
|
610
|
-
s(Math.ceil(t.scrollTop) < e);
|
|
611
|
-
}, t = r.viewport;
|
|
612
|
-
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
613
|
-
}
|
|
614
|
-
}, [r.viewport, r.isPositioned]), o ? /* @__PURE__ */ O(Re, {
|
|
615
|
-
...e,
|
|
616
|
-
ref: c,
|
|
617
|
-
onAutoScroll: () => {
|
|
618
|
-
let { viewport: e, selectedItem: t } = r;
|
|
619
|
-
e && t && (e.scrollTop += t.offsetHeight);
|
|
620
|
-
}
|
|
621
|
-
}) : null;
|
|
622
|
-
});
|
|
623
|
-
Le.displayName = Ie;
|
|
624
|
-
var Re = E.forwardRef((e, t) => {
|
|
625
|
-
let { __scopeSelect: n, onAutoScroll: r, ...o } = e, c = Z("SelectScrollButton", n), l = E.useRef(null), u = F(n), d = E.useCallback(() => {
|
|
626
|
-
l.current !== null && (window.clearInterval(l.current), l.current = null);
|
|
627
|
-
}, []);
|
|
628
|
-
return E.useEffect(() => () => d(), [d]), a(() => {
|
|
629
|
-
u().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
630
|
-
}, [u]), /* @__PURE__ */ O(s.div, {
|
|
631
|
-
"aria-hidden": !0,
|
|
632
|
-
...o,
|
|
633
|
-
ref: t,
|
|
634
|
-
style: {
|
|
635
|
-
flexShrink: 0,
|
|
636
|
-
...o.style
|
|
637
|
-
},
|
|
638
|
-
onPointerDown: i(o.onPointerDown, () => {
|
|
639
|
-
l.current === null && (l.current = window.setInterval(r, 50));
|
|
640
|
-
}),
|
|
641
|
-
onPointerMove: i(o.onPointerMove, () => {
|
|
642
|
-
c.onItemLeave?.(), l.current === null && (l.current = window.setInterval(r, 50));
|
|
643
|
-
}),
|
|
644
|
-
onPointerLeave: i(o.onPointerLeave, () => {
|
|
645
|
-
d();
|
|
646
|
-
})
|
|
647
|
-
});
|
|
648
|
-
}), ze = "SelectSeparator", Be = E.forwardRef((e, t) => {
|
|
649
|
-
let { __scopeSelect: n, ...r } = e;
|
|
650
|
-
return /* @__PURE__ */ O(s.div, {
|
|
651
|
-
"aria-hidden": !0,
|
|
652
|
-
...r,
|
|
653
|
-
ref: t
|
|
654
|
-
});
|
|
655
|
-
});
|
|
656
|
-
Be.displayName = ze;
|
|
657
|
-
var Ve = "SelectArrow", He = E.forwardRef((e, t) => {
|
|
658
|
-
let { __scopeSelect: n, ...r } = e, i = z(n);
|
|
659
|
-
return Z(Ve, n).position === "popper" ? /* @__PURE__ */ O(x, {
|
|
660
|
-
...i,
|
|
661
|
-
...r,
|
|
662
|
-
ref: t
|
|
663
|
-
}) : null;
|
|
664
|
-
});
|
|
665
|
-
He.displayName = Ve;
|
|
666
|
-
var Ue = "SelectBubbleInput", We = E.forwardRef(({ __scopeSelect: e, ...n }, r) => {
|
|
667
|
-
let i = B(Ue, e), { value: a, onValueChange: o, required: c, disabled: l, name: u, autoComplete: d, form: f } = i, { nativeOptions: p, nativeSelectKey: m } = i, h = E.useRef(null), g = t(r, h), _ = a ?? "", b = y(_);
|
|
668
|
-
return E.useEffect(() => {
|
|
669
|
-
let e = h.current;
|
|
670
|
-
if (!e) return;
|
|
671
|
-
let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set;
|
|
672
|
-
if (b !== _ && n) {
|
|
673
|
-
let t = new Event("change", { bubbles: !0 });
|
|
674
|
-
n.call(e, _), e.dispatchEvent(t);
|
|
675
|
-
}
|
|
676
|
-
}, [b, _]), /* @__PURE__ */ k(s.select, {
|
|
677
|
-
"aria-hidden": !0,
|
|
678
|
-
required: c,
|
|
679
|
-
tabIndex: -1,
|
|
680
|
-
name: u,
|
|
681
|
-
autoComplete: d,
|
|
682
|
-
disabled: l,
|
|
683
|
-
form: f,
|
|
684
|
-
onChange: (e) => o(e.target.value),
|
|
685
|
-
...n,
|
|
686
|
-
style: {
|
|
687
|
-
...v,
|
|
688
|
-
...n.style
|
|
689
|
-
},
|
|
690
|
-
ref: g,
|
|
691
|
-
defaultValue: _,
|
|
692
|
-
children: [Ke(a) ? /* @__PURE__ */ O("option", { value: "" }) : null, Array.from(p)]
|
|
693
|
-
}, m);
|
|
694
|
-
});
|
|
695
|
-
We.displayName = Ue;
|
|
696
|
-
function Ge(e) {
|
|
697
|
-
return typeof e == "function";
|
|
698
|
-
}
|
|
699
|
-
function Ke(e) {
|
|
700
|
-
return e === "" || e === void 0;
|
|
701
|
-
}
|
|
702
|
-
function qe(e) {
|
|
703
|
-
let t = d(e), n = E.useRef(""), r = E.useRef(0), i = E.useCallback((e) => {
|
|
704
|
-
let i = n.current + e;
|
|
705
|
-
t(i), (function e(t) {
|
|
706
|
-
n.current = t, window.clearTimeout(r.current), t !== "" && (r.current = window.setTimeout(() => e(""), 1e3));
|
|
707
|
-
})(i);
|
|
708
|
-
}, [t]), a = E.useCallback(() => {
|
|
709
|
-
n.current = "", window.clearTimeout(r.current);
|
|
710
|
-
}, []);
|
|
711
|
-
return E.useEffect(() => () => window.clearTimeout(r.current), []), [
|
|
712
|
-
n,
|
|
713
|
-
i,
|
|
714
|
-
a
|
|
715
|
-
];
|
|
716
|
-
}
|
|
717
|
-
function Je(e, t, n) {
|
|
718
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Ye(e, Math.max(i, 0));
|
|
719
|
-
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
720
|
-
let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
|
|
721
|
-
return o === n ? void 0 : o;
|
|
722
|
-
}
|
|
723
|
-
function Ye(e, t) {
|
|
724
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
725
|
-
}
|
|
726
|
-
//#endregion
|
|
727
|
-
export { G as Select, ce as SelectContent, Te as SelectGroup, J as SelectIcon, Ae as SelectItem, Ne as SelectItemIndicator, je as SelectItemText, De as SelectLabel, se as SelectPortal, Le as SelectScrollDownButton, Fe as SelectScrollUpButton, Be as SelectSeparator, q as SelectTrigger, ne as SelectValue, xe as SelectViewport };
|