@ardium-ui/ui 5.0.0-alpha.69 → 5.0.0-alpha.70

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 (73) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +117 -174
  2. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  3. package/lib/_internal/boolean-component.d.ts +13 -1
  4. package/lib/checkbox/checkbox.component.d.ts +5 -2
  5. package/lib/checkbox/checkbox.types.d.ts +2 -0
  6. package/lib/chip/selectable-chip/selectable-chip.component.d.ts +2 -0
  7. package/lib/divider/divider.component.d.ts +2 -4
  8. package/lib/divider/divider.defaults.d.ts +5 -0
  9. package/lib/divider/divider.directive.d.ts +18 -0
  10. package/lib/divider/divider.module.d.ts +3 -2
  11. package/lib/divider/divider.types.d.ts +5 -0
  12. package/lib/divider/index.d.ts +2 -0
  13. package/lib/dropdown-panel/dropdown-panel.types.d.ts +1 -1
  14. package/lib/slide-toggle/slide-toggle.component.d.ts +2 -0
  15. package/lib/star/star-button/star-button.component.d.ts +4 -1
  16. package/lib/star/star-button/star-button.types.d.ts +1 -0
  17. package/lib/types/alignment.types.d.ts +7 -1
  18. package/package.json +1 -1
  19. package/prebuilt-themes/default/badge.css +37 -15
  20. package/prebuilt-themes/default/badge.css.map +1 -1
  21. package/prebuilt-themes/default/card.css +56 -24
  22. package/prebuilt-themes/default/card.css.map +1 -1
  23. package/prebuilt-themes/default/checkbox.css +31 -58
  24. package/prebuilt-themes/default/checkbox.css.map +1 -1
  25. package/prebuilt-themes/default/chips.css +1 -1
  26. package/prebuilt-themes/default/color-display.css +14 -7
  27. package/prebuilt-themes/default/color-display.css.map +1 -1
  28. package/prebuilt-themes/default/divider.css +82 -6
  29. package/prebuilt-themes/default/divider.css.map +1 -1
  30. package/prebuilt-themes/default/dropdown-panel.css +16 -8
  31. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  32. package/prebuilt-themes/default/file-drop-area.css +81 -35
  33. package/prebuilt-themes/default/file-drop-area.css.map +1 -1
  34. package/prebuilt-themes/default/inputs/digit-input.css +31 -19
  35. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  36. package/prebuilt-themes/default/progress-circle.css +13 -7
  37. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  38. package/prebuilt-themes/default/snackbar.css +29 -16
  39. package/prebuilt-themes/default/snackbar.css.map +1 -1
  40. package/prebuilt-themes/default/spinner.css +9 -3
  41. package/prebuilt-themes/default/spinner.css.map +1 -1
  42. package/prebuilt-themes/default/stars.css +38 -16
  43. package/prebuilt-themes/default/stars.css.map +1 -1
  44. package/prebuilt-themes/default/tabber.css +1 -1
  45. package/prebuilt-themes/default/table-pagination.css +21 -9
  46. package/prebuilt-themes/default/table-pagination.css.map +1 -1
  47. package/prebuilt-themes/default/table.css +101 -69
  48. package/prebuilt-themes/default/table.css.map +1 -1
  49. package/public-api.d.ts +0 -1
  50. package/themes/default/badge.scss +48 -15
  51. package/themes/default/card.scss +68 -24
  52. package/themes/default/checkbox.scss +30 -59
  53. package/themes/default/chips.scss +1 -1
  54. package/themes/default/color-display.scss +17 -7
  55. package/themes/default/divider.scss +106 -6
  56. package/themes/default/dropdown-panel.scss +21 -8
  57. package/themes/default/file-drop-area.scss +92 -35
  58. package/themes/default/inputs/digit-input.scss +42 -20
  59. package/themes/default/progress-circle.scss +16 -10
  60. package/themes/default/snackbar.scss +32 -14
  61. package/themes/default/spinner.scss +11 -3
  62. package/themes/default/stars.scss +45 -16
  63. package/themes/default/tabber.scss +1 -1
  64. package/themes/default/table-pagination.scss +24 -9
  65. package/themes/default/table.scss +112 -78
  66. package/lib/statebox/index.d.ts +0 -4
  67. package/lib/statebox/statebox.component.d.ts +0 -26
  68. package/lib/statebox/statebox.defaults.d.ts +0 -10
  69. package/lib/statebox/statebox.module.d.ts +0 -8
  70. package/lib/statebox/statebox.types.d.ts +0 -26
  71. package/prebuilt-themes/default/statebox.css +0 -235
  72. package/prebuilt-themes/default/statebox.css.map +0 -1
  73. package/themes/default/statebox.scss +0 -109
