period-ui 0.4.4 → 0.4.5

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 (78) hide show
  1. package/dist/components/atoms/base-input/base-input.d.ts +8 -0
  2. package/dist/components/atoms/base-input/base-input.d.ts.map +1 -1
  3. package/dist/components/atoms/base-input/base-input.js +4 -3
  4. package/dist/components/atoms/base-input/base-input.js.map +1 -1
  5. package/dist/components/index.d.ts +5 -0
  6. package/dist/components/index.d.ts.map +1 -1
  7. package/dist/components/index.js +5 -0
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/molecules/form/form-password-field/form-password-field.d.ts +11 -0
  10. package/dist/components/molecules/form/form-password-field/form-password-field.d.ts.map +1 -0
  11. package/dist/components/molecules/form/form-password-field/form-password-field.js +24 -0
  12. package/dist/components/molecules/form/form-password-field/form-password-field.js.map +1 -0
  13. package/dist/components/molecules/form/form-password-field/index.d.ts +2 -0
  14. package/dist/components/molecules/form/form-password-field/index.d.ts.map +1 -0
  15. package/dist/components/molecules/form/form-password-field/index.js +18 -0
  16. package/dist/components/molecules/form/form-password-field/index.js.map +1 -0
  17. package/dist/components/molecules/form/form-phone-field/form-phone-field.d.ts +11 -0
  18. package/dist/components/molecules/form/form-phone-field/form-phone-field.d.ts.map +1 -0
  19. package/dist/components/molecules/form/form-phone-field/form-phone-field.js +24 -0
  20. package/dist/components/molecules/form/form-phone-field/form-phone-field.js.map +1 -0
  21. package/dist/components/molecules/form/form-phone-field/index.d.ts +2 -0
  22. package/dist/components/molecules/form/form-phone-field/index.d.ts.map +1 -0
  23. package/dist/components/molecules/form/form-phone-field/index.js +18 -0
  24. package/dist/components/molecules/form/form-phone-field/index.js.map +1 -0
  25. package/dist/components/molecules/password-field/index.d.ts +2 -0
  26. package/dist/components/molecules/password-field/index.d.ts.map +1 -0
  27. package/dist/components/molecules/password-field/index.js +18 -0
  28. package/dist/components/molecules/password-field/index.js.map +1 -0
  29. package/dist/components/molecules/password-field/password-field.d.ts +10 -0
  30. package/dist/components/molecules/password-field/password-field.d.ts.map +1 -0
  31. package/dist/components/molecules/password-field/password-field.js +14 -0
  32. package/dist/components/molecules/password-field/password-field.js.map +1 -0
  33. package/dist/components/molecules/phone-field/index.d.ts +2 -0
  34. package/dist/components/molecules/phone-field/index.d.ts.map +1 -0
  35. package/dist/components/molecules/phone-field/index.js +18 -0
  36. package/dist/components/molecules/phone-field/index.js.map +1 -0
  37. package/dist/components/molecules/phone-field/phone-field.d.ts +8 -0
  38. package/dist/components/molecules/phone-field/phone-field.d.ts.map +1 -0
  39. package/dist/components/molecules/phone-field/phone-field.js +10 -0
  40. package/dist/components/molecules/phone-field/phone-field.js.map +1 -0
  41. package/dist/components/molecules/text-field/components/text-field-input.d.ts +3 -0
  42. package/dist/components/molecules/text-field/components/text-field-input.d.ts.map +1 -1
  43. package/dist/components/molecules/text-field/components/text-field-input.js +2 -2
  44. package/dist/components/molecules/text-field/components/text-field-input.js.map +1 -1
  45. package/dist/components/molecules/text-field/text-field.d.ts +3 -0
  46. package/dist/components/molecules/text-field/text-field.d.ts.map +1 -1
  47. package/dist/components/molecules/text-field/text-field.js +2 -2
  48. package/dist/components/molecules/text-field/text-field.js.map +1 -1
  49. package/dist/components/organisms/document-field/document-field-constants.d.ts +5 -0
  50. package/dist/components/organisms/document-field/document-field-constants.d.ts.map +1 -0
  51. package/dist/components/organisms/document-field/document-field-constants.js +21 -0
  52. package/dist/components/organisms/document-field/document-field-constants.js.map +1 -0
  53. package/dist/components/organisms/document-field/document-field-types.d.ts +7 -0
  54. package/dist/components/organisms/document-field/document-field-types.d.ts.map +1 -0
  55. package/dist/components/organisms/document-field/document-field-types.js +11 -0
  56. package/dist/components/organisms/document-field/document-field-types.js.map +1 -0
  57. package/dist/components/organisms/document-field/document-field-validation.d.ts +17 -0
  58. package/dist/components/organisms/document-field/document-field-validation.d.ts.map +1 -0
  59. package/dist/components/organisms/document-field/document-field-validation.js +61 -0
  60. package/dist/components/organisms/document-field/document-field-validation.js.map +1 -0
  61. package/dist/components/organisms/document-field/document-field.d.ts +29 -0
  62. package/dist/components/organisms/document-field/document-field.d.ts.map +1 -0
  63. package/dist/components/organisms/document-field/document-field.js +25 -0
  64. package/dist/components/organisms/document-field/document-field.js.map +1 -0
  65. package/dist/components/organisms/document-field/index.d.ts +5 -0
  66. package/dist/components/organisms/document-field/index.d.ts.map +1 -0
  67. package/dist/components/organisms/document-field/index.js +21 -0
  68. package/dist/components/organisms/document-field/index.js.map +1 -0
  69. package/dist/components/organisms/document-field/use-document-field.d.ts +17 -0
  70. package/dist/components/organisms/document-field/use-document-field.d.ts.map +1 -0
  71. package/dist/components/organisms/document-field/use-document-field.js +34 -0
  72. package/dist/components/organisms/document-field/use-document-field.js.map +1 -0
  73. package/dist/index.d.ts +3 -3
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +14 -2
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.mjs +6388 -5927
  78. package/package.json +1 -1
