@jonmilner/ui 0.23.7 → 0.23.9
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/dist/Checkbox/Checkbox.css +1 -1
- package/dist/Checkbox/index.mjs +31 -22
- package/dist/Chip/Chip.css +1 -1
- package/dist/Code/Code.css +1 -1
- package/dist/Code/index.mjs +2 -1
- package/dist/ColorField/ColorField.css +1 -1
- package/dist/ColorField/client.mjs +3 -0
- package/dist/Combobox/Combobox.css +1 -1
- package/dist/Combobox/client.mjs +2 -1
- package/dist/Combobox/index.mjs +1 -0
- package/dist/Field/Field.css +1 -1
- package/dist/Field/client.mjs +22 -16
- package/dist/Icon/Icon.css +1 -1
- package/dist/Icon/Icon.css.mjs +10 -10
- package/dist/Icon/index.mjs +17 -14
- package/dist/IconButton/IconButton.css +1 -1
- package/dist/IconButton/index.mjs +1 -1
- package/dist/Menu/Menu.css +1 -1
- package/dist/Menu/index.mjs +87 -85
- package/dist/Menu/item-row.mjs +24 -20
- package/dist/MultiSelect/MultiSelect.css +1 -1
- package/dist/NavList/NavList.css +1 -1
- package/dist/NavList/NavList.css.mjs +2 -2
- package/dist/NavList/index.mjs +65 -60
- package/dist/NumberField/NumberField.css +1 -1
- package/dist/NumberField/index.mjs +3 -1
- package/dist/RadioGroup/RadioGroup.css +1 -1
- package/dist/RadioGroup/index.mjs +10 -1
- package/dist/SearchField/SearchField.css +1 -1
- package/dist/SearchField/client.mjs +2 -0
- package/dist/Select/Select.css +1 -1
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/Sidebar/index.mjs +8 -0
- package/dist/Switch/Switch.css +1 -1
- package/dist/Switch/index.mjs +10 -1
- package/dist/Tag/Tag.css +1 -1
- package/dist/Tag/index.mjs +2 -0
- package/dist/TextField/TextField.css +1 -1
- package/dist/TextField/index.mjs +1 -0
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Textarea/index.mjs +2 -0
- package/dist/docs/manifest.json +1 -1
- package/dist/popup/listbox-base.mjs +1 -0
- package/dist/scroll-region/scroll-region.mjs +10 -2
- package/dist/styles/scroll-region.css +1 -1
- package/package.json +1 -1
package/dist/Menu/index.mjs
CHANGED
|
@@ -1,146 +1,148 @@
|
|
|
1
1
|
import { Box as e } from "../Box/base.mjs";
|
|
2
2
|
import { ChevronRightIcon as t } from "../icons/ChevronRightIcon.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { sprinkles as n } from "../styles/atoms.css.mjs";
|
|
4
|
+
import { join as r } from "../styles/join.mjs";
|
|
5
|
+
import { splitStyleProps as i } from "../styles/split-style-props.mjs";
|
|
6
|
+
import { Text as a } from "../Text/index.mjs";
|
|
7
|
+
import { MenuItemPart as o, MenuLinkItemPart as s, MenuPortal as c, MenuPositioner as l, MenuRootScope as u, MenuSubmenuRootScope as d, MenuSubmenuTriggerPart as f, MenuTrigger as p } from "./client.mjs";
|
|
8
|
+
import { itemChildren as m, itemLayout as h } from "./item-row.mjs";
|
|
9
|
+
import { item as g, linkItem as _, popup as v, separator as y, submenuChevron as b } from "./Menu.css.mjs";
|
|
10
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
11
|
+
import { Menu as C } from "@base-ui/react/menu";
|
|
11
12
|
// src/Menu/index.tsx
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
function w(e) {
|
|
14
|
+
return /* @__PURE__ */ x(u, { ...e });
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
let [m, h] =
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
align:
|
|
16
|
+
function T({ side: t, align: n = "start", backgroundColor: a = "bgRaised", borderRadius: o = "med", boxShadow: s = "med", padding: u = "4", className: d, style: f, ...p }) {
|
|
17
|
+
let [m, h] = i(p);
|
|
18
|
+
return /* @__PURE__ */ x(c, { children: /* @__PURE__ */ x(l, {
|
|
19
|
+
align: n,
|
|
19
20
|
finalFocus: h.finalFocus !== void 0 && h.finalFocus !== !0,
|
|
20
21
|
side: t,
|
|
21
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ x(C.Popup, {
|
|
22
23
|
...h,
|
|
23
|
-
render: /* @__PURE__ */
|
|
24
|
+
render: /* @__PURE__ */ x(e, {
|
|
24
25
|
backgroundColor: a,
|
|
25
26
|
borderRadius: o,
|
|
26
|
-
boxShadow:
|
|
27
|
+
boxShadow: s,
|
|
27
28
|
padding: u,
|
|
28
29
|
...m,
|
|
29
|
-
className:
|
|
30
|
+
className: r(v, d),
|
|
30
31
|
style: f
|
|
31
32
|
})
|
|
32
33
|
})
|
|
33
34
|
}) });
|
|
34
35
|
}
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
let [
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
label:
|
|
36
|
+
var E = (e) => e == null || e === !1 || e === "" ? void 0 : e, D = (e, t) => t !== void 0 && (typeof e == "string" || typeof e == "number") ? String(e) : void 0;
|
|
37
|
+
function O({ variant: t = "neutral", description: n, iconStart: a, iconEnd: s, display: c = "flex", minBlockSize: l = "sm", paddingInline: u = "12", borderRadius: d = "xs", color: f = t === "danger" ? "danger" : "fg", className: p, style: _, children: v, ...y }) {
|
|
38
|
+
let [b, S] = i(y), C = E(n);
|
|
39
|
+
return /* @__PURE__ */ x(o, {
|
|
40
|
+
label: D(v, C),
|
|
40
41
|
...S,
|
|
41
42
|
description: C,
|
|
42
|
-
render: /* @__PURE__ */
|
|
43
|
-
...
|
|
43
|
+
render: /* @__PURE__ */ x(e, {
|
|
44
|
+
...h(C !== void 0),
|
|
44
45
|
display: c,
|
|
45
46
|
minBlockSize: l,
|
|
46
47
|
paddingInline: u,
|
|
47
48
|
borderRadius: d,
|
|
48
49
|
color: f,
|
|
49
|
-
...
|
|
50
|
-
className:
|
|
50
|
+
...b,
|
|
51
|
+
className: r(g, p),
|
|
51
52
|
style: _
|
|
52
53
|
}),
|
|
53
|
-
children:
|
|
54
|
-
iconStart:
|
|
54
|
+
children: m(v, {
|
|
55
|
+
iconStart: a,
|
|
55
56
|
iconEnd: s
|
|
56
57
|
})
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
let [
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
label:
|
|
60
|
+
function k({ href: t, disabled: n = !1, closeOnClick: a = !0, onClick: o, description: c, iconStart: l, iconEnd: u, display: d = "flex", minBlockSize: f = "sm", paddingInline: p = "12", borderRadius: v = "xs", color: y = "fg", className: b, style: S, children: C, ...w }) {
|
|
61
|
+
let [T, O] = i(w), k = E(c);
|
|
62
|
+
return /* @__PURE__ */ x(s, {
|
|
63
|
+
label: D(C, k),
|
|
63
64
|
...O,
|
|
64
|
-
"aria-disabled":
|
|
65
|
-
closeOnClick: !
|
|
65
|
+
"aria-disabled": n || void 0,
|
|
66
|
+
closeOnClick: !n && a,
|
|
66
67
|
description: k,
|
|
67
|
-
href:
|
|
68
|
-
onClick:
|
|
69
|
-
render: /* @__PURE__ */
|
|
68
|
+
href: n ? void 0 : t,
|
|
69
|
+
onClick: n ? void 0 : o,
|
|
70
|
+
render: /* @__PURE__ */ x(e, {
|
|
70
71
|
as: "a",
|
|
71
|
-
...
|
|
72
|
+
...h(k !== void 0),
|
|
72
73
|
display: d,
|
|
73
74
|
minBlockSize: f,
|
|
74
|
-
paddingInline:
|
|
75
|
+
paddingInline: p,
|
|
75
76
|
borderRadius: v,
|
|
76
77
|
color: y,
|
|
77
|
-
...
|
|
78
|
-
className:
|
|
78
|
+
...T,
|
|
79
|
+
className: r(g, _, b),
|
|
79
80
|
style: S
|
|
80
81
|
}),
|
|
81
|
-
children:
|
|
82
|
+
children: m(C, {
|
|
82
83
|
iconStart: l,
|
|
83
84
|
iconEnd: u
|
|
84
85
|
})
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
function A(e) {
|
|
89
|
+
return /* @__PURE__ */ x(d, { ...e });
|
|
89
90
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
var j = n({ marginInlineStart: "auto" });
|
|
92
|
+
function M({ className: e, ...n }) {
|
|
93
|
+
return /* @__PURE__ */ x(t, {
|
|
94
|
+
...n,
|
|
95
|
+
className: r(b, j, e)
|
|
94
96
|
});
|
|
95
97
|
}
|
|
96
|
-
function
|
|
97
|
-
let [y,
|
|
98
|
-
return /* @__PURE__ */
|
|
99
|
-
label:
|
|
100
|
-
...
|
|
98
|
+
function N({ description: t, iconStart: n, display: a = "flex", minBlockSize: o = "sm", paddingInline: s = "12", borderRadius: c = "xs", color: l = "fg", className: u, style: d, ref: p, children: _, ...v }) {
|
|
99
|
+
let [y, b] = i(v), S = E(t);
|
|
100
|
+
return /* @__PURE__ */ x(f, {
|
|
101
|
+
label: D(_, S),
|
|
102
|
+
...b,
|
|
101
103
|
description: S,
|
|
102
|
-
render: /* @__PURE__ */
|
|
103
|
-
...
|
|
104
|
+
render: /* @__PURE__ */ x(e, {
|
|
105
|
+
...h(S !== void 0),
|
|
104
106
|
display: a,
|
|
105
107
|
minBlockSize: o,
|
|
106
108
|
paddingInline: s,
|
|
107
109
|
borderRadius: c,
|
|
108
110
|
color: l,
|
|
109
111
|
...y,
|
|
110
|
-
className:
|
|
111
|
-
ref:
|
|
112
|
-
style:
|
|
112
|
+
className: r(g, u),
|
|
113
|
+
ref: p,
|
|
114
|
+
style: d
|
|
113
115
|
}),
|
|
114
|
-
children:
|
|
115
|
-
iconStart:
|
|
116
|
-
iconEnd:
|
|
116
|
+
children: m(_, {
|
|
117
|
+
iconStart: n,
|
|
118
|
+
iconEnd: M
|
|
117
119
|
})
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
|
-
function
|
|
121
|
-
let [c, l] =
|
|
122
|
-
return /* @__PURE__ */
|
|
122
|
+
function P({ paddingBlock: t = "4", paddingInline: n = "8", className: a, style: o, ...s }) {
|
|
123
|
+
let [c, l] = i(s);
|
|
124
|
+
return /* @__PURE__ */ x(C.Separator, {
|
|
123
125
|
...l,
|
|
124
|
-
render: /* @__PURE__ */
|
|
126
|
+
render: /* @__PURE__ */ x(e, {
|
|
125
127
|
paddingBlock: t,
|
|
126
|
-
paddingInline:
|
|
128
|
+
paddingInline: n,
|
|
127
129
|
...c,
|
|
128
|
-
className:
|
|
130
|
+
className: r(y, a),
|
|
129
131
|
style: o
|
|
130
132
|
})
|
|
131
133
|
});
|
|
132
134
|
}
|
|
133
|
-
function
|
|
134
|
-
let [c, l] =
|
|
135
|
-
return /* @__PURE__ */
|
|
135
|
+
function F({ label: t, className: n, style: r, children: o, ...s }) {
|
|
136
|
+
let [c, l] = i(s);
|
|
137
|
+
return /* @__PURE__ */ S(C.Group, {
|
|
136
138
|
...l,
|
|
137
|
-
render: /* @__PURE__ */
|
|
139
|
+
render: /* @__PURE__ */ x(e, {
|
|
138
140
|
...c,
|
|
139
141
|
className: n,
|
|
140
|
-
style:
|
|
142
|
+
style: r
|
|
141
143
|
}),
|
|
142
|
-
children: [/* @__PURE__ */
|
|
143
|
-
render: /* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ x(C.GroupLabel, {
|
|
145
|
+
render: /* @__PURE__ */ x(a, {
|
|
144
146
|
as: "div",
|
|
145
147
|
color: "fgMuted",
|
|
146
148
|
font: "label",
|
|
@@ -152,14 +154,14 @@ function N({ label: t, className: n, style: a, children: o, ...s }) {
|
|
|
152
154
|
}), o]
|
|
153
155
|
});
|
|
154
156
|
}
|
|
155
|
-
var
|
|
156
|
-
Trigger:
|
|
157
|
-
Popup:
|
|
158
|
-
Item:
|
|
159
|
-
LinkItem:
|
|
160
|
-
Separator:
|
|
161
|
-
Group:
|
|
162
|
-
SubmenuRoot:
|
|
163
|
-
SubmenuTrigger:
|
|
157
|
+
var I = Object.assign(w, {
|
|
158
|
+
Trigger: p,
|
|
159
|
+
Popup: T,
|
|
160
|
+
Item: O,
|
|
161
|
+
LinkItem: k,
|
|
162
|
+
Separator: P,
|
|
163
|
+
Group: F,
|
|
164
|
+
SubmenuRoot: A,
|
|
165
|
+
SubmenuTrigger: N
|
|
164
166
|
});
|
|
165
|
-
export {
|
|
167
|
+
export { I as Menu };
|
package/dist/Menu/item-row.mjs
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
import { Box as e } from "../Box/base.mjs";
|
|
2
2
|
import { iconGap as t } from "../icon-slot/gap.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { sprinkles as n } from "../styles/atoms.css.mjs";
|
|
4
|
+
import { join as r } from "../styles/join.mjs";
|
|
5
|
+
import { Text as i } from "../Text/index.mjs";
|
|
6
|
+
import { description as a, icon as o } from "./Menu.css.mjs";
|
|
7
|
+
import { Children as s } from "react";
|
|
8
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
9
|
// src/Menu/item-row.tsx
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
var d = r(o, n({ flexShrink: 0 }));
|
|
11
|
+
function f(e, { iconStart: t, iconEnd: n }) {
|
|
12
|
+
return /* @__PURE__ */ u(c, { children: [
|
|
13
|
+
t && /* @__PURE__ */ l(t, {
|
|
14
|
+
className: d,
|
|
12
15
|
size: "sm"
|
|
13
16
|
}),
|
|
14
|
-
|
|
17
|
+
s.map(e, (e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ l(i, {
|
|
15
18
|
as: "span",
|
|
16
19
|
font: "label",
|
|
17
20
|
size: "sm",
|
|
18
21
|
children: e
|
|
19
22
|
}) : e),
|
|
20
|
-
|
|
21
|
-
className:
|
|
23
|
+
n && /* @__PURE__ */ l(n, {
|
|
24
|
+
className: d,
|
|
22
25
|
size: "sm"
|
|
23
26
|
})
|
|
24
27
|
] });
|
|
25
28
|
}
|
|
26
|
-
var
|
|
29
|
+
var p = (e) => e ? {
|
|
27
30
|
flexDirection: "column",
|
|
28
31
|
alignItems: "stretch",
|
|
29
32
|
justifyContent: "center",
|
|
@@ -33,20 +36,21 @@ var l = (e) => e ? {
|
|
|
33
36
|
alignItems: "center",
|
|
34
37
|
gap: t.sm
|
|
35
38
|
};
|
|
36
|
-
function
|
|
37
|
-
return /* @__PURE__ */
|
|
39
|
+
function m({ children: n, description: r, id: o }) {
|
|
40
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(e, {
|
|
38
41
|
alignItems: "center",
|
|
39
42
|
as: "span",
|
|
40
43
|
display: "flex",
|
|
41
44
|
gap: t.sm,
|
|
42
|
-
children:
|
|
43
|
-
}), /* @__PURE__ */
|
|
45
|
+
children: n
|
|
46
|
+
}), /* @__PURE__ */ l(i, {
|
|
44
47
|
"aria-hidden": !0,
|
|
45
48
|
as: "span",
|
|
46
|
-
className:
|
|
47
|
-
|
|
49
|
+
className: a,
|
|
50
|
+
color: "fgMuted",
|
|
51
|
+
id: o,
|
|
48
52
|
size: "xs",
|
|
49
|
-
children:
|
|
53
|
+
children: r
|
|
50
54
|
})] });
|
|
51
55
|
}
|
|
52
|
-
export {
|
|
56
|
+
export { m as DescribedContent, f as itemChildren, p as itemLayout };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.clickable-box, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table, components.markdown;
|
|
2
|
-
@layer components.multiselect{._1seauxl0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1seauxl1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}._1seauxl1[aria-invalid=true]{border-color:var(--color-danger)}._1seauxl1[aria-invalid=true]:not(:focus-visible){outline:var(--space-1) solid var(--color-danger);outline-offset:calc(-1 * var(--space-2))}:where(._1seauxl1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(._1seauxl1) ._1gwwloa1{min-inline-size:0}:where(._1seauxl1) ._1gwwloa2{flex:auto;min-inline-size:0}._1seauxl2{min-inline-size:0;display:block}._1seauxl2[data-placeholder]{color:var(--color-fg-muted)}._1seauxl3{min-inline-size:0;display:grid}._1seauxl4{grid-area:1/1}._1seauxl4[aria-hidden=true]{visibility:hidden}._1seauxl5{grid-area:1/1}._1seauxl6{border:var(--space-1) solid var(--color-border);min-inline-size:min(var(--anchor-width), var(--available-width));max-inline-size:var(--available-width);max-block-size:var(--available-height);transform-origin:var(--transform-origin);transition:opacity var(--duration-fast) var(--easing-standard), scale var(--duration-fast) var(--easing-enter)
|
|
2
|
+
@layer components.multiselect{._1seauxl0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1seauxl1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}._1seauxl1[aria-invalid=true]{border-color:var(--color-danger)}._1seauxl1[aria-invalid=true]:not(:focus-visible){outline:var(--space-1) solid var(--color-danger);outline-offset:calc(-1 * var(--space-2))}:where(._1seauxl1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(._1seauxl1) ._1gwwloa1{min-inline-size:0}:where(._1seauxl1) ._1gwwloa2{flex:auto;min-inline-size:0}._1seauxl2{min-inline-size:0;display:block}._1seauxl2[data-placeholder]{color:var(--color-fg-muted)}._1seauxl3{min-inline-size:0;display:grid}._1seauxl4{grid-area:1/1}._1seauxl4[aria-hidden=true]{visibility:hidden}._1seauxl5{grid-area:1/1}._1seauxl6{border:var(--space-1) solid var(--color-border);min-inline-size:min(var(--anchor-width), var(--available-width));max-inline-size:var(--available-width);max-block-size:var(--available-height);transform-origin:var(--transform-origin);transition:opacity var(--duration-fast) var(--easing-standard), scale var(--duration-fast) var(--easing-enter)}._1seauxl6:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1seauxl6[data-starting-style],._1seauxl6[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}._1seauxl7{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;overflow-wrap:anywhere;-webkit-user-select:none;user-select:none}._1seauxl7:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}._1seauxl7[data-highlighted]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}._1seauxl7[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}._1seauxl8{visibility:hidden;flex-shrink:0}._1seauxl7[aria-selected=true] ._1seauxl8{visibility:visible}@media (forced-colors:active){._1seauxl1{--color-fg:CanvasText}._1seauxl1[aria-disabled=true]{border-color:graytext}._1seauxl7[data-highlighted]{forced-color-adjust:none;color:highlighttext;background-color:highlight}._1seauxl7[data-highlighted]:focus-visible{color:canvastext;background-color:canvas}._1seauxl7[aria-disabled=true]{color:graytext}}@supports (text-box:trim-both cap alphabetic){._1seauxl4,._1seauxl5{text-box-trim:trim-both}}}
|
package/dist/NavList/NavList.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.clickable-box, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table, components.markdown;
|
|
2
|
-
@layer components.nav-list{._1kvngp01{padding-inline-start:0;list-style:none}._1kvngp02:not(:first-child),:where(._1kvngp02)+._1kvngp03{padding-block-start:var(--space-16)}._1kvngp04{grid-template-columns:minmax(0, 1fr) auto var(--space-4)
|
|
2
|
+
@layer components.nav-list{._1kvngp01{padding-inline-start:0;list-style:none}._1kvngp02:not(:first-child),:where(._1kvngp02)+._1kvngp03{padding-block-start:var(--space-16)}._1kvngp04{grid-template-columns:minmax(0, 1fr) auto var(--space-4)}._1kvngp06{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;grid-area:1/1/2/-1}._1kvngp06:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1kvngp07{overflow-wrap:anywhere;min-inline-size:0}._1kvngp04:focus-within ._1kvngp08,._1kvngp04:has([aria-expanded=true]) ._1kvngp08{opacity:0}._1kvngp09{min-inline-size:calc(var(--size-xs) - var(--space-4));justify-content:flex-end}._1kvngp0a{opacity:0;grid-area:1/2}._1kvngp04:focus-within ._1kvngp0a,._1kvngp04:has([aria-expanded=true]) ._1kvngp0a{opacity:1}:where(._1kvngp0a)>*{border-radius:var(--radius-xs)}._1kvngp0b{inline-size:var(--space-6);block-size:var(--space-6);pointer-events:none;box-shadow:0 0 0 calc(var(--space-2) + var(--space-1)) color-mix(in oklch, var(--color-success) 18%, transparent)}._1kvngp0c{inline-size:var(--space-6);block-size:var(--space-6);pointer-events:none;box-shadow:0 0 0 var(--space-2) var(--color-bg-panel);inset-block-start:calc(var(--space-6) / -2);inset-inline-end:calc(var(--space-6) / -2)}@container _1n4s23v1 (inline-size>=0){._1kvngp05{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kvngp06{--_1kvngp00:1;inline-size:var(--size-med);block-size:var(--size-med);padding-inline:var(--space-8);border-radius:var(--radius-xs);justify-content:center}._1kvngp07,._1kvngp08,._1kvngp09{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kvngp0a,._1kvngp0b{display:none}._1kvngp0c{display:block}}@media (hover:hover){._1kvngp06:not([aria-current=page]):hover,._1kvngp04:hover>._1kvngp06:not([aria-current=page]){background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 15%, transparent), color-mix(in srgb, var(--color-fg) 15%, transparent))}._1kvngp04:hover ._1kvngp08{opacity:0}._1kvngp04:hover ._1kvngp0a{opacity:1}}@media (forced-colors:active){._1kvngp06:not([aria-current=page]):hover,._1kvngp04:hover>._1kvngp06:not([aria-current=page]){background-image:none}._1kvngp06[aria-current=page]{color:highlighttext;background-color:highlight}:where([aria-current=page]) ._1kvngp07{forced-color-adjust:none}._1kvngp0b{forced-color-adjust:none;box-shadow:none;background-color:currentColor}._1kvngp0c{forced-color-adjust:none;box-shadow:0 0 0 var(--space-2) Canvas;background-color:currentColor}}@media (hover:none),(pointer:coarse){._1kvngp04 ._1kvngp08{opacity:0}._1kvngp0a{opacity:1}}}@layer reset{._1kvngp06{color:inherit;text-decoration:none}}
|
|
@@ -5,5 +5,5 @@ import "./NavList.css";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
// src/NavList/NavList.css.ts
|
|
8
|
-
var e = "var(--_1kvngp00)", t = "_1kvngp01", n = "_1kvngp02", r = "_1kvngp03", i = "_1kvngp04", a = "_1kvngp05", o = "_1kvngp06", s = "_1kvngp07", c = "_1kvngp08", l = "_1kvngp09", u = "_1kvngp0a", d = "_1kvngp0b", f = "_1kvngp0c"
|
|
9
|
-
export { u as action, i as actionRow,
|
|
8
|
+
var e = "var(--_1kvngp00)", t = "_1kvngp01", n = "_1kvngp02", r = "_1kvngp03", i = "_1kvngp04", a = "_1kvngp05", o = "_1kvngp06", s = "_1kvngp07", c = "_1kvngp08", l = "_1kvngp09", u = "_1kvngp0a", d = "_1kvngp0b", f = "_1kvngp0c";
|
|
9
|
+
export { u as action, i as actionRow, f as cornerDot, c as count, r as entry, n as group, a as heading, o as item, s as label, t as list, d as liveDot, e as railFlag, l as trail };
|
package/dist/NavList/index.mjs
CHANGED
|
@@ -4,38 +4,38 @@ import { join as n } from "../styles/join.mjs";
|
|
|
4
4
|
import { Text as r } from "../Text/index.mjs";
|
|
5
5
|
import { VisuallyHidden as i } from "../VisuallyHidden/index.mjs";
|
|
6
6
|
import { RailTooltip as a } from "./client.mjs";
|
|
7
|
-
import { action as o, cornerDot as s, count as c, entry as l, group as u, heading as d, item as f, label as p,
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { Tooltip as
|
|
7
|
+
import { action as o, cornerDot as s, count as c, entry as l, group as u, heading as d, item as f, label as p, list as m, liveDot as h, trail as g } from "./NavList.css.mjs";
|
|
8
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
9
|
+
import { Tooltip as b } from "@base-ui/react/tooltip";
|
|
10
10
|
// src/NavList/index.tsx
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */
|
|
11
|
+
var x = (e) => e == null || typeof e == "boolean" || e === "";
|
|
12
|
+
function S({ children: e, ...n }) {
|
|
13
|
+
return /* @__PURE__ */ v(t, {
|
|
14
14
|
...n,
|
|
15
15
|
as: "nav",
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ v(b.Provider, { children: /* @__PURE__ */ v(C, { children: e }) })
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
function C({ label: e, children: n }) {
|
|
20
|
+
return /* @__PURE__ */ v(t, {
|
|
21
21
|
"aria-label": e,
|
|
22
22
|
as: "ul",
|
|
23
|
-
className:
|
|
23
|
+
className: m,
|
|
24
24
|
display: "flex",
|
|
25
25
|
flexDirection: "column",
|
|
26
26
|
gap: "4",
|
|
27
27
|
children: n
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
function w({ label: e, headingLevel: i = "h2", display: a = "flex", flexDirection: o = "column", gap: s = "4", className: c, children: l, ...f }) {
|
|
31
|
+
return /* @__PURE__ */ y(t, {
|
|
32
32
|
...f,
|
|
33
33
|
as: "li",
|
|
34
34
|
className: n(u, c),
|
|
35
35
|
display: a,
|
|
36
36
|
flexDirection: o,
|
|
37
37
|
gap: s,
|
|
38
|
-
children: [/* @__PURE__ */
|
|
38
|
+
children: [/* @__PURE__ */ v(r, {
|
|
39
39
|
as: i,
|
|
40
40
|
className: d,
|
|
41
41
|
color: "fgMuted",
|
|
@@ -44,105 +44,110 @@ function T({ label: e, headingLevel: i = "h2", display: a = "flex", flexDirectio
|
|
|
44
44
|
size: "xs",
|
|
45
45
|
weight: "semibold",
|
|
46
46
|
children: e
|
|
47
|
-
}), /* @__PURE__ */
|
|
47
|
+
}), /* @__PURE__ */ v(C, {
|
|
48
48
|
label: e,
|
|
49
49
|
children: l
|
|
50
50
|
})]
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
let
|
|
53
|
+
function T({ as: u, current: d = !1, icon: m, avatar: b, action: S, count: C, live: w = !1, liveLabel: T = "live", display: E = "flex", alignItems: D = "center", gap: O = "8", position: k = "relative", minBlockSize: A = "sm", paddingBlock: j = "6", paddingInline: M, paddingInlineStart: N = M === void 0 && !x(b) ? "6" : void 0, borderRadius: P = "med", backgroundColor: F = d ? "selected" : void 0, color: I = "fg", className: L, children: R, ...z }) {
|
|
54
|
+
let B = u ?? "a", V = !x(S), H = /* @__PURE__ */ v(e, {
|
|
55
55
|
className: c,
|
|
56
56
|
flexShrink: 0,
|
|
57
57
|
size: "xs",
|
|
58
58
|
subtle: !0,
|
|
59
|
-
children:
|
|
60
|
-
}),
|
|
61
|
-
alignItems:
|
|
62
|
-
as:
|
|
63
|
-
backgroundColor:
|
|
64
|
-
borderRadius:
|
|
65
|
-
color:
|
|
66
|
-
display:
|
|
67
|
-
gap:
|
|
68
|
-
minBlockSize:
|
|
69
|
-
paddingBlock:
|
|
70
|
-
paddingInline:
|
|
71
|
-
paddingInlineStart:
|
|
72
|
-
position:
|
|
73
|
-
...
|
|
59
|
+
children: C
|
|
60
|
+
}), U = /* @__PURE__ */ y(t, {
|
|
61
|
+
alignItems: D,
|
|
62
|
+
as: B,
|
|
63
|
+
backgroundColor: F,
|
|
64
|
+
borderRadius: P,
|
|
65
|
+
color: I,
|
|
66
|
+
display: E,
|
|
67
|
+
gap: O,
|
|
68
|
+
minBlockSize: A,
|
|
69
|
+
paddingBlock: j,
|
|
70
|
+
paddingInline: M === void 0 ? "8" : M,
|
|
71
|
+
paddingInlineStart: N,
|
|
72
|
+
position: k,
|
|
73
|
+
...z,
|
|
74
74
|
"aria-current": d ? "page" : void 0,
|
|
75
|
-
className: n(f,
|
|
75
|
+
className: n(f, L),
|
|
76
76
|
children: [
|
|
77
|
-
|
|
77
|
+
m != null || !x(b) ? /* @__PURE__ */ y(t, {
|
|
78
78
|
"aria-hidden": !0,
|
|
79
79
|
as: "span",
|
|
80
|
-
className: m,
|
|
81
80
|
display: "flex",
|
|
82
81
|
flexShrink: 0,
|
|
83
|
-
|
|
82
|
+
position: "relative",
|
|
83
|
+
children: [m ? /* @__PURE__ */ v(m, { size: "sm" }) : b, w ? /* @__PURE__ */ v(t, {
|
|
84
84
|
as: "span",
|
|
85
85
|
backgroundColor: "success",
|
|
86
86
|
borderRadius: "full",
|
|
87
|
-
className: s
|
|
87
|
+
className: s,
|
|
88
|
+
display: "none",
|
|
89
|
+
position: "absolute"
|
|
88
90
|
}) : null]
|
|
89
91
|
}) : null,
|
|
90
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ v(r, {
|
|
91
93
|
as: "span",
|
|
92
94
|
className: p,
|
|
93
95
|
flexGrow: 1,
|
|
94
96
|
size: "sm",
|
|
95
97
|
weight: d ? "medium" : "regular",
|
|
96
|
-
children:
|
|
98
|
+
children: R
|
|
97
99
|
}),
|
|
98
|
-
|
|
100
|
+
w ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(t, {
|
|
99
101
|
"aria-hidden": !0,
|
|
100
102
|
as: "span",
|
|
101
103
|
backgroundColor: "success",
|
|
102
104
|
borderRadius: "full",
|
|
103
|
-
className:
|
|
105
|
+
className: h,
|
|
104
106
|
flexShrink: 0
|
|
105
|
-
}), /* @__PURE__ */
|
|
106
|
-
|
|
107
|
+
}), /* @__PURE__ */ v(i, { children: ` ${T}` })] }) : null,
|
|
108
|
+
V ? /* @__PURE__ */ v(t, {
|
|
107
109
|
as: "span",
|
|
108
|
-
className:
|
|
110
|
+
className: g,
|
|
109
111
|
display: "flex",
|
|
110
112
|
flexShrink: 0,
|
|
111
|
-
children:
|
|
112
|
-
}) :
|
|
113
|
+
children: H
|
|
114
|
+
}) : H
|
|
113
115
|
]
|
|
114
116
|
});
|
|
115
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ y(t, {
|
|
116
118
|
as: "li",
|
|
117
|
-
className: n(l,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
className: n(l, V && "_1kvngp04"),
|
|
120
|
+
display: V ? "grid" : void 0,
|
|
121
|
+
children: [/* @__PURE__ */ v(a, {
|
|
122
|
+
link: U,
|
|
123
|
+
children: /* @__PURE__ */ y(t, {
|
|
121
124
|
alignItems: "center",
|
|
122
125
|
as: "span",
|
|
123
126
|
display: "flex",
|
|
124
127
|
gap: "8",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ v(r, {
|
|
126
129
|
as: "span",
|
|
127
130
|
size: "sm",
|
|
128
|
-
children:
|
|
129
|
-
}), /* @__PURE__ */
|
|
131
|
+
children: R
|
|
132
|
+
}), /* @__PURE__ */ v(e, {
|
|
130
133
|
flexShrink: 0,
|
|
131
134
|
size: "xs",
|
|
132
135
|
subtle: !0,
|
|
133
|
-
children:
|
|
136
|
+
children: C
|
|
134
137
|
})]
|
|
135
138
|
})
|
|
136
|
-
}),
|
|
139
|
+
}), V ? /* @__PURE__ */ v(t, {
|
|
140
|
+
alignSelf: "center",
|
|
137
141
|
as: "span",
|
|
138
142
|
className: o,
|
|
139
143
|
display: "flex",
|
|
140
|
-
|
|
144
|
+
position: "relative",
|
|
145
|
+
children: S
|
|
141
146
|
}) : null]
|
|
142
147
|
});
|
|
143
148
|
}
|
|
144
|
-
var
|
|
145
|
-
Group:
|
|
146
|
-
Item:
|
|
149
|
+
var E = Object.assign(S, {
|
|
150
|
+
Group: w,
|
|
151
|
+
Item: T
|
|
147
152
|
});
|
|
148
|
-
export {
|
|
153
|
+
export { E as NavList };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.clickable-box, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table, components.markdown;
|
|
2
|
-
@layer components.number-field{._4ak7w90{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._4ak7w91{grid-template-columns:var(--space-4) auto minmax(0, 1fr) auto var(--space-4)}._4ak7w92{appearance:none;inline-size:100%;min-inline-size:0;color:var(--color-fg);border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);
|
|
2
|
+
@layer components.number-field{._4ak7w90{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._4ak7w91{grid-template-columns:var(--space-4) auto minmax(0, 1fr) auto var(--space-4)}._4ak7w92{appearance:none;inline-size:100%;min-inline-size:0;color:var(--color-fg);border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);background-color:var(--color-bg);grid-area:1/1/auto/-1;padding-block:0}._4ak7w92::placeholder{color:var(--color-fg-muted);opacity:1}._4ak7w92:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._4ak7w92:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}._4ak7w92[aria-invalid=true]{border-color:var(--color-danger)}._4ak7w92[aria-invalid=true]:not(:focus-visible){outline:var(--space-1) solid var(--color-danger);outline-offset:calc(-1 * var(--space-2))}._4ak7w93{block-size:var(--size-xs);padding-inline:calc(var(--size-xs) + var(--space-4))}._4ak7w94{block-size:var(--size-sm);padding-inline:calc(var(--size-xs) + var(--space-4))}._4ak7w95{block-size:var(--size-med);padding-inline:calc(var(--size-sm) + var(--space-4))}._4ak7w96{background-clip:padding-box;grid-area:1/2}._4ak7w97{background-clip:padding-box;grid-area:1/4}@media (pointer:coarse){._4ak7w92{font-size:var(--font-size-med)}}@media (forced-colors:active){._4ak7w92:disabled{color:graytext;border-color:graytext}._4ak7w96{border-color:#0000}._4ak7w96[aria-disabled=true]{border-color:graytext}._4ak7w97{border-color:#0000}._4ak7w97[aria-disabled=true]{border-color:graytext}}@supports (text-box:trim-both cap alphabetic){._4ak7w92{text-box-trim:none}}}
|
|
@@ -49,9 +49,11 @@ function _({ label: _, hideLabel: v = !1, value: y, defaultValue: b, onValueChan
|
|
|
49
49
|
ref: F,
|
|
50
50
|
render: /* @__PURE__ */ p(s, {
|
|
51
51
|
as: "input",
|
|
52
|
+
borderRadius: "sm",
|
|
52
53
|
className: d({ size: O }),
|
|
53
54
|
size: o[O],
|
|
54
|
-
tabularNums: !0
|
|
55
|
+
tabularNums: !0,
|
|
56
|
+
textAlign: "center"
|
|
55
57
|
})
|
|
56
58
|
}),
|
|
57
59
|
/* @__PURE__ */ p(h.Decrement, { render: /* @__PURE__ */ p(n, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.clickable-box, components.flex, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.alert, components.avatar, components.badge, components.body, components.button, components.caption, components.chip, components.code, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.label, components.menu, components.multiselect, components.number-field, components.popover, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table, components.markdown;
|
|
2
|
-
@layer components.radio-group{._15rnw5c0[data-disabled]{color:var(--color-fg-muted)}._15rnw5c1{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._15rnw5c3{row-gap:var(--space-8);flex-direction:column}._15rnw5c4{column-gap:var(--space-16);row-gap:var(--space-8);flex-flow:wrap}._15rnw5c5{
|
|
2
|
+
@layer components.radio-group{._15rnw5c0[data-disabled]{color:var(--color-fg-muted)}._15rnw5c1{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._15rnw5c3{row-gap:var(--space-8);flex-direction:column}._15rnw5c4{column-gap:var(--space-16);row-gap:var(--space-8);flex-flow:wrap}._15rnw5c5{column-gap:var(--space-8);grid-template-columns:auto 1fr}._15rnw5c6{grid-column-start:2}._15rnw5c7{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}._15rnw5c7:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._15rnw5c7[aria-disabled=true]{cursor:not-allowed}._15rnw5c8{inline-size:var(--space-16);block-size:var(--space-16);border:var(--space-1) solid var(--color-border-strong);forced-color-adjust:none;place-items:center}._15rnw5c7:not([aria-checked=true],[aria-invalid=true],[aria-disabled=true]):hover ._15rnw5c8{border-color:var(--color-fg)}._15rnw5c7[aria-checked=true] ._15rnw5c8{border-color:var(--color-accent)}._15rnw5c7[aria-disabled=true] ._15rnw5c8{border-style:dashed;border-color:var(--color-border-strong);background-color:var(--color-bg-muted);color:var(--color-fg-muted)}._15rnw5c7[aria-invalid=true] ._15rnw5c8{border-width:var(--space-2);border-color:var(--color-danger)}._15rnw5c9{inline-size:var(--space-8);block-size:var(--space-8);opacity:0;scale:calc(1 - var(--scale-lg));transition-property:opacity,scale;transition-duration:var(--duration-fast);transition-timing-function:var(--easing-standard);background-color:currentColor}._15rnw5c7[aria-checked=true] ._15rnw5c9{opacity:1;scale:1}}
|