@midas-ds/components 17.15.2 → 17.15.4

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 (246) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/accordion/index.js +2 -5
  3. package/assets/Button.css +1 -1
  4. package/assets/TextField.css +1 -1
  5. package/assets/accordion.css +1 -0
  6. package/assets/badge.css +1 -0
  7. package/assets/breadcrumbs.css +1 -0
  8. package/assets/button2.css +1 -0
  9. package/assets/calendar.css +1 -0
  10. package/assets/card.css +1 -0
  11. package/assets/checkbox.css +1 -0
  12. package/assets/{ColorSchemeSwitch.css → color-scheme-switch.css} +1 -1
  13. package/assets/combobox.css +1 -0
  14. package/assets/date-field.css +1 -0
  15. package/assets/date-picker.css +1 -0
  16. package/assets/default.css +1 -1
  17. package/assets/field-error.css +1 -0
  18. package/assets/file-list.css +1 -0
  19. package/assets/{FileUpload.css → file-upload.css} +1 -1
  20. package/assets/grid.css +1 -0
  21. package/assets/info-banner.css +1 -0
  22. package/assets/label.css +1 -0
  23. package/assets/layout.css +1 -0
  24. package/assets/link-button.css +1 -0
  25. package/assets/link.css +1 -0
  26. package/assets/list-box.css +1 -0
  27. package/assets/logo.css +1 -0
  28. package/assets/menu.css +1 -0
  29. package/assets/modal.css +1 -0
  30. package/assets/popover.css +1 -0
  31. package/assets/progress-bar.css +1 -0
  32. package/assets/radio.css +1 -0
  33. package/assets/search-field.css +1 -0
  34. package/assets/select.css +1 -0
  35. package/assets/skeleton.css +1 -0
  36. package/assets/spinner.css +1 -0
  37. package/assets/table.css +1 -0
  38. package/assets/tabs.css +1 -0
  39. package/assets/{TagGroup.css → tag.css} +1 -1
  40. package/assets/{Text.css → text.css} +1 -1
  41. package/assets/time-field.css +1 -0
  42. package/assets/toast.css +1 -0
  43. package/assets/toggle-button.css +1 -0
  44. package/assets/tooltip.css +1 -0
  45. package/badge/index.js +2 -5
  46. package/breadcrumbs/index.js +2 -5
  47. package/button/index.js +2 -6
  48. package/calendar/index.js +2 -5
  49. package/card/index.js +2 -12
  50. package/character-counter/index.js +2 -4
  51. package/checkbox/index.js +2 -6
  52. package/chunks/Button.module-0C2ArlRs.js +13 -0
  53. package/chunks/FeedbackStatusIcon-A1trvSCf.js +54 -0
  54. package/chunks/TextField.module-CrR3Krxn.js +12 -0
  55. package/chunks/accordion-AqEcuKz_.js +87 -0
  56. package/chunks/arrow-right-7yeXXFNV.js +10 -0
  57. package/chunks/badge-DrCn-5SX.js +22 -0
  58. package/chunks/breadcrumbs-XTH3axtt.js +23 -0
  59. package/chunks/button-CFjf-bDe.js +34 -0
  60. package/chunks/calendar-C0rlcHfr.js +74 -0
  61. package/chunks/card-CF8iwdg3.js +103 -0
  62. package/chunks/character-counter-CSoVSrxZ.js +16 -0
  63. package/chunks/check-BiPE7lAA.js +7 -0
  64. package/chunks/checkbox-B_41DFjp.js +174 -0
  65. package/chunks/chevron-down-Buf0eTzo.js +7 -0
  66. package/chunks/chevron-right-DJ7qKNKG.js +7 -0
  67. package/chunks/clear-button-Cb4MTvBR.js +17 -0
  68. package/chunks/clsx-BtlV5Vo3.js +21 -0
  69. package/chunks/color-scheme-switch-Ce4vL8Yz.js +122 -0
  70. package/chunks/combobox-BLGIYxNy.js +90 -0
  71. package/chunks/createLucideIcon-DhIhuN5D.js +39 -0
  72. package/chunks/date-field-Cy0HGw6v.js +73 -0
  73. package/chunks/date-picker-ByfWqOZh.js +191 -0
  74. package/chunks/field-error-DYp2kgFr.js +19 -0
  75. package/chunks/file-list-DYOuch5G.js +68 -0
  76. package/chunks/file-upload-CZRTVw5O.js +11 -0
  77. package/chunks/grid-CUYMbO7c.js +225 -0
  78. package/chunks/heading-595zCrRS.js +28 -0
  79. package/chunks/info-Bm2gRija.js +19 -0
  80. package/chunks/info-banner-hHq0Atii.js +59 -0
  81. package/chunks/label-uwnwLD3z.js +49 -0
  82. package/chunks/layout-BzK7P4Xn.js +426 -0
  83. package/chunks/link-Q46Ny2Po.js +40 -0
  84. package/chunks/link-button-Cm2B0s4X.js +39 -0
  85. package/chunks/list-box-Dm2itiZD.js +75 -0
  86. package/chunks/logo-D7tz-4hp.js +93 -0
  87. package/chunks/menu-CB6VDQ-u.js +49 -0
  88. package/chunks/modal-Dr0ythpF.js +66 -0
  89. package/chunks/popover-DxnYz_IT.js +27 -0
  90. package/chunks/progress-bar-Dppkp0cT.js +40 -0
  91. package/chunks/radio-PBrD5BO4.js +43 -0
  92. package/chunks/search-field-B5RciSq0.js +90 -0
  93. package/chunks/select-BZ0greL0.js +171 -0
  94. package/chunks/skeleton-OqKFBcmO.js +36 -0
  95. package/chunks/spinner-C3WiZYld.js +32 -0
  96. package/chunks/square-arrow-out-up-right-Bobm4VNc.js +17 -0
  97. package/chunks/table-BZ7VvZaq.js +150 -0
  98. package/chunks/tabs-eshGdQJJ.js +52 -0
  99. package/chunks/tag-CELJrUEQ.js +78 -0
  100. package/chunks/text-mAeDlv5N.js +23 -0
  101. package/chunks/textfield-CZSw2R67.js +112 -0
  102. package/chunks/time-field-DaQfnJQF.js +60 -0
  103. package/chunks/toast-AYzfHBcQ.js +91 -0
  104. package/chunks/toggle-button-DlPo9GJW.js +17 -0
  105. package/chunks/tooltip-BE_r_CBm.js +33 -0
  106. package/chunks/useLocalizedStringFormatter-bRLuRzVD.js +19 -0
  107. package/chunks/x-Bs_QW3q8.js +10 -0
  108. package/clear-button/index.js +2 -4
  109. package/color-scheme-switch/index.js +2 -4
  110. package/combobox/index.js +2 -4
  111. package/date-field/index.js +2 -9
  112. package/date-picker/index.js +2 -5
  113. package/field-error/index.js +2 -4
  114. package/file-list/index.js +2 -5
  115. package/file-upload/index.js +2 -5
  116. package/grid/index.js +2 -6
  117. package/heading/index.js +2 -4
  118. package/index.js +91 -165
  119. package/info-banner/index.js +2 -4
  120. package/label/index.js +2 -4
  121. package/layout/index.js +2 -8
  122. package/link/index.js +2 -6
  123. package/link-button/index.js +2 -6
  124. package/list-box/index.js +2 -13
  125. package/logo/index.js +2 -5
  126. package/menu/index.js +2 -10
  127. package/modal/index.js +2 -7
  128. package/package.json +2 -2
  129. package/popover/index.js +2 -4
  130. package/progress-bar/index.js +2 -4
  131. package/radio/index.js +2 -5
  132. package/search-field/index.js +2 -4
  133. package/select/index.js +2 -4
  134. package/skeleton/index.js +2 -4
  135. package/spinner/index.js +2 -4
  136. package/table/index.js +2 -9
  137. package/tabs/index.js +2 -7
  138. package/tag/index.js +2 -6
  139. package/text/index.js +2 -4
  140. package/textfield/index.js +2 -7
  141. package/time-field/index.js +2 -4
  142. package/toast/index.js +2 -10
  143. package/toggle-button/index.js +2 -5
  144. package/tooltip/index.js +2 -5
  145. package/assets/AccordionItem.css +0 -1
  146. package/assets/BadgeContainer.css +0 -1
  147. package/assets/Breadcrumb.css +0 -1
  148. package/assets/ButtonGroup.css +0 -1
  149. package/assets/CardHeader.css +0 -1
  150. package/assets/Checkbox.css +0 -1
  151. package/assets/ComboBox.css +0 -1
  152. package/assets/DateField.css +0 -1
  153. package/assets/DateInput.css +0 -1
  154. package/assets/DateRangePicker.css +0 -1
  155. package/assets/FieldError.css +0 -1
  156. package/assets/FileListItem.css +0 -1
  157. package/assets/GridItem.css +0 -1
  158. package/assets/InfoBanner.css +0 -1
  159. package/assets/Label.css +0 -1
  160. package/assets/Layout.css +0 -1
  161. package/assets/Link.css +0 -1
  162. package/assets/LinkButton.css +0 -1
  163. package/assets/ListBox.css +0 -1
  164. package/assets/ListBoxEmptyState.css +0 -1
  165. package/assets/Logo.css +0 -1
  166. package/assets/Modal.css +0 -1
  167. package/assets/Popover.css +0 -1
  168. package/assets/ProgressBar.css +0 -1
  169. package/assets/Radio.css +0 -1
  170. package/assets/RangeCalendar.css +0 -1
  171. package/assets/SearchField.css +0 -1
  172. package/assets/Select.css +0 -1
  173. package/assets/Separator.css +0 -1
  174. package/assets/Skeleton.css +0 -1
  175. package/assets/Spinner.css +0 -1
  176. package/assets/TabList.css +0 -1
  177. package/assets/Table.css +0 -1
  178. package/assets/TimeField.css +0 -1
  179. package/assets/Toast.css +0 -1
  180. package/assets/ToggleButtonGroup.css +0 -1
  181. package/assets/Tooltip.css +0 -1
  182. package/chunks/AccordionItem-DHhQDd6o.js +0 -129
  183. package/chunks/BadgeContainer-DyQDrY6S.js +0 -38
  184. package/chunks/Breadcrumb-Bs836gOn.js +0 -37
  185. package/chunks/Button-GCROAMSl.js +0 -56
  186. package/chunks/Button.module-byTN5rhp.js +0 -14
  187. package/chunks/ButtonGroup-Dr6HOBo2.js +0 -22
  188. package/chunks/CardHeader-BnwDMzW9.js +0 -184
  189. package/chunks/CharacterCounter-Dgnv-orm.js +0 -22
  190. package/chunks/Checkbox-CyamRrFD.js +0 -146
  191. package/chunks/CheckboxGroup-CmjQm14M.js +0 -84
  192. package/chunks/ClearButton-DkC8PIMi.js +0 -22
  193. package/chunks/ColorSchemeSwitch-CjXb7w5A.js +0 -118
  194. package/chunks/ComboBox-BCfucCKv.js +0 -102
  195. package/chunks/DateField-CpvZGNHu.js +0 -89
  196. package/chunks/DateInput-NzWcnB4y.js +0 -29
  197. package/chunks/DateInputDivider-BHAwPkIR.js +0 -13
  198. package/chunks/DateRangePicker-BBLNlQ2y.js +0 -202
  199. package/chunks/FeedbackStatusIcon-X9Bjgeta.js +0 -56
  200. package/chunks/FieldError-krpMBtie.js +0 -24
  201. package/chunks/FileListItem-CKF9HPjw.js +0 -69
  202. package/chunks/FileUpload-D6oyWcDA.js +0 -17
  203. package/chunks/Grid-C7aRFvmS.js +0 -24
  204. package/chunks/GridItem-DenBLGXB.js +0 -237
  205. package/chunks/Heading-nfcRc2QF.js +0 -38
  206. package/chunks/InfoBanner-CWLvkP6D.js +0 -76
  207. package/chunks/Label-Cqo7Xz2v.js +0 -67
  208. package/chunks/Layout-D-nVSBJY.js +0 -493
  209. package/chunks/Link-CSIZehbN.js +0 -59
  210. package/chunks/LinkButton-Dzp8ZAPs.js +0 -68
  211. package/chunks/ListBox-CJhp9Hsb.js +0 -60
  212. package/chunks/ListBoxEmptyState-BxWWr2D9.js +0 -30
  213. package/chunks/ListBoxHeader-Cl56gGEe.js +0 -63
  214. package/chunks/Logo-DDykn5b2.js +0 -150
  215. package/chunks/Modal-yigospxi.js +0 -78
  216. package/chunks/Popover-CjEPHe4A.js +0 -34
  217. package/chunks/ProgressBar-BrWLkY8H.js +0 -53
  218. package/chunks/Radio-CFolRKKY.js +0 -44
  219. package/chunks/RangeCalendar-DxLInTav.js +0 -99
  220. package/chunks/SearchField-BXIDm898.js +0 -121
  221. package/chunks/Select-BQ109AJG.js +0 -231
  222. package/chunks/Separator-CDRwpeHz.js +0 -76
  223. package/chunks/Skeleton-ClvqZoDy.js +0 -88
  224. package/chunks/Spinner-CfKMn18u.js +0 -43
  225. package/chunks/TabList-CJSnr6O0.js +0 -87
  226. package/chunks/Table-CDdv7GeG.js +0 -140
  227. package/chunks/TagGroup-C-pkXtVn.js +0 -119
  228. package/chunks/Text-D0r_W4lH.js +0 -36
  229. package/chunks/TextArea-CNP1Y3jR.js +0 -135
  230. package/chunks/TextField.module-BDIbEV87.js +0 -12
  231. package/chunks/TimeField-B3IdCqTf.js +0 -88
  232. package/chunks/Toast-BFq_0Ue4.js +0 -158
  233. package/chunks/ToggleButtonGroup-DRnEEi5-.js +0 -29
  234. package/chunks/Tooltip-BYEaNkZG.js +0 -44
  235. package/chunks/arrow-right-BVcFGZmy.js +0 -8
  236. package/chunks/check-Bt2UikoU.js +0 -5
  237. package/chunks/chevron-down-BBFYYzZq.js +0 -5
  238. package/chunks/chevron-right-DvXGOiS_.js +0 -5
  239. package/chunks/clsx-AexbMWKp.js +0 -24
  240. package/chunks/createLucideIcon-CP-mMPfa.js +0 -75
  241. package/chunks/info-N5jWZg2A.js +0 -9
  242. package/chunks/square-arrow-out-up-right-x_I6wdNi.js +0 -9
  243. package/chunks/useLocalizedStringFormatter-BHvsRxDk.js +0 -25
  244. package/chunks/x-B9bYxG31.js +0 -8
  245. /package/assets/{CharacterCounter.css → character-counter.css} +0 -0
  246. /package/assets/{Heading.css → heading.css} +0 -0
