@midas-ds/components 15.4.0 → 15.5.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.
Files changed (143) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/accordion/AccordionItem.d.ts +5 -0
  3. package/accordion/index.js +1 -1
  4. package/badge/index.js +1 -1
  5. package/breadcrumbs/index.js +1 -1
  6. package/button/index.js +2 -2
  7. package/calendar/index.js +1 -1
  8. package/card/index.js +1 -1
  9. package/character-counter/index.js +1 -1
  10. package/checkbox/index.js +2 -2
  11. package/chunks/AccordionItem-BDkCTxFM.js +132 -0
  12. package/chunks/{BadgeContainer-BJAC-kV0.js → BadgeContainer-CKVsfTlF.js} +1 -1
  13. package/chunks/Breadcrumbs-By2bMbQd.js +28 -0
  14. package/chunks/Button-DbQwg49l.js +46 -0
  15. package/chunks/{ButtonGroup-B6mr4JGY.js → ButtonGroup-Dr6HOBo2.js} +1 -1
  16. package/chunks/Card-ia98VoKL.js +130 -0
  17. package/chunks/CharacterCounter-DeuE2det.js +21 -0
  18. package/chunks/Checkbox-ClhO-AzB.js +122 -0
  19. package/chunks/CheckboxGroup-CIFMaanI.js +84 -0
  20. package/chunks/{ColorSchemeSwitch-Cd6VSXql.js → ColorSchemeSwitch-DugvPh6T.js} +17 -17
  21. package/chunks/ComboBox-D86agoIk.js +108 -0
  22. package/chunks/DateField-CdJdPIuj.js +46 -0
  23. package/chunks/DateInputDivider-CkTB5q5k.js +36 -0
  24. package/chunks/DateRangePicker-p0l1tSMb.js +117 -0
  25. package/chunks/Dialog-BndmKdiv.js +66 -0
  26. package/chunks/Dropdown-CWP2clB2.js +79 -0
  27. package/chunks/FeedbackStatusIcon-COWuMusk.js +56 -0
  28. package/chunks/FieldError-C0HRIcAx.js +23 -0
  29. package/chunks/FileUpload-h1PxqQmb.js +16 -0
  30. package/chunks/{Grid-DeB7TdcZ.js → Grid-B-WgMwON.js} +2 -2
  31. package/chunks/{GridItem-B_3FFhPs.js → GridItem-5t1Z14sM.js} +1 -1
  32. package/chunks/Heading-D8tNNJkt.js +38 -0
  33. package/chunks/InfoBanner-tXWNVxpu.js +72 -0
  34. package/chunks/Label-B7taTXkd.js +73 -0
  35. package/chunks/{Layout-InD0Hl7F.js → Layout-DPRkHK4y.js} +70 -70
  36. package/chunks/Link-yTNUNv3C.js +54 -0
  37. package/chunks/LinkButton-3nAekUJ4.js +63 -0
  38. package/chunks/{ListBox-CKDglhFH.js → ListBox-D4tO_OrO.js} +18 -18
  39. package/chunks/ListBoxLoadMoreItem-BKptRAtt.js +41 -0
  40. package/chunks/ListBoxSection-DKHba2X0.js +49 -0
  41. package/chunks/{Logo-D80UDT1x.js → Logo-InDSslpO.js} +2 -2
  42. package/chunks/Popover-BAdqdN6C.js +38 -0
  43. package/chunks/ProgressBar-B2W7BTjA.js +53 -0
  44. package/chunks/Radio-BzuxVV_g.js +43 -0
  45. package/chunks/RangeCalendar-CuXHsT-k.js +99 -0
  46. package/chunks/{SearchField-Dr3DAs9W.js → SearchField-CLrAjcdA.js} +39 -39
  47. package/chunks/{Select-fDRXxmLm.js → Select-C-0lWpoz.js} +48 -46
  48. package/chunks/Select-CzfIyTE7.js +576 -0
  49. package/chunks/Separator-BcnQEA9f.js +76 -0
  50. package/chunks/{Skeleton-Bcg_xgAx.js → Skeleton-DqIHQLQl.js} +1 -1
  51. package/chunks/Spinner-CL9evrHm.js +49 -0
  52. package/chunks/TabList-D2XV5ixe.js +81 -0
  53. package/chunks/Table-B1rlSIhS.js +139 -0
  54. package/chunks/Tag-CEfQksg8.js +53 -0
  55. package/chunks/{Text-WP6RbnnK.js → Text-TWzJxnto.js} +9 -9
  56. package/chunks/TextArea-34YgkUEE.js +124 -0
  57. package/chunks/{Toast-CP_V12b3.js → Toast-CCA9sCnB.js} +46 -45
  58. package/chunks/ToggleButtonGroup-CXKTrLbb.js +29 -0
  59. package/chunks/Tooltip-CtstfI8u.js +46 -0
  60. package/chunks/clsx-AexbMWKp.js +24 -0
  61. package/chunks/useLocalizedStringFormatter-ZgRJmvHC.js +25 -0
  62. package/color-scheme-switch/index.js +1 -1
  63. package/combobox/index.js +1 -1
  64. package/common/FeedbackStatusIcon.d.ts +6 -0
  65. package/common/intl/translations.json.d.ts +17 -0
  66. package/date-field/index.js +2 -2
  67. package/date-picker/index.js +1 -1
  68. package/dropdown/index.js +1 -1
  69. package/field-error/index.js +1 -1
  70. package/file-upload/index.js +1 -1
  71. package/grid/index.js +2 -2
  72. package/heading/index.js +1 -1
  73. package/index.js +68 -68
  74. package/info-banner/index.js +1 -1
  75. package/label/index.js +1 -1
  76. package/layout/index.js +1 -1
  77. package/legacy-select/index.js +1 -1
  78. package/link/index.js +3 -3
  79. package/link-button/index.js +3 -3
  80. package/list-box/index.js +3 -3
  81. package/logo/index.js +1 -1
  82. package/menu/index.js +5 -5
  83. package/modal/index.js +2 -2
  84. package/package.json +2 -3
  85. package/popover/index.js +1 -1
  86. package/progress-bar/index.js +1 -1
  87. package/radio/index.js +1 -1
  88. package/search-field/index.js +1 -1
  89. package/select/index.js +1 -1
  90. package/skeleton/index.js +1 -1
  91. package/spinner/index.js +1 -1
  92. package/table/index.js +1 -1
  93. package/tabs/index.js +1 -1
  94. package/tag/index.js +1 -1
  95. package/text/index.js +1 -1
  96. package/textfield/index.js +1 -1
  97. package/toast/Toast.d.ts +1 -1
  98. package/toast/index.js +1 -1
  99. package/toggle-button/index.js +1 -1
  100. package/tooltip/index.js +1 -1
  101. package/chunks/AccordionItem-BCoomT4-.js +0 -132
  102. package/chunks/Breadcrumbs-CnuqEeOL.js +0 -28
  103. package/chunks/Button-CHs1wv7n.js +0 -46
  104. package/chunks/Card-D58EJCcV.js +0 -130
  105. package/chunks/CharacterCounter-CzCvDmNP.js +0 -21
  106. package/chunks/Checkbox-CogzFDe3.js +0 -119
  107. package/chunks/CheckboxGroup-BLx25gqn.js +0 -83
  108. package/chunks/ComboBox-8YAwADqL.js +0 -108
  109. package/chunks/DateField-CpbYROK1.js +0 -46
  110. package/chunks/DateInputDivider-C43xP4is.js +0 -36
  111. package/chunks/DateRangePicker-CICkmtXG.js +0 -116
  112. package/chunks/Dialog-DBn9L3SP.js +0 -66
  113. package/chunks/Dropdown-Cctv2Qpv.js +0 -79
  114. package/chunks/FieldError-CZKAYQ-n.js +0 -23
  115. package/chunks/FileUpload-DILt4rAn.js +0 -16
  116. package/chunks/Heading-DIw3iLMN.js +0 -38
  117. package/chunks/InfoBanner-Bw3rjGtB.js +0 -72
  118. package/chunks/Label-CKe9pgXT.js +0 -73
  119. package/chunks/Link-C3w5O2wT.js +0 -54
  120. package/chunks/LinkButton-D6X0Dvoz.js +0 -63
  121. package/chunks/ListBoxLoadMoreItem-y9pCuqRe.js +0 -41
  122. package/chunks/ListBoxSection-CvtRigQb.js +0 -49
  123. package/chunks/Popover-DktRiuCr.js +0 -38
  124. package/chunks/ProgressBar-Bjxi5TgY.js +0 -53
  125. package/chunks/Radio-DqFFcFra.js +0 -43
  126. package/chunks/RangeCalendar-CIxwICEf.js +0 -99
  127. package/chunks/Select-BSqv5Qi-.js +0 -566
  128. package/chunks/Separator-Cw1vlSYO.js +0 -76
  129. package/chunks/Spinner-B2EAm49Z.js +0 -48
  130. package/chunks/TabList-BIBQcX2n.js +0 -81
  131. package/chunks/Table-Cy-R3Ma8.js +0 -139
  132. package/chunks/Tag-BZnq1_yZ.js +0 -53
  133. package/chunks/TextArea-3fPkKmNx.js +0 -124
  134. package/chunks/ToggleButtonGroup-CgNeypuW.js +0 -29
  135. package/chunks/Tooltip-C53p0sfk.js +0 -46
  136. package/chunks/clsx-CuNqTHjr.js +0 -11
  137. package/chunks/icon-map-Ckc-nEUA.js +0 -31
  138. package/chunks/internationalized-C9snpc7V.js +0 -1955
  139. package/chunks/react-aria-components-mIKW9wOa.js +0 -22645
  140. package/chunks/react-stately-DRNKkAB0.js +0 -2586
  141. package/chunks/useLocalizedStringFormatter-CPwiI7nv.js +0 -25
  142. package/chunks/variables-BkqZ2WGF.js +0 -5
  143. package/common/icon-map.d.ts +0 -6
@@ -1,46 +0,0 @@
1
- import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
- import { H as F } from "./react-aria-components-mIKW9wOa.js";
3
- import { c as l } from "./clsx-CuNqTHjr.js";
4
- import { a as f, D as _ } from "./DateInputDivider-C43xP4is.js";
5
- import { F as s } from "./FieldError-CZKAYQ-n.js";
6
- import { a as h, L as b } from "./Label-CKe9pgXT.js";
7
- import { T as x } from "./Text-WP6RbnnK.js";
8
- import '../assets/DateField.css';const D = "_dateField_y3sba_1", y = "_inputField_y3sba_7", L = "_medium_y3sba_37", t = {
9
- dateField: D,
10
- inputField: y,
11
- medium: L
12
- }, H = ({
13
- className: r,
14
- description: i,
15
- errorMessage: d,
16
- errorPosition: a = "top",
17
- label: m,
18
- size: o = "large",
19
- popover: c,
20
- ...n
21
- }) => /* @__PURE__ */ u(
22
- F,
23
- {
24
- ...n,
25
- className: l(t.dateField, r),
26
- children: [
27
- /* @__PURE__ */ e(h, { popover: c, children: m && /* @__PURE__ */ e(b, { children: m }) }),
28
- i && /* @__PURE__ */ e(x, { slot: "description", children: i }),
29
- a === "top" && /* @__PURE__ */ e(s, { children: d }),
30
- /* @__PURE__ */ e(
31
- "div",
32
- {
33
- className: l(t.inputField, {
34
- [t.medium]: o === "medium"
35
- }),
36
- "data-testid": "date-field_input-field",
37
- children: /* @__PURE__ */ e(f, { children: (p) => /* @__PURE__ */ e(_, { segment: p }) })
38
- }
39
- ),
40
- a === "bottom" && /* @__PURE__ */ e(s, { children: d })
41
- ]
42
- }
43
- );
44
- export {
45
- H as D
46
- };
@@ -1,36 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { a9 as n, aa as c } from "./react-aria-components-mIKW9wOa.js";
3
- import { c as s } from "./clsx-CuNqTHjr.js";
4
- import '../assets/DateInputDivider.css';const o = "_dateSegment_15g5c_1", r = {
5
- dateSegment: o
6
- }, l = ({
7
- className: e,
8
- ...t
9
- }) => /* @__PURE__ */ a(
10
- n,
11
- {
12
- className: s(r.dateSegment, e),
13
- ...t
14
- }
15
- ), i = "_dateInput_14x1f_1", m = "_divider_14x1f_21", d = {
16
- dateInput: i,
17
- divider: m
18
- }, u = ({ className: e, ...t }) => /* @__PURE__ */ a(
19
- c,
20
- {
21
- className: s(d.dateInput, e),
22
- ...t
23
- }
24
- ), x = () => /* @__PURE__ */ a(
25
- "span",
26
- {
27
- "aria-hidden": "true",
28
- className: d.divider,
29
- children: "-"
30
- }
31
- );
32
- export {
33
- l as D,
34
- u as a,
35
- x as b
36
- };
@@ -1,116 +0,0 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { r as $, l as s, k as g, L as x, P as D, ay as P, az as v } from "./react-aria-components-mIKW9wOa.js";
3
- import { C as F, R as M } from "./RangeCalendar-CIxwICEf.js";
4
- import { a as p, D as b, b as N } from "./DateInputDivider-C43xP4is.js";
5
- import { F as h } from "./FieldError-CZKAYQ-n.js";
6
- import { a as u, L as k } from "./Label-CKe9pgXT.js";
7
- import { T as y } from "./Text-WP6RbnnK.js";
8
- import { c as L } from "./createLucideIcon-D4r5Phnh.js";
9
- import '../assets/DateRangePicker.css';const B = [
10
- ["path", { d: "M8 2v4", key: "1cmpym" }],
11
- ["path", { d: "M16 2v4", key: "4m81vk" }],
12
- ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
13
- ["path", { d: "M3 10h18", key: "8toen8" }],
14
- ["path", { d: "M8 14h.01", key: "6423bh" }],
15
- ["path", { d: "M12 14h.01", key: "1etili" }],
16
- ["path", { d: "M16 14h.01", key: "1gbofw" }],
17
- ["path", { d: "M8 18h.01", key: "lrp35t" }],
18
- ["path", { d: "M12 18h.01", key: "mhygvu" }],
19
- ["path", { d: "M16 18h.01", key: "kzsmim" }]
20
- ], C = L("calendar-days", B), I = "_datePicker_175bg_1", O = "_inputField_175bg_8", j = "_medium_175bg_24", w = "_readOnly_175bg_42", z = "_calendarButton_175bg_60", R = "_dialog_175bg_108", a = {
21
- datePicker: I,
22
- inputField: O,
23
- medium: j,
24
- readOnly: w,
25
- calendarButton: z,
26
- dialog: R
27
- }, f = ({
28
- children: c,
29
- isDisabled: r,
30
- isInvalid: i,
31
- isReadOnly: d,
32
- size: t = "large"
33
- }) => /* @__PURE__ */ o(
34
- $,
35
- {
36
- className: s(a.inputField, {
37
- [a.medium]: t === "medium",
38
- [a.readOnly]: d
39
- }),
40
- children: [
41
- c,
42
- /* @__PURE__ */ e(
43
- g,
44
- {
45
- className: s(a.calendarButton, {
46
- [a.medium]: t === "medium",
47
- [a.readOnly]: d
48
- }),
49
- "data-invalid": i || void 0,
50
- isDisabled: r,
51
- children: /* @__PURE__ */ e(
52
- C,
53
- {
54
- "aria-hidden": !0,
55
- size: 20
56
- }
57
- )
58
- }
59
- )
60
- ]
61
- }
62
- ), _ = ({
63
- children: c
64
- }) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(D, { className: a.dialog, children: c }) }), J = ({
65
- className: c,
66
- description: r,
67
- errorMessage: i,
68
- errorPosition: d = "top",
69
- label: t,
70
- popover: m,
71
- ...n
72
- }) => /* @__PURE__ */ o(
73
- P,
74
- {
75
- className: s(a.datePicker, c),
76
- ...n,
77
- children: [
78
- /* @__PURE__ */ e(u, { popover: m, children: t && /* @__PURE__ */ e(k, { children: t }) }),
79
- r && /* @__PURE__ */ e(y, { slot: "description", children: r }),
80
- d === "top" && /* @__PURE__ */ e(h, { children: i }),
81
- /* @__PURE__ */ e(f, { ...n, children: /* @__PURE__ */ e(p, { children: (l) => /* @__PURE__ */ e(b, { segment: l }) }) }),
82
- d === "bottom" && /* @__PURE__ */ e(h, { children: i }),
83
- /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(F, {}) })
84
- ]
85
- }
86
- ), K = ({
87
- className: c,
88
- description: r,
89
- errorMessage: i,
90
- errorPosition: d = "top",
91
- label: t,
92
- popover: m,
93
- ...n
94
- }) => /* @__PURE__ */ o(
95
- v,
96
- {
97
- className: s(a.datePicker, c),
98
- ...n,
99
- children: [
100
- /* @__PURE__ */ e(u, { popover: m, children: t && /* @__PURE__ */ e(k, { children: t }) }),
101
- r && /* @__PURE__ */ e(y, { slot: "description", children: r }),
102
- d === "top" && /* @__PURE__ */ e(h, { children: i }),
103
- /* @__PURE__ */ o(f, { ...n, children: [
104
- /* @__PURE__ */ e(p, { slot: "start", children: (l) => /* @__PURE__ */ e(b, { segment: l }) }),
105
- /* @__PURE__ */ e(N, {}),
106
- /* @__PURE__ */ e(p, { slot: "end", children: (l) => /* @__PURE__ */ e(b, { segment: l }) })
107
- ] }),
108
- d === "bottom" && /* @__PURE__ */ e(h, { children: i }),
109
- /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(M, {}) })
110
- ]
111
- }
112
- );
113
- export {
114
- J as D,
115
- K as a
116
- };
@@ -1,66 +0,0 @@
1
- import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
- import { N as c, O as n, P as i } from "./react-aria-components-mIKW9wOa.js";
3
- import { B as f } from "./Button-CHs1wv7n.js";
4
- import { H as _ } from "./Heading-DIw3iLMN.js";
5
- import { c as p } from "./clsx-CuNqTHjr.js";
6
- import { X as y } from "./x-BXShoIAM.js";
7
- import { u as v } from "./useLocalizedStringFormatter-CPwiI7nv.js";
8
- import '../assets/Dialog.css';const h = "_modal_skl37_1", $ = "_overlay_skl37_24", x = "_modalHeader_skl37_48", g = "_modalTitle_skl37_59", B = "_modalBody_skl37_65", e = {
9
- modal: h,
10
- overlay: $,
11
- modalHeader: x,
12
- modalTitle: g,
13
- modalBody: B
14
- }, H = { close: "Close" }, N = { close: "Stäng" }, k = {
15
- en: H,
16
- sv: N
17
- }, z = ({
18
- children: s,
19
- title: a,
20
- hideCloseButton: d = !1,
21
- className: t,
22
- ...r
23
- }) => {
24
- const m = v(k);
25
- return /* @__PURE__ */ o(
26
- c,
27
- {
28
- ...r,
29
- className: p(e.overlay, t),
30
- children: /* @__PURE__ */ o(n, { className: e.modal, children: /* @__PURE__ */ l(i, { children: [
31
- /* @__PURE__ */ l("div", { className: e.modalHeader, children: [
32
- /* @__PURE__ */ o("div", { className: e.modalTitle, children: a && /* @__PURE__ */ o(
33
- _,
34
- {
35
- level: 3,
36
- elementType: "h2",
37
- slot: "title",
38
- children: a
39
- }
40
- ) }),
41
- !d && /* @__PURE__ */ o(
42
- f,
43
- {
44
- slot: "close",
45
- variant: "tertiary",
46
- icon: y,
47
- iconPlacement: "right",
48
- children: m.format("close")
49
- }
50
- )
51
- ] }),
52
- /* @__PURE__ */ o(
53
- "div",
54
- {
55
- className: e.modalBody,
56
- tabIndex: -1,
57
- children: s
58
- }
59
- )
60
- ] }) })
61
- }
62
- );
63
- };
64
- export {
65
- z as M
66
- };
@@ -1,79 +0,0 @@
1
- import { jsxs as i, jsx as c, Fragment as l } from "react/jsx-runtime";
2
- import { j as s, L as d, R as m, S as u } from "./react-aria-components-mIKW9wOa.js";
3
- import { B as x } from "./Button-CHs1wv7n.js";
4
- import { c as b } from "./clsx-CuNqTHjr.js";
5
- import { c as f } from "./createLucideIcon-D4r5Phnh.js";
6
- import '../assets/Dropdown.css';const h = [
7
- ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
8
- ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
9
- ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
10
- ], $ = f("ellipsis-vertical", h), w = "_dropDownMenu_1493w_1", y = "_menuItem_1493w_17", a = {
11
- dropDownMenu: w,
12
- menuItem: y
13
- };
14
- function N({
15
- label: e,
16
- title: r,
17
- children: n,
18
- icon: o = $,
19
- ...t
20
- }) {
21
- return /* @__PURE__ */ i(s, { ...t, children: [
22
- /* @__PURE__ */ i(
23
- x,
24
- {
25
- "aria-label": e || t["aria-label"],
26
- variant: "icon",
27
- children: [
28
- r,
29
- /* @__PURE__ */ c(
30
- o,
31
- {
32
- size: 20,
33
- "aria-hidden": !0
34
- }
35
- )
36
- ]
37
- }
38
- ),
39
- /* @__PURE__ */ c(d, { children: /* @__PURE__ */ c(
40
- m,
41
- {
42
- ...t,
43
- className: a.dropDownMenu,
44
- children: n
45
- }
46
- ) })
47
- ] });
48
- }
49
- function g(e) {
50
- const r = e.textValue || (typeof e.children == "string" ? e.children : void 0);
51
- return /* @__PURE__ */ c(
52
- u,
53
- {
54
- ...e,
55
- textValue: r,
56
- className: ({ isFocused: n, isOpen: o }) => b(
57
- a.menuItem,
58
- e.className,
59
- n && "focused",
60
- o && "open"
61
- ),
62
- children: ({ hasSubmenu: n }) => /* @__PURE__ */ i(l, { children: [
63
- e.children,
64
- n && /* @__PURE__ */ c(
65
- "svg",
66
- {
67
- className: "chevron",
68
- viewBox: "0 0 24 24",
69
- children: /* @__PURE__ */ c("path", { d: "m9 18 6-6-6-6" })
70
- }
71
- )
72
- ] })
73
- }
74
- );
75
- }
76
- export {
77
- N as D,
78
- g as a
79
- };
@@ -1,23 +0,0 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { I as n, J as a } from "./react-aria-components-mIKW9wOa.js";
4
- import { c as l } from "./clsx-CuNqTHjr.js";
5
- import { T as m } from "./Text-WP6RbnnK.js";
6
- import '../assets/FieldError.css';const d = "_fieldError_u3cks_1", x = {
7
- fieldError: d
8
- }, I = s.forwardRef(
9
- (r, c) => {
10
- const { children: e, isInvalid: i } = r, o = l(x.fieldError, r.className), t = s.useContext(n);
11
- return !t && i && typeof e != "function" ? /* @__PURE__ */ f(m, { className: o, children: e }) : t?.isInvalid ? /* @__PURE__ */ f(
12
- a,
13
- {
14
- ...r,
15
- ref: c,
16
- className: o
17
- }
18
- ) : null;
19
- }
20
- );
21
- export {
22
- I as F
23
- };
@@ -1,16 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { A as s, B as t } from "./react-aria-components-mIKW9wOa.js";
3
- import { c } from "./clsx-CuNqTHjr.js";
4
- import '../assets/FileUpload.css';const n = "_dropzone_ffm4g_1", p = {
5
- dropzone: n
6
- }, m = ({ className: o, ...e }) => /* @__PURE__ */ r(
7
- t,
8
- {
9
- ...e,
10
- className: c(p.dropzone, o)
11
- }
12
- ), $ = (o) => /* @__PURE__ */ r(s, { ...o });
13
- export {
14
- m as D,
15
- $ as F
16
- };
@@ -1,38 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { c as f } from "./clsx-CuNqTHjr.js";
3
- import { K as i } from "./react-aria-components-mIKW9wOa.js";
4
- import '../assets/Heading.css';const m = "_h1_155q3_1", p = "_h2_155q3_2", l = "_h3_155q3_3", q = "_h4_155q3_4", x = "_h5_155q3_5", d = "_h6_155q3_6", h = {
5
- h1: m,
6
- h2: p,
7
- h3: l,
8
- h4: q,
9
- h5: x,
10
- h6: d
11
- }, v = ({
12
- children: _,
13
- className: a,
14
- enableMargins: o = !1,
15
- isExpressive: r = !1,
16
- level: s = 3,
17
- elementType: t,
18
- ...c
19
- }) => {
20
- const e = t && parseInt(t.split("h")[1]);
21
- return /* @__PURE__ */ n(
22
- i,
23
- {
24
- level: e || s,
25
- className: f(
26
- [h.h1, h.h2, h.h3, h.h4, h.h5, h.h6][s - 1],
27
- a
28
- ),
29
- ...r && { "data-expressive": !0 },
30
- ...o && { "data-margin": !0 },
31
- ...c,
32
- children: _
33
- }
34
- );
35
- };
36
- export {
37
- v as H
38
- };
@@ -1,72 +0,0 @@
1
- import { jsxs as e, jsx as n } from "react/jsx-runtime";
2
- import { i as j } from "./icon-map-Ckc-nEUA.js";
3
- import * as x from "react";
4
- import { c as B } from "./clsx-CuNqTHjr.js";
5
- import { B as N } from "./Button-CHs1wv7n.js";
6
- import { X as v } from "./x-BXShoIAM.js";
7
- import { u as b } from "./useLocalizedStringFormatter-CPwiI7nv.js";
8
- import '../assets/InfoBanner.css';const w = "_infoBanner_1oj11_1", z = "_success_1oj11_11", C = "_info_1oj11_1", I = "_important_1oj11_21", S = "_warning_1oj11_26", O = "_content_1oj11_40", y = "_heading_1oj11_46", F = "_text_1oj11_51", L = "_icon_1oj11_57", M = "_dismissable_1oj11_66", s = {
9
- infoBanner: w,
10
- success: z,
11
- info: C,
12
- important: I,
13
- warning: S,
14
- content: O,
15
- heading: y,
16
- text: F,
17
- icon: L,
18
- dismissable: M
19
- }, P = { close: "Close" }, R = { close: "Stäng" }, X = {
20
- en: P,
21
- sv: R
22
- }, H = ({
23
- title: t,
24
- message: r,
25
- type: i,
26
- children: l,
27
- isDismissable: m = !1,
28
- defaultOpen: _ = !0,
29
- isOpen: a,
30
- onOpenChange: d,
31
- ...c
32
- }) => {
33
- const o = typeof a < "u", [f, p] = x.useState(_), u = j[i], g = b(X), h = () => {
34
- d?.(!1), o || p(!1);
35
- };
36
- return o && a || !o && f ? /* @__PURE__ */ e(
37
- "div",
38
- {
39
- ...c,
40
- className: B(s.infoBanner, s[i], c.className),
41
- children: [
42
- /* @__PURE__ */ n(
43
- u,
44
- {
45
- size: 20,
46
- "aria-hidden": !0,
47
- className: s.icon
48
- }
49
- ),
50
- /* @__PURE__ */ e("div", { className: s.content, children: [
51
- t && /* @__PURE__ */ n("strong", { className: s.heading, children: t }),
52
- /* @__PURE__ */ e("div", { className: s.text, children: [
53
- r,
54
- l
55
- ] })
56
- ] }),
57
- m && /* @__PURE__ */ n("div", { className: s.dismissable, children: /* @__PURE__ */ n(
58
- N,
59
- {
60
- variant: "icon",
61
- "aria-label": g.format("close"),
62
- onPress: h,
63
- children: /* @__PURE__ */ n(v, { size: 20 })
64
- }
65
- ) })
66
- ]
67
- }
68
- ) : null;
69
- };
70
- export {
71
- H as I
72
- };
@@ -1,73 +0,0 @@
1
- import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import * as f from "react";
3
- import t from "react";
4
- import { c as b } from "./clsx-CuNqTHjr.js";
5
- import { i as d, aA as v } from "./react-aria-components-mIKW9wOa.js";
6
- import { P as u } from "./Popover-DktRiuCr.js";
7
- import { B as P } from "./Button-CHs1wv7n.js";
8
- import { I as g } from "./info-kdfED7Wh.js";
9
- import { u as x } from "./useLocalizedStringFormatter-CPwiI7nv.js";
10
- import '../assets/Label.css';const _ = "_labelBase_f5wtf_1", I = {
11
- labelBase: _
12
- }, L = "_labelPopover_1iatl_1", T = "_labelPopoverTrigger_1iatl_7", m = {
13
- labelPopover: L,
14
- labelPopoverTrigger: T
15
- }, $ = { moreInfo: "More info" }, B = { moreInfo: "Mer information" }, C = {
16
- en: $,
17
- sv: B
18
- }, h = ({
19
- children: e,
20
- "aria-label": o
21
- }) => {
22
- const [a, s] = t.useState(!1), l = t.useContext(i), n = x(C);
23
- return /* @__PURE__ */ p(
24
- d,
25
- {
26
- isOpen: a,
27
- onOpenChange: s,
28
- children: [
29
- /* @__PURE__ */ r(
30
- P,
31
- {
32
- variant: "icon",
33
- size: "medium",
34
- className: m.labelPopoverTrigger,
35
- "aria-label": o || n.format("moreInfo"),
36
- id: l?.popoverId,
37
- children: /* @__PURE__ */ r(g, { size: 20 })
38
- }
39
- ),
40
- /* @__PURE__ */ r(u, { children: e })
41
- ]
42
- }
43
- );
44
- }, i = t.createContext(void 0), F = ({ children: e, popover: o }) => {
45
- const a = t.useId();
46
- return o ? /* @__PURE__ */ r(i.Provider, { value: { popoverId: a }, children: /* @__PURE__ */ p("div", { className: m.labelPopover, children: [
47
- e,
48
- /* @__PURE__ */ r(h, { ...o })
49
- ] }) }) : e;
50
- }, c = "label", R = ({
51
- children: e,
52
- className: o,
53
- elementType: a = c,
54
- ...s
55
- }) => {
56
- const l = {
57
- className: b(I.labelBase, o),
58
- elementType: a || c,
59
- ...s
60
- }, n = f.useContext(i);
61
- return /* @__PURE__ */ r(
62
- v,
63
- {
64
- ...l,
65
- "aria-describedby": n?.popoverId,
66
- children: e
67
- }
68
- );
69
- };
70
- export {
71
- R as L,
72
- F as a
73
- };
@@ -1,54 +0,0 @@
1
- import { jsx as o, jsxs as u, Fragment as p } from "react/jsx-runtime";
2
- import { E as h } from "./react-aria-components-mIKW9wOa.js";
3
- import { c as k } from "./clsx-CuNqTHjr.js";
4
- import { c as w } from "./createLucideIcon-D4r5Phnh.js";
5
- import { S as g } from "./square-arrow-out-up-right-XMqOAsOL.js";
6
- import { A as x } from "./arrow-right-DNeP8Eqv.js";
7
- import '../assets/Link.css';const v = [
8
- ["path", { d: "M12 17V3", key: "1cwfxf" }],
9
- ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
10
- ["path", { d: "M19 21H5", key: "150jfl" }]
11
- ], y = w("arrow-down-to-line", v), A = "_link_u43gv_1", L = "_icon_u43gv_51", j = "_standalone_u43gv_55", N = "_stretched_u43gv_72", t = {
12
- link: A,
13
- icon: L,
14
- standalone: j,
15
- stretched: N
16
- }, z = ({
17
- children: i,
18
- standalone: r,
19
- target: c,
20
- stretched: s,
21
- download: a,
22
- icon: e,
23
- className: d,
24
- as: l,
25
- ...m
26
- }) => {
27
- const _ = l || h, f = ({ ...n }) => e ? /* @__PURE__ */ o(e, { ...n }) : a ? /* @__PURE__ */ o(y, { ...n }) : c === "_blank" ? /* @__PURE__ */ o(g, { ...n }) : r ? /* @__PURE__ */ o(x, { ...n }) : null;
28
- return /* @__PURE__ */ o(
29
- _,
30
- {
31
- className: k(
32
- t.link,
33
- r && t.standalone,
34
- s && t.stretched,
35
- d
36
- ),
37
- ...m,
38
- target: c,
39
- children: /* @__PURE__ */ u(p, { children: [
40
- i,
41
- /* @__PURE__ */ o(
42
- f,
43
- {
44
- size: 16,
45
- className: t.icon
46
- }
47
- )
48
- ] })
49
- }
50
- );
51
- };
52
- export {
53
- z as L
54
- };
@@ -1,63 +0,0 @@
1
- import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
- import { E as j } from "./react-aria-components-mIKW9wOa.js";
3
- import { c as y } from "./clsx-CuNqTHjr.js";
4
- import { S as p } from "./square-arrow-out-up-right-XMqOAsOL.js";
5
- import { c as g } from "./createLucideIcon-D4r5Phnh.js";
6
- import { A as h } from "./arrow-right-DNeP8Eqv.js";
7
- import '../assets/LinkButton.css';const B = [
8
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
9
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
10
- ], k = g("arrow-left", B), w = "_linkButton_138jj_1", L = "_secondary_138jj_56", x = "_icon_138jj_61", A = "_tertiary_138jj_98", N = "_danger_138jj_124", $ = "_iconBtn_138jj_141", z = "_medium_138jj_163", R = "_iconLeft_138jj_168", S = "_fullwidth_138jj_172", t = {
11
- linkButton: w,
12
- secondary: L,
13
- icon: x,
14
- tertiary: A,
15
- danger: N,
16
- iconBtn: $,
17
- medium: z,
18
- iconLeft: R,
19
- fullwidth: S
20
- }, O = ({
21
- children: e,
22
- variant: o,
23
- fullwidth: s,
24
- icon: c,
25
- iconPlacement: i,
26
- className: _,
27
- as: a,
28
- size: d = "large",
29
- ...m
30
- }) => {
31
- const l = a || j, f = ({ ...n }) => c ? /* @__PURE__ */ r(c, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ r(p, { ...n }) : i === "left" ? /* @__PURE__ */ r(k, { ...n }) : /* @__PURE__ */ r(h, { ...n });
32
- return /* @__PURE__ */ u(
33
- l,
34
- {
35
- className: y(
36
- t.linkButton,
37
- o === "primary" && t.primary,
38
- o === "secondary" && t.secondary,
39
- o === "tertiary" && t.tertiary,
40
- o === "danger" && t.danger,
41
- o === "icon" && t.iconBtn,
42
- d === "medium" && t.medium,
43
- s && t.fullwidth,
44
- i === "left" && t.iconLeft,
45
- _
46
- ),
47
- ...m,
48
- children: [
49
- e,
50
- /* @__PURE__ */ r(
51
- f,
52
- {
53
- size: 20,
54
- className: t.icon
55
- }
56
- )
57
- ]
58
- }
59
- );
60
- };
61
- export {
62
- O as L
63
- };