@wealth-os/design-system 0.0.0-stage → 0.1.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.
Files changed (60) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +81 -2
  3. package/dist/button-MVZPcSXf.js +41 -0
  4. package/dist/charts.d.ts +138 -0
  5. package/dist/charts.js +712 -0
  6. package/dist/command-menu.d.ts +3 -0
  7. package/dist/command-menu.js +41 -0
  8. package/dist/components/advanced-controls.d.ts +138 -0
  9. package/dist/components/badge.d.ts +9 -0
  10. package/dist/components/button-group.d.ts +15 -0
  11. package/dist/components/button.d.ts +11 -0
  12. package/dist/components/command-menu.d.ts +42 -0
  13. package/dist/components/data-display.d.ts +100 -0
  14. package/dist/components/data-table.d.ts +113 -0
  15. package/dist/components/date-input.d.ts +34 -0
  16. package/dist/components/date-range-picker.d.ts +21 -0
  17. package/dist/components/field.d.ts +18 -0
  18. package/dist/components/financial.d.ts +83 -0
  19. package/dist/components/form.d.ts +8 -0
  20. package/dist/components/icon-button.d.ts +11 -0
  21. package/dist/components/icons.d.ts +9 -0
  22. package/dist/components/navigation.d.ts +47 -0
  23. package/dist/components/notice.d.ts +11 -0
  24. package/dist/components/number-input.d.ts +42 -0
  25. package/dist/components/overlays.d.ts +91 -0
  26. package/dist/components/select-menu.d.ts +25 -0
  27. package/dist/components/select.d.ts +21 -0
  28. package/dist/components/status-badge.d.ts +9 -0
  29. package/dist/components/surface.d.ts +15 -0
  30. package/dist/components/text-input.d.ts +6 -0
  31. package/dist/components/textarea.d.ts +5 -0
  32. package/dist/components/validation-message.d.ts +8 -0
  33. package/dist/data-display-BA7t1E4G.js +278 -0
  34. package/dist/data-table.d.ts +2 -0
  35. package/dist/data-table.js +346 -0
  36. package/dist/financial.d.ts +1 -0
  37. package/dist/financial.js +178 -0
  38. package/dist/form-D3G5306m.js +74 -0
  39. package/dist/forms.d.ts +39 -0
  40. package/dist/forms.js +32 -0
  41. package/dist/index.d.ts +22 -0
  42. package/dist/index.js +1382 -0
  43. package/dist/lib/utils.d.ts +3 -0
  44. package/dist/navigation.d.ts +3 -0
  45. package/dist/navigation.js +222 -0
  46. package/dist/notice-D5u9rkFU.js +49 -0
  47. package/dist/overlays-9ArfwHJo.js +219 -0
  48. package/dist/overlays.d.ts +7 -0
  49. package/dist/overlays.js +2 -0
  50. package/dist/reset.css +16 -0
  51. package/dist/styles.css +3 -0
  52. package/dist/tokens.css +118 -0
  53. package/dist/utils-CX-Pz5p6.js +8 -0
  54. package/docs/accessibility.md +128 -0
  55. package/docs/charts.md +47 -0
  56. package/docs/components.md +242 -0
  57. package/docs/data-table.md +87 -0
  58. package/docs/layout-composition.md +224 -0
  59. package/docs/tokens.md +94 -0
  60. package/package.json +116 -4
