@inspirare/design-system 0.0.20 → 0.0.22

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.
Files changed (157) hide show
  1. package/dist/components/ui/accordion.js +44 -0
  2. package/dist/components/ui/alert-dialog.js +61 -0
  3. package/dist/{src/components → components}/ui/alert.js +10 -10
  4. package/dist/components/ui/aspect-ratio.js +6 -0
  5. package/dist/components/ui/avatar.js +29 -0
  6. package/dist/{src/components → components}/ui/badge.js +6 -6
  7. package/dist/components/ui/breadcrumb.js +60 -0
  8. package/dist/components/ui/button-group.js +38 -0
  9. package/dist/{src/components → components}/ui/button.js +6 -6
  10. package/dist/{src/components → components}/ui/calendar.js +16 -16
  11. package/dist/{src/components → components}/ui/carousel.js +29 -29
  12. package/dist/{src/components → components}/ui/checkbox.js +10 -10
  13. package/dist/components/ui/collapsible.js +26 -0
  14. package/dist/{src/components → components}/ui/combobox.js +10 -10
  15. package/dist/{src/components → components}/ui/command.js +17 -17
  16. package/dist/{src/components → components}/ui/context-menu.js +37 -37
  17. package/dist/{src/components → components}/ui/dialog.js +36 -36
  18. package/dist/{src/components → components}/ui/dropdown-menu.js +46 -46
  19. package/dist/{src/components → components}/ui/empty.js +21 -21
  20. package/dist/{src/components → components}/ui/field.js +27 -27
  21. package/dist/components/ui/form.js +77 -0
  22. package/dist/{src/components → components}/ui/hover-card.js +14 -14
  23. package/dist/{src/components → components}/ui/input-group.js +18 -18
  24. package/dist/{src/components → components}/ui/input-otp.js +13 -13
  25. package/dist/components/ui/item.js +116 -0
  26. package/dist/{src/components → components}/ui/label.js +3 -3
  27. package/dist/components/ui/menubar.js +105 -0
  28. package/dist/components/ui/navigation-menu.js +58 -0
  29. package/dist/{src/components → components}/ui/pagination.js +18 -18
  30. package/dist/components/ui/popover.js +36 -0
  31. package/dist/components/ui/progress.js +20 -0
  32. package/dist/{src/components → components}/ui/radio-group.js +14 -14
  33. package/dist/{src/components → components}/ui/resizable.js +7 -7
  34. package/dist/{src/components → components}/ui/select.js +44 -44
  35. package/dist/{src/components → components}/ui/separator.js +3 -3
  36. package/dist/{src/components → components}/ui/sheet.js +35 -35
  37. package/dist/{src/components → components}/ui/sidebar.js +124 -124
  38. package/dist/{src/components → components}/ui/slider.js +20 -20
  39. package/dist/{src/components → components}/ui/spinner.js +3 -3
  40. package/dist/{src/components → components}/ui/switch.js +9 -9
  41. package/dist/{src/components → components}/ui/tabs.js +19 -19
  42. package/dist/{src/components → components}/ui/theme-toggle.js +10 -10
  43. package/dist/components/ui/toggle-group.js +44 -0
  44. package/dist/{src/components → components}/ui/toggle.js +7 -7
  45. package/dist/components/ui/tooltip.js +37 -0
  46. package/dist/index.css +1 -1
  47. package/package.json +1 -1
  48. package/src/index.css +37 -16
  49. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -359
  50. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -328
  51. 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
  52. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
  53. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -106
  54. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +0 -6
  55. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +0 -8
  56. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +0 -195
  57. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -119
  58. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +0 -20
  59. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -31
  60. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +0 -73
  61. package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -158
  62. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -97
  63. package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +0 -62
  64. package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
  65. package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -240
  66. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  67. package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +0 -225
  68. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
  69. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -108
  70. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -225
  71. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -22
  72. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -146
  73. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -161
  74. 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
  75. package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +0 -16
  76. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +0 -563
  77. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +0 -312
  78. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -553
  79. package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +0 -199
  80. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +0 -203
  81. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
  82. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +0 -85
  83. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +0 -41
  84. package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +0 -71
  85. package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -249
  86. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -154
  87. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +0 -727
  88. package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +0 -23
  89. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +0 -404
  90. 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
  91. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +0 -138
  92. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +0 -120
  93. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -125
  94. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +0 -30
  95. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -351
  96. package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  97. package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -45
  98. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  99. 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
  100. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -5
  101. package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
  102. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +0 -29
  103. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -27
  104. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -46
  105. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -33
  106. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
  107. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -70
  108. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -4
  109. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
  110. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  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/medium.js +0 -5
  117. 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
  118. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  119. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  120. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
  121. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -28
  122. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -19
  123. 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
  124. 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
  125. 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
  126. 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
  127. 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
  128. package/dist/src/components/ui/accordion.js +0 -44
  129. package/dist/src/components/ui/alert-dialog.js +0 -61
  130. package/dist/src/components/ui/aspect-ratio.js +0 -6
  131. package/dist/src/components/ui/avatar.js +0 -29
  132. package/dist/src/components/ui/breadcrumb.js +0 -60
  133. package/dist/src/components/ui/button-group.js +0 -38
  134. package/dist/src/components/ui/collapsible.js +0 -26
  135. package/dist/src/components/ui/form.js +0 -76
  136. package/dist/src/components/ui/item.js +0 -116
  137. package/dist/src/components/ui/menubar.js +0 -105
  138. package/dist/src/components/ui/navigation-menu.js +0 -58
  139. package/dist/src/components/ui/popover.js +0 -36
  140. package/dist/src/components/ui/progress.js +0 -20
  141. package/dist/src/components/ui/toggle-group.js +0 -44
  142. package/dist/src/components/ui/tooltip.js +0 -37
  143. /package/dist/{src/components → components}/ui/accessibility-improvements.js +0 -0
  144. /package/dist/{src/components → components}/ui/card.js +0 -0
  145. /package/dist/{src/components → components}/ui/chart.js +0 -0
  146. /package/dist/{src/components → components}/ui/color-picker.js +0 -0
  147. /package/dist/{src/components → components}/ui/drawer.js +0 -0
  148. /package/dist/{src/components → components}/ui/input.js +0 -0
  149. /package/dist/{src/components → components}/ui/kbd.js +0 -0
  150. /package/dist/{src/components → components}/ui/scroll-area.js +0 -0
  151. /package/dist/{src/components → components}/ui/skeleton.js +0 -0
  152. /package/dist/{src/components → components}/ui/sonner.js +0 -0
  153. /package/dist/{src/components → components}/ui/table.js +0 -0
  154. /package/dist/{src/components → components}/ui/textarea.js +0 -0
  155. /package/dist/{src/hooks → hooks}/use-mobile.js +0 -0
  156. /package/dist/{src/index.js → index.js} +0 -0
  157. /package/dist/{src/lib → lib}/utils.js +0 -0
