@inspirare/design-system 0.0.21 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +5 -5
  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,36 +1,36 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
- import { Slider as t, SliderRange as n, SliderThumb as r, SliderTrack as i } from "../../../node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js";
4
- import * as a from "react";
5
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
3
+ import * as t from "react";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ import * as i from "@radix-ui/react-slider";
6
6
  //#region src/components/ui/slider.tsx
7
- function c({ className: c, defaultValue: l, value: u, min: d = 0, max: f = 100, ...p }) {
8
- let m = a.useMemo(() => Array.isArray(u) ? u : Array.isArray(l) ? l : [d, f], [
9
- u,
10
- l,
11
- d,
12
- f
7
+ function a({ className: a, defaultValue: o, value: s, min: c = 0, max: l = 100, ...u }) {
8
+ let d = t.useMemo(() => Array.isArray(s) ? s : Array.isArray(o) ? o : [c, l], [
9
+ s,
10
+ o,
11
+ c,
12
+ l
13
13
  ]);
14
- return /* @__PURE__ */ s(t, {
14
+ return /* @__PURE__ */ r(i.Root, {
15
15
  "data-slot": "slider",
16
- defaultValue: l,
17
- value: u,
18
- min: d,
19
- max: f,
20
- className: e("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", c),
21
- ...p,
22
- children: [/* @__PURE__ */ o(i, {
16
+ defaultValue: o,
17
+ value: s,
18
+ min: c,
19
+ max: l,
20
+ className: e("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", a),
21
+ ...u,
22
+ children: [/* @__PURE__ */ n(i.Track, {
23
23
  "data-slot": "slider-track",
24
24
  className: e("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
25
- children: /* @__PURE__ */ o(n, {
25
+ children: /* @__PURE__ */ n(i.Range, {
26
26
  "data-slot": "slider-range",
27
27
  className: e("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
28
28
  })
29
- }), Array.from({ length: m.length }, (e, t) => /* @__PURE__ */ o(r, {
29
+ }), Array.from({ length: d.length }, (e, t) => /* @__PURE__ */ n(i.Thumb, {
30
30
  "data-slot": "slider-thumb",
31
31
  className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 cursor-pointer rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
32
32
  }, t))]
33
33
  });
34
34
  }
35
35
  //#endregion
36
- export { c as Slider };
36
+ export { a as Slider };
@@ -1,9 +1,9 @@
1
1
  import { cn as e } from "../../lib/utils.js";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { Loader2Icon as n } from "lucide-react";
2
+ import { Loader2Icon as t } from "lucide-react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
4
  //#region src/components/ui/spinner.tsx
5
5
  function r({ className: r, ...i }) {
6
- return /* @__PURE__ */ t(n, {
6
+ return /* @__PURE__ */ n(t, {
7
7
  role: "status",
8
8
  "aria-label": "Loading",
9
9
  className: e("size-4 animate-spin", r),
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
- import { Switch as t, SwitchThumb as n } from "../../../node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js";
4
3
  import "react";
5
- import { jsx as r } from "react/jsx-runtime";
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ import { Switch as n } from "radix-ui";
6
6
  //#region src/components/ui/switch.tsx
7
- function i({ className: i, size: a = "default", ...o }) {
8
- return /* @__PURE__ */ r(t, {
7
+ function r({ className: r, size: i = "default", ...a }) {
8
+ return /* @__PURE__ */ t(n.Root, {
9
9
  "data-slot": "switch",
10
- "data-size": a,
11
- className: e("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80", i),
12
- ...o,
13
- children: /* @__PURE__ */ r(n, {
10
+ "data-size": i,
11
+ className: e("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80", r),
12
+ ...a,
13
+ children: /* @__PURE__ */ t(n.Thumb, {
14
14
  "data-slot": "switch-thumb",
15
15
  className: e("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")
16
16
  })
17
17
  });
18
18
  }
19
19
  //#endregion
20
- export { i as Switch };
20
+ export { r as Switch };
@@ -1,36 +1,36 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
- import { Content as t, List as n, Root2 as r, Trigger as i } from "../../../node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js";
4
3
  import "react";
5
- import { jsx as a } from "react/jsx-runtime";
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ import * as n from "@radix-ui/react-tabs";
6
6
  //#region src/components/ui/tabs.tsx
7
- function o({ className: t, ...n }) {
8
- return /* @__PURE__ */ a(r, {
7
+ function r({ className: r, ...i }) {
8
+ return /* @__PURE__ */ t(n.Root, {
9
9
  "data-slot": "tabs",
10
- className: e("flex flex-col gap-2", t),
11
- ...n
10
+ className: e("flex flex-col gap-2", r),
11
+ ...i
12
12
  });
13
13
  }
14
- function s({ className: t, ...r }) {
15
- return /* @__PURE__ */ a(n, {
14
+ function i({ className: r, ...i }) {
15
+ return /* @__PURE__ */ t(n.List, {
16
16
  "data-slot": "tabs-list",
17
- className: e("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", t),
18
- ...r
17
+ className: e("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", r),
18
+ ...i
19
19
  });
20
20
  }
21
- function c({ className: t, ...n }) {
22
- return /* @__PURE__ */ a(i, {
21
+ function a({ className: r, ...i }) {
22
+ return /* @__PURE__ */ t(n.Trigger, {
23
23
  "data-slot": "tabs-trigger",
24
- className: e("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
25
- ...n
24
+ className: e("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r),
25
+ ...i
26
26
  });
27
27
  }
28
- function l({ className: n, ...r }) {
29
- return /* @__PURE__ */ a(t, {
28
+ function o({ className: r, ...i }) {
29
+ return /* @__PURE__ */ t(n.Content, {
30
30
  "data-slot": "tabs-content",
31
- className: e("flex-1 outline-none", n),
32
- ...r
31
+ className: e("flex-1 outline-none", r),
32
+ ...i
33
33
  });
34
34
  }
35
35
  //#endregion
36
- export { o as Tabs, l as TabsContent, s as TabsList, c as TabsTrigger };
36
+ export { r as Tabs, o as TabsContent, i as TabsList, a as TabsTrigger };
@@ -2,17 +2,17 @@
2
2
  import { cn as e } from "../../lib/utils.js";
3
3
  import { Button as t } from "./button.js";
4
4
  import { memo as n, useCallback as r, useEffect as i, useState as a } from "react";
5
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
- import { Moon as c, Sun as l } from "lucide-react";
5
+ import { Moon as o, Sun as s } from "lucide-react";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  import { useTheme as u } from "next-themes";
8
8
  //#region src/components/ui/theme-toggle.tsx
9
9
  var d = n(function({ className: n, showLabel: d }) {
10
10
  let { theme: f, setTheme: p } = u(), [m, h] = a(!1);
11
11
  return i(() => {
12
12
  h(!0);
13
- }, []), /* @__PURE__ */ o("div", {
13
+ }, []), /* @__PURE__ */ c("div", {
14
14
  className: "relative",
15
- children: /* @__PURE__ */ o(t, {
15
+ children: /* @__PURE__ */ c(t, {
16
16
  variant: "ghost",
17
17
  size: "sm",
18
18
  onClick: r(() => {
@@ -33,18 +33,18 @@ var d = n(function({ className: n, showLabel: d }) {
33
33
  default: return "Tema escuro";
34
34
  }
35
35
  })(),
36
- children: /* @__PURE__ */ s("div", {
36
+ children: /* @__PURE__ */ l("div", {
37
37
  className: e("flex items-center gap-1.5", !d && "justify-center"),
38
- children: [/* @__PURE__ */ o("div", {
38
+ children: [/* @__PURE__ */ c("div", {
39
39
  className: "transition-transform duration-300 hover:rotate-12",
40
40
  children: (() => {
41
- if (!m) return /* @__PURE__ */ o(c, { className: "h-4 w-4" });
41
+ if (!m) return /* @__PURE__ */ c(o, { className: "h-4 w-4" });
42
42
  switch (f) {
43
- case "light": return /* @__PURE__ */ o(l, { className: "h-4 w-4" });
44
- default: return /* @__PURE__ */ o(c, { className: "h-4 w-4" });
43
+ case "light": return /* @__PURE__ */ c(s, { className: "h-4 w-4" });
44
+ default: return /* @__PURE__ */ c(o, { className: "h-4 w-4" });
45
45
  }
46
46
  })()
47
- }), d && /* @__PURE__ */ o("span", {
47
+ }), d && /* @__PURE__ */ c("span", {
48
48
  className: "text-sm font-medium hidden lg:inline",
49
49
  children: "Tema"
50
50
  })]
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.js";
3
+ import { toggleVariants as t } from "./toggle.js";
4
+ import * as n from "react";
5
+ import { jsx as r } from "react/jsx-runtime";
6
+ import "class-variance-authority";
7
+ import * as i from "@radix-ui/react-toggle-group";
8
+ //#region src/components/ui/toggle-group.tsx
9
+ var a = n.createContext({
10
+ size: "default",
11
+ variant: "default"
12
+ });
13
+ function o({ className: t, variant: n, size: o, children: s, ...c }) {
14
+ return /* @__PURE__ */ r(i.Root, {
15
+ "data-slot": "toggle-group",
16
+ "data-variant": n,
17
+ "data-size": o,
18
+ className: e("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs", t),
19
+ ...c,
20
+ children: /* @__PURE__ */ r(a.Provider, {
21
+ value: {
22
+ variant: n,
23
+ size: o
24
+ },
25
+ children: s
26
+ })
27
+ });
28
+ }
29
+ function s({ className: o, children: s, variant: c, size: l, ...u }) {
30
+ let d = n.useContext(a);
31
+ return /* @__PURE__ */ r(i.Item, {
32
+ "data-slot": "toggle-group-item",
33
+ "data-variant": d.variant || c,
34
+ "data-size": d.size || l,
35
+ className: e(t({
36
+ variant: d.variant || c,
37
+ size: d.size || l
38
+ }), "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", o),
39
+ ...u,
40
+ children: s
41
+ });
42
+ }
43
+ //#endregion
44
+ export { o as ToggleGroup, s as ToggleGroupItem };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
- import { cva as t } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
4
- import { Root as n } from "../../../node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js";
5
3
  import "react";
6
- import { jsx as r } from "react/jsx-runtime";
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ import { cva as n } from "class-variance-authority";
6
+ import * as r from "@radix-ui/react-toggle";
7
7
  //#region src/components/ui/toggle.tsx
8
- var i = t("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium cursor-pointer hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
8
+ var i = n("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium cursor-pointer hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
9
9
  variants: {
10
10
  variant: {
11
11
  default: "bg-transparent",
@@ -22,13 +22,13 @@ var i = t("inline-flex items-center justify-center gap-2 rounded-md text-sm font
22
22
  size: "default"
23
23
  }
24
24
  });
25
- function a({ className: t, variant: a, size: o, ...s }) {
26
- return /* @__PURE__ */ r(n, {
25
+ function a({ className: n, variant: a, size: o, ...s }) {
26
+ return /* @__PURE__ */ t(r.Root, {
27
27
  "data-slot": "toggle",
28
28
  className: e(i({
29
29
  variant: a,
30
30
  size: o,
31
- className: t
31
+ className: n
32
32
  })),
33
33
  ...s
34
34
  });
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.js";
3
+ import "react";
4
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
+ import * as r from "@radix-ui/react-tooltip";
6
+ //#region src/components/ui/tooltip.tsx
7
+ function i({ delayDuration: e = 0, ...n }) {
8
+ return /* @__PURE__ */ t(r.Provider, {
9
+ "data-slot": "tooltip-provider",
10
+ delayDuration: e,
11
+ ...n
12
+ });
13
+ }
14
+ function a({ ...e }) {
15
+ return /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(r.Root, {
16
+ "data-slot": "tooltip",
17
+ ...e
18
+ }) });
19
+ }
20
+ function o({ className: n, ...i }) {
21
+ return /* @__PURE__ */ t(r.Trigger, {
22
+ "data-slot": "tooltip-trigger",
23
+ className: e("cursor-pointer", n),
24
+ ...i
25
+ });
26
+ }
27
+ function s({ className: i, sideOffset: a = 0, children: o, ...s }) {
28
+ return /* @__PURE__ */ t(r.Portal, { children: /* @__PURE__ */ n(r.Content, {
29
+ "data-slot": "tooltip-content",
30
+ sideOffset: a,
31
+ className: e("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", i),
32
+ ...s,
33
+ children: [o, /* @__PURE__ */ t(r.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
34
+ }) });
35
+ }
36
+ //#endregion
37
+ export { a as Tooltip, s as TooltipContent, i as TooltipProvider, o as TooltipTrigger };
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@inspirare/design-system",
3
3
  "private": false,
4
- "version": "0.0.21",
4
+ "version": "0.0.23",
5
5
  "type": "module",
6
6
  "sideEffects": [
7
7
  "*.css"
8
8
  ],
9
- "main": "./dist/src/index.js",
10
- "module": "./dist/src/index.js",
9
+ "main": "./dist/index.js",
10
+ "module": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./dist/src/index.js",
14
+ "import": "./dist/index.js",
15
15
  "types": "./dist/index.d.ts"
16
16
  },
17
17
  "./utils": {
18
- "import": "./dist/src/index.js",
18
+ "import": "./dist/index.js",
19
19
  "types": "./dist/index.d.ts"
20
20
  },
21
21
  "./style.css": "./src/index.css",