@slotted/react 0.1.0-beta.28 → 0.1.0-beta.29
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/attachment-AAjprQyU.js +292 -0
- package/dist/attachment-kinds-x-DEOvCy.js +17 -0
- package/dist/attachment.js +3 -2
- package/dist/{checkbox-group-DZZbowG-.js → checkbox-group-Ben6o9Ze.js} +1 -1
- package/dist/checkbox-group.js +1 -1
- package/dist/{checkbox-D67PWyL0.js → checkbox-ruvmi9cK.js} +2 -2
- package/dist/checkbox.js +1 -1
- package/dist/{column-manager-C3iL_I5T.js → column-manager-NN-ZCcy9.js} +1 -1
- package/dist/column-manager.js +1 -1
- package/dist/{data-grid-BKOFLdSD.js → data-grid-DSI_LFmJ.js} +8 -8
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-BDYbrO3V.js → data-list-fAeBMZZT.js} +1 -1
- package/dist/data-list.js +1 -1
- package/dist/{date-picker-DJMET62H.js → date-picker-CB3pyJob.js} +94 -73
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-Dyp5_teF.js +522 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/datetime-picker-D-fhwe8l.js +683 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/{datetime-range-picker-DTT_CvkE.js → datetime-range-picker-Bh3mAEsM.js} +380 -359
- package/dist/datetime-range-picker.js +1 -1
- package/dist/docs/command-palette.json +1 -0
- package/dist/docs/command-palette.md +1 -1
- package/dist/docs/date-picker.json +11 -0
- package/dist/docs/date-picker.md +2 -1
- package/dist/docs/date-range-picker.json +11 -0
- package/dist/docs/date-range-picker.md +2 -1
- package/dist/docs/datetime-picker.json +11 -0
- package/dist/docs/datetime-picker.md +2 -1
- package/dist/docs/datetime-range-picker.json +11 -0
- package/dist/docs/datetime-range-picker.md +2 -1
- package/dist/docs/description-list.json +2 -1
- package/dist/docs/description-list.md +2 -2
- package/dist/docs/drawer.json +2 -0
- package/dist/docs/drawer.md +1 -1
- package/dist/docs/entity-picker.json +1 -0
- package/dist/docs/entity-picker.md +1 -1
- package/dist/docs/field-group.json +8 -1
- package/dist/docs/field-group.md +3 -2
- package/dist/docs/guidelines/forms.md +14 -2
- package/dist/docs/guidelines/index.md +2 -1
- package/dist/docs/guidelines/overviews.md +6 -6
- package/dist/docs/index.md +1 -0
- package/dist/docs/media-viewer.json +575 -0
- package/dist/docs/media-viewer.md +235 -0
- package/dist/docs/skills/theme-app/SKILL.md +8 -2
- package/dist/docs/stat-card.json +16 -1
- package/dist/docs/stat-card.md +3 -1
- package/dist/docs/tag.json +1 -0
- package/dist/docs/tag.md +1 -1
- package/dist/docs/time-picker.json +11 -0
- package/dist/docs/time-picker.md +2 -1
- package/dist/docs/time-range-picker.json +11 -0
- package/dist/docs/time-range-picker.md +2 -1
- package/dist/{event-calendar-CFw9KKAm.js → event-calendar-BiGeWzAG.js} +1 -1
- package/dist/event-calendar.js +1 -1
- package/dist/{field-group-Ctwd3EUR.js → field-group-DQI8pfDT.js} +1 -0
- package/dist/field-group.js +1 -1
- package/dist/{filter-bar-BJGqeIKl.js → filter-bar-Bb_8T3nU.js} +4 -4
- package/dist/filter-bar.js +1 -1
- package/dist/{import-export-center-yxNcKfQX.js → import-export-center-Do0zrdSV.js} +1 -1
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +59 -57
- package/dist/{markdown-D2EB46zY.js → markdown-B_niyRIl.js} +1 -1
- package/dist/markdown.js +1 -1
- package/dist/media-viewer-zEXcwfEY.js +629 -0
- package/dist/media-viewer.js +2 -0
- package/dist/{radio-group-Dct1Kkuf.js → radio-group-doL7tde1.js} +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{segmented-control-BINpaKhI.js → segmented-control-Dl-nryCN.js} +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/{stat-card-BpKP2yxe.js → stat-card-BGtnZpnK.js} +43 -42
- package/dist/stat-card.js +1 -1
- package/dist/styles/action-sheet.css +1 -1
- package/dist/styles/attachment.css +1 -1
- package/dist/styles/cascader.css +1 -1
- package/dist/styles/checkbox-group.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/column-manager.css +2 -2
- package/dist/styles/command-palette.css +2 -2
- package/dist/styles/data-grid.css +8 -8
- package/dist/styles/data-list.css +1 -1
- package/dist/styles/date-picker.css +1 -1
- package/dist/styles/date-range-picker.css +1 -1
- package/dist/styles/datetime-picker.css +1 -1
- package/dist/styles/datetime-range-picker.css +1 -1
- package/dist/styles/description-list.css +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/entity-picker.css +2 -2
- package/dist/styles/event-calendar.css +2 -2
- package/dist/styles/field-group.css +1 -1
- package/dist/styles/filter-bar.css +6 -6
- package/dist/styles/import-export-center.css +8 -8
- package/dist/styles/index.css +19 -17
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/media-viewer.css +6 -0
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +1 -1
- package/dist/styles/multi-select.css +1 -1
- package/dist/styles/radio-group.css +1 -1
- package/dist/styles/segmented-control.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/stat-card.css +1 -1
- package/dist/styles/table.css +8 -8
- package/dist/styles/tag.css +1 -1
- package/dist/styles/tags-input.css +1 -1
- package/dist/styles/time-picker.css +1 -1
- package/dist/styles/time-range-picker.css +1 -1
- package/dist/styles/transfer.css +1 -1
- package/dist/styles/upload.css +1 -1
- package/dist/styles/wizard.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table-b7Wt5A88.js → table-Bm-PAtCn.js} +8 -8
- package/dist/table.js +1 -1
- package/dist/{time-picker-VJegeX4j.js → time-picker-Cw9NezUE.js} +157 -136
- package/dist/time-picker.js +1 -1
- package/dist/{time-range-picker-DFOxymH_.js → time-range-picker-DmmUqGjV.js} +302 -281
- package/dist/time-range-picker.js +1 -1
- package/dist/{transfer-BrYBBjaG.js → transfer-CmPxesyZ.js} +2 -2
- package/dist/transfer.js +1 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
- package/dist/types/field-group/field-group.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/media-viewer/index.d.ts +9 -0
- package/dist/types/media-viewer/index.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-anatomy.d.ts +3 -0
- package/dist/types/media-viewer/media-viewer-anatomy.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-bar.d.ts +16 -0
- package/dist/types/media-viewer/media-viewer-bar.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-context.d.ts +25 -0
- package/dist/types/media-viewer/media-viewer-context.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-controls.d.ts +14 -0
- package/dist/types/media-viewer/media-viewer-controls.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-defaults.d.ts +15 -0
- package/dist/types/media-viewer/media-viewer-defaults.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-fallback.d.ts +5 -0
- package/dist/types/media-viewer/media-viewer-fallback.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-media.d.ts +3 -0
- package/dist/types/media-viewer/media-viewer-media.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer-stage.d.ts +9 -0
- package/dist/types/media-viewer/media-viewer-stage.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer.d.ts +10 -0
- package/dist/types/media-viewer/media-viewer.d.ts.map +1 -0
- package/dist/types/media-viewer/media-viewer.types.d.ts +75 -0
- package/dist/types/media-viewer/media-viewer.types.d.ts.map +1 -0
- package/dist/types/media-viewer/use-media-viewer-state.d.ts +29 -0
- package/dist/types/media-viewer/use-media-viewer-state.d.ts.map +1 -0
- package/dist/types/stat-card/index.d.ts +1 -1
- package/dist/types/stat-card/index.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card.d.ts +1 -1
- package/dist/types/stat-card/stat-card.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card.types.d.ts +8 -0
- package/dist/types/stat-card/stat-card.types.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/package.json +10 -6
- package/dist/attachment-C1wBuup6.js +0 -307
- package/dist/date-range-picker-CinTpTme.js +0 -501
- package/dist/datetime-picker-COew4Y_B.js +0 -662
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
2
|
+
import { n, t as r } from "./icon-D04-_QFA.js";
|
|
3
|
+
import { n as i } from "./progress-indicator-D0acshNn.js";
|
|
4
|
+
import { n as a, r as o, t as s } from "./attachment-kinds-x-DEOvCy.js";
|
|
5
|
+
import { keyedProps as c } from "@slotted/core/selector-key";
|
|
6
|
+
import { createRemovalFocus as l } from "@slotted/core/focus";
|
|
7
|
+
import { createContext as u, useCallback as d, useContext as f, useEffect as p, useId as m, useMemo as h, useRef as g, useState as _ } from "react";
|
|
8
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
9
|
+
import { attachmentMessages as x } from "@slotted/core/i18n";
|
|
10
|
+
import { fileKind as S, formatBytes as C, splitName as w } from "@slotted/core/upload";
|
|
11
|
+
//#region src/attachment/attachment-defaults.tsx
|
|
12
|
+
var T = u({
|
|
13
|
+
layout: "list",
|
|
14
|
+
orientation: "horizontal",
|
|
15
|
+
size: "md"
|
|
16
|
+
});
|
|
17
|
+
function E() {
|
|
18
|
+
return f(T);
|
|
19
|
+
}
|
|
20
|
+
function D({ children: e, ...t }) {
|
|
21
|
+
let n = E();
|
|
22
|
+
return /* @__PURE__ */ y(T.Provider, {
|
|
23
|
+
value: {
|
|
24
|
+
layout: t.layout ?? n.layout,
|
|
25
|
+
orientation: t.orientation ?? n.orientation,
|
|
26
|
+
size: t.size ?? n.size
|
|
27
|
+
},
|
|
28
|
+
children: e
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/attachment/attachment.tsx
|
|
33
|
+
var O = u(null), k = u(null);
|
|
34
|
+
function A() {
|
|
35
|
+
let e = f(k);
|
|
36
|
+
if (e === null) throw Error("An Attachment part is rendered outside an Attachment.");
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
function j(e, t) {
|
|
40
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
41
|
+
}
|
|
42
|
+
function M({ layout: e, orientation: t, ref: n, render: r, size: i, ...a }) {
|
|
43
|
+
let o = E(), u = e ?? o.layout, f = t ?? o.orientation, p = i ?? o.size, m = g(null), _ = d((e) => {
|
|
44
|
+
if (m.current?.(), m.current = null, e !== null) {
|
|
45
|
+
let t = l(e, { itemSelector: s });
|
|
46
|
+
m.current = () => t.destroy();
|
|
47
|
+
}
|
|
48
|
+
j(n, e);
|
|
49
|
+
}, [n]), v = c({
|
|
50
|
+
tabIndex: -1,
|
|
51
|
+
...a,
|
|
52
|
+
"data-layout": u,
|
|
53
|
+
"data-orientation": f,
|
|
54
|
+
"data-part": "group",
|
|
55
|
+
"data-size": p,
|
|
56
|
+
"data-ui": "attachment",
|
|
57
|
+
ref: _
|
|
58
|
+
}), b = h(() => ({
|
|
59
|
+
layout: u,
|
|
60
|
+
orientation: t,
|
|
61
|
+
size: i
|
|
62
|
+
}), [
|
|
63
|
+
t,
|
|
64
|
+
u,
|
|
65
|
+
i
|
|
66
|
+
]);
|
|
67
|
+
return /* @__PURE__ */ y(O.Provider, {
|
|
68
|
+
value: b,
|
|
69
|
+
children: r === void 0 ? /* @__PURE__ */ y("ul", { ...v }) : r(v)
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function N({ disabled: n = !1, file: r, invalid: i = !1, loading: a = !1, messages: o, onKeyDown: s, onRemove: l, orientation: u, render: p, size: h, ...g }) {
|
|
73
|
+
let v = E(), b = f(O), C = m(), T = e(), D = t(x, o), A = h ?? b?.size ?? v.size, j = u ?? b?.orientation ?? v.orientation, M = S({
|
|
74
|
+
name: r.name,
|
|
75
|
+
type: r.type ?? ""
|
|
76
|
+
}), { stem: N, extension: P } = w(r.name), F = l !== void 0, [I, L] = _({
|
|
77
|
+
detail: null,
|
|
78
|
+
message: null
|
|
79
|
+
}), R = d((e, t) => {
|
|
80
|
+
L((n) => n[e] === t ? n : {
|
|
81
|
+
...n,
|
|
82
|
+
[e]: t
|
|
83
|
+
});
|
|
84
|
+
}, []), z = d((e, t) => {
|
|
85
|
+
n || l?.({
|
|
86
|
+
reason: e,
|
|
87
|
+
file: r,
|
|
88
|
+
source: t
|
|
89
|
+
});
|
|
90
|
+
}, [
|
|
91
|
+
n,
|
|
92
|
+
r,
|
|
93
|
+
l
|
|
94
|
+
]), B = {
|
|
95
|
+
describe: R,
|
|
96
|
+
described: I,
|
|
97
|
+
disabled: n,
|
|
98
|
+
extension: P,
|
|
99
|
+
file: r,
|
|
100
|
+
ids: {
|
|
101
|
+
detail: `${C}-detail`,
|
|
102
|
+
message: `${C}-message`
|
|
103
|
+
},
|
|
104
|
+
invalid: i,
|
|
105
|
+
kind: M,
|
|
106
|
+
loading: a,
|
|
107
|
+
locale: T,
|
|
108
|
+
orientation: j,
|
|
109
|
+
removable: F,
|
|
110
|
+
request: z,
|
|
111
|
+
stem: N,
|
|
112
|
+
t: D
|
|
113
|
+
}, V = c({
|
|
114
|
+
...g,
|
|
115
|
+
...a ? { "aria-busy": !0 } : {},
|
|
116
|
+
...n ? { "data-disabled": "" } : {},
|
|
117
|
+
...i ? { "data-invalid": "" } : {},
|
|
118
|
+
...a ? { "data-loading": "" } : {},
|
|
119
|
+
"data-kind": M,
|
|
120
|
+
"data-orientation": j,
|
|
121
|
+
"data-part": "root",
|
|
122
|
+
"data-size": A,
|
|
123
|
+
"data-ui": "attachment",
|
|
124
|
+
onKeyDown: (e) => {
|
|
125
|
+
if (s?.(e), !F || n || e.defaultPrevented || e.repeat || e.key !== "Backspace" && e.key !== "Delete") return;
|
|
126
|
+
let t = e.target;
|
|
127
|
+
t.isContentEditable || t.closest("input, textarea, select") !== null || (e.preventDefault(), z("keyboard", e));
|
|
128
|
+
}
|
|
129
|
+
}), H = p === void 0 ? y(b === null ? "div" : "li", { ...V }) : p(V);
|
|
130
|
+
return /* @__PURE__ */ y(k.Provider, {
|
|
131
|
+
value: B,
|
|
132
|
+
children: H
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
function P(e, t) {
|
|
136
|
+
let { describe: n, ids: r } = A(), i = t ?? r[e];
|
|
137
|
+
return p(() => (n(e, i), () => n(e, null)), [
|
|
138
|
+
n,
|
|
139
|
+
i,
|
|
140
|
+
e
|
|
141
|
+
]), i;
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/attachment/attachment-parts.tsx
|
|
145
|
+
function F({ children: e, render: t, src: i, ...s }) {
|
|
146
|
+
let l = A(), [u, d] = _(null), f = i !== void 0 && u !== i, p = c({
|
|
147
|
+
"aria-hidden": !0,
|
|
148
|
+
...s,
|
|
149
|
+
children: e ?? (f ? /* @__PURE__ */ y("img", {
|
|
150
|
+
alt: "",
|
|
151
|
+
decoding: "async",
|
|
152
|
+
loading: "lazy",
|
|
153
|
+
onError: () => d(i),
|
|
154
|
+
src: i
|
|
155
|
+
}) : /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y(n, { name: a[l.kind] }) })),
|
|
156
|
+
"data-extension": o(l.extension, l.t("noExtension")),
|
|
157
|
+
"data-kind": l.kind,
|
|
158
|
+
"data-part": "preview"
|
|
159
|
+
});
|
|
160
|
+
return t === void 0 ? /* @__PURE__ */ y("span", { ...p }) : t(p);
|
|
161
|
+
}
|
|
162
|
+
function I({ render: e, ...t }) {
|
|
163
|
+
let n = c({
|
|
164
|
+
...t,
|
|
165
|
+
"data-part": "body"
|
|
166
|
+
});
|
|
167
|
+
return e === void 0 ? /* @__PURE__ */ y("div", { ...n }) : e(n);
|
|
168
|
+
}
|
|
169
|
+
function L({ children: e, render: t, ...n }) {
|
|
170
|
+
let { extension: r, stem: i } = A(), a = c({
|
|
171
|
+
dir: "auto",
|
|
172
|
+
...n,
|
|
173
|
+
children: e ?? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("span", {
|
|
174
|
+
"data-part": "name",
|
|
175
|
+
"data-part-name": "",
|
|
176
|
+
children: i
|
|
177
|
+
}), r === "" ? null : /* @__PURE__ */ y("span", {
|
|
178
|
+
"data-part": "extension",
|
|
179
|
+
"data-part-extension": "",
|
|
180
|
+
children: r
|
|
181
|
+
})] }),
|
|
182
|
+
"data-part": "filename"
|
|
183
|
+
});
|
|
184
|
+
return t === void 0 ? /* @__PURE__ */ y("span", { ...a }) : t(a);
|
|
185
|
+
}
|
|
186
|
+
function R(e) {
|
|
187
|
+
let t = A(), n = [
|
|
188
|
+
...e === void 0 ? [] : [e],
|
|
189
|
+
...t.described.detail === null ? [] : [t.described.detail],
|
|
190
|
+
...t.described.message === null ? [] : [t.described.message]
|
|
191
|
+
];
|
|
192
|
+
return {
|
|
193
|
+
attachment: t,
|
|
194
|
+
blocked: t.disabled || t.loading,
|
|
195
|
+
describedBy: n.length === 0 ? void 0 : n.join(" ")
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function z({ "aria-describedby": e, children: t, render: n, type: r = "button", ...i }) {
|
|
199
|
+
let { attachment: a, blocked: o, describedBy: s } = R(e), l = c({
|
|
200
|
+
title: a.file.name,
|
|
201
|
+
...i,
|
|
202
|
+
...s === void 0 ? {} : { "aria-describedby": s },
|
|
203
|
+
children: t ?? /* @__PURE__ */ y(L, {}),
|
|
204
|
+
"data-part": "trigger",
|
|
205
|
+
disabled: o || i.disabled === !0,
|
|
206
|
+
type: r
|
|
207
|
+
});
|
|
208
|
+
return n === void 0 ? /* @__PURE__ */ y("button", { ...l }) : n(l);
|
|
209
|
+
}
|
|
210
|
+
function B({ "aria-describedby": e, children: t, onClick: n, render: r, ...i }) {
|
|
211
|
+
let { attachment: a, blocked: o, describedBy: s } = R(e), l = c({
|
|
212
|
+
title: a.file.name,
|
|
213
|
+
...i,
|
|
214
|
+
...s === void 0 ? {} : { "aria-describedby": s },
|
|
215
|
+
...o ? { "aria-disabled": !0 } : {},
|
|
216
|
+
children: t ?? /* @__PURE__ */ y(L, {}),
|
|
217
|
+
"data-part": "trigger",
|
|
218
|
+
onClick: (e) => {
|
|
219
|
+
if (o) {
|
|
220
|
+
e.preventDefault();
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
n?.(e);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
return r === void 0 ? /* @__PURE__ */ y("a", { ...l }) : r(l);
|
|
227
|
+
}
|
|
228
|
+
function V({ children: e, id: t, render: n, ...r }) {
|
|
229
|
+
let i = A(), a = P("detail", t), o = i.file.size, s = c({
|
|
230
|
+
...r,
|
|
231
|
+
id: a,
|
|
232
|
+
children: e ?? (o === void 0 ? null : C(o, i.locale)),
|
|
233
|
+
"data-part": "detail"
|
|
234
|
+
});
|
|
235
|
+
return n === void 0 ? /* @__PURE__ */ y("p", { ...s }) : n(s);
|
|
236
|
+
}
|
|
237
|
+
function H({ id: e, render: t, ...n }) {
|
|
238
|
+
let r = P("message", e), i = c({
|
|
239
|
+
...n,
|
|
240
|
+
id: r,
|
|
241
|
+
"data-part": "message"
|
|
242
|
+
});
|
|
243
|
+
return t === void 0 ? /* @__PURE__ */ y("p", { ...i }) : t(i);
|
|
244
|
+
}
|
|
245
|
+
function U({ render: e, value: t, ...n }) {
|
|
246
|
+
let r = A(), a = c({
|
|
247
|
+
...n,
|
|
248
|
+
children: /* @__PURE__ */ y(i, {
|
|
249
|
+
hideLabel: !0,
|
|
250
|
+
label: r.file.name,
|
|
251
|
+
size: "sm",
|
|
252
|
+
tone: r.invalid ? "danger" : "accent",
|
|
253
|
+
value: t ?? null
|
|
254
|
+
}),
|
|
255
|
+
"data-part": "progress"
|
|
256
|
+
});
|
|
257
|
+
return e === void 0 ? /* @__PURE__ */ y("div", { ...a }) : e(a);
|
|
258
|
+
}
|
|
259
|
+
function W({ render: e, ...t }) {
|
|
260
|
+
let n = c({
|
|
261
|
+
...t,
|
|
262
|
+
"data-part": "actions"
|
|
263
|
+
});
|
|
264
|
+
return e === void 0 ? /* @__PURE__ */ y("div", { ...n }) : e(n);
|
|
265
|
+
}
|
|
266
|
+
function G({ render: e, type: t = "button", ...n }) {
|
|
267
|
+
let r = A(), i = c({
|
|
268
|
+
...n,
|
|
269
|
+
"data-part": "action",
|
|
270
|
+
disabled: r.disabled || n.disabled === !0,
|
|
271
|
+
type: t
|
|
272
|
+
});
|
|
273
|
+
return e === void 0 ? /* @__PURE__ */ y("button", { ...i }) : e(i);
|
|
274
|
+
}
|
|
275
|
+
function K({ "aria-label": e, children: t, onClick: i, render: a, type: o = "button", ...s }) {
|
|
276
|
+
let l = A();
|
|
277
|
+
if (!l.removable) return null;
|
|
278
|
+
let u = c({
|
|
279
|
+
...s,
|
|
280
|
+
"aria-label": e ?? l.t("remove", { name: l.file.name }),
|
|
281
|
+
children: t ?? /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y(n, { name: "x" }) }),
|
|
282
|
+
"data-part": "remove",
|
|
283
|
+
disabled: l.disabled || s.disabled === !0,
|
|
284
|
+
onClick: (e) => {
|
|
285
|
+
i?.(e), !e.defaultPrevented && l.request("remove", e);
|
|
286
|
+
},
|
|
287
|
+
type: o
|
|
288
|
+
});
|
|
289
|
+
return a === void 0 ? /* @__PURE__ */ y("button", { ...u }) : a(u);
|
|
290
|
+
}
|
|
291
|
+
//#endregion
|
|
292
|
+
export { L as a, F as c, z as d, N as f, E as g, D as h, V as i, U as l, A as m, W as n, B as o, M as p, I as r, H as s, G as t, K as u };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/attachment/attachment-kinds.ts
|
|
2
|
+
var e = {
|
|
3
|
+
archive: "file-archive",
|
|
4
|
+
audio: "file-audio",
|
|
5
|
+
document: "file-type",
|
|
6
|
+
image: "file-image",
|
|
7
|
+
other: "file",
|
|
8
|
+
pdf: "file-text",
|
|
9
|
+
presentation: "presentation",
|
|
10
|
+
spreadsheet: "file-spreadsheet",
|
|
11
|
+
video: "file-video"
|
|
12
|
+
}, t = "[data-part=\"trigger\"], [data-part=\"action\"], [data-part=\"remove\"]";
|
|
13
|
+
function n(e, t) {
|
|
14
|
+
return e === "" ? t : e.slice(1).toUpperCase();
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as n, n as r, t };
|
package/dist/attachment.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
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 "./attachment-AAjprQyU.js";
|
|
2
|
+
import { n as g } from "./attachment-kinds-x-DEOvCy.js";
|
|
3
|
+
export { g as ATTACHMENT_KIND_GLYPH, r as Attachment, m as AttachmentAction, l as AttachmentActions, f as AttachmentBody, a as AttachmentDefaultsProvider, o as AttachmentDetail, e as AttachmentFilename, d as AttachmentGroup, u as AttachmentLink, p as AttachmentMessage, t as AttachmentPreview, s as AttachmentProgress, h as AttachmentRemove, n as AttachmentTrigger, c as useAttachment, i as useAttachmentDefaults };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as e, f as t, h as n } from "./field-BjF0c0U9.js";
|
|
2
|
-
import { r } from "./field-group-
|
|
2
|
+
import { r } from "./field-group-DQI8pfDT.js";
|
|
3
3
|
import { keyedProps as i } from "@slotted/core/selector-key";
|
|
4
4
|
import { createControllable as a } from "@slotted/core/state";
|
|
5
5
|
import { createContext as o, useContext as s, useEffect as c, useState as l } from "react";
|
package/dist/checkbox-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./checkbox-group-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./checkbox-group-Ben6o9Ze.js";
|
|
2
2
|
export { r as CheckboxGroup, n as CheckboxGroupDefaultsProvider, t as useCheckboxGroup, e as useCheckboxGroupDefaults };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, t } from "./icon-D04-_QFA.js";
|
|
2
2
|
import { b as n, f as r } from "./field-BjF0c0U9.js";
|
|
3
|
-
import { n as i } from "./checkbox-group-
|
|
4
|
-
import { r as ee } from "./field-group-
|
|
3
|
+
import { n as i } from "./checkbox-group-Ben6o9Ze.js";
|
|
4
|
+
import { r as ee } from "./field-group-DQI8pfDT.js";
|
|
5
5
|
import { keyedProps as a } from "@slotted/core/selector-key";
|
|
6
6
|
import { createControllable as o } from "@slotted/core/state";
|
|
7
7
|
import { createContext as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as te, useRef as d, useState as f } from "react";
|
package/dist/checkbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./checkbox-
|
|
1
|
+
import { n as e, r as t, t as n } from "./checkbox-ruvmi9cK.js";
|
|
2
2
|
export { n as Checkbox, e as CheckboxDefaultsProvider, t as useCheckboxDefaults };
|
|
@@ -3,7 +3,7 @@ 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 o } from "./menu-parts-DNQDoJnd.js";
|
|
4
4
|
import { d as s, f as c, s as l } from "./drawer-Du1aC1px.js";
|
|
5
5
|
import { n as u } from "./icon-button-DERKFHX1.js";
|
|
6
|
-
import { t as d } from "./checkbox-
|
|
6
|
+
import { t as d } from "./checkbox-ruvmi9cK.js";
|
|
7
7
|
import { t as f } from "./text-field-DEm3MEe2.js";
|
|
8
8
|
import { a as p, f as m, l as h, p as g } from "./popover-BfEn2wdZ.js";
|
|
9
9
|
import { t as _ } from "./visually-hidden-BUSrFZ1_.js";
|
package/dist/column-manager.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./column-manager-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./column-manager-NN-ZCcy9.js";
|
|
2
2
|
export { i as ColumnManager, t as ColumnManagerProvider, n as ColumnManagerRoot, r as ColumnManagerTrigger, e as useColumnManagerDefaults };
|
|
@@ -3,25 +3,25 @@ import { n, t as r } from "./icon-D04-_QFA.js";
|
|
|
3
3
|
import { _ as i, c as a, g as o, n as s, t as c } from "./menu-parts-DNQDoJnd.js";
|
|
4
4
|
import { n as l } from "./icon-button-DERKFHX1.js";
|
|
5
5
|
import { a as u, i as d, n as f, r as p } from "./tooltip-DrFiRlH8.js";
|
|
6
|
-
import { t as m } from "./checkbox-
|
|
6
|
+
import { t as m } from "./checkbox-ruvmi9cK.js";
|
|
7
7
|
import { i as h } from "./skeleton-DeEOmm1y.js";
|
|
8
8
|
import { t as g } from "./text-field-DEm3MEe2.js";
|
|
9
9
|
import { a as _, d as ee, f as te, l as ne, r as re, t as ie } from "./popover-BfEn2wdZ.js";
|
|
10
10
|
import { t as v } from "./visually-hidden-BUSrFZ1_.js";
|
|
11
11
|
import { i as ae, n as oe, o as se, r as ce, t as le } from "./result-state-BMYhelu1.js";
|
|
12
|
-
import { t as ue } from "./date-picker-
|
|
12
|
+
import { t as ue } from "./date-picker-CB3pyJob.js";
|
|
13
13
|
import { t as de } from "./date-field-BEdt1xDF.js";
|
|
14
|
-
import { t as fe } from "./date-range-picker-
|
|
15
|
-
import { t as pe } from "./datetime-picker-
|
|
14
|
+
import { t as fe } from "./date-range-picker-Dyp5_teF.js";
|
|
15
|
+
import { t as pe } from "./datetime-picker-D-fhwe8l.js";
|
|
16
16
|
import { t as me } from "./datetime-field-2tsqzWVH.js";
|
|
17
|
-
import { t as he } from "./datetime-range-picker-
|
|
17
|
+
import { t as he } from "./datetime-range-picker-Bh3mAEsM.js";
|
|
18
18
|
import { a as ge, i as _e, n as ve, s as ye } from "./multi-select-DSSDlWVZ.js";
|
|
19
19
|
import { t as be } from "./number-field-DzOcs9uG.js";
|
|
20
|
-
import { a as xe, t as Se } from "./segmented-control-
|
|
20
|
+
import { a as xe, t as Se } from "./segmented-control-Dl-nryCN.js";
|
|
21
21
|
import { c as Ce, i as we, n as Te, o as Ee, s as De } from "./select-jdqT8lFi.js";
|
|
22
|
-
import { t as Oe } from "./time-picker-
|
|
22
|
+
import { t as Oe } from "./time-picker-Cw9NezUE.js";
|
|
23
23
|
import { t as ke } from "./time-field-C9dFaZOx.js";
|
|
24
|
-
import { t as Ae } from "./time-range-picker-
|
|
24
|
+
import { t as Ae } from "./time-range-picker-DmmUqGjV.js";
|
|
25
25
|
import { selectorKeyProps as je, withSelectorKey as Me } from "@slotted/core/selector-key";
|
|
26
26
|
import { createControllable as Ne } from "@slotted/core/state";
|
|
27
27
|
import { createContext as Pe, createElement as Fe, memo as Ie, useCallback as y, useContext as Le, useEffect as b, useId as Re, useImperativeHandle as ze, useLayoutEffect as Be, useMemo as x, useRef as S, useState as C, useSyncExternalStore as Ve } from "react";
|
package/dist/data-grid.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./data-grid-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./data-grid-DSI_LFmJ.js";
|
|
2
2
|
export { e as DRAG_COLUMN, n as DataGrid, i as DataGridDefaultsProvider, r as EXPANDER_COLUMN, a as SELECTION_COLUMN, t as useDataGridDefaults, o as usePersistedGridView };
|
|
@@ -2,7 +2,7 @@ import { n as e, r as t } from "./i18n-D7xXDd8-.js";
|
|
|
2
2
|
import { n, t as r } from "./icon-D04-_QFA.js";
|
|
3
3
|
import { _ as i, g as a, h as o, m as s, n as c, o as l, t as ee } from "./menu-parts-DNQDoJnd.js";
|
|
4
4
|
import { n as u } from "./icon-button-DERKFHX1.js";
|
|
5
|
-
import { t as te } from "./checkbox-
|
|
5
|
+
import { t as te } from "./checkbox-ruvmi9cK.js";
|
|
6
6
|
import { i as d, n as f } from "./skeleton-DeEOmm1y.js";
|
|
7
7
|
import { t as p } from "./visually-hidden-BUSrFZ1_.js";
|
|
8
8
|
import { n as m, o as ne, r as h, t as re } from "./result-state-BMYhelu1.js";
|
package/dist/data-list.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./data-list-
|
|
1
|
+
import { n as e, r as t, t as n } from "./data-list-fAeBMZZT.js";
|
|
2
2
|
export { n as DataList, e as DataListDefaultsProvider, t as useDataListDefaults };
|