@@ -1,225 +0,0 @@
1
- "use client";
2
- import { createContext2 as e, createContextScope as t } from "../../../../../@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js";
3
- import { useComposedRefs as n } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
4
- import { createSlot as r } 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 { composeEventHandlers as i } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
6
- import { useControllableState as a } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
7
- import { Primitive as o } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
8
- import { Presence as s } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
9
- import { useId as c } 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";
10
- import { DismissableLayer as l } from "../../../../../@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js";
11
- import { FocusScope as u } from "../../../../../@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js";
12
- import { Portal as d } from "../../../../../@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js";
13
- import { useFocusGuards as f } from "../../../../../@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js";
14
- import p 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";
15
- import { hideOthers as m } from "../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js";
16
- import * as h from "react";
17
- import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
18
- //#region node_modules/.pnpm/@radix-ui+react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.mjs
19
- var y = "Dialog", [b, ee] = t(y), [x, S] = b(y), C = (e) => {
20
- let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: o, modal: s = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = a({
21
- prop: r,
22
- defaultProp: i ?? !1,
23
- onChange: o,
24
- caller: y
25
- });
26
- return /* @__PURE__ */ _(x, {
27
- scope: t,
28
- triggerRef: l,
29
- contentRef: u,
30
- contentId: c(),
31
- titleId: c(),
32
- descriptionId: c(),
33
- open: d,
34
- onOpenChange: f,
35
- onOpenToggle: h.useCallback(() => f((e) => !e), [f]),
36
- modal: s,
37
- children: n
38
- });
39
- };
40
- C.displayName = y;
41
- var w = "DialogTrigger", T = h.forwardRef((e, t) => {
42
- let { __scopeDialog: r, ...a } = e, s = S(w, r), c = n(t, s.triggerRef);
43
- return /* @__PURE__ */ _(o.button, {
44
- type: "button",
45
- "aria-haspopup": "dialog",
46
- "aria-expanded": s.open,
47
- "aria-controls": s.open ? s.contentId : void 0,
48
- "data-state": G(s.open),
49
- ...a,
50
- ref: c,
51
- onClick: i(e.onClick, s.onOpenToggle)
52
- });
53
- });
54
- T.displayName = w;
55
- var E = "DialogPortal", [D, O] = b(E, { forceMount: void 0 }), k = (e) => {
56
- let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = S(E, t);
57
- return /* @__PURE__ */ _(D, {
58
- scope: t,
59
- forceMount: n,
60
- children: h.Children.map(r, (e) => /* @__PURE__ */ _(s, {
61
- present: n || a.open,
62
- children: /* @__PURE__ */ _(d, {
63
- asChild: !0,
64
- container: i,
65
- children: e
66
- })
67
- }))
68
- });
69
- };
70
- k.displayName = E;
71
- var A = "DialogOverlay", j = h.forwardRef((e, t) => {
72
- let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
73
- return a.modal ? /* @__PURE__ */ _(s, {
74
- present: r || a.open,
75
- children: /* @__PURE__ */ _(N, {
76
- ...i,
77
- ref: t
78
- })
79
- }) : null;
80
- });
81
- j.displayName = A;
82
- var M = r("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
83
- let { __scopeDialog: n, ...r } = e, i = S(A, n);
84
- return /* @__PURE__ */ _(p, {
85
- as: M,
86
- allowPinchZoom: !0,
87
- shards: [i.contentRef],
88
- children: /* @__PURE__ */ _(o.div, {
89
- "data-state": G(i.open),
90
- ...r,
91
- ref: t,
92
- style: {
93
- pointerEvents: "auto",
94
- ...r.style
95
- }
96
- })
97
- });
98
- }), P = "DialogContent", F = h.forwardRef((e, t) => {
99
- let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
100
- return /* @__PURE__ */ _(s, {
101
- present: r || a.open,
102
- children: a.modal ? /* @__PURE__ */ _(I, {
103
- ...i,
104
- ref: t
105
- }) : /* @__PURE__ */ _(L, {
106
- ...i,
107
- ref: t
108
- })
109
- });
110
- });
111
- F.displayName = P;
112
- var I = h.forwardRef((e, t) => {
113
- let r = S(P, e.__scopeDialog), a = h.useRef(null), o = n(t, r.contentRef, a);
114
- return h.useEffect(() => {
115
- let e = a.current;
116
- if (e) return m(e);
117
- }, []), /* @__PURE__ */ _(R, {
118
- ...e,
119
- ref: o,
120
- trapFocus: r.open,
121
- disableOutsidePointerEvents: r.open,
122
- onCloseAutoFocus: i(e.onCloseAutoFocus, (e) => {
123
- e.preventDefault(), r.triggerRef.current?.focus();
124
- }),
125
- onPointerDownOutside: i(e.onPointerDownOutside, (e) => {
126
- let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
127
- (t.button === 2 || n) && e.preventDefault();
128
- }),
129
- onFocusOutside: i(e.onFocusOutside, (e) => e.preventDefault())
130
- });
131
- }), L = h.forwardRef((e, t) => {
132
- let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
133
- return /* @__PURE__ */ _(R, {
134
- ...e,
135
- ref: t,
136
- trapFocus: !1,
137
- disableOutsidePointerEvents: !1,
138
- onCloseAutoFocus: (t) => {
139
- e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
140
- },
141
- onInteractOutside: (t) => {
142
- e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
143
- let a = t.target;
144
- n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
145
- }
146
- });
147
- }), R = h.forwardRef((e, t) => {
148
- let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = S(P, r), d = h.useRef(null), p = n(t, d);
149
- return f(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(u, {
150
- asChild: !0,
151
- loop: !0,
152
- trapped: i,
153
- onMountAutoFocus: a,
154
- onUnmountAutoFocus: o,
155
- children: /* @__PURE__ */ _(l, {
156
- role: "dialog",
157
- id: c.contentId,
158
- "aria-describedby": c.descriptionId,
159
- "aria-labelledby": c.titleId,
160
- "data-state": G(c.open),
161
- ...s,
162
- ref: p,
163
- onDismiss: () => c.onOpenChange(!1)
164
- })
165
- }), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Y, { titleId: c.titleId }), /* @__PURE__ */ _(Z, {
166
- contentRef: d,
167
- descriptionId: c.descriptionId
168
- })] })] });
169
- }), z = "DialogTitle", B = h.forwardRef((e, t) => {
170
- let { __scopeDialog: n, ...r } = e, i = S(z, n);
171
- return /* @__PURE__ */ _(o.h2, {
172
- id: i.titleId,
173
- ...r,
174
- ref: t
175
- });
176
- });
177
- B.displayName = z;
178
- var V = "DialogDescription", H = h.forwardRef((e, t) => {
179
- let { __scopeDialog: n, ...r } = e, i = S(V, n);
180
- return /* @__PURE__ */ _(o.p, {
181
- id: i.descriptionId,
182
- ...r,
183
- ref: t
184
- });
185
- });
186
- H.displayName = V;
187
- var U = "DialogClose", W = h.forwardRef((e, t) => {
188
- let { __scopeDialog: n, ...r } = e, a = S(U, n);
189
- return /* @__PURE__ */ _(o.button, {
190
- type: "button",
191
- ...r,
192
- ref: t,
193
- onClick: i(e.onClick, () => a.onOpenChange(!1))
194
- });
195
- });
196
- W.displayName = U;
197
- function G(e) {
198
- return e ? "open" : "closed";
199
- }
200
- var K = "DialogTitleWarning", [q, J] = e(K, {
201
- contentName: P,
202
- titleName: z,
203
- docsSlug: "dialog"
204
- }), Y = ({ titleId: e }) => {
205
- let t = J(K), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
206
-
207
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
208
-
209
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
210
- return h.useEffect(() => {
211
- e && (document.getElementById(e) || console.error(n));
212
- }, [n, e]), null;
213
- }, X = "DialogDescriptionWarning", Z = ({ contentRef: e, descriptionId: t }) => {
214
- let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${J(X).contentName}}.`;
215
- return h.useEffect(() => {
216
- let r = e.current?.getAttribute("aria-describedby");
217
- t && r && (document.getElementById(t) || console.warn(n));
218
- }, [
219
- n,
220
- e,
221
- t
222
- ]), null;
223
- }, Q = C, te = T, ne = k, $ = j, re = F, ie = B, ae = H, oe = W;
224
- //#endregion
225
- export { oe as Close, re as Content, ae as Description, $ as Overlay, ne as Portal, Q as Root, ie as Title, te as Trigger, q as WarningProvider, ee as createDialogScope };
@@ -1,11 +0,0 @@
1
- "use client";
2
- import * as e from "react";
3
- import "react/jsx-runtime";
4
- //#region node_modules/.pnpm/@radix-ui+react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.mjs
5
- var t = e.createContext(void 0);
6
- function n(n) {
7
- let r = e.useContext(t);
8
- return n || r || "ltr";
9
- }
10
- //#endregion
11
- export { n as useDirection };
@@ -1,108 +0,0 @@
1
- "use client";
2
- import { useComposedRefs as e } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
3
- import { composeEventHandlers as t } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
4
- import { Primitive as n, dispatchDiscreteCustomEvent as r } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
5
- import { useCallbackRef as i } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
6
- import { useEscapeKeydown as a } from "../../../../../@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js";
7
- import * as o from "react";
8
- import { jsx as s } from "react/jsx-runtime";
9
- //#region node_modules/.pnpm/@radix-ui+react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
10
- var c = "DismissableLayer", l = "dismissableLayer.update", u = "dismissableLayer.pointerDownOutside", d = "dismissableLayer.focusOutside", f, p = o.createContext({
11
- layers: /* @__PURE__ */ new Set(),
12
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
13
- branches: /* @__PURE__ */ new Set()
14
- }), m = o.forwardRef((r, i) => {
15
- let { disableOutsidePointerEvents: c = !1, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: m, onInteractOutside: h, onDismiss: g, ...b } = r, x = o.useContext(p), [S, C] = o.useState(null), w = S?.ownerDocument ?? globalThis?.document, [, T] = o.useState({}), E = e(i, (e) => C(e)), D = Array.from(x.layers), [O] = [...x.layersWithOutsidePointerEventsDisabled].slice(-1), k = D.indexOf(O), A = S ? D.indexOf(S) : -1, j = x.layersWithOutsidePointerEventsDisabled.size > 0, M = A >= k, N = _((e) => {
16
- let t = e.target, n = [...x.branches].some((e) => e.contains(t));
17
- !M || n || (d?.(e), h?.(e), e.defaultPrevented || g?.());
18
- }, w), P = v((e) => {
19
- let t = e.target;
20
- [...x.branches].some((e) => e.contains(t)) || (m?.(e), h?.(e), e.defaultPrevented || g?.());
21
- }, w);
22
- return a((e) => {
23
- A === x.layers.size - 1 && (u?.(e), !e.defaultPrevented && g && (e.preventDefault(), g()));
24
- }, w), o.useEffect(() => {
25
- if (S) return c && (x.layersWithOutsidePointerEventsDisabled.size === 0 && (f = w.body.style.pointerEvents, w.body.style.pointerEvents = "none"), x.layersWithOutsidePointerEventsDisabled.add(S)), x.layers.add(S), y(), () => {
26
- c && (x.layersWithOutsidePointerEventsDisabled.delete(S), x.layersWithOutsidePointerEventsDisabled.size === 0 && (w.body.style.pointerEvents = f));
27
- };
28
- }, [
29
- S,
30
- w,
31
- c,
32
- x
33
- ]), o.useEffect(() => () => {
34
- S && (x.layers.delete(S), x.layersWithOutsidePointerEventsDisabled.delete(S), y());
35
- }, [S, x]), o.useEffect(() => {
36
- let e = () => T({});
37
- return document.addEventListener(l, e), () => document.removeEventListener(l, e);
38
- }, []), /* @__PURE__ */ s(n.div, {
39
- ...b,
40
- ref: E,
41
- style: {
42
- pointerEvents: j ? M ? "auto" : "none" : void 0,
43
- ...r.style
44
- },
45
- onFocusCapture: t(r.onFocusCapture, P.onFocusCapture),
46
- onBlurCapture: t(r.onBlurCapture, P.onBlurCapture),
47
- onPointerDownCapture: t(r.onPointerDownCapture, N.onPointerDownCapture)
48
- });
49
- });
50
- m.displayName = c;
51
- var h = "DismissableLayerBranch", g = o.forwardRef((t, r) => {
52
- let i = o.useContext(p), a = o.useRef(null), c = e(r, a);
53
- return o.useEffect(() => {
54
- let e = a.current;
55
- if (e) return i.branches.add(e), () => {
56
- i.branches.delete(e);
57
- };
58
- }, [i.branches]), /* @__PURE__ */ s(n.div, {
59
- ...t,
60
- ref: c
61
- });
62
- });
63
- g.displayName = h;
64
- function _(e, t = globalThis?.document) {
65
- let n = i(e), r = o.useRef(!1), a = o.useRef(() => {});
66
- return o.useEffect(() => {
67
- let e = (e) => {
68
- if (e.target && !r.current) {
69
- let r = function() {
70
- b(u, n, i, { discrete: !0 });
71
- }, i = { originalEvent: e };
72
- e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = r, t.addEventListener("click", a.current, { once: !0 })) : r();
73
- } else t.removeEventListener("click", a.current);
74
- r.current = !1;
75
- }, i = window.setTimeout(() => {
76
- t.addEventListener("pointerdown", e);
77
- }, 0);
78
- return () => {
79
- window.clearTimeout(i), t.removeEventListener("pointerdown", e), t.removeEventListener("click", a.current);
80
- };
81
- }, [t, n]), { onPointerDownCapture: () => r.current = !0 };
82
- }
83
- function v(e, t = globalThis?.document) {
84
- let n = i(e), r = o.useRef(!1);
85
- return o.useEffect(() => {
86
- let e = (e) => {
87
- e.target && !r.current && b(d, n, { originalEvent: e }, { discrete: !1 });
88
- };
89
- return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
90
- }, [t, n]), {
91
- onFocusCapture: () => r.current = !0,
92
- onBlurCapture: () => r.current = !1
93
- };
94
- }
95
- function y() {
96
- let e = new CustomEvent(l);
97
- document.dispatchEvent(e);
98
- }
99
- function b(e, t, n, { discrete: i }) {
100
- let a = n.originalEvent.target, o = new CustomEvent(e, {
101
- bubbles: !1,
102
- cancelable: !0,
103
- detail: n
104
- });
105
- t && a.addEventListener(e, t, { once: !0 }), i ? r(a, o) : a.dispatchEvent(o);
106
- }
107
- //#endregion
108
- export { m as DismissableLayer };
@@ -1,225 +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 { composeRefs as t } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
4
- import { composeEventHandlers as n } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
5
- import { useControllableState as r } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
6
- import { Primitive as i } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
7
- import { useId as a } 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";
8
- import { Anchor2 as o, Arrow2 as s, CheckboxItem as c, Content2 as l, Group as u, Item2 as d, ItemIndicator as f, Label as p, Portal as m, RadioGroup as h, RadioItem as ee, Root3 as te, Separator as g, Sub as _, SubContent as v, SubTrigger as y, createMenuScope as b } from "../../../../../@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js";
9
- import * as x from "react";
10
- import { jsx as S } from "react/jsx-runtime";
11
- //#region node_modules/.pnpm/@radix-ui+react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
12
- var C = "DropdownMenu", [ne, re] = e(C, [b]), w = b(), [T, E] = ne(C), D = (e) => {
13
- let { __scopeDropdownMenu: t, children: n, dir: i, open: o, defaultOpen: s, onOpenChange: c, modal: l = !0 } = e, u = w(t), d = x.useRef(null), [f, p] = r({
14
- prop: o,
15
- defaultProp: s ?? !1,
16
- onChange: c,
17
- caller: C
18
- });
19
- return /* @__PURE__ */ S(T, {
20
- scope: t,
21
- triggerId: a(),
22
- triggerRef: d,
23
- contentId: a(),
24
- open: f,
25
- onOpenChange: p,
26
- onOpenToggle: x.useCallback(() => p((e) => !e), [p]),
27
- modal: l,
28
- children: /* @__PURE__ */ S(te, {
29
- ...u,
30
- open: f,
31
- onOpenChange: p,
32
- dir: i,
33
- modal: l,
34
- children: n
35
- })
36
- });
37
- };
38
- D.displayName = C;
39
- var O = "DropdownMenuTrigger", k = x.forwardRef((e, r) => {
40
- let { __scopeDropdownMenu: a, disabled: s = !1, ...c } = e, l = E(O, a);
41
- return /* @__PURE__ */ S(o, {
42
- asChild: !0,
43
- ...w(a),
44
- children: /* @__PURE__ */ S(i.button, {
45
- type: "button",
46
- id: l.triggerId,
47
- "aria-haspopup": "menu",
48
- "aria-expanded": l.open,
49
- "aria-controls": l.open ? l.contentId : void 0,
50
- "data-state": l.open ? "open" : "closed",
51
- "data-disabled": s ? "" : void 0,
52
- disabled: s,
53
- ...c,
54
- ref: t(r, l.triggerRef),
55
- onPointerDown: n(e.onPointerDown, (e) => {
56
- !s && e.button === 0 && e.ctrlKey === !1 && (l.onOpenToggle(), l.open || e.preventDefault());
57
- }),
58
- onKeyDown: n(e.onKeyDown, (e) => {
59
- s || (["Enter", " "].includes(e.key) && l.onOpenToggle(), e.key === "ArrowDown" && l.onOpenChange(!0), [
60
- "Enter",
61
- " ",
62
- "ArrowDown"
63
- ].includes(e.key) && e.preventDefault());
64
- })
65
- })
66
- });
67
- });
68
- k.displayName = O;
69
- var A = "DropdownMenuPortal", j = (e) => {
70
- let { __scopeDropdownMenu: t, ...n } = e;
71
- return /* @__PURE__ */ S(m, {
72
- ...w(t),
73
- ...n
74
- });
75
- };
76
- j.displayName = A;
77
- var M = "DropdownMenuContent", N = x.forwardRef((e, t) => {
78
- let { __scopeDropdownMenu: r, ...i } = e, a = E(M, r), o = w(r), s = x.useRef(!1);
79
- return /* @__PURE__ */ S(l, {
80
- id: a.contentId,
81
- "aria-labelledby": a.triggerId,
82
- ...o,
83
- ...i,
84
- ref: t,
85
- onCloseAutoFocus: n(e.onCloseAutoFocus, (e) => {
86
- s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
87
- }),
88
- onInteractOutside: n(e.onInteractOutside, (e) => {
89
- let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
90
- (!a.modal || r) && (s.current = !0);
91
- }),
92
- style: {
93
- ...e.style,
94
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
95
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
96
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
97
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
98
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
99
- }
100
- });
101
- });
102
- N.displayName = M;
103
- var P = "DropdownMenuGroup", F = x.forwardRef((e, t) => {
104
- let { __scopeDropdownMenu: n, ...r } = e;
105
- return /* @__PURE__ */ S(u, {
106
- ...w(n),
107
- ...r,
108
- ref: t
109
- });
110
- });
111
- F.displayName = P;
112
- var I = "DropdownMenuLabel", L = x.forwardRef((e, t) => {
113
- let { __scopeDropdownMenu: n, ...r } = e;
114
- return /* @__PURE__ */ S(p, {
115
- ...w(n),
116
- ...r,
117
- ref: t
118
- });
119
- });
120
- L.displayName = I;
121
- var R = "DropdownMenuItem", z = x.forwardRef((e, t) => {
122
- let { __scopeDropdownMenu: n, ...r } = e;
123
- return /* @__PURE__ */ S(d, {
124
- ...w(n),
125
- ...r,
126
- ref: t
127
- });
128
- });
129
- z.displayName = R;
130
- var B = "DropdownMenuCheckboxItem", V = x.forwardRef((e, t) => {
131
- let { __scopeDropdownMenu: n, ...r } = e;
132
- return /* @__PURE__ */ S(c, {
133
- ...w(n),
134
- ...r,
135
- ref: t
136
- });
137
- });
138
- V.displayName = B;
139
- var H = "DropdownMenuRadioGroup", U = x.forwardRef((e, t) => {
140
- let { __scopeDropdownMenu: n, ...r } = e;
141
- return /* @__PURE__ */ S(h, {
142
- ...w(n),
143
- ...r,
144
- ref: t
145
- });
146
- });
147
- U.displayName = H;
148
- var W = "DropdownMenuRadioItem", G = x.forwardRef((e, t) => {
149
- let { __scopeDropdownMenu: n, ...r } = e;
150
- return /* @__PURE__ */ S(ee, {
151
- ...w(n),
152
- ...r,
153
- ref: t
154
- });
155
- });
156
- G.displayName = W;
157
- var K = "DropdownMenuItemIndicator", q = x.forwardRef((e, t) => {
158
- let { __scopeDropdownMenu: n, ...r } = e;
159
- return /* @__PURE__ */ S(f, {
160
- ...w(n),
161
- ...r,
162
- ref: t
163
- });
164
- });
165
- q.displayName = K;
166
- var J = "DropdownMenuSeparator", Y = x.forwardRef((e, t) => {
167
- let { __scopeDropdownMenu: n, ...r } = e;
168
- return /* @__PURE__ */ S(g, {
169
- ...w(n),
170
- ...r,
171
- ref: t
172
- });
173
- });
174
- Y.displayName = J;
175
- var X = "DropdownMenuArrow", ie = x.forwardRef((e, t) => {
176
- let { __scopeDropdownMenu: n, ...r } = e;
177
- return /* @__PURE__ */ S(s, {
178
- ...w(n),
179
- ...r,
180
- ref: t
181
- });
182
- });
183
- ie.displayName = X;
184
- var ae = (e) => {
185
- let { __scopeDropdownMenu: t, children: n, open: i, onOpenChange: a, defaultOpen: o } = e, s = w(t), [c, l] = r({
186
- prop: i,
187
- defaultProp: o ?? !1,
188
- onChange: a,
189
- caller: "DropdownMenuSub"
190
- });
191
- return /* @__PURE__ */ S(_, {
192
- ...s,
193
- open: c,
194
- onOpenChange: l,
195
- children: n
196
- });
197
- }, oe = "DropdownMenuSubTrigger", Z = x.forwardRef((e, t) => {
198
- let { __scopeDropdownMenu: n, ...r } = e;
199
- return /* @__PURE__ */ S(y, {
200
- ...w(n),
201
- ...r,
202
- ref: t
203
- });
204
- });
205
- Z.displayName = oe;
206
- var se = "DropdownMenuSubContent", Q = x.forwardRef((e, t) => {
207
- let { __scopeDropdownMenu: n, ...r } = e;
208
- return /* @__PURE__ */ S(v, {
209
- ...w(n),
210
- ...r,
211
- ref: t,
212
- style: {
213
- ...e.style,
214
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
215
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
216
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
217
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
218
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
219
- }
220
- });
221
- });
222
- Q.displayName = se;
223
- var ce = D, le = k, ue = j, de = N, fe = F, $ = L, pe = z, me = V, he = U, ge = G, _e = q, ve = Y, ye = ae, be = Z, xe = Q;
224
- //#endregion
225
- export { me as CheckboxItem2, de as Content2, fe as Group2, pe as Item2, _e as ItemIndicator2, $ as Label2, ue as Portal2, he as RadioGroup2, ge as RadioItem2, ce as Root2, ve as Separator2, ye as Sub2, xe as SubContent2, be as SubTrigger2, le as Trigger };
@@ -1,22 +0,0 @@
1
- "use client";
2
- import * as e from "react";
3
- //#region node_modules/.pnpm/@radix-ui+react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
4
- var t = 0, n = null;
5
- function r() {
6
- e.useEffect(() => {
7
- n ||= {
8
- start: i(),
9
- end: i()
10
- };
11
- let { start: e, end: r } = n;
12
- return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== r && document.body.insertAdjacentElement("beforeend", r), t++, () => {
13
- t === 1 && (n?.start.remove(), n?.end.remove(), n = null), t = Math.max(0, t - 1);
14
- };
15
- }, []);
16
- }
17
- function i() {
18
- let e = document.createElement("span");
19
- 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;
20
- }
21
- //#endregion
22
- export { r as useFocusGuards };