@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/index70.js DELETED
@@ -1,140 +0,0 @@
1
- import { jsx as c, jsxs as t } from "react/jsx-runtime";
2
- import { c as o } from "./clsx-OuTLNxxd.js";
3
- import './Logo.css';const v = '"../theme/tokens.css"', i = "#b90835", m = "#000000", g = "#5d5d5d", _ = "#ffffff", p = "_container_1c334_4", M = "_noPadding_1c334_9", u = "_logo_1c334_13", Z = "_primary_1c334_18", f = "_dark_1c334_22", k = "_xSmall_1c334_26", b = "_small_1c334_30", x = "_large_1c334_34", w = "_backgroundPrimary_1c334_38", y = "_backgroundDark_1c334_46", l = {
4
- tokens: v,
5
- red100: i,
6
- black: m,
7
- gray130: g,
8
- white: _,
9
- container: p,
10
- noPadding: M,
11
- logo: u,
12
- primary: Z,
13
- dark: f,
14
- xSmall: k,
15
- small: b,
16
- large: x,
17
- backgroundPrimary: w,
18
- backgroundDark: y
19
- }, S = ({
20
- primary: h = !0,
21
- size: a = "medium",
22
- background: d = !1,
23
- padding: r = !0,
24
- ...s
25
- }) => {
26
- const e = o(
27
- l.logo,
28
- h ? l.primary : l.dark,
29
- a === "x-small" && l.xSmall,
30
- a === "small" && l.small,
31
- a === "medium" && l.medium,
32
- a === "large" && l.large
33
- ), n = () => a === "x-small" ? /* @__PURE__ */ c(
34
- "svg",
35
- {
36
- xmlns: "http://www.w3.org/2000/svg",
37
- viewBox: "0 0 100 92",
38
- className: e,
39
- role: "img",
40
- "aria-hidden": "false",
41
- focusable: "false",
42
- "aria-label": "Migrationsverkets logotyp",
43
- children: /* @__PURE__ */ c("path", { d: "M99.99,91.69c-1.84-1.11-4.05-4.55-4.05-9.46V9.15c0-4.79,1.96-7.25,3.81-8.85h-14.75l-33.91,65.47L12.41.3H0c1.6,1.59,3.93,3.07,3.93,8.23v75.55c0,3.56-2.21,6.51-3.81,7.61h16.34c-1.72-1.22-3.93-4.18-3.93-7.98V25.97l36.24,61.42,33.04-63.26v58.96c0,5.53-2.21,7.61-3.81,8.6h21.99Z" })
44
- }
45
- ) : /* @__PURE__ */ t(
46
- "svg",
47
- {
48
- role: "img",
49
- xmlns: "http://www.w3.org/2000/svg",
50
- viewBox: "0 0 112 40",
51
- className: e,
52
- "aria-hidden": "false",
53
- focusable: "false",
54
- "aria-label": "Migrationsverkets logotyp",
55
- children: [
56
- /* @__PURE__ */ c("path", { d: "M97.78,21.61c-7.48-9.73-20.06-16.03-34.32-16.03-13.07,0-24.86,5.27-32.46,13.65,6.56-5.83,15.64-9.44,25.66-9.44,11.37,0,21.52,4.56,28.18,11.83h12.94Z" }),
57
- /* @__PURE__ */ c("path", { d: "M90.45,12.58C70.67-1.51,41.26,2.77,27.49,21.61h-12.23C30.56-2.89,68.29-7.47,90.45,12.58h0Z" }),
58
- /* @__PURE__ */ c("path", { d: "M11.89,37.13c-.22-.13-.48-.53-.48-1.11v-8.58c0-.56.23-.85.45-1.04h-1.73l-3.98,7.69-4.54-7.69H.15c.19.19.46.36.46.97v8.87c0,.42-.26.76-.45.89h1.92c-.2-.14-.46-.49-.46-.94v-6.78l4.25,7.21,3.88-7.43v6.92c0,.65-.26.89-.45,1.01h2.58Z" }),
59
- /* @__PURE__ */ c(
60
- "path",
61
- {
62
- d: "M15.81,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM16.22,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",
63
- fillRule: "evenodd"
64
- }
65
- ),
66
- /* @__PURE__ */ c(
67
- "path",
68
- {
69
- d: "M24.52,30.97c-.04-.33-.17-.68-.37-.95h-1.36c-.29-.26-.87-.58-1.96-.58-1.53,0-2.8.92-2.8,2.58,0,1.02.52,1.86,1.31,2.26-.43.37-1.38.98-1.38,1.61,0,.71.79.99,1.38,1.1-.88.26-1.67.82-1.67,1.59,0,1.14,1.73,1.41,2.64,1.41,1.54,0,3.91-.78,3.91-2.64,0-1.21-1.23-1.49-2.22-1.5-2.42-.06-2.51-.2-2.51-.56,0-.2.42-.68.55-.81.23.03.48.06.71.06,1.76,0,2.93-.94,2.93-2.7,0-.48-.14-.91-.29-1.11.12-.04.25-.04.37-.04.27,0,.55.12.76.27h0ZM22.27,32.21c0,.79-.37,1.61-1.36,1.61-1.07,0-1.47-1.21-1.47-2.09,0-.95.5-1.57,1.31-1.57,1.2,0,1.51,1.25,1.51,2.05h0ZM22.89,37.92c0,.76-.82,1.31-1.93,1.31-.59,0-1.7-.3-1.69-1.15,0-.45.26-.74.59-.99l1.96.04c.5.01,1.07.1,1.07.79h0Z",
70
- fillRule: "evenodd"
71
- }
72
- ),
73
- /* @__PURE__ */ c("path", { d: "M30.11,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z" }),
74
- /* @__PURE__ */ c(
75
- "path",
76
- {
77
- d: "M36.87,37.13c-.37-.33-.43-.59-.43-1.25v-3.89c0-2.21-1.43-2.55-2.8-2.55-.61,0-1.67.22-2.03.42-.2.4-.3,1.24-.4,1.67.46-.56,1.27-1.37,2.39-1.37,1.18,0,1.36.82,1.36,1.7v.39l-2.21.76c-1.04.36-1.87,1.08-1.87,2.26,0,1.31.88,2.08,2.15,2.08.87,0,1.46-.43,1.93-.94v.72h1.92ZM34.95,35.62c-.26.32-.74.85-1.37.85-.75,0-1.18-.79-1.18-1.54,0-.71.35-1.15.89-1.37l1.66-.63v2.7h0Z",
78
- fillRule: "evenodd"
79
- }
80
- ),
81
- /* @__PURE__ */ c("path", { d: "M42.58,36.15c-.29.27-.71.46-1.11.46-.87,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z" }),
82
- /* @__PURE__ */ c(
83
- "path",
84
- {
85
- d: "M45.63,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM46.04,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",
86
- fillRule: "evenodd"
87
- }
88
- ),
89
- /* @__PURE__ */ c(
90
- "path",
91
- {
92
- d: "M54.96,33.37c0-2.06-1.3-3.95-3.5-3.95s-3.84,1.76-3.84,4.01c0,2.06,1.28,3.95,3.49,3.95s3.85-1.76,3.85-4.01h0ZM53.43,34.04c0,1.27-.52,2.57-1.86,2.57-1.79,0-2.42-2.44-2.42-3.86,0-1.21.48-2.57,1.87-2.57,1.79,0,2.41,2.44,2.41,3.86h0Z",
93
- fillRule: "evenodd"
94
- }
95
- ),
96
- /* @__PURE__ */ c("path", { d: "M63.37,37.13c-.27-.22-.45-.42-.45-1.11v-3.94c0-1.63-.39-2.64-2.18-2.64-1.01,0-1.79.56-2.38,1.12v-.91h-1.98c.3.17.49.46.49,1.05v5.33c0,.59-.14.88-.48,1.08h2.39c-.23-.23-.43-.37-.43-1.17v-4.4c.32-.45,1.07-1.24,1.85-1.24,1.01,0,1.23,1.01,1.23,1.8v3.95c0,.74-.26.87-.46,1.05h2.39Z" }),
97
- /* @__PURE__ */ c(
98
- "path",
99
- {
100
- d: "M69.79,35.2c0-2.21-3.42-2.71-3.42-4.07,0-.75.71-.98,1.34-.98s1.33.29,1.74.81l-.07-1.18c-.46-.17-1.11-.35-1.69-.35-1.44,0-2.68.63-2.68,1.89,0,2.36,3.46,2.68,3.46,4.25,0,.79-.62,1.05-1.31,1.05-1.01,0-1.86-.46-2.52-1.21v.1c0,.4-.03.99.3,1.27.53.43,1.53.56,2.18.56,1.36,0,2.67-.62,2.67-2.15h0Z",
101
- fillRule: "evenodd"
102
- }
103
- ),
104
- /* @__PURE__ */ c("path", { d: "M77.98,29.66h-1.43c.13.1.11.56-.19,1.33l-1.86,4.72-1.87-4.7c-.26-.65-.32-1.15-.16-1.34h-2.06c.19.1.49.85.82,1.67l2.31,5.8h1.31l2.35-5.97c.32-.81.56-1.36.78-1.5h0Z" }),
105
- /* @__PURE__ */ c(
106
- "path",
107
- {
108
- d: "M84.91,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM83.34,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",
109
- fillRule: "evenodd"
110
- }
111
- ),
112
- /* @__PURE__ */ c("path", { d: "M90.95,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z" }),
113
- /* @__PURE__ */ c("path", { d: "M99.79,37.16c-2.26-.37-2.49-4.04-4.7-4.04l2.62-2.8c.22-.23.5-.48.75-.66h-1.77c.14.14.13.39-.13.66l-2.65,2.83v-7.07h-1.98c.33.2.49.56.49,1.01v9.01c0,.58-.22.81-.46,1.02h2.35c-.26-.25-.4-.49-.4-1.02v-2.57c.27,0,.62.13.82.26,1.28.82,1.95,3.11,2.67,3.45.14.07.94.1,1.14.1.45,0,.84-.03,1.25-.19h0Z" }),
114
- /* @__PURE__ */ c(
115
- "path",
116
- {
117
- d: "M106.3,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM104.73,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",
118
- fillRule: "evenodd"
119
- }
120
- ),
121
- /* @__PURE__ */ c("path", { d: "M111.85,36.15c-.29.27-.71.46-1.11.46-.86,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z" })
122
- ]
123
- }
124
- );
125
- return /* @__PURE__ */ c(
126
- "div",
127
- {
128
- className: o(
129
- l.container,
130
- r === !1 && l.noPadding,
131
- d ? h ? l.backgroundPrimary : l.backgroundDark : null
132
- ),
133
- ...s,
134
- children: /* @__PURE__ */ c(n, {})
135
- }
136
- );
137
- };
138
- export {
139
- S as Logo
140
- };
package/index71.js DELETED
@@ -1,70 +0,0 @@
1
- import { jsxs as c, jsx as s } from "react/jsx-runtime";
2
- import * as m from "react";
3
- import { Button as g } from "./index66.js";
4
- import { c as u } from "./clsx-OuTLNxxd.js";
5
- import { X as H } from "./x-JK7i-TQC.js";
6
- import './Modal.css';const w = '"../theme/tokens.css"', p = '"Inter", sans-serif', B = "#ffffff", q = "#f2f2f2", x = "_modal_1wq00_4", N = "_modalHeader_1wq00_30", b = "_modalBody_1wq00_39", k = "_modalHeading_1wq00_45", e = {
7
- tokens: w,
8
- display: p,
9
- white: B,
10
- gray10: q,
11
- modal: x,
12
- modalHeader: N,
13
- modalBody: b,
14
- modalHeading: k
15
- }, P = ({
16
- id: d,
17
- isOpen: l,
18
- onOpenChange: t,
19
- children: i,
20
- title: f,
21
- className: h,
22
- ..._
23
- }) => {
24
- const a = m.useRef(null);
25
- m.useEffect(() => {
26
- var o, r;
27
- l ? (o = a.current) == null || o.showModal() : (r = a.current) == null || r.close();
28
- }, [l]);
29
- const y = () => {
30
- var o;
31
- (o = a.current) == null || o.close(), t(!1);
32
- }, n = d + "_heading";
33
- return /* @__PURE__ */ c(
34
- "dialog",
35
- {
36
- id: d,
37
- ref: a,
38
- onCancel: () => t(!1),
39
- className: u(e.modal, h),
40
- "aria-labelledby": n,
41
- ..._,
42
- children: [
43
- /* @__PURE__ */ s("div", { className: e.modalHeader, children: /* @__PURE__ */ s(
44
- g,
45
- {
46
- onPress: () => y(),
47
- variant: "tertiary",
48
- icon: H,
49
- iconPlacement: "right",
50
- children: "Stäng"
51
- }
52
- ) }),
53
- /* @__PURE__ */ c("div", { className: e.modalBody, children: [
54
- /* @__PURE__ */ s(
55
- "h2",
56
- {
57
- className: e.modalHeading,
58
- id: n,
59
- children: f
60
- }
61
- ),
62
- i
63
- ] })
64
- ]
65
- }
66
- );
67
- };
68
- export {
69
- P as Modal
70
- };
package/index72.js DELETED
@@ -1,42 +0,0 @@
1
- import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
- import { c as r } from "./clsx-OuTLNxxd.js";
3
- import { c as a } from "./createLucideIcon-DeWljiyi.js";
4
- import './Spinner.css';/**
5
- * @license lucide-react v0.453.0 - ISC
6
- *
7
- * This source code is licensed under the ISC license.
8
- * See the LICENSE file in the root directory of this source tree.
9
- */
10
- const c = a("LoaderCircle", [
11
- ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
12
- ]), i = '"../theme/tokens.css"', d = "#b90835", _ = "#143c50", l = "_container_13uof_4", u = "_spinner_13uof_8", p = "_rotating_13uof_1", k = "_dark_13uof_18", m = "_vsHidden_13uof_22", n = {
13
- tokens: i,
14
- red100: d,
15
- blue150: _,
16
- container: l,
17
- spinner: u,
18
- rotating: p,
19
- dark: k,
20
- vsHidden: m
21
- }, b = ({ small: e, dark: t }) => /* @__PURE__ */ o(
22
- "div",
23
- {
24
- className: n.container,
25
- role: "status",
26
- children: [
27
- /* @__PURE__ */ s(
28
- c,
29
- {
30
- className: r(n.spinner, t && n.dark),
31
- size: e ? 16 : 32,
32
- strokeWidth: e ? 2 : 3,
33
- absoluteStrokeWidth: !0
34
- }
35
- ),
36
- /* @__PURE__ */ s("span", { className: n.vsHidden, children: "Laddar, vänligen vänta." })
37
- ]
38
- }
39
- );
40
- export {
41
- b as Spinner
42
- };
package/index73.js DELETED
@@ -1,82 +0,0 @@
1
- import { jsxs as t, jsx as c, Fragment as i } from "react/jsx-runtime";
2
- import { $ as d, a, b as l, c as f } from "./Dialog-D6Bqrpn-.js";
3
- import { Button as u } from "./index66.js";
4
- import { c as p } from "./createLucideIcon-DeWljiyi.js";
5
- import './Dropdown.css';/**
6
- * @license lucide-react v0.453.0 - ISC
7
- *
8
- * This source code is licensed under the ISC license.
9
- * See the LICENSE file in the root directory of this source tree.
10
- */
11
- const x = p("EllipsisVertical", [
12
- ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
13
- ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
14
- ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
15
- ]), $ = '"../theme/tokens.css"', b = '"Inter", sans-serif', m = "0 0 0 2px #ffffff, 0 0 0 4px #000000", h = "#f2f2f2", y = "_dropDownMenu_1f4ap_4", w = "_dropdownMenu_1f4ap_15", s = {
16
- tokens: $,
17
- display: b,
18
- focus: m,
19
- gray10: h,
20
- dropDownMenu: y,
21
- dropdownMenu: w
22
- };
23
- function _({
24
- label: e,
25
- title: r,
26
- children: n,
27
- ...o
28
- }) {
29
- return /* @__PURE__ */ t(d, { ...o, children: [
30
- /* @__PURE__ */ t(
31
- u,
32
- {
33
- "aria-label": e,
34
- variant: "icon",
35
- children: [
36
- r,
37
- /* @__PURE__ */ c(
38
- x,
39
- {
40
- size: 20,
41
- "aria-hidden": !0
42
- }
43
- )
44
- ]
45
- }
46
- ),
47
- /* @__PURE__ */ c(a, { children: /* @__PURE__ */ c(
48
- l,
49
- {
50
- ...o,
51
- className: s.dropDownMenu,
52
- children: n
53
- }
54
- ) })
55
- ] });
56
- }
57
- function v(e) {
58
- const r = e.textValue || (typeof e.children == "string" ? e.children : void 0);
59
- return /* @__PURE__ */ c(
60
- f,
61
- {
62
- ...e,
63
- textValue: r,
64
- className: ({ isFocused: n, isOpen: o }) => `${s.dropdownMenu} ${n ? "focused" : ""} ${o ? "open" : ""}`,
65
- children: ({ hasSubmenu: n }) => /* @__PURE__ */ t(i, { children: [
66
- e.children,
67
- n && /* @__PURE__ */ c(
68
- "svg",
69
- {
70
- className: "chevron",
71
- viewBox: "0 0 24 24",
72
- children: /* @__PURE__ */ c("path", { d: "m9 18 6-6-6-6" })
73
- }
74
- )
75
- ] })
76
- }
77
- );
78
- }
79
- export {
80
- _ as Dropdown,
81
- v as DropdownItem
82
- };
package/index74.js DELETED
@@ -1,71 +0,0 @@
1
- import { jsx as e, jsxs as l, Fragment as f } from "react/jsx-runtime";
2
- import { $ as d } from "./Link-BnQvB-hH.js";
3
- import { c as m } from "./clsx-OuTLNxxd.js";
4
- import { c as k } from "./createLucideIcon-DeWljiyi.js";
5
- import { $ as P } from "./useFocusRing-9PXyKy2A.js";
6
- import './Link.css';/**
7
- * @license lucide-react v0.453.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */
12
- const p = k("ArrowRight", [
13
- ["path", { d: "M5 12h14", key: "1ays0h" }],
14
- ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
15
- ]), h = '"../theme/tokens.css"', u = '"Inter", sans-serif', g = "#25607f", _ = "#143c50", y = "#1f1f1f", b = "#bfbfbf", x = "500", q = "0 0 0 2px #ffffff, 0 0 0 4px #000000", $ = "400", W = "#663366", z = "#000000", N = "_link_p1sqk_4", R = "_icon_p1sqk_40", j = "_standalone_p1sqk_44", w = "_stretched_p1sqk_59", s = {
16
- tokens: h,
17
- display: u,
18
- blue130: g,
19
- blue150: _,
20
- gray150: y,
21
- gray50: b,
22
- mediumWeight: x,
23
- focus: q,
24
- regularWeight: $,
25
- linkVisited: W,
26
- black: z,
27
- link: N,
28
- icon: R,
29
- standalone: j,
30
- stretched: w
31
- }, F = ({
32
- children: c,
33
- standalone: t,
34
- stretched: n,
35
- icon: o,
36
- className: r,
37
- as: i,
38
- ...a
39
- }) => /* @__PURE__ */ e(
40
- i || d,
41
- {
42
- className: m(
43
- s.link,
44
- t && s.standalone,
45
- n && s.stretched,
46
- r
47
- ),
48
- ...a,
49
- children: /* @__PURE__ */ l(f, { children: [
50
- c,
51
- !t && o && /* @__PURE__ */ e(
52
- o,
53
- {
54
- size: 20,
55
- className: s.icon
56
- }
57
- ),
58
- t && /* @__PURE__ */ e(
59
- p,
60
- {
61
- size: 20,
62
- className: s.icon
63
- }
64
- )
65
- ] })
66
- }
67
- );
68
- export {
69
- F as Link,
70
- P as RouterProvider
71
- };
package/index75.js DELETED
@@ -1,104 +0,0 @@
1
- import { jsxs as u, jsx as n } from "react/jsx-runtime";
2
- import { $ as p } from "./Link-BnQvB-hH.js";
3
- import { c as m } from "./clsx-OuTLNxxd.js";
4
- import { c as y } from "./createLucideIcon-DeWljiyi.js";
5
- import { C as _, a as g } from "./chevron-right-DBMc9VMi.js";
6
- import { $ as Z } from "./useFocusRing-9PXyKy2A.js";
7
- import './LinkButton.css';/**
8
- * @license lucide-react v0.453.0 - ISC
9
- *
10
- * This source code is licensed under the ISC license.
11
- * See the LICENSE file in the root directory of this source tree.
12
- */
13
- const h = y("SquareArrowOutUpRight", [
14
- ["path", { d: "M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6", key: "y09zxi" }],
15
- ["path", { d: "m21 3-9 9", key: "mpx6sq" }],
16
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }]
17
- ]), b = '"../theme/tokens.css"', k = "#143c50", q = "#25607f", x = "#4289ad", B = '"Inter", sans-serif', w = "1rem", R = "500", z = "#ffffff", L = "#bfbfbf", N = "#f2f2f2", $ = "#e6e6e6", S = "#000000", C = "undefined", j = "0 0 0 2px #ffffff, 0 0 0 4px #000000", A = "(max-width: 767px)", I = "#e62323", M = "#b31b1b", O = "#801313", U = "_linkButton_7qa6p_4", W = "_secondary_7qa6p_43", v = "_tertiary_7qa6p_67", H = "_danger_7qa6p_88", V = "_iconBtn_7qa6p_110", D = "_iconLeft_7qa6p_131", E = "_fullwidth_7qa6p_135", F = "_button_7qa6p_140", t = {
18
- tokens: b,
19
- blue150: k,
20
- blue130: q,
21
- blue90: x,
22
- display: B,
23
- desktopSize: w,
24
- mediumWeight: R,
25
- white: z,
26
- gray50: L,
27
- gray10: N,
28
- gray20: $,
29
- black: S,
30
- medium: C,
31
- focus: j,
32
- smBreakpoint: A,
33
- signalRed100: I,
34
- signalRed130: M,
35
- signalRed150: O,
36
- linkButton: U,
37
- secondary: W,
38
- tertiary: v,
39
- danger: H,
40
- iconBtn: V,
41
- iconLeft: D,
42
- fullwidth: E,
43
- button: F
44
- }, T = ({
45
- children: a,
46
- variant: e,
47
- fullwidth: r,
48
- icon: o,
49
- iconPlacement: s,
50
- className: i,
51
- as: f,
52
- ...c
53
- }) => {
54
- const d = f || p, l = () => o ? /* @__PURE__ */ n(
55
- o,
56
- {
57
- size: 20,
58
- className: t.icon
59
- }
60
- ) : c.target === "_blank" ? /* @__PURE__ */ n(
61
- h,
62
- {
63
- size: 20,
64
- className: t.icon
65
- }
66
- ) : s === "left" ? /* @__PURE__ */ n(
67
- _,
68
- {
69
- size: 20,
70
- className: t.icon
71
- }
72
- ) : /* @__PURE__ */ n(
73
- g,
74
- {
75
- size: 20,
76
- className: t.icon
77
- }
78
- );
79
- return /* @__PURE__ */ u(
80
- d,
81
- {
82
- className: m(
83
- t.linkButton,
84
- e === "primary" && t.primary,
85
- e === "secondary" && t.secondary,
86
- e === "tertiary" && t.tertiary,
87
- e === "danger" && t.danger,
88
- e === "icon" && t.iconBtn,
89
- r && t.fullwidth,
90
- s === "left" && t.iconLeft,
91
- i
92
- ),
93
- ...c,
94
- children: [
95
- a,
96
- /* @__PURE__ */ n(l, {})
97
- ]
98
- }
99
- );
100
- };
101
- export {
102
- T as LinkButton,
103
- Z as RouterProvider
104
- };