@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
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Field as e } from "../Field/index.mjs";
|
|
2
|
+
import { InputIcons as t } from "../icon-slot/input-icons.mjs";
|
|
3
|
+
import { SearchIcon as n } from "../icons/SearchIcon.mjs";
|
|
4
|
+
import { controlText as r } from "../styles/control-size.mjs";
|
|
5
|
+
import { SearchFieldControl as i } from "./client.mjs";
|
|
6
|
+
import { hiddenLabel as a, slot as o } from "./SearchField.css.mjs";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
// src/SearchField/index.tsx
|
|
9
|
-
function l({ label: l, hideLabel: u = !1, iconStart: d =
|
|
10
|
-
return /* @__PURE__ */ c(
|
|
9
|
+
function l({ label: l, hideLabel: u = !1, iconStart: d = n, value: f, defaultValue: p = "", onValueChange: m, placeholder: h, description: g, error: _, size: v = "med", disabled: y = !1, required: b = !1, name: x, clearLabel: S = "Clear search", inputProps: C, className: w, style: T, ...E }) {
|
|
10
|
+
return /* @__PURE__ */ c(e, {
|
|
11
11
|
...E,
|
|
12
12
|
className: w,
|
|
13
13
|
disabled: y,
|
|
14
14
|
invalid: _ != null && _ !== !1 && _ !== "",
|
|
15
15
|
style: T,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */ s(
|
|
18
|
-
className: u ?
|
|
17
|
+
/* @__PURE__ */ s(e.Label, {
|
|
18
|
+
className: u ? a : void 0,
|
|
19
19
|
children: l
|
|
20
20
|
}),
|
|
21
|
-
/* @__PURE__ */ s(
|
|
21
|
+
/* @__PURE__ */ s(i, {
|
|
22
22
|
clearLabel: S,
|
|
23
23
|
defaultValue: p,
|
|
24
24
|
disabled: y,
|
|
25
|
-
icons: /* @__PURE__ */ s(
|
|
25
|
+
icons: /* @__PURE__ */ s(t, {
|
|
26
26
|
iconStart: d,
|
|
27
27
|
size: v,
|
|
28
|
-
step:
|
|
29
|
-
styles:
|
|
28
|
+
step: r[v],
|
|
29
|
+
styles: o
|
|
30
30
|
}),
|
|
31
31
|
inputProps: C,
|
|
32
32
|
name: x,
|
|
@@ -36,8 +36,8 @@ function l({ label: l, hideLabel: u = !1, iconStart: d = r, value: f, defaultVal
|
|
|
36
36
|
size: v,
|
|
37
37
|
value: f
|
|
38
38
|
}),
|
|
39
|
-
g != null && /* @__PURE__ */ s(
|
|
40
|
-
/* @__PURE__ */ s(
|
|
39
|
+
g != null && /* @__PURE__ */ s(e.Description, { children: g }),
|
|
40
|
+
/* @__PURE__ */ s(e.Error, { children: _ })
|
|
41
41
|
]
|
|
42
42
|
});
|
|
43
43
|
}
|
package/dist/Select/Select.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.select{.e26gsj0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.e26gsj1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}:where(.e26gsj1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(.e26gsj1) ._1gwwloa1{min-inline-size:0}:where(.e26gsj1) ._1gwwloa2{flex:auto;min-inline-size:0}.e26gsj2{min-inline-size:0;display:block}.e26gsj2[data-placeholder]{color:var(--color-fg-muted)}.e26gsj3{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}.e26gsj3:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.e26gsj3[data-starting-style],.e26gsj3[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}.e26gsj4{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.e26gsj4:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}.e26gsj4[data-highlighted]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}.e26gsj4[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}.e26gsj5{visibility:hidden;flex-shrink:0}.e26gsj4[aria-selected=true] .e26gsj5{visibility:visible}@media (forced-colors:active){.e26gsj1{--color-fg:CanvasText}.e26gsj1[aria-disabled=true]{border-color:graytext}.e26gsj4[data-highlighted]{forced-color-adjust:none;color:highlighttext;background-color:highlight}.e26gsj4[data-highlighted]:focus-visible{color:canvastext;background-color:canvas}.e26gsj4[aria-disabled=true]{color:graytext}}}
|
|
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.select{.e26gsj0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.e26gsj1{text-align:start;border-color:var(--color-border-strong);justify-content:stretch}.e26gsj1[aria-invalid=true]{border-color:var(--color-danger)}.e26gsj1[aria-invalid=true]:not(:focus-visible){outline:var(--space-1) solid var(--color-danger);outline-offset:calc(-1 * var(--space-2))}:where(.e26gsj1) ._1gwwloa0{flex:auto;justify-items:stretch;min-inline-size:0}:where(.e26gsj1) ._1gwwloa1{min-inline-size:0}:where(.e26gsj1) ._1gwwloa2{flex:auto;min-inline-size:0}.e26gsj2{min-inline-size:0;display:block}.e26gsj2[data-placeholder]{color:var(--color-fg-muted)}.e26gsj3{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}.e26gsj3:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.e26gsj3[data-starting-style],.e26gsj3[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}.e26gsj4{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;overflow-wrap:anywhere;-webkit-user-select:none;user-select:none}.e26gsj4:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:calc(-1 * var(--space-2))}.e26gsj4[data-highlighted]{background-color:light-dark(var(--color-bg-muted),color-mix(in srgb, var(--color-fg) 10%, var(--color-bg-raised)))}.e26gsj4[aria-disabled=true]{color:var(--color-fg-muted);cursor:not-allowed}.e26gsj5{visibility:hidden;flex-shrink:0}.e26gsj4[aria-selected=true] .e26gsj5{visibility:visible}@media (forced-colors:active){.e26gsj1{--color-fg:CanvasText}.e26gsj1[aria-disabled=true]{border-color:graytext}.e26gsj4[data-highlighted]{forced-color-adjust:none;color:highlighttext;background-color:highlight}.e26gsj4[data-highlighted]:focus-visible{color:canvastext;background-color:canvas}.e26gsj4[aria-disabled=true]{color:graytext}}}
|
package/dist/Select/client.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useRecordOpenChange as e } from "../popup/client.mjs";
|
|
3
|
+
import { ListboxTrigger as t } from "../popup/listbox.mjs";
|
|
4
|
+
import { Text as n } from "../Text/index.mjs";
|
|
5
5
|
import { trigger as r, value as i } from "./Select.css.mjs";
|
|
6
6
|
import { useMemo as a } from "react";
|
|
7
7
|
import { jsx as o } from "react/jsx-runtime";
|
|
8
8
|
import { Select as s } from "@base-ui/react/select";
|
|
9
9
|
// src/Select/client.tsx
|
|
10
|
-
function c({ options:
|
|
11
|
-
let f = a(() => new Map(
|
|
12
|
-
return /* @__PURE__ */ o(
|
|
10
|
+
function c({ options: e, placeholder: c, disabled: l, iconStart: u, size: d }) {
|
|
11
|
+
let f = a(() => new Map(e.map((e) => [e.value, e.label])), [e]);
|
|
12
|
+
return /* @__PURE__ */ o(t, {
|
|
13
13
|
className: r,
|
|
14
14
|
disabled: l,
|
|
15
15
|
iconStart: u,
|
|
@@ -17,18 +17,18 @@ function c({ options: t, placeholder: c, disabled: l, iconStart: u, size: d }) {
|
|
|
17
17
|
children: /* @__PURE__ */ o(s.Value, {
|
|
18
18
|
className: i,
|
|
19
19
|
placeholder: c,
|
|
20
|
-
children: (
|
|
20
|
+
children: (e) => /* @__PURE__ */ o(n, {
|
|
21
21
|
as: "span",
|
|
22
22
|
truncate: "box",
|
|
23
|
-
children:
|
|
23
|
+
children: e === null || e === "" ? c : f.get(e) ?? e
|
|
24
24
|
})
|
|
25
25
|
})
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function l(
|
|
28
|
+
function l(t) {
|
|
29
29
|
return /* @__PURE__ */ o(s.Root, {
|
|
30
|
-
...
|
|
31
|
-
onOpenChange:
|
|
30
|
+
...t,
|
|
31
|
+
onOpenChange: e()
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
export { l as SelectRoot, c as SelectTrigger };
|
package/dist/Select/index.mjs
CHANGED
|
@@ -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 { SelectRoot as s, SelectTrigger as c } from "./client.mjs";
|
|
6
|
+
import { check as l, hiddenLabel as u, item as d, popup as f } from "./Select.css.mjs";
|
|
7
7
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
8
|
// src/Select/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", disabled: T = !1, required: E = !1, size: D = "med", name: O, className: k, style: A, ...j }) {
|
|
@@ -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: A,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */ p(n, { children: /* @__PURE__ */ m(
|
|
17
|
+
/* @__PURE__ */ p(n, { children: /* @__PURE__ */ m(s, {
|
|
18
18
|
defaultValue: _,
|
|
19
19
|
disabled: T,
|
|
20
20
|
name: O,
|
|
@@ -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
|
disabled: T,
|
|
31
31
|
iconStart: x,
|
|
32
32
|
options: h,
|
|
@@ -34,10 +34,10 @@ function h({ options: h, value: g, defaultValue: _, onValueChange: v, label: y,
|
|
|
34
34
|
size: D
|
|
35
35
|
}),
|
|
36
36
|
/* @__PURE__ */ p(i, { children: /* @__PURE__ */ p(a, { children: /* @__PURE__ */ p(r, {
|
|
37
|
-
className:
|
|
37
|
+
className: f,
|
|
38
38
|
children: /* @__PURE__ */ p(o, {
|
|
39
|
-
checkClassName:
|
|
40
|
-
itemClassName:
|
|
39
|
+
checkClassName: l,
|
|
40
|
+
itemClassName: d,
|
|
41
41
|
options: h
|
|
42
42
|
})
|
|
43
43
|
}) }) })
|
package/dist/Sidebar/Sidebar.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.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}._1mbot451{align-items:center;gap:var(--space-8);padding-block:var(--space-16);padding-inline:var(--space-12);display:flex}._1mbot452{flex-shrink:0;margin-inline-start:auto}._1mbot453{scale:var(--dir) 1}._1mbot454{padding-block-end:var(--space-12);padding-inline:var(--space-12);flex-grow:1}._1mbot455{align-items:center;gap:var(--space-8);padding-block:var(--space-12);padding-inline:var(--space-12);border-block-start:var(--space-1) solid var(--color-border);display:flex}@container _1n4s23v0 (inline-size>=48em){._1mbot450{min-block-size:100dvh}}@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.d.mts
CHANGED
package/dist/Sidebar/index.mjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { IconButton as t } from "../IconButton/index.mjs";
|
|
3
|
+
import { PanelLeftCloseIcon as n } from "../icons/PanelLeftCloseIcon.mjs";
|
|
4
|
+
import { PanelLeftOpenIcon as r } from "../icons/PanelLeftOpenIcon.mjs";
|
|
5
|
+
import { join as i } from "../styles/join.mjs";
|
|
6
6
|
import { body as a, footer as o, header as s, root as c, toggle as l, toggleIcon as u } from "./Sidebar.css.mjs";
|
|
7
7
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
8
|
// src/Sidebar/index.tsx
|
|
9
|
-
function p({ className:
|
|
10
|
-
return /* @__PURE__ */ d(
|
|
11
|
-
...
|
|
12
|
-
className:
|
|
9
|
+
function p({ className: e, ...t }) {
|
|
10
|
+
return /* @__PURE__ */ d(n, {
|
|
11
|
+
...t,
|
|
12
|
+
className: i(u, e)
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
function m({ className:
|
|
16
|
-
return /* @__PURE__ */ d(
|
|
17
|
-
...
|
|
18
|
-
className:
|
|
15
|
+
function m({ className: e, ...t }) {
|
|
16
|
+
return /* @__PURE__ */ d(r, {
|
|
17
|
+
...t,
|
|
18
|
+
className: i(u, e)
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
var h = (e) => e != null && e !== !1 && e !== "";
|
|
22
|
-
function g({ collapsed:
|
|
23
|
-
let w =
|
|
24
|
-
"aria-expanded": !
|
|
22
|
+
function g({ collapsed: n = !1, onCollapsedChange: r, header: u, footer: g, toggleLabel: _ = "Toggle sidebar", display: v = "flex", flexDirection: y = "column", backgroundColor: b = "bgPanel", className: x, children: S, ...C }) {
|
|
23
|
+
let w = r ? /* @__PURE__ */ d(t, {
|
|
24
|
+
"aria-expanded": !n,
|
|
25
25
|
className: l,
|
|
26
|
-
icon:
|
|
26
|
+
icon: n ? m : p,
|
|
27
27
|
label: _,
|
|
28
|
-
onClick: () =>
|
|
28
|
+
onClick: () => r(!n),
|
|
29
29
|
size: "sm"
|
|
30
30
|
}) : null;
|
|
31
|
-
return /* @__PURE__ */ f(
|
|
31
|
+
return /* @__PURE__ */ f(e, {
|
|
32
32
|
backgroundColor: b,
|
|
33
33
|
display: v,
|
|
34
34
|
flexDirection: y,
|
|
35
35
|
...C,
|
|
36
36
|
as: "aside",
|
|
37
|
-
className:
|
|
38
|
-
"data-rail":
|
|
37
|
+
className: i(c, x),
|
|
38
|
+
"data-rail": n ? "" : void 0,
|
|
39
39
|
children: [
|
|
40
40
|
h(u) || w ? /* @__PURE__ */ f("div", {
|
|
41
41
|
className: s,
|
|
@@ -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.sidebar-layout{._9xiruj0{container:_1n4s23v0/inline-size}._9xiruj1{flex-basis:100%}._9xiruj2{flex-basis:0;min-inline-size:0}@container _1n4s23v0 (inline-size>=48em){._9xiruj1{flex-shrink:0;flex-basis:auto;align-self:start;max-block-size:100dvh;position:sticky;inset-block-start:0;overflow-y:auto}}@container _1n4s23v0 (inline-size<48em){._9xiruj2{flex-basis:100%}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PolymorphicProps } from "../types.mjs";
|
|
2
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
2
|
+
import { PolymorphicProps } from "../types.mjs";
|
|
3
3
|
import { ElementType } from "react";
|
|
4
4
|
export type SidebarLayoutProps<T extends ElementType = "div"> = PolymorphicProps<T, StyleProps>;
|
|
5
5
|
export type SidebarLayoutSidebarProps<T extends ElementType = "div"> = PolymorphicProps<T, StyleProps>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { join as t } from "../styles/join.mjs";
|
|
3
3
|
import { main as n, root as r, sidebar as i } from "./SidebarLayout.css.mjs";
|
|
4
4
|
import { jsx as a } from "react/jsx-runtime";
|
|
5
5
|
// src/SidebarLayout/index.tsx
|
|
6
6
|
function o({ display: n = "flex", flexWrap: i = "wrap", gap: o = "24", inlineSize: s = "full", className: c, ...l }) {
|
|
7
|
-
return /* @__PURE__ */ a(
|
|
7
|
+
return /* @__PURE__ */ a(e, {
|
|
8
8
|
display: n,
|
|
9
9
|
flexWrap: i,
|
|
10
10
|
gap: o,
|
|
11
11
|
inlineSize: s,
|
|
12
12
|
...l,
|
|
13
|
-
className:
|
|
13
|
+
className: t(r, c)
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function s({ inlineSize: n = "sidebar", className: r, ...o }) {
|
|
17
|
-
return /* @__PURE__ */ a(
|
|
17
|
+
return /* @__PURE__ */ a(e, {
|
|
18
18
|
inlineSize: n,
|
|
19
19
|
...o,
|
|
20
|
-
className:
|
|
20
|
+
className: t(i, r)
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function c({ flexGrow: r = 1, className: i, ...o }) {
|
|
24
|
-
return /* @__PURE__ */ a(
|
|
24
|
+
return /* @__PURE__ */ a(e, {
|
|
25
25
|
flexGrow: r,
|
|
26
26
|
...o,
|
|
27
|
-
className:
|
|
27
|
+
className: t(n, i)
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
var l = Object.assign(o, {
|
package/dist/Stack/Stack.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.stack;
|
package/dist/Stack/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/Stack/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 "./Stack.css.mjs";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
// src/Stack/index.tsx
|
|
6
6
|
function i({ display: i = "flex", flexDirection: a = "column", className: o, ...s }) {
|
|
7
|
-
return /* @__PURE__ */ r(
|
|
7
|
+
return /* @__PURE__ */ r(e, {
|
|
8
8
|
display: i,
|
|
9
9
|
flexDirection: a,
|
|
10
10
|
...s,
|
|
11
|
-
className:
|
|
11
|
+
className: t(n, o)
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
export { i as Stack };
|
package/dist/Switch/Switch.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.switch{.njq9m03{--njq9m00:var(--space-12);--njq9m01:var(--space-1);--njq9m02:calc(var(--distance-sm) + var(--distance-med))}.njq9m04{--njq9m00:var(--space-16);--njq9m01:var(--space-2);--njq9m02:var(--distance-lg)}.njq9m05{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}.njq9m06{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-inline-size:var(--size-xs);min-block-size:var(--size-xs);border-radius:var(--radius-full);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.njq9m06:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.njq9m06[aria-disabled=true]{cursor:not-allowed}.njq9m06[aria-readonly=true]{cursor:default}.njq9m06[aria-busy=true]{cursor:progress}.njq9m07{grid-template-columns:repeat(2, var(--njq9m00));padding:var(--njq9m01);border:var(--space-1) solid var(--color-border-strong);border-radius:var(--radius-full);background-color:var(--color-bg);forced-color-adjust:none;align-items:center;display:grid}.njq9m06:not([aria-checked=true],[aria-invalid=true],[aria-disabled=true],[aria-readonly=true]):hover .njq9m07{border-color:var(--color-fg)}.njq9m06[aria-checked=true] .njq9m07{background-color:var(--color-accent);border-color:var(--color-accent)}.njq9m06[aria-readonly=true]:not([aria-busy=true]) .njq9m07{background-clip:padding-box;border-style:dotted}.njq9m06[aria-busy=true] .njq9m07{opacity:.5}.njq9m06[aria-disabled=true] .njq9m07{border-style:dashed;border-color:var(--color-border-strong);background-clip:border-box;background-color:var(--color-bg-muted)}.njq9m06[aria-invalid=true] .njq9m07{padding:calc(var(--njq9m01) - var(--space-1));border-width:var(--space-2);border-color:var(--color-danger)}.njq9m08{inline-size:var(--njq9m00);block-size:var(--njq9m00);border-radius:var(--radius-full);transition:opacity var(--duration-med) var(--easing-standard), translate var(--duration-med) var(--easing-standard);background-color:var(--color-fg-muted);grid-area:1/1/auto/-1;justify-self:start}.njq9m06[aria-checked=true] .njq9m08{opacity:0;translate:calc(var(--dir) * var(--njq9m02))}.njq9m09{inline-size:var(--njq9m00);block-size:var(--njq9m00);border-radius:var(--radius-full);transition:opacity var(--duration-med) var(--easing-standard), translate var(--duration-med) var(--easing-standard);background-color:var(--color-accent-fg);opacity:0;translate:calc(-1 * var(--dir) * var(--njq9m02));grid-area:1/1/auto/-1;justify-self:end}.njq9m06[aria-checked=true] .njq9m09{opacity:1;translate:0}.njq9m06[aria-disabled=true] .njq9m09{background-color:var(--color-fg-muted)}}
|
package/dist/Switch/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { Field as t } from "../Field/index.mjs";
|
|
3
3
|
import { controlText as n } from "../styles/control-size.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { join as r } from "../styles/join.mjs";
|
|
5
5
|
import { offThumb as i, onThumb as a, root as o, size as s, track as c } from "./Switch.css.mjs";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
import { Switch as d } from "@base-ui/react/switch";
|
|
8
8
|
// src/Switch/index.tsx
|
|
9
9
|
function f({ label: f, hideLabel: p = !1, "aria-label": m, checked: h, defaultChecked: g, onCheckedChange: _, description: v, error: y, name: b, value: x, uncheckedValue: S, disabled: C = !1, readOnly: w = !1, required: T = !1, busy: E = !1, size: D = "med", className: O, style: k, ...A }) {
|
|
10
10
|
let j = E && !w && !C;
|
|
11
|
-
return /* @__PURE__ */ u(
|
|
11
|
+
return /* @__PURE__ */ u(t, {
|
|
12
12
|
...A,
|
|
13
13
|
className: O,
|
|
14
14
|
disabled: C,
|
|
15
15
|
invalid: y != null && y !== !1 && y !== "",
|
|
16
16
|
style: k,
|
|
17
17
|
children: [
|
|
18
|
-
/* @__PURE__ */ u(
|
|
18
|
+
/* @__PURE__ */ u(e, {
|
|
19
19
|
alignItems: "center",
|
|
20
20
|
as: "div",
|
|
21
21
|
display: "flex",
|
|
@@ -28,37 +28,37 @@ function f({ label: f, hideLabel: p = !1, "aria-label": m, checked: h, defaultCh
|
|
|
28
28
|
name: b,
|
|
29
29
|
onCheckedChange: _ && ((e) => _(e)),
|
|
30
30
|
readOnly: w || j,
|
|
31
|
-
render: /* @__PURE__ */ l(
|
|
31
|
+
render: /* @__PURE__ */ l(e, {
|
|
32
32
|
as: "span",
|
|
33
|
-
className:
|
|
33
|
+
className: r(o, s[D])
|
|
34
34
|
}),
|
|
35
35
|
required: T,
|
|
36
36
|
uncheckedValue: S,
|
|
37
37
|
value: x,
|
|
38
|
-
children: /* @__PURE__ */ u(
|
|
38
|
+
children: /* @__PURE__ */ u(e, {
|
|
39
39
|
as: "span",
|
|
40
40
|
className: c,
|
|
41
|
-
children: [/* @__PURE__ */ l(
|
|
41
|
+
children: [/* @__PURE__ */ l(e, {
|
|
42
42
|
"aria-hidden": "true",
|
|
43
43
|
as: "span",
|
|
44
44
|
className: i
|
|
45
|
-
}), /* @__PURE__ */ l(
|
|
45
|
+
}), /* @__PURE__ */ l(e, {
|
|
46
46
|
"aria-hidden": "true",
|
|
47
47
|
as: "span",
|
|
48
48
|
className: a
|
|
49
49
|
})]
|
|
50
50
|
})
|
|
51
|
-
}), f != null && /* @__PURE__ */ l(
|
|
51
|
+
}), f != null && /* @__PURE__ */ l(t.Label, {
|
|
52
52
|
className: p ? "njq9m05" : void 0,
|
|
53
53
|
size: n[D],
|
|
54
54
|
children: f
|
|
55
55
|
})]
|
|
56
56
|
}),
|
|
57
|
-
v != null && /* @__PURE__ */ l(
|
|
57
|
+
v != null && /* @__PURE__ */ l(t.Description, {
|
|
58
58
|
size: n[D],
|
|
59
59
|
children: v
|
|
60
60
|
}),
|
|
61
|
-
/* @__PURE__ */ l(
|
|
61
|
+
/* @__PURE__ */ l(t.Error, {
|
|
62
62
|
size: n[D],
|
|
63
63
|
children: y
|
|
64
64
|
})
|
package/dist/Table/Table.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.table{.pbjodu0{border-collapse:collapse}.pbjodu1{table-layout:auto}.pbjodu2{table-layout:fixed}.pbjodu4{border-block-end:var(--space-1) solid var(--color-border);vertical-align:middle}.pbjodu5{caption-side:top}.
|
|
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.table{.pbjodu0{border-collapse:collapse}.pbjodu1{table-layout:auto}.pbjodu2{table-layout:fixed}.pbjodu4{border-block-end:var(--space-1) solid var(--color-border);vertical-align:middle}.pbjodu5{caption-side:top}.pbjodu7{visibility:hidden}.pbjodu6:focus-visible .pbjodu7{visibility:visible}.pbjodu8{padding-block-end:var(--space-8)}@media (hover:hover){:where(tbody)>.pbjodu3:hover{background-image:linear-gradient(color-mix(in srgb, var(--color-fg) 5%, transparent), color-mix(in srgb, var(--color-fg) 5%, transparent))}.pbjodu6:hover .pbjodu7{visibility:visible}}@media (forced-colors:active){:where(tbody)>.pbjodu3:hover{background-image:none}}}
|
package/dist/Table/Table.css.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "../styles/layers.css";
|
|
2
|
+
import "../styles/scroll-region.css";
|
|
2
3
|
import "./Table.css";
|
|
3
4
|
/* empty css */
|
|
5
|
+
/* empty css */
|
|
4
6
|
/* empty css */
|
|
5
7
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
8
|
// src/Table/Table.css.ts
|
|
@@ -12,5 +14,5 @@ var t = e({
|
|
|
12
14
|
} },
|
|
13
15
|
defaultVariants: {},
|
|
14
16
|
compoundVariants: []
|
|
15
|
-
}), n = "pbjodu3", r = "pbjodu4", i = "pbjodu5", a = "pbjodu6", o = "pbjodu7", s = "pbjodu8"
|
|
16
|
-
export { i as caption, r as cell, n as row,
|
|
17
|
+
}), n = "pbjodu3", r = "pbjodu4", i = "pbjodu5", a = "pbjodu6", o = "pbjodu7", s = "pbjodu8";
|
|
18
|
+
export { i as caption, r as cell, n as row, s as scrollViewport, a as sortButton, t as table, o as unsortedArrow };
|
package/dist/Table/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OmitEach } from "../types.mjs";
|
|
2
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { NamedScrollRegionProps } from "../scroll-region/scroll-region.mjs";
|
|
4
3
|
import { Tone } from "../styles/subtle-fills.mjs";
|
|
5
4
|
import { TextOwnProps } from "../Text/index.mjs";
|
|
5
|
+
import { OmitEach } from "../types.mjs";
|
|
6
6
|
import { ComponentPropsWithRef, ReactElement } from "react";
|
|
7
7
|
type Element<T extends keyof HTMLElementTagNameMap, Own = object> = StyleProps & Own & OmitEach<ComponentPropsWithRef<T>, keyof StyleProps | keyof Own>;
|
|
8
8
|
type TableName = {
|
|
@@ -32,13 +32,7 @@ export type TableRowProps = Element<"tr", {
|
|
|
32
32
|
}>;
|
|
33
33
|
export type TableColumnGroupProps = Element<"colgroup">;
|
|
34
34
|
export type TableColumnProps = Element<"col">;
|
|
35
|
-
export type TableScrollAreaProps =
|
|
36
|
-
"aria-label": string;
|
|
37
|
-
"aria-labelledby"?: never;
|
|
38
|
-
} | {
|
|
39
|
-
"aria-label"?: never;
|
|
40
|
-
"aria-labelledby": string;
|
|
41
|
-
});
|
|
35
|
+
export type TableScrollAreaProps = NamedScrollRegionProps;
|
|
42
36
|
type CellText = Omit<TextOwnProps, "tabularNums" | "truncate">;
|
|
43
37
|
type Numeric = {
|
|
44
38
|
numeric?: boolean;
|
|
@@ -68,7 +62,7 @@ declare function TableColumnGroup(props: TableColumnGroupProps): import("react")
|
|
|
68
62
|
declare function TableColumn(props: TableColumnProps): import("react").JSX.Element;
|
|
69
63
|
declare function TableCell({ numeric, size, display, paddingBlock, paddingInline, textAlign, className, ...props }: TableCellProps): import("react").JSX.Element;
|
|
70
64
|
declare function TableHeaderCell({ scope, numeric, hideLabel, sort, onSort, size, weight, color, display, paddingBlock, paddingInline, textAlign, className, children, ...props }: TableHeaderCellProps): import("react").JSX.Element;
|
|
71
|
-
declare function TableScrollArea(
|
|
65
|
+
declare function TableScrollArea(props: TableScrollAreaProps): import("react").JSX.Element;
|
|
72
66
|
export declare const Table: typeof TableRoot & {
|
|
73
67
|
Head: typeof TableHead;
|
|
74
68
|
Body: typeof TableBody;
|