quirk-ui 0.1.181 → 0.1.183
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.
- package/dist/AccordionItem.css.d.ts +13 -0
- package/dist/CategoryFilters.css.d.ts +31 -0
- package/dist/{FormField-oa2piuZf.js → FormField-B1JNU2Mz.js} +77 -77
- package/dist/FormField-DZdJLBIK.cjs +1 -0
- package/dist/FormField.css +1 -1
- package/dist/FormField.css.d.ts +29 -0
- package/dist/HeroSubComponents.css.d.ts +36 -0
- package/dist/NavLink-CkwdWU7V.cjs +1 -0
- package/dist/NavLink-Dm-zFEEV.js +169 -0
- package/dist/NavLink.css +1 -1
- package/dist/NavLink.css.d.ts +94 -0
- package/dist/core/components/NavBar/NavLink.cjs +1 -1
- package/dist/core/components/NavBar/NavLink.mjs +1 -1
- package/dist/core/components/NavBar/index.cjs +3 -3
- package/dist/core/components/NavBar/index.mjs +389 -323
- package/dist/index.css.d.ts +1 -0
- package/dist/index10.css.d.ts +10 -0
- package/dist/index11.css.d.ts +26 -0
- package/dist/index12.css.d.ts +24 -0
- package/dist/index13.css.d.ts +38 -0
- package/dist/index14.css.d.ts +9 -0
- package/dist/index15.css.d.ts +10 -0
- package/dist/index16.css.d.ts +18 -0
- package/dist/index17.css.d.ts +38 -0
- package/dist/index18.css.d.ts +16 -0
- package/dist/index19.css.d.ts +14 -0
- package/dist/index2.css.d.ts +12 -0
- package/dist/index20.css.d.ts +17 -0
- package/dist/index21.css.d.ts +13 -0
- package/dist/index22.css.d.ts +25 -0
- package/dist/index23.css.d.ts +5 -0
- package/dist/index24.css.d.ts +19 -0
- package/dist/index25.css.d.ts +21 -0
- package/dist/index26.css.d.ts +16 -0
- package/dist/index27.css.d.ts +10 -0
- package/dist/index28.css.d.ts +18 -0
- package/dist/index29.css.d.ts +16 -0
- package/dist/index3.css.d.ts +10 -0
- package/dist/index30.css.d.ts +10 -0
- package/dist/index31.css.d.ts +19 -0
- package/dist/index32.css.d.ts +15 -0
- package/dist/index33.css.d.ts +22 -0
- package/dist/index34.css.d.ts +15 -0
- package/dist/index35.css.d.ts +14 -0
- package/dist/index36.css.d.ts +23 -0
- package/dist/index37.css.d.ts +14 -0
- package/dist/index38.css.d.ts +19 -0
- package/dist/index39.css.d.ts +21 -0
- package/dist/index4.css.d.ts +22 -0
- package/dist/index40.css.d.ts +20 -0
- package/dist/index41.css.d.ts +17 -0
- package/dist/index42.css.d.ts +14 -0
- package/dist/index43.css.d.ts +22 -0
- package/dist/index44.css.d.ts +8 -0
- package/dist/index45.css.d.ts +35 -0
- package/dist/index46.css.d.ts +13 -0
- package/dist/index47.css.d.ts +23 -0
- package/dist/index48.css.d.ts +12 -0
- package/dist/index49.css.d.ts +19 -0
- package/dist/index5.css.d.ts +20 -0
- package/dist/index50.css.d.ts +20 -0
- package/dist/index51.css.d.ts +20 -0
- package/dist/index52.css.d.ts +27 -0
- package/dist/index53.css.d.ts +17 -0
- package/dist/index54.css.d.ts +11 -0
- package/dist/index55.css.d.ts +12 -0
- package/dist/index56.css.d.ts +14 -0
- package/dist/index57.css.d.ts +20 -0
- package/dist/index58.css.d.ts +24 -0
- package/dist/index59.css.d.ts +13 -0
- package/dist/index6.css.d.ts +40 -0
- package/dist/index60.css.d.ts +12 -0
- package/dist/index61.css.d.ts +20 -0
- package/dist/index62.css.d.ts +20 -0
- package/dist/index63.css.d.ts +18 -0
- package/dist/index64.css.d.ts +22 -0
- package/dist/index65.css.d.ts +28 -0
- package/dist/index66.css.d.ts +26 -0
- package/dist/index67.css.d.ts +19 -0
- package/dist/index7.css.d.ts +32 -0
- package/dist/index8.css.d.ts +9 -0
- package/dist/index9.css.d.ts +7 -0
- package/dist/next/blocks/FormBlock/FormField.cjs +1 -1
- package/dist/next/blocks/FormBlock/FormField.mjs +1 -1
- package/dist/next/blocks/FormBlock/index.cjs +1 -1
- package/dist/next/blocks/FormBlock/index.mjs +1 -1
- package/dist/styles.css.d.ts +1 -0
- package/dist/tokens.css.d.ts +1 -0
- package/package.json +1 -1
- package/dist/FormField-LSFCBISi.cjs +0 -1
- package/dist/NavLink-DOQYRXlf.js +0 -161
- package/dist/NavLink-DjUfU_RT.cjs +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "_accordionContent_14hw7_64": string;
|
|
3
|
+
readonly "_accordionHeader_14hw7_15": string;
|
|
4
|
+
readonly "_accordionItem_14hw7_7": string;
|
|
5
|
+
readonly "_accordion_14hw7_1": string;
|
|
6
|
+
readonly "_active_14hw7_30": string;
|
|
7
|
+
readonly "_closed_14hw7_51": string;
|
|
8
|
+
readonly "_icon_14hw7_44": string;
|
|
9
|
+
readonly "_open_14hw7_50": string;
|
|
10
|
+
readonly "_rotate_14hw7_80": string;
|
|
11
|
+
};
|
|
12
|
+
export = styles;
|
|
13
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "_applyFilters_1vg9o_218": string;
|
|
3
|
+
readonly "_buttonIsLoading_1vg9o_307": string;
|
|
4
|
+
readonly "_clearSearch_1vg9o_106": string;
|
|
5
|
+
readonly "_container_1vg9o_9": string;
|
|
6
|
+
readonly "_cta_1vg9o_25": string;
|
|
7
|
+
readonly "_documentList_1vg9o_1": string;
|
|
8
|
+
readonly "_eyebrow_1vg9o_30": string;
|
|
9
|
+
readonly "_filterHeader_1vg9o_178": string;
|
|
10
|
+
readonly "_filterList_1vg9o_203": string;
|
|
11
|
+
readonly "_filterToggle_1vg9o_163": string;
|
|
12
|
+
readonly "_heading_1vg9o_20": string;
|
|
13
|
+
readonly "_hide_1vg9o_256": string;
|
|
14
|
+
readonly "_listContainer_1vg9o_34": string;
|
|
15
|
+
readonly "_listFilters_1vg9o_210": string;
|
|
16
|
+
readonly "_listHeaderFilters_1vg9o_125": string;
|
|
17
|
+
readonly "_listHeader_1vg9o_66": string;
|
|
18
|
+
readonly "_listResults_1vg9o_136": string;
|
|
19
|
+
readonly "_listSearch_1vg9o_79": string;
|
|
20
|
+
readonly "_listSort_1vg9o_140": string;
|
|
21
|
+
readonly "_listWrapper_1vg9o_45": string;
|
|
22
|
+
readonly "_list_1vg9o_34": string;
|
|
23
|
+
readonly "_loadMore_1vg9o_199": string;
|
|
24
|
+
readonly "_rotate_1vg9o_1": string;
|
|
25
|
+
readonly "_show_1vg9o_247": string;
|
|
26
|
+
readonly "_text_1vg9o_25": string;
|
|
27
|
+
readonly "_title_1vg9o_25": string;
|
|
28
|
+
readonly "_wrapper_1vg9o_266": string;
|
|
29
|
+
};
|
|
30
|
+
export = styles;
|
|
31
|
+
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { Input as
|
|
3
|
-
import { Textarea as
|
|
2
|
+
import { Input as z } from "./core/components/Input/index.mjs";
|
|
3
|
+
import { Textarea as v } from "./core/components/Textarea/index.mjs";
|
|
4
4
|
import { Select as m } from "./core/components/Select/index.mjs";
|
|
5
5
|
import { Checkbox as _ } from "./core/components/Checkbox/index.mjs";
|
|
6
|
-
import { Radio as
|
|
6
|
+
import { Radio as T } from "./core/components/Radio/index.mjs";
|
|
7
7
|
import { Fieldset as h } from "./core/components/Fieldset/index.mjs";
|
|
8
|
-
import { DatePicker as
|
|
9
|
-
import { Range as
|
|
10
|
-
import './FormField.css';const L = "
|
|
11
|
-
formBlock:
|
|
12
|
-
container:
|
|
13
|
-
formInner:
|
|
14
|
-
maxWidthSm:
|
|
15
|
-
maxWidthMd:
|
|
16
|
-
maxWidthLg:
|
|
17
|
-
maxWidthFull:
|
|
18
|
-
heading:
|
|
19
|
-
eyebrow:
|
|
20
|
-
title:
|
|
21
|
-
disclaimer:
|
|
22
|
-
progress:
|
|
23
|
-
progressHeader:
|
|
24
|
-
stepLabel:
|
|
25
|
-
stepCount:
|
|
26
|
-
stepDescription:
|
|
27
|
-
fields:
|
|
28
|
-
fieldFull:
|
|
29
|
-
fieldHalf:
|
|
30
|
-
fieldThird:
|
|
8
|
+
import { DatePicker as W } from "./core/components/DatePicker/index.mjs";
|
|
9
|
+
import { Range as f } from "./core/components/Range/index.mjs";
|
|
10
|
+
import './FormField.css';const k = "_formBlock_tzwar_1", L = "_container_tzwar_7", C = "_formInner_tzwar_20", F = "_maxWidthSm_tzwar_26", y = "_maxWidthMd_tzwar_29", B = "_maxWidthLg_tzwar_32", q = "_maxWidthFull_tzwar_35", S = "_heading_tzwar_41", H = "_eyebrow_tzwar_47", G = "_title_tzwar_51", M = "_disclaimer_tzwar_55", $ = "_progress_tzwar_61", I = "_progressHeader_tzwar_67", D = "_stepLabel_tzwar_73", O = "_stepCount_tzwar_79", V = "_stepDescription_tzwar_84", P = "_fields_tzwar_92", R = "_fieldFull_tzwar_99", j = "_fieldHalf_tzwar_103", N = "_fieldThird_tzwar_111", A = "_actions_tzwar_121", E = "_submitButton_tzwar_128", J = "_success_tzwar_134", K = "_errorBanner_tzwar_149", u = {
|
|
11
|
+
formBlock: k,
|
|
12
|
+
container: L,
|
|
13
|
+
formInner: C,
|
|
14
|
+
maxWidthSm: F,
|
|
15
|
+
maxWidthMd: y,
|
|
16
|
+
maxWidthLg: B,
|
|
17
|
+
maxWidthFull: q,
|
|
18
|
+
heading: S,
|
|
19
|
+
eyebrow: H,
|
|
20
|
+
title: G,
|
|
21
|
+
disclaimer: M,
|
|
22
|
+
progress: $,
|
|
23
|
+
progressHeader: I,
|
|
24
|
+
stepLabel: D,
|
|
25
|
+
stepCount: O,
|
|
26
|
+
stepDescription: V,
|
|
27
|
+
fields: P,
|
|
28
|
+
fieldFull: R,
|
|
29
|
+
fieldHalf: j,
|
|
30
|
+
fieldThird: N,
|
|
31
31
|
actions: A,
|
|
32
32
|
submitButton: E,
|
|
33
33
|
success: J,
|
|
34
34
|
errorBanner: K
|
|
35
35
|
};
|
|
36
36
|
function c(e) {
|
|
37
|
-
return (e ?? []).map((
|
|
38
|
-
label:
|
|
39
|
-
value:
|
|
40
|
-
disabled:
|
|
37
|
+
return (e ?? []).map((r) => ({
|
|
38
|
+
label: r.label,
|
|
39
|
+
value: r.value.current,
|
|
40
|
+
disabled: r.disabled
|
|
41
41
|
}));
|
|
42
42
|
}
|
|
43
43
|
function p(e) {
|
|
44
|
-
return (e ?? []).map((
|
|
45
|
-
label:
|
|
46
|
-
options:
|
|
44
|
+
return (e ?? []).map((r) => ({
|
|
45
|
+
label: r.label,
|
|
46
|
+
options: r.options.map((n) => ({
|
|
47
47
|
label: n.label,
|
|
48
48
|
value: n.value.current,
|
|
49
49
|
disabled: n.disabled
|
|
50
50
|
}))
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
53
|
-
function ne({ field: e, value:
|
|
54
|
-
const
|
|
53
|
+
function ne({ field: e, value: r, error: n, onChange: o }) {
|
|
54
|
+
const a = e.name.current, b = {
|
|
55
55
|
full: u.fieldFull,
|
|
56
56
|
half: u.fieldHalf,
|
|
57
57
|
third: u.fieldThird
|
|
58
58
|
}[e.width ?? "full"], i = {
|
|
59
|
-
id:
|
|
60
|
-
name:
|
|
59
|
+
id: a,
|
|
60
|
+
name: a,
|
|
61
61
|
label: e.label,
|
|
62
62
|
required: e.required,
|
|
63
63
|
disabled: e.disabled,
|
|
@@ -72,60 +72,60 @@ function ne({ field: e, value: t, error: n, onChange: o }) {
|
|
|
72
72
|
case "number":
|
|
73
73
|
case "url":
|
|
74
74
|
return /* @__PURE__ */ s(
|
|
75
|
-
|
|
75
|
+
z,
|
|
76
76
|
{
|
|
77
77
|
...i,
|
|
78
78
|
type: e.fieldType === "phone" ? "tel" : e.fieldType,
|
|
79
79
|
placeholder: e.placeholder,
|
|
80
|
-
value:
|
|
80
|
+
value: r ?? "",
|
|
81
81
|
minLength: e.minLength,
|
|
82
82
|
maxLength: e.maxLength,
|
|
83
83
|
fullWidth: !0,
|
|
84
|
-
onChange: (
|
|
84
|
+
onChange: (t) => o(a, t.target.value)
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
87
|
// ── Textarea ───────────────────────────────────────────────────────
|
|
88
88
|
case "textarea":
|
|
89
89
|
return /* @__PURE__ */ s(
|
|
90
|
-
|
|
90
|
+
v,
|
|
91
91
|
{
|
|
92
92
|
...i,
|
|
93
93
|
placeholder: e.placeholder,
|
|
94
|
-
value:
|
|
94
|
+
value: r ?? "",
|
|
95
95
|
rows: e.rows ?? 4,
|
|
96
96
|
maxLength: e.maxLength,
|
|
97
97
|
showCharCount: e.showCharCount,
|
|
98
98
|
fullWidth: !0,
|
|
99
|
-
onChange: (
|
|
99
|
+
onChange: (t) => o(a, t.target.value)
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
102
|
// ── Select ─────────────────────────────────────────────────────────
|
|
103
103
|
case "select": {
|
|
104
|
-
const
|
|
104
|
+
const t = e.useOptionGroups ? p(e.optionGroups) : c(e.options);
|
|
105
105
|
return /* @__PURE__ */ s(
|
|
106
106
|
m,
|
|
107
107
|
{
|
|
108
108
|
...i,
|
|
109
109
|
placeholder: e.placeholder,
|
|
110
|
-
options:
|
|
111
|
-
value:
|
|
110
|
+
options: t,
|
|
111
|
+
value: r ?? "",
|
|
112
112
|
fullWidth: !0,
|
|
113
|
-
onChange: (l) => o(
|
|
113
|
+
onChange: (l) => o(a, l.target.value)
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
117
|
// ── Multi-select ───────────────────────────────────────────────────
|
|
118
118
|
case "multiselect": {
|
|
119
|
-
const
|
|
119
|
+
const t = e.useOptionGroups ? p(e.optionGroups) : c(e.options);
|
|
120
120
|
return /* @__PURE__ */ s(
|
|
121
121
|
m,
|
|
122
122
|
{
|
|
123
123
|
...i,
|
|
124
124
|
multiple: !0,
|
|
125
|
-
options:
|
|
126
|
-
value:
|
|
125
|
+
options: t,
|
|
126
|
+
value: r ?? [],
|
|
127
127
|
showSelectedCount: !0,
|
|
128
|
-
onChange: (l) => o(
|
|
128
|
+
onChange: (l) => o(a, l)
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
}
|
|
@@ -141,24 +141,24 @@ function ne({ field: e, value: t, error: n, onChange: o }) {
|
|
|
141
141
|
disabled: e.disabled,
|
|
142
142
|
helperText: n ?? e.helperText,
|
|
143
143
|
error: !!n,
|
|
144
|
-
checked:
|
|
145
|
-
onChange: (
|
|
144
|
+
checked: r ?? !1,
|
|
145
|
+
onChange: (t) => o(a, t.target.checked)
|
|
146
146
|
}
|
|
147
147
|
);
|
|
148
148
|
// ── Checkbox group ─────────────────────────────────────────────────
|
|
149
149
|
case "checkboxGroup": {
|
|
150
|
-
const
|
|
150
|
+
const t = r ?? [];
|
|
151
151
|
return /* @__PURE__ */ s(h, { legend: e.label, error: !!n, helperText: n, children: c(e.options).map((l) => /* @__PURE__ */ s(
|
|
152
152
|
_,
|
|
153
153
|
{
|
|
154
|
-
id: `${
|
|
155
|
-
name: `${
|
|
154
|
+
id: `${a}-${l.value}`,
|
|
155
|
+
name: `${a}[]`,
|
|
156
156
|
label: l.label,
|
|
157
|
-
checked:
|
|
157
|
+
checked: t.includes(l.value),
|
|
158
158
|
disabled: l.disabled || e.disabled,
|
|
159
159
|
onChange: (x) => {
|
|
160
|
-
const
|
|
161
|
-
o(
|
|
160
|
+
const w = x.target.checked ? [...t, l.value] : t.filter((g) => g !== l.value);
|
|
161
|
+
o(a, w);
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
l.value
|
|
@@ -166,24 +166,24 @@ function ne({ field: e, value: t, error: n, onChange: o }) {
|
|
|
166
166
|
}
|
|
167
167
|
// ── Radio group ────────────────────────────────────────────────────
|
|
168
168
|
case "radio":
|
|
169
|
-
return /* @__PURE__ */ s(h, { legend: e.label, error: !!n, helperText: n, children: c(e.options).map((
|
|
170
|
-
|
|
169
|
+
return /* @__PURE__ */ s(h, { legend: e.label, error: !!n, helperText: n, children: c(e.options).map((t) => /* @__PURE__ */ s(
|
|
170
|
+
T,
|
|
171
171
|
{
|
|
172
|
-
id: `${
|
|
173
|
-
name:
|
|
174
|
-
value:
|
|
175
|
-
label:
|
|
176
|
-
checked:
|
|
177
|
-
disabled:
|
|
172
|
+
id: `${a}-${t.value}`,
|
|
173
|
+
name: a,
|
|
174
|
+
value: t.value,
|
|
175
|
+
label: t.label,
|
|
176
|
+
checked: r === t.value,
|
|
177
|
+
disabled: t.disabled || e.disabled,
|
|
178
178
|
required: e.required,
|
|
179
|
-
onChange: () => o(
|
|
179
|
+
onChange: () => o(a, t.value)
|
|
180
180
|
},
|
|
181
|
-
|
|
181
|
+
t.value
|
|
182
182
|
)) });
|
|
183
183
|
// ── Date picker ────────────────────────────────────────────────────
|
|
184
184
|
case "date":
|
|
185
185
|
return /* @__PURE__ */ s(
|
|
186
|
-
|
|
186
|
+
W,
|
|
187
187
|
{
|
|
188
188
|
id: i.id,
|
|
189
189
|
name: i.name,
|
|
@@ -192,24 +192,24 @@ function ne({ field: e, value: t, error: n, onChange: o }) {
|
|
|
192
192
|
disabled: e.disabled,
|
|
193
193
|
helperText: n ?? e.helperText,
|
|
194
194
|
error: !!n,
|
|
195
|
-
value:
|
|
196
|
-
onChange: (
|
|
195
|
+
value: r ?? null,
|
|
196
|
+
onChange: (t) => o(a, t)
|
|
197
197
|
}
|
|
198
198
|
);
|
|
199
199
|
// ── Range ──────────────────────────────────────────────────────────
|
|
200
200
|
case "range":
|
|
201
201
|
return /* @__PURE__ */ s(
|
|
202
|
-
|
|
202
|
+
f,
|
|
203
203
|
{
|
|
204
204
|
...i,
|
|
205
|
-
value:
|
|
205
|
+
value: r ?? e.rangeMin ?? 0,
|
|
206
206
|
min: e.rangeMin ?? 0,
|
|
207
207
|
max: e.rangeMax ?? 100,
|
|
208
208
|
step: e.rangeStep ?? 1,
|
|
209
209
|
valuePrefix: e.rangeValuePrefix,
|
|
210
210
|
valueSuffix: e.rangeValueSuffix,
|
|
211
211
|
showValue: !0,
|
|
212
|
-
onChange: (
|
|
212
|
+
onChange: (t) => o(a, t)
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
215
|
// ── Hidden ─────────────────────────────────────────────────────────
|
|
@@ -218,8 +218,8 @@ function ne({ field: e, value: t, error: n, onChange: o }) {
|
|
|
218
218
|
"input",
|
|
219
219
|
{
|
|
220
220
|
type: "hidden",
|
|
221
|
-
name:
|
|
222
|
-
value:
|
|
221
|
+
name: a,
|
|
222
|
+
value: r ?? e.hiddenValue ?? ""
|
|
223
223
|
}
|
|
224
224
|
);
|
|
225
225
|
default:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./FormField.css');const s=require("react/jsx-runtime"),z=require("./core/components/Input/index.cjs"),v=require("./core/components/Textarea/index.cjs"),_=require("./core/components/Select/index.cjs"),h=require("./core/components/Checkbox/index.cjs"),q=require("./core/components/Radio/index.cjs"),p=require("./core/components/Fieldset/index.cjs"),T=require("./core/components/DatePicker/index.cjs"),k=require("./core/components/Range/index.cjs"),W="_formBlock_tzwar_1",F="_container_tzwar_7",j="_formInner_tzwar_20",C="_maxWidthSm_tzwar_26",L="_maxWidthMd_tzwar_29",y="_maxWidthLg_tzwar_32",S="_maxWidthFull_tzwar_35",B="_heading_tzwar_41",$="_eyebrow_tzwar_47",H="_title_tzwar_51",G="_disclaimer_tzwar_55",I="_progress_tzwar_61",M="_progressHeader_tzwar_67",D="_stepLabel_tzwar_73",O="_stepCount_tzwar_79",P="_stepDescription_tzwar_84",R="_fields_tzwar_92",V="_fieldFull_tzwar_99",f="_fieldHalf_tzwar_103",N="_fieldThird_tzwar_111",A="_actions_tzwar_121",E="_submitButton_tzwar_128",J="_success_tzwar_134",K="_errorBanner_tzwar_149",u={formBlock:W,container:F,formInner:j,maxWidthSm:C,maxWidthMd:L,maxWidthLg:y,maxWidthFull:S,heading:B,eyebrow:$,title:H,disclaimer:G,progress:I,progressHeader:M,stepLabel:D,stepCount:O,stepDescription:P,fields:R,fieldFull:V,fieldHalf:f,fieldThird:N,actions:A,submitButton:E,success:J,errorBanner:K};function i(e){return(e??[]).map(r=>({label:r.label,value:r.value.current,disabled:r.disabled}))}function m(e){return(e??[]).map(r=>({label:r.label,options:r.options.map(n=>({label:n.label,value:n.value.current,disabled:n.disabled}))}))}function Q({field:e,value:r,error:n,onChange:l}){const a=e.name.current,x={full:u.fieldFull,half:u.fieldHalf,third:u.fieldThird}[e.width??"full"],c={id:a,name:a,label:e.label,required:e.required,disabled:e.disabled,helperText:e.helperText,error:n},d=()=>{switch(e.fieldType){case"text":case"email":case"phone":case"number":case"url":return s.jsx(z.Input,{...c,type:e.fieldType==="phone"?"tel":e.fieldType,placeholder:e.placeholder,value:r??"",minLength:e.minLength,maxLength:e.maxLength,fullWidth:!0,onChange:t=>l(a,t.target.value)});case"textarea":return s.jsx(v.Textarea,{...c,placeholder:e.placeholder,value:r??"",rows:e.rows??4,maxLength:e.maxLength,showCharCount:e.showCharCount,fullWidth:!0,onChange:t=>l(a,t.target.value)});case"select":{const t=e.useOptionGroups?m(e.optionGroups):i(e.options);return s.jsx(_.Select,{...c,placeholder:e.placeholder,options:t,value:r??"",fullWidth:!0,onChange:o=>l(a,o.target.value)})}case"multiselect":{const t=e.useOptionGroups?m(e.optionGroups):i(e.options);return s.jsx(_.Select,{...c,multiple:!0,options:t,value:r??[],showSelectedCount:!0,onChange:o=>l(a,o)})}case"checkbox":return s.jsx(h.Checkbox,{id:c.id,name:c.name,label:e.label,required:e.required,disabled:e.disabled,helperText:n??e.helperText,error:!!n,checked:r??!1,onChange:t=>l(a,t.target.checked)});case"checkboxGroup":{const t=r??[];return s.jsx(p.Fieldset,{legend:e.label,error:!!n,helperText:n,children:i(e.options).map(o=>s.jsx(h.Checkbox,{id:`${a}-${o.value}`,name:`${a}[]`,label:o.label,checked:t.includes(o.value),disabled:o.disabled||e.disabled,onChange:b=>{const w=b.target.checked?[...t,o.value]:t.filter(g=>g!==o.value);l(a,w)}},o.value))})}case"radio":return s.jsx(p.Fieldset,{legend:e.label,error:!!n,helperText:n,children:i(e.options).map(t=>s.jsx(q.Radio,{id:`${a}-${t.value}`,name:a,value:t.value,label:t.label,checked:r===t.value,disabled:t.disabled||e.disabled,required:e.required,onChange:()=>l(a,t.value)},t.value))});case"date":return s.jsx(T.DatePicker,{id:c.id,name:c.name,label:e.label,required:e.required,disabled:e.disabled,helperText:n??e.helperText,error:!!n,value:r??null,onChange:t=>l(a,t)});case"range":return s.jsx(k.Range,{...c,value:r??e.rangeMin??0,min:e.rangeMin??0,max:e.rangeMax??100,step:e.rangeStep??1,valuePrefix:e.rangeValuePrefix,valueSuffix:e.rangeValueSuffix,showValue:!0,onChange:t=>l(a,t)});case"hidden":return s.jsx("input",{type:"hidden",name:a,value:r??e.hiddenValue??""});default:return null}};return e.fieldType==="hidden"?d():s.jsx("div",{className:`${x}`,children:d()})}exports.FormField=Q;exports.styles=u;
|
package/dist/FormField.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._formBlock_tzwar_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_tzwar_7{width:100%;max-width:var(--layout-width, 1250px);margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md);display:flex;flex-direction:column;gap:var(--spacing-lg)}._formInner_tzwar_20{width:100%;margin-left:auto;margin-right:auto}._maxWidthSm_tzwar_26{max-width:480px}._maxWidthMd_tzwar_29{max-width:640px}._maxWidthLg_tzwar_32{max-width:800px}._maxWidthFull_tzwar_35{max-width:100%}._heading_tzwar_41{display:flex;flex-direction:column;gap:var(--spacing-sm)}._eyebrow_tzwar_47{font-weight:var(--font-weight-bold)}._title_tzwar_51{text-wrap:balance}._disclaimer_tzwar_55{font-size:var(--font-size-sm)}._progress_tzwar_61{display:flex;flex-direction:column;gap:var(--spacing-sm)}._progressHeader_tzwar_67{display:flex;justify-content:space-between;align-items:center}._stepLabel_tzwar_73{font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);color:var(--color-text-primary)}._stepCount_tzwar_79{font-size:var(--font-size-sm);color:var(--color-secondary-50)}._stepDescription_tzwar_84{color:var(--color-secondary-75);font-size:var(--font-size-md);margin:0}._fields_tzwar_92{display:flex;flex-wrap:wrap;gap:var(--spacing-md)}._fieldFull_tzwar_99{width:100%}._fieldHalf_tzwar_103{width:calc(50% - var(--spacing-md) / 2)}@media (max-width: 767px){._fieldHalf_tzwar_103{width:100%}}._fieldThird_tzwar_111{width:calc(33.333% - var(--spacing-md) * 2 / 3)}@media (max-width: 767px){._fieldThird_tzwar_111{width:100%}}._actions_tzwar_121{display:flex;align-items:center;gap:var(--spacing-md);padding-top:var(--spacing-sm)}._submitButton_tzwar_128{margin-left:auto}._success_tzwar_134{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-lg);padding:var(--spacing-md) 0 0}._success_tzwar_134 p{color:var(--color-states-success-bg);font-weight:var(--font-weight-semibold)}._errorBanner_tzwar_149{padding:var(--spacing-md);background-color:var(--color-states-error-bg);color:var(--color-states-error-text);border-radius:var(--radius-md);font-size:var(--font-size-sm)}.split ._container_tzwar_7{flex-direction:row;gap:3rem}.split ._heading_tzwar_41,.split form{flex:.5}@media (max-width: 767px){.split ._container_tzwar_7{flex-direction:column}.split ._heading_tzwar_41,.split form{flex:1}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "_actions_tzwar_121": string;
|
|
3
|
+
readonly "_container_tzwar_7": string;
|
|
4
|
+
readonly "_disclaimer_tzwar_55": string;
|
|
5
|
+
readonly "_errorBanner_tzwar_149": string;
|
|
6
|
+
readonly "_eyebrow_tzwar_47": string;
|
|
7
|
+
readonly "_fieldFull_tzwar_99": string;
|
|
8
|
+
readonly "_fieldHalf_tzwar_103": string;
|
|
9
|
+
readonly "_fieldThird_tzwar_111": string;
|
|
10
|
+
readonly "_fields_tzwar_92": string;
|
|
11
|
+
readonly "_formBlock_tzwar_1": string;
|
|
12
|
+
readonly "_formInner_tzwar_20": string;
|
|
13
|
+
readonly "_heading_tzwar_41": string;
|
|
14
|
+
readonly "_maxWidthFull_tzwar_35": string;
|
|
15
|
+
readonly "_maxWidthLg_tzwar_32": string;
|
|
16
|
+
readonly "_maxWidthMd_tzwar_29": string;
|
|
17
|
+
readonly "_maxWidthSm_tzwar_26": string;
|
|
18
|
+
readonly "_progressHeader_tzwar_67": string;
|
|
19
|
+
readonly "_progress_tzwar_61": string;
|
|
20
|
+
readonly "_stepCount_tzwar_79": string;
|
|
21
|
+
readonly "_stepDescription_tzwar_84": string;
|
|
22
|
+
readonly "_stepLabel_tzwar_73": string;
|
|
23
|
+
readonly "_submitButton_tzwar_128": string;
|
|
24
|
+
readonly "_success_tzwar_134": string;
|
|
25
|
+
readonly "_title_tzwar_51": string;
|
|
26
|
+
readonly "split": string;
|
|
27
|
+
};
|
|
28
|
+
export = styles;
|
|
29
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "_articleCategories_c3yy9_79": string;
|
|
3
|
+
readonly "_articleDetails_c3yy9_52": string;
|
|
4
|
+
readonly "_articleType_c3yy9_65": string;
|
|
5
|
+
readonly "_blog_c3yy9_128": string;
|
|
6
|
+
readonly "_category_c3yy9_85": string;
|
|
7
|
+
readonly "_container_c3yy9_7": string;
|
|
8
|
+
readonly "_default_c3yy9_124": string;
|
|
9
|
+
readonly "_disclaimer_c3yy9_41": string;
|
|
10
|
+
readonly "_eyebrow_c3yy9_37": string;
|
|
11
|
+
readonly "_fullBleed_c3yy9_322": string;
|
|
12
|
+
readonly "_heading_c3yy9_15": string;
|
|
13
|
+
readonly "_hero_c3yy9_1": string;
|
|
14
|
+
readonly "_hide_c3yy9_117": string;
|
|
15
|
+
readonly "_iframe_c3yy9_560": string;
|
|
16
|
+
readonly "_media_c3yy9_349": string;
|
|
17
|
+
readonly "_number_c3yy9_101": string;
|
|
18
|
+
readonly "_overlay_c3yy9_154": string;
|
|
19
|
+
readonly "_pipe_c3yy9_114": string;
|
|
20
|
+
readonly "_splitAlt_c3yy9_437": string;
|
|
21
|
+
readonly "_split_c3yy9_437": string;
|
|
22
|
+
readonly "_text_c3yy9_22": string;
|
|
23
|
+
readonly "_tile_c3yy9_213": string;
|
|
24
|
+
readonly "_videoBackground_c3yy9_559": string;
|
|
25
|
+
readonly "_videoControl_c3yy9_511": string;
|
|
26
|
+
readonly "hAlignmentCenter": string;
|
|
27
|
+
readonly "hAlignmentLeft": string;
|
|
28
|
+
readonly "hAlignmentRight": string;
|
|
29
|
+
readonly "portableTextContainer": string;
|
|
30
|
+
readonly "splitAlt": string;
|
|
31
|
+
readonly "vAlignmentBottom": string;
|
|
32
|
+
readonly "vAlignmentMiddle": string;
|
|
33
|
+
readonly "vAlignmentTop": string;
|
|
34
|
+
};
|
|
35
|
+
export = styles;
|
|
36
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./NavLink.css');const n=require("react/jsx-runtime"),d=require("react"),h=require("./external-link-DDShu-48.cjs"),k=require("./chevron-down-DfK1XBl3.cjs"),I="_navbar_prtrz_1",f="_sticky_prtrz_15",C="_left_prtrz_30",y="_container_prtrz_31",w="_logo_prtrz_40",x="_center_prtrz_46",T="_utility_prtrz_52",L="_nav_prtrz_1",M="_hidden_prtrz_62",S="_visible_prtrz_69",D="_right_prtrz_88",N="_title_prtrz_99",W="_linkWrapper_prtrz_105",j="_parent_prtrz_105",$="_linkItem_prtrz_112",B="_link_prtrz_105",E="_search_prtrz_118",q="_locale_prtrz_119",F="_themeToggle_prtrz_120",R="_sublinkToggle_prtrz_121",A="_standard_prtrz_172",G="_triangle_prtrz_187",H="_twoColumn_prtrz_216",J="_mobileButtons_prtrz_225",K="_menuToggle_prtrz_303",O="_utilityMobile_prtrz_321",Q="_navInner_prtrz_349",U="_grid_prtrz_361",V="_searchModal_prtrz_384",X="_localeModal_prtrz_385",Y="_separator_prtrz_405",Z="_newTabIcon_prtrz_447",P="_sublinksDescription_prtrz_460",rr="_linkContent_prtrz_463",tr="_open_prtrz_476",er="_sublinks_prtrz_460",nr="_show_prtrz_549",or="_primaryColumn_prtrz_598",sr="_secondaryColumn_prtrz_607",lr="_spotlightColumn_prtrz_611",ir="_sublinksInner_prtrz_615",_r="_sublinksColumn_prtrz_635",cr="_chevron_prtrz_683",ar="_chevronOpen_prtrz_691",pr="_menubar_prtrz_715",ur="_toolbar_prtrz_719",mr="_advanced_prtrz_923",br="_subtitle_prtrz_932",dr="_withSpotlight_prtrz_974",zr="_withoutSpotlight_prtrz_978",gr="_transparent_prtrz_1016",vr="_utilityDefault_prtrz_1133",hr="_utilityScrolled_prtrz_1140",kr="_searchWrapper_prtrz_1173",Ir="_mobileMenu_prtrz_1180",fr="_mobilePanel_prtrz_1186",Cr="_mobileBack_prtrz_1193",yr="_mobileItem_prtrz_1218",wr="_slideIn_prtrz_1223",xr="_slideInBack_prtrz_1227",Tr="_mobileTrigger_prtrz_1231",Lr="_mobileLink_prtrz_1250",Mr="_mobileItemLabel_prtrz_1266",Sr="_mobileItemSubtitle_prtrz_1274",Dr="_mobileChevron_prtrz_1280",Nr="_mobileDivider_prtrz_1285",Wr="_fadeInFromLeft_prtrz_1299",jr="_spotlight_prtrz_611",$r="_imageWrapper_prtrz_1312",Br="_content_prtrz_1334",Er="_description_prtrz_1349",qr="_actions_prtrz_1353",r={navbar:I,sticky:f,left:C,container:y,logo:w,center:x,utility:T,nav:L,hidden:M,visible:S,right:D,title:N,linkWrapper:W,parent:j,linkItem:$,link:B,search:E,locale:q,themeToggle:F,sublinkToggle:R,standard:A,triangle:G,twoColumn:H,mobileButtons:J,menuToggle:K,utilityMobile:O,navInner:Q,grid:U,searchModal:V,localeModal:X,separator:Y,newTabIcon:Z,sublinksDescription:P,linkContent:rr,open:tr,sublinks:er,show:nr,primaryColumn:or,secondaryColumn:sr,spotlightColumn:lr,sublinksInner:ir,sublinksColumn:_r,chevron:cr,chevronOpen:ar,menubar:pr,toolbar:ur,default:"_default_prtrz_848",advanced:mr,subtitle:br,withSpotlight:dr,withoutSpotlight:zr,transparent:gr,utilityDefault:vr,utilityScrolled:hr,searchWrapper:kr,mobileMenu:Ir,mobilePanel:fr,mobileBack:Cr,mobileItem:yr,slideIn:wr,slideInBack:xr,mobileTrigger:Tr,mobileLink:Lr,mobileItemLabel:Mr,mobileItemSubtitle:Sr,mobileChevron:Dr,mobileDivider:Nr,fadeInFromLeft:Wr,spotlight:jr,imageWrapper:$r,content:Br,description:Er,actions:qr};function Fr({link:t,path:e,parentPath:_,openPath:l,togglePath:z,updateTriangleIndicator:p,setOpenPath:o,renderLinks:g,buttonRefs:c}){var m;const a=l===e||(l==null?void 0:l.startsWith(e+"/")),v=l===e,s=!!((m=t.sublinks)!=null&&m.length),i=!_,u=d.useRef(null);return d.useEffect(()=>(c.current.set(e,u.current),()=>{c.current.delete(e)}),[e,c]),n.jsxs("div",{role:"menuitem",className:`${r.linkWrapper} ${i?r.parent:""}`,onMouseLeave:i&&s?()=>o(null):void 0,children:[n.jsx("div",{className:r.linkItem,children:t.href&&!s?n.jsxs("a",{href:t.href,className:r.link,target:t.isExternal?"_blank":"_self",rel:t.isExternal?"noopener noreferrer":void 0,onClick:()=>{var b;o(null),(b=t.onClick)==null||b.call(t)},onMouseEnter:()=>{i?(p(e),o(e)):o(_)},children:[t.label,t.isExternal&&n.jsx(h.ExternalLink,{className:r.newTabIcon,size:16,"aria-hidden":"true"})]}):n.jsxs("button",{ref:u,"aria-haspopup":s?!0:void 0,"aria-expanded":s?v:void 0,"data-toplevel":i?"true":void 0,className:`${r.sublinkToggle} ${a?r.open:""} ${a?r.chevronOpen:""}`,onClick:()=>z(e),onMouseEnter:()=>{i?(p(e),o(e)):o(s?e:_)},children:[t.label,s&&n.jsx(k.ChevronDown,{size:18,className:r.chevron,"aria-hidden":"true"})]})}),s&&n.jsx("div",{className:`${r.sublinks} ${a?r.show:""}`,role:"menu","aria-label":`${t.label} submenu`,children:n.jsx("div",{children:n.jsx("div",{className:r.sublinksInner,children:n.jsx("div",{className:r.sublinksColumn,children:g(t.sublinks,e)})})})})]})}exports.NavLink=Fr;exports.styles=r;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as h, useEffect as k } from "react";
|
|
3
|
+
import { E as I } from "./external-link-BOPobeQJ.js";
|
|
4
|
+
import { C as f } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
+
import './NavLink.css';const C = "_navbar_prtrz_1", y = "_sticky_prtrz_15", w = "_left_prtrz_30", T = "_container_prtrz_31", M = "_logo_prtrz_40", L = "_center_prtrz_46", S = "_utility_prtrz_52", N = "_nav_prtrz_1", W = "_hidden_prtrz_62", D = "_visible_prtrz_69", x = "_right_prtrz_88", B = "_title_prtrz_99", E = "_linkWrapper_prtrz_105", $ = "_parent_prtrz_105", F = "_linkItem_prtrz_112", j = "_link_prtrz_105", q = "_search_prtrz_118", A = "_locale_prtrz_119", G = "_themeToggle_prtrz_120", H = "_sublinkToggle_prtrz_121", J = "_standard_prtrz_172", K = "_triangle_prtrz_187", O = "_twoColumn_prtrz_216", Q = "_mobileButtons_prtrz_225", R = "_menuToggle_prtrz_303", U = "_utilityMobile_prtrz_321", V = "_navInner_prtrz_349", X = "_grid_prtrz_361", Y = "_searchModal_prtrz_384", Z = "_localeModal_prtrz_385", P = "_separator_prtrz_405", rr = "_newTabIcon_prtrz_447", tr = "_sublinksDescription_prtrz_460", er = "_linkContent_prtrz_463", nr = "_open_prtrz_476", or = "_sublinks_prtrz_460", lr = "_show_prtrz_549", _r = "_primaryColumn_prtrz_598", ir = "_secondaryColumn_prtrz_607", sr = "_spotlightColumn_prtrz_611", cr = "_sublinksInner_prtrz_615", ar = "_sublinksColumn_prtrz_635", pr = "_chevron_prtrz_683", mr = "_chevronOpen_prtrz_691", ur = "_menubar_prtrz_715", br = "_toolbar_prtrz_719", dr = "_advanced_prtrz_923", zr = "_subtitle_prtrz_932", gr = "_withSpotlight_prtrz_974", vr = "_withoutSpotlight_prtrz_978", hr = "_transparent_prtrz_1016", kr = "_utilityDefault_prtrz_1133", Ir = "_utilityScrolled_prtrz_1140", fr = "_searchWrapper_prtrz_1173", Cr = "_mobileMenu_prtrz_1180", yr = "_mobilePanel_prtrz_1186", wr = "_mobileBack_prtrz_1193", Tr = "_mobileItem_prtrz_1218", Mr = "_slideIn_prtrz_1223", Lr = "_slideInBack_prtrz_1227", Sr = "_mobileTrigger_prtrz_1231", Nr = "_mobileLink_prtrz_1250", Wr = "_mobileItemLabel_prtrz_1266", Dr = "_mobileItemSubtitle_prtrz_1274", xr = "_mobileChevron_prtrz_1280", Br = "_mobileDivider_prtrz_1285", Er = "_fadeInFromLeft_prtrz_1299", $r = "_spotlight_prtrz_611", Fr = "_imageWrapper_prtrz_1312", jr = "_content_prtrz_1334", qr = "_description_prtrz_1349", Ar = "_actions_prtrz_1353", e = {
|
|
6
|
+
navbar: C,
|
|
7
|
+
sticky: y,
|
|
8
|
+
left: w,
|
|
9
|
+
container: T,
|
|
10
|
+
logo: M,
|
|
11
|
+
center: L,
|
|
12
|
+
utility: S,
|
|
13
|
+
nav: N,
|
|
14
|
+
hidden: W,
|
|
15
|
+
visible: D,
|
|
16
|
+
right: x,
|
|
17
|
+
title: B,
|
|
18
|
+
linkWrapper: E,
|
|
19
|
+
parent: $,
|
|
20
|
+
linkItem: F,
|
|
21
|
+
link: j,
|
|
22
|
+
search: q,
|
|
23
|
+
locale: A,
|
|
24
|
+
themeToggle: G,
|
|
25
|
+
sublinkToggle: H,
|
|
26
|
+
standard: J,
|
|
27
|
+
triangle: K,
|
|
28
|
+
twoColumn: O,
|
|
29
|
+
mobileButtons: Q,
|
|
30
|
+
menuToggle: R,
|
|
31
|
+
utilityMobile: U,
|
|
32
|
+
navInner: V,
|
|
33
|
+
grid: X,
|
|
34
|
+
searchModal: Y,
|
|
35
|
+
localeModal: Z,
|
|
36
|
+
separator: P,
|
|
37
|
+
newTabIcon: rr,
|
|
38
|
+
sublinksDescription: tr,
|
|
39
|
+
linkContent: er,
|
|
40
|
+
open: nr,
|
|
41
|
+
sublinks: or,
|
|
42
|
+
show: lr,
|
|
43
|
+
primaryColumn: _r,
|
|
44
|
+
secondaryColumn: ir,
|
|
45
|
+
spotlightColumn: sr,
|
|
46
|
+
sublinksInner: cr,
|
|
47
|
+
sublinksColumn: ar,
|
|
48
|
+
chevron: pr,
|
|
49
|
+
chevronOpen: mr,
|
|
50
|
+
menubar: ur,
|
|
51
|
+
toolbar: br,
|
|
52
|
+
default: "_default_prtrz_848",
|
|
53
|
+
advanced: dr,
|
|
54
|
+
subtitle: zr,
|
|
55
|
+
withSpotlight: gr,
|
|
56
|
+
withoutSpotlight: vr,
|
|
57
|
+
transparent: hr,
|
|
58
|
+
utilityDefault: kr,
|
|
59
|
+
utilityScrolled: Ir,
|
|
60
|
+
searchWrapper: fr,
|
|
61
|
+
mobileMenu: Cr,
|
|
62
|
+
mobilePanel: yr,
|
|
63
|
+
mobileBack: wr,
|
|
64
|
+
mobileItem: Tr,
|
|
65
|
+
slideIn: Mr,
|
|
66
|
+
slideInBack: Lr,
|
|
67
|
+
mobileTrigger: Sr,
|
|
68
|
+
mobileLink: Nr,
|
|
69
|
+
mobileItemLabel: Wr,
|
|
70
|
+
mobileItemSubtitle: Dr,
|
|
71
|
+
mobileChevron: xr,
|
|
72
|
+
mobileDivider: Br,
|
|
73
|
+
fadeInFromLeft: Er,
|
|
74
|
+
spotlight: $r,
|
|
75
|
+
imageWrapper: Fr,
|
|
76
|
+
content: jr,
|
|
77
|
+
description: qr,
|
|
78
|
+
actions: Ar
|
|
79
|
+
};
|
|
80
|
+
function Or({
|
|
81
|
+
link: r,
|
|
82
|
+
path: t,
|
|
83
|
+
parentPath: s,
|
|
84
|
+
openPath: _,
|
|
85
|
+
togglePath: z,
|
|
86
|
+
updateTriangleIndicator: m,
|
|
87
|
+
setOpenPath: n,
|
|
88
|
+
renderLinks: g,
|
|
89
|
+
buttonRefs: c
|
|
90
|
+
}) {
|
|
91
|
+
var b;
|
|
92
|
+
const a = _ === t || (_ == null ? void 0 : _.startsWith(t + "/")), v = _ === t, o = !!((b = r.sublinks) != null && b.length), i = !s, u = h(null);
|
|
93
|
+
return k(() => (c.current.set(t, u.current), () => {
|
|
94
|
+
c.current.delete(t);
|
|
95
|
+
}), [t, c]), /* @__PURE__ */ p(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
role: "menuitem",
|
|
99
|
+
className: `${e.linkWrapper} ${i ? e.parent : ""}`,
|
|
100
|
+
onMouseLeave: i && o ? () => n(null) : void 0,
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ l("div", { className: e.linkItem, children: r.href && !o ? /* @__PURE__ */ p(
|
|
103
|
+
"a",
|
|
104
|
+
{
|
|
105
|
+
href: r.href,
|
|
106
|
+
className: e.link,
|
|
107
|
+
target: r.isExternal ? "_blank" : "_self",
|
|
108
|
+
rel: r.isExternal ? "noopener noreferrer" : void 0,
|
|
109
|
+
onClick: () => {
|
|
110
|
+
var d;
|
|
111
|
+
n(null), (d = r.onClick) == null || d.call(r);
|
|
112
|
+
},
|
|
113
|
+
onMouseEnter: () => {
|
|
114
|
+
i ? (m(t), n(t)) : n(s);
|
|
115
|
+
},
|
|
116
|
+
children: [
|
|
117
|
+
r.label,
|
|
118
|
+
r.isExternal && /* @__PURE__ */ l(
|
|
119
|
+
I,
|
|
120
|
+
{
|
|
121
|
+
className: e.newTabIcon,
|
|
122
|
+
size: 16,
|
|
123
|
+
"aria-hidden": "true"
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
) : /* @__PURE__ */ p(
|
|
129
|
+
"button",
|
|
130
|
+
{
|
|
131
|
+
ref: u,
|
|
132
|
+
"aria-haspopup": o ? !0 : void 0,
|
|
133
|
+
"aria-expanded": o ? v : void 0,
|
|
134
|
+
"data-toplevel": i ? "true" : void 0,
|
|
135
|
+
className: `${e.sublinkToggle} ${a ? e.open : ""} ${a ? e.chevronOpen : ""}`,
|
|
136
|
+
onClick: () => z(t),
|
|
137
|
+
onMouseEnter: () => {
|
|
138
|
+
i ? (m(t), n(t)) : n(o ? t : s);
|
|
139
|
+
},
|
|
140
|
+
children: [
|
|
141
|
+
r.label,
|
|
142
|
+
o && /* @__PURE__ */ l(
|
|
143
|
+
f,
|
|
144
|
+
{
|
|
145
|
+
size: 18,
|
|
146
|
+
className: e.chevron,
|
|
147
|
+
"aria-hidden": "true"
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
) }),
|
|
153
|
+
o && /* @__PURE__ */ l(
|
|
154
|
+
"div",
|
|
155
|
+
{
|
|
156
|
+
className: `${e.sublinks} ${a ? e.show : ""}`,
|
|
157
|
+
role: "menu",
|
|
158
|
+
"aria-label": `${r.label} submenu`,
|
|
159
|
+
children: /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("div", { className: e.sublinksInner, children: /* @__PURE__ */ l("div", { className: e.sublinksColumn, children: g(r.sublinks, t) }) }) })
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
export {
|
|
167
|
+
Or as N,
|
|
168
|
+
e as s
|
|
169
|
+
};
|