@midas-ds/components 1.1.0 → 1.3.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 (183) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/accordion/AccordionItem.d.ts +2 -2
  3. package/index.cjs +138 -0
  4. package/index.css +1 -0
  5. package/index.d.ts +0 -2
  6. package/index.js +27094 -105
  7. package/package.json +22 -4
  8. package/table/Table.d.ts +3 -4
  9. package/textfield/TextField.d.ts +15 -4
  10. package/theme.cjs +1 -0
  11. package/theme.js +20 -0
  12. package/tokens-BskyMDHv.cjs +1 -0
  13. package/Breadcrumbs.css +0 -1
  14. package/Button-DL6nqUco.js +0 -182
  15. package/Button.css +0 -1
  16. package/ButtonGroup.css +0 -1
  17. package/Card.css +0 -1
  18. package/Checkbox-q0dugR2t.js +0 -402
  19. package/Checkbox.css +0 -1
  20. package/Collection-KMFfVuzU.js +0 -510
  21. package/ComboBox.css +0 -1
  22. package/DatePicker.css +0 -1
  23. package/Dialog-D6Bqrpn-.js +0 -1952
  24. package/Disclosure-dAZYXyTH.js +0 -225
  25. package/Disclosure.css +0 -1
  26. package/DragAndDrop-B0T3WgjL.js +0 -40
  27. package/Dropdown.css +0 -1
  28. package/FileUpload.css +0 -1
  29. package/Flex.css +0 -1
  30. package/Flex.module-CpoxBzQX.js +0 -37
  31. package/FocusScope-B7CkxXNC.js +0 -513
  32. package/Form-BWBjJC6v.js +0 -238
  33. package/Grid.css +0 -1
  34. package/Grid.module-Ia0e9Dix.js +0 -36
  35. package/Group-D7_8007y.js +0 -42
  36. package/Heading-RCRHv6hd.js +0 -15
  37. package/Hidden-CVlUgUJM.js +0 -37
  38. package/InfoBanner.css +0 -1
  39. package/Layout.css +0 -1
  40. package/Link-BnQvB-hH.js +0 -75
  41. package/Link.css +0 -1
  42. package/LinkButton.css +0 -1
  43. package/ListBox-DBBiqvcR.js +0 -474
  44. package/ListKeyboardDelegate-gCXy-Xnn.js +0 -172
  45. package/Logo.css +0 -1
  46. package/Modal.css +0 -1
  47. package/MultiSelect.css +0 -1
  48. package/PressResponder-B4g56kDz.js +0 -31
  49. package/RSPContexts-BW2SEIqe.js +0 -11
  50. package/Radio.css +0 -1
  51. package/SearchField.css +0 -1
  52. package/Select.css +0 -1
  53. package/SelectionManager-BfXUE1qg.js +0 -1031
  54. package/Separator-BBX9m2O2.js +0 -49
  55. package/Spinner.css +0 -1
  56. package/Table.css +0 -1
  57. package/Tabs.css +0 -1
  58. package/Tag-DWt0koFj.js +0 -728
  59. package/Tag.css +0 -1
  60. package/Text-BCF0xvqL.js +0 -15
  61. package/TextArea.css +0 -1
  62. package/TextField-CX4eOQf6.js +0 -225
  63. package/TextField.css +0 -1
  64. package/TextField.module-DdICj682.js +0 -143
  65. package/Toast.css +0 -1
  66. package/VisuallyHidden-Dhr5caPC.js +0 -39
  67. package/chevron-down-Cd1bkzXT.js +0 -13
  68. package/chevron-right-DBMc9VMi.js +0 -23
  69. package/clsx-OuTLNxxd.js +0 -16
  70. package/context-BpJLnOuu.js +0 -80
  71. package/createLucideIcon-DeWljiyi.js +0 -79
  72. package/index-B-jHjTDC.js +0 -120
  73. package/index-BPdc9gJ8.js +0 -3122
  74. package/index-KSgQWWiy.js +0 -26984
  75. package/index10.js +0 -4
  76. package/index11.js +0 -5
  77. package/index12.js +0 -4
  78. package/index13.js +0 -4
  79. package/index14.js +0 -4
  80. package/index15.js +0 -6
  81. package/index16.js +0 -6
  82. package/index17.js +0 -6
  83. package/index18.js +0 -4
  84. package/index19.js +0 -6
  85. package/index2.js +0 -8
  86. package/index20.js +0 -6
  87. package/index21.js +0 -4
  88. package/index22.js +0 -5
  89. package/index23.js +0 -5
  90. package/index24.js +0 -5
  91. package/index25.js +0 -6
  92. package/index26.js +0 -6
  93. package/index27.js +0 -6
  94. package/index28.js +0 -4
  95. package/index29.js +0 -6
  96. package/index3.js +0 -6
  97. package/index30.js +0 -21
  98. package/index31.js +0 -22
  99. package/index32.js +0 -14
  100. package/index33.js +0 -11
  101. package/index34.js +0 -31
  102. package/index35.js +0 -8
  103. package/index36.js +0 -9
  104. package/index37.js +0 -19
  105. package/index38.js +0 -9
  106. package/index39.js +0 -9
  107. package/index4.js +0 -4
  108. package/index40.js +0 -23
  109. package/index41.js +0 -63
  110. package/index42.js +0 -53
  111. package/index43.js +0 -18
  112. package/index44.js +0 -27
  113. package/index45.js +0 -18
  114. package/index46.js +0 -21
  115. package/index47.js +0 -49
  116. package/index48.js +0 -5
  117. package/index49.js +0 -25
  118. package/index5.js +0 -5
  119. package/index50.js +0 -18
  120. package/index51.js +0 -9
  121. package/index52.js +0 -25
  122. package/index53.js +0 -18
  123. package/index54.js +0 -11
  124. package/index55.js +0 -12
  125. package/index56.js +0 -15
  126. package/index57.js +0 -9
  127. package/index58.js +0 -9
  128. package/index59.js +0 -19
  129. package/index6.js +0 -4
  130. package/index60.js +0 -22
  131. package/index61.js +0 -61
  132. package/index62.js +0 -15
  133. package/index63.js +0 -11
  134. package/index64.js +0 -53
  135. package/index65.js +0 -85
  136. package/index66.js +0 -74
  137. package/index67.js +0 -24
  138. package/index68.js +0 -69
  139. package/index69.js +0 -80
  140. package/index7.js +0 -9
  141. package/index70.js +0 -140
  142. package/index71.js +0 -70
  143. package/index72.js +0 -42
  144. package/index73.js +0 -82
  145. package/index74.js +0 -71
  146. package/index75.js +0 -104
  147. package/index76.js +0 -275
  148. package/index77.js +0 -723
  149. package/index78.js +0 -489
  150. package/index79.js +0 -314
  151. package/index8.js +0 -4
  152. package/index80.js +0 -389
  153. package/index81.js +0 -252
  154. package/index82.js +0 -1364
  155. package/index83.js +0 -1009
  156. package/index84.js +0 -386
  157. package/index85.js +0 -2101
  158. package/index86.js +0 -2368
  159. package/index87.js +0 -6831
  160. package/index88.js +0 -17
  161. package/index89.js +0 -14
  162. package/index9.js +0 -5
  163. package/index90.js +0 -6
  164. package/index91.js +0 -9
  165. package/intlStrings-Cd44R5hT.js +0 -278
  166. package/react.esm-sMU8Z7rL.js +0 -11060
  167. package/triangle-alert-1OYl9KWz.js +0 -56
  168. package/useControlledState-Kv9K2AYu.js +0 -30
  169. package/useDescription-B7stiK3j.js +0 -32
  170. package/useEvent-Xk5kn5Ns.js +0 -21
  171. package/useField-DMzJIIN4.js +0 -67
  172. package/useFilter-Bt9dbV1U.js +0 -35
  173. package/useFocusRing-9PXyKy2A.js +0 -1297
  174. package/useFocusable-CcEBZe40.js +0 -59
  175. package/useGridSelectionCheckbox-DYgEnElE.js +0 -22
  176. package/useHasTabbableChild-D6DwR81L.js +0 -34
  177. package/useHighlightSelectionDescription-WYAbP4No.js +0 -552
  178. package/useLabels-9zaZ9oa0.js +0 -17
  179. package/useListState-BfTeKTk5.js +0 -119
  180. package/useLocalizedStringFormatter-BlCbn-hX.js +0 -96
  181. package/useSingleSelectListState-DPkaL0la.js +0 -34
  182. package/useUpdateEffect-Dtz-i14F.js +0 -12
  183. package/x-JK7i-TQC.js +0 -14
