@wealth-os/design-system 0.1.0 → 0.2.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,3 @@
1
+ /** Explicit visual density; omission preserves each component's legacy sizing. */
2
+ export type ControlDensity = "compact" | "comfortable";
3
+ export declare function controlDensityClass(density?: ControlDensity): "wos-density-compact" | "wos-density-comfortable" | undefined;
@@ -1,3 +1,3 @@
1
1
  import "./styles.css";
2
2
  export { Tabs, TabsList, TabsTrigger, TabsContent, Breadcrumbs, Pagination, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, Sidebar, SidebarHeader, SidebarContent, SidebarGroup, SidebarGroupLabel, SidebarMenu, SidebarMenuItem, SidebarMenuButton, } from "./components/navigation";
3
- export type { BreadcrumbItem, BreadcrumbsProps, PaginationProps, SidebarMenuButtonProps } from "./components/navigation";
3
+ export type { TabsTriggerProps, BreadcrumbItem, BreadcrumbsProps, PaginationProps, SidebarMenuButtonProps } from "./components/navigation";
@@ -1,84 +1,85 @@
1
1
  /* empty css */
2
- import { t as e } from "./utils-CX-Pz5p6.js";
3
- import { t } from "./button-MVZPcSXf.js";
4
- import * as n from "react";
5
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
- import * as a from "@radix-ui/react-tabs";
7
- import * as o from "@radix-ui/react-navigation-menu";
2
+ import { r as e, t } from "./button-yvMc7CT-.js";
3
+ import { t as n } from "./utils-CX-Pz5p6.js";
4
+ import * as r from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import * as o from "@radix-ui/react-tabs";
7
+ import * as s from "@radix-ui/react-navigation-menu";
8
8
  //#region src/components/navigation.tsx
9
- var s = a.Root, c = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.List, {
10
- ref: i,
11
- className: e("inline-flex min-h-9 items-center gap-1 rounded-[var(--control-radius)] bg-surface-subtle p-1 text-secondary-foreground", t),
12
- ...n
9
+ var c = o.Root, l = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(o.List, {
10
+ ref: r,
11
+ className: n("inline-flex max-w-full min-h-9 flex-wrap items-center gap-1 rounded-[var(--control-radius)] bg-surface-subtle p-1 text-secondary-foreground", e),
12
+ ...t
13
13
  }));
