bhl-forms 0.0.37 → 0.0.40
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/bhl-forms.es.js +14 -9
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +14 -9
- package/dist/bhl-forms.modern.iife.js +7 -7
- package/dist/bhl-forms.modern.umd.js +7 -7
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/childAndFamily.es.js +127 -80
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/generalLegal.es.js +2450 -0
- package/dist/forms/generalLegal.iife.js +1 -0
- package/dist/forms/generalLegal.json +1 -0
- package/dist/forms/testForm.es.js +13 -18
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
package/dist/bhl-forms.es.js
CHANGED
|
@@ -10870,6 +10870,10 @@ const fireStepEvent = (formNode) => (stepResult, stepHistory2, stepQueue2) => {
|
|
|
10870
10870
|
anchor.scrollIntoView(true);
|
|
10871
10871
|
}
|
|
10872
10872
|
}
|
|
10873
|
+
var step_values = null;
|
|
10874
|
+
if (stepHistory2.value.length > 0) {
|
|
10875
|
+
step_values = flattenObj(formNode.value[stepHistory2.value[stepHistory2.value.length - 1]] || {});
|
|
10876
|
+
}
|
|
10873
10877
|
const form_id = formNode.attrs.formId || window.location.hostname + "-" + formNode.id;
|
|
10874
10878
|
if (typeof window._analytics !== "undefined") {
|
|
10875
10879
|
try {
|
|
@@ -10877,7 +10881,8 @@ const fireStepEvent = (formNode) => (stepResult, stepHistory2, stepQueue2) => {
|
|
|
10877
10881
|
"form_source": "formkit",
|
|
10878
10882
|
"form_id": form_id,
|
|
10879
10883
|
"step_count": stepHistory2.value.length,
|
|
10880
|
-
"step_name": stepHistory2.value[stepHistory2.value.length - 1]
|
|
10884
|
+
"step_name": stepHistory2.value[stepHistory2.value.length - 1],
|
|
10885
|
+
"step_values": step_values
|
|
10881
10886
|
};
|
|
10882
10887
|
dbg(body);
|
|
10883
10888
|
window._analytics.track("form-step", body, {
|
|
@@ -10893,13 +10898,13 @@ const fireStepEvent = (formNode) => (stepResult, stepHistory2, stepQueue2) => {
|
|
|
10893
10898
|
}
|
|
10894
10899
|
};
|
|
10895
10900
|
const textClassification = {
|
|
10896
|
-
label: "t-block t-mb-
|
|
10901
|
+
label: "t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
|
|
10897
10902
|
inner: `
|
|
10898
10903
|
t-max-w-lg
|
|
10899
10904
|
t-border
|
|
10900
10905
|
t-border-gray-400
|
|
10901
10906
|
formkit-invalid:t-border-red-500
|
|
10902
|
-
t-rounded
|
|
10907
|
+
t-rounded t-mb-1
|
|
10903
10908
|
t-overflow-hidden
|
|
10904
10909
|
focus-within:t-border-blue-500
|
|
10905
10910
|
`,
|
|
@@ -10907,23 +10912,23 @@ const textClassification = {
|
|
|
10907
10912
|
};
|
|
10908
10913
|
const boxClassification = {
|
|
10909
10914
|
fieldset: "t-max-w-md t-border t-border-gray-400 t-rounded-md t-px-2 t-pb-1",
|
|
10910
|
-
legend: "t-font-
|
|
10915
|
+
legend: "t-font-semibold t-text-base",
|
|
10911
10916
|
wrapper: "t-flex t-items-center t-mb-1 t-cursor-pointer",
|
|
10912
10917
|
help: "t-mb-2",
|
|
10913
10918
|
input: "t-form-check-input t-appearance-none t-h-5 t-w-5 t-mr-2 t-border t-border-gray-500 t-rounded-sm t-bg-white checked:t-bg-blue-500 focus:t-outline-none focus:t-ring-0 t-transition t-duration-100",
|
|
10914
|
-
label: "t-text-
|
|
10919
|
+
label: "t-font-normal t-text-base t-text-gray-700"
|
|
10915
10920
|
};
|
|
10916
10921
|
const checkBoxClassification = {
|
|
10917
10922
|
fieldset: "t-max-w-md t-border t-border-gray-400 t-rounded-md t-px-2 t-pb-1",
|
|
10918
|
-
legend: "t-font-
|
|
10923
|
+
legend: "t-font-semibold t-text-base",
|
|
10919
10924
|
wrapper: "t-flex t-items-center t-mb-1 t-cursor-pointer",
|
|
10920
10925
|
help: "t-mb-2",
|
|
10921
10926
|
input: "t-h-5 t-w-5 t-mr-2 t-border t-border-gray-500 t-rounded-sm t-bg-white checked:t-bg-blue-500 focus:t-outline-none focus:t-ring-0 t-transition t-duration-100",
|
|
10922
|
-
label: "t-text-
|
|
10927
|
+
label: "t-font-normal t-text-base t-text-gray-700"
|
|
10923
10928
|
};
|
|
10924
10929
|
const buttonClassification = {
|
|
10925
10930
|
wrapper: "t-mb-1",
|
|
10926
|
-
input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-
|
|
10931
|
+
input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-xl t-font-normal t-py-4 t-px-9 sm:t-px-10 t-rounded",
|
|
10927
10932
|
outer: "t-mb-0"
|
|
10928
10933
|
};
|
|
10929
10934
|
var theme = {
|
|
@@ -10966,7 +10971,7 @@ var theme = {
|
|
|
10966
10971
|
tel: textClassification,
|
|
10967
10972
|
text: textClassification,
|
|
10968
10973
|
textarea: __spreadProps(__spreadValues({}, textClassification), {
|
|
10969
|
-
input: "t-block t-w-full t-h-
|
|
10974
|
+
input: "t-block t-w-full t-h-48 t-px-3 t-pt-1 t-border-none t-text-base t-text-gray-700 t-placeholder-gray-400 placeholder:t-text-base focus:t-shadow-outline"
|
|
10970
10975
|
}),
|
|
10971
10976
|
time: textClassification,
|
|
10972
10977
|
url: textClassification,
|