@inspirare/design-system 0.0.21 → 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 (155) 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/package.json +1 -1
  47. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -359
  48. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -328
  49. 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
  50. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
  51. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -106
  52. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +0 -6
  53. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +0 -8
  54. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +0 -195
  55. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -119
  56. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +0 -20
  57. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -31
  58. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +0 -73
  59. package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -158
  60. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -97
  61. package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +0 -62
  62. package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
  63. package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -240
  64. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +0 -80
  65. package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +0 -225
  66. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
  67. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -108
  68. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -225
  69. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -22
  70. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -146
  71. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -161
  72. 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
  73. package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +0 -16
  74. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +0 -563
  75. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +0 -312
  76. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -553
  77. package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +0 -199
  78. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +0 -203
  79. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
  80. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +0 -85
  81. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +0 -41
  82. package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +0 -71
  83. package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -249
  84. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -154
  85. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +0 -727
  86. package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +0 -23
  87. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +0 -404
  88. 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
  89. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +0 -138
  90. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +0 -120
  91. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -125
  92. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +0 -30
  93. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -351
  94. package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  95. package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -45
  96. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  97. 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
  98. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -5
  99. package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
  100. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +0 -29
  101. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -27
  102. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -46
  103. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -33
  104. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
  105. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -70
  106. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -4
  107. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
  108. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
  109. 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
  110. 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
  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/UI.js +0 -52
  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/aggresiveCapture.js +0 -13
  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/handleScroll.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/medium.js +0 -5
  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/sidecar.js +0 -7
  116. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  117. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  118. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
  119. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -28
  120. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -19
  121. 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
  122. 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
  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/useRef.js +0 -22
  124. 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
  125. 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
  126. package/dist/src/components/ui/accordion.js +0 -44
  127. package/dist/src/components/ui/alert-dialog.js +0 -61
  128. package/dist/src/components/ui/aspect-ratio.js +0 -6
  129. package/dist/src/components/ui/avatar.js +0 -29
  130. package/dist/src/components/ui/breadcrumb.js +0 -60
  131. package/dist/src/components/ui/button-group.js +0 -38
  132. package/dist/src/components/ui/collapsible.js +0 -26
  133. package/dist/src/components/ui/form.js +0 -76
  134. package/dist/src/components/ui/item.js +0 -116
  135. package/dist/src/components/ui/menubar.js +0 -105
  136. package/dist/src/components/ui/navigation-menu.js +0 -58
  137. package/dist/src/components/ui/popover.js +0 -36
  138. package/dist/src/components/ui/progress.js +0 -20
  139. package/dist/src/components/ui/toggle-group.js +0 -44
  140. package/dist/src/components/ui/tooltip.js +0 -37
  141. /package/dist/{src/components → components}/ui/accessibility-improvements.js +0 -0
  142. /package/dist/{src/components → components}/ui/card.js +0 -0
  143. /package/dist/{src/components → components}/ui/chart.js +0 -0
  144. /package/dist/{src/components → components}/ui/color-picker.js +0 -0
  145. /package/dist/{src/components → components}/ui/drawer.js +0 -0
  146. /package/dist/{src/components → components}/ui/input.js +0 -0
  147. /package/dist/{src/components → components}/ui/kbd.js +0 -0
  148. /package/dist/{src/components → components}/ui/scroll-area.js +0 -0
  149. /package/dist/{src/components → components}/ui/skeleton.js +0 -0
  150. /package/dist/{src/components → components}/ui/sonner.js +0 -0
  151. /package/dist/{src/components → components}/ui/table.js +0 -0
  152. /package/dist/{src/components → components}/ui/textarea.js +0 -0
  153. /package/dist/{src/hooks → hooks}/use-mobile.js +0 -0
  154. /package/dist/{src/index.js → index.js} +0 -0
  155. /package/dist/{src/lib → lib}/utils.js +0 -0
