jenosize-ui 0.1.0 → 0.2.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/README.md +13 -10
- package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
- package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
- package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
- package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
- package/dist/area-chart.d.ts +54 -0
- package/dist/area-chart.js +9 -0
- package/dist/avatar.d.ts +24 -0
- package/dist/avatar.js +13 -7
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +6 -5
- package/dist/bar-chart.d.ts +32 -0
- package/dist/bar-chart.js +9 -0
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +5 -3
- package/dist/button.d.ts +16 -1
- package/dist/button.js +10 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +18 -14
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +12 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -1
- package/dist/card.js +7 -3
- package/dist/checkbox.js +9 -7
- package/dist/chunk-22M75A3N.js +396 -0
- package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
- package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/chunk-4VGEJG4M.js +1510 -0
- package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/chunk-5DP7W5HX.js +254 -0
- package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
- package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
- package/dist/chunk-5ZEUTSCV.js +147 -0
- package/dist/chunk-5ZPUAGOP.js +19 -0
- package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
- package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
- package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
- package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
- package/dist/chunk-7VLYQR4D.js +44 -0
- package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
- package/dist/chunk-AFYXSZGW.js +23 -0
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
- package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
- package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
- package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
- package/dist/chunk-BLIZ3CL3.js +49 -0
- package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
- package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
- package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
- package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
- package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
- package/dist/chunk-FKVPAEJ6.js +57 -0
- package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
- package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
- package/dist/chunk-GLKFFA7N.js +171 -0
- package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
- package/dist/chunk-HHYEAFCL.js +525 -0
- package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
- package/dist/chunk-IQNVSQRK.js +605 -0
- package/dist/chunk-KHGW72BM.js +10 -0
- package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
- package/dist/chunk-LCG34A5T.js +98 -0
- package/dist/chunk-LLPWQDF7.js +26 -0
- package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
- package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
- package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
- package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/chunk-NKG4N6HA.js +188 -0
- package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
- package/dist/chunk-OLLD2BZN.js +33 -0
- package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
- package/dist/chunk-PO2TYK3C.js +17 -0
- package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
- package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
- package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
- package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
- package/dist/chunk-SKRR3ZMP.js +10 -0
- package/dist/chunk-T4ZFZTY6.js +62 -0
- package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
- package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
- package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
- package/dist/chunk-ULGCGKOE.js +77 -0
- package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
- package/dist/chunk-X2X7Q7NW.js +17 -0
- package/dist/chunk-YHBI52P2.js +10 -0
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
- package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
- package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
- package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +15 -12
- package/dist/control-size-CaxQhkKh.d.ts +3 -0
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +12 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +25 -20
- package/dist/dialog.d.ts +37 -5
- package/dist/dialog.js +12 -8
- package/dist/drawer.d.ts +20 -3
- package/dist/drawer.js +11 -7
- package/dist/dropdown-menu.d.ts +26 -2
- package/dist/dropdown-menu.js +9 -4
- package/dist/dropzone.d.ts +35 -0
- package/dist/dropzone.js +23 -0
- package/dist/form.d.ts +82 -3
- package/dist/form.js +205 -45
- package/dist/header-navigation.d.ts +19 -4
- package/dist/header-navigation.js +23 -16
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +32 -8
- package/dist/index.js +87 -62
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +10 -8
- package/dist/kanban-board.d.ts +489 -0
- package/dist/kanban-board.js +25 -0
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +36 -0
- package/dist/line-chart.js +9 -0
- package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +10 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +14 -10
- package/dist/panel-El4oI68p.d.ts +9 -0
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +10 -8
- package/dist/pie-chart.d.ts +64 -0
- package/dist/pie-chart.js +9 -0
- package/dist/popover.d.ts +9 -3
- package/dist/popover.js +11 -7
- package/dist/progress-steps.d.ts +275 -0
- package/dist/progress-steps.js +8 -0
- package/dist/progress.d.ts +21 -1
- package/dist/progress.js +3 -2
- package/dist/provider.d.ts +212 -0
- package/dist/provider.js +7 -0
- package/dist/radar-chart.d.ts +77 -0
- package/dist/radar-chart.js +9 -0
- package/dist/radial-chart.d.ts +73 -0
- package/dist/radial-chart.js +9 -0
- package/dist/radio.js +9 -7
- package/dist/rule-BqzaIwJy.d.ts +80 -0
- package/dist/scroll-area.d.ts +62 -0
- package/dist/scroll-area.js +7 -0
- package/dist/select.d.ts +3 -3
- package/dist/select.js +17 -14
- package/dist/separator.d.ts +114 -0
- package/dist/separator.js +5 -0
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +80 -12
- package/dist/sidebar-navigation.js +18 -9
- package/dist/skeleton.d.ts +61 -0
- package/dist/skeleton.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +148 -42
- package/dist/table.js +39 -33
- package/dist/tabs.d.ts +22 -0
- package/dist/tabs.js +3 -3
- package/dist/tag-input.d.ts +3 -2
- package/dist/tag-input.js +13 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +4 -3
- package/dist/textarea.js +7 -5
- package/dist/theme.css +151 -6
- package/dist/theme.js +11 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +12 -9
- package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +3 -2
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +8 -6
- package/dist/types-DR9rAEy1.d.ts +188 -0
- package/dist/use-uploads-KaPqDklo.d.ts +482 -0
- package/dist/verification-code-input.d.ts +84 -0
- package/dist/verification-code-input.js +14 -0
- package/package.json +70 -9
- package/dist/card-nWicloNi.d.ts +0 -80
- package/dist/chunk-24TO7E32.js +0 -42
- package/dist/chunk-FXIBGTS5.js +0 -14
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/chunk-ZZT2E5VT.js +0 -24
- package/dist/shared-BNXAdgh2.d.ts +0 -9
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { TOOLTIP_TONE } from './chunk-AFYXSZGW.js';
|
|
1
2
|
import { TOOLTIP_MOTION } from './chunk-O4GRKO3I.js';
|
|
2
|
-
import { devWarn } from './chunk-GCVA3OIV.js';
|
|
3
3
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
|
+
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
4
5
|
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -31,15 +32,16 @@ var TooltipTrigger = React.forwardRef(function TooltipTrigger2(props, ref) {
|
|
|
31
32
|
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { ref, delay: delay ?? (insideProvider ? void 0 : 300), ...rest });
|
|
32
33
|
});
|
|
33
34
|
TooltipTrigger.displayName = "Tooltip.Trigger";
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
var ARROW_SIDES = "M0,0 L35.858,35.858 Q50,50 64.142,35.858 L100,0";
|
|
36
|
+
function ArrowSvg({ tone }) {
|
|
37
|
+
const { arrowFill, arrowStroke } = TOOLTIP_TONE[tone];
|
|
38
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 100 100", className: "size-2.5", "aria-hidden": "true", children: [
|
|
39
|
+
/* @__PURE__ */ jsx("path", { d: `${ARROW_SIDES} Z`, fill: arrowFill }),
|
|
40
|
+
arrowStroke ? /* @__PURE__ */ jsx("path", { d: ARROW_SIDES, fill: "none", stroke: arrowStroke, strokeWidth: 10 }) : null
|
|
41
|
+
] });
|
|
36
42
|
}
|
|
37
43
|
var POPUP = cn(
|
|
38
|
-
|
|
39
|
-
// title + optional supporting line stack left-aligned. Padding is NOT here: it is the
|
|
40
|
-
// one thing `size` owns, so it comes from SIZE below.
|
|
41
|
-
"flex max-w-xs flex-col items-start gap-1 rounded-lg bg-primary-solid shadow-lg",
|
|
42
|
-
"",
|
|
44
|
+
"flex max-w-xs flex-col items-start gap-1",
|
|
43
45
|
// Enter/exit: fade + zoom-95 + ~2px slide-in from the `data-side` direction.
|
|
44
46
|
TOOLTIP_MOTION
|
|
45
47
|
);
|
|
@@ -54,7 +56,20 @@ var ARROW = cn(
|
|
|
54
56
|
"data-[side=right]:left-[-9px] data-[side=right]:rotate-90"
|
|
55
57
|
);
|
|
56
58
|
function TooltipContent(props) {
|
|
57
|
-
const {
|
|
59
|
+
const {
|
|
60
|
+
id,
|
|
61
|
+
children,
|
|
62
|
+
description,
|
|
63
|
+
size = "md",
|
|
64
|
+
tone = "surface",
|
|
65
|
+
side = "top",
|
|
66
|
+
align = "center",
|
|
67
|
+
showArrow = false,
|
|
68
|
+
collisionBoundary,
|
|
69
|
+
collisionPadding,
|
|
70
|
+
className
|
|
71
|
+
} = props;
|
|
72
|
+
const toneClasses = TOOLTIP_TONE[tone];
|
|
58
73
|
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
59
74
|
Tooltip$1.Positioner,
|
|
60
75
|
{
|
|
@@ -65,11 +80,19 @@ function TooltipContent(props) {
|
|
|
65
80
|
collisionBoundary,
|
|
66
81
|
collisionPadding,
|
|
67
82
|
className: "z-50 outline-none",
|
|
68
|
-
children: /* @__PURE__ */ jsxs(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
83
|
+
children: /* @__PURE__ */ jsxs(
|
|
84
|
+
Tooltip$1.Popup,
|
|
85
|
+
{
|
|
86
|
+
id,
|
|
87
|
+
role: "tooltip",
|
|
88
|
+
className: cn(POPUP, toneClasses.surface, description ? SIZE[size].withDescription : SIZE[size].base, className),
|
|
89
|
+
children: [
|
|
90
|
+
showArrow ? /* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: ARROW, children: /* @__PURE__ */ jsx(ArrowSvg, { tone }) }) : null,
|
|
91
|
+
/* @__PURE__ */ jsx("span", { className: toneClasses.title, children }),
|
|
92
|
+
description ? /* @__PURE__ */ jsx("span", { className: toneClasses.supporting, children: description }) : null
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
)
|
|
73
96
|
}
|
|
74
97
|
) });
|
|
75
98
|
}
|
|
@@ -82,6 +105,7 @@ function Tooltip(props) {
|
|
|
82
105
|
// MUST be named here even though it is only forwarded: `...rest` below lands on the
|
|
83
106
|
// TRIGGER, so an un-destructured `size` would ship as a stray DOM attribute.
|
|
84
107
|
size = "md",
|
|
108
|
+
tone = "surface",
|
|
85
109
|
side = "top",
|
|
86
110
|
align = "center",
|
|
87
111
|
showArrow = false,
|
|
@@ -110,6 +134,7 @@ function Tooltip(props) {
|
|
|
110
134
|
{
|
|
111
135
|
id: describedById,
|
|
112
136
|
size,
|
|
137
|
+
tone,
|
|
113
138
|
side,
|
|
114
139
|
align,
|
|
115
140
|
showArrow,
|
|
@@ -126,5 +151,5 @@ Tooltip.displayName = "Tooltip";
|
|
|
126
151
|
var TooltipExport = Object.assign(Tooltip, { Provider: TooltipProvider });
|
|
127
152
|
|
|
128
153
|
export { TooltipExport };
|
|
129
|
-
//# sourceMappingURL=chunk-
|
|
130
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-KZP6B6B3.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-KZP6B6B3.js.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// src/lib/rule.ts
|
|
2
|
+
var RULE_TEXTURE = {
|
|
3
|
+
line: {
|
|
4
|
+
y: "[--rule-image:initial] [--rule-size:auto]",
|
|
5
|
+
x: "[--rule-image:initial] [--rule-size:auto]"
|
|
6
|
+
},
|
|
7
|
+
dot: {
|
|
8
|
+
y: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_1px,transparent_1px)] [--rule-size:5px_3px]",
|
|
9
|
+
x: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_1px,transparent_1px)] [--rule-size:3px_5px]"
|
|
10
|
+
},
|
|
11
|
+
dashed: {
|
|
12
|
+
y: "[--rule-image:repeating-linear-gradient(to_right,var(--rule,var(--color-border-secondary))_0_3px,transparent_3px_6px)] [--rule-size:auto]",
|
|
13
|
+
x: "[--rule-image:repeating-linear-gradient(to_bottom,var(--rule,var(--color-border-secondary))_0_3px,transparent_3px_6px)] [--rule-size:auto]"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var RULE_TONE = {
|
|
17
|
+
default: "[--rule:var(--color-border-secondary)]",
|
|
18
|
+
strong: "[--rule:var(--color-border-strong)]"
|
|
19
|
+
};
|
|
20
|
+
var RULE_PAINT = { y: "rule-y", x: "rule-x" };
|
|
21
|
+
var RULE_PAINT_AFTER = { y: "after:rule-y", x: "after:rule-x" };
|
|
22
|
+
var RULE_WEIGHT = {
|
|
23
|
+
line: { y: "h-px", x: "w-px" },
|
|
24
|
+
dot: { y: "h-[3px]", x: "w-[3px]" },
|
|
25
|
+
dashed: { y: "h-px", x: "w-px" }
|
|
26
|
+
};
|
|
27
|
+
var RULE_WEIGHT_AFTER = {
|
|
28
|
+
line: { y: "after:h-px", x: "after:w-px" },
|
|
29
|
+
dot: { y: "after:h-[3px]", x: "after:w-[3px]" },
|
|
30
|
+
dashed: { y: "after:h-px", x: "after:w-px" }
|
|
31
|
+
};
|
|
32
|
+
var RULE_WEIGHT_THICK = {
|
|
33
|
+
line: { y: "h-0.5", x: "w-0.5" },
|
|
34
|
+
dot: { y: "h-[5px]", x: "w-[5px]" },
|
|
35
|
+
dashed: { y: "h-0.5", x: "w-0.5" }
|
|
36
|
+
};
|
|
37
|
+
var RULE_TEXTURE_THICK = {
|
|
38
|
+
dot: {
|
|
39
|
+
y: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_2px,transparent_2px)] [--rule-size:10px_5px]",
|
|
40
|
+
x: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_2px,transparent_2px)] [--rule-size:5px_10px]"
|
|
41
|
+
},
|
|
42
|
+
dashed: {
|
|
43
|
+
y: "[--rule-image:repeating-linear-gradient(to_right,var(--rule,var(--color-border-secondary))_0_6px,transparent_6px_12px)] [--rule-size:auto]",
|
|
44
|
+
x: "[--rule-image:repeating-linear-gradient(to_bottom,var(--rule,var(--color-border-secondary))_0_6px,transparent_6px_12px)] [--rule-size:auto]"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
function ruleBox(texture, axis, weight = "hairline") {
|
|
48
|
+
return (weight === "thick" ? RULE_WEIGHT_THICK : RULE_WEIGHT)[texture][axis];
|
|
49
|
+
}
|
|
50
|
+
function rulePaint({ texture = "line", axis = "y", tone = "default", weight = "hairline" } = {}) {
|
|
51
|
+
return `${RULE_PAINT[axis]} ${ruleTexture(texture, axis, weight)} ${RULE_TONE[tone]}`;
|
|
52
|
+
}
|
|
53
|
+
function ruleTexture(texture, axis, weight) {
|
|
54
|
+
if (weight === "thick") return RULE_TEXTURE_THICK[texture]?.[axis] ?? RULE_TEXTURE[texture][axis];
|
|
55
|
+
return RULE_TEXTURE[texture][axis];
|
|
56
|
+
}
|
|
57
|
+
function rulePaintAfter({ texture = "line", axis = "y", tone = "default", weight = "hairline" } = {}) {
|
|
58
|
+
return `${RULE_PAINT_AFTER[axis]} ${ruleTexture(texture, axis, weight)} ${RULE_TONE[tone]}`;
|
|
59
|
+
}
|
|
60
|
+
var EDGE_AXIS = { top: "y", bottom: "y", left: "x", right: "x" };
|
|
61
|
+
var EDGE_BORDER = {
|
|
62
|
+
top: "border-t",
|
|
63
|
+
bottom: "border-b",
|
|
64
|
+
left: "border-l",
|
|
65
|
+
right: "border-r"
|
|
66
|
+
};
|
|
67
|
+
var EDGE_SPAN = {
|
|
68
|
+
top: "after:inset-x-0",
|
|
69
|
+
bottom: "after:inset-x-0",
|
|
70
|
+
left: "after:inset-y-0",
|
|
71
|
+
right: "after:inset-y-0"
|
|
72
|
+
};
|
|
73
|
+
var EDGE_OFFSET = {
|
|
74
|
+
line: { top: "after:-top-px", bottom: "after:-bottom-px", left: "after:-left-px", right: "after:-right-px" },
|
|
75
|
+
dot: { top: "after:-top-[2px]", bottom: "after:-bottom-[2px]", left: "after:-left-[2px]", right: "after:-right-[2px]" },
|
|
76
|
+
dashed: { top: "after:-top-px", bottom: "after:-bottom-px", left: "after:-left-px", right: "after:-right-px" }
|
|
77
|
+
};
|
|
78
|
+
function ruleEdge(texture, edge, tone = "default") {
|
|
79
|
+
if (texture === "none") return "";
|
|
80
|
+
const offset = EDGE_OFFSET[texture];
|
|
81
|
+
if (!offset) return "";
|
|
82
|
+
const axis = EDGE_AXIS[edge];
|
|
83
|
+
return [
|
|
84
|
+
// `relative` so the pseudo positions against THIS box, not some distant ancestor.
|
|
85
|
+
"relative",
|
|
86
|
+
EDGE_BORDER[edge],
|
|
87
|
+
"border-transparent",
|
|
88
|
+
"after:pointer-events-none after:absolute",
|
|
89
|
+
EDGE_SPAN[edge],
|
|
90
|
+
offset[edge],
|
|
91
|
+
RULE_WEIGHT_AFTER[texture][axis],
|
|
92
|
+
rulePaintAfter({ texture, axis, tone })
|
|
93
|
+
].join(" ");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export { RULE_PAINT, RULE_TEXTURE, RULE_TONE, RULE_WEIGHT, ruleBox, ruleEdge, rulePaint };
|
|
97
|
+
//# sourceMappingURL=chunk-LCG34A5T.js.map
|
|
98
|
+
//# sourceMappingURL=chunk-LCG34A5T.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
2
|
+
import { warnPositiveInt } from './chunk-QDYE5LVT.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/lib/skeleton.ts
|
|
7
|
+
var SKELETON_WIDTHS = ["w-3/5", "w-4/5", "w-2/3", "w-11/12", "w-1/2", "w-3/4"];
|
|
8
|
+
function skeletonWidth(index) {
|
|
9
|
+
return SKELETON_WIDTHS[index % SKELETON_WIDTHS.length];
|
|
10
|
+
}
|
|
11
|
+
var SHAPE = { bar: "rounded-lg", circle: "rounded-full" };
|
|
12
|
+
var TEXT_LINE = { sm: "h-3", md: "h-4", lg: "h-5" };
|
|
13
|
+
var BASE = "animate-pulse bg-tertiary motion-reduce:animate-none";
|
|
14
|
+
function Skeleton({ shape = "bar", className }) {
|
|
15
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: cn(BASE, SHAPE[shape], className) });
|
|
16
|
+
}
|
|
17
|
+
Skeleton.displayName = "Skeleton";
|
|
18
|
+
function SkeletonText({ lines = 3, size = "md", className }) {
|
|
19
|
+
warnPositiveInt("SkeletonText", "lines", lines);
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: cn("flex flex-col gap-2", className), children: Array.from({ length: Math.max(0, Math.floor(lines)) }, (_, index) => /* @__PURE__ */ jsx(Skeleton, { className: cn(TEXT_LINE[size], skeletonWidth(index)) }, index)) });
|
|
21
|
+
}
|
|
22
|
+
SkeletonText.displayName = "SkeletonText";
|
|
23
|
+
|
|
24
|
+
export { SKELETON_WIDTHS, Skeleton, SkeletonText, skeletonWidth };
|
|
25
|
+
//# sourceMappingURL=chunk-LLPWQDF7.js.map
|
|
26
|
+
//# sourceMappingURL=chunk-LLPWQDF7.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ScrollView } from './chunk-FKVPAEJ6.js';
|
|
2
|
+
import { SURFACE_PADDING } from './chunk-45Y2ZGNK.js';
|
|
3
|
+
import { ruleEdge } from './chunk-LCG34A5T.js';
|
|
2
4
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
3
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
6
|
import { mergeProps } from '@base-ui/react/merge-props';
|
|
@@ -47,9 +49,7 @@ function PanelChrome(props) {
|
|
|
47
49
|
titleScale = "md",
|
|
48
50
|
footerAlign = "start",
|
|
49
51
|
scrollBody = false,
|
|
50
|
-
|
|
51
|
-
bodyRef,
|
|
52
|
-
dividers = false,
|
|
52
|
+
dividers = "none",
|
|
53
53
|
title,
|
|
54
54
|
description,
|
|
55
55
|
leading,
|
|
@@ -64,18 +64,19 @@ function PanelChrome(props) {
|
|
|
64
64
|
const hasText = title != null || description != null;
|
|
65
65
|
const rootClassName = cn("flex flex-col", SURFACE_PADDING[padding], GAP[padding], paddingMd && cn(ROOT_PAD_MD[paddingMd], GAP_MD[paddingMd]), className);
|
|
66
66
|
const closeClassName = cn("absolute shrink-0", CLOSE_INSET[padding], paddingMd && CLOSE_INSET_MD[paddingMd]);
|
|
67
|
+
const hasDividers = dividers !== "none";
|
|
67
68
|
const headerClassName = cn(
|
|
68
69
|
"flex shrink-0 gap-3",
|
|
69
70
|
// A lone title centers against its leading/trailing nodes; once a description makes the text
|
|
70
71
|
// column two lines tall, centering would float the avatar into the gap between them.
|
|
71
72
|
description != null ? "items-start" : "items-center",
|
|
72
|
-
|
|
73
|
-
closeSlot && (
|
|
73
|
+
hasDividers && cn(ruleEdge(dividers, "bottom"), BLEED[padding], HEADER_GUTTER[padding], paddingMd && cn(BLEED_MD[paddingMd], HEADER_GUTTER_MD[paddingMd])),
|
|
74
|
+
closeSlot && (hasDividers ? cn(CLOSE_GUTTER_BLEED[padding], paddingMd && CLOSE_GUTTER_BLEED_MD[paddingMd]) : CLOSE_GUTTER)
|
|
74
75
|
);
|
|
75
76
|
const footerClassName = cn(
|
|
76
77
|
"flex shrink-0 flex-wrap items-center gap-3",
|
|
77
78
|
footerAlign === "end" && "justify-end",
|
|
78
|
-
|
|
79
|
+
hasDividers && cn(ruleEdge(dividers, "top"), BLEED[padding], FOOTER_GUTTER[padding], paddingMd && cn(BLEED_MD[paddingMd], FOOTER_GUTTER_MD[paddingMd]))
|
|
79
80
|
);
|
|
80
81
|
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
81
82
|
closeSlot ? closeSlot(closeClassName) : null,
|
|
@@ -90,15 +91,14 @@ function PanelChrome(props) {
|
|
|
90
91
|
) : /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1" }),
|
|
91
92
|
trailing != null ? /* @__PURE__ */ jsx(Slot, { className: "[&>svg]:size-5", children: trailing }) : null
|
|
92
93
|
] }) : null,
|
|
93
|
-
children != null ?
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
) : null,
|
|
94
|
+
children != null ? scrollBody ? (
|
|
95
|
+
// `ScrollView` owns the overflow, the house overlay bar AND the edge-fade mask, so the
|
|
96
|
+
// three overlays that render this scaffold (Dialog, Drawer, Popover) no longer each
|
|
97
|
+
// hand-wire a ref + a `useScrollFade` + a `maskImage` style — the mask is still on the
|
|
98
|
+
// element that scrolls, which is the whole reason it lives here and not on the Popup
|
|
99
|
+
// (a masked box fades its own ring, and rides the open/close translate).
|
|
100
|
+
/* @__PURE__ */ jsx(ScrollView, { className: cn("min-h-0 min-w-0 flex-1", BODY), viewportClassName: "min-w-0", children })
|
|
101
|
+
) : /* @__PURE__ */ jsx("div", { className: cn("min-w-0", BODY), children }) : null,
|
|
102
102
|
footer != null ? /* @__PURE__ */ jsx("div", { className: footerClassName, children: footer }) : null
|
|
103
103
|
] });
|
|
104
104
|
return useRender({
|
|
@@ -109,5 +109,5 @@ function PanelChrome(props) {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
export { PanelChrome };
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
113
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-LO22VQL5.js.map
|
|
113
|
+
//# sourceMappingURL=chunk-LO22VQL5.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Illustration } from './chunk-OHUFNYGN.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useLinkResolver } from './chunk-5AZKP4KZ.js';
|
|
3
|
+
import { Button } from './chunk-OACWA4TC.js';
|
|
4
|
+
import { FG } from './chunk-MCQG4H6T.js';
|
|
4
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
5
6
|
import 'react';
|
|
6
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -33,13 +34,14 @@ var DESC_SIZE = {
|
|
|
33
34
|
md: "text-sm",
|
|
34
35
|
lg: "text-md"
|
|
35
36
|
};
|
|
36
|
-
function Callout({ title, description, icon, illustration,
|
|
37
|
+
function Callout({ title, description, icon, illustration, color = "neutral", size = "md", actions, className }) {
|
|
38
|
+
const resolveLink = useLinkResolver();
|
|
37
39
|
return /* @__PURE__ */ jsxs("div", { className: cn("mx-auto flex w-full max-w-md flex-col items-center justify-center text-center", ROOT_SIZE[size], className), children: [
|
|
38
40
|
illustration ? /* @__PURE__ */ jsx(Illustration, { type: illustration, size }) : null,
|
|
39
41
|
icon ? (
|
|
40
42
|
// The glyph is the component's own chrome, not a caller slot, so it is aria-hidden and
|
|
41
43
|
// does NOT go through <Slot>: the title already carries the accessible message.
|
|
42
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn("flex shrink-0 items-center justify-center", ICON_BOX[size], RAISED_BOX, RADIUS[size], GLYPH[
|
|
44
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn("flex shrink-0 items-center justify-center", ICON_BOX[size], RAISED_BOX, RADIUS[size], GLYPH[color]), children: icon })
|
|
43
45
|
) : null,
|
|
44
46
|
/* @__PURE__ */ jsxs("div", { className: "flex max-w-88 flex-col gap-1", children: [
|
|
45
47
|
/* @__PURE__ */ jsx("p", { className: cn("font-semibold text-primary", TITLE_SIZE[size]), children: title }),
|
|
@@ -52,7 +54,7 @@ function Callout({ title, description, icon, illustration, tone = "neutral", siz
|
|
|
52
54
|
variant: action.variant === "primary" ? "primary" : "secondary",
|
|
53
55
|
leading: action.leading,
|
|
54
56
|
onClick: action.onClick,
|
|
55
|
-
...action.href ? { render:
|
|
57
|
+
...action.href ? { render: resolveLink(action.href) } : null,
|
|
56
58
|
children: action.label
|
|
57
59
|
},
|
|
58
60
|
action.label
|
|
@@ -62,5 +64,5 @@ function Callout({ title, description, icon, illustration, tone = "neutral", siz
|
|
|
62
64
|
Callout.displayName = "Callout";
|
|
63
65
|
|
|
64
66
|
export { Callout };
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
66
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-LQURV7HQ.js.map
|
|
68
|
+
//# sourceMappingURL=chunk-LQURV7HQ.js.map
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { tagSlotClass, tagLabelClass, tagContentClass, tagCloseClass, tagRootClass, TAG_SELECTED, tagCheckboxGlyphClass, tagCheckboxBoxClass } from './chunk-4P2NBLBW.js';
|
|
2
2
|
import { overflowBounded } from './chunk-DWKILXHE.js';
|
|
3
3
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
4
|
-
import { XIcon, CheckIcon } from './chunk-
|
|
5
|
-
import { warnNeedsName } from './chunk-GCVA3OIV.js';
|
|
4
|
+
import { XIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
|
|
6
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
6
|
+
import { useLabels } from './chunk-RJTVCA62.js';
|
|
7
|
+
import { warnNeedsName } from './chunk-QDYE5LVT.js';
|
|
7
8
|
import { Toggle } from '@base-ui/react/toggle';
|
|
8
9
|
import { ToggleGroup } from '@base-ui/react/toggle-group';
|
|
9
10
|
import * as React from 'react';
|
|
10
11
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
12
|
|
|
13
|
+
// src/components/tag/labels.ts
|
|
14
|
+
var TAG_LABELS = {
|
|
15
|
+
/** Names the remove button after the tag it removes, so a row of five is five distinct names. */
|
|
16
|
+
remove: (ctx) => `Remove ${ctx.label}`,
|
|
17
|
+
/** The fallback when the tag's children are a node, which has no text to name it with. */
|
|
18
|
+
removeGeneric: "Remove tag"
|
|
19
|
+
};
|
|
12
20
|
function TagCheckbox({ size }) {
|
|
13
21
|
return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", "data-tag-checkbox": true, className: tagCheckboxBoxClass(size), children: /* @__PURE__ */ jsx(CheckIcon, { className: tagCheckboxGlyphClass(size) }) });
|
|
14
22
|
}
|
|
@@ -20,13 +28,15 @@ function Tag(props) {
|
|
|
20
28
|
trailing,
|
|
21
29
|
onRemove,
|
|
22
30
|
removeLabel,
|
|
31
|
+
labels,
|
|
23
32
|
removeExcludeFromTabOrder = false,
|
|
24
33
|
disabled = false,
|
|
25
34
|
overflow = "visible",
|
|
26
35
|
className,
|
|
27
36
|
...rest
|
|
28
37
|
} = props;
|
|
29
|
-
const
|
|
38
|
+
const t = useLabels("tag", TAG_LABELS, labels);
|
|
39
|
+
const label = removeLabel ?? (typeof children === "string" ? t.remove({ label: children }) : t.removeGeneric);
|
|
30
40
|
const bounded = overflowBounded(overflow);
|
|
31
41
|
return /* @__PURE__ */ jsxs(
|
|
32
42
|
"span",
|
|
@@ -166,5 +176,5 @@ TagGroupItem.displayName = "TagGroupItem";
|
|
|
166
176
|
var TagGroup = TagGroupRoot;
|
|
167
177
|
|
|
168
178
|
export { Tag, TagGroup };
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-LYXPJERB.js.map
|
|
180
|
+
//# sourceMappingURL=chunk-LYXPJERB.js.map
|
|
@@ -19,6 +19,17 @@ var SOLID_HOVER = {
|
|
|
19
19
|
error: "hover:bg-error-solid_hover data-[loading]:bg-error-solid_hover",
|
|
20
20
|
info: "hover:bg-utility-blue-700 data-[loading]:bg-utility-blue-700"
|
|
21
21
|
};
|
|
22
|
+
var SOLID_BOX = "shadow-skeuomorphic ring-1 ring-transparent ring-inset";
|
|
23
|
+
var SOLID_GLOSS = "before:pointer-events-none before:absolute before:inset-px before:rounded-[7px] before:border before:border-white/12 before:[mask-image:linear-gradient(to_bottom,black,transparent)]";
|
|
24
|
+
var BOXED_BOX = "bg-primary shadow-skeuomorphic ring-1 ring-inset";
|
|
25
|
+
var BOX_RING = {
|
|
26
|
+
neutral: "ring-primary",
|
|
27
|
+
brand: "ring-brand",
|
|
28
|
+
success: "ring-success",
|
|
29
|
+
warning: "ring-warning",
|
|
30
|
+
error: "ring-error_subtle",
|
|
31
|
+
info: "ring-utility-blue-200"
|
|
32
|
+
};
|
|
22
33
|
var SUBTLE = {
|
|
23
34
|
neutral: "bg-utility-neutral-50 text-utility-neutral-700 ring-1 ring-inset ring-utility-neutral-200",
|
|
24
35
|
brand: "bg-utility-brand-50 text-utility-brand-700 ring-1 ring-inset ring-utility-brand-200",
|
|
@@ -27,6 +38,22 @@ var SUBTLE = {
|
|
|
27
38
|
error: "bg-utility-red-50 text-utility-red-700 ring-1 ring-inset ring-utility-red-200",
|
|
28
39
|
info: "bg-utility-blue-50 text-utility-blue-700 ring-1 ring-inset ring-utility-blue-200"
|
|
29
40
|
};
|
|
41
|
+
var FILL = {
|
|
42
|
+
neutral: "bg-secondary-solid",
|
|
43
|
+
brand: "bg-brand-solid",
|
|
44
|
+
success: "bg-success-solid",
|
|
45
|
+
warning: "bg-warning-solid",
|
|
46
|
+
error: "bg-error-solid",
|
|
47
|
+
info: "bg-utility-blue-500"
|
|
48
|
+
};
|
|
49
|
+
var WASH = {
|
|
50
|
+
neutral: "bg-secondary text-tertiary ring-1 ring-secondary ring-inset",
|
|
51
|
+
brand: "bg-brand-primary text-brand-secondary",
|
|
52
|
+
success: "bg-success-primary text-success-primary",
|
|
53
|
+
warning: "bg-warning-primary text-warning-primary",
|
|
54
|
+
error: "bg-error-primary text-utility-red-700",
|
|
55
|
+
info: "bg-utility-blue-50 text-utility-blue-600"
|
|
56
|
+
};
|
|
30
57
|
var OUTLINE = {
|
|
31
58
|
neutral: "bg-primary text-secondary ring-1 ring-inset ring-primary",
|
|
32
59
|
brand: "bg-primary text-utility-brand-700 ring-1 ring-inset ring-utility-brand-200",
|
|
@@ -43,6 +70,22 @@ var FG = {
|
|
|
43
70
|
error: "text-error-primary",
|
|
44
71
|
info: "text-utility-blue-600"
|
|
45
72
|
};
|
|
73
|
+
var FG_HOVER = {
|
|
74
|
+
neutral: "text-tertiary hover:text-secondary",
|
|
75
|
+
brand: "text-brand-secondary hover:text-brand-secondary_hover",
|
|
76
|
+
success: "text-success-primary hover:text-utility-green-700",
|
|
77
|
+
warning: "text-warning-primary hover:text-utility-amber-700",
|
|
78
|
+
error: "text-error-primary hover:text-utility-red-700",
|
|
79
|
+
info: "text-utility-blue-600 hover:text-utility-blue-700"
|
|
80
|
+
};
|
|
81
|
+
var WASH_HOVER = {
|
|
82
|
+
neutral: "hover:bg-secondary data-[loading]:bg-secondary",
|
|
83
|
+
brand: "hover:bg-brand-primary data-[loading]:bg-brand-primary",
|
|
84
|
+
success: "hover:bg-success-primary data-[loading]:bg-success-primary",
|
|
85
|
+
warning: "hover:bg-warning-primary data-[loading]:bg-warning-primary",
|
|
86
|
+
error: "hover:bg-error-primary data-[loading]:bg-error-primary",
|
|
87
|
+
info: "hover:bg-utility-blue-50 data-[loading]:bg-utility-blue-50"
|
|
88
|
+
};
|
|
46
89
|
var ACCENT = {
|
|
47
90
|
neutral: "text-utility-neutral-500",
|
|
48
91
|
brand: "text-utility-brand-500",
|
|
@@ -51,6 +94,14 @@ var ACCENT = {
|
|
|
51
94
|
error: "text-utility-red-500",
|
|
52
95
|
info: "text-utility-blue-500"
|
|
53
96
|
};
|
|
97
|
+
var GLYPH = {
|
|
98
|
+
neutral: "text-fg-quaternary hover:text-fg-quaternary_hover",
|
|
99
|
+
brand: "text-fg-brand-secondary hover:text-fg-brand-secondary_hover",
|
|
100
|
+
success: "text-fg-success-primary hover:text-fg-success-primary_hover",
|
|
101
|
+
warning: "text-fg-warning-primary hover:text-fg-warning-primary_hover",
|
|
102
|
+
error: "text-fg-error-primary hover:text-fg-error-primary_hover",
|
|
103
|
+
info: "text-utility-blue-600 hover:text-utility-blue-700"
|
|
104
|
+
};
|
|
54
105
|
var DISMISS = {
|
|
55
106
|
neutral: "text-utility-neutral-600 hover:text-utility-neutral-700 hover:bg-utility-neutral-100",
|
|
56
107
|
brand: "text-utility-brand-600 hover:text-utility-brand-700 hover:bg-utility-brand-100",
|
|
@@ -60,6 +111,6 @@ var DISMISS = {
|
|
|
60
111
|
info: "text-utility-blue-600 hover:text-utility-blue-700 hover:bg-utility-blue-100"
|
|
61
112
|
};
|
|
62
113
|
|
|
63
|
-
export { ACCENT, DISMISS, FG, OUTLINE, SEMANTIC_COLORS, SOLID, SOLID_HOVER, SUBTLE, isSemanticColor };
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
114
|
+
export { ACCENT, BOXED_BOX, BOX_RING, DISMISS, FG, FG_HOVER, FILL, GLYPH, OUTLINE, SEMANTIC_COLORS, SOLID, SOLID_BOX, SOLID_GLOSS, SOLID_HOVER, SUBTLE, WASH, WASH_HOVER, isSemanticColor };
|
|
115
|
+
//# sourceMappingURL=chunk-MCQG4H6T.js.map
|
|
116
|
+
//# sourceMappingURL=chunk-MCQG4H6T.js.map
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { useTagInput, TAG_PILL_FOCUS_RING } from './chunk-
|
|
2
|
-
import { Tag } from './chunk-
|
|
3
|
-
import { useTagRow } from './chunk-
|
|
4
|
-
import { FieldShell } from './chunk-
|
|
5
|
-
import { useFieldValidity, FieldFrame } from './chunk-
|
|
1
|
+
import { TAG_INPUT_LABELS, useTagInput, TAG_PILL_FOCUS_RING } from './chunk-QHH6AUR3.js';
|
|
2
|
+
import { Tag } from './chunk-LYXPJERB.js';
|
|
3
|
+
import { useTagRow } from './chunk-6H4LNWQ7.js';
|
|
4
|
+
import { FieldShell } from './chunk-X2VMIBK5.js';
|
|
5
|
+
import { useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
|
|
6
6
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
7
|
+
import { useLabels } from './chunk-RJTVCA62.js';
|
|
7
8
|
import { Field } from '@base-ui/react/field';
|
|
8
9
|
import 'react';
|
|
9
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
11
|
|
|
11
12
|
var PILL_SIZE = { sm: "sm", md: "md", lg: "md" };
|
|
12
13
|
function TagInputOuter(props) {
|
|
14
|
+
const t = useLabels("tagInput", TAG_INPUT_LABELS, props.labels);
|
|
13
15
|
const {
|
|
14
16
|
size = "md",
|
|
15
|
-
placeholder =
|
|
17
|
+
placeholder = t.placeholder,
|
|
18
|
+
labels: _labels,
|
|
16
19
|
label,
|
|
17
20
|
tooltip,
|
|
18
21
|
tooltipDescription,
|
|
@@ -111,5 +114,5 @@ function TagInputOuter(props) {
|
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
export { TagInputOuter };
|
|
114
|
-
//# sourceMappingURL=chunk-
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
117
|
+
//# sourceMappingURL=chunk-MVG5MABV.js.map
|
|
118
|
+
//# sourceMappingURL=chunk-MVG5MABV.js.map
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { SOLID } from './chunk-
|
|
2
|
-
import { SEAMLESS_DOT } from './chunk-
|
|
1
|
+
import { FILL, SOLID } from './chunk-MCQG4H6T.js';
|
|
2
|
+
import { SEAMLESS_DOT } from './chunk-7ZM7SNCZ.js';
|
|
3
3
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var DOT_FILL = {
|
|
8
|
+
...FILL,
|
|
8
9
|
neutral: "bg-border-primary",
|
|
9
|
-
|
|
10
|
-
success: "bg-fg-success-secondary",
|
|
11
|
-
warning: "bg-warning-solid",
|
|
12
|
-
error: "bg-error-solid",
|
|
13
|
-
info: "bg-utility-blue-500"
|
|
10
|
+
success: "bg-fg-success-secondary"
|
|
14
11
|
};
|
|
15
12
|
var DOT_SIZE = { sm: "size-2", md: "size-2.5", lg: "size-3" };
|
|
16
13
|
var BOX_SIZE = { sm: "size-3.5", md: "size-4", lg: "size-5" };
|
|
@@ -111,5 +108,5 @@ function Indicator(props) {
|
|
|
111
108
|
Indicator.displayName = "Indicator";
|
|
112
109
|
|
|
113
110
|
export { Indicator };
|
|
114
|
-
//# sourceMappingURL=chunk-
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-N3RVMBPX.js.map
|
|
112
|
+
//# sourceMappingURL=chunk-N3RVMBPX.js.map
|