@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,158 +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 { 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 { Presence as a } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
8
- import { usePrevious as o } from "../../../../../@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js";
9
- import { useSize as s } from "../../../../../@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js";
10
- import * as c from "react";
11
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
12
- //#region node_modules/.pnpm/@radix-ui+react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.mjs
13
- var f = "Checkbox", [p, m] = e(f), [h, g] = p(f);
14
- function _(e) {
15
- let { __scopeCheckbox: t, checked: n, children: i, defaultChecked: a, disabled: o, form: s, name: l, onCheckedChange: d, required: p, value: m = "on", internal_do_not_use_render: g } = e, [_, v] = r({
16
- prop: n,
17
- defaultProp: a ?? !1,
18
- onChange: d,
19
- caller: f
20
- }), [y, b] = c.useState(null), [x, S] = c.useState(null), C = c.useRef(!1), w = y ? !!s || !!y.closest("form") : !0, D = {
21
- checked: _,
22
- disabled: o,
23
- setChecked: v,
24
- control: y,
25
- setControl: b,
26
- name: l,
27
- form: s,
28
- value: m,
29
- hasConsumerStoppedPropagationRef: C,
30
- required: p,
31
- defaultChecked: E(a) ? !1 : a,
32
- isFormControl: w,
33
- bubbleInput: x,
34
- setBubbleInput: S
35
- };
36
- return /* @__PURE__ */ u(h, {
37
- scope: t,
38
- ...D,
39
- children: T(g) ? g(D) : i
40
- });
41
- }
42
- var v = "CheckboxTrigger", y = c.forwardRef(({ __scopeCheckbox: e, onKeyDown: r, onClick: a, ...o }, s) => {
43
- let { control: l, value: d, disabled: f, checked: p, required: m, setControl: h, setChecked: _, hasConsumerStoppedPropagationRef: y, isFormControl: b, bubbleInput: x } = g(v, e), S = t(s, h), C = c.useRef(p);
44
- return c.useEffect(() => {
45
- let e = l?.form;
46
- if (e) {
47
- let t = () => _(C.current);
48
- return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
49
- }
50
- }, [l, _]), /* @__PURE__ */ u(i.button, {
51
- type: "button",
52
- role: "checkbox",
53
- "aria-checked": E(p) ? "mixed" : p,
54
- "aria-required": m,
55
- "data-state": D(p),
56
- "data-disabled": f ? "" : void 0,
57
- disabled: f,
58
- value: d,
59
- ...o,
60
- ref: S,
61
- onKeyDown: n(r, (e) => {
62
- e.key === "Enter" && e.preventDefault();
63
- }),
64
- onClick: n(a, (e) => {
65
- _((e) => E(e) ? !0 : !e), x && b && (y.current = e.isPropagationStopped(), y.current || e.stopPropagation());
66
- })
67
- });
68
- });
69
- y.displayName = v;
70
- var b = c.forwardRef((e, t) => {
71
- let { __scopeCheckbox: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: f, form: p, ...m } = e;
72
- return /* @__PURE__ */ u(_, {
73
- __scopeCheckbox: n,
74
- checked: i,
75
- defaultChecked: a,
76
- disabled: s,
77
- required: o,
78
- onCheckedChange: f,
79
- name: r,
80
- form: p,
81
- value: c,
82
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(y, {
83
- ...m,
84
- ref: t,
85
- __scopeCheckbox: n
86
- }), e && /* @__PURE__ */ u(w, { __scopeCheckbox: n })] })
87
- });
88
- });
89
- b.displayName = f;
90
- var x = "CheckboxIndicator", S = c.forwardRef((e, t) => {
91
- let { __scopeCheckbox: n, forceMount: r, ...o } = e, s = g(x, n);
92
- return /* @__PURE__ */ u(a, {
93
- present: r || E(s.checked) || s.checked === !0,
94
- children: /* @__PURE__ */ u(i.span, {
95
- "data-state": D(s.checked),
96
- "data-disabled": s.disabled ? "" : void 0,
97
- ...o,
98
- ref: t,
99
- style: {
100
- pointerEvents: "none",
101
- ...e.style
102
- }
103
- })
104
- });
105
- });
106
- S.displayName = x;
107
- var C = "CheckboxBubbleInput", w = c.forwardRef(({ __scopeCheckbox: e, ...n }, r) => {
108
- let { control: a, hasConsumerStoppedPropagationRef: l, checked: d, defaultChecked: f, required: p, disabled: m, name: h, value: _, form: v, bubbleInput: y, setBubbleInput: b } = g(C, e), x = t(r, b), S = o(d), w = s(a);
109
- c.useEffect(() => {
110
- let e = y;
111
- if (!e) return;
112
- let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = !l.current;
113
- if (S !== d && n) {
114
- let t = new Event("click", { bubbles: r });
115
- e.indeterminate = E(d), n.call(e, E(d) ? !1 : d), e.dispatchEvent(t);
116
- }
117
- }, [
118
- y,
119
- S,
120
- d,
121
- l
122
- ]);
123
- let T = c.useRef(E(d) ? !1 : d);
124
- return /* @__PURE__ */ u(i.input, {
125
- type: "checkbox",
126
- "aria-hidden": !0,
127
- defaultChecked: f ?? T.current,
128
- required: p,
129
- disabled: m,
130
- name: h,
131
- value: _,
132
- form: v,
133
- ...n,
134
- tabIndex: -1,
135
- ref: x,
136
- style: {
137
- ...n.style,
138
- ...w,
139
- position: "absolute",
140
- pointerEvents: "none",
141
- opacity: 0,
142
- margin: 0,
143
- transform: "translateX(-100%)"
144
- }
145
- });
146
- });
147
- w.displayName = C;
148
- function T(e) {
149
- return typeof e == "function";
150
- }
151
- function E(e) {
152
- return e === "indeterminate";
153
- }
154
- function D(e) {
155
- return E(e) ? "indeterminate" : e ? "checked" : "unchecked";
156
- }
157
- //#endregion
158
- export { b as Checkbox, S as CheckboxIndicator };
@@ -1,97 +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 { composeEventHandlers as n } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
5
- import { useLayoutEffect2 as r } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
6
- import { useControllableState as i } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
7
- import { Primitive as a } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
8
- import { Presence as o } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
9
- import { useId as s } 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 * as c from "react";
11
- import { jsx as l } from "react/jsx-runtime";
12
- //#region node_modules/.pnpm/@radix-ui+react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.mjs
13
- var u = "Collapsible", [d, f] = e(u), [p, m] = d(u), h = c.forwardRef((e, t) => {
14
- let { __scopeCollapsible: n, open: r, defaultOpen: o, disabled: d, onOpenChange: f, ...m } = e, [h, g] = i({
15
- prop: r,
16
- defaultProp: o ?? !1,
17
- onChange: f,
18
- caller: u
19
- });
20
- return /* @__PURE__ */ l(p, {
21
- scope: n,
22
- disabled: d,
23
- contentId: s(),
24
- open: h,
25
- onOpenToggle: c.useCallback(() => g((e) => !e), [g]),
26
- children: /* @__PURE__ */ l(a.div, {
27
- "data-state": x(h),
28
- "data-disabled": d ? "" : void 0,
29
- ...m,
30
- ref: t
31
- })
32
- });
33
- });
34
- h.displayName = u;
35
- var g = "CollapsibleTrigger", _ = c.forwardRef((e, t) => {
36
- let { __scopeCollapsible: r, ...i } = e, o = m(g, r);
37
- return /* @__PURE__ */ l(a.button, {
38
- type: "button",
39
- "aria-controls": o.open ? o.contentId : void 0,
40
- "aria-expanded": o.open || !1,
41
- "data-state": x(o.open),
42
- "data-disabled": o.disabled ? "" : void 0,
43
- disabled: o.disabled,
44
- ...i,
45
- ref: t,
46
- onClick: n(e.onClick, o.onOpenToggle)
47
- });
48
- });
49
- _.displayName = g;
50
- var v = "CollapsibleContent", y = c.forwardRef((e, t) => {
51
- let { forceMount: n, ...r } = e, i = m(v, e.__scopeCollapsible);
52
- return /* @__PURE__ */ l(o, {
53
- present: n || i.open,
54
- children: ({ present: e }) => /* @__PURE__ */ l(b, {
55
- ...r,
56
- ref: t,
57
- present: e
58
- })
59
- });
60
- });
61
- y.displayName = v;
62
- var b = c.forwardRef((e, n) => {
63
- let { __scopeCollapsible: i, present: o, children: s, ...u } = e, d = m(v, i), [f, p] = c.useState(o), h = c.useRef(null), g = t(n, h), _ = c.useRef(0), y = _.current, b = c.useRef(0), S = b.current, C = d.open || f, w = c.useRef(C), T = c.useRef(void 0);
64
- return c.useEffect(() => {
65
- let e = requestAnimationFrame(() => w.current = !1);
66
- return () => cancelAnimationFrame(e);
67
- }, []), r(() => {
68
- let e = h.current;
69
- if (e) {
70
- T.current = T.current || {
71
- transitionDuration: e.style.transitionDuration,
72
- animationName: e.style.animationName
73
- }, e.style.transitionDuration = "0s", e.style.animationName = "none";
74
- let t = e.getBoundingClientRect();
75
- _.current = t.height, b.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
76
- }
77
- }, [d.open, o]), /* @__PURE__ */ l(a.div, {
78
- "data-state": x(d.open),
79
- "data-disabled": d.disabled ? "" : void 0,
80
- id: d.contentId,
81
- hidden: !C,
82
- ...u,
83
- ref: g,
84
- style: {
85
- "--radix-collapsible-content-height": y ? `${y}px` : void 0,
86
- "--radix-collapsible-content-width": S ? `${S}px` : void 0,
87
- ...e.style
88
- },
89
- children: C && s
90
- });
91
- });
92
- function x(e) {
93
- return e ? "open" : "closed";
94
- }
95
- var S = h, C = _, w = y;
96
- //#endregion
97
- export { y as CollapsibleContent, _ as CollapsibleTrigger, w as Content, S as Root, C as Trigger, f as createCollapsibleScope };
@@ -1,62 +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 * as r from "react";
6
- import { jsx as i } from "react/jsx-runtime";
7
- //#region node_modules/.pnpm/@radix-ui+react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.mjs
8
- function a(a) {
9
- let o = a + "CollectionProvider", [s, c] = e(o), [l, u] = s(o, {
10
- collectionRef: { current: null },
11
- itemMap: /* @__PURE__ */ new Map()
12
- }), d = (e) => {
13
- let { scope: t, children: n } = e, a = r.useRef(null), o = r.useRef(/* @__PURE__ */ new Map()).current;
14
- return /* @__PURE__ */ i(l, {
15
- scope: t,
16
- itemMap: o,
17
- collectionRef: a,
18
- children: n
19
- });
20
- };
21
- d.displayName = o;
22
- let f = a + "CollectionSlot", p = n(f), m = r.forwardRef((e, n) => {
23
- let { scope: r, children: a } = e;
24
- return /* @__PURE__ */ i(p, {
25
- ref: t(n, u(f, r).collectionRef),
26
- children: a
27
- });
28
- });
29
- m.displayName = f;
30
- let h = a + "CollectionItemSlot", g = "data-radix-collection-item", _ = n(h), v = r.forwardRef((e, n) => {
31
- let { scope: a, children: o, ...s } = e, c = r.useRef(null), l = t(n, c), d = u(h, a);
32
- return r.useEffect(() => (d.itemMap.set(c, {
33
- ref: c,
34
- ...s
35
- }), () => void d.itemMap.delete(c))), /* @__PURE__ */ i(_, {
36
- [g]: "",
37
- ref: l,
38
- children: o
39
- });
40
- });
41
- v.displayName = h;
42
- function y(e) {
43
- let t = u(a + "CollectionConsumer", e);
44
- return r.useCallback(() => {
45
- let e = t.collectionRef.current;
46
- if (!e) return [];
47
- let n = Array.from(e.querySelectorAll(`[${g}]`));
48
- return Array.from(t.itemMap.values()).sort((e, t) => n.indexOf(e.ref.current) - n.indexOf(t.ref.current));
49
- }, [t.collectionRef, t.itemMap]);
50
- }
51
- return [
52
- {
53
- Provider: d,
54
- Slot: m,
55
- ItemSlot: v
56
- },
57
- y,
58
- c
59
- ];
60
- }
61
- //#endregion
62
- export { a as createCollection };
@@ -1,25 +0,0 @@
1
- import * as e from "react";
2
- //#region node_modules/.pnpm/@radix-ui+react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
3
- function t(e, t) {
4
- if (typeof e == "function") return e(t);
5
- e != null && (e.current = t);
6
- }
7
- function n(...e) {
8
- return (n) => {
9
- let r = !1, i = e.map((e) => {
10
- let i = t(e, n);
11
- return !r && typeof i == "function" && (r = !0), i;
12
- });
13
- if (r) return () => {
14
- for (let n = 0; n < i.length; n++) {
15
- let r = i[n];
16
- typeof r == "function" ? r() : t(e[n], null);
17
- }
18
- };
19
- };
20
- }
21
- function r(...t) {
22
- return e.useCallback(n(...t), t);
23
- }
24
- //#endregion
25
- export { n as composeRefs, r as useComposedRefs };
@@ -1,240 +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 { composeEventHandlers as t } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
4
- import { useControllableState as n } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
5
- import { Primitive as r } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
6
- import { Anchor2 as i, Arrow2 as a, CheckboxItem as o, Content2 as s, Group as c, Item2 as l, ItemIndicator as u, Label as d, Portal as f, RadioGroup as p, RadioItem as m, Root3 as h, Separator as g, Sub as ee, SubContent as te, SubTrigger as ne, createMenuScope as _ } from "../../../../../@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js";
7
- import * as v from "react";
8
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
9
- //#region node_modules/.pnpm/@radix-ui+react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.mjs
10
- var S = "ContextMenu", [C, re] = e(S, [_]), w = _(), [ie, T] = C(S), E = (e) => {
11
- let { __scopeContextMenu: t, children: r, onOpenChange: i, open: a, dir: o, modal: s = !0 } = e, c = v.useRef(!1);
12
- {
13
- let e = v.useRef(!1);
14
- v.useEffect(() => {
15
- a === !0 && !c.current && !e.current && (e.current = !0, console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."));
16
- }, [a]);
17
- }
18
- let [l, u] = n({
19
- prop: a,
20
- defaultProp: !1,
21
- onChange: i,
22
- caller: S
23
- });
24
- return /* @__PURE__ */ b(ie, {
25
- scope: t,
26
- open: l,
27
- onOpenChange: u,
28
- modal: s,
29
- hasInteractedRef: c,
30
- children: /* @__PURE__ */ b(h, {
31
- ...w(t),
32
- dir: o,
33
- open: l,
34
- onOpenChange: u,
35
- modal: s,
36
- children: r
37
- })
38
- });
39
- };
40
- E.displayName = S;
41
- var D = "ContextMenuTrigger", O = v.forwardRef((e, n) => {
42
- let { __scopeContextMenu: a, disabled: o = !1, ...s } = e, c = T(D, a), l = w(a), u = v.useRef({
43
- x: 0,
44
- y: 0
45
- }), d = v.useRef({ getBoundingClientRect: () => DOMRect.fromRect({
46
- width: 0,
47
- height: 0,
48
- ...u.current
49
- }) }), f = v.useRef(0), p = v.useCallback(() => window.clearTimeout(f.current), []), m = (e) => {
50
- c.hasInteractedRef.current = !0, u.current = {
51
- x: e.clientX,
52
- y: e.clientY
53
- }, c.onOpenChange(!0);
54
- };
55
- return v.useEffect(() => p, [p]), v.useEffect(() => void (o && p()), [o, p]), /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(i, {
56
- ...l,
57
- virtualRef: d
58
- }), /* @__PURE__ */ b(r.span, {
59
- "data-state": c.open ? "open" : "closed",
60
- "data-disabled": o ? "" : void 0,
61
- ...s,
62
- ref: n,
63
- style: {
64
- WebkitTouchCallout: "none",
65
- ...e.style
66
- },
67
- onContextMenu: o ? e.onContextMenu : t(e.onContextMenu, (e) => {
68
- p(), m(e), e.preventDefault();
69
- }),
70
- onPointerDown: o ? e.onPointerDown : t(e.onPointerDown, Q((e) => {
71
- p(), c.open && c.onOpenChange(!1), f.current = window.setTimeout(() => m(e), 700);
72
- })),
73
- onPointerMove: o ? e.onPointerMove : t(e.onPointerMove, Q(p)),
74
- onPointerCancel: o ? e.onPointerCancel : t(e.onPointerCancel, Q(p)),
75
- onPointerUp: o ? e.onPointerUp : t(e.onPointerUp, Q(p))
76
- })] });
77
- });
78
- O.displayName = D;
79
- var k = "ContextMenuPortal", A = (e) => {
80
- let { __scopeContextMenu: t, ...n } = e;
81
- return /* @__PURE__ */ b(f, {
82
- ...w(t),
83
- ...n
84
- });
85
- };
86
- A.displayName = k;
87
- var j = "ContextMenuContent", M = v.forwardRef((e, t) => {
88
- let { __scopeContextMenu: n, ...r } = e, i = T(j, n), a = w(n), o = v.useRef(!1);
89
- return /* @__PURE__ */ b(s, {
90
- ...a,
91
- ...r,
92
- ref: t,
93
- side: "right",
94
- sideOffset: 2,
95
- align: "start",
96
- onCloseAutoFocus: (t) => {
97
- e.onCloseAutoFocus?.(t), !t.defaultPrevented && o.current && t.preventDefault(), o.current = !1;
98
- },
99
- onInteractOutside: (t) => {
100
- e.onInteractOutside?.(t), !t.defaultPrevented && !i.modal && (o.current = !0);
101
- },
102
- style: {
103
- ...e.style,
104
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
105
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
106
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
107
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
108
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
109
- }
110
- });
111
- });
112
- M.displayName = j;
113
- var ae = "ContextMenuGroup", N = v.forwardRef((e, t) => {
114
- let { __scopeContextMenu: n, ...r } = e;
115
- return /* @__PURE__ */ b(c, {
116
- ...w(n),
117
- ...r,
118
- ref: t
119
- });
120
- });
121
- N.displayName = ae;
122
- var oe = "ContextMenuLabel", P = v.forwardRef((e, t) => {
123
- let { __scopeContextMenu: n, ...r } = e;
124
- return /* @__PURE__ */ b(d, {
125
- ...w(n),
126
- ...r,
127
- ref: t
128
- });
129
- });
130
- P.displayName = oe;
131
- var F = "ContextMenuItem", I = v.forwardRef((e, t) => {
132
- let { __scopeContextMenu: n, ...r } = e;
133
- return /* @__PURE__ */ b(l, {
134
- ...w(n),
135
- ...r,
136
- ref: t
137
- });
138
- });
139
- I.displayName = F;
140
- var L = "ContextMenuCheckboxItem", R = v.forwardRef((e, t) => {
141
- let { __scopeContextMenu: n, ...r } = e;
142
- return /* @__PURE__ */ b(o, {
143
- ...w(n),
144
- ...r,
145
- ref: t
146
- });
147
- });
148
- R.displayName = L;
149
- var z = "ContextMenuRadioGroup", B = v.forwardRef((e, t) => {
150
- let { __scopeContextMenu: n, ...r } = e;
151
- return /* @__PURE__ */ b(p, {
152
- ...w(n),
153
- ...r,
154
- ref: t
155
- });
156
- });
157
- B.displayName = z;
158
- var V = "ContextMenuRadioItem", H = v.forwardRef((e, t) => {
159
- let { __scopeContextMenu: n, ...r } = e;
160
- return /* @__PURE__ */ b(m, {
161
- ...w(n),
162
- ...r,
163
- ref: t
164
- });
165
- });
166
- H.displayName = V;
167
- var U = "ContextMenuItemIndicator", W = v.forwardRef((e, t) => {
168
- let { __scopeContextMenu: n, ...r } = e;
169
- return /* @__PURE__ */ b(u, {
170
- ...w(n),
171
- ...r,
172
- ref: t
173
- });
174
- });
175
- W.displayName = U;
176
- var G = "ContextMenuSeparator", K = v.forwardRef((e, t) => {
177
- let { __scopeContextMenu: n, ...r } = e;
178
- return /* @__PURE__ */ b(g, {
179
- ...w(n),
180
- ...r,
181
- ref: t
182
- });
183
- });
184
- K.displayName = G;
185
- var q = "ContextMenuArrow", se = v.forwardRef((e, t) => {
186
- let { __scopeContextMenu: n, ...r } = e;
187
- return /* @__PURE__ */ b(a, {
188
- ...w(n),
189
- ...r,
190
- ref: t
191
- });
192
- });
193
- se.displayName = q;
194
- var J = "ContextMenuSub", Y = (e) => {
195
- let { __scopeContextMenu: t, children: r, onOpenChange: i, open: a, defaultOpen: o } = e, s = w(t), [c, l] = n({
196
- prop: a,
197
- defaultProp: o ?? !1,
198
- onChange: i,
199
- caller: J
200
- });
201
- return /* @__PURE__ */ b(ee, {
202
- ...s,
203
- open: c,
204
- onOpenChange: l,
205
- children: r
206
- });
207
- };
208
- Y.displayName = J;
209
- var ce = "ContextMenuSubTrigger", X = v.forwardRef((e, t) => {
210
- let { __scopeContextMenu: n, ...r } = e;
211
- return /* @__PURE__ */ b(ne, {
212
- ...w(n),
213
- ...r,
214
- ref: t
215
- });
216
- });
217
- X.displayName = ce;
218
- var le = "ContextMenuSubContent", Z = v.forwardRef((e, t) => {
219
- let { __scopeContextMenu: n, ...r } = e;
220
- return /* @__PURE__ */ b(te, {
221
- ...w(n),
222
- ...r,
223
- ref: t,
224
- style: {
225
- ...e.style,
226
- "--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
227
- "--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
228
- "--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
229
- "--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
230
- "--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
231
- }
232
- });
233
- });
234
- Z.displayName = le;
235
- function Q(e) {
236
- return (t) => t.pointerType === "mouse" ? void 0 : e(t);
237
- }
238
- var ue = E, de = O, fe = A, pe = M, me = N, he = P, $ = I, ge = R, _e = B, ve = H, ye = W, be = K, xe = Y, Se = X, Ce = Z;
239
- //#endregion
240
- export { ge as CheckboxItem2, pe as Content2, me as Group2, $ as Item2, ye as ItemIndicator2, he as Label2, fe as Portal2, _e as RadioGroup2, ve as RadioItem2, ue as Root2, be as Separator2, xe as Sub2, Ce as SubContent2, Se as SubTrigger2, de as Trigger };
@@ -1,80 +0,0 @@
1
- import * as e from "react";
2
- import { jsx as t } from "react/jsx-runtime";
3
- //#region node_modules/.pnpm/@radix-ui+react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.mjs
4
- function n(n, r) {
5
- let i = e.createContext(r);
6
- i.displayName = n + "Context";
7
- let a = (n) => {
8
- let { children: r, ...a } = n, o = e.useMemo(() => a, Object.values(a));
9
- return /* @__PURE__ */ t(i.Provider, {
10
- value: o,
11
- children: r
12
- });
13
- };
14
- a.displayName = n + "Provider";
15
- function o(t) {
16
- let a = e.useContext(i);
17
- if (a) return a;
18
- if (r !== void 0) return r;
19
- throw Error(`\`${t}\` must be used within \`${n}\``);
20
- }
21
- return [a, o];
22
- }
23
- function r(n, r = []) {
24
- let a = [];
25
- function o(r, i) {
26
- let o = e.createContext(i);
27
- o.displayName = r + "Context";
28
- let s = a.length;
29
- a = [...a, i];
30
- let c = (r) => {
31
- let { scope: i, children: a, ...c } = r, l = i?.[n]?.[s] || o, u = e.useMemo(() => c, Object.values(c));
32
- return /* @__PURE__ */ t(l.Provider, {
33
- value: u,
34
- children: a
35
- });
36
- };
37
- c.displayName = r + "Provider";
38
- function l(t, a) {
39
- let c = a?.[n]?.[s] || o, l = e.useContext(c);
40
- if (l) return l;
41
- if (i !== void 0) return i;
42
- throw Error(`\`${t}\` must be used within \`${r}\``);
43
- }
44
- return [c, l];
45
- }
46
- let s = () => {
47
- let t = a.map((t) => e.createContext(t));
48
- return function(r) {
49
- let i = r?.[n] || t;
50
- return e.useMemo(() => ({ [`__scope${n}`]: {
51
- ...r,
52
- [n]: i
53
- } }), [r, i]);
54
- };
55
- };
56
- return s.scopeName = n, [o, i(s, ...r)];
57
- }
58
- function i(...t) {
59
- let n = t[0];
60
- if (t.length === 1) return n;
61
- let r = () => {
62
- let r = t.map((e) => ({
63
- useScope: e(),
64
- scopeName: e.scopeName
65
- }));
66
- return function(t) {
67
- let i = r.reduce((e, { useScope: n, scopeName: r }) => {
68
- let i = n(t)[`__scope${r}`];
69
- return {
70
- ...e,
71
- ...i
72
- };
73
- }, {});
74
- return e.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
75
- };
76
- };
77
- return r.scopeName = n.scopeName, r;
78
- }
79
- //#endregion
80
- export { n as createContext2, r as createContextScope };