srcdev-nuxt-forms 2.4.24 → 3.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 (86) hide show
  1. package/nuxt.config.ts +3 -0
  2. package/package.json +2 -2
  3. package/assets/styles/ally/_utils.css +0 -20
  4. package/assets/styles/ally/_variables.css +0 -8
  5. package/assets/styles/ally/index.css +0 -2
  6. package/assets/styles/forms/index.css +0 -2
  7. package/assets/styles/forms/themes/_error.css +0 -85
  8. package/assets/styles/forms/themes/_ghost.css +0 -85
  9. package/assets/styles/forms/themes/_input-action-underlined.css +0 -20
  10. package/assets/styles/forms/themes/_input-action.css +0 -20
  11. package/assets/styles/forms/themes/_primary.css +0 -92
  12. package/assets/styles/forms/themes/_secondary.css +0 -85
  13. package/assets/styles/forms/themes/_success.css +0 -85
  14. package/assets/styles/forms/themes/_tertiary.css +0 -85
  15. package/assets/styles/forms/themes/_warning.css +0 -85
  16. package/assets/styles/forms/themes/index.css +0 -9
  17. package/assets/styles/forms/variables/_sizes.css +0 -71
  18. package/assets/styles/forms/variables/_theme.css +0 -11
  19. package/assets/styles/forms/variables/index.css +0 -2
  20. package/assets/styles/main.css +0 -5
  21. package/assets/styles/typography/index.css +0 -2
  22. package/assets/styles/typography/utils/_font-classes.css +0 -190
  23. package/assets/styles/typography/utils/_weights.css +0 -69
  24. package/assets/styles/typography/utils/index.css +0 -2
  25. package/assets/styles/typography/variables/_colors.css +0 -14
  26. package/assets/styles/typography/variables/_reponsive-font-size.css +0 -10
  27. package/assets/styles/typography/variables/index.css +0 -2
  28. package/assets/styles/utils/_margin-helpers.css +0 -334
  29. package/assets/styles/utils/_padding-helpers.css +0 -308
  30. package/assets/styles/utils/_page.css +0 -36
  31. package/assets/styles/utils/index.css +0 -3
  32. package/assets/styles/variables/colors/_blue.css +0 -15
  33. package/assets/styles/variables/colors/_gray.css +0 -16
  34. package/assets/styles/variables/colors/_green.css +0 -15
  35. package/assets/styles/variables/colors/_orange.css +0 -15
  36. package/assets/styles/variables/colors/_red.css +0 -15
  37. package/assets/styles/variables/colors/_yellow.css +0 -15
  38. package/assets/styles/variables/colors/colors.css +0 -6
  39. package/assets/styles/variables/index.css +0 -1
  40. package/components/forms/c12/prop-validators/index.ts +0 -38
  41. package/components/forms/c12/utils.ts +0 -14
  42. package/components/forms/form-errors/InputError.vue +0 -172
  43. package/components/forms/form-errors/tests/InputError.spec.ts +0 -67
  44. package/components/forms/input-button/InputButtonCore.vue +0 -191
  45. package/components/forms/input-button/variants/InputButtonConfirm.vue +0 -66
  46. package/components/forms/input-button/variants/InputButtonSubmit.vue +0 -62
  47. package/components/forms/input-checkbox/MultipleCheckboxes.vue +0 -203
  48. package/components/forms/input-checkbox/SingleCheckbox.vue +0 -169
  49. package/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +0 -98
  50. package/components/forms/input-checkbox/tests/data/tags.json +0 -67
  51. package/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +0 -214
  52. package/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +0 -191
  53. package/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +0 -111
  54. package/components/forms/input-number/InputNumberCore.vue +0 -203
  55. package/components/forms/input-number/variants/InputNumberDefault.vue +0 -154
  56. package/components/forms/input-radio/MultipleRadiobuttons.vue +0 -201
  57. package/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +0 -89
  58. package/components/forms/input-radio/tests/data/tags.json +0 -67
  59. package/components/forms/input-range/InputRangeCore.vue +0 -274
  60. package/components/forms/input-range/variants/InputRangeDefault.vue +0 -156
  61. package/components/forms/input-range-fancy/InputRangeFancyCore.vue +0 -450
  62. package/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +0 -124
  63. package/components/forms/input-text/InputTextCore.vue +0 -331
  64. package/components/forms/input-text/variants/InputPasswordWithLabel.vue +0 -130
  65. package/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +0 -187
  66. package/components/forms/input-text/variants/InputTextWithLabel.vue +0 -298
  67. package/components/forms/input-textarea/InputTextareaCore.vue +0 -234
  68. package/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +0 -267
  69. package/components/forms/toggle-switch/ToggleSwitchCore.vue +0 -198
  70. package/components/forms/toggle-switch/ToggleSwitchCoreOld.vue +0 -216
  71. package/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +0 -105
  72. package/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +0 -102
  73. package/components/forms/ui/FormField.vue +0 -78
  74. package/components/forms/ui/FormWrapper.vue +0 -35
  75. package/components/utils/colour-scheme-select/ColourSchemeSelect.vue +0 -270
  76. package/components/utils/colour-scheme-select/ColourSchemeSelectOld.vue +0 -225
  77. package/components/utils/dark-mode-switcher/DarkModeSwitcher.vue +0 -47
  78. package/composables/useApiRequest.ts +0 -25
  79. package/composables/useColourScheme.ts +0 -25
  80. package/composables/useErrorMessages.ts +0 -59
  81. package/composables/useFormControl.ts +0 -248
  82. package/composables/useSleep.ts +0 -5
  83. package/composables/useStyleClassPassthrough.ts +0 -30
  84. package/composables/useZodValidation.ts +0 -148
  85. package/types/types.forms.ts +0 -216
  86. package/types/types.zodFormControl.ts +0 -21
