@midas-ds/components 16.6.3 → 16.6.5
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/CHANGELOG.md +17 -0
- package/accordion/index.js +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunks/{AccordionItem-BvJQhuYO.js → AccordionItem-CSvARy63.js} +3 -3
- package/chunks/{Breadcrumbs-By2bMbQd.js → Breadcrumbs-DFwP6lAP.js} +1 -1
- package/chunks/{Button-BGu-SRi7.js → Button-CaLOUTDO.js} +1 -1
- package/chunks/{Card-ia98VoKL.js → Card-DMSnokPn.js} +7 -7
- package/chunks/Checkbox-CRLj7_Ox.js +146 -0
- package/chunks/{CheckboxGroup-KqlchsTK.js → CheckboxGroup-DSXCj_ho.js} +2 -2
- package/chunks/{ClearButton-Dtkd_M_7.js → ClearButton-DPm_d7SL.js} +2 -2
- package/chunks/{ColorSchemeSwitch-CaqrCGTA.js → ColorSchemeSwitch-DOQ0yjtt.js} +1 -1
- package/chunks/{ComboBox-C-pAiys0.js → ComboBox-B7T13rzp.js} +3 -3
- package/chunks/{DateField-Scz9gaJl.js → DateField-zdUv4ooW.js} +3 -3
- package/chunks/{DateInputDivider-CkTB5q5k.js → DateInputDivider-DwopMIb9.js} +3 -3
- package/chunks/{DateRangePicker-DQfV97yu.js → DateRangePicker-D6lnN0ox.js} +6 -6
- package/chunks/{Dialog-DRpxD3Gh.js → Dialog-BHxDzbf8.js} +2 -2
- package/chunks/{FeedbackStatusIcon-YJaUAfjp.js → FeedbackStatusIcon-X9Bjgeta.js} +3 -3
- package/chunks/{FileUpload-h1PxqQmb.js → FileUpload-Cu8DCSjX.js} +3 -3
- package/chunks/{InfoBanner-DEwlyEud.js → InfoBanner-C4HnaXQO.js} +3 -3
- package/chunks/{Label-xWKvOuML.js → Label-6GZmmff9.js} +2 -2
- package/chunks/{Layout-MPNSphLF.js → Layout-C2-vyEKy.js} +4 -4
- package/chunks/Link-rqGQvFQq.js +58 -0
- package/chunks/LinkButton-B1zayj7k.js +67 -0
- package/chunks/{ListBoxLoadMoreItem-CygpsU3W.js → ListBoxLoadMoreItem-ufPaJaNS.js} +1 -1
- package/chunks/{ListBoxSection-MZB_5DdD.js → ListBoxSection-C4y3K7T5.js} +4 -4
- package/chunks/{Logo-CsWcKqIg.js → Logo-CCxPAmgw.js} +45 -39
- package/chunks/{ProgressBar-KQdaaME2.js → ProgressBar-Dg0JMQ71.js} +1 -1
- package/chunks/{Radio-BD-ICPhb.js → Radio-Bp-JwJid.js} +1 -1
- package/chunks/{RangeCalendar-CW38S2L8.js → RangeCalendar-h9wkh43W.js} +3 -3
- package/chunks/{SearchField-44UKmB8Z.js → SearchField-Dcs9LjKo.js} +3 -3
- package/chunks/{Select-BJlDjYWX.js → Select-BYz3DdXs.js} +14 -14
- package/chunks/{Select-Cz3Y8abd.js → Select-w2o-VyrP.js} +6 -6
- package/chunks/{Separator-BcnQEA9f.js → Separator-XIzn8lsq.js} +2 -2
- package/chunks/{Spinner-tvJ7rPiT.js → Spinner-CfKMn18u.js} +1 -1
- package/chunks/{TabList-D2XV5ixe.js → TabList-BaR443mu.js} +3 -3
- package/chunks/{Table-BgsgXhC_.js → Table-UbdCFrkS.js} +12 -12
- package/chunks/{Tag-CZrQBEgv.js → Tag-C7VZ0T0o.js} +2 -2
- package/chunks/{TextArea-Dudj2zg4.js → TextArea-Ceo3ziOi.js} +4 -4
- package/chunks/{Toast-PDCyyP45.js → Toast-D7PXIDa9.js} +9 -9
- package/chunks/{arrow-right-DNeP8Eqv.js → arrow-right-BVcFGZmy.js} +1 -1
- package/chunks/{check-BxlvVsvD.js → check-Bt2UikoU.js} +1 -1
- package/chunks/{chevron-down-DgT-uSF9.js → chevron-down-BBFYYzZq.js} +1 -1
- package/chunks/{chevron-right-GpyqdYK4.js → chevron-right-DvXGOiS_.js} +1 -1
- package/chunks/{createLucideIcon-D4r5Phnh.js → createLucideIcon-CP-mMPfa.js} +15 -10
- package/chunks/{info-kdfED7Wh.js → info-N5jWZg2A.js} +1 -1
- package/chunks/{square-arrow-out-up-right-XMqOAsOL.js → square-arrow-out-up-right-x_I6wdNi.js} +1 -1
- package/chunks/{x-BXShoIAM.js → x-B9bYxG31.js} +1 -1
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.js +1 -1
- package/file-upload/index.js +1 -1
- package/index.js +40 -40
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/index.js +1 -1
- package/link/Link.d.ts +1 -1
- package/link/index.js +1 -1
- package/link-button/LinkButton.d.ts +3 -3
- package/link-button/index.js +1 -1
- package/list-box/index.js +2 -2
- package/logo/Logo.d.ts +1 -1
- package/logo/index.js +1 -1
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +2 -2
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/spinner/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.js +1 -1
- package/textfield/TextArea.stories.d.ts +9 -9
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/chunks/Checkbox-BTAfwDxU.js +0 -130
- package/chunks/Link-yTNUNv3C.js +0 -54
- package/chunks/LinkButton-3nAekUJ4.js +0 -63
|
@@ -1,33 +1,51 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import '../assets/Logo.css';const
|
|
5
|
-
container:
|
|
6
|
-
noPadding:
|
|
7
|
-
logo:
|
|
8
|
-
primary:
|
|
9
|
-
dark:
|
|
10
|
-
xSmall:
|
|
11
|
-
small:
|
|
12
|
-
large:
|
|
13
|
-
},
|
|
14
|
-
en:
|
|
15
|
-
sv:
|
|
16
|
-
},
|
|
17
|
-
primary:
|
|
18
|
-
size:
|
|
19
|
-
padding:
|
|
20
|
-
className:
|
|
21
|
-
...
|
|
22
|
-
}) =>
|
|
23
|
-
|
|
1
|
+
import { jsx as c, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { u as n } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
4
|
+
import '../assets/Logo.css';const r = "_container_191fy_1", v = "_noPadding_191fy_6", i = "_logo_191fy_10", m = "_primary_191fy_15", p = "_dark_191fy_23", g = "_xSmall_191fy_31", f = "_small_191fy_35", M = "_large_191fy_39", l = {
|
|
5
|
+
container: r,
|
|
6
|
+
noPadding: v,
|
|
7
|
+
logo: i,
|
|
8
|
+
primary: m,
|
|
9
|
+
dark: p,
|
|
10
|
+
xSmall: g,
|
|
11
|
+
small: f,
|
|
12
|
+
large: M
|
|
13
|
+
}, Z = { logotype: "Logotype of the Swedish Migration Agency" }, _ = { logotype: "Migrationsverkets logotyp" }, y = {
|
|
14
|
+
en: Z,
|
|
15
|
+
sv: _
|
|
16
|
+
}, S = ({
|
|
17
|
+
primary: a = !0,
|
|
18
|
+
size: o = "medium",
|
|
19
|
+
padding: h = !0,
|
|
20
|
+
className: e,
|
|
21
|
+
...s
|
|
22
|
+
}) => /* @__PURE__ */ c(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
className: t(
|
|
26
|
+
l.container,
|
|
27
|
+
h === !1 && l.noPadding,
|
|
28
|
+
e
|
|
29
|
+
),
|
|
30
|
+
...s,
|
|
31
|
+
children: /* @__PURE__ */ c(
|
|
32
|
+
u,
|
|
33
|
+
{
|
|
34
|
+
size: o,
|
|
35
|
+
primary: a
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
), u = ({ size: a, primary: o }) => {
|
|
40
|
+
const h = t(
|
|
24
41
|
l.logo,
|
|
25
|
-
|
|
42
|
+
o ? l.primary : l.dark,
|
|
26
43
|
a === "x-small" && l.xSmall,
|
|
27
44
|
a === "medium" && l.medium,
|
|
28
45
|
a === "large" && l.large,
|
|
29
46
|
a === "small" && l.small
|
|
30
|
-
), e =
|
|
47
|
+
), e = n(y);
|
|
48
|
+
return a === "x-small" ? /* @__PURE__ */ c(
|
|
31
49
|
"svg",
|
|
32
50
|
{
|
|
33
51
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -39,7 +57,7 @@ import '../assets/Logo.css';const m = "_container_191fy_1", p = "_noPadding_191f
|
|
|
39
57
|
"aria-label": e.format("logotype"),
|
|
40
58
|
children: /* @__PURE__ */ c("path", { d: "M99.99,91.69c-1.84-1.11-4.05-4.55-4.05-9.46V9.15c0-4.79,1.96-7.25,3.81-8.85h-14.75l-33.91,65.47L12.41.3H0c1.6,1.59,3.93,3.07,3.93,8.23v75.55c0,3.56-2.21,6.51-3.81,7.61h16.34c-1.72-1.22-3.93-4.18-3.93-7.98V25.97l36.24,61.42,33.04-63.26v58.96c0,5.53-2.21,7.61-3.81,8.6h21.99Z" })
|
|
41
59
|
}
|
|
42
|
-
) : /* @__PURE__ */
|
|
60
|
+
) : /* @__PURE__ */ d(
|
|
43
61
|
"svg",
|
|
44
62
|
{
|
|
45
63
|
role: "img",
|
|
@@ -119,19 +137,7 @@ import '../assets/Logo.css';const m = "_container_191fy_1", p = "_noPadding_191f
|
|
|
119
137
|
]
|
|
120
138
|
}
|
|
121
139
|
);
|
|
122
|
-
return /* @__PURE__ */ c(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
className: o(
|
|
126
|
-
l.container,
|
|
127
|
-
s === !1 && l.noPadding,
|
|
128
|
-
d
|
|
129
|
-
),
|
|
130
|
-
...n,
|
|
131
|
-
children: /* @__PURE__ */ c(r, {})
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
140
|
};
|
|
135
141
|
export {
|
|
136
|
-
L
|
|
142
|
+
S as L
|
|
137
143
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as d, Fragment as _ } from "react/jsx-runtime";
|
|
2
2
|
import { ProgressBar as f } from "react-aria-components";
|
|
3
|
-
import { L as t } from "./Label-
|
|
3
|
+
import { L as t } from "./Label-6GZmmff9.js";
|
|
4
4
|
import { c as l } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import '../assets/ProgressBar.css';const N = "_progressBar_1a2ad_1", g = "_label_1a2ad_9", p = "_value_1a2ad_14", v = "_bar_1a2ad_19", h = "_fill_1a2ad_29", e = {
|
|
6
6
|
progressBar: N,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { Radio as u, RadioGroup as _, Group as f } from "react-aria-components";
|
|
3
3
|
import { c as p } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { a as G, L as R } from "./Label-
|
|
4
|
+
import { a as G, L as R } from "./Label-6GZmmff9.js";
|
|
5
5
|
import { T as h } from "./Text-Bxww8mmL.js";
|
|
6
6
|
import { F as t } from "./FieldError-C_3uLAGY.js";
|
|
7
7
|
import '../assets/Radio.css';const x = "_radioGroup_1ls9z_1", w = "_wrap_1ls9z_12", z = "_radio_1ls9z_1", s = {
|
|
@@ -3,10 +3,10 @@ import { RangeCalendarContext as h, CalendarGrid as C, CalendarCell as g, Calend
|
|
|
3
3
|
import { c as p, a as l } from "./clsx-AexbMWKp.js";
|
|
4
4
|
import { F as c } from "./FieldError-C_3uLAGY.js";
|
|
5
5
|
import * as y from "react";
|
|
6
|
-
import { B as i } from "./Button-
|
|
6
|
+
import { B as i } from "./Button-CaLOUTDO.js";
|
|
7
7
|
import { H as f } from "./Heading-D8tNNJkt.js";
|
|
8
|
-
import { c as R } from "./createLucideIcon-
|
|
9
|
-
import { C as x } from "./chevron-right-
|
|
8
|
+
import { c as R } from "./createLucideIcon-CP-mMPfa.js";
|
|
9
|
+
import { C as x } from "./chevron-right-DvXGOiS_.js";
|
|
10
10
|
import '../assets/RangeCalendar.css';const u = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], N = R("chevron-left", u), q = "_container_eq3gc_1", I = "_calendar_eq3gc_6", $ = "_day_eq3gc_28", G = "_header_eq3gc_92", H = "_range_eq3gc_159", r = {
|
|
11
11
|
container: q,
|
|
12
12
|
calendar: I,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { s as C } from "./TextField.module-B3n8v1vH.js";
|
|
3
|
-
import { B as F } from "./Button-
|
|
4
|
-
import { C as N } from "./ClearButton-
|
|
3
|
+
import { B as F } from "./Button-CaLOUTDO.js";
|
|
4
|
+
import { C as N } from "./ClearButton-DPm_d7SL.js";
|
|
5
5
|
import { c as l } from "./clsx-AexbMWKp.js";
|
|
6
6
|
import * as x from "react";
|
|
7
7
|
import { useSearchFieldState as j } from "react-stately";
|
|
8
8
|
import { useSearchField as p } from "react-aria";
|
|
9
9
|
import { F as _ } from "./FieldError-C_3uLAGY.js";
|
|
10
|
-
import { c as B } from "./createLucideIcon-
|
|
10
|
+
import { c as B } from "./createLucideIcon-CP-mMPfa.js";
|
|
11
11
|
import { u as D } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
12
12
|
import '../assets/SearchField.css';const E = [
|
|
13
13
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import { useMemo as z, useState as V, useCallback as I, useEffect as M, useRef as
|
|
3
|
+
import { useMemo as z, useState as V, useCallback as I, useEffect as M, useRef as D } from "react";
|
|
4
4
|
import { c as B } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { filterDOMProps as
|
|
5
|
+
import { filterDOMProps as L, mergeProps as x, useId as O, chain as q, useFormReset as N, useObjectRef as R } from "@react-aria/utils";
|
|
6
6
|
import { Section as E, Item as C } from "@react-stately/collections";
|
|
7
7
|
import { Collection as j, FieldErrorContext as G, TextField as H, TagList as $ } from "react-aria-components";
|
|
8
8
|
import { L as W } from "./ListBox-D5BBeZWL.js";
|
|
9
|
-
import {
|
|
9
|
+
import { c as U, a as X, b as J } from "./ListBoxSection-C4y3K7T5.js";
|
|
10
10
|
import { useCollator as Q, useField as Y, useButton as Z } from "react-aria";
|
|
11
11
|
import { setInteractionModality as ee } from "@react-aria/interactions";
|
|
12
12
|
import { useMenuTrigger as te } from "@react-aria/menu";
|
|
@@ -14,15 +14,15 @@ import { ListKeyboardDelegate as le, useTypeSelect as oe } from "@react-aria/sel
|
|
|
14
14
|
import { useMenuTriggerState as ne } from "@react-stately/menu";
|
|
15
15
|
import { useFormValidationState as ie } from "@react-stately/form";
|
|
16
16
|
import { useListState as re } from "@react-stately/list";
|
|
17
|
-
import { a as se, T as ae } from "./Tag-
|
|
17
|
+
import { a as se, T as ae } from "./Tag-C7VZ0T0o.js";
|
|
18
18
|
import { useFormValidation as ce } from "@react-aria/form";
|
|
19
19
|
import { useVisuallyHidden as de } from "@react-aria/visually-hidden";
|
|
20
|
-
import { a as ue, L as ge } from "./Label-
|
|
20
|
+
import { a as ue, L as ge } from "./Label-6GZmmff9.js";
|
|
21
21
|
import { T as me } from "./Text-Bxww8mmL.js";
|
|
22
|
-
import { C as fe } from "./Checkbox-
|
|
23
|
-
import { X as pe } from "./x-
|
|
22
|
+
import { C as fe } from "./Checkbox-CRLj7_Ox.js";
|
|
23
|
+
import { X as pe } from "./x-B9bYxG31.js";
|
|
24
24
|
import { u as T } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
25
|
-
import { C as ye } from "./chevron-down-
|
|
25
|
+
import { C as ye } from "./chevron-down-BBFYYzZq.js";
|
|
26
26
|
import { F as he } from "./FieldError-C_3uLAGY.js";
|
|
27
27
|
import '../assets/Select2.css';const A = ({ item: e }) => /* @__PURE__ */ n(
|
|
28
28
|
X,
|
|
@@ -96,7 +96,7 @@ function ve(e, t, s) {
|
|
|
96
96
|
labelElementType: "span"
|
|
97
97
|
});
|
|
98
98
|
c.onKeyDown = c.onKeyDownCapture, delete c.onKeyDownCapture;
|
|
99
|
-
const g =
|
|
99
|
+
const g = L(e, { labelable: !0 }), y = x(c, a, p), K = O();
|
|
100
100
|
return {
|
|
101
101
|
labelProps: {
|
|
102
102
|
...b,
|
|
@@ -261,7 +261,7 @@ function _e({
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
function we(e) {
|
|
264
|
-
const { state: t, triggerRef: s, name: r, isDisabled: l } = e, i = `${e.label}-hidden`, o =
|
|
264
|
+
const { state: t, triggerRef: s, name: r, isDisabled: l } = e, i = `${e.label}-hidden`, o = D(null), { containerProps: a, selectProps: d } = _e(
|
|
265
265
|
{ ...e, selectRef: o },
|
|
266
266
|
t,
|
|
267
267
|
s
|
|
@@ -307,7 +307,7 @@ function we(e) {
|
|
|
307
307
|
}
|
|
308
308
|
) : null;
|
|
309
309
|
}
|
|
310
|
-
const Ve = "_wrapper_odqg7_1", Me = "_trigger_odqg7_12", Be = "_medium_odqg7_26", Te = "_icon_odqg7_62", Ae = "_tagGroup_odqg7_68", Fe = "_triggerContainer_odqg7_89", ke = "_selectValueTag_odqg7_95", ze = "_clearButton_odqg7_111", Ie = "_truncate_odqg7_123",
|
|
310
|
+
const Ve = "_wrapper_odqg7_1", Me = "_trigger_odqg7_12", Be = "_medium_odqg7_26", Te = "_icon_odqg7_62", Ae = "_tagGroup_odqg7_68", Fe = "_triggerContainer_odqg7_89", ke = "_selectValueTag_odqg7_95", ze = "_clearButton_odqg7_111", Ie = "_truncate_odqg7_123", De = "_selectAll_odqg7_166", f = {
|
|
311
311
|
wrapper: Ve,
|
|
312
312
|
trigger: Me,
|
|
313
313
|
medium: Be,
|
|
@@ -317,9 +317,9 @@ const Ve = "_wrapper_odqg7_1", Me = "_trigger_odqg7_12", Be = "_medium_odqg7_26"
|
|
|
317
317
|
selectValueTag: ke,
|
|
318
318
|
clearButton: ze,
|
|
319
319
|
truncate: Ie,
|
|
320
|
-
selectAll:
|
|
321
|
-
},
|
|
322
|
-
en:
|
|
320
|
+
selectAll: De
|
|
321
|
+
}, Le = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", chosen: "chosen" }, Oe = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", chosen: "valda" }, F = {
|
|
322
|
+
en: Le,
|
|
323
323
|
sv: Oe
|
|
324
324
|
}, qe = ({
|
|
325
325
|
state: { selectedItems: e },
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as e,
|
|
1
|
+
import { jsx as e, Fragment as V, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { SelectStateContext as d, SelectValue as _, Button as h, TagList as j, Select as A } from "react-aria-components";
|
|
3
3
|
import { FocusScope as C } from "@react-aria/focus";
|
|
4
|
-
import { a as N, L as x } from "./Label-
|
|
4
|
+
import { a as N, L as x } from "./Label-6GZmmff9.js";
|
|
5
5
|
import { a as b, c as T } from "./clsx-AexbMWKp.js";
|
|
6
6
|
import { T as y } from "./Text-Bxww8mmL.js";
|
|
7
7
|
import { F as g } from "./FieldError-C_3uLAGY.js";
|
|
8
8
|
import p, { useContext as f } from "react";
|
|
9
|
-
import { C as B } from "./Checkbox-
|
|
9
|
+
import { C as B } from "./Checkbox-CRLj7_Ox.js";
|
|
10
10
|
import { u as m } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
11
11
|
import { useFocusManager as M } from "react-aria";
|
|
12
|
-
import { X as F } from "./x-
|
|
12
|
+
import { X as F } from "./x-B9bYxG31.js";
|
|
13
13
|
import { L } from "./ListBox-D5BBeZWL.js";
|
|
14
14
|
import { P as I } from "./Popover-BcEtFiU1.js";
|
|
15
|
-
import { a as G, T as k } from "./Tag-
|
|
16
|
-
import { C as R } from "./chevron-down-
|
|
15
|
+
import { a as G, T as k } from "./Tag-C7VZ0T0o.js";
|
|
16
|
+
import { C as R } from "./chevron-down-BBFYYzZq.js";
|
|
17
17
|
import '../assets/Select.css';const $ = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", selected: "selected" }, w = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", selected: "valda" }, u = {
|
|
18
18
|
en: $,
|
|
19
19
|
sv: w
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as r, Fragment as i } from "react/jsx-runtime";
|
|
2
2
|
import { Menu as _, MenuItem as l, Popover as d, MenuSection as k, Separator as M } from "react-aria-components";
|
|
3
3
|
import { c as m } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { C as h } from "./check-
|
|
5
|
-
import { C as S } from "./chevron-right-
|
|
4
|
+
import { C as h } from "./check-Bt2UikoU.js";
|
|
5
|
+
import { C as S } from "./chevron-right-DvXGOiS_.js";
|
|
6
6
|
import '../assets/Separator.css';const f = "_menu_1ku97_1", p = "_menuSection_1ku97_17", v = "_medium_1ku97_29", C = "_menuItem_1ku97_35", N = "_mainContent_1ku97_105", I = "_checkMark_1ku97_116", x = "_separator_1ku97_126", P = "_menuPopover_1ku97_149", o = {
|
|
7
7
|
menu: f,
|
|
8
8
|
menuSection: p,
|
|
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as r } from "./clsx-AexbMWKp.js";
|
|
3
3
|
import { VisuallyHidden as c } from "react-aria";
|
|
4
4
|
import { u as l } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
5
|
-
import { c as d } from "./createLucideIcon-
|
|
5
|
+
import { c as d } from "./createLucideIcon-CP-mMPfa.js";
|
|
6
6
|
import '../assets/Spinner.css';const m = "_container_1qexx_1", p = "_spinner_1qexx_5", g = "_large_1qexx_18", n = {
|
|
7
7
|
container: m,
|
|
8
8
|
spinner: p,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { C as h } from "./Checkbox-
|
|
2
|
+
import { Cell as w, Column as g, useTableOptions as u, Row as N, Button as k, Collection as p, Table as f, TableBody as x, TableHeader as T } from "react-aria-components";
|
|
3
|
+
import { C as h } from "./Checkbox-CRLj7_Ox.js";
|
|
4
4
|
import { c as a } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { c as d } from "./createLucideIcon-
|
|
5
|
+
import { c as d } from "./createLucideIcon-CP-mMPfa.js";
|
|
6
6
|
import '../assets/Table.css';const C = [
|
|
7
7
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
8
8
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
@@ -41,7 +41,7 @@ const H = [
|
|
|
41
41
|
className: t,
|
|
42
42
|
...s
|
|
43
43
|
}) => /* @__PURE__ */ e(
|
|
44
|
-
|
|
44
|
+
f,
|
|
45
45
|
{
|
|
46
46
|
className: a(o.table, t, {
|
|
47
47
|
[o.medium]: c === "medium",
|
|
@@ -55,7 +55,7 @@ const H = [
|
|
|
55
55
|
className: t
|
|
56
56
|
}) => {
|
|
57
57
|
const { selectionBehavior: s, selectionMode: r, allowsDragging: n } = u();
|
|
58
|
-
return /* @__PURE__ */ i(
|
|
58
|
+
return /* @__PURE__ */ i(T, { className: a(t, o.tableHeader), children: [
|
|
59
59
|
n && /* @__PURE__ */ e(m, {}),
|
|
60
60
|
s === "toggle" && /* @__PURE__ */ e(m, { width: 50, children: r === "multiple" && /* @__PURE__ */ e(
|
|
61
61
|
h,
|
|
@@ -94,7 +94,7 @@ const H = [
|
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
}, m = ({ children: c, className: l, ...t }) => /* @__PURE__ */ e(
|
|
97
|
-
|
|
97
|
+
g,
|
|
98
98
|
{
|
|
99
99
|
className: a(l, o.column),
|
|
100
100
|
...t,
|
|
@@ -114,7 +114,7 @@ const H = [
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
), _ = ({ className: c, ...l }) => /* @__PURE__ */ e(
|
|
117
|
-
|
|
117
|
+
w,
|
|
118
118
|
{
|
|
119
119
|
className: a(c, o.cell),
|
|
120
120
|
...l
|
|
@@ -123,17 +123,17 @@ const H = [
|
|
|
123
123
|
className: c,
|
|
124
124
|
...l
|
|
125
125
|
}) => /* @__PURE__ */ e(
|
|
126
|
-
|
|
126
|
+
x,
|
|
127
127
|
{
|
|
128
128
|
className: a(c, o.tableBody),
|
|
129
129
|
...l
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
_ as C,
|
|
134
134
|
W as R,
|
|
135
135
|
P as T,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
m as a,
|
|
137
|
+
X as b,
|
|
138
|
+
Q as c
|
|
139
139
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Tag as c, TagGroup as _, TagList as e } from "react-aria-components";
|
|
3
|
-
import { B as g } from "./Button-
|
|
3
|
+
import { B as g } from "./Button-CaLOUTDO.js";
|
|
4
4
|
import { c as u } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { X as l } from "./x-
|
|
5
|
+
import { X as l } from "./x-B9bYxG31.js";
|
|
6
6
|
import '../assets/Tag.css';const T = "_button_1nm6n_1", p = "_success_1nm6n_16", f = "_warning_1nm6n_17", d = "_info_1nm6n_18", x = "_important_1nm6n_19", b = "_tag_1nm6n_31", w = "_tagText_1nm6n_83", L = "_dismissable_1nm6n_88", N = "_tagList_1nm6n_92", s = {
|
|
7
7
|
button: T,
|
|
8
8
|
success: p,
|
|
@@ -4,11 +4,11 @@ import { useContextProps as p, TextFieldContext as b, TextField as g, InputConte
|
|
|
4
4
|
import { a as A, c as h } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { s as d } from "./TextField.module-B3n8v1vH.js";
|
|
6
6
|
import { T as w } from "./Text-Bxww8mmL.js";
|
|
7
|
-
import { B } from "./Button-
|
|
7
|
+
import { B } from "./Button-CaLOUTDO.js";
|
|
8
8
|
import { u as L } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
9
9
|
import { F as u } from "./FieldError-C_3uLAGY.js";
|
|
10
10
|
import { C as E } from "./CharacterCounter-R6vh7AE5.js";
|
|
11
|
-
import { a as S, L as $ } from "./Label-
|
|
11
|
+
import { a as S, L as $ } from "./Label-6GZmmff9.js";
|
|
12
12
|
const x = l(
|
|
13
13
|
(e, a) => {
|
|
14
14
|
[e] = p(e, a, b);
|
|
@@ -131,7 +131,7 @@ const M = l(
|
|
|
131
131
|
M.displayName = "TextArea";
|
|
132
132
|
export {
|
|
133
133
|
F as I,
|
|
134
|
-
|
|
134
|
+
M as T,
|
|
135
135
|
H as a,
|
|
136
|
-
|
|
136
|
+
x as b
|
|
137
137
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n, jsxs as c, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { B as p } from "./Button-
|
|
3
|
-
import {
|
|
2
|
+
import { B as p } from "./Button-CaLOUTDO.js";
|
|
3
|
+
import { useToast as g, useToastRegion as v } from "react-aria";
|
|
4
4
|
import { ToastQueue as z, useToastQueue as w, useToastState as h } from "react-stately";
|
|
5
5
|
import m from "react";
|
|
6
6
|
import { createPortal as R, flushSync as y } from "react-dom";
|
|
7
7
|
import { c as l } from "./clsx-AexbMWKp.js";
|
|
8
|
-
import { F as b } from "./FeedbackStatusIcon-
|
|
9
|
-
import { X as P } from "./x-
|
|
8
|
+
import { F as b } from "./FeedbackStatusIcon-X9Bjgeta.js";
|
|
9
|
+
import { X as P } from "./x-B9bYxG31.js";
|
|
10
10
|
import '../assets/Toast.css';const I = "_toastRegion_16lmz_49", N = "_toast_16lmz_49", E = "_success_16lmz_97", O = "_info_16lmz_105", x = "_important_16lmz_113", C = "_warning_16lmz_121", M = "_icon_16lmz_129", S = "_toastContent_16lmz_143", k = "_toastMessage_16lmz_150", B = "_viewTransition_16lmz_156", F = "_slideInTop_16lmz_1", Q = "_slideInEnd_16lmz_1", V = "_slideOutTop_16lmz_1", j = "_slideOutEnd_16lmz_1", e = {
|
|
11
11
|
toastRegion: I,
|
|
12
12
|
toast: N,
|
|
@@ -59,7 +59,7 @@ function u({
|
|
|
59
59
|
className: o,
|
|
60
60
|
...s
|
|
61
61
|
}) {
|
|
62
|
-
const a = m.useRef(null), { regionProps: r } =
|
|
62
|
+
const a = m.useRef(null), { regionProps: r } = v(s, t, a);
|
|
63
63
|
return /* @__PURE__ */ n(
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
@@ -82,7 +82,7 @@ function U({
|
|
|
82
82
|
className: o,
|
|
83
83
|
...s
|
|
84
84
|
}) {
|
|
85
|
-
const a = m.useRef(null), { toastProps: r, contentProps: i, titleProps: d, closeButtonProps: T } =
|
|
85
|
+
const a = m.useRef(null), { toastProps: r, contentProps: i, titleProps: d, closeButtonProps: T } = g(
|
|
86
86
|
s,
|
|
87
87
|
t,
|
|
88
88
|
a
|
|
@@ -150,8 +150,8 @@ function U({
|
|
|
150
150
|
}
|
|
151
151
|
export {
|
|
152
152
|
Y as G,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
U as T,
|
|
154
|
+
Z as a,
|
|
155
|
+
u as b,
|
|
156
156
|
G as t
|
|
157
157
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { forwardRef as l, createElement as n } from "react";
|
|
2
|
-
const
|
|
2
|
+
const u = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim();
|
|
3
|
+
const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
4
|
+
const f = (t) => t.replace(
|
|
3
5
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
4
6
|
(e, r, o) => o ? o.toUpperCase() : r.toLowerCase()
|
|
5
|
-
)
|
|
6
|
-
|
|
7
|
+
);
|
|
8
|
+
const i = (t) => {
|
|
9
|
+
const e = f(t);
|
|
7
10
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
8
|
-
}, u = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), f = (t) => {
|
|
9
|
-
for (const e in t)
|
|
10
|
-
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
11
|
-
return !0;
|
|
12
11
|
};
|
|
13
|
-
var
|
|
12
|
+
var h = {
|
|
14
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15
14
|
width: 24,
|
|
16
15
|
height: 24,
|
|
@@ -21,6 +20,12 @@ var g = {
|
|
|
21
20
|
strokeLinecap: "round",
|
|
22
21
|
strokeLinejoin: "round"
|
|
23
22
|
};
|
|
23
|
+
const g = (t) => {
|
|
24
|
+
for (const e in t)
|
|
25
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
26
|
+
return !0;
|
|
27
|
+
return !1;
|
|
28
|
+
};
|
|
24
29
|
const A = l(
|
|
25
30
|
({
|
|
26
31
|
color: t = "currentColor",
|
|
@@ -35,13 +40,13 @@ const A = l(
|
|
|
35
40
|
"svg",
|
|
36
41
|
{
|
|
37
42
|
ref: m,
|
|
38
|
-
...
|
|
43
|
+
...h,
|
|
39
44
|
width: e,
|
|
40
45
|
height: e,
|
|
41
46
|
stroke: t,
|
|
42
47
|
strokeWidth: o ? Number(r) * 24 / Number(e) : r,
|
|
43
48
|
className: u("lucide", s),
|
|
44
|
-
...!a && !
|
|
49
|
+
...!a && !g(c) && { "aria-hidden": "true" },
|
|
45
50
|
...c
|
|
46
51
|
},
|
|
47
52
|
[
|
package/clear-button/index.js
CHANGED
package/combobox/index.js
CHANGED
package/date-field/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as t } from "../chunks/DateField-
|
|
2
|
-
import {
|
|
1
|
+
import { D as t } from "../chunks/DateField-zdUv4ooW.js";
|
|
2
|
+
import { D as r, a as o, b as p } from "../chunks/DateInputDivider-DwopMIb9.js";
|
|
3
3
|
export {
|
|
4
4
|
t as DateField,
|
|
5
5
|
r as DateInput,
|
package/date-picker/index.js
CHANGED
package/file-upload/index.js
CHANGED