@midas-ds/components 1.0.2

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 (243) hide show
  1. package/Breadcrumbs.css +1 -0
  2. package/Button-CCevm2s3.js +183 -0
  3. package/Button.css +1 -0
  4. package/ButtonGroup.css +1 -0
  5. package/CHANGELOG.md +76 -0
  6. package/Card.css +1 -0
  7. package/Checkbox-CllWDBxF.js +405 -0
  8. package/Checkbox.css +1 -0
  9. package/Collection-B3xUVWPF.js +483 -0
  10. package/ComboBox.css +1 -0
  11. package/DatePicker.css +1 -0
  12. package/Dialog-CLTyYwkS.js +1889 -0
  13. package/DragAndDrop-OTN7La7U.js +42 -0
  14. package/Dropdown.css +1 -0
  15. package/FileUpload.css +1 -0
  16. package/Flex.css +1 -0
  17. package/Flex.module-CpoxBzQX.js +37 -0
  18. package/FocusScope-BR0SJ-cZ.js +512 -0
  19. package/Form-DXLoQL91.js +240 -0
  20. package/Grid.css +1 -0
  21. package/Grid.module-Ia0e9Dix.js +36 -0
  22. package/Group-DPMuN3h8.js +44 -0
  23. package/Hidden-BQWDvze4.js +37 -0
  24. package/InfoBanner.css +1 -0
  25. package/Label-C18A_4Z5.js +69 -0
  26. package/Layout.css +1 -0
  27. package/Link-BU1h3K2a.js +77 -0
  28. package/Link.css +1 -0
  29. package/LinkButton.css +1 -0
  30. package/ListBox-D21tdwTs.js +463 -0
  31. package/ListKeyboardDelegate-DxMjfMsI.js +172 -0
  32. package/Logo.css +1 -0
  33. package/Modal.css +1 -0
  34. package/MultiSelect.css +1 -0
  35. package/PressResponder-DP8ZDNGy.js +31 -0
  36. package/README.md +7 -0
  37. package/RSPContexts-EOiWkKOf.js +11 -0
  38. package/Radio.css +1 -0
  39. package/SearchField.css +1 -0
  40. package/Select.css +1 -0
  41. package/SelectionManager-D4WtKtey.js +988 -0
  42. package/Separator-DLUHK9vv.js +48 -0
  43. package/Spinner.css +1 -0
  44. package/Table.css +1 -0
  45. package/Tabs.css +1 -0
  46. package/Tag-CEd6WWSc.js +725 -0
  47. package/Tag.css +1 -0
  48. package/Text-DGLaY3HR.js +17 -0
  49. package/TextArea.css +1 -0
  50. package/TextField-C_hq9WeT.js +226 -0
  51. package/TextField.css +1 -0
  52. package/TextField.module-Cwq1FAm7.js +141 -0
  53. package/Toast.css +1 -0
  54. package/VisuallyHidden-B_XzVvlX.js +39 -0
  55. package/accordion/Accordion.d.ts +13 -0
  56. package/accordion/AccordionContent.d.ts +3 -0
  57. package/accordion/AccordionItem.d.ts +3 -0
  58. package/accordion/AccordionTagContext.d.ts +3 -0
  59. package/accordion/AccordionTrigger.d.ts +3 -0
  60. package/accordion/index.d.ts +5 -0
  61. package/breadcrumbs/Breadcrumbs.d.ts +9 -0
  62. package/breadcrumbs/index.d.ts +1 -0
  63. package/button/Button.d.ts +41 -0
  64. package/button/ButtonGroup.d.ts +12 -0
  65. package/button/index.d.ts +2 -0
  66. package/card/Card.d.ts +34 -0
  67. package/card/index.d.ts +1 -0
  68. package/checkbox/Checkbox.d.ts +2 -0
  69. package/checkbox/CheckboxGroup.d.ts +10 -0
  70. package/checkbox/index.d.ts +2 -0
  71. package/chevron-down-Cd1bkzXT.js +13 -0
  72. package/chevron-right-DBMc9VMi.js +23 -0
  73. package/clsx-OuTLNxxd.js +16 -0
  74. package/combobox/ComboBox.d.ts +12 -0
  75. package/combobox/index.d.ts +1 -0
  76. package/context-ScOIq_Gu.js +80 -0
  77. package/createLucideIcon-DeWljiyi.js +79 -0
  78. package/date-picker/DatePicker.d.ts +14 -0
  79. package/date-picker/index.d.ts +2 -0
  80. package/dropdown/Dropdown.d.ts +8 -0
  81. package/dropdown/index.d.ts +1 -0
  82. package/file-upload/FileUpload.d.ts +11 -0
  83. package/file-upload/index.d.ts +1 -0
  84. package/flex/Flex.d.ts +17 -0
  85. package/flex/FlexItem.d.ts +15 -0
  86. package/flex/index.d.ts +2 -0
  87. package/grid/Grid.d.ts +16 -0
  88. package/grid/GridItem.d.ts +7 -0
  89. package/grid/index.d.ts +2 -0
  90. package/index-CEg5vZQH.js +132 -0
  91. package/index-CgfokhRq.js +674 -0
  92. package/index-CorR1LBD.js +3122 -0
  93. package/index-Dl1Q-tbj.js +26984 -0
  94. package/index.css +1 -0
  95. package/index.d.ts +29 -0
  96. package/index.js +114 -0
  97. package/index10.js +4 -0
  98. package/index11.js +5 -0
  99. package/index12.js +4 -0
  100. package/index13.js +4 -0
  101. package/index14.js +4 -0
  102. package/index15.js +6 -0
  103. package/index16.js +6 -0
  104. package/index17.js +6 -0
  105. package/index18.js +4 -0
  106. package/index19.js +6 -0
  107. package/index2.js +8 -0
  108. package/index20.js +6 -0
  109. package/index21.js +4 -0
  110. package/index22.js +5 -0
  111. package/index23.js +5 -0
  112. package/index24.js +5 -0
  113. package/index25.js +6 -0
  114. package/index26.js +6 -0
  115. package/index27.js +6 -0
  116. package/index28.js +4 -0
  117. package/index29.js +12 -0
  118. package/index3.js +8 -0
  119. package/index30.js +20 -0
  120. package/index31.js +22 -0
  121. package/index32.js +14 -0
  122. package/index33.js +11 -0
  123. package/index34.js +31 -0
  124. package/index35.js +8 -0
  125. package/index36.js +9 -0
  126. package/index37.js +19 -0
  127. package/index38.js +9 -0
  128. package/index39.js +9 -0
  129. package/index4.js +4 -0
  130. package/index40.js +16 -0
  131. package/index41.js +16 -0
  132. package/index42.js +31 -0
  133. package/index43.js +16 -0
  134. package/index44.js +6 -0
  135. package/index45.js +53 -0
  136. package/index46.js +18 -0
  137. package/index47.js +27 -0
  138. package/index48.js +18 -0
  139. package/index49.js +21 -0
  140. package/index5.js +5 -0
  141. package/index50.js +49 -0
  142. package/index51.js +5 -0
  143. package/index52.js +25 -0
  144. package/index53.js +18 -0
  145. package/index54.js +9 -0
  146. package/index55.js +25 -0
  147. package/index56.js +18 -0
  148. package/index57.js +11 -0
  149. package/index58.js +12 -0
  150. package/index59.js +15 -0
  151. package/index6.js +4 -0
  152. package/index60.js +9 -0
  153. package/index61.js +9 -0
  154. package/index62.js +19 -0
  155. package/index63.js +22 -0
  156. package/index64.js +61 -0
  157. package/index65.js +15 -0
  158. package/index66.js +11 -0
  159. package/index67.js +63 -0
  160. package/index68.js +85 -0
  161. package/index69.js +74 -0
  162. package/index7.js +9 -0
  163. package/index70.js +24 -0
  164. package/index71.js +69 -0
  165. package/index72.js +80 -0
  166. package/index73.js +140 -0
  167. package/index74.js +70 -0
  168. package/index75.js +42 -0
  169. package/index76.js +82 -0
  170. package/index77.js +71 -0
  171. package/index78.js +104 -0
  172. package/index79.js +274 -0
  173. package/index8.js +4 -0
  174. package/index80.js +724 -0
  175. package/index81.js +491 -0
  176. package/index82.js +317 -0
  177. package/index83.js +391 -0
  178. package/index84.js +254 -0
  179. package/index85.js +1364 -0
  180. package/index86.js +1009 -0
  181. package/index87.js +388 -0
  182. package/index88.js +2105 -0
  183. package/index89.js +2371 -0
  184. package/index9.js +5 -0
  185. package/index90.js +6834 -0
  186. package/index91.js +17 -0
  187. package/index92.js +14 -0
  188. package/index93.js +6 -0
  189. package/index94.js +9 -0
  190. package/info-banner/InfoBanner.d.ts +21 -0
  191. package/info-banner/index.d.ts +1 -0
  192. package/intlStrings-Cd44R5hT.js +278 -0
  193. package/layout/Layout.d.ts +51 -0
  194. package/layout/index.d.ts +1 -0
  195. package/link/Link.d.ts +13 -0
  196. package/link/index.d.ts +1 -0
  197. package/link-button/LinkButton.d.ts +18 -0
  198. package/link-button/index.d.ts +1 -0
  199. package/logo/Logo.d.ts +16 -0
  200. package/logo/index.d.ts +1 -0
  201. package/modal/Modal.d.ts +13 -0
  202. package/modal/index.d.ts +1 -0
  203. package/multi-select/MultiSelect.d.ts +28 -0
  204. package/multi-select/index.d.ts +1 -0
  205. package/package.json +29 -0
  206. package/radio/Radio.d.ts +20 -0
  207. package/radio/index.d.ts +1 -0
  208. package/react.esm-D8HpDGKP.js +11060 -0
  209. package/search-field/SearchField.d.ts +13 -0
  210. package/search-field/index.d.ts +1 -0
  211. package/select/Select.d.ts +11 -0
  212. package/select/index.d.ts +1 -0
  213. package/spinner/Spinner.d.ts +11 -0
  214. package/spinner/index.d.ts +1 -0
  215. package/table/Table.d.ts +12 -0
  216. package/table/index.d.ts +1 -0
  217. package/tabs/Tabs.d.ts +12 -0
  218. package/tabs/index.d.ts +1 -0
  219. package/tag/Tag.d.ts +11 -0
  220. package/tag/index.d.ts +1 -0
  221. package/textarea/TextArea.d.ts +20 -0
  222. package/textarea/index.d.ts +1 -0
  223. package/textfield/TextField.d.ts +16 -0
  224. package/textfield/index.d.ts +3 -0
  225. package/theme/index.d.ts +138 -0
  226. package/theme/tokens.d.ts +135 -0
  227. package/toast/Toast.d.ts +25 -0
  228. package/toast/index.d.ts +1 -0
  229. package/tokens-CjXmpXTi.js +160 -0
  230. package/triangle-alert-1OYl9KWz.js +56 -0
  231. package/useControlledState-S_TYcV_c.js +45 -0
  232. package/useDescription-D4_zk_sA.js +32 -0
  233. package/useFilter-BnJDBCkt.js +35 -0
  234. package/useFocusRing-D97-G3fT.js +1324 -0
  235. package/useFocusable-C-N9wcwm.js +56 -0
  236. package/useGridSelectionCheckbox-i1rsjlC-.js +22 -0
  237. package/useHasTabbableChild-DeuCnGGv.js +34 -0
  238. package/useHighlightSelectionDescription-JVx2MW_e.js +552 -0
  239. package/useListState-DSOTbsL3.js +119 -0
  240. package/useLocalizedStringFormatter-DVCAZqcL.js +96 -0
  241. package/useSingleSelectListState-CmX9_L5H.js +34 -0
  242. package/useUpdateEffect-Dtz-i14F.js +12 -0
  243. package/x-JK7i-TQC.js +14 -0
