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.
@@ -10870,15 +10870,22 @@ 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 {
10876
- window._analytics.track("form-step", {
10880
+ var body = {
10877
10881
  "form_source": "formkit",
10878
10882
  "form_id": form_id,
10879
- "step_name": stepHistory2[stepHistory2.length - 1],
10880
- "step_count": stepHistory2.length
10881
- }, {
10883
+ "step_count": stepHistory2.value.length,
10884
+ "step_name": stepHistory2.value[stepHistory2.value.length - 1],
10885
+ "step_values": step_values
10886
+ };
10887
+ dbg(body);
10888
+ window._analytics.track("form-step", body, {
10882
10889
  plugins: {
10883
10890
  "google-tag-manager": false
10884
10891
  }
@@ -10891,13 +10898,13 @@ const fireStepEvent = (formNode) => (stepResult, stepHistory2, stepQueue2) => {
10891
10898
  }
10892
10899
  };
10893
10900
  const textClassification = {
10894
- label: "t-block t-mb-1 t-font-bold t-text-sm formkit-invalid:t-text-red-500",
10901
+ label: "t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
10895
10902
  inner: `
10896
10903
  t-max-w-lg
10897
10904
  t-border
10898
10905
  t-border-gray-400
10899
10906
  formkit-invalid:t-border-red-500
10900
- t-rounded-lg t-mb-1
10907
+ t-rounded t-mb-1
10901
10908
  t-overflow-hidden
10902
10909
  focus-within:t-border-blue-500
10903
10910
  `,
@@ -10905,15 +10912,23 @@ const textClassification = {
10905
10912
  };
10906
10913
  const boxClassification = {
10907
10914
  fieldset: "t-max-w-md t-border t-border-gray-400 t-rounded-md t-px-2 t-pb-1",
10908
- legend: "t-font-bold t-text-sm",
10915
+ legend: "t-font-semibold t-text-base",
10909
10916
  wrapper: "t-flex t-items-center t-mb-1 t-cursor-pointer",
10910
10917
  help: "t-mb-2",
10911
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",
10912
- label: "t-text-sm t-text-gray-700"
10919
+ label: "t-text-base t-text-gray-700"
10920
+ };
10921
+ const checkBoxClassification = {
10922
+ fieldset: "t-max-w-md t-border t-border-gray-400 t-rounded-md t-px-2 t-pb-1",
10923
+ legend: "t-font-semibold t-text-base",
10924
+ wrapper: "t-flex t-items-center t-mb-1 t-cursor-pointer",
10925
+ help: "t-mb-2",
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",
10927
+ label: "t-text-base t-text-gray-700"
10913
10928
  };
10914
10929
  const buttonClassification = {
10915
10930
  wrapper: "t-mb-1",
10916
- input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-lg t-font-normal t-py-4 t-px-7 sm:t-px-10 t-rounded",
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",
10917
10932
  outer: "t-mb-0"
10918
10933
  };
10919
10934
  var theme = {
@@ -10930,7 +10945,7 @@ var theme = {
10930
10945
  },
10931
10946
  date: textClassification,
10932
10947
  "datetime-local": textClassification,
10933
- checkbox: boxClassification,
10948
+ checkbox: checkBoxClassification,
10934
10949
  email: textClassification,
10935
10950
  file: {
10936
10951
  label: "t-block t-mb-1 t-font-bold t-text-sm",
@@ -10956,7 +10971,7 @@ var theme = {
10956
10971
  tel: textClassification,
10957
10972
  text: textClassification,
10958
10973
  textarea: __spreadProps(__spreadValues({}, textClassification), {
10959
- input: "t-block t-w-full t-h-32 t-px-3 t-pt-1 t-border-none t-text-base t-text-gray-700 t-placeholder-gray-400 placeholder:t-text-sm focus:t-shadow-outline"
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"
10960
10975
  }),
10961
10976
  time: textClassification,
10962
10977
  url: textClassification,