@jonmilner/ui 0.23.7 → 0.23.8
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/Menu/Menu.css +1 -1
- package/dist/Menu/index.mjs +87 -85
- package/dist/Menu/item-row.mjs +24 -20
- package/dist/NavList/NavList.css +1 -1
- package/dist/NavList/NavList.css.mjs +2 -2
- package/dist/NavList/index.mjs +65 -60
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/Sidebar/index.mjs +8 -0
- package/dist/docs/manifest.json +1 -1
- 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/Menu.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.menu{._393eil0{border:var(--space-1) solid var(--color-border);max-inline-size:var(--available-width);transform-origin:var(--transform-origin);transition:opacity var(--duration-fast) var(--easing-standard), scale var(--duration-fast) var(--easing-enter)}._393eil0:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._393eil0[data-starting-style],._393eil0[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}._393eil1{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}._393eil1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}._393eil1[data-highlighted],._393eil1[data-popup-open]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}._393eil1[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}.
|
|
2
|
+
@layer components.menu{._393eil0{border:var(--space-1) solid var(--color-border);max-inline-size:var(--available-width);transform-origin:var(--transform-origin);transition:opacity var(--duration-fast) var(--easing-standard), scale var(--duration-fast) var(--easing-enter)}._393eil0:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._393eil0[data-starting-style],._393eil0[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}._393eil1{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}._393eil1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}._393eil1[data-highlighted],._393eil1[data-popup-open]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}._393eil1[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}._393eil3{margin-block:calc(-1 * var(--font-size-sm))}._393eil4{scale:var(--dir) 1}._393eil5{text-decoration:none}._393eil6{border-block-start-color:var(--color-border)}._393eil6:before{content:"";border-block-start:var(--space-1) solid;border-block-start-color:inherit;display:block}@media (forced-colors:active){._393eil1[data-highlighted]:not([aria-disabled=true]),._393eil1[data-popup-open]:not([aria-disabled=true]){forced-color-adjust:none;color:highlighttext;background-color:highlight}._393eil1[data-highlighted]:not([aria-disabled=true]):focus-visible{color:canvastext;background-color:canvas}._393eil1[aria-disabled=true]{color:graytext}._393eil2{color:inherit}}}
|
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 };
|
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 };
|
package/dist/Sidebar/Sidebar.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.sidebar{._1mbot450{inline-size:var(--container-sidebar);border-inline-end:var(--space-1) solid var(--color-border)}._1mbot450[data-rail]{inline-size:var(--container-rail);container:_1n4s23v1/inline-size}.
|
|
2
|
+
@layer components.sidebar{._1mbot450{inline-size:var(--container-sidebar);border-inline-end:var(--space-1) solid var(--color-border)}._1mbot450[data-rail]{inline-size:var(--container-rail);container:_1n4s23v1/inline-size}._1mbot453{scale:var(--dir) 1}._1mbot455{border-block-start:var(--space-1) solid var(--color-border)}@container _1n4s23v0 (inline-size>=48em){._1mbot450{min-block-size:calc(100dvh - var(--_1n4s23v2,0px))}}@container _1n4s23v0 (inline-size<48em){._1mbot450{border-inline-end:none;border-block-end:var(--space-1) solid var(--color-border)}._1mbot450,._1mbot450[data-rail]{inline-size:auto;container:none}}@container _1n4s23v1 (inline-size>=0){._1mbot451{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot452{margin-inline-start:0}._1mbot454{padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}._1mbot455{flex-direction:column;padding-inline-start:var(--space-8);padding-inline-end:calc(var(--space-8) - var(--space-1))}}}
|
package/dist/Sidebar/index.mjs
CHANGED
|
@@ -23,8 +23,10 @@ function g({ collapsed: n = !1, onCollapsedChange: r, header: u, footer: g, togg
|
|
|
23
23
|
let w = r ? /* @__PURE__ */ d(t, {
|
|
24
24
|
"aria-expanded": !n,
|
|
25
25
|
className: l,
|
|
26
|
+
flexShrink: 0,
|
|
26
27
|
icon: n ? m : p,
|
|
27
28
|
label: _,
|
|
29
|
+
marginInlineStart: "auto",
|
|
28
30
|
onClick: () => r(!n),
|
|
29
31
|
size: "sm"
|
|
30
32
|
}) : null;
|
|
@@ -42,11 +44,15 @@ function g({ collapsed: n = !1, onCollapsedChange: r, header: u, footer: g, togg
|
|
|
42
44
|
className: s,
|
|
43
45
|
display: "flex",
|
|
44
46
|
gap: "8",
|
|
47
|
+
paddingBlock: "16",
|
|
48
|
+
paddingInline: "12",
|
|
45
49
|
children: [u, w]
|
|
46
50
|
}) : null,
|
|
47
51
|
/* @__PURE__ */ d(e, {
|
|
48
52
|
className: a,
|
|
49
53
|
flexGrow: 1,
|
|
54
|
+
paddingBlockEnd: "12",
|
|
55
|
+
paddingInline: "12",
|
|
50
56
|
children: S
|
|
51
57
|
}),
|
|
52
58
|
h(g) ? /* @__PURE__ */ d(e, {
|
|
@@ -54,6 +60,8 @@ function g({ collapsed: n = !1, onCollapsedChange: r, header: u, footer: g, togg
|
|
|
54
60
|
className: o,
|
|
55
61
|
display: "flex",
|
|
56
62
|
gap: "8",
|
|
63
|
+
paddingBlock: "12",
|
|
64
|
+
paddingInline: "12",
|
|
57
65
|
children: g
|
|
58
66
|
}) : null
|
|
59
67
|
]
|
package/dist/docs/manifest.json
CHANGED
|
@@ -20,9 +20,17 @@ function l({ children: l, className: u, ref: d, rootProps: f, style: p, viewport
|
|
|
20
20
|
render: /* @__PURE__ */ o("section", { ref: d }),
|
|
21
21
|
children: /* @__PURE__ */ o(c.Content, { children: l })
|
|
22
22
|
}), /* @__PURE__ */ o(c.Scrollbar, {
|
|
23
|
-
className: r,
|
|
24
23
|
orientation: "horizontal",
|
|
25
|
-
|
|
24
|
+
render: /* @__PURE__ */ o(e, {
|
|
25
|
+
className: r,
|
|
26
|
+
padding: "2"
|
|
27
|
+
}),
|
|
28
|
+
children: /* @__PURE__ */ o(c.Thumb, { render: /* @__PURE__ */ o(e, {
|
|
29
|
+
backgroundColor: "borderStrong",
|
|
30
|
+
blockSize: "full",
|
|
31
|
+
borderRadius: "full",
|
|
32
|
+
className: n
|
|
33
|
+
}) })
|
|
26
34
|
})]
|
|
27
35
|
});
|
|
28
36
|
}
|
|
@@ -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.scroll-region{._1f9nmmg0:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}._1f9nmmg1{block-size:var(--space-8)
|
|
2
|
+
@layer components.scroll-region{._1f9nmmg0:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}._1f9nmmg1{block-size:var(--space-8)}._1f9nmmg2{forced-color-adjust:none}}
|