package/index10.js DELETED
@@ -1,4 +0,0 @@
1
- import { SearchField as o } from "./index84.js";
2
- export {
3
- o as SearchField
4
- };
package/index11.js DELETED
@@ -1,5 +0,0 @@
1
- import { Radio as a, RadioGroup as d } from "./index79.js";
2
- export {
3
- a as Radio,
4
- d as RadioGroup
5
- };
package/index12.js DELETED
@@ -1,4 +0,0 @@
1
- import { MultiSelect as l } from "./index77.js";
2
- export {
3
- l as MultiSelect
4
- };
package/index13.js DELETED
@@ -1,4 +0,0 @@
1
- import { Modal as a } from "./index71.js";
2
- export {
3
- a as Modal
4
- };
package/index14.js DELETED
@@ -1,4 +0,0 @@
1
- import { Logo as e } from "./index70.js";
2
- export {
3
- e as Logo
4
- };
package/index15.js DELETED
@@ -1,6 +0,0 @@
1
- import { LinkButton as t } from "./index75.js";
2
- import { $ as f } from "./useFocusRing-9PXyKy2A.js";
3
- export {
4
- t as LinkButton,
5
- f as RouterProvider
6
- };
package/index16.js DELETED
@@ -1,6 +0,0 @@
1
- import { Link as e } from "./index74.js";
2
- import { $ as f } from "./useFocusRing-9PXyKy2A.js";
3
- export {
4
- e as Link,
5
- f as RouterProvider
6
- };
package/index17.js DELETED
@@ -1,6 +0,0 @@
1
- import { Header as a, Layout as o, Sidebar as d } from "./index76.js";
2
- export {
3
- a as Header,
4
- o as Layout,
5
- d as Sidebar
6
- };
package/index18.js DELETED
@@ -1,4 +0,0 @@
1
- import { InfoBanner as r } from "./index69.js";
2
- export {
3
- r as InfoBanner
4
- };
package/index19.js DELETED
@@ -1,6 +0,0 @@
1
- import { Grid as e } from "./index45.js";
2
- import { GridItem as t } from "./index46.js";
3
- export {
4
- e as Grid,
5
- t as GridItem
6
- };
package/index2.js DELETED
@@ -1,8 +0,0 @@
1
- import { GlobalToastRegion as a, Toast as e, ToastProvider as s, ToastRegion as r, toastQueue as T } from "./index83.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 DELETED
@@ -1,6 +0,0 @@
1
- import { Flex as r } from "./index43.js";
2
- import { FlexItem as m } from "./index44.js";
3
- export {
4
- r as Flex,
5
- m as FlexItem
6
- };
package/index21.js DELETED
@@ -1,4 +0,0 @@
1
- import { FileUpload as l } from "./index85.js";
2
- export {
3
- l as FileUpload
4
- };
package/index22.js DELETED
@@ -1,5 +0,0 @@
1
- import { Dropdown as p, DropdownItem as d } from "./index73.js";
2
- export {
3
- p as Dropdown,
4
- d as DropdownItem
5
- };
package/index23.js DELETED
@@ -1,5 +0,0 @@
1
- import { DatePicker as a, DateRangePicker as t } from "./index87.js";
2
- export {
3
- a as DatePicker,
4
- t as DateRangePicker
5
- };
package/index24.js DELETED
@@ -1,5 +0,0 @@
1
- import { ComboBox as x, ComboBoxItem as b } from "./index82.js";
2
- export {
3
- x as ComboBox,
4
- b as ComboBoxItem
5
- };
package/index25.js DELETED
@@ -1,6 +0,0 @@
1
- import { C as e } from "./Checkbox-q0dugR2t.js";
2
- import { CheckboxGroup as p } from "./index42.js";
3
- export {
4
- e as Checkbox,
5
- p as CheckboxGroup
6
- };
package/index26.js DELETED
@@ -1,6 +0,0 @@
1
- import { Card as e } from "./index68.js";
2
- import { $ as a } from "./useFocusRing-9PXyKy2A.js";
3
- export {
4
- e as Card,
5
- a as RouterProvider
6
- };
package/index27.js DELETED
@@ -1,6 +0,0 @@
1
- import { Button as r } from "./index66.js";
2
- import { ButtonGroup as u } from "./index67.js";
3
- export {
4
- r as Button,
5
- u as ButtonGroup
6
- };
package/index28.js DELETED
@@ -1,4 +0,0 @@
1
- import { Breadcrumbs as m } from "./index81.js";
2
- export {
3
- m as Breadcrumbs
4
- };
package/index29.js DELETED
@@ -1,6 +0,0 @@
1
- import { Accordion as c } from "./index40.js";
2
- import { AccordionItem as m } from "./index41.js";
3
- export {
4
- c as Accordion,
5
- m as AccordionItem
6
- };
package/index3.js DELETED
@@ -1,6 +0,0 @@
1
- import { I as a, T as p, s as r } from "./TextField-CX4eOQf6.js";
2
- export {
3
- a as InputWrapper,
4
- p as TextField,
5
- r as ssnRegEx
6
- };
package/index30.js DELETED
@@ -1,21 +0,0 @@
1
- import './global.css';/* empty css */
2
- import { t as s } from "./tokens-CjXmpXTi.js";
3
- import { j as e, b as n, c as b, d, l, h as m, a as f, k as p, e as h, f as C, i as c, m as g, g as k, s as u } from "./tokens-CjXmpXTi.js";
4
- const t = { ...s };
5
- export {
6
- e as accessibility,
7
- n as baseColors,
8
- b as borderRadius,
9
- d as borderWidths,
10
- l as boxShadow,
11
- m as breakpoints,
12
- f as buttonColors,
13
- p as font,
14
- h as fontSizes,
15
- C as fontWeights,
16
- c as inputColor,
17
- g as midasColors,
18
- k as midasTransitions,
19
- u as signalColors,
20
- t as theme
21
- };
package/index31.js DELETED
@@ -1,22 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { r as i } from "./react.esm-sMU8Z7rL.js";
3
- import { j as o } from "./index-KSgQWWiy.js";
4
- import { T as a } from "./TextField-CX4eOQf6.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 DELETED
@@ -1,14 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { r as a } from "./react.esm-sMU8Z7rL.js";
3
- import { TextArea as i } from "./index65.js";
4
- import { j as o } from "./index-KSgQWWiy.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 DELETED
@@ -1,11 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { r as a } from "./react.esm-sMU8Z7rL.js";
3
- import { a as l, T as t } from "./Tag-DWt0koFj.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 DELETED
@@ -1,31 +0,0 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { r as s } from "./react.esm-sMU8Z7rL.js";
3
- import { Tabs as a } from "./index80.js";
4
- import { Button as u } from "./index66.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 DELETED
@@ -1,8 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { r as o } from "./react.esm-sMU8Z7rL.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 DELETED
@@ -1,9 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { r as o } from "./react.esm-sMU8Z7rL.js";
3
- import { Spinner as s } from "./index72.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 DELETED
@@ -1,19 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { r as t } from "./react.esm-sMU8Z7rL.js";
3
- import { Select as i, Item as l } from "./index78.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 DELETED
@@ -1,9 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { r as o } from "./react.esm-sMU8Z7rL.js";
3
- import { SearchField as c } from "./index84.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 DELETED
@@ -1,9 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { r as t } from "./react.esm-sMU8Z7rL.js";
3
- import { RadioGroup as o } from "./index79.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 DELETED
@@ -1,4 +0,0 @@
1
- import { TextArea as o } from "./index65.js";
2
- export {
3
- o as TextArea
4
- };
package/index40.js DELETED
@@ -1,23 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { $ as c, s as o } from "./Disclosure-dAZYXyTH.js";
3
- import { c as r } from "./clsx-OuTLNxxd.js";
4
- const f = ({
5
- variant: e = "uncontained",
6
- type: n = "single",
7
- children: t,
8
- ...s
9
- }) => /* @__PURE__ */ a(
10
- c,
11
- {
12
- allowsMultipleExpanded: n === "multiple",
13
- className: r(
14
- o.root,
15
- e === "contained" ? o.contained : o.uncontained
16
- ),
17
- ...s,
18
- children: t
19
- }
20
- );
21
- export {
22
- f as Accordion
23
- };
package/index41.js DELETED
@@ -1,63 +0,0 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import * as a from "react";
3
- import { a as d, s as e, b as $ } from "./Disclosure-dAZYXyTH.js";
4
- import { $ as h } from "./Heading-RCRHv6hd.js";
5
- import { Button as g } from "./index66.js";
6
- import { c as n } from "./clsx-OuTLNxxd.js";
7
- import { C as u } from "./chevron-down-Cd1bkzXT.js";
8
- const R = ({
9
- title: c,
10
- children: i,
11
- className: f,
12
- headingLevel: l = 3,
13
- ...m
14
- }) => {
15
- const r = a.useRef(null), [s, p] = a.useState(0);
16
- return a.useLayoutEffect(() => {
17
- r.current && p(r.current.clientHeight);
18
- }, []), /* @__PURE__ */ o(
19
- d,
20
- {
21
- ...m,
22
- className: n(e.item, f),
23
- children: [
24
- /* @__PURE__ */ t(
25
- h,
26
- {
27
- level: l,
28
- className: e.trigger,
29
- children: /* @__PURE__ */ o(
30
- g,
31
- {
32
- slot: "trigger",
33
- variant: "icon",
34
- children: [
35
- /* @__PURE__ */ t(u, { size: 20 }),
36
- /* @__PURE__ */ t("span", { className: e.triggerText, children: c })
37
- ]
38
- }
39
- )
40
- }
41
- ),
42
- /* @__PURE__ */ t(
43
- $,
44
- {
45
- style: { "--panel-height": `${s}px` },
46
- className: n(e.panel, s === 0 && e.panel0),
47
- children: /* @__PURE__ */ t(
48
- "div",
49
- {
50
- ref: r,
51
- className: e.content,
52
- children: i
53
- }
54
- )
55
- }
56
- )
57
- ]
58
- }
59
- );
60
- };
61
- export {
62
- R as AccordionItem
63
- };
package/index42.js DELETED
@@ -1,53 +0,0 @@
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-q0dugR2t.js";
4
- import { $ as S } from "./Group-D7_8007y.js";
5
- import { I } from "./TextField-CX4eOQf6.js";
6
- const N = ({
7
- label: m,
8
- description: f,
9
- errorMessage: g,
10
- showSelectAll: p,
11
- children: s,
12
- ...b
13
- }) => {
14
- const [t, e] = r.useState(), h = () => {
15
- const l = r.useContext(V), n = r.Children.toArray(s).filter(r.isValidElement).map((a) => a.props.value), $ = () => 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 d, u;
18
- const a = n.length, A = n.length + 1, o = ((d = l == null ? void 0 : l.value) == null ? void 0 : d.length) || 0;
19
- o === 0 && e("none"), o > 0 && o < a && e("some"), o !== A && (l == null || l.removeValue("toggleAll")), o === a && !((u = l == null ? void 0 : l.value) != null && u.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: () => $(),
27
- children: "Välj alla"
28
- }
29
- );
30
- };
31
- return /* @__PURE__ */ c(
32
- C,
33
- {
34
- className: i.checkboxGroup,
35
- ...b,
36
- children: /* @__PURE__ */ c(
37
- I,
38
- {
39
- label: m,
40
- description: f,
41
- errorMessage: g,
42
- children: /* @__PURE__ */ x(S, { className: i.wrap, children: [
43
- p && /* @__PURE__ */ c(h, {}),
44
- s
45
- ] })
46
- }
47
- )
48
- }
49
- );
50
- };
51
- export {
52
- N as CheckboxGroup
53
- };
package/index43.js DELETED
@@ -1,18 +0,0 @@
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
- };
package/index44.js DELETED
@@ -1,27 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { s } from "./Flex.module-CpoxBzQX.js";
3
- import { c as r } from "./clsx-OuTLNxxd.js";
4
- const x = ({
5
- children: l,
6
- col: o,
7
- offset: t,
8
- ...c
9
- }) => {
10
- const m = o ? `col-${o}` : "", a = t ? `offset-${t}` : "";
11
- return /* @__PURE__ */ e(
12
- "div",
13
- {
14
- className: r(
15
- s.col,
16
- s[m],
17
- s[a],
18
- c.className
19
- ),
20
- ...c,
21
- children: l
22
- }
23
- );
24
- };
25
- export {
26
- x as FlexItem
27
- };
package/index45.js DELETED
@@ -1,18 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { s } from "./Grid.module-Ia0e9Dix.js";
3
- import { c as o } from "./clsx-OuTLNxxd.js";
4
- const t = ({
5
- children: i,
6
- fluid: m = !1,
7
- ...r
8
- }) => /* @__PURE__ */ a(
9
- "div",
10
- {
11
- className: o(s.container, m && s.fluid, r.className),
12
- ...r,
13
- children: /* @__PURE__ */ a("div", { className: s.grid, children: i })
14
- }
15
- );
16
- export {
17
- t as Grid
18
- };
package/index46.js DELETED
@@ -1,21 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { s as m } from "./Grid.module-Ia0e9Dix.js";
3
- import { c as a } from "./clsx-OuTLNxxd.js";
4
- const p = ({
5
- children: r,
6
- col: s,
7
- ...o
8
- }) => {
9
- const c = s ? `col-${s}` : "";
10
- return /* @__PURE__ */ t(
11
- "div",
12
- {
13
- className: a(m.col, m[c], o.className),
14
- ...o,
15
- children: r
16
- }
17
- );
18
- };
19
- export {
20
- p as GridItem
21
- };
package/index47.js DELETED
@@ -1,49 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { r as t } from "./react.esm-sMU8Z7rL.js";
3
- import { MultiSelect as a } from "./index77.js";
4
- const o = [
5
- "Apple",
6
- "Banana",
7
- "Kiwi",
8
- "Elderflower",
9
- "Nectarine",
10
- "Watermelon",
11
- "Pineapple",
12
- "Apricot",
13
- "Cloudberry",
14
- "Mango",
15
- "Strawberry",
16
- "Blueberry",
17
- "Raspberry",
18
- "Blackberry",
19
- "Cherry",
20
- "Peach",
21
- "Plum",
22
- "Grape",
23
- "Orange",
24
- "Lemon",
25
- "Lime",
26
- "Coconut",
27
- "Fig",
28
- "Papaya",
29
- "Guava",
30
- "Pomegranate",
31
- "Dragonfruit",
32
- "Starfruit",
33
- "Passionfruit"
34
- ], i = o.map((e) => ({ name: e, id: e.toLocaleLowerCase() }));
35
- describe("MultiSelect", () => {
36
- it("should render successfully", () => {
37
- const { baseElement: e } = t(
38
- /* @__PURE__ */ r(
39
- a,
40
- {
41
- label: "Label",
42
- description: "Etikett",
43
- items: i
44
- }
45
- )
46
- );
47
- expect(e).toBeTruthy();
48
- });
49
- });
package/index48.js DELETED
@@ -1,5 +0,0 @@
1
- describe("Modal", () => {
2
- it("should pass without testing", () => {
3
- expect(!0).toBe(!0);
4
- });
5
- });
package/index49.js DELETED
@@ -1,25 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { r } from "./react.esm-sMU8Z7rL.js";
3
- import "./index-BPdc9gJ8.js";
4
- import { Logo as i } from "./index70.js";
5
- import { j as t } from "./index-KSgQWWiy.js";
6
- expect.extend(t.toHaveNoViolations);
7
- describe("given a default Logo", () => {
8
- let e;
9
- beforeEach(() => {
10
- e = r(
11
- /* @__PURE__ */ o(
12
- a,
13
- {
14
- primary: !0,
15
- background: !0
16
- }
17
- )
18
- );
19
- }), it("should render successfully", () => {
20
- expect(e).toBeTruthy();
21
- }), it("should have no accessibility violations", async () => {
22
- expect(await t.axe(await e.findByRole("img"))).toHaveNoViolations();
23
- });
24
- });
25
- const a = (e) => /* @__PURE__ */ o(i, { ...e });
package/index5.js DELETED
@@ -1,5 +0,0 @@
1
- import { T as r, a as T } from "./Tag-DWt0koFj.js";
2
- export {
3
- r as Tag,
4
- T as TagGroup
5
- };