@@ -1,5 +1,51 @@
1
1
  @use './coloring' as CM;
2
2
 
3
+ // the variables are commented out intentionally
4
+ // read more in docs/dev/css-variables.md
5
+ :root {
6
+ --ard-file-drop-area-min-width: 15rem;
7
+ --ard-file-drop-area-min-height: 10rem;
8
+ --ard-file-drop-area-padding: 0.625rem;
9
+ --ard-file-drop-area-outline-border-width: 2px;
10
+ --ard-file-drop-area-outline-border-style: dashed;
11
+ --ard-file-drop-area-outline-padding: 0.375rem;
12
+ --ard-file-drop-area-content-gap-min: 0.2rem;
13
+ --ard-file-drop-area-content-gap-preferred: 10%;
14
+ --ard-file-drop-area-content-gap-max: 1rem;
15
+ --ard-file-drop-area-icon-font-size: 220%;
16
+ --ard-file-drop-area-drop-text-font-weight: 500;
17
+ --ard-file-drop-area-drop-text-font-size: 105%;
18
+ --ard-file-drop-area-or-text-font-weight: 400;
19
+ --ard-file-drop-area-or-text-font-size: 95%;
20
+ --ard-file-drop-area-dragover-text-font-weight: 500;
21
+ --ard-file-drop-area-dragover-text-font-size: 105%;
22
+ --ard-file-drop-area-dragover-amount-font-weight: 600;
23
+ --ard-file-drop-area-dragover-amount-font-size: 120%;
24
+ --ard-file-drop-area-uploaded-container-gap: 0.75rem;
25
+ --ard-file-drop-area-uploaded-message-font-weight: 500;
26
+ --ard-file-drop-area-uploaded-message-font-size: 105%;
27
+ --ard-file-drop-area-uploaded-amount-font-weight: 600;
28
+ --ard-file-drop-area-uploaded-amount-font-size: 100%;
29
+ --ard-file-drop-area-uploaded-files-gap: 0.45rem;
30
+ --ard-file-drop-area-file-gap: 0.75rem;
31
+ --ard-file-drop-area-file-icon-font-size: 220%;
32
+ --ard-file-drop-area-file-info-gap: 0.5ch;
33
+ --ard-file-drop-area-filename-gap: 0;
34
+ --ard-file-drop-area-filename-name-line-height: 1;
35
+ --ard-file-drop-area-filename-name-height: 1em;
36
+ --ard-file-drop-area-filesize-font-weight: 500;
37
+ --ard-file-drop-area-filesize-font-size: 83%;
38
+ --ard-file-drop-area-filesize-opacity: 60%;
39
+ --ard-file-drop-area-variant-rounded-corner-radius: 0.875rem;
40
+ --ard-file-drop-area-outline-corner-radius: 0.25rem;
41
+ --ard-file-drop-area-font-size-compact: 85%;
42
+ --ard-file-drop-area-min-width-compact: 12rem;
43
+ --ard-file-drop-area-min-height-compact: 8rem;
44
+ --ard-file-drop-area-content-gap-min-compact: 0.1667rem;
45
+ --ard-file-drop-area-content-gap-preferred-compact: 10%;
46
+ --ard-file-drop-area-content-gap-max-compact: 0.75rem;
47
+ }
48
+
3
49
  ard-file-drop-area {
4
50
  display: block;
5
51
  width: 100%;
@@ -14,9 +60,9 @@ ard-file-drop-area {
14
60
  max-width: 100%;
15
61
  height: 100%;
16
62
  max-height: 100%;
17
- min-width: 15rem;
18
- min-height: 10rem;
19
- padding: 0.625rem;
63
+ min-width: var(--ard-file-drop-area-min-width, 15rem);
64
+ min-height: var(--ard-file-drop-area-min-height, 10rem);
65
+ padding: var(--ard-file-drop-area-padding, 0.625rem);
20
66
  box-sizing: border-box;
21
67
  background: var(--ard-cmpcl--bg-colored-verylight);
22
68
  display: flex;
@@ -25,8 +71,9 @@ ard-file-drop-area {
25
71
  width: 100%;
26
72
  min-height: 100%;
27
73
  box-sizing: border-box;
28
- border: 2px dashed var(--ard-cmpcl--border);
29
- padding: 0.375rem;
74
+ border: var(--ard-file-drop-area-outline-border-width, 2px) var(--ard-file-drop-area-outline-border-style, dashed)
75
+ var(--ard-cmpcl--border);
76
+ padding: var(--ard-file-drop-area-outline-padding, 0.375rem);
30
77
  pointer-events: none;
31
78
 
32
79
  * {
@@ -40,22 +87,27 @@ ard-file-drop-area {
40
87
  flex-direction: column;
41
88
  align-items: center;
42
89
  justify-content: center;
43
- gap: clamp(0.2rem, 10%, 1rem);
44
- padding: 0.2rem 0;
90
+ gap: clamp(
91
+ var(--ard-file-drop-area-content-gap-min, 0.2rem),
92
+ var(--ard-file-drop-area-content-gap-preferred, 10%),
93
+ var(--ard-file-drop-area-content-gap-max, 1rem)
94
+ );
95
+ padding: var(--ard-file-drop-area-content-padding, 0.2rem 0);
45
96
  box-sizing: border-box;
46
97
  }
47
98
 
48
99
  //! state-specific styling
49
100
  //idle
50
101
  .ard-file-drop-area-icon {
51
- font-size: 220%;
102
+ font-size: var(--ard-file-drop-area-icon-font-size, 220%);
52
103
  }
53
104
  .ard-file-drop-area-drop-text {
54
- font-weight: 500;
55
- font-size: 105%;
105
+ font-weight: var(--ard-file-drop-area-drop-text-font-weight, 500);
106
+ font-size: var(--ard-file-drop-area-drop-text-font-size, 105%);
56
107
  }
57
108
  .ard-file-drop-area-or-text {
58
- font-size: 95%;
109
+ font-weight: var(--ard-file-drop-area-or-text-font-weight, 400);
110
+ font-size: var(--ard-file-drop-area-or-text-font-size, 95%);
59
111
  }
60
112
  .ard-file-drop-area-browse-button > button {
61
113
  border: 1px solid var(--ard-cmpcl--border);
@@ -63,12 +115,12 @@ ard-file-drop-area {
63
115
  }
64
116
  //dragover
65
117
  .ard-file-drop-area-dragover-text {
66
- font-weight: 500;
67
- font-size: 105%;
118
+ font-weight: var(--ard-file-drop-area-dragover-text-font-weight, 500);
119
+ font-size: var(--ard-file-drop-area-dragover-text-font-size, 105%);
68
120
  }
69
121
  .ard-file-drop-area-dragover-amount {
70
- font-weight: 600;
71
- font-size: 120%;
122
+ font-weight: var(--ard-file-drop-area-dragover-amount-font-weight, 600);
123
+ font-size: var(--ard-file-drop-area-dragover-amount-font-size, 120%);
72
124
  }
73
125
  //uploaded
74
126
  .ard-file-drop-area-uploaded-container {
@@ -78,15 +130,16 @@ ard-file-drop-area {
78
130
  display: grid;
79
131
  grid-template-columns: 1fr;
80
132
  grid-template-rows: max-content 1fr;
81
- gap: 0.75rem;
133
+ gap: var(--ard-file-drop-area-uploaded-container-gap, 0.75rem);
82
134
  justify-items: center;
83
135
  }
84
136
  .ard-file-drop-area-uploaded-message {
85
- font-weight: 500;
86
- font-size: 105%;
137
+ font-weight: var(--ard-file-drop-area-uploaded-message-font-weight, 500);
138
+ font-size: var(--ard-file-drop-area-uploaded-message-font-size, 105%);
87
139
  }
88
140
  .ard-file-drop-area-uploaded-amount {
89
- font-weight: 600;
141
+ font-weight: var(--ard-file-drop-area-uploaded-amount-font-weight, 600);
142
+ font-size: var(--ard-file-drop-area-uploaded-amount-font-size, 100%);
90
143
  }
91
144
  .ard-file-drop-area-uploaded-files {
92
145
  max-width: 100%;
@@ -94,7 +147,7 @@ ard-file-drop-area {
94
147
  display: flex;
95
148
  flex-direction: column;
96
149
  align-items: flex-start;
97
- gap: 0.45rem;
150
+ gap: var(--ard-file-drop-area-uploaded-files-gap, 0.45rem);
98
151
  overflow: hidden auto;
99
152
  box-sizing: border-box;
100
153
 
@@ -103,36 +156,36 @@ ard-file-drop-area {
103
156
  display: grid;
104
157
  align-items: center;
105
158
  grid-template-columns: max-content 1fr;
106
- gap: 0.75rem;
159
+ gap: var(--ard-file-drop-area-file-gap, 0.75rem);
107
160
  max-height: min-content;
108
161
 
109
162
  ard-icon {
110
- font-size: 220%;
163
+ font-size: var(--ard-file-drop-area-file-icon-font-size, 220%);
111
164
  }
112
165
  .ard-file-drop-area-file-info {
113
166
  display: flex;
114
167
  flex-direction: column;
115
168
  line-height: 1;
116
- gap: 0.5ch;
169
+ gap: var(--ard-file-drop-area-file-info-gap, 0.5ch);
117
170
  }
118
171
  .ard-file-drop-area-filename {
119
172
  max-width: 100%;
120
173
  display: grid;
121
174
  grid-template-columns: 1fr max-content;
122
- gap: 0;
175
+ gap: var(--ard-file-drop-area-filename-gap, 0);
123
176
  }
124
177
  .ard-file-drop-area-filename-name {
125
178
  max-width: 100%;
126
- line-height: 1;
179
+ line-height: var(--ard-file-drop-area-filename-name-line-height, 1);
127
180
  text-overflow: ellipsis;
128
181
  overflow: hidden;
129
182
  white-space: nowrap;
130
- height: 1em;
183
+ height: var(--ard-file-drop-area-filename-name-height, 1em);
131
184
  }
132
185
  .ard-file-drop-area-filesize {
133
- font-weight: 500;
134
- font-size: 83%;
135
- opacity: 60%;
186
+ font-weight: var(--ard-file-drop-area-filesize-font-weight, 500);
187
+ font-size: var(--ard-file-drop-area-filesize-font-size, 83%);
188
+ opacity: var(--ard-file-drop-area-filesize-opacity, 60%);
136
189
  }
137
190
  }
138
191
  }
@@ -140,10 +193,10 @@ ard-file-drop-area {
140
193
  //! variant
141
194
  &.ard-variant-rounded,
142
195
  &.ard-variant-pill {
143
- border-radius: 0.875rem;
196
+ border-radius: var(--ard-file-drop-area-variant-rounded-corner-radius, 0.875rem);
144
197
 
145
198
  .ard-file-drop-area-outline {
146
- border-radius: 0.25rem;
199
+ border-radius: var(--ard-file-drop-area-outline-corner-radius, 0.25rem);
147
200
  }
148
201
  }
149
202
  &.ard-variant-sharp {
@@ -151,12 +204,16 @@ ard-file-drop-area {
151
204
  }
152
205
  //! compact
153
206
  &.ard-compact {
154
- font-size: 85%;
155
- min-width: 12rem;
156
- min-height: 8rem;
207
+ font-size: var(--ard-file-drop-area-font-size-compact, 85%);
208
+ min-width: var(--ard-file-drop-area-min-width-compact, 12rem);
209
+ min-height: var(--ard-file-drop-area-min-height-compact, 8rem);
157
210
 
158
211
  .ard-file-drop-area-content {
159
- gap: clamp(0.1667rem, 10%, 0.75rem);
212
+ gap: clamp(
213
+ var(--ard-file-drop-area-content-gap-min-compact, 0.1667rem),
214
+ var(--ard-file-drop-area-content-gap-preferred-compact, 10%),
215
+ var(--ard-file-drop-area-content-gap-max-compact, 0.75rem)
216
+ );
160
217
  }
161
218
  }
162
219
  }
@@ -2,10 +2,31 @@
2
2
  @use '../../variables' as ARD;
3
3
  @use '../mixins' as defaultMixins;
4
4
 
5
+ // the variables are commented out intentionally
6
+ // read more in docs/dev/css-variables.md
7
+ :root {
8
+ // --ard-digit-input-font-family: ;
9
+ --ard-digit-input-font-weight: 500;
10
+ // --ard-digit-input-color: ;
11
+ --ard-digit-input-gap: 0.375em;
12
+ --ard-digit-input-size: 2.0625em;
13
+ // --ard-digit-input-caret-color: ;
14
+ // --ard-digit-input-placeholder-color: ;
15
+ --ard-digit-input-placeholder-opacity: 60%;
16
+ --ard-digit-input-transition-duration: 150ms;
17
+ // --ard-digit-input-rectangle-height: ;
18
+ --ard-digit-input-rectangle-font-size: 1.25em;
19
+ --ard-digit-input-success-background-color: transparent;
20
+ // --ard-digit-input-success-border-color: ;
21
+ // --ard-digit-input-error-background-color: ;
22
+ // --ard-digit-input-error-border-color: ;
23
+ --ard-digit-input-disabled-opacity: 50%;
24
+ }
25
+
5
26
  ard-digit-input {
6
- font-family: var(--ard-font-family);
7
- font-weight: 500;
8
- color: ARD.$text;
27
+ font-family: var(--ard-digit-input-font-family, var(--ard-font-family));
28
+ font-weight: var(--ard-digit-input-font-weight, 500);
29
+ color: var(--ard-digit-input-color, #{ARD.$text});
9
30
  }
10
31
 
11
32
  .ard-digit-input,
@@ -18,34 +39,34 @@ ard-digit-input {
18
39
  .ard-digit-input {
19
40
  @include defaultMixins.formAppearances();
20
41
  display: flex;
21
- gap: 0.375em;
42
+ gap: var(--ard-digit-input-gap, 0.375em);
22
43
 
23
44
  .ard-digit-input__item {
24
45
  height: max-content;
25
46
  display: flex;
26
- height: 2.0625em;
47
+ height: var(--ard-digit-input-size, 2.0625em);
27
48
  box-sizing: border-box;
28
49
 
29
50
  &.ard-digit-input__item-with-input {
30
- width: 2.0625em;
51
+ width: var(--ard-digit-input-size, 2.0625em);
31
52
  }
32
53
  .ard-digit-input__input {
33
54
  width: 100%;
34
55
  height: 100%;
35
56
  box-sizing: border-box;
36
57
  text-align: center;
37
- color: ARD.$text;
38
- caret-color: ARD.$text3;
58
+ color: inherit;
59
+ caret-color: var(--ard-digit-input-caret-color, #{ARD.$text3});
39
60
  background: var(--ard-appearance-background);
40
61
  border: var(--ard-appearance-border);
41
62
  border-radius: var(--ard-variant-border-radius);
42
63
  transition:
43
- border-color 0.15s ARD.$timing-fn,
44
- background-color 0.15s ARD.$timing-fn;
64
+ border-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn,
65
+ background-color var(--ard-digit-input-transition-duration, 0.15s) ARD.$timing-fn;
45
66
 
46
67
  &::placeholder {
47
- color: ARD.$text3;
48
- opacity: 60%;
68
+ color: var(--ard-digit-input-placeholder-color, #{ARD.$text3});
69
+ opacity: var(--ard-digit-input-placeholder-opacity, 60%);
49
70
  }
50
71
 
51
72
  &:not(.ard-digit-input__input-empty) {
@@ -61,33 +82,34 @@ ard-digit-input {
61
82
  }
62
83
  &.ard-shape-square {
63
84
  .ard-digit-input__item {
64
- height: 2.0625em;
85
+ height: var(--ard-digit-input-size, 2.0625em);
65
86
  }
66
87
  }
67
88
  &.ard-shape-rectangle {
68
89
  .ard-digit-input__item {
69
- height: 2.0625em * 1.3;
90
+ height: var(--ard-digit-input-rectangle-height, calc(var(--ard-digit-input-size, 2.0625em) * 1.3));
70
91
 
71
92
  .ard-digit-input__input {
72
- font-size: 1.2em;
93
+ font-size: var(--ard-digit-input-rectangle-font-size, 1.25em);
73
94
  }
74
95
  }
75
96
  }
76
97
 
77
98
  &.ard-is-success {
78
99
  .ard-digit-input__item .ard-digit-input__input {
79
- border-color: ARD.$success500;
100
+ background-color: var(--ard-digit-input-success-background-color, transparent);
101
+ border-color: var(--ard-digit-input-success-border-color, #{ARD.$success500});
80
102
  }
81
103
  }
82
104
  &.ard-has-error {
83
105
  .ard-digit-input__item .ard-digit-input__input {
84
- background-color: ARD.$danger50;
85
- border-color: ARD.$danger500;
106
+ background-color: var(--ard-digit-input-error-background-color, #{ARD.$danger50});
107
+ border-color: var(--ard-digit-input-error-border-color, #{ARD.$danger500});
86
108
  }
87
109
  }
88
110
 
89
111
  &.ard-variant-rounded {
90
- --ard-variant-border-radius: 0.25em;
112
+ --ard-variant-border-radius: var(--ard-digit-input-border-radius, var(--ard-rounded-corner-radius, 0.375rem));
91
113
  }
92
114
  &.ard-variant-pill {
93
115
  --ard-variant-border-radius: 9999px;
@@ -98,7 +120,7 @@ ard-digit-input {
98
120
  }
99
121
  .ard-disabled {
100
122
  > .ard-digit-input {
101
- opacity: 50%;
123
+ opacity: var(--ard-digit-input-disabled-opacity, 50%);
102
124
  pointer-events: none;
103
125
  }
104
126
  }
@@ -1,9 +1,20 @@
1
1
  @use './coloring' as coloringMixins;
2
2
  @use '../variables' as ARD;
3
3
 
4
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ --ard-progress-circle-size: 3em;
8
+ // --ard-progress-circle-colorless-background-color: ;
9
+ --ard-progress-circle-colorless-background-opacity: 100%;
10
+ --ard-progress-circle-colored-background-opacity: 100%;
11
+ --ard-progress-circle-value-font-size: 0.875em;
12
+ }
13
+
4
14
  .ard-progress-circle {
5
15
  @include coloringMixins.typeColors;
6
- width: 3em;
16
+ width: var(--ard-progress-circle-size, 3em);
17
+ height: var(--ard-progress-circle-size, 3em);
7
18
 
8
19
  --ard-_progress-circle-fill-color: var(--ard-cmpcl--bg-colored);
9
20
 
@@ -15,20 +26,15 @@
15
26
  }
16
27
  &.ard-appearance-colorless {
17
28
  .ard-progress-circle-background {
18
- background: ARD.$darken-overlay-medium;
29
+ background: var(--ard-progress-circle-colorless-background-color, #{ARD.$darken-overlay-medium});
30
+ opacity: var(--ard-progress-circle-colorless-background-opacity, 100%);
19
31
  }
20
32
  }
21
33
  &.ard-appearance-colored {
22
34
  .ard-progress-circle-background {
23
- opacity: 16%;
35
+ opacity: var(--ard-progress-circle-colored-background-opacity, 100%);
24
36
  background: var(--ard-cmpcl--bg-colored);
25
37
  }
26
- //special case for no coloring
27
- &.ard-color-none {
28
- .ard-progress-circle-background {
29
- opacity: 8%;
30
- }
31
- }
32
38
  }
33
39
  //! ring variant
34
40
  &.ard-progress-circle-variant-ring {
@@ -46,7 +52,7 @@
46
52
  top: 50%;
47
53
  transform: translate(-50%, -50%);
48
54
  font-weight: bold;
49
- font-size: 0.9em;
55
+ font-size: var(--ard-progress-circle-value-font-size, 0.875em);
50
56
  }
51
57
  &.ard-progress-circle-variant-full {
52
58
  .ard-progress-circle-value {
@@ -1,33 +1,51 @@
1
1
  @use './coloring' as C;
2
2
  @use '../variables' as ARD;
3
3
 
4
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ --ard-snackbar-min-width: min(21rem, 90vw);
8
+ --ard-snackbar-max-width: min(42rem, 90vw);
9
+ --ard-snackbar-min-height: 3rem;
10
+ // --ard-snackbar-background-color: ;
11
+ // --ard-snackbar-content-color: ;
12
+ --ard-snackbar-gap: 0.625rem;
13
+ --ard-snackbar-margin: 0.625rem;
14
+ --ard-snackbar-padding: 0 0.5rem 0 1rem;
15
+ // --ard-snackbar-border-radius: ;
16
+ --ard-snackbar-content-gap: 0.625rem;
17
+ --ard-snackbar-animation-duration: 150ms;
18
+ --ard-snackbar-animation-bottom: -0.375rem;
19
+ --ard-snackbar-animation-scale: 60%;
20
+ }
21
+
4
22
  .ard-snackbar {
5
23
  @include C.typeColors();
6
- min-width: min(21rem, 90vw);
7
- max-width: min(42rem, 90vw);
8
- min-height: 3rem;
9
- margin: 0.625rem;
24
+ min-width: var(--ard-snackbar-min-width, min(21rem, 90vw));
25
+ max-width: var(--ard-snackbar-max-width, min(42rem, 90vw));
26
+ min-height: var(--ard-snackbar-min-height, 3rem);
27
+ margin: var(--ard-snackbar-margin, 0.625rem);
10
28
  position: relative;
11
29
  display: flex;
12
30
  justify-content: stretch;
13
31
  align-items: center;
14
- gap: 0.625rem;
15
- border-radius: 6px;
32
+ gap: var(--ard-snackbar-gap, 0.625rem);
33
+ border-radius: var(--ard-snackbar-border-radius, var(--ard-rounded-corner-radius, 0.375rem));
16
34
  transform-origin: bottom center;
17
- background-color: ARD.$bg-f-alt;
18
- padding: 0 0.5rem 0 1rem;
35
+ background-color: var(--ard-snackbar-background-color, #{ARD.$bg-f-alt});
36
+ padding: var(--ard-snackbar-padding, 0 0.5rem 0 1rem);
19
37
 
20
38
  opacity: 100%;
21
39
  transform: scale(100%);
22
40
  bottom: 0;
23
- animation: show 150ms ease-out forwards;
41
+ animation: show var(--ard-snackbar-animation-duration, 150ms) ease-out forwards;
24
42
 
25
43
  .ard-snackbar-content {
26
44
  display: flex;
27
- gap: 0.625rem;
45
+ gap: var(--ard-snackbar-content-gap, 0.625rem);
28
46
  align-items: center;
29
47
  flex-grow: 1;
30
- color: ARD.$text2-alt;
48
+ color: var(--ard-snackbar-content-color, #{ARD.$text2-alt});
31
49
 
32
50
  ard-icon {
33
51
  color: var(--ard-cmpcl--content-light);
@@ -35,14 +53,14 @@
35
53
  }
36
54
 
37
55
  &.ard-snackbar-closing {
38
- animation: hide 150ms ease-out forwards;
56
+ animation: hide var(--ard-snackbar-animation-duration, 150ms) ease-out forwards;
39
57
  }
40
58
  }
41
59
 
42
60
  @mixin animation {
43
61
  opacity: 0%;
44
- transform: scale(60%);
45
- bottom: -0.375rem;
62
+ transform: scale(var(--ard-snackbar-animation-scale, 60%));
63
+ bottom: var(--ard-snackbar-animation-bottom, -0.375rem);
46
64
  }
47
65
 
48
66
  @keyframes show {
@@ -1,16 +1,24 @@
1
1
  @use './coloring' as CM;
2
2
 
3
+ // the variables are commented out intentionally
4
+ // read more in docs/dev/css-variables.md
5
+ :root {
6
+ --ard-spinner-size: 2rem;
7
+ --ard-spinner-margin: 0.25rem;
8
+ --ard-spinner-duration: 1.4s;
9
+ }
10
+
3
11
  ard-spinner {
4
12
  display: inline-block;
5
- width: 2rem;
13
+ width: var(--ard-spinner-size, 2rem);
6
14
  aspect-ratio: 1;
7
15
  position: relative;
8
- margin: 0.25rem;
16
+ margin: var(--ard-spinner-margin, 0.25rem);
9
17
  }
10
18
 
11
19
  .ard-spinner {
12
20
  @include CM.typeColors();
13
- --ard-_spinner-duration: 1.4s;
21
+ --ard-_spinner-duration: var(--ard-spinner-duration, 1.4s);
14
22
  position: absolute;
15
23
 
16
24
  scale: 2.3; //magic number
@@ -2,6 +2,23 @@
2
2
  @use './coloring' as coloringMixins;
3
3
  @use '../variables' as ARD;
4
4
 
5
+ // the variables are commented out intentionally
6
+ // read more in docs/dev/css-variables.md
7
+ :root {
8
+ --ard-star-size: 1.5em;
9
+
10
+ --ard-star-button-hitbox-offset: -4px;
11
+ --ard-star-button-overlay-offset: -0.125em;
12
+ --ard-star-button-hover-overlay-opacity: 10%;
13
+ --ard-star-button-focus-overlay-opacity: 0;
14
+ --ard-star-button-focus-visible-overlay-opacity: 10%;
15
+ --ard-star-button-active-overlay-opacity: 20%;
16
+ --ard-star-button-disabled-opacity: 50%;
17
+
18
+ --ard-rating-input-not-in-value-opacity: 50%;
19
+ --ard-rating-input-disabled-opacity: 50%;
20
+ }
21
+
5
22
  .ard-star,
6
23
  .ard-star-button,
7
24
  .ard-rating-display,
@@ -15,8 +32,8 @@
15
32
  }
16
33
  .ard-star {
17
34
  font-size: inherit;
18
- width: 1.5em;
19
- height: 1.5em;
35
+ width: var(--ard-star-size, 1.5em);
36
+ height: var(--ard-star-size, 1.5em);
20
37
  position: relative;
21
38
  }
22
39
  .ard-rating-display,
@@ -28,7 +45,7 @@
28
45
  cursor: pointer;
29
46
 
30
47
  .ard-star-not-in-value {
31
- opacity: 50%;
48
+ opacity: var(--ard-rating-input-not-in-value-opacity, 50%);
32
49
  }
33
50
  }
34
51
  .ard-star-button {
@@ -46,40 +63,52 @@
46
63
 
47
64
  .ard-hitbox {
48
65
  position: absolute;
49
- left: -4px;
50
- right: -4px;
51
- bottom: -4px;
52
- top: -4px;
66
+ left: var(--ard-star-button-hitbox-offset, -4px);
67
+ right: var(--ard-star-button-hitbox-offset, -4px);
68
+ bottom: var(--ard-star-button-hitbox-offset, -4px);
69
+ top: var(--ard-star-button-hitbox-offset, -4px);
53
70
  }
54
71
 
55
72
  .ard-focus-overlay {
56
73
  @include defaultMixins.focus-overlay;
57
74
  position: absolute;
58
- left: -0.125em;
59
- right: -0.125em;
60
- bottom: -0.125em;
61
- top: -0.125em;
75
+ left: var(--ard-star-button-overlay-offset, -0.125em);
76
+ right: var(--ard-star-button-overlay-offset, -0.125em);
77
+ bottom: var(--ard-star-button-overlay-offset, -0.125em);
78
+ top: var(--ard-star-button-overlay-offset, -0.125em);
62
79
  border-radius: 999px;
63
80
  background: currentColor;
64
81
  }
65
82
  @include defaultMixins.focus-overlay-scale-addon();
66
- &:hover,
83
+ &:hover {
84
+ .ard-focus-overlay {
85
+ opacity: var(--ard-star-button-hover-overlay-opacity, 10%);
86
+ }
87
+ }
67
88
  &:focus {
68
89
  .ard-focus-overlay {
69
- opacity: 10%;
90
+ opacity: var(--ard-star-button-focus-overlay-opacity, 0%);
91
+ }
92
+ }
93
+ &:focus-visible {
94
+ .ard-focus-overlay {
95
+ opacity: var(--ard-star-button-focus-visible-overlay-opacity, 10%);
70
96
  }
71
97
  }
72
98
  &:active {
73
99
  .ard-focus-overlay {
74
- opacity: 20%;
100
+ opacity: var(--ard-star-button-active-overlay-opacity, 20%);
75
101
  }
76
102
  }
77
103
  }
78
104
  //! disabled state for star-button
79
105
  .ard-disabled {
80
- > .ard-star-button,
106
+ > .ard-star-button {
107
+ pointer-events: none;
108
+ opacity: var(--ard-star-button-disabled-opacity, 50%);
109
+ }
81
110
  > .ard-rating-input {
82
111
  pointer-events: none;
83
- opacity: 50%;
112
+ opacity: var(--ard-rating-input-disabled-opacity, 50%);
84
113
  }
85
114
  }
@@ -44,7 +44,7 @@ ard-tabber {
44
44
  &.ard-tab-align-left {
45
45
  justify-content: left;
46
46
  }
47
- &.ard-tab-align-middle {
47
+ &.ard-tab-align-center {
48
48
  justify-content: center;
49
49
  }
50
50
  &.ard-tab-align-right {