@@ -1,493 +0,0 @@
1
- 'use client';
2
- import { jsx as e, jsxs as o, Fragment as G } from "react/jsx-runtime";
3
- import { G as B } from "./GridItem-DenBLGXB.js";
4
- import * as y from "react";
5
- import { useState as W, useEffect as j } from "react";
6
- import { c as b } from "./clsx-AexbMWKp.js";
7
- import { Link as L, RouterProvider as P } from "react-aria-components";
8
- import { B as T } from "./Button-GCROAMSl.js";
9
- import { a as D, T as q } from "./Tooltip-BYEaNkZG.js";
10
- import { a as I, B as M } from "./BadgeContainer-DyQDrY6S.js";
11
- import { c as S } from "./createLucideIcon-CP-mMPfa.js";
12
- import { u as k } from "./useLocalizedStringFormatter-BHvsRxDk.js";
13
- import { variables as A } from "@midas-ds/theme";
14
- import { L as g } from "./Logo-DDykn5b2.js";
15
- import { X as R } from "./x-B9bYxG31.js";
16
- import '../assets/Layout.css';const $ = [
17
- ["path", { d: "M4 5h16", key: "1tepv9" }],
18
- ["path", { d: "M4 12h16", key: "1lakjw" }],
19
- ["path", { d: "M4 19h16", key: "1djgab" }]
20
- ], F = S("menu", $);
21
- const X = [
22
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
23
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
24
- ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
25
- ], J = S("panel-left-close", X);
26
- const K = [
27
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
28
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
29
- ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
30
- ], Q = S("panel-left-open", K), U = "_baseLayout_1ylxx_1", V = "_mainContent_1ylxx_10", Y = "_header_1ylxx_15", Z = "_headerExternal_1ylxx_26", ee = "_headerContent_1ylxx_41", ae = "_logo_1ylxx_60", te = "_headerItems_1ylxx_69", ne = "_toggleButton_1ylxx_75", se = "_sidebar_1ylxx_83", ie = "_main_1ylxx_10", re = "_app_1ylxx_116", oe = "_sidebarOpened_1ylxx_124", le = "_sidebarHeader_1ylxx_128", de = "_appName_1ylxx_140", ce = "_collapseButton_1ylxx_147", me = "_sidebarCollapsed_1ylxx_156", pe = "_userName_1ylxx_166", _e = "_userTitle_1ylxx_184", xe = "_title_1ylxx_196", ue = "_sidebarNav_1ylxx_207", he = "_list_1ylxx_213", be = "_listGroupTitle_1ylxx_219", ve = "_listItem_1ylxx_226", ye = "_listItemCollapsed_1ylxx_231", Ne = "_listLink_1ylxx_235", fe = "_listLinkCollapsed_1ylxx_298", ke = "_active_1ylxx_303", Ce = "_backdrop_1ylxx_321", ge = "_backdropOpened_1ylxx_331", Le = "_skipToContent_1ylxx_349", Ie = "_navbar_1ylxx_363", Me = "_navbarList_1ylxx_375", Ee = "_navbarItem_1ylxx_397", Te = "_headerContentExternal_1ylxx_448", Se = "_logoExternalContainer_1ylxx_456", ze = "_logoExternal_1ylxx_456", Be = "_logoExternalDesktop_1ylxx_468", Oe = "_navbarWrapper_1ylxx_477", a = {
31
- baseLayout: U,
32
- mainContent: V,
33
- header: Y,
34
- headerExternal: Z,
35
- headerContent: ee,
36
- logo: ae,
37
- headerItems: te,
38
- toggleButton: ne,
39
- sidebar: se,
40
- main: ie,
41
- app: re,
42
- sidebarOpened: oe,
43
- sidebarHeader: le,
44
- appName: de,
45
- collapseButton: ce,
46
- sidebarCollapsed: me,
47
- userName: pe,
48
- userTitle: _e,
49
- title: xe,
50
- sidebarNav: ue,
51
- list: he,
52
- listGroupTitle: be,
53
- listItem: ve,
54
- listItemCollapsed: ye,
55
- listLink: Ne,
56
- listLinkCollapsed: fe,
57
- active: ke,
58
- backdrop: Ce,
59
- backdropOpened: ge,
60
- skipToContent: Le,
61
- navbar: Ie,
62
- navbarList: Me,
63
- navbarItem: Ee,
64
- headerContentExternal: Te,
65
- logoExternalContainer: Se,
66
- logoExternal: ze,
67
- logoExternalDesktop: Be,
68
- navbarWrapper: Oe
69
- }, H = y.createContext(
70
- void 0
71
- ), we = ({
72
- items: t,
73
- title: n,
74
- user: r,
75
- app: i,
76
- children: s,
77
- clientSideRouter: p,
78
- clientSideHref: l,
79
- headerChildren: u,
80
- isCollapsed: h,
81
- setIsCollapsed: x,
82
- isOpened: _,
83
- setIsOpened: v,
84
- variant: d,
85
- id: m
86
- }) => /* @__PURE__ */ e(
87
- H.Provider,
88
- {
89
- value: {
90
- items: t,
91
- title: n,
92
- user: r,
93
- app: i,
94
- headerChildren: u,
95
- isCollapsed: h,
96
- setIsCollapsed: x,
97
- isOpened: _,
98
- setIsOpened: v,
99
- clientSideRouter: p,
100
- clientSideHref: l,
101
- variant: d,
102
- id: m
103
- },
104
- children: s
105
- }
106
- ), f = () => {
107
- const t = y.useContext(H);
108
- if (!t)
109
- throw new Error("useLayoutContext must be used within a LayoutProvider");
110
- return t;
111
- }, E = ({
112
- title: t,
113
- href: n,
114
- icon: r,
115
- active: i,
116
- hasBadge: s,
117
- onClick: p,
118
- target: l
119
- }) => {
120
- const { isCollapsed: u, setIsOpened: h, clientSideHref: x } = f(), _ = x ? x(n) : n, [v, d] = W(!1);
121
- j(() => {
122
- if (typeof window < "u") {
123
- const N = window.location.pathname === _ || window.location.pathname.startsWith(_ + "/");
124
- d(i ?? N);
125
- }
126
- }, [i, _]);
127
- const m = () => {
128
- h?.(!1), p && p({
129
- title: t,
130
- href: _
131
- });
132
- };
133
- return u ? /* @__PURE__ */ o(D, { children: [
134
- /* @__PURE__ */ e(
135
- L,
136
- {
137
- href: n,
138
- "aria-label": t,
139
- className: b(
140
- a.listLink,
141
- a.listLinkCollapsed,
142
- v && a.active
143
- ),
144
- onPress: m,
145
- target: l,
146
- children: /* @__PURE__ */ o(I, { children: [
147
- /* @__PURE__ */ e(
148
- r,
149
- {
150
- size: 20,
151
- "aria-label": t
152
- }
153
- ),
154
- s && /* @__PURE__ */ e(M, {})
155
- ] })
156
- }
157
- ),
158
- /* @__PURE__ */ e(q, { placement: "right", children: t })
159
- ] }) : /* @__PURE__ */ o(
160
- L,
161
- {
162
- href: n,
163
- "aria-label": t,
164
- className: b(a.listLink, v && a.active),
165
- onPress: m,
166
- target: l,
167
- children: [
168
- /* @__PURE__ */ o(I, { children: [
169
- /* @__PURE__ */ e(r, { size: 20 }),
170
- s && /* @__PURE__ */ e(M, {})
171
- ] }),
172
- t
173
- ]
174
- }
175
- );
176
- }, Pe = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, He = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, C = {
177
- en: Pe,
178
- sv: He
179
- }, Ge = ({
180
- onLinkClick: t
181
- }) => {
182
- const {
183
- items: n,
184
- app: r,
185
- isOpened: i,
186
- isCollapsed: s,
187
- setIsCollapsed: p,
188
- setIsOpened: l,
189
- clientSideRouter: u,
190
- clientSideHref: h,
191
- id: x
192
- } = f(), _ = k(C), v = ({ group: d }) => /* @__PURE__ */ e("ul", { className: a.list, children: d.items.map((m, N) => /* @__PURE__ */ e(
193
- "li",
194
- {
195
- className: b(
196
- a.listItem,
197
- s && a.listItemCollapsed
198
- ),
199
- children: m.target === "_blank" || !u ? /* @__PURE__ */ e(
200
- E,
201
- {
202
- onClick: t,
203
- ...m
204
- }
205
- ) : /* @__PURE__ */ e(
206
- P,
207
- {
208
- navigate: u,
209
- useHref: h,
210
- children: /* @__PURE__ */ e(
211
- E,
212
- {
213
- onClick: t,
214
- ...m
215
- }
216
- )
217
- }
218
- )
219
- },
220
- "link_" + N
221
- )) });
222
- return y.useEffect(() => {
223
- const d = (m) => {
224
- m.key === "Escape" && l !== void 0 && l(!1);
225
- };
226
- return window.addEventListener("keydown", d), () => {
227
- window.removeEventListener("keydown", d);
228
- };
229
- }, [l]), /* @__PURE__ */ o(
230
- "aside",
231
- {
232
- id: x,
233
- className: b(
234
- a.sidebar,
235
- s && a.sidebarCollapsed,
236
- i && a.sidebarOpened
237
- ),
238
- children: [
239
- /* @__PURE__ */ o("div", { className: a.sidebarHeader, children: [
240
- !s && /* @__PURE__ */ e("p", { className: a.appName, children: r.name }),
241
- /* @__PURE__ */ e(
242
- T,
243
- {
244
- variant: "icon",
245
- "aria-label": s ? _.format("maximizeMenu") : _.format("minimizeMenu"),
246
- onPress: () => p(!s),
247
- className: a.collapseButton,
248
- children: s ? /* @__PURE__ */ e(Q, { size: 20 }) : /* @__PURE__ */ e(J, { size: 20 })
249
- }
250
- )
251
- ] }),
252
- /* @__PURE__ */ e(
253
- "nav",
254
- {
255
- className: a.sidebarNav,
256
- "aria-label": _.format("sidebarMenu"),
257
- children: /* @__PURE__ */ e("ul", { className: a.list, children: n.map((d, m) => /* @__PURE__ */ o("li", { children: [
258
- d.title && !s && /* @__PURE__ */ e("p", { className: a.listGroupTitle, children: d.title }),
259
- /* @__PURE__ */ e(v, { group: d })
260
- ] }, "list_" + m)) })
261
- }
262
- )
263
- ]
264
- }
265
- );
266
- }, We = () => {
267
- const {
268
- title: t,
269
- user: n,
270
- app: r,
271
- isOpened: i,
272
- setIsOpened: s,
273
- setIsCollapsed: p,
274
- headerChildren: l,
275
- variant: u,
276
- id: h
277
- } = f(), x = k(C);
278
- return u === "external" ? /* @__PURE__ */ e("header", { className: b(a.header, a.headerExternal), children: /* @__PURE__ */ o("div", { className: a.headerContentExternal, children: [
279
- /* @__PURE__ */ o("div", { className: a.logoExternalContainer, children: [
280
- /* @__PURE__ */ e(
281
- g,
282
- {
283
- size: "x-small",
284
- padding: !1,
285
- className: a.logoExternal
286
- }
287
- ),
288
- /* @__PURE__ */ e(
289
- g,
290
- {
291
- size: "small",
292
- padding: !1,
293
- className: a.logoExternalDesktop
294
- }
295
- ),
296
- /* @__PURE__ */ o("div", { children: [
297
- /* @__PURE__ */ e("p", { className: a.userName, children: n.name }),
298
- /* @__PURE__ */ e("p", { className: a.userTitle, children: n.title })
299
- ] })
300
- ] }),
301
- /* @__PURE__ */ e("div", { className: a.headerItems, children: l })
302
- ] }) }) : /* @__PURE__ */ o(
303
- "header",
304
- {
305
- className: a.header,
306
- style: {
307
- borderTop: `solid 4px ${r.color ? r.color : A.brandPrimary}`
308
- },
309
- children: [
310
- /* @__PURE__ */ o("div", { className: a.headerContent, children: [
311
- /* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
312
- g,
313
- {
314
- size: "small",
315
- padding: !1
316
- }
317
- ) }),
318
- i !== void 0 && /* @__PURE__ */ e(
319
- T,
320
- {
321
- variant: "icon",
322
- className: a.toggleButton,
323
- "aria-label": i ? x.format("closeMenu") : x.format("openMenu"),
324
- "aria-controls": h,
325
- onPressStart: () => {
326
- p(!1), s?.(!0);
327
- },
328
- children: i ? /* @__PURE__ */ e(
329
- R,
330
- {
331
- size: 20,
332
- "aria-hidden": "true"
333
- }
334
- ) : /* @__PURE__ */ e(
335
- F,
336
- {
337
- size: 20,
338
- "aria-hidden": "true"
339
- }
340
- )
341
- }
342
- ),
343
- /* @__PURE__ */ o("div", { children: [
344
- /* @__PURE__ */ e("p", { className: a.userName, children: n.name }),
345
- /* @__PURE__ */ e("p", { className: a.userTitle, children: n.title }),
346
- /* @__PURE__ */ e("p", { className: a.title, children: t })
347
- ] })
348
- ] }),
349
- /* @__PURE__ */ e("div", { className: a.headerItems, children: l })
350
- ]
351
- }
352
- );
353
- }, O = ({
354
- id: t = "main:first-of-type"
355
- }) => {
356
- const n = () => {
357
- const i = document.querySelector(t);
358
- i && (i.tabIndex = -1, i.focus(), setTimeout(() => i.removeAttribute("tabindex"), 1e3));
359
- }, r = k(C);
360
- return /* @__PURE__ */ e(
361
- T,
362
- {
363
- onPress: n,
364
- className: a.skipToContent,
365
- children: r.format("skipToContent")
366
- }
367
- );
368
- }, je = () => {
369
- const { isOpened: t, setIsOpened: n } = f();
370
- return t ? /* @__PURE__ */ e(
371
- "div",
372
- {
373
- className: b(a.backdrop, a.backdropOpened),
374
- onClick: () => {
375
- n?.(!1);
376
- },
377
- "aria-hidden": !0
378
- }
379
- ) : null;
380
- }, De = () => {
381
- const { items: t, clientSideRouter: n, clientSideHref: r } = f(), i = k(C), s = t?.[0]?.items;
382
- return /* @__PURE__ */ e(
383
- "nav",
384
- {
385
- className: a.navbar,
386
- "aria-label": i.format("bottomMenu"),
387
- children: s && /* @__PURE__ */ e("ul", { className: b(a.navbarList), children: n ? /* @__PURE__ */ e(
388
- P,
389
- {
390
- navigate: n,
391
- useHref: r,
392
- children: /* @__PURE__ */ e(w, { items: s })
393
- }
394
- ) : /* @__PURE__ */ e(w, { items: s }) })
395
- }
396
- );
397
- }, w = ({
398
- items: t
399
- }) => /* @__PURE__ */ e(G, { children: t.map(({ href: n, active: r, icon: i, title: s, hasBadge: p }, l) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
400
- L,
401
- {
402
- href: n,
403
- className: b(a.navbarItem),
404
- "data-active": r,
405
- "aria-current": r && "page",
406
- children: [
407
- /* @__PURE__ */ o(I, { children: [
408
- /* @__PURE__ */ e(i, { size: 20 }),
409
- p && /* @__PURE__ */ e(M, {})
410
- ] }),
411
- s
412
- ]
413
- }
414
- ) }, l)) }), c = ({
415
- items: t,
416
- title: n,
417
- user: r,
418
- app: i,
419
- children: s,
420
- headerChildren: p,
421
- clientSideRouter: l,
422
- clientSideHref: u,
423
- variant: h,
424
- className: x,
425
- onSidebarLinkClick: _
426
- }) => {
427
- const [v, d] = y.useState(!1), [m, N] = y.useState(!1), z = y.useId();
428
- return h === "external" ? /* @__PURE__ */ e(
429
- c.Provider,
430
- {
431
- items: t,
432
- title: n,
433
- user: r,
434
- app: i,
435
- clientSideRouter: l,
436
- clientSideHref: u,
437
- headerChildren: p,
438
- isCollapsed: v,
439
- setIsCollapsed: d,
440
- variant: h,
441
- id: z,
442
- children: /* @__PURE__ */ o("div", { className: b(a.baseLayout, x), children: [
443
- /* @__PURE__ */ e(O, {}),
444
- /* @__PURE__ */ e(c.Header, {}),
445
- /* @__PURE__ */ o("div", { className: a.mainContent, children: [
446
- /* @__PURE__ */ e(c.Sidebar, { onLinkClick: _ }),
447
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: s }) }) }),
448
- /* @__PURE__ */ e(c.Backdrop, {})
449
- ] }),
450
- /* @__PURE__ */ e("div", { className: a.navbarWrapper, children: /* @__PURE__ */ e(c.Navbar, {}) })
451
- ] })
452
- }
453
- ) : /* @__PURE__ */ e(
454
- c.Provider,
455
- {
456
- items: t,
457
- title: n,
458
- user: r,
459
- app: i,
460
- clientSideRouter: l,
461
- clientSideHref: u,
462
- headerChildren: p,
463
- isCollapsed: v,
464
- setIsCollapsed: d,
465
- isOpened: m,
466
- setIsOpened: N,
467
- variant: h,
468
- id: z,
469
- children: /* @__PURE__ */ o("div", { className: b(a.baseLayout, x), children: [
470
- /* @__PURE__ */ e(O, {}),
471
- /* @__PURE__ */ e(c.Header, {}),
472
- /* @__PURE__ */ o("div", { className: a.mainContent, children: [
473
- /* @__PURE__ */ e(c.Sidebar, { onLinkClick: _ }),
474
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: s }) }) }),
475
- /* @__PURE__ */ e(c.Backdrop, {})
476
- ] })
477
- ] })
478
- }
479
- );
480
- };
481
- c.Provider = we;
482
- c.Header = We;
483
- c.Sidebar = Ge;
484
- c.SidebarLink = E;
485
- c.Navbar = De;
486
- c.Backdrop = je;
487
- export {
488
- We as H,
489
- c as L,
490
- De as N,
491
- Ge as S,
492
- E as a
493
- };
@@ -1,59 +0,0 @@
1
- 'use client';
2
- import { jsx as e, jsxs as _, Fragment as u } from "react/jsx-runtime";
3
- import { Link as f } from "react-aria-components";
4
- import { c as h } from "./clsx-AexbMWKp.js";
5
- import { c as k } from "./createLucideIcon-CP-mMPfa.js";
6
- import { S as w } from "./square-arrow-out-up-right-x_I6wdNi.js";
7
- import { A as L } from "./arrow-right-BVcFGZmy.js";
8
- import '../assets/Link.css';const x = [
9
- ["path", { d: "M12 17V3", key: "1cwfxf" }],
10
- ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
11
- ["path", { d: "M19 21H5", key: "150jfl" }]
12
- ], g = k("arrow-down-to-line", x), y = "_link_duep2_1", A = "_icon_duep2_53", j = "_standalone_duep2_57", I = "_stretched_duep2_76", o = {
13
- link: y,
14
- icon: A,
15
- standalone: j,
16
- stretched: I
17
- }, D = ({
18
- children: t,
19
- standalone: n,
20
- target: r,
21
- stretched: s,
22
- download: a,
23
- icon: c,
24
- className: l,
25
- as: d,
26
- ...m
27
- }) => {
28
- const p = d || f, i = c || (a ? g : r === "_blank" ? w : n ? L : null);
29
- return /* @__PURE__ */ e(
30
- p,
31
- {
32
- className: h(
33
- o.link,
34
- n && o.standalone,
35
- s && o.stretched,
36
- l
37
- ),
38
- ...m,
39
- target: r,
40
- children: /* @__PURE__ */ _(u, { children: [
41
- t,
42
- i ? /* @__PURE__ */ e(
43
- N,
44
- {
45
- className: o.icon,
46
- icon: i,
47
- size: 16
48
- }
49
- ) : null
50
- ] })
51
- }
52
- );
53
- }, N = ({
54
- icon: t,
55
- ...n
56
- }) => /* @__PURE__ */ e(t, { ...n });
57
- export {
58
- D as L
59
- };
@@ -1,68 +0,0 @@
1
- 'use client';
2
- import { jsxs as f, jsx as c } from "react/jsx-runtime";
3
- import { Link as u } from "react-aria-components";
4
- import { c as k } from "./clsx-AexbMWKp.js";
5
- import { S as w } from "./square-arrow-out-up-right-x_I6wdNi.js";
6
- import { c as y } from "./createLucideIcon-CP-mMPfa.js";
7
- import { A as p } from "./arrow-right-BVcFGZmy.js";
8
- import '../assets/LinkButton.css';const g = [
9
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
10
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
11
- ], h = y("arrow-left", g), B = "_linkButton_1k5w6_1", L = "_secondary_1k5w6_58", x = "_icon_1k5w6_63", A = "_tertiary_1k5w6_102", I = "_danger_1k5w6_130", N = "_iconBtn_1k5w6_149", j = "_medium_1k5w6_173", z = "_iconLeft_1k5w6_178", R = "_fullwidth_1k5w6_182", t = {
12
- linkButton: B,
13
- secondary: L,
14
- icon: x,
15
- tertiary: A,
16
- danger: I,
17
- iconBtn: N,
18
- medium: j,
19
- iconLeft: z,
20
- fullwidth: R
21
- }, D = ({
22
- children: o,
23
- variant: n,
24
- fullwidth: s,
25
- icon: r,
26
- iconPlacement: e,
27
- className: _,
28
- as: m,
29
- size: a = "large",
30
- ...i
31
- }) => {
32
- const d = m || u, l = r || (i.target === "_blank" ? w : e === "left" ? h : p);
33
- return /* @__PURE__ */ f(
34
- d,
35
- {
36
- className: k(
37
- t.linkButton,
38
- n === "primary" && t.primary,
39
- n === "secondary" && t.secondary,
40
- n === "tertiary" && t.tertiary,
41
- n === "danger" && t.danger,
42
- n === "icon" && t.iconBtn,
43
- a === "medium" && t.medium,
44
- s && t.fullwidth,
45
- e === "left" && t.iconLeft,
46
- _
47
- ),
48
- ...i,
49
- children: [
50
- o,
51
- /* @__PURE__ */ c(
52
- S,
53
- {
54
- className: t.icon,
55
- icon: l,
56
- size: 20
57
- }
58
- )
59
- ]
60
- }
61
- );
62
- }, S = ({
63
- icon: o,
64
- ...n
65
- }) => /* @__PURE__ */ c(o, { ...n });
66
- export {
67
- D as L
68
- };
@@ -1,60 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { ListLayout as e, Virtualizer as n, ListBox as l } from "react-aria-components";
3
- import { c as x } from "./clsx-AexbMWKp.js";
4
- import '../assets/ListBox.css';class r extends e {
5
- /**
6
- * When using the ListLayout our scroll container height is not calculated properly when the content is partially sectioned.
7
- * ```ts
8
- * const partiallySectionedContent = [
9
- * {
10
- * name: 'fruit section',
11
- * children: [{ id: 'kiwi', name: 'Kiwi' }]
12
- * },
13
- * // berries have no section, because it's optional
14
- * { id: 'lingonberries', name: 'Lingonberries' }
15
- * ];
16
- * ```
17
- * If we load the layout info for each key in the collection the calculation is correct.
18
- *
19
- * This might not be optional for performance, FYI
20
- */
21
- getContentSize() {
22
- const t = this?.virtualizer?.collection.getKeys();
23
- return Array.from(t || []).forEach((o) => {
24
- this.getLayoutInfo(o);
25
- }), this.contentSize;
26
- }
27
- }
28
- const B = "_listBox_d58ov_4", a = "_listBoxPopover_d58ov_16 _dropdownAnimation_1ljkv_4", _ = "_listBoxSectionHeading_d58ov_31", c = "_listBoxButton_d58ov_43", d = "_listBoxItem_d58ov_55", m = "_textContent_d58ov_68", v = "_listBoxLoadMoreItem_d58ov_176", L = {
29
- listBox: B,
30
- listBoxPopover: a,
31
- listBoxSectionHeading: _,
32
- listBoxButton: c,
33
- listBoxItem: d,
34
- textContent: m,
35
- listBoxLoadMoreItem: v
36
- }, g = ({
37
- className: s,
38
- children: t,
39
- ...o
40
- }) => /* @__PURE__ */ i(
41
- n,
42
- {
43
- layout: r,
44
- layoutOptions: {
45
- headingHeight: 38
46
- },
47
- children: /* @__PURE__ */ i(
48
- l,
49
- {
50
- className: x(L.listBox, s),
51
- ...o,
52
- children: t
53
- }
54
- )
55
- }
56
- );
57
- export {
58
- g as L,
59
- L as s
60
- };
@@ -1,30 +0,0 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { c as m } from "./clsx-AexbMWKp.js";
3
- import { Popover as r } from "react-aria-components";
4
- import { s as a } from "./ListBox-CJhp9Hsb.js";
5
- import { T as p } from "./Text-D0r_W4lH.js";
6
- import '../assets/ListBoxEmptyState.css';const n = ({
7
- className: t,
8
- children: o,
9
- ...e
10
- }) => /* @__PURE__ */ s(
11
- r,
12
- {
13
- className: m(t, a.listBoxPopover),
14
- offset: 0,
15
- ...e,
16
- children: o
17
- }
18
- ), i = "_listBoxEmptyState_1wxhy_1", x = {
19
- listBoxEmptyState: i
20
- }, E = ({ className: t, ...o }) => /* @__PURE__ */ s(
21
- p,
22
- {
23
- className: m(t, x.listBoxEmptyState),
24
- ...o
25
- }
26
- );
27
- export {
28
- E as L,
29
- n as a
30
- };