package/index.css ADDED
@@ -0,0 +1 @@
1
+ ._root_nq4cs_4{width:100%}._trigger_nq4cs_8{font-family:Inter,sans-serif;color:#000;background-color:transparent;border:0;padding:1.5rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;width:100%;gap:10px}._trigger_nq4cs_8:focus-visible{outline:#000000 auto 2px}._trigger_nq4cs_8 svg{transition:transform .3s cubic-bezier(.87,0,.13,1)}._trigger_nq4cs_8[data-state=open] svg{transform:rotate(180deg)}._item_nq4cs_34{font-family:Inter,sans-serif;border-style:solid;border-color:#bfbfbf;border-width:1px 0 0;overflow:hidden}._item_nq4cs_34:hover ._trigger_nq4cs_8{background-color:#e6e6e6}._item_nq4cs_34:last-child{border-width:1px 0}._content_nq4cs_52{padding:0 1.5rem;overflow:hidden}._content_nq4cs_52[data-state=open]{animation:_slideDown_nq4cs_1 .3s cubic-bezier(.87,0,.13,1);margin-bottom:1.5rem}._content_nq4cs_52[data-state=closed]{animation:_slideUp_nq4cs_1 .3s cubic-bezier(.87,0,.13,1)}@keyframes _slideDown_nq4cs_1{0%{height:0;margin-bottom:0}to{height:var(--radix--content-height);margin-bottom:1.5rem}}@keyframes _slideUp_nq4cs_1{0%{height:var(--radix--content-height);margin-bottom:1.5rem}to{height:0;margin:0}}._header_nq4cs_90{margin:0}._triggerText_nq4cs_94{margin:0;padding:0;font-size:1.25rem;font-weight:400}
package/index.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ export * from './accordion';
2
+ export * from './breadcrumbs';
3
+ export * from './button';
4
+ export * from './card';
5
+ export * from './checkbox';
6
+ export * from './combobox';
7
+ export * from './date-picker';
8
+ export * from './dropdown';
9
+ export * from './file-upload';
10
+ export * from './flex';
11
+ export * from './grid';
12
+ export * from './info-banner';
13
+ export * from './layout';
14
+ export * from './link';
15
+ export * from './link-button';
16
+ export * from './logo';
17
+ export * from './modal';
18
+ export * from './multi-select';
19
+ export * from './radio';
20
+ export * from './search-field';
21
+ export * from './select';
22
+ export * from './spinner';
23
+ export * from './table';
24
+ export * from './tag';
25
+ export * from './tabs';
26
+ export * from './textarea';
27
+ export * from './textfield';
28
+ export * from './theme';
29
+ export * from './toast';
package/index.js ADDED
@@ -0,0 +1,114 @@
1
+ import { Accordion as e } from "./index40.js";
2
+ import { AccordionItem as a } from "./index41.js";
3
+ import { AccordionTrigger as p } from "./index42.js";
4
+ import { AccordionContent as s } from "./index43.js";
5
+ import { AccordionTagContext as i } from "./index44.js";
6
+ import { Breadcrumbs as d } from "./index84.js";
7
+ import { Button as c } from "./index69.js";
8
+ import { ButtonGroup as T } from "./index70.js";
9
+ import { Card as C } from "./index71.js";
10
+ import { C as I } from "./Checkbox-CllWDBxF.js";
11
+ import { CheckboxGroup as h } from "./index45.js";
12
+ import { ComboBox as B, ComboBoxItem as S } from "./index85.js";
13
+ import { DatePicker as A, DateRangePicker as F } from "./index90.js";
14
+ import { Dropdown as y, DropdownItem as D } from "./index76.js";
15
+ import { FileUpload as P } from "./index88.js";
16
+ import { Flex as v } from "./index46.js";
17
+ import { FlexItem as M } from "./index47.js";
18
+ import { Grid as z } from "./index48.js";
19
+ import { GridItem as Q } from "./index49.js";
20
+ import { InfoBanner as $ } from "./index72.js";
21
+ import { Header as J, Layout as K, Sidebar as N } from "./index79.js";
22
+ import { Link as V } from "./index77.js";
23
+ import { LinkButton as Y } from "./index78.js";
24
+ import { Logo as _ } from "./index73.js";
25
+ import { Modal as ro } from "./index74.js";
26
+ import { MultiSelect as to } from "./index80.js";
27
+ import { Radio as mo, RadioGroup as po } from "./index82.js";
28
+ import { SearchField as so } from "./index87.js";
29
+ import { Item as io, Select as no } from "./index81.js";
30
+ import { Spinner as co } from "./index75.js";
31
+ import { Cell as To, Column as uo, Row as Co, Table as go, TableBody as Io, TableHeader as Ro } from "./index89.js";
32
+ import { T as ko, a as Bo } from "./Tag-CEd6WWSc.js";
33
+ import { Tabs as Go } from "./index83.js";
34
+ import { TextArea as Fo } from "./index68.js";
35
+ import { T as yo } from "./TextField.module-Cwq1FAm7.js";
36
+ import { I as Lo, T as Po, s as Wo } from "./TextField-C_hq9WeT.js";
37
+ import { theme as Ho } from "./index30.js";
38
+ import { GlobalToastRegion as jo, Toast as zo, ToastProvider as Eo, ToastRegion as Qo, toastQueue as Uo } from "./index86.js";
39
+ import { $ as qo } from "./useFocusRing-D97-G3fT.js";
40
+ import { j as Ko, b as No, c as Oo, d as Vo, l as Xo, h as Yo, a as Zo, k as _o, e as or, f as rr, i as er, m as tr, g as ar, s as mr } from "./tokens-CjXmpXTi.js";
41
+ export {
42
+ e as Accordion,
43
+ s as AccordionContent,
44
+ a as AccordionItem,
45
+ i as AccordionTagContext,
46
+ p as AccordionTrigger,
47
+ d as Breadcrumbs,
48
+ c as Button,
49
+ T as ButtonGroup,
50
+ C as Card,
51
+ To as Cell,
52
+ I as Checkbox,
53
+ h as CheckboxGroup,
54
+ uo as Column,
55
+ B as ComboBox,
56
+ S as ComboBoxItem,
57
+ A as DatePicker,
58
+ F as DateRangePicker,
59
+ y as Dropdown,
60
+ D as DropdownItem,
61
+ P as FileUpload,
62
+ v as Flex,
63
+ M as FlexItem,
64
+ jo as GlobalToastRegion,
65
+ z as Grid,
66
+ Q as GridItem,
67
+ J as Header,
68
+ $ as InfoBanner,
69
+ Lo as InputWrapper,
70
+ io as Item,
71
+ K as Layout,
72
+ V as Link,
73
+ Y as LinkButton,
74
+ _ as Logo,
75
+ ro as Modal,
76
+ to as MultiSelect,
77
+ mo as Radio,
78
+ po as RadioGroup,
79
+ qo as RouterProvider,
80
+ Co as Row,
81
+ so as SearchField,
82
+ no as Select,
83
+ N as Sidebar,
84
+ co as Spinner,
85
+ go as Table,
86
+ Io as TableBody,
87
+ Ro as TableHeader,
88
+ Go as Tabs,
89
+ ko as Tag,
90
+ Bo as TagGroup,
91
+ Fo as TextArea,
92
+ Po as TextField,
93
+ yo as TextFieldStyles,
94
+ zo as Toast,
95
+ Eo as ToastProvider,
96
+ Qo as ToastRegion,
97
+ Ko as accessibility,
98
+ No as baseColors,
99
+ Oo as borderRadius,
100
+ Vo as borderWidths,
101
+ Xo as boxShadow,
102
+ Yo as breakpoints,
103
+ Zo as buttonColors,
104
+ _o as font,
105
+ or as fontSizes,
106
+ rr as fontWeights,
107
+ er as inputColor,
108
+ tr as midasColors,
109
+ ar as midasTransitions,
110
+ mr as signalColors,
111
+ Wo as ssnRegEx,
112
+ Ho as theme,
113
+ Uo as toastQueue
114
+ };
package/index10.js ADDED
@@ -0,0 +1,4 @@
1
+ import { SearchField as o } from "./index87.js";
2
+ export {
3
+ o as SearchField
4
+ };
package/index11.js ADDED
@@ -0,0 +1,5 @@
1
+ import { Radio as a, RadioGroup as d } from "./index82.js";
2
+ export {
3
+ a as Radio,
4
+ d as RadioGroup
5
+ };
package/index12.js ADDED
@@ -0,0 +1,4 @@
1
+ import { MultiSelect as l } from "./index80.js";
2
+ export {
3
+ l as MultiSelect
4
+ };
package/index13.js ADDED
@@ -0,0 +1,4 @@
1
+ import { Modal as a } from "./index74.js";
2
+ export {
3
+ a as Modal
4
+ };
package/index14.js ADDED
@@ -0,0 +1,4 @@
1
+ import { Logo as e } from "./index73.js";
2
+ export {
3
+ e as Logo
4
+ };
package/index15.js ADDED
@@ -0,0 +1,6 @@
1
+ import { LinkButton as t } from "./index78.js";
2
+ import { $ as f } from "./useFocusRing-D97-G3fT.js";
3
+ export {
4
+ t as LinkButton,
5
+ f as RouterProvider
6
+ };
package/index16.js ADDED
@@ -0,0 +1,6 @@
1
+ import { Link as e } from "./index77.js";
2
+ import { $ as f } from "./useFocusRing-D97-G3fT.js";
3
+ export {
4
+ e as Link,
5
+ f as RouterProvider
6
+ };
package/index17.js ADDED
@@ -0,0 +1,6 @@
1
+ import { Header as a, Layout as o, Sidebar as d } from "./index79.js";
2
+ export {
3
+ a as Header,
4
+ o as Layout,
5
+ d as Sidebar
6
+ };
package/index18.js ADDED
@@ -0,0 +1,4 @@
1
+ import { InfoBanner as r } from "./index72.js";
2
+ export {
3
+ r as InfoBanner
4
+ };
package/index19.js ADDED
@@ -0,0 +1,6 @@
1
+ import { Grid as e } from "./index48.js";
2
+ import { GridItem as t } from "./index49.js";
3
+ export {
4
+ e as Grid,
5
+ t as GridItem
6
+ };
package/index2.js ADDED
@@ -0,0 +1,8 @@
1
+ import { GlobalToastRegion as a, Toast as e, ToastProvider as s, ToastRegion as r, toastQueue as T } from "./index86.js";
2
+ export {
3
+ a as GlobalToastRegion,
4
+ e as Toast,
5
+ s as ToastProvider,
6
+ r as ToastRegion,
7
+ T as toastQueue
8
+ };
package/index20.js ADDED
@@ -0,0 +1,6 @@
1
+ import { Flex as r } from "./index46.js";
2
+ import { FlexItem as m } from "./index47.js";
3
+ export {
4
+ r as Flex,
5
+ m as FlexItem
6
+ };
package/index21.js ADDED
@@ -0,0 +1,4 @@
1
+ import { FileUpload as l } from "./index88.js";
2
+ export {
3
+ l as FileUpload
4
+ };
package/index22.js ADDED
@@ -0,0 +1,5 @@
1
+ import { Dropdown as p, DropdownItem as d } from "./index76.js";
2
+ export {
3
+ p as Dropdown,
4
+ d as DropdownItem
5
+ };
package/index23.js ADDED
@@ -0,0 +1,5 @@
1
+ import { DatePicker as a, DateRangePicker as t } from "./index90.js";
2
+ export {
3
+ a as DatePicker,
4
+ t as DateRangePicker
5
+ };
package/index24.js ADDED
@@ -0,0 +1,5 @@
1
+ import { ComboBox as x, ComboBoxItem as b } from "./index85.js";
2
+ export {
3
+ x as ComboBox,
4
+ b as ComboBoxItem
5
+ };
package/index25.js ADDED
@@ -0,0 +1,6 @@
1
+ import { C as e } from "./Checkbox-CllWDBxF.js";
2
+ import { CheckboxGroup as p } from "./index45.js";
3
+ export {
4
+ e as Checkbox,
5
+ p as CheckboxGroup
6
+ };
package/index26.js ADDED
@@ -0,0 +1,6 @@
1
+ import { Card as e } from "./index71.js";
2
+ import { $ as a } from "./useFocusRing-D97-G3fT.js";
3
+ export {
4
+ e as Card,
5
+ a as RouterProvider
6
+ };
package/index27.js ADDED
@@ -0,0 +1,6 @@
1
+ import { Button as r } from "./index69.js";
2
+ import { ButtonGroup as u } from "./index70.js";
3
+ export {
4
+ r as Button,
5
+ u as ButtonGroup
6
+ };
package/index28.js ADDED
@@ -0,0 +1,4 @@
1
+ import { Breadcrumbs as m } from "./index84.js";
2
+ export {
3
+ m as Breadcrumbs
4
+ };
package/index29.js ADDED
@@ -0,0 +1,12 @@
1
+ import { Accordion as c } from "./index40.js";
2
+ import { AccordionItem as e } from "./index41.js";
3
+ import { AccordionTrigger as i } from "./index42.js";
4
+ import { AccordionContent as x } from "./index43.js";
5
+ import { AccordionTagContext as f } from "./index44.js";
6
+ export {
7
+ c as Accordion,
8
+ x as AccordionContent,
9
+ e as AccordionItem,
10
+ f as AccordionTagContext,
11
+ i as AccordionTrigger
12
+ };
package/index3.js ADDED
@@ -0,0 +1,8 @@
1
+ import { T as r } from "./TextField.module-Cwq1FAm7.js";
2
+ import { I as a, T as p, s as x } from "./TextField-C_hq9WeT.js";
3
+ export {
4
+ a as InputWrapper,
5
+ p as TextField,
6
+ r as TextFieldStyles,
7
+ x as ssnRegEx
8
+ };
package/index30.js ADDED
@@ -0,0 +1,20 @@
1
+ import { t as s } from "./tokens-CjXmpXTi.js";
2
+ import { j as r, b as e, c as n, d as b, l as d, h as l, a as m, k as f, e as h, f as p, i as C, m as c, g, s as k } from "./tokens-CjXmpXTi.js";
3
+ const a = { ...s };
4
+ export {
5
+ r as accessibility,
6
+ e as baseColors,
7
+ n as borderRadius,
8
+ b as borderWidths,
9
+ d as boxShadow,
10
+ l as breakpoints,
11
+ m as buttonColors,
12
+ f as font,
13
+ h as fontSizes,
14
+ p as fontWeights,
15
+ C as inputColor,
16
+ c as midasColors,
17
+ g as midasTransitions,
18
+ k as signalColors,
19
+ a as theme
20
+ };
package/index31.js ADDED
@@ -0,0 +1,22 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { r as i } from "./react.esm-D8HpDGKP.js";
3
+ import { j as o } from "./index-Dl1Q-tbj.js";
4
+ import { T as a } from "./TextField-C_hq9WeT.js";
5
+ expect.extend(o.toHaveNoViolations);
6
+ describe("given a default TextField", () => {
7
+ let e;
8
+ beforeEach(() => {
9
+ e = i(
10
+ /* @__PURE__ */ t(
11
+ r,
12
+ {
13
+ label: "Label for input",
14
+ type: "text"
15
+ }
16
+ )
17
+ );
18
+ }), it("should have no accessibility violations", async () => {
19
+ expect(await o.axe(e.container)).toHaveNoViolations();
20
+ });
21
+ });
22
+ const r = (e) => /* @__PURE__ */ t(a, { ...e });
package/index32.js ADDED
@@ -0,0 +1,14 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { r as a } from "./react.esm-D8HpDGKP.js";
3
+ import { TextArea as i } from "./index68.js";
4
+ import { j as o } from "./index-Dl1Q-tbj.js";
5
+ expect.extend(o.toHaveNoViolations);
6
+ describe("given a default TextField", () => {
7
+ let e;
8
+ beforeEach(() => {
9
+ e = a(/* @__PURE__ */ t(r, { label: "Label for input" }));
10
+ }), it("should have no accessibility violations", async () => {
11
+ expect(await o.axe(e.container)).toHaveNoViolations();
12
+ });
13
+ });
14
+ const r = (e) => /* @__PURE__ */ t(i, { ...e });
package/index33.js ADDED
@@ -0,0 +1,11 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { r as a } from "./react.esm-D8HpDGKP.js";
3
+ import { a as l, T as t } from "./Tag-CEd6WWSc.js";
4
+ describe("Tag", () => {
5
+ it("should render successfully", () => {
6
+ const { baseElement: r } = a(
7
+ /* @__PURE__ */ e(l, { "aria-label": "label", children: /* @__PURE__ */ e(t, { textValue: "value", children: "Item A" }) })
8
+ );
9
+ expect(r).toBeTruthy();
10
+ });
11
+ });
package/index34.js ADDED
@@ -0,0 +1,31 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { r as s } from "./react.esm-D8HpDGKP.js";
3
+ import { Tabs as a } from "./index83.js";
4
+ import { Button as u } from "./index69.js";
5
+ describe("Tabs", () => {
6
+ it("should render successfully", () => {
7
+ const e = {
8
+ defaultSelected: "Viktigt att veta",
9
+ label: "Följ processen",
10
+ tabs: ["Processen", "Viktigt att veta", "Ansök"]
11
+ }, { baseElement: r } = s(
12
+ /* @__PURE__ */ i(
13
+ a,
14
+ {
15
+ defaultSelected: e.defaultSelected,
16
+ label: e.label,
17
+ tabs: e.tabs,
18
+ children: [
19
+ /* @__PURE__ */ t("div", { children: "Processen går till såhär Lorem ipsum dolor sit amet consectetur adipisicing elit. Asperiores expedita, excepturi, hic modi tenetur maxime dicta omnis aliquam quas doloremque cumque repellendus iure. Eveniet reprehenderit sapiente quidem culpa nam? Vel?" }),
20
+ /* @__PURE__ */ t("div", { children: "Det är viktigt att veta att Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ipsum veritatis quisquam amet, rem aperiam error nostrum earum consequuntur quidem fugit. Blanditiis odit corrupti consequatur nam culpa nesciunt cupiditate autem suscipit." }),
21
+ /* @__PURE__ */ i("div", { children: [
22
+ "Ansök här: ",
23
+ /* @__PURE__ */ t(u, { children: "Ansök" })
24
+ ] })
25
+ ]
26
+ }
27
+ )
28
+ );
29
+ expect(r).toBeTruthy();
30
+ });
31
+ });
package/index35.js ADDED
@@ -0,0 +1,8 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { r as o } from "./react.esm-D8HpDGKP.js";
3
+ describe("Table", () => {
4
+ it("should render successfully", () => {
5
+ const { baseElement: e } = o(/* @__PURE__ */ r("p", { children: "Test kommer inom kort" }));
6
+ expect(e).toBeTruthy();
7
+ });
8
+ });
package/index36.js ADDED
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { r as o } from "./react.esm-D8HpDGKP.js";
3
+ import { Spinner as s } from "./index75.js";
4
+ describe("Spinner", () => {
5
+ it("should render successfully", () => {
6
+ const { baseElement: e } = o(/* @__PURE__ */ r(s, {}));
7
+ expect(e).toBeTruthy();
8
+ });
9
+ });
package/index37.js ADDED
@@ -0,0 +1,19 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { r as t } from "./react.esm-D8HpDGKP.js";
3
+ import { Select as i, Item as l } from "./index81.js";
4
+ describe("Select", () => {
5
+ it("should render successfully", () => {
6
+ const { baseElement: r } = t(
7
+ /* @__PURE__ */ e(
8
+ i,
9
+ {
10
+ description: "Beskrivning",
11
+ label: "Etikett",
12
+ placeholder: "One item...",
13
+ children: /* @__PURE__ */ e(l, { children: "Item A" })
14
+ }
15
+ )
16
+ );
17
+ expect(r).toBeTruthy();
18
+ });
19
+ });
package/index38.js ADDED
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { r as o } from "./react.esm-D8HpDGKP.js";
3
+ import { SearchField as c } from "./index87.js";
4
+ describe("SearchField", () => {
5
+ it("should render successfully", () => {
6
+ const { baseElement: e } = o(/* @__PURE__ */ r(c, { placeholder: "Search" }));
7
+ expect(e).toBeTruthy();
8
+ });
9
+ });
package/index39.js ADDED
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { r as t } from "./react.esm-D8HpDGKP.js";
3
+ import { RadioGroup as o } from "./index82.js";
4
+ describe("Radio", () => {
5
+ it("should render successfully", () => {
6
+ const { baseElement: e } = t(/* @__PURE__ */ r(o, { label: "Välj ett av följande alternativ" }));
7
+ expect(e).toBeTruthy();
8
+ });
9
+ });
package/index4.js ADDED
@@ -0,0 +1,4 @@
1
+ import { TextArea as o } from "./index68.js";
2
+ export {
3
+ o as TextArea
4
+ };
package/index40.js ADDED
@@ -0,0 +1,16 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { R as t, s as a } from "./index-CgfokhRq.js";
3
+ import { forwardRef as c } from "react";
4
+ import { AccordionTagContext as e } from "./index44.js";
5
+ import { c as i } from "./clsx-OuTLNxxd.js";
6
+ const x = c(({ headingTag: m = "p", ...o }, s) => /* @__PURE__ */ r(e.Provider, { value: m, children: /* @__PURE__ */ r(
7
+ t,
8
+ {
9
+ className: i(a.root, ...o.className || ""),
10
+ ref: s,
11
+ ...o
12
+ }
13
+ ) }));
14
+ export {
15
+ x as Accordion
16
+ };
package/index41.js ADDED
@@ -0,0 +1,16 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { I as o, s } from "./index-CgfokhRq.js";
3
+ import { forwardRef as t } from "react";
4
+ import { c } from "./clsx-OuTLNxxd.js";
5
+ const d = t((m, r) => /* @__PURE__ */ e(
6
+ o,
7
+ {
8
+ ref: r,
9
+ className: c(s.item, m.className),
10
+ ...m,
11
+ children: m.children
12
+ }
13
+ ));
14
+ export {
15
+ d as AccordionItem
16
+ };
package/index42.js ADDED
@@ -0,0 +1,31 @@
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { H as t, s as e, T as g } from "./index-CgfokhRq.js";
4
+ import { c as n } from "./clsx-OuTLNxxd.js";
5
+ import { useAccordionTag as d } from "./index44.js";
6
+ import { C as f } from "./chevron-down-Cd1bkzXT.js";
7
+ const u = m(({ children: o, ...s }, a) => {
8
+ const i = d();
9
+ return /* @__PURE__ */ r(
10
+ t,
11
+ {
12
+ className: e.accordionHeader,
13
+ asChild: !0,
14
+ children: /* @__PURE__ */ c(
15
+ g,
16
+ {
17
+ ref: a,
18
+ className: n(e.trigger, s.className),
19
+ ...s,
20
+ children: [
21
+ /* @__PURE__ */ r(i, { className: e.triggerText, children: o }),
22
+ /* @__PURE__ */ r(f, { size: 20 })
23
+ ]
24
+ }
25
+ )
26
+ }
27
+ );
28
+ });
29
+ export {
30
+ u as AccordionTrigger
31
+ };
package/index43.js ADDED
@@ -0,0 +1,16 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
+ import { C as s, s as c } from "./index-CgfokhRq.js";
4
+ import { c as m } from "./clsx-OuTLNxxd.js";
5
+ const l = e((o, r) => /* @__PURE__ */ t(
6
+ s,
7
+ {
8
+ ref: r,
9
+ className: m(c.content, o.className),
10
+ ...o,
11
+ children: o.children
12
+ }
13
+ ));
14
+ export {
15
+ l as AccordionContent
16
+ };
package/index44.js ADDED
@@ -0,0 +1,6 @@
1
+ import { createContext as o, useContext as t } from "react";
2
+ const e = o("p"), n = () => t(e);
3
+ export {
4
+ e as AccordionTagContext,
5
+ n as useAccordionTag
6
+ };
package/index45.js ADDED
@@ -0,0 +1,53 @@
1
+ import { jsx as c, jsxs as x } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import { $ as C, s as i, a as V, C as v } from "./Checkbox-CllWDBxF.js";
4
+ import { $ as I } from "./Group-DPMuN3h8.js";
5
+ import { I as S } from "./TextField-C_hq9WeT.js";
6
+ const N = ({
7
+ label: m,
8
+ description: f,
9
+ errorMessage: g,
10
+ showSelectAll: p,
11
+ children: s,
12
+ ...h
13
+ }) => {
14
+ const [t, e] = r.useState(), b = () => {
15
+ const l = r.useContext(V), n = r.Children.toArray(s).filter(r.isValidElement).map((a) => a.props.value), A = () => t !== "all" ? (e("all"), l == null ? void 0 : l.setValue(["toggleAll", ...n])) : (e("none"), l == null ? void 0 : l.setValue([]));
16
+ return r.useEffect(() => {
17
+ var u, d;
18
+ const a = n.length, $ = n.length + 1, o = ((u = l == null ? void 0 : l.value) == null ? void 0 : u.length) || 0;
19
+ o === 0 && e("none"), o > 0 && o < a && e("some"), o !== $ && (l == null || l.removeValue("toggleAll")), o === a && !((d = l == null ? void 0 : l.value) != null && d.includes("toggleAll")) && (l == null || l.addValue("toggleAll"), e("all"));
20
+ }, [n.length, l == null ? void 0 : l.value]), /* @__PURE__ */ c(
21
+ v,
22
+ {
23
+ value: "toggleAll",
24
+ isSelected: t === "all",
25
+ isIndeterminate: t === "some",
26
+ onChange: () => A(),
27
+ children: "Välj alla"
28
+ }
29
+ );
30
+ };
31
+ return /* @__PURE__ */ c(
32
+ C,
33
+ {
34
+ className: i.checkboxGroup,
35
+ ...h,
36
+ children: /* @__PURE__ */ c(
37
+ S,
38
+ {
39
+ label: m,
40
+ description: f,
41
+ errorMessage: g,
42
+ children: /* @__PURE__ */ x(I, { className: i.wrap, children: [
43
+ p && /* @__PURE__ */ c(b, {}),
44
+ s
45
+ ] })
46
+ }
47
+ )
48
+ }
49
+ );
50
+ };
51
+ export {
52
+ N as CheckboxGroup
53
+ };
package/index46.js ADDED
@@ -0,0 +1,18 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { s } from "./Flex.module-CpoxBzQX.js";
3
+ import { c as m } from "./clsx-OuTLNxxd.js";
4
+ const t = ({
5
+ children: l,
6
+ fluid: r = !1,
7
+ ...a
8
+ }) => /* @__PURE__ */ e(
9
+ "div",
10
+ {
11
+ className: m(s.container, r && s.fluid, a.className),
12
+ ...a,
13
+ children: /* @__PURE__ */ e("div", { className: s.flex, children: l })
14
+ }
15
+ );
16
+ export {
17
+ t as Flex
18
+ };