@agroshine/ags-web-ui-kit 1.0.0
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.
- package/README.md +75 -0
- package/dist/atoms/index.cjs +134 -0
- package/dist/atoms/index.cjs.map +1 -0
- package/dist/atoms/index.d.cts +583 -0
- package/dist/atoms/index.d.ts +583 -0
- package/dist/atoms/index.js +9 -0
- package/dist/atoms/index.js.map +1 -0
- package/dist/chunk-2KRMLIJQ.cjs +52 -0
- package/dist/chunk-2KRMLIJQ.cjs.map +1 -0
- package/dist/chunk-2TBYPKQ3.cjs +79 -0
- package/dist/chunk-2TBYPKQ3.cjs.map +1 -0
- package/dist/chunk-5FWELSEZ.js +1296 -0
- package/dist/chunk-5FWELSEZ.js.map +1 -0
- package/dist/chunk-5PEOJVY7.cjs +1502 -0
- package/dist/chunk-5PEOJVY7.cjs.map +1 -0
- package/dist/chunk-6LUGTNMH.js +259 -0
- package/dist/chunk-6LUGTNMH.js.map +1 -0
- package/dist/chunk-6O2IDBTX.js +112 -0
- package/dist/chunk-6O2IDBTX.js.map +1 -0
- package/dist/chunk-6YUNWKT3.js +26 -0
- package/dist/chunk-6YUNWKT3.js.map +1 -0
- package/dist/chunk-7R6OXNES.cjs +321 -0
- package/dist/chunk-7R6OXNES.cjs.map +1 -0
- package/dist/chunk-A3A7PJWG.cjs +13 -0
- package/dist/chunk-A3A7PJWG.cjs.map +1 -0
- package/dist/chunk-A7TDGQAB.js +557 -0
- package/dist/chunk-A7TDGQAB.js.map +1 -0
- package/dist/chunk-C4LX3XTN.cjs +1187 -0
- package/dist/chunk-C4LX3XTN.cjs.map +1 -0
- package/dist/chunk-DZW4GS2T.cjs +1340 -0
- package/dist/chunk-DZW4GS2T.cjs.map +1 -0
- package/dist/chunk-E3BTK736.cjs +174 -0
- package/dist/chunk-E3BTK736.cjs.map +1 -0
- package/dist/chunk-ERGKCXM2.cjs +267 -0
- package/dist/chunk-ERGKCXM2.cjs.map +1 -0
- package/dist/chunk-FOA46NSG.cjs +574 -0
- package/dist/chunk-FOA46NSG.cjs.map +1 -0
- package/dist/chunk-JTFCE6RA.js +1156 -0
- package/dist/chunk-JTFCE6RA.js.map +1 -0
- package/dist/chunk-KINOE57L.js +225 -0
- package/dist/chunk-KINOE57L.js.map +1 -0
- package/dist/chunk-MOED3QPY.js +11 -0
- package/dist/chunk-MOED3QPY.js.map +1 -0
- package/dist/chunk-NVR34DY2.cjs +4 -0
- package/dist/chunk-NVR34DY2.cjs.map +1 -0
- package/dist/chunk-PI3IJWBG.js +79 -0
- package/dist/chunk-PI3IJWBG.js.map +1 -0
- package/dist/chunk-PXAMTGYY.js +3 -0
- package/dist/chunk-PXAMTGYY.js.map +1 -0
- package/dist/chunk-QAZMI5VH.js +151 -0
- package/dist/chunk-QAZMI5VH.js.map +1 -0
- package/dist/chunk-QEG27NX6.js +30 -0
- package/dist/chunk-QEG27NX6.js.map +1 -0
- package/dist/chunk-THTOUSMG.cjs +52 -0
- package/dist/chunk-THTOUSMG.cjs.map +1 -0
- package/dist/chunk-UAXKB6IH.cjs +32 -0
- package/dist/chunk-UAXKB6IH.cjs.map +1 -0
- package/dist/chunk-W5IHWAMM.js +48 -0
- package/dist/chunk-W5IHWAMM.js.map +1 -0
- package/dist/chunk-X2UJQVZJ.cjs +139 -0
- package/dist/chunk-X2UJQVZJ.cjs.map +1 -0
- package/dist/chunk-X43C5OJD.js +1460 -0
- package/dist/chunk-X43C5OJD.js.map +1 -0
- package/dist/chunk-XCYSBWV4.js +56 -0
- package/dist/chunk-XCYSBWV4.js.map +1 -0
- package/dist/chunk-XX4CBCEB.cjs +102 -0
- package/dist/chunk-XX4CBCEB.cjs.map +1 -0
- package/dist/hooks/index.cjs +33 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.cts +59 -0
- package/dist/hooks/index.d.ts +59 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.cjs +366 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/interface-DnK5S6ww.d.cts +51 -0
- package/dist/interface-DnK5S6ww.d.ts +51 -0
- package/dist/lib/index.cjs +13 -0
- package/dist/lib/index.cjs.map +1 -0
- package/dist/lib/index.d.cts +5 -0
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/index.js +4 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/molecules/index.cjs +123 -0
- package/dist/molecules/index.cjs.map +1 -0
- package/dist/molecules/index.d.cts +449 -0
- package/dist/molecules/index.d.ts +449 -0
- package/dist/molecules/index.js +10 -0
- package/dist/molecules/index.js.map +1 -0
- package/dist/organisms/index.cjs +102 -0
- package/dist/organisms/index.cjs.map +1 -0
- package/dist/organisms/index.d.cts +396 -0
- package/dist/organisms/index.d.ts +396 -0
- package/dist/organisms/index.js +9 -0
- package/dist/organisms/index.js.map +1 -0
- package/dist/tooltip-Bl2ZTtfg.d.cts +16 -0
- package/dist/tooltip-Bl2ZTtfg.d.ts +16 -0
- package/dist/ui/index.cjs +955 -0
- package/dist/ui/index.cjs.map +1 -0
- package/dist/ui/index.d.cts +252 -0
- package/dist/ui/index.d.ts +252 -0
- package/dist/ui/index.js +642 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +200 -0
- package/tailwind.preset.cjs +134 -0
|
@@ -0,0 +1,955 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkERGKCXM2_cjs = require('../chunk-ERGKCXM2.cjs');
|
|
4
|
+
var chunk7R6OXNES_cjs = require('../chunk-7R6OXNES.cjs');
|
|
5
|
+
var chunkX2UJQVZJ_cjs = require('../chunk-X2UJQVZJ.cjs');
|
|
6
|
+
var chunk2KRMLIJQ_cjs = require('../chunk-2KRMLIJQ.cjs');
|
|
7
|
+
var chunk2TBYPKQ3_cjs = require('../chunk-2TBYPKQ3.cjs');
|
|
8
|
+
var chunkA3A7PJWG_cjs = require('../chunk-A3A7PJWG.cjs');
|
|
9
|
+
var React5 = require('react');
|
|
10
|
+
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
11
|
+
var lucideReact = require('lucide-react');
|
|
12
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
13
|
+
var LabelPrimitive = require('@radix-ui/react-label');
|
|
14
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
15
|
+
var ProgressPrimitive = require('@radix-ui/react-progress');
|
|
16
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
17
|
+
var SliderPrimitive = require('@radix-ui/react-slider');
|
|
18
|
+
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
19
|
+
|
|
20
|
+
function _interopNamespace(e) {
|
|
21
|
+
if (e && e.__esModule) return e;
|
|
22
|
+
var n = Object.create(null);
|
|
23
|
+
if (e) {
|
|
24
|
+
Object.keys(e).forEach(function (k) {
|
|
25
|
+
if (k !== 'default') {
|
|
26
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
27
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return e[k]; }
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
n.default = e;
|
|
35
|
+
return Object.freeze(n);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var React5__namespace = /*#__PURE__*/_interopNamespace(React5);
|
|
39
|
+
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
40
|
+
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
41
|
+
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
42
|
+
var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
|
|
43
|
+
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
44
|
+
|
|
45
|
+
var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
|
|
46
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
|
|
47
|
+
var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
48
|
+
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
49
|
+
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
50
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
51
|
+
var DropdownMenuSubTrigger = React5__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
52
|
+
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
53
|
+
{
|
|
54
|
+
ref,
|
|
55
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
56
|
+
"flex cursor-default select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-[13.5px] text-foreground outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent",
|
|
57
|
+
inset && "pl-8",
|
|
58
|
+
className
|
|
59
|
+
),
|
|
60
|
+
...props,
|
|
61
|
+
children: [
|
|
62
|
+
children,
|
|
63
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-3 w-3 text-muted-foreground" })
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
));
|
|
67
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
68
|
+
var DropdownMenuSubContent = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
69
|
+
DropdownMenuPrimitive__namespace.SubContent,
|
|
70
|
+
{
|
|
71
|
+
ref,
|
|
72
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
73
|
+
// Canon Components.html `.dmenu` → border-radius 6px (rounded-md), min-w 220, p-1, shadow-md
|
|
74
|
+
"z-50 min-w-[220px] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
75
|
+
className
|
|
76
|
+
),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
));
|
|
80
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
81
|
+
var DropdownMenuContent = React5__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
82
|
+
DropdownMenuPrimitive__namespace.Content,
|
|
83
|
+
{
|
|
84
|
+
ref,
|
|
85
|
+
sideOffset,
|
|
86
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
87
|
+
// Canon Components.html `.dmenu` → border-radius 6px (rounded-md), min-w 220, p-1, shadow-md
|
|
88
|
+
"z-50 min-w-[220px] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
89
|
+
className
|
|
90
|
+
),
|
|
91
|
+
...props
|
|
92
|
+
}
|
|
93
|
+
) }));
|
|
94
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
95
|
+
var DropdownMenuItem = React5__namespace.forwardRef(({ className, inset, variant = "default", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
+
DropdownMenuPrimitive__namespace.Item,
|
|
97
|
+
{
|
|
98
|
+
ref,
|
|
99
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
100
|
+
// Canon `.dmenu-item` → padding 6px 10px, radius 4px (rounded-sm), font 13.5px
|
|
101
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-[13.5px] text-foreground outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
102
|
+
variant === "danger" && "text-destructive focus:bg-destructive/[0.08] focus:text-destructive",
|
|
103
|
+
inset && "pl-8",
|
|
104
|
+
className
|
|
105
|
+
),
|
|
106
|
+
...props
|
|
107
|
+
}
|
|
108
|
+
));
|
|
109
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
110
|
+
var DropdownMenuCheckboxItem = React5__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
111
|
+
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
112
|
+
{
|
|
113
|
+
ref,
|
|
114
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
115
|
+
// Canon `.dmenu-item:has(.check-mark)` → pl-8 (32px), resto igual a item
|
|
116
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2.5 text-[13.5px] text-foreground outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
117
|
+
className
|
|
118
|
+
),
|
|
119
|
+
checked,
|
|
120
|
+
...props,
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2.5 flex h-3.5 w-3.5 items-center justify-center text-primary", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-3.5 w-3.5" }) }) }),
|
|
123
|
+
children
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
));
|
|
127
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
128
|
+
var DropdownMenuRadioItem = React5__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
129
|
+
DropdownMenuPrimitive__namespace.RadioItem,
|
|
130
|
+
{
|
|
131
|
+
ref,
|
|
132
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
133
|
+
// Canon `.dmenu-item.radio-item` → pl-8, dot 6px primary
|
|
134
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2.5 text-[13.5px] text-foreground outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
135
|
+
className
|
|
136
|
+
),
|
|
137
|
+
...props,
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3.5 flex h-1.5 w-1.5 items-center justify-center text-primary", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-1.5 w-1.5 fill-current" }) }) }),
|
|
140
|
+
children
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
));
|
|
144
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
145
|
+
var DropdownMenuLabel = React5__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
+
DropdownMenuPrimitive__namespace.Label,
|
|
147
|
+
{
|
|
148
|
+
ref,
|
|
149
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
150
|
+
// Canon `.dmenu-label` → px-2 py-1.5 text-[13px] font-semibold text-foreground
|
|
151
|
+
"px-2 py-1.5 text-[13px] font-semibold text-foreground",
|
|
152
|
+
inset && "pl-8",
|
|
153
|
+
className
|
|
154
|
+
),
|
|
155
|
+
...props
|
|
156
|
+
}
|
|
157
|
+
));
|
|
158
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
159
|
+
var DropdownMenuSeparator = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
160
|
+
DropdownMenuPrimitive__namespace.Separator,
|
|
161
|
+
{
|
|
162
|
+
ref,
|
|
163
|
+
className: chunkA3A7PJWG_cjs.cn("-mx-1 my-1 h-px bg-border", className),
|
|
164
|
+
...props
|
|
165
|
+
}
|
|
166
|
+
));
|
|
167
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
|
|
168
|
+
var DropdownMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
169
|
+
"span",
|
|
170
|
+
{
|
|
171
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
172
|
+
"ml-auto inline-flex items-center gap-1",
|
|
173
|
+
// Estilo kbd: chip border-border bg-muted rounded-sm 3px, mono, 10.5px
|
|
174
|
+
"[&_kbd]:inline-block [&_kbd]:rounded-sm [&_kbd]:border [&_kbd]:border-border [&_kbd]:bg-muted",
|
|
175
|
+
"[&_kbd]:px-1.5 [&_kbd]:py-px [&_kbd]:min-w-[18px] [&_kbd]:text-center",
|
|
176
|
+
"[&_kbd]:font-mono [&_kbd]:text-[10.5px] [&_kbd]:font-medium [&_kbd]:leading-tight [&_kbd]:text-muted-foreground",
|
|
177
|
+
// Fallback (string plano) — mantiene look shadcn legacy
|
|
178
|
+
"[&:not(:has(kbd))]:text-xs [&:not(:has(kbd))]:tracking-widest [&:not(:has(kbd))]:opacity-60",
|
|
179
|
+
className
|
|
180
|
+
),
|
|
181
|
+
...props
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
185
|
+
var labelVariants = classVarianceAuthority.cva(
|
|
186
|
+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
187
|
+
);
|
|
188
|
+
var Label2 = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(LabelPrimitive__namespace.Root, { ref, className: chunkA3A7PJWG_cjs.cn(labelVariants(), className), ...props }));
|
|
189
|
+
Label2.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
190
|
+
var Progress = React5__namespace.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
191
|
+
ProgressPrimitive__namespace.Root,
|
|
192
|
+
{
|
|
193
|
+
ref,
|
|
194
|
+
className: chunkA3A7PJWG_cjs.cn("relative h-2 w-full overflow-hidden rounded-full bg-default-200", className),
|
|
195
|
+
...props,
|
|
196
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
197
|
+
ProgressPrimitive__namespace.Indicator,
|
|
198
|
+
{
|
|
199
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
200
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
));
|
|
205
|
+
Progress.displayName = ProgressPrimitive__namespace.Root.displayName;
|
|
206
|
+
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
207
|
+
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
208
|
+
var SIDEBAR_WIDTH = "15rem";
|
|
209
|
+
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
210
|
+
var SIDEBAR_WIDTH_ICON = "3.5rem";
|
|
211
|
+
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
212
|
+
var SIDEBAR_MOBILE_BREAKPOINT = 768;
|
|
213
|
+
function useIsMobile(breakpoint = SIDEBAR_MOBILE_BREAKPOINT) {
|
|
214
|
+
const [isMobile, setIsMobile] = React5__namespace.useState(false);
|
|
215
|
+
React5__namespace.useEffect(() => {
|
|
216
|
+
if (typeof window === "undefined") return;
|
|
217
|
+
const mql = window.matchMedia(`(max-width: ${breakpoint - 1}px)`);
|
|
218
|
+
const onChange = () => setIsMobile(window.innerWidth < breakpoint);
|
|
219
|
+
onChange();
|
|
220
|
+
mql.addEventListener("change", onChange);
|
|
221
|
+
return () => mql.removeEventListener("change", onChange);
|
|
222
|
+
}, [breakpoint]);
|
|
223
|
+
return isMobile;
|
|
224
|
+
}
|
|
225
|
+
var SidebarContext = React5__namespace.createContext(null);
|
|
226
|
+
function useSidebar() {
|
|
227
|
+
const ctx = React5__namespace.useContext(SidebarContext);
|
|
228
|
+
if (!ctx) throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
229
|
+
return ctx;
|
|
230
|
+
}
|
|
231
|
+
var SidebarProvider = React5__namespace.forwardRef(
|
|
232
|
+
({
|
|
233
|
+
defaultOpen = true,
|
|
234
|
+
open: openProp,
|
|
235
|
+
onOpenChange: setOpenProp,
|
|
236
|
+
className,
|
|
237
|
+
style,
|
|
238
|
+
children,
|
|
239
|
+
...props
|
|
240
|
+
}, ref) => {
|
|
241
|
+
const isMobile = useIsMobile();
|
|
242
|
+
const [openMobile, setOpenMobile] = React5__namespace.useState(false);
|
|
243
|
+
const [_open, _setOpen] = React5__namespace.useState(defaultOpen);
|
|
244
|
+
const open = openProp ?? _open;
|
|
245
|
+
const setOpen = React5__namespace.useCallback(
|
|
246
|
+
(value) => {
|
|
247
|
+
if (setOpenProp) setOpenProp(value);
|
|
248
|
+
else _setOpen(value);
|
|
249
|
+
if (typeof document !== "undefined") {
|
|
250
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${value}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
[setOpenProp]
|
|
254
|
+
);
|
|
255
|
+
const toggleSidebar = React5__namespace.useCallback(() => {
|
|
256
|
+
if (isMobile) setOpenMobile((v) => !v);
|
|
257
|
+
else setOpen(!open);
|
|
258
|
+
}, [isMobile, open, setOpen]);
|
|
259
|
+
React5__namespace.useEffect(() => {
|
|
260
|
+
const handleKeyDown = (event) => {
|
|
261
|
+
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
262
|
+
event.preventDefault();
|
|
263
|
+
toggleSidebar();
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
267
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
268
|
+
}, [toggleSidebar]);
|
|
269
|
+
const state = open ? "expanded" : "collapsed";
|
|
270
|
+
const ctx = React5__namespace.useMemo(
|
|
271
|
+
() => ({ state, open, setOpen, openMobile, setOpenMobile, isMobile, toggleSidebar }),
|
|
272
|
+
[state, open, setOpen, openMobile, isMobile, toggleSidebar]
|
|
273
|
+
);
|
|
274
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SidebarContext.Provider, { value: ctx, children: /* @__PURE__ */ jsxRuntime.jsx(chunk7R6OXNES_cjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
275
|
+
"div",
|
|
276
|
+
{
|
|
277
|
+
ref,
|
|
278
|
+
style: {
|
|
279
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
280
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
281
|
+
...style
|
|
282
|
+
},
|
|
283
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
284
|
+
"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-default-100",
|
|
285
|
+
className
|
|
286
|
+
),
|
|
287
|
+
...props,
|
|
288
|
+
children
|
|
289
|
+
}
|
|
290
|
+
) }) });
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
SidebarProvider.displayName = "SidebarProvider";
|
|
294
|
+
var Sidebar = React5__namespace.forwardRef(
|
|
295
|
+
({
|
|
296
|
+
side = "left",
|
|
297
|
+
variant = "sidebar",
|
|
298
|
+
collapsible = "offcanvas",
|
|
299
|
+
className,
|
|
300
|
+
children,
|
|
301
|
+
...props
|
|
302
|
+
}, ref) => {
|
|
303
|
+
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
304
|
+
if (collapsible === "none") {
|
|
305
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
306
|
+
"div",
|
|
307
|
+
{
|
|
308
|
+
ref,
|
|
309
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
310
|
+
"flex h-full w-[--sidebar-width] flex-col border-r border-default-200 bg-default-50 text-default-900",
|
|
311
|
+
className
|
|
312
|
+
),
|
|
313
|
+
...props,
|
|
314
|
+
children
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
if (isMobile) {
|
|
319
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk7R6OXNES_cjs.Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
320
|
+
chunk7R6OXNES_cjs.SheetContent,
|
|
321
|
+
{
|
|
322
|
+
"data-sidebar": "sidebar",
|
|
323
|
+
"data-mobile": "true",
|
|
324
|
+
side,
|
|
325
|
+
hideCloseButton: true,
|
|
326
|
+
className: "w-[--sidebar-width] bg-default-50 p-0 text-default-900 [&>button]:hidden",
|
|
327
|
+
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
328
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full w-full flex-col", children })
|
|
329
|
+
}
|
|
330
|
+
) });
|
|
331
|
+
}
|
|
332
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
333
|
+
"div",
|
|
334
|
+
{
|
|
335
|
+
ref,
|
|
336
|
+
className: "group peer hidden text-default-900 md:block",
|
|
337
|
+
"data-state": state,
|
|
338
|
+
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
339
|
+
"data-variant": variant,
|
|
340
|
+
"data-side": side,
|
|
341
|
+
children: [
|
|
342
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
343
|
+
"div",
|
|
344
|
+
{
|
|
345
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
346
|
+
"duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
|
|
347
|
+
"group-data-[collapsible=offcanvas]:w-0",
|
|
348
|
+
"group-data-[side=right]:rotate-180",
|
|
349
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
350
|
+
)
|
|
351
|
+
}
|
|
352
|
+
),
|
|
353
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
354
|
+
"div",
|
|
355
|
+
{
|
|
356
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
357
|
+
"duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",
|
|
358
|
+
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
359
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l border-default-200",
|
|
360
|
+
className
|
|
361
|
+
),
|
|
362
|
+
...props,
|
|
363
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
364
|
+
"div",
|
|
365
|
+
{
|
|
366
|
+
"data-sidebar": "sidebar",
|
|
367
|
+
className: "flex h-full w-full flex-col bg-default-50 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-default-200",
|
|
368
|
+
children
|
|
369
|
+
}
|
|
370
|
+
)
|
|
371
|
+
}
|
|
372
|
+
)
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
);
|
|
378
|
+
Sidebar.displayName = "Sidebar";
|
|
379
|
+
var SidebarTrigger = React5__namespace.forwardRef(
|
|
380
|
+
({ className, onClick, ...props }, ref) => {
|
|
381
|
+
const { toggleSidebar } = useSidebar();
|
|
382
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
383
|
+
"button",
|
|
384
|
+
{
|
|
385
|
+
ref,
|
|
386
|
+
type: "button",
|
|
387
|
+
"data-sidebar": "trigger",
|
|
388
|
+
"aria-label": "Toggle sidebar",
|
|
389
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
390
|
+
"inline-flex h-8 w-8 items-center justify-center rounded-md text-default-700 hover:bg-default-100 hover:text-default-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500",
|
|
391
|
+
className
|
|
392
|
+
),
|
|
393
|
+
onClick: (e) => {
|
|
394
|
+
onClick?.(e);
|
|
395
|
+
toggleSidebar();
|
|
396
|
+
},
|
|
397
|
+
...props,
|
|
398
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, { className: "h-4 w-4" })
|
|
399
|
+
}
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
SidebarTrigger.displayName = "SidebarTrigger";
|
|
404
|
+
var SidebarInset = React5__namespace.forwardRef(
|
|
405
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
406
|
+
"main",
|
|
407
|
+
{
|
|
408
|
+
ref,
|
|
409
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
410
|
+
"relative flex min-h-svh flex-1 flex-col bg-default-50",
|
|
411
|
+
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
|
|
412
|
+
className
|
|
413
|
+
),
|
|
414
|
+
...props
|
|
415
|
+
}
|
|
416
|
+
)
|
|
417
|
+
);
|
|
418
|
+
SidebarInset.displayName = "SidebarInset";
|
|
419
|
+
var SidebarHeader = React5__namespace.forwardRef(
|
|
420
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
421
|
+
"div",
|
|
422
|
+
{
|
|
423
|
+
ref,
|
|
424
|
+
"data-sidebar": "header",
|
|
425
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
426
|
+
"flex items-center gap-3 border-b border-default-200 px-4 py-4 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-2",
|
|
427
|
+
className
|
|
428
|
+
),
|
|
429
|
+
...props
|
|
430
|
+
}
|
|
431
|
+
)
|
|
432
|
+
);
|
|
433
|
+
SidebarHeader.displayName = "SidebarHeader";
|
|
434
|
+
var SidebarContent = React5__namespace.forwardRef(
|
|
435
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
436
|
+
"div",
|
|
437
|
+
{
|
|
438
|
+
ref,
|
|
439
|
+
"data-sidebar": "content",
|
|
440
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
441
|
+
"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto py-2 group-data-[collapsible=icon]:overflow-hidden",
|
|
442
|
+
className
|
|
443
|
+
),
|
|
444
|
+
...props
|
|
445
|
+
}
|
|
446
|
+
)
|
|
447
|
+
);
|
|
448
|
+
SidebarContent.displayName = "SidebarContent";
|
|
449
|
+
var SidebarFooter = React5__namespace.forwardRef(
|
|
450
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
451
|
+
"div",
|
|
452
|
+
{
|
|
453
|
+
ref,
|
|
454
|
+
"data-sidebar": "footer",
|
|
455
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
456
|
+
"border-t border-default-200 px-4 py-3 text-sm text-default-700 group-data-[collapsible=icon]:px-2 group-data-[collapsible=icon]:text-center",
|
|
457
|
+
className
|
|
458
|
+
),
|
|
459
|
+
...props
|
|
460
|
+
}
|
|
461
|
+
)
|
|
462
|
+
);
|
|
463
|
+
SidebarFooter.displayName = "SidebarFooter";
|
|
464
|
+
var SidebarSeparator = React5__namespace.forwardRef(
|
|
465
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
466
|
+
"div",
|
|
467
|
+
{
|
|
468
|
+
ref,
|
|
469
|
+
"data-sidebar": "separator",
|
|
470
|
+
className: chunkA3A7PJWG_cjs.cn("mx-2 my-1 h-px bg-default-200", className),
|
|
471
|
+
...props
|
|
472
|
+
}
|
|
473
|
+
)
|
|
474
|
+
);
|
|
475
|
+
SidebarSeparator.displayName = "SidebarSeparator";
|
|
476
|
+
var SidebarGroup = React5__namespace.forwardRef(
|
|
477
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
478
|
+
"div",
|
|
479
|
+
{
|
|
480
|
+
ref,
|
|
481
|
+
"data-sidebar": "group",
|
|
482
|
+
className: chunkA3A7PJWG_cjs.cn("relative flex w-full min-w-0 flex-col", className),
|
|
483
|
+
...props
|
|
484
|
+
}
|
|
485
|
+
)
|
|
486
|
+
);
|
|
487
|
+
SidebarGroup.displayName = "SidebarGroup";
|
|
488
|
+
var SidebarGroupLabel = React5__namespace.forwardRef(
|
|
489
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
490
|
+
const Comp = asChild ? reactSlot.Slot : "div";
|
|
491
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
492
|
+
Comp,
|
|
493
|
+
{
|
|
494
|
+
ref,
|
|
495
|
+
"data-sidebar": "group-label",
|
|
496
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
497
|
+
"px-4 pt-4 pb-1 text-[11px] font-semibold uppercase tracking-wider text-default-600",
|
|
498
|
+
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
499
|
+
className
|
|
500
|
+
),
|
|
501
|
+
...props
|
|
502
|
+
}
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
);
|
|
506
|
+
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
507
|
+
var SidebarGroupContent = React5__namespace.forwardRef(
|
|
508
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
509
|
+
"div",
|
|
510
|
+
{
|
|
511
|
+
ref,
|
|
512
|
+
"data-sidebar": "group-content",
|
|
513
|
+
className: chunkA3A7PJWG_cjs.cn("flex w-full min-w-0 flex-col", className),
|
|
514
|
+
...props
|
|
515
|
+
}
|
|
516
|
+
)
|
|
517
|
+
);
|
|
518
|
+
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
519
|
+
var SidebarMenu = React5__namespace.forwardRef(
|
|
520
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
521
|
+
"ul",
|
|
522
|
+
{
|
|
523
|
+
ref,
|
|
524
|
+
"data-sidebar": "menu",
|
|
525
|
+
className: chunkA3A7PJWG_cjs.cn("flex w-full min-w-0 flex-col", className),
|
|
526
|
+
...props
|
|
527
|
+
}
|
|
528
|
+
)
|
|
529
|
+
);
|
|
530
|
+
SidebarMenu.displayName = "SidebarMenu";
|
|
531
|
+
var SidebarMenuItem = React5__namespace.forwardRef(
|
|
532
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
533
|
+
"li",
|
|
534
|
+
{
|
|
535
|
+
ref,
|
|
536
|
+
"data-sidebar": "menu-item",
|
|
537
|
+
className: chunkA3A7PJWG_cjs.cn("group/menu-item relative", className),
|
|
538
|
+
...props
|
|
539
|
+
}
|
|
540
|
+
)
|
|
541
|
+
);
|
|
542
|
+
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
543
|
+
var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
544
|
+
[
|
|
545
|
+
"group/menu-button peer/menu-button relative flex w-full items-center gap-3 overflow-hidden border-l-2 border-transparent px-4 py-2 text-left text-sm font-medium outline-none transition-colors",
|
|
546
|
+
"focus-visible:ring-2 focus-visible:ring-primary-500",
|
|
547
|
+
"data-[active=true]:bg-primary-50 data-[active=true]:text-primary-700 data-[active=true]:border-l-primary-500",
|
|
548
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-40",
|
|
549
|
+
"group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!justify-center group-data-[collapsible=icon]:!p-0 group-data-[collapsible=icon]:border-l-0",
|
|
550
|
+
"[&>svg]:size-4 [&>svg]:shrink-0"
|
|
551
|
+
].join(" "),
|
|
552
|
+
{
|
|
553
|
+
variants: {
|
|
554
|
+
variant: {
|
|
555
|
+
default: "text-default-800 hover:bg-default-100 hover:text-default-900",
|
|
556
|
+
ghost: "text-default-700 hover:bg-default-100"
|
|
557
|
+
},
|
|
558
|
+
size: {
|
|
559
|
+
default: "h-9 text-sm",
|
|
560
|
+
sm: "h-8 text-xs",
|
|
561
|
+
lg: "h-11 text-sm"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
defaultVariants: { variant: "default", size: "default" }
|
|
565
|
+
}
|
|
566
|
+
);
|
|
567
|
+
var SidebarMenuButton = React5__namespace.forwardRef(
|
|
568
|
+
({
|
|
569
|
+
asChild = false,
|
|
570
|
+
isActive = false,
|
|
571
|
+
variant = "default",
|
|
572
|
+
size = "default",
|
|
573
|
+
tooltip,
|
|
574
|
+
className,
|
|
575
|
+
...props
|
|
576
|
+
}, ref) => {
|
|
577
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
578
|
+
const { state, isMobile } = useSidebar();
|
|
579
|
+
const button = /* @__PURE__ */ jsxRuntime.jsx(
|
|
580
|
+
Comp,
|
|
581
|
+
{
|
|
582
|
+
ref,
|
|
583
|
+
"data-sidebar": "menu-button",
|
|
584
|
+
"data-size": size,
|
|
585
|
+
"data-active": isActive,
|
|
586
|
+
className: chunkA3A7PJWG_cjs.cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
587
|
+
...props
|
|
588
|
+
}
|
|
589
|
+
);
|
|
590
|
+
if (!tooltip) return button;
|
|
591
|
+
const tooltipProps = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
592
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk7R6OXNES_cjs.Tooltip, { children: [
|
|
593
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk7R6OXNES_cjs.TooltipTrigger, { asChild: true, children: button }),
|
|
594
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
595
|
+
chunk7R6OXNES_cjs.TooltipContent,
|
|
596
|
+
{
|
|
597
|
+
side: "right",
|
|
598
|
+
align: "center",
|
|
599
|
+
hidden: state !== "collapsed" || isMobile,
|
|
600
|
+
...tooltipProps
|
|
601
|
+
}
|
|
602
|
+
)
|
|
603
|
+
] });
|
|
604
|
+
}
|
|
605
|
+
);
|
|
606
|
+
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
607
|
+
var SidebarMenuBadge = React5__namespace.forwardRef(
|
|
608
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
609
|
+
"div",
|
|
610
|
+
{
|
|
611
|
+
ref,
|
|
612
|
+
"data-sidebar": "menu-badge",
|
|
613
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
614
|
+
"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 inline-flex min-w-5 select-none items-center justify-center rounded-full bg-secondary-100 px-1.5 py-0.5 text-[10px] font-semibold text-secondary-700",
|
|
615
|
+
"peer-data-[active=true]/menu-button:bg-white peer-data-[active=true]/menu-button:text-primary-700",
|
|
616
|
+
"group-data-[collapsible=icon]:hidden",
|
|
617
|
+
className
|
|
618
|
+
),
|
|
619
|
+
...props
|
|
620
|
+
}
|
|
621
|
+
)
|
|
622
|
+
);
|
|
623
|
+
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
624
|
+
var Slider = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
625
|
+
SliderPrimitive__namespace.Root,
|
|
626
|
+
{
|
|
627
|
+
ref,
|
|
628
|
+
className: chunkA3A7PJWG_cjs.cn("relative flex w-full touch-none select-none items-center", className),
|
|
629
|
+
...props,
|
|
630
|
+
children: [
|
|
631
|
+
/* @__PURE__ */ jsxRuntime.jsx(SliderPrimitive__namespace.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-default-200", children: /* @__PURE__ */ jsxRuntime.jsx(SliderPrimitive__namespace.Range, { className: "absolute h-full bg-primary" }) }),
|
|
632
|
+
Array.from({
|
|
633
|
+
length: Array.isArray(props.value) && props.value.length || Array.isArray(props.defaultValue) && props.defaultValue.length || 1
|
|
634
|
+
}).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
635
|
+
SliderPrimitive__namespace.Thumb,
|
|
636
|
+
{
|
|
637
|
+
className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
638
|
+
},
|
|
639
|
+
i
|
|
640
|
+
))
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
));
|
|
644
|
+
Slider.displayName = SliderPrimitive__namespace.Root.displayName;
|
|
645
|
+
var Switch = React5__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
646
|
+
SwitchPrimitives__namespace.Root,
|
|
647
|
+
{
|
|
648
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
649
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border border-border transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=unchecked]:bg-default-200",
|
|
650
|
+
className
|
|
651
|
+
),
|
|
652
|
+
...props,
|
|
653
|
+
ref,
|
|
654
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
655
|
+
SwitchPrimitives__namespace.Thumb,
|
|
656
|
+
{
|
|
657
|
+
className: chunkA3A7PJWG_cjs.cn(
|
|
658
|
+
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
659
|
+
)
|
|
660
|
+
}
|
|
661
|
+
)
|
|
662
|
+
}
|
|
663
|
+
));
|
|
664
|
+
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
665
|
+
|
|
666
|
+
Object.defineProperty(exports, "Avatar", {
|
|
667
|
+
enumerable: true,
|
|
668
|
+
get: function () { return chunkERGKCXM2_cjs.Avatar; }
|
|
669
|
+
});
|
|
670
|
+
Object.defineProperty(exports, "AvatarFallback", {
|
|
671
|
+
enumerable: true,
|
|
672
|
+
get: function () { return chunkERGKCXM2_cjs.AvatarFallback; }
|
|
673
|
+
});
|
|
674
|
+
Object.defineProperty(exports, "AvatarImage", {
|
|
675
|
+
enumerable: true,
|
|
676
|
+
get: function () { return chunkERGKCXM2_cjs.AvatarImage; }
|
|
677
|
+
});
|
|
678
|
+
Object.defineProperty(exports, "Badge", {
|
|
679
|
+
enumerable: true,
|
|
680
|
+
get: function () { return chunkERGKCXM2_cjs.Badge; }
|
|
681
|
+
});
|
|
682
|
+
Object.defineProperty(exports, "Checkbox", {
|
|
683
|
+
enumerable: true,
|
|
684
|
+
get: function () { return chunkERGKCXM2_cjs.Checkbox; }
|
|
685
|
+
});
|
|
686
|
+
Object.defineProperty(exports, "Input", {
|
|
687
|
+
enumerable: true,
|
|
688
|
+
get: function () { return chunkERGKCXM2_cjs.Input; }
|
|
689
|
+
});
|
|
690
|
+
Object.defineProperty(exports, "RadioGroup", {
|
|
691
|
+
enumerable: true,
|
|
692
|
+
get: function () { return chunkERGKCXM2_cjs.RadioGroup; }
|
|
693
|
+
});
|
|
694
|
+
Object.defineProperty(exports, "RadioGroupItem", {
|
|
695
|
+
enumerable: true,
|
|
696
|
+
get: function () { return chunkERGKCXM2_cjs.RadioGroupItem; }
|
|
697
|
+
});
|
|
698
|
+
Object.defineProperty(exports, "Separator", {
|
|
699
|
+
enumerable: true,
|
|
700
|
+
get: function () { return chunkERGKCXM2_cjs.Separator; }
|
|
701
|
+
});
|
|
702
|
+
Object.defineProperty(exports, "Skeleton", {
|
|
703
|
+
enumerable: true,
|
|
704
|
+
get: function () { return chunkERGKCXM2_cjs.Skeleton; }
|
|
705
|
+
});
|
|
706
|
+
Object.defineProperty(exports, "Textarea", {
|
|
707
|
+
enumerable: true,
|
|
708
|
+
get: function () { return chunkERGKCXM2_cjs.Textarea; }
|
|
709
|
+
});
|
|
710
|
+
Object.defineProperty(exports, "Toggle", {
|
|
711
|
+
enumerable: true,
|
|
712
|
+
get: function () { return chunkERGKCXM2_cjs.Toggle; }
|
|
713
|
+
});
|
|
714
|
+
Object.defineProperty(exports, "ToggleGroup", {
|
|
715
|
+
enumerable: true,
|
|
716
|
+
get: function () { return chunkERGKCXM2_cjs.ToggleGroup; }
|
|
717
|
+
});
|
|
718
|
+
Object.defineProperty(exports, "ToggleGroupItem", {
|
|
719
|
+
enumerable: true,
|
|
720
|
+
get: function () { return chunkERGKCXM2_cjs.ToggleGroupItem; }
|
|
721
|
+
});
|
|
722
|
+
Object.defineProperty(exports, "toggleVariants", {
|
|
723
|
+
enumerable: true,
|
|
724
|
+
get: function () { return chunkERGKCXM2_cjs.toggleVariants; }
|
|
725
|
+
});
|
|
726
|
+
Object.defineProperty(exports, "Card", {
|
|
727
|
+
enumerable: true,
|
|
728
|
+
get: function () { return chunk7R6OXNES_cjs.Card; }
|
|
729
|
+
});
|
|
730
|
+
Object.defineProperty(exports, "CardContent", {
|
|
731
|
+
enumerable: true,
|
|
732
|
+
get: function () { return chunk7R6OXNES_cjs.CardContent; }
|
|
733
|
+
});
|
|
734
|
+
Object.defineProperty(exports, "CardDescription", {
|
|
735
|
+
enumerable: true,
|
|
736
|
+
get: function () { return chunk7R6OXNES_cjs.CardDescription; }
|
|
737
|
+
});
|
|
738
|
+
Object.defineProperty(exports, "CardFooter", {
|
|
739
|
+
enumerable: true,
|
|
740
|
+
get: function () { return chunk7R6OXNES_cjs.CardFooter; }
|
|
741
|
+
});
|
|
742
|
+
Object.defineProperty(exports, "CardHeader", {
|
|
743
|
+
enumerable: true,
|
|
744
|
+
get: function () { return chunk7R6OXNES_cjs.CardHeader; }
|
|
745
|
+
});
|
|
746
|
+
Object.defineProperty(exports, "CardTitle", {
|
|
747
|
+
enumerable: true,
|
|
748
|
+
get: function () { return chunk7R6OXNES_cjs.CardTitle; }
|
|
749
|
+
});
|
|
750
|
+
Object.defineProperty(exports, "Dialog", {
|
|
751
|
+
enumerable: true,
|
|
752
|
+
get: function () { return chunk7R6OXNES_cjs.Dialog; }
|
|
753
|
+
});
|
|
754
|
+
Object.defineProperty(exports, "DialogClose", {
|
|
755
|
+
enumerable: true,
|
|
756
|
+
get: function () { return chunk7R6OXNES_cjs.DialogClose; }
|
|
757
|
+
});
|
|
758
|
+
Object.defineProperty(exports, "DialogContent", {
|
|
759
|
+
enumerable: true,
|
|
760
|
+
get: function () { return chunk7R6OXNES_cjs.DialogContent; }
|
|
761
|
+
});
|
|
762
|
+
Object.defineProperty(exports, "DialogDescription", {
|
|
763
|
+
enumerable: true,
|
|
764
|
+
get: function () { return chunk7R6OXNES_cjs.DialogDescription; }
|
|
765
|
+
});
|
|
766
|
+
Object.defineProperty(exports, "DialogFooter", {
|
|
767
|
+
enumerable: true,
|
|
768
|
+
get: function () { return chunk7R6OXNES_cjs.DialogFooter; }
|
|
769
|
+
});
|
|
770
|
+
Object.defineProperty(exports, "DialogHeader", {
|
|
771
|
+
enumerable: true,
|
|
772
|
+
get: function () { return chunk7R6OXNES_cjs.DialogHeader; }
|
|
773
|
+
});
|
|
774
|
+
Object.defineProperty(exports, "DialogOverlay", {
|
|
775
|
+
enumerable: true,
|
|
776
|
+
get: function () { return chunk7R6OXNES_cjs.DialogOverlay; }
|
|
777
|
+
});
|
|
778
|
+
Object.defineProperty(exports, "DialogPortal", {
|
|
779
|
+
enumerable: true,
|
|
780
|
+
get: function () { return chunk7R6OXNES_cjs.DialogPortal; }
|
|
781
|
+
});
|
|
782
|
+
Object.defineProperty(exports, "DialogTitle", {
|
|
783
|
+
enumerable: true,
|
|
784
|
+
get: function () { return chunk7R6OXNES_cjs.DialogTitle; }
|
|
785
|
+
});
|
|
786
|
+
Object.defineProperty(exports, "DialogTrigger", {
|
|
787
|
+
enumerable: true,
|
|
788
|
+
get: function () { return chunk7R6OXNES_cjs.DialogTrigger; }
|
|
789
|
+
});
|
|
790
|
+
Object.defineProperty(exports, "HoverCard", {
|
|
791
|
+
enumerable: true,
|
|
792
|
+
get: function () { return chunk7R6OXNES_cjs.HoverCard; }
|
|
793
|
+
});
|
|
794
|
+
Object.defineProperty(exports, "HoverCardContent", {
|
|
795
|
+
enumerable: true,
|
|
796
|
+
get: function () { return chunk7R6OXNES_cjs.HoverCardContent; }
|
|
797
|
+
});
|
|
798
|
+
Object.defineProperty(exports, "HoverCardTrigger", {
|
|
799
|
+
enumerable: true,
|
|
800
|
+
get: function () { return chunk7R6OXNES_cjs.HoverCardTrigger; }
|
|
801
|
+
});
|
|
802
|
+
Object.defineProperty(exports, "Sheet", {
|
|
803
|
+
enumerable: true,
|
|
804
|
+
get: function () { return chunk7R6OXNES_cjs.Sheet; }
|
|
805
|
+
});
|
|
806
|
+
Object.defineProperty(exports, "SheetClose", {
|
|
807
|
+
enumerable: true,
|
|
808
|
+
get: function () { return chunk7R6OXNES_cjs.SheetClose; }
|
|
809
|
+
});
|
|
810
|
+
Object.defineProperty(exports, "SheetContent", {
|
|
811
|
+
enumerable: true,
|
|
812
|
+
get: function () { return chunk7R6OXNES_cjs.SheetContent; }
|
|
813
|
+
});
|
|
814
|
+
Object.defineProperty(exports, "SheetDescription", {
|
|
815
|
+
enumerable: true,
|
|
816
|
+
get: function () { return chunk7R6OXNES_cjs.SheetDescription; }
|
|
817
|
+
});
|
|
818
|
+
Object.defineProperty(exports, "SheetFooter", {
|
|
819
|
+
enumerable: true,
|
|
820
|
+
get: function () { return chunk7R6OXNES_cjs.SheetFooter; }
|
|
821
|
+
});
|
|
822
|
+
Object.defineProperty(exports, "SheetHeader", {
|
|
823
|
+
enumerable: true,
|
|
824
|
+
get: function () { return chunk7R6OXNES_cjs.SheetHeader; }
|
|
825
|
+
});
|
|
826
|
+
Object.defineProperty(exports, "SheetOverlay", {
|
|
827
|
+
enumerable: true,
|
|
828
|
+
get: function () { return chunk7R6OXNES_cjs.SheetOverlay; }
|
|
829
|
+
});
|
|
830
|
+
Object.defineProperty(exports, "SheetPortal", {
|
|
831
|
+
enumerable: true,
|
|
832
|
+
get: function () { return chunk7R6OXNES_cjs.SheetPortal; }
|
|
833
|
+
});
|
|
834
|
+
Object.defineProperty(exports, "SheetTitle", {
|
|
835
|
+
enumerable: true,
|
|
836
|
+
get: function () { return chunk7R6OXNES_cjs.SheetTitle; }
|
|
837
|
+
});
|
|
838
|
+
Object.defineProperty(exports, "SheetTrigger", {
|
|
839
|
+
enumerable: true,
|
|
840
|
+
get: function () { return chunk7R6OXNES_cjs.SheetTrigger; }
|
|
841
|
+
});
|
|
842
|
+
Object.defineProperty(exports, "Tabs", {
|
|
843
|
+
enumerable: true,
|
|
844
|
+
get: function () { return chunk7R6OXNES_cjs.Tabs; }
|
|
845
|
+
});
|
|
846
|
+
Object.defineProperty(exports, "TabsContent", {
|
|
847
|
+
enumerable: true,
|
|
848
|
+
get: function () { return chunk7R6OXNES_cjs.TabsContent; }
|
|
849
|
+
});
|
|
850
|
+
Object.defineProperty(exports, "TabsList", {
|
|
851
|
+
enumerable: true,
|
|
852
|
+
get: function () { return chunk7R6OXNES_cjs.TabsList; }
|
|
853
|
+
});
|
|
854
|
+
Object.defineProperty(exports, "TabsTrigger", {
|
|
855
|
+
enumerable: true,
|
|
856
|
+
get: function () { return chunk7R6OXNES_cjs.TabsTrigger; }
|
|
857
|
+
});
|
|
858
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
859
|
+
enumerable: true,
|
|
860
|
+
get: function () { return chunk7R6OXNES_cjs.Tooltip; }
|
|
861
|
+
});
|
|
862
|
+
Object.defineProperty(exports, "TooltipContent", {
|
|
863
|
+
enumerable: true,
|
|
864
|
+
get: function () { return chunk7R6OXNES_cjs.TooltipContent; }
|
|
865
|
+
});
|
|
866
|
+
Object.defineProperty(exports, "TooltipProvider", {
|
|
867
|
+
enumerable: true,
|
|
868
|
+
get: function () { return chunk7R6OXNES_cjs.TooltipProvider; }
|
|
869
|
+
});
|
|
870
|
+
Object.defineProperty(exports, "TooltipTrigger", {
|
|
871
|
+
enumerable: true,
|
|
872
|
+
get: function () { return chunk7R6OXNES_cjs.TooltipTrigger; }
|
|
873
|
+
});
|
|
874
|
+
Object.defineProperty(exports, "Accordion", {
|
|
875
|
+
enumerable: true,
|
|
876
|
+
get: function () { return chunkX2UJQVZJ_cjs.Accordion; }
|
|
877
|
+
});
|
|
878
|
+
Object.defineProperty(exports, "AccordionContent", {
|
|
879
|
+
enumerable: true,
|
|
880
|
+
get: function () { return chunkX2UJQVZJ_cjs.AccordionContent; }
|
|
881
|
+
});
|
|
882
|
+
Object.defineProperty(exports, "AccordionItem", {
|
|
883
|
+
enumerable: true,
|
|
884
|
+
get: function () { return chunkX2UJQVZJ_cjs.AccordionItem; }
|
|
885
|
+
});
|
|
886
|
+
Object.defineProperty(exports, "AccordionTrigger", {
|
|
887
|
+
enumerable: true,
|
|
888
|
+
get: function () { return chunkX2UJQVZJ_cjs.AccordionTrigger; }
|
|
889
|
+
});
|
|
890
|
+
Object.defineProperty(exports, "Calendar", {
|
|
891
|
+
enumerable: true,
|
|
892
|
+
get: function () { return chunkX2UJQVZJ_cjs.Calendar; }
|
|
893
|
+
});
|
|
894
|
+
Object.defineProperty(exports, "Popover", {
|
|
895
|
+
enumerable: true,
|
|
896
|
+
get: function () { return chunk2KRMLIJQ_cjs.Popover; }
|
|
897
|
+
});
|
|
898
|
+
Object.defineProperty(exports, "PopoverAnchor", {
|
|
899
|
+
enumerable: true,
|
|
900
|
+
get: function () { return chunk2KRMLIJQ_cjs.PopoverAnchor; }
|
|
901
|
+
});
|
|
902
|
+
Object.defineProperty(exports, "PopoverContent", {
|
|
903
|
+
enumerable: true,
|
|
904
|
+
get: function () { return chunk2KRMLIJQ_cjs.PopoverContent; }
|
|
905
|
+
});
|
|
906
|
+
Object.defineProperty(exports, "PopoverTrigger", {
|
|
907
|
+
enumerable: true,
|
|
908
|
+
get: function () { return chunk2KRMLIJQ_cjs.PopoverTrigger; }
|
|
909
|
+
});
|
|
910
|
+
Object.defineProperty(exports, "Button", {
|
|
911
|
+
enumerable: true,
|
|
912
|
+
get: function () { return chunk2TBYPKQ3_cjs.Button; }
|
|
913
|
+
});
|
|
914
|
+
Object.defineProperty(exports, "buttonVariants", {
|
|
915
|
+
enumerable: true,
|
|
916
|
+
get: function () { return chunk2TBYPKQ3_cjs.buttonVariants; }
|
|
917
|
+
});
|
|
918
|
+
exports.DropdownMenu = DropdownMenu;
|
|
919
|
+
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
920
|
+
exports.DropdownMenuContent = DropdownMenuContent;
|
|
921
|
+
exports.DropdownMenuGroup = DropdownMenuGroup;
|
|
922
|
+
exports.DropdownMenuItem = DropdownMenuItem;
|
|
923
|
+
exports.DropdownMenuLabel = DropdownMenuLabel;
|
|
924
|
+
exports.DropdownMenuPortal = DropdownMenuPortal;
|
|
925
|
+
exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
|
|
926
|
+
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
|
927
|
+
exports.DropdownMenuSeparator = DropdownMenuSeparator;
|
|
928
|
+
exports.DropdownMenuShortcut = DropdownMenuShortcut;
|
|
929
|
+
exports.DropdownMenuSub = DropdownMenuSub;
|
|
930
|
+
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
931
|
+
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
932
|
+
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
933
|
+
exports.Label = Label2;
|
|
934
|
+
exports.Progress = Progress;
|
|
935
|
+
exports.Sidebar = Sidebar;
|
|
936
|
+
exports.SidebarContent = SidebarContent;
|
|
937
|
+
exports.SidebarFooter = SidebarFooter;
|
|
938
|
+
exports.SidebarGroup = SidebarGroup;
|
|
939
|
+
exports.SidebarGroupContent = SidebarGroupContent;
|
|
940
|
+
exports.SidebarGroupLabel = SidebarGroupLabel;
|
|
941
|
+
exports.SidebarHeader = SidebarHeader;
|
|
942
|
+
exports.SidebarInset = SidebarInset;
|
|
943
|
+
exports.SidebarMenu = SidebarMenu;
|
|
944
|
+
exports.SidebarMenuBadge = SidebarMenuBadge;
|
|
945
|
+
exports.SidebarMenuButton = SidebarMenuButton;
|
|
946
|
+
exports.SidebarMenuItem = SidebarMenuItem;
|
|
947
|
+
exports.SidebarProvider = SidebarProvider;
|
|
948
|
+
exports.SidebarSeparator = SidebarSeparator;
|
|
949
|
+
exports.SidebarTrigger = SidebarTrigger;
|
|
950
|
+
exports.Slider = Slider;
|
|
951
|
+
exports.Switch = Switch;
|
|
952
|
+
exports.sidebarMenuButtonVariants = sidebarMenuButtonVariants;
|
|
953
|
+
exports.useSidebar = useSidebar;
|
|
954
|
+
//# sourceMappingURL=index.cjs.map
|
|
955
|
+
//# sourceMappingURL=index.cjs.map
|