@@ -0,0 +1,3 @@
1
+ import { type ClassValue } from "clsx";
2
+ /** Merge Tailwind utility classes while preserving conditional class composition. */
3
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,3 @@
1
+ import "./styles.css";
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";
@@ -0,0 +1,222 @@
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";
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
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
19
+ }));
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
25
+ }));
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),
30
+ {
31
+ label: "…",
32
+ current: !1
33
+ },
34
+ ...t.slice(-(a - 2))
35
+ ] : t;
36
+ return /* @__PURE__ */ r("nav", {
37
+ "aria-label": n,
38
+ className: e("min-w-0", o),
39
+ ...s,
40
+ children: /* @__PURE__ */ r("ol", {
41
+ 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", {
45
+ className: "flex min-w-0 items-center gap-1.5",
46
+ children: [/* @__PURE__ */ r("span", {
47
+ "aria-hidden": "true",
48
+ className: e("shrink-0", n > 0 && ""),
49
+ children: n > 0 ? "/" : null
50
+ }), t.label === "…" ? /* @__PURE__ */ r("span", {
51
+ "aria-label": "Earlier pages",
52
+ children: "…"
53
+ }) : a ? /* @__PURE__ */ r("span", {
54
+ "aria-current": "page",
55
+ 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", {
62
+ className: "truncate",
63
+ children: t.label
64
+ })]
65
+ }, `${t.label}-${n}`);
66
+ })
67
+ })
68
+ });
69
+ }
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]);
72
+ 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
+ let m = [...p].sort((e, t) => e - t);
74
+ return /* @__PURE__ */ i("nav", {
75
+ "aria-label": l,
76
+ className: e("flex flex-wrap items-center justify-between gap-3", u),
77
+ children: [/* @__PURE__ */ i("div", {
78
+ className: "flex items-center gap-1",
79
+ "aria-label": "Page controls",
80
+ children: [
81
+ /* @__PURE__ */ r(t, {
82
+ variant: "outline",
83
+ size: "sm",
84
+ "aria-label": "Go to previous page",
85
+ disabled: f <= 1,
86
+ onClick: () => s(Math.max(1, f - 1)),
87
+ children: "Previous"
88
+ }),
89
+ /* @__PURE__ */ r("div", {
90
+ 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
+ className: "px-1 type-caption text-muted-foreground",
93
+ "aria-hidden": "true",
94
+ children: "…"
95
+ }), /* @__PURE__ */ r(t, {
96
+ variant: e === f ? "secondary" : "ghost",
97
+ size: "sm",
98
+ "aria-label": `Go to page ${e}`,
99
+ "aria-current": e === f ? "page" : void 0,
100
+ onClick: () => s(e),
101
+ children: e
102
+ })] }, e))
103
+ }),
104
+ /* @__PURE__ */ r(t, {
105
+ variant: "outline",
106
+ size: "sm",
107
+ "aria-label": "Go to next page",
108
+ disabled: f >= d,
109
+ onClick: () => s(Math.min(d, f + 1)),
110
+ children: "Next"
111
+ })
112
+ ]
113
+ }), /* @__PURE__ */ i("span", {
114
+ className: "type-caption text-muted-foreground",
115
+ role: "status",
116
+ "aria-live": "polite",
117
+ children: [
118
+ "Page ",
119
+ f,
120
+ " of ",
121
+ d
122
+ ]
123
+ })]
124
+ });
125
+ }
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
130
+ }));
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
136
+ }));
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", {
143
+ "aria-hidden": "true",
144
+ className: "text-[10px]",
145
+ children: "⌄"
146
+ })]
147
+ }));
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
153
+ }));
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
159
+ }));
160
+ v.displayName = "NavigationMenuLink";
161
+ var y = o.Indicator, b = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("div", {
162
+ 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
167
+ })
168
+ }));
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
174
+ }));
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
180
+ });
181
+ }
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
186
+ });
187
+ }
188
+ function w({ className: t, ...n }) {
189
+ return /* @__PURE__ */ r("section", {
190
+ className: e("mb-4", t),
191
+ ...n
192
+ });
193
+ }
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
198
+ });
199
+ }
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
204
+ });
205
+ }
206
+ function D({ className: t, ...n }) {
207
+ return /* @__PURE__ */ r("li", {
208
+ className: e("min-w-0", t),
209
+ ...n
210
+ });
211
+ }
212
+ var O = n.forwardRef(({ asChild: n = !1, active: i = !1, className: a, ...o }, s) => /* @__PURE__ */ r(t, {
213
+ ref: s,
214
+ asChild: n,
215
+ 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
+ ...o
219
+ }));
220
+ O.displayName = "SidebarMenuButton";
221
+ //#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 };
@@ -0,0 +1,49 @@
1
+ import { t as e } from "./utils-CX-Pz5p6.js";
2
+ import * as t from "react";
3
+ import { cva as n } from "class-variance-authority";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/components/status-badge.tsx
6
+ var a = n("wos-badge", {
7
+ variants: { status: {
8
+ neutral: "",
9
+ confirmed: "",
10
+ estimated: "border-primary/20 bg-accent-subtle text-accent-foreground",
11
+ stale: "border-warning/25 bg-warning-subtle text-warning",
12
+ warning: "border-warning/25 bg-warning-subtle text-warning",
13
+ success: "border-success/25 bg-success-subtle text-success",
14
+ error: "border-destructive/25 bg-destructive-subtle text-destructive"
15
+ } },
16
+ defaultVariants: { status: "neutral" }
17
+ }), o = t.forwardRef(({ className: t, status: n, children: i, ...o }, s) => {
18
+ if (!i.trim()) throw Error("StatusBadge requires non-empty status text.");
19
+ return /* @__PURE__ */ r("span", {
20
+ ref: s,
21
+ className: e(a({ status: n }), t),
22
+ "data-status": n,
23
+ ...o,
24
+ children: i
25
+ });
26
+ });
27
+ o.displayName = "StatusBadge";
28
+ //#endregion
29
+ //#region src/components/notice.tsx
30
+ var s = n("rounded-[var(--control-radius)] border px-4 py-3 text-[length:var(--type-size-control)] leading-[1.4]", {
31
+ variants: { variant: {
32
+ info: "border-border bg-accent-subtle text-accent-foreground",
33
+ success: "border-success/25 bg-success-subtle text-success",
34
+ warning: "border-warning/25 bg-warning-subtle text-warning",
35
+ error: "border-destructive/25 bg-destructive-subtle text-destructive"
36
+ } },
37
+ defaultVariants: { variant: "info" }
38
+ }), c = t.forwardRef(({ className: t, variant: n = "info", title: a, children: o, ...c }, l) => /* @__PURE__ */ i("div", {
39
+ ref: l,
40
+ className: e(s({ variant: n }), t),
41
+ ...c,
42
+ children: [a && /* @__PURE__ */ r("p", {
43
+ className: "mb-1 font-medium",
44
+ children: a
45
+ }), o]
46
+ }));
47
+ c.displayName = "Notice";
48
+ //#endregion
49
+ export { o as n, c as t };
@@ -0,0 +1,219 @@
1
+ import { t as e } from "./utils-CX-Pz5p6.js";
2
+ import * as t from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import * as i from "@radix-ui/react-dialog";
5
+ import * as a from "@radix-ui/react-alert-dialog";
6
+ import * as o from "@radix-ui/react-popover";
7
+ import * as s from "@radix-ui/react-tooltip";
8
+ import * as c from "@radix-ui/react-dropdown-menu";
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, {
11
+ ref: a,
12
+ "data-wos-overlay": "backdrop",
13
+ className: e(l, t),
14
+ ...r
15
+ }));
16
+ m.displayName = "DialogOverlay";
17
+ var h = t.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ r(f, { children: [/* @__PURE__ */ n(m, {}), /* @__PURE__ */ n(i.Content, {
18
+ ref: o,
19
+ "data-wos-overlay": "panel",
20
+ className: e(u, "fixed left-1/2 top-1/2 w-[calc(100vw-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 rounded-[var(--surface-radius)] p-5 sm:p-6 max-h-[calc(100dvh-2rem)] overflow-y-auto overscroll-contain", t),
21
+ ...a
22
+ })] }));
23
+ h.displayName = "DialogContent";
24
+ function g({ className: t, ...r }) {
25
+ return /* @__PURE__ */ n("div", {
26
+ className: e("flex flex-col gap-1.5 text-left", t),
27
+ ...r
28
+ });
29
+ }
30
+ function _({ className: t, ...r }) {
31
+ return /* @__PURE__ */ n("div", {
32
+ className: e("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
33
+ ...r
34
+ });
35
+ }
36
+ var v = t.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ n(i.Title, {
37
+ ref: a,
38
+ className: e("type-subsection font-medium text-foreground", t),
39
+ ...r
40
+ }));
41
+ v.displayName = "DialogTitle";
42
+ var y = t.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ n(i.Description, {
43
+ ref: a,
44
+ className: e("type-supporting text-muted-foreground", t),
45
+ ...r
46
+ }));
47
+ y.displayName = "DialogDescription";
48
+ var b = a.Root, x = a.Trigger, S = a.Portal, C = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Overlay, {
49
+ ref: i,
50
+ "data-wos-overlay": "backdrop",
51
+ className: e(l, t),
52
+ ...r
53
+ }));
54
+ C.displayName = "AlertDialogOverlay";
55
+ var w = t.forwardRef(({ className: t, ...i }, o) => /* @__PURE__ */ r(S, { children: [/* @__PURE__ */ n(C, {}), /* @__PURE__ */ n(a.Content, {
56
+ ref: o,
57
+ "data-wos-overlay": "panel",
58
+ className: e(u, "fixed left-1/2 top-1/2 w-[calc(100vw-2rem)] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-[var(--surface-radius)] p-5 sm:p-6 max-h-[calc(100dvh-2rem)] overflow-y-auto", t),
59
+ ...i
60
+ })] }));
61
+ w.displayName = "AlertDialogContent";
62
+ function T({ className: t, ...r }) {
63
+ return /* @__PURE__ */ n("div", {
64
+ className: e("flex flex-col gap-1.5 text-left", t),
65
+ ...r
66
+ });
67
+ }
68
+ function E({ className: t, ...r }) {
69
+ return /* @__PURE__ */ n("div", {
70
+ className: e("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
71
+ ...r
72
+ });
73
+ }
74
+ var D = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Title, {
75
+ ref: i,
76
+ className: e("type-subsection font-medium", t),
77
+ ...r
78
+ }));
79
+ D.displayName = "AlertDialogTitle";
80
+ var O = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Description, {
81
+ ref: i,
82
+ className: e("type-supporting text-muted-foreground", t),
83
+ ...r
84
+ }));
85
+ O.displayName = "AlertDialogDescription";
86
+ var k = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Cancel, {
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),
89
+ ...r
90
+ }));
91
+ k.displayName = "AlertDialogCancel";
92
+ var A = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(a.Action, {
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),
95
+ ...r
96
+ }));
97
+ A.displayName = "AlertDialogAction";
98
+ function te({ open: e, defaultOpen: t, onOpenChange: i, title: a, description: o, confirmLabel: s = "Confirm", cancelLabel: c = "Cancel", destructive: l = !0, onConfirm: u, trigger: d }) {
99
+ return /* @__PURE__ */ r(b, {
100
+ open: e,
101
+ defaultOpen: t,
102
+ onOpenChange: i,
103
+ children: [d && /* @__PURE__ */ n(x, {
104
+ asChild: !0,
105
+ children: d
106
+ }), /* @__PURE__ */ r(w, { children: [/* @__PURE__ */ r(T, { children: [/* @__PURE__ */ n(D, { children: a }), /* @__PURE__ */ n(O, { children: o })] }), /* @__PURE__ */ r(E, { children: [/* @__PURE__ */ n(k, { children: c }), /* @__PURE__ */ n(A, {
107
+ className: l ? void 0 : "bg-primary text-primary-foreground",
108
+ onClick: u,
109
+ children: s
110
+ })] })] })]
111
+ });
112
+ }
113
+ var ne = o.Root, re = o.Trigger, j = o.Anchor, M = o.Close, N = t.forwardRef(({ className: t, sideOffset: r = 6, collisionPadding: i = 12, ...a }, s) => /* @__PURE__ */ n(o.Portal, { children: /* @__PURE__ */ n(o.Content, {
114
+ ref: s,
115
+ "data-wos-overlay": "panel",
116
+ sideOffset: r,
117
+ collisionPadding: i,
118
+ className: e(u, "rounded-[var(--control-radius)] p-4", t),
119
+ ...a
120
+ }) }));
121
+ N.displayName = "PopoverContent";
122
+ function ie({ delayDuration: e = 400, skipDelayDuration: t = 250, ...r }) {
123
+ return /* @__PURE__ */ n(s.Provider, {
124
+ delayDuration: e,
125
+ skipDelayDuration: t,
126
+ ...r
127
+ });
128
+ }
129
+ var ae = s.Root, oe = s.Trigger, P = t.forwardRef(({ className: t, sideOffset: r = 5, ...i }, a) => /* @__PURE__ */ n(s.Portal, { children: /* @__PURE__ */ n(s.Content, {
130
+ ref: a,
131
+ "data-wos-overlay": "panel",
132
+ sideOffset: r,
133
+ className: e("z-50 max-w-[min(20rem,calc(100vw-1.5rem))] rounded-[var(--control-radius)] bg-foreground px-2.5 py-1.5 type-caption text-surface shadow-md", t),
134
+ ...i
135
+ }) }));
136
+ P.displayName = "TooltipContent";
137
+ var se = c.Root, ce = c.Trigger, le = c.Portal, F = t.forwardRef(({ className: t, sideOffset: r = 4, collisionPadding: i = 8, ...a }, o) => /* @__PURE__ */ n(c.Portal, { children: /* @__PURE__ */ n(c.Content, {
138
+ ref: o,
139
+ "data-wos-overlay": "panel",
140
+ sideOffset: r,
141
+ collisionPadding: i,
142
+ className: e(u, "min-w-40 rounded-[var(--control-radius)] p-1.5", t),
143
+ ...a
144
+ }) }));
145
+ F.displayName = "DropdownMenuContent";
146
+ var ue = c.Group, I = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(c.Label, {
147
+ ref: i,
148
+ className: e("px-2 py-1.5 type-caption font-medium text-muted-foreground", t),
149
+ ...r
150
+ }));
151
+ I.displayName = "DropdownMenuLabel";
152
+ var L = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(c.Item, {
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),
155
+ ...r
156
+ }));
157
+ L.displayName = "DropdownMenuItem";
158
+ var R = t.forwardRef(({ className: t, children: i, ...a }, o) => /* @__PURE__ */ r(c.CheckboxItem, {
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),
161
+ ...a,
162
+ children: [/* @__PURE__ */ n("span", {
163
+ "aria-hidden": "true",
164
+ className: "absolute left-2 inline-flex size-3.5 items-center justify-center",
165
+ children: /* @__PURE__ */ n(c.ItemIndicator, { children: "✓" })
166
+ }), i]
167
+ }));
168
+ R.displayName = "DropdownMenuCheckboxItem";
169
+ var z = c.RadioGroup, B = t.forwardRef(({ className: t, children: i, ...a }, o) => /* @__PURE__ */ r(c.RadioItem, {
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),
172
+ ...a,
173
+ children: [/* @__PURE__ */ n("span", {
174
+ "aria-hidden": "true",
175
+ className: "absolute left-2 inline-flex size-3.5 items-center justify-center",
176
+ children: /* @__PURE__ */ n(c.ItemIndicator, { children: "•" })
177
+ }), i]
178
+ }));
179
+ B.displayName = "DropdownMenuRadioItem";
180
+ var V = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n(c.Separator, {
181
+ ref: i,
182
+ className: e("-mx-1 my-1 h-px bg-border-subtle", t),
183
+ ...r
184
+ }));
185
+ V.displayName = "DropdownMenuSeparator";
186
+ function H({ className: t, ...r }) {
187
+ return /* @__PURE__ */ n("span", {
188
+ className: e("ml-auto pl-4 type-metadata tracking-wide text-muted-foreground", t),
189
+ ...r
190
+ });
191
+ }
192
+ var de = c.Sub, U = t.forwardRef(({ className: t, children: i, ...a }, o) => /* @__PURE__ */ r(c.SubTrigger, {
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),
195
+ ...a,
196
+ children: [i, /* @__PURE__ */ n("span", {
197
+ "aria-hidden": "true",
198
+ className: "ml-auto pl-4",
199
+ children: "›"
200
+ })]
201
+ }));
202
+ U.displayName = "DropdownMenuSubTrigger";
203
+ var W = t.forwardRef(({ className: t, sideOffset: r = 4, ...i }, a) => /* @__PURE__ */ n(c.SubContent, {
204
+ ref: a,
205
+ sideOffset: r,
206
+ className: e(u, "min-w-40 rounded-[var(--control-radius)] p-1.5", t),
207
+ ...i
208
+ }));
209
+ W.displayName = "DropdownMenuSubContent";
210
+ var G = i.Root, K = i.Trigger, q = i.Close, J = t.forwardRef(({ className: t, side: a = "right", ...o }, s) => /* @__PURE__ */ r(f, { children: [/* @__PURE__ */ n(m, {}), /* @__PURE__ */ n(i.Content, {
211
+ ref: s,
212
+ "data-wos-overlay": "panel",
213
+ className: e(u, "fixed max-h-[100dvh] overflow-y-auto overscroll-contain p-5 pb-[max(1.25rem,env(safe-area-inset-bottom))]", a === "right" && "inset-y-0 right-0 h-full w-[min(24rem,calc(100vw-1rem))] border-l", a === "left" && "inset-y-0 left-0 h-full w-[min(24rem,calc(100vw-1rem))] border-r", a === "bottom" && "inset-x-0 bottom-0 max-h-[min(85dvh,48rem)] w-full rounded-t-[var(--surface-radius)] border-t pb-[max(1.25rem,env(safe-area-inset-bottom))]", a === "top" && "inset-x-0 top-0 max-h-[min(85dvh,48rem)] w-full rounded-b-[var(--surface-radius)] border-b pt-[max(1.25rem,env(safe-area-inset-top))]", t),
214
+ ...o
215
+ })] }));
216
+ J.displayName = "SheetContent";
217
+ var Y = g, X = _, Z = v, Q = y, fe = G, pe = K, me = J, he = q, ge = Y, $ = X, _e = Z, ve = Q;
218
+ //#endregion
219
+ export { J as $, pe as A, V as B, fe as C, $ as D, ve as E, L as F, ce as G, de as H, I, M as J, ne as K, le as L, R as M, F as N, ge as O, ue as P, q as Q, z as R, ee as S, me as T, W as U, H as V, U as W, re as X, N as Y, G as Z, _, O as a, ae as at, f as b, C as c, oe as ct, x as d, Q as et, te as f, y as g, h, w as i, K as it, se as j, _e as k, S as l, p as m, A as n, Y as nt, E as o, P as ot, d as p, j as q, k as r, Z as rt, T as s, ie as st, b as t, X as tt, D as u, g as v, he as w, v as x, m as y, B as z };
@@ -0,0 +1,7 @@
1
+ import "./styles.css";
2
+ export { Dialog, DialogTrigger, DialogPortal, DialogClose, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from "./components/overlays";
3
+ export type { DialogContentProps } from "./components/overlays";
4
+ export { AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogCancel, AlertDialogAction, ConfirmationDialog, } from "./components/overlays";
5
+ export type { ConfirmationDialogProps } from "./components/overlays";
6
+ export { Popover, PopoverTrigger, PopoverAnchor, PopoverContent, PopoverClose, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, DropdownMenu, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, Sheet, SheetTrigger, SheetContent, SheetClose, SheetHeader, SheetFooter, SheetTitle, SheetDescription, Drawer, DrawerTrigger, DrawerContent, DrawerClose, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, } from "./components/overlays";
7
+ export type { PopoverContentProps, TooltipContentProps, DropdownMenuContentProps, SheetContentProps } from "./components/overlays";
@@ -0,0 +1,2 @@
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";
package/dist/reset.css ADDED
@@ -0,0 +1,16 @@
1
+ /* Optional WealthOS document defaults. This file intentionally excludes Tailwind preflight. */
2
+ @import "./tokens.css";
3
+
4
+ html,
5
+ body,
6
+ #root {
7
+ min-height: 100%;
8
+ }
9
+
10
+ html,
11
+ body {
12
+ background-color: var(--background);
13
+ color: var(--foreground);
14
+ font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
15
+ -webkit-font-smoothing: antialiased;
16
+ }