@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.
- package/CHANGELOG.md +36 -0
- package/README.md +11 -3
- package/dist/button-yvMc7CT-.js +47 -0
- package/dist/command-menu.js +34 -22
- package/dist/components/advanced-controls.d.ts +13 -6
- package/dist/components/button.d.ts +3 -0
- package/dist/components/date-input.d.ts +3 -1
- package/dist/components/date-range-picker.d.ts +3 -1
- package/dist/components/navigation.d.ts +7 -1
- package/dist/components/number-input.d.ts +2 -0
- package/dist/components/select-menu.d.ts +3 -1
- package/dist/components/select.d.ts +3 -1
- package/dist/components/surface.d.ts +1 -0
- package/dist/components/text-input.d.ts +2 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/data-table.js +9 -9
- package/dist/financial.js +2 -2
- package/dist/{form-D3G5306m.js → form-Csxly6Es.js} +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +683 -654
- package/dist/lib/control-density.d.ts +3 -0
- package/dist/navigation.d.ts +1 -1
- package/dist/navigation.js +126 -124
- package/dist/{notice-D5u9rkFU.js → notice-jbY9FQu_.js} +2 -2
- package/dist/{overlays-9ArfwHJo.js → overlays-BleXRtz6.js} +7 -7
- package/dist/overlays.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokens.css +54 -15
- package/docs/accessibility.md +27 -1
- package/docs/components.md +58 -4
- package/docs/migration.md +91 -0
- package/docs/tokens.md +94 -18
- package/package.json +4 -2
- package/dist/button-MVZPcSXf.js +0 -41
|
@@ -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;
|
package/dist/navigation.d.ts
CHANGED
|
@@ -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";
|
package/dist/navigation.js
CHANGED
|
@@ -1,84 +1,85 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import {
|
|
3
|
-
import { t } from "./
|
|
4
|
-
import * as
|
|
5
|
-
import { jsx as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
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
|
|
10
|
-
ref:
|
|
11
|
-
className:
|
|
12
|
-
...
|
|
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
|
-
|
|
15
|
-
var
|
|
16
|
-
ref:
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
21
|
-
var
|
|
22
|
-
ref:
|
|
23
|
-
className:
|
|
24
|
-
...
|
|
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
|
-
|
|
27
|
-
function
|
|
28
|
-
let c =
|
|
29
|
-
...
|
|
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
|
-
...
|
|
35
|
-
] :
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
"aria-label":
|
|
38
|
-
className:
|
|
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__ */
|
|
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((
|
|
43
|
-
let
|
|
44
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
47
|
+
children: [/* @__PURE__ */ i("span", {
|
|
47
48
|
"aria-hidden": "true",
|
|
48
|
-
className:
|
|
49
|
-
children:
|
|
50
|
-
}),
|
|
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
|
-
}) :
|
|
54
|
+
}) : r ? /* @__PURE__ */ i("span", {
|
|
54
55
|
"aria-current": "page",
|
|
55
56
|
className: "truncate font-medium text-foreground",
|
|
56
|
-
children:
|
|
57
|
-
}) :
|
|
58
|
-
href:
|
|
59
|
-
className: "truncate text-secondary-foreground underline-offset-4 hover:text-
|
|
60
|
-
children:
|
|
61
|
-
}) : /* @__PURE__ */
|
|
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:
|
|
64
|
+
children: e.label
|
|
64
65
|
})]
|
|
65
|
-
}, `${
|
|
66
|
+
}, `${e.label}-${t}`);
|
|
66
67
|
})
|
|
67
68
|
})
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
let d = Math.max(1, Math.floor(o)), f = Math.min(d, Math.max(1, Math.floor(
|
|
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__ */
|
|
75
|
+
return /* @__PURE__ */ a("nav", {
|
|
75
76
|
"aria-label": l,
|
|
76
|
-
className:
|
|
77
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
90
|
+
/* @__PURE__ */ i("div", {
|
|
90
91
|
className: "hidden items-center gap-1 sm:flex",
|
|
91
|
-
children: m.map((e,
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
127
|
-
ref:
|
|
128
|
-
className:
|
|
129
|
-
...
|
|
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
|
-
|
|
132
|
-
var
|
|
133
|
-
ref:
|
|
134
|
-
className:
|
|
135
|
-
...
|
|
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
|
-
|
|
138
|
-
var
|
|
139
|
-
ref:
|
|
140
|
-
className:
|
|
141
|
-
...
|
|
142
|
-
children: [
|
|
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
|
-
|
|
149
|
-
var
|
|
150
|
-
ref:
|
|
151
|
-
className:
|
|
152
|
-
...
|
|
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
|
-
|
|
155
|
-
var
|
|
156
|
-
ref:
|
|
157
|
-
className:
|
|
158
|
-
...
|
|
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
|
-
|
|
161
|
-
var
|
|
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__ */
|
|
164
|
-
ref:
|
|
165
|
-
className:
|
|
166
|
-
...
|
|
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
|
-
|
|
170
|
-
var
|
|
171
|
-
ref:
|
|
172
|
-
className:
|
|
173
|
-
...
|
|
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
|
-
|
|
176
|
-
function
|
|
177
|
-
return /* @__PURE__ */
|
|
178
|
-
className:
|
|
179
|
-
...
|
|
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
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
-
className:
|
|
185
|
-
...
|
|
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
|
|
189
|
-
return /* @__PURE__ */
|
|
190
|
-
className:
|
|
191
|
-
...
|
|
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
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
className:
|
|
197
|
-
...
|
|
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
|
|
201
|
-
return /* @__PURE__ */
|
|
202
|
-
className:
|
|
203
|
-
...
|
|
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
|
|
207
|
-
return /* @__PURE__ */
|
|
208
|
-
className:
|
|
209
|
-
...
|
|
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
|
|
214
|
+
var k = r.forwardRef(({ asChild: e = !1, active: r = !1, className: a, ...o }, s) => /* @__PURE__ */ i(t, {
|
|
213
215
|
ref: s,
|
|
214
|
-
asChild:
|
|
216
|
+
asChild: e,
|
|
215
217
|
variant: "ghost",
|
|
216
|
-
className:
|
|
217
|
-
"aria-current":
|
|
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
|
-
|
|
222
|
+
k.displayName = "SidebarMenuButton";
|
|
221
223
|
//#endregion
|
|
222
|
-
export {
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-[
|
|
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-[
|
|
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-[
|
|
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-[
|
|
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-
|
|
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";
|