@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/Form-BWBjJC6v.js DELETED
@@ -1,238 +0,0 @@
1
- import { m as b, l as Q, K as k, o as q, d as K } from "./useFocusRing-9PXyKy2A.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-BCF0xvqL.js";
4
- function ne(t, e, a) {
5
- let i = x(e), n = b(() => {
6
- a && a(i.current);
7
- });
8
- S(() => {
9
- var r;
10
- let l = t == null || (r = t.current) === null || r === void 0 ? void 0 : r.form;
11
- return l == null || l.addEventListener("reset", n), () => {
12
- l == null || l.removeEventListener("reset", n);
13
- };
14
- }, [
15
- t,
16
- n
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
- }, v = {
36
- isInvalid: !1,
37
- validationDetails: C,
38
- validationErrors: []
39
- }, z = L({}), F = "__formValidationState" + Date.now();
40
- function le(t) {
41
- if (t[F]) {
42
- let { realtimeValidation: e, displayValidation: a, updateValidation: i, resetValidation: n, commitValidation: r } = t[F];
43
- return {
44
- realtimeValidation: e,
45
- displayValidation: a,
46
- updateValidation: i,
47
- resetValidation: n,
48
- commitValidation: r
49
- };
50
- }
51
- return G(t);
52
- }
53
- function G(t) {
54
- let { isInvalid: e, validationState: a, name: i, value: n, builtinValidation: r, validate: l, validationBehavior: u = "aria" } = t;
55
- a && (e || (e = a === "invalid"));
56
- let d = e !== void 0 ? {
57
- isInvalid: e,
58
- validationErrors: [],
59
- validationDetails: T
60
- } : null, s = y(() => {
61
- if (!l || n == null) return null;
62
- let o = H(l, n);
63
- return O(o);
64
- }, [
65
- l,
66
- n
67
- ]);
68
- r != null && r.validationDetails.valid && (r = void 0);
69
- let f = D(z), c = y(() => i ? Array.isArray(i) ? i.flatMap((o) => M(f[o])) : M(f[i]) : [], [
70
- f,
71
- i
72
- ]), [_, j] = m(f), [w, V] = m(!1);
73
- f !== _ && (j(f), V(!1));
74
- let p = y(() => O(w ? [] : c), [
75
- w,
76
- c
77
- ]), A = x(v), [E, g] = m(v), $ = x(v), P = () => {
78
- if (!N) return;
79
- h(!1);
80
- let o = s || r || A.current;
81
- I(o, $.current) || ($.current = o, g(o));
82
- }, [N, h] = m(!1);
83
- return S(P), {
84
- realtimeValidation: d || p || s || r || v,
85
- displayValidation: u === "native" ? d || p || E : d || p || s || r || E,
86
- updateValidation(o) {
87
- u === "aria" && !I(E, o) ? g(o) : A.current = o;
88
- },
89
- resetValidation() {
90
- let o = v;
91
- I(o, $.current) || ($.current = o, g(o)), u === "native" && h(!1), V(!0);
92
- },
93
- commitValidation() {
94
- u === "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 H(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 l of t) {
125
- var n, r;
126
- for (let u of l.validationErrors) e.add(u);
127
- a || (a = l.isInvalid);
128
- for (let u in i) (n = i)[r = u] || (n[r] = l.validationDetails[u]);
129
- }
130
- return i.valid = !a, {
131
- isInvalid: a,
132
- validationErrors: [
133
- ...e
134
- ],
135
- validationDetails: i
136
- };
137
- }
138
- function oe(t, e, a) {
139
- let { validationBehavior: i, focus: n } = t;
140
- Q(() => {
141
- if (i === "native" && (a != null && a.current) && !a.current.disabled) {
142
- let d = e.realtimeValidation.isInvalid ? e.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
143
- a.current.setCustomValidity(d), 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
- }), l = b((d) => {
149
- var s;
150
- e.displayValidation.isInvalid || e.commitValidation();
151
- let f = a == null || (s = a.current) === null || s === void 0 ? void 0 : s.form;
152
- if (!d.defaultPrevented && a && f && X(f) === a.current) {
153
- var c;
154
- n ? n() : (c = a.current) === null || c === void 0 || c.focus(), k("keyboard");
155
- }
156
- d.preventDefault();
157
- }), u = b(() => {
158
- e.commitValidation();
159
- });
160
- S(() => {
161
- let d = a == null ? void 0 : a.current;
162
- if (!d) return;
163
- let s = d.form;
164
- return d.addEventListener("invalid", l), d.addEventListener("change", u), s == null || s.addEventListener("reset", r), () => {
165
- d.removeEventListener("invalid", l), d.removeEventListener("change", u), s == null || s.removeEventListener("reset", r);
166
- };
167
- }, [
168
- a,
169
- l,
170
- u,
171
- r,
172
- i
173
- ]);
174
- }
175
- function J(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: J(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), se = /* @__PURE__ */ B(function(e, a) {
208
- let i = D(U);
209
- return i != null && i.isInvalid ? /* @__PURE__ */ R.createElement(Z, {
210
- ...e,
211
- ref: a
212
- }) : null;
213
- }), Z = /* @__PURE__ */ B((t, e) => {
214
- let a = D(U), i = q(t), n = K({
215
- ...t,
216
- defaultClassName: "react-aria-FieldError",
217
- defaultChildren: a.validationErrors.length === 0 ? void 0 : a.validationErrors.join(" "),
218
- values: a
219
- });
220
- return n.children == null ? null : /* @__PURE__ */ R.createElement(Y, {
221
- slot: "errorMessage",
222
- ...i,
223
- ...n,
224
- ref: e
225
- });
226
- }), ue = /* @__PURE__ */ L(null);
227
- export {
228
- ue as $,
229
- U as a,
230
- se as b,
231
- le as c,
232
- ne as d,
233
- oe as e,
234
- F as f,
235
- v as g,
236
- de as h,
237
- C as i
238
- };
package/Grid.css DELETED
@@ -1 +0,0 @@
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}}
@@ -1,36 +0,0 @@
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
- };
package/Group-D7_8007y.js DELETED
@@ -1,42 +0,0 @@
1
- import { a as H, b as h, c as x, d as m, e as F } from "./useFocusRing-9PXyKy2A.js";
2
- import P, { forwardRef as _, createContext as p } from "react";
3
- const C = /* @__PURE__ */ p({}), S = /* @__PURE__ */ _(function(e, i) {
4
- [e, i] = H(e, i, C);
5
- let { isDisabled: d, isInvalid: a, onHoverStart: f, onHoverChange: u, onHoverEnd: c, ...v } = e, { hoverProps: $, isHovered: r } = h({
6
- onHoverStart: f,
7
- onHoverChange: u,
8
- onHoverEnd: c,
9
- isDisabled: d
10
- }), { isFocused: s, isFocusVisible: t, focusProps: b } = x({
11
- within: !0
12
- });
13
- d ?? (d = !!e["aria-disabled"] && e["aria-disabled"] !== "false"), a ?? (a = !!e["aria-invalid"] && e["aria-invalid"] !== "false");
14
- let l = m({
15
- ...e,
16
- values: {
17
- isHovered: r,
18
- isFocusWithin: s,
19
- isFocusVisible: t,
20
- isDisabled: d,
21
- isInvalid: a
22
- },
23
- defaultClassName: "react-aria-Group"
24
- });
25
- var o, n;
26
- return /* @__PURE__ */ P.createElement("div", {
27
- ...F(v, b, $),
28
- ...l,
29
- ref: i,
30
- role: (o = e.role) !== null && o !== void 0 ? o : "group",
31
- slot: (n = e.slot) !== null && n !== void 0 ? n : void 0,
32
- "data-focus-within": s || void 0,
33
- "data-hovered": r || void 0,
34
- "data-focus-visible": t || void 0,
35
- "data-disabled": d || void 0,
36
- "data-invalid": a || void 0
37
- }, l.children);
38
- });
39
- export {
40
- S as $,
41
- C as a
42
- };
@@ -1,15 +0,0 @@
1
- import { $ } from "./RSPContexts-BW2SEIqe.js";
2
- import { a as n } from "./useFocusRing-9PXyKy2A.js";
3
- import o, { forwardRef as m } from "react";
4
- const b = /* @__PURE__ */ m(function(e, a) {
5
- [e, a] = n(e, a, $);
6
- let { children: t, level: l = 3, className: r, ...d } = e, f = `h${l}`;
7
- return /* @__PURE__ */ o.createElement(f, {
8
- ...d,
9
- ref: a,
10
- className: r ?? "react-aria-Heading"
11
- }, t);
12
- });
13
- export {
14
- b as $
15
- };
@@ -1,37 +0,0 @@
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-9PXyKy2A.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 DELETED
@@ -1 +0,0 @@
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}
package/Layout.css DELETED
@@ -1 +0,0 @@
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}}
package/Link-BnQvB-hH.js DELETED
@@ -1,75 +0,0 @@
1
- import { n as v, o as h, e as b, p as C, q as D, r as T, a as E, b as F, c as H, d as g } from "./useFocusRing-9PXyKy2A.js";
2
- import y, { createContext as L, forwardRef as S } from "react";
3
- import { $ as _ } from "./useFocusable-CcEBZe40.js";
4
- function V(r, e) {
5
- let {
6
- elementType: a = "a",
7
- onPress: i,
8
- onPressStart: f,
9
- onPressEnd: o,
10
- // @ts-ignore
11
- onClick: c,
12
- isDisabled: d,
13
- ...u
14
- } = r, n = {};
15
- a !== "a" && (n = {
16
- role: "link",
17
- tabIndex: d ? void 0 : 0
18
- });
19
- let { focusableProps: l } = _(r, e), { pressProps: t, isPressed: p } = v({
20
- onPress: i,
21
- onPressStart: f,
22
- onPressEnd: o,
23
- isDisabled: d,
24
- ref: e
25
- }), x = h(u, {
26
- labelable: !0
27
- }), k = b(l, t), P = C(), m = D(r);
28
- return {
29
- isPressed: p,
30
- linkProps: b(x, m, {
31
- ...k,
32
- ...n,
33
- "aria-disabled": d || void 0,
34
- "aria-current": r["aria-current"],
35
- onClick: (s) => {
36
- var $;
37
- ($ = t.onClick) === null || $ === void 0 || $.call(t, s), c && (c(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) && r.href && (s.preventDefault(), P.open(s.currentTarget, s, r.href, r.routerOptions));
39
- }
40
- })
41
- };
42
- }
43
- const w = /* @__PURE__ */ L(null), q = /* @__PURE__ */ S(function(e, a) {
44
- [e, a] = E(e, a, w);
45
- let i = e.href && !e.isDisabled ? "a" : "span", { linkProps: f, isPressed: o } = V({
46
- ...e,
47
- elementType: i
48
- }, a), { hoverProps: c, isHovered: d } = F(e), { focusProps: u, isFocused: n, isFocusVisible: l } = H(), t = g({
49
- ...e,
50
- defaultClassName: "react-aria-Link",
51
- values: {
52
- isCurrent: !!e["aria-current"],
53
- isDisabled: e.isDisabled || !1,
54
- isPressed: o,
55
- isHovered: d,
56
- isFocused: n,
57
- isFocusVisible: l
58
- }
59
- });
60
- return /* @__PURE__ */ y.createElement(i, {
61
- ref: a,
62
- slot: e.slot || void 0,
63
- ...b(t, f, c, u),
64
- "data-focused": n || void 0,
65
- "data-hovered": d || void 0,
66
- "data-pressed": o || void 0,
67
- "data-focus-visible": l || void 0,
68
- "data-current": !!e["aria-current"] || void 0,
69
- "data-disabled": e.isDisabled || void 0
70
- }, t.children);
71
- });
72
- export {
73
- q as $,
74
- w as a
75
- };
package/Link.css DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
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%}}