@mt-gloss/ui 0.0.14 → 0.0.16
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/BaseAsyncButton-nFOdhiBv.js +179 -0
- package/{Expandable-aJSmv_1C.js → Expandable-Bvd-OyRQ.js} +2933 -2827
- package/{UIContext-Cx54OlNB.js → UIContext-C3E-k7HI.js} +185 -141
- package/catalog.js +356 -412
- package/index.js +770 -727
- package/internals.js +26 -26
- package/lib/composites/overlay/MergePrompt/MergePrompt.d.ts +12 -0
- package/lib/primitives/dashboard/MetricCard/CardShell.d.ts +1 -1
- package/lib/primitives/dashboard/MetricCard/types.d.ts +11 -0
- package/lib/wrappers/SortableZones/SortableZones.d.ts +5 -3
- package/package.json +1 -1
- package/ui.css +1 -1
- package/BaseAsyncButton-x5Us8SVv.js +0 -223
package/catalog.js
CHANGED
|
@@ -1,350 +1,294 @@
|
|
|
1
|
-
import { y as
|
|
2
|
-
import { b2 as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { C as a,
|
|
5
|
-
import {
|
|
6
|
-
import { formatDateRange as
|
|
7
|
-
const
|
|
8
|
-
body: {
|
|
9
|
-
fontFamily: e.FontBody,
|
|
10
|
-
fontSize: e.TextBase,
|
|
11
|
-
fontWeight: e.WeightNormal,
|
|
12
|
-
lineHeight: e.LeadingNormal,
|
|
13
|
-
color: a.TextPrimary
|
|
14
|
-
},
|
|
15
|
-
caption: {
|
|
16
|
-
fontFamily: e.FontBody,
|
|
17
|
-
fontSize: e.TextSm,
|
|
18
|
-
fontWeight: e.WeightNormal,
|
|
19
|
-
lineHeight: e.LeadingNormal,
|
|
20
|
-
color: a.TextSecondary
|
|
21
|
-
},
|
|
22
|
-
overline: {
|
|
23
|
-
fontFamily: e.FontBody,
|
|
24
|
-
fontSize: e.TextXs,
|
|
25
|
-
fontWeight: e.WeightSemibold,
|
|
26
|
-
lineHeight: e.LeadingTight,
|
|
27
|
-
letterSpacing: "0.08em",
|
|
28
|
-
color: a.TextSecondary
|
|
29
|
-
}
|
|
30
|
-
}, ee = {
|
|
31
|
-
xs: { fontSize: e.TextXs },
|
|
32
|
-
sm: { fontSize: e.TextSm },
|
|
33
|
-
md: { fontSize: e.TextBase },
|
|
34
|
-
lg: { fontSize: e.TextLg },
|
|
35
|
-
xl: { fontSize: e.TextXl }
|
|
36
|
-
}, ae = function(i) {
|
|
37
|
-
const {
|
|
38
|
-
variant: o = "body",
|
|
39
|
-
size: n = "md",
|
|
40
|
-
children: l,
|
|
41
|
-
...r
|
|
42
|
-
} = i, t = { ...r };
|
|
43
|
-
delete t.className, delete t.style, delete t.definition;
|
|
44
|
-
const c = {
|
|
45
|
-
...Q[o],
|
|
46
|
-
...ee[n]
|
|
47
|
-
}, m = [
|
|
48
|
-
"gloss-preset-text",
|
|
49
|
-
`gloss-preset-text--${o}`
|
|
50
|
-
].join(" ");
|
|
51
|
-
return /* @__PURE__ */ g(
|
|
52
|
-
X,
|
|
53
|
-
{
|
|
54
|
-
as: t.as,
|
|
55
|
-
definition: c,
|
|
56
|
-
className: m,
|
|
57
|
-
...t,
|
|
58
|
-
children: l
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
ae.displayName = "PresetText";
|
|
63
|
-
const te = {
|
|
1
|
+
import { y as I, N, A as B, F as x, J as F, z as D, D as A, E as M, H as v, O as R, Q as _, T as W, aX as k, U as H, aY as z, aZ as L, a_ as E, V as G, W as $, X as O } from "./Expandable-Bvd-OyRQ.js";
|
|
2
|
+
import { b2 as Ne, av as Be, ad as xe, Z as Fe, aj as De, bO as Ae, K as Me, a4 as ve, bl as Re, P as _e, B as We, be as ke, bd as He, bt as ze, b as Le, C as Ee, L as Ge, o as $e, a9 as Oe, aJ as Ve, ay as Xe, am as je, k as we, m as Ze, aB as Ue, a7 as qe, b4 as Je, a5 as Qe, bm as Ye, Y as Ke, al as ea, aM as aa, b6 as sa, n as ta, ai as ra, a0 as oa, an as ia, a2 as na, bg as la, a6 as da, bF as ca, aP as ga, r as ma, I as pa, g as ua, as as ba, M as fa, w as ha, ao as ya, bc as Ta, bL as Sa, ak as Pa, t as Ca, bn as Ia, aO as Na, a$ as Ba, af as xa, aG as Fa, ac as Da, ah as Aa, aq as Ma, bQ as va, aN as Ra, bP as _a, a8 as Wa, c as ka, R as Ha, j as za, p as La, aD as Ea, ae as Ga, aa as $a, h as Oa, x as Va, b3 as Xa, ab as ja, b8 as wa, bb as Za, b9 as Ua, ba as qa, i as Ja, b5 as Qa, bk as Ya, S as Ka, bh as es, ar as as, b7 as ss, bM as ts, ag as rs, bN as os, s as is, bG as ns, l as ls, f as ds, q as cs, _ as gs, a3 as ms, bf as ps, bs as us, bz as bs, ax as fs, aL as hs, aA as ys, au as Ts, aI as Ss, aF as Ps, a1 as Cs, bj as Is } from "./Expandable-Bvd-OyRQ.js";
|
|
3
|
+
import { jsx as c, jsxs as S } from "react/jsx-runtime";
|
|
4
|
+
import { C as e, T as a, ae as V, S as s, E as u, R as m, e as X, Z as j } from "./UIContext-C3E-k7HI.js";
|
|
5
|
+
import { B as w, a as Z, e as U, c as q, d as J, b as Q } from "./BaseAsyncButton-nFOdhiBv.js";
|
|
6
|
+
import { formatDateRange as Bs, resolveEvent as xs, resolvePreset as Fs, smartDateFormat as Ds } from "@mt-gloss/utils/dateInterpretation";
|
|
7
|
+
const Y = {
|
|
64
8
|
page: {
|
|
65
|
-
fontFamily:
|
|
66
|
-
fontSize:
|
|
67
|
-
fontWeight:
|
|
68
|
-
lineHeight:
|
|
69
|
-
color:
|
|
9
|
+
fontFamily: a.FontDisplay,
|
|
10
|
+
fontSize: a.Text3xl,
|
|
11
|
+
fontWeight: a.WeightBold,
|
|
12
|
+
lineHeight: a.LeadingTight,
|
|
13
|
+
color: e.TextPrimary
|
|
70
14
|
},
|
|
71
15
|
section: {
|
|
72
|
-
fontFamily:
|
|
73
|
-
fontSize:
|
|
74
|
-
fontWeight:
|
|
75
|
-
lineHeight:
|
|
76
|
-
color:
|
|
16
|
+
fontFamily: a.FontDisplay,
|
|
17
|
+
fontSize: a.Text2xl,
|
|
18
|
+
fontWeight: a.WeightSemibold,
|
|
19
|
+
lineHeight: a.LeadingTight,
|
|
20
|
+
color: e.TextPrimary
|
|
77
21
|
},
|
|
78
22
|
subsection: {
|
|
79
|
-
fontFamily:
|
|
80
|
-
fontSize:
|
|
81
|
-
fontWeight:
|
|
82
|
-
lineHeight:
|
|
83
|
-
color:
|
|
23
|
+
fontFamily: a.FontDisplay,
|
|
24
|
+
fontSize: a.TextXl,
|
|
25
|
+
fontWeight: a.WeightSemibold,
|
|
26
|
+
lineHeight: a.LeadingTight,
|
|
27
|
+
color: e.TextPrimary
|
|
84
28
|
},
|
|
85
29
|
card: {
|
|
86
|
-
fontFamily:
|
|
87
|
-
fontSize:
|
|
88
|
-
fontWeight:
|
|
89
|
-
lineHeight:
|
|
90
|
-
color:
|
|
30
|
+
fontFamily: a.FontDisplay,
|
|
31
|
+
fontSize: a.TextLg,
|
|
32
|
+
fontWeight: a.WeightSemibold,
|
|
33
|
+
lineHeight: a.LeadingTight,
|
|
34
|
+
color: e.TextPrimary
|
|
91
35
|
}
|
|
92
|
-
},
|
|
36
|
+
}, K = function(i) {
|
|
93
37
|
const {
|
|
94
|
-
variant:
|
|
38
|
+
variant: r = "section",
|
|
95
39
|
level: n = 2,
|
|
96
|
-
children:
|
|
97
|
-
...
|
|
98
|
-
} = i, t = { ...
|
|
40
|
+
children: d,
|
|
41
|
+
...o
|
|
42
|
+
} = i, t = { ...o };
|
|
99
43
|
delete t.className, delete t.style, delete t.definition;
|
|
100
|
-
const
|
|
101
|
-
...
|
|
102
|
-
},
|
|
44
|
+
const g = {
|
|
45
|
+
...Y[r]
|
|
46
|
+
}, p = [
|
|
103
47
|
"gloss-preset-title",
|
|
104
|
-
`gloss-preset-title--${
|
|
48
|
+
`gloss-preset-title--${r}`
|
|
105
49
|
].join(" ");
|
|
106
|
-
return /* @__PURE__ */
|
|
107
|
-
|
|
50
|
+
return /* @__PURE__ */ c(
|
|
51
|
+
V,
|
|
108
52
|
{
|
|
109
53
|
as: t.as,
|
|
110
54
|
level: n,
|
|
111
|
-
definition:
|
|
112
|
-
className:
|
|
55
|
+
definition: g,
|
|
56
|
+
className: p,
|
|
113
57
|
...t,
|
|
114
|
-
children:
|
|
58
|
+
children: d
|
|
115
59
|
}
|
|
116
60
|
);
|
|
117
61
|
};
|
|
118
|
-
|
|
119
|
-
const
|
|
62
|
+
K.displayName = "PresetTitle";
|
|
63
|
+
const ee = {
|
|
120
64
|
default: {
|
|
121
|
-
fontFamily:
|
|
122
|
-
fontSize:
|
|
123
|
-
fontWeight:
|
|
124
|
-
lineHeight:
|
|
125
|
-
color:
|
|
65
|
+
fontFamily: a.FontBody,
|
|
66
|
+
fontSize: a.TextSm,
|
|
67
|
+
fontWeight: a.WeightMedium,
|
|
68
|
+
lineHeight: a.LeadingNormal,
|
|
69
|
+
color: e.TextPrimary
|
|
126
70
|
},
|
|
127
71
|
required: {
|
|
128
|
-
fontFamily:
|
|
129
|
-
fontSize:
|
|
130
|
-
fontWeight:
|
|
131
|
-
lineHeight:
|
|
132
|
-
color:
|
|
72
|
+
fontFamily: a.FontBody,
|
|
73
|
+
fontSize: a.TextSm,
|
|
74
|
+
fontWeight: a.WeightMedium,
|
|
75
|
+
lineHeight: a.LeadingNormal,
|
|
76
|
+
color: e.TextPrimary
|
|
133
77
|
},
|
|
134
78
|
optional: {
|
|
135
|
-
fontFamily:
|
|
136
|
-
fontSize:
|
|
137
|
-
fontWeight:
|
|
138
|
-
lineHeight:
|
|
139
|
-
color:
|
|
79
|
+
fontFamily: a.FontBody,
|
|
80
|
+
fontSize: a.TextSm,
|
|
81
|
+
fontWeight: a.WeightMedium,
|
|
82
|
+
lineHeight: a.LeadingNormal,
|
|
83
|
+
color: e.TextPrimary
|
|
140
84
|
}
|
|
141
|
-
},
|
|
85
|
+
}, ae = function(i) {
|
|
142
86
|
const {
|
|
143
|
-
variant:
|
|
87
|
+
variant: r = "default",
|
|
144
88
|
htmlFor: n,
|
|
145
|
-
children:
|
|
146
|
-
...
|
|
147
|
-
} = i, t = { ...
|
|
89
|
+
children: d,
|
|
90
|
+
...o
|
|
91
|
+
} = i, t = { ...o };
|
|
148
92
|
delete t.className, delete t.style, delete t.definition;
|
|
149
|
-
const
|
|
150
|
-
...
|
|
151
|
-
},
|
|
93
|
+
const g = {
|
|
94
|
+
...ee[r]
|
|
95
|
+
}, p = [
|
|
152
96
|
"gloss-preset-label",
|
|
153
|
-
`gloss-preset-label--${
|
|
97
|
+
`gloss-preset-label--${r}`
|
|
154
98
|
].join(" ");
|
|
155
|
-
return /* @__PURE__ */
|
|
156
|
-
|
|
99
|
+
return /* @__PURE__ */ c(
|
|
100
|
+
w,
|
|
157
101
|
{
|
|
158
102
|
as: t.as,
|
|
159
103
|
htmlFor: n,
|
|
160
|
-
definition:
|
|
161
|
-
className:
|
|
104
|
+
definition: g,
|
|
105
|
+
className: p,
|
|
162
106
|
...t,
|
|
163
|
-
children:
|
|
107
|
+
children: d
|
|
164
108
|
}
|
|
165
109
|
);
|
|
166
110
|
};
|
|
167
|
-
|
|
168
|
-
const
|
|
111
|
+
ae.displayName = "PresetLabel";
|
|
112
|
+
const se = {
|
|
169
113
|
default: {
|
|
170
|
-
fontFamily:
|
|
171
|
-
fontSize:
|
|
172
|
-
fontWeight:
|
|
173
|
-
lineHeight:
|
|
174
|
-
color:
|
|
114
|
+
fontFamily: a.FontBody,
|
|
115
|
+
fontSize: a.TextBase,
|
|
116
|
+
fontWeight: a.WeightMedium,
|
|
117
|
+
lineHeight: a.LeadingNormal,
|
|
118
|
+
color: e.TextPrimary
|
|
175
119
|
},
|
|
176
120
|
highlight: {
|
|
177
|
-
fontFamily:
|
|
178
|
-
fontSize:
|
|
179
|
-
fontWeight:
|
|
180
|
-
lineHeight:
|
|
181
|
-
color:
|
|
121
|
+
fontFamily: a.FontBody,
|
|
122
|
+
fontSize: a.TextBase,
|
|
123
|
+
fontWeight: a.WeightBold,
|
|
124
|
+
lineHeight: a.LeadingNormal,
|
|
125
|
+
color: e.BrandPrimary
|
|
182
126
|
},
|
|
183
127
|
muted: {
|
|
184
|
-
fontFamily:
|
|
185
|
-
fontSize:
|
|
186
|
-
fontWeight:
|
|
187
|
-
lineHeight:
|
|
188
|
-
color:
|
|
128
|
+
fontFamily: a.FontBody,
|
|
129
|
+
fontSize: a.TextBase,
|
|
130
|
+
fontWeight: a.WeightMedium,
|
|
131
|
+
lineHeight: a.LeadingNormal,
|
|
132
|
+
color: e.TextTertiary
|
|
189
133
|
}
|
|
190
|
-
},
|
|
134
|
+
}, te = function(i) {
|
|
191
135
|
const {
|
|
192
|
-
variant:
|
|
136
|
+
variant: r = "default",
|
|
193
137
|
children: n,
|
|
194
|
-
...
|
|
195
|
-
} = i,
|
|
196
|
-
delete
|
|
138
|
+
...d
|
|
139
|
+
} = i, o = { ...d };
|
|
140
|
+
delete o.className, delete o.style, delete o.definition;
|
|
197
141
|
const t = {
|
|
198
|
-
...
|
|
199
|
-
},
|
|
142
|
+
...se[r]
|
|
143
|
+
}, g = [
|
|
200
144
|
"gloss-preset-value",
|
|
201
|
-
`gloss-preset-value--${
|
|
145
|
+
`gloss-preset-value--${r}`
|
|
202
146
|
].join(" ");
|
|
203
|
-
return /* @__PURE__ */
|
|
204
|
-
|
|
147
|
+
return /* @__PURE__ */ c(
|
|
148
|
+
Z,
|
|
205
149
|
{
|
|
206
|
-
as:
|
|
150
|
+
as: o.as,
|
|
207
151
|
definition: t,
|
|
208
|
-
className:
|
|
209
|
-
...
|
|
152
|
+
className: g,
|
|
153
|
+
...o,
|
|
210
154
|
children: n
|
|
211
155
|
}
|
|
212
156
|
);
|
|
213
157
|
};
|
|
214
|
-
|
|
215
|
-
const
|
|
158
|
+
te.displayName = "PresetValue";
|
|
159
|
+
const re = {
|
|
216
160
|
primary: {
|
|
217
|
-
bg:
|
|
218
|
-
color:
|
|
161
|
+
bg: e.BrandPrimary,
|
|
162
|
+
color: e.TextInverse,
|
|
219
163
|
borderColor: "transparent",
|
|
220
164
|
elevation: u.ButtonDefault
|
|
221
165
|
},
|
|
222
166
|
secondary: {
|
|
223
|
-
bg:
|
|
224
|
-
color:
|
|
225
|
-
borderColor:
|
|
167
|
+
bg: e.BgSurface,
|
|
168
|
+
color: e.TextPrimary,
|
|
169
|
+
borderColor: e.BorderDefault,
|
|
226
170
|
elevation: u.ButtonDefault
|
|
227
171
|
},
|
|
228
172
|
ghost: {
|
|
229
173
|
bg: "transparent",
|
|
230
|
-
color:
|
|
174
|
+
color: e.TextPrimary,
|
|
231
175
|
borderColor: "transparent"
|
|
232
176
|
},
|
|
233
177
|
outline: {
|
|
234
178
|
bg: "transparent",
|
|
235
|
-
color:
|
|
236
|
-
borderColor:
|
|
179
|
+
color: e.BrandPrimary,
|
|
180
|
+
borderColor: e.BrandPrimary
|
|
237
181
|
},
|
|
238
182
|
destructive: {
|
|
239
|
-
bg:
|
|
240
|
-
color:
|
|
183
|
+
bg: e.Red600,
|
|
184
|
+
color: e.TextInverse,
|
|
241
185
|
borderColor: "transparent",
|
|
242
186
|
elevation: u.ButtonDefault
|
|
243
187
|
}
|
|
244
|
-
},
|
|
188
|
+
}, oe = {
|
|
245
189
|
xs: { padding: s.Xs, paddingX: s.Sm, fontSize: "0.75rem", fontWeight: "500", minHeight: "24px", gap: s.Xs },
|
|
246
190
|
sm: { padding: s.Xs, paddingX: s.Sm, fontSize: "0.8125rem", fontWeight: "500", minHeight: "30px", gap: s.Xs },
|
|
247
191
|
md: { padding: s.Sm, paddingX: s.Md, fontSize: "0.875rem", fontWeight: "500", minHeight: "36px", gap: s.Sm },
|
|
248
192
|
lg: { padding: s.Sm, paddingX: s.Lg, fontSize: "0.9375rem", fontWeight: "500", minHeight: "42px", gap: s.Sm },
|
|
249
193
|
xl: { padding: s.Md, paddingX: s.Xl, fontSize: "1rem", fontWeight: "500", minHeight: "48px", gap: s.Md }
|
|
250
|
-
},
|
|
251
|
-
radius:
|
|
194
|
+
}, ie = {
|
|
195
|
+
radius: m.Md
|
|
252
196
|
};
|
|
253
|
-
function
|
|
197
|
+
function ne(l) {
|
|
254
198
|
const {
|
|
255
199
|
variant: i = "primary",
|
|
256
|
-
size:
|
|
200
|
+
size: r = "md",
|
|
257
201
|
isLoading: n = !1,
|
|
258
|
-
disabled:
|
|
259
|
-
leftIcon:
|
|
202
|
+
disabled: d = !1,
|
|
203
|
+
leftIcon: o,
|
|
260
204
|
rightIcon: t,
|
|
261
|
-
children:
|
|
262
|
-
...
|
|
263
|
-
} =
|
|
205
|
+
children: g,
|
|
206
|
+
...p
|
|
207
|
+
} = l, f = { ...p };
|
|
264
208
|
delete f.className, delete f.style, delete f.definition;
|
|
265
209
|
const P = {
|
|
266
|
-
...
|
|
267
|
-
...
|
|
268
|
-
...
|
|
269
|
-
},
|
|
210
|
+
...ie,
|
|
211
|
+
...re[i],
|
|
212
|
+
...oe[r]
|
|
213
|
+
}, C = [
|
|
270
214
|
"gloss-preset-async-button",
|
|
271
215
|
`gloss-preset-async-button--${i}`,
|
|
272
|
-
`gloss-preset-async-button--${
|
|
216
|
+
`gloss-preset-async-button--${r}`
|
|
273
217
|
].join(" ");
|
|
274
|
-
return /* @__PURE__ */
|
|
275
|
-
|
|
218
|
+
return /* @__PURE__ */ S(
|
|
219
|
+
U,
|
|
276
220
|
{
|
|
277
221
|
as: f.as,
|
|
278
222
|
definition: P,
|
|
279
223
|
loading: n,
|
|
280
|
-
disabled:
|
|
281
|
-
className:
|
|
224
|
+
disabled: d,
|
|
225
|
+
className: C,
|
|
282
226
|
...f,
|
|
283
227
|
children: [
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
t && /* @__PURE__ */
|
|
228
|
+
o && /* @__PURE__ */ c("span", { className: "gloss-preset-async-button__icon gloss-preset-async-button__icon--left", children: o }),
|
|
229
|
+
g && /* @__PURE__ */ c("span", { className: "gloss-preset-async-button__label", children: g }),
|
|
230
|
+
t && /* @__PURE__ */ c("span", { className: "gloss-preset-async-button__icon gloss-preset-async-button__icon--right", children: t })
|
|
287
231
|
]
|
|
288
232
|
}
|
|
289
233
|
);
|
|
290
234
|
}
|
|
291
|
-
|
|
292
|
-
const
|
|
235
|
+
ne.displayName = "PresetAsyncButton";
|
|
236
|
+
const le = {
|
|
293
237
|
info: {
|
|
294
|
-
bg:
|
|
295
|
-
borderColor:
|
|
296
|
-
color:
|
|
297
|
-
iconColor:
|
|
238
|
+
bg: e.Blue50,
|
|
239
|
+
borderColor: e.Blue600,
|
|
240
|
+
color: e.TextPrimary,
|
|
241
|
+
iconColor: e.Blue600,
|
|
298
242
|
padding: s.Md,
|
|
299
|
-
radius:
|
|
243
|
+
radius: m.Md
|
|
300
244
|
},
|
|
301
245
|
success: {
|
|
302
|
-
bg:
|
|
303
|
-
borderColor:
|
|
304
|
-
color:
|
|
305
|
-
iconColor:
|
|
246
|
+
bg: e.Green50,
|
|
247
|
+
borderColor: e.Green600,
|
|
248
|
+
color: e.TextPrimary,
|
|
249
|
+
iconColor: e.Green600,
|
|
306
250
|
padding: s.Md,
|
|
307
|
-
radius:
|
|
251
|
+
radius: m.Md
|
|
308
252
|
},
|
|
309
253
|
warning: {
|
|
310
|
-
bg:
|
|
311
|
-
borderColor:
|
|
312
|
-
color:
|
|
313
|
-
iconColor:
|
|
254
|
+
bg: e.Amber100,
|
|
255
|
+
borderColor: e.Amber600,
|
|
256
|
+
color: e.TextPrimary,
|
|
257
|
+
iconColor: e.Amber600,
|
|
314
258
|
padding: s.Md,
|
|
315
|
-
radius:
|
|
259
|
+
radius: m.Md
|
|
316
260
|
},
|
|
317
261
|
error: {
|
|
318
|
-
bg:
|
|
319
|
-
borderColor:
|
|
320
|
-
color:
|
|
321
|
-
iconColor:
|
|
262
|
+
bg: e.Red50,
|
|
263
|
+
borderColor: e.Red600,
|
|
264
|
+
color: e.TextPrimary,
|
|
265
|
+
iconColor: e.Red600,
|
|
322
266
|
padding: s.Md,
|
|
323
|
-
radius:
|
|
267
|
+
radius: m.Md
|
|
324
268
|
}
|
|
325
269
|
};
|
|
326
|
-
function
|
|
270
|
+
function de(l) {
|
|
327
271
|
const {
|
|
328
272
|
variant: i = "info",
|
|
329
|
-
dismissible:
|
|
273
|
+
dismissible: r = !1,
|
|
330
274
|
onDismiss: n,
|
|
331
|
-
children:
|
|
332
|
-
...
|
|
333
|
-
} =
|
|
275
|
+
children: d,
|
|
276
|
+
...o
|
|
277
|
+
} = l, t = { ...o };
|
|
334
278
|
delete t.className, delete t.style, delete t.definition;
|
|
335
|
-
const
|
|
279
|
+
const g = le[i], p = [
|
|
336
280
|
"gloss-preset-alert",
|
|
337
281
|
`gloss-preset-alert--${i}`
|
|
338
282
|
].join(" ");
|
|
339
|
-
return /* @__PURE__ */
|
|
340
|
-
|
|
283
|
+
return /* @__PURE__ */ S(
|
|
284
|
+
q,
|
|
341
285
|
{
|
|
342
|
-
definition:
|
|
343
|
-
className:
|
|
286
|
+
definition: g,
|
|
287
|
+
className: p,
|
|
344
288
|
...t,
|
|
345
289
|
children: [
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
|
|
290
|
+
/* @__PURE__ */ c("div", { className: "gloss-preset-alert__content", children: d }),
|
|
291
|
+
r && /* @__PURE__ */ c(
|
|
348
292
|
"button",
|
|
349
293
|
{
|
|
350
294
|
type: "button",
|
|
@@ -358,257 +302,257 @@ function pe(d) {
|
|
|
358
302
|
}
|
|
359
303
|
);
|
|
360
304
|
}
|
|
361
|
-
|
|
362
|
-
const
|
|
363
|
-
default: { color:
|
|
364
|
-
subtle: { color:
|
|
365
|
-
strong: { color:
|
|
366
|
-
},
|
|
305
|
+
de.displayName = "PresetAlert";
|
|
306
|
+
const ce = {
|
|
307
|
+
default: { color: e.BorderDefault, thickness: "1px" },
|
|
308
|
+
subtle: { color: e.Gray200, thickness: "1px" },
|
|
309
|
+
strong: { color: e.Gray400, thickness: "2px" }
|
|
310
|
+
}, ge = {
|
|
367
311
|
none: "0",
|
|
368
312
|
sm: s.Sm,
|
|
369
313
|
md: s.Md,
|
|
370
314
|
lg: s.Lg
|
|
371
315
|
};
|
|
372
|
-
function
|
|
373
|
-
variant:
|
|
316
|
+
function me({
|
|
317
|
+
variant: l = "default",
|
|
374
318
|
orientation: i = "horizontal",
|
|
375
|
-
spacing:
|
|
319
|
+
spacing: r = "md"
|
|
376
320
|
}) {
|
|
377
321
|
const n = {
|
|
378
|
-
...
|
|
322
|
+
...ce[l],
|
|
379
323
|
orientation: i,
|
|
380
|
-
spacing:
|
|
324
|
+
spacing: ge[r]
|
|
381
325
|
};
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
|
|
326
|
+
return /* @__PURE__ */ c(
|
|
327
|
+
X,
|
|
384
328
|
{
|
|
385
329
|
definition: n,
|
|
386
|
-
className: `gloss-preset-divider gloss-preset-divider--${
|
|
330
|
+
className: `gloss-preset-divider gloss-preset-divider--${l}`
|
|
387
331
|
}
|
|
388
332
|
);
|
|
389
333
|
}
|
|
390
|
-
|
|
391
|
-
const
|
|
334
|
+
me.displayName = "PresetDivider";
|
|
335
|
+
const pe = {
|
|
392
336
|
sm: { fontSize: "0.75rem", gap: s.Xs },
|
|
393
337
|
md: { fontSize: "0.875rem", gap: s.Sm },
|
|
394
338
|
lg: { fontSize: "1rem", gap: s.Sm }
|
|
395
|
-
},
|
|
396
|
-
color:
|
|
339
|
+
}, ue = {
|
|
340
|
+
color: e.TextSecondary
|
|
397
341
|
};
|
|
398
|
-
function
|
|
399
|
-
const { separator: i = "/", size:
|
|
400
|
-
...
|
|
401
|
-
...
|
|
402
|
-
},
|
|
342
|
+
function be(l) {
|
|
343
|
+
const { separator: i = "/", size: r = "md", children: n } = l, d = {
|
|
344
|
+
...ue,
|
|
345
|
+
...pe[r]
|
|
346
|
+
}, o = [
|
|
403
347
|
"gloss-preset-breadcrumbs",
|
|
404
|
-
`gloss-preset-breadcrumbs--${
|
|
348
|
+
`gloss-preset-breadcrumbs--${r}`
|
|
405
349
|
].join(" ");
|
|
406
|
-
return /* @__PURE__ */
|
|
407
|
-
|
|
350
|
+
return /* @__PURE__ */ c(
|
|
351
|
+
J,
|
|
408
352
|
{
|
|
409
|
-
definition:
|
|
353
|
+
definition: d,
|
|
410
354
|
separator: i,
|
|
411
|
-
className:
|
|
355
|
+
className: o,
|
|
412
356
|
children: n
|
|
413
357
|
}
|
|
414
358
|
);
|
|
415
359
|
}
|
|
416
|
-
|
|
417
|
-
const b =
|
|
360
|
+
be.displayName = "PresetBreadcrumbs";
|
|
361
|
+
const b = I;
|
|
418
362
|
b.Header = B;
|
|
419
|
-
b.Body =
|
|
363
|
+
b.Body = x;
|
|
420
364
|
b.Footer = F;
|
|
421
365
|
b.Media = D;
|
|
422
366
|
b.Title = A;
|
|
423
367
|
b.Subtitle = M;
|
|
424
368
|
b.Actions = v;
|
|
425
|
-
const h =
|
|
426
|
-
h.Item =
|
|
427
|
-
h.Trigger =
|
|
428
|
-
h.Content =
|
|
429
|
-
const
|
|
369
|
+
const h = N;
|
|
370
|
+
h.Item = R;
|
|
371
|
+
h.Trigger = _;
|
|
372
|
+
h.Content = W;
|
|
373
|
+
const fe = {
|
|
430
374
|
info: {
|
|
431
|
-
bg:
|
|
375
|
+
bg: e.Blue50,
|
|
432
376
|
shadow: u.Hover,
|
|
433
|
-
radius:
|
|
377
|
+
radius: m.Md,
|
|
434
378
|
padding: s.Md
|
|
435
379
|
},
|
|
436
380
|
success: {
|
|
437
|
-
bg:
|
|
381
|
+
bg: e.Green50,
|
|
438
382
|
shadow: u.Hover,
|
|
439
|
-
radius:
|
|
383
|
+
radius: m.Md,
|
|
440
384
|
padding: s.Md
|
|
441
385
|
},
|
|
442
386
|
warning: {
|
|
443
|
-
bg:
|
|
387
|
+
bg: e.Amber100,
|
|
444
388
|
shadow: u.Hover,
|
|
445
|
-
radius:
|
|
389
|
+
radius: m.Md,
|
|
446
390
|
padding: s.Md
|
|
447
391
|
},
|
|
448
392
|
error: {
|
|
449
|
-
bg:
|
|
393
|
+
bg: e.Red50,
|
|
450
394
|
shadow: u.Hover,
|
|
451
|
-
radius:
|
|
395
|
+
radius: m.Md,
|
|
452
396
|
padding: s.Md
|
|
453
397
|
}
|
|
454
398
|
};
|
|
455
|
-
function
|
|
456
|
-
open:
|
|
399
|
+
function he({
|
|
400
|
+
open: l,
|
|
457
401
|
onDismiss: i,
|
|
458
|
-
variant:
|
|
402
|
+
variant: r = "info",
|
|
459
403
|
position: n = "top-right",
|
|
460
|
-
duration:
|
|
461
|
-
children:
|
|
404
|
+
duration: d = 5e3,
|
|
405
|
+
children: o
|
|
462
406
|
}) {
|
|
463
407
|
const t = {
|
|
464
|
-
...
|
|
408
|
+
...fe[r],
|
|
465
409
|
zIndex: j.Toast,
|
|
466
410
|
position: n,
|
|
467
|
-
duration:
|
|
411
|
+
duration: d
|
|
468
412
|
};
|
|
469
|
-
return /* @__PURE__ */
|
|
470
|
-
|
|
413
|
+
return /* @__PURE__ */ c(
|
|
414
|
+
Q,
|
|
471
415
|
{
|
|
472
416
|
definition: t,
|
|
473
|
-
open:
|
|
417
|
+
open: l,
|
|
474
418
|
onDismiss: i,
|
|
475
|
-
className: `gloss-preset-toast gloss-preset-toast--${
|
|
476
|
-
children:
|
|
419
|
+
className: `gloss-preset-toast gloss-preset-toast--${r}`,
|
|
420
|
+
children: o
|
|
477
421
|
}
|
|
478
422
|
);
|
|
479
423
|
}
|
|
480
|
-
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
const
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
424
|
+
he.displayName = "PresetToast";
|
|
425
|
+
const y = k;
|
|
426
|
+
y.Header = z;
|
|
427
|
+
y.Body = L;
|
|
428
|
+
y.Actions = E;
|
|
429
|
+
const T = H;
|
|
430
|
+
T.Group = G;
|
|
431
|
+
T.Item = $;
|
|
432
|
+
T.Divider = O;
|
|
489
433
|
export {
|
|
490
434
|
h as Accordion,
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
435
|
+
Ne as Actionable,
|
|
436
|
+
Be as AddressGroup,
|
|
437
|
+
xe as AddressSelect,
|
|
438
|
+
de as Alert,
|
|
439
|
+
ne as AsyncButton,
|
|
440
|
+
Fe as AsyncLoader,
|
|
441
|
+
De as Autocomplete,
|
|
442
|
+
Ae as Avatar,
|
|
443
|
+
Me as Badge,
|
|
444
|
+
ve as BarChartCard,
|
|
445
|
+
Re as BarsBg,
|
|
446
|
+
be as Breadcrumbs,
|
|
447
|
+
_e as Button,
|
|
448
|
+
We as ButtonGroup,
|
|
505
449
|
b as Card,
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
450
|
+
ke as CardBack,
|
|
451
|
+
He as CardShell,
|
|
452
|
+
ze as ChartControlBar,
|
|
453
|
+
Le as Checkbox,
|
|
454
|
+
Ee as CheckboxGroup,
|
|
455
|
+
Ge as Chip,
|
|
456
|
+
$e as ColorPicker,
|
|
457
|
+
Oe as ComparisonCard,
|
|
458
|
+
Ve as ContactForm,
|
|
459
|
+
Xe as CreditCardForm,
|
|
460
|
+
je as DataTable,
|
|
461
|
+
we as DatePicker,
|
|
462
|
+
Ze as DateRangePicker,
|
|
463
|
+
Ue as DestructiveModal,
|
|
464
|
+
y as Dialog,
|
|
465
|
+
qe as DirectionCard,
|
|
466
|
+
Je as Dismissible,
|
|
467
|
+
Qe as DistributionCard,
|
|
468
|
+
me as Divider,
|
|
469
|
+
Ye as DonutChart,
|
|
470
|
+
Ke as Dropdown,
|
|
471
|
+
ea as EntityPicker,
|
|
472
|
+
aa as EntitySearchPanel,
|
|
473
|
+
sa as Expandable,
|
|
474
|
+
ta as FileUpload,
|
|
475
|
+
ra as FilterChip,
|
|
476
|
+
oa as Form,
|
|
477
|
+
ia as FormDialog,
|
|
478
|
+
na as FormField,
|
|
479
|
+
la as GutterActions,
|
|
480
|
+
da as HighlightCard,
|
|
481
|
+
ca as HybridDatePicker,
|
|
482
|
+
ga as ImportWizard,
|
|
483
|
+
ma as Input,
|
|
484
|
+
pa as InputGroup,
|
|
485
|
+
ae as Label,
|
|
486
|
+
ua as Link,
|
|
487
|
+
ba as LoginForm,
|
|
488
|
+
fa as MaskPresets,
|
|
489
|
+
ha as MaskedInput,
|
|
490
|
+
T as Menu,
|
|
491
|
+
ya as MergePrompt,
|
|
492
|
+
Ta as MetricCard,
|
|
493
|
+
Sa as MetricCardGrid,
|
|
494
|
+
Pa as MultiSelect,
|
|
551
495
|
Ca as NumberInput,
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
496
|
+
Ia as ObjectArrow,
|
|
497
|
+
Na as OrderFilterBar,
|
|
498
|
+
Ba as Panel,
|
|
499
|
+
xa as PasswordInput,
|
|
500
|
+
Fa as PaymentForm,
|
|
501
|
+
Da as PaymentMethodSelect,
|
|
502
|
+
Aa as PhoneInput,
|
|
503
|
+
Ma as PinToMetric,
|
|
504
|
+
va as Popover,
|
|
505
|
+
Ra as ProfileCard,
|
|
506
|
+
_a as ProgressBar,
|
|
507
|
+
Wa as ProgressCard,
|
|
508
|
+
ka as Radio,
|
|
509
|
+
Ha as RadioGroup,
|
|
510
|
+
za as RangeSlider,
|
|
511
|
+
La as Rating,
|
|
512
|
+
Ea as RegistrationForm,
|
|
513
|
+
Ga as SearchInput,
|
|
514
|
+
$a as SegmentCard,
|
|
515
|
+
Oa as SegmentedControl,
|
|
516
|
+
Va as Select,
|
|
517
|
+
Xa as Selectable,
|
|
518
|
+
ja as SimpleMetricCard,
|
|
519
|
+
wa as Skeleton,
|
|
520
|
+
Za as SkeletonCard,
|
|
521
|
+
Ua as SkeletonChart,
|
|
522
|
+
qa as SkeletonTable,
|
|
523
|
+
Ja as Slider,
|
|
524
|
+
Qa as Sortable,
|
|
525
|
+
Ya as SparklineBg,
|
|
526
|
+
Ka as SplitButton,
|
|
527
|
+
es as StackedGroupCard,
|
|
528
|
+
as as Stepper,
|
|
529
|
+
ss as TabGroup,
|
|
530
|
+
ts as TabbedDataView,
|
|
531
|
+
rs as TagInput,
|
|
532
|
+
os as Text,
|
|
533
|
+
is as Textarea,
|
|
534
|
+
ns as TimeFrame,
|
|
535
|
+
ls as TimePicker,
|
|
536
|
+
K as Title,
|
|
537
|
+
he as Toast,
|
|
538
|
+
ds as Toggle,
|
|
539
|
+
cs as Tooltip,
|
|
540
|
+
gs as Transition,
|
|
541
|
+
ms as TrendCard,
|
|
542
|
+
ps as TrendIndicator,
|
|
543
|
+
us as UnifiedBreakdownTable,
|
|
544
|
+
bs as UnifiedContextMenu,
|
|
545
|
+
te as Value,
|
|
546
|
+
fs as addressSchema,
|
|
547
|
+
hs as contactSchema,
|
|
548
|
+
ys as creditCardSchema,
|
|
549
|
+
Bs as formatDateRangeInterpretation,
|
|
550
|
+
Ts as loginSchema,
|
|
551
|
+
Ss as paymentSchema,
|
|
552
|
+
Ps as registrationSchema,
|
|
553
|
+
xs as resolveEvent,
|
|
554
|
+
Fs as resolvePreset,
|
|
555
|
+
Ds as smartDateFormat,
|
|
556
|
+
Cs as useFormContext,
|
|
557
|
+
Is as useSlideOutReveal
|
|
614
558
|
};
|