14
- c.displayName = "TabsList";
15
- var l = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Trigger, {
16
- ref: i,
17
- className: e("inline-flex min-h-8 items-center justify-center whitespace-nowrap rounded-[3px] px-3 type-control transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary disabled:pointer-events-none disabled:opacity-[var(--state-disabled-opacity)] data-[state=active]:bg-surface data-[state=active]:text-foreground data-[state=active]:shadow-sm", t),
18
- ...n
14
+ l.displayName = "TabsList";
15
+ var u = r.forwardRef(({ className: t, density: r, ...a }, s) => /* @__PURE__ */ i(o.Trigger, {
16
+ ref: s,
17
+ "data-density": r,
18
+ className: n("inline-flex min-h-8 items-center justify-center max-w-full whitespace-normal break-words rounded-[var(--control-radius)] px-3 type-control hover:bg-interaction-hover transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-[var(--state-disabled-opacity)] data-[state=active]:bg-selection-surface data-[state=active]:text-selected data-[state=active]:shadow-sm", e(r), r && "min-h-[var(--wos-control-height)] text-[length:var(--wos-control-font-size)]", t),
19
+ ...a
19
20
  }));
20
- l.displayName = "TabsTrigger";
21
- var u = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Content, {
22
- ref: i,
23
- className: e("mt-3 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary", t),
24
- ...n
21
+ u.displayName = "TabsTrigger";
22
+ var d = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(o.Content, {
23
+ ref: r,
24
+ className: n("mt-3 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring", e),
25
+ ...t
25
26
  }));
26
- u.displayName = "TabsContent";
27
- function d({ items: t, label: n = "Breadcrumb", maxItems: a = 4, className: o, ...s }) {
28
- let c = t.length > a && a >= 3 ? [
29
- ...t.slice(0, 1),
27
+ d.displayName = "TabsContent";
28
+ function f({ items: e, label: t = "Breadcrumb", maxItems: r = 4, className: o, ...s }) {
29
+ let c = e.length > r && r >= 3 ? [
30
+ ...e.slice(0, 1),
30
31
  {
31
32
  label: "…",
32
33
  current: !1
33
34
  },
34
- ...t.slice(-(a - 2))
35
- ] : t;
36
- return /* @__PURE__ */ r("nav", {
37
- "aria-label": n,
38
- className: e("min-w-0", o),
35
+ ...e.slice(-(r - 2))
36
+ ] : e;
37
+ return /* @__PURE__ */ i("nav", {
38
+ "aria-label": t,
39
+ className: n("min-w-0", o),
39
40
  ...s,
40
- children: /* @__PURE__ */ r("ol", {
41
+ children: /* @__PURE__ */ i("ol", {
41
42
  className: "flex min-w-0 flex-wrap items-center gap-1.5 type-caption text-muted-foreground",
42
- children: c.map((t, n) => {
43
- let a = t.current ?? n === c.length - 1;
44
- return /* @__PURE__ */ i("li", {
43
+ children: c.map((e, t) => {
44
+ let r = e.current ?? t === c.length - 1;
45
+ return /* @__PURE__ */ a("li", {
45
46
  className: "flex min-w-0 items-center gap-1.5",
46
- children: [/* @__PURE__ */ r("span", {
47
+ children: [/* @__PURE__ */ i("span", {
47
48
  "aria-hidden": "true",
48
- className: e("shrink-0", n > 0 && ""),
49
- children: n > 0 ? "/" : null
50
- }), t.label === "…" ? /* @__PURE__ */ r("span", {
49
+ className: n("shrink-0", t > 0 && ""),
50
+ children: t > 0 ? "/" : null
51
+ }), e.label === "…" ? /* @__PURE__ */ i("span", {
51
52
  "aria-label": "Earlier pages",
52
53
  children: "…"
53
- }) : a ? /* @__PURE__ */ r("span", {
54
+ }) : r ? /* @__PURE__ */ i("span", {
54
55
  "aria-current": "page",
55
56
  className: "truncate font-medium text-foreground",
56
- children: t.label
57
- }) : t.href ? /* @__PURE__ */ r("a", {
58
- href: t.href,
59
- className: "truncate text-secondary-foreground underline-offset-4 hover:text-primary hover:underline",
60
- children: t.label
61
- }) : /* @__PURE__ */ r("span", {
57
+ children: e.label
58
+ }) : e.href ? /* @__PURE__ */ i("a", {
59
+ href: e.href,
60
+ className: "truncate text-secondary-foreground underline-offset-4 hover:text-link-hover hover:underline",
61
+ children: e.label
62
+ }) : /* @__PURE__ */ i("span", {
62
63
  className: "truncate",
63
- children: t.label
64
+ children: e.label
64
65
  })]
65
- }, `${t.label}-${n}`);
66
+ }, `${e.label}-${t}`);
66
67
  })
67
68
  })
68
69
  });
69
70
  }
70
- function f({ page: a, pageCount: o, onPageChange: s, siblingCount: c = 1, label: l = "Pagination", className: u }) {
71
- let d = Math.max(1, Math.floor(o)), f = Math.min(d, Math.max(1, Math.floor(a))), p = /* @__PURE__ */ new Set([1, d]);
71
+ function p({ page: e, pageCount: o, onPageChange: s, siblingCount: c = 1, label: l = "Pagination", className: u }) {
72
+ let d = Math.max(1, Math.floor(o)), f = Math.min(d, Math.max(1, Math.floor(e))), p = /* @__PURE__ */ new Set([1, d]);
72
73
  for (let e = Math.max(1, f - Math.max(0, c)); e <= Math.min(d, f + Math.max(0, c)); e++) p.add(e);
73
74
  let m = [...p].sort((e, t) => e - t);
74
- return /* @__PURE__ */ i("nav", {
75
+ return /* @__PURE__ */ a("nav", {
75
76
  "aria-label": l,
76
- className: e("flex flex-wrap items-center justify-between gap-3", u),
77
- children: [/* @__PURE__ */ i("div", {
77
+ className: n("flex flex-wrap items-center justify-between gap-3", u),
78
+ children: [/* @__PURE__ */ a("div", {
78
79
  className: "flex items-center gap-1",
79
80
  "aria-label": "Page controls",
80
81
  children: [
81
- /* @__PURE__ */ r(t, {
82
+ /* @__PURE__ */ i(t, {
82
83
  variant: "outline",
83
84
  size: "sm",
84
85
  "aria-label": "Go to previous page",
@@ -86,22 +87,23 @@ function f({ page: a, pageCount: o, onPageChange: s, siblingCount: c = 1, label:
86
87
  onClick: () => s(Math.max(1, f - 1)),
87
88
  children: "Previous"
88
89
  }),
89
- /* @__PURE__ */ r("div", {
90
+ /* @__PURE__ */ i("div", {
90
91
  className: "hidden items-center gap-1 sm:flex",
91
- children: m.map((e, a) => /* @__PURE__ */ i(n.Fragment, { children: [a > 0 && m[a - 1] !== e - 1 && /* @__PURE__ */ r("span", {
92
+ children: m.map((e, n) => /* @__PURE__ */ a(r.Fragment, { children: [n > 0 && m[n - 1] !== e - 1 && /* @__PURE__ */ i("span", {
92
93
  className: "px-1 type-caption text-muted-foreground",
93
94
  "aria-hidden": "true",
94
95
  children: "…"
95
- }), /* @__PURE__ */ r(t, {
96
+ }), /* @__PURE__ */ i(t, {
96
97
  variant: e === f ? "secondary" : "ghost",
97
98
  size: "sm",
99
+ className: e === f ? "bg-selected-subtle text-selected" : void 0,
98
100
  "aria-label": `Go to page ${e}`,
99
101
  "aria-current": e === f ? "page" : void 0,
100
102
  onClick: () => s(e),
101
103
  children: e
102
104
  })] }, e))
103
105
  }),
104
- /* @__PURE__ */ r(t, {
106
+ /* @__PURE__ */ i(t, {
105
107
  variant: "outline",
106
108
  size: "sm",
107
109
  "aria-label": "Go to next page",
@@ -110,7 +112,7 @@ function f({ page: a, pageCount: o, onPageChange: s, siblingCount: c = 1, label:
110
112
  children: "Next"
111
113
  })
112
114
  ]
113
- }), /* @__PURE__ */ i("span", {
115
+ }), /* @__PURE__ */ a("span", {
114
116
  className: "type-caption text-muted-foreground",
115
117
  role: "status",
116
118
  "aria-live": "polite",
@@ -123,100 +125,100 @@ function f({ page: a, pageCount: o, onPageChange: s, siblingCount: c = 1, label:
123
125
  })]
124
126
  });
125
127
  }
126
- var p = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.Root, {
127
- ref: i,
128
- className: e("relative z-10 flex max-w-max flex-1 items-center justify-center", t),
129
- ...n
128
+ var m = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(s.Root, {
129
+ ref: r,
130
+ className: n("relative z-10 flex max-w-max flex-1 items-center justify-center", e),
131
+ ...t
130
132
  }));
131
- p.displayName = "NavigationMenu";
132
- var m = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.List, {
133
- ref: i,
134
- className: e("group flex list-none items-center gap-1", t),
135
- ...n
133
+ m.displayName = "NavigationMenu";
134
+ var h = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(s.List, {
135
+ ref: r,
136
+ className: n("group flex list-none items-center gap-1", e),
137
+ ...t
136
138
  }));
137
- m.displayName = "NavigationMenuList";
138
- var h = o.Item, g = n.forwardRef(({ className: t, children: n, ...a }, s) => /* @__PURE__ */ i(o.Trigger, {
139
- ref: s,
140
- className: e("group inline-flex min-h-9 items-center justify-center gap-1 rounded-[var(--control-radius)] px-3 type-control text-secondary-foreground hover:bg-surface-subtle hover:text-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary disabled:pointer-events-none disabled:opacity-50", t),
141
- ...a,
142
- children: [n, /* @__PURE__ */ r("span", {
139
+ h.displayName = "NavigationMenuList";
140
+ var g = s.Item, _ = r.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ a(s.Trigger, {
141
+ ref: o,
142
+ className: n("group inline-flex min-h-9 items-center justify-center gap-1 rounded-[var(--control-radius)] px-3 type-control text-secondary-foreground hover:bg-interaction-hover hover:text-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-[var(--state-disabled-opacity)]", e),
143
+ ...r,
144
+ children: [t, /* @__PURE__ */ i("span", {
143
145
  "aria-hidden": "true",
144
146
  className: "text-[10px]",
145
147
  children: "⌄"
146
148
  })]
147
149
  }));
148
- g.displayName = "NavigationMenuTrigger";
149
- var _ = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.Content, {
150
- ref: i,
151
- className: e("absolute left-0 top-0 w-full rounded-[var(--surface-radius)] border border-border bg-surface p-3 shadow-[var(--surface-shadow)] md:w-auto data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out", t),
152
- ...n
150
+ _.displayName = "NavigationMenuTrigger";
151
+ var v = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(s.Content, {
152
+ ref: r,
153
+ className: n("absolute left-0 top-0 w-full rounded-[var(--surface-radius)] border border-border bg-surface p-3 shadow-[var(--surface-shadow)] md:w-auto data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out", e),
154
+ ...t
153
155
  }));
154
- _.displayName = "NavigationMenuContent";
155
- var v = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.Link, {
156
- ref: i,
157
- className: e("block rounded-[var(--control-radius)] px-3 py-2 type-control text-secondary-foreground outline-none hover:bg-surface-subtle hover:text-foreground focus-visible:ring-2 focus-visible:ring-primary", t),
158
- ...n
156
+ v.displayName = "NavigationMenuContent";
157
+ var y = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(s.Link, {
158
+ ref: r,
159
+ className: n("block rounded-[var(--control-radius)] px-3 py-2 type-control text-secondary-foreground outline-none hover:bg-interaction-hover hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring", e),
160
+ ...t
159
161
  }));
160
- v.displayName = "NavigationMenuLink";
161
- var y = o.Indicator, b = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("div", {
162
+ y.displayName = "NavigationMenuLink";
163
+ var b = s.Indicator, x = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i("div", {
162
164
  className: "absolute left-0 top-full flex justify-center",
163
- children: /* @__PURE__ */ r(o.Viewport, {
164
- ref: i,
165
- className: e("relative mt-2 h-[var(--radix-navigation-menu-viewport-height)] w-full origin-top overflow-hidden rounded-[var(--surface-radius)] border border-border bg-surface shadow-[var(--surface-shadow)] transition-[width,height] duration-[var(--motion-duration-standard)] md:w-[var(--radix-navigation-menu-viewport-width)]", t),
166
- ...n
165
+ children: /* @__PURE__ */ i(s.Viewport, {
166
+ ref: r,
167
+ className: n("relative mt-2 h-[var(--radix-navigation-menu-viewport-height)] w-full origin-top overflow-hidden rounded-[var(--surface-radius)] border border-border bg-surface shadow-[var(--surface-shadow)] transition-[width,height] duration-[var(--motion-duration-standard)] md:w-[var(--radix-navigation-menu-viewport-width)]", e),
168
+ ...t
167
169
  })
168
170
  }));
169
- b.displayName = "NavigationMenuViewport";
170
- var x = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("aside", {
171
- ref: i,
172
- className: e("flex h-full w-[var(--sidebar-width)] flex-col border-r border-border-subtle bg-surface text-sidebar-foreground", t),
173
- ...n
171
+ x.displayName = "NavigationMenuViewport";
172
+ var S = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i("aside", {
173
+ ref: r,
174
+ className: n("flex h-full w-[var(--sidebar-width)] flex-col border-r border-border-subtle bg-surface text-sidebar-foreground", e),
175
+ ...t
174
176
  }));
175
- x.displayName = "Sidebar";
176
- function S({ className: t, ...n }) {
177
- return /* @__PURE__ */ r("div", {
178
- className: e("flex min-h-14 items-center px-4", t),
179
- ...n
177
+ S.displayName = "Sidebar";
178
+ function C({ className: e, ...t }) {
179
+ return /* @__PURE__ */ i("div", {
180
+ className: n("flex min-h-14 items-center px-4", e),
181
+ ...t
180
182
  });
181
183
  }
182
- function C({ className: t, ...n }) {
183
- return /* @__PURE__ */ r("div", {
184
- className: e("flex-1 overflow-y-auto px-3 py-3", t),
185
- ...n
184
+ function w({ className: e, ...t }) {
185
+ return /* @__PURE__ */ i("div", {
186
+ className: n("flex-1 overflow-y-auto px-3 py-3", e),
187
+ ...t
186
188
  });
187
189
  }
188
- function w({ className: t, ...n }) {
189
- return /* @__PURE__ */ r("section", {
190
- className: e("mb-4", t),
191
- ...n
190
+ function T({ className: e, ...t }) {
191
+ return /* @__PURE__ */ i("section", {
192
+ className: n("mb-4", e),
193
+ ...t
192
194
  });
193
195
  }
194
- function T({ className: t, ...n }) {
195
- return /* @__PURE__ */ r("h2", {
196
- className: e("px-2 py-1 type-eyebrow text-muted-foreground", t),
197
- ...n
196
+ function E({ className: e, ...t }) {
197
+ return /* @__PURE__ */ i("h2", {
198
+ className: n("px-2 py-1 type-eyebrow text-muted-foreground", e),
199
+ ...t
198
200
  });
199
201
  }
200
- function E({ className: t, ...n }) {
201
- return /* @__PURE__ */ r("ul", {
202
- className: e("m-0 list-none space-y-1 p-0", t),
203
- ...n
202
+ function D({ className: e, ...t }) {
203
+ return /* @__PURE__ */ i("ul", {
204
+ className: n("m-0 list-none space-y-1 p-0", e),
205
+ ...t
204
206
  });
205
207
  }
206
- function D({ className: t, ...n }) {
207
- return /* @__PURE__ */ r("li", {
208
- className: e("min-w-0", t),
209
- ...n
208
+ function O({ className: e, ...t }) {
209
+ return /* @__PURE__ */ i("li", {
210
+ className: n("min-w-0", e),
211
+ ...t
210
212
  });
211
213
  }
212
- var O = n.forwardRef(({ asChild: n = !1, active: i = !1, className: a, ...o }, s) => /* @__PURE__ */ r(t, {
214
+ var k = r.forwardRef(({ asChild: e = !1, active: r = !1, className: a, ...o }, s) => /* @__PURE__ */ i(t, {
213
215
  ref: s,
214
- asChild: n,
216
+ asChild: e,
215
217
  variant: "ghost",
216
- className: e("h-9 w-full justify-start px-2.5", i && "bg-accent text-accent-foreground", a),
217
- "aria-current": i ? "page" : void 0,
218
+ className: n("h-9 w-full justify-start px-2.5", r && "bg-selected-subtle text-selected", a),
219
+ "aria-current": r ? "page" : void 0,
218
220
  ...o
219
221
  }));
220
- O.displayName = "SidebarMenuButton";
222
+ k.displayName = "SidebarMenuButton";
221
223
  //#endregion
222
- export { d as Breadcrumbs, p as NavigationMenu, _ as NavigationMenuContent, y as NavigationMenuIndicator, h as NavigationMenuItem, v as NavigationMenuLink, m as NavigationMenuList, g as NavigationMenuTrigger, b as NavigationMenuViewport, f as Pagination, x as Sidebar, C as SidebarContent, w as SidebarGroup, T as SidebarGroupLabel, S as SidebarHeader, E as SidebarMenu, O as SidebarMenuButton, D as SidebarMenuItem, s as Tabs, u as TabsContent, c as TabsList, l as TabsTrigger };
224
+ export { f as Breadcrumbs, m as NavigationMenu, v as NavigationMenuContent, b as NavigationMenuIndicator, g as NavigationMenuItem, y as NavigationMenuLink, h as NavigationMenuList, _ as NavigationMenuTrigger, x as NavigationMenuViewport, p as Pagination, S as Sidebar, w as SidebarContent, T as SidebarGroup, E as SidebarGroupLabel, C as SidebarHeader, D as SidebarMenu, k as SidebarMenuButton, O as SidebarMenuItem, c as Tabs, d as TabsContent, l as TabsList, u as TabsTrigger };
@@ -7,7 +7,7 @@ var a = n("wos-badge", {
7
7
  variants: { status: {
8
8
  neutral: "",
9
9
  confirmed: "",
10
- estimated: "border-primary/20 bg-accent-subtle text-accent-foreground",
10
+ estimated: "border-info-border/20 bg-info-subtle text-info",
11
11
  stale: "border-warning/25 bg-warning-subtle text-warning",
12
12
  warning: "border-warning/25 bg-warning-subtle text-warning",
13
13
  success: "border-success/25 bg-success-subtle text-success",
@@ -29,7 +29,7 @@ o.displayName = "StatusBadge";
29
29
  //#region src/components/notice.tsx
30
30
  var s = n("rounded-[var(--control-radius)] border px-4 py-3 text-[length:var(--type-size-control)] leading-[1.4]", {
31
31
  variants: { variant: {
32
- info: "border-border bg-accent-subtle text-accent-foreground",
32
+ info: "border-border bg-info-subtle text-info",
33
33
  success: "border-success/25 bg-success-subtle text-success",
34
34
  warning: "border-warning/25 bg-warning-subtle text-warning",
35
35
  error: "border-destructive/25 bg-destructive-subtle text-destructive"
@@ -7,7 +7,7 @@ import * as o from "@radix-ui/react-popover";
7
7
  import * as s from "@radix-ui/react-tooltip";
8
8
  import * as c from "@radix-ui/react-dropdown-menu";
9
9
  //#region src/components/overlays.tsx
10
- var l = "fixed inset-0 z-50 bg-foreground/35 data-[state=open]:animate-in data-[state=closed]:animate-out", u = "z-50 border border-border bg-surface text-foreground shadow-[var(--surface-shadow)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out", d = i.Root, ee = i.Trigger, f = i.Portal, p = i.Close, m = t.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ n(i.Overlay, {
10
+ var l = "fixed inset-0 z-50 bg-overlay-backdrop data-[state=open]:animate-in data-[state=closed]:animate-out", u = "z-50 border border-surface-border bg-surface text-foreground shadow-[var(--surface-shadow)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out", d = i.Root, ee = i.Trigger, f = i.Portal, p = i.Close, m = t.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ n(i.Overlay, {
11
11
  ref: a,
12
12
  "data-wos-overlay": "backdrop",
13
13
  className: e(l, t),
@@ -85,13 +85,13 @@ var O = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Descript
85
85
  O.displayName = "AlertDialogDescription";
86
86
  var k = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Cancel, {
87
87
  ref: i,
88
- className: e("w-full rounded-[var(--control-radius)] border border-border bg-surface px-3 py-2 type-control text-secondary-foreground hover:bg-surface-subtle focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary sm:w-auto", t),
88
+ className: e("w-full rounded-[var(--control-radius)] border border-border bg-surface px-3 py-2 type-control text-secondary-foreground hover:bg-interaction-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring sm:w-auto", t),
89
89
  ...r
90
90
  }));
91
91
  k.displayName = "AlertDialogCancel";
92
92
  var A = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Action, {
93
93
  ref: i,
94
- className: e("w-full rounded-[var(--control-radius)] bg-destructive px-3 py-2 type-control font-medium text-destructive-foreground hover:opacity-90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary sm:w-auto", t),
94
+ className: e("w-full rounded-[var(--control-radius)] bg-destructive px-3 py-2 type-control font-medium text-destructive-foreground hover:opacity-90 focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring sm:w-auto", t),
95
95
  ...r
96
96
  }));
97
97
  A.displayName = "AlertDialogAction";
@@ -151,13 +151,13 @@ var ue = c.Group, I = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ *
151
151
  I.displayName = "DropdownMenuLabel";
152
152
  var L = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(c.Item, {
153
153
  ref: i,
154
- className: e("relative flex cursor-default select-none items-center rounded-[3px] px-2 py-1.5 type-control outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
154
+ className: e("relative flex cursor-default select-none items-center rounded-[var(--control-radius-inner)] px-2 py-1.5 type-control outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-[-2px] focus:bg-selected-subtle focus:text-selected data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
155
155
  ...r
156
156
  }));
157
157
  L.displayName = "DropdownMenuItem";
158
158
  var R = t.forwardRef(({ className: t, children: i, ...a }, o) => /* @__PURE__ */ r(c.CheckboxItem, {
159
159
  ref: o,
160
- className: e("relative flex cursor-default select-none items-center rounded-[3px] py-1.5 pl-8 pr-2 type-control outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
160
+ className: e("relative flex cursor-default select-none items-center rounded-[var(--control-radius-inner)] py-1.5 pl-8 pr-2 type-control outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-[-2px] focus:bg-selected-subtle focus:text-selected data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
161
161
  ...a,
162
162
  children: [/* @__PURE__ */ n("span", {
163
163
  "aria-hidden": "true",
@@ -168,7 +168,7 @@ var R = t.forwardRef(({ className: t, children: i, ...a }, o) => /* @__PURE__ */
168
168
  R.displayName = "DropdownMenuCheckboxItem";
169
169
  var z = c.RadioGroup, B = t.forwardRef(({ className: t, children: i, ...a }, o) => /* @__PURE__ */ r(c.RadioItem, {
170
170
  ref: o,
171
- className: e("relative flex cursor-default select-none items-center rounded-[3px] py-1.5 pl-8 pr-2 type-control outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
171
+ className: e("relative flex cursor-default select-none items-center rounded-[var(--control-radius-inner)] py-1.5 pl-8 pr-2 type-control outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-[-2px] focus:bg-selected-subtle focus:text-selected data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
172
172
  ...a,
173
173
  children: [/* @__PURE__ */ n("span", {
174
174
  "aria-hidden": "true",
@@ -191,7 +191,7 @@ function H({ className: t, ...r }) {
191
191
  }
192
192
  var de = c.Sub, U = t.forwardRef(({ className: t, children: i, ...a }, o) => /* @__PURE__ */ r(c.SubTrigger, {
193
193
  ref: o,
194
- className: e("flex cursor-default select-none items-center rounded-[3px] px-2 py-1.5 type-control outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
194
+ className: e("flex cursor-default select-none items-center rounded-[var(--control-radius-inner)] px-2 py-1.5 type-control outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-[-2px] focus:bg-selected-subtle focus:text-selected data-[state=open]:bg-selected-subtle data-[state=open]:text-selected data-[disabled]:pointer-events-none data-[disabled]:opacity-[var(--state-disabled-opacity)]", t),
195
195
  ...a,
196
196
  children: [i, /* @__PURE__ */ n("span", {
197
197
  "aria-hidden": "true",
package/dist/overlays.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* empty css */
2
- export { t as AlertDialog, n as AlertDialogAction, r as AlertDialogCancel, i as AlertDialogContent, a as AlertDialogDescription, o as AlertDialogFooter, s as AlertDialogHeader, c as AlertDialogOverlay, l as AlertDialogPortal, u as AlertDialogTitle, d as AlertDialogTrigger, f as ConfirmationDialog, p as Dialog, m as DialogClose, h as DialogContent, g as DialogDescription, _ as DialogFooter, v as DialogHeader, y as DialogOverlay, b as DialogPortal, x as DialogTitle, S as DialogTrigger, C as Drawer, w as DrawerClose, T as DrawerContent, E as DrawerDescription, D as DrawerFooter, O as DrawerHeader, k as DrawerTitle, A as DrawerTrigger, j as DropdownMenu, M as DropdownMenuCheckboxItem, N as DropdownMenuContent, P as DropdownMenuGroup, F as DropdownMenuItem, I as DropdownMenuLabel, L as DropdownMenuPortal, R as DropdownMenuRadioGroup, z as DropdownMenuRadioItem, B as DropdownMenuSeparator, V as DropdownMenuShortcut, H as DropdownMenuSub, U as DropdownMenuSubContent, W as DropdownMenuSubTrigger, G as DropdownMenuTrigger, K as Popover, q as PopoverAnchor, J as PopoverClose, Y as PopoverContent, X as PopoverTrigger, Z as Sheet, Q as SheetClose, $ as SheetContent, et as SheetDescription, tt as SheetFooter, nt as SheetHeader, rt as SheetTitle, it as SheetTrigger, at as Tooltip, ot as TooltipContent, st as TooltipProvider, ct as TooltipTrigger } from "./overlays-9ArfwHJo.js";
2
+ export { t as AlertDialog, n as AlertDialogAction, r as AlertDialogCancel, i as AlertDialogContent, a as AlertDialogDescription, o as AlertDialogFooter, s as AlertDialogHeader, c as AlertDialogOverlay, l as AlertDialogPortal, u as AlertDialogTitle, d as AlertDialogTrigger, f as ConfirmationDialog, p as Dialog, m as DialogClose, h as DialogContent, g as DialogDescription, _ as DialogFooter, v as DialogHeader, y as DialogOverlay, b as DialogPortal, x as DialogTitle, S as DialogTrigger, C as Drawer, w as DrawerClose, T as DrawerContent, E as DrawerDescription, D as DrawerFooter, O as DrawerHeader, k as DrawerTitle, A as DrawerTrigger, j as DropdownMenu, M as DropdownMenuCheckboxItem, N as DropdownMenuContent, P as DropdownMenuGroup, F as DropdownMenuItem, I as DropdownMenuLabel, L as DropdownMenuPortal, R as DropdownMenuRadioGroup, z as DropdownMenuRadioItem, B as DropdownMenuSeparator, V as DropdownMenuShortcut, H as DropdownMenuSub, U as DropdownMenuSubContent, W as DropdownMenuSubTrigger, G as DropdownMenuTrigger, K as Popover, q as PopoverAnchor, J as PopoverClose, Y as PopoverContent, X as PopoverTrigger, Z as Sheet, Q as SheetClose, $ as SheetContent, et as SheetDescription, tt as SheetFooter, nt as SheetHeader, rt as SheetTitle, it as SheetTrigger, at as Tooltip, ot as TooltipContent, st as TooltipProvider, ct as TooltipTrigger } from "./overlays-BleXRtz6.js";