@verifiedinc-public/shared-ui-elements 6.8.2 → 7.0.0

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 (89) hide show
  1. package/dist/components/chart/index.mjs +1 -1
  2. package/dist/components/form/AddressInput/hook.d.ts +1 -3
  3. package/dist/components/form/AddressInput/index.d.ts +1 -1
  4. package/dist/components/form/NewOneClickForm/core/declarations.d.ts +4 -0
  5. package/dist/components/form/NewOneClickForm/core/fields/address.d.ts +185 -0
  6. package/dist/components/form/NewOneClickForm/core/fields/birthDate.d.ts +21 -0
  7. package/dist/components/form/NewOneClickForm/core/fields/constants.d.ts +6 -0
  8. package/dist/components/form/NewOneClickForm/core/fields/driversLicense.d.ts +291 -0
  9. package/dist/components/form/NewOneClickForm/core/fields/fullName.d.ts +94 -0
  10. package/dist/components/form/NewOneClickForm/core/fields/index.d.ts +563 -0
  11. package/dist/components/form/NewOneClickForm/core/fields/phone.d.ts +20 -0
  12. package/dist/components/form/NewOneClickForm/core/fields/sex.d.ts +29 -0
  13. package/dist/components/form/NewOneClickForm/core/fields/ssn.d.ts +21 -0
  14. package/dist/components/form/NewOneClickForm/core/fields/types.d.ts +62 -0
  15. package/dist/components/form/NewOneClickForm/core/form/form.d.ts +9 -0
  16. package/dist/components/form/NewOneClickForm/core/form/formBuilder.d.ts +11 -0
  17. package/dist/components/form/NewOneClickForm/core/form/formField.d.ts +50 -0
  18. package/dist/components/form/NewOneClickForm/core/form/formFieldBuilder.d.ts +14 -0
  19. package/dist/components/form/NewOneClickForm/core/form/index.d.ts +4 -0
  20. package/dist/components/form/NewOneClickForm/core/form/utils.d.ts +7 -0
  21. package/dist/components/form/NewOneClickForm/core/formats/address.format.d.ts +8 -0
  22. package/dist/components/form/NewOneClickForm/core/formats/date.format.d.ts +1 -0
  23. package/dist/components/form/NewOneClickForm/core/formats/index.d.ts +4 -0
  24. package/dist/components/form/NewOneClickForm/core/formats/ssn.format.d.ts +1 -0
  25. package/dist/components/form/NewOneClickForm/core/formats/state.format.d.ts +1 -0
  26. package/dist/components/form/NewOneClickForm/core/mappers/create-patch.map.d.ts +6 -0
  27. package/dist/components/form/NewOneClickForm/core/mappers/index.d.ts +2 -0
  28. package/dist/components/form/NewOneClickForm/core/mappers/share.map.d.ts +4 -0
  29. package/dist/components/form/NewOneClickForm/core/shared/us-states.d.ts +73 -0
  30. package/dist/components/form/NewOneClickForm/core/validations/address/address.schema.d.ts +37 -0
  31. package/dist/components/form/NewOneClickForm/core/validations/address/city.schema.d.ts +7 -0
  32. package/dist/components/form/NewOneClickForm/core/validations/address/country.schema.d.ts +7 -0
  33. package/dist/components/form/NewOneClickForm/core/validations/address/index.d.ts +7 -0
  34. package/dist/components/form/NewOneClickForm/core/validations/address/line1.schema.d.ts +7 -0
  35. package/dist/components/form/NewOneClickForm/core/validations/address/line2.schema.d.ts +6 -0
  36. package/dist/components/form/NewOneClickForm/core/validations/address/state.schema.d.ts +7 -0
  37. package/dist/components/form/NewOneClickForm/core/validations/address/zipcode.schema.d.ts +7 -0
  38. package/dist/components/form/NewOneClickForm/core/validations/driversLicense/driversLicense.schema.d.ts +69 -0
  39. package/dist/components/form/NewOneClickForm/core/validations/driversLicense/index.d.ts +1 -0
  40. package/dist/components/form/NewOneClickForm/core/validations/index.d.ts +4 -0
  41. package/dist/components/form/NewOneClickForm/core/validations/name/first.schema.d.ts +6 -0
  42. package/dist/components/form/NewOneClickForm/core/validations/name/fullName.schema.d.ts +14 -0
  43. package/dist/components/form/NewOneClickForm/core/validations/name/index.d.ts +4 -0
  44. package/dist/components/form/NewOneClickForm/core/validations/name/last.schema.d.ts +6 -0
  45. package/dist/components/form/NewOneClickForm/core/validations/name/middle.schema.d.ts +6 -0
  46. package/dist/components/form/NewOneClickForm/core/validations/other/birthDate.schema.d.ts +2 -0
  47. package/dist/components/form/NewOneClickForm/core/validations/other/date.schema.d.ts +6 -0
  48. package/dist/components/form/NewOneClickForm/core/validations/other/documentNumber.schema.d.ts +6 -0
  49. package/dist/components/form/NewOneClickForm/core/validations/other/index.d.ts +6 -0
  50. package/dist/components/form/NewOneClickForm/core/validations/other/phone.schema.d.ts +6 -0
  51. package/dist/components/form/NewOneClickForm/core/validations/other/sex.schema.d.ts +19 -0
  52. package/dist/components/form/NewOneClickForm/core/validations/other/ssn.schema.d.ts +6 -0
  53. package/dist/components/form/NewOneClickForm/index.d.ts +3 -0
  54. package/dist/components/form/NewOneClickForm/react/core/field.hook.d.ts +83 -0
  55. package/dist/components/form/NewOneClickForm/react/core/form.context.d.ts +25 -0
  56. package/dist/components/form/NewOneClickForm/react/index.d.ts +3 -0
  57. package/dist/components/form/NewOneClickForm/react/ui/fields/input/address.field.d.ts +3 -0
  58. package/dist/components/form/NewOneClickForm/react/ui/fields/input/clear-field-adornment.d.ts +8 -0
  59. package/dist/components/form/NewOneClickForm/react/ui/fields/input/date.field.d.ts +3 -0
  60. package/dist/components/form/NewOneClickForm/react/ui/fields/input/field.d.ts +1 -0
  61. package/dist/components/form/NewOneClickForm/react/ui/fields/input/label.d.ts +3 -0
  62. package/dist/components/form/NewOneClickForm/react/ui/fields/input/select.field.d.ts +3 -0
  63. package/dist/components/form/NewOneClickForm/react/ui/fields/input/ssn.field.d.ts +3 -0
  64. package/dist/components/form/NewOneClickForm/react/ui/fields/input/text.field.d.ts +3 -0
  65. package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/field.d.ts +1 -0
  66. package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/multi.field.d.ts +3 -0
  67. package/dist/components/form/NewOneClickForm/react/ui/fields/readonly/single.field.d.ts +3 -0
  68. package/dist/components/form/NewOneClickForm/react/ui/fields/shared.d.ts +17 -0
  69. package/dist/components/form/NewOneClickForm/react/ui/fields/style.d.ts +28 -0
  70. package/dist/components/form/NewOneClickForm/react/ui/form-content.d.ts +9 -0
  71. package/dist/components/form/NewOneClickForm/react/ui/form.context.d.ts +29 -0
  72. package/dist/components/form/NewOneClickForm/react/ui/form.d.ts +17 -0
  73. package/dist/components/form/NewOneClickForm/react/ui/index.d.ts +1 -0
  74. package/dist/components/form/NewOneClickForm/types.d.ts +14 -0
  75. package/dist/components/index.mjs +1 -1
  76. package/dist/index.mjs +1 -1
  77. package/dist/shared/ContentWithLoader-DZt02ZR9.mjs +155 -0
  78. package/dist/shared/{SignupBigNumbers-Bfd44o0C.mjs → SignupBigNumbers-D7VQsFhd.mjs} +1 -1
  79. package/dist/shared/makeGoogleFont-Dj4rOqZX.mjs +1 -0
  80. package/dist/shared/{omitProperty-CgN5EPAy.mjs → omitProperty-Dw6AqKH-.mjs} +1 -1
  81. package/dist/shared/uuidColor-IahzMgLw.mjs +20 -0
  82. package/dist/utils/index.mjs +1 -1
  83. package/dist/utils/ssn.d.ts +1 -0
  84. package/dist/utils/string/index.mjs +1 -1
  85. package/package.json +2 -2
  86. package/dist/shared/ContentWithLoader-DRXoEKwC.mjs +0 -155
  87. package/dist/shared/makeGoogleFont-DJFPTTVt.mjs +0 -1
  88. package/dist/shared/toSentenceCase-C6ZGgmg7.mjs +0 -1
  89. package/dist/shared/uuidColor-DxkgIjlu.mjs +0 -20
