@midas-ds/components 15.4.0 → 15.4.1

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 (135) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/accordion/index.js +1 -1
  3. package/badge/index.js +1 -1
  4. package/breadcrumbs/index.js +1 -1
  5. package/button/index.js +2 -2
  6. package/calendar/index.js +1 -1
  7. package/card/index.js +1 -1
  8. package/character-counter/index.js +1 -1
  9. package/checkbox/index.js +2 -2
  10. package/chunks/{AccordionItem-BCoomT4-.js → AccordionItem-69q6FXXl.js} +37 -37
  11. package/chunks/{BadgeContainer-BJAC-kV0.js → BadgeContainer-CKVsfTlF.js} +1 -1
  12. package/chunks/Breadcrumbs-By2bMbQd.js +28 -0
  13. package/chunks/Button-BMf7mX0N.js +46 -0
  14. package/chunks/{ButtonGroup-B6mr4JGY.js → ButtonGroup-Dr6HOBo2.js} +1 -1
  15. package/chunks/Card-ia98VoKL.js +130 -0
  16. package/chunks/CharacterCounter-DeuE2det.js +21 -0
  17. package/chunks/Checkbox-ClhO-AzB.js +122 -0
  18. package/chunks/CheckboxGroup-C3FOm8N8.js +84 -0
  19. package/chunks/{ColorSchemeSwitch-Cd6VSXql.js → ColorSchemeSwitch-DugvPh6T.js} +17 -17
  20. package/chunks/ComboBox-BqRZMi8W.js +108 -0
  21. package/chunks/DateField-12KSJHls.js +46 -0
  22. package/chunks/DateInputDivider-CkTB5q5k.js +36 -0
  23. package/chunks/DateRangePicker-BLRFvUp0.js +117 -0
  24. package/chunks/Dialog-C-X_qUR6.js +66 -0
  25. package/chunks/Dropdown-D7HQo9eM.js +79 -0
  26. package/chunks/FieldError-C0HRIcAx.js +23 -0
  27. package/chunks/FileUpload-h1PxqQmb.js +16 -0
  28. package/chunks/{Grid-DeB7TdcZ.js → Grid-B-WgMwON.js} +2 -2
  29. package/chunks/{GridItem-B_3FFhPs.js → GridItem-5t1Z14sM.js} +1 -1
  30. package/chunks/Heading-D8tNNJkt.js +38 -0
  31. package/chunks/{InfoBanner-Bw3rjGtB.js → InfoBanner-Cc3GhryE.js} +3 -3
  32. package/chunks/Label-D6WuwdAj.js +73 -0
  33. package/chunks/{Layout-InD0Hl7F.js → Layout-DGCDkyf3.js} +70 -70
  34. package/chunks/Link-yTNUNv3C.js +54 -0
  35. package/chunks/LinkButton-3nAekUJ4.js +63 -0
  36. package/chunks/{ListBox-CKDglhFH.js → ListBox-D4tO_OrO.js} +18 -18
  37. package/chunks/ListBoxLoadMoreItem-Bo0eLhpt.js +41 -0
  38. package/chunks/ListBoxSection-DKHba2X0.js +49 -0
  39. package/chunks/{Logo-D80UDT1x.js → Logo-InDSslpO.js} +2 -2
  40. package/chunks/Popover-BAdqdN6C.js +38 -0
  41. package/chunks/ProgressBar-zeJLxHVL.js +53 -0
  42. package/chunks/Radio-kvQP7E9s.js +43 -0
  43. package/chunks/RangeCalendar-CnquULdq.js +99 -0
  44. package/chunks/{SearchField-Dr3DAs9W.js → SearchField-B6ygRRL4.js} +39 -39
  45. package/chunks/Select-Cm5VZRTx.js +576 -0
  46. package/chunks/{Select-fDRXxmLm.js → Select-qmCuJm2x.js} +48 -46
  47. package/chunks/Separator-BcnQEA9f.js +76 -0
  48. package/chunks/{Skeleton-Bcg_xgAx.js → Skeleton-DqIHQLQl.js} +1 -1
  49. package/chunks/Spinner-Pll5zpx8.js +48 -0
  50. package/chunks/TabList-D2XV5ixe.js +81 -0
  51. package/chunks/Table-B1rlSIhS.js +139 -0
  52. package/chunks/Tag-Ca8wKXOy.js +53 -0
  53. package/chunks/{Text-WP6RbnnK.js → Text-TWzJxnto.js} +9 -9
  54. package/chunks/TextArea-UU7gFMEb.js +124 -0
  55. package/chunks/Toast-Cm2Zqq-F.js +162 -0
  56. package/chunks/ToggleButtonGroup-CXKTrLbb.js +29 -0
  57. package/chunks/Tooltip-CtstfI8u.js +46 -0
  58. package/chunks/clsx-AexbMWKp.js +24 -0
  59. package/chunks/useLocalizedStringFormatter-ZgRJmvHC.js +25 -0
  60. package/color-scheme-switch/index.js +1 -1
  61. package/combobox/index.js +1 -1
  62. package/date-field/index.js +2 -2
  63. package/date-picker/index.js +1 -1
  64. package/dropdown/index.js +1 -1
  65. package/field-error/index.js +1 -1
  66. package/file-upload/index.js +1 -1
  67. package/grid/index.js +2 -2
  68. package/heading/index.js +1 -1
  69. package/index.js +68 -68
  70. package/info-banner/index.js +1 -1
  71. package/label/index.js +1 -1
  72. package/layout/index.js +1 -1
  73. package/legacy-select/index.js +1 -1
  74. package/link/index.js +3 -3
  75. package/link-button/index.js +3 -3
  76. package/list-box/index.js +3 -3
  77. package/logo/index.js +1 -1
  78. package/menu/index.js +5 -5
  79. package/modal/index.js +2 -2
  80. package/package.json +2 -3
  81. package/popover/index.js +1 -1
  82. package/progress-bar/index.js +1 -1
  83. package/radio/index.js +1 -1
  84. package/search-field/index.js +1 -1
  85. package/select/index.js +1 -1
  86. package/skeleton/index.js +1 -1
  87. package/spinner/index.js +1 -1
  88. package/table/index.js +1 -1
  89. package/tabs/index.js +1 -1
  90. package/tag/index.js +1 -1
  91. package/text/index.js +1 -1
  92. package/textfield/index.js +1 -1
  93. package/toast/index.js +1 -1
  94. package/toggle-button/index.js +1 -1
  95. package/tooltip/index.js +1 -1
  96. package/chunks/Breadcrumbs-CnuqEeOL.js +0 -28
  97. package/chunks/Button-CHs1wv7n.js +0 -46
  98. package/chunks/Card-D58EJCcV.js +0 -130
  99. package/chunks/CharacterCounter-CzCvDmNP.js +0 -21
  100. package/chunks/Checkbox-CogzFDe3.js +0 -119
  101. package/chunks/CheckboxGroup-BLx25gqn.js +0 -83
  102. package/chunks/ComboBox-8YAwADqL.js +0 -108
  103. package/chunks/DateField-CpbYROK1.js +0 -46
  104. package/chunks/DateInputDivider-C43xP4is.js +0 -36
  105. package/chunks/DateRangePicker-CICkmtXG.js +0 -116
  106. package/chunks/Dialog-DBn9L3SP.js +0 -66
  107. package/chunks/Dropdown-Cctv2Qpv.js +0 -79
  108. package/chunks/FieldError-CZKAYQ-n.js +0 -23
  109. package/chunks/FileUpload-DILt4rAn.js +0 -16
  110. package/chunks/Heading-DIw3iLMN.js +0 -38
  111. package/chunks/Label-CKe9pgXT.js +0 -73
  112. package/chunks/Link-C3w5O2wT.js +0 -54
  113. package/chunks/LinkButton-D6X0Dvoz.js +0 -63
  114. package/chunks/ListBoxLoadMoreItem-y9pCuqRe.js +0 -41
  115. package/chunks/ListBoxSection-CvtRigQb.js +0 -49
  116. package/chunks/Popover-DktRiuCr.js +0 -38
  117. package/chunks/ProgressBar-Bjxi5TgY.js +0 -53
  118. package/chunks/Radio-DqFFcFra.js +0 -43
  119. package/chunks/RangeCalendar-CIxwICEf.js +0 -99
  120. package/chunks/Select-BSqv5Qi-.js +0 -566
  121. package/chunks/Separator-Cw1vlSYO.js +0 -76
  122. package/chunks/Spinner-B2EAm49Z.js +0 -48
  123. package/chunks/TabList-BIBQcX2n.js +0 -81
  124. package/chunks/Table-Cy-R3Ma8.js +0 -139
  125. package/chunks/Tag-BZnq1_yZ.js +0 -53
  126. package/chunks/TextArea-3fPkKmNx.js +0 -124
  127. package/chunks/Toast-CP_V12b3.js +0 -161
  128. package/chunks/ToggleButtonGroup-CgNeypuW.js +0 -29
  129. package/chunks/Tooltip-C53p0sfk.js +0 -46
  130. package/chunks/clsx-CuNqTHjr.js +0 -11
  131. package/chunks/internationalized-C9snpc7V.js +0 -1955
  132. package/chunks/react-aria-components-mIKW9wOa.js +0 -22645
  133. package/chunks/react-stately-DRNKkAB0.js +0 -2586
  134. package/chunks/useLocalizedStringFormatter-CPwiI7nv.js +0 -25
  135. package/chunks/variables-BkqZ2WGF.js +0 -5
