@jonmilner/ui 0.21.1 → 0.22.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/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/AlertDialog/index.d.mts +1 -1
- package/dist/Avatar/index.d.mts +1 -1
- package/dist/Avatar/index.mjs +5 -5
- package/dist/Badge/index.d.mts +1 -1
- package/dist/Badge/index.mjs +12 -12
- package/dist/Box/index.mjs +1 -1
- package/dist/Button/index.d.mts +1 -1
- package/dist/Button/index.mjs +22 -22
- package/dist/Checkbox/index.mjs +7 -7
- package/dist/Chip/index.mjs +35 -35
- package/dist/Clickable/index.d.mts +1 -1
- package/dist/Clickable/index.mjs +4 -4
- package/dist/ColorField/ColorField.css +1 -1
- package/dist/ColorField/client.mjs +6 -6
- package/dist/ColorField/index.mjs +14 -14
- package/dist/Combobox/Combobox.css +1 -1
- package/dist/Combobox/client.mjs +26 -26
- package/dist/Combobox/index.mjs +20 -20
- package/dist/Dialog/client.mjs +26 -26
- package/dist/Dialog/index.d.mts +1 -1
- package/dist/Dialog/index.mjs +19 -19
- package/dist/Field/client.mjs +6 -6
- package/dist/Field/index.mjs +29 -29
- package/dist/IconButton/IconButton.css +1 -1
- package/dist/IconButton/IconButton.css.mjs +2 -2
- package/dist/IconButton/index.d.mts +5 -2
- package/dist/IconButton/index.mjs +60 -21
- package/dist/Inline/index.d.mts +2 -2
- package/dist/Inline/index.mjs +4 -4
- package/dist/Menu/Menu.css +1 -1
- package/dist/Menu/Menu.css.mjs +2 -2
- package/dist/Menu/client.d.mts +1 -0
- package/dist/Menu/client.mjs +95 -53
- package/dist/Menu/index.d.mts +8 -0
- package/dist/Menu/index.mjs +123 -87
- package/dist/MultiSelect/MultiSelect.css +1 -1
- package/dist/MultiSelect/client.mjs +4 -4
- package/dist/MultiSelect/index.mjs +8 -8
- package/dist/NavList/NavList.css +1 -1
- package/dist/NavList/client.mjs +3 -3
- package/dist/NavList/index.d.mts +3 -3
- package/dist/NavList/index.mjs +67 -65
- package/dist/NumberField/NumberField.css +1 -1
- package/dist/NumberField/index.mjs +17 -17
- package/dist/RadioGroup/index.mjs +23 -23
- package/dist/SearchField/SearchField.css +1 -1
- package/dist/SearchField/client.mjs +13 -13
- package/dist/SearchField/index.mjs +16 -16
- package/dist/Select/Select.css +1 -1
- package/dist/Select/client.mjs +11 -11
- package/dist/Select/index.mjs +8 -8
- package/dist/Sidebar/index.d.mts +1 -1
- package/dist/Sidebar/index.mjs +21 -21
- package/dist/SidebarLayout/index.d.mts +1 -1
- package/dist/SidebarLayout/index.mjs +8 -8
- package/dist/Stack/index.d.mts +2 -2
- package/dist/Stack/index.mjs +4 -4
- package/dist/Switch/index.mjs +13 -13
- package/dist/Table/index.d.mts +1 -1
- package/dist/Table/index.mjs +59 -59
- package/dist/Tabs/index.mjs +26 -26
- package/dist/Tag/index.d.mts +1 -1
- package/dist/Tag/index.mjs +16 -16
- package/dist/Text/index.d.mts +2 -2
- package/dist/Text/index.mjs +4 -4
- package/dist/TextField/TextField.css +1 -1
- package/dist/TextField/index.mjs +16 -16
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Textarea/index.mjs +9 -9
- package/dist/Toast/client.d.mts +2 -1
- package/dist/Toast/client.mjs +62 -55
- package/dist/Tooltip/base.mjs +13 -13
- package/dist/contrast/contrast.d.mts +1 -1
- package/dist/contrast/contrast.mjs +9 -9
- package/dist/contrast/mixes.mjs +27 -27
- package/dist/docs/Combobox.md +1 -0
- package/dist/docs/IconButton.md +9 -1
- package/dist/docs/Menu.md +51 -3
- package/dist/docs/MultiSelect.md +1 -0
- package/dist/docs/NavList.md +2 -2
- package/dist/docs/Select.md +1 -0
- package/dist/docs/Toast.md +7 -0
- package/dist/docs/llms.txt +1 -1
- package/dist/docs/manifest.json +118 -1
- package/dist/docs/migrations/0.22.0.md +35 -0
- package/dist/icons/index.d.mts +3 -3
- package/dist/icons/index.mjs +33 -33
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +39 -39
- package/dist/lint/index.mjs +1 -0
- package/dist/popup/client.d.mts +1 -1
- package/dist/popup/client.mjs +49 -32
- package/dist/popup/direction.d.mts +1 -0
- package/dist/popup/direction.mjs +23 -0
- package/dist/popup/listbox-base.mjs +24 -24
- package/dist/popup/listbox-options.mjs +4 -4
- package/dist/popup/listbox-row.mjs +1 -0
- package/dist/popup/tooltip.d.mts +1 -0
- package/dist/popup/tooltip.mjs +48 -42
- package/dist/theme/define-theme.mjs +42 -42
- package/package.json +2 -2
package/dist/Inline/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/index.mjs";
|
|
2
|
+
import { join as t } from "../styles/join.mjs";
|
|
3
3
|
import { root as n } from "./Inline.css.mjs";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
// src/Inline/index.tsx
|
|
6
6
|
function i({ display: i = "flex", flexDirection: a = "row", flexWrap: o = "wrap", alignItems: s = "center", className: c, ...l }) {
|
|
7
|
-
return /* @__PURE__ */ r(
|
|
7
|
+
return /* @__PURE__ */ r(e, {
|
|
8
8
|
alignItems: s,
|
|
9
9
|
display: i,
|
|
10
10
|
flexDirection: a,
|
|
11
11
|
flexWrap: o,
|
|
12
12
|
...l,
|
|
13
|
-
className:
|
|
13
|
+
className: t(n, c)
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
export { i as Inline };
|
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.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, 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;
|
|
2
|
-
@layer components.menu{._393eil1{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)}._393eil1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._393eil1[data-starting-style],._393eil1[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}._393eil2{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}._393eil2:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}._393eil2[data-highlighted]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}._393eil2[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}._393eil3{color:var(--color-fg-muted)}._393eil4{margin-block:calc(-1 * var(--font-size-sm));flex-shrink:0}._393eil5{text-decoration:none}.
|
|
2
|
+
@layer components.menu{._393eil1{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)}._393eil1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._393eil1[data-starting-style],._393eil1[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}._393eil2{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}._393eil2:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}._393eil2[data-highlighted],._393eil2[data-popup-open]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}._393eil2[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}._393eil3{color:var(--color-fg-muted)}._393eil4{margin-block:calc(-1 * var(--font-size-sm));flex-shrink:0}._393eil5{scale:var(--dir) 1;margin-inline-start:auto}._393eil6{text-decoration:none}._393eil7{border-block-start-color:var(--color-border)}._393eil7:before{content:"";border-block-start:var(--space-1) solid;border-block-start-color:inherit;display:block}@media (forced-colors:active){._393eil2[data-highlighted]:not([aria-disabled=true]),._393eil2[data-popup-open]:not([aria-disabled=true]){forced-color-adjust:none;color:highlighttext;background-color:highlight}._393eil2[data-highlighted]:not([aria-disabled=true]):focus-visible{color:canvastext;background-color:canvas}._393eil2[aria-disabled=true]{color:graytext}._393eil3{color:inherit}}}
|
package/dist/Menu/Menu.css.mjs
CHANGED
|
@@ -3,5 +3,5 @@ import "./Menu.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
// src/Menu/Menu.css.ts
|
|
6
|
-
var e = "_393eil0", t = "_393eil1", n = "_393eil2", r = "_393eil3", i = "_393eil4", a = "_393eil5", o = "_393eil6";
|
|
7
|
-
export { r as description, i as icon, n as item,
|
|
6
|
+
var e = "_393eil0", t = "_393eil1", n = "_393eil2", r = "_393eil3", i = "_393eil4", a = "_393eil5", o = "_393eil6", s = "_393eil7";
|
|
7
|
+
export { r as description, i as icon, n as item, o as linkItem, t as popup, e as positioner, s as separator, a as submenuChevron };
|
package/dist/Menu/client.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IconProps } from "../Icon/index.mjs";
|
|
2
2
|
import { TriggerElementProps, TriggerLookProps } from "../popup/client.mjs";
|
|
3
|
+
import "../popup/direction.mjs";
|
|
3
4
|
import "./index.mjs";
|
|
4
5
|
import { ComponentType, ReactNode } from "react";
|
|
5
6
|
import { Menu } from "@base-ui/react/menu";
|
package/dist/Menu/client.mjs
CHANGED
|
@@ -1,99 +1,141 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { DescribedContent as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { Box as e } from "../Box/base.mjs";
|
|
3
|
+
import { IconButton as t } from "../IconButton/index.mjs";
|
|
4
|
+
import { PopupScope as n, triggerElement as r, useClosingRule as i, usePopupScope as a, useRecordOpenChange as o } from "../popup/client.mjs";
|
|
5
|
+
import { TriggerDirection as s, usePhysicalSide as c, useTriggerDirection as l } from "../popup/direction.mjs";
|
|
6
|
+
import { join as u } from "../styles/join.mjs";
|
|
7
|
+
import { splitStyleProps as d } from "../styles/split-style-props.mjs";
|
|
8
|
+
import { DescribedContent as f } from "./item-row.mjs";
|
|
9
|
+
import { positioner as p } from "./Menu.css.mjs";
|
|
10
|
+
import { createContext as m, use as h, useId as g } from "react";
|
|
11
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
12
|
+
import { Menu as v } from "@base-ui/react/menu";
|
|
12
13
|
// src/Menu/client.tsx
|
|
13
|
-
function
|
|
14
|
-
let { ref:
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
function y({ disabled: e = !1, openOnHover: n, delay: i, closeDelay: o, handle: s, payload: c, icon: l, label: u, ...d }) {
|
|
15
|
+
let { ref: f } = a();
|
|
16
|
+
return /* @__PURE__ */ _(v.Trigger, {
|
|
16
17
|
disabled: e,
|
|
17
|
-
openOnHover:
|
|
18
|
-
delay:
|
|
19
|
-
closeDelay:
|
|
20
|
-
handle:
|
|
21
|
-
payload:
|
|
22
|
-
ref:
|
|
23
|
-
render: l ? /* @__PURE__ */
|
|
18
|
+
openOnHover: n,
|
|
19
|
+
delay: i,
|
|
20
|
+
closeDelay: o,
|
|
21
|
+
handle: s,
|
|
22
|
+
payload: c,
|
|
23
|
+
ref: f,
|
|
24
|
+
render: l ? /* @__PURE__ */ _(t, {
|
|
24
25
|
...d,
|
|
25
26
|
icon: l,
|
|
26
27
|
label: u
|
|
27
|
-
}) :
|
|
28
|
+
}) : r(d)
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
let r =
|
|
31
|
+
function b(e, t, n) {
|
|
32
|
+
let r = g();
|
|
32
33
|
return t === void 0 ? { content: e } : {
|
|
33
34
|
aria: { "aria-describedby": n ? `${r} ${n}` : r },
|
|
34
|
-
content: /* @__PURE__ */ f
|
|
35
|
+
content: /* @__PURE__ */ _(f, {
|
|
35
36
|
description: t,
|
|
36
37
|
id: r,
|
|
37
38
|
children: e
|
|
38
39
|
})
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
let { aria: r, content: i } =
|
|
43
|
-
return /* @__PURE__ */
|
|
42
|
+
function x({ description: e, children: t, ...n }) {
|
|
43
|
+
let { aria: r, content: i } = b(t, e, n["aria-describedby"]);
|
|
44
|
+
return /* @__PURE__ */ _(v.Item, {
|
|
44
45
|
...n,
|
|
45
46
|
...r,
|
|
46
47
|
children: i
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
let { aria: r, content: i } =
|
|
51
|
-
return /* @__PURE__ */
|
|
50
|
+
function S({ description: e, children: t, ...n }) {
|
|
51
|
+
let { aria: r, content: i } = b(t, e, n["aria-describedby"]);
|
|
52
|
+
return /* @__PURE__ */ _(v.LinkItem, {
|
|
52
53
|
...n,
|
|
53
54
|
...r,
|
|
54
55
|
children: i
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
-
let {
|
|
59
|
-
return /* @__PURE__ */
|
|
58
|
+
function C({ description: e, children: t, ...n }) {
|
|
59
|
+
let { ref: r } = a(), { aria: i, content: o } = b(t, e, n["aria-describedby"]);
|
|
60
|
+
return /* @__PURE__ */ _(v.SubmenuTrigger, {
|
|
61
|
+
...n,
|
|
62
|
+
...i,
|
|
63
|
+
ref: r,
|
|
64
|
+
children: o
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function w({ children: e }) {
|
|
68
|
+
let { container: t } = a();
|
|
69
|
+
return /* @__PURE__ */ _(v.Portal, {
|
|
60
70
|
container: t,
|
|
61
71
|
children: e
|
|
62
72
|
});
|
|
63
73
|
}
|
|
64
|
-
function
|
|
65
|
-
return /* @__PURE__ */
|
|
74
|
+
function T(e) {
|
|
75
|
+
return /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(O, { ...e }) });
|
|
76
|
+
}
|
|
77
|
+
function E(e, t) {
|
|
78
|
+
return l(e, a().trigger, o(t));
|
|
79
|
+
}
|
|
80
|
+
var D = m(!1);
|
|
81
|
+
function O({ onOpenChange: e, ...t }) {
|
|
82
|
+
let [n, r] = E(t.open ?? t.defaultOpen, e);
|
|
83
|
+
return /* @__PURE__ */ _(D, {
|
|
84
|
+
value: !1,
|
|
85
|
+
children: /* @__PURE__ */ _(s, {
|
|
86
|
+
value: n,
|
|
87
|
+
children: /* @__PURE__ */ _(v.Root, {
|
|
88
|
+
...t,
|
|
89
|
+
onOpenChange: r
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function k(e) {
|
|
95
|
+
return /* @__PURE__ */ _(n, {
|
|
96
|
+
nested: !0,
|
|
97
|
+
children: /* @__PURE__ */ _(A, { ...e })
|
|
98
|
+
});
|
|
66
99
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
100
|
+
function A({ onOpenChange: e, ...t }) {
|
|
101
|
+
let [n, r] = E(t.open ?? t.defaultOpen, e);
|
|
102
|
+
return /* @__PURE__ */ _(D, {
|
|
103
|
+
value: !0,
|
|
104
|
+
children: /* @__PURE__ */ _(s, {
|
|
105
|
+
value: n,
|
|
106
|
+
children: /* @__PURE__ */ _(v.SubmenuRoot, {
|
|
107
|
+
...t,
|
|
108
|
+
onOpenChange: r
|
|
109
|
+
})
|
|
110
|
+
})
|
|
71
111
|
});
|
|
72
112
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
113
|
+
function j({ finalFocus: e, side: t, ...n }) {
|
|
114
|
+
let r = h(D), i = c(t ?? (r ? "inline-end" : "bottom"));
|
|
115
|
+
return /* @__PURE__ */ _(v.Positioner, {
|
|
75
116
|
...n,
|
|
76
117
|
collisionPadding: 8,
|
|
77
|
-
render: (
|
|
78
|
-
let [,
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
...
|
|
118
|
+
render: (t, { open: n }) => {
|
|
119
|
+
let [, r] = d(t);
|
|
120
|
+
return /* @__PURE__ */ _(M, {
|
|
121
|
+
...r,
|
|
81
122
|
finalFocus: e,
|
|
82
|
-
open:
|
|
123
|
+
open: n
|
|
83
124
|
});
|
|
84
125
|
},
|
|
126
|
+
side: i,
|
|
85
127
|
sideOffset: 4
|
|
86
128
|
});
|
|
87
129
|
}
|
|
88
|
-
function
|
|
89
|
-
return /* @__PURE__ */
|
|
90
|
-
...
|
|
91
|
-
...
|
|
92
|
-
finalFocus:
|
|
130
|
+
function M({ open: t, finalFocus: n, ref: r, className: a, ...o }) {
|
|
131
|
+
return /* @__PURE__ */ _(e, {
|
|
132
|
+
...o,
|
|
133
|
+
...i(r, {
|
|
134
|
+
finalFocus: n,
|
|
93
135
|
open: t
|
|
94
136
|
}),
|
|
95
|
-
className:
|
|
137
|
+
className: u(p, a),
|
|
96
138
|
zIndex: "popover"
|
|
97
139
|
});
|
|
98
140
|
}
|
|
99
|
-
export {
|
|
141
|
+
export { x as MenuItemPart, S as MenuLinkItemPart, w as MenuPortal, j as MenuPositioner, T as MenuRootScope, k as MenuSubmenuRootScope, C as MenuSubmenuTriggerPart, y as MenuTrigger };
|
package/dist/Menu/index.d.mts
CHANGED
|
@@ -25,10 +25,16 @@ export type MenuSeparatorProps = PartProps<Menu$1.Separator.Props>;
|
|
|
25
25
|
export type MenuGroupProps = PartProps<Menu$1.Group.Props> & {
|
|
26
26
|
label: ReactNode;
|
|
27
27
|
};
|
|
28
|
+
export type MenuSubmenuRootProps = Pick<Menu$1.SubmenuRoot.Props, "open" | "defaultOpen" | "onOpenChange" | "disabled" | "loopFocus" | "closeParentOnEsc"> & {
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
};
|
|
31
|
+
export type MenuSubmenuTriggerProps = Omit<PartProps<Menu$1.SubmenuTrigger.Props>, "nativeButton" | "disabled"> & Pick<IconSlotProps, "iconStart"> & ItemDescription;
|
|
28
32
|
declare function MenuRoot(props: MenuProps): import("react").JSX.Element;
|
|
29
33
|
declare function MenuPopup({ side, align, backgroundColor, borderRadius, boxShadow, padding, className, style, ...props }: MenuPopupProps): import("react").JSX.Element;
|
|
30
34
|
declare function MenuItem({ variant, description, iconStart, iconEnd, display, minBlockSize, paddingInline, borderRadius, color, className, style, children, ...props }: MenuItemProps): import("react").JSX.Element;
|
|
31
35
|
declare function MenuLinkItem({ href, disabled, closeOnClick, onClick, description, iconStart, iconEnd, display, minBlockSize, paddingInline, borderRadius, color, className, style, children, ...props }: MenuLinkItemProps): import("react").JSX.Element;
|
|
36
|
+
declare function MenuSubmenuRoot(props: MenuSubmenuRootProps): import("react").JSX.Element;
|
|
37
|
+
declare function MenuSubmenuTrigger({ description, iconStart, display, minBlockSize, paddingInline, borderRadius, color, className, style, ref, children, ...props }: MenuSubmenuTriggerProps): import("react").JSX.Element;
|
|
32
38
|
declare function MenuSeparator({ paddingBlock, paddingInline, className, style, ...props }: MenuSeparatorProps): import("react").JSX.Element;
|
|
33
39
|
declare function MenuGroup({ label, className, style, children, ...props }: MenuGroupProps): import("react").JSX.Element;
|
|
34
40
|
export declare const Menu: typeof MenuRoot & {
|
|
@@ -38,5 +44,7 @@ export declare const Menu: typeof MenuRoot & {
|
|
|
38
44
|
LinkItem: typeof MenuLinkItem;
|
|
39
45
|
Separator: typeof MenuSeparator;
|
|
40
46
|
Group: typeof MenuGroup;
|
|
47
|
+
SubmenuRoot: typeof MenuSubmenuRoot;
|
|
48
|
+
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
41
49
|
};
|
|
42
50
|
export type { MenuTriggerProps };
|
package/dist/Menu/index.mjs
CHANGED
|
@@ -1,112 +1,146 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { ChevronRightIcon as t } from "../icons/ChevronRightIcon.mjs";
|
|
3
|
+
import { join as n } from "../styles/join.mjs";
|
|
4
|
+
import { splitStyleProps as r } from "../styles/split-style-props.mjs";
|
|
5
|
+
import { Text as i } from "../Text/index.mjs";
|
|
6
|
+
import { MenuItemPart as a, MenuLinkItemPart as o, MenuPortal as s, MenuPositioner as c, MenuRootScope as l, MenuSubmenuRootScope as u, MenuSubmenuTriggerPart as d, MenuTrigger as f } from "./client.mjs";
|
|
7
|
+
import { itemChildren as p, itemLayout as m } from "./item-row.mjs";
|
|
8
|
+
import { item as h, linkItem as g, popup as _, separator as v, submenuChevron as y } from "./Menu.css.mjs";
|
|
9
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
10
|
+
import { Menu as S } from "@base-ui/react/menu";
|
|
10
11
|
// src/Menu/index.tsx
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
function C(e) {
|
|
13
|
+
return /* @__PURE__ */ b(l, { ...e });
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
let [
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
function w({ side: t, align: i = "start", backgroundColor: a = "bgRaised", borderRadius: o = "med", boxShadow: l = "med", padding: u = "4", className: d, style: f, ...p }) {
|
|
16
|
+
let [m, h] = r(p);
|
|
17
|
+
return /* @__PURE__ */ b(s, { children: /* @__PURE__ */ b(c, {
|
|
17
18
|
align: i,
|
|
18
|
-
finalFocus:
|
|
19
|
-
side:
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
-
...
|
|
22
|
-
render: /* @__PURE__ */
|
|
19
|
+
finalFocus: h.finalFocus !== void 0 && h.finalFocus !== !0,
|
|
20
|
+
side: t,
|
|
21
|
+
children: /* @__PURE__ */ b(S.Popup, {
|
|
22
|
+
...h,
|
|
23
|
+
render: /* @__PURE__ */ b(e, {
|
|
23
24
|
backgroundColor: a,
|
|
24
|
-
borderRadius:
|
|
25
|
-
boxShadow:
|
|
26
|
-
padding:
|
|
27
|
-
...
|
|
28
|
-
className:
|
|
29
|
-
style:
|
|
25
|
+
borderRadius: o,
|
|
26
|
+
boxShadow: l,
|
|
27
|
+
padding: u,
|
|
28
|
+
...m,
|
|
29
|
+
className: n(_, d),
|
|
30
|
+
style: f
|
|
30
31
|
})
|
|
31
32
|
})
|
|
32
33
|
}) });
|
|
33
34
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
let [
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
label:
|
|
39
|
-
...
|
|
40
|
-
description:
|
|
41
|
-
render: /* @__PURE__ */
|
|
42
|
-
...
|
|
43
|
-
display:
|
|
44
|
-
minBlockSize:
|
|
45
|
-
paddingInline:
|
|
46
|
-
borderRadius:
|
|
47
|
-
color:
|
|
48
|
-
...
|
|
49
|
-
className:
|
|
50
|
-
style:
|
|
35
|
+
var T = (e) => e == null || e === !1 || e === "" ? void 0 : e, E = (e, t) => t !== void 0 && (typeof e == "string" || typeof e == "number") ? String(e) : void 0;
|
|
36
|
+
function D({ variant: t = "neutral", description: i, iconStart: o, iconEnd: s, display: c = "flex", minBlockSize: l = "sm", paddingInline: u = "12", borderRadius: d = "xs", color: f = t === "danger" ? "danger" : "fg", className: g, style: _, children: v, ...y }) {
|
|
37
|
+
let [x, S] = r(y), C = T(i);
|
|
38
|
+
return /* @__PURE__ */ b(a, {
|
|
39
|
+
label: E(v, C),
|
|
40
|
+
...S,
|
|
41
|
+
description: C,
|
|
42
|
+
render: /* @__PURE__ */ b(e, {
|
|
43
|
+
...m(C !== void 0),
|
|
44
|
+
display: c,
|
|
45
|
+
minBlockSize: l,
|
|
46
|
+
paddingInline: u,
|
|
47
|
+
borderRadius: d,
|
|
48
|
+
color: f,
|
|
49
|
+
...x,
|
|
50
|
+
className: n(h, g),
|
|
51
|
+
style: _
|
|
51
52
|
}),
|
|
52
|
-
children:
|
|
53
|
+
children: p(v, {
|
|
53
54
|
iconStart: o,
|
|
54
55
|
iconEnd: s
|
|
55
56
|
})
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
let [D, O] =
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
label:
|
|
59
|
+
function O({ href: t, disabled: i = !1, closeOnClick: a = !0, onClick: s, description: c, iconStart: l, iconEnd: u, display: d = "flex", minBlockSize: f = "sm", paddingInline: _ = "12", borderRadius: v = "xs", color: y = "fg", className: x, style: S, children: C, ...w }) {
|
|
60
|
+
let [D, O] = r(w), k = T(c);
|
|
61
|
+
return /* @__PURE__ */ b(o, {
|
|
62
|
+
label: E(C, k),
|
|
62
63
|
...O,
|
|
63
|
-
"aria-disabled":
|
|
64
|
-
closeOnClick: !
|
|
64
|
+
"aria-disabled": i || void 0,
|
|
65
|
+
closeOnClick: !i && a,
|
|
65
66
|
description: k,
|
|
66
|
-
href:
|
|
67
|
-
onClick:
|
|
68
|
-
render: /* @__PURE__ */
|
|
67
|
+
href: i ? void 0 : t,
|
|
68
|
+
onClick: i ? void 0 : s,
|
|
69
|
+
render: /* @__PURE__ */ b(e, {
|
|
69
70
|
as: "a",
|
|
70
|
-
...
|
|
71
|
-
display:
|
|
72
|
-
minBlockSize:
|
|
73
|
-
paddingInline:
|
|
74
|
-
borderRadius:
|
|
75
|
-
color:
|
|
71
|
+
...m(k !== void 0),
|
|
72
|
+
display: d,
|
|
73
|
+
minBlockSize: f,
|
|
74
|
+
paddingInline: _,
|
|
75
|
+
borderRadius: v,
|
|
76
|
+
color: y,
|
|
76
77
|
...D,
|
|
77
|
-
className:
|
|
78
|
-
style:
|
|
78
|
+
className: n(h, g, x),
|
|
79
|
+
style: S
|
|
79
80
|
}),
|
|
80
|
-
children:
|
|
81
|
-
iconStart:
|
|
82
|
-
iconEnd:
|
|
81
|
+
children: p(C, {
|
|
82
|
+
iconStart: l,
|
|
83
|
+
iconEnd: u
|
|
83
84
|
})
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
function k(e) {
|
|
88
|
+
return /* @__PURE__ */ b(u, { ...e });
|
|
89
|
+
}
|
|
90
|
+
function A({ className: e, ...r }) {
|
|
91
|
+
return /* @__PURE__ */ b(t, {
|
|
92
|
+
...r,
|
|
93
|
+
className: n(y, e)
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function j({ description: t, iconStart: i, display: a = "flex", minBlockSize: o = "sm", paddingInline: s = "12", borderRadius: c = "xs", color: l = "fg", className: u, style: f, ref: g, children: _, ...v }) {
|
|
97
|
+
let [y, x] = r(v), S = T(t);
|
|
98
|
+
return /* @__PURE__ */ b(d, {
|
|
99
|
+
label: E(_, S),
|
|
100
|
+
...x,
|
|
101
|
+
description: S,
|
|
102
|
+
render: /* @__PURE__ */ b(e, {
|
|
103
|
+
...m(S !== void 0),
|
|
104
|
+
display: a,
|
|
105
|
+
minBlockSize: o,
|
|
106
|
+
paddingInline: s,
|
|
107
|
+
borderRadius: c,
|
|
108
|
+
color: l,
|
|
109
|
+
...y,
|
|
110
|
+
className: n(h, u),
|
|
111
|
+
ref: g,
|
|
112
|
+
style: f
|
|
113
|
+
}),
|
|
114
|
+
children: p(_, {
|
|
115
|
+
iconStart: i,
|
|
116
|
+
iconEnd: A
|
|
117
|
+
})
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function M({ paddingBlock: t = "4", paddingInline: i = "8", className: a, style: o, ...s }) {
|
|
121
|
+
let [c, l] = r(s);
|
|
122
|
+
return /* @__PURE__ */ b(S.Separator, {
|
|
123
|
+
...l,
|
|
124
|
+
render: /* @__PURE__ */ b(e, {
|
|
125
|
+
paddingBlock: t,
|
|
92
126
|
paddingInline: i,
|
|
93
|
-
...
|
|
94
|
-
className:
|
|
127
|
+
...c,
|
|
128
|
+
className: n(v, a),
|
|
95
129
|
style: o
|
|
96
130
|
})
|
|
97
131
|
});
|
|
98
132
|
}
|
|
99
|
-
function
|
|
100
|
-
let [c, l] =
|
|
101
|
-
return /* @__PURE__ */
|
|
133
|
+
function N({ label: t, className: n, style: a, children: o, ...s }) {
|
|
134
|
+
let [c, l] = r(s);
|
|
135
|
+
return /* @__PURE__ */ x(S.Group, {
|
|
102
136
|
...l,
|
|
103
|
-
render: /* @__PURE__ */
|
|
137
|
+
render: /* @__PURE__ */ b(e, {
|
|
104
138
|
...c,
|
|
105
|
-
className:
|
|
139
|
+
className: n,
|
|
106
140
|
style: a
|
|
107
141
|
}),
|
|
108
|
-
children: [/* @__PURE__ */
|
|
109
|
-
render: /* @__PURE__ */
|
|
142
|
+
children: [/* @__PURE__ */ b(S.GroupLabel, {
|
|
143
|
+
render: /* @__PURE__ */ b(i, {
|
|
110
144
|
as: "div",
|
|
111
145
|
color: "fgMuted",
|
|
112
146
|
font: "label",
|
|
@@ -114,16 +148,18 @@ function E({ label: e, className: i, style: a, children: o, ...s }) {
|
|
|
114
148
|
paddingInline: "12",
|
|
115
149
|
size: "xs"
|
|
116
150
|
}),
|
|
117
|
-
children:
|
|
151
|
+
children: t
|
|
118
152
|
}), o]
|
|
119
153
|
});
|
|
120
154
|
}
|
|
121
|
-
var
|
|
122
|
-
Trigger:
|
|
123
|
-
Popup:
|
|
124
|
-
Item:
|
|
125
|
-
LinkItem:
|
|
126
|
-
Separator:
|
|
127
|
-
Group:
|
|
155
|
+
var P = Object.assign(C, {
|
|
156
|
+
Trigger: f,
|
|
157
|
+
Popup: w,
|
|
158
|
+
Item: D,
|
|
159
|
+
LinkItem: O,
|
|
160
|
+
Separator: M,
|
|
161
|
+
Group: N,
|
|
162
|
+
SubmenuRoot: k,
|
|
163
|
+
SubmenuTrigger: j
|
|
128
164
|
});
|
|
129
|
-
export {
|
|
165
|
+
export { P as Menu };
|
|
@@ -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.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, 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;
|
|
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}: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:var(--anchor-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);overflow-y:auto}._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;-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}}}
|
|
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}: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);overflow-y:auto}._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}}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useRecordOpenChange as e } from "../popup/client.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ListboxTrigger as t } from "../popup/listbox.mjs";
|
|
4
|
+
import { ListboxSummary as n } from "../popup/listbox-summary.mjs";
|
|
5
5
|
import { count as r, labels as i, summary as a, trigger as o, value as s } from "./MultiSelect.css.mjs";
|
|
6
6
|
import { useMemo as c } from "react";
|
|
7
7
|
import { jsx as l } from "react/jsx-runtime";
|
|
@@ -9,7 +9,7 @@ import { Select as u } from "@base-ui/react/select";
|
|
|
9
9
|
// src/MultiSelect/client.tsx
|
|
10
10
|
function d({ options: e, placeholder: d, countLabel: f, disabled: p, iconStart: m, size: h }) {
|
|
11
11
|
let g = c(() => new Map(e.map((e) => [e.value, e.label])), [e]);
|
|
12
|
-
return /* @__PURE__ */ l(
|
|
12
|
+
return /* @__PURE__ */ l(t, {
|
|
13
13
|
className: o,
|
|
14
14
|
disabled: p,
|
|
15
15
|
iconStart: m,
|
|
@@ -17,7 +17,7 @@ function d({ options: e, placeholder: d, countLabel: f, disabled: p, iconStart:
|
|
|
17
17
|
children: /* @__PURE__ */ l(u.Value, {
|
|
18
18
|
className: s,
|
|
19
19
|
placeholder: d,
|
|
20
|
-
children: (e) => e.length > 0 ? /* @__PURE__ */ l(
|
|
20
|
+
children: (e) => e.length > 0 ? /* @__PURE__ */ l(n, {
|
|
21
21
|
classNames: {
|
|
22
22
|
count: r,
|
|
23
23
|
labels: i,
|
|
@@ -2,8 +2,8 @@ import { Field as e } from "../Field/index.mjs";
|
|
|
2
2
|
import { ListboxLabel as t, ListboxScope as n } from "../popup/listbox-base.mjs";
|
|
3
3
|
import { ListboxPopup as r, ListboxPortal as i, ListboxPositioner as a } from "../popup/listbox.mjs";
|
|
4
4
|
import { ListboxOptions as o } from "../popup/listbox-options.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { MultiSelectRoot as s, MultiSelectTrigger as c } from "./client.mjs";
|
|
6
|
+
import { check as l, hiddenLabel as u, item as d, popup as f } from "./MultiSelect.css.mjs";
|
|
7
7
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
8
|
// src/MultiSelect/index.tsx
|
|
9
9
|
function h({ options: h, value: g, defaultValue: _, onValueChange: v, label: y, hideLabel: b = !1, iconStart: x, description: S, error: C, placeholder: w = "Select", countLabel: T = "{count} selected", disabled: E = !1, required: D = !1, size: O = "med", name: k, className: A, style: j, ...M }) {
|
|
@@ -14,7 +14,7 @@ function h({ options: h, value: g, defaultValue: _, onValueChange: v, label: y,
|
|
|
14
14
|
invalid: C != null && C !== !1 && C !== "",
|
|
15
15
|
style: j,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */ p(n, { children: /* @__PURE__ */ m(
|
|
17
|
+
/* @__PURE__ */ p(n, { children: /* @__PURE__ */ m(s, {
|
|
18
18
|
defaultValue: _,
|
|
19
19
|
disabled: E,
|
|
20
20
|
name: k,
|
|
@@ -23,10 +23,10 @@ function h({ options: h, value: g, defaultValue: _, onValueChange: v, label: y,
|
|
|
23
23
|
value: g,
|
|
24
24
|
children: [
|
|
25
25
|
/* @__PURE__ */ p(t, {
|
|
26
|
-
className: b ?
|
|
26
|
+
className: b ? u : void 0,
|
|
27
27
|
children: y
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */ p(
|
|
29
|
+
/* @__PURE__ */ p(c, {
|
|
30
30
|
countLabel: T,
|
|
31
31
|
disabled: E,
|
|
32
32
|
iconStart: x,
|
|
@@ -35,10 +35,10 @@ function h({ options: h, value: g, defaultValue: _, onValueChange: v, label: y,
|
|
|
35
35
|
size: O
|
|
36
36
|
}),
|
|
37
37
|
/* @__PURE__ */ p(i, { children: /* @__PURE__ */ p(a, { children: /* @__PURE__ */ p(r, {
|
|
38
|
-
className:
|
|
38
|
+
className: f,
|
|
39
39
|
children: /* @__PURE__ */ p(o, {
|
|
40
|
-
checkClassName:
|
|
41
|
-
itemClassName:
|
|
40
|
+
checkClassName: l,
|
|
41
|
+
itemClassName: d,
|
|
42
42
|
options: h
|
|
43
43
|
})
|
|
44
44
|
}) }) })
|
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.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, 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;
|
|
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-
|
|
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);display:grid}._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));flex-shrink:0;justify-content:flex-end;display:flex}._1kvngp0a{opacity:0;grid-area:1/2;align-self:center;display:flex;position:relative}._1kvngp04:focus-within ._1kvngp0a,._1kvngp04:has([aria-expanded=true]) ._1kvngp0a{opacity:1}:where(._1kvngp0a)>*{border-radius:var(--radius-xs)}._1kvngp0b{position:relative}._1kvngp0c{inline-size:var(--space-6);block-size:var(--space-6);border-radius:var(--radius-full);background-color:var(--color-success);pointer-events:none;box-shadow:0 0 0 calc(var(--space-2) + var(--space-1)) color-mix(in oklch, var(--color-success) 18%, transparent);flex-shrink:0}._1kvngp0d{inline-size:var(--space-6);block-size:var(--space-6);border-radius:var(--radius-full);background-color:var(--color-success);pointer-events:none;box-shadow:0 0 0 var(--space-2) var(--color-bg-panel);flex-shrink:0;display:none;position:absolute;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,._1kvngp0c{display:none}._1kvngp0d{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}._1kvngp0c{forced-color-adjust:none;box-shadow:none;background-color:currentColor}._1kvngp0d{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}}
|