@adamosuiteservices/ui 1.2.5 → 1.3.5

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 (177) hide show
  1. package/dist/accordion-rounded.cjs +1 -1
  2. package/dist/accordion-rounded.js +1 -1
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/avatar.cjs +1 -1
  6. package/dist/avatar.js +1 -1
  7. package/dist/badge.cjs +1 -1
  8. package/dist/badge.js +1 -1
  9. package/dist/breadcrumb.cjs +1 -0
  10. package/dist/breadcrumb.js +105 -0
  11. package/dist/{button-C1n6snOY.js → button-2GdKenQI.js} +1 -1
  12. package/dist/{button-BV-_FVKZ.cjs → button-DEQVHMrX.cjs} +1 -1
  13. package/dist/button-group.cjs +1 -1
  14. package/dist/button-group.js +2 -2
  15. package/dist/button.cjs +1 -1
  16. package/dist/button.js +1 -1
  17. package/dist/calendar.cjs +1 -1
  18. package/dist/calendar.js +1 -1
  19. package/dist/{checkbox-BrmXPKTn.js → checkbox-Dr487kAg.js} +3 -3
  20. package/dist/{checkbox-Lq-HvSgc.cjs → checkbox-YWAnswaW.cjs} +1 -1
  21. package/dist/checkbox.cjs +1 -1
  22. package/dist/checkbox.js +1 -1
  23. package/dist/collapsible.cjs +1 -1
  24. package/dist/collapsible.js +1 -1
  25. package/dist/combobox.cjs +1 -1
  26. package/dist/combobox.js +6 -6
  27. package/dist/components/ui/breadcrumb/breadcrumb.d.ts +11 -0
  28. package/dist/components/ui/breadcrumb/breadcrumb.stories.d.ts +26 -0
  29. package/dist/components/ui/breadcrumb/index.d.ts +1 -0
  30. package/dist/components/ui/dialog/dialog.d.ts +2 -1
  31. package/dist/context-menu.cjs +1 -1
  32. package/dist/context-menu.js +2 -2
  33. package/dist/custom-layered-styles.css +1 -1
  34. package/dist/dialog.cjs +1 -1
  35. package/dist/dialog.js +33 -19
  36. package/dist/dropdown-menu.cjs +1 -1
  37. package/dist/dropdown-menu.js +3 -3
  38. package/dist/ellipsis-CryjZKZn.js +15 -0
  39. package/dist/ellipsis-Ct9VTDOG.cjs +6 -0
  40. package/dist/field.cjs +1 -1
  41. package/dist/field.js +2 -2
  42. package/dist/hover-card.cjs +1 -1
  43. package/dist/hover-card.js +6 -6
  44. package/dist/{index-CAOY367Y.js → index-B0M7VOwp.js} +2 -2
  45. package/dist/{index-B-ZRqW0J.js → index-BBoIAjAs.js} +3 -3
  46. package/dist/{index-gO_QEiaK.cjs → index-BDs8lUfq.cjs} +1 -1
  47. package/dist/index-BFyr34mw.cjs +5 -0
  48. package/dist/index-BMWt1NBG.js +79 -0
  49. package/dist/{index-yR-v1A4G.js → index-BX9hz-JD.js} +1 -1
  50. package/dist/{index-BGiGvaq8.cjs → index-BcGMAmWE.cjs} +1 -1
  51. package/dist/{index-IKJMQref.cjs → index-Bd0gQB0k.cjs} +1 -1
  52. package/dist/{index-VIUqZjyP.cjs → index-BeWgla7c.cjs} +1 -1
  53. package/dist/{index-EUea2gfp.js → index-BpWB3aFK.js} +1 -1
  54. package/dist/index-BvLQnI56.js +59 -0
  55. package/dist/{index-CwUFT-GQ.js → index-C0YiLSjW.js} +4 -4
  56. package/dist/{index-o0sNTcKe.js → index-CBjZooac.js} +2 -2
  57. package/dist/{index-DnS_sBBe.cjs → index-COuvjZLM.cjs} +1 -1
  58. package/dist/index-CTjlbbt9.cjs +1 -0
  59. package/dist/index-CUWMxxKG.js +97 -0
  60. package/dist/{index-C329e3yQ.js → index-CZZ3llmi.js} +2 -2
  61. package/dist/index-CjyiloO7.cjs +1 -0
  62. package/dist/{index-D3wSWKST.cjs → index-Cmx9M9cZ.cjs} +1 -1
  63. package/dist/index-CocSS1YK.cjs +1 -0
  64. package/dist/index-CzRiuk60.cjs +1 -0
  65. package/dist/index-DFPDUUq7.js +658 -0
  66. package/dist/{index-D3S7dBDI.cjs → index-DIwmXz1u.cjs} +1 -1
  67. package/dist/index-DLcqcWxM.js +29 -0
  68. package/dist/index-DMLQL2aG.js +286 -0
  69. package/dist/{index-DXQ-7kNJ.cjs → index-DMs8RL3E.cjs} +1 -1
  70. package/dist/{index-Ce3QBKyj.cjs → index-Dbj9vHNq.cjs} +1 -1
  71. package/dist/{index-BRLtxFFr.cjs → index-DmGzwG2z.cjs} +1 -1
  72. package/dist/{index-P1sVIHE3.js → index-PYkEXTqJ.js} +1 -1
  73. package/dist/{index-DulPG3F9.js → index-Se4vRnIO.js} +3 -3
  74. package/dist/index-_XxjJPRD.cjs +1 -0
  75. package/dist/{index-B-cHTKrs.js → index-yWvyIlmA.js} +4 -4
  76. package/dist/input-group.cjs +1 -1
  77. package/dist/input-group.js +1 -1
  78. package/dist/{label-Cne2J57f.cjs → label-BjXORCBM.cjs} +1 -1
  79. package/dist/{label-Ky8qBEC3.js → label-CmwGvhy1.js} +1 -1
  80. package/dist/label.cjs +1 -1
  81. package/dist/label.js +1 -1
  82. package/dist/pagination.cjs +1 -6
  83. package/dist/pagination.js +58 -69
  84. package/dist/popover-3rIoNCXs.js +306 -0
  85. package/dist/popover-FCKBtFo-.cjs +1 -0
  86. package/dist/popover.cjs +1 -1
  87. package/dist/popover.js +1 -1
  88. package/dist/progress.cjs +1 -1
  89. package/dist/progress.js +1 -1
  90. package/dist/radio-group.cjs +1 -1
  91. package/dist/radio-group.js +5 -5
  92. package/dist/select.cjs +2 -2
  93. package/dist/select.js +585 -542
  94. package/dist/{separator-CGnu_jIu.cjs → separator-BaZqZZ9R.cjs} +1 -1
  95. package/dist/{separator-BH73A90k.js → separator-DR7lQjv9.js} +1 -1
  96. package/dist/separator.cjs +1 -1
  97. package/dist/separator.js +1 -1
  98. package/dist/{sheet-CcxnJ6LH.cjs → sheet-CU-sFSaJ.cjs} +1 -1
  99. package/dist/{sheet-_DVpQIVF.js → sheet-UZWAbdXr.js} +1 -1
  100. package/dist/sheet.cjs +1 -1
  101. package/dist/sheet.js +1 -1
  102. package/dist/sidebar.cjs +1 -1
  103. package/dist/sidebar.js +4 -4
  104. package/dist/slider.cjs +1 -1
  105. package/dist/slider.js +3 -3
  106. package/dist/styles.css +1 -1
  107. package/dist/switch.cjs +1 -1
  108. package/dist/switch.js +2 -2
  109. package/dist/tabs-underline.cjs +1 -1
  110. package/dist/tabs-underline.js +1 -1
  111. package/dist/tabs.cjs +1 -1
  112. package/dist/tabs.js +1 -1
  113. package/dist/toaster.cjs +1 -1
  114. package/dist/toaster.js +1 -1
  115. package/dist/toggle.cjs +1 -1
  116. package/dist/toggle.js +1 -1
  117. package/dist/tooltip.cjs +1 -1
  118. package/dist/tooltip.js +114 -108
  119. package/dist/typography.cjs +1 -1
  120. package/dist/typography.js +1 -1
  121. package/docs/AI-GUIDE.md +321 -0
  122. package/docs/components/layout/sidebar.md +330 -0
  123. package/docs/components/layout/toaster.md +436 -0
  124. package/docs/components/ui/accordion-rounded.md +583 -0
  125. package/docs/components/ui/accordion.md +267 -0
  126. package/docs/components/ui/alert.md +671 -0
  127. package/docs/components/ui/avatar.md +588 -0
  128. package/docs/components/ui/badge.md +1024 -0
  129. package/docs/components/ui/breadcrumb.md +614 -0
  130. package/docs/components/ui/button-group.md +1002 -0
  131. package/docs/components/ui/button.md +1078 -0
  132. package/docs/components/ui/calendar.md +1159 -0
  133. package/docs/components/ui/card.md +1265 -0
  134. package/docs/components/ui/checkbox.md +292 -0
  135. package/docs/components/ui/collapsible.md +320 -0
  136. package/docs/components/ui/combobox.md +328 -0
  137. package/docs/components/ui/command.md +454 -0
  138. package/docs/components/ui/context-menu.md +540 -0
  139. package/docs/components/ui/dialog.md +628 -0
  140. package/docs/components/ui/dropdown-menu.md +731 -0
  141. package/docs/components/ui/field.md +706 -0
  142. package/docs/components/ui/hover-card.md +446 -0
  143. package/docs/components/ui/input-group.md +509 -0
  144. package/docs/components/ui/input.md +362 -0
  145. package/docs/components/ui/kbd.md +434 -0
  146. package/docs/components/ui/label.md +359 -0
  147. package/docs/components/ui/pagination.md +650 -0
  148. package/docs/components/ui/popover.md +536 -0
  149. package/docs/components/ui/progress.md +182 -0
  150. package/docs/components/ui/radio-group.md +311 -0
  151. package/docs/components/ui/select.md +352 -0
  152. package/docs/components/ui/separator.md +214 -0
  153. package/docs/components/ui/sheet.md +142 -0
  154. package/docs/components/ui/skeleton.md +140 -0
  155. package/docs/components/ui/slider.md +341 -0
  156. package/docs/components/ui/spinner.md +170 -0
  157. package/docs/components/ui/switch.md +402 -0
  158. package/docs/components/ui/table.md +183 -0
  159. package/docs/components/ui/tabs-underline.md +106 -0
  160. package/docs/components/ui/tabs.md +122 -0
  161. package/docs/components/ui/textarea.md +243 -0
  162. package/docs/components/ui/toggle.md +243 -0
  163. package/docs/components/ui/tooltip.md +320 -0
  164. package/docs/components/ui/typography.md +191 -0
  165. package/package.json +11 -5
  166. package/dist/index-6oTEokEx.js +0 -82
  167. package/dist/index-B-NyefE0.js +0 -243
  168. package/dist/index-BKbK2GzY.cjs +0 -1
  169. package/dist/index-BMitW9UR.cjs +0 -1
  170. package/dist/index-BpvjJ_T6.cjs +0 -5
  171. package/dist/index-C5wjudc-.js +0 -36
  172. package/dist/index-CezwiPd_.js +0 -615
  173. package/dist/index-D02K8KOB.js +0 -54
  174. package/dist/index-D7hQvndv.cjs +0 -1
  175. package/dist/index-DQvx1rG_.cjs +0 -1
  176. package/dist/popover-BjdTqaB8.cjs +0 -1
  177. package/dist/popover-EnVfE0YA.js +0 -263
