@midas-ds/components 17.15.3 → 17.15.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.
Files changed (247) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/accordion/AccordionItem.stories.d.ts +1 -0
  3. package/accordion/index.js +2 -5
  4. package/assets/Button.css +1 -1
  5. package/assets/TextField.css +1 -1
  6. package/assets/accordion.css +1 -0
  7. package/assets/badge.css +1 -0
  8. package/assets/breadcrumbs.css +1 -0
  9. package/assets/button2.css +1 -0
  10. package/assets/calendar.css +1 -0
  11. package/assets/card.css +1 -0
  12. package/assets/checkbox.css +1 -0
  13. package/assets/{ColorSchemeSwitch.css → color-scheme-switch.css} +1 -1
  14. package/assets/combobox.css +1 -0
  15. package/assets/date-field.css +1 -0
  16. package/assets/date-picker.css +1 -0
  17. package/assets/default.css +1 -1
  18. package/assets/field-error.css +1 -0
  19. package/assets/file-list.css +1 -0
  20. package/assets/{FileUpload.css → file-upload.css} +1 -1
  21. package/assets/grid.css +1 -0
  22. package/assets/info-banner.css +1 -0
  23. package/assets/label.css +1 -0
  24. package/assets/layout.css +1 -0
  25. package/assets/link-button.css +1 -0
  26. package/assets/link.css +1 -0
  27. package/assets/list-box.css +1 -0
  28. package/assets/logo.css +1 -0
  29. package/assets/menu.css +1 -0
  30. package/assets/modal.css +1 -0
  31. package/assets/popover.css +1 -0
  32. package/assets/progress-bar.css +1 -0
  33. package/assets/radio.css +1 -0
  34. package/assets/search-field.css +1 -0
  35. package/assets/select.css +1 -0
  36. package/assets/skeleton.css +1 -0
  37. package/assets/spinner.css +1 -0
  38. package/assets/table.css +1 -0
  39. package/assets/tabs.css +1 -0
  40. package/assets/{TagGroup.css → tag.css} +1 -1
  41. package/assets/{Text.css → text.css} +1 -1
  42. package/assets/time-field.css +1 -0
  43. package/assets/toast.css +1 -0
  44. package/assets/toggle-button.css +1 -0
  45. package/assets/tooltip.css +1 -0
  46. package/badge/index.js +2 -5
  47. package/breadcrumbs/index.js +2 -5
  48. package/button/index.js +2 -6
  49. package/calendar/index.js +2 -5
  50. package/card/index.js +2 -12
  51. package/character-counter/index.js +2 -4
  52. package/checkbox/index.js +2 -6
  53. package/chunks/Button.module-0C2ArlRs.js +13 -0
  54. package/chunks/FeedbackStatusIcon-A1trvSCf.js +54 -0
  55. package/chunks/TextField.module-CrR3Krxn.js +12 -0
  56. package/chunks/accordion-KEgnlzYi.js +87 -0
  57. package/chunks/arrow-right-7yeXXFNV.js +10 -0
  58. package/chunks/badge-DrCn-5SX.js +22 -0
  59. package/chunks/breadcrumbs-XTH3axtt.js +23 -0
  60. package/chunks/button-CFjf-bDe.js +34 -0
  61. package/chunks/calendar-C0rlcHfr.js +74 -0
  62. package/chunks/card-CF8iwdg3.js +103 -0
  63. package/chunks/character-counter-CSoVSrxZ.js +16 -0
  64. package/chunks/check-BiPE7lAA.js +7 -0
  65. package/chunks/checkbox-B_41DFjp.js +174 -0
  66. package/chunks/chevron-down-Buf0eTzo.js +7 -0
  67. package/chunks/chevron-right-DJ7qKNKG.js +7 -0
  68. package/chunks/clear-button-Cb4MTvBR.js +17 -0
  69. package/chunks/clsx-BtlV5Vo3.js +21 -0
  70. package/chunks/color-scheme-switch-Ce4vL8Yz.js +122 -0
  71. package/chunks/combobox-BLGIYxNy.js +90 -0
  72. package/chunks/createLucideIcon-DhIhuN5D.js +39 -0
  73. package/chunks/date-field-Cy0HGw6v.js +73 -0
  74. package/chunks/date-picker-ByfWqOZh.js +191 -0
  75. package/chunks/field-error-DYp2kgFr.js +19 -0
  76. package/chunks/file-list-DYOuch5G.js +68 -0
  77. package/chunks/file-upload-CZRTVw5O.js +11 -0
  78. package/chunks/grid-CUYMbO7c.js +225 -0
  79. package/chunks/heading-595zCrRS.js +28 -0
  80. package/chunks/info-Bm2gRija.js +19 -0
  81. package/chunks/info-banner-hHq0Atii.js +59 -0
  82. package/chunks/label-uwnwLD3z.js +49 -0
  83. package/chunks/layout-BzK7P4Xn.js +426 -0
  84. package/chunks/link-Q46Ny2Po.js +40 -0
  85. package/chunks/link-button-Cm2B0s4X.js +39 -0
  86. package/chunks/list-box-Dm2itiZD.js +75 -0
  87. package/chunks/logo-D7tz-4hp.js +93 -0
  88. package/chunks/menu-CB6VDQ-u.js +49 -0
  89. package/chunks/modal-Dr0ythpF.js +66 -0
  90. package/chunks/popover-DxnYz_IT.js +27 -0
  91. package/chunks/progress-bar-Dppkp0cT.js +40 -0
  92. package/chunks/radio-PBrD5BO4.js +43 -0
  93. package/chunks/search-field-B5RciSq0.js +90 -0
  94. package/chunks/select-BZ0greL0.js +171 -0
  95. package/chunks/skeleton-OqKFBcmO.js +36 -0
  96. package/chunks/spinner-C3WiZYld.js +32 -0
  97. package/chunks/square-arrow-out-up-right-Bobm4VNc.js +17 -0
  98. package/chunks/table-BZ7VvZaq.js +150 -0
  99. package/chunks/tabs-eshGdQJJ.js +52 -0
  100. package/chunks/tag-CELJrUEQ.js +78 -0
  101. package/chunks/text-mAeDlv5N.js +23 -0
  102. package/chunks/textfield-CZSw2R67.js +112 -0
  103. package/chunks/time-field-DaQfnJQF.js +60 -0
  104. package/chunks/toast-AYzfHBcQ.js +91 -0
  105. package/chunks/toggle-button-DlPo9GJW.js +17 -0
  106. package/chunks/tooltip-BE_r_CBm.js +33 -0
  107. package/chunks/useLocalizedStringFormatter-bRLuRzVD.js +19 -0
  108. package/chunks/x-Bs_QW3q8.js +10 -0
  109. package/clear-button/index.js +2 -4
  110. package/color-scheme-switch/index.js +2 -4
  111. package/combobox/index.js +2 -4
  112. package/date-field/index.js +2 -9
  113. package/date-picker/index.js +2 -5
  114. package/field-error/index.js +2 -4
  115. package/file-list/index.js +2 -5
  116. package/file-upload/index.js +2 -5
  117. package/grid/index.js +2 -6
  118. package/heading/index.js +2 -4
  119. package/index.js +91 -165
  120. package/info-banner/index.js +2 -4
  121. package/label/index.js +2 -4
  122. package/layout/index.js +2 -8
  123. package/link/index.js +2 -6
  124. package/link-button/index.js +2 -6
  125. package/list-box/index.js +2 -13
  126. package/logo/index.js +2 -5
  127. package/menu/index.js +2 -10
  128. package/modal/index.js +2 -7
  129. package/package.json +1 -1
  130. package/popover/index.js +2 -4
  131. package/progress-bar/index.js +2 -4
  132. package/radio/index.js +2 -5
  133. package/search-field/index.js +2 -4
  134. package/select/index.js +2 -4
  135. package/skeleton/index.js +2 -4
  136. package/spinner/index.js +2 -4
  137. package/table/index.js +2 -9
  138. package/tabs/index.js +2 -7
  139. package/tag/index.js +2 -6
  140. package/text/index.js +2 -4
  141. package/textfield/index.js +2 -7
  142. package/time-field/index.js +2 -4
  143. package/toast/index.js +2 -10
  144. package/toggle-button/index.js +2 -5
  145. package/tooltip/index.js +2 -5
  146. package/assets/AccordionItem.css +0 -1
  147. package/assets/BadgeContainer.css +0 -1
  148. package/assets/Breadcrumb.css +0 -1
  149. package/assets/ButtonGroup.css +0 -1
  150. package/assets/CardHeader.css +0 -1
  151. package/assets/Checkbox.css +0 -1
  152. package/assets/ComboBox.css +0 -1
  153. package/assets/DateField.css +0 -1
  154. package/assets/DateInput.css +0 -1
  155. package/assets/DateRangePicker.css +0 -1
  156. package/assets/FieldError.css +0 -1
  157. package/assets/FileListItem.css +0 -1
  158. package/assets/GridItem.css +0 -1
  159. package/assets/InfoBanner.css +0 -1
  160. package/assets/Label.css +0 -1
  161. package/assets/Layout.css +0 -1
  162. package/assets/Link.css +0 -1
  163. package/assets/LinkButton.css +0 -1
  164. package/assets/ListBox.css +0 -1
  165. package/assets/ListBoxEmptyState.css +0 -1
  166. package/assets/Logo.css +0 -1
  167. package/assets/Modal.css +0 -1
  168. package/assets/Popover.css +0 -1
  169. package/assets/ProgressBar.css +0 -1
  170. package/assets/Radio.css +0 -1
  171. package/assets/RangeCalendar.css +0 -1
  172. package/assets/SearchField.css +0 -1
  173. package/assets/Select.css +0 -1
  174. package/assets/Separator.css +0 -1
  175. package/assets/Skeleton.css +0 -1
  176. package/assets/Spinner.css +0 -1
  177. package/assets/TabList.css +0 -1
  178. package/assets/Table.css +0 -1
  179. package/assets/TimeField.css +0 -1
  180. package/assets/Toast.css +0 -1
  181. package/assets/ToggleButtonGroup.css +0 -1
  182. package/assets/Tooltip.css +0 -1
  183. package/chunks/AccordionItem-DHhQDd6o.js +0 -129
  184. package/chunks/BadgeContainer-DyQDrY6S.js +0 -38
  185. package/chunks/Breadcrumb-Bs836gOn.js +0 -37
  186. package/chunks/Button-GCROAMSl.js +0 -56
  187. package/chunks/Button.module-byTN5rhp.js +0 -14
  188. package/chunks/ButtonGroup-Dr6HOBo2.js +0 -22
  189. package/chunks/CardHeader-BnwDMzW9.js +0 -184
  190. package/chunks/CharacterCounter-Dgnv-orm.js +0 -22
  191. package/chunks/Checkbox-CyamRrFD.js +0 -146
  192. package/chunks/CheckboxGroup-CmjQm14M.js +0 -84
  193. package/chunks/ClearButton-DkC8PIMi.js +0 -22
  194. package/chunks/ColorSchemeSwitch-CjXb7w5A.js +0 -118
  195. package/chunks/ComboBox-BCfucCKv.js +0 -102
  196. package/chunks/DateField-CpvZGNHu.js +0 -89
  197. package/chunks/DateInput-NzWcnB4y.js +0 -29
  198. package/chunks/DateInputDivider-BHAwPkIR.js +0 -13
  199. package/chunks/DateRangePicker-BBLNlQ2y.js +0 -202
  200. package/chunks/FeedbackStatusIcon-X9Bjgeta.js +0 -56
  201. package/chunks/FieldError-krpMBtie.js +0 -24
  202. package/chunks/FileListItem-CKF9HPjw.js +0 -69
  203. package/chunks/FileUpload-D6oyWcDA.js +0 -17
  204. package/chunks/Grid-C7aRFvmS.js +0 -24
  205. package/chunks/GridItem-DenBLGXB.js +0 -237
  206. package/chunks/Heading-nfcRc2QF.js +0 -38
  207. package/chunks/InfoBanner-CWLvkP6D.js +0 -76
  208. package/chunks/Label-Cqo7Xz2v.js +0 -67
  209. package/chunks/Layout-D-nVSBJY.js +0 -493
  210. package/chunks/Link-CSIZehbN.js +0 -59
  211. package/chunks/LinkButton-Dzp8ZAPs.js +0 -68
  212. package/chunks/ListBox-CJhp9Hsb.js +0 -60
  213. package/chunks/ListBoxEmptyState-BxWWr2D9.js +0 -30
  214. package/chunks/ListBoxHeader-Cl56gGEe.js +0 -63
  215. package/chunks/Logo-DDykn5b2.js +0 -150
  216. package/chunks/Modal-yigospxi.js +0 -78
  217. package/chunks/Popover-CjEPHe4A.js +0 -34
  218. package/chunks/ProgressBar-BrWLkY8H.js +0 -53
  219. package/chunks/Radio-CFolRKKY.js +0 -44
  220. package/chunks/RangeCalendar-DxLInTav.js +0 -99
  221. package/chunks/SearchField-BXIDm898.js +0 -121
  222. package/chunks/Select-BQ109AJG.js +0 -231
  223. package/chunks/Separator-CDRwpeHz.js +0 -76
  224. package/chunks/Skeleton-ClvqZoDy.js +0 -88
  225. package/chunks/Spinner-CfKMn18u.js +0 -43
  226. package/chunks/TabList-CJSnr6O0.js +0 -87
  227. package/chunks/Table-CDdv7GeG.js +0 -140
  228. package/chunks/TagGroup-C-pkXtVn.js +0 -119
  229. package/chunks/Text-D0r_W4lH.js +0 -36
  230. package/chunks/TextArea-CNP1Y3jR.js +0 -135
  231. package/chunks/TextField.module-BDIbEV87.js +0 -12
  232. package/chunks/TimeField-B3IdCqTf.js +0 -88
  233. package/chunks/Toast-BFq_0Ue4.js +0 -158
  234. package/chunks/ToggleButtonGroup-DRnEEi5-.js +0 -29
  235. package/chunks/Tooltip-BYEaNkZG.js +0 -44
  236. package/chunks/arrow-right-BVcFGZmy.js +0 -8
  237. package/chunks/check-Bt2UikoU.js +0 -5
  238. package/chunks/chevron-down-BBFYYzZq.js +0 -5
  239. package/chunks/chevron-right-DvXGOiS_.js +0 -5
  240. package/chunks/clsx-AexbMWKp.js +0 -24
  241. package/chunks/createLucideIcon-CP-mMPfa.js +0 -75
  242. package/chunks/info-N5jWZg2A.js +0 -9
  243. package/chunks/square-arrow-out-up-right-x_I6wdNi.js +0 -9
  244. package/chunks/useLocalizedStringFormatter-BHvsRxDk.js +0 -25
  245. package/chunks/x-B9bYxG31.js +0 -8
  246. /package/assets/{CharacterCounter.css → character-counter.css} +0 -0
  247. /package/assets/{Heading.css → heading.css} +0 -0
