quirk-ui 0.1.160 → 0.1.162

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 (34) hide show
  1. package/dist/FormField-3bxRYA4w.cjs +1 -0
  2. package/dist/{FormField-D1m8xWkL.js → FormField-UFRNSSdw.js} +101 -100
  3. package/dist/FormField.css +1 -1
  4. package/dist/HeroSubComponents-DU_zRp5K.cjs +6 -0
  5. package/dist/{HeroSubComponents-BGkwbcKC.js → HeroSubComponents-tXOYToa8.js} +57 -57
  6. package/dist/HeroSubComponents.css +1 -1
  7. package/dist/core/components/Modal/Modal.test.cjs +1 -1
  8. package/dist/core/components/Modal/Modal.test.mjs +53 -92
  9. package/dist/core/components/Modal/index.cjs +1 -1
  10. package/dist/core/components/Modal/index.mjs +65 -68
  11. package/dist/core/components/Textarea/index.cjs +1 -1
  12. package/dist/core/components/Textarea/index.mjs +73 -73
  13. package/dist/core.d.ts +1 -1
  14. package/dist/index40.css +1 -1
  15. package/dist/index5.css +1 -1
  16. package/dist/index6.css +1 -1
  17. package/dist/main.d.ts +1 -1
  18. package/dist/next/blocks/CarouselBlock/index.cjs +1 -1
  19. package/dist/next/blocks/CarouselBlock/index.mjs +64 -59
  20. package/dist/next/blocks/ContentBlock/index.cjs +1 -1
  21. package/dist/next/blocks/ContentBlock/index.mjs +79 -75
  22. package/dist/next/blocks/FormBlock/FormField.cjs +1 -1
  23. package/dist/next/blocks/FormBlock/FormField.mjs +1 -1
  24. package/dist/next/blocks/FormBlock/index.cjs +1 -1
  25. package/dist/next/blocks/FormBlock/index.mjs +105 -101
  26. package/dist/next/blocks/HeroBlock/HeroSubComponents.cjs +1 -1
  27. package/dist/next/blocks/HeroBlock/HeroSubComponents.mjs +1 -1
  28. package/dist/next/blocks/HeroBlock/HeroSubComponents.test.cjs +1 -1
  29. package/dist/next/blocks/HeroBlock/HeroSubComponents.test.mjs +1 -1
  30. package/dist/next/blocks/HeroBlock/index.cjs +1 -1
  31. package/dist/next/blocks/HeroBlock/index.mjs +84 -80
  32. package/package.json +1 -1
  33. package/dist/FormField-DU5sh1Fk.cjs +0 -1
  34. package/dist/HeroSubComponents-DzbDRtdk.cjs +0 -6
