@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,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 };
@@ -1,119 +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 { createSlottable 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 { composeEventHandlers as r } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
6
- import { Close as i, Content as a, Description as o, Overlay as s, Portal as c, Root as l, Title as u, Trigger as d, WarningProvider as f, createDialogScope as p } from "../../../../../@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js";
7
- import * as m from "react";
8
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
9
- //#region node_modules/.pnpm/@radix-ui+react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
10
- var _ = "AlertDialog", [v, y] = e(_, [p]), b = p(), x = (e) => {
11
- let { __scopeAlertDialog: t, ...n } = e;
12
- return /* @__PURE__ */ h(l, {
13
- ...b(t),
14
- ...n,
15
- modal: !0
16
- });
17
- };
18
- x.displayName = _;
19
- var S = "AlertDialogTrigger", C = m.forwardRef((e, t) => {
20
- let { __scopeAlertDialog: n, ...r } = e;
21
- return /* @__PURE__ */ h(d, {
22
- ...b(n),
23
- ...r,
24
- ref: t
25
- });
26
- });
27
- C.displayName = S;
28
- var w = "AlertDialogPortal", T = (e) => {
29
- let { __scopeAlertDialog: t, ...n } = e;
30
- return /* @__PURE__ */ h(c, {
31
- ...b(t),
32
- ...n
33
- });
34
- };
35
- T.displayName = w;
36
- var E = "AlertDialogOverlay", D = m.forwardRef((e, t) => {
37
- let { __scopeAlertDialog: n, ...r } = e;
38
- return /* @__PURE__ */ h(s, {
39
- ...b(n),
40
- ...r,
41
- ref: t
42
- });
43
- });
44
- D.displayName = E;
45
- var O = "AlertDialogContent", [k, A] = v(O), j = n("AlertDialogContent"), M = m.forwardRef((e, n) => {
46
- let { __scopeAlertDialog: i, children: o, ...s } = e, c = b(i), l = m.useRef(null), u = t(n, l), d = m.useRef(null);
47
- return /* @__PURE__ */ h(f, {
48
- contentName: O,
49
- titleName: N,
50
- docsSlug: "alert-dialog",
51
- children: /* @__PURE__ */ h(k, {
52
- scope: i,
53
- cancelRef: d,
54
- children: /* @__PURE__ */ g(a, {
55
- role: "alertdialog",
56
- ...c,
57
- ...s,
58
- ref: u,
59
- onOpenAutoFocus: r(s.onOpenAutoFocus, (e) => {
60
- e.preventDefault(), d.current?.focus({ preventScroll: !0 });
61
- }),
62
- onPointerDownOutside: (e) => e.preventDefault(),
63
- onInteractOutside: (e) => e.preventDefault(),
64
- children: [/* @__PURE__ */ h(j, { children: o }), /* @__PURE__ */ h(V, { contentRef: l })]
65
- })
66
- })
67
- });
68
- });
69
- M.displayName = O;
70
- var N = "AlertDialogTitle", P = m.forwardRef((e, t) => {
71
- let { __scopeAlertDialog: n, ...r } = e;
72
- return /* @__PURE__ */ h(u, {
73
- ...b(n),
74
- ...r,
75
- ref: t
76
- });
77
- });
78
- P.displayName = N;
79
- var F = "AlertDialogDescription", I = m.forwardRef((e, t) => {
80
- let { __scopeAlertDialog: n, ...r } = e;
81
- return /* @__PURE__ */ h(o, {
82
- ...b(n),
83
- ...r,
84
- ref: t
85
- });
86
- });
87
- I.displayName = F;
88
- var L = "AlertDialogAction", R = m.forwardRef((e, t) => {
89
- let { __scopeAlertDialog: n, ...r } = e;
90
- return /* @__PURE__ */ h(i, {
91
- ...b(n),
92
- ...r,
93
- ref: t
94
- });
95
- });
96
- R.displayName = L;
97
- var z = "AlertDialogCancel", B = m.forwardRef((e, n) => {
98
- let { __scopeAlertDialog: r, ...a } = e, { cancelRef: o } = A(z, r), s = b(r), c = t(n, o);
99
- return /* @__PURE__ */ h(i, {
100
- ...s,
101
- ...a,
102
- ref: c
103
- });
104
- });
105
- B.displayName = z;
106
- var V = ({ contentRef: e }) => {
107
- let t = `\`${O}\` requires a description for the component to be accessible for screen reader users.
108
-
109
- You can add a description to the \`${O}\` by passing a \`${F}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
110
-
111
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${O}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
112
-
113
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
114
- return m.useEffect(() => {
115
- document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
116
- }, [t, e]), null;
117
- }, H = x, U = C, W = T, G = D, K = M, q = R, J = B, Y = P, X = I;
118
- //#endregion
119
- export { q as Action, J as Cancel, K as Content2, X as Description2, G as Overlay2, W as Portal2, H as Root2, Y as Title2, U as Trigger2 };
@@ -1,20 +0,0 @@
1
- import { Primitive as e } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
2
- import * as t from "react";
3
- import { jsx as n } from "react/jsx-runtime";
4
- //#region node_modules/.pnpm/@radix-ui+react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.mjs
5
- var r = "Arrow", i = t.forwardRef((t, r) => {
6
- let { children: i, width: a = 10, height: o = 5, ...s } = t;
7
- return /* @__PURE__ */ n(e.svg, {
8
- ...s,
9
- ref: r,
10
- width: a,
11
- height: o,
12
- viewBox: "0 0 30 10",
13
- preserveAspectRatio: "none",
14
- children: t.asChild ? i : /* @__PURE__ */ n("polygon", { points: "0,0 30,0 15,10" })
15
- });
16
- });
17
- i.displayName = r;
18
- var a = i;
19
- //#endregion
20
- export { a as Root };
@@ -1,31 +0,0 @@
1
- import { Primitive as e } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
2
- import * as t from "react";
3
- import { jsx as n } from "react/jsx-runtime";
4
- //#region node_modules/.pnpm/@radix-ui+react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
5
- var r = "AspectRatio", i = t.forwardRef((t, r) => {
6
- let { ratio: i = 1 / 1, style: a, ...o } = t;
7
- return /* @__PURE__ */ n("div", {
8
- style: {
9
- position: "relative",
10
- width: "100%",
11
- paddingBottom: `${100 / i}%`
12
- },
13
- "data-radix-aspect-ratio-wrapper": "",
14
- children: /* @__PURE__ */ n(e.div, {
15
- ...o,
16
- ref: r,
17
- style: {
18
- ...a,
19
- position: "absolute",
20
- top: 0,
21
- right: 0,
22
- bottom: 0,
23
- left: 0
24
- }
25
- })
26
- });
27
- });
28
- i.displayName = r;
29
- var a = i;
30
- //#endregion
31
- export { a as Root };
@@ -1,73 +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 { useLayoutEffect2 as t } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
4
- import { Primitive as n } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
5
- import { useCallbackRef as r } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
6
- import { useIsHydrated2 as i } from "../../../../../@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js";
7
- import * as a from "react";
8
- import { jsx as o } from "react/jsx-runtime";
9
- //#region node_modules/.pnpm/@radix-ui+react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.mjs
10
- var s = "Avatar", [c, l] = e(s), [u, d] = c(s), f = a.forwardRef((e, t) => {
11
- let { __scopeAvatar: r, ...i } = e, [s, c] = a.useState("idle");
12
- return /* @__PURE__ */ o(u, {
13
- scope: r,
14
- imageLoadingStatus: s,
15
- onImageLoadingStatusChange: c,
16
- children: /* @__PURE__ */ o(n.span, {
17
- ...i,
18
- ref: t
19
- })
20
- });
21
- });
22
- f.displayName = s;
23
- var p = "AvatarImage", m = a.forwardRef((e, i) => {
24
- let { __scopeAvatar: a, src: s, onLoadingStatusChange: c = () => {}, ...l } = e, u = d(p, a), f = v(s, l), m = r((e) => {
25
- c(e), u.onImageLoadingStatusChange(e);
26
- });
27
- return t(() => {
28
- f !== "idle" && m(f);
29
- }, [f, m]), f === "loaded" ? /* @__PURE__ */ o(n.img, {
30
- ...l,
31
- ref: i,
32
- src: s
33
- }) : null;
34
- });
35
- m.displayName = p;
36
- var h = "AvatarFallback", g = a.forwardRef((e, t) => {
37
- let { __scopeAvatar: r, delayMs: i, ...s } = e, c = d(h, r), [l, u] = a.useState(i === void 0);
38
- return a.useEffect(() => {
39
- if (i !== void 0) {
40
- let e = window.setTimeout(() => u(!0), i);
41
- return () => window.clearTimeout(e);
42
- }
43
- }, [i]), l && c.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ o(n.span, {
44
- ...s,
45
- ref: t
46
- }) : null;
47
- });
48
- g.displayName = h;
49
- function _(e, t) {
50
- return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
51
- }
52
- function v(e, { referrerPolicy: n, crossOrigin: r }) {
53
- let o = i(), s = a.useRef(null), c = o ? (s.current ||= new window.Image(), s.current) : null, [l, u] = a.useState(() => _(c, e));
54
- return t(() => {
55
- u(_(c, e));
56
- }, [c, e]), t(() => {
57
- let e = (e) => () => {
58
- u(e);
59
- };
60
- if (!c) return;
61
- let t = e("loaded"), i = e("error");
62
- return c.addEventListener("load", t), c.addEventListener("error", i), n && (c.referrerPolicy = n), typeof r == "string" && (c.crossOrigin = r), () => {
63
- c.removeEventListener("load", t), c.removeEventListener("error", i);
64
- };
65
- }, [
66
- c,
67
- r,
68
- n
69
- ]), l;
70
- }
71
- var y = f, b = m, x = g;
72
- //#endregion
73
- export { x as Fallback, b as Image, y as Root };