bhl-forms 0.0.1 → 0.0.2

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.
@@ -10370,4 +10370,4 @@ forms.forEach(function(form2) {
10370
10370
  app.mount("#" + form2.target);
10371
10371
  apps[form2.target] = app;
10372
10372
  });
10373
- export { apps as forms };
10373
+ export { apps as bhlForms };
@@ -6,4 +6,4 @@ var bhlForms=function(ue){"use strict";var ih=Object.defineProperty,lh=Object.de
6
6
  rounded-lg mb-1
7
7
  overflow-hidden
8
8
  focus-within:border-blue-500
9
- `,input:"w-full h-10 px-3 border-none text-base text-gray-700 placeholder-gray-400"},Cs={fieldset:"max-w-md border border-gray-400 rounded-md px-2 pb-1",legend:"font-bold text-sm",wrapper:"flex items-center mb-1 cursor-pointer",help:"mb-2",input:"form-check-input appearance-none h-5 w-5 mr-2 border border-gray-500 rounded-sm bg-white checked:bg-blue-500 focus:outline-none focus:ring-0 transition duration-200",label:"text-sm text-gray-700 mt-1"},$o={wrapper:"mb-1",input:"bg-blue-500 hover:bg-blue-700 text-white text-sm font-normal py-3 px-5 rounded"};var eh={global:{outer:"mb-5 formkit-disabled:opacity-50",help:"text-xs text-gray-500",messages:"list-none p-0 mt-1 mb-0",message:"text-red-500 mb-1 text-xs"},button:$o,color:{label:"block mb-1 font-bold text-sm",input:"w-16 h-8 appearance-none cursor-pointer border border-gray-300 rounded-md mb-2 p-1"},date:Ee,"datetime-local":Ee,checkbox:Cs,email:Ee,file:{label:"block mb-1 font-bold text-sm",inner:"max-w-md cursor-pointer",input:"text-gray-600 text-sm mb-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:bg-blue-500 file:text-white hover:file:bg-blue-600",noFiles:"block text-gray-800 text-sm mb-1",fileItem:"block flex text-gray-800 text-sm mb-1",removeFiles:"ml-auto text-blue-500 text-sm"},month:Ee,number:Ee,password:Ee,radio:At(oe({},Cs),{input:Cs.input.replace("rounded-sm","rounded-full")}),range:{inner:"max-w-md",input:"form-range appearance-none w-full h-2 p-0 bg-gray-200 rounded-full focus:outline-none focus:ring-0 focus:shadow-none"},search:Ee,select:Ee,submit:$o,tel:Ee,text:Ee,textarea:At(oe({},Ee),{input:"block w-full h-32 px-3 border-none text-base text-gray-700 placeholder-gray-400 focus:shadow-outline"}),time:Ee,url:Ee,week:Ee},xh="";const th=Qm(eh),rh=window.bhlForms||[],wo={};return rh.forEach(function(e){console.log("Mounting form:",e);const t=na(yc,{schema:e.schema}).use(Lm,Um({config:{classes:th}}));t.mount("#"+e.target),wo[e.target]=t}),ue.forms=wo,Object.defineProperties(ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),ue}({});
9
+ `,input:"w-full h-10 px-3 border-none text-base text-gray-700 placeholder-gray-400"},Cs={fieldset:"max-w-md border border-gray-400 rounded-md px-2 pb-1",legend:"font-bold text-sm",wrapper:"flex items-center mb-1 cursor-pointer",help:"mb-2",input:"form-check-input appearance-none h-5 w-5 mr-2 border border-gray-500 rounded-sm bg-white checked:bg-blue-500 focus:outline-none focus:ring-0 transition duration-200",label:"text-sm text-gray-700 mt-1"},$o={wrapper:"mb-1",input:"bg-blue-500 hover:bg-blue-700 text-white text-sm font-normal py-3 px-5 rounded"};var eh={global:{outer:"mb-5 formkit-disabled:opacity-50",help:"text-xs text-gray-500",messages:"list-none p-0 mt-1 mb-0",message:"text-red-500 mb-1 text-xs"},button:$o,color:{label:"block mb-1 font-bold text-sm",input:"w-16 h-8 appearance-none cursor-pointer border border-gray-300 rounded-md mb-2 p-1"},date:Ee,"datetime-local":Ee,checkbox:Cs,email:Ee,file:{label:"block mb-1 font-bold text-sm",inner:"max-w-md cursor-pointer",input:"text-gray-600 text-sm mb-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:bg-blue-500 file:text-white hover:file:bg-blue-600",noFiles:"block text-gray-800 text-sm mb-1",fileItem:"block flex text-gray-800 text-sm mb-1",removeFiles:"ml-auto text-blue-500 text-sm"},month:Ee,number:Ee,password:Ee,radio:At(oe({},Cs),{input:Cs.input.replace("rounded-sm","rounded-full")}),range:{inner:"max-w-md",input:"form-range appearance-none w-full h-2 p-0 bg-gray-200 rounded-full focus:outline-none focus:ring-0 focus:shadow-none"},search:Ee,select:Ee,submit:$o,tel:Ee,text:Ee,textarea:At(oe({},Ee),{input:"block w-full h-32 px-3 border-none text-base text-gray-700 placeholder-gray-400 focus:shadow-outline"}),time:Ee,url:Ee,week:Ee},xh="";const th=Qm(eh),rh=window.bhlForms||[],wo={};return rh.forEach(function(e){console.log("Mounting form:",e);const t=na(yc,{schema:e.schema}).use(Lm,Um({config:{classes:th}}));t.mount("#"+e.target),wo[e.target]=t}),ue.bhlForms=wo,Object.defineProperties(ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),ue}({});
@@ -6,4 +6,4 @@
6
6
  rounded-lg mb-1
