claritas-web-framework 8.5.7 → 8.5.9

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/.prettierrc +10 -10
  2. package/README.md +1 -1
  3. package/dist/index.css +1 -1
  4. package/index.html +20 -20
  5. package/index.js +2 -2
  6. package/package.json +33 -33
  7. package/sass/_functions.scss +55 -55
  8. package/sass/_helpers.scss +8 -8
  9. package/sass/_mixins.scss +12 -12
  10. package/sass/_modules.scss +30 -30
  11. package/sass/_reboot.scss +264 -265
  12. package/sass/_root.scss +56 -56
  13. package/sass/_utilities.scss +17 -17
  14. package/sass/_variables.scss +445 -449
  15. package/sass/helpers/_container.scss +11 -11
  16. package/sass/helpers/_embed.scss +36 -36
  17. package/sass/helpers/_grid.scss +53 -53
  18. package/sass/helpers/_image.scss +5 -5
  19. package/sass/helpers/_link.scss +15 -15
  20. package/sass/helpers/_rfs.scss +303 -303
  21. package/sass/helpers/_screenReader.scss +13 -13
  22. package/sass/helpers/_wrap.scss +5 -5
  23. package/sass/index.scss +12 -12
  24. package/sass/mixins/_breakpoints.scss +133 -133
  25. package/sass/mixins/_button.scss +116 -116
  26. package/sass/mixins/_caret.scss +41 -41
  27. package/sass/mixins/_clearfix.scss +7 -7
  28. package/sass/mixins/_colors.scss +23 -23
  29. package/sass/mixins/_container.scss +21 -21
  30. package/sass/mixins/_gradient.scss +55 -55
  31. package/sass/mixins/_grid.scss +156 -156
  32. package/sass/mixins/_group.scss +70 -70
  33. package/sass/mixins/_list.scss +18 -18
  34. package/sass/mixins/_screenReader.scss +22 -22
  35. package/sass/mixins/_wrap.scss +7 -7
  36. package/sass/modules/_alert.scss +60 -60
  37. package/sass/modules/_breadcrumbs.scss +43 -43
  38. package/sass/modules/_button.scss +170 -172
  39. package/sass/modules/_card.scss +107 -107
  40. package/sass/modules/_close.scss +59 -59
  41. package/sass/modules/_details.scss +48 -48
  42. package/sass/modules/_dialog.scss +47 -47
  43. package/sass/modules/_dropdown.scss +44 -43
  44. package/sass/modules/_form.scss +261 -263
  45. package/sass/modules/_list.scss +78 -78
  46. package/sass/modules/_loader.scss +183 -183
  47. package/sass/modules/_modal.scss +45 -45
  48. package/sass/modules/_nav.scss +136 -136
  49. package/sass/modules/_pill.scss +61 -61
  50. package/sass/modules/_table.scss +96 -96
  51. package/sass/modules/_tabs.scss +88 -93
  52. package/sass/modules/_tag.scss +72 -72
  53. package/sass/modules/_tile.scss +101 -101
  54. package/sass/modules/_tooltip.scss +108 -108
  55. package/sass/modules/form/_checkbox.scss +78 -78
  56. package/sass/modules/form/_file.scss +149 -149
  57. package/sass/modules/form/_formFieldGroup.scss +60 -60
  58. package/sass/modules/form/_output.scss +6 -6
  59. package/sass/modules/form/_progress.scss +55 -55
  60. package/sass/modules/form/_radio.scss +57 -57
  61. package/sass/modules/form/_range.scss +144 -144
  62. package/sass/modules/form/_select.scss +22 -22
  63. package/sass/modules/form/_text.scss +28 -28
  64. package/sass/modules/form/_textarea.scss +3 -3
  65. package/sass/modules/form/_toggle.scss +68 -68
  66. package/sass/utilities/_align.scss +25 -25
  67. package/sass/utilities/_border.scss +59 -59
  68. package/sass/utilities/_colors.scss +76 -76
  69. package/sass/utilities/_display.scss +25 -25
  70. package/sass/utilities/_flex.scss +65 -65
  71. package/sass/utilities/_float.scss +17 -17
  72. package/sass/utilities/_order.scss +23 -23
  73. package/sass/utilities/_overflow.scss +25 -25
  74. package/sass/utilities/_pointerEvents.scss +17 -17
  75. package/sass/utilities/_position.scss +59 -59
  76. package/sass/utilities/_shadow.scss +7 -7
  77. package/sass/utilities/_size.scss +118 -118
  78. package/sass/utilities/_spacing.scss +107 -107
  79. package/sass/utilities/_translate.scss +15 -15
  80. package/sass/utilities/_typography.scss +62 -62
  81. package/sass/utilities/_visibility.scss +17 -17
  82. package/sass/utilities/_zIndex.scss +15 -15
  83. package/tests.js +5 -5
  84. package/webpack.config.js +27 -27
  85. package/webpack.plugins.js +15 -15
  86. package/webpack.rules.js +8 -8