@@ -1,231 +0,0 @@
1
- import { jsx as e, Fragment as A, jsxs as i } from "react/jsx-runtime";
2
- import { SelectStateContext as d, SelectValue as v, Button as f, Select as C } from "react-aria-components";
3
- import { FocusScope as N } from "@react-aria/focus";
4
- import { a as b, L as x } from "./Label-Cqo7Xz2v.js";
5
- import { a as T, c as _ } from "./clsx-AexbMWKp.js";
6
- import { T as y } from "./Text-D0r_W4lH.js";
7
- import { F as h } from "./FieldError-krpMBtie.js";
8
- import p, { useContext as S } from "react";
9
- import { C as B } from "./Checkbox-CyamRrFD.js";
10
- import { u as m } from "./useLocalizedStringFormatter-BHvsRxDk.js";
11
- import { useFocusManager as M } from "react-aria";
12
- import { X as F } from "./x-B9bYxG31.js";
13
- import { L } from "./ListBox-CJhp9Hsb.js";
14
- import { P as I } from "./Popover-CjEPHe4A.js";
15
- import { a as G, b as k, T as R } from "./TagGroup-C-pkXtVn.js";
16
- import { C as $ } from "./chevron-down-BBFYYzZq.js";
17
- import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", selected: "selected" }, z = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", selected: "valda" }, u = {
18
- en: w,
19
- sv: z
20
- }, D = "_select_1vj7t_1", E = "_triggerContainer_1vj7t_7", K = "_trigger_1vj7t_7", P = "_medium_1vj7t_30", W = "_icon_1vj7t_68", X = "_selectValue_1vj7t_74", q = "_placeholder_1vj7t_80", H = "_multiSelectValue_1vj7t_90", J = "_selectValueTag_1vj7t_114", O = "_clearButton_1vj7t_128", Q = "_truncate_1vj7t_140", U = "_popover_1vj7t_177", Y = "_selectAll_1vj7t_205", Z = "_tagGroup_1vj7t_271", a = {
21
- select: D,
22
- triggerContainer: E,
23
- trigger: K,
24
- medium: P,
25
- icon: W,
26
- selectValue: X,
27
- placeholder: q,
28
- multiSelectValue: H,
29
- selectValueTag: J,
30
- clearButton: O,
31
- truncate: Q,
32
- popover: U,
33
- selectAll: Y,
34
- tagGroup: Z
35
- }, ee = () => {
36
- const t = p.useContext(d), c = m(u), r = () => {
37
- t?.setValue(
38
- t?.selectionManager.isSelectAll ? null : Array.from(t.collection.getKeys())
39
- ), t?.commitValidation();
40
- };
41
- return /* @__PURE__ */ e(
42
- B,
43
- {
44
- className: a.selectAll,
45
- isIndeterminate: !t?.selectionManager.isSelectAll && !t?.selectionManager.isEmpty,
46
- isSelected: t?.selectionManager.isSelectAll,
47
- onChange: r,
48
- children: c.format("selectAll")
49
- }
50
- );
51
- }, te = ({
52
- isDisabled: t
53
- }) => {
54
- const c = m(u), r = (l, n) => l.length === 1 ? n : `${l.length} ${c.format("selected")}`;
55
- return /* @__PURE__ */ e(
56
- v,
57
- {
58
- className: a.multiSelectValue,
59
- "data-disabled": t || void 0,
60
- children: ({ isPlaceholder: l, selectedItems: n, selectedText: s }) => l ? (
61
- // this empty fragment prevents rendering double placeholders for multiselect
62
- // we need a falsy value, null or undefined won't do the trick
63
- // eslint-disable-next-line
64
- /* @__PURE__ */ e(A, {})
65
- ) : /* @__PURE__ */ i(
66
- "div",
67
- {
68
- className: a.selectValueTag,
69
- "data-disabled": t || void 0,
70
- children: [
71
- /* @__PURE__ */ e("span", { className: a.truncate, children: r(n, s) }),
72
- /* @__PURE__ */ e(le, { isDisabled: t })
73
- ]
74
- }
75
- )
76
- }
77
- );
78
- }, le = ({
79
- isDisabled: t
80
- }) => {
81
- const c = p.useContext(d), r = m(u), l = M(), n = () => {
82
- l?.focusFirst(), c?.setValue(null);
83
- };
84
- return /* @__PURE__ */ e(
85
- f,
86
- {
87
- "aria-label": r.format("clearAll"),
88
- className: a.clearButton,
89
- onPress: n,
90
- slot: null,
91
- isDisabled: t,
92
- children: /* @__PURE__ */ e(
93
- F,
94
- {
95
- width: 20,
96
- height: 20
97
- }
98
- )
99
- }
100
- );
101
- }, ae = ({
102
- showTags: t,
103
- isDisabled: c
104
- }) => {
105
- const r = m(u), l = S(d), n = (s) => {
106
- l?.selectionManager.toggleSelection(Array.from(s)[0]);
107
- };
108
- return !l?.selectedItems.length || !t ? null : /* @__PURE__ */ e(
109
- G,
110
- {
111
- "aria-label": r.format("selectedItems"),
112
- className: a.tagGroup,
113
- onRemove: n,
114
- selectionBehavior: "toggle",
115
- children: /* @__PURE__ */ e(k, { items: l.selectedItems, children: (s) => /* @__PURE__ */ e(
116
- R,
117
- {
118
- isDismissable: !0,
119
- id: s.key,
120
- isDisabled: c,
121
- textValue: s.textValue,
122
- children: s.textValue
123
- },
124
- s.key
125
- ) })
126
- }
127
- );
128
- }, se = ({
129
- isDisabled: t,
130
- selectionMode: c,
131
- size: r
132
- }) => {
133
- const l = S(d);
134
- return /* @__PURE__ */ i(
135
- f,
136
- {
137
- className: T(
138
- {
139
- [a.medium]: r === "medium"
140
- },
141
- a.trigger
142
- ),
143
- "data-invalid": !!l?.displayValidation.isInvalid || void 0,
144
- children: [
145
- /* @__PURE__ */ e(
146
- v,
147
- {
148
- className: a.selectValue,
149
- "data-disabled": t || void 0,
150
- children: ({ selectedText: n, defaultChildren: s }) => /* @__PURE__ */ e("div", { className: a.placeholder, children: /* @__PURE__ */ e("span", { className: a.truncate, children: c === "multiple" && n ? null : n || s }) })
151
- }
152
- ),
153
- /* @__PURE__ */ e(
154
- "span",
155
- {
156
- "aria-hidden": "true",
157
- className: a.icon,
158
- children: /* @__PURE__ */ e($, { size: 20 })
159
- }
160
- )
161
- ]
162
- }
163
- );
164
- };
165
- function je({
166
- children: t,
167
- description: c,
168
- errorMessage: r,
169
- errorPosition: l = "top",
170
- items: n,
171
- label: s,
172
- popover: V,
173
- popoverProps: g,
174
- size: j = "large",
175
- ...o
176
- }) {
177
- return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
178
- C,
179
- {
180
- ...o,
181
- className: _(o.className, a.select),
182
- children: [
183
- /* @__PURE__ */ e(b, { popover: V, children: s && /* @__PURE__ */ e(x, { "data-disabled": o.isDisabled || void 0, children: s }) }),
184
- c && /* @__PURE__ */ e(y, { slot: "description", children: c }),
185
- l === "top" && /* @__PURE__ */ e(h, { children: r }),
186
- /* @__PURE__ */ i(
187
- "div",
188
- {
189
- className: a.triggerContainer,
190
- "data-disabled": o.isDisabled || void 0,
191
- children: [
192
- /* @__PURE__ */ e(
193
- se,
194
- {
195
- size: j,
196
- ...o
197
- }
198
- ),
199
- o.selectionMode === "multiple" ? /* @__PURE__ */ e(te, { ...o }) : null
200
- ]
201
- }
202
- ),
203
- l === "bottom" && /* @__PURE__ */ e(h, { children: r }),
204
- /* @__PURE__ */ i(
205
- I,
206
- {
207
- offset: 0,
208
- hideArrow: !0,
209
- ...g,
210
- className: _(g?.className, a.popover),
211
- children: [
212
- o.isSelectableAll && /* @__PURE__ */ e(ee, {}),
213
- /* @__PURE__ */ e(
214
- L,
215
- {
216
- escapeKeyBehavior: "none",
217
- items: n,
218
- children: t
219
- }
220
- )
221
- ]
222
- }
223
- ),
224
- /* @__PURE__ */ e(ae, { ...o })
225
- ]
226
- }
227
- ) });
228
- }
229
- export {
230
- je as S
231
- };
@@ -1,76 +0,0 @@
1
- import { jsx as t, jsxs as i, Fragment as u } from "react/jsx-runtime";
2
- import { Menu as _, MenuItem as l, Popover as d, MenuSection as M, Separator as h } from "react-aria-components";
3
- import { c as a } from "./clsx-AexbMWKp.js";
4
- import { C as S } from "./check-Bt2UikoU.js";
5
- import { C as p } from "./chevron-right-DvXGOiS_.js";
6
- import '../assets/Separator.css';const v = "_menu_1wm5z_1", f = "_menuSection_1wm5z_17", k = "_medium_1wm5z_29", z = "_menuItem_1wm5z_36", w = "_mainContent_1wm5z_105", C = "_checkMark_1wm5z_116", N = "_separator_1wm5z_126", I = "_menuPopover_1wm5z_149 _dropdownAnimation_1ljkv_4", m = {
7
- menu: v,
8
- menuSection: f,
9
- medium: k,
10
- menuItem: z,
11
- mainContent: w,
12
- checkMark: C,
13
- separator: N,
14
- menuPopover: I
15
- }, y = ({
16
- className: e,
17
- size: n = "large",
18
- ...o
19
- }) => /* @__PURE__ */ t(
20
- _,
21
- {
22
- className: a(e, m.menu, n === "medium" && m.medium),
23
- ...o
24
- }
25
- ), b = (e) => /* @__PURE__ */ t(
26
- l,
27
- {
28
- ...e,
29
- textValue: e.textValue || (typeof e.children == "string" ? e.children : void 0),
30
- className: a(m.menuItem, e.className),
31
- children: (n) => {
32
- const { children: o } = e, { selectionMode: s, isSelected: c, hasSubmenu: r } = n;
33
- return /* @__PURE__ */ i(u, { children: [
34
- s !== "none" && /* @__PURE__ */ t(
35
- S,
36
- {
37
- size: 16,
38
- className: m.checkMark,
39
- "data-selected": c || void 0
40
- }
41
- ),
42
- /* @__PURE__ */ t("div", { className: m.mainContent, children: typeof o == "function" ? o(n) : o }),
43
- r && /* @__PURE__ */ t(p, { size: 20 })
44
- ] });
45
- }
46
- }
47
- ), V = ({ className: e, ...n }) => /* @__PURE__ */ t(
48
- d,
49
- {
50
- className: a(e, m.menuPopover),
51
- offset: 4,
52
- ...n
53
- }
54
- ), A = ({
55
- className: e,
56
- ...n
57
- }) => /* @__PURE__ */ t(
58
- M,
59
- {
60
- className: a(e, m.menuSection),
61
- ...n
62
- }
63
- ), F = ({ className: e, ...n }) => /* @__PURE__ */ t(
64
- h,
65
- {
66
- className: a(e, m.separator),
67
- ...n
68
- }
69
- );
70
- export {
71
- y as M,
72
- F as S,
73
- b as a,
74
- V as b,
75
- A as c
76
- };
@@ -1,88 +0,0 @@
1
- import { jsxs as v, jsx as c } from "react/jsx-runtime";
2
- import { c as r } from "./clsx-AexbMWKp.js";
3
- import '../assets/Skeleton.css';const i = "_skeleton_1o4vz_11", p = "_circle_1o4vz_25", u = "_wave_1o4vz_30", w = "_onLayer01_1o4vz_54", z = "_form_1o4vz_58", d = "_formLabel_1o4vz_64", k = "_formDescription_1o4vz_70", L = "_formInput_1o4vz_76", y = "_medium_1o4vz_81", o = {
4
- skeleton: i,
5
- circle: p,
6
- wave: u,
7
- onLayer01: w,
8
- form: z,
9
- formLabel: d,
10
- formDescription: k,
11
- formInput: L,
12
- medium: y
13
- }, D = ({
14
- variant: s = "rectangle",
15
- width: t,
16
- height: l,
17
- size: f = "large",
18
- isAnimated: n = !0,
19
- className: m,
20
- style: _,
21
- isOnLayer01: e,
22
- ...a
23
- }) => (s === "circle" && l !== void 0 && console.warn(
24
- "Height is not allowed when using circle, control size with width"
25
- ), s === "form" ? /* @__PURE__ */ v(
26
- "div",
27
- {
28
- className: r(
29
- o.form,
30
- o[f],
31
- e && o.onLayer01,
32
- m
33
- ),
34
- style: { width: t, ..._ },
35
- ...a,
36
- children: [
37
- /* @__PURE__ */ c(
38
- "div",
39
- {
40
- className: r(
41
- o.skeleton,
42
- o.formLabel,
43
- n && o.wave,
44
- e && o.onLayer01
45
- )
46
- }
47
- ),
48
- /* @__PURE__ */ c(
49
- "div",
50
- {
51
- className: r(
52
- o.skeleton,
53
- o.formDescription,
54
- n && o.wave,
55
- e && o.onLayer01
56
- )
57
- }
58
- ),
59
- /* @__PURE__ */ c(
60
- "div",
61
- {
62
- className: r(
63
- o.skeleton,
64
- o.formInput,
65
- n && o.wave,
66
- e && o.onLayer01
67
- )
68
- }
69
- )
70
- ]
71
- }
72
- ) : /* @__PURE__ */ c(
73
- "div",
74
- {
75
- className: r(
76
- o.skeleton,
77
- o[s],
78
- n && o.wave,
79
- e && o.onLayer01,
80
- m
81
- ),
82
- style: { width: t, height: l, ..._ },
83
- ...a
84
- }
85
- ));
86
- export {
87
- D as S
88
- };
@@ -1,43 +0,0 @@
1
- import { jsxs as i, jsx as s } from "react/jsx-runtime";
2
- import { c as r } from "./clsx-AexbMWKp.js";
3
- import { VisuallyHidden as c } from "react-aria";
4
- import { u as l } from "./useLocalizedStringFormatter-BHvsRxDk.js";
5
- import { c as d } from "./createLucideIcon-CP-mMPfa.js";
6
- import '../assets/Spinner.css';const m = "_container_1qexx_1", p = "_spinner_1qexx_5", g = "_large_1qexx_18", n = {
7
- container: m,
8
- spinner: p,
9
- large: g
10
- };
11
- const _ = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], x = d("loader-circle", _), u = { loadingPleaseWait: "Loading, please wait..." }, f = { loadingPleaseWait: "Laddar, vänligen vänta..." }, h = {
12
- en: u,
13
- sv: f
14
- }, q = ({
15
- small: e,
16
- color: t,
17
- className: a
18
- }) => {
19
- const o = l(h);
20
- return /* @__PURE__ */ i(
21
- "div",
22
- {
23
- className: r(n.container, a),
24
- role: "status",
25
- children: [
26
- /* @__PURE__ */ s(
27
- x,
28
- {
29
- className: r(n.spinner, !e && n.large),
30
- size: e ? 20 : 96,
31
- strokeWidth: e ? 2 : 8,
32
- absoluteStrokeWidth: !0,
33
- color: t
34
- }
35
- ),
36
- /* @__PURE__ */ s(c, { children: o.format("loadingPleaseWait") })
37
- ]
38
- }
39
- );
40
- };
41
- export {
42
- q as S
43
- };
@@ -1,87 +0,0 @@
1
- 'use client';
2
- import { jsx as s, jsxs as b, Fragment as d } from "react/jsx-runtime";
3
- import { Tabs as l, Tab as _, composeRenderProps as j, SelectionIndicator as u, TabPanel as T, TabList as P } from "react-aria-components";
4
- import { c } from "./clsx-AexbMWKp.js";
5
- import * as r from "react";
6
- import { createContext as x } from "react";
7
- import '../assets/TabList.css';const i = x({
8
- variant: "uncontained",
9
- size: "large"
10
- }), q = "_tabs_1jqj8_1", L = "_tabList_1jqj8_12", p = "_tab_1jqj8_1", f = "_contained_1jqj8_55", v = "_medium_1jqj8_75", I = "_selectionIndicator_1jqj8_98", N = "_tabPanel_1jqj8_133", a = {
11
- tabs: q,
12
- tabList: L,
13
- tab: p,
14
- contained: f,
15
- medium: v,
16
- selectionIndicator: I,
17
- tabPanel: N
18
- }, z = ({
19
- className: n,
20
- variant: t = "uncontained",
21
- size: e = "large",
22
- ...o
23
- }) => /* @__PURE__ */ s(i.Provider, { value: { variant: t, size: e }, children: /* @__PURE__ */ s(
24
- l,
25
- {
26
- className: c(a.tabs, n),
27
- ...o
28
- }
29
- ) }), R = ({ className: n, ...t }) => {
30
- const { variant: e, size: o } = r.useContext(i);
31
- return /* @__PURE__ */ s(
32
- _,
33
- {
34
- ...t,
35
- className: c(
36
- a.tab,
37
- {
38
- [a.contained]: e === "contained",
39
- [a.medium]: o === "medium"
40
- },
41
- n
42
- ),
43
- children: j(t.children, (m) => /* @__PURE__ */ b(d, { children: [
44
- m,
45
- /* @__PURE__ */ s(
46
- u,
47
- {
48
- className: c(a.selectionIndicator, {
49
- [a.contained]: e === "contained"
50
- })
51
- }
52
- )
53
- ] }))
54
- }
55
- );
56
- }, y = ({ className: n, ...t }) => {
57
- const { variant: e, size: o } = r.useContext(i);
58
- return /* @__PURE__ */ s(
59
- T,
60
- {
61
- className: c(
62
- a.tabPanel,
63
- {
64
- [a.contained]: e === "contained",
65
- [a.medium]: o === "medium"
66
- },
67
- n
68
- ),
69
- ...t
70
- }
71
- );
72
- }, F = ({
73
- className: n,
74
- ...t
75
- }) => /* @__PURE__ */ s(
76
- P,
77
- {
78
- className: c(a.tabList, n),
79
- ...t
80
- }
81
- );
82
- export {
83
- R as T,
84
- F as a,
85
- y as b,
86
- z as c
87
- };
@@ -1,140 +0,0 @@
1
- 'use client';
2
- import { jsx as e, jsxs as d, Fragment as b } from "react/jsx-runtime";
3
- import { Cell as w, Column as g, useTableOptions as _, Row as N, Button as k, Collection as p, Table as f, TableBody as x, TableHeader as T } from "react-aria-components";
4
- import { C as h } from "./Checkbox-CyamRrFD.js";
5
- import { c as a } from "./clsx-AexbMWKp.js";
6
- import { c as i } from "./createLucideIcon-CP-mMPfa.js";
7
- import '../assets/Table.css';const C = [
8
- ["path", { d: "M12 5v14", key: "s699le" }],
9
- ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
10
- ], I = i("arrow-down", C);
11
- const v = [
12
- ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
13
- ["path", { d: "M17 20V4", key: "1ejh1v" }],
14
- ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
15
- ["path", { d: "M7 4v16", key: "1glfcx" }]
16
- ], $ = i("arrow-up-down", v);
17
- const j = [
18
- ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
19
- ["path", { d: "M12 19V5", key: "x0mq9r" }]
20
- ], B = i("arrow-up", j);
21
- const H = [
22
- ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
23
- ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
24
- ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
25
- ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
26
- ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
27
- ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
28
- ], z = i("grip-vertical", H), M = "_table_1s8du_1", R = "_tableHeader_1s8du_11", q = "_column_1s8du_12", A = "_sortIndicator_1s8du_29", D = "_sortIconNeutral_1s8du_37", V = "_selection_1s8du_56", U = "_row_1s8du_62", F = "_cell_1s8du_80", G = "_medium_1s8du_120", L = "_striped_1s8du_131", o = {
29
- table: M,
30
- tableHeader: R,
31
- column: q,
32
- sortIndicator: A,
33
- sortIconNeutral: D,
34
- selection: V,
35
- row: U,
36
- cell: F,
37
- medium: G,
38
- striped: L
39
- }, P = ({
40
- size: s = "large",
41
- striped: c = !1,
42
- className: t,
43
- ...r
44
- }) => /* @__PURE__ */ e(
45
- f,
46
- {
47
- className: a(o.table, t, {
48
- [o.medium]: s === "medium",
49
- [o.striped]: c
50
- }),
51
- ...r
52
- }
53
- ), Q = ({
54
- columns: s,
55
- children: c,
56
- className: t
57
- }) => {
58
- const { selectionBehavior: r, selectionMode: l, allowsDragging: n } = _();
59
- return /* @__PURE__ */ d(T, { className: a(t, o.tableHeader), children: [
60
- n && /* @__PURE__ */ e(m, {}),
61
- r === "toggle" && /* @__PURE__ */ e(m, { width: 50, children: l === "multiple" && /* @__PURE__ */ e(
62
- h,
63
- {
64
- className: o.selection,
65
- slot: "selection"
66
- }
67
- ) }),
68
- /* @__PURE__ */ e(p, { items: s, children: c })
69
- ] });
70
- }, W = ({
71
- id: s,
72
- columns: c,
73
- children: t,
74
- className: r,
75
- ...l
76
- }) => {
77
- const { selectionBehavior: n, allowsDragging: y } = _();
78
- return /* @__PURE__ */ d(
79
- N,
80
- {
81
- id: s,
82
- className: a(r, o.row),
83
- ...l,
84
- children: [
85
- y && /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(k, { slot: "drag", children: /* @__PURE__ */ e(z, { size: 20 }) }) }),
86
- n === "toggle" && /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(
87
- h,
88
- {
89
- className: o.selection,
90
- slot: "selection"
91
- }
92
- ) }),
93
- /* @__PURE__ */ e(p, { items: c, children: t })
94
- ]
95
- }
96
- );
97
- }, m = ({ children: s, className: c, ...t }) => /* @__PURE__ */ e(
98
- g,
99
- {
100
- className: a(c, o.column),
101
- ...t,
102
- children: ({ allowsSorting: r, sortDirection: l }) => {
103
- const n = () => l === "ascending" ? /* @__PURE__ */ e(B, { size: 16 }) : l === "descending" ? /* @__PURE__ */ e(I, { size: 16 }) : /* @__PURE__ */ e($, { size: 16, className: o.sortIconNeutral });
104
- return /* @__PURE__ */ d(b, { children: [
105
- s,
106
- r && /* @__PURE__ */ e(
107
- "span",
108
- {
109
- "aria-hidden": "true",
110
- className: o.sortIndicator,
111
- children: n()
112
- }
113
- )
114
- ] });
115
- }
116
- }
117
- ), u = ({ className: s, ...c }) => /* @__PURE__ */ e(
118
- w,
119
- {
120
- className: a(s, o.cell),
121
- ...c
122
- }
123
- ), X = ({
124
- className: s,
125
- ...c
126
- }) => /* @__PURE__ */ e(
127
- x,
128
- {
129
- className: a(s, o.tableBody),
130
- ...c
131
- }
132
- );
133
- export {
134
- u as C,
135
- W as R,
136
- P as T,
137
- m as a,
138
- X as b,
139
- Q as c
140
- };