7
7
  overflow-hidden
8
8
  focus-within:border-blue-500
9
- `,input:"w-full h-10 px-3 border-none text-base text-gray-700 placeholder-gray-400"},Cs={fieldset:"max-w-md border border-gray-400 rounded-md px-2 pb-1",legend:"font-bold text-sm",wrapper:"flex items-center mb-1 cursor-pointer",help:"mb-2",input:"form-check-input appearance-none h-5 w-5 mr-2 border border-gray-500 rounded-sm bg-white checked:bg-blue-500 focus:outline-none focus:ring-0 transition duration-200",label:"text-sm text-gray-700 mt-1"},$o={wrapper:"mb-1",input:"bg-blue-500 hover:bg-blue-700 text-white text-sm font-normal py-3 px-5 rounded"};var eh={global:{outer:"mb-5 formkit-disabled:opacity-50",help:"text-xs text-gray-500",messages:"list-none p-0 mt-1 mb-0",message:"text-red-500 mb-1 text-xs"},button:$o,color:{label:"block mb-1 font-bold text-sm",input:"w-16 h-8 appearance-none cursor-pointer border border-gray-300 rounded-md mb-2 p-1"},date:Ee,"datetime-local":Ee,checkbox:Cs,email:Ee,file:{label:"block mb-1 font-bold text-sm",inner:"max-w-md cursor-pointer",input:"text-gray-600 text-sm mb-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:bg-blue-500 file:text-white hover:file:bg-blue-600",noFiles:"block text-gray-800 text-sm mb-1",fileItem:"block flex text-gray-800 text-sm mb-1",removeFiles:"ml-auto text-blue-500 text-sm"},month:Ee,number:Ee,password:Ee,radio:At(ue({},Cs),{input:Cs.input.replace("rounded-sm","rounded-full")}),range:{inner:"max-w-md",input:"form-range appearance-none w-full h-2 p-0 bg-gray-200 rounded-full focus:outline-none focus:ring-0 focus:shadow-none"},search:Ee,select:Ee,submit:$o,tel:Ee,text:Ee,textarea:At(ue({},Ee),{input:"block w-full h-32 px-3 border-none text-base text-gray-700 placeholder-gray-400 focus:shadow-outline"}),time:Ee,url:Ee,week:Ee},xh="";const th=Qm(eh),rh=window.bhlForms||[],wo={};rh.forEach(function(e){console.log("Mounting form:",e);const t=na(yc,{schema:e.schema}).use(Lm,Um({config:{classes:th}}));t.mount("#"+e.target),wo[e.target]=t}),le.forms=wo,Object.defineProperties(le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
9
+ `,input:"w-full h-10 px-3 border-none text-base text-gray-700 placeholder-gray-400"},Cs={fieldset:"max-w-md border border-gray-400 rounded-md px-2 pb-1",legend:"font-bold text-sm",wrapper:"flex items-center mb-1 cursor-pointer",help:"mb-2",input:"form-check-input appearance-none h-5 w-5 mr-2 border border-gray-500 rounded-sm bg-white checked:bg-blue-500 focus:outline-none focus:ring-0 transition duration-200",label:"text-sm text-gray-700 mt-1"},$o={wrapper:"mb-1",input:"bg-blue-500 hover:bg-blue-700 text-white text-sm font-normal py-3 px-5 rounded"};var eh={global:{outer:"mb-5 formkit-disabled:opacity-50",help:"text-xs text-gray-500",messages:"list-none p-0 mt-1 mb-0",message:"text-red-500 mb-1 text-xs"},button:$o,color:{label:"block mb-1 font-bold text-sm",input:"w-16 h-8 appearance-none cursor-pointer border border-gray-300 rounded-md mb-2 p-1"},date:Ee,"datetime-local":Ee,checkbox:Cs,email:Ee,file:{label:"block mb-1 font-bold text-sm",inner:"max-w-md cursor-pointer",input:"text-gray-600 text-sm mb-1 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:bg-blue-500 file:text-white hover:file:bg-blue-600",noFiles:"block text-gray-800 text-sm mb-1",fileItem:"block flex text-gray-800 text-sm mb-1",removeFiles:"ml-auto text-blue-500 text-sm"},month:Ee,number:Ee,password:Ee,radio:At(ue({},Cs),{input:Cs.input.replace("rounded-sm","rounded-full")}),range:{inner:"max-w-md",input:"form-range appearance-none w-full h-2 p-0 bg-gray-200 rounded-full focus:outline-none focus:ring-0 focus:shadow-none"},search:Ee,select:Ee,submit:$o,tel:Ee,text:Ee,textarea:At(ue({},Ee),{input:"block w-full h-32 px-3 border-none text-base text-gray-700 placeholder-gray-400 focus:shadow-outline"}),time:Ee,url:Ee,week:Ee},xh="";const th=Qm(eh),rh=window.bhlForms||[],wo={};rh.forEach(function(e){console.log("Mounting form:",e);const t=na(yc,{schema:e.schema}).use(Lm,Um({config:{classes:th}}));t.mount("#"+e.target),wo[e.target]=t}),le.bhlForms=wo,Object.defineProperties(le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -36,7 +36,7 @@ const date = () => ({
36
36
  const zipcode = () => ({
37
37
  $formkit: 'text',
38
38
  label: 'Zip Code *',
39
- placeholder: 'ex: 90210',
39
+ placeholder: '90210',
40
40
  name: 'zip_code',
41
41
  validation: 'required|matches:/^[0-9]{5}$/',
42
42
  validationMessages: {
@@ -39,7 +39,7 @@ var testForm = (function () {
39
39
  const zipcode = () => ({
40
40
  $formkit: 'text',
41
41
  label: 'Zip Code *',
42
- placeholder: 'ex: 90210',
42
+ placeholder: '90210',
43
43
  name: 'zip_code',
44
44
  validation: 'required|matches:/^[0-9]{5}$/',
45
45
  validationMessages: {
@@ -0,0 +1 @@
1
+ [{"$cmp":"FormKit","props":{"type":"form","id":"form","onSubmit":"$submit(\"https://httpbin.org/post\")","plugins":"$plugins","actions":false},"children":[{"$el":"h1","children":"Need Help? Start Here!","attrs":{"class":"flex justify-center text-3xl font-bold"}},{"$el":"h3","children":"Get Your Questions Answered Today!","attrs":{"class":"flex justify-center text-l font-bold text-blue-500"}},{"$formkit":"hidden","name":"subid","value":"1234"},{"$el":"div","attrs":{"class":"form-body"},"children":[{"$el":"section","attrs":{"style":{"if":"$activeStep !== \"dateAndZip\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"dateAndZip","name":"dateAndZip","children":[{"$formkit":"text","label":"Zip Code *","placeholder":"90210","name":"zip_code","validation":"required|matches:/^[0-9]{5}$/","validationMessages":{"required":"Zip Code is required","matches":"Invalid Zip Code"}},{"$formkit":"date","label":"Date *","name":"date_inc","validation":"required","validationMessages":{"required":"Date is required"}}]}]},{"$el":"section","attrs":{"style":{"if":"$activeStep !== \"contactInfo\"","then":"display: none;"}},"children":[{"$formkit":"group","id":"contactInfo","name":"contactInfo","children":[{"$formkit":"email","name":"email","label":"Email Address *","placeholder":"email@domain.com","validation":"required|email","validationMessages":{"required":"Email is required","email":"Invalid Email"}},{"$formkit":"tel","name":"tel","label":"Phone Number *","placeholder":"xxx-xxx-xxxx","validation":"required|matches:/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/","validationMessages":{"required":"Phone Number is required","matches":"Invalid Phone Number"}},{"$formkit":"checkbox","label":"By checking this box, I agree to the Terms of Use.","name":"consent","validation":"required|accepted","validationMessages":{"accepted":"You must agree!"},"classes":{"label":"text-xs text-slate-500"}}]}]},{"$el":"div","attrs":{"class":"step-nav"},"children":[{"$formkit":"button","onClick":"$setPreviousStep()","children":"Previous Step","style":{"if":"$activeStep === $firstStep()","then":"display: none;"}},{"$formkit":"button","onClick":"$setNextStep()","children":"Next Step","style":{"if":"$activeStep === $lastStep()","then":"display: none;"}},{"$formkit":"submit","label":"Submit Application","style":{"if":"$activeStep !== $lastStep()","then":"display: none;"}}]},{"$el":"details","children":[{"$el":"summary","children":"Form data"},{"$el":"pre","children":"$stringify( $get(form).value )"},{"$el":"pre","children":["activeStep: ","$activeStep"]},{"$el":"pre","children":["stepOrder: ","$stepOrder"]}]}]}]}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhl-forms",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },