@jonmilner/ui 0.21.0 → 0.21.1
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/Tag/Tag.css +1 -1
- package/dist/Tag/Tag.css.mjs +35 -35
- package/dist/Tag/index.mjs +8 -7
- package/dist/Text/Text.css +1 -1
- package/dist/Text/Text.css.mjs +28 -28
- package/dist/Text/index.mjs +5 -5
- package/dist/docs/Tag.md +1 -1
- package/dist/docs/manifest.json +1 -1
- package/package.json +1 -1
package/dist/Tag/Tag.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.tag{._1jsyd8s1
|
|
2
|
+
@layer components.tag{._1jsyd8s2{--_1jsyd8s1:calc(var(--size-xs) - 2 * var(--space-1));border-width:var(--space-1);border-style:solid;border-color:var(--_1jsyd8s0,transparent)}._1jsyd8s3{overflow-wrap:anywhere}._1jsyd8s2:hover ._1jsyd8s3,._1jsyd8s2:focus-within ._1jsyd8s3{padding-block:var(--space-4);margin-block:0}._1jsyd8s4{--_1jsyd8s1:var(--size-xs)}._1jsyd8s5{align-self:start;margin-block-start:calc(calc((var(--_1jsyd8s1) - var(--_1nsw9rp0) * 1em - var(--_1nsw9rp1) - var(--_1nsw9rp2)) / 2) + var(--_1nsw9rp1))}._1jsyd8s2:hover ._1jsyd8s5,._1jsyd8s2:focus-within ._1jsyd8s5{margin-block-start:calc(calc((var(--_1jsyd8s1) - var(--_1nsw9rp0) * 1em - var(--_1nsw9rp1) - var(--_1nsw9rp2)) / 2) + var(--_1nsw9rp1));padding-block-start:calc(-1 * var(--_1nsw9rp1))}._1jsyd8s6{text-decoration:underline}._1jsyd8s8:hover{background-color:var(--color-bg)}._1jsyd8s9:hover{background-color:var(--color-hover)}._1jsyd8sk{--_1jsyd8s0:var(--color-border)}._1jsyd8sm{border-radius:var(--radius-full);background-color:var(--_1jsyd8sl)}._1jsyd8sn{vertical-align:calc((1cap - var(--space-6)) / 2);inline-size:var(--space-6);block-size:var(--space-6);margin-inline-end:var(--space-4);display:inline-block}._1jsyd8so{vertical-align:calc((1cap - var(--space-8)) / 2);inline-size:var(--space-8);block-size:var(--space-8);margin-inline-end:var(--space-8);display:inline-block}._1jsyd8sp{--_1jsyd8sl:var(--color-fg-muted)}._1jsyd8sq{--_1jsyd8sl:var(--color-accent)}._1jsyd8sr{--_1jsyd8sl:var(--color-success)}._1jsyd8ss{--_1jsyd8sl:var(--color-warning)}._1jsyd8st{--_1jsyd8sl:var(--color-danger)}._1jsyd8su{--_1jsyd8sl:var(--color-done)}._1jsyd8sv{vertical-align:calc((1cap - var(--font-size-xs)) / 2);margin-inline-end:var(--space-4);display:inline-block}._1jsyd8sw{vertical-align:calc((1cap - var(--font-size-med)) / 2);margin-inline-end:var(--space-8);display:inline-block}._1jsyd8sx{vertical-align:calc((1cap - var(--font-size-xs)) / 2);margin-inline-start:var(--space-4);display:inline-block}._1jsyd8sy{vertical-align:calc((1cap - var(--font-size-med)) / 2);margin-inline-start:var(--space-8);display:inline-block}._1jsyd8sz{vertical-align:top;max-inline-size:calc(100% - var(--font-size-xs) - var(--space-4));display:inline-block}._1jsyd8s10{vertical-align:top;max-inline-size:calc(100% - var(--font-size-med) - var(--space-8));display:inline-block}:where([data-text-reveal]:hover,[data-text-reveal]:focus-within) ._1jsyd8s11{max-inline-size:none;display:inline}@media (forced-colors:active){._1jsyd8s2{color:canvastext;background-color:canvas;border-color:canvastext}._1jsyd8sm{forced-color-adjust:none;background-color:canvastext}}}
|
package/dist/Tag/Tag.css.mjs
CHANGED
|
@@ -4,67 +4,67 @@ import "./Tag.css";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
6
|
// src/Tag/Tag.css.ts
|
|
7
|
-
var t = "
|
|
8
|
-
defaultClassName: "
|
|
7
|
+
var t = "_1jsyd8s2", n = "_1jsyd8s3", r = "_1jsyd8s4", i = "_1jsyd8s5", a = "_1jsyd8s6", o = e({
|
|
8
|
+
defaultClassName: "_1jsyd8s7",
|
|
9
9
|
variantClassNames: { appearance: {
|
|
10
|
-
subtle: "
|
|
11
|
-
outline: "
|
|
10
|
+
subtle: "_1jsyd8s8",
|
|
11
|
+
outline: "_1jsyd8s9"
|
|
12
12
|
} },
|
|
13
13
|
defaultVariants: {},
|
|
14
14
|
compoundVariants: []
|
|
15
|
-
}),
|
|
16
|
-
defaultClassName: "
|
|
15
|
+
}), s = e({
|
|
16
|
+
defaultClassName: "_1jsyd8sa",
|
|
17
17
|
variantClassNames: {
|
|
18
18
|
variant: {
|
|
19
|
-
neutral: "
|
|
20
|
-
accent: "
|
|
21
|
-
success: "
|
|
22
|
-
warning: "
|
|
23
|
-
danger: "
|
|
24
|
-
done: "
|
|
19
|
+
neutral: "_1jsyd8sb",
|
|
20
|
+
accent: "_1jsyd8sc",
|
|
21
|
+
success: "_1jsyd8sd",
|
|
22
|
+
warning: "_1jsyd8se",
|
|
23
|
+
danger: "_1jsyd8sf",
|
|
24
|
+
done: "_1jsyd8sg"
|
|
25
25
|
},
|
|
26
26
|
size: {
|
|
27
|
-
sm: "
|
|
28
|
-
med: "
|
|
27
|
+
sm: "_1jsyd8sh",
|
|
28
|
+
med: "_1jsyd8si"
|
|
29
29
|
},
|
|
30
30
|
appearance: {
|
|
31
|
-
subtle: "
|
|
32
|
-
outline: "
|
|
31
|
+
subtle: "_1jsyd8sj",
|
|
32
|
+
outline: "_1jsyd8sk"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
defaultVariants: {},
|
|
36
36
|
compoundVariants: []
|
|
37
|
-
}),
|
|
38
|
-
defaultClassName: "
|
|
37
|
+
}), c = e({
|
|
38
|
+
defaultClassName: "_1jsyd8sm",
|
|
39
39
|
variantClassNames: {
|
|
40
40
|
size: {
|
|
41
|
-
sm: "
|
|
42
|
-
med: "
|
|
41
|
+
sm: "_1jsyd8sn",
|
|
42
|
+
med: "_1jsyd8so"
|
|
43
43
|
},
|
|
44
44
|
variant: {
|
|
45
|
-
neutral: "
|
|
46
|
-
accent: "
|
|
47
|
-
success: "
|
|
48
|
-
warning: "
|
|
49
|
-
danger: "
|
|
50
|
-
done: "
|
|
45
|
+
neutral: "_1jsyd8sp",
|
|
46
|
+
accent: "_1jsyd8sq",
|
|
47
|
+
success: "_1jsyd8sr",
|
|
48
|
+
warning: "_1jsyd8ss",
|
|
49
|
+
danger: "_1jsyd8st",
|
|
50
|
+
done: "_1jsyd8su"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
defaultVariants: {},
|
|
54
54
|
compoundVariants: []
|
|
55
|
-
}),
|
|
55
|
+
}), l = {
|
|
56
56
|
start: {
|
|
57
|
-
xs: "
|
|
58
|
-
med: "
|
|
57
|
+
xs: "_1jsyd8sv",
|
|
58
|
+
med: "_1jsyd8sw"
|
|
59
59
|
},
|
|
60
60
|
end: {
|
|
61
|
-
xs: "
|
|
62
|
-
med: "
|
|
61
|
+
xs: "_1jsyd8sx",
|
|
62
|
+
med: "_1jsyd8sy"
|
|
63
63
|
},
|
|
64
64
|
clip: {
|
|
65
|
-
xs: "
|
|
66
|
-
med: "
|
|
65
|
+
xs: "_1jsyd8sz",
|
|
66
|
+
med: "_1jsyd8s10"
|
|
67
67
|
},
|
|
68
|
-
reveal: "
|
|
68
|
+
reveal: "_1jsyd8s11"
|
|
69
69
|
};
|
|
70
|
-
export {
|
|
70
|
+
export { c as dot, r as fullRow, n as label, a as link, i as pinned, o as remove, t as root, l as slot, s as tag };
|
package/dist/Tag/index.mjs
CHANGED
|
@@ -31,9 +31,9 @@ var v = {
|
|
|
31
31
|
};
|
|
32
32
|
function y({ appearance: y = "subtle", variant: b = "neutral", size: x = "med", href: S, iconStart: C, iconEnd: w, onRemove: T, removeLabel: E, display: D = "inline-flex", alignItems: O = "center", gap: k = "2", minBlockSize: A = "xs", paddingInlineStart: j = v[x].paddingInlineStart, paddingInlineEnd: M = T ? "2" : v[x].paddingInlineEnd, borderRadius: N = y === "outline" ? "med" : "xs", backgroundColor: P = y === "outline" ? void 0 : o[b].backgroundColor, color: F = y === "outline" ? "fg" : o[b].color, maxInlineSize: I, className: L, style: R, children: z, ...B }) {
|
|
33
33
|
if (z == null || typeof z == "boolean" || z === "" || _(z) === "") return null;
|
|
34
|
-
let V = a(I, R), H = /* @__PURE__ */ h(r, {
|
|
34
|
+
let V = a(I, R), H = V && A === "xs" && O === "center", U = /* @__PURE__ */ h(r, {
|
|
35
35
|
as: "span",
|
|
36
|
-
className: l,
|
|
36
|
+
className: e(l, H && "_1jsyd8s5"),
|
|
37
37
|
font: "label",
|
|
38
38
|
leading: v[x].leading,
|
|
39
39
|
paddingBlock: V ? void 0 : "4",
|
|
@@ -55,7 +55,7 @@ function y({ appearance: y = "subtle", variant: b = "neutral", size: x = "med",
|
|
|
55
55
|
}),
|
|
56
56
|
children: z
|
|
57
57
|
})
|
|
58
|
-
}),
|
|
58
|
+
}), W = _(z), G = E ?? (W === void 0 ? void 0 : `Remove ${W}`);
|
|
59
59
|
return /* @__PURE__ */ g(t, {
|
|
60
60
|
...B,
|
|
61
61
|
alignItems: O,
|
|
@@ -66,7 +66,7 @@ function y({ appearance: y = "subtle", variant: b = "neutral", size: x = "med",
|
|
|
66
66
|
variant: b,
|
|
67
67
|
size: x,
|
|
68
68
|
appearance: y
|
|
69
|
-
}), L),
|
|
69
|
+
}), (T || S) && "_1jsyd8s4", L),
|
|
70
70
|
color: F,
|
|
71
71
|
"data-text-reveal": "",
|
|
72
72
|
display: D,
|
|
@@ -77,14 +77,15 @@ function y({ appearance: y = "subtle", variant: b = "neutral", size: x = "med",
|
|
|
77
77
|
paddingInlineStart: j,
|
|
78
78
|
style: R,
|
|
79
79
|
children: [S ? /* @__PURE__ */ h(n, {
|
|
80
|
+
alignSelf: H ? "start" : void 0,
|
|
80
81
|
as: "a",
|
|
81
82
|
className: u,
|
|
82
83
|
href: S,
|
|
83
84
|
overflow: "hidden",
|
|
84
|
-
children:
|
|
85
|
-
}) :
|
|
85
|
+
children: U
|
|
86
|
+
}) : U, T && /* @__PURE__ */ h(n, {
|
|
86
87
|
alignSelf: "start",
|
|
87
|
-
"aria-label":
|
|
88
|
+
"aria-label": G ?? "Remove",
|
|
88
89
|
borderRadius: "full",
|
|
89
90
|
className: d({ appearance: y }),
|
|
90
91
|
flexShrink: 0,
|
package/dist/Text/Text.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
|
-
@layer components.text{.
|
|
2
|
+
@layer components.text{._1mgdisq1{--_1nsw9rp0:var(--line-height-med);--_1mgdisq0:var(--font-tracking-body);--_1nsw9rp1:calc((var(--font-trim-body-cap) - var(--_1nsw9rp0) / 2) * 1em);--_1nsw9rp2:calc((var(--font-trim-body-baseline) - var(--_1nsw9rp0) / 2) * 1em);font-family:var(--font-body);letter-spacing:var(--_1mgdisq0);font-feature-settings:var(--font-features-body);font-size:var(--font-size-med);font-weight:var(--font-weight-regular);line-height:var(--_1nsw9rp0)}:where(li)>._1mgdisq2{display:flow-root}:where(li:has(>._1mgdisq2))::marker{font-family:var(--font-body);line-height:0}:where(._1mgdisq1)>._1mgdisq1:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var){--_1nsw9rp0:inherit;--_1mgdisq0:inherit;--_1nsw9rp1:inherit;--_1nsw9rp2:inherit;font-feature-settings:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;display:inline}._1mgdisq4{--_1nsw9rp0:inherit;--_1mgdisq0:inherit;--_1nsw9rp1:inherit;--_1nsw9rp2:inherit;text-overflow:ellipsis;white-space:nowrap;font-feature-settings:inherit;min-block-size:0;min-inline-size:0;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;overflow-y:visible}:where([data-text-reveal]:hover,[data-text-reveal]:focus-within) ._1mgdisq4{white-space:normal;text-overflow:clip}._1mgdisq5{--_1mgdisq0:var(--font-tracking-body);--_1nsw9rp1:calc((var(--font-trim-body-cap) - var(--_1nsw9rp0) / 2) * 1em);--_1nsw9rp2:calc((var(--font-trim-body-baseline) - var(--_1nsw9rp0) / 2) * 1em);font-family:var(--font-body);letter-spacing:var(--_1mgdisq0);font-feature-settings:var(--font-features-body)}._1mgdisq6{--_1mgdisq0:var(--font-tracking-heading);--_1nsw9rp1:calc((var(--font-trim-heading-cap) - var(--_1nsw9rp0) / 2) * 1em);--_1nsw9rp2:calc((var(--font-trim-heading-baseline) - var(--_1nsw9rp0) / 2) * 1em);font-family:var(--font-heading);letter-spacing:var(--_1mgdisq0);font-feature-settings:var(--font-features-heading)}._1mgdisq7{--_1mgdisq0:var(--font-tracking-display);--_1nsw9rp1:calc((var(--font-trim-display-cap) - var(--_1nsw9rp0) / 2) * 1em);--_1nsw9rp2:calc((var(--font-trim-display-baseline) - var(--_1nsw9rp0) / 2) * 1em);font-family:var(--font-display);letter-spacing:var(--_1mgdisq0);font-feature-settings:var(--font-features-display)}._1mgdisq8{--_1mgdisq0:var(--font-tracking-label);--_1nsw9rp1:calc((var(--font-trim-label-cap) - var(--_1nsw9rp0) / 2) * 1em);--_1nsw9rp2:calc((var(--font-trim-label-baseline) - var(--_1nsw9rp0) / 2) * 1em);font-family:var(--font-label);letter-spacing:var(--_1mgdisq0);font-feature-settings:var(--font-features-label)}._1mgdisq9{--_1mgdisq0:var(--font-tracking-mono);--_1nsw9rp1:calc((var(--font-trim-mono-cap) - var(--_1nsw9rp0) / 2) * 1em);--_1nsw9rp2:calc((var(--font-trim-mono-baseline) - var(--_1nsw9rp0) / 2) * 1em);font-family:var(--font-mono);letter-spacing:var(--_1mgdisq0);font-feature-settings:var(--font-features-mono)}._1mgdisqa{font-size:var(--font-size-xs)}._1mgdisqb{font-size:var(--font-size-sm)}._1mgdisqc{font-size:var(--font-size-med)}._1mgdisqd{font-size:var(--font-size-lg)}._1mgdisqe{font-size:var(--font-size-xl)}._1mgdisqf{font-size:var(--font-size-2xl)}._1mgdisqg{font-size:var(--font-size-3xl)}._1mgdisqh{font-size:var(--font-size-4xl)}._1mgdisqi{font-weight:var(--font-weight-regular)}._1mgdisqj{font-weight:var(--font-weight-medium)}._1mgdisqk{font-weight:var(--font-weight-semibold)}._1mgdisql{font-weight:var(--font-weight-bold)}._1mgdisqm{--_1nsw9rp0:var(--line-height-sm);line-height:var(--_1nsw9rp0)}._1mgdisqn{--_1nsw9rp0:var(--line-height-meta);line-height:var(--_1nsw9rp0)}._1mgdisqo{--_1nsw9rp0:var(--line-height-body);line-height:var(--_1nsw9rp0)}._1mgdisqp{--_1nsw9rp0:var(--line-height-med);line-height:var(--_1nsw9rp0)}._1mgdisqq{--_1nsw9rp0:var(--line-height-lg);line-height:var(--_1nsw9rp0)}._1mgdisqr{font-variant-numeric:tabular-nums}._1mgdisqs{white-space:nowrap}._1mgdisqt{white-space:pre-wrap;overflow-wrap:anywhere}._1mgdisqu{white-space:pre}._1mgdisqv{text-overflow:ellipsis;white-space:nowrap;min-block-size:0;min-inline-size:0;margin-block-start:var(--_1nsw9rp1);margin-block-end:var(--_1nsw9rp2);padding-block-start:calc(-1 * var(--_1nsw9rp1));padding-block-end:calc(-1 * var(--_1nsw9rp2))}:where([data-text-reveal]:hover,[data-text-reveal]:focus-within) ._1mgdisqv{white-space:normal;text-overflow:clip}@supports (text-box:trim-both cap alphabetic){._1mgdisq1{text-box:trim-both cap alphabetic}._1mgdisq3{text-box:normal}._1mgdisq3:before{content:"";margin-block-end:var(--_1nsw9rp1);display:table}._1mgdisq3:after{content:"";margin-block-start:var(--_1nsw9rp2);display:table}:where(li)>._1mgdisq3:before,:where(li)>._1mgdisq3:after{display:block}:where(._1mgdisq1)>._1mgdisq1:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var){text-box-trim:none}:where(._1mgdisq1)>._1mgdisq1:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):before,:where(._1mgdisq1)>._1mgdisq1:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):after{content:none}._1mgdisq4{text-box-trim:none}}@supports not (text-box:trim-both cap alphabetic){._1mgdisq1:before{content:"";margin-block-end:var(--_1nsw9rp1);display:table}._1mgdisq1:after{content:"";margin-block-start:var(--_1nsw9rp2);display:table}:where(li)>._1mgdisq2:before,:where(li)>._1mgdisq2:after{display:block}:where(._1mgdisq1)>._1mgdisq1:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):before,:where(._1mgdisq1)>._1mgdisq1:where(a,abbr,b,bdi,bdo,cite,code,data,del,dfn,em,i,ins,kbd,label,mark,output,q,s,samp,small,span,strong,sub,sup,time,u,var):after,._1mgdisq4:before,._1mgdisq4:after{content:none}}}
|
package/dist/Text/Text.css.mjs
CHANGED
|
@@ -3,35 +3,35 @@ import "./Text.css";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
// src/Text/Text.css.ts
|
|
6
|
-
var e = "
|
|
7
|
-
body: "
|
|
8
|
-
heading: "
|
|
9
|
-
display: "
|
|
10
|
-
label: "
|
|
11
|
-
mono: "
|
|
6
|
+
var e = "_1mgdisq1", t = "_1mgdisq2", n = "_1mgdisq3", r = "_1mgdisq4", i = {
|
|
7
|
+
body: "_1mgdisq5",
|
|
8
|
+
heading: "_1mgdisq6",
|
|
9
|
+
display: "_1mgdisq7",
|
|
10
|
+
label: "_1mgdisq8",
|
|
11
|
+
mono: "_1mgdisq9"
|
|
12
12
|
}, a = {
|
|
13
|
-
xs: "
|
|
14
|
-
sm: "
|
|
15
|
-
med: "
|
|
16
|
-
lg: "
|
|
17
|
-
xl: "
|
|
18
|
-
"2xl": "
|
|
19
|
-
"3xl": "
|
|
20
|
-
"4xl": "
|
|
13
|
+
xs: "_1mgdisqa",
|
|
14
|
+
sm: "_1mgdisqb",
|
|
15
|
+
med: "_1mgdisqc",
|
|
16
|
+
lg: "_1mgdisqd",
|
|
17
|
+
xl: "_1mgdisqe",
|
|
18
|
+
"2xl": "_1mgdisqf",
|
|
19
|
+
"3xl": "_1mgdisqg",
|
|
20
|
+
"4xl": "_1mgdisqh"
|
|
21
21
|
}, o = {
|
|
22
|
-
regular: "
|
|
23
|
-
medium: "
|
|
24
|
-
semibold: "
|
|
25
|
-
bold: "
|
|
22
|
+
regular: "_1mgdisqi",
|
|
23
|
+
medium: "_1mgdisqj",
|
|
24
|
+
semibold: "_1mgdisqk",
|
|
25
|
+
bold: "_1mgdisql"
|
|
26
26
|
}, s = {
|
|
27
|
-
sm: "
|
|
28
|
-
meta: "
|
|
29
|
-
body: "
|
|
30
|
-
med: "
|
|
31
|
-
lg: "
|
|
32
|
-
}, c = "
|
|
33
|
-
nowrap: "
|
|
34
|
-
"pre-wrap": "
|
|
35
|
-
pre: "
|
|
36
|
-
}, u = "
|
|
27
|
+
sm: "_1mgdisqm",
|
|
28
|
+
meta: "_1mgdisqn",
|
|
29
|
+
body: "_1mgdisqo",
|
|
30
|
+
med: "_1mgdisqp",
|
|
31
|
+
lg: "_1mgdisqq"
|
|
32
|
+
}, c = "_1mgdisqr", l = {
|
|
33
|
+
nowrap: "_1mgdisqs",
|
|
34
|
+
"pre-wrap": "_1mgdisqt",
|
|
35
|
+
pre: "_1mgdisqu"
|
|
36
|
+
}, u = "_1mgdisqv";
|
|
37
37
|
export { t as block, i as font, s as leading, e as root, n as scrollContainer, a as size, c as tabularNums, u as truncate, r as truncateBox, o as weight, l as wrap };
|
package/dist/Text/index.mjs
CHANGED
|
@@ -6,16 +6,16 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
6
6
|
function l({ as: l, size: u, font: d, weight: f, leading: p, tabularNums: m, truncate: h, wrap: g, display: _ = "block", overflow: v = h ? "clip" : void 0, className: y, ...b }) {
|
|
7
7
|
let x = [
|
|
8
8
|
i,
|
|
9
|
-
_ === "block" && "
|
|
10
|
-
h === "box" && "
|
|
11
|
-
h !== "box" && (v === "hidden" || v === "auto") && "
|
|
9
|
+
_ === "block" && "_1mgdisq2",
|
|
10
|
+
h === "box" && "_1mgdisq4",
|
|
11
|
+
h !== "box" && (v === "hidden" || v === "auto") && "_1mgdisq3",
|
|
12
12
|
d && n[d],
|
|
13
13
|
u && a[u],
|
|
14
14
|
f && o[f],
|
|
15
15
|
p && r[p],
|
|
16
|
-
m && "
|
|
16
|
+
m && "_1mgdisqr",
|
|
17
17
|
g && !h && s[g],
|
|
18
|
-
h === !0 && "
|
|
18
|
+
h === !0 && "_1mgdisqv",
|
|
19
19
|
y
|
|
20
20
|
];
|
|
21
21
|
return /* @__PURE__ */ c(t, {
|
package/dist/docs/Tag.md
CHANGED
|
@@ -27,7 +27,7 @@ A label that puts content in a category: a topic, a label, a user-made category.
|
|
|
27
27
|
- Read-only is the default. `href` makes the label a link (a `Clickable` `<a>` around the text, underlined). The tag itself stays a `span`, so a remove button never nests in the link.
|
|
28
28
|
- `onRemove` adds a native `<button>` after the label with an `x` icon. Its name is "Remove <label>" from a string or number label; set `removeLabel` for any other label. Enter and Space activate it; the click calls `onRemove`. Tag handles no keys, so Backspace and Delete do nothing (ADR 0003, 0055).
|
|
29
29
|
- Wrapping: an uncapped label wraps to the width it has, so a tag never overflows a narrow container or a 320px viewport at large text sizes. Every line stays inside the fill and its rounded corners, and inside the outline under forced colors.
|
|
30
|
-
- Truncation: set `maxInlineSize` on the Tag, as the style prop or in `style` (the style prop's steps stop at 56px, so most caps are `style={{ maxInlineSize: "min(10rem, 100%)" }}`; the `100%` keeps a rem cap inside a narrow container at large text sizes). `style.maxWidth` counts too, and `style` wins over the prop, as inline styles do. A responsive prop truncates only with a `base` step and a size step (or `full`) at every breakpoint: `{ med: "xl" }` and `{ base: "xl", med: "fit" }` wrap. The prop's `fit`, `min`, `max` and `auto`, and `style` values `none`, `auto` and `*-content`, follow the content and wrap. A cap set only through `className` wraps instead. The label becomes one line with an ellipsis. While the pointer is over the tag, or focus is inside it, the label shows its whole text, wrapped within the same width
|
|
30
|
+
- Truncation: set `maxInlineSize` on the Tag, as the style prop or in `style` (the style prop's steps stop at 56px, so most caps are `style={{ maxInlineSize: "min(10rem, 100%)" }}`; the `100%` keeps a rem cap inside a narrow container at large text sizes). `style.maxWidth` counts too, and `style` wins over the prop, as inline styles do. A responsive prop truncates only with a `base` step and a size step (or `full`) at every breakpoint: `{ med: "xl" }` and `{ base: "xl", med: "fit" }` wrap. The prop's `fit`, `min`, `max` and `auto`, and `style` values `none`, `auto` and `*-content`, follow the content and wrap. A cap set only through `className` wraps instead. The label becomes one line with an ellipsis. While the pointer is over the tag, or focus is inside it, the label shows its whole text, wrapped within the same width, its first line where it was and the rest below, so no line's descenders or link underline are cut off and the tag and its remove button stay put (ADR 0172). There is no tooltip and no `title`; the DOM always holds the full text, so screen readers read all of it and so does the remove button's name. The tag grows in height when it reveals, so leave room for it in a tight row. A read-only tag takes no focus, so a keyboard user cannot reveal it: cap read-only tags only where the full text is also elsewhere, or make them links.
|
|
31
31
|
- With no children it renders nothing. Display, fill, text color, padding, radius and `minBlockSize` (the remove button's 24px target) are default style props; a consumer's win. `className`, `style` and `ref` go to the root, `className` last.
|
|
32
32
|
- The module has no hooks, so a server component can render it.
|
|
33
33
|
|
package/dist/docs/manifest.json
CHANGED