@@ -0,0 +1 @@
1
+ "use strict";require('./FormField.css');const l=require("react/jsx-runtime"),v=require("./core/components/Input/index.cjs"),q=require("./core/components/Textarea/index.cjs"),_=require("./core/components/Select/index.cjs"),b=require("./core/components/Checkbox/index.cjs"),T=require("./core/components/Radio/index.cjs"),h=require("./core/components/Fieldset/index.cjs"),k=require("./core/components/DatePicker/index.cjs"),W=require("./core/components/Range/index.cjs"),F="_formBlock_1jbl0_1",C="_container_1jbl0_7",w="_formInner_1jbl0_20",L="_maxWidthSm_1jbl0_26",y="_maxWidthMd_1jbl0_29",S="_maxWidthLg_1jbl0_32",B="_maxWidthFull_1jbl0_35",$="_heading_1jbl0_41",H="_eyebrow_1jbl0_47",G="_title_1jbl0_51",I="_disclaimer_1jbl0_55",M="_progress_1jbl0_61",D="_progressHeader_1jbl0_67",O="_stepLabel_1jbl0_73",P="_stepCount_1jbl0_79",R="_stepDescription_1jbl0_84",V="_fields_1jbl0_92",f="_fieldFull_1jbl0_99",N="_fieldHalf_1jbl0_103",z="_fieldThird_1jbl0_111",A="_actions_1jbl0_121",E="_submitButton_1jbl0_128",J="_success_1jbl0_134",K="_errorBanner_1jbl0_149",u={formBlock:F,container:C,formInner:w,maxWidthSm:L,maxWidthMd:y,maxWidthLg:S,maxWidthFull:B,heading:$,eyebrow:H,title:G,disclaimer:I,progress:M,progressHeader:D,stepLabel:O,stepCount:P,stepDescription:R,fields:V,fieldFull:f,fieldHalf:N,fieldThird:z,actions:A,submitButton:E,success:J,errorBanner:K};function i(e){return(e??[]).map(n=>({label:n.label,value:n.value.current,disabled:n.disabled}))}function p(e){return(e??[]).map(n=>({label:n.label,options:n.options.map(s=>({label:s.label,value:s.value.current,disabled:s.disabled}))}))}function Q({field:e,value:n,error:s,onChange:o}){const r=e.name.current,m={full:u.fieldFull,half:u.fieldHalf,third:u.fieldThird}[e.width??"full"],c={id:r,name:r,label:e.label,required:e.required,disabled:e.disabled,helperText:e.helperText,error:s},d=()=>{switch(e.fieldType){case"text":case"email":case"phone":case"number":case"url":return l.jsx(v.Input,{...c,type:e.fieldType==="phone"?"tel":e.fieldType,placeholder:e.placeholder,value:n??"",minLength:e.minLength,maxLength:e.maxLength,fullWidth:!0,onChange:t=>o(r,t.target.value)});case"textarea":return l.jsx(q.Textarea,{...c,placeholder:e.placeholder,value:n??"",rows:e.rows??4,maxLength:e.maxLength,showCharCount:e.showCharCount,fullWidth:!0,onChange:t=>o(r,t.target.value)});case"select":{const t=e.useOptionGroups?p(e.optionGroups):i(e.options);return l.jsx(_.Select,{...c,placeholder:e.placeholder,options:t,value:n??"",fullWidth:!0,onChange:a=>o(r,a.target.value)})}case"multiselect":{const t=e.useOptionGroups?p(e.optionGroups):i(e.options);return l.jsx(_.Select,{...c,multiple:!0,options:t,value:n??[],showSelectedCount:!0,onChange:a=>o(r,a)})}case"checkbox":return l.jsx(b.Checkbox,{id:c.id,name:c.name,label:e.label,required:e.required,disabled:e.disabled,helperText:s??e.helperText,error:!!s,checked:n??!1,onChange:t=>o(r,t.target.checked)});case"checkboxGroup":{const t=n??[];return l.jsx(h.Fieldset,{legend:e.label,error:!!s,helperText:s,children:i(e.options).map(a=>l.jsx(b.Checkbox,{id:`${r}-${a.value}`,name:`${r}[]`,label:a.label,checked:t.includes(a.value),disabled:a.disabled||e.disabled,onChange:x=>{const j=x.target.checked?[...t,a.value]:t.filter(g=>g!==a.value);o(r,j)}},a.value))})}case"radio":return l.jsx(h.Fieldset,{legend:e.label,error:!!s,helperText:s,children:i(e.options).map(t=>l.jsx(T.Radio,{id:`${r}-${t.value}`,name:r,value:t.value,label:t.label,checked:n===t.value,disabled:t.disabled||e.disabled,required:e.required,onChange:()=>o(r,t.value)},t.value))});case"date":return l.jsx(k.DatePicker,{id:c.id,name:c.name,label:e.label,required:e.required,disabled:e.disabled,helperText:s??e.helperText,error:!!s,value:n??null,onChange:t=>o(r,t)});case"range":return l.jsx(W.Range,{...c,value:n??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=>o(r,t)});case"hidden":return l.jsx("input",{type:"hidden",name:r,value:n??e.hiddenValue??""});default:return null}};return e.fieldType==="hidden"?d():l.jsx("div",{className:`${m}`,children:d()})}exports.FormField=Q;exports.styles=u;
@@ -1,23 +1,24 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { Input as g } from "./core/components/Input/index.mjs";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { Input as v } from "./core/components/Input/index.mjs";
3
3
  import { Textarea as T } from "./core/components/Textarea/index.mjs";
4
4
  import { Select as m } from "./core/components/Select/index.mjs";
5
- import { Checkbox as h } from "./core/components/Checkbox/index.mjs";
5
+ import { Checkbox as _ } from "./core/components/Checkbox/index.mjs";
6
6
  import { Radio as W } from "./core/components/Radio/index.mjs";
7
- import { Fieldset as p } from "./core/components/Fieldset/index.mjs";
7
+ import { Fieldset as b } from "./core/components/Fieldset/index.mjs";
8
8
  import { DatePicker as f } from "./core/components/DatePicker/index.mjs";
9
9
  import { Range as k } from "./core/components/Range/index.mjs";