@@ -1 +1 @@
1
- "use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as r,c as t,t as e,u as m}from"../shared/uuidColor-DxkgIjlu.mjs";import{c as i,g as d,a as p,p as n,s as f,v as l}from"../shared/phone-DCga5nUC.mjs";import{masks as C}from"./masks/index.mjs";import{o as T}from"../shared/omitProperty-CgN5EPAy.mjs";import{D as P,a as D,m as F,s as h}from"../shared/makeGoogleFont-DJFPTTVt.mjs";import{toCapitalize as y}from"./string/index.mjs";import{t as U}from"../shared/toSentenceCase-C6ZGgmg7.mjs";import{k as g}from"../shared/formatKebabToPretty-Du43TgPC.mjs";import{alpha as S,contrastColor as c,darken as k,getThemeFromPrimaryColor as u,lighten as Y}from"./color/index.mjs";import{addressFormatter as M,fromUSAddress as A,parseCountryCode as E,toUSaddress as N,toUSaddressPretty as b}from"./address/index.mjs";export{P as DEFAULT_FONT_FAMILY,D as DEFAULT_FONT_WEIGHTS,M as addressFormatter,S as alpha,c as contrastColor,i as countries,k as darken,s as formatDateMMDDYYYY,o as formatDateMMYY,r as formatDateToTimestamp,t as formatExtendedDate,A as fromUSAddress,d as getPhoneData,p as getPhoneDataByFieldName,u as getThemeFromPrimaryColor,g as kebabCaseToPretty,Y as lighten,F as makeGoogleFontUrl,C as masks,T as omitProperties,E as parseCountryCode,n as parseToPhoneNational,f as sortByCountryName,h as ssnFormatter,y as toCapitalize,U as toSentenceCase,N as toUSaddress,b as toUSaddressPretty,e as toUTCMilliseconds,m as uuidToHashedColor,l as validatePhone,a as wrapPromise};
1
+ "use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as r,c as e,t,u as m}from"../shared/uuidColor-IahzMgLw.mjs";import{c as i,g as d,a as n,p,s as l,v as f}from"../shared/phone-DCga5nUC.mjs";import{masks as C}from"./masks/index.mjs";import{o as T}from"../shared/omitProperty-Dw6AqKH-.mjs";import{D as P,b as D,m as F,s as h,a as U}from"../shared/makeGoogleFont-Dj4rOqZX.mjs";import{toCapitalize as g,toSentenceCase as y}from"./string/index.mjs";import{k as S}from"../shared/formatKebabToPretty-Du43TgPC.mjs";import{alpha as c,contrastColor as u,darken as Y,getThemeFromPrimaryColor as k,lighten as M}from"./color/index.mjs";import{addressFormatter as A,fromUSAddress as N,parseCountryCode as _,toUSaddress as b,toUSaddressPretty as x}from"./address/index.mjs";export{P as DEFAULT_FONT_FAMILY,D as DEFAULT_FONT_WEIGHTS,A as addressFormatter,c as alpha,u as contrastColor,i as countries,Y as darken,s as formatDateMMDDYYYY,o as formatDateMMYY,r as formatDateToTimestamp,e as formatExtendedDate,N as fromUSAddress,d as getPhoneData,n as getPhoneDataByFieldName,k as getThemeFromPrimaryColor,S as kebabCaseToPretty,M as lighten,F as makeGoogleFontUrl,C as masks,T as omitProperties,_ as parseCountryCode,p as parseToPhoneNational,l as sortByCountryName,h as ssnFormatter,U as ssnRegex,g as toCapitalize,y as toSentenceCase,b as toUSaddress,x as toUSaddressPretty,t as toUTCMilliseconds,m as uuidToHashedColor,f as validatePhone,a as wrapPromise};
@@ -5,3 +5,4 @@
5
5
  * @returns {string} the formatted value
6
6
  */
7
7
  export declare const ssnFormatter: (rawValue: string) => string;
8
+ export declare const ssnRegex: RegExp;
@@ -1 +1 @@
1
- "use strict";import{t as e}from"../../shared/toSentenceCase-C6ZGgmg7.mjs";import{k as o}from"../../shared/formatKebabToPretty-Du43TgPC.mjs";function r(a){return a.split(" ").map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()}`).join(" ")}export{o as kebabCaseToPretty,r as toCapitalize,e as toSentenceCase};
1
+ "use strict";import{k as a}from"../../shared/formatKebabToPretty-Du43TgPC.mjs";function o(e){return e.split(" ").map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()}`).join(" ")}function r(e){return`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}`}export{a as kebabCaseToPretty,o as toCapitalize,r as toSentenceCase};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "6.8.2",
3
+ "version": "7.0.0",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "scripts": {
52
52
  "test": "npm run vitest",
53
- "vitest": "vitest",
53
+ "vitest": "vitest --run",
54
54
  "lint": "npm run eslint && npm run prettier:check && npm run typecheck",
55
55
  "eslint": "eslint",
56
56
  "prettier": "prettier --write .",