@jonmilner/ui 0.17.0 → 0.19.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/dist/Avatar/Avatar.css +1 -1
- package/dist/Badge/Badge.css +2 -2
- package/dist/Badge/Badge.css.mjs +6 -9
- package/dist/Badge/index.mjs +10 -3
- package/dist/Box/Box.css +1 -1
- package/dist/Button/Button.css +2 -2
- package/dist/Button/Button.css.mjs +1 -1
- package/dist/Button/index.d.mts +2 -1
- package/dist/Button/index.mjs +21 -21
- package/dist/Checkbox/Checkbox.css +1 -1
- package/dist/Chip/Chip.css +2 -2
- package/dist/Chip/Chip.css.mjs +7 -2
- package/dist/Chip/index.d.mts +3 -2
- package/dist/Chip/index.mjs +57 -39
- package/dist/Clickable/Clickable.css +1 -1
- package/dist/ColorField/ColorField.css +2 -2
- package/dist/ColorField/ColorField.css.mjs +28 -2
- package/dist/ColorField/client.d.mts +1 -1
- package/dist/ColorField/client.mjs +40 -35
- package/dist/ColorField/index.d.mts +3 -2
- package/dist/ColorField/index.mjs +39 -28
- package/dist/Combobox/Combobox.css +2 -2
- package/dist/Dialog/Dialog.css +1 -1
- package/dist/Field/Field.css +1 -1
- 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 +1 -1
- package/dist/IconButton/index.mjs +5 -4
- package/dist/Inline/Inline.css +1 -1
- package/dist/Menu/Menu.css +2 -2
- package/dist/Menu/Menu.css.mjs +2 -2
- package/dist/Menu/client.d.mts +1 -0
- package/dist/Menu/client.mjs +45 -54
- package/dist/Menu/index.d.mts +5 -4
- package/dist/Menu/index.mjs +74 -85
- package/dist/Menu/item-row.mjs +52 -0
- package/dist/MultiSelect/MultiSelect.css +2 -2
- package/dist/MultiSelect/client.mjs +5 -4
- package/dist/MultiSelect/index.d.mts +3 -1
- package/dist/MultiSelect/index.mjs +16 -15
- package/dist/NavList/NavList.css +2 -2
- package/dist/NavList/NavList.css.mjs +2 -2
- package/dist/NavList/index.d.mts +3 -1
- package/dist/NavList/index.mjs +67 -63
- package/dist/NumberField/NumberField.css +1 -1
- package/dist/RadioGroup/RadioGroup.css +1 -1
- package/dist/SearchField/SearchField.css +2 -2
- package/dist/SearchField/SearchField.css.mjs +28 -11
- package/dist/SearchField/client.d.mts +1 -1
- package/dist/SearchField/client.mjs +27 -31
- package/dist/SearchField/index.d.mts +3 -2
- package/dist/SearchField/index.mjs +37 -28
- package/dist/Select/Select.css +2 -2
- package/dist/Select/client.mjs +5 -4
- package/dist/Select/index.d.mts +3 -1
- package/dist/Select/index.mjs +15 -14
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/Sidebar/index.mjs +1 -2
- package/dist/SidebarLayout/SidebarLayout.css +1 -1
- package/dist/Stack/Stack.css +1 -1
- package/dist/Switch/Switch.css +1 -1
- package/dist/Table/Table.css +1 -1
- package/dist/Table/index.mjs +9 -9
- package/dist/Tabs/Tabs.css +1 -1
- package/dist/Tag/Tag.css +2 -2
- package/dist/Tag/Tag.css.mjs +48 -18
- package/dist/Tag/index.d.mts +2 -1
- package/dist/Tag/index.mjs +59 -46
- package/dist/Text/Text.css +1 -1
- package/dist/TextField/TextField.css +2 -2
- package/dist/TextField/TextField.css.mjs +28 -2
- package/dist/TextField/index.d.mts +3 -2
- package/dist/TextField/index.mjs +45 -33
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Toast/Toast.css +1 -1
- package/dist/Tooltip/Tooltip.css +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.css +1 -1
- package/dist/base.css +1 -1
- package/dist/contrast/contrast.d.mts +1 -1
- package/dist/contrast/contrast.mjs +3 -2
- package/dist/contrast/mixes.mjs +32 -22
- package/dist/docs/AlertDialog.md +1 -0
- package/dist/docs/Badge.md +2 -2
- package/dist/docs/Button.md +10 -8
- package/dist/docs/Chip.md +10 -3
- package/dist/docs/ColorField.md +7 -0
- package/dist/docs/Dialog.md +3 -1
- package/dist/docs/IconButton.md +5 -5
- package/dist/docs/Menu.md +27 -3
- package/dist/docs/MultiSelect.md +6 -0
- package/dist/docs/NavList.md +10 -7
- package/dist/docs/SearchField.md +6 -0
- package/dist/docs/Select.md +6 -0
- package/dist/docs/Sidebar.md +3 -3
- package/dist/docs/Tag.md +12 -3
- package/dist/docs/TextField.md +13 -1
- package/dist/docs/Tooltip.md +2 -1
- package/dist/docs/llms.txt +5 -5
- package/dist/docs/manifest.json +115 -1
- package/dist/docs/migrations/0.18.0.md +65 -0
- package/dist/docs/migrations/0.19.0.md +90 -0
- package/dist/docs/theming.md +1 -1
- package/dist/icon-slot/input-icons.mjs +23 -0
- package/dist/icon-slot/slot.mjs +17 -13
- package/dist/index.mjs +11 -11
- package/dist/popup/client.d.mts +1 -1
- package/dist/popup/client.mjs +6 -5
- package/dist/popup/listbox-base.mjs +3 -2
- package/dist/popup/listbox.mjs +5 -4
- package/dist/styles/atoms.css +1 -1
- package/dist/styles/button-fills.mjs +1 -1
- package/dist/styles/layers.css +1 -1
- package/dist/styles/responsive.css +1 -1
- package/dist/theme/define-theme.mjs +1 -1
- package/package.json +1 -1
|
@@ -13,5 +13,31 @@ var t = "_20at410", n = e({
|
|
|
13
13
|
} },
|
|
14
14
|
defaultVariants: {},
|
|
15
15
|
compoundVariants: []
|
|
16
|
-
})
|
|
17
|
-
|
|
16
|
+
}), r = {
|
|
17
|
+
start: {
|
|
18
|
+
sm: "_20at415",
|
|
19
|
+
med: "_20at416",
|
|
20
|
+
lg: "_20at417"
|
|
21
|
+
},
|
|
22
|
+
end: {
|
|
23
|
+
sm: "_20at418",
|
|
24
|
+
med: "_20at419",
|
|
25
|
+
lg: "_20at41a"
|
|
26
|
+
},
|
|
27
|
+
icon: {
|
|
28
|
+
sm: "_20at41b",
|
|
29
|
+
med: "_20at41c",
|
|
30
|
+
lg: "_20at41d"
|
|
31
|
+
},
|
|
32
|
+
roomStart: {
|
|
33
|
+
sm: "_20at41e",
|
|
34
|
+
med: "_20at41f",
|
|
35
|
+
lg: "_20at41g"
|
|
36
|
+
},
|
|
37
|
+
roomEnd: {
|
|
38
|
+
sm: "_20at41h",
|
|
39
|
+
med: "_20at41i",
|
|
40
|
+
lg: "_20at41j"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export { t as hiddenLabel, n as input, r as slot };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
2
|
+
import { IconSlotProps } from "../icon-slot/slot.mjs";
|
|
2
3
|
import { SearchFieldInputProps } from "../SearchField/client.mjs";
|
|
3
4
|
import "../SearchField/index.mjs";
|
|
4
5
|
import { CSSProperties, ComponentPropsWithRef, ReactNode } from "react";
|
|
5
6
|
export type TextFieldInputProps = Pick<ComponentPropsWithRef<"input">, keyof SearchFieldInputProps | "inputMode" | "minLength" | "pattern">;
|
|
6
|
-
export type TextFieldProps = StyleProps & {
|
|
7
|
+
export type TextFieldProps = StyleProps & IconSlotProps & {
|
|
7
8
|
className?: string;
|
|
8
9
|
defaultValue?: string;
|
|
9
10
|
description?: ReactNode;
|
|
@@ -21,4 +22,4 @@ export type TextFieldProps = StyleProps & {
|
|
|
21
22
|
type?: "text" | "email" | "url" | "tel";
|
|
22
23
|
value?: string;
|
|
23
24
|
};
|
|
24
|
-
export declare function TextField({ label, hideLabel, type, value, defaultValue, onValueChange, placeholder, description, error, size, disabled, required, name, inputProps, className, style, ...atoms }: TextFieldProps): import("react").JSX.Element;
|
|
25
|
+
export declare function TextField({ label, hideLabel, type, value, defaultValue, onValueChange, placeholder, description, error, size, disabled, required, name, inputProps, iconStart, iconEnd, className, style, ...atoms }: TextFieldProps): import("react").JSX.Element;
|
package/dist/TextField/index.mjs
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { join as e } from "../styles/join.mjs";
|
|
2
|
+
import { Box as t } from "../Box/base.mjs";
|
|
3
|
+
import { controlText as n } from "../styles/control-size.mjs";
|
|
4
|
+
import { Text as r } from "../Text/index.mjs";
|
|
5
|
+
import { Field as i } from "../Field/index.mjs";
|
|
6
|
+
import { InputIcons as a } from "../icon-slot/input-icons.mjs";
|
|
7
|
+
import { hiddenLabel as o, input as s, slot as c } from "./TextField.css.mjs";
|
|
8
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
import { Input as d } from "@base-ui/react/input";
|
|
7
10
|
// src/TextField/index.tsx
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
...
|
|
11
|
-
className:
|
|
12
|
-
disabled:
|
|
13
|
-
invalid:
|
|
14
|
-
style:
|
|
11
|
+
function f({ label: f, hideLabel: p = !1, type: m = "text", value: h, defaultValue: g, onValueChange: _, placeholder: v, description: y, error: b, size: x = "med", disabled: S = !1, required: C = !1, name: w, inputProps: T, iconStart: E, iconEnd: D, className: O, style: k, ...A }) {
|
|
12
|
+
return /* @__PURE__ */ u(i, {
|
|
13
|
+
...A,
|
|
14
|
+
className: O,
|
|
15
|
+
disabled: S,
|
|
16
|
+
invalid: b != null && b !== !1 && b !== "",
|
|
17
|
+
style: k,
|
|
15
18
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
className:
|
|
18
|
-
children:
|
|
19
|
+
/* @__PURE__ */ l(i.Label, {
|
|
20
|
+
className: p ? o : void 0,
|
|
21
|
+
children: f
|
|
19
22
|
}),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
/* @__PURE__ */ u(t, {
|
|
24
|
+
display: "grid",
|
|
25
|
+
children: [/* @__PURE__ */ l(d, {
|
|
26
|
+
...T,
|
|
27
|
+
defaultValue: g,
|
|
28
|
+
name: w,
|
|
29
|
+
onValueChange: _ && ((e) => _(e)),
|
|
30
|
+
placeholder: v,
|
|
31
|
+
render: /* @__PURE__ */ l(r, {
|
|
32
|
+
as: "input",
|
|
33
|
+
className: e(s({ size: x }), E && c.roomStart[x], D && c.roomEnd[x]),
|
|
34
|
+
size: n[x]
|
|
35
|
+
}),
|
|
36
|
+
required: C,
|
|
37
|
+
type: m,
|
|
38
|
+
value: h
|
|
39
|
+
}), /* @__PURE__ */ l(a, {
|
|
40
|
+
iconEnd: D,
|
|
41
|
+
iconStart: E,
|
|
42
|
+
size: x,
|
|
43
|
+
step: n[x],
|
|
44
|
+
styles: c
|
|
45
|
+
})]
|
|
34
46
|
}),
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */
|
|
47
|
+
y != null && /* @__PURE__ */ l(i.Description, { children: y }),
|
|
48
|
+
/* @__PURE__ */ l(i.Error, { children: b })
|
|
37
49
|
]
|
|
38
50
|
});
|
|
39
51
|
}
|
|
40
|
-
export {
|
|
52
|
+
export { f as TextField };
|
|
@@ -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.
|
|
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
2
|
@layer components.textarea{._1kwv2lp0{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._1kwv2lp1{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-med);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);resize:block;padding-block:0}._1kwv2lp1::placeholder{color:var(--color-fg-muted);opacity:1}._1kwv2lp1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._1kwv2lp1:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;resize:none;border-style:dashed}._1kwv2lp1[aria-invalid=true]{border-color:var(--color-danger)}._1kwv2lp2{min-block-size:var(--size-xs);padding-block:calc((var(--size-xs) - 2 * var(--space-1) - var(--font-size-xs) * var(--line-height-med)) / 2);padding-inline:var(--space-6)}._1kwv2lp3{min-block-size:var(--size-sm);padding-block:calc((var(--size-sm) - 2 * var(--space-1) - var(--font-size-sm) * var(--line-height-med)) / 2);padding-inline:var(--space-8)}._1kwv2lp4{min-block-size:var(--size-med);padding-block:calc((var(--size-med) - 2 * var(--space-1) - var(--font-size-med) * var(--line-height-med)) / 2);padding-inline:var(--space-12)}@media (pointer:coarse){._1kwv2lp1{font-size:var(--font-size-med)}._1kwv2lp2{min-block-size:max(var(--size-xs), calc(2 * var(--space-1) + var(--font-size-med) * var(--line-height-med)));padding-block:max(var(--space-0), calc((var(--size-xs) - 2 * var(--space-1) - var(--font-size-med) * var(--line-height-med)) / 2))}._1kwv2lp3{min-block-size:max(var(--size-sm), calc(2 * var(--space-1) + var(--font-size-med) * var(--line-height-med)));padding-block:max(var(--space-0), calc((var(--size-sm) - 2 * var(--space-1) - var(--font-size-med) * var(--line-height-med)) / 2))}._1kwv2lp4{min-block-size:max(var(--size-med), calc(2 * var(--space-1) + var(--font-size-med) * var(--line-height-med)));padding-block:max(var(--space-0), calc((var(--size-med) - 2 * var(--space-1) - var(--font-size-med) * var(--line-height-med)) / 2))}}@media (forced-colors:active){._1kwv2lp1:disabled{color:graytext;border-color:graytext}}}
|
package/dist/Toast/Toast.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.
|
|
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
2
|
@layer components.toast{.hcnvsc1{inline-size:min(100% - 2 * var(--space-16), 6 * var(--space-64));inset-block-end:var(--space-16);inset-inline-end:var(--space-16);container:hcnvsc0/inline-size}.hcnvsc1:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.hcnvsc2{gap:var(--space-8);margin:calc(-1 * var(--space-16));padding:var(--space-16);overscroll-behavior:contain;flex-direction:column;max-block-size:100dvh;margin-inline-start:calc(-1 * var(--space-24));padding-inline-start:var(--space-24);display:flex;overflow:hidden auto}.hcnvsc2:empty{padding:0}.hcnvsc2:has([data-swiping],[data-swipe-direction=down]){overflow-y:hidden}.hcnvsc3{border:var(--space-1) solid var(--color-border);transform:translate(var(--toast-swipe-movement-x,0), var(--toast-swipe-movement-y,0));transition:opacity var(--duration-med) var(--easing-standard), translate var(--duration-med) var(--easing-enter), transform var(--duration-med) var(--easing-enter)}.hcnvsc3:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}.hcnvsc3[data-starting-style],.hcnvsc3[data-ending-style]{opacity:0;translate:0 var(--distance-med)}.hcnvsc3[data-swiping]{transition:none}.hcnvsc3[data-limited]{display:none}.hcnvsc4{overflow-wrap:anywhere}.hcnvsca{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}@container hcnvsc0 (inline-size<16rem){.hcnvsc3{flex-wrap:wrap}.hcnvsc4{flex-basis:100%;order:1}.hcnvsc5{margin-inline-start:auto}}}
|
package/dist/Tooltip/Tooltip.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.
|
|
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
2
|
@layer components.tooltip{.ivrt881{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)}.ivrt881[data-starting-style],.ivrt881[data-ending-style]{opacity:0;scale:calc(1 - var(--scale-med))}.ivrt881[data-instant]{transition:none}}
|
|
@@ -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.
|
|
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
2
|
@layer components.visually-hidden{._1qk18b30{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}}
|
package/dist/base.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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.
|
|
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
2
|
@layer tokens{:root{--space-0:0rem;--space-1:.0625rem;--space-2:.125rem;--space-4:.25rem;--space-6:.375rem;--space-8:.5rem;--space-12:.75rem;--space-16:1rem;--space-20:1.25rem;--space-24:1.5rem;--space-32:2rem;--space-40:2.5rem;--space-48:3rem;--space-64:4rem;--space-80:5rem;--space-96:6rem;--size-xs:1.5rem;--size-sm:2rem;--size-med:2.5rem;--size-lg:3rem;--size-xl:3.5rem;--container-sidebar:15rem;--container-rail:3.5rem;--container-prose:40rem;--container-page:64rem;--container-wide:80rem;--radius-none:0;--radius-xs:.25rem;--radius-sm:.375rem;--radius-med:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-full:9999px;--font-size-xs:.75rem;--font-size-sm:.875rem;--font-size-med:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-size-3xl:1.875rem;--font-size-4xl:2.25rem;--font-weight-regular:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--line-height-sm:1.25;--line-height-meta:1.3334;--line-height-body:1.4286;--line-height-med:1.5;--line-height-lg:1.75;--z-index-base:0;--z-index-raised:1;--z-index-dropdown:1000;--z-index-sticky:1100;--z-index-overlay:1200;--z-index-modal:1300;--z-index-popover:1400;--z-index-toast:1500;--z-index-tooltip:1600;--duration-fast:.12s;--duration-med:.2s;--duration-slow:.32s;--easing-standard:cubic-bezier(.2, 0, 0, 1);--easing-enter:cubic-bezier(0, 0, 0, 1);--easing-exit:cubic-bezier(.3, 0, 1, 1);--distance-sm:.25rem;--distance-med:.5rem;--distance-lg:1rem;--scale-sm:.02;--scale-med:.05;--scale-lg:.1}[data-brand]{--shadow-sm:0 1px 2px color-mix(in srgb, var(--color-shadow) 12%, transparent);--shadow-med:0 2px 8px color-mix(in srgb, var(--color-shadow) 14%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 8%, transparent);--shadow-lg:0 8px 24px color-mix(in srgb, var(--color-shadow) 16%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 8%, transparent)}[data-brand][data-mode=light]{color-scheme:light}[data-brand][data-mode=dark]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent);color-scheme:dark}[data-brand][data-mode=system]{color-scheme:light dark}:dir(ltr){--dir:1}:dir(rtl){--dir:-1}@media (prefers-color-scheme:dark){[data-brand][data-mode=system]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent)}}@media (prefers-reduced-motion:reduce){:root{--distance-sm:0rem;--distance-med:0rem;--distance-lg:0rem;--scale-sm:0;--scale-med:0;--scale-lg:0;--duration-fast:.12s;--duration-med:.12s;--duration-slow:.12s}}}
|
|
3
3
|
|
|
4
4
|
@font-face{src:local(Arial),local(ArialMT);font-weight:400;font-style:normal;size-adjust:101.568%;ascent-override:95.3892%;descent-override:23.7511%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold),local(Arial-BoldMT);font-weight:700;font-style:normal;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Italic),local(Arial-ItalicMT);font-weight:400;font-style:italic;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold Italic),local(Arial-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:101.706%;ascent-override:95.2591%;descent-override:23.7187%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Menlo Regular),local(Menlo-Regular);font-weight:400;font-style:normal;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold),local(Menlo-Bold);font-weight:700;font-style:normal;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Italic),local(Menlo-Italic);font-weight:400;font-style:italic;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold Italic),local(Menlo-BoldItalic);font-weight:700;font-style:italic;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Consolas);font-weight:400;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold),local(Consolas-Bold);font-weight:700;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Italic),local(Consolas-Italic);font-weight:400;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold Italic),local(Consolas-BoldItalic);font-weight:700;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Courier New),local(CourierNewPSMT);font-weight:400;font-style:normal;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold),local(CourierNewPS-BoldMT);font-weight:700;font-style:normal;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Italic),local(CourierNewPS-ItalicMT);font-weight:400;font-style:italic;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold Italic),local(CourierNewPS-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@layer tokens{[data-brand=default]{--color-bg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-bg-muted:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-bg-raised:light-dark(oklch(100% 0 0),oklch(20.5% .006 265));--color-bg-panel:light-dark(oklch(98.5% .006 265),oklch(17.7% .006 265));--color-fg:light-dark(oklch(14.5% .006 265),oklch(98.5% .006 265));--color-fg-muted:light-dark(oklch(44.5% .006 265),oklch(71% .006 265));--color-border:light-dark(oklch(92.5% .006 265),oklch(27% .006 265));--color-border-strong:oklch(55.5% .006 265);--color-hover:light-dark(oklch(14.5% .006 265/.04),oklch(98.5% .006 265/.04));--color-control-fill:light-dark(oklch(14.5% .006 265/.05),oklch(98.5% .006 265/.05));--color-selected:light-dark(oklch(14.5% .006 265/.07),oklch(98.5% .006 265/.07));--color-accent:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-accent-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-accent-fill:light-dark(oklch(54.6% .19 258),oklch(48.8% .18 258));--color-accent-fill-fg:oklch(100% 0 0);--color-danger:light-dark(oklch(56% .2 25),oklch(70.4% .17 25));--color-danger-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-success:light-dark(oklch(52% .135 150),oklch(76% .15 150));--color-success-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-warning:light-dark(oklch(53% .11 75),oklch(81% .145 75));--color-warning-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-done:light-dark(oklch(55% .2 295),oklch(72% .15 295));--color-done-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-neutral-subtle:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-neutral-subtle-fg:light-dark(oklch(37% .006 265),oklch(87% .006 265));--color-accent-subtle:light-dark(oklch(93.2% .032 258),oklch(28.2% .09 258));--color-accent-subtle-fg:light-dark(oklch(48.8% .18 258),oklch(80.9% .095 258));--color-success-subtle:light-dark(oklch(94.5% .04 150),oklch(26% .06 150));--color-success-subtle-fg:light-dark(oklch(46.5% .12 150),oklch(84% .115 150));--color-warning-subtle:light-dark(oklch(95.5% .03 75),oklch(27% .05 75));--color-warning-subtle-fg:light-dark(oklch(47.5% .1 75),oklch(86% .105 75));--color-danger-subtle:light-dark(oklch(93.6% .032 25),oklch(25.8% .085 25));--color-danger-subtle-fg:light-dark(oklch(50.5% .19 25),oklch(80.8% .105 25));--color-done-subtle:light-dark(oklch(93.8% .032 295),oklch(28% .095 295));--color-done-subtle-fg:light-dark(oklch(49% .19 295),oklch(81.5% .1 295));--color-focus:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-shadow:light-dark(oklch(14.5% .006 265),oklch(0% 0 0));--font-body:"Inter", "Inter Fallback Arial", sans-serif;--font-heading:"Inter", "Inter Fallback Arial", sans-serif;--font-display:"Inter", "Inter Fallback Arial", sans-serif;--font-label:"Inter", "Inter Fallback Arial", sans-serif;--font-mono:"JetBrains Mono", "JetBrains Mono Fallback Menlo", "JetBrains Mono Fallback Consolas", "JetBrains Mono Fallback Courier New", monospace;--font-trim-body-cap:.36377;--font-trim-body-baseline:.36377;--font-trim-heading-cap:.36377;--font-trim-heading-baseline:.36377;--font-trim-display-cap:.36377;--font-trim-display-baseline:.36377;--font-trim-label-cap:.36377;--font-trim-label-baseline:.36377;--font-trim-mono-cap:.37;--font-trim-mono-baseline:.36;--font-tracking-body:-.006em;--font-tracking-heading:-.006em;--font-tracking-display:-.006em;--font-tracking-label:-.006em;--font-tracking-mono:normal;--font-features-body:"cv11", "ss03";--font-features-heading:"cv11", "ss03";--font-features-display:"cv11", "ss03";--font-features-label:"cv11", "ss03";--font-features-mono:normal}@media (forced-colors:active){[data-brand][data-brand]{--color-bg:Canvas;--color-bg-muted:Canvas;--color-bg-raised:Canvas;--color-bg-panel:Canvas;--color-fg:CanvasText;--color-fg-muted:CanvasText;--color-border:CanvasText;--color-border-strong:CanvasText;--color-hover:Highlight;--color-control-fill:ButtonFace;--color-selected:Highlight;--color-accent:LinkText;--color-accent-fg:Canvas;--color-accent-fill:LinkText;--color-accent-fill-fg:Canvas;--color-danger:CanvasText;--color-danger-fg:Canvas;--color-success:CanvasText;--color-success-fg:Canvas;--color-warning:CanvasText;--color-warning-fg:Canvas;--color-done:CanvasText;--color-done-fg:Canvas;--color-neutral-subtle:Canvas;--color-neutral-subtle-fg:CanvasText;--color-accent-subtle:Canvas;--color-accent-subtle-fg:CanvasText;--color-success-subtle:Canvas;--color-success-subtle-fg:CanvasText;--color-warning-subtle:Canvas;--color-warning-subtle-fg:CanvasText;--color-danger-subtle:Canvas;--color-danger-subtle-fg:CanvasText;--color-done-subtle:Canvas;--color-done-subtle-fg:CanvasText;--color-focus:Highlight;--color-shadow:CanvasText}}}
|
|
@@ -12,6 +12,6 @@ export interface ContrastFailure extends ContrastPair {
|
|
|
12
12
|
ratio: number;
|
|
13
13
|
}
|
|
14
14
|
export declare const contrastPairs: readonly ContrastPair[];
|
|
15
|
-
export declare function contrastRatio(fg: string, bg: string, mode?: Mode): number;
|
|
15
|
+
export declare function contrastRatio(fg: string, bg: string, mode?: Mode, over?: string): number;
|
|
16
16
|
export declare function checkContrast(brand: Brand): ContrastFailure[];
|
|
17
17
|
export type { Mode };
|
|
@@ -39,8 +39,9 @@ var i = [
|
|
|
39
39
|
function l({ r: e, g: n, b: r }) {
|
|
40
40
|
return .2126 * t(e) + .7152 * t(n) + .0722 * t(r);
|
|
41
41
|
}
|
|
42
|
-
function u(e, t, r = "light") {
|
|
43
|
-
|
|
42
|
+
function u(e, t, r = "light", i) {
|
|
43
|
+
let a = n(t, r);
|
|
44
|
+
return f(n(e, r), i ? d(a, n(i, r)) : a, t);
|
|
44
45
|
}
|
|
45
46
|
function d(e, t) {
|
|
46
47
|
let n = (t, n) => t * e.alpha + n * (1 - e.alpha);
|
package/dist/contrast/mixes.mjs
CHANGED
|
@@ -1,31 +1,41 @@
|
|
|
1
1
|
import { fills as e } from "../styles/button-fills.mjs";
|
|
2
2
|
import { subtleFills as t } from "../styles/subtle-fills.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { overlayRoles as n } from "../tokens/roles.mjs";
|
|
4
|
+
import { contrastRatio as r, surfaces as i } from "./contrast.mjs";
|
|
5
|
+
import { highlightFill as a, highlightText as o } from "../styles/highlight.mjs";
|
|
6
|
+
import { hoverFill as s } from "../styles/hover-tint.mjs";
|
|
6
7
|
// src/contrast/mixes.ts
|
|
7
|
-
var
|
|
8
|
+
var c = (e) => n.includes(e), l = [
|
|
8
9
|
{
|
|
9
10
|
name: "Menu highlight",
|
|
10
|
-
fill:
|
|
11
|
-
text:
|
|
11
|
+
fill: a,
|
|
12
|
+
text: o,
|
|
12
13
|
min: 4.5
|
|
13
14
|
},
|
|
14
|
-
...Object.entries(e).flatMap(([e, { backgroundColor: t, color: n }]) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
...Object.entries(e).flatMap(([e, { backgroundColor: t, color: n }]) => {
|
|
16
|
+
let r = [n];
|
|
17
|
+
return t && !c(t) ? [{
|
|
18
|
+
name: `${e} Button hover`,
|
|
19
|
+
fill: (e) => s(e.fg, e[t]),
|
|
20
|
+
text: r,
|
|
21
|
+
min: 4.5
|
|
22
|
+
}] : i.map((n) => ({
|
|
23
|
+
name: `${e} Button hover on ${n}`,
|
|
24
|
+
fill: (e) => s(e.fg, e[t ?? n]),
|
|
25
|
+
...t && { over: n },
|
|
26
|
+
text: r,
|
|
27
|
+
min: 4.5
|
|
28
|
+
}));
|
|
29
|
+
}),
|
|
20
30
|
{
|
|
21
31
|
name: "pressed Chip hover",
|
|
22
|
-
fill: (e) =>
|
|
32
|
+
fill: (e) => s(e.fg, e.accent),
|
|
23
33
|
text: ["accentFg"],
|
|
24
34
|
min: 4.5
|
|
25
35
|
},
|
|
26
|
-
...
|
|
36
|
+
...i.map((e) => ({
|
|
27
37
|
name: `Table row hover on ${e}`,
|
|
28
|
-
fill: (t) =>
|
|
38
|
+
fill: (t) => s(t.fg, t[e], "5%"),
|
|
29
39
|
text: e === "bgMuted" || e === "bgPanel" ? ["fg", "fgMuted"] : [
|
|
30
40
|
"fg",
|
|
31
41
|
"fgMuted",
|
|
@@ -39,19 +49,19 @@ var s = [
|
|
|
39
49
|
})),
|
|
40
50
|
...Object.entries(t).map(([e, { backgroundColor: t, color: n }]) => ({
|
|
41
51
|
name: `${e} Table row hover`,
|
|
42
|
-
fill: (e) =>
|
|
52
|
+
fill: (e) => s(e.fg, e[t], "5%"),
|
|
43
53
|
text: [n],
|
|
44
54
|
min: 4.5
|
|
45
55
|
}))
|
|
46
56
|
];
|
|
47
|
-
function
|
|
48
|
-
return ["light", "dark"].flatMap((t) =>
|
|
49
|
-
let
|
|
57
|
+
function u(e) {
|
|
58
|
+
return ["light", "dark"].flatMap((t) => l.flatMap(({ name: n, fill: i, text: a, min: o, over: s }) => {
|
|
59
|
+
let c = i(e.color), l = s && e.color[s];
|
|
50
60
|
return a.flatMap((i) => {
|
|
51
|
-
let a =
|
|
61
|
+
let a = r(e.color[i], c, t, l);
|
|
52
62
|
return a < o ? [{
|
|
53
63
|
fg: i,
|
|
54
|
-
mix:
|
|
64
|
+
mix: n,
|
|
55
65
|
min: o,
|
|
56
66
|
mode: t,
|
|
57
67
|
ratio: a
|
|
@@ -59,4 +69,4 @@ function c(e) {
|
|
|
59
69
|
});
|
|
60
70
|
}));
|
|
61
71
|
}
|
|
62
|
-
export {
|
|
72
|
+
export { u as checkMixes, l as contrastMixes };
|
package/dist/docs/AlertDialog.md
CHANGED
|
@@ -109,6 +109,7 @@ Generated from the TypeScript types.
|
|
|
109
109
|
| `id` | `string` | no | ID of the trigger. In addition to being forwarded to the rendered element, it is also used to specify the active trigger for the dialog in controlled mode (with the DialogRoot `triggerId` prop). |
|
|
110
110
|
| `payload` | `unknown` | no | A payload to pass to the dialog when it is opened. |
|
|
111
111
|
| `size` | `"lg" \| "med" \| "sm"` | no | |
|
|
112
|
+
| `uppercase` | `boolean` | no | |
|
|
112
113
|
| `variant` | `"ghost" \| "primary" \| "secondary"` | no | |
|
|
113
114
|
|
|
114
115
|
Also accepts the style props (see `manifest.json` `styleProps`).
|
package/dist/docs/Badge.md
CHANGED
|
@@ -23,7 +23,7 @@ A static label that states the status of, or a short fact about, the thing besid
|
|
|
23
23
|
|
|
24
24
|
- `variant`: `neutral` (default, `fgMuted` on `bgMuted`) for most statuses and facts; `accent` (`accentFg` on `accent`) to draw the eye; `success` (`successFg` on `success`) for a passing or healthy state; `warning` (`warningFg` on `warning`) for one that needs attention soon; `danger` (`dangerFg` on `danger`) for a failure or a blocked state; `done` (`doneFg` on `done`, violet) for finished work, such as a merged PR or a closed issue.
|
|
25
25
|
- `subtle`: `false` (default) is the solid fill above; `true` swaps it for the variant's tint, `<variant>SubtleFg` on `<variant>Subtle` (`neutralSubtleFg` on `neutralSubtle` and so on). Use subtle where many badges sit together, such as a list or a board, so each one stays calm and the color still means one thing; keep solid for the one status that should stand out.
|
|
26
|
-
- `size`: `xs`, `sm` or `med` (default),
|
|
26
|
+
- `size`: `xs`, `sm` or `med` (default). `xs` and `sm` set meta text, a 12/16 medium label with 6px inline padding (ADR 0157, 0164); `xs` has 2px block padding and `sm` 4px, so `xs` is the shorter pill. `med` is a 16px label, 8px by 6px. Use `xs` in dense rows and narrow table cells, such as a board column of status pills; `sm` beside meta text, such as counts and timestamps; `med` elsewhere. 12px is the smallest readable label.
|
|
27
27
|
- The label states the state. Color is never the only cue (WCAG 1.4.1): under forced colors every variant, `success` and `warning` included, is the same outlined box, and some readers cannot tell the fills apart (green from red above all). Write "Failed" or "Passed", not a red or green badge reading "3".
|
|
28
28
|
- `iconStart` and `iconEnd` take an icon component (a generated `GitMergeIcon` from `@jonmilner/ui/icons`, or a component that renders `Icon`), not an element. Badge renders it inline in the label at the badge's text step, spaced from the words and centred on their cap height, so the badge keeps the height it has without one (ADR 0044, 0152). The icons are decorative (`aria-hidden`); the label states the state. Do not put an `Icon` in the children: it renders as a block and breaks the line.
|
|
29
29
|
- Keep it to one or two words; it never wraps. A cap, `maxInlineSize` as the style prop or in `style` (Tag's rule: a step, `full`, or a `style` length), cuts the label to one line with an ellipsis; the end icon stays in view after it. A badge has no hover or focus, so a cut label never shows its whole text: cap one only where the full text is also elsewhere. With no children it renders nothing.
|
|
@@ -61,7 +61,7 @@ A static label that states the status of, or a short fact about, the thing besid
|
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
```tsx
|
|
64
|
-
// A narrow board column or table cell: xs is the
|
|
64
|
+
// A narrow board column or table cell: xs is the shorter pill, 12px with 2px block padding.
|
|
65
65
|
<Badge size="xs" subtle variant="warning">
|
|
66
66
|
Changes requested
|
|
67
67
|
</Badge>
|
package/dist/docs/Button.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
The labelled action: a `<button type="button">` with the house look, or a link styled as one with `as="a"` (or a router's link). Four variants (`primary`, `secondary`, `ghost`, `danger`), three sizes (`sm`, `med`, `lg`, 24, 32 and 40 px high, ADR 0124), a `loading` state that keeps its width, and icon slots before and after the label. It
|
|
5
|
+
The labelled action: a `<button type="button">` with the house look, or a link styled as one with `as="a"` (or a router's link). Four variants (`primary`, `secondary`, `ghost`, `danger`), three sizes (`sm`, `med`, `lg`, 24, 32 and 40 px high, ADR 0124), a `loading` state that keeps its width, and icon slots before and after the label. It takes the control radius (`sm`, 6px, ADR 0162) and a sentence-case label at weight 500; only `primary` glows, softly in its fill (ADR 0131, 0163). It is built on `Clickable`, so it has the shared focus ring, the 24px minimum target and `aria-disabled` / `aria-busy` states that block activation while the button stays focusable.
|
|
6
6
|
|
|
7
7
|
## When to use
|
|
8
8
|
|
|
@@ -19,17 +19,18 @@ The labelled action: a `<button type="button">` with the house look, or a link s
|
|
|
19
19
|
## Rules
|
|
20
20
|
|
|
21
21
|
- `primary` marks the one action a view or dialog exists for; everything else is `secondary`, the default. One primary per group. Its fill is `accentFill` with `accentFillFg` text (ADR 0119): light text on a solid accent in both modes, 4.5:1 at rest and on hover.
|
|
22
|
-
- `secondary` is
|
|
22
|
+
- `secondary` is the quiet look: the `controlFill` overlay (`fg` at 5% over whatever surface is below) with `fg` text inside a 1px `border`, and no glow. It reads on `bg`, `bgMuted`, `bgRaised` and `bgPanel` alike.
|
|
23
23
|
- `ghost` is the tertiary action: no fill, no border, no glow, only the hover tint. Use it beside a `secondary` for the least important action ("Skip", "Clear"), or inside another control that already frames it. Its text sits on the surface behind it, so place it on `bg`, `bgMuted` or `bgRaised`.
|
|
24
|
-
- `danger` (`dangerFg` on `danger`, ADR 0060) replaces `primary` when that action destroys data or cannot be undone, such as a confirm dialog's "Delete project". It takes `primary`'s place, so a group has one `primary` or one `danger`, not both. The label names the consequence ("Delete project", not "OK"): under forced colors `danger` looks like `primary`, so the word carries the meaning, not the color. Confirm before an irreversible action runs; `danger` does not.
|
|
24
|
+
- `danger` (`dangerFg` on `danger`, ADR 0060), with no glow, replaces `primary` when that action destroys data or cannot be undone, such as a confirm dialog's "Delete project". It takes `primary`'s place, so a group has one `primary` or one `danger`, not both. The label names the consequence ("Delete project", not "OK"): under forced colors `danger` looks like `primary`, so the word carries the meaning, not the color. Confirm before an irreversible action runs; `danger` does not.
|
|
25
25
|
- Sizes are `sm`, `med` (default) and `lg`, never `md`. `sm`, `med` and `lg` are 24, 32 and 40px high; the label and the icons take the `fontSize` step one below the `size` (`xs`, `sm`, `med`: 12, 14 and 16px).
|
|
26
26
|
- `loading` renders `aria-busy="true"`, blocks clicks, Enter and Space, and swaps the label for three pulsing dots in the same space: the width never changes, and the label stays the accessible name. A label narrower than the dots (one character, such as a page number) widens by a few pixels; give such buttons a fixed `minInlineSize`. Announce the outcome elsewhere (a toast or a status message); `aria-busy` alone is not announced.
|
|
27
27
|
- `disabled` renders `aria-disabled="true"` and a dashed border, never the native `disabled`: the button stays focusable and announced. Say why it is disabled nearby when it is not obvious.
|
|
28
28
|
- `iconStart` and `iconEnd` take an icon component (a generated `ArrowRightIcon`, or a component that renders `Icon`), not an element: Button renders it at its text size. The icons are decorative; the label names the button.
|
|
29
|
-
- Children are the label, rendered inside
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
29
|
+
- Children are the label, rendered inside `Text` at weight 500 (`medium`); pass a string in sentence case, not your own `Text` or `Icon`.
|
|
30
|
+
- `uppercase` opts into an uppercase label, cased in CSS only: the DOM text, and so Testing Library queries such as `getByRole`, keep the source case. Chromium's accessibility tree exposes the uppercase text, so a screen reader there may spell out a short label such as "OK"; prefer a word. The default is sentence case (ADR 0163).
|
|
31
|
+
- Fill (`backgroundColor`), text color (`color`), height (`minBlockSize`), `paddingBlock` (which keeps a wrapped label off the border), `paddingInline`, `borderRadius` (`sm`) and `gap` (between icons and label) are default style props: pass one to change it. Hover tints whatever the fill is (not under forced colors, where hover keeps only the pointer cue); the disabled look is component CSS keyed off `aria-disabled`, so it wins over a custom fill. A custom fill needs a text color that passes 4.5:1 on it.
|
|
32
|
+
- `primary`'s glow is soft at rest and stronger on hover, on keyboard focus and while open; a disabled button has none. It is a `box-shadow` below the style props, so a `boxShadow` prop replaces it. The other variants have none.
|
|
33
|
+
- With `aria-expanded="true"` (a Menu or Dialog trigger while its popup is open, or your own disclosure button), a live button holds the hover tint and draws a 1px inset ring in its text color, inside `primary`'s strong glow: a shape cue, kept under forced colors, that takes no layout space (ADR 0063). While open, the ring (and `primary`'s glow) replace a custom `boxShadow`.
|
|
33
34
|
- `type="submit"` for a form's submit button; otherwise it is `type="button"`.
|
|
34
35
|
- Server-safe: Button has no hooks; `Clickable` inside it is the client boundary.
|
|
35
36
|
|
|
@@ -77,7 +78,7 @@ The labelled action: a `<button type="button">` with the house look, or a link s
|
|
|
77
78
|
|
|
78
79
|
- A button that goes somewhere is a link (`as="a"` with `href`); one that does something is a button.
|
|
79
80
|
- Disabled and loading buttons stay in the tab order, so keyboard and screen reader users find them; Enter and Space do nothing while either is set. The blocked click still bubbles to an ancestor's `onClick` (see Clickable's Rules).
|
|
80
|
-
- State is never color alone: disabled adds a dashed border, loading shows the dots. Under forced colors the button keeps its system colors (`LinkText` fill for `primary` and `danger`, a `
|
|
81
|
+
- State is never color alone: disabled adds a dashed border, loading shows the dots. Under forced colors the button keeps its system colors (`LinkText` fill for `primary` and `danger`, a `ButtonFace` fill with `ButtonText` text and a `CanvasText` border for `secondary`, a `CanvasText` border for `ghost`) and a disabled one is `GrayText`. Hover draws no tint and `primary`'s glow is gone there, so the system pairs keep their contrast.
|
|
81
82
|
- Under reduced motion the dots hold still.
|
|
82
83
|
- Text on every variant passes 4.5:1 at rest and on hover in light and dark modes.
|
|
83
84
|
|
|
@@ -96,6 +97,7 @@ Generated from the TypeScript types.
|
|
|
96
97
|
| `iconStart` | `ComponentType` | no | |
|
|
97
98
|
| `loading` | `boolean` | no | |
|
|
98
99
|
| `size` | `"lg" \| "med" \| "sm"` | no | |
|
|
100
|
+
| `uppercase` | `boolean` | no | |
|
|
99
101
|
| `variant` | `"danger" \| "ghost" \| "primary" \| "secondary"` | no | |
|
|
100
102
|
|
|
101
103
|
Also accepts every `<button>` attribute (change the element with `as`) and the style props (see `manifest.json` `styleProps`).
|
package/dist/docs/Chip.md
CHANGED
|
@@ -25,11 +25,12 @@ A toggle that filters content or picks an option: "Unread", "Starred", "Medium".
|
|
|
25
25
|
- `pressed` or `defaultPressed`, with `onPressedChange`, for a lone chip. In a `ChipGroup`, give every chip a `value`; the group's `value` or `defaultValue` is the array of pressed values, and `onValueChange` reports it.
|
|
26
26
|
- `ChipGroup` is single selection by default: pressing a chip releases the rest, and pressing the pressed chip releases it, so the group can be empty. For a choice that is never empty, control `value` and ignore an empty array. `multiple` lets any number be pressed.
|
|
27
27
|
- Name every `ChipGroup` with `aria-label` or `aria-labelledby`.
|
|
28
|
-
- `size`: `sm` (24px) or `med` (32px, default). The label and the
|
|
29
|
-
- Pressed is `accentFg` on `accent` with a check ahead of the label; pressing widens the chip by the check. Released is `fg` on `bg` with a `borderStrong` border.
|
|
28
|
+
- `size`: `sm` (24px) or `med` (32px, default). The label, the check and the icons are `sm` at both; 24px is the minimum target (WCAG 2.2).
|
|
29
|
+
- Pressed is `accentFg` on `accent` with a check ahead of the label; pressing widens the chip by the check and a 4px gap. Released is `fg` on `bg` with a `borderStrong` border.
|
|
30
|
+
- `iconStart` and `iconEnd` take an icon component (`iconStart={InboxIcon}`), inline in the label at its `sm` size and centred on its cap height, with the shared 4px gap (ADR 0152). A pressed chip shows the check in the start slot in place of `iconStart`, so the pressed state keeps its non-color cue; `iconEnd` stays. Icons are decorative (`aria-hidden`): the label names the chip.
|
|
30
31
|
- `disabled` renders `aria-disabled` and blocks toggling. A lone disabled chip stays in the tab order; in a group the arrow keys skip it. `ChipGroup` has no `disabled`: disable the chips one by one.
|
|
31
32
|
- Keep the label to a word or two. Chips wrap onto new lines in a group; a label wider than the group wraps inside its chip.
|
|
32
|
-
- Released fill, text color, radius (`full`), padding (the block padding keeps a wrapped label off the border)
|
|
33
|
+
- Released fill, text color, radius (`full`), padding (the block padding keeps a wrapped label off the border) and height are default style props on the button; a consumer's win. The pressed and disabled looks and the border are the chip's own and beat style props. `className`, `style` and `ref` go to it, `className` last. `ChipGroup` is a wrapping flex row `Box` (`gap="8"`), a column when `orientation="vertical"`.
|
|
33
34
|
- The module has no hooks, so a server component can render it; Base UI's parts are the client components.
|
|
34
35
|
|
|
35
36
|
## Do
|
|
@@ -50,6 +51,10 @@ A toggle that filters content or picks an option: "Unread", "Starred", "Medium".
|
|
|
50
51
|
</ChipGroup>
|
|
51
52
|
```
|
|
52
53
|
|
|
54
|
+
```tsx
|
|
55
|
+
<Chip iconStart={InboxIcon}>Inbox</Chip>
|
|
56
|
+
```
|
|
57
|
+
|
|
53
58
|
## Don't
|
|
54
59
|
|
|
55
60
|
```tsx
|
|
@@ -83,6 +88,8 @@ Generated from the TypeScript types.
|
|
|
83
88
|
| --- | --- | --- | --- |
|
|
84
89
|
| `defaultPressed` | `boolean` | no | Whether the toggle button is currently pressed. This is the uncontrolled counterpart of `pressed`. |
|
|
85
90
|
| `disabled` | `boolean` | no | |
|
|
91
|
+
| `iconEnd` | `ComponentType` | no | |
|
|
92
|
+
| `iconStart` | `ComponentType` | no | |
|
|
86
93
|
| `onPressedChange` | `((pressed: boolean, eventDetails: { reason: "none"; event: Event; cancel: () => void; allowPropagation: () => void; isCanceled: boolean; isPropagationAllowed: boolean; trigger: Element \| undefined; }) => void)` | no | Callback fired when the pressed state is changed. |
|
|
87
94
|
| `pressed` | `boolean` | no | Whether the toggle button is currently pressed. This is the controlled counterpart of `defaultPressed`. |
|
|
88
95
|
| `size` | `"med" \| "sm"` | no | |
|
package/dist/docs/ColorField.md
CHANGED
|
@@ -22,6 +22,7 @@ A form field for one colour as a `#rrggbb` string: a swatch, the browser's own c
|
|
|
22
22
|
- `swatchLabel` names the swatch (default "Pick colour"). Name what it colours when a form has several: "Pick colour for ui".
|
|
23
23
|
- The value is a `#rrggbb` string or empty. `value` with `onValueChange` controls it; `defaultValue` leaves it uncontrolled. `onValueChange` gets the hex input's string on each keystroke, as typed (upper case included), and the swatch's lower-case `#rrggbb` when a colour is picked. Lower-case it yourself if you store it.
|
|
24
24
|
- Empty is valid unless `required`. A non-empty value that is not `#` and six hex digits fails native `pattern` validation, so the form does not submit. While the hex is empty or invalid the swatch shows black, `#000000`, which is all a native colour input can hold; picking black then changes nothing, so the hex stays as it was until `#000000` is typed.
|
|
25
|
+
- `iconStart` and `iconEnd` take an icon component (a generated `InboxIcon` from `@jonmilner/ui/icons`, or a component that renders `Icon`), not an element. `iconStart` sits after the swatch, before the hex, and `iconEnd` at the inline end, each at the hex's text step, spaced from it by the shared icon gap and centred on its cap height, so the field keeps its height (ADR 0152, 0165). The hex's padding makes room, so text never runs under an icon. The icons are decorative and a click on one reaches the hex input; the swatch stays first in the tab order.
|
|
25
26
|
- Only the hex input has a `name`, so only it submits; the swatch adds no form entry.
|
|
26
27
|
- `description` and `error` render below the inputs through `Field`; a non-empty `error` marks the hex input invalid (`aria-invalid`, a danger border) and joins its `aria-describedby`.
|
|
27
28
|
- `disabled` disables both inputs: they leave the tab order and the hex does not submit, with dashed borders. `required` sets the hex input's native `required`.
|
|
@@ -36,6 +37,10 @@ A form field for one colour as a `#rrggbb` string: a swatch, the browser's own c
|
|
|
36
37
|
<ColorField label="Colour" name="color" placeholder="None" swatchLabel="Pick colour for ui" />
|
|
37
38
|
```
|
|
38
39
|
|
|
40
|
+
```tsx
|
|
41
|
+
<ColorField label="Brand colour" iconEnd={LockOpenIcon} />
|
|
42
|
+
```
|
|
43
|
+
|
|
39
44
|
```tsx
|
|
40
45
|
<ColorField
|
|
41
46
|
label="Accent"
|
|
@@ -78,6 +83,8 @@ Generated from the TypeScript types.
|
|
|
78
83
|
| `disabled` | `boolean` | no | |
|
|
79
84
|
| `error` | `ReactNode` | no | |
|
|
80
85
|
| `hideLabel` | `boolean` | no | |
|
|
86
|
+
| `iconEnd` | `ComponentType` | no | |
|
|
87
|
+
| `iconStart` | `ComponentType` | no | |
|
|
81
88
|
| `inputProps` | `ColorFieldInputProps` | no | |
|
|
82
89
|
| `label` | `ReactNode` | yes | |
|
|
83
90
|
| `name` | `string` | no | |
|
package/dist/docs/Dialog.md
CHANGED
|
@@ -24,7 +24,7 @@ A modal panel over the page for one short task: edit a name, fill a small form,
|
|
|
24
24
|
- `size` (`sm`, `med`, `lg`; `med` by default) sets the width, 384, 512 or 640 px at the default font size; the panel never gets wider than the viewport less a 16 px edge.
|
|
25
25
|
- Put the content in `Dialog.Body`. When the dialog outgrows the viewport the whole popup scrolls; keep the content short so the actions stay close.
|
|
26
26
|
- `Dialog.Actions` end-aligns its buttons and wraps them on a narrow screen. Put `Dialog.Close` first, then one primary `Button`. A dialog with no buttons still closes on Esc and the backdrop, but give it a `Dialog.Close` so a pointer user sees the way out.
|
|
27
|
-
- `Dialog.Trigger` and `Dialog.Close` are bare `Clickable`s. Pass Button's `variant`, `size`, `iconStart` or `
|
|
27
|
+
- `Dialog.Trigger` and `Dialog.Close` are bare `Clickable`s. Pass Button's `variant`, `size`, `iconStart`, `iconEnd` or `uppercase` for a button look (`variant="secondary"` on Close); they render a `Button` with its fill, border and height, and keep the part's behavior and `aria-disabled`. Without them, style them with style props and give them an accessible name.
|
|
28
28
|
- `disabled` on the trigger keeps it focusable and announced, and stops it opening.
|
|
29
29
|
- Control it with `open` and `onOpenChange` to close it after a save or keep it open on an error. `onOpenChangeComplete` runs once the exit transition ends.
|
|
30
30
|
- The popup portals into the trigger's nearest `ThemeProvider`, so it keeps the brand and mode. That provider must not clip or stack its content: wrap the app root, and keep a nested provider off elements with `overflow: hidden`, a `transform` or their own `z-index`. It sits on `zIndex` `modal`. A dialog opened only through `open`, with no `Dialog.Trigger`, has no provider to find and portals to `<body>`.
|
|
@@ -136,6 +136,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
|
|
|
136
136
|
| `iconEnd` | `ComponentType` | no | |
|
|
137
137
|
| `iconStart` | `ComponentType` | no | |
|
|
138
138
|
| `size` | `"lg" \| "med" \| "sm"` | no | |
|
|
139
|
+
| `uppercase` | `boolean` | no | |
|
|
139
140
|
| `variant` | `"ghost" \| "primary" \| "secondary"` | no | |
|
|
140
141
|
|
|
141
142
|
Also accepts the style props (see `manifest.json` `styleProps`).
|
|
@@ -162,6 +163,7 @@ Also accepts the style props (see `manifest.json` `styleProps`).
|
|
|
162
163
|
| `id` | `string` | no | ID of the trigger. In addition to being forwarded to the rendered element, it is also used to specify the active trigger for the dialog in controlled mode (with the DialogRoot `triggerId` prop). |
|
|
163
164
|
| `payload` | `unknown` | no | A payload to pass to the dialog when it is opened. |
|
|
164
165
|
| `size` | `"lg" \| "med" \| "sm"` | no | |
|
|
166
|
+
| `uppercase` | `boolean` | no | |
|
|
165
167
|
| `variant` | `"ghost" \| "primary" \| "secondary"` | no | |
|
|
166
168
|
|
|
167
169
|
Also accepts the style props (see `manifest.json` `styleProps`).
|
package/dist/docs/IconButton.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
A compact button whose only visible content is an icon, for an action the icon makes plain: close, edit, refresh. A required `label` names it for assistive technology (`aria-label`); the icon is decorative. It is a `<button type="button">` on `Clickable`, so it has the shared focus ring, the 24px minimum target and `aria-disabled` that blocks activation while the button stays focusable. Three variants from Button's fills (`
|
|
5
|
+
A compact button whose only visible content is an icon, for an action the icon makes plain: close, edit, refresh. A required `label` names it for assistive technology (`aria-label`); the icon is decorative. It is a `<button type="button">` on `Clickable`, so it has the shared focus ring, the 24px minimum target and `aria-disabled` that blocks activation while the button stays focusable. Three variants from Button's fills (`ghost`, the default, `secondary` and `primary`), each a square at the control radius (`sm`, 6px, ADR 0162), with Button's glow on `primary` only (ADR 0131, 0163), and three sizes at Button's heights (`sm`, `med`, `lg`: 24, 32 and 40 px, ADR 0124).
|
|
6
6
|
|
|
7
7
|
## When to use
|
|
8
8
|
|
|
@@ -20,11 +20,11 @@ A compact button whose only visible content is an icon, for an action the icon m
|
|
|
20
20
|
|
|
21
21
|
- `label` is required and is the accessible name: say what the button does ("Close dialog", "Refresh results"), not what the icon shows ("X", "Arrows"). Never pass an empty string: the button would have no name. `aria-label`, `aria-labelledby` and children are not props; a raw one is ignored.
|
|
22
22
|
- `icon` takes an icon component (a generated `XIcon`, or a component that renders `Icon`), not an element: IconButton renders it at the `fontSize` step one below its `size` (12, 14 and 16px at `sm`, `med`, `lg`), as Button's icons, `aria-hidden`.
|
|
23
|
-
- `variant`: `
|
|
24
|
-
- `size`: `sm`, `med` (default) or `lg`, never `md`. Each is a
|
|
23
|
+
- `variant`: `ghost` (default), a muted ghost: no fill, border or glow, an `fgMuted` icon that turns `fg` on hover, keyboard focus and while open, for most icon actions, toolbars and controls that already frame it (SearchField's clear button). `secondary`, Button's quiet `controlFill` look, for an icon action that needs a visible frame; `primary` for the one action a view or dialog exists for. There is no `tone` and no `danger`: a destructive action deserves a labelled `Button` (ADR 0163).
|
|
24
|
+
- `size`: `sm`, `med` (default) or `lg`, never `md`. Each is a square as wide as Button's height of the same name (24, 32 and 40px), so an IconButton lines up with a Button beside it.
|
|
25
25
|
- `disabled` renders `aria-disabled="true"` and a dashed border, never the native `disabled`. There is no `loading` and no tooltip in v0.1.
|
|
26
26
|
- With `aria-expanded="true"`, as a Dialog trigger sets it, it holds the hover tint and an inset ring while the popup is open, as Button does.
|
|
27
|
-
- Fill (`backgroundColor`), text color (`color`), width (`minInlineSize`), height (`minBlockSize`) and `borderRadius` (`
|
|
27
|
+
- Fill (`backgroundColor`), text color (`color`), width (`minInlineSize`), height (`minBlockSize`) and `borderRadius` (`sm`) are default style props: pass one to change it. Change width and height together to keep the square. A `color` replaces the muted ghost's `fgMuted` and its `fg` on hover. `primary`'s glow gives way to a `boxShadow` prop, as on Button. Hover tints whatever the fill is; a custom fill needs an icon color that passes 3:1 on it (4.5:1 to match Button).
|
|
28
28
|
- `as="a"` with `href` for an icon-only link.
|
|
29
29
|
- Server-safe: IconButton has no hooks; `Clickable` inside it is the client boundary.
|
|
30
30
|
|
|
@@ -63,7 +63,7 @@ A compact button whose only visible content is an icon, for an action the icon m
|
|
|
63
63
|
- The `label` is announced as the button's name; the icon is hidden from assistive technology.
|
|
64
64
|
- The label is not shown on hover or focus. Sighted users who don't recognise the icon get no text, so keep IconButton to widely understood icons.
|
|
65
65
|
- A disabled IconButton stays in the tab order, and Enter and Space do nothing; the blocked click still bubbles to an ancestor's `onClick` (see Clickable's Rules). State is never color alone: disabled adds a dashed border.
|
|
66
|
-
- Every size is at least 24 by 24 CSS px (WCAG 2.2 target size); the icon on each variant passes 4.5:1 at rest and on hover in light and dark modes. Under forced colors it keeps Button's system colors, `ghost`'s `CanvasText` border included, and drops
|
|
66
|
+
- Every size is at least 24 by 24 CSS px (WCAG 2.2 target size); the icon on each variant passes 4.5:1 at rest and on hover in light and dark modes. Under forced colors it keeps Button's system colors, `ghost`'s `CanvasText` border included, and drops `primary`'s glow.
|
|
67
67
|
|
|
68
68
|
## Props
|
|
69
69
|
|