@jonmilner/ui 0.21.2 → 0.23.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/README.md +17 -0
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/Alert/Alert.css +2 -0
- package/dist/Alert/Alert.css.mjs +9 -0
- package/dist/Alert/index.d.mts +13 -0
- package/dist/Alert/index.mjs +45 -0
- package/dist/AlertDialog/client.mjs +4 -4
- package/dist/AlertDialog/index.d.mts +3 -2
- package/dist/AlertDialog/index.mjs +10 -9
- package/dist/Avatar/Avatar.css +1 -1
- package/dist/Avatar/index.d.mts +1 -1
- package/dist/Avatar/index.mjs +5 -5
- package/dist/Badge/Badge.css +1 -1
- package/dist/Badge/index.d.mts +1 -1
- package/dist/Badge/index.mjs +12 -12
- package/dist/Body/index.d.mts +9 -0
- package/dist/Body/index.mjs +12 -0
- package/dist/Box/Box.css +1 -1
- package/dist/Box/index.mjs +1 -1
- package/dist/Button/Button.css +1 -1
- package/dist/Button/index.d.mts +1 -1
- package/dist/Button/index.mjs +22 -22
- package/dist/Caption/index.d.mts +6 -0
- package/dist/Caption/index.mjs +14 -0
- package/dist/Checkbox/Checkbox.css +1 -1
- package/dist/Checkbox/index.mjs +7 -7
- package/dist/Chip/Chip.css +1 -1
- package/dist/Chip/index.mjs +35 -35
- package/dist/Clickable/Clickable.css +1 -1
- package/dist/Clickable/index.d.mts +1 -1
- package/dist/Clickable/index.mjs +4 -4
- package/dist/Code/Code.css +2 -0
- package/dist/Code/Code.css.mjs +7 -0
- package/dist/Code/index.d.mts +10 -0
- package/dist/Code/index.mjs +40 -0
- package/dist/ColorField/ColorField.css +2 -2
- package/dist/ColorField/client.mjs +6 -6
- package/dist/ColorField/index.mjs +14 -14
- package/dist/Combobox/Combobox.css +2 -2
- package/dist/Combobox/client.mjs +26 -26
- package/dist/Combobox/index.mjs +20 -20
- package/dist/Dialog/Dialog.css +2 -2
- package/dist/Dialog/client.d.mts +1 -1
- package/dist/Dialog/client.mjs +30 -28
- package/dist/Dialog/index.d.mts +2 -2
- package/dist/Dialog/index.mjs +19 -19
- package/dist/Field/Field.css +1 -1
- package/dist/Field/client.mjs +6 -6
- package/dist/Field/index.mjs +29 -29
- package/dist/Flex/index.d.mts +5 -0
- package/dist/Flex/index.mjs +14 -0
- package/dist/Heading/Heading.css +1 -1
- package/dist/Icon/Icon.css +1 -1
- package/dist/IconButton/IconButton.css +2 -2
- 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/Inline.css +1 -1
- package/dist/Inline/index.d.mts +2 -2
- package/dist/Inline/index.mjs +4 -4
- package/dist/Label/index.d.mts +9 -0
- package/dist/Label/index.mjs +19 -0
- package/dist/Menu/Menu.css +2 -2
- package/dist/Menu/Menu.css.mjs +1 -1
- package/dist/Menu/client.d.mts +1 -0
- package/dist/Menu/client.mjs +83 -62
- package/dist/Menu/index.d.mts +8 -0
- package/dist/Menu/index.mjs +123 -87
- package/dist/Menu/item-row.mjs +2 -2
- package/dist/MultiSelect/MultiSelect.css +2 -2
- package/dist/MultiSelect/client.mjs +4 -4
- package/dist/MultiSelect/index.mjs +8 -8
- package/dist/NavList/NavList.css +2 -2
- 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 +2 -2
- package/dist/NumberField/index.mjs +17 -17
- package/dist/Popover/Popover.css +2 -0
- package/dist/Popover/Popover.css.mjs +7 -0
- package/dist/Popover/client.d.mts +11 -0
- package/dist/Popover/client.mjs +54 -0
- package/dist/Popover/index.d.mts +20 -0
- package/dist/Popover/index.mjs +39 -0
- package/dist/RadioGroup/RadioGroup.css +1 -1
- package/dist/RadioGroup/index.mjs +23 -23
- package/dist/SearchField/SearchField.css +2 -2
- package/dist/SearchField/client.mjs +13 -13
- package/dist/SearchField/index.mjs +16 -16
- package/dist/Select/Select.css +2 -2
- package/dist/Select/client.mjs +11 -11
- package/dist/Select/index.mjs +8 -8
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/Sidebar/index.d.mts +1 -1
- package/dist/Sidebar/index.mjs +21 -21
- package/dist/SidebarLayout/SidebarLayout.css +1 -1
- package/dist/SidebarLayout/index.d.mts +1 -1
- package/dist/SidebarLayout/index.mjs +8 -8
- package/dist/Stack/Stack.css +1 -1
- package/dist/Stack/index.d.mts +2 -2
- package/dist/Stack/index.mjs +4 -4
- package/dist/Switch/Switch.css +1 -1
- package/dist/Switch/index.mjs +13 -13
- package/dist/Table/Table.css +2 -2
- package/dist/Table/Table.css.mjs +4 -2
- package/dist/Table/index.d.mts +4 -10
- package/dist/Table/index.mjs +80 -94
- package/dist/Tabs/Tabs.css +1 -1
- package/dist/Tabs/index.mjs +26 -26
- package/dist/Tag/Tag.css +1 -1
- package/dist/Tag/index.d.mts +1 -1
- package/dist/Tag/index.mjs +16 -16
- package/dist/Text/Text.css +1 -1
- package/dist/Text/index.d.mts +2 -2
- package/dist/Text/index.mjs +4 -4
- package/dist/TextField/TextField.css +2 -2
- package/dist/TextField/index.mjs +16 -16
- package/dist/Textarea/Textarea.css +2 -2
- package/dist/Textarea/index.mjs +9 -9
- package/dist/Toast/Toast.css +2 -2
- package/dist/Toast/Toast.css.mjs +10 -7
- package/dist/Toast/client.d.mts +5 -19
- package/dist/Toast/client.mjs +117 -152
- package/dist/Tooltip/Tooltip.css +1 -1
- package/dist/Tooltip/base.mjs +13 -13
- package/dist/VisuallyHidden/VisuallyHidden.css +1 -1
- package/dist/base.css +2 -2
- package/dist/brands/default.mjs +2 -1
- package/dist/brands/forced-colors.mjs +2 -1
- package/dist/brands/neutral.mjs +8 -7
- package/dist/contrast/contrast.d.mts +1 -1
- package/dist/contrast/contrast.mjs +42 -34
- package/dist/contrast/mixes.mjs +37 -30
- package/dist/docs/Alert.md +106 -0
- package/dist/docs/AlertDialog.md +25 -11
- package/dist/docs/Body.md +74 -0
- package/dist/docs/Box.md +4 -3
- package/dist/docs/Caption.md +77 -0
- package/dist/docs/Code.md +84 -0
- package/dist/docs/ColorField.md +1 -1
- package/dist/docs/Combobox.md +3 -1
- package/dist/docs/Dialog.md +28 -4
- package/dist/docs/Flex.md +76 -0
- package/dist/docs/Icon.md +1 -0
- package/dist/docs/IconButton.md +9 -1
- package/dist/docs/Inline.md +3 -2
- package/dist/docs/Label.md +77 -0
- package/dist/docs/Menu.md +54 -6
- package/dist/docs/MultiSelect.md +2 -0
- package/dist/docs/NavList.md +2 -2
- package/dist/docs/NumberField.md +1 -1
- package/dist/docs/Popover.md +135 -0
- package/dist/docs/SearchField.md +1 -1
- package/dist/docs/Select.md +2 -0
- package/dist/docs/Stack.md +12 -10
- package/dist/docs/Table.md +5 -5
- package/dist/docs/Text.md +30 -23
- package/dist/docs/TextField.md +1 -1
- package/dist/docs/Textarea.md +1 -1
- package/dist/docs/Toast.md +14 -7
- package/dist/docs/Tooltip.md +2 -2
- package/dist/docs/lint.md +18 -0
- package/dist/docs/llms.txt +20 -11
- package/dist/docs/manifest.json +732 -65
- package/dist/docs/migrations/0.22.0.md +35 -0
- package/dist/docs/migrations/0.23.0.md +84 -0
- package/dist/docs/theming.md +3 -3
- package/dist/icons/TriangleAlertIcon.d.mts +2 -0
- package/dist/icons/TriangleAlertIcon.mjs +10 -0
- package/dist/icons/index.d.mts +6 -5
- package/dist/icons/index.mjs +35 -34
- package/dist/index.d.mts +24 -16
- package/dist/index.mjs +47 -40
- package/dist/lint/index.d.mts +20 -1
- package/dist/lint/index.mjs +19 -3
- package/dist/popup/client.d.mts +1 -1
- package/dist/popup/client.mjs +59 -41
- package/dist/popup/direction.d.mts +2 -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/positioner.mjs +27 -0
- package/dist/popup/tooltip.d.mts +1 -0
- package/dist/popup/tooltip.mjs +48 -42
- package/dist/scroll-region/scroll-region.d.mts +12 -0
- package/dist/scroll-region/scroll-region.mjs +29 -0
- package/dist/status-message/status-message.d.mts +5 -0
- package/dist/status-message/status-message.mjs +74 -0
- package/dist/status-message/tones.d.mts +7 -0
- package/dist/status-message/tones.mjs +8 -0
- package/dist/styles/atom-values.mjs +131 -0
- package/dist/styles/atoms.css +1 -1
- package/dist/styles/layers.css +1 -1
- package/dist/styles/responsive.css +1 -1
- package/dist/styles/scroll-region.css +2 -0
- package/dist/styles/scroll-region.css.mjs +7 -0
- package/dist/styles/status-message.css +2 -0
- package/dist/styles/status-message.css.mjs +7 -0
- package/dist/theme/define-theme.mjs +42 -42
- package/dist/tokens/contract.d.mts +1 -1
- package/dist/tokens/roles.d.mts +1 -1
- package/dist/tokens/roles.mjs +1 -1
- package/package.json +30 -2
package/dist/Dialog/client.mjs
CHANGED
|
@@ -1,71 +1,73 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Box as e } from "../Box/base.mjs";
|
|
3
|
+
import { PopupScope as t, triggerElement as n, useClosingRule as r, usePopupScope as i, useRecordOpenChange as a } from "../popup/client.mjs";
|
|
4
|
+
import { join as o } from "../styles/join.mjs";
|
|
5
|
+
import { splitStyleProps as s } from "../styles/split-style-props.mjs";
|
|
6
6
|
import { jsx as c } from "react/jsx-runtime";
|
|
7
7
|
import { Dialog as l } from "@base-ui/react/dialog";
|
|
8
8
|
// src/Dialog/client.tsx
|
|
9
|
-
function u({ disabled: e = !1, handle: t, payload:
|
|
10
|
-
let { ref: s } =
|
|
9
|
+
function u({ disabled: e = !1, handle: t, payload: r, id: a, ...o }) {
|
|
10
|
+
let { ref: s } = i();
|
|
11
11
|
return /* @__PURE__ */ c(l.Trigger, {
|
|
12
12
|
disabled: e,
|
|
13
13
|
handle: t,
|
|
14
|
-
payload:
|
|
15
|
-
id:
|
|
14
|
+
payload: r,
|
|
15
|
+
id: a,
|
|
16
16
|
ref: s,
|
|
17
|
-
render:
|
|
17
|
+
render: n(o)
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function d({ disabled: e = !1, ...t }) {
|
|
21
21
|
return /* @__PURE__ */ c(l.Close, {
|
|
22
22
|
disabled: e,
|
|
23
|
-
render:
|
|
23
|
+
render: n(t)
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function f({ children: e }) {
|
|
27
|
-
let { container: t } =
|
|
27
|
+
let { container: t } = i();
|
|
28
28
|
return /* @__PURE__ */ c(l.Portal, {
|
|
29
29
|
container: t,
|
|
30
30
|
children: e
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
function p(e) {
|
|
34
|
-
return /* @__PURE__ */ c(
|
|
34
|
+
return /* @__PURE__ */ c(t, { children: /* @__PURE__ */ c(m, { ...e }) });
|
|
35
35
|
}
|
|
36
36
|
function m({ onOpenChange: e, ...t }) {
|
|
37
37
|
return /* @__PURE__ */ c(l.Root, {
|
|
38
38
|
...t,
|
|
39
|
-
onOpenChange:
|
|
39
|
+
onOpenChange: a(e)
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function h({ frame: e, ...
|
|
43
|
-
let
|
|
42
|
+
function h({ frame: e, ...t }) {
|
|
43
|
+
let n = t.finalFocus, r = n && typeof n == "object" ? n : void 0, i = !r && n !== void 0 && n !== !0;
|
|
44
44
|
return /* @__PURE__ */ c(l.Popup, {
|
|
45
|
-
...
|
|
46
|
-
render: (
|
|
47
|
-
let [, a] = t
|
|
45
|
+
...t,
|
|
46
|
+
render: (t, { open: n }) => {
|
|
47
|
+
let [, a] = s(t);
|
|
48
48
|
return /* @__PURE__ */ c(g, {
|
|
49
49
|
...a,
|
|
50
|
-
finalFocus:
|
|
50
|
+
finalFocus: i,
|
|
51
51
|
frame: e,
|
|
52
|
-
open:
|
|
52
|
+
open: n,
|
|
53
|
+
returnTo: r
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
function g({ open: t, finalFocus:
|
|
58
|
-
return /* @__PURE__ */ c(
|
|
59
|
-
...
|
|
58
|
+
function g({ open: t, finalFocus: n, frame: i, returnTo: a, ref: s, className: l, style: u, ...d }) {
|
|
59
|
+
return /* @__PURE__ */ c(e, {
|
|
60
|
+
...d,
|
|
60
61
|
...i,
|
|
61
|
-
...
|
|
62
|
-
finalFocus:
|
|
62
|
+
...r(s, {
|
|
63
|
+
finalFocus: n,
|
|
63
64
|
modal: !0,
|
|
64
|
-
open: t
|
|
65
|
+
open: t,
|
|
66
|
+
returnTo: a
|
|
65
67
|
}),
|
|
66
|
-
className:
|
|
68
|
+
className: o(l, i.className),
|
|
67
69
|
style: {
|
|
68
|
-
...
|
|
70
|
+
...u,
|
|
69
71
|
...i.style
|
|
70
72
|
}
|
|
71
73
|
});
|
package/dist/Dialog/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BoxProps } from "../Box/base.mjs";
|
|
2
2
|
import { PartProps } from "../styles/part-props.mjs";
|
|
3
|
-
import { size as size$1 } from "./Dialog.css.mjs";
|
|
4
3
|
import { DialogClose, DialogCloseProps, DialogTrigger, DialogTriggerProps } from "./client.mjs";
|
|
5
|
-
import {
|
|
4
|
+
import { size as size$1 } from "./Dialog.css.mjs";
|
|
6
5
|
import { ReactNode } from "react";
|
|
6
|
+
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
7
7
|
export type DialogProps = Pick<Dialog$1.Root.Props, "open" | "defaultOpen" | "onOpenChange" | "onOpenChangeComplete"> & {
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
};
|
package/dist/Dialog/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { Heading as t } from "../Heading/index.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
6
|
import { DialogClose as a, DialogPopupFrame as o, DialogPortal as s, DialogRootScope as c, DialogTrigger as l } from "./client.mjs";
|
|
7
7
|
import { backdrop as u, popup as d, size as f } from "./Dialog.css.mjs";
|
|
8
8
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -12,8 +12,8 @@ function g(e) {
|
|
|
12
12
|
return /* @__PURE__ */ p(c, { ...e });
|
|
13
13
|
}
|
|
14
14
|
function _({ title: a, description: c, size: l = "med", position: g = "fixed", margin: _ = "auto", blockSize: v = "fit", display: y = "flex", flexDirection: b = "column", gap: x = "16", padding: S = "24", backgroundColor: C = "bgRaised", borderRadius: w = "lg", boxShadow: T = "lg", overflow: E = "auto", className: D, style: O, children: k, ...A }) {
|
|
15
|
-
let [j, M] =
|
|
16
|
-
return /* @__PURE__ */ m(s, { children: [/* @__PURE__ */ p(h.Backdrop, { render: /* @__PURE__ */ p(
|
|
15
|
+
let [j, M] = r(A);
|
|
16
|
+
return /* @__PURE__ */ m(s, { children: [/* @__PURE__ */ p(h.Backdrop, { render: /* @__PURE__ */ p(e, {
|
|
17
17
|
className: u,
|
|
18
18
|
position: "fixed",
|
|
19
19
|
zIndex: "modal"
|
|
@@ -34,38 +34,38 @@ function _({ title: a, description: c, size: l = "med", position: g = "fixed", m
|
|
|
34
34
|
boxShadow: T,
|
|
35
35
|
overflow: E,
|
|
36
36
|
...j,
|
|
37
|
-
className:
|
|
37
|
+
className: n(d, f[l], D),
|
|
38
38
|
style: O
|
|
39
39
|
},
|
|
40
|
-
children: [/* @__PURE__ */ m(
|
|
40
|
+
children: [/* @__PURE__ */ m(e, {
|
|
41
41
|
display: "flex",
|
|
42
42
|
flexDirection: "column",
|
|
43
43
|
gap: "8",
|
|
44
44
|
children: [/* @__PURE__ */ p(h.Title, {
|
|
45
|
-
render: /* @__PURE__ */ p(
|
|
45
|
+
render: /* @__PURE__ */ p(t, {
|
|
46
46
|
as: "h2",
|
|
47
47
|
size: "lg"
|
|
48
48
|
}),
|
|
49
49
|
children: a
|
|
50
50
|
}), c == null ? null : /* @__PURE__ */ p(h.Description, {
|
|
51
|
-
render: /* @__PURE__ */ p(
|
|
51
|
+
render: /* @__PURE__ */ p(i, { color: "fgMuted" }),
|
|
52
52
|
children: c
|
|
53
53
|
})]
|
|
54
54
|
}), k]
|
|
55
55
|
})] });
|
|
56
56
|
}
|
|
57
|
-
function v({ display:
|
|
58
|
-
return /* @__PURE__ */ p(
|
|
59
|
-
display:
|
|
60
|
-
flexDirection:
|
|
57
|
+
function v({ display: t = "flex", flexDirection: n = "column", gap: r = "12", ...i }) {
|
|
58
|
+
return /* @__PURE__ */ p(e, {
|
|
59
|
+
display: t,
|
|
60
|
+
flexDirection: n,
|
|
61
61
|
gap: r,
|
|
62
62
|
...i
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function y({ display:
|
|
66
|
-
return /* @__PURE__ */ p(
|
|
67
|
-
display:
|
|
68
|
-
flexWrap:
|
|
65
|
+
function y({ display: t = "flex", flexWrap: n = "wrap", justifyContent: r = "end", gap: i = "8", ...a }) {
|
|
66
|
+
return /* @__PURE__ */ p(e, {
|
|
67
|
+
display: t,
|
|
68
|
+
flexWrap: n,
|
|
69
69
|
justifyContent: r,
|
|
70
70
|
gap: i,
|
|
71
71
|
...a
|
package/dist/Field/Field.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, 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;
|
|
2
2
|
@layer components.field{._13w7r940[data-disabled]{color:var(--color-fg-muted)}._13w7r941{overflow-wrap:anywhere}._13w7r942{vertical-align:middle;margin-inline-end:var(--space-4);display:inline-block}}
|
package/dist/Field/client.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Box as e } from "../Box/base.mjs";
|
|
3
|
+
import { CircleAlertIcon as t } from "../icons/CircleAlertIcon.mjs";
|
|
4
|
+
import { splitStyleProps as n } from "../styles/split-style-props.mjs";
|
|
5
5
|
import { icon as r } from "./Field.css.mjs";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import { Field as o } from "@base-ui/react/field";
|
|
@@ -10,11 +10,11 @@ function s({ size: s, ...c }) {
|
|
|
10
10
|
return /* @__PURE__ */ i(o.Error, {
|
|
11
11
|
...c,
|
|
12
12
|
render: (o) => {
|
|
13
|
-
let [, c] =
|
|
14
|
-
return /* @__PURE__ */ a(
|
|
13
|
+
let [, c] = n(o);
|
|
14
|
+
return /* @__PURE__ */ a(e, {
|
|
15
15
|
as: "span",
|
|
16
16
|
...c,
|
|
17
|
-
children: [/* @__PURE__ */ i(
|
|
17
|
+
children: [/* @__PURE__ */ i(t, {
|
|
18
18
|
className: r,
|
|
19
19
|
size: s
|
|
20
20
|
}), o.children]
|
package/dist/Field/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { join as t } from "../styles/join.mjs";
|
|
3
|
+
import { splitStyleProps as n } from "../styles/split-style-props.mjs";
|
|
4
|
+
import { splitTextProps as r } from "../styles/split-text-props.mjs";
|
|
5
|
+
import { Text as i } from "../Text/index.mjs";
|
|
6
|
+
import { FieldErrorMessage as a } from "./client.mjs";
|
|
7
|
+
import { error as o, label as s } from "./Field.css.mjs";
|
|
8
8
|
import { Children as c } from "react";
|
|
9
9
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
10
|
import { Field as d } from "@base-ui/react/field";
|
|
11
11
|
// src/Field/index.tsx
|
|
12
|
-
function f({ display:
|
|
13
|
-
let [c, u] =
|
|
12
|
+
function f({ display: t = "flex", flexDirection: r = "column", gap: i = "8", className: a, style: o, ...s }) {
|
|
13
|
+
let [c, u] = n(s);
|
|
14
14
|
return /* @__PURE__ */ l(d.Root, {
|
|
15
15
|
...u,
|
|
16
|
-
render: /* @__PURE__ */ l(
|
|
17
|
-
display:
|
|
16
|
+
render: /* @__PURE__ */ l(e, {
|
|
17
|
+
display: t,
|
|
18
18
|
flexDirection: r,
|
|
19
19
|
gap: i,
|
|
20
20
|
...c,
|
|
@@ -23,29 +23,29 @@ function f({ display: e = "flex", flexDirection: r = "column", gap: i = "8", cla
|
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function p({ nativeLabel:
|
|
27
|
-
let [m, h] =
|
|
26
|
+
function p({ nativeLabel: e = !0, size: a = "sm", font: o = "label", weight: c = "medium", className: u, style: f, ...p }) {
|
|
27
|
+
let [m, h] = r(p), [g, _] = n(h);
|
|
28
28
|
return /* @__PURE__ */ l(d.Label, {
|
|
29
29
|
..._,
|
|
30
|
-
nativeLabel:
|
|
31
|
-
render: /* @__PURE__ */ l(
|
|
32
|
-
as:
|
|
33
|
-
font:
|
|
30
|
+
nativeLabel: e,
|
|
31
|
+
render: /* @__PURE__ */ l(i, {
|
|
32
|
+
as: e ? "label" : "span",
|
|
33
|
+
font: o,
|
|
34
34
|
size: a,
|
|
35
35
|
weight: c,
|
|
36
36
|
...m,
|
|
37
37
|
...g,
|
|
38
|
-
className:
|
|
38
|
+
className: t(s, u),
|
|
39
39
|
style: f
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function m({ size: e = "sm", color:
|
|
44
|
-
let [c, u] =
|
|
43
|
+
function m({ size: e = "sm", color: t = "fgMuted", className: a, style: o, ...s }) {
|
|
44
|
+
let [c, u] = r(s), [f, p] = n(u);
|
|
45
45
|
return /* @__PURE__ */ l(d.Description, {
|
|
46
46
|
...p,
|
|
47
|
-
render: /* @__PURE__ */ l(
|
|
48
|
-
color:
|
|
47
|
+
render: /* @__PURE__ */ l(i, {
|
|
48
|
+
color: t,
|
|
49
49
|
size: e,
|
|
50
50
|
...c,
|
|
51
51
|
...f,
|
|
@@ -54,9 +54,9 @@ function m({ size: e = "sm", color: n = "fgMuted", className: a, style: o, ...s
|
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function h({ children:
|
|
58
|
-
let [g, _] =
|
|
59
|
-
return /* @__PURE__ */ u(
|
|
57
|
+
function h({ children: e, match: s, size: d = "sm", color: f = "danger", className: p, style: m, ...h }) {
|
|
58
|
+
let [g, _] = r(h), [v, y] = n(_), b = c.toArray(e).some((e) => e !== "");
|
|
59
|
+
return /* @__PURE__ */ u(i, {
|
|
60
60
|
"aria-atomic": !0,
|
|
61
61
|
"aria-live": "assertive",
|
|
62
62
|
as: "div",
|
|
@@ -64,12 +64,12 @@ function h({ children: n, match: o, size: d = "sm", color: f = "danger", classNa
|
|
|
64
64
|
size: d,
|
|
65
65
|
...g,
|
|
66
66
|
...v,
|
|
67
|
-
className:
|
|
67
|
+
className: t(o, p),
|
|
68
68
|
style: m,
|
|
69
|
-
children: [/* @__PURE__ */ l(
|
|
69
|
+
children: [/* @__PURE__ */ l(a, {
|
|
70
70
|
...y,
|
|
71
|
-
...b && { children:
|
|
72
|
-
match:
|
|
71
|
+
...b && { children: e },
|
|
72
|
+
match: s ?? (b || void 0),
|
|
73
73
|
size: d
|
|
74
74
|
}), ""]
|
|
75
75
|
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BoxProps } from "../Box/base.mjs";
|
|
2
|
+
import "../Box/index.mjs";
|
|
3
|
+
import { ElementType } from "react";
|
|
4
|
+
export type FlexProps<T extends ElementType = "div"> = BoxProps<T>;
|
|
5
|
+
export declare function Flex<T extends ElementType = "div">(props: FlexProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Box as e } from "../Box/index.mjs";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
// src/Flex/index.tsx
|
|
4
|
+
function n(n) {
|
|
5
|
+
let r = n.display === void 0 ? "display" in n ? {
|
|
6
|
+
...n,
|
|
7
|
+
display: "flex"
|
|
8
|
+
} : {
|
|
9
|
+
display: "flex",
|
|
10
|
+
...n
|
|
11
|
+
} : n;
|
|
12
|
+
return /* @__PURE__ */ t(e, { ...r });
|
|
13
|
+
}
|
|
14
|
+
export { n as Flex };
|
package/dist/Heading/Heading.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, 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;
|
|
2
2
|
@layer components.heading{.yaxwxv0{text-wrap:balance}}
|
package/dist/Icon/Icon.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, 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;
|
|
2
2
|
@layer components.icon{.wz3ei00{flex-shrink:0}.wz3ei01{inline-size:var(--font-size-xs);block-size:var(--font-size-xs)}.wz3ei02{inline-size:var(--font-size-sm);block-size:var(--font-size-sm)}.wz3ei03{inline-size:var(--font-size-med);block-size:var(--font-size-med)}.wz3ei04{inline-size:var(--font-size-lg);block-size:var(--font-size-lg)}.wz3ei05{inline-size:var(--font-size-xl);block-size:var(--font-size-xl)}.wz3ei06{inline-size:var(--font-size-2xl);block-size:var(--font-size-2xl)}.wz3ei07{inline-size:var(--font-size-3xl);block-size:var(--font-size-3xl)}.wz3ei08{inline-size:var(--font-size-4xl);block-size:var(--font-size-4xl)}}
|
|
@@ -1,2 +1,2 @@
|
|
|
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.icon-button{.n2fy8x0{--_5qoq940:transparent;--_5qoq941:40%;--_5qoq942:var(--space-12);border-width:var(--space-1);border-style:solid}.n2fy8x0[aria-disabled=true]{background-color:var(--color-bg-muted);border-color:var(--color-border-strong);color:var(--color-fg-muted);border-style:dashed}.n2fy8x0:not([aria-disabled=true]):not([aria-busy=true])[aria-expanded=true]{--_5qoq941:70%;--_5qoq942:var(--space-20);background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 15%, transparent), color-mix(in srgb, var(--color-fg) 15%, transparent));box-shadow:inset 0 0 0 var(--space-1) currentColor, 0 0 var(--_5qoq942) color-mix(in srgb, var(--_5qoq940) var(--_5qoq941), transparent)}.n2fy8x0:not([aria-disabled=true]):not([aria-busy=true]):focus-visible{--_5qoq941:70%;--_5qoq942:var(--space-20)}.n2fy8x2{--_5qoq940:var(--color-accent-fill);border-color:#0000}.n2fy8x3{border-color:var(--color-border)}.n2fy8x4{border-color:#0000}.n2fy8x8{color:var(--color-fg-muted)}.
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, 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;
|
|
2
|
+
@keyframes n2fy8xa{to{opacity:.25}}@layer components.icon-button{.n2fy8x0{--_5qoq940:transparent;--_5qoq941:40%;--_5qoq942:var(--space-12);border-width:var(--space-1);border-style:solid}.n2fy8x0[aria-disabled=true]{background-color:var(--color-bg-muted);border-color:var(--color-border-strong);color:var(--color-fg-muted);border-style:dashed}.n2fy8x0:not([aria-disabled=true]):not([aria-busy=true])[aria-expanded=true]{--_5qoq941:70%;--_5qoq942:var(--space-20);background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 15%, transparent), color-mix(in srgb, var(--color-fg) 15%, transparent));box-shadow:inset 0 0 0 var(--space-1) currentColor, 0 0 var(--_5qoq942) color-mix(in srgb, var(--_5qoq940) var(--_5qoq941), transparent)}.n2fy8x0:not([aria-disabled=true]):not([aria-busy=true]):focus-visible{--_5qoq941:70%;--_5qoq942:var(--space-20)}.n2fy8x2{--_5qoq940:var(--color-accent-fill);border-color:#0000}.n2fy8x3{border-color:var(--color-border)}.n2fy8x4{border-color:#0000}.n2fy8x8{justify-items:center}.n2fy8x9{grid-area:1/1}.n2fy8x0[aria-busy=true] .n2fy8x9{opacity:0}.n2fy8xb{grid-area:1/1}.n2fy8xc{animation-name:n2fy8xa;animation-duration:var(--duration-slow);animation-timing-function:var(--easing-standard);animation-iteration-count:infinite;animation-direction:alternate}.n2fy8xc:nth-child(2){animation-delay:calc(var(--duration-slow) / 3)}.n2fy8xc:nth-child(3){animation-delay:calc(var(--duration-slow) * 2 / 3)}.n2fy8xd{color:var(--color-fg-muted)}.n2fy8xd:not([aria-disabled=true])[aria-busy=true],.n2fy8xd:not([aria-disabled=true]):not([aria-busy=true]):focus-visible,.n2fy8xd:not([aria-disabled=true]):not([aria-busy=true])[aria-expanded=true]{color:var(--color-fg)}@media (hover:hover){.n2fy8x0:not([aria-disabled=true]):not([aria-busy=true]):hover{--_5qoq941:70%;--_5qoq942:var(--space-20);background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 15%, transparent), color-mix(in srgb, var(--color-fg) 15%, transparent))}.n2fy8xd:not([aria-disabled=true]):not([aria-busy=true]):hover{color:var(--color-fg)}}@media (forced-colors:active){.n2fy8x0{forced-color-adjust:none}.n2fy8x0:not([aria-disabled=true]):not([aria-busy=true]):hover{background-image:none}.n2fy8x0[aria-disabled=true]{color:graytext;border-color:graytext}.n2fy8x0:not([aria-disabled=true]):not([aria-busy=true])[aria-expanded=true]{box-shadow:inset 0 0 0 var(--space-1) currentColor;background-image:none}.n2fy8x3{--color-fg:ButtonText}.n2fy8x4{border-color:var(--color-border-strong)}}@media (prefers-reduced-motion:reduce){.n2fy8xc{animation-name:none}}}@layer reset{.n2fy8x0{box-shadow:0 0 var(--_5qoq942) color-mix(in srgb, var(--_5qoq940) var(--_5qoq941), transparent)}.n2fy8x0[aria-disabled=true]{box-shadow:none}@media (forced-colors:active){.n2fy8x0{box-shadow:none}}}
|
|
@@ -20,5 +20,5 @@ var t = "n2fy8x0", n = e({
|
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: {},
|
|
22
22
|
compoundVariants: []
|
|
23
|
-
}), r = "n2fy8x8";
|
|
24
|
-
export { n as iconButton,
|
|
23
|
+
}), r = "n2fy8x8", i = "n2fy8x9", a = "n2fy8xb", o = "n2fy8xc", s = "n2fy8xd";
|
|
24
|
+
export { i as content, o as dot, n as iconButton, s as muted, t as root, a as spinner, r as stack };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { PolymorphicProps } from "../types.mjs";
|
|
2
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
2
|
import { ClickableOwnProps } from "../Clickable/index.mjs";
|
|
4
3
|
import { IconProps } from "../Icon/index.mjs";
|
|
4
|
+
import { PolymorphicProps } from "../types.mjs";
|
|
5
5
|
import { ComponentType, ElementType } from "react";
|
|
6
6
|
export type IconButtonOwnProps = {
|
|
7
7
|
icon: ComponentType<IconProps>;
|
|
8
8
|
label: string;
|
|
9
|
+
loading?: boolean;
|
|
9
10
|
size?: "sm" | "med" | "lg";
|
|
10
11
|
variant?: "primary" | "secondary" | "ghost";
|
|
11
12
|
};
|
|
12
13
|
export type IconButtonProps<T extends ElementType = "button"> = PolymorphicProps<T, StyleProps & IconButtonOwnProps & Omit<ClickableOwnProps, "busy">, "busy" | "aria-disabled" | "aria-busy" | "aria-label" | "aria-labelledby" | "children">;
|
|
13
|
-
export declare function IconButton<T extends ElementType = "button">({ label, icon: IconComponent, variant, size, minInlineSize, minBlockSize, borderRadius, backgroundColor, color: colorProp, className, ...props }: IconButtonProps<T>
|
|
14
|
+
export declare function IconButton<T extends ElementType = "button">({ label, icon: IconComponent, variant, size, loading: loadingProp, minInlineSize, minBlockSize, borderRadius, backgroundColor, color: colorProp, className, "aria-busy": ariaBusy, ...props }: IconButtonProps<T> & {
|
|
15
|
+
"aria-busy"?: boolean | "true" | "false";
|
|
16
|
+
}): import("react").JSX.Element;
|
|
@@ -1,26 +1,65 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
2
|
import { Clickable as t } from "../Clickable/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { Icon as n } from "../Icon/index.mjs";
|
|
4
|
+
import { fills as r } from "../styles/button-fills.mjs";
|
|
5
|
+
import { controlHeight as i, controlText as a } from "../styles/control-size.mjs";
|
|
6
|
+
import { join as o } from "../styles/join.mjs";
|
|
7
|
+
import { content as s, iconButton as c, root as l, stack as u } from "./IconButton.css.mjs";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
9
|
// src/IconButton/index.tsx
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
...
|
|
12
|
-
"aria-label":
|
|
10
|
+
function p({ label: p, icon: m, variant: h = "ghost", size: g = "med", loading: _ = !1, minInlineSize: v = i[g], minBlockSize: y = i[g], borderRadius: b = "sm", backgroundColor: x = r[h].backgroundColor, color: S, className: C, "aria-busy": w, ...T }) {
|
|
11
|
+
let E = _ || String(w) === "true", D = T, O = h === "ghost" && S === void 0, k = O ? void 0 : S ?? r[h].color;
|
|
12
|
+
return /* @__PURE__ */ d(t, {
|
|
13
|
+
...D,
|
|
14
|
+
"aria-label": p,
|
|
13
15
|
"aria-labelledby": void 0,
|
|
14
|
-
backgroundColor:
|
|
15
|
-
borderRadius:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
backgroundColor: x,
|
|
17
|
+
borderRadius: b,
|
|
18
|
+
busy: E,
|
|
19
|
+
className: o(l, c({
|
|
20
|
+
variant: h,
|
|
21
|
+
size: g
|
|
22
|
+
}), O && "n2fy8xd", C),
|
|
23
|
+
color: k,
|
|
24
|
+
minBlockSize: y,
|
|
25
|
+
minInlineSize: v,
|
|
26
|
+
children: /* @__PURE__ */ f(e, {
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
as: "span",
|
|
29
|
+
className: u,
|
|
30
|
+
display: "grid",
|
|
31
|
+
children: [/* @__PURE__ */ d(e, {
|
|
32
|
+
as: "span",
|
|
33
|
+
className: s,
|
|
34
|
+
display: "flex",
|
|
35
|
+
children: /* @__PURE__ */ d(m, { size: a[g] })
|
|
36
|
+
}), E && /* @__PURE__ */ f(n, {
|
|
37
|
+
className: "n2fy8xb",
|
|
38
|
+
fill: "currentColor",
|
|
39
|
+
size: a[g],
|
|
40
|
+
stroke: "none",
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ d("circle", {
|
|
43
|
+
className: "n2fy8xc",
|
|
44
|
+
cx: "5",
|
|
45
|
+
cy: "12",
|
|
46
|
+
r: "2"
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ d("circle", {
|
|
49
|
+
className: "n2fy8xc",
|
|
50
|
+
cx: "12",
|
|
51
|
+
cy: "12",
|
|
52
|
+
r: "2"
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ d("circle", {
|
|
55
|
+
className: "n2fy8xc",
|
|
56
|
+
cx: "19",
|
|
57
|
+
cy: "12",
|
|
58
|
+
r: "2"
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
24
63
|
});
|
|
25
64
|
}
|
|
26
|
-
export {
|
|
65
|
+
export { p as IconButton };
|
package/dist/Inline/Inline.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, 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;
|
|
2
2
|
@layer components.inline;
|
package/dist/Inline/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PolymorphicProps } from "../types.mjs";
|
|
2
|
-
import { StyleProps } from "../Box/base.mjs";
|
|
3
1
|
import "../Box/index.mjs";
|
|
2
|
+
import { StyleProps } from "../Box/base.mjs";
|
|
3
|
+
import { PolymorphicProps } from "../types.mjs";
|
|
4
4
|
import { ElementType } from "react";
|
|
5
5
|
type Gap = StyleProps["gap"];
|
|
6
6
|
type Token = Extract<Gap, string>;
|
package/dist/Inline/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Flex as e } from "../Flex/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 };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StyleProps } from "../Box/base.mjs";
|
|
2
|
+
import { TextOwnProps } from "../Text/index.mjs";
|
|
3
|
+
import { PolymorphicProps } from "../types.mjs";
|
|
4
|
+
import { ElementType } from "react";
|
|
5
|
+
export type LabelSize = "xs" | "sm" | "med";
|
|
6
|
+
export type LabelProps<T extends ElementType = "span"> = PolymorphicProps<T, StyleProps & Omit<TextOwnProps, "size"> & {
|
|
7
|
+
size?: LabelSize;
|
|
8
|
+
}>;
|
|
9
|
+
export declare function Label<T extends ElementType = "span">({ as, size, font, weight, leading, ...props }: LabelProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Text as e } from "../Text/index.mjs";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
// src/Label/index.tsx
|
|
4
|
+
var n = {
|
|
5
|
+
xs: "meta",
|
|
6
|
+
sm: "body",
|
|
7
|
+
med: void 0
|
|
8
|
+
};
|
|
9
|
+
function r({ as: r, size: i = "sm", font: a = "label", weight: o = "medium", leading: s = n[i], ...c }) {
|
|
10
|
+
return /* @__PURE__ */ t(e, {
|
|
11
|
+
...c,
|
|
12
|
+
as: r ?? "span",
|
|
13
|
+
font: a,
|
|
14
|
+
leading: s,
|
|
15
|
+
size: i,
|
|
16
|
+
weight: o
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export { r as Label };
|
package/dist/Menu/Menu.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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{.
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, 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;
|
|
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}._393eil2{color:var(--color-fg-muted)}._393eil3{margin-block:calc(-1 * var(--font-size-sm));flex-shrink:0}._393eil4{scale:var(--dir) 1;margin-inline-start:auto}._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/Menu.css.mjs
CHANGED
|
@@ -4,4 +4,4 @@ import "./Menu.css";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
// src/Menu/Menu.css.ts
|
|
6
6
|
var e = "_393eil0", t = "_393eil1", n = "_393eil2", r = "_393eil3", i = "_393eil4", a = "_393eil5", o = "_393eil6";
|
|
7
|
-
export {
|
|
7
|
+
export { n as description, r as icon, t as item, a as linkItem, e as popup, o as separator, i 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";
|