package/sass/_reboot.scss CHANGED
@@ -1,265 +1,264 @@
1
- @use "sass:color";
2
- @use "./helpers" as *;
3
- @use "./variables" as *;
4
- @use "./mixins" as *;
5
-
6
- body {
7
- font-family: var(--font-family-body);
8
- font-size: var(--font-size-body);
9
- font-weight: var(--font-weight-body);
10
- line-height: var(--line-height-body);
11
- color: var(--body-color);
12
- text-align: var(--body-text-align);
13
- background-color: var(--body-background);
14
- text-size-adjust: 100%;
15
- -webkit-tap-highlight-color: transparent;
16
- }
17
-
18
- hr {
19
- --hr-border-color: var(--border-color-main);
20
-
21
- margin: 1rem 0;
22
- border: 0;
23
- border-top: 1px solid var(--hr-border-color);
24
- }
25
-
26
- %heading {
27
- margin: 0 0 0.5rem;
28
- font-family: $headings-font-family;
29
- font-style: $headings-font-style;
30
- font-weight: $headings-font-weight;
31
- line-height: $headings-line-height;
32
- color: $headings-color;
33
- }
34
-
35
- h1,
36
- .h1 {
37
- @extend %heading;
38
-
39
- font-size: var(--font-size-1);
40
- }
41
-
42
- h2,
43
- .h2 {
44
- @extend %heading;
45
-
46
- font-size: var(--font-size-2);
47
- }
48
-
49
- h3,
50
- .h3 {
51
- @extend %heading;
52
-
53
- font-size: var(--font-size-3);
54
- }
55
-
56
- h4,
57
- .h4 {
58
- @extend %heading;
59
-
60
- font-size: var(--font-size-4);
61
- }
62
-
63
- h5,
64
- .h5 {
65
- @extend %heading;
66
-
67
- font-size: var(--font-size-5);
68
- }
69
-
70
- h6,
71
- .h6 {
72
- @extend %heading;
73
-
74
- font-size: var(--font-size-6);
75
- }
76
-
77
- p {
78
- margin: 0 0 0.5rem;
79
- }
80
-
81
- abbr[title] {
82
- cursor: help;
83
- text-decoration-skip-ink: none;
84
- }
85
-
86
- address {
87
- margin: 0 0 1rem;
88
- font-style: normal;
89
- line-height: inherit;
90
- }
91
-
92
- ol,
93
- ul {
94
- padding-left: 2rem;
95
- }
96
-
97
- ol,
98
- ul,
99
- dl {
100
- margin: 0 0 1rem;
101
- }
102
-
103
- ol ol,
104
- ul ul,
105
- ol ul,
106
- ul ol {
107
- margin: 0;
108
- }
109
-
110
- dt {
111
- font-weight: bolder;
112
- }
113
-
114
- dd {
115
- margin-bottom: 0.5rem;
116
- margin-left: 0;
117
- }
118
-
119
- a {
120
- color: var(--primary);
121
- text-decoration: $link-decoration;
122
-
123
- &:hover {
124
- color: color-mix(in oklab, var(--primary), #000 #{$link-shade-percentage});
125
- text-decoration: $link-hover-decoration;
126
- }
127
- }
128
-
129
- a:not([href], [class]) {
130
- &,
131
- &:hover {
132
- color: inherit;
133
- text-decoration: none;
134
- }
135
- }
136
-
137
- figure {
138
- margin: 0 0 1rem;
139
- }
140
-
141
- img,
142
- svg {
143
- vertical-align: middle;
144
- }
145
-
146
- table {
147
- caption-side: bottom;
148
- border-collapse: collapse;
149
- }
150
-
151
- caption {
152
- padding-top: $table-cell-padding-y;
153
- padding-bottom: $table-cell-padding-y;
154
- color: $table-caption-color;
155
- text-align: left;
156
- }
157
-
158
- th {
159
- font-weight: $table-th-font-weight;
160
- text-align: inherit;
161
- text-align: -webkit-match-parent;
162
- }
163
-
164
- thead,
165
- tbody,
166
- tfoot,
167
- tr,
168
- td,
169
- th {
170
- border-color: inherit;
171
- border-style: solid;
172
- border-width: 0;
173
- }
174
-
175
- label {
176
- display: inline-block;
177
- }
178
-
179
- button {
180
- border-radius: 0;
181
- }
182
-
183
- [role="button"] {
184
- cursor: pointer;
185
- }
186
-
187
- select {
188
- word-wrap: normal;
189
-
190
- &:disabled {
191
- opacity: 1;
192
- }
193
- }
194
-
195
- [list]:not(
196
- [type="date"],
197
- [type="datetime-local"],
198
- [type="month"],
199
- [type="week"],
200
- [type="time"]
201
- )::-webkit-calendar-picker-indicator {
202
- display: none !important;
203
- }
204
-
205
- button:focus:not(:focus-visible) {
206
- outline: 0;
207
- }
208
-
209
- textarea {
210
- resize: vertical;
211
- }
212
-
213
- fieldset {
214
- min-width: 0;
215
- padding: 0;
216
- margin: 0;
217
- border: 0;
218
- }
219
-
220
- legend {
221
- float: left;
222
- width: 100%;
223
- margin: 0 0 0.5rem;
224
- font-size: var(--font-size-5);
225
- line-height: inherit;
226
-
227
- + * {
228
- clear: left;
229
- }
230
- }
231
-
232
- ::-webkit-datetime-edit-fields-wrapper,
233
- ::-webkit-datetime-edit-text,
234
- ::-webkit-datetime-edit-minute,
235
- ::-webkit-datetime-edit-hour-field,
236
- ::-webkit-datetime-edit-day-field,
237
- ::-webkit-datetime-edit-month-field,
238
- ::-webkit-datetime-edit-year-field {
239
- padding: 0;
240
- }
241
-
242
- ::-webkit-color-swatch-wrapper {
243
- padding: 0;
244
- }
245
-
246
- ::file-selector-button {
247
- font: inherit;
248
- appearance: button;
249
- }
250
-
251
- output {
252
- display: inline-block;
253
- }
254
-
255
- iframe {
256
- border: 0;
257
- }
258
-
259
- summary {
260
- cursor: pointer;
261
- }
262
-
263
- [hidden] {
264
- display: none !important;
265
- }
1
+ @use "sass:color";
2
+ @use "./helpers" as *;
3
+ @use "./variables" as *;
4
+ @use "./mixins" as *;
5
+
6
+ body {
7
+ font-family: var(--font-family-body);
8
+ font-size: var(--font-size-body);
9
+ font-weight: var(--font-weight-body);
10
+ line-height: var(--line-height-body);
11
+ color: var(--body-color);
12
+ text-align: var(--body-text-align);
13
+ background-color: var(--body-background);
14
+ text-size-adjust: 100%;
15
+ -webkit-tap-highlight-color: transparent;
16
+ }
17
+
18
+ hr {
19
+ --hr-border-color: var(--border-color-main);
20
+
21
+ margin: 1rem 0;
22
+ border: 0;
23
+ border-top: 1px solid var(--hr-border-color);
24
+ }
25
+
26
+ %heading {
27
+ margin: 0 0 0.5rem;
28
+ font-style: $headings-font-style;
29
+ font-weight: $headings-font-weight;
30
+ line-height: $headings-line-height;
31
+ color: $headings-color;
32
+ }
33
+
34
+ h1,
35
+ .h1 {
36
+ @extend %heading;
37
+
38
+ font-size: var(--font-size-1);
39
+ }
40
+
41
+ h2,
42
+ .h2 {
43
+ @extend %heading;
44
+
45
+ font-size: var(--font-size-2);
46
+ }
47
+
48
+ h3,
49
+ .h3 {
50
+ @extend %heading;
51
+
52
+ font-size: var(--font-size-3);
53
+ }
54
+
55
+ h4,
56
+ .h4 {
57
+ @extend %heading;
58
+
59
+ font-size: var(--font-size-4);
60
+ }
61
+
62
+ h5,
63
+ .h5 {
64
+ @extend %heading;
65
+
66
+ font-size: var(--font-size-5);
67
+ }
68
+
69
+ h6,
70
+ .h6 {
71
+ @extend %heading;
72
+
73
+ font-size: var(--font-size-6);
74
+ }
75
+
76
+ p {
77
+ margin: 0 0 0.5rem;
78
+ }
79
+
80
+ abbr[title] {
81
+ cursor: help;
82
+ text-decoration-skip-ink: none;
83
+ }
84
+
85
+ address {
86
+ margin: 0 0 1rem;
87
+ font-style: normal;
88
+ line-height: inherit;
89
+ }
90
+
91
+ ol,
92
+ ul {
93
+ padding-left: 2rem;
94
+ }
95
+
96
+ ol,
97
+ ul,
98
+ dl {
99
+ margin: 0 0 1rem;
100
+ }
101
+
102
+ ol ol,
103
+ ul ul,
104
+ ol ul,
105
+ ul ol {
106
+ margin: 0;
107
+ }
108
+
109
+ dt {
110
+ font-weight: bolder;
111
+ }
112
+
113
+ dd {
114
+ margin-bottom: 0.5rem;
115
+ margin-left: 0;
116
+ }
117
+
118
+ a {
119
+ color: var(--primary);
120
+ text-decoration: $link-decoration;
121
+
122
+ &:hover {
123
+ color: color-mix(in oklab, var(--primary), #000 #{$link-shade-percentage});
124
+ text-decoration: $link-hover-decoration;
125
+ }
126
+ }
127
+
128
+ a:not([href], [class]) {
129
+ &,
130
+ &:hover {
131
+ color: inherit;
132
+ text-decoration: none;
133
+ }
134
+ }
135
+
136
+ figure {
137
+ margin: 0 0 1rem;
138
+ }
139
+
140
+ img,
141
+ svg {
142
+ vertical-align: middle;
143
+ }
144
+
145
+ table {
146
+ caption-side: bottom;
147
+ border-collapse: collapse;
148
+ }
149
+
150
+ caption {
151
+ padding-top: $table-cell-padding-y;
152
+ padding-bottom: $table-cell-padding-y;
153
+ color: $table-caption-color;
154
+ text-align: left;
155
+ }
156
+
157
+ th {
158
+ font-weight: $table-th-font-weight;
159
+ text-align: inherit;
160
+ text-align: -webkit-match-parent;
161
+ }
162
+
163
+ thead,
164
+ tbody,
165
+ tfoot,
166
+ tr,
167
+ td,
168
+ th {
169
+ border-color: inherit;
170
+ border-style: solid;
171
+ border-width: 0;
172
+ }
173
+
174
+ label {
175
+ display: inline-block;
176
+ }
177
+
178
+ button {
179
+ border-radius: 0;
180
+ }
181
+
182
+ [role="button"] {
183
+ cursor: pointer;
184
+ }
185
+
186
+ select {
187
+ word-wrap: normal;
188
+
189
+ &:disabled {
190
+ opacity: 1;
191
+ }
192
+ }
193
+
194
+ [list]:not(
195
+ [type="date"],
196
+ [type="datetime-local"],
197
+ [type="month"],
198
+ [type="week"],
199
+ [type="time"]
200
+ )::-webkit-calendar-picker-indicator {
201
+ display: none !important;
202
+ }
203
+
204
+ button:focus:not(:focus-visible) {
205
+ outline: 0;
206
+ }
207
+
208
+ textarea {
209
+ resize: vertical;
210
+ }
211
+
212
+ fieldset {
213
+ min-width: 0;
214
+ padding: 0;
215
+ margin: 0;
216
+ border: 0;
217
+ }
218
+
219
+ legend {
220
+ float: left;
221
+ width: 100%;
222
+ margin: 0 0 0.5rem;
223
+ font-size: var(--font-size-5);
224
+ line-height: inherit;
225
+
226
+ + * {
227
+ clear: left;
228
+ }
229
+ }
230
+
231
+ ::-webkit-datetime-edit-fields-wrapper,
232
+ ::-webkit-datetime-edit-text,
233
+ ::-webkit-datetime-edit-minute,
234
+ ::-webkit-datetime-edit-hour-field,
235
+ ::-webkit-datetime-edit-day-field,
236
+ ::-webkit-datetime-edit-month-field,
237
+ ::-webkit-datetime-edit-year-field {
238
+ padding: 0;
239
+ }
240
+
241
+ ::-webkit-color-swatch-wrapper {
242
+ padding: 0;
243
+ }
244
+
245
+ ::file-selector-button {
246
+ font: inherit;
247
+ appearance: button;
248
+ }
249
+
250
+ output {
251
+ display: inline-block;
252
+ }
253
+
254
+ iframe {
255
+ border: 0;
256
+ }
257
+
258
+ summary {
259
+ cursor: pointer;
260
+ }
261
+
262
+ [hidden] {
263
+ display: none !important;
264
+ }
package/sass/_root.scss CHANGED
@@ -1,56 +1,56 @@
1
- @use "./variables" as *;
2
-
3
- :root {
4
- interpolate-size: allow-keywords;
5
-
6
- --spacer: #{$spacer};
7
- --body-color: #{$body-color};
8
- --body-background: #{$body-background};
9
- --font-family-body: #{$font-family-base};
10
- --font-size-body: #{$font-size-base};
11
- --font-size-base: #{$font-size-base};
12
- --font-weight-body: #{$font-weight-base};
13
- --line-height-body: #{$line-height-base};
14
- --body-text-align: #{$body-text-align};
15
- --headings-color: #{$headings-color};
16
- --box-shadow-small: #{$box-shadow-small};
17
- --box-shadow-medium: #{$box-shadow-medium};
18
- --box-shadow-large: #{$box-shadow-large};
19
- --border-color-main: #{$border-color-main};
20
- --border-color-hover-main: #{$border-color-hover-main};
21
- --border-color-active-main: #{$border-color-active-main};
22
- --border-color-focus-main: #{$border-color-focus-main};
23
- --border-color-disabled-main: #{$border-color-disabled-main};
24
-
25
- @if $font-size-root {
26
- @include font-size(var(--root-font-size));
27
- }
28
-
29
- @each $key, $value in $grays {
30
- --#{$key}: #{$value};
31
- }
32
-
33
- @each $key, $value in $all-colors {
34
- --#{$key}: #{$value};
35
- }
36
-
37
- @each $key, $value in $zindexes {
38
- --zindex-#{$key}: #{$value};
39
- }
40
-
41
- @each $key, $value in $font-sizes {
42
- --font-size-#{$key}: #{$value};
43
- }
44
-
45
- @each $key, $value in $border-radii {
46
- --border-radius-#{$key}: #{$value};
47
- }
48
-
49
- @each $name, $value in $breakpoints {
50
- --breakpoint-#{$name}: #{$value};
51
- }
52
-
53
- @media (prefers-reduced-motion: no-preference) {
54
- scroll-behavior: smooth;
55
- }
56
- }
1
+ @use "./variables" as *;
2
+
3
+ :root {
4
+ interpolate-size: allow-keywords;
5
+
6
+ --spacer: #{$spacer};
7
+ --body-color: #{$body-color};
8
+ --body-background: #{$body-background};
9
+ --font-family-body: #{$font-family-base};
10
+ --font-size-body: #{$font-size-base};
11
+ --font-size-base: #{$font-size-base};
12
+ --font-weight-body: #{$font-weight-base};
13
+ --line-height-body: #{$line-height-base};
14
+ --body-text-align: #{$body-text-align};
15
+ --headings-color: #{$headings-color};
16
+ --box-shadow-small: #{$box-shadow-small};
17
+ --box-shadow-medium: #{$box-shadow-medium};
18
+ --box-shadow-large: #{$box-shadow-large};
19
+ --border-color-main: #{$border-color-main};
20
+ --border-color-hover-main: #{$border-color-hover-main};
21
+ --border-color-active-main: #{$border-color-active-main};
22
+ --border-color-focus-main: #{$border-color-focus-main};
23
+ --border-color-disabled-main: #{$border-color-disabled-main};
24
+
25
+ @if $font-size-root {
26
+ @include font-size(var(--root-font-size));
27
+ }
28
+
29
+ @each $key, $value in $grays {
30
+ --#{$key}: #{$value};
31
+ }
32
+
33
+ @each $key, $value in $all-colors {
34
+ --#{$key}: #{$value};
35
+ }
36
+
37
+ @each $key, $value in $zindexes {
38
+ --zindex-#{$key}: #{$value};
39
+ }
40
+
41
+ @each $key, $value in $font-sizes {
42
+ --font-size-#{$key}: #{$value};
43
+ }
44
+
45
+ @each $key, $value in $border-radii {
46
+ --border-radius-#{$key}: #{$value};
47
+ }
48
+
49
+ @each $name, $value in $breakpoints {
50
+ --breakpoint-#{$name}: #{$value};
51
+ }
52
+
53
+ @media (prefers-reduced-motion: no-preference) {
54
+ scroll-behavior: smooth;
55
+ }
56
+ }
@@ -1,17 +1,17 @@
1
- @forward "./utilities/align";
2
- @forward "./utilities/border";
3
- @forward "./utilities/colors";
4
- @forward "./utilities/display";
5
- @forward "./utilities/flex";
6
- @forward "./utilities/float";
7
- @forward "./utilities/order";
8
- @forward "./utilities/overflow";
9
- @forward "./utilities/pointerEvents";
10
- @forward "./utilities/position";
11
- @forward "./utilities/shadow";
12
- @forward "./utilities/size";
13
- @forward "./utilities/spacing";
14
- @forward "./utilities/translate";
15
- @forward "./utilities/typography";
16
- @forward "./utilities/visibility";
17
- @forward "./utilities/zIndex";
1
+ @forward "./utilities/align";
2
+ @forward "./utilities/border";
3
+ @forward "./utilities/colors";
4
+ @forward "./utilities/display";
5
+ @forward "./utilities/flex";
6
+ @forward "./utilities/float";
7
+ @forward "./utilities/order";
8
+ @forward "./utilities/overflow";
9
+ @forward "./utilities/pointerEvents";
10
+ @forward "./utilities/position";
11
+ @forward "./utilities/shadow";
12
+ @forward "./utilities/size";
13
+ @forward "./utilities/spacing";
14
+ @forward "./utilities/translate";
15
+ @forward "./utilities/typography";
16
+ @forward "./utilities/visibility";
17
+ @forward "./utilities/zIndex";