@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
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { selectorKeyProps as e } from "@slotted/core/selector-key";
|
|
3
|
+
import { createContext as t, useContext as n, useEffect as r, useId as i, useRef as a, useState as o } from "react";
|
|
4
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
import { PROGRESS_WAVE_BAR_INDETERMINATE_PATH as u, PROGRESS_WAVE_BAR_PATH as d, PROGRESS_WAVE_BAR_REACH as f, PROGRESS_WAVE_RING_PATH as p, progressGeometry as m, progressValueText as h } from "@slotted/core/progress";
|
|
6
|
+
import { initialLoadingVisibility as g, nextLoadingVisibility as _ } from "@slotted/core/loading";
|
|
7
|
+
//#region src/progress-indicator/progress-parts.tsx
|
|
8
|
+
function v(t) {
|
|
9
|
+
return t.labelText === void 0 ? null : /* @__PURE__ */ c("span", {
|
|
10
|
+
"data-part": "label",
|
|
11
|
+
"data-part-label": "",
|
|
12
|
+
id: t.labelId,
|
|
13
|
+
...t.labelHidden ? {
|
|
14
|
+
"data-ui": "visually-hidden",
|
|
15
|
+
...e("ui", "visually-hidden")
|
|
16
|
+
} : {},
|
|
17
|
+
children: t.labelText
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function y(e) {
|
|
21
|
+
return e.showValue ? /* @__PURE__ */ c("span", {
|
|
22
|
+
"data-part": "value",
|
|
23
|
+
"data-part-value": "",
|
|
24
|
+
children: e.valueText
|
|
25
|
+
}) : null;
|
|
26
|
+
}
|
|
27
|
+
function b(e, t) {
|
|
28
|
+
return {
|
|
29
|
+
...t,
|
|
30
|
+
"--slotted-progress-indicator-percent": e.geometry.percent,
|
|
31
|
+
...e.geometry.buffer === null ? {} : { "--slotted-progress-indicator-buffer-percent": e.geometry.buffer }
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/progress-indicator/progress-indicator-defaults.tsx
|
|
36
|
+
var x = t({});
|
|
37
|
+
function S() {
|
|
38
|
+
return n(x);
|
|
39
|
+
}
|
|
40
|
+
function C({ children: e, ...t }) {
|
|
41
|
+
let n = S();
|
|
42
|
+
return /* @__PURE__ */ c(x.Provider, {
|
|
43
|
+
value: {
|
|
44
|
+
delay: t.delay ?? n.delay,
|
|
45
|
+
label: t.label ?? n.label,
|
|
46
|
+
locale: t.locale ?? n.locale,
|
|
47
|
+
minDuration: t.minDuration ?? n.minDuration,
|
|
48
|
+
size: t.size ?? n.size,
|
|
49
|
+
tone: t.tone ?? n.tone
|
|
50
|
+
},
|
|
51
|
+
children: e
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/progress-indicator/use-loading-visibility.ts
|
|
56
|
+
function w({ delay: e, loading: t, minDuration: n, onWithdraw: i }) {
|
|
57
|
+
let s = a(g), [, c] = o(0), l = _({
|
|
58
|
+
delay: e,
|
|
59
|
+
loading: t,
|
|
60
|
+
minDuration: n,
|
|
61
|
+
now: Date.now(),
|
|
62
|
+
state: s.current
|
|
63
|
+
});
|
|
64
|
+
s.current = l.state;
|
|
65
|
+
let { wait: u } = l;
|
|
66
|
+
r(() => {
|
|
67
|
+
if (u === null) return;
|
|
68
|
+
let e = setTimeout(() => c((e) => e + 1), u);
|
|
69
|
+
return () => clearTimeout(e);
|
|
70
|
+
}, [u, t]);
|
|
71
|
+
let d = l.state.visible, f = a(d);
|
|
72
|
+
return r(() => {
|
|
73
|
+
f.current && !d && i?.(), f.current = d;
|
|
74
|
+
}, [d, i]), d;
|
|
75
|
+
}
|
|
76
|
+
function T({ ariaHidden: t, ariaLabel: n, ariaLabelledBy: r, component: a, decorative: s, delay: c, hideLabel: l, label: u, loading: d, locale: f, measure: p, minDuration: g, onWithdraw: _, shape: v, size: y, tone: b }) {
|
|
77
|
+
let x = S(), C = i(), T = u ?? x.label, E = w({
|
|
78
|
+
delay: c ?? x.delay ?? 0,
|
|
79
|
+
loading: d,
|
|
80
|
+
minDuration: g ?? x.minDuration ?? 0,
|
|
81
|
+
onWithdraw: _
|
|
82
|
+
}), [D, O] = o(0), [k, A] = o(E);
|
|
83
|
+
E !== k && (A(E), E && O(D + 1));
|
|
84
|
+
let j = m({
|
|
85
|
+
value: p?.value,
|
|
86
|
+
min: p?.min,
|
|
87
|
+
max: p?.max,
|
|
88
|
+
buffer: p?.buffer
|
|
89
|
+
}), M = p === void 0 ? void 0 : h({
|
|
90
|
+
geometry: j,
|
|
91
|
+
valueText: p.valueText,
|
|
92
|
+
format: p.format,
|
|
93
|
+
locale: f ?? x.locale
|
|
94
|
+
}), N = T !== void 0 && !s;
|
|
95
|
+
return {
|
|
96
|
+
geometry: j,
|
|
97
|
+
painted: E,
|
|
98
|
+
paint: D,
|
|
99
|
+
labelId: C,
|
|
100
|
+
labelText: T,
|
|
101
|
+
labelHidden: l === !0,
|
|
102
|
+
valueText: M,
|
|
103
|
+
showValue: p?.showValue === !0 && !j.indeterminate && M !== void 0,
|
|
104
|
+
size: y ?? x.size ?? "md",
|
|
105
|
+
tone: b ?? x.tone ?? "accent",
|
|
106
|
+
identity: {
|
|
107
|
+
"aria-hidden": s ? t ?? "true" : t,
|
|
108
|
+
"aria-labelledby": N ? r ?? C : r,
|
|
109
|
+
"aria-valuemax": s || p === void 0 ? void 0 : j.max,
|
|
110
|
+
"aria-valuemin": s || p === void 0 ? void 0 : j.min,
|
|
111
|
+
"aria-valuenow": s || j.indeterminate ? void 0 : j.valueNow ?? void 0,
|
|
112
|
+
"aria-valuetext": s ? void 0 : M,
|
|
113
|
+
"data-complete": j.complete ? "" : void 0,
|
|
114
|
+
"data-indeterminate": p === void 0 || j.indeterminate ? "" : void 0,
|
|
115
|
+
"data-part": "root",
|
|
116
|
+
...e("part", "root"),
|
|
117
|
+
"data-shape": v,
|
|
118
|
+
"data-size": y ?? x.size ?? "md",
|
|
119
|
+
"data-tone": b ?? x.tone ?? "accent",
|
|
120
|
+
"data-ui": "progress-indicator",
|
|
121
|
+
...e("ui", "progress-indicator"),
|
|
122
|
+
hidden: !E || void 0,
|
|
123
|
+
role: s ? void 0 : "progressbar"
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/progress-indicator/loader.tsx
|
|
129
|
+
function E({ "aria-hidden": e, "aria-label": t, "aria-labelledby": n, contained: r = !1, decorative: i = !1, delay: a, hideLabel: o, label: u, loading: d = !0, minDuration: f, onWithdraw: p, render: m, size: h, tone: g, ..._ }) {
|
|
130
|
+
let y = T({
|
|
131
|
+
ariaHidden: e,
|
|
132
|
+
ariaLabel: t,
|
|
133
|
+
ariaLabelledBy: n,
|
|
134
|
+
component: "Loader",
|
|
135
|
+
decorative: i,
|
|
136
|
+
delay: a,
|
|
137
|
+
hideLabel: o,
|
|
138
|
+
label: u,
|
|
139
|
+
loading: d,
|
|
140
|
+
locale: void 0,
|
|
141
|
+
measure: void 0,
|
|
142
|
+
minDuration: f,
|
|
143
|
+
onWithdraw: p,
|
|
144
|
+
shape: "morph",
|
|
145
|
+
size: h,
|
|
146
|
+
tone: g
|
|
147
|
+
}), b = {
|
|
148
|
+
..._,
|
|
149
|
+
...y.identity,
|
|
150
|
+
"aria-label": t,
|
|
151
|
+
children: /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", {
|
|
152
|
+
"data-part": "track",
|
|
153
|
+
"data-part-track": "",
|
|
154
|
+
children: /* @__PURE__ */ c("div", {
|
|
155
|
+
"data-part": "indicator",
|
|
156
|
+
"data-part-indicator": ""
|
|
157
|
+
})
|
|
158
|
+
}), v(y)] }),
|
|
159
|
+
...r ? { "data-contained": "" } : {}
|
|
160
|
+
};
|
|
161
|
+
return m === void 0 ? /* @__PURE__ */ c("div", { ...b }) : m(b);
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/progress-indicator/progress-bar.tsx
|
|
165
|
+
function D({ "aria-hidden": e, "aria-label": t, "aria-labelledby": n, buffer: r, decorative: i = !1, delay: a, format: o, hideLabel: p, label: m, loading: h = !0, locale: g, max: _, min: x, minDuration: S, onWithdraw: C, placement: w = "inline", render: E, showValue: D, size: O, style: k, tone: A, value: j, valueText: M, wave: N = !1, ...P }) {
|
|
166
|
+
let F = T({
|
|
167
|
+
ariaHidden: e,
|
|
168
|
+
ariaLabel: t,
|
|
169
|
+
ariaLabelledBy: n,
|
|
170
|
+
component: "ProgressBar",
|
|
171
|
+
decorative: i,
|
|
172
|
+
delay: a,
|
|
173
|
+
hideLabel: p ?? w !== "inline",
|
|
174
|
+
label: m,
|
|
175
|
+
loading: h,
|
|
176
|
+
locale: g,
|
|
177
|
+
measure: {
|
|
178
|
+
value: j,
|
|
179
|
+
min: x,
|
|
180
|
+
max: _,
|
|
181
|
+
buffer: r,
|
|
182
|
+
format: o,
|
|
183
|
+
showValue: D,
|
|
184
|
+
valueText: M
|
|
185
|
+
},
|
|
186
|
+
minDuration: S,
|
|
187
|
+
onWithdraw: C,
|
|
188
|
+
shape: "linear",
|
|
189
|
+
size: O,
|
|
190
|
+
tone: A
|
|
191
|
+
}), I = {
|
|
192
|
+
...P,
|
|
193
|
+
...F.identity,
|
|
194
|
+
"aria-label": t,
|
|
195
|
+
children: /* @__PURE__ */ l(s, { children: [
|
|
196
|
+
v(F),
|
|
197
|
+
y(F),
|
|
198
|
+
/* @__PURE__ */ c("div", {
|
|
199
|
+
"data-part": "track",
|
|
200
|
+
"data-part-track": "",
|
|
201
|
+
children: N ? /* @__PURE__ */ c("svg", {
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
"data-part": "indicator",
|
|
204
|
+
"data-part-indicator": "",
|
|
205
|
+
focusable: "false",
|
|
206
|
+
preserveAspectRatio: "xMinYMid meet",
|
|
207
|
+
viewBox: `0 -1.25 ${f} 2.5`,
|
|
208
|
+
children: /* @__PURE__ */ c("path", {
|
|
209
|
+
d: F.geometry.indeterminate ? u : d,
|
|
210
|
+
pathLength: f
|
|
211
|
+
})
|
|
212
|
+
}, F.paint) : /* @__PURE__ */ c("div", {
|
|
213
|
+
"data-part": "indicator",
|
|
214
|
+
"data-part-indicator": ""
|
|
215
|
+
}, F.paint)
|
|
216
|
+
})
|
|
217
|
+
] }),
|
|
218
|
+
...F.geometry.buffer === null ? {} : { "data-buffered": "" },
|
|
219
|
+
...w === "inline" ? {} : { "data-placement": w },
|
|
220
|
+
...N ? { "data-wave": "" } : {},
|
|
221
|
+
style: b(F, k)
|
|
222
|
+
};
|
|
223
|
+
return E === void 0 ? /* @__PURE__ */ c("div", { ...I }) : E(I);
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/progress-indicator/progress-circle.tsx
|
|
227
|
+
function O({ "aria-hidden": e, "aria-label": t, "aria-labelledby": n, decorative: r = !1, delay: i, format: a, hideLabel: o, label: u, loading: d = !0, locale: f, max: m, min: h, minDuration: g, onWithdraw: _, render: x, showValue: S, size: C, style: w, tone: E, value: D, valueText: O, wave: k = !1, ...A }) {
|
|
228
|
+
let j = T({
|
|
229
|
+
ariaHidden: e,
|
|
230
|
+
ariaLabel: t,
|
|
231
|
+
ariaLabelledBy: n,
|
|
232
|
+
component: "ProgressCircle",
|
|
233
|
+
decorative: r,
|
|
234
|
+
delay: i,
|
|
235
|
+
hideLabel: o,
|
|
236
|
+
label: u,
|
|
237
|
+
loading: d,
|
|
238
|
+
locale: f,
|
|
239
|
+
measure: {
|
|
240
|
+
value: D,
|
|
241
|
+
min: h,
|
|
242
|
+
max: m,
|
|
243
|
+
buffer: null,
|
|
244
|
+
format: a,
|
|
245
|
+
showValue: S,
|
|
246
|
+
valueText: O
|
|
247
|
+
},
|
|
248
|
+
minDuration: g,
|
|
249
|
+
onWithdraw: _,
|
|
250
|
+
shape: "circular",
|
|
251
|
+
size: C,
|
|
252
|
+
tone: E
|
|
253
|
+
}), M = {
|
|
254
|
+
...A,
|
|
255
|
+
...j.identity,
|
|
256
|
+
"aria-label": t,
|
|
257
|
+
children: /* @__PURE__ */ l(s, { children: [
|
|
258
|
+
/* @__PURE__ */ l("svg", {
|
|
259
|
+
"aria-hidden": "true",
|
|
260
|
+
focusable: "false",
|
|
261
|
+
viewBox: "0 0 48 48",
|
|
262
|
+
children: [/* @__PURE__ */ c("circle", {
|
|
263
|
+
cx: "24",
|
|
264
|
+
cy: "24",
|
|
265
|
+
"data-part": "track",
|
|
266
|
+
"data-part-track": "",
|
|
267
|
+
pathLength: "100",
|
|
268
|
+
r: "20"
|
|
269
|
+
}), k ? /* @__PURE__ */ c("path", {
|
|
270
|
+
d: p,
|
|
271
|
+
"data-part": "indicator",
|
|
272
|
+
"data-part-indicator": "",
|
|
273
|
+
pathLength: "100"
|
|
274
|
+
}, j.paint) : /* @__PURE__ */ c("circle", {
|
|
275
|
+
cx: "24",
|
|
276
|
+
cy: "24",
|
|
277
|
+
"data-part": "indicator",
|
|
278
|
+
"data-part-indicator": "",
|
|
279
|
+
pathLength: "100",
|
|
280
|
+
r: "20"
|
|
281
|
+
}, j.paint)]
|
|
282
|
+
}),
|
|
283
|
+
v(j),
|
|
284
|
+
y(j)
|
|
285
|
+
] }),
|
|
286
|
+
...k ? { "data-wave": "" } : {},
|
|
287
|
+
style: b(j, w)
|
|
288
|
+
};
|
|
289
|
+
return x === void 0 ? /* @__PURE__ */ c("div", { ...M }) : x(M);
|
|
290
|
+
}
|
|
291
|
+
//#endregion
|
|
292
|
+
export { C as a, w as i, D as n, S as o, E as r, O as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, n as t, o as n, r, t as i } from "./progress-indicator-D0acshNn.js";
|
|
2
|
+
export { r as Loader, t as ProgressBar, i as ProgressCircle, e as ProgressIndicatorDefaultsProvider, n as useProgressIndicatorDefaults };
|
|
@@ -35,38 +35,37 @@ function b() {
|
|
|
35
35
|
if (e === void 0) throw Error("Radio must be rendered inside a RadioGroup.");
|
|
36
36
|
return e;
|
|
37
37
|
}
|
|
38
|
-
function x({ "aria-describedby": e, "aria-invalid": t, "aria-label": o, "aria-labelledby": c, "aria-readonly": l, "aria-orientation": p, "aria-required": h, children: g, className: v, defaultValue: b, disabled: x, invalid: S, labelPlacement: C,
|
|
39
|
-
let L = n(), R = i(), z = r(), B = _(),
|
|
38
|
+
function x({ "aria-describedby": e, "aria-invalid": t, "aria-label": o, "aria-labelledby": c, "aria-readonly": l, "aria-orientation": p, "aria-required": h, children: g, className: v, defaultValue: b, disabled: x, invalid: S, labelPlacement: C, variant: w, name: T, onValueChange: E, orientation: D, readOnly: O, ref: k, render: A, required: j, role: M, size: N, style: P, value: F, ...I }) {
|
|
39
|
+
let L = n(), R = i(), z = r(), B = _(), V = d(), [ee, te] = f(b), H = F ?? ee, U = N ?? L?.size ?? R?.size ?? B.size, W = D ?? B.orientation, G = C ?? B.labelPlacement, K = w ?? B.variant, q = x ?? L?.disabled ?? z.disabled, J = O ?? L?.readOnly ?? z.readOnly, Y = S ?? L?.invalid ?? R?.invalid, X = j ?? L?.required ?? R?.required, Z = M ?? (R === void 0 ? "radiogroup" : void 0), Q = L?.registerControl;
|
|
40
40
|
u(() => Q?.(), [Q]);
|
|
41
|
-
let
|
|
41
|
+
let ne = {
|
|
42
42
|
disabled: q,
|
|
43
43
|
invalid: Y,
|
|
44
|
-
labelPlacement:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
name: E ?? `slotted-radio-group-${te}`,
|
|
44
|
+
labelPlacement: G,
|
|
45
|
+
variant: K,
|
|
46
|
+
name: T ?? `slotted-radio-group-${V}`,
|
|
48
47
|
readOnly: J,
|
|
49
48
|
required: X,
|
|
50
49
|
select: (e, t, n) => {
|
|
51
50
|
if (J === !0) return !1;
|
|
52
51
|
let r = !1, i = s({
|
|
53
|
-
controlled:
|
|
54
|
-
initial:
|
|
52
|
+
controlled: F,
|
|
53
|
+
initial: H,
|
|
55
54
|
onRequest: (e) => {
|
|
56
|
-
r = e.cancelled, e.value !== void 0 &&
|
|
55
|
+
r = e.cancelled, e.value !== void 0 && E?.(e.value, e);
|
|
57
56
|
}
|
|
58
57
|
}).request(e, t, n);
|
|
59
|
-
return !r && (i &&
|
|
58
|
+
return !r && (i && te(e), !0);
|
|
60
59
|
},
|
|
61
|
-
size:
|
|
62
|
-
value:
|
|
60
|
+
size: U,
|
|
61
|
+
value: H
|
|
63
62
|
}, $ = a({
|
|
64
|
-
...
|
|
63
|
+
...I,
|
|
65
64
|
"aria-label": o,
|
|
66
65
|
"aria-labelledby": c ?? (o === void 0 ? L?.ids.label : void 0),
|
|
67
66
|
"aria-describedby": [e, L?.describedBy].filter(Boolean).join(" ") || void 0,
|
|
68
67
|
"aria-invalid": t ?? (Y === !0 || void 0),
|
|
69
|
-
"aria-orientation": p ?? (Z === "radiogroup" &&
|
|
68
|
+
"aria-orientation": p ?? (Z === "radiogroup" && W === "horizontal" ? "horizontal" : void 0),
|
|
70
69
|
"aria-readonly": l ?? (J === !0 || void 0),
|
|
71
70
|
"aria-required": h ?? (X === !0 || void 0),
|
|
72
71
|
children: g,
|
|
@@ -74,22 +73,21 @@ function x({ "aria-describedby": e, "aria-invalid": t, "aria-label": o, "aria-la
|
|
|
74
73
|
...q === !0 ? { "data-disabled": "" } : {},
|
|
75
74
|
...Y === !0 ? { "data-invalid": "" } : {},
|
|
76
75
|
...J === !0 ? { "data-readonly": "" } : {},
|
|
77
|
-
"data-label-placement":
|
|
78
|
-
"data-
|
|
79
|
-
"data-orientation": U,
|
|
76
|
+
"data-label-placement": G,
|
|
77
|
+
"data-orientation": W,
|
|
80
78
|
"data-part": "root",
|
|
81
|
-
"data-size":
|
|
79
|
+
"data-size": U,
|
|
82
80
|
"data-ui": "radio-group",
|
|
83
|
-
"data-variant":
|
|
81
|
+
"data-variant": K,
|
|
84
82
|
role: Z,
|
|
85
|
-
style:
|
|
83
|
+
style: P
|
|
86
84
|
});
|
|
87
85
|
return /* @__PURE__ */ m(y.Provider, {
|
|
88
|
-
value:
|
|
89
|
-
children:
|
|
86
|
+
value: ne,
|
|
87
|
+
children: A === void 0 ? /* @__PURE__ */ m("div", {
|
|
90
88
|
...$,
|
|
91
|
-
ref:
|
|
92
|
-
}) :
|
|
89
|
+
ref: k
|
|
90
|
+
}) : A($)
|
|
93
91
|
});
|
|
94
92
|
}
|
|
95
93
|
//#endregion
|
|
@@ -97,54 +95,49 @@ function x({ "aria-describedby": e, "aria-invalid": t, "aria-label": o, "aria-la
|
|
|
97
95
|
function S(e) {
|
|
98
96
|
return e.detail === 0 ? "keyboard" : "pointer";
|
|
99
97
|
}
|
|
100
|
-
function C({ "aria-describedby": n, children: r, className: i, description: s, disabled: c, id: l,
|
|
101
|
-
let
|
|
98
|
+
function C({ "aria-describedby": n, children: r, className: i, description: s, disabled: c, id: l, onChange: u, onClick: f, ref: g, render: _, style: v, value: y, ...x }) {
|
|
99
|
+
let C = b(), w = d(), T = l ?? `slotted-radio-${w}`, E = `${T}-description`, D = C.value === y, O = c ?? C.disabled, k = a({
|
|
102
100
|
children: /* @__PURE__ */ h(p, { children: [
|
|
103
101
|
/* @__PURE__ */ m("input", {
|
|
104
|
-
...o(
|
|
105
|
-
"aria-describedby": [n, s === void 0 ? void 0 :
|
|
106
|
-
checked:
|
|
107
|
-
disabled:
|
|
108
|
-
id:
|
|
109
|
-
name:
|
|
110
|
-
onChange:
|
|
102
|
+
...o(x, "part", "control"),
|
|
103
|
+
"aria-describedby": [n, s === void 0 ? void 0 : E].filter(Boolean).join(" ") || void 0,
|
|
104
|
+
checked: D,
|
|
105
|
+
disabled: O,
|
|
106
|
+
id: T,
|
|
107
|
+
name: C.name,
|
|
108
|
+
onChange: u ?? (() => void 0),
|
|
111
109
|
onClick: (e) => {
|
|
112
|
-
|
|
110
|
+
f?.(e), !e.defaultPrevented && (C.select(y, S(e), e) || e.preventDefault());
|
|
113
111
|
},
|
|
114
|
-
ref:
|
|
112
|
+
ref: g,
|
|
115
113
|
type: "radio",
|
|
116
|
-
value:
|
|
114
|
+
value: y
|
|
117
115
|
}),
|
|
118
|
-
|
|
116
|
+
/* @__PURE__ */ m("span", {
|
|
119
117
|
"data-part": "indicator",
|
|
120
118
|
"data-part-indicator": "",
|
|
121
119
|
children: /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: "dot" }) })
|
|
122
120
|
}),
|
|
123
|
-
u !== void 0 && /* @__PURE__ */ m("span", {
|
|
124
|
-
"data-part": "media",
|
|
125
|
-
"data-part-media": "",
|
|
126
|
-
children: u
|
|
127
|
-
}),
|
|
128
121
|
r === void 0 ? null : /* @__PURE__ */ m("label", {
|
|
129
122
|
"data-part": "label",
|
|
130
123
|
"data-part-label": "",
|
|
131
|
-
htmlFor:
|
|
124
|
+
htmlFor: T,
|
|
132
125
|
children: r
|
|
133
126
|
}),
|
|
134
127
|
s === void 0 ? null : /* @__PURE__ */ m("p", {
|
|
135
128
|
"data-part": "description",
|
|
136
129
|
"data-part-description": "",
|
|
137
|
-
id:
|
|
130
|
+
id: E,
|
|
138
131
|
children: s
|
|
139
132
|
})
|
|
140
133
|
] }),
|
|
141
134
|
className: i,
|
|
142
|
-
...
|
|
143
|
-
...
|
|
135
|
+
...D ? { "data-checked": "" } : {},
|
|
136
|
+
...O === !0 ? { "data-disabled": "" } : {},
|
|
144
137
|
"data-part": "item",
|
|
145
|
-
style:
|
|
138
|
+
style: v
|
|
146
139
|
});
|
|
147
|
-
return
|
|
140
|
+
return _ === void 0 ? /* @__PURE__ */ m("div", { ...k }) : _(k);
|
|
148
141
|
}
|
|
149
142
|
//#endregion
|
|
150
143
|
export { _ as a, v as i, x as n, b as r, C as t };
|
package/dist/radio-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./radio-group-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./radio-group-doL7tde1.js";
|
|
2
2
|
export { i as Radio, n as RadioGroup, t as RadioGroupDefaultsProvider, r as useRadioGroup, e as useRadioGroupDefaults };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
3
|
import { _ as r, c as i, n as a, t as ee } from "./menu-parts-DgL617_H.js";
|
|
4
|
-
import { n as o } from "./icon-button-
|
|
4
|
+
import { n as o } from "./icon-button-N8Madx6i.js";
|
|
5
5
|
import { o as s, t as c, u as l } from "./field-BjF0c0U9.js";
|
|
6
6
|
import { t as u } from "./text-field-DEm3MEe2.js";
|
|
7
7
|
import { a as d, d as f, f as te, l as ne } from "./popover-BfEn2wdZ.js";
|
package/dist/saved-views.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./saved-views-
|
|
1
|
+
import { n as e, r as t, t as n } from "./saved-views-fg5PoMgv.js";
|
|
2
2
|
export { e as SavedViews, t as newSavedViewId, n as usePersistedSavedViews };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-D7xXDd8-.js";
|
|
2
2
|
import { n as t, t as n } from "./icon-D04-_QFA.js";
|
|
3
|
-
import { i as r } from "./app-shell-
|
|
3
|
+
import { i as r } from "./app-shell-ClwskWBN.js";
|
|
4
4
|
import { a as i, i as a, n as o, r as s } from "./tooltip-DrFiRlH8.js";
|
|
5
5
|
import { i as c } from "./skeleton-DeEOmm1y.js";
|
|
6
6
|
import { definedProps as l, keyedProps as u, withSelectorKey as d } from "@slotted/core/selector-key";
|
package/dist/side-navigation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./side-navigation-
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "./side-navigation-Cwi2FHOz.js";
|
|
2
2
|
export { r as SIDE_NAVIGATION_FALLBACK, t as SIDE_NAVIGATION_ROW_SELECTOR, y as SideNavigation, _ as SideNavigationActions, f as SideNavigationCount, b as SideNavigationDefaultsProvider, h as SideNavigationDescription, l as SideNavigationDivider, n as SideNavigationEnd, p as SideNavigationGroup, g as SideNavigationIcon, i as SideNavigationItem, u as SideNavigationLabel, v as SideNavigationLink, a as SideNavigationList, o as SideNavigationSection, m as SideNavigationSectionLabel, d as SideNavigationSkeleton, c as SideNavigationTrigger, x as useSideNavigation, e as useSideNavigationDefaults, s as useSideNavigationItem };
|
|
@@ -0,0 +1,152 @@
|
|
|
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, describeSparkline as m, layoutSparkline as h, observeSparklineBox as g, sparklineInset as _ } from "@slotted/core/sparkline";
|
|
7
|
+
//#region src/sparkline/sparkline-defaults.tsx
|
|
8
|
+
var v = r({});
|
|
9
|
+
function y() {
|
|
10
|
+
return i(v);
|
|
11
|
+
}
|
|
12
|
+
function b({ children: e, ...t }) {
|
|
13
|
+
let n = y();
|
|
14
|
+
return /* @__PURE__ */ u(v.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/sparkline.tsx
|
|
26
|
+
var x = 2, S = 2;
|
|
27
|
+
function C({ area: r, curve: i, data: v, description: b, formatOptions: C, label: ee, locale: w, marker: T, max: E, messages: D, min: O, ref: k, reference: A, render: j, series: M, size: N = "md", tone: P, type: F = "line", valueFormatter: I, ...L }) {
|
|
28
|
+
let R = y(), z = e(), B = t(f, D), V = {
|
|
29
|
+
area: r ?? R.area ?? !1,
|
|
30
|
+
curve: i ?? R.curve ?? "linear",
|
|
31
|
+
marker: T ?? R.marker ?? !0,
|
|
32
|
+
locale: w ?? z,
|
|
33
|
+
formatOptions: C ?? R.formatOptions
|
|
34
|
+
}, H = s(null), [U, W] = c(null);
|
|
35
|
+
a(() => {
|
|
36
|
+
let e = H.current;
|
|
37
|
+
if (e === null) return;
|
|
38
|
+
let t = g(e, W);
|
|
39
|
+
return () => t.destroy();
|
|
40
|
+
}, []);
|
|
41
|
+
let G = p[N], K = U?.width || G.width, q = U?.height || G.height, J = s({
|
|
42
|
+
data: v,
|
|
43
|
+
width: K,
|
|
44
|
+
height: q
|
|
45
|
+
}), Y = J.current.data !== v && J.current.width === K && J.current.height === q;
|
|
46
|
+
a(() => {
|
|
47
|
+
J.current = {
|
|
48
|
+
data: v,
|
|
49
|
+
width: K,
|
|
50
|
+
height: q
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
let X = o(() => h({
|
|
54
|
+
data: v,
|
|
55
|
+
width: K,
|
|
56
|
+
height: q,
|
|
57
|
+
inset: _(N, F, V.marker),
|
|
58
|
+
type: F,
|
|
59
|
+
curve: V.curve,
|
|
60
|
+
area: V.area,
|
|
61
|
+
min: O,
|
|
62
|
+
max: E,
|
|
63
|
+
reference: A,
|
|
64
|
+
gap: x,
|
|
65
|
+
radius: S
|
|
66
|
+
}), [
|
|
67
|
+
v,
|
|
68
|
+
K,
|
|
69
|
+
q,
|
|
70
|
+
N,
|
|
71
|
+
F,
|
|
72
|
+
V.marker,
|
|
73
|
+
V.curve,
|
|
74
|
+
V.area,
|
|
75
|
+
O,
|
|
76
|
+
E,
|
|
77
|
+
A
|
|
78
|
+
]), Z = o(() => {
|
|
79
|
+
if (I) return I;
|
|
80
|
+
let e = new Intl.NumberFormat(V.locale, V.formatOptions);
|
|
81
|
+
return (t) => e.format(t);
|
|
82
|
+
}, [
|
|
83
|
+
I,
|
|
84
|
+
V.locale,
|
|
85
|
+
V.formatOptions
|
|
86
|
+
]), Q = b ?? m(v, {
|
|
87
|
+
t: B,
|
|
88
|
+
format: Z,
|
|
89
|
+
label: ee
|
|
90
|
+
}), $ = n({
|
|
91
|
+
...L,
|
|
92
|
+
"aria-label": Q,
|
|
93
|
+
children: /* @__PURE__ */ d("svg", {
|
|
94
|
+
"aria-hidden": "true",
|
|
95
|
+
"data-part": "plot",
|
|
96
|
+
"data-part-plot": "",
|
|
97
|
+
focusable: "false",
|
|
98
|
+
preserveAspectRatio: "none",
|
|
99
|
+
viewBox: `0 0 ${K} ${q}`,
|
|
100
|
+
children: [
|
|
101
|
+
X.area ? /* @__PURE__ */ u("path", {
|
|
102
|
+
d: X.area,
|
|
103
|
+
"data-part": "area",
|
|
104
|
+
"data-part-area": ""
|
|
105
|
+
}) : null,
|
|
106
|
+
X.line ? /* @__PURE__ */ u("path", {
|
|
107
|
+
d: X.line,
|
|
108
|
+
"data-part": "line",
|
|
109
|
+
"data-part-line": ""
|
|
110
|
+
}) : null,
|
|
111
|
+
X.bars.map((e, t) => /* @__PURE__ */ u("path", {
|
|
112
|
+
d: e.path,
|
|
113
|
+
"data-current": t === X.bars.length - 1 ? "" : void 0,
|
|
114
|
+
"data-part": "bar",
|
|
115
|
+
"data-part-bar": ""
|
|
116
|
+
}, e.index)),
|
|
117
|
+
X.reference === null ? null : /* @__PURE__ */ u("line", {
|
|
118
|
+
"data-part": "reference",
|
|
119
|
+
"data-part-reference": "",
|
|
120
|
+
x1: 0,
|
|
121
|
+
x2: K,
|
|
122
|
+
y1: X.reference,
|
|
123
|
+
y2: X.reference
|
|
124
|
+
}),
|
|
125
|
+
V.marker && F === "line" && X.marker ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("path", {
|
|
126
|
+
d: `M${X.marker.x} ${X.marker.y}h0.001`,
|
|
127
|
+
"data-part": "ring",
|
|
128
|
+
"data-part-ring": ""
|
|
129
|
+
}), /* @__PURE__ */ u("path", {
|
|
130
|
+
d: `M${X.marker.x} ${X.marker.y}h0.001`,
|
|
131
|
+
"data-part": "marker",
|
|
132
|
+
"data-part-marker": ""
|
|
133
|
+
})] }) : null
|
|
134
|
+
]
|
|
135
|
+
}),
|
|
136
|
+
...Y ? { "data-animate": "" } : {},
|
|
137
|
+
"data-curve": V.curve,
|
|
138
|
+
"data-part": "root",
|
|
139
|
+
"data-series": M === void 0 ? void 0 : String(M),
|
|
140
|
+
"data-size": N,
|
|
141
|
+
"data-tone": P,
|
|
142
|
+
"data-type": F,
|
|
143
|
+
"data-ui": "sparkline",
|
|
144
|
+
ref: (e) => {
|
|
145
|
+
H.current = e, typeof k == "function" ? k(e) : k != null && (k.current = e);
|
|
146
|
+
},
|
|
147
|
+
role: "img"
|
|
148
|
+
});
|
|
149
|
+
return j === void 0 ? /* @__PURE__ */ u("span", { ...$ }) : j($);
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
export { b as n, y as r, C as t };
|
package/dist/sparkline.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { n as e, r as t, t as n } from "./sparkline-CYU4_lCD.js";
|
|
2
|
+
export { n as Sparkline, e as SparklineDefaultsProvider, t as useSparklineDefaults };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, t } from "./button-defaults-DNq_DDJh.js";
|
|
2
2
|
import { n, t as r } from "./icon-D04-_QFA.js";
|
|
3
3
|
import { _ as i, m as a, n as o } from "./menu-parts-DgL617_H.js";
|
|
4
|
-
import { n as s, t as c } from "./icon-button-
|
|
4
|
+
import { n as s, t as c } from "./icon-button-N8Madx6i.js";
|
|
5
5
|
import { keyedProps as l } from "@slotted/core/selector-key";
|
|
6
6
|
import { createControllable as u } from "@slotted/core/state";
|
|
7
7
|
import { createContext as d, useCallback as f, useContext as p, useRef as m, useState as h } from "react";
|
package/dist/split-button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./split-button-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./split-button-BYowsA6Q.js";
|
|
2
2
|
export { e as SplitButton, s as SplitButtonChoices, o as SplitButtonDefaultsProvider, r as SplitButtonMenu, a as SplitButtonMenuTrigger, n as SplitButtonPrimary, i as useSplitButton, t as useSplitButtonDefaults };
|