@lglab/compose-ui 0.9.1 → 0.11.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.
@@ -0,0 +1,22 @@
1
+ import { Toggle } from '@base-ui/react/toggle';
2
+ import { ToggleGroup as BaseToggleGroup } from '@base-ui/react/toggle-group';
3
+ import { ToggleSize, ToggleVariant } from '../lib/toggle-variants';
4
+ import * as React from 'react';
5
+ type ToggleGroupRootProps = React.ComponentProps<typeof BaseToggleGroup>;
6
+ declare const ToggleGroupRoot: {
7
+ ({ className, orientation, ...props }: ToggleGroupRootProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ type ToggleGroupItemProps = React.ComponentProps<typeof Toggle> & {
11
+ /** Visual style of the toggle item */
12
+ variant?: ToggleVariant;
13
+ /** Size of the toggle item */
14
+ size?: ToggleSize;
15
+ };
16
+ declare const ToggleGroupItem: {
17
+ ({ className, variant, size, ...props }: ToggleGroupItemProps): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ export { ToggleGroupRoot, ToggleGroupItem };
21
+ export type { ToggleGroupRootProps, ToggleGroupItemProps };
22
+ //# sourceMappingURL=toggle-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../src/components/toggle-group.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAA;AAO/B,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAAA;AAExE,QAAA,MAAM,eAAe;2CAA0C,oBAAoB;;CAkBlF,CAAA;AAQD,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAChE,sCAAsC;IACtC,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,eAAe;6CAKlB,oBAAoB;;CAYtB,CAAA;AAQD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,CAAA;AAE3C,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAA"}
@@ -1,12 +1,14 @@
1
1
  import { Toggle as BaseToggle } from '@base-ui/react/toggle';
2
- import { ToggleSize } from '../lib/toggle-variants';
2
+ import { ToggleSize, ToggleVariant } from '../lib/toggle-variants';
3
3
  import * as React from 'react';
4
4
  type ToggleProps = React.ComponentProps<typeof BaseToggle> & {
5
+ /** Visual style of the toggle */
6
+ variant?: ToggleVariant;
5
7
  /** Size of the toggle */
6
8
  size?: ToggleSize;
7
9
  };
8
10
  declare const Toggle: {
9
- ({ className, size, ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ className, variant, size, ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
10
12
  displayName: string;
11
13
  };
12
14
  export { Toggle };
@@ -1 +1 @@
1
- {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,wBAAwB,CAAA;AAOxE,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAC3D,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,MAAM;oCAAmC,WAAW;;CAEzD,CAAA;AAQD,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAA;AAO/B,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IAC3D,iCAAiC;IACjC,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,MAAM;6CAA4C,WAAW;;CAIlE,CAAA;AAQD,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerBackdrop, DrawerPopup, D
11
11
  export { AccordionRoot, AccordionItem, AccordionHeader, AccordionTrigger, AccordionPanel, } from './components/accordion';
12
12
  export { MeterRoot, MeterTrack, MeterIndicator, MeterValue, MeterLabel, } from './components/meter';
13
13
  export { ProgressRoot, ProgressTrack, ProgressIndicator, ProgressValue, ProgressLabel, } from './components/progress';
14
+ export { ToggleGroupRoot, ToggleGroupItem } from './components/toggle-group';
14
15
  export type { ButtonProps } from './components/button';
15
16
  export type { AlertDialogRootProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogBackdropProps, AlertDialogViewportProps, AlertDialogPopupProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogCloseProps, } from './components/alert-dialog';
16
17
  export type { AvatarRootProps, AvatarImageProps, AvatarFallbackProps, AvatarStackProps, } from './components/avatar';
@@ -24,4 +25,5 @@ export type { DrawerRootProps, DrawerTriggerProps, DrawerPortalProps, DrawerBack
24
25
  export type { AccordionRootProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionPanelProps, } from './components/accordion';
25
26
  export type { MeterRootProps, MeterTrackProps, MeterIndicatorProps, MeterValueProps, MeterLabelProps, } from './components/meter';
26
27
  export type { ProgressRootProps, ProgressTrackProps, ProgressIndicatorProps, ProgressValueProps, ProgressLabelProps, } from './components/progress';
28
+ export type { ToggleGroupRootProps, ToggleGroupItemProps, } from './components/toggle-group';
27
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
package/dist/index.es.js CHANGED
@@ -1,21 +1,22 @@
1
1
  "use client";
2
2
  import { jsx as t, jsxs as k } from "react/jsx-runtime";
3
- import { Button as V } from "@base-ui/react/button";
3
+ import { Button as S } from "@base-ui/react/button";
4
4
  import { cva as n } from "class-variance-authority";
5
- import { clsx as R } from "clsx";
6
- import { twMerge as S } from "tailwind-merge";
5
+ import { clsx as C } from "clsx";
6
+ import { twMerge as _ } from "tailwind-merge";
7
7
  import { AlertDialog as d } from "@base-ui/react/alert-dialog";
8
- import { AlertDialog as ga } from "@base-ui/react/alert-dialog";
8
+ import { AlertDialog as ya } from "@base-ui/react/alert-dialog";
9
9
  import { Avatar as w } from "@base-ui/react/avatar";
10
10
  import * as N from "react";
11
11
  import { ScrollArea as m } from "@base-ui/react/scroll-area";
12
12
  import { Switch as A } from "@base-ui/react/switch";
13
- import { Toggle as C } from "@base-ui/react/toggle";
13
+ import { Toggle as T } from "@base-ui/react/toggle";
14
14
  import { Tabs as f } from "@base-ui/react/tabs";
15
15
  import { Dialog as l } from "@base-ui/react/dialog";
16
16
  import { Accordion as b } from "@base-ui/react/accordion";
17
17
  import { Meter as y } from "@base-ui/react/meter";
18
18
  import { Progress as h } from "@base-ui/react/progress";
19
+ import { ToggleGroup as I } from "@base-ui/react/toggle-group";
19
20
  const u = n(
20
21
  [
21
22
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
@@ -46,9 +47,9 @@ const u = n(
46
47
  }
47
48
  );
48
49
  function r(...e) {
49
- return S(R(e));
50
+ return _(C(e));
50
51
  }
51
- const _ = ({
52
+ const F = ({
52
53
  className: e,
53
54
  variant: a,
54
55
  size: o,
@@ -56,7 +57,7 @@ const _ = ({
56
57
  children: i,
57
58
  ...c
58
59
  }) => /* @__PURE__ */ t(
59
- V,
60
+ S,
60
61
  {
61
62
  className: r(u({ variant: a, size: o }), e),
62
63
  disabled: s,
@@ -64,10 +65,10 @@ const _ = ({
64
65
  children: i
65
66
  }
66
67
  );
67
- _.displayName = "Button";
68
- const I = (e) => /* @__PURE__ */ t(d.Root, { ...e });
69
- I.displayName = "AlertDialogRoot";
70
- const F = ({
68
+ F.displayName = "Button";
69
+ const B = (e) => /* @__PURE__ */ t(d.Root, { ...e });
70
+ B.displayName = "AlertDialogRoot";
71
+ const M = ({
71
72
  className: e,
72
73
  variant: a,
73
74
  size: o,
@@ -79,10 +80,10 @@ const F = ({
79
80
  ...s
80
81
  }
81
82
  );
82
- F.displayName = "AlertDialogTrigger";
83
- const B = (e) => /* @__PURE__ */ t(d.Portal, { ...e });
84
- B.displayName = "AlertDialogPortal";
85
- const M = ({ className: e, ...a }) => /* @__PURE__ */ t(
83
+ M.displayName = "AlertDialogTrigger";
84
+ const j = (e) => /* @__PURE__ */ t(d.Portal, { ...e });
85
+ j.displayName = "AlertDialogPortal";
86
+ const L = ({ className: e, ...a }) => /* @__PURE__ */ t(
86
87
  d.Backdrop,
87
88
  {
88
89
  className: r(
@@ -94,16 +95,16 @@ const M = ({ className: e, ...a }) => /* @__PURE__ */ t(
94
95
  ...a
95
96
  }
96
97
  );
97
- M.displayName = "AlertDialogBackdrop";
98
- const j = ({ className: e, ...a }) => /* @__PURE__ */ t(
98
+ L.displayName = "AlertDialogBackdrop";
99
+ const H = ({ className: e, ...a }) => /* @__PURE__ */ t(
99
100
  d.Viewport,
100
101
  {
101
102
  className: r("fixed inset-0 z-50 flex items-center justify-center p-4", e),
102
103
  ...a
103
104
  }
104
105
  );
105
- j.displayName = "AlertDialogViewport";
106
- const L = n(
106
+ H.displayName = "AlertDialogViewport";
107
+ const G = n(
107
108
  [
108
109
  "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
109
110
  "w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
@@ -127,25 +128,25 @@ const L = n(
127
128
  size: "default"
128
129
  }
129
130
  }
130
- ), H = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
131
+ ), q = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
131
132
  d.Popup,
132
133
  {
133
- className: r(L({ size: a }), e),
134
+ className: r(G({ size: a }), e),
134
135
  ...o
135
136
  }
136
137
  );
137
- H.displayName = "AlertDialogPopup";
138
- const q = ({ className: e, ...a }) => /* @__PURE__ */ t(
138
+ q.displayName = "AlertDialogPopup";
139
+ const E = ({ className: e, ...a }) => /* @__PURE__ */ t(
139
140
  d.Title,
140
141
  {
141
142
  className: r("text-lg font-semibold leading-none tracking-tight", e),
142
143
  ...a
143
144
  }
144
145
  );
145
- q.displayName = "AlertDialogTitle";
146
- const E = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Description, { className: r("mt-2", e), ...a });
147
- E.displayName = "AlertDialogDescription";
148
- const $ = ({
146
+ E.displayName = "AlertDialogTitle";
147
+ const $ = ({ className: e, ...a }) => /* @__PURE__ */ t(d.Description, { className: r("mt-2", e), ...a });
148
+ $.displayName = "AlertDialogDescription";
149
+ const J = ({
149
150
  className: e,
150
151
  variant: a,
151
152
  size: o,
@@ -157,8 +158,8 @@ const $ = ({
157
158
  ...s
158
159
  }
159
160
  );
160
- $.displayName = "AlertDialogClose";
161
- const T = n(
161
+ J.displayName = "AlertDialogClose";
162
+ const z = n(
162
163
  [
163
164
  "relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
164
165
  "bg-muted text-foreground",
@@ -176,17 +177,17 @@ const T = n(
176
177
  size: "default"
177
178
  }
178
179
  }
179
- ), z = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(w.Root, { className: r(T({ size: a }), e), ...o });
180
- z.displayName = "AvatarRoot";
181
- const G = ({ className: e, ...a }) => /* @__PURE__ */ t(
180
+ ), P = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(w.Root, { className: r(z({ size: a }), e), ...o });
181
+ P.displayName = "AvatarRoot";
182
+ const K = ({ className: e, ...a }) => /* @__PURE__ */ t(
182
183
  w.Image,
183
184
  {
184
185
  className: r("aspect-square h-full w-full object-cover", e),
185
186
  ...a
186
187
  }
187
188
  );
188
- G.displayName = "AvatarImage";
189
- const J = ({ className: e, ...a }) => /* @__PURE__ */ t(
189
+ K.displayName = "AvatarImage";
190
+ const O = ({ className: e, ...a }) => /* @__PURE__ */ t(
190
191
  w.Fallback,
191
192
  {
192
193
  className: r(
@@ -196,16 +197,16 @@ const J = ({ className: e, ...a }) => /* @__PURE__ */ t(
196
197
  ...a
197
198
  }
198
199
  );
199
- J.displayName = "AvatarFallback";
200
- const K = ({
200
+ O.displayName = "AvatarFallback";
201
+ const Q = ({
201
202
  "aria-label": e,
202
203
  maxVisible: a,
203
204
  className: o,
204
205
  children: s
205
206
  }) => {
206
- const i = N.Children.toArray(s), c = i.length, g = a !== void 0 ? Math.min(a, c) : c, x = c - g, v = i.slice(0, g), P = (() => {
207
+ const i = N.Children.toArray(s), c = i.length, g = a !== void 0 ? Math.min(a, c) : c, x = c - g, v = i.slice(0, g), V = (() => {
207
208
  const p = i[0];
208
- return N.isValidElement(p) && p.type === z ? p.props.size ?? "default" : "default";
209
+ return N.isValidElement(p) && p.type === P ? p.props.size ?? "default" : "default";
209
210
  })();
210
211
  return /* @__PURE__ */ k("ul", { "aria-label": e, className: r("flex -space-x-2", o), children: [
211
212
  v.map((p, D) => /* @__PURE__ */ t("li", { children: p }, D)),
@@ -216,7 +217,7 @@ const K = ({
216
217
  "relative flex shrink-0 items-center justify-center overflow-hidden rounded-full",
217
218
  "bg-muted text-foreground border-2 border-background",
218
219
  "font-medium",
219
- T({ size: P })
220
+ z({ size: V })
220
221
  ),
221
222
  children: [
222
223
  "+",
@@ -226,20 +227,20 @@ const K = ({
226
227
  ) })
227
228
  ] });
228
229
  };
229
- K.displayName = "AvatarStack";
230
- const O = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Root, { className: r("relative", e), ...a });
231
- O.displayName = "ScrollAreaRoot";
232
- const Q = ({ className: e, ...a }) => /* @__PURE__ */ t(
230
+ Q.displayName = "AvatarStack";
231
+ const U = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Root, { className: r("relative", e), ...a });
232
+ U.displayName = "ScrollAreaRoot";
233
+ const W = ({ className: e, ...a }) => /* @__PURE__ */ t(
233
234
  m.Viewport,
234
235
  {
235
236
  className: r("h-full overscroll-contain pr-3", e),
236
237
  ...a
237
238
  }
238
239
  );
239
- Q.displayName = "ScrollAreaViewport";
240
- const U = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Content, { className: r("min-w-full", e), ...a });
241
- U.displayName = "ScrollAreaContent";
242
- const W = ({
240
+ W.displayName = "ScrollAreaViewport";
241
+ const X = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Content, { className: r("min-w-full", e), ...a });
242
+ X.displayName = "ScrollAreaContent";
243
+ const Y = ({
243
244
  className: e,
244
245
  orientation: a = "vertical",
245
246
  ...o
@@ -247,7 +248,7 @@ const W = ({
247
248
  m.Scrollbar,
248
249
  {
249
250
  className: r(
250
- "flex touch-none select-none p-0.5 transition-colors duration-150 ease-out",
251
+ "flex touch-none select-none p-0.5 transition-colors duration-200 ease-out",
251
252
  "data-hovering:bg-muted/50",
252
253
  a === "vertical" && "h-full w-2.5",
253
254
  a === "horizontal" && "h-2.5 w-full flex-col",
@@ -257,8 +258,8 @@ const W = ({
257
258
  ...o
258
259
  }
259
260
  );
260
- W.displayName = "ScrollAreaScrollbar";
261
- const X = ({ className: e, ...a }) => /* @__PURE__ */ t(
261
+ Y.displayName = "ScrollAreaScrollbar";
262
+ const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
262
263
  m.Thumb,
263
264
  {
264
265
  className: r(
@@ -269,10 +270,10 @@ const X = ({ className: e, ...a }) => /* @__PURE__ */ t(
269
270
  ...a
270
271
  }
271
272
  );
272
- X.displayName = "ScrollAreaThumb";
273
- const Y = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Corner, { className: r("bg-muted/50", e), ...a });
274
- Y.displayName = "ScrollAreaCorner";
275
- const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
273
+ Z.displayName = "ScrollAreaThumb";
274
+ const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(m.Corner, { className: r("bg-muted/50", e), ...a });
275
+ ee.displayName = "ScrollAreaCorner";
276
+ const ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
276
277
  A.Root,
277
278
  {
278
279
  className: r(
@@ -290,14 +291,14 @@ const Z = ({ className: e, ...a }) => /* @__PURE__ */ t(
290
291
  ...a
291
292
  }
292
293
  );
293
- Z.displayName = "SwitchRoot";
294
- const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
294
+ ae.displayName = "SwitchRoot";
295
+ const te = ({ className: e, ...a }) => /* @__PURE__ */ t(
295
296
  A.Thumb,
296
297
  {
297
298
  className: r(
298
299
  "aspect-square h-full rounded-full bg-background",
299
300
  "shadow-[0_0_1px_1px,0_1px_1px,1px_2px_4px_-1px] shadow-muted-foreground/20",
300
- "transition-all duration-150",
301
+ "transition-all duration-200",
301
302
  "data-checked:translate-x-4",
302
303
  "dark:shadow-black/25 dark:bg-foreground dark:data-checked:bg-background",
303
304
  "data-disabled:opacity-100",
@@ -306,32 +307,43 @@ const ee = ({ className: e, ...a }) => /* @__PURE__ */ t(
306
307
  ...a
307
308
  }
308
309
  );
309
- ee.displayName = "SwitchThumb";
310
- const ae = n(
310
+ te.displayName = "SwitchThumb";
311
+ const R = n(
311
312
  [
312
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium",
313
+ "inline-flex items-center justify-center gap-2 rounded-md",
314
+ "text-sm font-medium",
313
315
  "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
314
- "border border-border bg-background hover:bg-muted shadow-xs",
315
- "transition-all duration-150",
316
- "data-pressed:border-primary data-pressed:bg-primary data-pressed:text-primary-foreground data-pressed:shadow-sm"
316
+ "select-none transition-colors duration-200"
317
317
  ],
318
318
  {
319
319
  variants: {
320
+ variant: {
321
+ default: [
322
+ "border border-border bg-background shadow-xs",
323
+ "hover:bg-accent hover:text-accent-foreground",
324
+ "data-pressed:border-primary data-pressed:bg-primary data-pressed:text-primary-foreground data-pressed:shadow-none"
325
+ ],
326
+ ghost: ["hover:bg-accent"]
327
+ },
320
328
  size: {
321
- sm: "h-8 min-w-8 px-2 gap-1.5",
322
- default: "h-9 min-w-9 px-2.5",
323
- lg: "h-10 min-w-10 px-3"
329
+ sm: "h-8 min-w-8 px-2.5 gap-1.5",
330
+ default: "h-9 min-w-9 px-3",
331
+ lg: "h-10 min-w-10 px-3.5",
332
+ icon: "size-9",
333
+ "icon-sm": "size-8",
334
+ "icon-lg": "size-10"
324
335
  }
325
336
  },
326
337
  defaultVariants: {
338
+ variant: "default",
327
339
  size: "default"
328
340
  }
329
341
  }
330
- ), te = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(C, { className: r(ae({ size: a }), e), ...o });
331
- te.displayName = "Toggle";
332
- const re = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Root, { className: r("flex flex-col", e), ...a });
333
- re.displayName = "TabsRoot";
334
- const oe = n(
342
+ ), re = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(T, { className: r(R({ variant: a, size: o }), e), ...s });
343
+ re.displayName = "Toggle";
344
+ const oe = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Root, { className: r("flex flex-col", e), ...a });
345
+ oe.displayName = "TabsRoot";
346
+ const se = n(
335
347
  ["relative inline-flex w-fit items-center gap-1", "rounded-lg bg-muted p-1"],
336
348
  {
337
349
  variants: {
@@ -344,15 +356,15 @@ const oe = n(
344
356
  orientation: "horizontal"
345
357
  }
346
358
  }
347
- ), se = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
359
+ ), le = ({ className: e, orientation: a = "horizontal", ...o }) => /* @__PURE__ */ t(
348
360
  f.List,
349
361
  {
350
- className: r(oe({ orientation: a }), e),
362
+ className: r(se({ orientation: a }), e),
351
363
  ...o
352
364
  }
353
365
  );
354
- se.displayName = "TabsList";
355
- const le = n(
366
+ le.displayName = "TabsList";
367
+ const ie = n(
356
368
  [
357
369
  "relative z-10 inline-flex items-center justify-center whitespace-nowrap",
358
370
  "rounded-md px-3 py-1.5 text-sm font-medium",
@@ -373,9 +385,9 @@ const le = n(
373
385
  size: "default"
374
386
  }
375
387
  }
376
- ), ie = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(f.Tab, { className: r(le({ size: a }), e), ...o });
377
- ie.displayName = "TabsTab";
378
- const ne = n(
388
+ ), ne = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(f.Tab, { className: r(ie({ size: a }), e), ...o });
389
+ ne.displayName = "TabsTab";
390
+ const de = n(
379
391
  ["absolute rounded-md bg-background shadow-sm", "transition-all duration-200 ease-out"],
380
392
  {
381
393
  variants: {
@@ -388,33 +400,33 @@ const ne = n(
388
400
  orientation: "horizontal"
389
401
  }
390
402
  }
391
- ), de = ({
403
+ ), ce = ({
392
404
  className: e,
393
405
  orientation: a = "horizontal",
394
406
  ...o
395
407
  }) => /* @__PURE__ */ t(
396
408
  f.Indicator,
397
409
  {
398
- className: r(ne({ orientation: a }), e),
410
+ className: r(de({ orientation: a }), e),
399
411
  ...o
400
412
  }
401
413
  );
402
- de.displayName = "TabsIndicator";
403
- const ce = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
404
- ce.displayName = "TabsPanel";
405
- const ue = (e) => /* @__PURE__ */ t(l.Root, { ...e });
406
- ue.displayName = "DialogRoot";
407
- const me = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
414
+ ce.displayName = "TabsIndicator";
415
+ const ue = ({ className: e, ...a }) => /* @__PURE__ */ t(f.Panel, { className: r("mt-2 ring-offset-background", e), ...a });
416
+ ue.displayName = "TabsPanel";
417
+ const me = (e) => /* @__PURE__ */ t(l.Root, { ...e });
418
+ me.displayName = "DialogRoot";
419
+ const ge = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
408
420
  l.Trigger,
409
421
  {
410
422
  className: r(u({ variant: a, size: o }), e),
411
423
  ...s
412
424
  }
413
425
  );
414
- me.displayName = "DialogTrigger";
415
- const ge = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
416
- ge.displayName = "DialogPortal";
417
- const pe = ({ className: e, ...a }) => /* @__PURE__ */ t(
426
+ ge.displayName = "DialogTrigger";
427
+ const pe = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
428
+ pe.displayName = "DialogPortal";
429
+ const fe = ({ className: e, ...a }) => /* @__PURE__ */ t(
418
430
  l.Backdrop,
419
431
  {
420
432
  className: r(
@@ -426,8 +438,8 @@ const pe = ({ className: e, ...a }) => /* @__PURE__ */ t(
426
438
  ...a
427
439
  }
428
440
  );
429
- pe.displayName = "DialogBackdrop";
430
- const fe = n(
441
+ fe.displayName = "DialogBackdrop";
442
+ const be = n(
431
443
  [
432
444
  "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
433
445
  "w-full max-w-[calc(100vw-2rem)] rounded-lg border border-border bg-background p-6 shadow-lg",
@@ -451,35 +463,35 @@ const fe = n(
451
463
  size: "default"
452
464
  }
453
465
  }
454
- ), be = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
466
+ ), ye = ({ className: e, size: a, ...o }) => /* @__PURE__ */ t(
455
467
  l.Popup,
456
468
  {
457
- className: r(fe({ size: a }), e),
469
+ className: r(be({ size: a }), e),
458
470
  ...o
459
471
  }
460
472
  );
461
- be.displayName = "DialogPopup";
462
- const ye = ({ className: e, ...a }) => /* @__PURE__ */ t(
473
+ ye.displayName = "DialogPopup";
474
+ const he = ({ className: e, ...a }) => /* @__PURE__ */ t(
463
475
  l.Title,
464
476
  {
465
477
  className: r("text-lg font-semibold leading-none tracking-tight", e),
466
478
  ...a
467
479
  }
468
480
  );
469
- ye.displayName = "DialogTitle";
470
- const he = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Description, { className: r("mt-2", e), ...a });
471
- he.displayName = "DialogDescription";
472
- const xe = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
481
+ he.displayName = "DialogTitle";
482
+ const xe = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Description, { className: r("mt-2", e), ...a });
483
+ xe.displayName = "DialogDescription";
484
+ const Ne = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
473
485
  l.Close,
474
486
  {
475
487
  className: r(u({ variant: a ?? "outline", size: o }), e),
476
488
  ...s
477
489
  }
478
490
  );
479
- xe.displayName = "DialogClose";
480
- const Ne = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
481
- Ne.displayName = "DialogHeader";
482
- const ve = ({ className: e, ...a }) => /* @__PURE__ */ t(
491
+ Ne.displayName = "DialogClose";
492
+ const ve = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1 mb-5", e), ...a });
493
+ ve.displayName = "DialogHeader";
494
+ const we = ({ className: e, ...a }) => /* @__PURE__ */ t(
483
495
  "div",
484
496
  {
485
497
  className: r(
@@ -489,20 +501,20 @@ const ve = ({ className: e, ...a }) => /* @__PURE__ */ t(
489
501
  ...a
490
502
  }
491
503
  );
492
- ve.displayName = "DialogFooter";
493
- const we = (e) => /* @__PURE__ */ t(l.Root, { ...e });
494
- we.displayName = "DrawerRoot";
495
- const De = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
504
+ we.displayName = "DialogFooter";
505
+ const De = (e) => /* @__PURE__ */ t(l.Root, { ...e });
506
+ De.displayName = "DrawerRoot";
507
+ const ke = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
496
508
  l.Trigger,
497
509
  {
498
510
  className: r(u({ variant: a, size: o }), e),
499
511
  ...s
500
512
  }
501
513
  );
502
- De.displayName = "DrawerTrigger";
503
- const ke = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
504
- ke.displayName = "DrawerPortal";
505
- const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
514
+ ke.displayName = "DrawerTrigger";
515
+ const Ae = (e) => /* @__PURE__ */ t(l.Portal, { ...e });
516
+ Ae.displayName = "DrawerPortal";
517
+ const Te = ({ className: e, ...a }) => /* @__PURE__ */ t(
506
518
  l.Backdrop,
507
519
  {
508
520
  className: r(
@@ -514,8 +526,8 @@ const Ae = ({ className: e, ...a }) => /* @__PURE__ */ t(
514
526
  ...a
515
527
  }
516
528
  );
517
- Ae.displayName = "DrawerBackdrop";
518
- const Te = n(
529
+ Te.displayName = "DrawerBackdrop";
530
+ const ze = n(
519
531
  [
520
532
  "fixed z-50 flex flex-col bg-background p-6 shadow-lg",
521
533
  "transition-transform duration-300 ease-out",
@@ -551,51 +563,51 @@ const Te = n(
551
563
  side: "right"
552
564
  }
553
565
  }
554
- ), ze = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
566
+ ), Pe = ({ className: e, side: a, ...o }) => /* @__PURE__ */ t(
555
567
  l.Popup,
556
568
  {
557
- className: r(Te({ side: a }), e),
569
+ className: r(ze({ side: a }), e),
558
570
  ...o
559
571
  }
560
572
  );
561
- ze.displayName = "DrawerPopup";
562
- const Pe = ({ className: e, ...a }) => /* @__PURE__ */ t(
573
+ Pe.displayName = "DrawerPopup";
574
+ const Re = ({ className: e, ...a }) => /* @__PURE__ */ t(
563
575
  l.Title,
564
576
  {
565
577
  className: r("text-lg font-semibold leading-none tracking-tight", e),
566
578
  ...a
567
579
  }
568
580
  );
569
- Pe.displayName = "DrawerTitle";
581
+ Re.displayName = "DrawerTitle";
570
582
  const Ve = ({ className: e, ...a }) => /* @__PURE__ */ t(l.Description, { className: r("", e), ...a });
571
583
  Ve.displayName = "DrawerDescription";
572
- const Re = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
584
+ const Se = ({ className: e, variant: a, size: o, ...s }) => /* @__PURE__ */ t(
573
585
  l.Close,
574
586
  {
575
587
  className: r(u({ variant: a ?? "outline", size: o }), e),
576
588
  ...s
577
589
  }
578
590
  );
579
- Re.displayName = "DrawerClose";
580
- const Se = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
581
- Se.displayName = "DrawerHeader";
582
- const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
583
- Ce.displayName = "DrawerContent";
584
- const _e = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
585
- _e.displayName = "DrawerFooter";
586
- const Ie = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Root, { className: r("w-full", e), ...a });
587
- Ie.displayName = "AccordionRoot";
588
- const Fe = ({ className: e, ...a }) => /* @__PURE__ */ t(
591
+ Se.displayName = "DrawerClose";
592
+ const Ce = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("flex flex-col space-y-1.5", e), ...a });
593
+ Ce.displayName = "DrawerHeader";
594
+ const _e = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("py-5", e), ...a });
595
+ _e.displayName = "DrawerContent";
596
+ const Ie = ({ className: e, ...a }) => /* @__PURE__ */ t("div", { className: r("", e), ...a });
597
+ Ie.displayName = "DrawerFooter";
598
+ const Fe = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Root, { className: r("w-full", e), ...a });
599
+ Fe.displayName = "AccordionRoot";
600
+ const Be = ({ className: e, ...a }) => /* @__PURE__ */ t(
589
601
  b.Item,
590
602
  {
591
603
  className: r("border-b border-border last:border-b-0", e),
592
604
  ...a
593
605
  }
594
606
  );
595
- Fe.displayName = "AccordionItem";
596
- const Be = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Header, { className: r("flex", e), ...a });
597
- Be.displayName = "AccordionHeader";
598
- const Me = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
607
+ Be.displayName = "AccordionItem";
608
+ const Me = ({ className: e, ...a }) => /* @__PURE__ */ t(b.Header, { className: r("flex", e), ...a });
609
+ Me.displayName = "AccordionHeader";
610
+ const je = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
599
611
  b.Trigger,
600
612
  {
601
613
  className: r(
@@ -606,8 +618,8 @@ const Me = ({ className: e, children: a, ...o }) => /* @__PURE__ */ t(
606
618
  children: a
607
619
  }
608
620
  );
609
- Me.displayName = "AccordionTrigger";
610
- const je = ({ className: e, ...a }) => /* @__PURE__ */ t(
621
+ je.displayName = "AccordionTrigger";
622
+ const Le = ({ className: e, ...a }) => /* @__PURE__ */ t(
611
623
  b.Panel,
612
624
  {
613
625
  className: r(
@@ -617,8 +629,8 @@ const je = ({ className: e, ...a }) => /* @__PURE__ */ t(
617
629
  ...a
618
630
  }
619
631
  );
620
- je.displayName = "AccordionPanel";
621
- const Le = ({ className: e, animated: a, value: o, ...s }) => {
632
+ Le.displayName = "AccordionPanel";
633
+ const He = ({ className: e, animated: a, value: o, ...s }) => {
622
634
  const i = o ?? 0, [c, g] = N.useState(a ? 0 : i);
623
635
  return N.useEffect(() => {
624
636
  if (a) {
@@ -633,8 +645,8 @@ const Le = ({ className: e, animated: a, value: o, ...s }) => {
633
645
  g(i ?? 0);
634
646
  }, [a, i]), /* @__PURE__ */ t(y.Root, { className: r("w-full", e), value: c, ...s });
635
647
  };
636
- Le.displayName = "MeterRoot";
637
- const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
648
+ He.displayName = "MeterRoot";
649
+ const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t(
638
650
  y.Track,
639
651
  {
640
652
  className: r(
@@ -644,7 +656,7 @@ const He = ({ className: e, ...a }) => /* @__PURE__ */ t(
644
656
  ...a
645
657
  }
646
658
  );
647
- He.displayName = "MeterTrack";
659
+ Ge.displayName = "MeterTrack";
648
660
  const qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
649
661
  y.Indicator,
650
662
  {
@@ -672,9 +684,9 @@ const $e = ({ className: e, ...a }) => /* @__PURE__ */ t(
672
684
  }
673
685
  );
674
686
  $e.displayName = "MeterLabel";
675
- const Ge = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Root, { className: r("w-full", e), ...a });
676
- Ge.displayName = "ProgressRoot";
677
- const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
687
+ const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(h.Root, { className: r("w-full", e), ...a });
688
+ Je.displayName = "ProgressRoot";
689
+ const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
678
690
  h.Track,
679
691
  {
680
692
  className: r(
@@ -684,8 +696,8 @@ const Je = ({ className: e, ...a }) => /* @__PURE__ */ t(
684
696
  ...a
685
697
  }
686
698
  );
687
- Je.displayName = "ProgressTrack";
688
- const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
699
+ Ke.displayName = "ProgressTrack";
700
+ const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
689
701
  h.Indicator,
690
702
  {
691
703
  className: r(
@@ -695,87 +707,125 @@ const Ke = ({ className: e, ...a }) => /* @__PURE__ */ t(
695
707
  ...a
696
708
  }
697
709
  );
698
- Ke.displayName = "ProgressIndicator";
699
- const Oe = ({ className: e, ...a }) => /* @__PURE__ */ t(
710
+ Oe.displayName = "ProgressIndicator";
711
+ const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
700
712
  h.Value,
701
713
  {
702
714
  className: r("text-sm font-medium text-foreground", e),
703
715
  ...a
704
716
  }
705
717
  );
706
- Oe.displayName = "ProgressValue";
707
- const Qe = ({ className: e, ...a }) => /* @__PURE__ */ t(
718
+ Qe.displayName = "ProgressValue";
719
+ const Ue = ({ className: e, ...a }) => /* @__PURE__ */ t(
708
720
  h.Label,
709
721
  {
710
722
  className: r("text-sm font-medium text-foreground", e),
711
723
  ...a
712
724
  }
713
725
  );
714
- Qe.displayName = "ProgressLabel";
726
+ Ue.displayName = "ProgressLabel";
727
+ const We = ({ className: e, orientation: a, ...o }) => /* @__PURE__ */ t(
728
+ I,
729
+ {
730
+ orientation: a,
731
+ className: r(
732
+ "inline-flex",
733
+ a === "vertical" && "flex-col",
734
+ // Connected items: collapse borders, round only outer corners
735
+ "*:rounded-none [&>*:not(:first-child)]:-ml-px",
736
+ "[&>*:first-child]:rounded-l-md [&>*:last-child]:rounded-r-md",
737
+ // Vertical orientation adjustments
738
+ a === "vertical" && "[&>*:not(:first-child)]:ml-0 [&>*:not(:first-child)]:-mt-px [&>*:first-child]:rounded-bl-none [&>*:last-child]:rounded-r-none [&>*:first-child]:rounded-t-md [&>*:last-child]:rounded-b-md",
739
+ e
740
+ ),
741
+ ...o
742
+ }
743
+ );
744
+ We.displayName = "ToggleGroupRoot";
745
+ const Xe = ({
746
+ className: e,
747
+ variant: a,
748
+ size: o,
749
+ ...s
750
+ }) => /* @__PURE__ */ t(
751
+ T,
752
+ {
753
+ className: r(
754
+ R({ variant: a, size: o }),
755
+ // Ghost variant in toggle-group: add borders, no background when pressed
756
+ a === "ghost" && "border border-border",
757
+ e
758
+ ),
759
+ ...s
760
+ }
761
+ );
762
+ Xe.displayName = "ToggleGroupItem";
715
763
  export {
716
- Be as AccordionHeader,
717
- Fe as AccordionItem,
718
- je as AccordionPanel,
719
- Ie as AccordionRoot,
720
- Me as AccordionTrigger,
721
- ga as AlertDialog,
722
- M as AlertDialogBackdrop,
723
- $ as AlertDialogClose,
724
- E as AlertDialogDescription,
725
- H as AlertDialogPopup,
726
- B as AlertDialogPortal,
727
- I as AlertDialogRoot,
728
- q as AlertDialogTitle,
729
- F as AlertDialogTrigger,
730
- j as AlertDialogViewport,
731
- J as AvatarFallback,
732
- G as AvatarImage,
733
- z as AvatarRoot,
734
- K as AvatarStack,
735
- _ as Button,
736
- pe as DialogBackdrop,
737
- xe as DialogClose,
738
- he as DialogDescription,
739
- ve as DialogFooter,
740
- Ne as DialogHeader,
741
- be as DialogPopup,
742
- ge as DialogPortal,
743
- ue as DialogRoot,
744
- ye as DialogTitle,
745
- me as DialogTrigger,
746
- Ae as DrawerBackdrop,
747
- Re as DrawerClose,
748
- Ce as DrawerContent,
764
+ Me as AccordionHeader,
765
+ Be as AccordionItem,
766
+ Le as AccordionPanel,
767
+ Fe as AccordionRoot,
768
+ je as AccordionTrigger,
769
+ ya as AlertDialog,
770
+ L as AlertDialogBackdrop,
771
+ J as AlertDialogClose,
772
+ $ as AlertDialogDescription,
773
+ q as AlertDialogPopup,
774
+ j as AlertDialogPortal,
775
+ B as AlertDialogRoot,
776
+ E as AlertDialogTitle,
777
+ M as AlertDialogTrigger,
778
+ H as AlertDialogViewport,
779
+ O as AvatarFallback,
780
+ K as AvatarImage,
781
+ P as AvatarRoot,
782
+ Q as AvatarStack,
783
+ F as Button,
784
+ fe as DialogBackdrop,
785
+ Ne as DialogClose,
786
+ xe as DialogDescription,
787
+ we as DialogFooter,
788
+ ve as DialogHeader,
789
+ ye as DialogPopup,
790
+ pe as DialogPortal,
791
+ me as DialogRoot,
792
+ he as DialogTitle,
793
+ ge as DialogTrigger,
794
+ Te as DrawerBackdrop,
795
+ Se as DrawerClose,
796
+ _e as DrawerContent,
749
797
  Ve as DrawerDescription,
750
- _e as DrawerFooter,
751
- Se as DrawerHeader,
752
- ze as DrawerPopup,
753
- ke as DrawerPortal,
754
- we as DrawerRoot,
755
- Pe as DrawerTitle,
756
- De as DrawerTrigger,
798
+ Ie as DrawerFooter,
799
+ Ce as DrawerHeader,
800
+ Pe as DrawerPopup,
801
+ Ae as DrawerPortal,
802
+ De as DrawerRoot,
803
+ Re as DrawerTitle,
804
+ ke as DrawerTrigger,
757
805
  qe as MeterIndicator,
758
806
  $e as MeterLabel,
759
- Le as MeterRoot,
760
- He as MeterTrack,
807
+ He as MeterRoot,
808
+ Ge as MeterTrack,
761
809
  Ee as MeterValue,
762
- Ke as ProgressIndicator,
763
- Qe as ProgressLabel,
764
- Ge as ProgressRoot,
765
- Je as ProgressTrack,
766
- Oe as ProgressValue,
767
- U as ScrollAreaContent,
768
- Y as ScrollAreaCorner,
769
- O as ScrollAreaRoot,
770
- W as ScrollAreaScrollbar,
771
- X as ScrollAreaThumb,
772
- Q as ScrollAreaViewport,
773
- Z as SwitchRoot,
774
- ee as SwitchThumb,
775
- de as TabsIndicator,
776
- se as TabsList,
777
- ce as TabsPanel,
778
- re as TabsRoot,
779
- ie as TabsTab,
780
- te as Toggle
810
+ Oe as ProgressIndicator,
811
+ Ue as ProgressLabel,
812
+ Je as ProgressRoot,
813
+ Ke as ProgressTrack,
814
+ Qe as ProgressValue,
815
+ X as ScrollAreaContent,
816
+ ee as ScrollAreaCorner,
817
+ U as ScrollAreaRoot,
818
+ Y as ScrollAreaScrollbar,
819
+ Z as ScrollAreaThumb,
820
+ W as ScrollAreaViewport,
821
+ ae as SwitchRoot,
822
+ te as SwitchThumb,
823
+ ce as TabsIndicator,
824
+ le as TabsList,
825
+ ue as TabsPanel,
826
+ oe as TabsRoot,
827
+ ne as TabsTab,
828
+ re as Toggle,
829
+ Xe as ToggleGroupItem,
830
+ We as ToggleGroupRoot
781
831
  };
@@ -1,5 +1,7 @@
1
- export type ToggleSize = 'sm' | 'default' | 'lg';
1
+ export type ToggleSize = 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg';
2
+ export type ToggleVariant = 'default' | 'ghost';
2
3
  export declare const toggleVariants: (props?: ({
3
- size?: "default" | "sm" | "lg" | null | undefined;
4
+ variant?: "default" | "ghost" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
4
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
7
  //# sourceMappingURL=toggle-variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggle-variants.d.ts","sourceRoot":"","sources":["../../src/lib/toggle-variants.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AAEhD,eAAO,MAAM,cAAc;;8EAoB1B,CAAA"}
1
+ {"version":3,"file":"toggle-variants.d.ts","sourceRoot":"","sources":["../../src/lib/toggle-variants.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;AACjF,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/C,eAAO,MAAM,cAAc;;;8EA+B1B,CAAA"}
@@ -78,7 +78,7 @@
78
78
 
79
79
  @layer base {
80
80
  * {
81
- @apply focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-disabled:pointer-events-none data-disabled:opacity-70;
81
+ @apply focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:z-1 data-disabled:pointer-events-none data-disabled:opacity-70;
82
82
  }
83
83
  }
84
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lglab/compose-ui",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "description": "A collection of components built with Base UI & Tailwind CSS",
5
5
  "author": "LGLab",
6
6
  "license": "MIT",