@midas-ds/components 12.1.1 → 13.0.1-local.0
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/AccordionItem-Bq8nUKg4.cjs +1 -0
- package/{AccordionItem-Dd9VLdsb.js → AccordionItem-D2Y0gJZB.js} +108 -108
- package/CHANGELOG.md +42 -0
- package/{CheckboxGroup-BmCK0XG9.js → CheckboxGroup-BmFdy-K6.js} +1 -1
- package/{CheckboxGroup-DbmYdQEv.cjs → CheckboxGroup-LrqCwPET.cjs} +1 -1
- package/{ComboBox-Cl6jBB-8.js → ComboBox-B2btGwWe.js} +3 -3
- package/{ComboBox-CvD0t2T2.cjs → ComboBox-uMsVrOYu.cjs} +1 -1
- package/{DateField-DJAQH95Q.cjs → DateField-B5dlDwdH.cjs} +1 -1
- package/{DateField-D2IqGDL5.js → DateField-CEpRn4wR.js} +1 -1
- package/{DateRangePicker-CNPXbRqx.js → DateRangePicker-BmPPDZIF.js} +2 -2
- package/{DateRangePicker-CljQy8oD.cjs → DateRangePicker-It4M98bT.cjs} +1 -1
- package/{Dialog-COpVrq8B.js → Dialog-B1HuzqOX.js} +1 -1
- package/{Dialog-B8swxl24.js → Dialog-COeUapMW.js} +2 -2
- package/{Dropdown-DbeUiGYo.js → Dropdown-CGQbf7OT.js} +1 -1
- package/InfoBanner-C82hcpzj.cjs +1 -0
- package/InfoBanner-Dz_0wVSa.js +83 -0
- package/{Label-Dp85Vue3.cjs → Label-06gf6yKQ.cjs} +1 -1
- package/{Label-C5TNJ0Ku.js → Label-1N6ddn5w.js} +2 -2
- package/{Layout-CcXu63hP.js → Layout-B-A-s7B0.js} +39 -39
- package/{Layout-Bxd0-ao3.cjs → Layout-DlE30BHE.cjs} +2 -2
- package/{ListBoxLoadMoreItem-CIFJ3liN.js → ListBoxLoadMoreItem-C4jnDcYH.js} +1 -1
- package/{ListBoxSection-BBY8-t3_.js → ListBoxSection-D7BcbjUt.js} +1 -1
- package/{Popover-CyEVqpJ6.js → Popover-Bf5YH53o.js} +11 -11
- package/{Popover-Bi5yJEoE.cjs → Popover-DIq3kp6B.cjs} +1 -1
- package/{ProgressBar-BYb9d2kC.js → ProgressBar-DRhXkSE6.js} +1 -1
- package/{ProgressBar-CgbE08QT.cjs → ProgressBar-i7almbvK.cjs} +1 -1
- package/{Radio-BagVPvJX.cjs → Radio-BpQoJB8e.cjs} +1 -1
- package/{Radio-C98ly9yx.js → Radio-D4wUZfW9.js} +1 -1
- package/{Select-xBp51JSl.cjs → Select-1QuVY4f5.cjs} +1 -1
- package/{Select-BECa8IyZ.js → Select-CEwJo1BT.js} +3 -3
- package/{Separator-DH-5wu9X.js → Separator-Bj24aGrT.js} +1 -1
- package/TabList-3fErCDyP.cjs +1 -0
- package/{TabList-C0mZgIzV.js → TabList-CXaxruLg.js} +36 -36
- package/{Table-DzbfeVO7.js → Table-BzJktg2G.js} +1 -1
- package/{Table-BHY1uCZ0.cjs → Table-Dyqa6_rE.cjs} +1 -1
- package/{TextArea-DJCtwrqV.cjs → TextArea-B4BZUoJp.cjs} +1 -1
- package/{TextArea-CDoLq124.js → TextArea-Df1fR5R4.js} +20 -21
- package/{Toast-DZnQTLDr.js → Toast-B74PMVL9.js} +36 -36
- package/{Toast-BN3vRCsH.cjs → Toast-Cs0CEbRr.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/default.css +1 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +144 -144
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/list-box/index.js +2 -2
- package/menu/Menu.d.ts +2 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +6 -4
- package/modal/index.js +2 -2
- package/package.json +4 -14
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/textfield/TextArea.d.ts +2 -7
- package/textfield/TextField.d.ts +2 -6
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/variables-B3KEYyhW.cjs +1 -0
- package/variables-DzXcMW2k.js +5 -0
- package/AccordionItem-CV9Hrare.cjs +0 -1
- package/InfoBanner-CgmPdsH8.js +0 -83
- package/InfoBanner-Y-f3hKVR.cjs +0 -1
- package/TabList-BMyKYLlY.cjs +0 -1
- package/assets/global.css +0 -1
- package/assets/theme.css +0 -1
- package/assets/variables.css +0 -1
- package/theme/generated-object.d.ts +0 -381
- package/theme/generated-tokens.d.ts +0 -331
- package/theme/index.cjs +0 -1
- package/theme/index.d.ts +0 -267
- package/theme/index.js +0 -3991
- package/theme/tokens.d.ts +0 -290
- package/tokens-B3FfJ-rY.cjs +0 -1
- package/tokens-B9ooUP4g.js +0 -327
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as K } from "react/jsx-runtime";
|
|
2
2
|
import { c as D } from "./clsx-OuTLNxxd.js";
|
|
3
3
|
import { u as A } from "./useObserveElement-BdI4zgd7.js";
|
|
4
|
-
import { w as B } from "./
|
|
4
|
+
import { w as B } from "./variables-DzXcMW2k.js";
|
|
5
5
|
import { $ as W, b as j, g as k, k as U, c as q, j as G, l as J } from "./Collection-B0_WAieZ.js";
|
|
6
|
-
import { $ as Q, b as w, a as
|
|
6
|
+
import { $ as Q, b as w, a as S, f as L, c as X } from "./utils-Cpcjg55U.js";
|
|
7
7
|
import { $ as Y } from "./Hidden-C9KWUR7b.js";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as v, c as Z } from "./mergeProps-BSsN7Bgk.js";
|
|
9
9
|
import { $ as P } from "./filterDOMProps-wsa9OcNI.js";
|
|
10
10
|
import { $ as C } from "./inertValue-B7loUihk.js";
|
|
11
|
-
import u, { useMemo as
|
|
11
|
+
import u, { useMemo as I, useRef as ee, useEffect as te, forwardRef as M, createContext as O, useContext as x } from "react";
|
|
12
12
|
import { d as ie } from "./usePress-DMUpU0GU.js";
|
|
13
13
|
import { a as ae } from "./useFocusable-DXlMChFC.js";
|
|
14
14
|
import { d as se, e as le } from "./SelectionManager-Bq-Gw1UT.js";
|
|
15
15
|
import { $ as R } from "./useLabels-Kmq5JCp_.js";
|
|
16
16
|
import { $ as oe } from "./useHasTabbableChild-BDaxMsGu.js";
|
|
17
17
|
import { $ as ne } from "./context-CGNJ3grH.js";
|
|
18
|
-
import { $ as
|
|
18
|
+
import { $ as T } from "./useFocusRing-DMo8ctYV.js";
|
|
19
19
|
import { $ as de } from "./useHover-D6bNIkU0.js";
|
|
20
20
|
import { $ as re } from "./useSingleSelectListState-BlvpP8y-.js";
|
|
21
21
|
import './assets/TabList.css';const V = /* @__PURE__ */ new WeakMap();
|
|
@@ -34,7 +34,7 @@ function ce(i, e, t) {
|
|
|
34
34
|
isDisabled: d,
|
|
35
35
|
shouldSelectOnPressUp: n,
|
|
36
36
|
linkBehavior: "selection"
|
|
37
|
-
}), b = g(e, a, "tab"),
|
|
37
|
+
}), b = g(e, a, "tab"), p = g(e, a, "tabpanel"), { tabIndex: m } = f, $ = e.collection.getItem(a), h = P($ == null ? void 0 : $.props, {
|
|
38
38
|
labelable: !0
|
|
39
39
|
});
|
|
40
40
|
delete h.id;
|
|
@@ -42,11 +42,11 @@ function ce(i, e, t) {
|
|
|
42
42
|
isDisabled: d
|
|
43
43
|
}, t);
|
|
44
44
|
return {
|
|
45
|
-
tabProps:
|
|
45
|
+
tabProps: v(h, z, _, f, {
|
|
46
46
|
id: b,
|
|
47
47
|
"aria-selected": l,
|
|
48
48
|
"aria-disabled": d || void 0,
|
|
49
|
-
"aria-controls": l ?
|
|
49
|
+
"aria-controls": l ? p : void 0,
|
|
50
50
|
tabIndex: d ? void 0 : m,
|
|
51
51
|
role: "tab"
|
|
52
52
|
}),
|
|
@@ -64,7 +64,7 @@ function fe(i, e, t) {
|
|
|
64
64
|
"aria-labelledby": g(e, e == null ? void 0 : e.selectedKey, "tab")
|
|
65
65
|
});
|
|
66
66
|
return {
|
|
67
|
-
tabPanelProps:
|
|
67
|
+
tabPanelProps: v(o, {
|
|
68
68
|
tabIndex: a,
|
|
69
69
|
role: "tabpanel",
|
|
70
70
|
"aria-describedby": i["aria-describedby"],
|
|
@@ -116,7 +116,7 @@ class ue {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
function be(i, e, t) {
|
|
119
|
-
let { orientation: a = "horizontal", keyboardActivation: s = "automatic" } = i, { collection: n, selectionManager: o, disabledKeys: r } = e, { direction: l } = ne(), d =
|
|
119
|
+
let { orientation: a = "horizontal", keyboardActivation: s = "automatic" } = i, { collection: n, selectionManager: o, disabledKeys: r } = e, { direction: l } = ne(), d = I(() => new ue(n, l, a, r), [
|
|
120
120
|
n,
|
|
121
121
|
r,
|
|
122
122
|
a,
|
|
@@ -137,7 +137,7 @@ function be(i, e, t) {
|
|
|
137
137
|
});
|
|
138
138
|
return {
|
|
139
139
|
tabListProps: {
|
|
140
|
-
...
|
|
140
|
+
...v(f, b),
|
|
141
141
|
role: "tablist",
|
|
142
142
|
"aria-orientation": a,
|
|
143
143
|
tabIndex: void 0
|
|
@@ -174,10 +174,10 @@ function N(i, e) {
|
|
|
174
174
|
}
|
|
175
175
|
return t;
|
|
176
176
|
}
|
|
177
|
-
const
|
|
178
|
-
[e, t] = Q(e, t,
|
|
177
|
+
const F = /* @__PURE__ */ O(null), y = /* @__PURE__ */ O(null), pe = /* @__PURE__ */ M(function(e, t) {
|
|
178
|
+
[e, t] = Q(e, t, F);
|
|
179
179
|
let { children: a, orientation: s = "horizontal" } = e;
|
|
180
|
-
return a =
|
|
180
|
+
return a = I(() => typeof a == "function" ? a({
|
|
181
181
|
orientation: s,
|
|
182
182
|
defaultChildren: null
|
|
183
183
|
}) : a, [
|
|
@@ -185,20 +185,20 @@ const S = /* @__PURE__ */ O(null), y = /* @__PURE__ */ O(null), ve = /* @__PURE_
|
|
|
185
185
|
s
|
|
186
186
|
]), /* @__PURE__ */ u.createElement(j, {
|
|
187
187
|
content: a
|
|
188
|
-
}, (n) => /* @__PURE__ */ u.createElement(
|
|
188
|
+
}, (n) => /* @__PURE__ */ u.createElement(ve, {
|
|
189
189
|
props: e,
|
|
190
190
|
collection: n,
|
|
191
191
|
tabsRef: t
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
194
|
-
function
|
|
194
|
+
function ve({ props: i, tabsRef: e, collection: t }) {
|
|
195
195
|
let { orientation: a = "horizontal" } = i, s = $e({
|
|
196
196
|
...i,
|
|
197
197
|
collection: t,
|
|
198
198
|
children: void 0
|
|
199
|
-
}), { focusProps: n, isFocused: o, isFocusVisible: r } =
|
|
199
|
+
}), { focusProps: n, isFocused: o, isFocusVisible: r } = T({
|
|
200
200
|
within: !0
|
|
201
|
-
}), l =
|
|
201
|
+
}), l = I(() => ({
|
|
202
202
|
orientation: a,
|
|
203
203
|
isFocusWithin: o,
|
|
204
204
|
isFocusVisible: r
|
|
@@ -206,7 +206,7 @@ function pe({ props: i, tabsRef: e, collection: t }) {
|
|
|
206
206
|
a,
|
|
207
207
|
o,
|
|
208
208
|
r
|
|
209
|
-
]), d =
|
|
209
|
+
]), d = S({
|
|
210
210
|
...i,
|
|
211
211
|
defaultClassName: "react-aria-Tabs",
|
|
212
212
|
values: l
|
|
@@ -214,7 +214,7 @@ function pe({ props: i, tabsRef: e, collection: t }) {
|
|
|
214
214
|
global: !0
|
|
215
215
|
});
|
|
216
216
|
return /* @__PURE__ */ u.createElement("div", {
|
|
217
|
-
...
|
|
217
|
+
...v(f, d, n),
|
|
218
218
|
ref: e,
|
|
219
219
|
slot: i.slot || void 0,
|
|
220
220
|
"data-focused": o || void 0,
|
|
@@ -224,7 +224,7 @@ function pe({ props: i, tabsRef: e, collection: t }) {
|
|
|
224
224
|
}, /* @__PURE__ */ u.createElement(L, {
|
|
225
225
|
values: [
|
|
226
226
|
[
|
|
227
|
-
|
|
227
|
+
F,
|
|
228
228
|
i
|
|
229
229
|
],
|
|
230
230
|
[
|
|
@@ -241,11 +241,11 @@ const me = /* @__PURE__ */ M(function(e, t) {
|
|
|
241
241
|
}) : /* @__PURE__ */ u.createElement(q, e);
|
|
242
242
|
});
|
|
243
243
|
function he({ props: i, forwardedRef: e }) {
|
|
244
|
-
let t = x(y), { CollectionRoot: a } = x(k), { orientation: s = "horizontal", keyboardActivation: n = "automatic" } = X(
|
|
244
|
+
let t = x(y), { CollectionRoot: a } = x(k), { orientation: s = "horizontal", keyboardActivation: n = "automatic" } = X(F), o = w(e), { tabListProps: r } = be({
|
|
245
245
|
...i,
|
|
246
246
|
orientation: s,
|
|
247
247
|
keyboardActivation: n
|
|
248
|
-
}, t, o), l =
|
|
248
|
+
}, t, o), l = S({
|
|
249
249
|
...i,
|
|
250
250
|
children: null,
|
|
251
251
|
defaultClassName: "react-aria-TabList",
|
|
@@ -257,7 +257,7 @@ function he({ props: i, forwardedRef: e }) {
|
|
|
257
257
|
global: !0
|
|
258
258
|
});
|
|
259
259
|
return delete d.id, /* @__PURE__ */ u.createElement("div", {
|
|
260
|
-
...
|
|
260
|
+
...v(d, l, r),
|
|
261
261
|
ref: o,
|
|
262
262
|
"data-orientation": s || void 0
|
|
263
263
|
}, /* @__PURE__ */ u.createElement(a, {
|
|
@@ -272,12 +272,12 @@ const ye = /* @__PURE__ */ W(H, (i, e, t) => {
|
|
|
272
272
|
let a = x(y), s = w(e), { tabProps: n, isSelected: o, isDisabled: r, isPressed: l } = ce({
|
|
273
273
|
key: t.key,
|
|
274
274
|
...i
|
|
275
|
-
}, a, s), { focusProps: d, isFocused: f, isFocusVisible: c } =
|
|
275
|
+
}, a, s), { focusProps: d, isFocused: f, isFocusVisible: c } = T(), { hoverProps: b, isHovered: p } = de({
|
|
276
276
|
isDisabled: r,
|
|
277
277
|
onHoverStart: i.onHoverStart,
|
|
278
278
|
onHoverEnd: i.onHoverEnd,
|
|
279
279
|
onHoverChange: i.onHoverChange
|
|
280
|
-
}), m =
|
|
280
|
+
}), m = S({
|
|
281
281
|
...i,
|
|
282
282
|
id: void 0,
|
|
283
283
|
children: t.rendered,
|
|
@@ -288,24 +288,24 @@ const ye = /* @__PURE__ */ W(H, (i, e, t) => {
|
|
|
288
288
|
isFocused: f,
|
|
289
289
|
isFocusVisible: c,
|
|
290
290
|
isPressed: l,
|
|
291
|
-
isHovered:
|
|
291
|
+
isHovered: p
|
|
292
292
|
}
|
|
293
293
|
}), $ = t.props.href ? "a" : "div", h = P(i, {
|
|
294
294
|
global: !0
|
|
295
295
|
});
|
|
296
296
|
return delete h.id, delete h.onClick, /* @__PURE__ */ u.createElement($, {
|
|
297
|
-
...
|
|
297
|
+
...v(h, m, n, d, b),
|
|
298
298
|
ref: s,
|
|
299
299
|
"data-selected": o || void 0,
|
|
300
300
|
"data-disabled": r || void 0,
|
|
301
301
|
"data-focused": f || void 0,
|
|
302
302
|
"data-focus-visible": c || void 0,
|
|
303
303
|
"data-pressed": l || void 0,
|
|
304
|
-
"data-hovered":
|
|
304
|
+
"data-hovered": p || void 0
|
|
305
305
|
}, m.children);
|
|
306
306
|
}), xe = /* @__PURE__ */ Y(function(e, t) {
|
|
307
307
|
const a = x(y);
|
|
308
|
-
let s = w(t), { id: n, ...o } = e, { tabPanelProps: r } = fe(e, a, s), { focusProps: l, isFocused: d, isFocusVisible: f } =
|
|
308
|
+
let s = w(t), { id: n, ...o } = e, { tabPanelProps: r } = fe(e, a, s), { focusProps: l, isFocused: d, isFocusVisible: f } = T(), c = a.selectedKey === e.id, b = S({
|
|
309
309
|
...e,
|
|
310
310
|
defaultClassName: "react-aria-TabPanel",
|
|
311
311
|
values: {
|
|
@@ -317,11 +317,11 @@ const ye = /* @__PURE__ */ W(H, (i, e, t) => {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
if (!c && !e.shouldForceMount) return null;
|
|
320
|
-
let
|
|
320
|
+
let p = P(o, {
|
|
321
321
|
global: !0
|
|
322
322
|
});
|
|
323
|
-
delete
|
|
324
|
-
let m = c ? p
|
|
323
|
+
delete p.id;
|
|
324
|
+
let m = c ? v(p, r, l, b) : b;
|
|
325
325
|
return /* @__PURE__ */ u.createElement("div", {
|
|
326
326
|
...m,
|
|
327
327
|
ref: s,
|
|
@@ -333,7 +333,7 @@ const ye = /* @__PURE__ */ W(H, (i, e, t) => {
|
|
|
333
333
|
}, /* @__PURE__ */ u.createElement(L, {
|
|
334
334
|
values: [
|
|
335
335
|
[
|
|
336
|
-
|
|
336
|
+
F,
|
|
337
337
|
null
|
|
338
338
|
],
|
|
339
339
|
[
|
|
@@ -357,9 +357,9 @@ const ye = /* @__PURE__ */ W(H, (i, e, t) => {
|
|
|
357
357
|
const { width: a } = A(
|
|
358
358
|
typeof document > "u" ? null : document.body,
|
|
359
359
|
{ includePadding: !0 }
|
|
360
|
-
), s = t.orientation || a >= B
|
|
360
|
+
), s = t.orientation || a >= parseInt(B) ? "horizontal" : "vertical";
|
|
361
361
|
return /* @__PURE__ */ K(
|
|
362
|
-
|
|
362
|
+
pe,
|
|
363
363
|
{
|
|
364
364
|
...t,
|
|
365
365
|
orientation: s,
|
|
@@ -2419,7 +2419,7 @@ const ho = [
|
|
|
2419
2419
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
2420
2420
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
2421
2421
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
2422
|
-
], go = Ce("grip-vertical", ho), mo = "
|
|
2422
|
+
], go = Ce("grip-vertical", ho), mo = "_table_15fd3_1", vo = "_tableHeader_15fd3_11", bo = "_column_15fd3_12", $o = "_selection_15fd3_24", yo = "_row_15fd3_30", xo = "_cell_15fd3_48", Do = "_medium_15fd3_88", Co = "_striped_15fd3_99", R = {
|
|
2423
2423
|
table: mo,
|
|
2424
2424
|
tableHeader: vo,
|
|
2425
2425
|
column: bo,
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const bl=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],hl=fe.createLucideIcon("grip-vertical",bl),gl="
|
|
16
|
+
*/const bl=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],hl=fe.createLucideIcon("grip-vertical",bl),gl="_table_15fd3_1",vl="_tableHeader_15fd3_11",ml="_column_15fd3_12",xl="_selection_15fd3_24",yl="_row_15fd3_30",Dl="_cell_15fd3_48",Cl="_medium_15fd3_88",wl="_striped_15fd3_99",M={table:gl,tableHeader:vl,column:ml,selection:xl,row:yl,cell:Dl,medium:Cl,striped:wl},kl=({size:e="large",striped:t=!1,className:l,...o})=>S.jsx(Qt,{className:L.clsx(M.table,l,{[M.medium]:e==="medium",[M.striped]:t}),...o}),El=({columns:e,children:t,className:l})=>{const{selectionBehavior:o,selectionMode:r,allowsDragging:n}=pt();return S.jsxs(el,{className:L.clsx(l,M.tableHeader),children:[n&&S.jsx(ae,{}),o==="toggle"&&S.jsx(ae,{width:50,children:r==="multiple"&&S.jsx(we.Checkbox,{className:M.selection,slot:"selection"})}),S.jsx(C.$e1995378a142960e$export$fb8073518f34e6ec,{items:e,children:t})]})},Sl=({id:e,columns:t,children:l,className:o,...r})=>{const{selectionBehavior:n,allowsDragging:u}=pt();return S.jsxs(nl,{id:e,className:L.clsx(o,M.row),...r,children:[u&&S.jsx(ce,{children:S.jsx(se.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{slot:"drag",children:S.jsx(hl,{size:20})})}),n==="toggle"&&S.jsx(ce,{children:S.jsx(we.Checkbox,{className:M.selection,slot:"selection"})}),S.jsx(C.$e1995378a142960e$export$fb8073518f34e6ec,{items:t,children:l})]})},ae=({children:e,className:t,...l})=>S.jsx(ll,{className:L.clsx(t,M.column),...l,children:({allowsSorting:o,sortDirection:r})=>S.jsxs(S.Fragment,{children:[e,o&&S.jsx("span",{"aria-hidden":"true",className:"sort-indicator",children:r==="ascending"?S.jsx(pl,{size:20}):S.jsx(fl,{size:20})})]})}),ce=({className:e,...t})=>S.jsx(ul,{className:L.clsx(e,M.cell),...t}),Bl=({className:e,...t})=>S.jsx(rl,{className:L.clsx(e,M.tableBody),...t});exports.Cell=ce;exports.Column=ae;exports.Row=Sl;exports.Table=kl;exports.TableBody=Bl;exports.TableHeader=El;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),F=require("react"),u=require("./utils-CMHKYKlz.cjs"),f=require("./Input-CzMx2mfl.cjs"),l=require("./clsx-C11secjj.cjs"),i=require("./TextField.module-gJ-ruFra.cjs"),h=require("./Text-BAFsaON-.cjs"),q=require("./Button-D_tRdPW9.cjs"),T=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),x=require("./TextField-Bm5916AD.cjs"),b=require("./FieldError-Cornph2A.cjs"),g=require("./CharacterCounter-CnRv-iUP.cjs"),m=require("./Label-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),F=require("react"),u=require("./utils-CMHKYKlz.cjs"),f=require("./Input-CzMx2mfl.cjs"),l=require("./clsx-C11secjj.cjs"),i=require("./TextField.module-gJ-ruFra.cjs"),h=require("./Text-BAFsaON-.cjs"),q=require("./Button-D_tRdPW9.cjs"),T=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),x=require("./TextField-Bm5916AD.cjs"),b=require("./FieldError-Cornph2A.cjs"),g=require("./CharacterCounter-CnRv-iUP.cjs"),m=require("./Label-06gf6yKQ.cjs");function N(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const d=N(F),$=d.forwardRef((e,r)=>{[e]=u.$64fa3d84918910a7$export$29f1550f4b0d4415(e,r,x.$bcdf0525bf22703d$export$2129e27b3ef0d483);const{label:s,description:o,errorMessage:c,showCounter:n,errorPosition:a="top",size:j="large",popover:w,children:y}=e;return t.jsxs(x.$bcdf0525bf22703d$export$2c73285ae9390cec,{...e,className:l.clsx(i.styles.textField,{[i.styles.medium]:j==="medium"}),children:[t.jsx(m.LabelWrapper,{popover:w,children:s&&t.jsx(m.Label,{children:s})}),o&&t.jsx(h.Text,{slot:"description",children:o}),n&&t.jsx(g.CharacterCounter,{isLonely:!o}),a==="top"&&t.jsx(b.FieldError,{"data-testid":"fieldError",children:c}),y,a==="bottom"&&t.jsx(b.FieldError,{"data-testid":"fieldError",className:i.styles.bottomError,children:c})]})}),P={hide:"Hide",show:"Show"},R={hide:"Dölj",show:"Visa"},S={en:P,sv:R},v=d.forwardRef((e,r)=>{[e,r]=u.$64fa3d84918910a7$export$29f1550f4b0d4415(e,r,f.$3985021b0ad6602f$export$37fb8590cf2c088c);const[s,o]=d.useState(!1),c=()=>o(a=>!a),n=T.useLocalizedStringFormatter(S);return t.jsxs(t.Fragment,{children:[s&&t.jsx(h.Text,{slot:"description",className:i.styles.passwordText,children:e.value}),t.jsx(q.Button,{variant:"tertiary",onPress:c,className:i.styles.passwordButton,children:s?n.format("hide"):n.format("show")})]})}),p=d.forwardRef(({skipContext:e=!1,...r},s)=>{const[o,c]=u.$64fa3d84918910a7$export$29f1550f4b0d4415(r,s,f.$3985021b0ad6602f$export$37fb8590cf2c088c),n=e?s:c,a=e?r:o;return t.jsxs("div",{className:i.styles.wrap,children:[t.jsx(f.$3985021b0ad6602f$export$f5b8910cec6cf069,{...a,ref:n,className:l.clsx(i.styles.input,a.className)}),a.type==="password"&&t.jsx(v,{...a})]})}),E=d.forwardRef(({className:e,list:r,type:s,...o},c)=>t.jsx($,{...o,children:t.jsx(p,{className:l.clsx(e),list:r,ref:c,type:s,skipContext:!0})})),L=d.forwardRef(({className:e,cols:r,rows:s,wrap:o,...c},n)=>t.jsx($,{...c,children:t.jsx(x.$216918bed6669f72$export$f5c9f3c2c4054eec,{className:l.clsx(i.styles.textArea,e),cols:r,ref:n,rows:s,wrap:o})}));exports.Input=p;exports.TextArea=L;exports.TextField=E;exports.TextFieldBase=$;
|
|
@@ -10,15 +10,15 @@ import { u as g } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
|
10
10
|
import { $ as P, a as R, b as v } from "./TextField-_UY8CXtW.js";
|
|
11
11
|
import { F as p } from "./FieldError-DdvFyIf4.js";
|
|
12
12
|
import { C as L } from "./CharacterCounter-DT7A0wWP.js";
|
|
13
|
-
import { a as y, L as B } from "./Label-
|
|
13
|
+
import { a as y, L as B } from "./Label-1N6ddn5w.js";
|
|
14
14
|
const w = n.forwardRef((e, t) => {
|
|
15
15
|
[e] = l(e, t, R);
|
|
16
16
|
const {
|
|
17
17
|
label: s,
|
|
18
18
|
description: o,
|
|
19
19
|
errorMessage: a,
|
|
20
|
-
showCounter:
|
|
21
|
-
errorPosition:
|
|
20
|
+
showCounter: i,
|
|
21
|
+
errorPosition: c = "top",
|
|
22
22
|
size: x = "large",
|
|
23
23
|
popover: b,
|
|
24
24
|
children: u
|
|
@@ -33,10 +33,10 @@ const w = n.forwardRef((e, t) => {
|
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ r(y, { popover: b, children: s && /* @__PURE__ */ r(B, { children: s }) }),
|
|
35
35
|
o && /* @__PURE__ */ r($, { slot: "description", children: o }),
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
i && /* @__PURE__ */ r(L, { isLonely: !o }),
|
|
37
|
+
c === "top" && /* @__PURE__ */ r(p, { "data-testid": "fieldError", children: a }),
|
|
38
38
|
u,
|
|
39
|
-
|
|
39
|
+
c === "bottom" && /* @__PURE__ */ r(
|
|
40
40
|
p,
|
|
41
41
|
{
|
|
42
42
|
"data-testid": "fieldError",
|
|
@@ -53,7 +53,7 @@ const w = n.forwardRef((e, t) => {
|
|
|
53
53
|
}, j = n.forwardRef(
|
|
54
54
|
(e, t) => {
|
|
55
55
|
[e, t] = l(e, t, h);
|
|
56
|
-
const [s, o] = n.useState(!1), a = () => o((
|
|
56
|
+
const [s, o] = n.useState(!1), a = () => o((c) => !c), i = g(S);
|
|
57
57
|
return /* @__PURE__ */ m(N, { children: [
|
|
58
58
|
s && /* @__PURE__ */ r(
|
|
59
59
|
$,
|
|
@@ -69,7 +69,7 @@ const w = n.forwardRef((e, t) => {
|
|
|
69
69
|
variant: "tertiary",
|
|
70
70
|
onPress: a,
|
|
71
71
|
className: d.passwordButton,
|
|
72
|
-
children: s ?
|
|
72
|
+
children: s ? i.format("hide") : i.format("show")
|
|
73
73
|
}
|
|
74
74
|
)
|
|
75
75
|
] });
|
|
@@ -80,38 +80,37 @@ const w = n.forwardRef((e, t) => {
|
|
|
80
80
|
t,
|
|
81
81
|
s,
|
|
82
82
|
h
|
|
83
|
-
),
|
|
83
|
+
), i = e ? s : a, c = e ? t : o;
|
|
84
84
|
return /* @__PURE__ */ m("div", { className: d.wrap, children: [
|
|
85
85
|
/* @__PURE__ */ r(
|
|
86
86
|
F,
|
|
87
87
|
{
|
|
88
|
-
...
|
|
89
|
-
ref:
|
|
90
|
-
className: f(d.input,
|
|
88
|
+
...c,
|
|
89
|
+
ref: i,
|
|
90
|
+
className: f(d.input, c.className)
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
|
|
93
|
+
c.type === "password" && /* @__PURE__ */ r(j, { ...c })
|
|
94
94
|
] });
|
|
95
95
|
}
|
|
96
96
|
), O = n.forwardRef(
|
|
97
|
-
({ className: e,
|
|
97
|
+
({ className: e, list: t, type: s, ...o }, a) => /* @__PURE__ */ r(w, { ...o, children: /* @__PURE__ */ r(
|
|
98
98
|
z,
|
|
99
99
|
{
|
|
100
100
|
className: f(e),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
type: o,
|
|
101
|
+
list: t,
|
|
102
|
+
ref: a,
|
|
103
|
+
type: s,
|
|
105
104
|
skipContext: !0
|
|
106
105
|
}
|
|
107
106
|
) })
|
|
108
107
|
), Q = n.forwardRef(
|
|
109
|
-
({ className: e,
|
|
108
|
+
({ className: e, cols: t, rows: s, wrap: o, ...a }, i) => /* @__PURE__ */ r(w, { ...a, children: /* @__PURE__ */ r(
|
|
110
109
|
v,
|
|
111
110
|
{
|
|
112
111
|
className: f(d.textArea, e),
|
|
113
|
-
|
|
114
|
-
ref:
|
|
112
|
+
cols: t,
|
|
113
|
+
ref: i,
|
|
115
114
|
rows: s,
|
|
116
115
|
wrap: o
|
|
117
116
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as p, jsxs as
|
|
2
|
-
import { B as
|
|
3
|
-
import A, { useState as g, useCallback as
|
|
4
|
-
import { createPortal as
|
|
1
|
+
import { jsx as p, jsxs as _, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { B as Le } from "./Button-CUMHt7MG.js";
|
|
3
|
+
import A, { useState as g, useCallback as w, useEffect as T, useRef as v, useMemo as _e } from "react";
|
|
4
|
+
import { createPortal as we, flushSync as Be } from "react-dom";
|
|
5
5
|
import { c as I } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
import { i as ye } from "./icon-map-uS87FT_Q.js";
|
|
7
7
|
import { s as N } from "./index-BLPblar-.js";
|
|
@@ -243,11 +243,11 @@ class Me {
|
|
|
243
243
|
}
|
|
244
244
|
function Oe(t, e) {
|
|
245
245
|
const { role: n, "aria-label": i, "aria-labelledby": o, focus: u } = t;
|
|
246
|
-
let r = Re(), a = i || o, [b, d] = g(!1), f =
|
|
246
|
+
let r = Re(), a = i || o, [b, d] = g(!1), f = w(() => {
|
|
247
247
|
d(!0);
|
|
248
248
|
}, [
|
|
249
249
|
d
|
|
250
|
-
]), $ =
|
|
250
|
+
]), $ = w(() => {
|
|
251
251
|
d(!1);
|
|
252
252
|
}, [
|
|
253
253
|
d
|
|
@@ -676,13 +676,13 @@ function ze(t, e, n) {
|
|
|
676
676
|
...c,
|
|
677
677
|
i: m,
|
|
678
678
|
isRemoved: !e.visibleToasts.some((h) => c.key === h.key)
|
|
679
|
-
})),
|
|
680
|
-
if (
|
|
681
|
-
var
|
|
682
|
-
if (B() === "pointer" && (!((
|
|
679
|
+
})), L = l.findIndex((c) => c.i === $.current && c.isRemoved);
|
|
680
|
+
if (L > -1) {
|
|
681
|
+
var x;
|
|
682
|
+
if (B() === "pointer" && (!((x = s.current) === null || x === void 0) && x.isConnected)) E(s.current);
|
|
683
683
|
else {
|
|
684
684
|
let c = 0, m, h;
|
|
685
|
-
for (; c <=
|
|
685
|
+
for (; c <= L; )
|
|
686
686
|
l[c].isRemoved || (h = Math.max(0, c - 1)), c++;
|
|
687
687
|
for (; c < l.length; ) {
|
|
688
688
|
if (!l[c].isRemoved) {
|
|
@@ -731,8 +731,8 @@ function ze(t, e, n) {
|
|
|
731
731
|
// listen to focus events separate from focuswithin because that will only fire once
|
|
732
732
|
// and we need to follow all focus changes
|
|
733
733
|
onFocus: (l) => {
|
|
734
|
-
let
|
|
735
|
-
$.current = d.current.findIndex((
|
|
734
|
+
let L = l.target.closest('[role="alertdialog"]');
|
|
735
|
+
$.current = d.current.findIndex((x) => x === L);
|
|
736
736
|
},
|
|
737
737
|
onBlur: () => {
|
|
738
738
|
$.current = -1;
|
|
@@ -741,9 +741,9 @@ function ze(t, e, n) {
|
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
743
|
function pe(t) {
|
|
744
|
-
let e =
|
|
744
|
+
let e = w((o) => t.subscribe(o), [
|
|
745
745
|
t
|
|
746
|
-
]), n =
|
|
746
|
+
]), n = w(() => t.visibleToasts, [
|
|
747
747
|
t
|
|
748
748
|
]);
|
|
749
749
|
return {
|
|
@@ -821,7 +821,7 @@ class je {
|
|
|
821
821
|
this.startTime = null, this.remaining = n, this.callback = e;
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
const We = "
|
|
824
|
+
const We = "_toastRegion_hu26k_49", Ke = "_toast_hu26k_49", Ze = "_success_hu26k_92", Ge = "_info_hu26k_100", Je = "_important_hu26k_108", Qe = "_warning_hu26k_116", Xe = "_icon_hu26k_124", qe = "_toastContent_hu26k_134", Ye = "_toastMessage_hu26k_141", et = "_slideInTop_hu26k_1", tt = "_slideInEnd_hu26k_1", nt = "_slideOutTop_hu26k_1", it = "_slideOutEnd_hu26k_1", k = {
|
|
825
825
|
toastRegion: We,
|
|
826
826
|
toast: Ke,
|
|
827
827
|
success: Ze,
|
|
@@ -835,7 +835,7 @@ const We = "_toastRegion_xhwdf_49", Ke = "_toast_xhwdf_49", Ze = "_success_xhwdf
|
|
|
835
835
|
slideInEnd: tt,
|
|
836
836
|
slideOutTop: nt,
|
|
837
837
|
slideOutEnd: it
|
|
838
|
-
},
|
|
838
|
+
}, ke = {
|
|
839
839
|
wrapUpdate(t) {
|
|
840
840
|
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
841
841
|
Be(t);
|
|
@@ -844,17 +844,17 @@ const We = "_toastRegion_xhwdf_49", Ke = "_toast_xhwdf_49", Ze = "_success_xhwdf
|
|
|
844
844
|
maxVisibleToasts: 5
|
|
845
845
|
};
|
|
846
846
|
function ot(t = {}) {
|
|
847
|
-
const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, i =
|
|
847
|
+
const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, i = _e(
|
|
848
848
|
() => new ve({ maxVisibleToasts: e, wrapUpdate: n }),
|
|
849
849
|
[e, n]
|
|
850
850
|
);
|
|
851
851
|
return pe(i);
|
|
852
852
|
}
|
|
853
|
-
const ut = new ve(
|
|
853
|
+
const ut = new ve(ke), Et = (t) => {
|
|
854
854
|
const e = pe(ut);
|
|
855
|
-
return e.visibleToasts.length > 0 ?
|
|
855
|
+
return e.visibleToasts.length > 0 ? we(
|
|
856
856
|
/* @__PURE__ */ p(
|
|
857
|
-
|
|
857
|
+
xe,
|
|
858
858
|
{
|
|
859
859
|
...t,
|
|
860
860
|
state: e
|
|
@@ -863,11 +863,11 @@ const ut = new ve(xe), Et = (t) => {
|
|
|
863
863
|
document.body
|
|
864
864
|
) : null;
|
|
865
865
|
}, Tt = ({ children: t, ...e }) => {
|
|
866
|
-
const n = ot(
|
|
867
|
-
return /* @__PURE__ */
|
|
866
|
+
const n = ot(ke);
|
|
867
|
+
return /* @__PURE__ */ _(Te, { children: [
|
|
868
868
|
typeof t == "function" ? t(n) : t,
|
|
869
869
|
n.visibleToasts.length > 0 && /* @__PURE__ */ p(
|
|
870
|
-
|
|
870
|
+
xe,
|
|
871
871
|
{
|
|
872
872
|
...e,
|
|
873
873
|
state: n
|
|
@@ -875,7 +875,7 @@ const ut = new ve(xe), Et = (t) => {
|
|
|
875
875
|
)
|
|
876
876
|
] });
|
|
877
877
|
};
|
|
878
|
-
function
|
|
878
|
+
function xe({
|
|
879
879
|
state: t,
|
|
880
880
|
className: e,
|
|
881
881
|
...n
|
|
@@ -886,7 +886,7 @@ function ke({
|
|
|
886
886
|
{
|
|
887
887
|
...o,
|
|
888
888
|
ref: i,
|
|
889
|
-
className: I(
|
|
889
|
+
className: I(k.toastRegion, e),
|
|
890
890
|
children: t.visibleToasts.map((u) => /* @__PURE__ */ p(
|
|
891
891
|
rt,
|
|
892
892
|
{
|
|
@@ -907,37 +907,37 @@ function rt({
|
|
|
907
907
|
n,
|
|
908
908
|
t
|
|
909
909
|
), b = ye[n.toast.content.type];
|
|
910
|
-
return /* @__PURE__ */
|
|
910
|
+
return /* @__PURE__ */ _(
|
|
911
911
|
"div",
|
|
912
912
|
{
|
|
913
913
|
...o,
|
|
914
914
|
ref: i,
|
|
915
915
|
className: I(
|
|
916
|
-
|
|
917
|
-
|
|
916
|
+
k.toast,
|
|
917
|
+
k[n.toast.content.type],
|
|
918
918
|
e
|
|
919
919
|
),
|
|
920
920
|
style: { viewTransitionName: n.toast.key },
|
|
921
921
|
children: [
|
|
922
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ _(
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
925
925
|
...u,
|
|
926
|
-
className: I(
|
|
926
|
+
className: I(k.toastContent, u.className),
|
|
927
927
|
children: [
|
|
928
928
|
/* @__PURE__ */ p(
|
|
929
929
|
b,
|
|
930
930
|
{
|
|
931
|
-
className:
|
|
931
|
+
className: k.icon,
|
|
932
932
|
size: 20,
|
|
933
933
|
"aria-hidden": !0
|
|
934
934
|
}
|
|
935
935
|
),
|
|
936
|
-
/* @__PURE__ */
|
|
936
|
+
/* @__PURE__ */ _("div", { children: [
|
|
937
937
|
/* @__PURE__ */ p(
|
|
938
938
|
"p",
|
|
939
939
|
{
|
|
940
|
-
className:
|
|
940
|
+
className: k.toastMessage,
|
|
941
941
|
...r,
|
|
942
942
|
children: n.toast.content.message
|
|
943
943
|
}
|
|
@@ -948,7 +948,7 @@ function rt({
|
|
|
948
948
|
}
|
|
949
949
|
),
|
|
950
950
|
/* @__PURE__ */ p(
|
|
951
|
-
|
|
951
|
+
Le,
|
|
952
952
|
{
|
|
953
953
|
variant: "icon",
|
|
954
954
|
...a,
|
|
@@ -968,7 +968,7 @@ function rt({
|
|
|
968
968
|
export {
|
|
969
969
|
Et as G,
|
|
970
970
|
Tt as T,
|
|
971
|
-
|
|
971
|
+
xe as a,
|
|
972
972
|
rt as b,
|
|
973
973
|
ut as t,
|
|
974
974
|
ot as u
|