@@ -1,6 +1,14 @@
1
1
  import { ChangeEvent, ComponentProps } from 'react';
2
+ export type MaskOptions = {
3
+ mask: string;
4
+ definitions?: Record<string, RegExp>;
5
+ prepare?: (value: string) => string;
6
+ blocks?: Record<string, unknown>;
7
+ lazy?: boolean;
8
+ };
2
9
  export type BaseInputProps = Omit<ComponentProps<'input'>, 'onChange'> & {
3
10
  mask?: string;
11
+ maskOptions?: MaskOptions;
4
12
  onValueChange?: (value: string) => void;
5
13
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
6
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/base-input/base-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAA4B,MAAM,OAAO,CAAC;AAG9E,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GAAG;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,SAAS,0HAyCpB,CAAC"}
1
+ {"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/base-input/base-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAA4B,MAAM,OAAO,CAAC;AAG9E,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GAAG;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,SAAS,0HA2CpB,CAAC"}
@@ -4,9 +4,10 @@ exports.BaseInput = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const react_imask_1 = require("react-imask");
7
- exports.BaseInput = (0, react_1.forwardRef)(function BaseInput({ mask, onValueChange, onChange, value = '', name, ...rest }, ref) {
8
- if (mask) {
9
- return ((0, jsx_runtime_1.jsx)(react_imask_1.IMaskInput, { ...rest, inputRef: ref, mask: mask, name: name, value: String(value), autoComplete: "off", onAccept: (acceptedValue) => {
7
+ exports.BaseInput = (0, react_1.forwardRef)(function BaseInput({ mask, maskOptions, onValueChange, onChange, value = '', name, ...rest }, ref) {
8
+ const resolvedMaskOptions = maskOptions ?? (mask ? { mask } : undefined);
9
+ if (resolvedMaskOptions) {
10
+ return ((0, jsx_runtime_1.jsx)(react_imask_1.IMaskInput, { ...rest, ...resolvedMaskOptions, inputRef: ref, name: name, value: String(value), autoComplete: "off", onAccept: (acceptedValue) => {
10
11
  if (acceptedValue === String(value))
11
12
  return;
12
13
  onValueChange?.(acceptedValue);
@@ -1 +1 @@
1
- {"version":3,"file":"base-input.js","sourceRoot":"","sources":["../../../../src/components/atoms/base-input/base-input.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8E;AAC9E,6CAAyC;AAQ5B,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAC,SAAS,SAAS,CACpD,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,EAAkB,EAC5E,GAAmC;IAEnC,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,CACL,uBAAC,wBAAU,OACL,IAAI,EACR,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EACpB,YAAY,EAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,aAAqB,EAAE,EAAE;gBAClC,IAAI,aAAa,KAAK,MAAM,CAAC,KAAK,CAAC;oBAAE,OAAO;gBAC5C,aAAa,EAAE,CAAC,aAAa,CAAC,CAAC;gBAC/B,QAAQ,EAAE,CAAC;oBACT,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAoC;iBACxC,CAAC,CAAC;YACtC,CAAC,GACD,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,qCACM,IAAI,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,YAAY,EAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;YAEzC,aAAa,EAAE,CAAC,aAAa,CAAC,CAAC;YAC/B,QAAQ,EAAE,CAAC;gBACT,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAoC;aACxC,CAAC,CAAC;QACtC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"base-input.js","sourceRoot":"","sources":["../../../../src/components/atoms/base-input/base-input.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8E;AAC9E,6CAAyC;AAiB5B,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAC,SAAS,SAAS,CACpD,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,EAAkB,EACzF,GAAmC;IAEnC,MAAM,mBAAmB,GAAG,WAAW,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzE,IAAI,mBAAmB,EAAE,CAAC;QACxB,OAAO,CACL,uBAAC,wBAAU,OACL,IAAI,KACJ,mBAAmB,EACvB,QAAQ,EAAE,GAAG,EACb,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EACpB,YAAY,EAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,aAAqB,EAAE,EAAE;gBAClC,IAAI,aAAa,KAAK,MAAM,CAAC,KAAK,CAAC;oBAAE,OAAO;gBAC5C,aAAa,EAAE,CAAC,aAAa,CAAC,CAAC;gBAC/B,QAAQ,EAAE,CAAC;oBACT,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAoC;iBACxC,CAAC,CAAC;YACtC,CAAC,GACD,CACH,CAAC;IACJ,CAAC;IAED,OAAO,CACL,qCACM,IAAI,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,YAAY,EAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;YAEzC,aAAa,EAAE,CAAC,aAAa,CAAC,CAAC;YAC/B,QAAQ,EAAE,CAAC;gBACT,MAAM,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAoC;aACxC,CAAC,CAAC;QACtC,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -26,6 +26,10 @@ export * from './molecules/form/form-date-picker';
26
26
  export * from './molecules/select';
27
27
  export * from './molecules/status-selector';
28
28
  export * from './molecules/text-field';
29
+ export * from './molecules/password-field';
30
+ export * from './molecules/phone-field';
31
+ export * from './molecules/form/form-password-field';
32
+ export * from './molecules/form/form-phone-field';
29
33
  export * from './molecules/callout';
30
34
  export * from './molecules/empty-state';
31
35
  export * from './molecules/accordion';
@@ -35,4 +39,5 @@ export * from './molecules/three-dot-menu';
35
39
  export * from './organisms/tool-tip';
36
40
  export * from './organisms/filter-modal';
37
41
  export * from './organisms/dropdown-button';
42
+ export * from './organisms/document-field';
38
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
@@ -42,6 +42,10 @@ __exportStar(require("./molecules/form/form-date-picker"), exports);
42
42
  __exportStar(require("./molecules/select"), exports);
43
43
  __exportStar(require("./molecules/status-selector"), exports);
44
44
  __exportStar(require("./molecules/text-field"), exports);
45
+ __exportStar(require("./molecules/password-field"), exports);
46
+ __exportStar(require("./molecules/phone-field"), exports);
47
+ __exportStar(require("./molecules/form/form-password-field"), exports);
48
+ __exportStar(require("./molecules/form/form-phone-field"), exports);
45
49
  __exportStar(require("./molecules/callout"), exports);
46
50
  __exportStar(require("./molecules/empty-state"), exports);
47
51
  __exportStar(require("./molecules/accordion"), exports);
@@ -51,4 +55,5 @@ __exportStar(require("./molecules/three-dot-menu"), exports);
51
55
  __exportStar(require("./organisms/tool-tip"), exports);
52
56
  __exportStar(require("./organisms/filter-modal"), exports);
53
57
  __exportStar(require("./organisms/dropdown-button"), exports);
58
+ __exportStar(require("./organisms/document-field"), exports);
54
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,oDAAkC;AAClC,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,iDAA+B;AAC/B,oDAAkC;AAClC,uDAAqC;AACrC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,oEAAkD;AAClD,sDAAoC;AACpC,+CAA6B;AAC7B,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC;AAChC,sDAAoC;AAGpC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,qEAAmD;AACnD,oEAAkD;AAClD,qDAAmC;AACnC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,0DAAwC;AACxC,wDAAsC;AACtC,yDAAuC;AACvC,uDAAqC;AACrC,6DAA2C;AAG3C,uDAAqC;AACrC,2DAAyC;AACzC,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,oDAAkC;AAClC,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,iDAA+B;AAC/B,oDAAkC;AAClC,uDAAqC;AACrC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,oEAAkD;AAClD,sDAAoC;AACpC,+CAA6B;AAC7B,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC;AAChC,sDAAoC;AAGpC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,qEAAmD;AACnD,oEAAkD;AAClD,qDAAmC;AACnC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,0DAAwC;AACxC,uEAAqD;AACrD,oEAAkD;AAClD,sDAAoC;AACpC,0DAAwC;AACxC,wDAAsC;AACtC,yDAAuC;AACvC,uDAAqC;AACrC,6DAA2C;AAG3C,uDAAqC;AACrC,2DAAyC;AACzC,8DAA4C;AAC5C,6DAA2C"}
@@ -0,0 +1,11 @@
1
+ import { PasswordFieldProps } from '../../../../components';
2
+ import { FormControlProps, FormInputWidth } from '../../../../containers';
3
+ export type FormPasswordFieldProps = FormControlProps & Omit<PasswordFieldProps, 'width'> & {
4
+ formControlClassName?: string;
5
+ width?: FormInputWidth;
6
+ };
7
+ export declare const FormPasswordField: import("react").ForwardRefExoticComponent<FormControlProps & Omit<PasswordFieldProps, "width"> & {
8
+ formControlClassName?: string;
9
+ width?: FormInputWidth;
10
+ } & import("react").RefAttributes<HTMLInputElement>>;
11
+ //# sourceMappingURL=form-password-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-password-field.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-password-field/form-password-field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAe,gBAAgB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEvF,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GACnD,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,GAAG;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAAC;AAEJ,eAAO,MAAM,iBAAiB;2BALH,MAAM;YAErB,cAAc;oDA2ExB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormPasswordField = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const components_1 = require("../../../../components");
7
+ const containers_1 = require("../../../../containers");
8
+ exports.FormPasswordField = (0, react_1.forwardRef)(function FormPasswordField({ label, helperText, errorText, optionalLabel, hideRequiredMark, containerClassName, toolTipProps, inputWidth, formName, formProps, formControlClassName, id, width, isRequired, isDisabled, ...passwordFieldProps }, ref) {
9
+ const isFormMode = !!(formProps && formName);
10
+ function handleChange(event) {
11
+ passwordFieldProps.onChange?.(event);
12
+ if (formProps && formName) {
13
+ void formProps.setFieldValue(formName, event.target.value ?? '');
14
+ }
15
+ }
16
+ function handleBlur(event) {
17
+ passwordFieldProps.onBlur?.(event);
18
+ if (formProps && formName) {
19
+ void formProps.setFieldTouched(formName, true, true);
20
+ }
21
+ }
22
+ return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { id: id, label: label, helperText: helperText, optionalLabel: optionalLabel, hideRequiredMark: hideRequiredMark, containerClassName: containerClassName, toolTipProps: toolTipProps, inputWidth: inputWidth ?? width, formName: formName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled, errorText: errorText || formProps?.errors[formName ?? ''], className: formControlClassName, children: ({ isErrorVisible, inputId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.PasswordField, { ...passwordFieldProps, ref: ref, id: inputId, "aria-describedby": describedBy, isRequired: isRequired, isDisabled: isDisabled, isErrorVisible: isErrorVisible, value: isFormMode ? (formProps?.values[formName ?? ''] ?? '') : passwordFieldProps.value, onChange: handleChange, onBlur: handleBlur })) }));
23
+ });
24
+ //# sourceMappingURL=form-password-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-password-field.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-password-field/form-password-field.tsx"],"names":[],"mappings":";;;;AAAA,iCAA0E;AAC1E,uDAA2E;AAC3E,uDAAuF;AAS1E,QAAA,iBAAiB,GAAG,IAAA,kBAAU,EAAC,SAAS,iBAAiB,CACpE,EACE,KAAK,EACL,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,EAAE,EACF,KAAK,EACL,UAAU,EACV,UAAU,EACV,GAAG,kBAAkB,EACE,EACzB,GAAmC;IAEnC,MAAM,UAAU,GAAG,CAAC,CAAC,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC;IAE7C,SAAS,YAAY,CAAC,KAAoC;QACxD,kBAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC;QAErC,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC1B,KAAK,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,SAAS,UAAU,CAAC,KAAmC;QACrD,kBAAkB,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;QAEnC,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC1B,KAAK,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,OAAO,CACL,uBAAC,wBAAW,IACV,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAAI,KAAK,EAC/B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,IAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAwB,EACjF,SAAS,EAAE,oBAAoB,YAE9B,CAAC,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAC7C,uBAAC,0BAAa,OACR,kBAAkB,EACtB,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,OAAO,sBACO,WAAW,EAC7B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,EACxF,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,GAClB,CACH,GACW,CACf,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './form-password-field';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-password-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./form-password-field"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-password-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -0,0 +1,11 @@
1
+ import { PhoneFieldProps } from '../../../../components';
2
+ import { FormControlProps, FormInputWidth } from '../../../../containers';
3
+ export type FormPhoneFieldProps = FormControlProps & Omit<PhoneFieldProps, 'width'> & {
4
+ formControlClassName?: string;
5
+ width?: FormInputWidth;
6
+ };
7
+ export declare const FormPhoneField: import("react").ForwardRefExoticComponent<FormControlProps & Omit<PhoneFieldProps, "width"> & {
8
+ formControlClassName?: string;
9
+ width?: FormInputWidth;
10
+ } & import("react").RefAttributes<HTMLInputElement>>;
11
+ //# sourceMappingURL=form-phone-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-phone-field.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-phone-field/form-phone-field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAe,gBAAgB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEvF,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAChD,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,GAAG;IAC/B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB,CAAC;AAEJ,eAAO,MAAM,cAAc;2BALA,MAAM;YAErB,cAAc;oDA2ExB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormPhoneField = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const components_1 = require("../../../../components");
7
+ const containers_1 = require("../../../../containers");
8
+ exports.FormPhoneField = (0, react_1.forwardRef)(function FormPhoneField({ label, helperText, errorText, optionalLabel, hideRequiredMark, containerClassName, toolTipProps, inputWidth, formName, formProps, formControlClassName, id, width, isRequired, isDisabled, ...phoneFieldProps }, ref) {
9
+ const isFormMode = !!(formProps && formName);
10
+ function handleChange(event) {
11
+ phoneFieldProps.onChange?.(event);
12
+ if (formProps && formName) {
13
+ void formProps.setFieldValue(formName, event.target.value ?? '');
14
+ }
15
+ }
16
+ function handleBlur(event) {
17
+ phoneFieldProps.onBlur?.(event);
18
+ if (formProps && formName) {
19
+ void formProps.setFieldTouched(formName, true, true);
20
+ }
21
+ }
22
+ return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { id: id, label: label, helperText: helperText, optionalLabel: optionalLabel, hideRequiredMark: hideRequiredMark, containerClassName: containerClassName, toolTipProps: toolTipProps, inputWidth: inputWidth ?? width, formName: formName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled, errorText: errorText || formProps?.errors[formName ?? ''], className: formControlClassName, children: ({ isErrorVisible, inputId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.PhoneField, { ...phoneFieldProps, ref: ref, id: inputId, "aria-describedby": describedBy, isRequired: isRequired, isDisabled: isDisabled, isErrorVisible: isErrorVisible, value: isFormMode ? (formProps?.values[formName ?? ''] ?? '') : phoneFieldProps.value, onChange: handleChange, onBlur: handleBlur })) }));
23
+ });
24
+ //# sourceMappingURL=form-phone-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-phone-field.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-phone-field/form-phone-field.tsx"],"names":[],"mappings":";;;;AAAA,iCAA0E;AAC1E,uDAAqE;AACrE,uDAAuF;AAS1E,QAAA,cAAc,GAAG,IAAA,kBAAU,EAAC,SAAS,cAAc,CAC9D,EACE,KAAK,EACL,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,EAAE,EACF,KAAK,EACL,UAAU,EACV,UAAU,EACV,GAAG,eAAe,EACE,EACtB,GAAmC;IAEnC,MAAM,UAAU,GAAG,CAAC,CAAC,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC;IAE7C,SAAS,YAAY,CAAC,KAAoC;QACxD,eAAe,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC;QAElC,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC1B,KAAK,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,SAAS,UAAU,CAAC,KAAmC;QACrD,eAAe,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;QAEhC,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC1B,KAAK,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,OAAO,CACL,uBAAC,wBAAW,IACV,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,IAAI,KAAK,EAC/B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,IAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAwB,EACjF,SAAS,EAAE,oBAAoB,YAE9B,CAAC,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAC7C,uBAAC,uBAAU,OACL,eAAe,EACnB,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,OAAO,sBACO,WAAW,EAC7B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,EACrF,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,GAClB,CACH,GACW,CACf,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './form-phone-field';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-phone-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./form-phone-field"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-phone-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -0,0 +1,2 @@
1
+ export * from './password-field';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/password-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./password-field"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/password-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,10 @@
1
+ import { TextFieldProps } from '../../../components';
2
+ export type PasswordFieldProps = Omit<TextFieldProps, 'type' | 'trailingElement'> & {
3
+ showPasswordLabel?: string;
4
+ hidePasswordLabel?: string;
5
+ };
6
+ export declare const PasswordField: import("react").ForwardRefExoticComponent<Omit<TextFieldProps, "type" | "trailingElement"> & {
7
+ showPasswordLabel?: string;
8
+ hidePasswordLabel?: string;
9
+ } & import("react").RefAttributes<HTMLInputElement>>;
10
+ //# sourceMappingURL=password-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-field.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/password-field/password-field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqC,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAExF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,iBAAiB,CAAC,GAAG;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa;wBAJJ,MAAM;wBACN,MAAM;oDAmC1B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PasswordField = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const components_1 = require("../../../components");
7
+ exports.PasswordField = (0, react_1.forwardRef)(function PasswordField({ isDisabled, showPasswordLabel = 'Show password', hidePasswordLabel = 'Hide password', ...textFieldProps }, ref) {
8
+ const [isPasswordVisible, setIsPasswordVisible] = (0, react_1.useState)(false);
9
+ function togglePasswordVisibility() {
10
+ setIsPasswordVisible((previousVisibility) => !previousVisibility);
11
+ }
12
+ return ((0, jsx_runtime_1.jsx)(components_1.TextField, { ...textFieldProps, ref: ref, isDisabled: isDisabled, type: isPasswordVisible ? 'text' : 'password', trailingElement: (0, jsx_runtime_1.jsx)(components_1.IconButton, { isDisabled: isDisabled, isClickable: !isDisabled, "aria-label": isPasswordVisible ? hidePasswordLabel : showPasswordLabel, icon: isPasswordVisible ? components_1.IconSymbol.EYE_SLASH : components_1.IconSymbol.EYE, onClick: togglePasswordVisibility }) }));
13
+ });
14
+ //# sourceMappingURL=password-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-field.js","sourceRoot":"","sources":["../../../../src/components/molecules/password-field/password-field.tsx"],"names":[],"mappings":";;;;AAAA,iCAA2D;AAC3D,oDAAwF;AAO3E,QAAA,aAAa,GAAG,IAAA,kBAAU,EAAC,SAAS,aAAa,CAC5D,EACE,UAAU,EACV,iBAAiB,GAAG,eAAe,EACnC,iBAAiB,GAAG,eAAe,EACnC,GAAG,cAAc,EACE,EACrB,GAAmC;IAEnC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAElE,SAAS,wBAAwB;QAC/B,oBAAoB,CAAC,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,CACL,uBAAC,sBAAS,OACJ,cAAc,EAClB,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,EAC7C,eAAe,EACb,uBAAC,uBAAU,IACT,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,CAAC,UAAU,gBACZ,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,EACrE,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,uBAAU,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAU,CAAC,GAAG,EAC/D,OAAO,EAAE,wBAAwB,GACjC,GAEJ,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './phone-field';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/phone-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./phone-field"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/phone-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '../../../components';
2
+ export type PhoneFieldProps = Omit<TextFieldProps, 'leadingElement' | 'type'> & {
3
+ countryCode?: string;
4
+ };
5
+ export declare const PhoneField: import("react").ForwardRefExoticComponent<Omit<TextFieldProps, "type" | "leadingElement"> & {
6
+ countryCode?: string;
7
+ } & import("react").RefAttributes<HTMLInputElement>>;
8
+ //# sourceMappingURL=phone-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-field.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/phone-field/phone-field.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,cAAc,EAAe,MAAM,qBAAqB,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,EAAE,gBAAgB,GAAG,MAAM,CAAC,GAAG;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,UAAU;kBAHP,MAAM;oDAkBpB,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhoneField = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const components_1 = require("../../../components");
7
+ exports.PhoneField = (0, react_1.forwardRef)(function PhoneField({ countryCode, inputMode = 'tel', ...textFieldProps }, ref) {
8
+ return ((0, jsx_runtime_1.jsx)(components_1.TextField, { ...textFieldProps, ref: ref, type: "tel", inputMode: inputMode, leadingElement: countryCode ? (0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, children: countryCode }) : undefined }));
9
+ });
10
+ //# sourceMappingURL=phone-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-field.js","sourceRoot":"","sources":["../../../../src/components/molecules/phone-field/phone-field.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiD;AACjD,oDAAmF;AAMtE,QAAA,UAAU,GAAG,IAAA,kBAAU,EAAC,SAAS,UAAU,CACtD,EAAE,WAAW,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,cAAc,EAAmB,EACtE,GAAmC;IAEnC,OAAO,CACL,uBAAC,sBAAS,OACJ,cAAc,EAClB,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,KAAK,EACV,SAAS,EAAE,SAAS,EACpB,cAAc,EACZ,WAAW,CAAC,CAAC,CAAC,uBAAC,iBAAI,IAAC,OAAO,EAAE,wBAAW,CAAC,IAAI,YAAG,WAAW,GAAQ,CAAC,CAAC,CAAC,SAAS,GAEjF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,11 +1,14 @@
1
1
  import { ComponentProps } from 'react';
2
+ import { MaskOptions } from '../../../../components';
2
3
  export type TextFieldInputProps = Omit<ComponentProps<'input'>, 'disabled' | 'required' | 'ref'> & {
3
4
  mask?: string;
5
+ maskOptions?: MaskOptions;
4
6
  isRequired?: boolean;
5
7
  isDisabled?: boolean;
6
8
  };
7
9
  export declare const TextFieldInput: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "disabled" | "ref" | "required"> & {
8
10
  mask?: string;
11
+ maskOptions?: MaskOptions;
9
12
  isRequired?: boolean;
10
13
  isDisabled?: boolean;
11
14
  } & import("react").RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"text-field-input.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/text-field/components/text-field-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA4B,MAAM,OAAO,CAAC;AAKjE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,cAAc,CAAC,OAAO,CAAC,EACvB,UAAU,GAAG,UAAU,GAAG,KAAK,CAChC,GAAG;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc;WALlB,MAAM;iBACA,OAAO;iBACP,OAAO;oDAsBpB,CAAC"}
1
+ {"version":3,"file":"text-field-input.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/text-field/components/text-field-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA4B,MAAM,OAAO,CAAC;AACjE,OAAO,EAAa,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIhE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,cAAc,CAAC,OAAO,CAAC,EACvB,UAAU,GAAG,UAAU,GAAG,KAAK,CAChC,GAAG;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc;WANlB,MAAM;kBACC,WAAW;iBACZ,OAAO;iBACP,OAAO;oDAuBpB,CAAC"}
@@ -6,7 +6,7 @@ const react_1 = require("react");
6
6
  const components_1 = require("../../../../components");
7
7
  const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
8
8
  const components_2 = require("../../../../components");
9
- exports.TextFieldInput = (0, react_1.forwardRef)(function TextFieldInput({ mask, isRequired, isDisabled, className, ...rest }, ref) {
10
- return ((0, jsx_runtime_1.jsx)(components_1.BaseInput, { ref: ref, mask: mask, required: isRequired, disabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('flex-grow py-4 px-4 bg-transparent text-gray-01', 'focus:outline-none', components_2.TextStyle[components_2.TextVariant.BODY], className), ...rest }));
9
+ exports.TextFieldInput = (0, react_1.forwardRef)(function TextFieldInput({ mask, maskOptions, isRequired, isDisabled, className, ...rest }, ref) {
10
+ return ((0, jsx_runtime_1.jsx)(components_1.BaseInput, { ref: ref, mask: mask, maskOptions: maskOptions, required: isRequired, disabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('flex-grow py-4 px-4 bg-transparent text-gray-01', 'focus:outline-none', components_2.TextStyle[components_2.TextVariant.BODY], className), ...rest }));
11
11
  });
12
12
  //# sourceMappingURL=text-field-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field-input.js","sourceRoot":"","sources":["../../../../../src/components/molecules/text-field/components/text-field-input.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiE;AACjE,uDAAmD;AACnD,qEAA4D;AAC5D,uDAAgE;AAWnD,QAAA,cAAc,GAAG,IAAA,kBAAU,EAAC,SAAS,cAAc,CAC9D,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,EAAuB,EACzE,GAAmC;IAEnC,OAAO,CACL,uBAAC,sBAAS,IACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,IAAA,yBAAQ,EACjB,iDAAiD,EACjD,oBAAoB,EACpB,sBAAS,CAAC,wBAAW,CAAC,IAAI,CAAC,EAC3B,SAAS,CACV,KACG,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"text-field-input.js","sourceRoot":"","sources":["../../../../../src/components/molecules/text-field/components/text-field-input.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiE;AACjE,uDAAgE;AAChE,qEAA4D;AAC5D,uDAAgE;AAYnD,QAAA,cAAc,GAAG,IAAA,kBAAU,EAAC,SAAS,cAAc,CAC9D,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,EAAuB,EACtF,GAAmC;IAEnC,OAAO,CACL,uBAAC,sBAAS,IACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,IAAA,yBAAQ,EACjB,iDAAiD,EACjD,oBAAoB,EACpB,sBAAS,CAAC,wBAAW,CAAC,IAAI,CAAC,EAC3B,SAAS,CACV,KACG,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
+ import { MaskOptions } from '../../../components';
2
3
  type Props = Omit<ComponentProps<'input'>, 'disabled' | 'required' | 'ref' | 'className'> & {
3
4
  isRequired?: boolean;
4
5
  isDisabled?: boolean;
5
6
  isErrorVisible?: boolean;
6
7
  mask?: string;
8
+ maskOptions?: MaskOptions;
7
9
  leadingElement?: ReactNode;
8
10
  trailingElement?: ReactNode;
9
11
  className?: string;
@@ -14,6 +16,7 @@ export declare const TextField: import("react").ForwardRefExoticComponent<Omit<i
14
16
  isDisabled?: boolean;
15
17
  isErrorVisible?: boolean;
16
18
  mask?: string;
19
+ maskOptions?: MaskOptions;
17
20
  leadingElement?: ReactNode;
18
21
  trailingElement?: ReactNode;
19
22
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5E,KAAK,KAAK,GAAG,IAAI,CACf,cAAc,CAAC,OAAO,CAAC,EACvB,UAAU,GAAG,UAAU,GAAG,KAAK,GAAG,WAAW,CAC9C,GAAG;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,SAAS;iBAVP,OAAO;iBACP,OAAO;qBACH,OAAO;WACjB,MAAM;qBACI,SAAS;sBACR,SAAS;gBACf,MAAM;qBACD,MAAM;oDA2CvB,CAAC;AAEH,YAAY,EAAE,KAAK,IAAI,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD,KAAK,KAAK,GAAG,IAAI,CACf,cAAc,CAAC,OAAO,CAAC,EACvB,UAAU,GAAG,UAAU,GAAG,KAAK,GAAG,WAAW,CAC9C,GAAG;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,SAAS;iBAXP,OAAO;iBACP,OAAO;qBACH,OAAO;WACjB,MAAM;kBACC,WAAW;qBACR,SAAS;sBACR,SAAS;gBACf,MAAM;qBACD,MAAM;oDA6CvB,CAAC;AAEH,YAAY,EAAE,KAAK,IAAI,cAAc,EAAE,CAAC"}
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const tailwind_utils_1 = require("../../../utils/tailwind-utils");
7
7
  const text_field_input_1 = require("./components/text-field-input");
8
- exports.TextField = (0, react_1.forwardRef)(function TextField({ isRequired, isDisabled, isErrorVisible, mask, leadingElement, trailingElement, className, inputClassName, ...rest }, ref) {
9
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex items-center w-full', 'border border-gray-04 rounded-lg bg-white', 'hover:border-blue-02 focus-within:border-blue-01 focus-within:hover:border-blue-01', 'focus-within:ring-1 focus-within:ring-blue-01', isErrorVisible && 'border-red-01 focus-within:ring-red-01', className), children: [leadingElement && (0, jsx_runtime_1.jsx)("div", { className: "flex-shrink-0 pl-4 text-gray-01", children: leadingElement }), (0, jsx_runtime_1.jsx)(text_field_input_1.TextFieldInput, { ref: ref, mask: mask, isRequired: isRequired, isDisabled: isDisabled, "aria-invalid": isErrorVisible || undefined, className: (0, tailwind_utils_1.tailwind)(leadingElement ? 'px-2' : 'px-4', inputClassName), ...rest }), trailingElement && (0, jsx_runtime_1.jsx)("div", { className: "flex-shrink-0 pr-4 text-gray-01", children: trailingElement })] }));
8
+ exports.TextField = (0, react_1.forwardRef)(function TextField({ isRequired, isDisabled, isErrorVisible, mask, maskOptions, leadingElement, trailingElement, className, inputClassName, ...rest }, ref) {
9
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex items-center w-full', 'border border-gray-04 rounded-lg bg-white', 'hover:border-blue-02 focus-within:border-blue-01 focus-within:hover:border-blue-01', 'focus-within:ring-1 focus-within:ring-blue-01', isErrorVisible && 'border-red-01 focus-within:ring-red-01', className), children: [leadingElement && (0, jsx_runtime_1.jsx)("div", { className: "flex-shrink-0 pl-4 text-gray-01", children: leadingElement }), (0, jsx_runtime_1.jsx)(text_field_input_1.TextFieldInput, { ref: ref, mask: mask, maskOptions: maskOptions, isRequired: isRequired, isDisabled: isDisabled, "aria-invalid": isErrorVisible || undefined, className: (0, tailwind_utils_1.tailwind)(leadingElement ? 'px-2' : 'px-4', inputClassName), ...rest }), trailingElement && (0, jsx_runtime_1.jsx)("div", { className: "flex-shrink-0 pr-4 text-gray-01", children: trailingElement })] }));
10
10
  });
11
11
  //# sourceMappingURL=text-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/text-field.tsx"],"names":[],"mappings":";;;;AAAA,iCAA4E;AAC5E,kEAAyD;AACzD,oEAA+D;AAgBlD,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAC,SAAS,SAAS,CACpD,EACE,UAAU,EACV,UAAU,EACV,cAAc,EACd,IAAI,EACJ,cAAc,EACd,eAAe,EACf,SAAS,EACT,cAAc,EACd,GAAG,IAAI,EACD,EACR,GAAmC;IAEnC,OAAO,CACL,iCACE,SAAS,EAAE,IAAA,yBAAQ,EACjB,0BAA0B,EAC1B,2CAA2C,EAC3C,oFAAoF,EACpF,+CAA+C,EAC/C,cAAc,IAAI,wCAAwC,EAC1D,SAAS,CACV,aAEA,cAAc,IAAI,gCAAK,SAAS,EAAC,iCAAiC,YAAE,cAAc,GAAO,EAE1F,uBAAC,iCAAc,IACb,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,kBACR,cAAc,IAAI,SAAS,EACzC,SAAS,EAAE,IAAA,yBAAQ,EAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,cAAc,CAAC,KACjE,IAAI,GACR,EAED,eAAe,IAAI,gCAAK,SAAS,EAAC,iCAAiC,YAAE,eAAe,GAAO,IACxF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/text-field.tsx"],"names":[],"mappings":";;;;AAAA,iCAA4E;AAE5E,kEAAyD;AACzD,oEAA+D;AAiBlD,QAAA,SAAS,GAAG,IAAA,kBAAU,EAAC,SAAS,SAAS,CACpD,EACE,UAAU,EACV,UAAU,EACV,cAAc,EACd,IAAI,EACJ,WAAW,EACX,cAAc,EACd,eAAe,EACf,SAAS,EACT,cAAc,EACd,GAAG,IAAI,EACD,EACR,GAAmC;IAEnC,OAAO,CACL,iCACE,SAAS,EAAE,IAAA,yBAAQ,EACjB,0BAA0B,EAC1B,2CAA2C,EAC3C,oFAAoF,EACpF,+CAA+C,EAC/C,cAAc,IAAI,wCAAwC,EAC1D,SAAS,CACV,aAEA,cAAc,IAAI,gCAAK,SAAS,EAAC,iCAAiC,YAAE,cAAc,GAAO,EAE1F,uBAAC,iCAAc,IACb,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,kBACR,cAAc,IAAI,SAAS,EACzC,SAAS,EAAE,IAAA,yBAAQ,EAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,cAAc,CAAC,KACjE,IAAI,GACR,EAED,eAAe,IAAI,gCAAK,SAAS,EAAC,iCAAiC,YAAE,eAAe,GAAO,IACxF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MaskOptions } from '../../../components';
2
+ import { DocumentType } from './document-field-types';
3
+ export declare const DOCUMENT_TYPE_MASKS: Record<DocumentType, MaskOptions>;
4
+ export declare const DOCUMENT_TYPE_ORDER: DocumentType[];
5
+ //# sourceMappingURL=document-field-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-field-constants.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,YAAY,EAAE,WAAW,CASjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAAY,EAK7C,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DOCUMENT_TYPE_ORDER = exports.DOCUMENT_TYPE_MASKS = void 0;
4
+ const document_field_types_1 = require("./document-field-types");
5
+ exports.DOCUMENT_TYPE_MASKS = {
6
+ [document_field_types_1.DocumentType.PHYSICAL]: { mask: '0 0000 0000' },
7
+ [document_field_types_1.DocumentType.LEGAL]: {
8
+ mask: '0 000 CCCCCC',
9
+ definitions: { C: /[A-Za-z0-9]/ },
10
+ prepare: (value) => value.toUpperCase(),
11
+ },
12
+ [document_field_types_1.DocumentType.NITE]: { mask: '0000000000' },
13
+ [document_field_types_1.DocumentType.DIMEX]: { mask: '00000000000[0]' },
14
+ };
15
+ exports.DOCUMENT_TYPE_ORDER = [
16
+ document_field_types_1.DocumentType.PHYSICAL,
17
+ document_field_types_1.DocumentType.LEGAL,
18
+ document_field_types_1.DocumentType.DIMEX,
19
+ document_field_types_1.DocumentType.NITE,
20
+ ];
21
+ //# sourceMappingURL=document-field-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-field-constants.js","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field-constants.ts"],"names":[],"mappings":";;;AACA,iEAAsD;AAEzC,QAAA,mBAAmB,GAAsC;IACpE,CAAC,mCAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;IAChD,CAAC,mCAAY,CAAC,KAAK,CAAC,EAAE;QACpB,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,EAAE,CAAC,EAAE,aAAa,EAAE;QACjC,OAAO,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE;KAChD;IACD,CAAC,mCAAY,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;IAC3C,CAAC,mCAAY,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;CACjD,CAAC;AAEW,QAAA,mBAAmB,GAAmB;IACjD,mCAAY,CAAC,QAAQ;IACrB,mCAAY,CAAC,KAAK;IAClB,mCAAY,CAAC,KAAK;IAClB,mCAAY,CAAC,IAAI;CAClB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare enum DocumentType {
2
+ PHYSICAL = "PHYSICAL",
3
+ LEGAL = "LEGAL",
4
+ DIMEX = "DIMEX",
5
+ NITE = "NITE"
6
+ }
7
+ //# sourceMappingURL=document-field-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-field-types.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field-types.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentType = void 0;
4
+ var DocumentType;
5
+ (function (DocumentType) {
6
+ DocumentType["PHYSICAL"] = "PHYSICAL";
7
+ DocumentType["LEGAL"] = "LEGAL";
8
+ DocumentType["DIMEX"] = "DIMEX";
9
+ DocumentType["NITE"] = "NITE";
10
+ })(DocumentType || (exports.DocumentType = DocumentType = {}));
11
+ //# sourceMappingURL=document-field-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-field-types.js","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
@@ -0,0 +1,17 @@
1
+ import { DocumentType } from './document-field-types';
2
+ export declare const DOCUMENT_TYPE_PATTERNS: Record<DocumentType, RegExp>;
3
+ export declare function stripDocumentNumber(value: string): string;
4
+ export declare function isValidDocumentNumber(type: DocumentType | undefined, value: string): boolean;
5
+ export type DocumentValidationMessages = {
6
+ typeRequired: string;
7
+ numberRequired: string;
8
+ numberFormat: string;
9
+ };
10
+ export type DocumentValidationFieldNames = {
11
+ typeName?: string;
12
+ numberName?: string;
13
+ };
14
+ export declare function documentValidationSchema(messages: DocumentValidationMessages, fieldNames?: DocumentValidationFieldNames): {
15
+ [x: string]: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
16
+ };
17
+ //# sourceMappingURL=document-field-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-field-validation.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/document-field/document-field-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAK/D,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAM5F;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,0BAA0B,EACpC,UAAU,GAAE,4BAAiC;;EAgB9C"}