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
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { resolveMax } from './chunk-OLLD2BZN.js';
|
|
2
|
+
import { useCartesianColors, DEFAULT_PALETTE, POLAR_RADIUS_RINGS_DEFAULT, ChartDataTable, formatNumber, ChartFrame, RadarChart, POLAR_ROOT, MARGIN, PolarGrid, GRID, PolarAngleAxis, PolarRadiusAxis, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Radar, ACTIVE_DOT, ChartLegendContent, POLAR_ANGLE_TICK_LIFT, Text, POLAR_ANGLE_TICK, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE } from './chunk-22M75A3N.js';
|
|
3
|
+
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function AngleTick({ x = 0, y = 0, textAnchor, verticalAnchor, payload }) {
|
|
8
|
+
const lift = POLAR_ANGLE_TICK_LIFT * Math.sin((payload?.coordinate ?? 0) * Math.PI / 180);
|
|
9
|
+
return /* @__PURE__ */ jsx(Text, { x, y: y - lift, textAnchor, verticalAnchor, fill: "currentColor", className: POLAR_ANGLE_TICK, children: payload?.value });
|
|
10
|
+
}
|
|
11
|
+
var PILL_FALLBACK_WIDTH = 40;
|
|
12
|
+
function RadiusTick({ x = 0, y = 0, textAnchor, payload }) {
|
|
13
|
+
const textRef = React.useRef(null);
|
|
14
|
+
const rectRef = React.useRef(null);
|
|
15
|
+
React.useEffect(() => {
|
|
16
|
+
const text = textRef.current;
|
|
17
|
+
const rect = rectRef.current;
|
|
18
|
+
if (!text || !rect || typeof text.getBBox !== "function") return;
|
|
19
|
+
const box = text.getBBox();
|
|
20
|
+
if (box.width === 0 && box.height === 0) return;
|
|
21
|
+
const width = Math.max(POLAR_RADIUS_PILL_HEIGHT, box.width + POLAR_RADIUS_PILL_PAD_X);
|
|
22
|
+
rect.setAttribute("width", String(width));
|
|
23
|
+
rect.setAttribute("x", String(x - width / 2));
|
|
24
|
+
}, [x, y, payload?.value]);
|
|
25
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
"rect",
|
|
28
|
+
{
|
|
29
|
+
ref: rectRef,
|
|
30
|
+
x: x - PILL_FALLBACK_WIDTH / 2,
|
|
31
|
+
y: y - POLAR_RADIUS_PILL_HEIGHT / 2,
|
|
32
|
+
width: PILL_FALLBACK_WIDTH,
|
|
33
|
+
height: POLAR_RADIUS_PILL_HEIGHT,
|
|
34
|
+
rx: POLAR_RADIUS_PILL_HEIGHT / 2,
|
|
35
|
+
className: POLAR_RADIUS_PILL
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ jsx("text", { ref: textRef, x, y: y + POLAR_RADIUS_PILL_BASELINE, textAnchor, className: "recharts-text", children: /* @__PURE__ */ jsx("tspan", { x, dy: "0em", className: POLAR_ANGLE_TICK, children: payload?.value }) })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
function RadarChart2({
|
|
42
|
+
data,
|
|
43
|
+
angle,
|
|
44
|
+
series,
|
|
45
|
+
palette = DEFAULT_PALETTE,
|
|
46
|
+
max = "auto",
|
|
47
|
+
gridRings = POLAR_RADIUS_RINGS_DEFAULT,
|
|
48
|
+
height = 320,
|
|
49
|
+
legend = "bottom",
|
|
50
|
+
formatValue = formatNumber,
|
|
51
|
+
tooltip = true,
|
|
52
|
+
tooltipTone = "surface",
|
|
53
|
+
emptyMessage,
|
|
54
|
+
labels,
|
|
55
|
+
className,
|
|
56
|
+
"aria-label": ariaLabel
|
|
57
|
+
}) {
|
|
58
|
+
const colors = useCartesianColors("RadarChart", series, palette);
|
|
59
|
+
if (!Number.isSafeInteger(gridRings) || gridRings < 2) {
|
|
60
|
+
devWarn(`<RadarChart> \`gridRings\` must be an integer of at least 2 \u2014 got ${gridRings}. The engine floors to 2 (the centre and the outer ring).`);
|
|
61
|
+
}
|
|
62
|
+
const { colorMap, labelMap } = React.useMemo(() => {
|
|
63
|
+
const colorMap2 = {};
|
|
64
|
+
const labelMap2 = {};
|
|
65
|
+
for (const [i, s] of series.entries()) {
|
|
66
|
+
colorMap2[s.key] = colors[i] ?? "";
|
|
67
|
+
labelMap2[s.key] = s.label;
|
|
68
|
+
}
|
|
69
|
+
return { colorMap: colorMap2, labelMap: labelMap2 };
|
|
70
|
+
}, [series, colors]);
|
|
71
|
+
const legendItems = React.useMemo(() => series.map((s, i) => ({ label: s.label, color: colors[i] ?? "" })), [series, colors]);
|
|
72
|
+
const domainMax = React.useMemo(() => {
|
|
73
|
+
const values = [];
|
|
74
|
+
for (const row of data) {
|
|
75
|
+
for (const s of series) {
|
|
76
|
+
const v = row[s.key];
|
|
77
|
+
if (typeof v === "number") values.push(v);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return resolveMax(max, values);
|
|
81
|
+
}, [data, series, max]);
|
|
82
|
+
const angleKey = angle;
|
|
83
|
+
const table = /* @__PURE__ */ jsx(
|
|
84
|
+
ChartDataTable,
|
|
85
|
+
{
|
|
86
|
+
caption: ariaLabel,
|
|
87
|
+
rowHeader: angle,
|
|
88
|
+
columns: series.map((s) => s.label),
|
|
89
|
+
rows: data.map((row) => [
|
|
90
|
+
String(row[angle] ?? ""),
|
|
91
|
+
...series.map((s) => {
|
|
92
|
+
const v = row[s.key];
|
|
93
|
+
return typeof v === "number" ? formatValue(v) : String(v ?? "");
|
|
94
|
+
})
|
|
95
|
+
])
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
return /* @__PURE__ */ jsx(
|
|
99
|
+
ChartFrame,
|
|
100
|
+
{
|
|
101
|
+
component: "RadarChart",
|
|
102
|
+
ariaLabel,
|
|
103
|
+
height,
|
|
104
|
+
isEmpty: data.length === 0,
|
|
105
|
+
emptyMessage,
|
|
106
|
+
labels,
|
|
107
|
+
className,
|
|
108
|
+
table,
|
|
109
|
+
legendPlacement: legend === "none" ? void 0 : legend,
|
|
110
|
+
legend: legend === "none" ? void 0 : /* @__PURE__ */ jsx(ChartLegendContent, { items: legendItems, placement: legend }),
|
|
111
|
+
children: () => /* @__PURE__ */ jsxs(
|
|
112
|
+
RadarChart,
|
|
113
|
+
{
|
|
114
|
+
cx: "50%",
|
|
115
|
+
cy: "50%",
|
|
116
|
+
outerRadius: "100%",
|
|
117
|
+
margin: MARGIN.radar,
|
|
118
|
+
data,
|
|
119
|
+
className: POLAR_ROOT,
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ jsx(PolarGrid, { stroke: "currentColor", className: GRID }),
|
|
122
|
+
/* @__PURE__ */ jsx(PolarAngleAxis, { dataKey: angleKey, stroke: "currentColor", tickLine: false, axisLine: false, tick: /* @__PURE__ */ jsx(AngleTick, {}) }),
|
|
123
|
+
/* @__PURE__ */ jsx(
|
|
124
|
+
PolarRadiusAxis,
|
|
125
|
+
{
|
|
126
|
+
angle: 90,
|
|
127
|
+
axisLine: false,
|
|
128
|
+
domain: [0, domainMax],
|
|
129
|
+
tickCount: gridRings,
|
|
130
|
+
textAnchor: "middle",
|
|
131
|
+
tick: /* @__PURE__ */ jsx(RadiusTick, {})
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
tooltip ? /* @__PURE__ */ jsx(
|
|
135
|
+
Tooltip,
|
|
136
|
+
{
|
|
137
|
+
...NO_ANIMATION,
|
|
138
|
+
cursor: TOOLTIP_CURSOR.line,
|
|
139
|
+
content: /* @__PURE__ */ jsx(ChartTooltipContent, { colors: colorMap, labels: labelMap, formatValue, tone: tooltipTone })
|
|
140
|
+
}
|
|
141
|
+
) : null,
|
|
142
|
+
series.map((s, i) => {
|
|
143
|
+
const color = colors[i];
|
|
144
|
+
const key = s.key;
|
|
145
|
+
return /* @__PURE__ */ jsx(
|
|
146
|
+
Radar,
|
|
147
|
+
{
|
|
148
|
+
...NO_ANIMATION,
|
|
149
|
+
style: { color },
|
|
150
|
+
dataKey: key,
|
|
151
|
+
name: s.label,
|
|
152
|
+
stroke: "currentColor",
|
|
153
|
+
strokeWidth: 2,
|
|
154
|
+
strokeLinejoin: "round",
|
|
155
|
+
fill: "currentColor",
|
|
156
|
+
fillOpacity: 0.2,
|
|
157
|
+
activeDot: ACTIVE_DOT(color)
|
|
158
|
+
},
|
|
159
|
+
s.key
|
|
160
|
+
);
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export { RadarChart2 as RadarChart };
|
|
170
|
+
//# sourceMappingURL=chunk-GLKFFA7N.js.map
|
|
171
|
+
//# sourceMappingURL=chunk-GLKFFA7N.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useControlScrollFade } from './chunk-7EUAMHMU.js';
|
|
2
2
|
import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
|
|
3
|
-
import { CONTROL_TEXT, CONTROL_RADIUS, useFieldValidity, FieldFrame } from './chunk-
|
|
4
|
-
import { warnNeedsName, warnPositiveInt, devWarn } from './chunk-GCVA3OIV.js';
|
|
3
|
+
import { CONTROL_TEXT, CONTROL_RADIUS, useFieldValidity, FieldFrame } from './chunk-5KSD4WKN.js';
|
|
5
4
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
5
|
+
import { warnNeedsName, warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
|
|
6
6
|
import { Field } from '@base-ui/react/field';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -169,5 +169,5 @@ function Textarea(props) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
export { Textarea };
|
|
172
|
-
//# sourceMappingURL=chunk-
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
172
|
+
//# sourceMappingURL=chunk-GQRSABRN.js.map
|
|
173
|
+
//# sourceMappingURL=chunk-GQRSABRN.js.map
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { PanelChrome } from './chunk-
|
|
2
|
-
import { SURFACE_BASE,
|
|
1
|
+
import { PanelChrome } from './chunk-LO22VQL5.js';
|
|
2
|
+
import { SURFACE_BASE, surfaceBox, SURFACE_EDGE_OVERLAY, SURFACE_PADDING } from './chunk-45Y2ZGNK.js';
|
|
3
3
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
function Card({
|
|
8
|
-
variant = "
|
|
8
|
+
variant = "outlined",
|
|
9
|
+
shadow = "none",
|
|
9
10
|
padding = "md",
|
|
10
|
-
dividers =
|
|
11
|
+
dividers = "none",
|
|
11
12
|
title,
|
|
12
13
|
description,
|
|
13
14
|
leading,
|
|
@@ -19,7 +20,7 @@ function Card({
|
|
|
19
20
|
}) {
|
|
20
21
|
const hasHeader = title != null || description != null || leading != null || trailing != null;
|
|
21
22
|
const hasChrome = hasHeader || footer != null;
|
|
22
|
-
const surface = cn(SURFACE_BASE,
|
|
23
|
+
const surface = cn(SURFACE_BASE, surfaceBox(variant, shadow), padding === "none" && SURFACE_EDGE_OVERLAY, className);
|
|
23
24
|
if (!hasChrome) {
|
|
24
25
|
return /* @__PURE__ */ jsx("div", { ...rest, className: cn(surface, SURFACE_PADDING[padding]), children });
|
|
25
26
|
}
|
|
@@ -42,5 +43,5 @@ function Card({
|
|
|
42
43
|
Card.displayName = "Card";
|
|
43
44
|
|
|
44
45
|
export { Card };
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-GZMDZF2V.js.map
|
|
47
|
+
//# sourceMappingURL=chunk-GZMDZF2V.js.map
|