@digigov/form 1.0.0-002c630d → 1.0.0-00643e1d

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 (66) hide show
  1. package/FormBuilder/FormBuilder.mdx +4 -7
  2. package/MultiplicityField/__stories__/PreviewDisplay.js +1 -1
  3. package/Questions/Step/StepArrayReview.js +2 -2
  4. package/Questions/Step/StepTitle.d.ts +2 -2
  5. package/Questions/Step/StepTitle.js +9 -3
  6. package/Questions/Step/index.d.ts +4 -4
  7. package/Questions/Step/index.js +53 -36
  8. package/Questions/__snapshots__/index.spec.tsx.snap +69 -356
  9. package/Questions/__stories__/Default.js +1 -1
  10. package/Questions/index.mdx +4 -4
  11. package/es/FormBuilder/FormBuilder.mdx +4 -7
  12. package/es/MultiplicityField/__stories__/PreviewDisplay.js +1 -1
  13. package/es/Questions/Step/StepArrayReview.js +2 -2
  14. package/es/Questions/Step/StepTitle.js +7 -3
  15. package/es/Questions/Step/index.js +4 -4
  16. package/es/Questions/__snapshots__/index.spec.tsx.snap +69 -356
  17. package/es/Questions/__stories__/Default.js +1 -1
  18. package/es/Questions/index.mdx +4 -4
  19. package/es/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
  20. package/es/inputs/DateInput/__stories__/Default.js +0 -18
  21. package/es/inputs/FileInput/index.js +1 -1
  22. package/es/inputs/OtpInput/index.js +5 -5
  23. package/es/inputs/Radio/__stories__/Default.js +1 -1
  24. package/es/inputs/Radio/__stories__/WithDivider.js +2 -2
  25. package/es/inputs/Select/__stories__/Default.js +1 -1
  26. package/esm/FormBuilder/FormBuilder.mdx +4 -7
  27. package/esm/MultiplicityField/__stories__/PreviewDisplay.js +1 -1
  28. package/esm/Questions/Step/StepArrayReview.js +2 -2
  29. package/esm/Questions/Step/StepTitle.js +7 -3
  30. package/esm/Questions/Step/index.js +4 -4
  31. package/esm/Questions/__snapshots__/index.spec.tsx.snap +69 -356
  32. package/esm/Questions/__stories__/Default.js +1 -1
  33. package/esm/Questions/index.mdx +4 -4
  34. package/esm/index.js +1 -1
  35. package/esm/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
  36. package/esm/inputs/DateInput/__stories__/Default.js +0 -18
  37. package/esm/inputs/FileInput/index.js +1 -1
  38. package/esm/inputs/OtpInput/index.js +5 -5
  39. package/esm/inputs/Radio/__stories__/Default.js +1 -1
  40. package/esm/inputs/Radio/__stories__/WithDivider.js +2 -2
  41. package/esm/inputs/Select/__stories__/Default.js +1 -1
  42. package/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
  43. package/inputs/DateInput/__stories__/Default.js +0 -18
  44. package/inputs/FileInput/index.js +1 -1
  45. package/inputs/OtpInput/index.js +5 -5
  46. package/inputs/Radio/__stories__/Default.js +1 -1
  47. package/inputs/Radio/__stories__/WithDivider.js +2 -2
  48. package/inputs/Select/__stories__/Default.js +1 -1
  49. package/package.json +4 -4
  50. package/src/FormBuilder/FormBuilder.mdx +4 -7
  51. package/src/MultiplicityField/__stories__/PreviewDisplay.tsx +4 -4
  52. package/src/Questions/Step/StepArrayReview.tsx +3 -3
  53. package/src/Questions/Step/StepTitle.tsx +11 -14
  54. package/src/Questions/Step/index.ts +4 -4
  55. package/src/Questions/__snapshots__/index.spec.tsx.snap +69 -356
  56. package/src/Questions/__stories__/Default.tsx +4 -4
  57. package/src/Questions/index.mdx +4 -4
  58. package/src/inputs/Checkboxes/__stories__/WithDivider.tsx +1 -1
  59. package/src/inputs/DateInput/__stories__/Default.tsx +0 -16
  60. package/src/inputs/FileInput/index.tsx +1 -1
  61. package/src/inputs/OtpInput/index.tsx +8 -8
  62. package/src/inputs/Radio/__stories__/Default.tsx +1 -1
  63. package/src/inputs/Radio/__stories__/WithDivider.tsx +2 -2
  64. package/src/inputs/Select/__stories__/Default.tsx +1 -1
  65. package/src/types.tsx +1 -1
  66. package/types.d.ts +1 -1
@@ -13,7 +13,7 @@ export const WithDivider = () => (
13
13
  name="string"
14
14
  type="choice:single"
15
15
  required
16
- label={{ primary: 'Ποια ειναι η χώρα της διαμονής σας;' }}
16
+ label={{ primary: 'Ποιά είναι η χώρα της διαμονής σας;' }}
17
17
  extra={{
18
18
  options: [
19
19
  {
@@ -31,7 +31,7 @@ export const WithDivider = () => (
31
31
  {
32
32
  label: { primary: 'Ηνωμένες Πολιτείες της Αμερικής' },
33
33
  value: 'usa',
34
- divider: 'ή',
34
+ dividerText: 'ή',
35
35
  },
36
36
  ],
37
37
  }}
@@ -13,7 +13,7 @@ export const Default = () => (
13
13
  name="string"
14
14
  type="choice:single"
15
15
  required
16
- label={{ primary: 'Ποια ειναι η χώρα της διαμονής σας;' }}
16
+ label={{ primary: 'Ποιά είναι η χώρα της διαμονής σας;' }}
17
17
  extra={{
18
18
  component: 'Select',
19
19
  options: [
package/src/types.tsx CHANGED
@@ -59,7 +59,7 @@ export interface FieldSpec {
59
59
  >;
60
60
  validators?: ValidatorSchema[];
61
61
  wrapper?: 'label' | 'fieldset';
62
- characterWidth?: number;
62
+ maxWidth?: string;
63
63
  width?: string;
64
64
  }
65
65
 
package/types.d.ts CHANGED
@@ -32,7 +32,7 @@ export interface FieldSpec {
32
32
  layout?: Record<string, GridProps['xs'] | GridProps['sm'] | GridProps['md'] | GridProps['lg'] | GridProps['xl']>;
33
33
  validators?: ValidatorSchema[];
34
34
  wrapper?: 'label' | 'fieldset';
35
- characterWidth?: number;
35
+ maxWidth?: string;
36
36
  width?: string;
37
37
  }
38
38
  export interface FieldsetSpec {