@slotted/react 0.1.0-beta.35 → 0.1.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-shell-DzgUaTI_.js → app-shell-ClwskWBN.js} +1 -1
- package/dist/app-shell.js +1 -1
- package/dist/{attachment-BMVfyrfb.js → attachment-AAjprQyU.js} +1 -1
- package/dist/attachment.js +1 -1
- package/dist/{button-DWqgjdVT.js → button-BMRInd-t.js} +3 -3
- package/dist/button.js +2 -2
- package/dist/{cascader-DuHG1xmi.js → cascader-DqrFX3Ob.js} +1 -1
- package/dist/cascader.js +1 -1
- package/dist/{column-manager-qJX80g4n.js → column-manager-D2PXs80l.js} +1 -1
- package/dist/column-manager.js +1 -1
- package/dist/{dashboard-grid-CLRtbO05.js → dashboard-grid-B6jxBz4j.js} +1 -1
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-B1AhnXmo.js → data-grid-DOMm7-ew.js} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-BWseCMYO.js → data-list-DgXGmRQx.js} +1 -1
- package/dist/data-list.js +1 -1
- package/dist/{detail-panel-D3AT1upM.js → detail-panel-DEZewVVV.js} +2 -2
- package/dist/detail-panel.js +1 -1
- package/dist/docs/button.json +10 -7
- package/dist/docs/button.md +6 -6
- package/dist/docs/command-palette.json +2 -1
- package/dist/docs/command-palette.md +1 -1
- package/dist/docs/dashboard-grid.json +2 -1
- package/dist/docs/dashboard-grid.md +1 -1
- package/dist/docs/entity-picker.json +2 -1
- package/dist/docs/entity-picker.md +1 -1
- package/dist/docs/field-group.json +1 -1
- package/dist/docs/field-group.md +1 -1
- package/dist/docs/guidelines/index.md +2 -0
- package/dist/docs/guidelines/own-elements.md +20 -0
- package/dist/docs/index.md +1 -1
- package/dist/docs/list.json +2 -1
- package/dist/docs/list.md +2 -2
- package/dist/docs/page.json +1 -1
- package/dist/docs/page.md +1 -1
- package/dist/docs/progress-indicator.json +1 -39
- package/dist/docs/progress-indicator.md +1 -6
- package/dist/docs/radio-group.json +1 -18
- package/dist/docs/radio-group.md +1 -3
- package/dist/docs/skills/build-own-element/SKILL.md +42 -2
- package/dist/docs/sparkline.json +1 -412
- package/dist/docs/sparkline.md +2 -177
- package/dist/docs/tokens.md +12 -0
- package/dist/{event-calendar-l17xA1Uw.js → event-calendar-CM302ec0.js} +1 -1
- package/dist/event-calendar.js +1 -1
- package/dist/{filter-bar-CYPaGUt2.js → filter-bar-CDEpYvq4.js} +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/{icon-button-CSjgX1pQ.js → icon-button-N8Madx6i.js} +11 -17
- package/dist/{import-export-center-Da8o-xT6.js → import-export-center-DdANj0_T.js} +5 -5
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +125 -125
- package/dist/{loading-overlay-CjUmvxqX.js → loading-overlay-BLIrcaoj.js} +1 -1
- package/dist/loading-overlay.js +1 -1
- package/dist/{markdown-JPxAdShq.js → markdown-CfPMPahy.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/{notification-center-B9rX_ZOu.js → notification-center-BngAw_kt.js} +1 -1
- package/dist/notification-center.js +1 -1
- package/dist/{page-Tesi7Z_n.js → page-DT8L0iRT.js} +5 -4
- package/dist/{page-header-ByhInJv-.js → page-header-NN3Jq5vb.js} +2 -2
- package/dist/page-header.js +1 -1
- package/dist/page.js +1 -1
- package/dist/progress-indicator-D0acshNn.js +292 -0
- package/dist/progress-indicator.js +2 -2
- package/dist/{radio-group-C59cfjry.js → radio-group-doL7tde1.js} +42 -49
- package/dist/radio-group.js +1 -1
- package/dist/{saved-views-D1h4jRTs.js → saved-views-fg5PoMgv.js} +1 -1
- package/dist/saved-views.js +1 -1
- package/dist/{side-navigation-fTRK3wuI.js → side-navigation-Cwi2FHOz.js} +1 -1
- package/dist/side-navigation.js +1 -1
- package/dist/sparkline-CYU4_lCD.js +152 -0
- package/dist/sparkline.js +2 -2
- package/dist/{split-button-ugark7Xc.js → split-button-BYowsA6Q.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/{stat-card-DjuW65lA.js → stat-card-CmpabaTc.js} +3 -3
- package/dist/stat-card.js +1 -1
- package/dist/styles/app-shell.css +1 -1
- package/dist/styles/attachment.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/cascader.css +2 -2
- package/dist/styles/chart.css +1 -1
- package/dist/styles/checkbox-group.css +2 -2
- package/dist/styles/checkbox.css +2 -2
- package/dist/styles/color-picker.css +1 -1
- package/dist/styles/column-manager.css +3 -3
- package/dist/styles/combobox.css +1 -1
- package/dist/styles/command-palette.css +1 -1
- package/dist/styles/currency-field.css +1 -1
- package/dist/styles/dashboard-grid.css +2 -2
- package/dist/styles/data-grid.css +3 -3
- package/dist/styles/data-list.css +5 -5
- package/dist/styles/date-field.css +1 -1
- package/dist/styles/date-picker.css +1 -1
- package/dist/styles/date-range-picker.css +1 -1
- package/dist/styles/datetime-field.css +1 -1
- package/dist/styles/datetime-picker.css +1 -1
- package/dist/styles/datetime-range-picker.css +1 -1
- package/dist/styles/detail-panel.css +1 -1
- package/dist/styles/entity-picker.css +2 -2
- package/dist/styles/event-calendar.css +3 -3
- package/dist/styles/field-group.css +2 -2
- package/dist/styles/field.css +1 -1
- package/dist/styles/filter-bar.css +3 -3
- package/dist/styles/import-export-center.css +5 -5
- package/dist/styles/index.css +11 -11
- package/dist/styles/list-item.css +2 -2
- package/dist/styles/list.css +1 -1
- package/dist/styles/listbox.css +1 -1
- package/dist/styles/loading-overlay.css +1 -1
- package/dist/styles/markdown.css +3 -3
- package/dist/styles/multi-select.css +1 -1
- package/dist/styles/notification-center.css +2 -2
- package/dist/styles/number-field.css +1 -1
- package/dist/styles/otp-input.css +1 -1
- package/dist/styles/page-header.css +1 -1
- package/dist/styles/progress-indicator.css +1 -1
- package/dist/styles/prompt-composer.css +1 -1
- package/dist/styles/radio-group.css +3 -3
- package/dist/styles/rating.css +1 -1
- package/dist/styles/saved-views.css +2 -2
- package/dist/styles/segmented-control.css +2 -2
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-navigation.css +2 -2
- package/dist/styles/slider.css +1 -1
- package/dist/styles/sparkline.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/stat-card.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/table.css +4 -4
- package/dist/styles/tags-input.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/textarea.css +1 -1
- package/dist/styles/time-field.css +1 -1
- package/dist/styles/time-picker.css +1 -1
- package/dist/styles/time-range-picker.css +1 -1
- package/dist/styles/toast.css +1 -1
- package/dist/styles/toggle-group.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/top-navigation.css +2 -2
- package/dist/styles/tour.css +1 -1
- package/dist/styles/transfer.css +3 -3
- package/dist/styles/upload.css +2 -2
- package/dist/styles/wizard.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table-BsdRSKob.js → table-D8-WlkFz.js} +2 -2
- package/dist/table.js +1 -1
- package/dist/{toast-D0xdff1C.js → toast-DHDVXIew.js} +1 -1
- package/dist/toast.js +1 -1
- package/dist/{top-navigation-B8jVv3rJ.js → top-navigation-C73WDqLg.js} +1 -1
- package/dist/top-navigation.js +1 -1
- package/dist/{tour-CuM6SrwJ.js → tour-ALH5CYMY.js} +1 -1
- package/dist/tour.js +1 -1
- package/dist/{transfer-CJLJumb8.js → transfer-CuNCXEoR.js} +1 -1
- package/dist/transfer.js +1 -1
- package/dist/types/button/button-content.d.ts +1 -3
- package/dist/types/button/button-content.d.ts.map +1 -1
- package/dist/types/button/button-root.d.ts +5 -2
- package/dist/types/button/button-root.d.ts.map +1 -1
- package/dist/types/button/button.d.ts.map +1 -1
- package/dist/types/button/button.types.d.ts +8 -4
- package/dist/types/button/button.types.d.ts.map +1 -1
- package/dist/types/button/toggle-button.d.ts.map +1 -1
- package/dist/types/list/list.types.d.ts +6 -4
- package/dist/types/list/list.types.d.ts.map +1 -1
- package/dist/types/page/page.d.ts.map +1 -1
- package/dist/types/progress-indicator/index.d.ts +1 -2
- package/dist/types/progress-indicator/index.d.ts.map +1 -1
- package/dist/types/progress-indicator/progress-indicator.types.d.ts +1 -26
- package/dist/types/progress-indicator/progress-indicator.types.d.ts.map +1 -1
- package/dist/types/radio-group/index.d.ts +1 -1
- package/dist/types/radio-group/index.d.ts.map +1 -1
- package/dist/types/radio-group/radio-group-parts.d.ts +1 -1
- package/dist/types/radio-group/radio-group-parts.d.ts.map +1 -1
- package/dist/types/radio-group/radio-group.d.ts +1 -1
- package/dist/types/radio-group/radio-group.d.ts.map +1 -1
- package/dist/types/radio-group/radio-group.types.d.ts +0 -16
- package/dist/types/radio-group/radio-group.types.d.ts.map +1 -1
- package/dist/types/sparkline/index.d.ts +1 -3
- package/dist/types/sparkline/index.d.ts.map +1 -1
- package/dist/types/sparkline/sparkline.types.d.ts +0 -70
- package/dist/types/sparkline/sparkline.types.d.ts.map +1 -1
- package/dist/{upload-Jx3gJJ2f.js → upload-Bpjlax3i.js} +1 -1
- package/dist/upload.js +1 -1
- package/dist/{wizard-CxtTDlWR.js → wizard-CL6u1aJb.js} +1 -1
- package/dist/wizard.js +1 -1
- package/package.json +6 -6
- package/dist/progress-indicator-iIoarHsj.js +0 -329
- package/dist/sparkline-SVDPBBav.js +0 -307
- package/dist/types/progress-indicator/segmented-bar.d.ts +0 -12
- package/dist/types/progress-indicator/segmented-bar.d.ts.map +0 -1
- package/dist/types/sparkline/bar-compare.d.ts +0 -11
- package/dist/types/sparkline/bar-compare.d.ts.map +0 -1
- package/dist/types/sparkline/position-strip.d.ts +0 -12
- package/dist/types/sparkline/position-strip.d.ts.map +0 -1
package/dist/wizard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./wizard-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./wizard-CL6u1aJb.js";
|
|
2
2
|
export { r as WIZARD_FALLBACK, m as Wizard, l as WizardActions, f as WizardCancel, o as WizardComplete, d as WizardDefaultsProvider, e as WizardDraftStatus, u as WizardEdit, p as WizardNext, t as WizardPrevious, s as WizardSaveDraft, h as WizardSkip, n as WizardStep, a as useWizard, c as useWizardDefaults, i as useWizardStep };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slotted/react",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.36",
|
|
4
4
|
"description": "Slotted UI components for React, one subpath per family.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"slotted",
|
|
@@ -562,17 +562,17 @@
|
|
|
562
562
|
"./*/styles.css": "./dist/styles/*.css"
|
|
563
563
|
},
|
|
564
564
|
"peerDependencies": {
|
|
565
|
-
"@slotted/core": "0.1.0-beta.
|
|
566
|
-
"@slotted/theme": "0.1.0-beta.
|
|
565
|
+
"@slotted/core": "0.1.0-beta.36",
|
|
566
|
+
"@slotted/theme": "0.1.0-beta.36",
|
|
567
567
|
"react": ">=19.2.0 <20",
|
|
568
568
|
"react-dom": ">=19.2.0 <20"
|
|
569
569
|
},
|
|
570
570
|
"devDependencies": {
|
|
571
571
|
"@slotted/agent-docs": "0.0.0",
|
|
572
|
-
"@slotted/core": "0.1.0-beta.
|
|
572
|
+
"@slotted/core": "0.1.0-beta.36",
|
|
573
573
|
"@slotted/storybook-workbench": "0.0.0",
|
|
574
|
-
"@slotted/styles": "0.1.0-beta.
|
|
575
|
-
"@slotted/theme": "0.1.0-beta.
|
|
574
|
+
"@slotted/styles": "0.1.0-beta.36",
|
|
575
|
+
"@slotted/theme": "0.1.0-beta.36",
|
|
576
576
|
"@storybook/react-vite": "10.5.10",
|
|
577
577
|
"@testing-library/jest-dom": "7.0.1",
|
|
578
578
|
"@testing-library/react": "16.3.3",
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-D7xXDd8-.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { keyedProps as t, selectorKeyProps as n } from "@slotted/core/selector-key";
|
|
4
|
-
import { createContext as r, useContext as i, useEffect as a, useId as o, useRef as s, useState as c } from "react";
|
|
5
|
-
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
-
import { PROGRESS_WAVE_BAR_INDETERMINATE_PATH as f, PROGRESS_WAVE_BAR_PATH as p, PROGRESS_WAVE_BAR_REACH as m, PROGRESS_WAVE_RING_PATH as h, progressGeometry as g, progressValueText as _ } from "@slotted/core/progress";
|
|
7
|
-
import { initialLoadingVisibility as v, nextLoadingVisibility as y } from "@slotted/core/loading";
|
|
8
|
-
//#region src/progress-indicator/progress-parts.tsx
|
|
9
|
-
function b(e) {
|
|
10
|
-
return e.labelText === void 0 ? null : /* @__PURE__ */ u("span", {
|
|
11
|
-
"data-part": "label",
|
|
12
|
-
"data-part-label": "",
|
|
13
|
-
id: e.labelId,
|
|
14
|
-
...e.labelHidden ? {
|
|
15
|
-
"data-ui": "visually-hidden",
|
|
16
|
-
...n("ui", "visually-hidden")
|
|
17
|
-
} : {},
|
|
18
|
-
children: e.labelText
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function x(e) {
|
|
22
|
-
return e.showValue ? /* @__PURE__ */ u("span", {
|
|
23
|
-
"data-part": "value",
|
|
24
|
-
"data-part-value": "",
|
|
25
|
-
children: e.valueText
|
|
26
|
-
}) : null;
|
|
27
|
-
}
|
|
28
|
-
function S(e, t) {
|
|
29
|
-
return {
|
|
30
|
-
...t,
|
|
31
|
-
"--slotted-progress-indicator-percent": e.geometry.percent,
|
|
32
|
-
...e.geometry.buffer === null ? {} : { "--slotted-progress-indicator-buffer-percent": e.geometry.buffer }
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/progress-indicator/progress-indicator-defaults.tsx
|
|
37
|
-
var C = r({});
|
|
38
|
-
function w() {
|
|
39
|
-
return i(C);
|
|
40
|
-
}
|
|
41
|
-
function T({ children: e, ...t }) {
|
|
42
|
-
let n = w();
|
|
43
|
-
return /* @__PURE__ */ u(C.Provider, {
|
|
44
|
-
value: {
|
|
45
|
-
delay: t.delay ?? n.delay,
|
|
46
|
-
label: t.label ?? n.label,
|
|
47
|
-
locale: t.locale ?? n.locale,
|
|
48
|
-
minDuration: t.minDuration ?? n.minDuration,
|
|
49
|
-
size: t.size ?? n.size,
|
|
50
|
-
tone: t.tone ?? n.tone
|
|
51
|
-
},
|
|
52
|
-
children: e
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/progress-indicator/use-loading-visibility.ts
|
|
57
|
-
function E({ delay: e, loading: t, minDuration: n, onWithdraw: r }) {
|
|
58
|
-
let i = s(v), [, o] = c(0), l = y({
|
|
59
|
-
delay: e,
|
|
60
|
-
loading: t,
|
|
61
|
-
minDuration: n,
|
|
62
|
-
now: Date.now(),
|
|
63
|
-
state: i.current
|
|
64
|
-
});
|
|
65
|
-
i.current = l.state;
|
|
66
|
-
let { wait: u } = l;
|
|
67
|
-
a(() => {
|
|
68
|
-
if (u === null) return;
|
|
69
|
-
let e = setTimeout(() => o((e) => e + 1), u);
|
|
70
|
-
return () => clearTimeout(e);
|
|
71
|
-
}, [u, t]);
|
|
72
|
-
let d = l.state.visible, f = s(d);
|
|
73
|
-
return a(() => {
|
|
74
|
-
f.current && !d && r?.(), f.current = d;
|
|
75
|
-
}, [d, r]), d;
|
|
76
|
-
}
|
|
77
|
-
function D({ ariaHidden: e, ariaLabel: t, ariaLabelledBy: r, component: i, decorative: a, delay: s, hideLabel: l, label: u, loading: d, locale: f, measure: p, minDuration: m, onWithdraw: h, shape: v, size: y, tone: b }) {
|
|
78
|
-
let x = w(), S = o(), C = u ?? x.label, T = E({
|
|
79
|
-
delay: s ?? x.delay ?? 0,
|
|
80
|
-
loading: d,
|
|
81
|
-
minDuration: m ?? x.minDuration ?? 0,
|
|
82
|
-
onWithdraw: h
|
|
83
|
-
}), [D, O] = c(0), [k, A] = c(T);
|
|
84
|
-
T !== k && (A(T), T && O(D + 1));
|
|
85
|
-
let j = g({
|
|
86
|
-
value: p?.value,
|
|
87
|
-
min: p?.min,
|
|
88
|
-
max: p?.max,
|
|
89
|
-
buffer: p?.buffer
|
|
90
|
-
}), M = p === void 0 ? void 0 : _({
|
|
91
|
-
geometry: j,
|
|
92
|
-
valueText: p.valueText,
|
|
93
|
-
format: p.format,
|
|
94
|
-
locale: f ?? x.locale
|
|
95
|
-
}), N = C !== void 0 && !a;
|
|
96
|
-
return {
|
|
97
|
-
geometry: j,
|
|
98
|
-
painted: T,
|
|
99
|
-
paint: D,
|
|
100
|
-
labelId: S,
|
|
101
|
-
labelText: C,
|
|
102
|
-
labelHidden: l === !0,
|
|
103
|
-
valueText: M,
|
|
104
|
-
showValue: p?.showValue === !0 && !j.indeterminate && M !== void 0,
|
|
105
|
-
size: y ?? x.size ?? "md",
|
|
106
|
-
tone: b ?? x.tone ?? "accent",
|
|
107
|
-
identity: {
|
|
108
|
-
"aria-hidden": a ? e ?? "true" : e,
|
|
109
|
-
"aria-labelledby": N ? r ?? S : r,
|
|
110
|
-
"aria-valuemax": a || p === void 0 ? void 0 : j.max,
|
|
111
|
-
"aria-valuemin": a || p === void 0 ? void 0 : j.min,
|
|
112
|
-
"aria-valuenow": a || j.indeterminate ? void 0 : j.valueNow ?? void 0,
|
|
113
|
-
"aria-valuetext": a ? void 0 : M,
|
|
114
|
-
"data-complete": j.complete ? "" : void 0,
|
|
115
|
-
"data-indeterminate": p === void 0 || j.indeterminate ? "" : void 0,
|
|
116
|
-
"data-part": "root",
|
|
117
|
-
...n("part", "root"),
|
|
118
|
-
"data-shape": v,
|
|
119
|
-
"data-size": y ?? x.size ?? "md",
|
|
120
|
-
"data-tone": b ?? x.tone ?? "accent",
|
|
121
|
-
"data-ui": "progress-indicator",
|
|
122
|
-
...n("ui", "progress-indicator"),
|
|
123
|
-
hidden: !T || void 0,
|
|
124
|
-
role: a ? void 0 : "progressbar"
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region src/progress-indicator/loader.tsx
|
|
130
|
-
function O({ "aria-hidden": e, "aria-label": t, "aria-labelledby": n, contained: r = !1, decorative: i = !1, delay: a, hideLabel: o, label: s, loading: c = !0, minDuration: f, onWithdraw: p, render: m, size: h, tone: g, ..._ }) {
|
|
131
|
-
let v = D({
|
|
132
|
-
ariaHidden: e,
|
|
133
|
-
ariaLabel: t,
|
|
134
|
-
ariaLabelledBy: n,
|
|
135
|
-
component: "Loader",
|
|
136
|
-
decorative: i,
|
|
137
|
-
delay: a,
|
|
138
|
-
hideLabel: o,
|
|
139
|
-
label: s,
|
|
140
|
-
loading: c,
|
|
141
|
-
locale: void 0,
|
|
142
|
-
measure: void 0,
|
|
143
|
-
minDuration: f,
|
|
144
|
-
onWithdraw: p,
|
|
145
|
-
shape: "morph",
|
|
146
|
-
size: h,
|
|
147
|
-
tone: g
|
|
148
|
-
}), y = {
|
|
149
|
-
..._,
|
|
150
|
-
...v.identity,
|
|
151
|
-
"aria-label": t,
|
|
152
|
-
children: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
|
|
153
|
-
"data-part": "track",
|
|
154
|
-
"data-part-track": "",
|
|
155
|
-
children: /* @__PURE__ */ u("div", {
|
|
156
|
-
"data-part": "indicator",
|
|
157
|
-
"data-part-indicator": ""
|
|
158
|
-
})
|
|
159
|
-
}), b(v)] }),
|
|
160
|
-
...r ? { "data-contained": "" } : {}
|
|
161
|
-
};
|
|
162
|
-
return m === void 0 ? /* @__PURE__ */ u("div", { ...y }) : m(y);
|
|
163
|
-
}
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/progress-indicator/progress-bar.tsx
|
|
166
|
-
function k({ "aria-hidden": e, "aria-label": t, "aria-labelledby": n, buffer: r, decorative: i = !1, delay: a, format: o, hideLabel: s, label: c, loading: h = !0, locale: g, max: _, min: v, minDuration: y, onWithdraw: C, placement: w = "inline", render: T, showValue: E, size: O, style: k, tone: A, value: j, valueText: M, wave: N = !1, ...P }) {
|
|
167
|
-
let F = D({
|
|
168
|
-
ariaHidden: e,
|
|
169
|
-
ariaLabel: t,
|
|
170
|
-
ariaLabelledBy: n,
|
|
171
|
-
component: "ProgressBar",
|
|
172
|
-
decorative: i,
|
|
173
|
-
delay: a,
|
|
174
|
-
hideLabel: s ?? w !== "inline",
|
|
175
|
-
label: c,
|
|
176
|
-
loading: h,
|
|
177
|
-
locale: g,
|
|
178
|
-
measure: {
|
|
179
|
-
value: j,
|
|
180
|
-
min: v,
|
|
181
|
-
max: _,
|
|
182
|
-
buffer: r,
|
|
183
|
-
format: o,
|
|
184
|
-
showValue: E,
|
|
185
|
-
valueText: M
|
|
186
|
-
},
|
|
187
|
-
minDuration: y,
|
|
188
|
-
onWithdraw: C,
|
|
189
|
-
shape: "linear",
|
|
190
|
-
size: O,
|
|
191
|
-
tone: A
|
|
192
|
-
}), I = {
|
|
193
|
-
...P,
|
|
194
|
-
...F.identity,
|
|
195
|
-
"aria-label": t,
|
|
196
|
-
children: /* @__PURE__ */ d(l, { children: [
|
|
197
|
-
b(F),
|
|
198
|
-
x(F),
|
|
199
|
-
/* @__PURE__ */ u("div", {
|
|
200
|
-
"data-part": "track",
|
|
201
|
-
"data-part-track": "",
|
|
202
|
-
children: N ? /* @__PURE__ */ u("svg", {
|
|
203
|
-
"aria-hidden": "true",
|
|
204
|
-
"data-part": "indicator",
|
|
205
|
-
"data-part-indicator": "",
|
|
206
|
-
focusable: "false",
|
|
207
|
-
preserveAspectRatio: "xMinYMid meet",
|
|
208
|
-
viewBox: `0 -1.25 ${m} 2.5`,
|
|
209
|
-
children: /* @__PURE__ */ u("path", {
|
|
210
|
-
d: F.geometry.indeterminate ? f : p,
|
|
211
|
-
pathLength: m
|
|
212
|
-
})
|
|
213
|
-
}, F.paint) : /* @__PURE__ */ u("div", {
|
|
214
|
-
"data-part": "indicator",
|
|
215
|
-
"data-part-indicator": ""
|
|
216
|
-
}, F.paint)
|
|
217
|
-
})
|
|
218
|
-
] }),
|
|
219
|
-
...F.geometry.buffer === null ? {} : { "data-buffered": "" },
|
|
220
|
-
...w === "inline" ? {} : { "data-placement": w },
|
|
221
|
-
...N ? { "data-wave": "" } : {},
|
|
222
|
-
style: S(F, k)
|
|
223
|
-
};
|
|
224
|
-
return T === void 0 ? /* @__PURE__ */ u("div", { ...I }) : T(I);
|
|
225
|
-
}
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/progress-indicator/progress-circle.tsx
|
|
228
|
-
function A({ "aria-hidden": e, "aria-label": t, "aria-labelledby": n, decorative: r = !1, delay: i, format: a, hideLabel: o, label: s, loading: c = !0, locale: f, max: p, min: m, minDuration: g, onWithdraw: _, render: v, showValue: y, size: C, style: w, tone: T, value: E, valueText: O, wave: k = !1, ...A }) {
|
|
229
|
-
let j = D({
|
|
230
|
-
ariaHidden: e,
|
|
231
|
-
ariaLabel: t,
|
|
232
|
-
ariaLabelledBy: n,
|
|
233
|
-
component: "ProgressCircle",
|
|
234
|
-
decorative: r,
|
|
235
|
-
delay: i,
|
|
236
|
-
hideLabel: o,
|
|
237
|
-
label: s,
|
|
238
|
-
loading: c,
|
|
239
|
-
locale: f,
|
|
240
|
-
measure: {
|
|
241
|
-
value: E,
|
|
242
|
-
min: m,
|
|
243
|
-
max: p,
|
|
244
|
-
buffer: null,
|
|
245
|
-
format: a,
|
|
246
|
-
showValue: y,
|
|
247
|
-
valueText: O
|
|
248
|
-
},
|
|
249
|
-
minDuration: g,
|
|
250
|
-
onWithdraw: _,
|
|
251
|
-
shape: "circular",
|
|
252
|
-
size: C,
|
|
253
|
-
tone: T
|
|
254
|
-
}), M = {
|
|
255
|
-
...A,
|
|
256
|
-
...j.identity,
|
|
257
|
-
"aria-label": t,
|
|
258
|
-
children: /* @__PURE__ */ d(l, { children: [
|
|
259
|
-
/* @__PURE__ */ d("svg", {
|
|
260
|
-
"aria-hidden": "true",
|
|
261
|
-
focusable: "false",
|
|
262
|
-
viewBox: "0 0 48 48",
|
|
263
|
-
children: [/* @__PURE__ */ u("circle", {
|
|
264
|
-
cx: "24",
|
|
265
|
-
cy: "24",
|
|
266
|
-
"data-part": "track",
|
|
267
|
-
"data-part-track": "",
|
|
268
|
-
pathLength: "100",
|
|
269
|
-
r: "20"
|
|
270
|
-
}), k ? /* @__PURE__ */ u("path", {
|
|
271
|
-
d: h,
|
|
272
|
-
"data-part": "indicator",
|
|
273
|
-
"data-part-indicator": "",
|
|
274
|
-
pathLength: "100"
|
|
275
|
-
}, j.paint) : /* @__PURE__ */ u("circle", {
|
|
276
|
-
cx: "24",
|
|
277
|
-
cy: "24",
|
|
278
|
-
"data-part": "indicator",
|
|
279
|
-
"data-part-indicator": "",
|
|
280
|
-
pathLength: "100",
|
|
281
|
-
r: "20"
|
|
282
|
-
}, j.paint)]
|
|
283
|
-
}),
|
|
284
|
-
b(j),
|
|
285
|
-
x(j)
|
|
286
|
-
] }),
|
|
287
|
-
...k ? { "data-wave": "" } : {},
|
|
288
|
-
style: S(j, w)
|
|
289
|
-
};
|
|
290
|
-
return v === void 0 ? /* @__PURE__ */ u("div", { ...M }) : v(M);
|
|
291
|
-
}
|
|
292
|
-
//#endregion
|
|
293
|
-
//#region src/progress-indicator/segmented-bar.tsx
|
|
294
|
-
function j({ "aria-label": n, current: r = null, end: i, segments: a, size: o, start: s, style: c, ...l }) {
|
|
295
|
-
let f = w(), p = e(), m = new Intl.ListFormat(p, { type: "unit" }).format(a.map((e) => e.label)), h = (e) => a[e]?.key ?? e;
|
|
296
|
-
return /* @__PURE__ */ d("div", {
|
|
297
|
-
...t({
|
|
298
|
-
...l,
|
|
299
|
-
...r === null ? {} : { "data-current": "" },
|
|
300
|
-
"data-part": "root",
|
|
301
|
-
"data-shape": "segmented",
|
|
302
|
-
"data-size": o ?? f.size,
|
|
303
|
-
"data-ui": "progress-indicator",
|
|
304
|
-
style: c
|
|
305
|
-
}),
|
|
306
|
-
children: [/* @__PURE__ */ u("div", {
|
|
307
|
-
"aria-label": n === void 0 ? m : `${n}: ${m}`,
|
|
308
|
-
"data-part": "track",
|
|
309
|
-
"data-part-track": "",
|
|
310
|
-
role: "img",
|
|
311
|
-
children: a.map((e, t) => /* @__PURE__ */ u("span", {
|
|
312
|
-
"data-part": "segment",
|
|
313
|
-
"data-part-segment": "",
|
|
314
|
-
...e.pattern === void 0 ? {} : { "data-pattern": e.pattern },
|
|
315
|
-
...r !== null && h(t) === r ? { "data-current": "" } : {},
|
|
316
|
-
style: {
|
|
317
|
-
"--_segment-color": `var(--slotted-data-${String(e.color ?? t % 8 + 1)})`,
|
|
318
|
-
flexGrow: Math.max(0, e.value)
|
|
319
|
-
}
|
|
320
|
-
}, String(h(t))))
|
|
321
|
-
}), s === void 0 && i === void 0 ? null : /* @__PURE__ */ d("div", {
|
|
322
|
-
"data-part": "scale",
|
|
323
|
-
"data-part-scale": "",
|
|
324
|
-
children: [/* @__PURE__ */ u("span", { children: s }), /* @__PURE__ */ u("span", { children: i })]
|
|
325
|
-
})]
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
//#endregion
|
|
329
|
-
export { E as a, O as i, A as n, T as o, k as r, w as s, j as t };
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
|
-
import { keyedProps as n } from "@slotted/core/selector-key";
|
|
3
|
-
import { createContext as r, useContext as i, useLayoutEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
|
-
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
-
import { sparklineMessages as f } from "@slotted/core/i18n";
|
|
6
|
-
import { SPARKLINE_STEPS as p, describeCompare as m, describeSparkline as h, describeStrip as g, layoutCompare as _, layoutSparkline as v, layoutStrip as y, observeSparklineBox as b, sparklineInset as x } from "@slotted/core/sparkline";
|
|
7
|
-
//#region src/sparkline/sparkline-defaults.tsx
|
|
8
|
-
var S = r({});
|
|
9
|
-
function C() {
|
|
10
|
-
return i(S);
|
|
11
|
-
}
|
|
12
|
-
function w({ children: e, ...t }) {
|
|
13
|
-
let n = C();
|
|
14
|
-
return /* @__PURE__ */ u(S.Provider, {
|
|
15
|
-
value: {
|
|
16
|
-
area: t.area ?? n.area,
|
|
17
|
-
curve: t.curve ?? n.curve,
|
|
18
|
-
formatOptions: t.formatOptions ?? n.formatOptions,
|
|
19
|
-
marker: t.marker ?? n.marker
|
|
20
|
-
},
|
|
21
|
-
children: e
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/sparkline/use-sparkline-format.ts
|
|
26
|
-
function T(t, n, r) {
|
|
27
|
-
let i = C(), a = e(), s = r ?? a, c = n ?? i.formatOptions;
|
|
28
|
-
return o(() => {
|
|
29
|
-
if (t) return t;
|
|
30
|
-
let e = new Intl.NumberFormat(s, c);
|
|
31
|
-
return (t) => e.format(t);
|
|
32
|
-
}, [
|
|
33
|
-
t,
|
|
34
|
-
s,
|
|
35
|
-
c
|
|
36
|
-
]);
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/sparkline/bar-compare.tsx
|
|
40
|
-
function E({ data: e, description: t, formatOptions: r, locale: i, max: a, min: o, render: s, step: c, tone: l, valueFormatter: f, ...p }) {
|
|
41
|
-
let h = T(f, r, i), g = _(e, {
|
|
42
|
-
min: o,
|
|
43
|
-
max: a,
|
|
44
|
-
step: c
|
|
45
|
-
}), v = n({
|
|
46
|
-
...p,
|
|
47
|
-
"aria-label": t ?? m(e, h),
|
|
48
|
-
children: e.map((e, t) => {
|
|
49
|
-
let n = g.bars[t];
|
|
50
|
-
return /* @__PURE__ */ d("span", {
|
|
51
|
-
"data-negative": n.negative ? "" : void 0,
|
|
52
|
-
"data-part": "row",
|
|
53
|
-
"data-part-row": "",
|
|
54
|
-
"data-texture": e.texture === !0 ? "" : void 0,
|
|
55
|
-
children: [/* @__PURE__ */ u("span", {
|
|
56
|
-
"data-part": "label",
|
|
57
|
-
"data-part-label": "",
|
|
58
|
-
children: e.label
|
|
59
|
-
}), /* @__PURE__ */ d("span", {
|
|
60
|
-
"data-part": "track",
|
|
61
|
-
"data-part-track": "",
|
|
62
|
-
children: [
|
|
63
|
-
g.ticks.map((e) => /* @__PURE__ */ u("span", {
|
|
64
|
-
"data-part": "tick",
|
|
65
|
-
"data-part-tick": "",
|
|
66
|
-
style: { "--slotted-sparkline-at": e.at }
|
|
67
|
-
}, e.value)),
|
|
68
|
-
g.zero === null ? null : /* @__PURE__ */ u("span", {
|
|
69
|
-
"data-part": "zero",
|
|
70
|
-
"data-part-zero": "",
|
|
71
|
-
style: { "--slotted-sparkline-at": g.zero }
|
|
72
|
-
}),
|
|
73
|
-
/* @__PURE__ */ u("span", {
|
|
74
|
-
"data-part": "bar",
|
|
75
|
-
"data-part-bar": "",
|
|
76
|
-
style: {
|
|
77
|
-
"--slotted-sparkline-from": n.from,
|
|
78
|
-
"--slotted-sparkline-to": n.to
|
|
79
|
-
}
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ u("span", {
|
|
82
|
-
"data-part": "value",
|
|
83
|
-
"data-part-value": "",
|
|
84
|
-
style: {
|
|
85
|
-
"--slotted-sparkline-from": n.from,
|
|
86
|
-
"--slotted-sparkline-to": n.to
|
|
87
|
-
},
|
|
88
|
-
children: h(e.value)
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
})]
|
|
92
|
-
}, `${t}-${e.label}`);
|
|
93
|
-
}),
|
|
94
|
-
"data-part": "root",
|
|
95
|
-
"data-tone": l,
|
|
96
|
-
"data-type": "compare",
|
|
97
|
-
"data-ui": "sparkline",
|
|
98
|
-
role: "img"
|
|
99
|
-
});
|
|
100
|
-
return s === void 0 ? /* @__PURE__ */ u("span", { ...v }) : s(v);
|
|
101
|
-
}
|
|
102
|
-
//#endregion
|
|
103
|
-
//#region src/sparkline/position-strip.tsx
|
|
104
|
-
function D({ description: e, formatOptions: r, hideValue: i = !1, label: a, locale: o, max: s, messages: c, min: p, reference: m, render: h, size: _ = "md", tone: v, value: b, valueFormatter: x, values: S, ...C }) {
|
|
105
|
-
let w = t(f, c), E = T(x, r, o), D = {
|
|
106
|
-
value: i ? null : b,
|
|
107
|
-
values: S,
|
|
108
|
-
reference: m,
|
|
109
|
-
min: p,
|
|
110
|
-
max: s
|
|
111
|
-
}, A = y(D), j = e ?? g(D, {
|
|
112
|
-
t: w,
|
|
113
|
-
format: E,
|
|
114
|
-
label: a
|
|
115
|
-
}), M = n({
|
|
116
|
-
...C,
|
|
117
|
-
"aria-label": j,
|
|
118
|
-
children: /* @__PURE__ */ d(l, { children: [
|
|
119
|
-
/* @__PURE__ */ u("span", {
|
|
120
|
-
"data-part": "start",
|
|
121
|
-
"data-part-start": "",
|
|
122
|
-
children: A.low === null ? null : E(A.low)
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */ d("span", {
|
|
125
|
-
"data-part": "track",
|
|
126
|
-
"data-part-track": "",
|
|
127
|
-
children: [
|
|
128
|
-
A.band === null ? null : /* @__PURE__ */ u("span", {
|
|
129
|
-
"data-part": "band",
|
|
130
|
-
"data-part-band": "",
|
|
131
|
-
style: k(A.band.from, A.band.to)
|
|
132
|
-
}),
|
|
133
|
-
A.zero === null ? null : /* @__PURE__ */ u("span", {
|
|
134
|
-
"data-part": "zero",
|
|
135
|
-
"data-part-zero": "",
|
|
136
|
-
style: O(A.zero)
|
|
137
|
-
}),
|
|
138
|
-
A.reference === null ? null : /* @__PURE__ */ u("span", {
|
|
139
|
-
"data-part": "reference",
|
|
140
|
-
"data-part-reference": "",
|
|
141
|
-
style: O(A.reference)
|
|
142
|
-
}),
|
|
143
|
-
A.dots.map((e) => /* @__PURE__ */ u("span", {
|
|
144
|
-
"data-part": "dot",
|
|
145
|
-
"data-part-dot": "",
|
|
146
|
-
style: O(e.at)
|
|
147
|
-
}, e.index)),
|
|
148
|
-
A.value === null ? null : /* @__PURE__ */ u("span", {
|
|
149
|
-
"data-part": "value",
|
|
150
|
-
"data-part-value": "",
|
|
151
|
-
style: O(A.value)
|
|
152
|
-
})
|
|
153
|
-
]
|
|
154
|
-
}),
|
|
155
|
-
/* @__PURE__ */ u("span", {
|
|
156
|
-
"data-part": "end",
|
|
157
|
-
"data-part-end": "",
|
|
158
|
-
children: A.high === null ? null : E(A.high)
|
|
159
|
-
})
|
|
160
|
-
] }),
|
|
161
|
-
"data-part": "root",
|
|
162
|
-
"data-size": _,
|
|
163
|
-
"data-tone": v,
|
|
164
|
-
"data-type": "strip",
|
|
165
|
-
"data-ui": "sparkline",
|
|
166
|
-
role: "img"
|
|
167
|
-
});
|
|
168
|
-
return h === void 0 ? /* @__PURE__ */ u("span", { ...M }) : h(M);
|
|
169
|
-
}
|
|
170
|
-
function O(e) {
|
|
171
|
-
return { "--slotted-sparkline-at": e };
|
|
172
|
-
}
|
|
173
|
-
function k(e, t) {
|
|
174
|
-
return {
|
|
175
|
-
"--slotted-sparkline-from": e,
|
|
176
|
-
"--slotted-sparkline-to": t
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region src/sparkline/sparkline.tsx
|
|
181
|
-
var A = 2, j = 2;
|
|
182
|
-
function M({ area: r, curve: i, data: m, description: g, formatOptions: _, label: y, locale: S, marker: w, max: T, messages: E, min: D, ref: O, reference: k, render: M, series: N, size: P = "md", tone: F, type: I = "line", valueFormatter: L, ...R }) {
|
|
183
|
-
let z = C(), B = e(), V = t(f, E), H = {
|
|
184
|
-
area: r ?? z.area ?? !1,
|
|
185
|
-
curve: i ?? z.curve ?? "linear",
|
|
186
|
-
marker: w ?? z.marker ?? !0,
|
|
187
|
-
locale: S ?? B,
|
|
188
|
-
formatOptions: _ ?? z.formatOptions
|
|
189
|
-
}, U = s(null), [W, G] = c(null);
|
|
190
|
-
a(() => {
|
|
191
|
-
let e = U.current;
|
|
192
|
-
if (e === null) return;
|
|
193
|
-
let t = b(e, G);
|
|
194
|
-
return () => t.destroy();
|
|
195
|
-
}, []);
|
|
196
|
-
let K = p[P], q = W?.width || K.width, J = W?.height || K.height, Y = s({
|
|
197
|
-
data: m,
|
|
198
|
-
width: q,
|
|
199
|
-
height: J
|
|
200
|
-
}), X = Y.current.data !== m && Y.current.width === q && Y.current.height === J;
|
|
201
|
-
a(() => {
|
|
202
|
-
Y.current = {
|
|
203
|
-
data: m,
|
|
204
|
-
width: q,
|
|
205
|
-
height: J
|
|
206
|
-
};
|
|
207
|
-
});
|
|
208
|
-
let Z = o(() => v({
|
|
209
|
-
data: m,
|
|
210
|
-
width: q,
|
|
211
|
-
height: J,
|
|
212
|
-
inset: x(P, I, H.marker),
|
|
213
|
-
type: I,
|
|
214
|
-
curve: H.curve,
|
|
215
|
-
area: H.area,
|
|
216
|
-
min: D,
|
|
217
|
-
max: T,
|
|
218
|
-
reference: k,
|
|
219
|
-
gap: A,
|
|
220
|
-
radius: j
|
|
221
|
-
}), [
|
|
222
|
-
m,
|
|
223
|
-
q,
|
|
224
|
-
J,
|
|
225
|
-
P,
|
|
226
|
-
I,
|
|
227
|
-
H.marker,
|
|
228
|
-
H.curve,
|
|
229
|
-
H.area,
|
|
230
|
-
D,
|
|
231
|
-
T,
|
|
232
|
-
k
|
|
233
|
-
]), Q = o(() => {
|
|
234
|
-
if (L) return L;
|
|
235
|
-
let e = new Intl.NumberFormat(H.locale, H.formatOptions);
|
|
236
|
-
return (t) => e.format(t);
|
|
237
|
-
}, [
|
|
238
|
-
L,
|
|
239
|
-
H.locale,
|
|
240
|
-
H.formatOptions
|
|
241
|
-
]), ee = g ?? h(m, {
|
|
242
|
-
t: V,
|
|
243
|
-
format: Q,
|
|
244
|
-
label: y
|
|
245
|
-
}), $ = n({
|
|
246
|
-
...R,
|
|
247
|
-
"aria-label": ee,
|
|
248
|
-
children: /* @__PURE__ */ d("svg", {
|
|
249
|
-
"aria-hidden": "true",
|
|
250
|
-
"data-part": "plot",
|
|
251
|
-
"data-part-plot": "",
|
|
252
|
-
focusable: "false",
|
|
253
|
-
preserveAspectRatio: "none",
|
|
254
|
-
viewBox: `0 0 ${q} ${J}`,
|
|
255
|
-
children: [
|
|
256
|
-
Z.area ? /* @__PURE__ */ u("path", {
|
|
257
|
-
d: Z.area,
|
|
258
|
-
"data-part": "area",
|
|
259
|
-
"data-part-area": ""
|
|
260
|
-
}) : null,
|
|
261
|
-
Z.line ? /* @__PURE__ */ u("path", {
|
|
262
|
-
d: Z.line,
|
|
263
|
-
"data-part": "line",
|
|
264
|
-
"data-part-line": ""
|
|
265
|
-
}) : null,
|
|
266
|
-
Z.bars.map((e, t) => /* @__PURE__ */ u("path", {
|
|
267
|
-
d: e.path,
|
|
268
|
-
"data-current": t === Z.bars.length - 1 ? "" : void 0,
|
|
269
|
-
"data-part": "bar",
|
|
270
|
-
"data-part-bar": ""
|
|
271
|
-
}, e.index)),
|
|
272
|
-
Z.reference === null ? null : /* @__PURE__ */ u("line", {
|
|
273
|
-
"data-part": "reference",
|
|
274
|
-
"data-part-reference": "",
|
|
275
|
-
x1: 0,
|
|
276
|
-
x2: q,
|
|
277
|
-
y1: Z.reference,
|
|
278
|
-
y2: Z.reference
|
|
279
|
-
}),
|
|
280
|
-
H.marker && I === "line" && Z.marker ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", {
|
|
281
|
-
d: `M${Z.marker.x} ${Z.marker.y}h0.001`,
|
|
282
|
-
"data-part": "ring",
|
|
283
|
-
"data-part-ring": ""
|
|
284
|
-
}), /* @__PURE__ */ u("path", {
|
|
285
|
-
d: `M${Z.marker.x} ${Z.marker.y}h0.001`,
|
|
286
|
-
"data-part": "marker",
|
|
287
|
-
"data-part-marker": ""
|
|
288
|
-
})] }) : null
|
|
289
|
-
]
|
|
290
|
-
}),
|
|
291
|
-
...X ? { "data-animate": "" } : {},
|
|
292
|
-
"data-curve": H.curve,
|
|
293
|
-
"data-part": "root",
|
|
294
|
-
"data-series": N === void 0 ? void 0 : String(N),
|
|
295
|
-
"data-size": P,
|
|
296
|
-
"data-tone": F,
|
|
297
|
-
"data-type": I,
|
|
298
|
-
"data-ui": "sparkline",
|
|
299
|
-
ref: (e) => {
|
|
300
|
-
U.current = e, typeof O == "function" ? O(e) : O != null && (O.current = e);
|
|
301
|
-
},
|
|
302
|
-
role: "img"
|
|
303
|
-
});
|
|
304
|
-
return M === void 0 ? /* @__PURE__ */ u("span", { ...$ }) : M($);
|
|
305
|
-
}
|
|
306
|
-
//#endregion
|
|
307
|
-
export { C as a, w as i, D as n, E as r, M as t };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { SegmentedBarProps } from './progress-indicator.types.js';
|
|
3
|
-
/**
|
|
4
|
-
* One total split into parts: one bar of segments whose widths are in the
|
|
5
|
-
* ratio of their values, for a budget by category or a quota by file type,
|
|
6
|
-
* with a table or a list beside it as the legend. The track is a picture of
|
|
7
|
-
* the parts (`role="img"`), named by every part's label in order in the
|
|
8
|
-
* language's list format; the scale under it stays text. `current` marks one
|
|
9
|
-
* part and dims the others, which a row of the legend sets from its pointer.
|
|
10
|
-
*/
|
|
11
|
-
export declare function SegmentedBar({ 'aria-label': ariaLabel, current, end, segments, size, start, style, ...nativeProps }: SegmentedBarProps): import("react").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=segmented-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-bar.d.ts","sourceRoot":"","sources":["../../../src/progress-indicator/segmented-bar.tsx"],"names":[],"mappings":"AACA,OAAO,2DAA2D,CAAC;AAMnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAC3B,YAAY,EAAE,SAAS,EACvB,OAAc,EACd,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,KAAK,EACL,GAAG,WAAW,EACf,EAAE,iBAAiB,+BAkDnB"}
|