@@ -1,108 +0,0 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import $ from "react";
3
- import { T as y, U as F, k as w, V as S } from "./react-aria-components-mIKW9wOa.js";
4
- import { c as a } from "./clsx-CuNqTHjr.js";
5
- import { a as v, L as R } from "./Label-CKe9pgXT.js";
6
- import { T as u } from "./Text-WP6RbnnK.js";
7
- import { F as f } from "./FieldError-CZKAYQ-n.js";
8
- import { L as B } from "./ListBox-CKDglhFH.js";
9
- import { a as N, L as C, b as g } from "./ListBoxSection-CvtRigQb.js";
10
- import { C as E } from "./chevron-down-DgT-uSF9.js";
11
- import { u as T } from "./useLocalizedStringFormatter-CPwiI7nv.js";
12
- import '../assets/ComboBox.css';const I = "_combobox_ti2ot_1", U = "_inputField_ti2ot_6", j = "_medium_ti2ot_28", O = "_wrap_ti2ot_74", V = "_button_ti2ot_80", k = "_icon_ti2ot_116", z = "_emptyState_ti2ot_122", o = {
13
- combobox: I,
14
- inputField: U,
15
- medium: j,
16
- wrap: O,
17
- button: V,
18
- icon: k,
19
- emptyState: z
20
- }, D = { showList: "Show list", noResultsFound: "No results found" }, M = { showList: "Visa lista", noResultsFound: "Inga träffar" }, W = {
21
- en: D,
22
- sv: M
23
- };
24
- function ot({
25
- label: e,
26
- description: i,
27
- errorMessage: r,
28
- children: p,
29
- items: b,
30
- className: h,
31
- errorPosition: n = "top",
32
- size: c = "large",
33
- popover: _,
34
- ...s
35
- }) {
36
- const m = $.useRef(null), d = T(W), x = (L) => {
37
- L.currentTarget.value && m.current?.select();
38
- };
39
- return /* @__PURE__ */ l(
40
- y,
41
- {
42
- className: a(o.combobox, h),
43
- ...s,
44
- "data-readonly": s.isReadOnly || void 0,
45
- children: [
46
- /* @__PURE__ */ t(v, { popover: _, children: e && /* @__PURE__ */ t(R, { children: e }) }),
47
- i && /* @__PURE__ */ t(u, { slot: "description", children: i }),
48
- n === "top" && /* @__PURE__ */ t(f, { "data-testid": "fieldError", children: r }),
49
- /* @__PURE__ */ l("div", { className: o.wrap, children: [
50
- /* @__PURE__ */ t(
51
- F,
52
- {
53
- className: a(o.inputField, {
54
- [o.medium]: c === "medium"
55
- }),
56
- "data-readonly": s.isReadOnly || void 0,
57
- onMouseUp: x,
58
- ref: m
59
- }
60
- ),
61
- /* @__PURE__ */ t(
62
- w,
63
- {
64
- className: a(o.button, {
65
- [o.medium]: c === "medium"
66
- }),
67
- "aria-label": d.format("showList"),
68
- children: /* @__PURE__ */ t(
69
- "div",
70
- {
71
- className: o.icon,
72
- "aria-hidden": "true",
73
- children: /* @__PURE__ */ t(
74
- E,
75
- {
76
- size: 20,
77
- "aria-hidden": !0
78
- }
79
- )
80
- }
81
- )
82
- }
83
- )
84
- ] }),
85
- n === "bottom" && /* @__PURE__ */ t(f, { "data-testid": "fieldError", children: r }),
86
- /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
87
- B,
88
- {
89
- items: b,
90
- renderEmptyState: () => /* @__PURE__ */ t(u, { className: o.emptyState, children: d.format("noResultsFound") }),
91
- children: p
92
- }
93
- ) })
94
- ]
95
- }
96
- );
97
- }
98
- function q(e) {
99
- return /* @__PURE__ */ t(C, { ...e });
100
- }
101
- function et(e) {
102
- return /* @__PURE__ */ t(g, { ...e, children: /* @__PURE__ */ t(S, { items: e.children, children: (i) => /* @__PURE__ */ t(q, { children: i.name }, i.id) }) });
103
- }
104
- export {
105
- ot as C,
106
- q as a,
107
- et as b
108
- };
@@ -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,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
- };