@plyaz/ui 0.7.10 → 0.7.12

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 (110) hide show
  1. package/dist/Button-B7sEajdG.js +89 -0
  2. package/dist/Button-BoTQH4v8.cjs +39 -0
  3. package/dist/Skeleton-BuCmZ9yF.cjs +1 -0
  4. package/dist/Skeleton-Cj9Od_Nd.js +37 -0
  5. package/dist/Textarea-BTbJSVLU.js +837 -0
  6. package/dist/Textarea-DmFDDtNg.cjs +24 -0
  7. package/dist/client/accordion.cjs.js +1 -0
  8. package/dist/client/accordion.es.js +62 -0
  9. package/dist/client/alert-dialog.cjs.js +1 -0
  10. package/dist/client/alert-dialog.es.js +127 -0
  11. package/dist/client/avatar.cjs.js +1 -0
  12. package/dist/client/avatar.es.js +41 -0
  13. package/dist/client/calendar.cjs.js +1 -0
  14. package/dist/client/calendar.es.js +160 -0
  15. package/dist/client/carousel.cjs.js +1 -0
  16. package/dist/client/carousel.es.js +170 -0
  17. package/dist/client/checkbox.cjs.js +1 -0
  18. package/dist/client/checkbox.es.js +28 -0
  19. package/dist/client/combobox.cjs.js +1 -0
  20. package/dist/client/combobox.es.js +77 -0
  21. package/dist/client/command.cjs.js +1 -0
  22. package/dist/client/command.es.js +143 -0
  23. package/dist/client/context-menu.cjs.js +1 -0
  24. package/dist/client/context-menu.es.js +200 -0
  25. package/dist/client/dialog.cjs.js +1 -0
  26. package/dist/client/dialog.es.js +122 -0
  27. package/dist/client/drawer.cjs.js +1 -0
  28. package/dist/client/drawer.es.js +117 -0
  29. package/dist/client/dropdown-menu.cjs.js +1 -0
  30. package/dist/client/dropdown-menu.es.js +204 -0
  31. package/dist/client/hover-card.cjs.js +1 -0
  32. package/dist/client/hover-card.es.js +34 -0
  33. package/dist/client/input-otp.cjs.js +1 -0
  34. package/dist/client/input-otp.es.js +55 -0
  35. package/dist/client/label.cjs.js +1 -0
  36. package/dist/client/label.es.js +19 -0
  37. package/dist/client/menu-bar.cjs.js +1 -0
  38. package/dist/client/menu-bar.es.js +229 -0
  39. package/dist/client/popover.cjs.js +1 -0
  40. package/dist/client/popover.es.js +38 -0
  41. package/dist/client/progress.cjs.js +1 -0
  42. package/dist/client/progress.es.js +29 -0
  43. package/dist/client/radio-group.cjs.js +1 -0
  44. package/dist/client/radio-group.es.js +45 -0
  45. package/dist/client/reveal-text.cjs.js +1 -0
  46. package/dist/client/reveal-text.es.js +5066 -0
  47. package/dist/client/scroll-area.cjs.js +1 -0
  48. package/dist/client/scroll-area.es.js +60 -0
  49. package/dist/client/sheet.cjs.js +1 -0
  50. package/dist/client/sheet.es.js +117 -0
  51. package/dist/client/slider.cjs.js +1 -0
  52. package/dist/client/slider.es.js +63 -0
  53. package/dist/client/switch.cjs.js +1 -0
  54. package/dist/client/switch.es.js +28 -0
  55. package/dist/client/tabs.cjs.js +1 -0
  56. package/dist/client/tabs.es.js +55 -0
  57. package/dist/client/toaster.cjs.js +1 -0
  58. package/dist/client/toaster.es.js +22 -0
  59. package/dist/client/toggle.cjs.js +1 -0
  60. package/dist/client/toggle.es.js +43 -0
  61. package/dist/client/tooltip.cjs.js +1 -0
  62. package/dist/client/tooltip.es.js +51 -0
  63. package/dist/client.cjs.js +1 -93
  64. package/dist/client.es.js +495 -21191
  65. package/dist/index.cjs.js +6 -6
  66. package/dist/index.es.js +285 -538
  67. package/dist/types/client/accordion.d.ts +2 -0
  68. package/dist/types/client/alert-dialog.d.ts +2 -0
  69. package/dist/types/client/avatar.d.ts +2 -0
  70. package/dist/types/client/calendar.d.ts +2 -0
  71. package/dist/types/client/carousel.d.ts +2 -0
  72. package/dist/types/client/checkbox.d.ts +2 -0
  73. package/dist/types/client/combobox.d.ts +2 -0
  74. package/dist/types/client/command.d.ts +2 -0
  75. package/dist/types/client/context-menu.d.ts +2 -0
  76. package/dist/types/client/dialog.d.ts +2 -0
  77. package/dist/types/client/drawer.d.ts +2 -0
  78. package/dist/types/client/dropdown-menu.d.ts +2 -0
  79. package/dist/types/client/hover-card.d.ts +2 -0
  80. package/dist/types/client/input-otp.d.ts +2 -0
  81. package/dist/types/client/label.d.ts +2 -0
  82. package/dist/types/client/menu-bar.d.ts +2 -0
  83. package/dist/types/client/popover.d.ts +2 -0
  84. package/dist/types/client/progress.d.ts +2 -0
  85. package/dist/types/client/radio-group.d.ts +2 -0
  86. package/dist/types/client/reveal-text.d.ts +2 -0
  87. package/dist/types/client/scroll-area.d.ts +2 -0
  88. package/dist/types/client/sheet.d.ts +2 -0
  89. package/dist/types/client/slider.d.ts +2 -0
  90. package/dist/types/client/switch.d.ts +2 -0
  91. package/dist/types/client/tabs.d.ts +2 -0
  92. package/dist/types/client/toaster.d.ts +2 -0
  93. package/dist/types/client/toggle.d.ts +2 -0
  94. package/dist/types/client/tooltip.d.ts +2 -0
  95. package/dist/types/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
  96. package/dist/types/components/Label/Label.stories.d.ts +1 -1
  97. package/dist/types/components/Label/Label.stories.d.ts.map +1 -1
  98. package/dist/types/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  99. package/dist/types/components/Switch/Switch.stories.d.ts.map +1 -1
  100. package/dist/types/components/Textarea/Textarea.stories.d.ts.map +1 -1
  101. package/dist/types/components/client.d.ts +1 -0
  102. package/dist/types/components/client.d.ts.map +1 -1
  103. package/dist/types/components/index.d.ts +0 -1
  104. package/dist/types/components/index.d.ts.map +1 -1
  105. package/dist/ui.css +1 -1
  106. package/dist/utils-B6yFEsav.js +8 -0
  107. package/dist/utils-IjLH3w2e.cjs +1 -0
  108. package/package.json +186 -1
  109. package/dist/Skeleton-Bn2Kdinb.cjs +0 -62
  110. package/dist/Skeleton-CnBXKh2c.js +0 -3511
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("@radix-ui/react-scroll-area"),c=require("../utils-IjLH3w2e.cjs");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return r.default=e,Object.freeze(r)}const o=i(s);function u({className:e,children:r,...l}){return t.jsxs(o.Root,{"data-slot":"scroll-area",className:c.cn("relative",e),...l,children:[t.jsx(o.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),t.jsx(n,{}),t.jsx(o.Corner,{})]})}function n({className:e,orientation:r="vertical",...l}){return t.jsx(o.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:r,className:c.cn("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...l,children:t.jsx(o.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}exports.ScrollArea=u;exports.ScrollBar=n;
@@ -0,0 +1,60 @@
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-scroll-area";
3
+ import { c as t } from "../utils-B6yFEsav.js";
4
+ function u({
5
+ className: e,
6
+ children: r,
7
+ ...a
8
+ }) {
9
+ return /* @__PURE__ */ s(
10
+ o.Root,
11
+ {
12
+ "data-slot": "scroll-area",
13
+ className: t("relative", e),
14
+ ...a,
15
+ children: [
16
+ /* @__PURE__ */ l(
17
+ o.Viewport,
18
+ {
19
+ "data-slot": "scroll-area-viewport",
20
+ className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
21
+ children: r
22
+ }
23
+ ),
24
+ /* @__PURE__ */ l(c, {}),
25
+ /* @__PURE__ */ l(o.Corner, {})
26
+ ]
27
+ }
28
+ );
29
+ }
30
+ function c({
31
+ className: e,
32
+ orientation: r = "vertical",
33
+ ...a
34
+ }) {
35
+ return /* @__PURE__ */ l(
36
+ o.ScrollAreaScrollbar,
37
+ {
38
+ "data-slot": "scroll-area-scrollbar",
39
+ orientation: r,
40
+ className: t(
41
+ "flex touch-none p-px transition-colors select-none",
42
+ r === "vertical" && "h-full w-2.5 border-l border-l-transparent",
43
+ r === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
44
+ e
45
+ ),
46
+ ...a,
47
+ children: /* @__PURE__ */ l(
48
+ o.ScrollAreaThumb,
49
+ {
50
+ "data-slot": "scroll-area-thumb",
51
+ className: "bg-border relative flex-1 rounded-full"
52
+ }
53
+ )
54
+ }
55
+ );
56
+ }
57
+ export {
58
+ u as ScrollArea,
59
+ c as ScrollBar
60
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("@radix-ui/react-dialog"),l=require("lucide-react"),n=require("../utils-IjLH3w2e.cjs");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const s=d(i);function c({...t}){return o.jsx(s.Root,{"data-slot":"sheet",...t})}function u({...t}){return o.jsx(s.Trigger,{"data-slot":"sheet-trigger",...t})}function f({...t}){return o.jsx(s.Close,{"data-slot":"sheet-close",...t})}function h({...t}){return o.jsx(s.Portal,{"data-slot":"sheet-portal",...t})}function g({className:t,...e}){return o.jsx(s.Overlay,{"data-slot":"sheet-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,children:e,side:a="right",...r}){return o.jsxs(h,{children:[o.jsx(g,{}),o.jsxs(s.Content,{"data-slot":"sheet-content",className:n.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",a==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",a==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",a==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,o.jsxs(s.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsx(l.XIcon,{className:"size-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function p({className:t,...e}){return o.jsx("div",{"data-slot":"sheet-header",className:n.cn("flex flex-col gap-1.5 p-4",t),...e})}function x({className:t,...e}){return o.jsx("div",{"data-slot":"sheet-footer",className:n.cn("mt-auto flex flex-col gap-2 p-4",t),...e})}function b({className:t,...e}){return o.jsx(s.Title,{"data-slot":"sheet-title",className:n.cn("text-foreground font-semibold",t),...e})}function S({className:t,...e}){return o.jsx(s.Description,{"data-slot":"sheet-description",className:n.cn("text-muted-foreground text-sm",t),...e})}exports.Sheet=c;exports.SheetClose=f;exports.SheetContent=m;exports.SheetDescription=S;exports.SheetFooter=x;exports.SheetHeader=p;exports.SheetTitle=b;exports.SheetTrigger=u;
@@ -0,0 +1,117 @@
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-dialog";
3
+ import { XIcon as l } from "lucide-react";
4
+ import { c as s } from "../utils-B6yFEsav.js";
5
+ function h({ ...t }) {
6
+ return /* @__PURE__ */ e(a.Root, { "data-slot": "sheet", ...t });
7
+ }
8
+ function p({ ...t }) {
9
+ return /* @__PURE__ */ e(a.Trigger, { "data-slot": "sheet-trigger", ...t });
10
+ }
11
+ function g({ ...t }) {
12
+ return /* @__PURE__ */ e(a.Close, { "data-slot": "sheet-close", ...t });
13
+ }
14
+ function d({ ...t }) {
15
+ return /* @__PURE__ */ e(a.Portal, { "data-slot": "sheet-portal", ...t });
16
+ }
17
+ function c({
18
+ className: t,
19
+ ...o
20
+ }) {
21
+ return /* @__PURE__ */ e(
22
+ a.Overlay,
23
+ {
24
+ "data-slot": "sheet-overlay",
25
+ className: s(
26
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
27
+ t
28
+ ),
29
+ ...o
30
+ }
31
+ );
32
+ }
33
+ function x({
34
+ className: t,
35
+ children: o,
36
+ side: n = "right",
37
+ ...i
38
+ }) {
39
+ return /* @__PURE__ */ r(d, { children: [
40
+ /* @__PURE__ */ e(c, {}),
41
+ /* @__PURE__ */ r(
42
+ a.Content,
43
+ {
44
+ "data-slot": "sheet-content",
45
+ className: s(
46
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
47
+ n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
48
+ n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
49
+ n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
50
+ n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
51
+ t
52
+ ),
53
+ ...i,
54
+ children: [
55
+ o,
56
+ /* @__PURE__ */ r(a.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
57
+ /* @__PURE__ */ e(l, { className: "size-4" }),
58
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
59
+ ] })
60
+ ]
61
+ }
62
+ )
63
+ ] });
64
+ }
65
+ function b({ className: t, ...o }) {
66
+ return /* @__PURE__ */ e(
67
+ "div",
68
+ {
69
+ "data-slot": "sheet-header",
70
+ className: s("flex flex-col gap-1.5 p-4", t),
71
+ ...o
72
+ }
73
+ );
74
+ }
75
+ function y({ className: t, ...o }) {
76
+ return /* @__PURE__ */ e(
77
+ "div",
78
+ {
79
+ "data-slot": "sheet-footer",
80
+ className: s("mt-auto flex flex-col gap-2 p-4", t),
81
+ ...o
82
+ }
83
+ );
84
+ }
85
+ function S({ className: t, ...o }) {
86
+ return /* @__PURE__ */ e(
87
+ a.Title,
88
+ {
89
+ "data-slot": "sheet-title",
90
+ className: s("text-foreground font-semibold", t),
91
+ ...o
92
+ }
93
+ );
94
+ }
95
+ function N({
96
+ className: t,
97
+ ...o
98
+ }) {
99
+ return /* @__PURE__ */ e(
100
+ a.Description,
101
+ {
102
+ "data-slot": "sheet-description",
103
+ className: s("text-muted-foreground text-sm", t),
104
+ ...o
105
+ }
106
+ );
107
+ }
108
+ export {
109
+ h as Sheet,
110
+ g as SheetClose,
111
+ x as SheetContent,
112
+ N as SheetDescription,
113
+ y as SheetFooter,
114
+ b as SheetHeader,
115
+ S as SheetTitle,
116
+ p as SheetTrigger
117
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),b=require("react"),f=require("@radix-ui/react-slider"),l=require("../utils-IjLH3w2e.cjs");function s(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const h=s(b),o=s(f);function g({className:r,defaultValue:t,value:e,min:i=0,max:n=100,...c}){const d=h.useMemo(()=>Array.isArray(e)?e:Array.isArray(t)?t:[i,n],[e,t,i,n]);return a.jsxs(o.Root,{"data-slot":"slider",defaultValue:t,value:e,min:i,max:n,className:l.cn("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",r),...c,children:[a.jsx(o.Track,{"data-slot":"slider-track",className:l.cn("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"),children:a.jsx(o.Range,{"data-slot":"slider-range",className:l.cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(m,u)=>a.jsx(o.Thumb,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 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"},u))]})}exports.Slider=g;
@@ -0,0 +1,63 @@
1
+ import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import * as a from "@radix-ui/react-slider";
4
+ import { c as n } from "../utils-B6yFEsav.js";
5
+ function g({
6
+ className: l,
7
+ defaultValue: r,
8
+ value: t,
9
+ min: o = 0,
10
+ max: i = 100,
11
+ ...s
12
+ }) {
13
+ const d = m.useMemo(
14
+ () => Array.isArray(t) ? t : Array.isArray(r) ? r : [o, i],
15
+ [t, r, o, i]
16
+ );
17
+ return /* @__PURE__ */ h(
18
+ a.Root,
19
+ {
20
+ "data-slot": "slider",
21
+ defaultValue: r,
22
+ value: t,
23
+ min: o,
24
+ max: i,
25
+ className: n(
26
+ "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",
27
+ l
28
+ ),
29
+ ...s,
30
+ children: [
31
+ /* @__PURE__ */ e(
32
+ a.Track,
33
+ {
34
+ "data-slot": "slider-track",
35
+ className: n(
36
+ "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"
37
+ ),
38
+ children: /* @__PURE__ */ e(
39
+ a.Range,
40
+ {
41
+ "data-slot": "slider-range",
42
+ className: n(
43
+ "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
44
+ )
45
+ }
46
+ )
47
+ }
48
+ ),
49
+ Array.from({ length: d.length }, (b, c) => /* @__PURE__ */ e(
50
+ a.Thumb,
51
+ {
52
+ "data-slot": "slider-thumb",
53
+ className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 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"
54
+ },
55
+ c
56
+ ))
57
+ ]
58
+ }
59
+ );
60
+ }
61
+ export {
62
+ g as Slider
63
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("@radix-ui/react-switch"),a=require("../utils-IjLH3w2e.cjs");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=o(c);function l({className:e,...t}){return i.jsx(s.Root,{"data-slot":"switch",className:a.cn("peer data-[state=checked]:bg-secondary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsx(s.Thumb,{"data-slot":"switch-thumb",className:a.cn("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}exports.Switch=l;
@@ -0,0 +1,28 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as t from "@radix-ui/react-switch";
3
+ import { c as r } from "../utils-B6yFEsav.js";
4
+ function o({ className: a, ...i }) {
5
+ return /* @__PURE__ */ e(
6
+ t.Root,
7
+ {
8
+ "data-slot": "switch",
9
+ className: r(
10
+ "peer data-[state=checked]:bg-secondary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
11
+ a
12
+ ),
13
+ ...i,
14
+ children: /* @__PURE__ */ e(
15
+ t.Thumb,
16
+ {
17
+ "data-slot": "switch-thumb",
18
+ className: r(
19
+ "bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
20
+ )
21
+ }
22
+ )
23
+ }
24
+ );
25
+ }
26
+ export {
27
+ o as Switch
28
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("@radix-ui/react-tabs"),r=require("../utils-IjLH3w2e.cjs");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const a=c(o);function l({className:e,...t}){return n.jsx(a.Root,{"data-slot":"tabs",className:r.cn("flex flex-col gap-2",e),...t})}function u({className:e,...t}){return n.jsx(a.List,{"data-slot":"tabs-list",className:r.cn("bg-primary text-secondary-foreground inline-flex h-10 w-fit items-center justify-center rounded-md p-1 gap-2",e),...t})}function d({className:e,...t}){return n.jsx(a.Trigger,{"data-slot":"tabs-trigger",className:r.cn("cursor-pointer data-[state=active]:bg-background data-[state=active]:text-secondary data-[state=active]:rounded-xs focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-secondary-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-xs 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",e),...t})}function b({className:e,...t}){return n.jsx(a.Content,{"data-slot":"tabs-content",className:r.cn("flex-1 outline-none",e),...t})}exports.Tabs=l;exports.TabsContent=b;exports.TabsList=u;exports.TabsTrigger=d;
@@ -0,0 +1,55 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-tabs";
3
+ import { c as n } from "../utils-B6yFEsav.js";
4
+ function o({ className: t, ...e }) {
5
+ return /* @__PURE__ */ s(
6
+ a.Root,
7
+ {
8
+ "data-slot": "tabs",
9
+ className: n("flex flex-col gap-2", t),
10
+ ...e
11
+ }
12
+ );
13
+ }
14
+ function c({ className: t, ...e }) {
15
+ return /* @__PURE__ */ s(
16
+ a.List,
17
+ {
18
+ "data-slot": "tabs-list",
19
+ className: n(
20
+ "bg-primary text-secondary-foreground inline-flex h-10 w-fit items-center justify-center rounded-md p-1 gap-2",
21
+ t
22
+ ),
23
+ ...e
24
+ }
25
+ );
26
+ }
27
+ function d({ className: t, ...e }) {
28
+ return /* @__PURE__ */ s(
29
+ a.Trigger,
30
+ {
31
+ "data-slot": "tabs-trigger",
32
+ className: n(
33
+ "cursor-pointer data-[state=active]:bg-background data-[state=active]:text-secondary data-[state=active]:rounded-xs focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-secondary-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-xs 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",
34
+ t
35
+ ),
36
+ ...e
37
+ }
38
+ );
39
+ }
40
+ function l({ className: t, ...e }) {
41
+ return /* @__PURE__ */ s(
42
+ a.Content,
43
+ {
44
+ "data-slot": "tabs-content",
45
+ className: n("flex-1 outline-none", t),
46
+ ...e
47
+ }
48
+ );
49
+ }
50
+ export {
51
+ o as Tabs,
52
+ l as TabsContent,
53
+ c as TabsList,
54
+ d as TabsTrigger
55
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("next-themes"),s=require("sonner"),n=({...e})=>{const{theme:r="system"}=t.useTheme();return o.jsx(s.Toaster,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=n;
@@ -0,0 +1,22 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useTheme as t } from "next-themes";
3
+ import { Toaster as s } from "sonner";
4
+ const n = ({ ...r }) => {
5
+ const { theme: o = "system" } = t();
6
+ return /* @__PURE__ */ e(
7
+ s,
8
+ {
9
+ theme: o,
10
+ className: "toaster group",
11
+ style: {
12
+ "--normal-bg": "var(--popover)",
13
+ "--normal-text": "var(--popover-foreground)",
14
+ "--normal-border": "var(--border)"
15
+ },
16
+ ...r
17
+ }
18
+ );
19
+ };
20
+ export {
21
+ n as Toaster
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("@radix-ui/react-toggle"),s=require("class-variance-authority"),c=require("../utils-IjLH3w2e.cjs");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=u(o),i=s.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium 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",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:n,size:t,...r}){return a.jsx(l.Root,{"data-slot":"toggle",className:c.cn(i({variant:n,size:t,className:e})),...r})}exports.Toggle=d;exports.toggleVariants=i;
@@ -0,0 +1,43 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import * as a from "@radix-ui/react-toggle";
3
+ import { cva as o } from "class-variance-authority";
4
+ import { c as s } from "../utils-B6yFEsav.js";
5
+ const d = o(
6
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium 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",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-transparent",
11
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
12
+ },
13
+ size: {
14
+ default: "h-9 px-2 min-w-9",
15
+ sm: "h-8 px-1.5 min-w-8",
16
+ lg: "h-10 px-2.5 min-w-10"
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ variant: "default",
21
+ size: "default"
22
+ }
23
+ }
24
+ );
25
+ function u({
26
+ className: e,
27
+ variant: t,
28
+ size: i,
29
+ ...r
30
+ }) {
31
+ return /* @__PURE__ */ n(
32
+ a.Root,
33
+ {
34
+ "data-slot": "toggle",
35
+ className: s(d({ variant: t, size: i, className: e })),
36
+ ...r
37
+ }
38
+ );
39
+ }
40
+ export {
41
+ u as Toggle,
42
+ d as toggleVariants
43
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("@radix-ui/react-tooltip"),d=require("../utils-IjLH3w2e.cjs");function s(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const r=s(l);function a({delayDuration:t=0,...o}){return e.jsx(r.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function c({...t}){return e.jsx(a,{children:e.jsx(r.Root,{"data-slot":"tooltip",...t})})}function u({...t}){return e.jsx(r.Trigger,{"data-slot":"tooltip-trigger",...t})}function p({className:t,sideOffset:o=0,children:i,...n}){return e.jsx(r.Portal,{children:e.jsxs(r.Content,{"data-slot":"tooltip-content",sideOffset:o,className:d.cn("bg-foreground text-background 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",t),...n,children:[i,e.jsx(r.Arrow,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}exports.Tooltip=c;exports.TooltipContent=p;exports.TooltipProvider=a;exports.TooltipTrigger=u;
@@ -0,0 +1,51 @@
1
+ import { jsx as i, jsxs as n } from "react/jsx-runtime";
2
+ import * as o from "@radix-ui/react-tooltip";
3
+ import { c as d } from "../utils-B6yFEsav.js";
4
+ function l({
5
+ delayDuration: t = 0,
6
+ ...r
7
+ }) {
8
+ return /* @__PURE__ */ i(
9
+ o.Provider,
10
+ {
11
+ "data-slot": "tooltip-provider",
12
+ delayDuration: t,
13
+ ...r
14
+ }
15
+ );
16
+ }
17
+ function m({ ...t }) {
18
+ return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i(o.Root, { "data-slot": "tooltip", ...t }) });
19
+ }
20
+ function p({ ...t }) {
21
+ return /* @__PURE__ */ i(o.Trigger, { "data-slot": "tooltip-trigger", ...t });
22
+ }
23
+ function c({
24
+ className: t,
25
+ sideOffset: r = 0,
26
+ children: e,
27
+ ...a
28
+ }) {
29
+ return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ n(
30
+ o.Content,
31
+ {
32
+ "data-slot": "tooltip-content",
33
+ sideOffset: r,
34
+ className: d(
35
+ "bg-foreground text-background 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",
36
+ t
37
+ ),
38
+ ...a,
39
+ children: [
40
+ e,
41
+ /* @__PURE__ */ i(o.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
42
+ ]
43
+ }
44
+ ) });
45
+ }
46
+ export {
47
+ m as Tooltip,
48
+ c as TooltipContent,
49
+ l as TooltipProvider,
50
+ p as TooltipTrigger
51
+ };