@jonmilner/ui 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/AlertDialog/index.d.mts +1 -1
- package/dist/Avatar/index.d.mts +1 -1
- package/dist/Avatar/index.mjs +5 -5
- package/dist/Badge/index.d.mts +1 -1
- package/dist/Badge/index.mjs +12 -12
- package/dist/Box/index.mjs +1 -1
- package/dist/Button/index.d.mts +1 -1
- package/dist/Button/index.mjs +22 -22
- package/dist/Checkbox/index.mjs +7 -7
- package/dist/Chip/index.mjs +35 -35
- package/dist/Clickable/index.d.mts +1 -1
- package/dist/Clickable/index.mjs +4 -4
- package/dist/ColorField/ColorField.css +1 -1
- package/dist/ColorField/client.mjs +6 -6
- package/dist/ColorField/index.mjs +14 -14
- package/dist/Combobox/Combobox.css +1 -1
- package/dist/Combobox/client.mjs +26 -26
- package/dist/Combobox/index.mjs +20 -20
- package/dist/Dialog/client.mjs +26 -26
- package/dist/Dialog/index.d.mts +1 -1
- package/dist/Dialog/index.mjs +19 -19
- package/dist/Field/client.mjs +6 -6
- package/dist/Field/index.mjs +29 -29
- package/dist/IconButton/IconButton.css +1 -1
- package/dist/IconButton/IconButton.css.mjs +2 -2
- package/dist/IconButton/index.d.mts +5 -2
- package/dist/IconButton/index.mjs +60 -21
- package/dist/Inline/index.d.mts +2 -2
- package/dist/Inline/index.mjs +4 -4
- package/dist/Menu/Menu.css +1 -1
- package/dist/Menu/Menu.css.mjs +2 -2
- package/dist/Menu/client.d.mts +1 -0
- package/dist/Menu/client.mjs +95 -53
- package/dist/Menu/index.d.mts +8 -0
- package/dist/Menu/index.mjs +123 -87
- package/dist/MultiSelect/MultiSelect.css +1 -1
- package/dist/MultiSelect/client.mjs +4 -4
- package/dist/MultiSelect/index.mjs +8 -8
- package/dist/NavList/NavList.css +1 -1
- package/dist/NavList/client.mjs +3 -3
- package/dist/NavList/index.d.mts +3 -3
- package/dist/NavList/index.mjs +67 -65
- package/dist/NumberField/NumberField.css +1 -1
- package/dist/NumberField/index.mjs +17 -17
- package/dist/RadioGroup/index.mjs +23 -23
- package/dist/SearchField/SearchField.css +1 -1
- package/dist/SearchField/client.mjs +13 -13
- package/dist/SearchField/index.mjs +16 -16
- package/dist/Select/Select.css +1 -1
- package/dist/Select/client.mjs +11 -11
- package/dist/Select/index.mjs +8 -8
- package/dist/Sidebar/index.d.mts +1 -1
- package/dist/Sidebar/index.mjs +21 -21
- package/dist/SidebarLayout/index.d.mts +1 -1
- package/dist/SidebarLayout/index.mjs +8 -8
- package/dist/Stack/index.d.mts +2 -2
- package/dist/Stack/index.mjs +4 -4
- package/dist/Switch/index.mjs +13 -13
- package/dist/Table/index.d.mts +1 -1
- package/dist/Table/index.mjs +59 -59
- package/dist/Tabs/index.mjs +26 -26
- package/dist/Tag/index.d.mts +1 -1
- package/dist/Tag/index.mjs +16 -16
- package/dist/Text/index.d.mts +2 -2
- package/dist/Text/index.mjs +4 -4
- package/dist/TextField/TextField.css +1 -1
- package/dist/TextField/index.mjs +16 -16
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Textarea/index.mjs +9 -9
- package/dist/Toast/client.d.mts +2 -1
- package/dist/Toast/client.mjs +62 -55
- package/dist/Tooltip/base.mjs +13 -13
- package/dist/contrast/contrast.d.mts +1 -1
- package/dist/contrast/contrast.mjs +9 -9
- package/dist/contrast/mixes.mjs +27 -27
- package/dist/docs/Combobox.md +1 -0
- package/dist/docs/IconButton.md +9 -1
- package/dist/docs/Menu.md +51 -3
- package/dist/docs/MultiSelect.md +1 -0
- package/dist/docs/NavList.md +2 -2
- package/dist/docs/Select.md +1 -0
- package/dist/docs/Toast.md +7 -0
- package/dist/docs/llms.txt +1 -1
- package/dist/docs/manifest.json +118 -1
- package/dist/docs/migrations/0.22.0.md +35 -0
- package/dist/icons/index.d.mts +3 -3
- package/dist/icons/index.mjs +33 -33
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +39 -39
- package/dist/lint/index.mjs +1 -0
- package/dist/popup/client.d.mts +1 -1
- package/dist/popup/client.mjs +49 -32
- package/dist/popup/direction.d.mts +1 -0
- package/dist/popup/direction.mjs +23 -0
- package/dist/popup/listbox-base.mjs +24 -24
- package/dist/popup/listbox-options.mjs +4 -4
- package/dist/popup/listbox-row.mjs +1 -0
- package/dist/popup/tooltip.d.mts +1 -0
- package/dist/popup/tooltip.mjs +48 -42
- package/dist/theme/define-theme.mjs +42 -42
- package/package.json +2 -2
package/dist/Tag/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { Clickable as t } from "../Clickable/index.mjs";
|
|
3
|
+
import { slotIcons as n } from "../icon-slot/slot.mjs";
|
|
4
|
+
import { XIcon as r } from "../icons/XIcon.mjs";
|
|
5
|
+
import { capped as i } from "../styles/capped.mjs";
|
|
6
|
+
import { join as a } from "../styles/join.mjs";
|
|
7
7
|
import { subtleFills as o } from "../styles/subtle-fills.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { Text as s } from "../Text/index.mjs";
|
|
9
9
|
import { dot as c, label as l, link as u, remove as d, root as f, slot as p, tag as m } from "./Tag.css.mjs";
|
|
10
10
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
11
11
|
// src/Tag/index.tsx
|
|
@@ -31,22 +31,22 @@ 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 =
|
|
34
|
+
let V = i(I, R), H = V && A === "xs" && O === "center", U = /* @__PURE__ */ h(s, {
|
|
35
35
|
as: "span",
|
|
36
|
-
className:
|
|
36
|
+
className: a(l, H && "_1jsyd8s5"),
|
|
37
37
|
font: "label",
|
|
38
38
|
leading: v[x].leading,
|
|
39
39
|
paddingBlock: V ? void 0 : "4",
|
|
40
40
|
size: v[x].step,
|
|
41
41
|
truncate: V,
|
|
42
42
|
weight: "medium",
|
|
43
|
-
children:
|
|
43
|
+
children: n({
|
|
44
44
|
iconStart: C,
|
|
45
45
|
iconEnd: w,
|
|
46
46
|
size: v[x].step,
|
|
47
47
|
styles: p,
|
|
48
48
|
truncate: V,
|
|
49
|
-
lead: y === "outline" && /* @__PURE__ */ h(
|
|
49
|
+
lead: y === "outline" && /* @__PURE__ */ h(e, {
|
|
50
50
|
as: "span",
|
|
51
51
|
className: c({
|
|
52
52
|
size: x,
|
|
@@ -56,13 +56,13 @@ function y({ appearance: y = "subtle", variant: b = "neutral", size: x = "med",
|
|
|
56
56
|
children: z
|
|
57
57
|
})
|
|
58
58
|
}), W = _(z), G = E ?? (W === void 0 ? void 0 : `Remove ${W}`);
|
|
59
|
-
return /* @__PURE__ */ g(
|
|
59
|
+
return /* @__PURE__ */ g(e, {
|
|
60
60
|
...B,
|
|
61
61
|
alignItems: O,
|
|
62
62
|
as: "span",
|
|
63
63
|
backgroundColor: P,
|
|
64
64
|
borderRadius: N,
|
|
65
|
-
className:
|
|
65
|
+
className: a(f, m({
|
|
66
66
|
variant: b,
|
|
67
67
|
size: x,
|
|
68
68
|
appearance: y
|
|
@@ -76,21 +76,21 @@ function y({ appearance: y = "subtle", variant: b = "neutral", size: x = "med",
|
|
|
76
76
|
paddingInlineEnd: M,
|
|
77
77
|
paddingInlineStart: j,
|
|
78
78
|
style: R,
|
|
79
|
-
children: [S ? /* @__PURE__ */ h(
|
|
79
|
+
children: [S ? /* @__PURE__ */ h(t, {
|
|
80
80
|
alignSelf: H ? "start" : void 0,
|
|
81
81
|
as: "a",
|
|
82
82
|
className: u,
|
|
83
83
|
href: S,
|
|
84
84
|
overflow: "hidden",
|
|
85
85
|
children: U
|
|
86
|
-
}) : U, T && /* @__PURE__ */ h(
|
|
86
|
+
}) : U, T && /* @__PURE__ */ h(t, {
|
|
87
87
|
alignSelf: "start",
|
|
88
88
|
"aria-label": G ?? "Remove",
|
|
89
89
|
borderRadius: "full",
|
|
90
90
|
className: d({ appearance: y }),
|
|
91
91
|
flexShrink: 0,
|
|
92
92
|
onClick: T,
|
|
93
|
-
children: /* @__PURE__ */ h(
|
|
93
|
+
children: /* @__PURE__ */ h(r, { size: v[x].step })
|
|
94
94
|
})]
|
|
95
95
|
});
|
|
96
96
|
}
|
package/dist/Text/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PolymorphicProps } from "../types.mjs";
|
|
2
1
|
import { StyleProps } from "../Box/base.mjs";
|
|
3
|
-
import { tokens } from "../tokens/scales.mjs";
|
|
4
2
|
import { FontRole } from "../tokens/roles.mjs";
|
|
3
|
+
import { tokens } from "../tokens/scales.mjs";
|
|
4
|
+
import { PolymorphicProps } from "../types.mjs";
|
|
5
5
|
import { ElementType } from "react";
|
|
6
6
|
export type TextOwnProps = {
|
|
7
7
|
font?: FontRole;
|
package/dist/Text/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 { font as n, leading as r, root as i, size as a, weight as o, wrap as s } from "./Text.css.mjs";
|
|
4
4
|
import { jsx as c } from "react/jsx-runtime";
|
|
5
5
|
// src/Text/index.tsx
|
|
@@ -18,12 +18,12 @@ function l({ as: l, size: u, font: d, weight: f, leading: p, tabularNums: m, tru
|
|
|
18
18
|
h === !0 && "_1mgdisqv",
|
|
19
19
|
y
|
|
20
20
|
];
|
|
21
|
-
return /* @__PURE__ */ c(
|
|
21
|
+
return /* @__PURE__ */ c(e, {
|
|
22
22
|
as: l ?? "p",
|
|
23
23
|
display: _,
|
|
24
24
|
overflow: v,
|
|
25
25
|
...b,
|
|
26
|
-
className:
|
|
26
|
+
className: t(...x)
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
export { l as Text };
|
|
@@ -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-field{._20at410{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._20at411{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-sm);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);grid-area:1/1;padding-block:0}._20at411::placeholder{color:var(--color-fg-muted);opacity:1}._20at411:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._20at411:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}._20at411[aria-invalid=true]{border-color:var(--color-danger)}._20at412{block-size:var(--size-xs);padding-inline:var(--space-6)}._20at413{block-size:var(--size-sm);padding-inline:var(--space-8)}._20at414{block-size:var(--size-med);padding-inline:var(--space-12)}._20at415{font-family:var(--font-body);font-size:var(--font-size-xs);
|
|
2
|
+
@layer components.text-field{._20at410{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}._20at411{appearance:none;border-width:var(--space-1);border-style:solid;border-color:var(--color-border-strong);border-radius:var(--radius-sm);background-color:var(--color-bg);inline-size:100%;min-inline-size:0;color:var(--color-fg);grid-area:1/1;padding-block:0}._20at411::placeholder{color:var(--color-fg-muted);opacity:1}._20at411:focus-visible{outline:var(--space-2) solid var(--color-focus);outline-offset:var(--space-2)}._20at411:disabled{background-color:var(--color-bg-muted);color:var(--color-fg-muted);cursor:not-allowed;border-style:dashed}._20at411[aria-invalid=true]{border-color:var(--color-danger)}._20at412{block-size:var(--size-xs);padding-inline:var(--space-6)}._20at413{block-size:var(--size-sm);padding-inline:var(--space-8)}._20at414{block-size:var(--size-med);padding-inline:var(--space-12)}._20at415{font-family:var(--font-body);font-size:var(--font-size-xs);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center start;padding-inline-start:var(--space-6);line-height:normal}._20at416{font-family:var(--font-body);font-size:var(--font-size-sm);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center start;padding-inline-start:var(--space-8);line-height:normal}._20at417{font-family:var(--font-body);font-size:var(--font-size-med);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center start;padding-inline-start:var(--space-12);line-height:normal}._20at418{font-family:var(--font-body);font-size:var(--font-size-xs);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center end;padding-inline-end:var(--space-6);line-height:normal}._20at419{font-family:var(--font-body);font-size:var(--font-size-sm);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center end;padding-inline-end:var(--space-8);line-height:normal}._20at41a{font-family:var(--font-body);font-size:var(--font-size-med);color:var(--color-fg-muted);pointer-events:none;grid-area:1/1;place-self:center end;padding-inline-end:var(--space-12);line-height:normal}._20at41b{vertical-align:calc((1cap - var(--font-size-xs)) / 2);display:inline-block}._20at41c{vertical-align:calc((1cap - var(--font-size-sm)) / 2);display:inline-block}._20at41d{vertical-align:calc((1cap - var(--font-size-med)) / 2);display:inline-block}._20at41e{padding-inline-start:calc(var(--space-6) + var(--font-size-xs) + var(--space-4))}._20at41f{padding-inline-start:calc(var(--space-8) + var(--font-size-sm) + var(--space-4))}._20at41g{padding-inline-start:calc(var(--space-12) + var(--font-size-med) + var(--space-8))}._20at41h{padding-inline-end:calc(var(--space-6) + var(--font-size-xs) + var(--space-4))}._20at41i{padding-inline-end:calc(var(--space-8) + var(--font-size-sm) + var(--space-4))}._20at41j{padding-inline-end:calc(var(--space-12) + var(--font-size-med) + var(--space-8))}@media (pointer:coarse){._20at411,._20at415,._20at416,._20at417,._20at418,._20at419,._20at41a{font-size:var(--font-size-med)}}@media (forced-colors:active){._20at411:disabled{color:graytext;border-color:graytext}}@supports (text-box:trim-both cap alphabetic){._20at411{text-box-trim:none}}}
|
package/dist/TextField/index.mjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { Field as t } from "../Field/index.mjs";
|
|
3
|
+
import { InputIcons as n } from "../icon-slot/input-icons.mjs";
|
|
4
|
+
import { controlText as r } from "../styles/control-size.mjs";
|
|
5
|
+
import { join as i } from "../styles/join.mjs";
|
|
6
|
+
import { Text as a } from "../Text/index.mjs";
|
|
7
7
|
import { hiddenLabel as o, input as s, slot as c } from "./TextField.css.mjs";
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
import { Input as d } from "@base-ui/react/input";
|
|
10
10
|
// src/TextField/index.tsx
|
|
11
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(
|
|
12
|
+
return /* @__PURE__ */ u(t, {
|
|
13
13
|
...A,
|
|
14
14
|
className: O,
|
|
15
15
|
disabled: S,
|
|
16
16
|
invalid: b != null && b !== !1 && b !== "",
|
|
17
17
|
style: k,
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */ l(
|
|
19
|
+
/* @__PURE__ */ l(t.Label, {
|
|
20
20
|
className: p ? o : void 0,
|
|
21
21
|
children: f
|
|
22
22
|
}),
|
|
23
|
-
/* @__PURE__ */ u(
|
|
23
|
+
/* @__PURE__ */ u(e, {
|
|
24
24
|
display: "grid",
|
|
25
25
|
children: [/* @__PURE__ */ l(d, {
|
|
26
26
|
...T,
|
|
@@ -28,24 +28,24 @@ function f({ label: f, hideLabel: p = !1, type: m = "text", value: h, defaultVal
|
|
|
28
28
|
name: w,
|
|
29
29
|
onValueChange: _ && ((e) => _(e)),
|
|
30
30
|
placeholder: v,
|
|
31
|
-
render: /* @__PURE__ */ l(
|
|
31
|
+
render: /* @__PURE__ */ l(a, {
|
|
32
32
|
as: "input",
|
|
33
|
-
className:
|
|
34
|
-
size:
|
|
33
|
+
className: i(s({ size: x }), E && c.roomStart[x], D && c.roomEnd[x]),
|
|
34
|
+
size: r[x]
|
|
35
35
|
}),
|
|
36
36
|
required: C,
|
|
37
37
|
type: m,
|
|
38
38
|
value: h
|
|
39
|
-
}), /* @__PURE__ */ l(
|
|
39
|
+
}), /* @__PURE__ */ l(n, {
|
|
40
40
|
iconEnd: D,
|
|
41
41
|
iconStart: E,
|
|
42
42
|
size: x,
|
|
43
|
-
step:
|
|
43
|
+
step: r[x],
|
|
44
44
|
styles: c
|
|
45
45
|
})]
|
|
46
46
|
}),
|
|
47
|
-
y != null && /* @__PURE__ */ l(
|
|
48
|
-
/* @__PURE__ */ l(
|
|
47
|
+
y != null && /* @__PURE__ */ l(t.Description, { children: y }),
|
|
48
|
+
/* @__PURE__ */ l(t.Error, { children: b })
|
|
49
49
|
]
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -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.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-sm);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}}}
|
|
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-sm);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}}@supports (text-box:trim-both cap alphabetic){._1kwv2lp1{text-box-trim:none}}}
|
package/dist/Textarea/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Field as e } from "../Field/index.mjs";
|
|
2
|
+
import { controlText as t } from "../styles/control-size.mjs";
|
|
3
|
+
import { Text as n } from "../Text/index.mjs";
|
|
4
4
|
import { hiddenLabel as r, input as i } from "./Textarea.css.mjs";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
import { Input as s } from "@base-ui/react/input";
|
|
7
7
|
// src/Textarea/index.tsx
|
|
8
8
|
function c({ label: c, hideLabel: l = !1, rows: u = 3, value: d, defaultValue: f, onValueChange: p, placeholder: m, description: h, error: g, size: _ = "med", disabled: v = !1, required: y = !1, name: b, inputProps: x, className: S, style: C, ...w }) {
|
|
9
|
-
return /* @__PURE__ */ o(
|
|
9
|
+
return /* @__PURE__ */ o(e, {
|
|
10
10
|
...w,
|
|
11
11
|
className: S,
|
|
12
12
|
disabled: v,
|
|
13
13
|
invalid: g != null && g !== !1 && g !== "",
|
|
14
14
|
style: C,
|
|
15
15
|
children: [
|
|
16
|
-
/* @__PURE__ */ a(
|
|
16
|
+
/* @__PURE__ */ a(e.Label, {
|
|
17
17
|
className: l ? r : void 0,
|
|
18
18
|
children: c
|
|
19
19
|
}),
|
|
@@ -23,17 +23,17 @@ function c({ label: c, hideLabel: l = !1, rows: u = 3, value: d, defaultValue: f
|
|
|
23
23
|
name: b,
|
|
24
24
|
onValueChange: p && ((e) => p(e)),
|
|
25
25
|
placeholder: m,
|
|
26
|
-
render: /* @__PURE__ */ a(
|
|
26
|
+
render: /* @__PURE__ */ a(n, {
|
|
27
27
|
as: "textarea",
|
|
28
28
|
className: i({ size: _ }),
|
|
29
29
|
rows: u,
|
|
30
|
-
size:
|
|
30
|
+
size: t[_]
|
|
31
31
|
}),
|
|
32
32
|
required: y,
|
|
33
33
|
value: d
|
|
34
34
|
}),
|
|
35
|
-
h != null && /* @__PURE__ */ a(
|
|
36
|
-
/* @__PURE__ */ a(
|
|
35
|
+
h != null && /* @__PURE__ */ a(e.Description, { children: h }),
|
|
36
|
+
/* @__PURE__ */ a(e.Error, { children: g })
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
39
|
}
|
package/dist/Toast/client.d.mts
CHANGED
|
@@ -11,6 +11,7 @@ export type ToastOptions = {
|
|
|
11
11
|
};
|
|
12
12
|
description?: string;
|
|
13
13
|
duration?: number;
|
|
14
|
+
onClose?: () => void;
|
|
14
15
|
title: string;
|
|
15
16
|
variant?: ToastVariant;
|
|
16
17
|
};
|
|
@@ -38,7 +39,7 @@ declare const icons: {
|
|
|
38
39
|
};
|
|
39
40
|
declare function ToastProvider({ limit, closeLabel, regionLabel, className, style, children }: ToastProviderProps): import("react").JSX.Element;
|
|
40
41
|
export declare function useToast(): {
|
|
41
|
-
add: ({ title, description, variant, duration, action }: ToastOptions) => string;
|
|
42
|
+
add: ({ title, description, variant, duration, action, onClose }: ToastOptions) => string;
|
|
42
43
|
close: (id: string) => void;
|
|
43
44
|
};
|
|
44
45
|
export { ToastProvider };
|
package/dist/Toast/client.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Box as e } from "../Box/base.mjs";
|
|
3
|
+
import { Button as t } from "../Button/index.mjs";
|
|
4
4
|
import { Clickable as n } from "../Clickable/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
5
|
+
import { CircleAlertIcon as r } from "../icons/CircleAlertIcon.mjs";
|
|
6
|
+
import { CircleCheckIcon as i } from "../icons/CircleCheckIcon.mjs";
|
|
7
|
+
import { InfoIcon as a } from "../icons/InfoIcon.mjs";
|
|
8
|
+
import { XIcon as o } from "../icons/XIcon.mjs";
|
|
9
|
+
import { join as s } from "../styles/join.mjs";
|
|
10
|
+
import { Text as c } from "../Text/index.mjs";
|
|
11
|
+
import { useThemeContainer as l } from "../theme/use-theme-container.mjs";
|
|
12
12
|
import { announcer as u, close as d, content as f, list as p, root as m, toast as h, viewport as g } from "./Toast.css.mjs";
|
|
13
13
|
import { createContext as _, use as v, useCallback as y, useEffect as b, useLayoutEffect as x, useMemo as S, useRef as C, useState as w } from "react";
|
|
14
14
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
@@ -16,39 +16,39 @@ import { Toast as D } from "@base-ui/react/toast";
|
|
|
16
16
|
// src/Toast/client.tsx
|
|
17
17
|
var O = {
|
|
18
18
|
info: {
|
|
19
|
-
Icon:
|
|
19
|
+
Icon: a,
|
|
20
20
|
color: "fgMuted"
|
|
21
21
|
},
|
|
22
22
|
success: {
|
|
23
|
-
Icon:
|
|
23
|
+
Icon: i,
|
|
24
24
|
color: "success"
|
|
25
25
|
},
|
|
26
26
|
error: {
|
|
27
|
-
Icon:
|
|
27
|
+
Icon: r,
|
|
28
28
|
color: "danger"
|
|
29
29
|
}
|
|
30
30
|
}, k = _(null), A = _(null), j = (e) => e !== void 0 && Object.hasOwn(O, e);
|
|
31
|
-
function M({ limit:
|
|
32
|
-
let { container:
|
|
31
|
+
function M({ limit: t = 3, closeLabel: n = "Dismiss", regionLabel: r = "Notifications", className: i, style: a, children: o }) {
|
|
32
|
+
let { container: s, ref: c } = l(), [u] = w(D.createToastManager);
|
|
33
33
|
return /* @__PURE__ */ T(D.Provider, {
|
|
34
|
-
limit:
|
|
34
|
+
limit: t,
|
|
35
35
|
toastManager: u,
|
|
36
36
|
children: /* @__PURE__ */ E(k, {
|
|
37
37
|
value: u,
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */ T(
|
|
39
|
+
/* @__PURE__ */ T(e, {
|
|
40
40
|
as: "span",
|
|
41
41
|
hidden: !0,
|
|
42
|
-
ref:
|
|
42
|
+
ref: c
|
|
43
43
|
}),
|
|
44
|
-
|
|
44
|
+
o,
|
|
45
45
|
/* @__PURE__ */ T(P, {}),
|
|
46
46
|
/* @__PURE__ */ T(D.Portal, {
|
|
47
|
-
container:
|
|
47
|
+
container: s,
|
|
48
48
|
children: /* @__PURE__ */ T(N, {
|
|
49
49
|
className: i,
|
|
50
50
|
regionLabel: r,
|
|
51
|
-
style:
|
|
51
|
+
style: a,
|
|
52
52
|
children: /* @__PURE__ */ T(F, { closeLabel: n })
|
|
53
53
|
})
|
|
54
54
|
})
|
|
@@ -56,47 +56,47 @@ function M({ limit: e = 3, closeLabel: n = "Dismiss", regionLabel: r = "Notifica
|
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function N({ regionLabel:
|
|
60
|
-
let
|
|
59
|
+
function N({ regionLabel: t, className: n, style: r, children: i }) {
|
|
60
|
+
let a = C(null), o = C(null);
|
|
61
61
|
return b(() => {
|
|
62
|
-
let e =
|
|
62
|
+
let e = o.current;
|
|
63
63
|
if (!e) return;
|
|
64
|
-
let t = e.ownerDocument, n = !1, r = (t) => {
|
|
65
|
-
e.contains(t.target) ? n = !0 : n && (n = !1, e.dispatchEvent(new MouseEvent("mouseout", {
|
|
64
|
+
let t = e.ownerDocument, n = { inside: !1 }, r = (t) => {
|
|
65
|
+
e.contains(t.target) ? n.inside = !0 : n.inside && (n.inside = !1, e.dispatchEvent(new MouseEvent("mouseout", {
|
|
66
66
|
bubbles: !0,
|
|
67
67
|
relatedTarget: e.parentElement
|
|
68
68
|
})));
|
|
69
69
|
}, i = (t) => {
|
|
70
70
|
let r = t.relatedTarget;
|
|
71
|
-
r && e.contains(r) || (n = !1);
|
|
71
|
+
r && e.contains(r) || (n.inside = !1);
|
|
72
72
|
};
|
|
73
73
|
return t.addEventListener("mouseover", r), t.addEventListener("mouseout", i), () => {
|
|
74
74
|
t.removeEventListener("mouseover", r), t.removeEventListener("mouseout", i);
|
|
75
75
|
};
|
|
76
76
|
}, []), /* @__PURE__ */ T(D.Viewport, {
|
|
77
77
|
"aria-atomic": void 0,
|
|
78
|
-
"aria-label":
|
|
78
|
+
"aria-label": t,
|
|
79
79
|
"aria-live": "off",
|
|
80
80
|
"aria-relevant": void 0,
|
|
81
81
|
onFocus: (e) => {
|
|
82
82
|
let t = e.relatedTarget;
|
|
83
|
-
t && !e.currentTarget.contains(t) && (
|
|
83
|
+
t && !e.currentTarget.contains(t) && (a.current = t);
|
|
84
84
|
},
|
|
85
85
|
onKeyDown: (e) => {
|
|
86
86
|
e.key === "Escape" && e.stopPropagation();
|
|
87
87
|
},
|
|
88
|
-
ref:
|
|
89
|
-
render: /* @__PURE__ */ T(
|
|
90
|
-
className:
|
|
88
|
+
ref: o,
|
|
89
|
+
render: /* @__PURE__ */ T(e, {
|
|
90
|
+
className: s(g, n),
|
|
91
91
|
position: "fixed",
|
|
92
|
-
style:
|
|
92
|
+
style: r,
|
|
93
93
|
zIndex: "toast"
|
|
94
94
|
}),
|
|
95
95
|
children: /* @__PURE__ */ T("div", {
|
|
96
96
|
className: p,
|
|
97
97
|
children: /* @__PURE__ */ T(A, {
|
|
98
|
-
value:
|
|
99
|
-
children:
|
|
98
|
+
value: a,
|
|
99
|
+
children: i
|
|
100
100
|
})
|
|
101
101
|
})
|
|
102
102
|
});
|
|
@@ -129,43 +129,43 @@ function F({ closeLabel: e }) {
|
|
|
129
129
|
toast: t
|
|
130
130
|
}, t.id));
|
|
131
131
|
}
|
|
132
|
-
function I({ toast:
|
|
133
|
-
let
|
|
132
|
+
function I({ toast: r, closeLabel: i }) {
|
|
133
|
+
let a = j(r.type) ? r.type : "info", { Icon: l, color: u } = O[a], p = v(k), g = v(A), [_, b] = w(!1), S = y((e) => {
|
|
134
134
|
e && b(getComputedStyle(e).direction === "rtl");
|
|
135
|
-
}, []), M = C(!1), N =
|
|
135
|
+
}, []), M = C(!1), N = r.transitionStatus === "ending";
|
|
136
136
|
return x(() => {
|
|
137
|
-
let e =
|
|
137
|
+
let e = r.ref?.current, t = e?.ownerDocument.activeElement;
|
|
138
138
|
if (!N || M.current || !t || !e.contains(t)) return;
|
|
139
139
|
let n = g?.current;
|
|
140
140
|
n instanceof HTMLElement && n.isConnected && n.focus({ preventScroll: !0 });
|
|
141
141
|
}, [
|
|
142
142
|
N,
|
|
143
143
|
g,
|
|
144
|
-
|
|
144
|
+
r.ref
|
|
145
145
|
]), /* @__PURE__ */ E(D.Root, {
|
|
146
146
|
"aria-modal": void 0,
|
|
147
147
|
ref: S,
|
|
148
|
-
render: /* @__PURE__ */ T(
|
|
148
|
+
render: /* @__PURE__ */ T(e, {
|
|
149
149
|
alignItems: "start",
|
|
150
150
|
backgroundColor: "bgRaised",
|
|
151
151
|
borderRadius: "med",
|
|
152
152
|
boxShadow: "lg",
|
|
153
|
-
className:
|
|
153
|
+
className: s(m, h({ variant: a })),
|
|
154
154
|
display: "flex",
|
|
155
155
|
gap: "12",
|
|
156
156
|
padding: "12"
|
|
157
157
|
}),
|
|
158
158
|
role: "group",
|
|
159
159
|
swipeDirection: ["down", _ ? "left" : "right"],
|
|
160
|
-
toast:
|
|
160
|
+
toast: r,
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ T(
|
|
162
|
+
/* @__PURE__ */ T(e, {
|
|
163
163
|
display: "flex",
|
|
164
164
|
flexShrink: 0,
|
|
165
165
|
paddingBlock: "2",
|
|
166
166
|
children: /* @__PURE__ */ T(l, { color: u })
|
|
167
167
|
}),
|
|
168
|
-
/* @__PURE__ */ E(
|
|
168
|
+
/* @__PURE__ */ E(e, {
|
|
169
169
|
alignItems: "start",
|
|
170
170
|
className: f,
|
|
171
171
|
display: "flex",
|
|
@@ -173,16 +173,16 @@ function I({ toast: a, closeLabel: o }) {
|
|
|
173
173
|
flexGrow: 1,
|
|
174
174
|
gap: "8",
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */ T(D.Title, { render: /* @__PURE__ */ T(
|
|
176
|
+
/* @__PURE__ */ T(D.Title, { render: /* @__PURE__ */ T(c, {
|
|
177
177
|
as: "div",
|
|
178
178
|
weight: "medium"
|
|
179
179
|
}) }),
|
|
180
|
-
/* @__PURE__ */ T(D.Description, { render: /* @__PURE__ */ T(
|
|
180
|
+
/* @__PURE__ */ T(D.Description, { render: /* @__PURE__ */ T(c, {
|
|
181
181
|
as: "div",
|
|
182
182
|
color: "fgMuted",
|
|
183
183
|
size: "sm"
|
|
184
184
|
}) }),
|
|
185
|
-
/* @__PURE__ */ T(D.Action, { render: /* @__PURE__ */ T(
|
|
185
|
+
/* @__PURE__ */ T(D.Action, { render: /* @__PURE__ */ T(t, {
|
|
186
186
|
size: "med",
|
|
187
187
|
variant: "secondary"
|
|
188
188
|
}) })
|
|
@@ -190,11 +190,11 @@ function I({ toast: a, closeLabel: o }) {
|
|
|
190
190
|
}),
|
|
191
191
|
/* @__PURE__ */ T(D.Close, {
|
|
192
192
|
"aria-hidden": !1,
|
|
193
|
-
"aria-label":
|
|
193
|
+
"aria-label": i,
|
|
194
194
|
onClick: (e) => {
|
|
195
195
|
if (e.detail !== 0 || !p) return;
|
|
196
|
-
let t =
|
|
197
|
-
n instanceof HTMLElement && (e.preventBaseUIHandler(), M.current = !0, p.close(
|
|
196
|
+
let t = r.ref?.current, n = (t && L(t)) ?? g?.current;
|
|
197
|
+
n instanceof HTMLElement && (e.preventBaseUIHandler(), M.current = !0, p.close(r.id), requestAnimationFrame(() => {
|
|
198
198
|
n.isConnected && n.focus();
|
|
199
199
|
}));
|
|
200
200
|
},
|
|
@@ -204,7 +204,7 @@ function I({ toast: a, closeLabel: o }) {
|
|
|
204
204
|
flexShrink: 0,
|
|
205
205
|
padding: "4"
|
|
206
206
|
}),
|
|
207
|
-
children: /* @__PURE__ */ T(
|
|
207
|
+
children: /* @__PURE__ */ T(o, {})
|
|
208
208
|
})
|
|
209
209
|
]
|
|
210
210
|
});
|
|
@@ -219,25 +219,32 @@ function R() {
|
|
|
219
219
|
return S(() => {
|
|
220
220
|
let t = (t) => e.close(t);
|
|
221
221
|
return {
|
|
222
|
-
add: ({ title: n, description: r, variant: i = "info", duration: a = i === "error" ? 0 : 5e3, action: o }) => {
|
|
223
|
-
let
|
|
222
|
+
add: ({ title: n, description: r, variant: i = "info", duration: a = i === "error" ? 0 : 5e3, action: o, onClose: s }) => {
|
|
223
|
+
let c = e.add({
|
|
224
224
|
title: n,
|
|
225
225
|
description: r,
|
|
226
226
|
type: i,
|
|
227
227
|
timeout: a,
|
|
228
228
|
priority: "low",
|
|
229
|
+
onClose: s && (() => {
|
|
230
|
+
try {
|
|
231
|
+
s();
|
|
232
|
+
} catch (e) {
|
|
233
|
+
reportError(e);
|
|
234
|
+
}
|
|
235
|
+
}),
|
|
229
236
|
actionProps: o && {
|
|
230
237
|
children: o.label,
|
|
231
238
|
onClick: () => {
|
|
232
239
|
try {
|
|
233
240
|
o.onClick();
|
|
234
241
|
} finally {
|
|
235
|
-
t(
|
|
242
|
+
t(c);
|
|
236
243
|
}
|
|
237
244
|
}
|
|
238
245
|
}
|
|
239
246
|
});
|
|
240
|
-
return
|
|
247
|
+
return c;
|
|
241
248
|
},
|
|
242
249
|
close: t
|
|
243
250
|
};
|
package/dist/Tooltip/base.mjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { TooltipPopupPart as t, TooltipPortal as n, TooltipPositioner as r } from "../popup/tooltip.mjs";
|
|
3
|
+
import { join as i } from "../styles/join.mjs";
|
|
4
|
+
import { splitStyleProps as a } from "../styles/split-style-props.mjs";
|
|
5
|
+
import { Text as o } from "../Text/index.mjs";
|
|
6
6
|
import { popup as s, positioner as c } from "./Tooltip.css.mjs";
|
|
7
7
|
import { Children as l } from "react";
|
|
8
8
|
import { jsx as u } from "react/jsx-runtime";
|
|
9
9
|
// src/Tooltip/base.tsx
|
|
10
|
-
function d({ side:
|
|
11
|
-
let [x, S] =
|
|
12
|
-
return /* @__PURE__ */ u(
|
|
10
|
+
function d({ side: o = "top", align: l = "center", backgroundColor: d = "bgRaised", borderRadius: p = "xs", boxShadow: m = "med", paddingBlock: h = "4", paddingInline: g = "8", className: _, style: v, children: y, ...b }) {
|
|
11
|
+
let [x, S] = a(b);
|
|
12
|
+
return /* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(r, {
|
|
13
13
|
align: l,
|
|
14
14
|
className: c,
|
|
15
|
-
side:
|
|
16
|
-
children: /* @__PURE__ */ u(
|
|
15
|
+
side: o,
|
|
16
|
+
children: /* @__PURE__ */ u(t, {
|
|
17
17
|
...S,
|
|
18
|
-
render: /* @__PURE__ */ u(
|
|
18
|
+
render: /* @__PURE__ */ u(e, {
|
|
19
19
|
backgroundColor: d,
|
|
20
20
|
borderRadius: p,
|
|
21
21
|
boxShadow: m,
|
|
22
22
|
paddingBlock: h,
|
|
23
23
|
paddingInline: g,
|
|
24
24
|
...x,
|
|
25
|
-
className:
|
|
25
|
+
className: i(s, _),
|
|
26
26
|
style: v
|
|
27
27
|
}),
|
|
28
28
|
children: f(y)
|
|
@@ -30,7 +30,7 @@ function d({ side: r = "top", align: l = "center", backgroundColor: d = "bgRaise
|
|
|
30
30
|
}) });
|
|
31
31
|
}
|
|
32
32
|
function f(e) {
|
|
33
|
-
return l.toArray(e).some((e) => typeof e == "string" || typeof e == "number") ? /* @__PURE__ */ u(
|
|
33
|
+
return l.toArray(e).some((e) => typeof e == "string" || typeof e == "number") ? /* @__PURE__ */ u(o, {
|
|
34
34
|
size: "sm",
|
|
35
35
|
children: e
|
|
36
36
|
}) : e;
|