10
- import './FormField.css';const L = "_formBlock_1nwvd_1", C = "_container_1nwvd_7", F = "_formInner_1nwvd_20", y = "_maxWidthSm_1nwvd_26", B = "_maxWidthMd_1nwvd_29", q = "_maxWidthLg_1nwvd_32", S = "_maxWidthFull_1nwvd_35", H = "_heading_1nwvd_41", G = "_eyebrow_1nwvd_47", M = "_title_1nwvd_51", $ = "_progress_1nwvd_57", I = "_progressHeader_1nwvd_63", D = "_stepLabel_1nwvd_69", O = "_stepCount_1nwvd_75", V = "_stepDescription_1nwvd_80", P = "_fields_1nwvd_88", R = "_fieldFull_1nwvd_95", j = "_fieldHalf_1nwvd_99", N = "_fieldThird_1nwvd_107", z = "_actions_1nwvd_117", A = "_submitButton_1nwvd_124", E = "_success_1nwvd_130", J = "_errorBanner_1nwvd_145", u = {
11
- formBlock: L,
12
- container: C,
13
- formInner: F,
14
- maxWidthSm: y,
15
- maxWidthMd: B,
16
- maxWidthLg: q,
17
- maxWidthFull: S,
18
- heading: H,
19
- eyebrow: G,
20
- title: M,
10
+ import './FormField.css';const w = "_formBlock_1jbl0_1", L = "_container_1jbl0_7", C = "_formInner_1jbl0_20", F = "_maxWidthSm_1jbl0_26", y = "_maxWidthMd_1jbl0_29", B = "_maxWidthLg_1jbl0_32", q = "_maxWidthFull_1jbl0_35", S = "_heading_1jbl0_41", H = "_eyebrow_1jbl0_47", G = "_title_1jbl0_51", M = "_disclaimer_1jbl0_55", $ = "_progress_1jbl0_61", I = "_progressHeader_1jbl0_67", D = "_stepLabel_1jbl0_73", O = "_stepCount_1jbl0_79", V = "_stepDescription_1jbl0_84", P = "_fields_1jbl0_92", R = "_fieldFull_1jbl0_99", N = "_fieldHalf_1jbl0_103", z = "_fieldThird_1jbl0_111", A = "_actions_1jbl0_121", E = "_submitButton_1jbl0_128", J = "_success_1jbl0_134", K = "_errorBanner_1jbl0_149", u = {
11
+ formBlock: w,
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,
21
22
  progress: $,
22
23
  progressHeader: I,
23
24
  stepLabel: D,
@@ -25,44 +26,44 @@ import './FormField.css';const L = "_formBlock_1nwvd_1", C = "_container_1nwvd_7
25
26
  stepDescription: V,
26
27
  fields: P,
27
28
  fieldFull: R,
28
- fieldHalf: j,
29
- fieldThird: N,
30
- actions: z,
31
- submitButton: A,
32
- success: E,
33
- errorBanner: J
29
+ fieldHalf: N,
30
+ fieldThird: z,
31
+ actions: A,
32
+ submitButton: E,
33
+ success: J,
34
+ errorBanner: K
34
35
  };
35
- function i(e) {
36
- return (e ?? []).map((n) => ({
37
- label: n.label,
38
- value: n.value.current,
39
- disabled: n.disabled
36
+ function c(e) {
37
+ return (e ?? []).map((r) => ({
38
+ label: r.label,
39
+ value: r.value.current,
40
+ disabled: r.disabled
40
41
  }));
41
42
  }
42
- function _(e) {
43
- return (e ?? []).map((n) => ({
44
- label: n.label,
45
- options: n.options.map((a) => ({
46
- label: a.label,
47
- value: a.value.current,
48
- disabled: a.disabled
43
+ function h(e) {
44
+ return (e ?? []).map((r) => ({
45
+ label: r.label,
46
+ options: r.options.map((l) => ({
47
+ label: l.label,
48
+ value: l.value.current,
49
+ disabled: l.disabled
49
50
  }))
50
51
  }));
51
52
  }
52
- function re({ field: e, value: n, error: a, onChange: o }) {
53
- const r = e.name.current, b = {
53
+ function le({ field: e, value: r, error: l, onChange: o }) {
54
+ const a = e.name.current, p = {
54
55
  full: u.fieldFull,
55
56
  half: u.fieldHalf,
56
57
  third: u.fieldThird
57
- }[e.width ?? "full"], d = {
58
- id: r,
59
- name: r,
58
+ }[e.width ?? "full"], i = {
59
+ id: a,
60
+ name: a,
60
61
  label: e.label,
61
62
  required: e.required,
62
63
  disabled: e.disabled,
63
64
  helperText: e.helperText,
64
- error: a
65
- }, c = () => {
65
+ error: l
66
+ }, d = () => {
66
67
  switch (e.fieldType) {
67
68
  // ── Text-based inputs ──────────────────────────────────────────────
68
69
  case "text":
@@ -70,164 +71,164 @@ function re({ field: e, value: n, error: a, onChange: o }) {
70
71
  case "phone":
71
72
  case "number":
72
73
  case "url":
73
- return /* @__PURE__ */ s(
74
- g,
74
+ return /* @__PURE__ */ n(
75
+ v,
75
76
  {
76
- ...d,
77
+ ...i,
77
78
  type: e.fieldType === "phone" ? "tel" : e.fieldType,
78
79
  placeholder: e.placeholder,
79
- value: n ?? "",
80
+ value: r ?? "",
80
81
  minLength: e.minLength,
81
82
  maxLength: e.maxLength,
82
83
  fullWidth: !0,
83
- onChange: (t) => o(r, t.target.value)
84
+ onChange: (t) => o(a, t.target.value)
84
85
  }
85
86
  );
86
87
  // ── Textarea ───────────────────────────────────────────────────────
87
88
  case "textarea":
88
- return /* @__PURE__ */ s(
89
+ return /* @__PURE__ */ n(
89
90
  T,
90
91
  {
91
- ...d,
92
+ ...i,
92
93
  placeholder: e.placeholder,
93
- value: n ?? "",
94
+ value: r ?? "",
94
95
  rows: e.rows ?? 4,
95
96
  maxLength: e.maxLength,
96
97
  showCharCount: e.showCharCount,
97
98
  fullWidth: !0,
98
- onChange: (t) => o(r, t.target.value)
99
+ onChange: (t) => o(a, t.target.value)
99
100
  }
100
101
  );
101
102
  // ── Select ─────────────────────────────────────────────────────────
102
103
  case "select": {
103
- const t = e.useOptionGroups ? _(e.optionGroups) : i(e.options);
104
- return /* @__PURE__ */ s(
104
+ const t = e.useOptionGroups ? h(e.optionGroups) : c(e.options);
105
+ return /* @__PURE__ */ n(
105
106
  m,
106
107
  {
107
- ...d,
108
+ ...i,
108
109
  placeholder: e.placeholder,
109
110
  options: t,
110
- value: n ?? "",
111
+ value: r ?? "",
111
112
  fullWidth: !0,
112
- onChange: (l) => o(r, l.target.value)
113
+ onChange: (s) => o(a, s.target.value)
113
114
  }
114
115
  );
115
116
  }
116
117
  // ── Multi-select ───────────────────────────────────────────────────
117
118
  case "multiselect": {
118
- const t = e.useOptionGroups ? _(e.optionGroups) : i(e.options);
119
- return /* @__PURE__ */ s(
119
+ const t = e.useOptionGroups ? h(e.optionGroups) : c(e.options);
120
+ return /* @__PURE__ */ n(
120
121
  m,
121
122
  {
122
- ...d,
123
+ ...i,
123
124
  multiple: !0,
124
125
  options: t,
125
- value: n ?? [],
126
+ value: r ?? [],
126
127
  showSelectedCount: !0,
127
- onChange: (l) => o(r, l)
128
+ onChange: (s) => o(a, s)
128
129
  }
129
130
  );
130
131
  }
131
132
  // ── Single checkbox ────────────────────────────────────────────────
132
133
  case "checkbox":
133
- return /* @__PURE__ */ s(
134
- h,
134
+ return /* @__PURE__ */ n(
135
+ _,
135
136
  {
136
- id: d.id,
137
- name: d.name,
137
+ id: i.id,
138
+ name: i.name,
138
139
  label: e.label,
139
140
  required: e.required,
140
141
  disabled: e.disabled,
141
- helperText: a ?? e.helperText,
142
- error: !!a,
143
- checked: n ?? !1,
144
- onChange: (t) => o(r, t.target.checked)
142
+ helperText: l ?? e.helperText,
143
+ error: !!l,
144
+ checked: r ?? !1,
145
+ onChange: (t) => o(a, t.target.checked)
145
146
  }
146
147
  );
147
148
  // ── Checkbox group ─────────────────────────────────────────────────
148
149
  case "checkboxGroup": {
149
- const t = n ?? [];
150
- return /* @__PURE__ */ s(p, { legend: e.label, error: !!a, helperText: a, children: i(e.options).map((l) => /* @__PURE__ */ s(
151
- h,
150
+ const t = r ?? [];
151
+ return /* @__PURE__ */ n(b, { legend: e.label, error: !!l, helperText: l, children: c(e.options).map((s) => /* @__PURE__ */ n(
152
+ _,
152
153
  {
153
- id: `${r}-${l.value}`,
154
- name: `${r}[]`,
155
- label: l.label,
156
- checked: t.includes(l.value),
157
- disabled: l.disabled || e.disabled,
158
- onChange: (v) => {
159
- const x = v.target.checked ? [...t, l.value] : t.filter((w) => w !== l.value);
160
- o(r, x);
154
+ id: `${a}-${s.value}`,
155
+ name: `${a}[]`,
156
+ label: s.label,
157
+ checked: t.includes(s.value),
158
+ disabled: s.disabled || e.disabled,
159
+ onChange: (x) => {
160
+ const g = x.target.checked ? [...t, s.value] : t.filter((j) => j !== s.value);
161
+ o(a, g);
161
162
  }
162
163
  },
163
- l.value
164
+ s.value
164
165
  )) });
165
166
  }
166
167
  // ── Radio group ────────────────────────────────────────────────────
167
168
  case "radio":
168
- return /* @__PURE__ */ s(p, { legend: e.label, error: !!a, helperText: a, children: i(e.options).map((t) => /* @__PURE__ */ s(
169
+ return /* @__PURE__ */ n(b, { legend: e.label, error: !!l, helperText: l, children: c(e.options).map((t) => /* @__PURE__ */ n(
169
170
  W,
170
171
  {
171
- id: `${r}-${t.value}`,
172
- name: r,
172
+ id: `${a}-${t.value}`,
173
+ name: a,
173
174
  value: t.value,
174
175
  label: t.label,
175
- checked: n === t.value,
176
+ checked: r === t.value,
176
177
  disabled: t.disabled || e.disabled,
177
178
  required: e.required,
178
- onChange: () => o(r, t.value)
179
+ onChange: () => o(a, t.value)
179
180
  },
180
181
  t.value
181
182
  )) });
182
183
  // ── Date picker ────────────────────────────────────────────────────
183
184
  case "date":
184
- return /* @__PURE__ */ s(
185
+ return /* @__PURE__ */ n(
185
186
  f,
186
187
  {
187
- id: d.id,
188
- name: d.name,
188
+ id: i.id,
189
+ name: i.name,
189
190
  label: e.label,
190
191
  required: e.required,
191
192
  disabled: e.disabled,
192
- helperText: a ?? e.helperText,
193
- error: !!a,
194
- value: n ?? null,
195
- onChange: (t) => o(r, t)
193
+ helperText: l ?? e.helperText,
194
+ error: !!l,
195
+ value: r ?? null,
196
+ onChange: (t) => o(a, t)
196
197
  }
197
198
  );
198
199
  // ── Range ──────────────────────────────────────────────────────────
199
200
  case "range":
200
- return /* @__PURE__ */ s(
201
+ return /* @__PURE__ */ n(
201
202
  k,
202
203
  {
203
- ...d,
204
- value: n ?? e.rangeMin ?? 0,
204
+ ...i,
205
+ value: r ?? e.rangeMin ?? 0,
205
206
  min: e.rangeMin ?? 0,
206
207
  max: e.rangeMax ?? 100,
207
208
  step: e.rangeStep ?? 1,
208
209
  valuePrefix: e.rangeValuePrefix,
209
210
  valueSuffix: e.rangeValueSuffix,
210
211
  showValue: !0,
211
- onChange: (t) => o(r, t)
212
+ onChange: (t) => o(a, t)
212
213
  }
213
214
  );
214
215
  // ── Hidden ─────────────────────────────────────────────────────────
215
216
  case "hidden":
216
- return /* @__PURE__ */ s(
217
+ return /* @__PURE__ */ n(
217
218
  "input",
218
219
  {
219
220
  type: "hidden",
220
- name: r,
221
- value: n ?? e.hiddenValue ?? ""
221
+ name: a,
222
+ value: r ?? e.hiddenValue ?? ""
222
223
  }
223
224
  );
224
225
  default:
225
226
  return null;
226
227
  }
227
228
  };
228
- return e.fieldType === "hidden" ? c() : /* @__PURE__ */ s("div", { className: `${b}`, children: c() });
229
+ return e.fieldType === "hidden" ? d() : /* @__PURE__ */ n("div", { className: `${p}`, children: d() });
229
230
  }
230
231
  export {
231
- re as F,
232
+ le as F,
232
233
  u as s
233
234
  };
@@ -1 +1 @@
1
- ._formBlock_1nwvd_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_1nwvd_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_1nwvd_20{width:100%;margin-left:auto;margin-right:auto}._maxWidthSm_1nwvd_26{max-width:480px}._maxWidthMd_1nwvd_29{max-width:640px}._maxWidthLg_1nwvd_32{max-width:800px}._maxWidthFull_1nwvd_35{max-width:100%}._heading_1nwvd_41{display:flex;flex-direction:column;gap:var(--spacing-sm)}._eyebrow_1nwvd_47{font-weight:var(--font-weight-bold)}._title_1nwvd_51{text-wrap:balance}._progress_1nwvd_57{display:flex;flex-direction:column;gap:var(--spacing-sm)}._progressHeader_1nwvd_63{display:flex;justify-content:space-between;align-items:center}._stepLabel_1nwvd_69{font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);color:var(--color-text-primary)}._stepCount_1nwvd_75{font-size:var(--font-size-sm);color:var(--color-secondary-50)}._stepDescription_1nwvd_80{color:var(--color-secondary-75);font-size:var(--font-size-md);margin:0}._fields_1nwvd_88{display:flex;flex-wrap:wrap;gap:var(--spacing-md)}._fieldFull_1nwvd_95{width:100%}._fieldHalf_1nwvd_99{width:calc(50% - var(--spacing-md) / 2)}@media (max-width: 767px){._fieldHalf_1nwvd_99{width:100%}}._fieldThird_1nwvd_107{width:calc(33.333% - var(--spacing-md) * 2 / 3)}@media (max-width: 767px){._fieldThird_1nwvd_107{width:100%}}._actions_1nwvd_117{display:flex;align-items:center;gap:var(--spacing-md);padding-top:var(--spacing-sm)}._submitButton_1nwvd_124{margin-left:auto}._success_1nwvd_130{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-lg);padding:var(--spacing-md) 0 0}._success_1nwvd_130 p{color:var(--color-states-success-bg);font-weight:var(--font-weight-semibold)}._errorBanner_1nwvd_145{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)}
1
+ ._formBlock_1jbl0_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_1jbl0_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_1jbl0_20{width:100%;margin-left:auto;margin-right:auto}._maxWidthSm_1jbl0_26{max-width:480px}._maxWidthMd_1jbl0_29{max-width:640px}._maxWidthLg_1jbl0_32{max-width:800px}._maxWidthFull_1jbl0_35{max-width:100%}._heading_1jbl0_41{display:flex;flex-direction:column;gap:var(--spacing-sm)}._eyebrow_1jbl0_47{font-weight:var(--font-weight-bold)}._title_1jbl0_51{text-wrap:balance}._disclaimer_1jbl0_55{font-size:var(--font-size-sm)}._progress_1jbl0_61{display:flex;flex-direction:column;gap:var(--spacing-sm)}._progressHeader_1jbl0_67{display:flex;justify-content:space-between;align-items:center}._stepLabel_1jbl0_73{font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);color:var(--color-text-primary)}._stepCount_1jbl0_79{font-size:var(--font-size-sm);color:var(--color-secondary-50)}._stepDescription_1jbl0_84{color:var(--color-secondary-75);font-size:var(--font-size-md);margin:0}._fields_1jbl0_92{display:flex;flex-wrap:wrap;gap:var(--spacing-md)}._fieldFull_1jbl0_99{width:100%}._fieldHalf_1jbl0_103{width:calc(50% - var(--spacing-md) / 2)}@media (max-width: 767px){._fieldHalf_1jbl0_103{width:100%}}._fieldThird_1jbl0_111{width:calc(33.333% - var(--spacing-md) * 2 / 3)}@media (max-width: 767px){._fieldThird_1jbl0_111{width:100%}}._actions_1jbl0_121{display:flex;align-items:center;gap:var(--spacing-md);padding-top:var(--spacing-sm)}._submitButton_1jbl0_128{margin-left:auto}._success_1jbl0_134{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-lg);padding:var(--spacing-md) 0 0}._success_1jbl0_134 p{color:var(--color-states-success-bg);font-weight:var(--font-weight-semibold)}._errorBanner_1jbl0_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)}
@@ -0,0 +1,6 @@
1
+ "use strict";require('./HeroSubComponents.css');const t=require("react/jsx-runtime"),l=require("react"),f=require("./next/utils/mediaUtils.cjs"),y=require("./createLucideIcon-DpotSgUx.cjs"),x=require("./play-CQBnZgNa.cjs");/**
2
+ * @license lucide-react v0.488.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const b=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],g=y.createLucideIcon("pause",b),z="_hero_1fz0v_1",j="_container_1fz0v_7",w="_heading_1fz0v_15",C="_text_1fz0v_22",N="_eyebrow_1fz0v_37",k="_disclaimer_1fz0v_41",B="_articleDetails_1fz0v_52",V="_articleType_1fz0v_65",I="_articleCategories_1fz0v_79",E="_category_1fz0v_85",q="_number_1fz0v_101",T="_blog_1fz0v_128",H="_overlay_1fz0v_154",R="_tile_1fz0v_224",D="_fullBleed_1fz0v_333",F="_media_1fz0v_360",P="_splitAlt_1fz0v_447",A="_split_1fz0v_447",L="_videoControl_1fz0v_521",S="_videoBackground_1fz0v_569",U="_iframe_1fz0v_570",n={hero:z,container:j,heading:w,text:C,eyebrow:N,disclaimer:k,articleDetails:B,articleType:V,articleCategories:I,category:E,number:q,default:"_default_1fz0v_124",blog:T,overlay:H,tile:R,fullBleed:D,media:F,splitAlt:P,split:A,videoControl:L,videoBackground:S,iframe:U},p=l.memo(function({isPlaying:e,onToggle:i}){return t.jsx("button",{type:"button",title:e?"Pause the video":"Play the video","aria-label":e?"Pause video":"Play video",className:n.videoControl,onClick:i,children:e?t.jsx(g,{size:18,"aria-hidden":!0}):t.jsx(x.Play,{size:18,"aria-hidden":!0})})}),v=l.memo(function({url:e,provider:i,wrapperClassName:c,iframeClassName:s}){const r=f.buildEmbedSrc(e,i);return t.jsx("div",{className:c,children:t.jsx("iframe",{src:r,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),h=l.memo(l.forwardRef(function({src:e,autoPlay:i,posterUrl:c,wrapperClassName:s,videoClassName:r,isPlaying:a,onToggle:u},m){const d=l.useRef(null);return l.useImperativeHandle(m,()=>({play(){var o;(o=d.current)==null||o.play().catch(()=>{})},pause(){var o;(o=d.current)==null||o.pause()}})),l.useEffect(()=>{const o=d.current;o&&(a?o.play().catch(()=>{}):o.pause())},[a]),t.jsxs("div",{className:s,children:[t.jsx(p,{isPlaying:a,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:c,preload:"metadata",className:r,"aria-label":"Background video"})]})})),$=l.memo(function({url:e,autoPlay:i,posterUrl:c,isPlaying:s,onToggle:r,variant:a}){const u=e.includes("vimeo.com"),m=e.includes("youtube.com")||e.includes("youtu.be"),d=u||m,o=u?"vimeo":"youtube";return a==="inline"?d?t.jsx(v,{url:e,provider:o,wrapperClassName:n.media}):t.jsx(h,{src:e,autoPlay:i,posterUrl:c,wrapperClassName:n.media,isPlaying:s,onToggle:r}):d?t.jsx(v,{url:e,provider:o,wrapperClassName:n.videoBackground,iframeClassName:n.iframe}):t.jsx(h,{src:e,autoPlay:i,posterUrl:c,videoClassName:n.videoBackground,isPlaying:s,onToggle:r})}),Y=l.memo(function({image:e,mode:i,variant:c,imageAdapter:s}){const r=f.resolveImageUrl(e,i,"medium");if(!r)return null;const a=f.resolveAltText(e,i),u=t.jsx("img",{fetchPriority:"high",src:r,alt:a,draggable:!1,style:c==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return s?t.jsx("div",{className:n.media,children:c==="fill"?s.render({src:r,alt:a,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):s.render({src:r,alt:a,width:650,height:750,priority:!0,fetchPriority:"high"})}):t.jsx("div",{className:n.media,children:u})});exports.HeroImage=Y;exports.NativeVideo=h;exports.VideoBlock=$;exports.VideoControl=p;exports.VideoEmbed=v;exports.styles=n;
@@ -1,21 +1,21 @@
1
1
  import { jsx as t, jsxs as h } from "react/jsx-runtime";
2
- import { memo as u, forwardRef as p, useRef as w, useImperativeHandle as v, useEffect as b } from "react";
3
- import { buildEmbedSrc as g, resolveImageUrl as x, resolveAltText as N } from "./next/utils/mediaUtils.mjs";
4
- import { c as C } from "./createLucideIcon-C8GTh_Qx.js";
5
- import { P as k } from "./play-DYgKiSaf.js";
2
+ import { memo as u, forwardRef as p, useRef as y, useImperativeHandle as b, useEffect as g } from "react";
3
+ import { buildEmbedSrc as z, resolveImageUrl as x, resolveAltText as w } from "./next/utils/mediaUtils.mjs";
4
+ import { c as N } from "./createLucideIcon-C8GTh_Qx.js";
5
+ import { P as C } from "./play-DYgKiSaf.js";
6
6
  import './HeroSubComponents.css';/**
7
7
  * @license lucide-react v0.488.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const B = [
12
+ const k = [
13
13
  ["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
14
14
  ["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
15
- ], V = C("pause", B), I = "_hero_6wr3y_1", E = "_container_6wr3y_7", z = "_heading_6wr3y_15", T = "_text_6wr3y_22", j = "_eyebrow_6wr3y_37", H = "_disclaimer_6wr3y_41", P = "_articleDetails_6wr3y_53", D = "_articleType_6wr3y_66", F = "_articleCategories_6wr3y_80", R = "_category_6wr3y_86", A = "_number_6wr3y_102", S = "_blog_6wr3y_129", L = "_overlay_6wr3y_155", U = "_tile_6wr3y_225", Y = "_fullBleed_6wr3y_334", q = "_media_6wr3y_361", G = "_splitAlt_6wr3y_448", J = "_split_6wr3y_448", K = "_videoControl_6wr3y_522", M = "_videoBackground_6wr3y_570", O = "_iframe_6wr3y_571", l = {
16
- hero: I,
17
- container: E,
18
- heading: z,
15
+ ], B = N("pause", k), V = "_hero_1fz0v_1", I = "_container_1fz0v_7", E = "_heading_1fz0v_15", T = "_text_1fz0v_22", j = "_eyebrow_1fz0v_37", H = "_disclaimer_1fz0v_41", P = "_articleDetails_1fz0v_52", D = "_articleType_1fz0v_65", F = "_articleCategories_1fz0v_79", R = "_category_1fz0v_85", A = "_number_1fz0v_101", S = "_blog_1fz0v_128", L = "_overlay_1fz0v_154", U = "_tile_1fz0v_224", Y = "_fullBleed_1fz0v_333", q = "_media_1fz0v_360", G = "_splitAlt_1fz0v_447", J = "_split_1fz0v_447", K = "_videoControl_1fz0v_521", M = "_videoBackground_1fz0v_569", O = "_iframe_1fz0v_570", l = {
16
+ hero: V,
17
+ container: I,
18
+ heading: E,
19
19
  text: T,
20
20
  eyebrow: j,
21
21
  disclaimer: H,
@@ -24,7 +24,7 @@ const B = [
24
24
  articleCategories: F,
25
25
  category: R,
26
26
  number: A,
27
- default: "_default_6wr3y_125",
27
+ default: "_default_1fz0v_124",
28
28
  blog: S,
29
29
  overlay: L,
30
30
  tile: U,
@@ -37,7 +37,7 @@ const B = [
37
37
  iframe: O
38
38
  }, Q = u(function({
39
39
  isPlaying: e,
40
- onToggle: o
40
+ onToggle: i
41
41
  }) {
42
42
  return /* @__PURE__ */ t(
43
43
  "button",
@@ -46,21 +46,21 @@ const B = [
46
46
  title: e ? "Pause the video" : "Play the video",
47
47
  "aria-label": e ? "Pause video" : "Play video",
48
48
  className: l.videoControl,
49
- onClick: o,
50
- children: e ? /* @__PURE__ */ t(V, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ t(k, { size: 18, "aria-hidden": !0 })
49
+ onClick: i,
50
+ children: e ? /* @__PURE__ */ t(B, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ t(C, { size: 18, "aria-hidden": !0 })
51
51
  }
52
52
  );
53
- }), y = u(function({
53
+ }), m = u(function({
54
54
  url: e,
55
- provider: o,
55
+ provider: i,
56
56
  wrapperClassName: s,
57
57
  iframeClassName: a
58
58
  }) {
59
- const i = g(e, o);
59
+ const r = z(e, i);
60
60
  return /* @__PURE__ */ t("div", { className: s, children: /* @__PURE__ */ t(
61
61
  "iframe",
62
62
  {
63
- src: i,
63
+ src: r,
64
64
  className: a,
65
65
  allow: "autoplay; fullscreen",
66
66
  allowFullScreen: !0,
@@ -68,31 +68,31 @@ const B = [
68
68
  "aria-label": "Background video"
69
69
  }
70
70
  ) });
71
- }), f = u(
71
+ }), v = u(
72
72
  p(function({
73
73
  src: e,
74
- autoPlay: o,
74
+ autoPlay: i,
75
75
  posterUrl: s,
76
76
  wrapperClassName: a,
77
- videoClassName: i,
77
+ videoClassName: r,
78
78
  isPlaying: c,
79
79
  onToggle: d
80
- }, m) {
81
- const n = w(null);
82
- return v(m, () => ({
80
+ }, f) {
81
+ const n = y(null);
82
+ return b(f, () => ({
83
83
  play() {
84
- var r;
85
- (r = n.current) == null || r.play().catch(() => {
84
+ var o;
85
+ (o = n.current) == null || o.play().catch(() => {
86
86
  });
87
87
  },
88
88
  pause() {
89
- var r;
90
- (r = n.current) == null || r.pause();
89
+ var o;
90
+ (o = n.current) == null || o.pause();
91
91
  }
92
- })), b(() => {
93
- const r = n.current;
94
- r && (c ? r.play().catch(() => {
95
- }) : r.pause());
92
+ })), g(() => {
93
+ const o = n.current;
94
+ o && (c ? o.play().catch(() => {
95
+ }) : o.pause());
96
96
  }, [c]), /* @__PURE__ */ h("div", { className: a, children: [
97
97
  /* @__PURE__ */ t(Q, { isPlaying: c, onToggle: d }),
98
98
  /* @__PURE__ */ t(
@@ -100,13 +100,13 @@ const B = [
100
100
  {
101
101
  ref: n,
102
102
  src: e,
103
- autoPlay: o,
103
+ autoPlay: i,
104
104
  loop: !0,
105
105
  muted: !0,
106
106
  playsInline: !0,
107
107
  poster: s,
108
108
  preload: "metadata",
109
- className: i,
109
+ className: r,
110
110
  "aria-label": "Background video"
111
111
  }
112
112
  )
@@ -114,69 +114,69 @@ const B = [
114
114
  })
115
115
  ), te = u(function({
116
116
  url: e,
117
- autoPlay: o,
117
+ autoPlay: i,
118
118
  posterUrl: s,
119
119
  isPlaying: a,
120
- onToggle: i,
120
+ onToggle: r,
121
121
  variant: c
122
122
  }) {
123
- const d = e.includes("vimeo.com"), m = e.includes("youtube.com") || e.includes("youtu.be"), n = d || m, r = d ? "vimeo" : "youtube";
123
+ const d = e.includes("vimeo.com"), f = e.includes("youtube.com") || e.includes("youtu.be"), n = d || f, o = d ? "vimeo" : "youtube";
124
124
  return c === "inline" ? n ? /* @__PURE__ */ t(
125
- y,
125
+ m,
126
126
  {
127
127
  url: e,
128
- provider: r,
128
+ provider: o,
129
129
  wrapperClassName: l.media
130
130
  }
131
131
  ) : /* @__PURE__ */ t(
132
- f,
132
+ v,
133
133
  {
134
134
  src: e,
135
- autoPlay: o,
135
+ autoPlay: i,
136
136
  posterUrl: s,
137
137
  wrapperClassName: l.media,
138
138
  isPlaying: a,
139
- onToggle: i
139
+ onToggle: r
140
140
  }
141
141
  ) : n ? /* @__PURE__ */ t(
142
- y,
142
+ m,
143
143
  {
144
144
  url: e,
145
- provider: r,
145
+ provider: o,
146
146
  wrapperClassName: l.videoBackground,
147
147
  iframeClassName: l.iframe
148
148
  }
149
149
  ) : /* @__PURE__ */ t(
150
- f,
150
+ v,
151
151
  {
152
152
  src: e,
153
- autoPlay: o,
153
+ autoPlay: i,
154
154
  posterUrl: s,
155
155
  videoClassName: l.videoBackground,
156
156
  isPlaying: a,
157
- onToggle: i
157
+ onToggle: r
158
158
  }
159
159
  );
160
- }), re = u(function({
160
+ }), oe = u(function({
161
161
  image: e,
162
- mode: o,
162
+ mode: i,
163
163
  variant: s,
164
164
  imageAdapter: a
165
165
  }) {
166
- const i = x(e, o, "medium");
167
- if (!i) return null;
168
- const c = N(e, o), d = /* @__PURE__ */ t(
166
+ const r = x(e, i, "medium");
167
+ if (!r) return null;
168
+ const c = w(e, i), d = /* @__PURE__ */ t(
169
169
  "img",
170
170
  {
171
171
  fetchPriority: "high",
172
- src: i,
172
+ src: r,
173
173
  alt: c,
174
174
  draggable: !1,
175
175
  style: s === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
176
176
  }
177
177
  );
178
178
  return a ? /* @__PURE__ */ t("div", { className: l.media, children: s === "fill" ? a.render({
179
- src: i,
179
+ src: r,
180
180
  alt: c,
181
181
  fill: !0,
182
182
  priority: !0,
@@ -185,7 +185,7 @@ const B = [
185
185
  draggable: !1,
186
186
  sizes: "(max-width: 767px) 600px, 1200px"
187
187
  }) : a.render({
188
- src: i,
188
+ src: r,
189
189
  alt: c,
190
190
  width: 650,
191
191
  height: 750,
@@ -194,10 +194,10 @@ const B = [
194
194
  }) }) : /* @__PURE__ */ t("div", { className: l.media, children: d });
195
195
  });
196
196
  export {
197
- re as H,
198
- f as N,
197
+ oe as H,
198
+ v as N,
199
199
  te as V,
200
200
  Q as a,
201
- y as b,
201
+ m as b,
202
202
  l as s
203
203
  };