@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
@@ -0,0 +1,240 @@
1
+ import { F as b, l as Q, G as k, n as q, d as G } from "./useFocusRing-D97-G3fT.js";
2
+ import R, { useRef as x, useEffect as S, createContext as L, useMemo as y, useContext as D, useState as m, forwardRef as B } from "react";
3
+ import { a as Y } from "./Text-DGLaY3HR.js";
4
+ function ne(t, e, a) {
5
+ let i = x(e), l = b(() => {
6
+ a && a(i.current);
7
+ });
8
+ S(() => {
9
+ var r;
10
+ let n = t == null || (r = t.current) === null || r === void 0 ? void 0 : r.form;
11
+ return n == null || n.addEventListener("reset", l), () => {
12
+ n == null || n.removeEventListener("reset", l);
13
+ };
14
+ }, [
15
+ t,
16
+ l
17
+ ]);
18
+ }
19
+ const C = {
20
+ badInput: !1,
21
+ customError: !1,
22
+ patternMismatch: !1,
23
+ rangeOverflow: !1,
24
+ rangeUnderflow: !1,
25
+ stepMismatch: !1,
26
+ tooLong: !1,
27
+ tooShort: !1,
28
+ typeMismatch: !1,
29
+ valueMissing: !1,
30
+ valid: !0
31
+ }, T = {
32
+ ...C,
33
+ customError: !0,
34
+ valid: !1
35
+ }, f = {
36
+ isInvalid: !1,
37
+ validationDetails: C,
38
+ validationErrors: []
39
+ }, z = L({}), F = "__formValidationState" + Date.now();
40
+ function oe(t) {
41
+ if (t[F]) {
42
+ let { realtimeValidation: e, displayValidation: a, updateValidation: i, resetValidation: l, commitValidation: r } = t[F];
43
+ return {
44
+ realtimeValidation: e,
45
+ displayValidation: a,
46
+ updateValidation: i,
47
+ resetValidation: l,
48
+ commitValidation: r
49
+ };
50
+ }
51
+ return H(t);
52
+ }
53
+ function H(t) {
54
+ let { isInvalid: e, validationState: a, name: i, value: l, builtinValidation: r, validate: n, validationBehavior: v = "aria" } = t;
55
+ a && (e || (e = a === "invalid"));
56
+ let o = e !== void 0 ? {
57
+ isInvalid: e,
58
+ validationErrors: [],
59
+ validationDetails: T
60
+ } : null, s = y(() => {
61
+ if (!n || l == null) return null;
62
+ let d = J(n, l);
63
+ return O(d);
64
+ }, [
65
+ n,
66
+ l
67
+ ]);
68
+ r != null && r.validationDetails.valid && (r = void 0);
69
+ let c = D(z), u = y(() => i ? Array.isArray(i) ? i.flatMap((d) => M(c[d])) : M(c[i]) : [], [
70
+ c,
71
+ i
72
+ ]), [_, j] = m(c), [w, V] = m(!1);
73
+ c !== _ && (j(c), V(!1));
74
+ let p = y(() => O(w ? [] : u), [
75
+ w,
76
+ u
77
+ ]), A = x(f), [E, g] = m(f), $ = x(f), P = () => {
78
+ if (!N) return;
79
+ h(!1);
80
+ let d = s || r || A.current;
81
+ I(d, $.current) || ($.current = d, g(d));
82
+ }, [N, h] = m(!1);
83
+ return S(P), {
84
+ realtimeValidation: o || p || s || r || f,
85
+ displayValidation: v === "native" ? o || p || E : o || p || s || r || E,
86
+ updateValidation(d) {
87
+ v === "aria" && !I(E, d) ? g(d) : A.current = d;
88
+ },
89
+ resetValidation() {
90
+ let d = f;
91
+ I(d, $.current) || ($.current = d, g(d)), v === "native" && h(!1), V(!0);
92
+ },
93
+ commitValidation() {
94
+ v === "native" && h(!0), V(!0);
95
+ }
96
+ };
97
+ }
98
+ function M(t) {
99
+ return t ? Array.isArray(t) ? t : [
100
+ t
101
+ ] : [];
102
+ }
103
+ function J(t, e) {
104
+ if (typeof t == "function") {
105
+ let a = t(e);
106
+ if (a && typeof a != "boolean") return M(a);
107
+ }
108
+ return [];
109
+ }
110
+ function O(t) {
111
+ return t.length ? {
112
+ isInvalid: !0,
113
+ validationErrors: t,
114
+ validationDetails: T
115
+ } : null;
116
+ }
117
+ function I(t, e) {
118
+ return t === e ? !0 : !!t && !!e && t.isInvalid === e.isInvalid && t.validationErrors.length === e.validationErrors.length && t.validationErrors.every((a, i) => a === e.validationErrors[i]) && Object.entries(t.validationDetails).every(([a, i]) => e.validationDetails[a] === i);
119
+ }
120
+ function de(...t) {
121
+ let e = /* @__PURE__ */ new Set(), a = !1, i = {
122
+ ...C
123
+ };
124
+ for (let n of t) {
125
+ var l, r;
126
+ for (let v of n.validationErrors) e.add(v);
127
+ a || (a = n.isInvalid);
128
+ for (let v in i) (l = i)[r = v] || (l[r] = n.validationDetails[v]);
129
+ }
130
+ return i.valid = !a, {
131
+ isInvalid: a,
132
+ validationErrors: [
133
+ ...e
134
+ ],
135
+ validationDetails: i
136
+ };
137
+ }
138
+ function se(t, e, a) {
139
+ let { validationBehavior: i, focus: l } = t;
140
+ Q(() => {
141
+ if (i === "native" && (a != null && a.current)) {
142
+ let o = e.realtimeValidation.isInvalid ? e.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
143
+ a.current.setCustomValidity(o), a.current.hasAttribute("title") || (a.current.title = ""), e.realtimeValidation.isInvalid || e.updateValidation(W(a.current));
144
+ }
145
+ });
146
+ let r = b(() => {
147
+ e.resetValidation();
148
+ }), n = b((o) => {
149
+ var s;
150
+ e.displayValidation.isInvalid || e.commitValidation();
151
+ let c = a == null || (s = a.current) === null || s === void 0 ? void 0 : s.form;
152
+ if (!o.defaultPrevented && a && c && X(c) === a.current) {
153
+ var u;
154
+ l ? l() : (u = a.current) === null || u === void 0 || u.focus(), k("keyboard");
155
+ }
156
+ o.preventDefault();
157
+ }), v = b(() => {
158
+ e.commitValidation();
159
+ });
160
+ S(() => {
161
+ let o = a == null ? void 0 : a.current;
162
+ if (!o) return;
163
+ let s = o.form;
164
+ return o.addEventListener("invalid", n), o.addEventListener("change", v), s == null || s.addEventListener("reset", r), () => {
165
+ o.removeEventListener("invalid", n), o.removeEventListener("change", v), s == null || s.removeEventListener("reset", r);
166
+ };
167
+ }, [
168
+ a,
169
+ n,
170
+ v,
171
+ r,
172
+ i
173
+ ]);
174
+ }
175
+ function K(t) {
176
+ let e = t.validity;
177
+ return {
178
+ badInput: e.badInput,
179
+ customError: e.customError,
180
+ patternMismatch: e.patternMismatch,
181
+ rangeOverflow: e.rangeOverflow,
182
+ rangeUnderflow: e.rangeUnderflow,
183
+ stepMismatch: e.stepMismatch,
184
+ tooLong: e.tooLong,
185
+ tooShort: e.tooShort,
186
+ typeMismatch: e.typeMismatch,
187
+ valueMissing: e.valueMissing,
188
+ valid: e.valid
189
+ };
190
+ }
191
+ function W(t) {
192
+ return {
193
+ isInvalid: !t.validity.valid,
194
+ validationDetails: K(t),
195
+ validationErrors: t.validationMessage ? [
196
+ t.validationMessage
197
+ ] : []
198
+ };
199
+ }
200
+ function X(t) {
201
+ for (let e = 0; e < t.elements.length; e++) {
202
+ let a = t.elements[e];
203
+ if (!a.validity.valid) return a;
204
+ }
205
+ return null;
206
+ }
207
+ const U = /* @__PURE__ */ L(null);
208
+ function Z(t, e) {
209
+ let a = D(U);
210
+ return a != null && a.isInvalid ? /* @__PURE__ */ R.createElement(ee, {
211
+ ...t,
212
+ ref: e
213
+ }) : null;
214
+ }
215
+ const ve = /* @__PURE__ */ B(Z), ee = /* @__PURE__ */ B((t, e) => {
216
+ let a = D(U), i = q(t), l = G({
217
+ ...t,
218
+ defaultClassName: "react-aria-FieldError",
219
+ defaultChildren: a.validationErrors.length === 0 ? void 0 : a.validationErrors.join(" "),
220
+ values: a
221
+ });
222
+ return l.children == null ? null : /* @__PURE__ */ R.createElement(Y, {
223
+ slot: "errorMessage",
224
+ ...i,
225
+ ...l,
226
+ ref: e
227
+ });
228
+ }), ce = /* @__PURE__ */ L(null);
229
+ export {
230
+ oe as $,
231
+ ne as a,
232
+ se as b,
233
+ ce as c,
234
+ U as d,
235
+ ve as e,
236
+ F as f,
237
+ f as g,
238
+ de as h,
239
+ C as i
240
+ };
package/Grid.css ADDED
@@ -0,0 +1 @@
1
+ ._container_1aupx_4{--columns: 1;--padding: 1rem;--gutter: 1rem;--margin: auto;--maxWidth: 1368px;width:100%;margin-left:var(--margin);margin-right:var(--margin)}._grid_1aupx_16{padding-right:var(--padding);padding-left:var(--padding);display:grid;gap:var(--gutter);grid-template-columns:repeat(var(--columns),minmax(0,1fr))}@media (min-width: 768px){._container_1aupx_4{--columns: 12;--padding: 2rem}}@media (min-width: 1200px){._container_1aupx_4{--gutter: 1.5rem}}@media (min-width: 1440px){._container_1aupx_4{--padding: 0;max-width:1368px}}._fluid_1aupx_45{--maxWidth: unset;--margin: 0;--padding: 0}._col_1aupx_52{display:flex;grid-column:span 1}@media (min-width: 768px){._col-1_1aupx_58{grid-column:span 1}._col-2_1aupx_62{grid-column:span 2}._col-3_1aupx_66{grid-column:span 3}._col-4_1aupx_70{grid-column:span 4}._col-5_1aupx_74{grid-column:span 5}._col-6_1aupx_78{grid-column:span 6}._col-7_1aupx_82{grid-column:span 7}._col-8_1aupx_86{grid-column:span 8}._col-9_1aupx_90{grid-column:span 9}._col-10_1aupx_94{grid-column:span 10}._col-11_1aupx_98{grid-column:span 11}._col-12_1aupx_102{grid-column:span 12}._offset-1_1aupx_106{grid-column:2 / span 1}._offset-2_1aupx_110{grid-column:3 / span 1}._offset-3_1aupx_114{grid-column:4 / span 1}._offset-4_1aupx_118{grid-column:5 / span 1}._offset-5_1aupx_122{grid-column:6 / span 1}._offset-6_1aupx_126{grid-column:7 / span 1}._offset-7_1aupx_130{grid-column:8 / span 1}._offset-8_1aupx_134{grid-column:9 / span 1}._offset-9_1aupx_138{grid-column:10 / span 1}._offset-10_1aupx_142{grid-column:11 / span 1}._offset-11_1aupx_146{grid-column:12 / span 1}}
@@ -0,0 +1,36 @@
1
+ import './Grid.css';const _ = '"../theme/tokens.css"', o = "(min-width: 768px)", t = "(min-width: 1200px)", f = "(min-width: 1440px)", c = "_container_1aupx_4", s = "_grid_1aupx_16", e = "_fluid_1aupx_45", a = "_col_1aupx_52", p = {
2
+ tokens: _,
3
+ mdBreakpoint: o,
4
+ lgBreakpoint: t,
5
+ xlBreakpoint: f,
6
+ container: c,
7
+ grid: s,
8
+ fluid: e,
9
+ col: a,
10
+ "col-1": "_col-1_1aupx_58",
11
+ "col-2": "_col-2_1aupx_62",
12
+ "col-3": "_col-3_1aupx_66",
13
+ "col-4": "_col-4_1aupx_70",
14
+ "col-5": "_col-5_1aupx_74",
15
+ "col-6": "_col-6_1aupx_78",
16
+ "col-7": "_col-7_1aupx_82",
17
+ "col-8": "_col-8_1aupx_86",
18
+ "col-9": "_col-9_1aupx_90",
19
+ "col-10": "_col-10_1aupx_94",
20
+ "col-11": "_col-11_1aupx_98",
21
+ "col-12": "_col-12_1aupx_102",
22
+ "offset-1": "_offset-1_1aupx_106",
23
+ "offset-2": "_offset-2_1aupx_110",
24
+ "offset-3": "_offset-3_1aupx_114",
25
+ "offset-4": "_offset-4_1aupx_118",
26
+ "offset-5": "_offset-5_1aupx_122",
27
+ "offset-6": "_offset-6_1aupx_126",
28
+ "offset-7": "_offset-7_1aupx_130",
29
+ "offset-8": "_offset-8_1aupx_134",
30
+ "offset-9": "_offset-9_1aupx_138",
31
+ "offset-10": "_offset-10_1aupx_142",
32
+ "offset-11": "_offset-11_1aupx_146"
33
+ };
34
+ export {
35
+ p as s
36
+ };
@@ -0,0 +1,44 @@
1
+ import { a as H, b as h, c as x, d as m, e as F } from "./useFocusRing-D97-G3fT.js";
2
+ import P, { forwardRef as _, createContext as p } from "react";
3
+ const C = /* @__PURE__ */ p({});
4
+ function g(e, i) {
5
+ [e, i] = H(e, i, C);
6
+ let { isDisabled: a, isInvalid: d, onHoverStart: f, onHoverChange: v, onHoverEnd: u, ...c } = e, { hoverProps: $, isHovered: s } = h({
7
+ onHoverStart: f,
8
+ onHoverChange: v,
9
+ onHoverEnd: u,
10
+ isDisabled: a
11
+ }), { isFocused: n, isFocusVisible: t, focusProps: b } = x({
12
+ within: !0
13
+ });
14
+ a ?? (a = !!e["aria-disabled"] && e["aria-disabled"] !== "false"), d ?? (d = !!e["aria-invalid"] && e["aria-invalid"] !== "false");
15
+ let l = m({
16
+ ...e,
17
+ values: {
18
+ isHovered: s,
19
+ isFocusWithin: n,
20
+ isFocusVisible: t,
21
+ isDisabled: a,
22
+ isInvalid: d
23
+ },
24
+ defaultClassName: "react-aria-Group"
25
+ });
26
+ var o, r;
27
+ return /* @__PURE__ */ P.createElement("div", {
28
+ ...F(c, b, $),
29
+ ...l,
30
+ ref: i,
31
+ role: (o = e.role) !== null && o !== void 0 ? o : "group",
32
+ slot: (r = e.slot) !== null && r !== void 0 ? r : void 0,
33
+ "data-focus-within": n || void 0,
34
+ "data-hovered": s || void 0,
35
+ "data-focus-visible": t || void 0,
36
+ "data-disabled": a || void 0,
37
+ "data-invalid": d || void 0
38
+ }, l.children);
39
+ }
40
+ const w = /* @__PURE__ */ _(g);
41
+ export {
42
+ w as $,
43
+ C as a
44
+ };
@@ -0,0 +1,37 @@
1
+ import { createPortal as c } from "react-dom";
2
+ import a, { forwardRef as l, useContext as d, createContext as o } from "react";
3
+ import { g as f } from "./useFocusRing-D97-G3fT.js";
4
+ if (typeof HTMLTemplateElement < "u") {
5
+ const e = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
6
+ Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
7
+ configurable: !0,
8
+ enumerable: !0,
9
+ get: function() {
10
+ return this.dataset.reactAriaHidden ? this.content.firstChild : e.call(this);
11
+ }
12
+ });
13
+ }
14
+ const n = /* @__PURE__ */ o(!1), u = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
15
+ function $(e) {
16
+ let t = d(n), i = f();
17
+ if (t)
18
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, e.children);
19
+ let r = /* @__PURE__ */ a.createElement(n.Provider, {
20
+ value: !0
21
+ }, e.children);
22
+ return i ? /* @__PURE__ */ a.createElement("template", {
23
+ "data-react-aria-hidden": !0
24
+ }, r) : /* @__PURE__ */ c(r, u);
25
+ }
26
+ function h(e) {
27
+ let t = (i, r) => d(n) ? null : e(i, r);
28
+ return t.displayName = e.displayName || e.name, l(t);
29
+ }
30
+ function g() {
31
+ return d(n);
32
+ }
33
+ export {
34
+ h as $,
35
+ $ as a,
36
+ g as b
37
+ };
package/InfoBanner.css ADDED
@@ -0,0 +1 @@
1
+ ._infoBanner_cn873_4{font-family:Inter,sans-serif;display:flex;font-size:1rem;flex-direction:row;gap:1rem;padding:1rem;border-left:3px solid var(--border);background-color:var(--bg)}._infoBanner_cn873_4._success_cn873_12{--border: #008d3c;--bg: #d5f2d9}._infoBanner_cn873_4._info_cn873_4{--border: #0066cc;--bg: #eaf2f6}._infoBanner_cn873_4._important_cn873_22{--border: #f1c21b;--bg: #fff8e1}._infoBanner_cn873_4._warning_cn873_27{--border: #e62323;--bg: #ffdfdf}._content_cn873_36{display:flex;flex-direction:column;flex:1 0 0%}._heading_cn873_42{font-weight:600;margin-bottom:.25rem}._text_cn873_47{white-space:pre-line;margin:0}._icon_cn873_52{color:var(--border);min-width:20px}._dismissable_cn873_57{margin-top:-1rem;margin-right:-1rem;justify-self:flex-end}
@@ -0,0 +1,69 @@
1
+ import { k as s, y as f, e as n, a as $ } from "./useFocusRing-D97-G3fT.js";
2
+ import { a as c } from "./useControlledState-S_TYcV_c.js";
3
+ import { $ as p } from "./Hidden-BQWDvze4.js";
4
+ import m, { createContext as y } from "react";
5
+ function u(l) {
6
+ let { id: e, label: o, "aria-labelledby": a, "aria-label": t, labelElementType: d = "label" } = l;
7
+ e = s(e);
8
+ let r = s(), i = {};
9
+ o ? (a = a ? `${r} ${a}` : r, i = {
10
+ id: r,
11
+ htmlFor: d === "label" ? e : void 0
12
+ }) : !a && !t && console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
13
+ let b = c({
14
+ id: e,
15
+ "aria-label": t,
16
+ "aria-labelledby": a
17
+ });
18
+ return {
19
+ labelProps: i,
20
+ fieldProps: b
21
+ };
22
+ }
23
+ function E(l) {
24
+ let { description: e, errorMessage: o, isInvalid: a, validationState: t } = l, { labelProps: d, fieldProps: r } = u(l), i = f([
25
+ !!e,
26
+ !!o,
27
+ a,
28
+ t
29
+ ]), b = f([
30
+ !!e,
31
+ !!o,
32
+ a,
33
+ t
34
+ ]);
35
+ return r = n(r, {
36
+ "aria-describedby": [
37
+ i,
38
+ // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
39
+ b,
40
+ l["aria-describedby"]
41
+ ].filter(Boolean).join(" ") || void 0
42
+ }), {
43
+ labelProps: d,
44
+ fieldProps: r,
45
+ descriptionProps: {
46
+ id: i
47
+ },
48
+ errorMessageProps: {
49
+ id: b
50
+ }
51
+ };
52
+ }
53
+ const P = /* @__PURE__ */ y({});
54
+ function x(l, e) {
55
+ [l, e] = $(l, e, P);
56
+ let { elementType: o = "label", ...a } = l;
57
+ return /* @__PURE__ */ m.createElement(o, {
58
+ className: "react-aria-Label",
59
+ ...a,
60
+ ref: e
61
+ });
62
+ }
63
+ const L = /* @__PURE__ */ p(x);
64
+ export {
65
+ E as $,
66
+ P as a,
67
+ L as b,
68
+ u as c
69
+ };
package/Layout.css ADDED
@@ -0,0 +1 @@
1
+ ._baseLayout_1w6p5_4{--sideBarWidth: 230px;--headerHeight: 60px}@media (min-width: 768px){._baseLayout_1w6p5_4{--headerHeight: 85px}}._mainContent_1w6p5_13{display:flex;flex-direction:row}._header_1w6p5_18{position:sticky;top:0;font-family:Inter,sans-serif;padding:.5rem 1rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #a6a6a6;background-color:#fff}@media (min-width: 768px){._header_1w6p5_18{padding:1rem;z-index:3}}._headerContent_1w6p5_35{display:flex;flex-flow:row wrap;align-items:center;gap:2rem}._headerContent_1w6p5_35>svg{display:none}@media (min-width: 768px){._headerContent_1w6p5_35>svg{display:initial}}._headerItems_1w6p5_52,._logo_1w6p5_53{display:none}@media (min-width: 768px){._headerItems_1w6p5_52,._logo_1w6p5_53{display:block}}._headerMenu_1w6p5_61{display:block}@media (min-width: 768px){._headerMenu_1w6p5_61{display:none}}._toggleButton_1w6p5_69{display:block}@media (min-width: 768px){._toggleButton_1w6p5_69{display:none!important}}._sidebar_1w6p5_77{font-family:Inter,sans-serif;background-color:#fff;display:flex;flex-flow:wrap column;flex:0 0 var(--sideBarWidth);transition:.2s;position:fixed;top:0;height:100vh;width:var(--sideBarWidth);transform:translate(calc(var(--sideBarWidth) * -1));z-index:2;border-right:1px solid #b3b3b3}@media (min-width: 768px){._sidebar_1w6p5_77{position:sticky;top:var(--headerHeight);align-self:start;height:calc(100vh - var(--headerHeight));transform:none;width:var(--sideBarWidth)}}._main_1w6p5_13{font-family:Inter,sans-serif;flex:0 0 auto;width:100%}@media (min-width: 768px){._main_1w6p5_13{background-color:#f2f2f2}}._app_1w6p5_112{background-clip:content-box;background-color:#fff}@media (min-width: 768px){._app_1w6p5_112{padding:2rem}}._sidebarOpened_1w6p5_121{transform:translate(0)}._sidebarHeader_1w6p5_125{padding:1rem;border-bottom:1px solid #b3b3b3}._sidebarHeader_1w6p5_125 p{margin:0}._sidebarFooter_1w6p5_134{display:none;padding:.5rem 1rem;position:sticky;bottom:0}@media (min-width: 768px){._sidebarFooter_1w6p5_134{justify-self:flex-end;display:flex;justify-content:flex-end;border-top:1px solid #a6a6a6}}._sidebarCollapsed_1w6p5_148{--sideBarWidth: 68px;transition:all .2s ease-out}._sidebarCollapsed_1w6p5_148 ._sidebarHeader_1w6p5_125{display:flex;justify-content:center;padding:1rem 0}._sidebarCollapsed_1w6p5_148 ._sidebarFooter_1w6p5_134{padding:.5rem 0;justify-content:center}._userName_1w6p5_165{margin:0;margin-bottom:.25rem;font-size:.875rem;font-weight:500;display:none}@media (min-width: 768px){._userName_1w6p5_165{display:block}}._abbr_1w6p5_177{font-size:.875rem;font-weight:500;align-self:center}._userTitle_1w6p5_183{margin:0;font-size:.875rem;font-weight:400;display:none}@media (min-width: 768px){._userTitle_1w6p5_183{display:block}}._title_1w6p5_194{margin:0;font-size:1rem;font-weight:500;display:block}@media (min-width: 768px){._title_1w6p5_194{display:none}}._sidebarNav_1w6p5_205{padding:.5rem;overflow-y:auto;margin-bottom:auto}._list_1w6p5_211{list-style-type:none;margin:0;padding:0;margin-bottom:1rem}._listGroupTitle_1w6p5_218{color:#5d5d5d;font-size:.75rem;letter-spacing:.0375rem;text-transform:uppercase;padding:.5rem;margin:0}._listItem_1w6p5_227{display:flex}._listItemCollapsed_1w6p5_231{justify-content:center}._listLink_1w6p5_235{color:currentColor!important;flex-grow:1;transition:.1s;justify-content:flex-end!important}._linkText_1w6p5_242{transform:translate(0);opacity:1;width:auto;transition-property:transform width opacity;transition-duration:0s 0s 10ms;transition-delay:0s 0s .2s;transition-behavior:allow-discrete}._linkTextCollapsed_1w6p5_252{display:none;transform:translate(-200px);opacity:0;width:0;transition-property:transform,opacity,width;transition-duration:0,.1s,.1s;transition-delay:0s;transition-behavior:allow-discrete}._listLinkCollapsed_1w6p5_263{flex-grow:unset}._collapseButton_1w6p5_267{color:currentColor!important;padding:calc(.875rem - 1px)!important}._backdrop_1w6p5_272{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#3232327f;opacity:0;transition:all .1s;transition-behavior:allow-discrete}._backdrop_1w6p5_272._backdropOpened_1w6p5_281{opacity:1;display:block}@starting-style{._backdrop_1w6p5_272._backdropOpened_1w6p5_281{opacity:0}}
@@ -0,0 +1,77 @@
1
+ import { m as k, n as h, e as b, o as C, p as D, q as T, a as E, b as F, c as H, d as g } from "./useFocusRing-D97-G3fT.js";
2
+ import y, { createContext as L, forwardRef as _ } from "react";
3
+ import { $ as S } from "./useFocusable-C-N9wcwm.js";
4
+ function V(e, r) {
5
+ let {
6
+ elementType: n = "a",
7
+ onPress: l,
8
+ onPressStart: i,
9
+ onPressEnd: f,
10
+ // @ts-ignore
11
+ onClick: a,
12
+ isDisabled: d,
13
+ ...o
14
+ } = e, t = {};
15
+ n !== "a" && (t = {
16
+ role: "link",
17
+ tabIndex: d ? void 0 : 0
18
+ });
19
+ let { focusableProps: c } = S(e, r), { pressProps: u, isPressed: p } = k({
20
+ onPress: l,
21
+ onPressStart: i,
22
+ onPressEnd: f,
23
+ isDisabled: d,
24
+ ref: r
25
+ }), x = h(o, {
26
+ labelable: !0
27
+ }), m = b(c, u), P = C(), v = D(e);
28
+ return {
29
+ isPressed: p,
30
+ linkProps: b(x, v, {
31
+ ...m,
32
+ ...t,
33
+ "aria-disabled": d || void 0,
34
+ "aria-current": e["aria-current"],
35
+ onClick: (s) => {
36
+ var $;
37
+ ($ = u.onClick) === null || $ === void 0 || $.call(u, s), a && (a(s), console.warn("onClick is deprecated, please use onPress")), !P.isNative && s.currentTarget instanceof HTMLAnchorElement && s.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
38
+ !s.isDefaultPrevented() && T(s.currentTarget, s) && e.href && (s.preventDefault(), P.open(s.currentTarget, s, e.href, e.routerOptions));
39
+ }
40
+ })
41
+ };
42
+ }
43
+ const w = /* @__PURE__ */ L(null);
44
+ function N(e, r) {
45
+ [e, r] = E(e, r, w);
46
+ let n = e.href && !e.isDisabled ? "a" : "span", { linkProps: l, isPressed: i } = V({
47
+ ...e,
48
+ elementType: n
49
+ }, r), { hoverProps: f, isHovered: a } = F(e), { focusProps: d, isFocused: o, isFocusVisible: t } = H(), c = g({
50
+ ...e,
51
+ defaultClassName: "react-aria-Link",
52
+ values: {
53
+ isCurrent: !!e["aria-current"],
54
+ isDisabled: e.isDisabled || !1,
55
+ isPressed: i,
56
+ isHovered: a,
57
+ isFocused: o,
58
+ isFocusVisible: t
59
+ }
60
+ });
61
+ return /* @__PURE__ */ y.createElement(n, {
62
+ ref: r,
63
+ slot: e.slot || void 0,
64
+ ...b(c, l, f, d),
65
+ "data-focused": o || void 0,
66
+ "data-hovered": a || void 0,
67
+ "data-pressed": i || void 0,
68
+ "data-focus-visible": t || void 0,
69
+ "data-current": !!e["aria-current"] || void 0,
70
+ "data-disabled": e.isDisabled || void 0
71
+ }, c.children);
72
+ }
73
+ const A = /* @__PURE__ */ _(N);
74
+ export {
75
+ A as $,
76
+ w as a
77
+ };
package/Link.css ADDED
@@ -0,0 +1 @@
1
+ ._link_p1sqk_4{font-family:Inter,sans-serif;color:#25607f;text-decoration:underline;display:inline-flex;cursor:pointer;gap:.25rem;font-weight:400;align-items:center}._link_p1sqk_4:hover{color:#143c50}._link_p1sqk_4:visited{color:#636}._link_p1sqk_4[data-disabled]{cursor:disabled;color:#bfbfbf}._link_p1sqk_4[data-pressed]{color:#000}._link_p1sqk_4[data-focused]{outline:none}._link_p1sqk_4[data-focus-visible]{box-shadow:0 0 0 2px #fff,0 0 0 4px #000}._icon_p1sqk_40{flex:0 0 auto}._standalone_p1sqk_44{display:inline-flex;gap:.5rem;text-decoration:none;font-weight:500}._standalone_p1sqk_44:hover,._standalone_p1sqk_44[data-pressed]{text-decoration:underline}._stretched_p1sqk_59:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}
package/LinkButton.css ADDED
@@ -0,0 +1 @@
1
+ ._linkButton_7qa6p_4{font-family:Inter,sans-serif;font-size:1rem;font-weight:500;padding:calc(.875rem - 1px) calc(1rem - 1px);background-color:#143c50;border:solid 1px transparent;color:#fff;cursor:pointer;opacity:1;outline:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none}._linkButton_7qa6p_4:hover{color:#fff;text-decoration:none;background-color:#25607f}._linkButton_7qa6p_4[data-pressed]{background-color:#4289ad;outline:none}._linkButton_7qa6p_4[data-focus-visible]{box-shadow:0 0 0 2px #fff,0 0 0 4px #000}._linkButton_7qa6p_4[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#f2f2f2}._secondary_7qa6p_43{color:#143c50;background-color:#fff;border-color:#143c50;opacity:1}._secondary_7qa6p_43:hover{color:#143c50;background-color:#f2f2f2}._secondary_7qa6p_43[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#fff;border-color:#bfbfbf}._secondary_7qa6p_43[data-pressed]{background-color:#e6e6e6;border-color:#143c50}._tertiary_7qa6p_67{color:#143c50;background-color:transparent;opacity:1}._tertiary_7qa6p_67:hover{color:#143c50;background-color:#f2f2f2}._tertiary_7qa6p_67[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#fff}._tertiary_7qa6p_67[data-pressed]{background-color:#e6e6e6}._danger_7qa6p_88{color:#fff;background-color:#e62323;opacity:1}._danger_7qa6p_88:hover{color:#fff;background-color:#b31b1b}._danger_7qa6p_88[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#f2f2f2}._danger_7qa6p_88[data-pressed]{background-color:#801313;outline:none}._iconBtn_7qa6p_110{background-color:transparent;padding:.875rem;color:#000;display:flex;align-items:center}._iconBtn_7qa6p_110:hover{background-color:#0000001a}._iconBtn_7qa6p_110[data-disabled]{color:#bfbfbf;pointer-events:none}._iconBtn_7qa6p_110[data-pressed]{background-color:#e6e6e6}._iconLeft_7qa6p_131{flex-direction:row-reverse}._fullwidth_7qa6p_135{width:100%}@media (max-width: 767px){._button_7qa6p_140{width:100%}}