jenosize-ui 0.2.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 +2 -2
- 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 +3 -2
- package/dist/area-chart.js +6 -5
- package/dist/avatar.d.ts +5 -0
- package/dist/avatar.js +9 -8
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +5 -4
- package/dist/bar-chart.d.ts +3 -2
- package/dist/bar-chart.js +6 -5
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +4 -2
- package/dist/button.d.ts +6 -1
- package/dist/button.js +9 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +15 -13
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +11 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -51
- package/dist/card.js +5 -5
- package/dist/checkbox.js +8 -7
- package/dist/{chunk-75M43ELV.js → chunk-22M75A3N.js} +75 -45
- package/dist/{chunk-A46ED5JQ.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-RNXRZGXN.js → chunk-3H444OJA.js} +5 -3
- package/dist/{chunk-DJYWPJZ3.js → chunk-3QXLIZIX.js} +3 -12
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-ILICYNK7.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/{chunk-FIGBJGH2.js → chunk-4VGEJG4M.js} +115 -79
- package/dist/{chunk-EX374YWB.js → chunk-54SIZR63.js} +15 -7
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/{chunk-NA35YZRD.js → chunk-5DP7W5HX.js} +13 -11
- package/dist/{chunk-QKDEQFOQ.js → chunk-5KSD4WKN.js} +13 -4
- package/dist/{chunk-RIXEUAPY.js → chunk-5XPMY2LF.js} +5 -5
- package/dist/{chunk-6UBYHSBX.js → chunk-5ZEUTSCV.js} +5 -5
- package/dist/{chunk-DCGTB7P7.js → chunk-667ZHY3T.js} +111 -39
- package/dist/{chunk-MYQ3FD4Y.js → chunk-6B6BWTXC.js} +8 -5
- package/dist/{chunk-6HJA7NPL.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-JAVNGTOE.js → chunk-6MMBQVRO.js} +58 -43
- package/dist/{chunk-JMWYCT63.js → chunk-7GUPNTAH.js} +14 -6
- package/dist/{chunk-TBN644IN.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-BD5YKFRA.js → chunk-A323V6AI.js} +5 -3
- package/dist/{chunk-AC6ZWKRN.js → chunk-AFYXSZGW.js} +2 -2
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-54S5CUY6.js → chunk-AIGYMTCU.js} +5 -4
- package/dist/{chunk-C6OTOTKI.js → chunk-AZ7DKRBY.js} +5 -5
- package/dist/{chunk-QBHQOX23.js → chunk-BBKE4W3B.js} +18 -10
- package/dist/{chunk-4BRMM3I5.js → chunk-BFVJHH7S.js} +7 -6
- package/dist/{chunk-FFTRB2UU.js → chunk-CFFWYXDW.js} +18 -6
- package/dist/{chunk-42FCPC77.js → chunk-CGHYXWTT.js} +10 -4
- package/dist/{chunk-VEOYCAJP.js → chunk-CKMWBVRR.js} +27 -7
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-NMERLWT7.js → chunk-E2YZ7IMT.js} +23 -7
- package/dist/{chunk-GAFGIT4Q.js → chunk-FFMTYQXE.js} +30 -10
- package/dist/{chunk-L53Y7KUV.js → chunk-FH7Z7SGQ.js} +61 -28
- package/dist/{chunk-5JRM3OES.js → chunk-FNQJJO63.js} +3 -3
- package/dist/{chunk-MD4AR43X.js → chunk-FWRHBMWT.js} +3 -3
- package/dist/{chunk-4K6V6NNK.js → chunk-GLKFFA7N.js} +10 -8
- package/dist/{chunk-EDOUI2BG.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-BNIWT6CW.js → chunk-GZMDZF2V.js} +7 -6
- package/dist/{chunk-HSVBTIP2.js → chunk-HHYEAFCL.js} +70 -27
- package/dist/{chunk-P7DH62UY.js → chunk-I6WMNXC7.js} +5 -5
- package/dist/{chunk-34J5AANZ.js → chunk-IQNVSQRK.js} +3 -3
- package/dist/{chunk-MCUASLZH.js → chunk-KHGW72BM.js} +3 -3
- package/dist/{chunk-4R7WDDCW.js → chunk-KZP6B6B3.js} +4 -4
- package/dist/{chunk-7HV6EIGZ.js → chunk-LLPWQDF7.js} +3 -3
- package/dist/{chunk-FZBZGA3P.js → chunk-LO22VQL5.js} +4 -4
- package/dist/{chunk-JXHZHUB3.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-EDT5J5WK.js → chunk-LYXPJERB.js} +14 -4
- package/dist/{chunk-6IUTVDNI.js → chunk-MCQG4H6T.js} +35 -3
- package/dist/{chunk-JYBGO6GY.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-PXEJ5RKO.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/{chunk-VWGAMOSE.js → chunk-NKG4N6HA.js} +3 -3
- package/dist/{chunk-A5WQLN4B.js → chunk-OACWA4TC.js} +14 -52
- package/dist/{chunk-LBYCCLVI.js → chunk-OLLD2BZN.js} +9 -9
- package/dist/{chunk-T2WAD4QP.js → chunk-POQTE7JI.js} +55 -16
- package/dist/{chunk-74HPBSVY.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-VH35QHD4.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-DTMYD63D.js → chunk-S5TEWPWW.js} +46 -26
- package/dist/{chunk-3GT43XPK.js → chunk-SB3DG572.js} +15 -8
- package/dist/{chunk-NKDW6C7K.js → chunk-SKRR3ZMP.js} +3 -3
- package/dist/{chunk-CTENRS34.js → chunk-T4ZFZTY6.js} +8 -6
- package/dist/{chunk-YLEHYDXC.js → chunk-T5574MXM.js} +33 -45
- package/dist/{chunk-USL3TDZM.js → chunk-U4WSJAYK.js} +321 -105
- package/dist/{chunk-4W6AYGLR.js → chunk-UGKELBNC.js} +55 -39
- package/dist/{chunk-M5TVCASC.js → chunk-ULGCGKOE.js} +8 -6
- package/dist/{chunk-JUWDRRD6.js → chunk-X2VMIBK5.js} +4 -4
- package/dist/{chunk-763VS2FY.js → chunk-YHBI52P2.js} +3 -3
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Z3SDKIA.js → chunk-YQYVGWIC.js} +5 -5
- package/dist/{chunk-4HKDD3PR.js → chunk-ZHAT2XZ4.js} +91 -57
- package/dist/{chunk-CWMFEF6R.js → chunk-ZMFY7WAY.js} +60 -24
- package/dist/{chunk-WKWAUU64.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +12 -11
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +11 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +23 -21
- package/dist/dialog.d.ts +21 -1
- package/dist/dialog.js +10 -8
- package/dist/drawer.d.ts +11 -1
- package/dist/drawer.js +9 -7
- package/dist/dropdown-menu.d.ts +12 -0
- package/dist/dropdown-menu.js +6 -5
- package/dist/dropzone.d.ts +3 -2
- package/dist/dropzone.js +13 -12
- package/dist/form.d.ts +5 -4
- package/dist/form.js +60 -44
- package/dist/header-navigation.d.ts +5 -1
- package/dist/header-navigation.js +21 -19
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +81 -76
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +9 -8
- package/dist/kanban-board.d.ts +21 -81
- package/dist/kanban-board.js +14 -12
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +3 -2
- package/dist/line-chart.js +6 -5
- package/dist/{nav-DcCyt00p.d.ts → nav-CKKqjBs6.d.ts} +10 -0
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +9 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +11 -10
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +9 -8
- package/dist/pie-chart.d.ts +7 -3
- package/dist/pie-chart.js +6 -5
- package/dist/popover.js +9 -7
- package/dist/progress-steps.js +2 -2
- 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 +7 -3
- package/dist/radar-chart.js +6 -5
- package/dist/radial-chart.d.ts +7 -3
- package/dist/radial-chart.js +6 -5
- package/dist/radio.js +8 -7
- package/dist/select.d.ts +2 -1
- package/dist/select.js +14 -13
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +28 -7
- package/dist/sidebar-navigation.js +15 -13
- package/dist/skeleton.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +56 -6
- package/dist/table.js +36 -34
- 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 +12 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +3 -2
- package/dist/textarea.js +6 -5
- package/dist/theme.css +69 -6
- package/dist/theme.js +10 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +11 -9
- package/dist/{tooltip-surface-Dmvb8v5K.d.ts → tooltip-surface-C2I9o2QM.d.ts} +1 -1
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.js +3 -3
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +5 -4
- package/dist/{types-6kvYwtRH.d.ts → types-DR9rAEy1.d.ts} +45 -13
- package/dist/{use-uploads-ButS4dGe.d.ts → use-uploads-KaPqDklo.d.ts} +9 -0
- package/dist/verification-code-input.js +8 -7
- package/package.json +12 -1
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/shared-BNXAdgh2.d.ts +0 -9
- package/dist/surface-DFyDnrTJ.d.ts +0 -34
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { TOOLTIP_TONE, TOOLTIP_SWATCH } from './chunk-
|
|
2
|
-
import { warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
|
|
1
|
+
import { TOOLTIP_TONE, TOOLTIP_SWATCH } from './chunk-AFYXSZGW.js';
|
|
3
2
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
3
|
+
import { useLabels } from './chunk-RJTVCA62.js';
|
|
4
|
+
import { warnPositiveInt, devWarn } from './chunk-QDYE5LVT.js';
|
|
4
5
|
import { ResponsiveContainer } from 'recharts';
|
|
5
6
|
export { Area, AreaChart, Bar, BarChart, CartesianGrid, Label, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, RadialBar, RadialBarChart, ReferenceLine, Text, Tooltip, XAxis, YAxis } from 'recharts';
|
|
6
7
|
import * as React2 from 'react';
|
|
@@ -67,7 +68,8 @@ var AREA_GRADIENT_STOPS = { from: 0.7, to: 0, fromOffset: "5%", toOffset: "95%"
|
|
|
67
68
|
var LINE_DASH = { strokeDasharray: "6 4", strokeLinecap: "butt" };
|
|
68
69
|
var DOT_SIZE = { r: 3, activeR: 4, strokeWidth: 2 };
|
|
69
70
|
var dot = (color, r) => ({
|
|
70
|
-
className:
|
|
71
|
+
className: "fill-bg-primary",
|
|
72
|
+
style: { color },
|
|
71
73
|
stroke: "currentColor",
|
|
72
74
|
strokeDasharray: "none",
|
|
73
75
|
strokeWidth: DOT_SIZE.strokeWidth,
|
|
@@ -159,11 +161,17 @@ var TOOLTIP = {
|
|
|
159
161
|
};
|
|
160
162
|
var EMPTY = "flex items-center justify-center text-sm text-tertiary";
|
|
161
163
|
var formatNumber = (value) => value.toLocaleString();
|
|
164
|
+
|
|
165
|
+
// src/components/chart/labels.ts
|
|
166
|
+
var CHART_LABELS = {
|
|
167
|
+
empty: "No data to display"
|
|
168
|
+
};
|
|
162
169
|
function ChartFrame({
|
|
163
170
|
ariaLabel,
|
|
164
171
|
height,
|
|
165
172
|
isEmpty,
|
|
166
173
|
emptyMessage,
|
|
174
|
+
labels,
|
|
167
175
|
component,
|
|
168
176
|
className,
|
|
169
177
|
table,
|
|
@@ -173,11 +181,12 @@ function ChartFrame({
|
|
|
173
181
|
children
|
|
174
182
|
}) {
|
|
175
183
|
warnPositiveInt(component, "height", height);
|
|
184
|
+
const t = useLabels("chart", CHART_LABELS, labels);
|
|
176
185
|
const gradientId = `jz-chart-${React2.useId().replaceAll(/[^a-zA-Z0-9]/g, "")}`;
|
|
177
186
|
const legendNode = !isEmpty && legend ? legend : null;
|
|
178
187
|
const isBeside = legendPlacement === "left" || legendPlacement === "right";
|
|
179
188
|
const isFirst = legendPlacement === "top" || legendPlacement === "left";
|
|
180
|
-
const plot = isEmpty ? /* @__PURE__ */ jsx("div", { className: EMPTY, style: { height }, children: emptyMessage }) : (
|
|
189
|
+
const plot = isEmpty ? /* @__PURE__ */ jsx("div", { className: EMPTY, style: { height }, children: emptyMessage ?? t.empty }) : (
|
|
181
190
|
/*
|
|
182
191
|
* The plot is hidden from assistive tech, and the table below is the WHOLE accessible story.
|
|
183
192
|
*
|
|
@@ -230,7 +239,7 @@ function ChartFrame({
|
|
|
230
239
|
}
|
|
231
240
|
function ChartLegendContent({ items, placement }) {
|
|
232
241
|
const isVertical = placement === "left" || placement === "right";
|
|
233
|
-
return /* @__PURE__ */ jsx("ul", { className: cn(LEGEND.list, isVertical ? LEGEND.vertical : LEGEND.horizontal), children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className:
|
|
242
|
+
return /* @__PURE__ */ jsx("ul", { className: cn(LEGEND.list, isVertical ? LEGEND.vertical : LEGEND.horizontal), children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className: LEGEND.item, style: { color: item.color }, children: [
|
|
234
243
|
/* @__PURE__ */ jsx("span", { className: LEGEND.swatch }),
|
|
235
244
|
/* @__PURE__ */ jsx("span", { className: "text-tertiary", children: item.label })
|
|
236
245
|
] }, `${item.label}-${index}`)) });
|
|
@@ -288,10 +297,10 @@ function ChartTooltipContent({ colors, labels, formatValue, formatLabel, tone =
|
|
|
288
297
|
payload.map((entry, index) => {
|
|
289
298
|
const key = keyOf(entry, labels);
|
|
290
299
|
return (
|
|
291
|
-
/* `
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
/* @__PURE__ */ jsxs("p", { className: cn(TOOLTIP.row, t.supporting, colors[key]
|
|
300
|
+
/* The series colour rides as an inline `style` — on this row it is not type, it is what the
|
|
301
|
+
`bg-current` swatch reads, and a style always beats the tone's `text-*` class. The tone's
|
|
302
|
+
own colour is re-applied to the inner span, which IS type. */
|
|
303
|
+
/* @__PURE__ */ jsxs("p", { className: cn(TOOLTIP.row, t.supporting), style: { color: colors[key] }, children: [
|
|
295
304
|
/* @__PURE__ */ jsx("span", { className: TOOLTIP_SWATCH }),
|
|
296
305
|
/* @__PURE__ */ jsxs("span", { className: t.supporting, children: [
|
|
297
306
|
labels[key] ?? key,
|
|
@@ -317,50 +326,71 @@ function ChartDataTable({ caption, rowHeader, columns, rows }) {
|
|
|
317
326
|
] }) });
|
|
318
327
|
}
|
|
319
328
|
var BRAND = [
|
|
320
|
-
"
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
"
|
|
329
|
+
"var(--color-utility-brand-700)",
|
|
330
|
+
"var(--color-utility-brand-600)",
|
|
331
|
+
"var(--color-utility-brand-500)",
|
|
332
|
+
"var(--color-utility-brand-400)",
|
|
333
|
+
"var(--color-utility-brand-300)",
|
|
334
|
+
"var(--color-utility-brand-200)"
|
|
326
335
|
];
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
green: "text-utility-green-600",
|
|
339
|
-
amber: "text-utility-amber-600",
|
|
340
|
-
red: "text-utility-red-600",
|
|
341
|
-
neutral: "text-utility-neutral-600"
|
|
342
|
-
};
|
|
343
|
-
var PALETTE_LENGTH = 6;
|
|
344
|
-
function seriesColorClass(color, index, palette) {
|
|
345
|
-
if (color) return EXPLICIT[color];
|
|
346
|
-
const ramp = palette === "categorical" ? CATEGORICAL : BRAND;
|
|
336
|
+
BRAND.length;
|
|
337
|
+
var DEFAULT_PALETTE = [];
|
|
338
|
+
function paletteRamp(palette) {
|
|
339
|
+
return palette.length > 0 ? palette : BRAND;
|
|
340
|
+
}
|
|
341
|
+
function paletteLength(palette) {
|
|
342
|
+
return paletteRamp(palette).length;
|
|
343
|
+
}
|
|
344
|
+
function seriesColor(color, index, palette) {
|
|
345
|
+
if (color) return color;
|
|
346
|
+
const ramp = paletteRamp(palette);
|
|
347
347
|
return ramp[index % ramp.length];
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
var FORMER_HUES = {
|
|
350
|
+
brand: "utility-brand-600",
|
|
351
|
+
blue: "utility-blue-600",
|
|
352
|
+
green: "utility-green-600",
|
|
353
|
+
amber: "utility-amber-600",
|
|
354
|
+
red: "utility-red-600",
|
|
355
|
+
neutral: "utility-neutral-600"
|
|
356
|
+
};
|
|
357
|
+
function warnChartColor(component, where, value) {
|
|
358
|
+
const replacement = FORMER_HUES[value];
|
|
359
|
+
if (replacement) {
|
|
360
|
+
devWarn(
|
|
361
|
+
`<${component}> ${where} is "${value}", which is now the CSS colour of that name, not the house token it used to mean. Use token("${replacement}").`
|
|
362
|
+
);
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
if (typeof CSS !== "undefined" && typeof CSS.supports === "function" && !CSS.supports("color", value)) {
|
|
366
|
+
devWarn(
|
|
367
|
+
`<${component}> ${where} is "${value}", which is not a CSS colour. Pass a colour VALUE ("#e11d48", "oklch(62% .21 25)") or token("utility-blue-600") \u2014 not a class name.`
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
function useSeriesColors(component, total, resolve, steps) {
|
|
372
|
+
const colors = React2.useMemo(() => Array.from({ length: total }, (_, i) => resolve(i)), [total, resolve]);
|
|
373
|
+
const joined = colors.join("|");
|
|
350
374
|
React2.useEffect(() => {
|
|
351
|
-
if (total >
|
|
375
|
+
if (total > steps) {
|
|
352
376
|
devWarn(
|
|
353
|
-
`<${component}> has ${total} series but the palette has ${
|
|
377
|
+
`<${component}> has ${total} series but the palette has ${steps} steps \u2014 colours repeat from series ${steps + 1}. Give the extra series an explicit \`color\`, or pass a longer \`palette\`.`
|
|
354
378
|
);
|
|
355
379
|
}
|
|
356
|
-
|
|
357
|
-
|
|
380
|
+
const seen = /* @__PURE__ */ new Set();
|
|
381
|
+
for (const [i, value] of joined.split("|").entries()) {
|
|
382
|
+
if (!value || seen.has(value)) continue;
|
|
383
|
+
seen.add(value);
|
|
384
|
+
warnChartColor(component, `series ${i + 1}'s colour`, value);
|
|
385
|
+
}
|
|
386
|
+
}, [component, total, steps, joined]);
|
|
387
|
+
return colors;
|
|
358
388
|
}
|
|
359
389
|
function useCartesianColors(component, series, palette) {
|
|
360
|
-
const resolve = React2.useCallback((i) =>
|
|
361
|
-
return useSeriesColors(component, series.length, resolve);
|
|
390
|
+
const resolve = React2.useCallback((i) => seriesColor(series[i]?.color, i, palette), [series, palette]);
|
|
391
|
+
return useSeriesColors(component, series.length, resolve, paletteLength(palette));
|
|
362
392
|
}
|
|
363
393
|
|
|
364
|
-
export { ACTIVE_DOT, AREA_BAND, AREA_FILL_OPACITY, AREA_GRADIENT_STOPS, AREA_SOLID_OPACITY, AXIS, AXIS_LABEL, AXIS_TICK, BAND_SEPARATOR, BAR_LAYOUT, BAR_RADIUS, BAR_RADIUS_HORIZONTAL, CHART_ROOT, ChartDataTable, ChartFrame, ChartLegendContent, ChartTooltipContent, DOT, GRID, LINE_DASH, MARGIN, MAX_BAR_SIZE, NO_ANIMATION, PIE_DONUT, PIE_SIZE, POLAR_ANGLE_TICK, POLAR_ANGLE_TICK_LIFT, POLAR_HOVER, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_RINGS_DEFAULT, POLAR_ROOT, RADIAL_SIZE, RADIAL_TRACK, TOOLTIP_CURSOR, X_AXIS_PADDING, ZERO_LINE, formatNumber,
|
|
365
|
-
//# sourceMappingURL=chunk-
|
|
366
|
-
//# sourceMappingURL=chunk-
|
|
394
|
+
export { ACTIVE_DOT, AREA_BAND, AREA_FILL_OPACITY, AREA_GRADIENT_STOPS, AREA_SOLID_OPACITY, AXIS, AXIS_LABEL, AXIS_TICK, BAND_SEPARATOR, BAR_LAYOUT, BAR_RADIUS, BAR_RADIUS_HORIZONTAL, CHART_ROOT, ChartDataTable, ChartFrame, ChartLegendContent, ChartTooltipContent, DEFAULT_PALETTE, DOT, GRID, LINE_DASH, MARGIN, MAX_BAR_SIZE, NO_ANIMATION, PIE_DONUT, PIE_SIZE, POLAR_ANGLE_TICK, POLAR_ANGLE_TICK_LIFT, POLAR_HOVER, POLAR_RADIUS_PILL, POLAR_RADIUS_PILL_BASELINE, POLAR_RADIUS_PILL_HEIGHT, POLAR_RADIUS_PILL_PAD_X, POLAR_RADIUS_RINGS_DEFAULT, POLAR_ROOT, RADIAL_SIZE, RADIAL_TRACK, TOOLTIP_CURSOR, X_AXIS_PADDING, ZERO_LINE, formatNumber, paletteLength, seriesColor, useCartesianColors, useSeriesColors };
|
|
395
|
+
//# sourceMappingURL=chunk-22M75A3N.js.map
|
|
396
|
+
//# sourceMappingURL=chunk-22M75A3N.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FILL } from './chunk-MCQG4H6T.js';
|
|
2
2
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
3
|
+
import { warnNeedsName, warnRange, devWarn } from './chunk-QDYE5LVT.js';
|
|
3
4
|
import 'react';
|
|
4
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
var TRACK = "relative w-full overflow-hidden rounded-full bg-tertiary";
|
|
7
8
|
var TRACK_SIZE = { sm: "h-1.5", md: "h-2" };
|
|
8
|
-
var
|
|
9
|
+
var FILL_BASE = "size-full rounded-full transition-transform duration-75 ease-linear";
|
|
9
10
|
var NOTCH = "absolute inset-y-0 w-1 -translate-x-1/2 bg-primary transition-[left] duration-75 ease-linear";
|
|
10
11
|
var VALUE_TEXT = "shrink-0 text-sm font-medium text-tertiary tabular-nums";
|
|
11
12
|
var BUBBLE = "absolute rounded-[10px] bg-primary_alt px-3 py-2 shadow-lg ring-1 ring-secondary_alt ring-inset";
|
|
@@ -26,6 +27,7 @@ function Progress(props) {
|
|
|
26
27
|
valuePosition = "none",
|
|
27
28
|
formatValue,
|
|
28
29
|
size = "md",
|
|
30
|
+
color = "brand",
|
|
29
31
|
"aria-label": ariaLabel,
|
|
30
32
|
"aria-labelledby": ariaLabelledBy,
|
|
31
33
|
className
|
|
@@ -52,7 +54,7 @@ function Progress(props) {
|
|
|
52
54
|
"aria-labelledby": ariaLabelledBy,
|
|
53
55
|
className: cn(TRACK, TRACK_SIZE[size], valuePosition === "none" && className),
|
|
54
56
|
children: [
|
|
55
|
-
/* @__PURE__ */ jsx("div", { className: FILL, style: { transform: `translateX(-${100 - paintPercent}%)` } }),
|
|
57
|
+
/* @__PURE__ */ jsx("div", { className: cn(FILL_BASE, FILL[color]), style: { transform: `translateX(-${100 - paintPercent}%)` } }),
|
|
56
58
|
notchPercent !== null && /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: NOTCH, style: { left: `${notchPercent}%` } })
|
|
57
59
|
]
|
|
58
60
|
}
|
|
@@ -67,5 +69,5 @@ function Progress(props) {
|
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
export { Progress };
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
+
//# sourceMappingURL=chunk-33TOK7ES.js.map
|
|
73
|
+
//# sourceMappingURL=chunk-33TOK7ES.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useControllableOpen, DialogSurface } from './chunk-
|
|
1
|
+
import { useControllableOpen, DialogSurface } from './chunk-CKMWBVRR.js';
|
|
2
2
|
import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -10,6 +10,7 @@ function AlertDialog(props) {
|
|
|
10
10
|
defaultOpen = false,
|
|
11
11
|
onOpenChange,
|
|
12
12
|
size = "md",
|
|
13
|
+
backdrop = "scrim",
|
|
13
14
|
showClose = false,
|
|
14
15
|
dividers = "line",
|
|
15
16
|
keepMounted = false,
|
|
@@ -33,6 +34,7 @@ function AlertDialog(props) {
|
|
|
33
34
|
DialogSurface,
|
|
34
35
|
{
|
|
35
36
|
size,
|
|
37
|
+
backdrop,
|
|
36
38
|
showClose,
|
|
37
39
|
dividers,
|
|
38
40
|
keepMounted,
|
|
@@ -53,5 +55,5 @@ function AlertDialog(props) {
|
|
|
53
55
|
AlertDialog.displayName = "AlertDialog";
|
|
54
56
|
|
|
55
57
|
export { AlertDialog };
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-3H444OJA.js.map
|
|
59
|
+
//# sourceMappingURL=chunk-3H444OJA.js.map
|
|
@@ -309,15 +309,6 @@ var SEG_PLACEHOLDER = {
|
|
|
309
309
|
second: "--",
|
|
310
310
|
dayPeriod: "AM"
|
|
311
311
|
};
|
|
312
|
-
var SEG_LABEL = {
|
|
313
|
-
month: "Month",
|
|
314
|
-
day: "Day",
|
|
315
|
-
year: "Year",
|
|
316
|
-
hour: "Hour",
|
|
317
|
-
minute: "Minute",
|
|
318
|
-
second: "Second",
|
|
319
|
-
dayPeriod: "AM/PM"
|
|
320
|
-
};
|
|
321
312
|
function displaySeg(seg, p, cfg) {
|
|
322
313
|
if (seg === "dayPeriod") {
|
|
323
314
|
const v2 = getDisp("dayPeriod", p, cfg);
|
|
@@ -331,6 +322,6 @@ function segValueText(seg, p, cfg) {
|
|
|
331
322
|
return displaySeg(seg, p, cfg);
|
|
332
323
|
}
|
|
333
324
|
|
|
334
|
-
export { BE_OFFSET, DEFAULT_FORMAT,
|
|
335
|
-
//# sourceMappingURL=chunk-
|
|
336
|
-
//# sourceMappingURL=chunk-
|
|
325
|
+
export { BE_OFFSET, DEFAULT_FORMAT, applyPastedDate, clamp, dispBounds, displaySeg, fromISO, getDisp, pad, parseFormat, parsePastedDate, segValueText, setDisp, toISO, wrap };
|
|
326
|
+
//# sourceMappingURL=chunk-3QXLIZIX.js.map
|
|
327
|
+
//# sourceMappingURL=chunk-3QXLIZIX.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/lib/surface.ts
|
|
2
|
+
var SURFACE_PADDINGS = ["none", "sm", "md", "lg"];
|
|
3
|
+
var SURFACE_BASE = "rounded-xl";
|
|
4
|
+
var SURFACE_EDGE = "ring-1 ring-secondary ring-inset";
|
|
5
|
+
var CARD_SURFACE_VARIANTS = ["outlined", "subtle"];
|
|
6
|
+
var SURFACE_SHADOWS = ["none", "xs", "sm", "md", "lg", "xl", "2xl"];
|
|
7
|
+
var SURFACE_SHADOW = {
|
|
8
|
+
none: "",
|
|
9
|
+
xs: "shadow-xs",
|
|
10
|
+
sm: "shadow-sm",
|
|
11
|
+
md: "shadow-md",
|
|
12
|
+
lg: "shadow-lg",
|
|
13
|
+
xl: "shadow-xl",
|
|
14
|
+
"2xl": "shadow-2xl"
|
|
15
|
+
};
|
|
16
|
+
var SURFACE_FILL = {
|
|
17
|
+
outlined: { flat: "bg-primary", lifted: "bg-primary_alt" },
|
|
18
|
+
subtle: { flat: "bg-sunken", lifted: "bg-sunken" }
|
|
19
|
+
};
|
|
20
|
+
function surfaceBox(variant, shadow) {
|
|
21
|
+
const fill = SURFACE_FILL[variant][shadow === "none" ? "flat" : "lifted"];
|
|
22
|
+
return shadow === "none" ? `${fill} ${SURFACE_EDGE}` : `${fill} ${SURFACE_EDGE} ${SURFACE_SHADOW[shadow]}`;
|
|
23
|
+
}
|
|
24
|
+
var SURFACE_EDGE_OVERLAY = "relative isolate after:pointer-events-none after:absolute after:inset-0 after:z-4 after:rounded-[inherit] after:ring-1 after:ring-secondary after:ring-inset";
|
|
25
|
+
var SURFACE_PADDING = {
|
|
26
|
+
none: "",
|
|
27
|
+
sm: "p-3",
|
|
28
|
+
md: "p-4",
|
|
29
|
+
lg: "p-6"
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { CARD_SURFACE_VARIANTS, SURFACE_BASE, SURFACE_EDGE_OVERLAY, SURFACE_PADDING, SURFACE_PADDINGS, SURFACE_SHADOWS, surfaceBox };
|
|
33
|
+
//# sourceMappingURL=chunk-45Y2ZGNK.js.map
|
|
34
|
+
//# sourceMappingURL=chunk-45Y2ZGNK.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CONTROL_ICON } from './chunk-5KSD4WKN.js';
|
|
1
2
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
2
|
-
import { CONTROL_ICON } from './chunk-QKDEQFOQ.js';
|
|
3
3
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
4
4
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
@@ -28,5 +28,5 @@ function MultiValueCount({ count, supportingText }) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export { ListboxFooter, MultiValueCount };
|
|
31
|
-
//# sourceMappingURL=chunk-
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
31
|
+
//# sourceMappingURL=chunk-4RBIWI2Q.js.map
|
|
32
|
+
//# sourceMappingURL=chunk-4RBIWI2Q.js.map
|