@wealth-os/design-system 0.0.0-stage → 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.
Files changed (63) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/LICENSE +201 -0
  3. package/README.md +89 -2
  4. package/dist/button-yvMc7CT-.js +47 -0
  5. package/dist/charts.d.ts +138 -0
  6. package/dist/charts.js +712 -0
  7. package/dist/command-menu.d.ts +3 -0
  8. package/dist/command-menu.js +53 -0
  9. package/dist/components/advanced-controls.d.ts +145 -0
  10. package/dist/components/badge.d.ts +9 -0
  11. package/dist/components/button-group.d.ts +15 -0
  12. package/dist/components/button.d.ts +14 -0
  13. package/dist/components/command-menu.d.ts +42 -0
  14. package/dist/components/data-display.d.ts +100 -0
  15. package/dist/components/data-table.d.ts +113 -0
  16. package/dist/components/date-input.d.ts +36 -0
  17. package/dist/components/date-range-picker.d.ts +23 -0
  18. package/dist/components/field.d.ts +18 -0
  19. package/dist/components/financial.d.ts +83 -0
  20. package/dist/components/form.d.ts +8 -0
  21. package/dist/components/icon-button.d.ts +11 -0
  22. package/dist/components/icons.d.ts +9 -0
  23. package/dist/components/navigation.d.ts +53 -0
  24. package/dist/components/notice.d.ts +11 -0
  25. package/dist/components/number-input.d.ts +44 -0
  26. package/dist/components/overlays.d.ts +91 -0
  27. package/dist/components/select-menu.d.ts +27 -0
  28. package/dist/components/select.d.ts +23 -0
  29. package/dist/components/status-badge.d.ts +9 -0
  30. package/dist/components/surface.d.ts +16 -0
  31. package/dist/components/text-input.d.ts +8 -0
  32. package/dist/components/textarea.d.ts +7 -0
  33. package/dist/components/validation-message.d.ts +8 -0
  34. package/dist/data-display-BA7t1E4G.js +278 -0
  35. package/dist/data-table.d.ts +2 -0
  36. package/dist/data-table.js +346 -0
  37. package/dist/financial.d.ts +1 -0
  38. package/dist/financial.js +178 -0
  39. package/dist/form-Csxly6Es.js +74 -0
  40. package/dist/forms.d.ts +39 -0
  41. package/dist/forms.js +32 -0
  42. package/dist/index.d.ts +23 -0
  43. package/dist/index.js +1411 -0
  44. package/dist/lib/control-density.d.ts +3 -0
  45. package/dist/lib/utils.d.ts +3 -0
  46. package/dist/navigation.d.ts +3 -0
  47. package/dist/navigation.js +224 -0
  48. package/dist/notice-jbY9FQu_.js +49 -0
  49. package/dist/overlays-BleXRtz6.js +219 -0
  50. package/dist/overlays.d.ts +7 -0
  51. package/dist/overlays.js +2 -0
  52. package/dist/reset.css +16 -0
  53. package/dist/styles.css +3 -0
  54. package/dist/tokens.css +157 -0
  55. package/dist/utils-CX-Pz5p6.js +8 -0
  56. package/docs/accessibility.md +154 -0
  57. package/docs/charts.md +47 -0
  58. package/docs/components.md +296 -0
  59. package/docs/data-table.md +87 -0
  60. package/docs/layout-composition.md +224 -0
  61. package/docs/migration.md +91 -0
  62. package/docs/tokens.md +170 -0
  63. package/package.json +118 -4