@@ -1,85 +0,0 @@
1
- :root {
2
- [data-form-theme='warning'] {
3
- --theme-form-input-bg-normal: light-dark(var(--gray-1), var(--gray-4));
4
- --theme-form-input-bg-outlined: light-dark(var(--gray-1), var(--gray-4));
5
- --theme-form-input-bg-underlined: light-dark(var(--gray-1), var(--gray-4));
6
- --theme-form-input-border: var(--orange-8);
7
- --theme-form-input-border-active: var(--orange-2);
8
- --theme-form-input-border-focus: var(--orange-2);
9
- --theme-form-input-outline: white;
10
- --theme-form-input-outline-active: var(--orange-6);
11
- --theme-form-input-outline-focus: var(--orange-6);
12
- --theme-form-input-text-color-normal: light-dark(var(--gray-10), var(--gray-11));
13
- --theme-form-input-text-color-outlined: light-dark(var(--gray-10), var(--gray-1));
14
- --theme-form-input-text-color-underlined: light-dark(var(--gray-11), var(--gray-1));
15
-
16
- --theme-form-input-text-label-color-normal: light-dark(var(--gray-11), var(--gray-1));
17
- --theme-form-input-text-label-color-outlined: light-dark(var(--gray-10), var(--gray-11));
18
- --theme-form-input-text-label-color-underlined: light-dark(var(--gray-11), var(--gray-1));
19
-
20
- --theme-form-focus-box-shadow: light-dark(var(--orange-12), var(--orange-2));
21
-
22
- --theme-form-checkbox-bg: light-dark(var(--gray-1), var(--gray-4));
23
- --theme-form-checkbox-border: light-dark(var(--orange-12), var(--orange-12));
24
- --theme-form-checkbox-outline: light-dark(var(--orange-1), var(--orange-1));
25
- --theme-form-checkbox-shadow: transparent;
26
- --theme-form-checkbox-shadow-focus: var(--orange-6);
27
- --theme-form-checkbox-symbol: var(--orange-12);
28
-
29
- --theme-form-radio-bg: light-dark(var(--gray-1), var(--gray-4));
30
- --theme-form-radio-border: light-dark(var(--orange-12), var(--orange-12));
31
- --theme-form-radio-outline: light-dark(var(--orange-1), var(--orange-1));
32
- --theme-form-radio-shadow: transparent;
33
- --theme-form-radio-shadow-focus: var(--orange-6);
34
- --theme-form-radio-symbol: var(--orange-12);
35
-
36
- --theme-form-range-accent-color: light-dark(var(--orange-12), var(--orange-3));
37
-
38
- /*
39
- * ToggleSwitch
40
- **/
41
- --theme-form-toggle-bg-off: light-dark(var(--gray-1), var(--gray-4));
42
- --theme-form-toggle-bg-on: light-dark(var(--gray-1), var(--gray-6));
43
-
44
- --theme-form-toggle-border: var(--form-element-border-width) solid light-dark(var(--orange-12), var(--orange-1));
45
-
46
- --theme-form-toggle-outline: var(--form-element-outline-width) solid light-dark(var(--orange-12), var(--orange-12));
47
- --theme-form-toggle-symbol-off: var(--orange-12);
48
- --theme-form-toggle-symbol-on: var(--gray-12);
49
- --theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
50
- --theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
51
-
52
- /*
53
- * Checkbox as button
54
- **/
55
-
56
- --theme-checkbox-radio-button-bg-default: light-dark(var(--gray-1), var(--gray-4));
57
-
58
- --theme-checkbox-radio-button-border-default: light-dark(var(--orange-12), var(--orange-12));
59
- --theme-checkbox-radio-button-border-width: 0.1rem;
60
-
61
- --theme-checkbox-radio-button-outline-default: light-dark(var(--orange-5), var(--orange-5));
62
- --theme-checkbox-radio-button-outline-width: 0.1rem;
63
-
64
- --theme-checkbox-radio-button-label-default: light-dark(var(--orange-12), var(--orange-12));
65
- }
66
-
67
- [data-btn-theme='warning'] {
68
- --theme-btn-bg: var(--orange-12);
69
- --theme-btn-border: var(--orange-0);
70
- --theme-btn-outline: var(--orange-12);
71
- --theme-btn-text: var(--orange-0);
72
-
73
- --theme-btn-bg-hover: var(--orange-0);
74
- --theme-btn-border-hover: var(--orange-12);
75
- --theme-btn-outline-hover: var(--orange-0);
76
- --theme-btn-text-hover: var(--orange-12);
77
-
78
- --theme-btn-bg-focus: var(--orange-0);
79
- --theme-btn-border-focus: var(--orange-12);
80
- --theme-btn-outline-focus: var(--orange-0);
81
- --theme-btn-text-focus: var(--orange-12);
82
-
83
- --theme-form-focus-box-shadow: light-dark(var(--orange-12), var(--orange-2));
84
- }
85
- }
@@ -1,9 +0,0 @@
1
- @import './_primary';
2
- @import './_secondary';
3
- @import './_tertiary';
4
- @import './_ghost';
5
- @import './_error';
6
- @import './_success';
7
- @import './_warning';
8
- @import './_input-action';
9
- @import './_input-action-underlined';
@@ -1,71 +0,0 @@
1
- :root {
2
- --form-element-padding-block-start: 0.4lh;
3
- --form-element-padding-block-end: 0.4lh;
4
- --form-element-border-width: 0.2rem;
5
- --form-element-border-width-underlined: 0.4rem;
6
- --form-element-outline-width: 0.1rem;
7
-
8
- --form-text-padding-inline: 0.5em;
9
- --form-button-padding-inline: 1.25em;
10
- --form-button-icon-gap: 1em;
11
-
12
- [data-size='x-small'] {
13
- --form-element-font-size: var(--step-0);
14
- --form-placeholder-font-size: calc(var(--step-0) * 0.65);
15
- --form-element-line-height: var(--step-0);
16
- --form-input-border-radius: 0.4rem;
17
- --form-icon-only-button-size: calc(var(--step-1) * 2 + 1px);
18
- --form-toggle-symbol-size: calc(var(--step-0) * 1.55);
19
- --form-toggle-switch-width-adjustment: 0.5rem;
20
-
21
- --form-input-checkbox-radio-button-size: var(--step-0);
22
- }
23
- [data-size='small'] {
24
- --form-element-font-size: var(--step-1);
25
- --form-placeholder-font-size: calc(var(--step-1) * 0.65);
26
- --form-element-line-height: var(--step-1);
27
- --form-icon-size: var(--step-1);
28
- --form-input-border-radius: 0.4rem;
29
- --form-icon-only-button-size: calc(var(--step-1) * 2.25 + 1px);
30
- --form-toggle-symbol-size: calc(var(--step-1) * 1.635);
31
- --form-toggle-switch-width-adjustment: 0.3rem;
32
-
33
- --form-input-checkbox-radio-button-size: var(--step-1);
34
- }
35
- [data-size='normal'] {
36
- --form-element-font-size: var(--step-2);
37
- --form-placeholder-font-size: calc(var(--step-2) * 0.65);
38
- --form-element-line-height: var(--step-2);
39
- --form-icon-size: var(--step-2);
40
- --form-input-border-radius: 0.4rem;
41
- --form-icon-only-button-size: calc(var(--step-1) * 2.5 + 1px);
42
- --form-toggle-symbol-size: calc(var(--step-2) * 1.72);
43
- --form-toggle-switch-width-adjustment: 0.2rem;
44
-
45
- --form-input-checkbox-radio-button-size: var(--step-2);
46
- }
47
- [data-size='medium'] {
48
- --form-element-font-size: var(--step-3);
49
- --form-placeholder-font-size: calc(var(--step-3) * 0.65);
50
- --form-element-line-height: var(--step-3);
51
- --form-icon-size: var(--step-3);
52
- --form-input-border-radius: 0.4rem;
53
- --form-icon-only-button-size: calc(var(--step-1) * 2.75 + 1px);
54
- --form-toggle-symbol-size: calc(var(--step-3) * 1.78);
55
- --form-toggle-switch-width-adjustment: 0rem;
56
-
57
- --form-input-checkbox-radio-button-size: var(--step-3);
58
- }
59
- [data-size='large'] {
60
- --form-element-font-size: var(--step-4);
61
- --form-placeholder-font-size: calc(var(--step-4) * 0.65);
62
- --form-element-line-height: var(--step-4);
63
- --form-icon-size: var(--step-4);
64
- --form-input-border-radius: 0.4rem;
65
- --form-icon-only-button-size: calc(var(--step-1) * 3 + 1px);
66
- --form-toggle-symbol-size: calc(var(--step-4) * 1.816);
67
- --form-toggle-switch-width-adjustment: -0.2rem;
68
-
69
- --form-input-checkbox-radio-button-size: var(--step-4);
70
- }
71
- }
@@ -1,11 +0,0 @@
1
- :root {
2
- --font-size: 1.6rem;
3
- --line-height: calc((var(--font-size) * 2) - 1rem);
4
-
5
- --font-family: futura-pt, Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
6
-
7
- --theme-error-surface: var(--red-12);
8
- --theme-error-text: var(--red-0);
9
-
10
- --theme-form-button-font-size-normal: var(--form-element-font-size);
11
- }
@@ -1,2 +0,0 @@
1
- @import './_theme.css';
2
- @import './_sizes.css';
@@ -1,5 +0,0 @@
1
- @import './variables';
2
- @import './forms';
3
- @import './utils';
4
- @import './typography';
5
- @import './ally/';
@@ -1,2 +0,0 @@
1
- @import './utils';
2
- @import './variables';
@@ -1,190 +0,0 @@
1
- .heading-1 {
2
- font-size: var(--step-5);
3
- font-weight: bold;
4
- line-height: 1.3;
5
- }
6
-
7
- .heading-2 {
8
- font-size: var(--step-4);
9
- font-weight: bold;
10
- line-height: 1.3;
11
- }
12
-
13
- .heading-3 {
14
- font-size: var(--step-3);
15
- font-weight: bold;
16
- line-height: 1.3;
17
- }
18
-
19
- .heading-4 {
20
- font-size: var(--step-2);
21
- font-weight: bold;
22
- line-height: 1.3;
23
- }
24
-
25
- .heading-5 {
26
- font-size: var(--step-1);
27
- font-weight: bold;
28
- line-height: 1.3;
29
- }
30
-
31
- .heading-6 {
32
- font-size: var(--step-0);
33
- font-weight: bold;
34
- line-height: 1.3;
35
- }
36
-
37
- /* Body text */
38
-
39
- .body-large {
40
- font-size: var(--step-3);
41
- font-weight: normal;
42
- line-height: 1.5;
43
- }
44
-
45
- .body-medium {
46
- font-size: var(--step-2);
47
- font-weight: normal;
48
- line-height: 1.5;
49
- }
50
-
51
- .body-normal {
52
- font-size: var(--step-1);
53
- font-weight: normal;
54
- line-height: 1.5;
55
- }
56
-
57
- .body-small {
58
- font-size: var(--step--0);
59
- font-weight: normal;
60
- line-height: 1.5;
61
- }
62
-
63
- .body-xsmall {
64
- font-size: var(--step--1);
65
- font-weight: normal;
66
- line-height: 1.5;
67
- }
68
-
69
- .body-large-semibold {
70
- font-size: var(--step-3);
71
- font-weight: 500;
72
- line-height: 1.5;
73
- }
74
-
75
- .body-medium-semibold {
76
- font-size: var(--step-2);
77
- font-weight: 500;
78
- line-height: 1.5;
79
- }
80
-
81
- .body-normal-semibold {
82
- font-size: var(--step-1);
83
- font-weight: 500;
84
- line-height: 1.5;
85
- }
86
-
87
- .body-small-semibold {
88
- font-size: var(--step-0);
89
- font-weight: 500;
90
- line-height: 1.5;
91
- }
92
-
93
- .body-xsmall-semibold {
94
- font-size: var(--step--1);
95
- font-weight: 500;
96
- line-height: 1.5;
97
- }
98
-
99
- .body-large-bold {
100
- font-size: var(--step-3);
101
- font-weight: bold;
102
- line-height: 1.5;
103
- }
104
-
105
- .body-medium-bold {
106
- font-size: var(--step-2);
107
- font-weight: bold;
108
- line-height: 1.5;
109
- }
110
-
111
- .body-normal-bold {
112
- font-size: var(--step-1);
113
- font-weight: bold;
114
- line-height: 1.5;
115
- }
116
-
117
- .body-small-bold {
118
- font-size: var(--step-0);
119
- font-weight: bold;
120
- line-height: 1.5;
121
- }
122
-
123
- .body-xsmall-bold {
124
- font-size: var(--step--1);
125
- font-weight: bold;
126
- line-height: 1.5;
127
- }
128
-
129
- /* Links */
130
-
131
- .link-large {
132
- color: var(--theme-link-default);
133
- font-size: var(--step-3);
134
- font-weight: 600;
135
- line-height: 1.5;
136
- text-decoration: underline;
137
-
138
- &:visited {
139
- color: var(--theme-link-default);
140
- }
141
- }
142
-
143
- .link-medium {
144
- color: var(--theme-link-default);
145
- font-size: var(--step-2);
146
- font-weight: 600;
147
- line-height: 1.5;
148
- text-decoration: underline;
149
-
150
- &:visited {
151
- color: var(--theme-link-default);
152
- }
153
- }
154
-
155
- .link-normal {
156
- color: var(--theme-link-default);
157
- font-size: var(--step-1);
158
- font-weight: 600;
159
- line-height: 1.5;
160
- text-decoration: underline;
161
-
162
- &:visited,
163
- &:active {
164
- color: var(--theme-link-default);
165
- }
166
- }
167
-
168
- .link-small {
169
- color: var(--theme-link-default);
170
- font-size: var(--step-0);
171
- font-weight: 600;
172
- line-height: 1.5;
173
- text-decoration: underline;
174
-
175
- &:visited {
176
- color: var(--theme-link-default);
177
- }
178
- }
179
-
180
- .link-xsmall {
181
- color: var(--theme-link-default);
182
- font-size: var(--step--1);
183
- font-weight: 600;
184
- line-height: 1.5;
185
- text-decoration: underline;
186
-
187
- &:visited {
188
- color: var(--theme-link-default);
189
- }
190
- }
@@ -1,69 +0,0 @@
1
- /* By numeric step */
2
- .wght-100 {
3
- font-weight: 100;
4
- }
5
- .wght-200 {
6
- font-weight: 200;
7
- }
8
- .wght-300 {
9
- font-weight: 300;
10
- }
11
- .wght-400 {
12
- font-weight: 400;
13
- }
14
- .wght-500 {
15
- font-weight: 500;
16
- }
17
- .wght-600 {
18
- font-weight: 600;
19
- }
20
- .wght-700 {
21
- font-weight: 700;
22
- }
23
- .wght-800 {
24
- font-weight: 800;
25
- }
26
- .wght-900 {
27
- font-weight: 900;
28
- }
29
-
30
- /* By named weight */
31
- .light {
32
- font-weight: light;
33
- }
34
- .normal {
35
- font-weight: normal;
36
- }
37
- .bold {
38
- font-weight: bold;
39
- }
40
-
41
- /* Using the font-variation-settings property. */
42
-
43
- .fvs-wght-100 {
44
- font-variation-settings: 'wght' 100;
45
- }
46
- .fvs-wght-200 {
47
- font-variation-settings: 'wght' 200;
48
- }
49
- .fvs-wght-300 {
50
- font-variation-settings: 'wght' 300;
51
- }
52
- .fvs-wght-400 {
53
- font-variation-settings: 'wght' 400;
54
- }
55
- .fvs-wght-500 {
56
- font-variation-settings: 'wght' 500;
57
- }
58
- .fvs-wght-600 {
59
- font-variation-settings: 'wght' 600;
60
- }
61
- .fvs-wght-700 {
62
- font-variation-settings: 'wght' 700;
63
- }
64
- .fvs-wght-800 {
65
- font-variation-settings: 'wght' 800;
66
- }
67
- .fvs-wght-900 {
68
- font-variation-settings: 'wght' 900;
69
- }
@@ -1,2 +0,0 @@
1
- @import './_font-classes.css';
2
- @import './_weights.css';
@@ -1,14 +0,0 @@
1
- :root {
2
- --theme-link-default: light-dark(var(--blue-12), var(--blue-4));
3
-
4
- --page-bg: light-dark(var(--gray-0), var(--gray-9));
5
-
6
- --surface-subtle: light-dark(var(--gray-1), var(--gray-8));
7
-
8
- --grayscale-text-title: light-dark(var(--gray-12), var(--gray-2));
9
- --grayscale-text-body: light-dark(var(--gray-12), var(--gray-3));
10
- --grayscale-text-subtitle: light-dark(var(--gray-12), var(--gray-2));
11
- --grayscale-text-caption: light-dark(var(--gray-12), var(--gray-2));
12
- --grayscale-text-negative: light-dark(var(--gray-12), var(--gray-2));
13
- --grayscale-text-disabled: light-dark(var(--gray-12), var(--gray-2));
14
- }
@@ -1,10 +0,0 @@
1
- :root {
2
- --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);
3
- --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
4
- --step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
5
- --step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
6
- --step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
7
- --step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
8
- --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
9
- --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
10
- }
@@ -1,2 +0,0 @@
1
- @import './_colors.css';
2
- @import './_reponsive-font-size.css';