ics-ui-kit 0.1.14 → 0.1.15

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.
@@ -1,30 +1,30 @@
1
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { R as f, T as y, a as b, b as u, c as N } from "../index-BDrapWDv.js";
3
- import e from "react";
1
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
+ import { R as f, T as u, a as g, b as y, c as h } from "../index-BDrapWDv.js";
3
+ import r from "react";
4
4
  import { T as l } from "../index-BVqs-uqP.js";
5
- import { D as G } from "../Divider-DPW5ZhZ8.js";
6
- import { I as g } from "../Icon-DH3ev9GK.js";
7
- import { C as w } from "../chevron-down-CAOItu8X.js";
8
- const x = l({
5
+ import { D as N } from "../Divider-DPW5ZhZ8.js";
6
+ import { I as b } from "../Icon-DH3ev9GK.js";
7
+ import { C as G } from "../chevron-down-CAOItu8X.js";
8
+ const w = l({
9
9
  base: "backdrop-glass-thin flex items-center gap-1 overflow-x-auto rounded-full bg-alpha-50 p-1.5 shadow-glass-sm [scrollbar-width:none]"
10
- }), h = e.forwardRef(
11
- ({ className: a, ...s }, o) => /* @__PURE__ */ r(f, { ref: o, className: x({ className: a }), ...s })
10
+ }), x = r.forwardRef(
11
+ ({ className: a, ...s }, o) => /* @__PURE__ */ e(f, { ref: o, className: w({ className: a }), ...s })
12
12
  );
13
- h.displayName = "GlassToolbar";
13
+ x.displayName = "GlassToolbar";
14
14
  const c = l({
15
- base: "group inline-flex items-center justify-center gap-1.5 rounded-full p-2 text-primary-fg hover:bg-secondary-border focus-visible:shadow-focus focus-visible:outline-none"
16
- }), p = e.forwardRef(({ className: a, ...s }, o) => /* @__PURE__ */ r(y, { ref: o, className: c({ className: a }), ...s }));
15
+ base: "group inline-flex items-center justify-center gap-1.5 rounded-full p-2 text-primary-fg hover:bg-alpha-high-90 focus-visible:shadow-focus focus-visible:outline-none"
16
+ }), p = r.forwardRef(({ className: a, ...s }, o) => /* @__PURE__ */ e(u, { ref: o, className: c({ className: a }), ...s }));
17
17
  p.displayName = "GlassToolbarButton";
18
18
  const S = l({
19
19
  base: "h-4 w-4 text-primary-fg"
20
- }), v = e.forwardRef(
21
- ({ className: a, ...s }, o) => /* @__PURE__ */ r(g, { ref: o, className: S({ className: a }), ...s })
20
+ }), v = r.forwardRef(
21
+ ({ className: a, ...s }, o) => /* @__PURE__ */ e(b, { ref: o, className: S({ className: a }), ...s })
22
22
  );
23
23
  v.displayName = "GlassToolbarIcon";
24
24
  const R = l({
25
25
  base: "text-base leading-none text-primary-fg"
26
- }), I = e.forwardRef(
27
- ({ className: a, ...s }, o) => /* @__PURE__ */ r("div", { ref: o, className: R({ className: a }), ...s })
26
+ }), I = r.forwardRef(
27
+ ({ className: a, ...s }, o) => /* @__PURE__ */ e("div", { ref: o, className: R({ className: a }), ...s })
28
28
  );
29
29
  I.displayName = "GlassToolbarText";
30
30
  const C = l({
@@ -32,27 +32,27 @@ const C = l({
32
32
  base: "text-primary-fg",
33
33
  icon: "h-2 w-2 stroke-[3px]"
34
34
  }
35
- }), T = e.forwardRef(
35
+ }), T = r.forwardRef(
36
36
  ({ className: a, icon: s, ...o }, t) => {
37
- const n = C();
38
- return /* @__PURE__ */ r("span", { className: n.base({ className: a }), children: /* @__PURE__ */ r(g, { icon: s || w, ref: t, className: n.icon(), ...o }) });
37
+ const i = C();
38
+ return /* @__PURE__ */ e("span", { className: i.base({ className: a }), children: /* @__PURE__ */ e(b, { icon: s || G, ref: t, className: i.icon(), ...o }) });
39
39
  }
40
40
  );
41
41
  T.displayName = "GlassToolbarSubTrigger";
42
42
  const k = l({
43
43
  base: "flex items-center gap-0.5"
44
- }), B = e.forwardRef(({ className: a, ...s }, o) => /* @__PURE__ */ r(b, { ref: o, className: k({ className: a }), ...s }));
45
- B.displayName = b.displayName;
44
+ }), B = r.forwardRef(({ className: a, ...s }, o) => /* @__PURE__ */ e(g, { ref: o, className: k({ className: a }), ...s }));
45
+ B.displayName = g.displayName;
46
46
  const j = l({
47
47
  extend: c,
48
- base: "disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-primary-border"
49
- }), D = e.forwardRef(({ className: a, children: s, ...o }, t) => /* @__PURE__ */ r(u, { ref: t, className: j({ className: a }), ...o, children: s }));
48
+ base: "disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-alpha-high-80"
49
+ }), D = r.forwardRef(({ className: a, children: s, ...o }, t) => /* @__PURE__ */ e(y, { ref: t, className: j({ className: a }), ...o, children: s }));
50
50
  D.displayName = "GlassToolbarToggleItem";