@@ -1,212 +0,0 @@
1
- import "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
2
- import { arrow as e, computePosition as t, flip as n, hide as r, limitShift as i, offset as a, shift as o, size as s } from "../../../../../@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
3
- import * as c from "react";
4
- import { useLayoutEffect as l } from "react";
5
- import * as u from "react-dom";
6
- //#region node_modules/.pnpm/@floating-ui+react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
7
- var d = typeof document < "u" ? l : function() {};
8
- function f(e, t) {
9
- if (e === t) return !0;
10
- if (typeof e != typeof t) return !1;
11
- if (typeof e == "function" && e.toString() === t.toString()) return !0;
12
- let n, r, i;
13
- if (e && t && typeof e == "object") {
14
- if (Array.isArray(e)) {
15
- if (n = e.length, n !== t.length) return !1;
16
- for (r = n; r-- !== 0;) if (!f(e[r], t[r])) return !1;
17
- return !0;
18
- }
19
- if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
20
- for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
21
- for (r = n; r-- !== 0;) {
22
- let n = i[r];
23
- if (!(n === "_owner" && e.$$typeof) && !f(e[n], t[n])) return !1;
24
- }
25
- return !0;
26
- }
27
- return e !== e && t !== t;
28
- }
29
- function p(e) {
30
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
31
- }
32
- function m(e, t) {
33
- let n = p(e);
34
- return Math.round(t * n) / n;
35
- }
36
- function h(e) {
37
- let t = c.useRef(e);
38
- return d(() => {
39
- t.current = e;
40
- }), t;
41
- }
42
- function g(e) {
43
- e === void 0 && (e = {});
44
- let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: l = !0, whileElementsMounted: g, open: _ } = e, [v, y] = c.useState({
45
- x: 0,
46
- y: 0,
47
- strategy: r,
48
- placement: n,
49
- middlewareData: {},
50
- isPositioned: !1
51
- }), [b, x] = c.useState(i);
52
- f(b, i) || x(i);
53
- let [S, C] = c.useState(null), [w, T] = c.useState(null), E = c.useCallback((e) => {
54
- e !== A.current && (A.current = e, C(e));
55
- }, []), D = c.useCallback((e) => {
56
- e !== j.current && (j.current = e, T(e));
57
- }, []), O = o || S, k = s || w, A = c.useRef(null), j = c.useRef(null), M = c.useRef(v), N = g != null, P = h(g), F = h(a), I = h(_), L = c.useCallback(() => {
58
- if (!A.current || !j.current) return;
59
- let e = {
60
- placement: n,
61
- strategy: r,
62
- middleware: b
63
- };
64
- F.current && (e.platform = F.current), t(A.current, j.current, e).then((e) => {
65
- let t = {
66
- ...e,
67
- isPositioned: I.current !== !1
68
- };
69
- R.current && !f(M.current, t) && (M.current = t, u.flushSync(() => {
70
- y(t);
71
- }));
72
- });
73
- }, [
74
- b,
75
- n,
76
- r,
77
- F,
78
- I
79
- ]);
80
- d(() => {
81
- _ === !1 && M.current.isPositioned && (M.current.isPositioned = !1, y((e) => ({
82
- ...e,
83
- isPositioned: !1
84
- })));
85
- }, [_]);
86
- let R = c.useRef(!1);
87
- d(() => (R.current = !0, () => {
88
- R.current = !1;
89
- }), []), d(() => {
90
- if (O && (A.current = O), k && (j.current = k), O && k) {
91
- if (P.current) return P.current(O, k, L);
92
- L();
93
- }
94
- }, [
95
- O,
96
- k,
97
- L,
98
- P,
99
- N
100
- ]);
101
- let z = c.useMemo(() => ({
102
- reference: A,
103
- floating: j,
104
- setReference: E,
105
- setFloating: D
106
- }), [E, D]), B = c.useMemo(() => ({
107
- reference: O,
108
- floating: k
109
- }), [O, k]), V = c.useMemo(() => {
110
- let e = {
111
- position: r,
112
- left: 0,
113
- top: 0
114
- };
115
- if (!B.floating) return e;
116
- let t = m(B.floating, v.x), n = m(B.floating, v.y);
117
- return l ? {
118
- ...e,
119
- transform: "translate(" + t + "px, " + n + "px)",
120
- ...p(B.floating) >= 1.5 && { willChange: "transform" }
121
- } : {
122
- position: r,
123
- left: t,
124
- top: n
125
- };
126
- }, [
127
- r,
128
- l,
129
- B.floating,
130
- v.x,
131
- v.y
132
- ]);
133
- return c.useMemo(() => ({
134
- ...v,
135
- update: L,
136
- refs: z,
137
- elements: B,
138
- floatingStyles: V
139
- }), [
140
- v,
141
- L,
142
- z,
143
- B,
144
- V
145
- ]);
146
- }
147
- var _ = (t) => {
148
- function n(e) {
149
- return {}.hasOwnProperty.call(e, "current");
150
- }
151
- return {
152
- name: "arrow",
153
- options: t,
154
- fn(r) {
155
- let { element: i, padding: a } = typeof t == "function" ? t(r) : t;
156
- return i && n(i) ? i.current == null ? {} : e({
157
- element: i.current,
158
- padding: a
159
- }).fn(r) : i ? e({
160
- element: i,
161
- padding: a
162
- }).fn(r) : {};
163
- }
164
- };
165
- }, v = (e, t) => {
166
- let n = a(e);
167
- return {
168
- name: n.name,
169
- fn: n.fn,
170
- options: [e, t]
171
- };
172
- }, y = (e, t) => {
173
- let n = o(e);
174
- return {
175
- name: n.name,
176
- fn: n.fn,
177
- options: [e, t]
178
- };
179
- }, b = (e, t) => ({
180
- fn: i(e).fn,
181
- options: [e, t]
182
- }), x = (e, t) => {
183
- let r = n(e);
184
- return {
185
- name: r.name,
186
- fn: r.fn,
187
- options: [e, t]
188
- };
189
- }, S = (e, t) => {
190
- let n = s(e);
191
- return {
192
- name: n.name,
193
- fn: n.fn,
194
- options: [e, t]
195
- };
196
- }, C = (e, t) => {
197
- let n = r(e);
198
- return {
199
- name: n.name,
200
- fn: n.fn,
201
- options: [e, t]
202
- };
203
- }, w = (e, t) => {
204
- let n = _(e);
205
- return {
206
- name: n.name,
207
- fn: n.fn,
208
- options: [e, t]
209
- };
210
- };
211
- //#endregion
212
- export { w as arrow, x as flip, C as hide, b as limitShift, v as offset, y as shift, S as size, g as useFloating };
@@ -1,97 +0,0 @@
1
- //#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
2
- function e() {
3
- return typeof window < "u";
4
- }
5
- function t(e) {
6
- return i(e) ? (e.nodeName || "").toLowerCase() : "#document";
7
- }
8
- function n(e) {
9
- var t;
10
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
11
- }
12
- function r(e) {
13
- return ((i(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
14
- }
15
- function i(t) {
16
- return e() ? t instanceof Node || t instanceof n(t).Node : !1;
17
- }
18
- function a(t) {
19
- return e() ? t instanceof Element || t instanceof n(t).Element : !1;
20
- }
21
- function o(t) {
22
- return e() ? t instanceof HTMLElement || t instanceof n(t).HTMLElement : !1;
23
- }
24
- function s(t) {
25
- return !e() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof n(t).ShadowRoot;
26
- }
27
- function c(e) {
28
- let { overflow: t, overflowX: n, overflowY: r, display: i } = y(e);
29
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
30
- }
31
- function l(e) {
32
- return /^(table|td|th)$/.test(t(e));
33
- }
34
- function u(e) {
35
- try {
36
- if (e.matches(":popover-open")) return !0;
37
- } catch {}
38
- try {
39
- return e.matches(":modal");
40
- } catch {
41
- return !1;
42
- }
43
- }
44
- var d = /transform|translate|scale|rotate|perspective|filter/, f = /paint|layout|strict|content/, p = (e) => !!e && e !== "none", m;
45
- function h(e) {
46
- let t = a(e) ? y(e) : e;
47
- return p(t.transform) || p(t.translate) || p(t.scale) || p(t.rotate) || p(t.perspective) || !_() && (p(t.backdropFilter) || p(t.filter)) || d.test(t.willChange || "") || f.test(t.contain || "");
48
- }
49
- function g(e) {
50
- let t = x(e);
51
- for (; o(t) && !v(t);) {
52
- if (h(t)) return t;
53
- if (u(t)) return null;
54
- t = x(t);
55
- }
56
- return null;
57
- }
58
- function _() {
59
- return m ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), m;
60
- }
61
- function v(e) {
62
- return /^(html|body|#document)$/.test(t(e));
63
- }
64
- function y(e) {
65
- return n(e).getComputedStyle(e);
66
- }
67
- function b(e) {
68
- return a(e) ? {
69
- scrollLeft: e.scrollLeft,
70
- scrollTop: e.scrollTop
71
- } : {
72
- scrollLeft: e.scrollX,
73
- scrollTop: e.scrollY
74
- };
75
- }
76
- function x(e) {
77
- if (t(e) === "html") return e;
78
- let n = e.assignedSlot || e.parentNode || s(e) && e.host || r(e);
79
- return s(n) ? n.host : n;
80
- }
81
- function S(e) {
82
- let t = x(e);
83
- return v(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : o(t) && c(t) ? t : S(t);
84
- }
85
- function C(e, t, r) {
86
- t === void 0 && (t = []), r === void 0 && (r = !0);
87
- let i = S(e), a = i === e.ownerDocument?.body, o = n(i);
88
- if (a) {
89
- let e = w(o);
90
- return t.concat(o, o.visualViewport || [], c(i) ? i : [], e && r ? C(e) : []);
91
- } else return t.concat(i, C(i, [], r));
92
- }
93
- function w(e) {
94
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
95
- }
96
- //#endregion
97
- export { y as getComputedStyle, g as getContainingBlock, r as getDocumentElement, w as getFrameElement, t as getNodeName, b as getNodeScroll, C as getOverflowAncestors, x as getParentNode, n as getWindow, h as isContainingBlock, a as isElement, o as isHTMLElement, v as isLastTraversableNode, c as isOverflowElement, l as isTableElement, u as isTopLayer, _ as isWebKit };
@@ -1,106 +0,0 @@
1
- //#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2
- var e = [
3
- "top",
4
- "right",
5
- "bottom",
6
- "left"
7
- ], t = Math.min, n = Math.max, r = Math.round, i = Math.floor, a = (e) => ({
8
- x: e,
9
- y: e
10
- }), o = {
11
- left: "right",
12
- right: "left",
13
- bottom: "top",
14
- top: "bottom"
15
- };
16
- function s(e, r, i) {
17
- return n(e, t(r, i));
18
- }
19
- function c(e, t) {
20
- return typeof e == "function" ? e(t) : e;
21
- }
22
- function l(e) {
23
- return e.split("-")[0];
24
- }
25
- function u(e) {
26
- return e.split("-")[1];
27
- }
28
- function d(e) {
29
- return e === "x" ? "y" : "x";
30
- }
31
- function f(e) {
32
- return e === "y" ? "height" : "width";
33
- }
34
- function p(e) {
35
- let t = e[0];
36
- return t === "t" || t === "b" ? "y" : "x";
37
- }
38
- function m(e) {
39
- return d(p(e));
40
- }
41
- function h(e, t, n) {
42
- n === void 0 && (n = !1);
43
- let r = u(e), i = m(e), a = f(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
44
- return t.reference[a] > t.floating[a] && (o = w(o)), [o, w(o)];
45
- }
46
- function g(e) {
47
- let t = w(e);
48
- return [
49
- _(e),
50
- t,
51
- _(t)
52
- ];
53
- }
54
- function _(e) {
55
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
56
- }
57
- var v = ["left", "right"], y = ["right", "left"], b = ["top", "bottom"], x = ["bottom", "top"];
58
- function S(e, t, n) {
59
- switch (e) {
60
- case "top":
61
- case "bottom": return n ? t ? y : v : t ? v : y;
62
- case "left":
63
- case "right": return t ? b : x;
64
- default: return [];
65
- }
66
- }
67
- function C(e, t, n, r) {
68
- let i = u(e), a = S(l(e), n === "start", r);
69
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(_)))), a;
70
- }
71
- function w(e) {
72
- let t = l(e);
73
- return o[t] + e.slice(t.length);
74
- }
75
- function T(e) {
76
- return {
77
- top: 0,
78
- right: 0,
79
- bottom: 0,
80
- left: 0,
81
- ...e
82
- };
83
- }
84
- function E(e) {
85
- return typeof e == "number" ? {
86
- top: e,
87
- right: e,
88
- bottom: e,
89
- left: e
90
- } : T(e);
91
- }
92
- function D(e) {
93
- let { x: t, y: n, width: r, height: i } = e;
94
- return {
95
- width: r,
96
- height: i,
97
- top: n,
98
- left: t,
99
- right: t + r,
100
- bottom: n + i,
101
- x: t,
102
- y: n
103
- };
104
- }
105
- //#endregion
106
- export { s as clamp, a as createCoords, c as evaluate, i as floor, u as getAlignment, m as getAlignmentAxis, h as getAlignmentSides, f as getAxisLength, g as getExpandedPlacements, d as getOppositeAxis, C as getOppositeAxisPlacements, w as getOppositePlacement, E as getPaddingObject, l as getSide, p as getSideAxis, n as max, t as min, D as rectToClientRect, r as round, e as sides };
@@ -1,6 +0,0 @@
1
- //#region node_modules/.pnpm/@radix-ui+number@1.1.2/node_modules/@radix-ui/number/dist/index.mjs
2
- function e(e, [t, n]) {
3
- return Math.min(n, Math.max(t, e));
4
- }
5
- //#endregion
6
- export { e as clamp };
@@ -1,8 +0,0 @@
1
- typeof window < "u" && window.document && window.document.createElement;
2
- function e(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
3
- return function(r) {
4
- if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
5
- };
6
- }
7
- //#endregion
8
- export { e as composeEventHandlers };
@@ -1,195 +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 { createCollection as n } from "../../../../../@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js";
5
- import { composeEventHandlers as r } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/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 { useId as o } 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";
9
- import { Content as s, Root as c, Trigger as l, createCollapsibleScope as u } from "../../../../../@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js";
10
- import { useDirection as d } from "../../../../../@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js";
11
- import * as f from "react";
12
- import { jsx as p } from "react/jsx-runtime";
13
- //#region node_modules/.pnpm/@radix-ui+react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.mjs
14
- var m = "Accordion", h = [
15
- "Home",
16
- "End",
17
- "ArrowDown",
18
- "ArrowUp",
19
- "ArrowLeft",
20
- "ArrowRight"
21
- ], [g, _, v] = n(m), [y, b] = e(m, [v, u]), x = u(), S = f.forwardRef((e, t) => {
22
- let { type: n, ...r } = e, i = r, a = r;
23
- return /* @__PURE__ */ p(g.Provider, {
24
- scope: e.__scopeAccordion,
25
- children: n === "multiple" ? /* @__PURE__ */ p(O, {
26
- ...a,
27
- ref: t
28
- }) : /* @__PURE__ */ p(D, {
29
- ...i,
30
- ref: t
31
- })
32
- });
33
- });
34
- S.displayName = m;
35
- var [C, w] = y(m), [T, E] = y(m, { collapsible: !1 }), D = f.forwardRef((e, t) => {
36
- let { value: n, defaultValue: r, onValueChange: a = () => {}, collapsible: o = !1, ...s } = e, [c, l] = i({
37
- prop: n,
38
- defaultProp: r ?? "",
39
- onChange: a,
40
- caller: m
41
- });
42
- return /* @__PURE__ */ p(C, {
43
- scope: e.__scopeAccordion,
44
- value: f.useMemo(() => c ? [c] : [], [c]),
45
- onItemOpen: l,
46
- onItemClose: f.useCallback(() => o && l(""), [o, l]),
47
- children: /* @__PURE__ */ p(T, {
48
- scope: e.__scopeAccordion,
49
- collapsible: o,
50
- children: /* @__PURE__ */ p(j, {
51
- ...s,
52
- ref: t
53
- })
54
- })
55
- });
56
- }), O = f.forwardRef((e, t) => {
57
- let { value: n, defaultValue: r, onValueChange: a = () => {}, ...o } = e, [s, c] = i({
58
- prop: n,
59
- defaultProp: r ?? [],
60
- onChange: a,
61
- caller: m
62
- }), l = f.useCallback((e) => c((t = []) => [...t, e]), [c]), u = f.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
63
- return /* @__PURE__ */ p(C, {
64
- scope: e.__scopeAccordion,
65
- value: s,
66
- onItemOpen: l,
67
- onItemClose: u,
68
- children: /* @__PURE__ */ p(T, {
69
- scope: e.__scopeAccordion,
70
- collapsible: !0,
71
- children: /* @__PURE__ */ p(j, {
72
- ...o,
73
- ref: t
74
- })
75
- })
76
- });
77
- }), [k, A] = y(m), j = f.forwardRef((e, n) => {
78
- let { __scopeAccordion: i, disabled: o, dir: s, orientation: c = "vertical", ...l } = e, u = t(f.useRef(null), n), m = _(i), v = d(s) === "ltr", y = r(e.onKeyDown, (e) => {
79
- if (!h.includes(e.key)) return;
80
- let t = e.target, n = m().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
81
- if (r === -1) return;
82
- e.preventDefault();
83
- let a = r, o = i - 1, s = () => {
84
- a = r + 1, a > o && (a = 0);
85
- }, l = () => {
86
- a = r - 1, a < 0 && (a = o);
87
- };
88
- switch (e.key) {
89
- case "Home":
90
- a = 0;
91
- break;
92
- case "End":
93
- a = o;
94
- break;
95
- case "ArrowRight":
96
- c === "horizontal" && (v ? s() : l());
97
- break;
98
- case "ArrowDown":
99
- c === "vertical" && s();
100
- break;
101
- case "ArrowLeft":
102
- c === "horizontal" && (v ? l() : s());
103
- break;
104
- case "ArrowUp":
105
- c === "vertical" && l();
106
- break;
107
- }
108
- n[a % i].ref.current?.focus();
109
- });
110
- return /* @__PURE__ */ p(k, {
111
- scope: i,
112
- disabled: o,
113
- direction: s,
114
- orientation: c,
115
- children: /* @__PURE__ */ p(g.Slot, {
116
- scope: i,
117
- children: /* @__PURE__ */ p(a.div, {
118
- ...l,
119
- "data-orientation": c,
120
- ref: u,
121
- onKeyDown: o ? void 0 : y
122
- })
123
- })
124
- });
125
- }), M = "AccordionItem", [N, P] = y(M), F = f.forwardRef((e, t) => {
126
- let { __scopeAccordion: n, value: r, ...i } = e, a = A(M, n), s = w(M, n), l = x(n), u = o(), d = r && s.value.includes(r) || !1, f = a.disabled || e.disabled;
127
- return /* @__PURE__ */ p(N, {
128
- scope: n,
129
- open: d,
130
- disabled: f,
131
- triggerId: u,
132
- children: /* @__PURE__ */ p(c, {
133
- "data-orientation": a.orientation,
134
- "data-state": H(d),
135
- ...l,
136
- ...i,
137
- ref: t,
138
- disabled: f,
139
- open: d,
140
- onOpenChange: (e) => {
141
- e ? s.onItemOpen(r) : s.onItemClose(r);
142
- }
143
- })
144
- });
145
- });
146
- F.displayName = M;
147
- var I = "AccordionHeader", L = f.forwardRef((e, t) => {
148
- let { __scopeAccordion: n, ...r } = e, i = A(m, n), o = P(I, n);
149
- return /* @__PURE__ */ p(a.h3, {
150
- "data-orientation": i.orientation,
151
- "data-state": H(o.open),
152
- "data-disabled": o.disabled ? "" : void 0,
153
- ...r,
154
- ref: t
155
- });
156
- });
157
- L.displayName = I;
158
- var R = "AccordionTrigger", z = f.forwardRef((e, t) => {
159
- let { __scopeAccordion: n, ...r } = e, i = A(m, n), a = P(R, n), o = E(R, n), s = x(n);
160
- return /* @__PURE__ */ p(g.ItemSlot, {
161
- scope: n,
162
- children: /* @__PURE__ */ p(l, {
163
- "aria-disabled": a.open && !o.collapsible || void 0,
164
- "data-orientation": i.orientation,
165
- id: a.triggerId,
166
- ...s,
167
- ...r,
168
- ref: t
169
- })
170
- });
171
- });
172
- z.displayName = R;
173
- var B = "AccordionContent", V = f.forwardRef((e, t) => {
174
- let { __scopeAccordion: n, ...r } = e, i = A(m, n), a = P(B, n), o = x(n);
175
- return /* @__PURE__ */ p(s, {
176
- role: "region",
177
- "aria-labelledby": a.triggerId,
178
- "data-orientation": i.orientation,
179
- ...o,
180
- ...r,
181
- ref: t,
182
- style: {
183
- "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
184
- "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
185
- ...e.style
186
- }
187
- });
188
- });
189
- V.displayName = B;
190
- function H(e) {
191
- return e ? "open" : "closed";
192
- }
193
- var U = S, W = F, G = L, K = z, q = V;
194
- //#endregion
195
- export { q as Content2, G as Header, W as Item, U as Root2, K as Trigger2 };