bhl-forms 0.0.36 → 0.0.39
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 +26 -11
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +26 -11
- package/dist/bhl-forms.modern.iife.js +6 -6
- package/dist/bhl-forms.modern.umd.js +6 -6
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/childAndFamily.es.js +125 -79
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/generalLegal.es.js +2449 -0
- package/dist/forms/generalLegal.iife.js +1 -0
- package/dist/forms/generalLegal.json +1 -0
- package/dist/forms/testForm.es.js +11 -17
- 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
|
@@ -17623,15 +17623,22 @@ var fireStepEvent = (formNode) => (stepResult, stepHistory2, stepQueue2) => {
|
|
|
17623
17623
|
anchor.scrollIntoView(true);
|
|
17624
17624
|
}
|
|
17625
17625
|
}
|
|
17626
|
+
var step_values = null;
|
|
17627
|
+
if (stepHistory2.value.length > 0) {
|
|
17628
|
+
step_values = flattenObj(formNode.value[stepHistory2.value[stepHistory2.value.length - 1]] || {});
|
|
17629
|
+
}
|
|
17626
17630
|
var form_id = formNode.attrs.formId || window.location.hostname + "-" + formNode.id;
|
|
17627
17631
|
if (typeof window._analytics !== "undefined") {
|
|
17628
17632
|
try {
|
|
17629
|
-
|
|
17633
|
+
var body = {
|
|
17630
17634
|
"form_source": "formkit",
|
|
17631
17635
|
"form_id": form_id,
|
|
17632
|
-
"
|
|
17633
|
-
"
|
|
17634
|
-
|
|
17636
|
+
"step_count": stepHistory2.value.length,
|
|
17637
|
+
"step_name": stepHistory2.value[stepHistory2.value.length - 1],
|
|
17638
|
+
"step_values": step_values
|
|
17639
|
+
};
|
|
17640
|
+
dbg(body);
|
|
17641
|
+
window._analytics.track("form-step", body, {
|
|
17635
17642
|
plugins: {
|
|
17636
17643
|
"google-tag-manager": false
|
|
17637
17644
|
}
|
|
@@ -17644,21 +17651,29 @@ var fireStepEvent = (formNode) => (stepResult, stepHistory2, stepQueue2) => {
|
|
|
17644
17651
|
}
|
|
17645
17652
|
};
|
|
17646
17653
|
var textClassification = {
|
|
17647
|
-
label: "t-block t-mb-
|
|
17648
|
-
inner: "\n t-max-w-lg\n t-border\n t-border-gray-400\n formkit-invalid:t-border-red-500\n t-rounded
|
|
17654
|
+
label: "t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
|
|
17655
|
+
inner: "\n t-max-w-lg\n t-border\n t-border-gray-400\n formkit-invalid:t-border-red-500\n t-rounded t-mb-1\n t-overflow-hidden\n focus-within:t-border-blue-500\n ",
|
|
17649
17656
|
input: "t-w-full t-h-10 t-px-3 t-border-none t-text-base t-text-gray-700 t-placeholder-gray-400"
|
|
17650
17657
|
};
|
|
17651
17658
|
var boxClassification = {
|
|
17652
17659
|
fieldset: "t-max-w-md t-border t-border-gray-400 t-rounded-md t-px-2 t-pb-1",
|
|
17653
|
-
legend: "t-font-
|
|
17660
|
+
legend: "t-font-semibold t-text-base",
|
|
17654
17661
|
wrapper: "t-flex t-items-center t-mb-1 t-cursor-pointer",
|
|
17655
17662
|
help: "t-mb-2",
|
|
17656
17663
|
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",
|
|
17657
|
-
label: "t-text-
|
|
17664
|
+
label: "t-text-base t-text-gray-700"
|
|
17665
|
+
};
|
|
17666
|
+
var checkBoxClassification = {
|
|
17667
|
+
fieldset: "t-max-w-md t-border t-border-gray-400 t-rounded-md t-px-2 t-pb-1",
|
|
17668
|
+
legend: "t-font-semibold t-text-base",
|
|
17669
|
+
wrapper: "t-flex t-items-center t-mb-1 t-cursor-pointer",
|
|
17670
|
+
help: "t-mb-2",
|
|
17671
|
+
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",
|
|
17672
|
+
label: "t-text-base t-text-gray-700"
|
|
17658
17673
|
};
|
|
17659
17674
|
var buttonClassification = {
|
|
17660
17675
|
wrapper: "t-mb-1",
|
|
17661
|
-
input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-
|
|
17676
|
+
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",
|
|
17662
17677
|
outer: "t-mb-0"
|
|
17663
17678
|
};
|
|
17664
17679
|
var theme = {
|
|
@@ -17675,7 +17690,7 @@ var theme = {
|
|
|
17675
17690
|
},
|
|
17676
17691
|
date: textClassification,
|
|
17677
17692
|
"datetime-local": textClassification,
|
|
17678
|
-
checkbox:
|
|
17693
|
+
checkbox: checkBoxClassification,
|
|
17679
17694
|
email: textClassification,
|
|
17680
17695
|
file: {
|
|
17681
17696
|
label: "t-block t-mb-1 t-font-bold t-text-sm",
|
|
@@ -17701,7 +17716,7 @@ var theme = {
|
|
|
17701
17716
|
tel: textClassification,
|
|
17702
17717
|
text: textClassification,
|
|
17703
17718
|
textarea: _objectSpread2(_objectSpread2({}, textClassification), {}, {
|
|
17704
|
-
input: "t-block t-w-full t-h-
|
|
17719
|
+
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"
|
|
17705
17720
|
}),
|
|
17706
17721
|
time: textClassification,
|
|
17707
17722
|
url: textClassification,
|