51
51
  const _ = l({
52
52
  base: "h-5 w-px bg-primary-border"
53
- }), q = e.forwardRef(
54
- ({ className: a, ...s }, o) => /* @__PURE__ */ r(N, { asChild: !0, "data-orientation": "vertical", children: /* @__PURE__ */ r(
55
- G,
53
+ }), q = r.forwardRef(
54
+ ({ className: a, ...s }, o) => /* @__PURE__ */ e(h, { asChild: !0, "data-orientation": "vertical", children: /* @__PURE__ */ e(
55
+ N,
56
56
  {
57
57
  ref: o,
58
58
  orientation: "vertical",
@@ -63,9 +63,9 @@ const _ = l({
63
63
  );
64
64
  q.displayName = "GlassToolbarSeparator";
65
65
  const z = l({
66
- base: "data-[state=open]:bg-primary-border"
67
- }), d = e.forwardRef(({ className: a, children: s, ...o }, t) => /* @__PURE__ */ r(p, { ref: t, "data-stick-left": !0, className: z({ className: a }), ...o, children: s }));
68
- d.displayName = "GlassToolbarTrigger";
66
+ base: "data-[state=open]:bg-alpha-high-80"
67
+ }), m = r.forwardRef(({ className: a, children: s, ...o }, t) => /* @__PURE__ */ e(p, { ref: t, "data-stick-left": !0, className: z({ className: a }), ...o, children: s }));
68
+ m.displayName = "GlassToolbarTrigger";
69
69
  const A = l({
70
70
  slots: {
71
71
  wrapper: "",
@@ -76,16 +76,16 @@ const A = l({
76
76
  true: { wrapper: "-ml-0.5 px-0.5 py-2" }
77
77
  }
78
78
  }
79
- }), E = e.forwardRef(({ className: a, children: s, sub: o, ...t }, n) => {
80
- const i = A();
81
- return /* @__PURE__ */ m(d, { ref: n, "data-stick-left": !0, className: i.wrapper({ className: a, sub: o }), ...t, children: [
79
+ }), E = r.forwardRef(({ className: a, children: s, sub: o, ...t }, i) => {
80
+ const n = A();
81
+ return /* @__PURE__ */ d(m, { ref: i, "data-stick-left": !0, className: n.wrapper({ className: a, sub: o }), ...t, children: [
82
82
  s,
83
- /* @__PURE__ */ r(T, { className: i.subtrigger() })
83
+ /* @__PURE__ */ e(T, { className: n.subtrigger() })
84
84
  ] });
85
85
  });
86
86
  E.displayName = "GlassToolbarTriggerChevron";
87
87
  export {
88
- h as GlassToolbar,
88
+ x as GlassToolbar,
89
89
  p as GlassToolbarButton,
90
90
  v as GlassToolbarIcon,
91
91
  q as GlassToolbarSeparator,
@@ -93,7 +93,7 @@ export {
93
93
  I as GlassToolbarText,
94
94
  B as GlassToolbarToggleGroup,
95
95
  D as GlassToolbarToggleItem,
96
- d as GlassToolbarTrigger,
96
+ m as GlassToolbarTrigger,
97
97
  E as GlassToolbarTriggerChevron
98
98
  };
99
99
  //# sourceMappingURL=glass-toolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"glass-toolbar.js","sources":["../../src/components/glass-toolbar/GlassToolbar.tsx"],"sourcesContent":["import * as ToolbarPrimitive from \"@radix-ui/react-toolbar\";\nimport React, { PropsWithChildren } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { Divider } from \"../divider/Divider\";\nimport { Icon } from \"../icon\";\nimport { ChevronDown, LucideIcon } from \"lucide-react\";\n\nconst glassToolbarStyles = tv({\n\tbase: \"backdrop-glass-thin flex items-center gap-1 overflow-x-auto rounded-full bg-alpha-50 p-1.5 shadow-glass-sm [scrollbar-width:none]\"\n});\n\nexport type GlassToolbarProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.Root>;\n\nexport const GlassToolbar = React.forwardRef<React.ElementRef<typeof ToolbarPrimitive.Root>, GlassToolbarProps>(\n\t({ className, ...props }, ref) => {\n\t\treturn <ToolbarPrimitive.Root ref={ref} className={glassToolbarStyles({ className })} {...props} />;\n\t}\n);\n\nGlassToolbar.displayName = \"GlassToolbar\";\n\nconst glassToolbarButtonStyles = tv({\n\tbase: \"group inline-flex items-center justify-center gap-1.5 rounded-full p-2 text-primary-fg hover:bg-secondary-border focus-visible:shadow-focus focus-visible:outline-none\"\n});\n\nexport type GlassToolbarButtonProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.ToolbarButton>;\n\nexport const GlassToolbarButton = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarButton>,\n\tGlassToolbarButtonProps\n>(({ className, ...props }, ref) => (\n\t<ToolbarPrimitive.ToolbarButton ref={ref} className={glassToolbarButtonStyles({ className })} {...props} />\n));\n\nGlassToolbarButton.displayName = \"GlassToolbarButton\";\n\nconst glassToolbarIconStyles = tv({\n\tbase: \"h-4 w-4 text-primary-fg\"\n});\n\nexport type GlassToolbarIconProps = React.ComponentPropsWithoutRef<typeof Icon>;\n\nexport const GlassToolbarIcon = React.forwardRef<React.ElementRef<typeof Icon>, GlassToolbarIconProps>(\n\t({ className, ...props }, ref) => <Icon ref={ref} className={glassToolbarIconStyles({ className })} {...props} />\n);\n\nGlassToolbarIcon.displayName = \"GlassToolbarIcon\";\n\nconst glassToolbarTextStyles = tv({\n\tbase: \"text-base leading-none text-primary-fg\"\n});\n\nexport type GlassToolbarTextProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const GlassToolbarText = React.forwardRef<HTMLDivElement, PropsWithChildren<GlassToolbarTextProps>>(\n\t({ className, ...props }, ref) => <div ref={ref} className={glassToolbarTextStyles({ className })} {...props} />\n);\n\nGlassToolbarText.displayName = \"GlassToolbarText\";\n\nconst glassToolbarSubTriggerStyles = tv({\n\tslots: {\n\t\tbase: \"text-primary-fg\",\n\t\ticon: \"h-2 w-2 stroke-[3px]\"\n\t}\n});\n\nexport type GlassToolbarSubTriggerProps = Omit<React.ComponentPropsWithoutRef<typeof Icon>, \"icon\"> & {\n\ticon?: LucideIcon;\n};\n\nexport const GlassToolbarSubTrigger = React.forwardRef<React.ElementRef<typeof Icon>, GlassToolbarSubTriggerProps>(\n\t({ className, icon, ...props }, ref) => {\n\t\tconst styles = glassToolbarSubTriggerStyles();\n\t\treturn (\n\t\t\t<span className={styles.base({ className })}>\n\t\t\t\t<Icon icon={icon || ChevronDown} ref={ref} className={styles.icon()} {...props} />\n\t\t\t</span>\n\t\t);\n\t}\n);\n\nGlassToolbarSubTrigger.displayName = \"GlassToolbarSubTrigger\";\n\nconst glassToolbarToggleGroupStyles = tv({\n\tbase: \"flex items-center gap-0.5\"\n});\n\nexport type GlassToolbarToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.ToggleGroup>;\n\nexport const GlassToolbarToggleGroup = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToggleGroup>,\n\tGlassToolbarToggleGroupProps\n>(({ className, ...props }, ref) => (\n\t<ToolbarPrimitive.ToggleGroup ref={ref} className={glassToolbarToggleGroupStyles({ className })} {...props} />\n));\n\nGlassToolbarToggleGroup.displayName = ToolbarPrimitive.ToggleGroup.displayName;\n\nconst glassToolbarToggleStyles = tv({\n\textend: glassToolbarButtonStyles,\n\tbase: \"disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-primary-border\"\n});\n\nexport type GlassToolbarToggleItemProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.ToolbarToggleItem> & {\n\tchildren: React.ReactNode;\n};\n\nexport const GlassToolbarToggleItem = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarToggleItem>,\n\tGlassToolbarToggleItemProps\n>(({ className, children, ...props }, ref) => (\n\t<ToolbarPrimitive.ToolbarToggleItem ref={ref} className={glassToolbarToggleStyles({ className })} {...props}>\n\t\t{children}\n\t</ToolbarPrimitive.ToolbarToggleItem>\n));\n\nGlassToolbarToggleItem.displayName = \"GlassToolbarToggleItem\";\n\nconst glassToolbarSeparatorStyles = tv({\n\tbase: \"h-5 w-px bg-primary-border\"\n});\n\nexport type GlassToolbarSeparatorProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const GlassToolbarSeparator = React.forwardRef<React.ElementRef<typeof Divider>, GlassToolbarSeparatorProps>(\n\t({ className, ...props }, ref) => (\n\t\t<ToolbarPrimitive.ToolbarSeparator asChild data-orientation=\"vertical\">\n\t\t\t<Divider\n\t\t\t\tref={ref}\n\t\t\t\torientation=\"vertical\"\n\t\t\t\tclassName={glassToolbarSeparatorStyles({ className })}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</ToolbarPrimitive.ToolbarSeparator>\n\t)\n);\n\nGlassToolbarSeparator.displayName = \"GlassToolbarSeparator\";\n\nconst glassToolbarTriggerStyles = tv({\n\tbase: \"data-[state=open]:bg-primary-border\"\n});\n\nexport type GlassToolbarTriggerProps = GlassToolbarButtonProps & {\n\t\"data-state\"?: \"open\" | \"closed\";\n};\n\nexport const GlassToolbarTrigger = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarButton>,\n\tGlassToolbarTriggerProps\n>(({ className, children, ...props }, ref) => (\n\t<GlassToolbarButton ref={ref} data-stick-left className={glassToolbarTriggerStyles({ className })} {...props}>\n\t\t{children}\n\t</GlassToolbarButton>\n));\n\nGlassToolbarTrigger.displayName = \"GlassToolbarTrigger\";\n\nconst glassToolbarTriggerChevronStyles = tv({\n\tslots: {\n\t\twrapper: \"\",\n\t\tsubtrigger: \"py-0.5\"\n\t},\n\tvariants: {\n\t\tsub: {\n\t\t\ttrue: { wrapper: \"-ml-0.5 px-0.5 py-2\" }\n\t\t}\n\t}\n});\n\nexport type GlassToolbarTriggerChevronProps = GlassToolbarTriggerProps & {\n\tsub?: boolean;\n};\n\nexport const GlassToolbarTriggerChevron = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarButton>,\n\tGlassToolbarTriggerChevronProps\n>(({ className, children, sub, ...props }, ref) => {\n\tconst styles = glassToolbarTriggerChevronStyles();\n\n\treturn (\n\t\t<GlassToolbarTrigger ref={ref} data-stick-left className={styles.wrapper({ className, sub })} {...props}>\n\t\t\t{children}\n\t\t\t<GlassToolbarSubTrigger className={styles.subtrigger()} />\n\t\t</GlassToolbarTrigger>\n\t);\n});\n\nGlassToolbarTriggerChevron.displayName = \"GlassToolbarTriggerChevron\";\n"],"names":["glassToolbarStyles","tv","GlassToolbar","React","className","props","ref","jsx","ToolbarPrimitive.Root","glassToolbarButtonStyles","GlassToolbarButton","ToolbarPrimitive.ToolbarButton","glassToolbarIconStyles","GlassToolbarIcon","Icon","glassToolbarTextStyles","GlassToolbarText","glassToolbarSubTriggerStyles","GlassToolbarSubTrigger","icon","styles","ChevronDown","glassToolbarToggleGroupStyles","GlassToolbarToggleGroup","ToolbarPrimitive.ToggleGroup","glassToolbarToggleStyles","GlassToolbarToggleItem","children","ToolbarPrimitive.ToolbarToggleItem","glassToolbarSeparatorStyles","GlassToolbarSeparator","ToolbarPrimitive.ToolbarSeparator","Divider","glassToolbarTriggerStyles","GlassToolbarTrigger","glassToolbarTriggerChevronStyles","GlassToolbarTriggerChevron","sub","jsxs"],"mappings":";;;;;;;AAOA,MAAMA,IAAqBC,EAAG;AAAA,EAC7B,MAAM;AACP,CAAC,GAIYC,IAAeC,EAAM;AAAA,EACjC,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACjB,gBAAAC,EAAAC,GAAA,EAAsB,KAAAF,GAAU,WAAWN,EAAmB,EAAE,WAAAI,EAAW,CAAA,GAAI,GAAGC,GAAO;AAEnG;AAEAH,EAAa,cAAc;AAE3B,MAAMO,IAA2BR,EAAG;AAAA,EACnC,MAAM;AACP,CAAC,GAIYS,IAAqBP,EAAM,WAGtC,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC3B,gBAAAC,EAACI,GAAA,EAA+B,KAAAL,GAAU,WAAWG,EAAyB,EAAE,WAAAL,GAAW,G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,KAAK;AAAA,MACJ,MAAM,EAAE,SAAS,sBAAsB;AAAA,IAAA;AAAA,EACxC;AAEF,CAAC,GAMYmC,IAA6BjC,EAAM,WAG9C,CAAC,EAAE,WAAAC,GAAW,UAAAuB,GAAU,KAAAU,GAAK,GAAGhC,EAAM,GAAGC,MAAQ;AAClD,QAAMc,IAASe,EAAiC;AAEhD,SACE,gBAAAG,EAAAJ,GAAA,EAAoB,KAAA5B,GAAU,mBAAe,IAAC,WAAWc,EAAO,QAAQ,EAAE,WAAAhB,GAAW,KAAAiC,EAAK,CAAA,GAAI,GAAGhC,GAChG,UAAA;AAAA,IAAAsB;AAAA,IACA,gBAAApB,EAAAW,GAAA,EAAuB,WAAWE,EAAO,aAAc,CAAA;AAAA,EAAA,GACzD;AAEF,CAAC;AAEDgB,EAA2B,cAAc;"}
1
+ {"version":3,"file":"glass-toolbar.js","sources":["../../src/components/glass-toolbar/GlassToolbar.tsx"],"sourcesContent":["import * as ToolbarPrimitive from \"@radix-ui/react-toolbar\";\nimport React, { PropsWithChildren } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { Divider } from \"../divider/Divider\";\nimport { Icon } from \"../icon\";\nimport { ChevronDown, LucideIcon } from \"lucide-react\";\n\nconst glassToolbarStyles = tv({\n\tbase: \"backdrop-glass-thin flex items-center gap-1 overflow-x-auto rounded-full bg-alpha-50 p-1.5 shadow-glass-sm [scrollbar-width:none]\"\n});\n\nexport type GlassToolbarProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.Root>;\n\nexport const GlassToolbar = React.forwardRef<React.ElementRef<typeof ToolbarPrimitive.Root>, GlassToolbarProps>(\n\t({ className, ...props }, ref) => {\n\t\treturn <ToolbarPrimitive.Root ref={ref} className={glassToolbarStyles({ className })} {...props} />;\n\t}\n);\n\nGlassToolbar.displayName = \"GlassToolbar\";\n\nconst glassToolbarButtonStyles = tv({\n\tbase: \"group inline-flex items-center justify-center gap-1.5 rounded-full p-2 text-primary-fg hover:bg-alpha-high-90 focus-visible:shadow-focus focus-visible:outline-none\"\n});\n\nexport type GlassToolbarButtonProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.ToolbarButton>;\n\nexport const GlassToolbarButton = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarButton>,\n\tGlassToolbarButtonProps\n>(({ className, ...props }, ref) => (\n\t<ToolbarPrimitive.ToolbarButton ref={ref} className={glassToolbarButtonStyles({ className })} {...props} />\n));\n\nGlassToolbarButton.displayName = \"GlassToolbarButton\";\n\nconst glassToolbarIconStyles = tv({\n\tbase: \"h-4 w-4 text-primary-fg\"\n});\n\nexport type GlassToolbarIconProps = React.ComponentPropsWithoutRef<typeof Icon>;\n\nexport const GlassToolbarIcon = React.forwardRef<React.ElementRef<typeof Icon>, GlassToolbarIconProps>(\n\t({ className, ...props }, ref) => <Icon ref={ref} className={glassToolbarIconStyles({ className })} {...props} />\n);\n\nGlassToolbarIcon.displayName = \"GlassToolbarIcon\";\n\nconst glassToolbarTextStyles = tv({\n\tbase: \"text-base leading-none text-primary-fg\"\n});\n\nexport type GlassToolbarTextProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const GlassToolbarText = React.forwardRef<HTMLDivElement, PropsWithChildren<GlassToolbarTextProps>>(\n\t({ className, ...props }, ref) => <div ref={ref} className={glassToolbarTextStyles({ className })} {...props} />\n);\n\nGlassToolbarText.displayName = \"GlassToolbarText\";\n\nconst glassToolbarSubTriggerStyles = tv({\n\tslots: {\n\t\tbase: \"text-primary-fg\",\n\t\ticon: \"h-2 w-2 stroke-[3px]\"\n\t}\n});\n\nexport type GlassToolbarSubTriggerProps = Omit<React.ComponentPropsWithoutRef<typeof Icon>, \"icon\"> & {\n\ticon?: LucideIcon;\n};\n\nexport const GlassToolbarSubTrigger = React.forwardRef<React.ElementRef<typeof Icon>, GlassToolbarSubTriggerProps>(\n\t({ className, icon, ...props }, ref) => {\n\t\tconst styles = glassToolbarSubTriggerStyles();\n\t\treturn (\n\t\t\t<span className={styles.base({ className })}>\n\t\t\t\t<Icon icon={icon || ChevronDown} ref={ref} className={styles.icon()} {...props} />\n\t\t\t</span>\n\t\t);\n\t}\n);\n\nGlassToolbarSubTrigger.displayName = \"GlassToolbarSubTrigger\";\n\nconst glassToolbarToggleGroupStyles = tv({\n\tbase: \"flex items-center gap-0.5\"\n});\n\nexport type GlassToolbarToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.ToggleGroup>;\n\nexport const GlassToolbarToggleGroup = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToggleGroup>,\n\tGlassToolbarToggleGroupProps\n>(({ className, ...props }, ref) => (\n\t<ToolbarPrimitive.ToggleGroup ref={ref} className={glassToolbarToggleGroupStyles({ className })} {...props} />\n));\n\nGlassToolbarToggleGroup.displayName = ToolbarPrimitive.ToggleGroup.displayName;\n\nconst glassToolbarToggleStyles = tv({\n\textend: glassToolbarButtonStyles,\n\tbase: \"disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-alpha-high-80\"\n});\n\nexport type GlassToolbarToggleItemProps = React.ComponentPropsWithoutRef<typeof ToolbarPrimitive.ToolbarToggleItem> & {\n\tchildren: React.ReactNode;\n};\n\nexport const GlassToolbarToggleItem = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarToggleItem>,\n\tGlassToolbarToggleItemProps\n>(({ className, children, ...props }, ref) => (\n\t<ToolbarPrimitive.ToolbarToggleItem ref={ref} className={glassToolbarToggleStyles({ className })} {...props}>\n\t\t{children}\n\t</ToolbarPrimitive.ToolbarToggleItem>\n));\n\nGlassToolbarToggleItem.displayName = \"GlassToolbarToggleItem\";\n\nconst glassToolbarSeparatorStyles = tv({\n\tbase: \"h-5 w-px bg-primary-border\"\n});\n\nexport type GlassToolbarSeparatorProps = React.HTMLAttributes<HTMLDivElement>;\n\nexport const GlassToolbarSeparator = React.forwardRef<React.ElementRef<typeof Divider>, GlassToolbarSeparatorProps>(\n\t({ className, ...props }, ref) => (\n\t\t<ToolbarPrimitive.ToolbarSeparator asChild data-orientation=\"vertical\">\n\t\t\t<Divider\n\t\t\t\tref={ref}\n\t\t\t\torientation=\"vertical\"\n\t\t\t\tclassName={glassToolbarSeparatorStyles({ className })}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</ToolbarPrimitive.ToolbarSeparator>\n\t)\n);\n\nGlassToolbarSeparator.displayName = \"GlassToolbarSeparator\";\n\nconst glassToolbarTriggerStyles = tv({\n\tbase: \"data-[state=open]:bg-alpha-high-80\"\n});\n\nexport type GlassToolbarTriggerProps = GlassToolbarButtonProps & {\n\t\"data-state\"?: \"open\" | \"closed\";\n};\n\nexport const GlassToolbarTrigger = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarButton>,\n\tGlassToolbarTriggerProps\n>(({ className, children, ...props }, ref) => (\n\t<GlassToolbarButton ref={ref} data-stick-left className={glassToolbarTriggerStyles({ className })} {...props}>\n\t\t{children}\n\t</GlassToolbarButton>\n));\n\nGlassToolbarTrigger.displayName = \"GlassToolbarTrigger\";\n\nconst glassToolbarTriggerChevronStyles = tv({\n\tslots: {\n\t\twrapper: \"\",\n\t\tsubtrigger: \"py-0.5\"\n\t},\n\tvariants: {\n\t\tsub: {\n\t\t\ttrue: { wrapper: \"-ml-0.5 px-0.5 py-2\" }\n\t\t}\n\t}\n});\n\nexport type GlassToolbarTriggerChevronProps = GlassToolbarTriggerProps & {\n\tsub?: boolean;\n};\n\nexport const GlassToolbarTriggerChevron = React.forwardRef<\n\tReact.ElementRef<typeof ToolbarPrimitive.ToolbarButton>,\n\tGlassToolbarTriggerChevronProps\n>(({ className, children, sub, ...props }, ref) => {\n\tconst styles = glassToolbarTriggerChevronStyles();\n\n\treturn (\n\t\t<GlassToolbarTrigger ref={ref} data-stick-left className={styles.wrapper({ className, sub })} {...props}>\n\t\t\t{children}\n\t\t\t<GlassToolbarSubTrigger className={styles.subtrigger()} />\n\t\t</GlassToolbarTrigger>\n\t);\n});\n\nGlassToolbarTriggerChevron.displayName = \"GlassToolbarTriggerChevron\";\n"],"names":["glassToolbarStyles","tv","GlassToolbar","React","className","props","ref","jsx","ToolbarPrimitive.Root","glassToolbarButtonStyles","GlassToolbarButton","ToolbarPrimitive.ToolbarButton","glassToolbarIconStyles","GlassToolbarIcon","Icon","glassToolbarTextStyles","GlassToolbarText","glassToolbarSubTriggerStyles","GlassToolbarSubTrigger","icon","styles","ChevronDown","glassToolbarToggleGroupStyles","GlassToolbarToggleGroup","ToolbarPrimitive.ToggleGroup","glassToolbarToggleStyles","GlassToolbarToggleItem","children","ToolbarPrimitive.ToolbarToggleItem","glassToolbarSeparatorStyles","GlassToolbarSeparator","ToolbarPrimitive.ToolbarSeparator","Divider","glassToolbarTriggerStyles","GlassToolbarTrigger","glassToolbarTriggerChevronStyles","GlassToolbarTriggerChevron","sub","jsxs"],"mappings":";;;;;;;AAOA,MAAMA,IAAqBC,EAAG;AAAA,EAC7B,MAAM;AACP,CAAC,GAIYC,IAAeC,EAAM;AAAA,EACjC,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MACjB,gBAAAC,EAAAC,GAAA,EAAsB,KAAAF,GAAU,WAAWN,EAAmB,EAAE,WAAAI,EAAW,CAAA,GAAI,GAAGC,GAAO;AAEnG;AAEAH,EAAa,cAAc;AAE3B,MAAMO,IAA2BR,EAAG;AAAA,EACnC,MAAM;AACP,CAAC,GAIYS,IAAqBP,EAAM,WAGtC,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC3B,gBAAAC,EAACI,GAAA,EAA+B,KAAAL,GAAU,WAAWG,EAAyB,EAAE,WAAAL,GAAW,GAAI,GAAGC,GAAO,CACzG;AAEDK,EAAmB,cAAc;AAEjC,MAAME,IAAyBX,EAAG;AAAA,EACjC,MAAM;AACP,CAAC,GAIYY,IAAmBV,EAAM;AAAA,EACrC,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAAQ,gBAAAC,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AAQ;AAClD,QAAMc,IAASe,EAAiC;AAEhD,SACE,gBAAAG,EAAAJ,GAAA,EAAoB,KAAA5B,GAAU,mBAAe,IAAC,WAAWc,EAAO,QAAQ,EAAE,WAAAhB,GAAW,KAAAiC,EAAK,CAAA,GAAI,GAAGhC,GAChG,UAAA;AAAA,IAAAsB;AAAA,IACA,gBAAApB,EAAAW,GAAA,EAAuB,WAAWE,EAAO,aAAc,CAAA;AAAA,EAAA,GACzD;AAEF,CAAC;AAEDgB,EAA2B,cAAc;"}
@@ -1,6 +1,7 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj, ReactRenderer } from '@storybook/react';
2
2
  import { Sidebar } from './Sidebar';
3
- import { ForwardRefExoticComponent, ClassAttributes, HTMLAttributes, RefAttributes } from 'react';
3
+ import { ForwardRefExoticComponent, ClassAttributes, HTMLAttributes, RefAttributes, ReactNode, CSSProperties, AriaRole, ClipboardEventHandler, CompositionEventHandler, FocusEventHandler, FormEventHandler, ReactEventHandler, KeyboardEventHandler, MouseEventHandler, DragEventHandler, TouchEventHandler, PointerEventHandler, UIEventHandler, WheelEventHandler, AnimationEventHandler, TransitionEventHandler, Key, LegacyRef } from 'react';
4
+ import { PartialStoryFn } from '@storybook/core/csf';
4
5
  declare const meta: {
5
6
  component: ForwardRefExoticComponent<Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
6
7
  side?: "left" | "right";
@@ -11,6 +12,281 @@ declare const meta: {
11
12
  layout: string;
12
13
  };
13
14
  tags: string[];
15
+ decorators: ((Story: PartialStoryFn<ReactRenderer, {
16
+ children?: ReactNode | undefined;
17
+ defaultChecked?: boolean | undefined;
18
+ defaultValue?: string | number | readonly string[] | undefined;
19
+ suppressContentEditableWarning?: boolean | undefined;
20
+ suppressHydrationWarning?: boolean | undefined;
21
+ accessKey?: string | undefined;
22
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
23
+ autoFocus?: boolean | undefined;
24
+ className?: string | undefined;
25
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
26
+ contextMenu?: string | undefined;
27
+ dir?: string | undefined;
28
+ draggable?: (boolean | "true" | "false") | undefined;
29
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
30
+ hidden?: boolean | undefined;
31
+ id?: string | undefined;
32
+ lang?: string | undefined;
33
+ nonce?: string | undefined;
34
+ slot?: string | undefined;
35
+ spellCheck?: (boolean | "true" | "false") | undefined;
36
+ style?: CSSProperties | undefined;
37
+ tabIndex?: number | undefined;
38
+ title?: string | undefined;
39
+ translate?: "yes" | "no" | undefined;
40
+ radioGroup?: string | undefined;
41
+ role?: AriaRole | undefined;
42
+ about?: string | undefined;
43
+ content?: string | undefined;
44
+ datatype?: string | undefined;
45
+ inlist?: any;
46
+ prefix?: string | undefined;
47
+ property?: string | undefined;
48
+ rel?: string | undefined;
49
+ resource?: string | undefined;
50
+ rev?: string | undefined;
51
+ typeof?: string | undefined;
52
+ vocab?: string | undefined;
53
+ autoCorrect?: string | undefined;
54
+ autoSave?: string | undefined;
55
+ color?: string | undefined;
56
+ itemProp?: string | undefined;
57
+ itemScope?: boolean | undefined;
58
+ itemType?: string | undefined;
59
+ itemID?: string | undefined;
60
+ itemRef?: string | undefined;
61
+ results?: number | undefined;
62
+ security?: string | undefined;
63
+ unselectable?: "on" | "off" | undefined;
64
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
65
+ is?: string | undefined;
66
+ exportparts?: string | undefined;
67
+ part?: string | undefined;
68
+ "aria-activedescendant"?: string | undefined;
69
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
70
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
71
+ "aria-braillelabel"?: string | undefined;
72
+ "aria-brailleroledescription"?: string | undefined;
73
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
74
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
75
+ "aria-colcount"?: number | undefined;
76
+ "aria-colindex"?: number | undefined;
77
+ "aria-colindextext"?: string | undefined;
78
+ "aria-colspan"?: number | undefined;
79
+ "aria-controls"?: string | undefined;
80
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
81
+ "aria-describedby"?: string | undefined;
82
+ "aria-description"?: string | undefined;
83
+ "aria-details"?: string | undefined;
84
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
85
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
86
+ "aria-errormessage"?: string | undefined;
87
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
88
+ "aria-flowto"?: string | undefined;
89
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
90
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
91
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
92
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
93
+ "aria-keyshortcuts"?: string | undefined;
94
+ "aria-label"?: string | undefined;
95
+ "aria-labelledby"?: string | undefined;
96
+ "aria-level"?: number | undefined;
97
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
98
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
99
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
100
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
101
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
102
+ "aria-owns"?: string | undefined;
103
+ "aria-placeholder"?: string | undefined;
104
+ "aria-posinset"?: number | undefined;
105
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
106
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
107
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
108
+ "aria-required"?: (boolean | "true" | "false") | undefined;
109
+ "aria-roledescription"?: string | undefined;
110
+ "aria-rowcount"?: number | undefined;
111
+ "aria-rowindex"?: number | undefined;
112
+ "aria-rowindextext"?: string | undefined;
113
+ "aria-rowspan"?: number | undefined;
114
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
115
+ "aria-setsize"?: number | undefined;
116
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
117
+ "aria-valuemax"?: number | undefined;
118
+ "aria-valuemin"?: number | undefined;
119
+ "aria-valuenow"?: number | undefined;
120
+ "aria-valuetext"?: string | undefined;
121
+ dangerouslySetInnerHTML?: {
122
+ __html: string | TrustedHTML;
123
+ } | undefined;
124
+ onCopy?: ClipboardEventHandler<HTMLDivElement> | undefined;
125
+ onCopyCapture?: ClipboardEventHandler<HTMLDivElement> | undefined;
126
+ onCut?: ClipboardEventHandler<HTMLDivElement> | undefined;
127
+ onCutCapture?: ClipboardEventHandler<HTMLDivElement> | undefined;
128
+ onPaste?: ClipboardEventHandler<HTMLDivElement> | undefined;
129
+ onPasteCapture?: ClipboardEventHandler<HTMLDivElement> | undefined;
130
+ onCompositionEnd?: CompositionEventHandler<HTMLDivElement> | undefined;
131
+ onCompositionEndCapture?: CompositionEventHandler<HTMLDivElement> | undefined;
132
+ onCompositionStart?: CompositionEventHandler<HTMLDivElement> | undefined;
133
+ onCompositionStartCapture?: CompositionEventHandler<HTMLDivElement> | undefined;
134
+ onCompositionUpdate?: CompositionEventHandler<HTMLDivElement> | undefined;
135
+ onCompositionUpdateCapture?: CompositionEventHandler<HTMLDivElement> | undefined;
136
+ onFocus?: FocusEventHandler<HTMLDivElement> | undefined;
137
+ onFocusCapture?: FocusEventHandler<HTMLDivElement> | undefined;
138
+ onBlur?: FocusEventHandler<HTMLDivElement> | undefined;
139
+ onBlurCapture?: FocusEventHandler<HTMLDivElement> | undefined;
140
+ onChange?: FormEventHandler<HTMLDivElement> | undefined;
141
+ onChangeCapture?: FormEventHandler<HTMLDivElement> | undefined;
142
+ onBeforeInput?: FormEventHandler<HTMLDivElement> | undefined;
143
+ onBeforeInputCapture?: FormEventHandler<HTMLDivElement> | undefined;
144
+ onInput?: FormEventHandler<HTMLDivElement> | undefined;
145
+ onInputCapture?: FormEventHandler<HTMLDivElement> | undefined;
146
+ onReset?: FormEventHandler<HTMLDivElement> | undefined;
147
+ onResetCapture?: FormEventHandler<HTMLDivElement> | undefined;
148
+ onSubmit?: FormEventHandler<HTMLDivElement> | undefined;
149
+ onSubmitCapture?: FormEventHandler<HTMLDivElement> | undefined;
150
+ onInvalid?: FormEventHandler<HTMLDivElement> | undefined;
151
+ onInvalidCapture?: FormEventHandler<HTMLDivElement> | undefined;
152
+ onLoad?: ReactEventHandler<HTMLDivElement> | undefined;
153
+ onLoadCapture?: ReactEventHandler<HTMLDivElement> | undefined;
154
+ onError?: ReactEventHandler<HTMLDivElement> | undefined;
155
+ onErrorCapture?: ReactEventHandler<HTMLDivElement> | undefined;
156
+ onKeyDown?: KeyboardEventHandler<HTMLDivElement> | undefined;
157
+ onKeyDownCapture?: KeyboardEventHandler<HTMLDivElement> | undefined;
158
+ onKeyPress?: KeyboardEventHandler<HTMLDivElement> | undefined;
159
+ onKeyPressCapture?: KeyboardEventHandler<HTMLDivElement> | undefined;
160
+ onKeyUp?: KeyboardEventHandler<HTMLDivElement> | undefined;
161
+ onKeyUpCapture?: KeyboardEventHandler<HTMLDivElement> | undefined;
162
+ onAbort?: ReactEventHandler<HTMLDivElement> | undefined;
163
+ onAbortCapture?: ReactEventHandler<HTMLDivElement> | undefined;
164
+ onCanPlay?: ReactEventHandler<HTMLDivElement> | undefined;
165
+ onCanPlayCapture?: ReactEventHandler<HTMLDivElement> | undefined;
166
+ onCanPlayThrough?: ReactEventHandler<HTMLDivElement> | undefined;
167
+ onCanPlayThroughCapture?: ReactEventHandler<HTMLDivElement> | undefined;
168
+ onDurationChange?: ReactEventHandler<HTMLDivElement> | undefined;
169
+ onDurationChangeCapture?: ReactEventHandler<HTMLDivElement> | undefined;
170
+ onEmptied?: ReactEventHandler<HTMLDivElement> | undefined;
171
+ onEmptiedCapture?: ReactEventHandler<HTMLDivElement> | undefined;
172
+ onEncrypted?: ReactEventHandler<HTMLDivElement> | undefined;
173
+ onEncryptedCapture?: ReactEventHandler<HTMLDivElement> | undefined;
174
+ onEnded?: ReactEventHandler<HTMLDivElement> | undefined;
175
+ onEndedCapture?: ReactEventHandler<HTMLDivElement> | undefined;
176
+ onLoadedData?: ReactEventHandler<HTMLDivElement> | undefined;
177
+ onLoadedDataCapture?: ReactEventHandler<HTMLDivElement> | undefined;
178
+ onLoadedMetadata?: ReactEventHandler<HTMLDivElement> | undefined;
179
+ onLoadedMetadataCapture?: ReactEventHandler<HTMLDivElement> | undefined;
180
+ onLoadStart?: ReactEventHandler<HTMLDivElement> | undefined;
181
+ onLoadStartCapture?: ReactEventHandler<HTMLDivElement> | undefined;
182
+ onPause?: ReactEventHandler<HTMLDivElement> | undefined;
183
+ onPauseCapture?: ReactEventHandler<HTMLDivElement> | undefined;
184
+ onPlay?: ReactEventHandler<HTMLDivElement> | undefined;
185
+ onPlayCapture?: ReactEventHandler<HTMLDivElement> | undefined;
186
+ onPlaying?: ReactEventHandler<HTMLDivElement> | undefined;
187
+ onPlayingCapture?: ReactEventHandler<HTMLDivElement> | undefined;
188
+ onProgress?: ReactEventHandler<HTMLDivElement> | undefined;
189
+ onProgressCapture?: ReactEventHandler<HTMLDivElement> | undefined;
190
+ onRateChange?: ReactEventHandler<HTMLDivElement> | undefined;
191
+ onRateChangeCapture?: ReactEventHandler<HTMLDivElement> | undefined;
192
+ onResize?: ReactEventHandler<HTMLDivElement> | undefined;
193
+ onResizeCapture?: ReactEventHandler<HTMLDivElement> | undefined;
194
+ onSeeked?: ReactEventHandler<HTMLDivElement> | undefined;
195
+ onSeekedCapture?: ReactEventHandler<HTMLDivElement> | undefined;
196
+ onSeeking?: ReactEventHandler<HTMLDivElement> | undefined;
197
+ onSeekingCapture?: ReactEventHandler<HTMLDivElement> | undefined;
198
+ onStalled?: ReactEventHandler<HTMLDivElement> | undefined;
199
+ onStalledCapture?: ReactEventHandler<HTMLDivElement> | undefined;
200
+ onSuspend?: ReactEventHandler<HTMLDivElement> | undefined;
201
+ onSuspendCapture?: ReactEventHandler<HTMLDivElement> | undefined;
202
+ onTimeUpdate?: ReactEventHandler<HTMLDivElement> | undefined;
203
+ onTimeUpdateCapture?: ReactEventHandler<HTMLDivElement> | undefined;
204
+ onVolumeChange?: ReactEventHandler<HTMLDivElement> | undefined;
205
+ onVolumeChangeCapture?: ReactEventHandler<HTMLDivElement> | undefined;
206
+ onWaiting?: ReactEventHandler<HTMLDivElement> | undefined;
207
+ onWaitingCapture?: ReactEventHandler<HTMLDivElement> | undefined;
208
+ onAuxClick?: MouseEventHandler<HTMLDivElement> | undefined;
209
+ onAuxClickCapture?: MouseEventHandler<HTMLDivElement> | undefined;
210
+ onClick?: MouseEventHandler<HTMLDivElement> | undefined;
211
+ onClickCapture?: MouseEventHandler<HTMLDivElement> | undefined;
212
+ onContextMenu?: MouseEventHandler<HTMLDivElement> | undefined;
213
+ onContextMenuCapture?: MouseEventHandler<HTMLDivElement> | undefined;
214
+ onDoubleClick?: MouseEventHandler<HTMLDivElement> | undefined;
215
+ onDoubleClickCapture?: MouseEventHandler<HTMLDivElement> | undefined;
216
+ onDrag?: DragEventHandler<HTMLDivElement> | undefined;
217
+ onDragCapture?: DragEventHandler<HTMLDivElement> | undefined;
218
+ onDragEnd?: DragEventHandler<HTMLDivElement> | undefined;
219
+ onDragEndCapture?: DragEventHandler<HTMLDivElement> | undefined;
220
+ onDragEnter?: DragEventHandler<HTMLDivElement> | undefined;
221
+ onDragEnterCapture?: DragEventHandler<HTMLDivElement> | undefined;
222
+ onDragExit?: DragEventHandler<HTMLDivElement> | undefined;
223
+ onDragExitCapture?: DragEventHandler<HTMLDivElement> | undefined;
224
+ onDragLeave?: DragEventHandler<HTMLDivElement> | undefined;
225
+ onDragLeaveCapture?: DragEventHandler<HTMLDivElement> | undefined;
226
+ onDragOver?: DragEventHandler<HTMLDivElement> | undefined;
227
+ onDragOverCapture?: DragEventHandler<HTMLDivElement> | undefined;
228
+ onDragStart?: DragEventHandler<HTMLDivElement> | undefined;
229
+ onDragStartCapture?: DragEventHandler<HTMLDivElement> | undefined;
230
+ onDrop?: DragEventHandler<HTMLDivElement> | undefined;
231
+ onDropCapture?: DragEventHandler<HTMLDivElement> | undefined;
232
+ onMouseDown?: MouseEventHandler<HTMLDivElement> | undefined;
233
+ onMouseDownCapture?: MouseEventHandler<HTMLDivElement> | undefined;
234
+ onMouseEnter?: MouseEventHandler<HTMLDivElement> | undefined;
235
+ onMouseLeave?: MouseEventHandler<HTMLDivElement> | undefined;
236
+ onMouseMove?: MouseEventHandler<HTMLDivElement> | undefined;
237
+ onMouseMoveCapture?: MouseEventHandler<HTMLDivElement> | undefined;
238
+ onMouseOut?: MouseEventHandler<HTMLDivElement> | undefined;
239
+ onMouseOutCapture?: MouseEventHandler<HTMLDivElement> | undefined;
240
+ onMouseOver?: MouseEventHandler<HTMLDivElement> | undefined;
241
+ onMouseOverCapture?: MouseEventHandler<HTMLDivElement> | undefined;
242
+ onMouseUp?: MouseEventHandler<HTMLDivElement> | undefined;
243
+ onMouseUpCapture?: MouseEventHandler<HTMLDivElement> | undefined;
244
+ onSelect?: ReactEventHandler<HTMLDivElement> | undefined;
245
+ onSelectCapture?: ReactEventHandler<HTMLDivElement> | undefined;
246
+ onTouchCancel?: TouchEventHandler<HTMLDivElement> | undefined;
247
+ onTouchCancelCapture?: TouchEventHandler<HTMLDivElement> | undefined;
248
+ onTouchEnd?: TouchEventHandler<HTMLDivElement> | undefined;
249
+ onTouchEndCapture?: TouchEventHandler<HTMLDivElement> | undefined;
250
+ onTouchMove?: TouchEventHandler<HTMLDivElement> | undefined;
251
+ onTouchMoveCapture?: TouchEventHandler<HTMLDivElement> | undefined;
252
+ onTouchStart?: TouchEventHandler<HTMLDivElement> | undefined;
253
+ onTouchStartCapture?: TouchEventHandler<HTMLDivElement> | undefined;
254
+ onPointerDown?: PointerEventHandler<HTMLDivElement> | undefined;
255
+ onPointerDownCapture?: PointerEventHandler<HTMLDivElement> | undefined;
256
+ onPointerMove?: PointerEventHandler<HTMLDivElement> | undefined;
257
+ onPointerMoveCapture?: PointerEventHandler<HTMLDivElement> | undefined;
258
+ onPointerUp?: PointerEventHandler<HTMLDivElement> | undefined;
259
+ onPointerUpCapture?: PointerEventHandler<HTMLDivElement> | undefined;
260
+ onPointerCancel?: PointerEventHandler<HTMLDivElement> | undefined;
261
+ onPointerCancelCapture?: PointerEventHandler<HTMLDivElement> | undefined;
262
+ onPointerEnter?: PointerEventHandler<HTMLDivElement> | undefined;
263
+ onPointerLeave?: PointerEventHandler<HTMLDivElement> | undefined;
264
+ onPointerOver?: PointerEventHandler<HTMLDivElement> | undefined;
265
+ onPointerOverCapture?: PointerEventHandler<HTMLDivElement> | undefined;
266
+ onPointerOut?: PointerEventHandler<HTMLDivElement> | undefined;
267
+ onPointerOutCapture?: PointerEventHandler<HTMLDivElement> | undefined;
268
+ onGotPointerCapture?: PointerEventHandler<HTMLDivElement> | undefined;
269
+ onGotPointerCaptureCapture?: PointerEventHandler<HTMLDivElement> | undefined;
270
+ onLostPointerCapture?: PointerEventHandler<HTMLDivElement> | undefined;
271
+ onLostPointerCaptureCapture?: PointerEventHandler<HTMLDivElement> | undefined;
272
+ onScroll?: UIEventHandler<HTMLDivElement> | undefined;
273
+ onScrollCapture?: UIEventHandler<HTMLDivElement> | undefined;
274
+ onWheel?: WheelEventHandler<HTMLDivElement> | undefined;
275
+ onWheelCapture?: WheelEventHandler<HTMLDivElement> | undefined;
276
+ onAnimationStart?: AnimationEventHandler<HTMLDivElement> | undefined;
277
+ onAnimationStartCapture?: AnimationEventHandler<HTMLDivElement> | undefined;
278
+ onAnimationEnd?: AnimationEventHandler<HTMLDivElement> | undefined;
279
+ onAnimationEndCapture?: AnimationEventHandler<HTMLDivElement> | undefined;
280
+ onAnimationIteration?: AnimationEventHandler<HTMLDivElement> | undefined;
281
+ onAnimationIterationCapture?: AnimationEventHandler<HTMLDivElement> | undefined;
282
+ onTransitionEnd?: TransitionEventHandler<HTMLDivElement> | undefined;
283
+ onTransitionEndCapture?: TransitionEventHandler<HTMLDivElement> | undefined;
284
+ key?: Key | null | undefined;
285
+ variant?: ("sidebar" | "floating" | "inset") | undefined;
286
+ side?: ("left" | "right") | undefined;
287
+ collapsible?: ("offcanvas" | "icon" | "none") | undefined;
288
+ ref?: LegacyRef<HTMLDivElement> | undefined;
289
+ }>) => import("react/jsx-runtime").JSX.Element)[];
14
290
  };
15
291
  export default meta;
16
292
  type Story = StoryObj<typeof Sidebar>;
@@ -7,6 +7,8 @@ export type SidebarContextProps = {
7
7
  setOpenMobile: (open: boolean) => void;
8
8
  isMobile: boolean;
9
9
  toggleSidebar: () => void;
10
+ hasInset: boolean;
11
+ setHasInset: (hasInset: boolean) => void;
10
12
  };
11
13
  export declare const SidebarContext: React.Context<SidebarContextProps | null>;
12
14
  export declare function useSidebar(): SidebarContextProps;