@@ -1 +1 @@
1
- "use strict";const i=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("react"),u=require("./index-DQvx1rG_.cjs"),p=require("./index-DoxiiusW.cjs");function m(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,e.get?e:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const f=m(d);var v="Separator",n="horizontal",O=["horizontal","vertical"],s=f.forwardRef((t,a)=>{const{decorative:r,orientation:e=n,...c}=t,o=x(e)?e:n,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return i.jsxRuntimeExports.jsx(u.Primitive.div,{"data-orientation":o,...l,...c,ref:a})});s.displayName=v;function x(t){return O.includes(t)}var b=s;function j({className:t,orientation:a="horizontal",decorative:r=!0,...e}){return i.jsxRuntimeExports.jsx(b,{"data-slot":"separator",decorative:r,orientation:a,className:p.cn("adm:bg-border adm:shrink-0 adm:data-[orientation=horizontal]:h-px adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-px",t),...e})}exports.Separator=j;
1
+ "use strict";const i=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("react"),u=require("./index-CocSS1YK.cjs"),p=require("./index-DoxiiusW.cjs");function m(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,e.get?e:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const f=m(d);var v="Separator",n="horizontal",O=["horizontal","vertical"],s=f.forwardRef((t,a)=>{const{decorative:r,orientation:e=n,...c}=t,o=x(e)?e:n,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return i.jsxRuntimeExports.jsx(u.Primitive.div,{"data-orientation":o,...l,...c,ref:a})});s.displayName=v;function x(t){return O.includes(t)}var b=s;function j({className:t,orientation:a="horizontal",decorative:r=!0,...e}){return i.jsxRuntimeExports.jsx(b,{"data-slot":"separator",decorative:r,orientation:a,className:p.cn("adm:bg-border adm:shrink-0 adm:data-[orientation=horizontal]:h-px adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-px",t),...e})}exports.Separator=j;
@@ -1,6 +1,6 @@
1
1
  import { j as e } from "./jsx-runtime-BzflLqGi.js";
2
2
  import * as m from "react";
3
- import { P as c } from "./index-C5wjudc-.js";
3
+ import { P as c } from "./index-BMWt1NBG.js";
4
4
  import { c as p } from "./index-CRiPKpXj.js";
5
5
  var v = "Separator", n = "horizontal", f = ["horizontal", "vertical"], s = m.forwardRef((a, t) => {
6
6
  const { decorative: o, orientation: r = n, ...d } = a, i = u(r) ? r : n, l = o ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./separator-CGnu_jIu.cjs");exports.Separator=e.Separator;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./separator-BaZqZZ9R.cjs");exports.Separator=e.Separator;
package/dist/separator.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as o } from "./separator-BH73A90k.js";
1
+ import { S as o } from "./separator-DR7lQjv9.js";
2
2
  export {
3
3
  o as Separator
4
4
  };
@@ -1 +1 @@
1
- "use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const d=require("./index-BpvjJ_T6.cjs"),s=require("./index-DoxiiusW.cjs"),r=require("./x-CBKgg4YL.cjs");function i({...t}){return e.jsxRuntimeExports.jsx(d.Root,{"data-slot":"sheet",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"sheet-trigger",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(d.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(d.Portal,{"data-slot":"sheet-portal",...t})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Overlay,{"data-slot":"sheet-overlay",className:s.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",t),...a})}function h({className:t,children:a,side:o="right",showCloseButton:m=!0,...n}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(c,{}),e.jsxRuntimeExports.jsxs(d.Content,{"data-slot":"sheet-content",className:s.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-xs adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",o==="right"&&"adm:rounded-tl-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-right adm:data-[state=open]:slide-in-from-right adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:border-l adm:sm:max-w-sm",o==="left"&&"adm:rounded-tr-lg adm:rounded-br-lg adm:data-[state=closed]:slide-out-to-left adm:data-[state=open]:slide-in-from-left adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:border-r adm:sm:max-w-sm",o==="top"&&"adm:rounded-br-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-top adm:data-[state=open]:slide-in-from-top adm:inset-x-0 adm:top-0 adm:h-auto adm:border-b",o==="bottom"&&"adm:rounded-tr-lg adm:rounded-tl-lg adm:data-[state=closed]:slide-out-to-bottom adm:data-[state=open]:slide-in-from-bottom adm:inset-x-0 adm:bottom-0 adm:h-auto adm:border-t",t),...n,children:[a,m&&e.jsxRuntimeExports.jsxs(d.Close,{className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-secondary adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none",children:[e.jsxRuntimeExports.jsx(r.X,{className:"adm:size-4"}),e.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:s.cn("adm:flex adm:flex-col adm:gap-1.5 adm:p-4",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:s.cn("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-4",t),...a})}function g({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Title,{"data-slot":"sheet-title",className:s.cn("adm:text-foreground adm:font-semibold",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Description,{"data-slot":"sheet-description",className:s.cn("adm:text-muted-foreground adm:text-sm",t),...a})}exports.Sheet=i;exports.SheetClose=u;exports.SheetContent=h;exports.SheetDescription=j;exports.SheetFooter=f;exports.SheetHeader=p;exports.SheetTitle=g;exports.SheetTrigger=l;
1
+ "use strict";const e=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const d=require("./index-BFyr34mw.cjs"),s=require("./index-DoxiiusW.cjs"),r=require("./x-CBKgg4YL.cjs");function i({...t}){return e.jsxRuntimeExports.jsx(d.Root,{"data-slot":"sheet",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"sheet-trigger",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(d.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(d.Portal,{"data-slot":"sheet-portal",...t})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Overlay,{"data-slot":"sheet-overlay",className:s.cn("adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50",t),...a})}function h({className:t,children:a,side:o="right",showCloseButton:m=!0,...n}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(c,{}),e.jsxRuntimeExports.jsxs(d.Content,{"data-slot":"sheet-content",className:s.cn("adm:bg-background adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:shadow-xs adm:transition adm:ease-in-out adm:data-[state=closed]:duration-300 adm:data-[state=open]:duration-500",o==="right"&&"adm:rounded-tl-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-right adm:data-[state=open]:slide-in-from-right adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:border-l adm:sm:max-w-sm",o==="left"&&"adm:rounded-tr-lg adm:rounded-br-lg adm:data-[state=closed]:slide-out-to-left adm:data-[state=open]:slide-in-from-left adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:border-r adm:sm:max-w-sm",o==="top"&&"adm:rounded-br-lg adm:rounded-bl-lg adm:data-[state=closed]:slide-out-to-top adm:data-[state=open]:slide-in-from-top adm:inset-x-0 adm:top-0 adm:h-auto adm:border-b",o==="bottom"&&"adm:rounded-tr-lg adm:rounded-tl-lg adm:data-[state=closed]:slide-out-to-bottom adm:data-[state=open]:slide-in-from-bottom adm:inset-x-0 adm:bottom-0 adm:h-auto adm:border-t",t),...n,children:[a,m&&e.jsxRuntimeExports.jsxs(d.Close,{className:"adm:ring-offset-background adm:focus:ring-ring adm:data-[state=open]:bg-secondary adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70 adm:transition-opacity adm:hover:opacity-100 adm:focus:ring-2 adm:focus:ring-offset-2 adm:focus:outline-hidden adm:disabled:pointer-events-none",children:[e.jsxRuntimeExports.jsx(r.X,{className:"adm:size-4"}),e.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"Close"})]})]})]})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:s.cn("adm:flex adm:flex-col adm:gap-1.5 adm:p-4",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:s.cn("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-4",t),...a})}function g({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Title,{"data-slot":"sheet-title",className:s.cn("adm:text-foreground adm:font-semibold",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(d.Description,{"data-slot":"sheet-description",className:s.cn("adm:text-muted-foreground adm:text-sm",t),...a})}exports.Sheet=i;exports.SheetClose=u;exports.SheetContent=h;exports.SheetDescription=j;exports.SheetFooter=f;exports.SheetHeader=p;exports.SheetTitle=g;exports.SheetTrigger=l;
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
2
  import "react";
3
- import { R as n, b as l, C as s, a as i, T as u, D as c, P as f, O as h } from "./index-B-NyefE0.js";
3
+ import { R as n, b as l, C as s, a as i, T as u, D as c, P as f, O as h } from "./index-DMLQL2aG.js";
4
4
  import { c as d } from "./index-CRiPKpXj.js";
5
5
  import { X as g } from "./x-Dl66o_vF.js";
6
6
  function v({ ...a }) {
package/dist/sheet.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-CcxnJ6LH.cjs");exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-CU-sFSaJ.cjs");exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;
package/dist/sheet.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as a, b as s, c as S, g as h, e as o, d as r, f as i, a as g } from "./sheet-_DVpQIVF.js";
1
+ import { S as a, b as s, c as S, g as h, e as o, d as r, f as i, a as g } from "./sheet-UZWAbdXr.js";
2
2
  export {
3
3
  a as Sheet,
4
4
  s as SheetClose,
package/dist/sidebar.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("react"),l=require("./index-Ce3QBKyj.cjs"),i=require("./index-DoxiiusW.cjs"),n=require("./sheet-CcxnJ6LH.cjs"),b=require("./index-gO_QEiaK.cjs"),p=require("./index-BKbK2GzY.cjs"),h=require("./createLucideIcon-CAtnV-yz.cjs");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const c=j(m);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("react"),l=require("./index-Dbj9vHNq.cjs"),i=require("./index-DoxiiusW.cjs"),n=require("./sheet-CU-sFSaJ.cjs"),b=require("./index-BDs8lUfq.cjs"),p=require("./index-CjyiloO7.cjs"),h=require("./createLucideIcon-CAtnV-yz.cjs");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const c=j(m);/**
2
2
  * @license lucide-react v0.546.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
package/dist/sidebar.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { j as a } from "./jsx-runtime-BzflLqGi.js";
2
2
  import * as n from "react";
3
3
  import { createContext as c, useState as u, useContext as x } from "react";
4
- import { P as h } from "./index-yR-v1A4G.js";
4
+ import { P as h } from "./index-BX9hz-JD.js";
5
5
  import { c as s } from "./index-CRiPKpXj.js";
6
- import { S as b, a as f, c as p, d as S, f as g, g as j } from "./sheet-_DVpQIVF.js";
7
- import { V as v } from "./index-P1sVIHE3.js";
8
- import { S as w } from "./index-6oTEokEx.js";
6
+ import { S as b, a as f, c as p, d as S, f as g, g as j } from "./sheet-UZWAbdXr.js";
7
+ import { V as v } from "./index-PYkEXTqJ.js";
8
+ import { S as w } from "./index-BvLQnI56.js";
9
9
  import { c as y } from "./createLucideIcon-B_8CJpcQ.js";
10
10
  /**
11
11
  * @license lucide-react v0.546.0 - ISC
package/dist/slider.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-BB_1_6y_.cjs"),ce=require("react"),F=require("./index-C8ni3LLa.cjs"),P=require("./index-BWaO7kQK.cjs"),_=require("./index-BKbK2GzY.cjs"),ue=require("./index-cwZN7ZY3.cjs"),Y=require("./index-D7hQvndv.cjs"),me=require("./index-DYxWvftI.cjs"),fe=require("./index-bSPhqlcX.cjs"),I=require("./index-DQvx1rG_.cjs"),N=require("./index-DoxiiusW.cjs");function pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=pe(ce);var X=["PageUp","PageDown"],G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},C="Slider",[V,xe,Se]=Y.createCollection(C),[J]=ue.createContextScope(C,[Se]),[he,T]=J(C),Q=l.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:d=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:S=[o],value:h,onValueChange:s=()=>{},onValueCommit:m=()=>{},inverted:v=!1,form:w,...g}=e,p=l.useRef(new Set),f=l.useRef(0),b=i==="horizontal"?ge:ve,[x=[],M]=P.useControllableState({prop:h,defaultProp:S,onChange:R=>{[...p.current][f.current]?.focus(),s(R)}}),B=l.useRef(x);function k(R){const E=ye(x,R);A(R,E)}function de(R){A(R,f.current)}function le(){const R=B.current[f.current];x[f.current]!==R&&m(x)}function A(R,E,{commit:z}={commit:!1}){const L=_e(d),H=Ce(Math.round((R-o)/d)*d+o,L),K=F.clamp(H,[o,r]);M((D=[])=>{const y=we(D,K,E);if(De(y,u*d)){f.current=y.indexOf(K);const U=String(y)!==String(D);return U&&z&&m(y),U?y:D}else return D})}return c.jsxRuntimeExports.jsx(he,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:r,valueIndexToChangeRef:f,thumbs:p.current,values:x,orientation:i,form:w,children:c.jsxRuntimeExports.jsx(V.Provider,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(V.Slot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:P.composeEventHandlers(g.onPointerDown,()=>{a||(B.current=x)}),min:o,max:r,inverted:v,onSlideStart:a?void 0:k,onSlideMove:a?void 0:de,onSlideEnd:a?void 0:le,onHomeKeyDown:()=>!a&&A(o,0,{commit:!0}),onEndKeyDown:()=>!a&&A(r,x.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!a){const H=X.includes(R.key)||R.shiftKey&&G.includes(R.key)?10:1,K=f.current,D=x[K],y=d*H*E;A(D+y,K,{commit:!0})}}})})})})});Q.displayName=C;var[Z,ee]=J(C,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:d,onSlideStart:i,onSlideMove:a,onSlideEnd:u,onStepKeyDown:S,...h}=e,[s,m]=l.useState(null),v=_.useComposedRefs(t,b=>m(b)),w=l.useRef(void 0),g=Y.useDirection(r),p=g==="ltr",f=p&&!d||!p&&d;function j(b){const x=w.current||s.getBoundingClientRect(),M=[0,x.width],k=q(M,f?[n,o]:[o,n]);return w.current=x,k(b-x.left)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:c.jsxRuntimeExports.jsx(te,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const x=j(b.clientX);i?.(x)},onSlideMove:b=>{const x=j(b.clientX);a?.(x)},onSlideEnd:()=>{w.current=void 0,u?.()},onStepKeyDown:b=>{const M=W[f?"from-left":"from-right"].includes(b.key);S?.({event:b,direction:M?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:d,onSlideMove:i,onSlideEnd:a,onStepKeyDown:u,...S}=e,h=l.useRef(null),s=_.useComposedRefs(t,h),m=l.useRef(void 0),v=!r;function w(g){const p=m.current||h.current.getBoundingClientRect(),f=[0,p.height],b=q(f,v?[o,n]:[n,o]);return m.current=p,b(g-p.top)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:c.jsxRuntimeExports.jsx(te,{"data-orientation":"vertical",...S,ref:s,style:{...S.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const p=w(g.clientY);d?.(p)},onSlideMove:g=>{const p=w(g.clientY);i?.(p)},onSlideEnd:()=>{m.current=void 0,a?.()},onStepKeyDown:g=>{const f=W[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),te=l.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:d,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:u,...S}=e,h=T(C,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{...S,ref:t,onKeyDown:P.composeEventHandlers(e.onKeyDown,s=>{s.key==="Home"?(i(s),s.preventDefault()):s.key==="End"?(a(s),s.preventDefault()):X.concat(G).includes(s.key)&&(u(s),s.preventDefault())}),onPointerDown:P.composeEventHandlers(e.onPointerDown,s=>{const m=s.target;m.setPointerCapture(s.pointerId),s.preventDefault(),h.thumbs.has(m)?m.focus():o(s)}),onPointerMove:P.composeEventHandlers(e.onPointerMove,s=>{s.target.hasPointerCapture(s.pointerId)&&r(s)}),onPointerUp:P.composeEventHandlers(e.onPointerUp,s=>{const m=s.target;m.hasPointerCapture(s.pointerId)&&(m.releasePointerCapture(s.pointerId),d(s))})})}),ne="SliderTrack",oe=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(ne,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});oe.displayName=ne;var O="SliderRange",re=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(O,n),d=ee(O,n),i=l.useRef(null),a=_.useComposedRefs(t,i),u=r.values.length,S=r.values.map(m=>ae(m,r.min,r.max)),h=u>1?Math.min(...S):0,s=100-Math.max(...S);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:a,style:{...e.style,[d.startEdge]:h+"%",[d.endEdge]:s+"%"}})});re.displayName=O;var $="SliderThumb",ie=l.forwardRef((e,t)=>{const n=xe(e.__scopeSlider),[o,r]=l.useState(null),d=_.useComposedRefs(t,a=>r(a)),i=l.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return c.jsxRuntimeExports.jsx(be,{...e,ref:d,index:i})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...d}=e,i=T($,n),a=ee($,n),[u,S]=l.useState(null),h=_.useComposedRefs(t,j=>S(j)),s=u?i.form||!!u.closest("form"):!0,m=fe.useSize(u),v=i.values[o],w=v===void 0?0:ae(v,i.min,i.max),g=Ee(o,i.values.length),p=m?.[a.size],f=p?Pe(p,w,a.direction):0;return l.useEffect(()=>{if(u)return i.thumbs.add(u),()=>{i.thumbs.delete(u)}},[u,i.thumbs]),c.jsxRuntimeExports.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${f}px)`},children:[c.jsxRuntimeExports.jsx(V.ItemSlot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(I.Primitive.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...d,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:P.composeEventHandlers(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),s&&c.jsxRuntimeExports.jsx(se,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},o)]})});ie.displayName=$;var Re="RadioBubbleInput",se=l.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=l.useRef(null),d=_.useComposedRefs(r,o),i=me.usePrevious(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&h){const s=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(s)}},[i,t]),c.jsxRuntimeExports.jsx(I.Primitive.input,{style:{display:"none"},...n,ref:d,defaultValue:t})});se.displayName=Re;function we(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,d)=>r-d)}function ae(e,t,n){const d=100/(n-t)*(e-t);return F.clamp(d,[0,100])}function Ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function Pe(e,t,n){const o=e/2,d=q([0,50],[0,o]);return(o-d(t)*n)*n}function je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function De(e,t){if(t>0){const n=je(e);return Math.min(...n)>=t}return!0}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Me=Q,Ae=oe,Ke=re,Ie=ie;function Te({className:e,defaultValue:t,value:n,min:o=0,max:r=100,theme:d,...i}){const a=l.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[o,r],[n,t,o,r]);return c.jsxRuntimeExports.jsxs(Me,{"data-slot":"slider","data-theme":d,defaultValue:t,value:n,min:o,max:r,className:N.cn("adm:relative adm:flex adm:w-full adm:touch-none adm:items-center adm:select-none adm:data-[disabled]:opacity-50 adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:min-h-44 adm:data-[orientation=vertical]:w-auto adm:data-[orientation=vertical]:flex-col",e),...i,children:[c.jsxRuntimeExports.jsx(Ae,{"data-slot":"slider-track",className:N.cn("adm:bg-muted adm:relative adm:grow adm:overflow-hidden adm:rounded-full adm:data-[orientation=horizontal]:h-1.5 adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-1.5"),children:c.jsxRuntimeExports.jsx(Ke,{"data-slot":"slider-range",className:N.cn("adm:bg-primary adm:absolute adm:data-[orientation=horizontal]:h-full adm:data-[orientation=vertical]:w-full")})}),Array.from({length:a.length},(u,S)=>c.jsxRuntimeExports.jsx(Ie,{"data-slot":"slider-thumb",className:"adm:border-primary adm:ring-ring/50 adm:block adm:size-4 adm:shrink-0 adm:rounded-full adm:border adm:bg-white adm:shadow-sm adm:transition-[color,box-shadow] adm:hover:ring-4 adm:focus-visible:ring-4 adm:focus-visible:outline-hidden adm:disabled:pointer-events-none adm:disabled:opacity-50"},S))]})}exports.Slider=Te;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-BB_1_6y_.cjs"),ce=require("react"),F=require("./index-C8ni3LLa.cjs"),P=require("./index-BWaO7kQK.cjs"),_=require("./index-_XxjJPRD.cjs"),ue=require("./index-cwZN7ZY3.cjs"),Y=require("./index-CzRiuk60.cjs"),me=require("./index-DYxWvftI.cjs"),fe=require("./index-bSPhqlcX.cjs"),I=require("./index-CocSS1YK.cjs"),N=require("./index-DoxiiusW.cjs");function pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=pe(ce);var X=["PageUp","PageDown"],G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},C="Slider",[V,xe,Se]=Y.createCollection(C),[J]=ue.createContextScope(C,[Se]),[he,T]=J(C),Q=l.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:d=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:S=[o],value:h,onValueChange:s=()=>{},onValueCommit:m=()=>{},inverted:v=!1,form:w,...g}=e,p=l.useRef(new Set),f=l.useRef(0),b=i==="horizontal"?ge:ve,[x=[],M]=P.useControllableState({prop:h,defaultProp:S,onChange:R=>{[...p.current][f.current]?.focus(),s(R)}}),B=l.useRef(x);function k(R){const E=ye(x,R);A(R,E)}function de(R){A(R,f.current)}function le(){const R=B.current[f.current];x[f.current]!==R&&m(x)}function A(R,E,{commit:z}={commit:!1}){const L=_e(d),H=Ce(Math.round((R-o)/d)*d+o,L),K=F.clamp(H,[o,r]);M((D=[])=>{const y=we(D,K,E);if(De(y,u*d)){f.current=y.indexOf(K);const U=String(y)!==String(D);return U&&z&&m(y),U?y:D}else return D})}return c.jsxRuntimeExports.jsx(he,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:r,valueIndexToChangeRef:f,thumbs:p.current,values:x,orientation:i,form:w,children:c.jsxRuntimeExports.jsx(V.Provider,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(V.Slot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:P.composeEventHandlers(g.onPointerDown,()=>{a||(B.current=x)}),min:o,max:r,inverted:v,onSlideStart:a?void 0:k,onSlideMove:a?void 0:de,onSlideEnd:a?void 0:le,onHomeKeyDown:()=>!a&&A(o,0,{commit:!0}),onEndKeyDown:()=>!a&&A(r,x.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!a){const H=X.includes(R.key)||R.shiftKey&&G.includes(R.key)?10:1,K=f.current,D=x[K],y=d*H*E;A(D+y,K,{commit:!0})}}})})})})});Q.displayName=C;var[Z,ee]=J(C,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:d,onSlideStart:i,onSlideMove:a,onSlideEnd:u,onStepKeyDown:S,...h}=e,[s,m]=l.useState(null),v=_.useComposedRefs(t,b=>m(b)),w=l.useRef(void 0),g=Y.useDirection(r),p=g==="ltr",f=p&&!d||!p&&d;function j(b){const x=w.current||s.getBoundingClientRect(),M=[0,x.width],k=q(M,f?[n,o]:[o,n]);return w.current=x,k(b-x.left)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:c.jsxRuntimeExports.jsx(te,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const x=j(b.clientX);i?.(x)},onSlideMove:b=>{const x=j(b.clientX);a?.(x)},onSlideEnd:()=>{w.current=void 0,u?.()},onStepKeyDown:b=>{const M=W[f?"from-left":"from-right"].includes(b.key);S?.({event:b,direction:M?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:d,onSlideMove:i,onSlideEnd:a,onStepKeyDown:u,...S}=e,h=l.useRef(null),s=_.useComposedRefs(t,h),m=l.useRef(void 0),v=!r;function w(g){const p=m.current||h.current.getBoundingClientRect(),f=[0,p.height],b=q(f,v?[o,n]:[n,o]);return m.current=p,b(g-p.top)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:c.jsxRuntimeExports.jsx(te,{"data-orientation":"vertical",...S,ref:s,style:{...S.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const p=w(g.clientY);d?.(p)},onSlideMove:g=>{const p=w(g.clientY);i?.(p)},onSlideEnd:()=>{m.current=void 0,a?.()},onStepKeyDown:g=>{const f=W[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),te=l.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:d,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:u,...S}=e,h=T(C,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{...S,ref:t,onKeyDown:P.composeEventHandlers(e.onKeyDown,s=>{s.key==="Home"?(i(s),s.preventDefault()):s.key==="End"?(a(s),s.preventDefault()):X.concat(G).includes(s.key)&&(u(s),s.preventDefault())}),onPointerDown:P.composeEventHandlers(e.onPointerDown,s=>{const m=s.target;m.setPointerCapture(s.pointerId),s.preventDefault(),h.thumbs.has(m)?m.focus():o(s)}),onPointerMove:P.composeEventHandlers(e.onPointerMove,s=>{s.target.hasPointerCapture(s.pointerId)&&r(s)}),onPointerUp:P.composeEventHandlers(e.onPointerUp,s=>{const m=s.target;m.hasPointerCapture(s.pointerId)&&(m.releasePointerCapture(s.pointerId),d(s))})})}),ne="SliderTrack",oe=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(ne,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});oe.displayName=ne;var O="SliderRange",re=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(O,n),d=ee(O,n),i=l.useRef(null),a=_.useComposedRefs(t,i),u=r.values.length,S=r.values.map(m=>ae(m,r.min,r.max)),h=u>1?Math.min(...S):0,s=100-Math.max(...S);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:a,style:{...e.style,[d.startEdge]:h+"%",[d.endEdge]:s+"%"}})});re.displayName=O;var $="SliderThumb",ie=l.forwardRef((e,t)=>{const n=xe(e.__scopeSlider),[o,r]=l.useState(null),d=_.useComposedRefs(t,a=>r(a)),i=l.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return c.jsxRuntimeExports.jsx(be,{...e,ref:d,index:i})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...d}=e,i=T($,n),a=ee($,n),[u,S]=l.useState(null),h=_.useComposedRefs(t,j=>S(j)),s=u?i.form||!!u.closest("form"):!0,m=fe.useSize(u),v=i.values[o],w=v===void 0?0:ae(v,i.min,i.max),g=Ee(o,i.values.length),p=m?.[a.size],f=p?Pe(p,w,a.direction):0;return l.useEffect(()=>{if(u)return i.thumbs.add(u),()=>{i.thumbs.delete(u)}},[u,i.thumbs]),c.jsxRuntimeExports.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${f}px)`},children:[c.jsxRuntimeExports.jsx(V.ItemSlot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(I.Primitive.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...d,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:P.composeEventHandlers(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),s&&c.jsxRuntimeExports.jsx(se,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},o)]})});ie.displayName=$;var Re="RadioBubbleInput",se=l.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=l.useRef(null),d=_.useComposedRefs(r,o),i=me.usePrevious(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&h){const s=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(s)}},[i,t]),c.jsxRuntimeExports.jsx(I.Primitive.input,{style:{display:"none"},...n,ref:d,defaultValue:t})});se.displayName=Re;function we(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,d)=>r-d)}function ae(e,t,n){const d=100/(n-t)*(e-t);return F.clamp(d,[0,100])}function Ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function Pe(e,t,n){const o=e/2,d=q([0,50],[0,o]);return(o-d(t)*n)*n}function je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function De(e,t){if(t>0){const n=je(e);return Math.min(...n)>=t}return!0}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Me=Q,Ae=oe,Ke=re,Ie=ie;function Te({className:e,defaultValue:t,value:n,min:o=0,max:r=100,theme:d,...i}){const a=l.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[o,r],[n,t,o,r]);return c.jsxRuntimeExports.jsxs(Me,{"data-slot":"slider","data-theme":d,defaultValue:t,value:n,min:o,max:r,className:N.cn("adm:relative adm:flex adm:w-full adm:touch-none adm:items-center adm:select-none adm:data-[disabled]:opacity-50 adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:min-h-44 adm:data-[orientation=vertical]:w-auto adm:data-[orientation=vertical]:flex-col",e),...i,children:[c.jsxRuntimeExports.jsx(Ae,{"data-slot":"slider-track",className:N.cn("adm:bg-muted adm:relative adm:grow adm:overflow-hidden adm:rounded-full adm:data-[orientation=horizontal]:h-1.5 adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-1.5"),children:c.jsxRuntimeExports.jsx(Ke,{"data-slot":"slider-range",className:N.cn("adm:bg-primary adm:absolute adm:data-[orientation=horizontal]:h-full adm:data-[orientation=vertical]:w-full")})}),Array.from({length:a.length},(u,S)=>c.jsxRuntimeExports.jsx(Ie,{"data-slot":"slider-thumb",className:"adm:border-primary adm:ring-ring/50 adm:block adm:size-4 adm:shrink-0 adm:rounded-full adm:border adm:bg-white adm:shadow-sm adm:transition-[color,box-shadow] adm:hover:ring-4 adm:focus-visible:ring-4 adm:focus-visible:outline-hidden adm:disabled:pointer-events-none adm:disabled:opacity-50"},S))]})}exports.Slider=Te;
package/dist/slider.js CHANGED
@@ -2,12 +2,12 @@ import { j as c } from "./jsx-runtime-BzflLqGi.js";
2
2
  import * as l from "react";
3
3
  import { c as $ } from "./index-rKs9bXHr.js";
4
4
  import { u as le, c as _ } from "./index-C0UREtMP.js";
5
- import { u as C } from "./index-6oTEokEx.js";
5
+ import { u as C } from "./index-DLcqcWxM.js";
6
6
  import { c as ce } from "./index-FxyLF8MY.js";
7
- import { c as ue, u as me } from "./index-D02K8KOB.js";
7
+ import { c as ue, u as me } from "./index-CUWMxxKG.js";
8
8
  import { u as fe } from "./index-BZPx6jYI.js";
9
9
  import { u as pe } from "./index-BGQepRFJ.js";
10
- import { P as I } from "./index-C5wjudc-.js";
10
+ import { P as I } from "./index-BMWt1NBG.js";
11
11
  import { c as N } from "./index-CRiPKpXj.js";
12
12
  var X = ["PageUp", "PageDown"], G = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], W = {
13
13
  "from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],