@@ -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;
@@ -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 { TabsTriggerProps, BreadcrumbItem, BreadcrumbsProps, PaginationProps, SidebarMenuButtonProps } from "./components/navigation";
@@ -0,0 +1,224 @@
1
+ /* empty css */
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
+ //#region src/components/navigation.tsx
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
+ }));
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
20
+ }));
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
26
+ }));
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),
31
+ {
32
+ label: "…",
33
+ current: !1
34
+ },
35
+ ...e.slice(-(r - 2))
36
+ ] : e;
37
+ return /* @__PURE__ */ i("nav", {
38
+ "aria-label": t,
39
+ className: n("min-w-0", o),
40
+ ...s,
41
+ children: /* @__PURE__ */ i("ol", {
42
+ className: "flex min-w-0 flex-wrap items-center gap-1.5 type-caption text-muted-foreground",
43
+ children: c.map((e, t) => {
44
+ let r = e.current ?? t === c.length - 1;
45
+ return /* @__PURE__ */ a("li", {
46
+ className: "flex min-w-0 items-center gap-1.5",
47
+ children: [/* @__PURE__ */ i("span", {
48
+ "aria-hidden": "true",
49
+ className: n("shrink-0", t > 0 && ""),
50
+ children: t > 0 ? "/" : null
51
+ }), e.label === "…" ? /* @__PURE__ */ i("span", {
52
+ "aria-label": "Earlier pages",
53
+ children: "…"
54
+ }) : r ? /* @__PURE__ */ i("span", {
55
+ "aria-current": "page",
56
+ className: "truncate font-medium text-foreground",
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", {
63
+ className: "truncate",
64
+ children: e.label
65
+ })]
66
+ }, `${e.label}-${t}`);
67
+ })
68
+ })
69
+ });
70
+ }
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]);
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);
74
+ let m = [...p].sort((e, t) => e - t);
75
+ return /* @__PURE__ */ a("nav", {
76
+ "aria-label": l,
77
+ className: n("flex flex-wrap items-center justify-between gap-3", u),
78
+ children: [/* @__PURE__ */ a("div", {
79
+ className: "flex items-center gap-1",
80
+ "aria-label": "Page controls",
81
+ children: [
82
+ /* @__PURE__ */ i(t, {
83
+ variant: "outline",
84
+ size: "sm",
85
+ "aria-label": "Go to previous page",
86
+ disabled: f <= 1,
87
+ onClick: () => s(Math.max(1, f - 1)),
88
+ children: "Previous"
89
+ }),
90
+ /* @__PURE__ */ i("div", {
91
+ className: "hidden items-center gap-1 sm:flex",
92
+ children: m.map((e, n) => /* @__PURE__ */ a(r.Fragment, { children: [n > 0 && m[n - 1] !== e - 1 && /* @__PURE__ */ i("span", {
93
+ className: "px-1 type-caption text-muted-foreground",
94
+ "aria-hidden": "true",
95
+ children: "…"
96
+ }), /* @__PURE__ */ i(t, {
97
+ variant: e === f ? "secondary" : "ghost",
98
+ size: "sm",
99
+ className: e === f ? "bg-selected-subtle text-selected" : void 0,
100
+ "aria-label": `Go to page ${e}`,
101
+ "aria-current": e === f ? "page" : void 0,
102
+ onClick: () => s(e),
103
+ children: e
104
+ })] }, e))
105
+ }),
106
+ /* @__PURE__ */ i(t, {
107
+ variant: "outline",
108
+ size: "sm",
109
+ "aria-label": "Go to next page",
110
+ disabled: f >= d,
111
+ onClick: () => s(Math.min(d, f + 1)),
112
+ children: "Next"
113
+ })
114
+ ]
115
+ }), /* @__PURE__ */ a("span", {
116
+ className: "type-caption text-muted-foreground",
117
+ role: "status",
118
+ "aria-live": "polite",
119
+ children: [
120
+ "Page ",
121
+ f,
122
+ " of ",
123
+ d
124
+ ]
125
+ })]
126
+ });
127
+ }
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
132
+ }));
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
138
+ }));
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", {
145
+ "aria-hidden": "true",
146
+ className: "text-[10px]",
147
+ children: "⌄"
148
+ })]
149
+ }));
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
155
+ }));
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
161
+ }));
162
+ y.displayName = "NavigationMenuLink";
163
+ var b = s.Indicator, x = r.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i("div", {
164
+ className: "absolute left-0 top-full flex justify-center",
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
169
+ })
170
+ }));
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
176
+ }));
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
182
+ });
183
+ }
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
188
+ });
189
+ }
190
+ function T({ className: e, ...t }) {
191
+ return /* @__PURE__ */ i("section", {
192
+ className: n("mb-4", e),
193
+ ...t
194
+ });
195
+ }
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
200
+ });
201
+ }
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
206
+ });
207
+ }
208
+ function O({ className: e, ...t }) {
209
+ return /* @__PURE__ */ i("li", {
210
+ className: n("min-w-0", e),
211
+ ...t
212
+ });
213
+ }
214
+ var k = r.forwardRef(({ asChild: e = !1, active: r = !1, className: a, ...o }, s) => /* @__PURE__ */ i(t, {
215
+ ref: s,
216
+ asChild: e,
217
+ variant: "ghost",
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,
220
+ ...o
221
+ }));
222
+ k.displayName = "SidebarMenuButton";
223
+ //#endregion
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 };
@@ -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-info-border/20 bg-info-subtle text-info",
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-info-subtle text-info",
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-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
+ 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-interaction-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring 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-ring 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-[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
+ ...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-[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
+ ...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-[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
+ ...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-[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
+ ...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-BleXRtz6.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
+ }