@ardium-ui/ui 5.0.0-alpha.4 → 5.0.0-alpha.41
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.
- package/fesm2022/ardium-ui-ui.mjs +4123 -2319
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/disablable-component.d.ts +2 -1
- package/lib/_internal/focusable-component.d.ts +2 -1
- package/lib/_internal/form-field-component.d.ts +2 -1
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +16 -18
- package/lib/_internal/item-storages/simple-item-storage.d.ts +15 -12
- package/lib/_internal/item-storages/simplest-item-storage.d.ts +1 -1
- package/lib/_internal/ngmodel-component.d.ts +1 -0
- package/lib/_internal/selectable-list-component.d.ts +6 -6
- package/lib/_internal/utils/date.utils.d.ts +16 -0
- package/lib/badge/badge.directive.d.ts +3 -2
- package/lib/buttons/_button-base.d.ts +12 -8
- package/lib/buttons/_button-base.defaults.d.ts +3 -2
- package/lib/buttons/button/button.component.d.ts +5 -5
- package/lib/buttons/button/button.defaults.d.ts +0 -2
- package/lib/buttons/button/button.directive.d.ts +17 -0
- package/lib/buttons/button/button.module.d.ts +3 -2
- package/lib/buttons/button/index.d.ts +1 -0
- package/lib/buttons/fab/fab.component.d.ts +3 -1
- package/lib/buttons/icon-button/icon-button.component.d.ts +6 -4
- package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
- package/lib/calendar/abstract-calendar.d.ts +127 -0
- package/lib/calendar/calendar.component.d.ts +8 -96
- package/lib/calendar/calendar.defaults.d.ts +12 -1
- package/lib/calendar/calendar.internal-directives.d.ts +24 -8
- package/lib/calendar/calendar.internal-types.d.ts +1 -0
- package/lib/calendar/calendar.module.d.ts +4 -9
- package/lib/calendar/calendar.types.d.ts +19 -5
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/range-calendar.component.d.ts +16 -0
- package/lib/calendar/range-calendar.directives.d.ts +51 -0
- package/lib/calendar/range-calendar.module.d.ts +10 -0
- package/lib/calendar/views/calendar-views.module.d.ts +13 -0
- package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
- package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
- package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
- package/lib/calendar/views/years-view/years-view.component.d.ts +15 -3
- package/lib/checkbox-list/checkbox-list.component.d.ts +9 -7
- package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
- package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
- package/lib/chip/chip.component.d.ts +2 -1
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +3 -2
- package/lib/dialog/dialog.component.d.ts +8 -7
- package/lib/divider/divider.component.d.ts +2 -1
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
- package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
- package/lib/file-inputs/file-input-base.d.ts +4 -5
- package/lib/form-field/error/error.directive.d.ts +3 -2
- package/lib/form-field/form-field-base.d.ts +6 -2
- package/lib/form-field/form-field-native-inputs.d.ts +3 -2
- package/lib/form-field/form-field.component.d.ts +1 -1
- package/lib/form-field/form-field.module.d.ts +5 -4
- package/lib/form-field/hint/hint.directive.d.ts +3 -2
- package/lib/form-field/hint-error/hint-error.component.d.ts +6 -0
- package/lib/form-field/hint-error/hint-error.directive.d.ts +9 -0
- package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +4 -0
- package/lib/form-field/label/label.component.d.ts +3 -2
- package/lib/form-field-frame/form-field-frame.component.d.ts +4 -3
- package/lib/icon/icon.component.d.ts +2 -1
- package/lib/inputs/_simple-input-base.d.ts +4 -2
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
- package/lib/inputs/date-input/abstract-date-input.d.ts +112 -0
- package/lib/inputs/date-input/date-input.component.d.ts +19 -81
- package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
- package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
- package/lib/inputs/date-input/date-input.module.d.ts +5 -4
- package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
- package/lib/inputs/date-input/date-input.types.d.ts +5 -4
- package/lib/inputs/date-input/date-range-input.component.d.ts +29 -0
- package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
- package/lib/inputs/date-input/index.d.ts +7 -1
- package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +44 -0
- package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
- package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
- package/lib/inputs/hex-input/hex-input.component.d.ts +5 -3
- package/lib/inputs/number-input/number-input.component.d.ts +11 -10
- package/lib/inputs/number-input/number-input.defaults.d.ts +1 -0
- package/lib/inputs/password-input/password-input.component.d.ts +4 -3
- package/lib/kbd/kbd.component.d.ts +2 -1
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
- package/lib/modal/modal.component.d.ts +6 -5
- package/lib/option/option.component.d.ts +2 -1
- package/lib/progress-bar/progress-bar.component.d.ts +4 -3
- package/lib/progress-circle/progress-circle.component.d.ts +5 -4
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +33 -26
- package/lib/select/select.defaults.d.ts +7 -0
- package/lib/select/select.directive.d.ts +6 -0
- package/lib/select/select.module.d.ts +1 -1
- package/lib/select/select.types.d.ts +4 -2
- package/lib/select/select.utils.d.ts +2 -0
- package/lib/slider/abstract-slider.d.ts +35 -29
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/range-slider/range-slider.component.d.ts +12 -9
- package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
- package/lib/slider/slider.component.d.ts +5 -4
- package/lib/slider/slider.types.d.ts +3 -3
- package/lib/star/rating-display/rating-display.component.d.ts +2 -1
- package/lib/star/rating-input/rating-input.component.d.ts +5 -3
- package/lib/star/rating-input/rating-input.defaults.d.ts +2 -2
- package/lib/tabber/index.d.ts +2 -1
- package/lib/tabber/tab/tab.component.d.ts +14 -8
- package/lib/tabber/tabber.component.d.ts +25 -9
- package/lib/tabber/tabber.defaults.d.ts +1 -0
- package/lib/tabber/tabber.directives.d.ts +9 -0
- package/lib/tabber/tabber.module.d.ts +3 -2
- package/lib/tabber/tabber.types.d.ts +5 -0
- package/lib/table/table.component.d.ts +16 -15
- package/lib/table-pagination/table-pagination.component.d.ts +4 -3
- package/lib/text-list/text-list.component.d.ts +2 -1
- package/lib/types/item-storage.types.d.ts +15 -17
- package/package.json +1 -1
- package/prebuilt-themes/default/buttons/button.css +72 -57
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +65 -51
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +56 -44
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +134 -54
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +48 -22
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +4 -4
- package/prebuilt-themes/default/chips.css +18 -13
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +1 -1
- package/prebuilt-themes/default/core.css +9 -1
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +6 -2
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +31 -11
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +72 -25
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +5 -44
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +79 -21
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +112 -62
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +47 -20
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +39 -15
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +52 -22
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +67 -22
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/search-bar.css +41 -16
- package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +1 -1
- package/prebuilt-themes/default/kbd.css +1 -1
- package/prebuilt-themes/default/modal.css +2 -1
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +9 -7
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +74 -61
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +91 -44
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +4 -4
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +100 -52
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/stars.css +4 -4
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/statebox.css +5 -5
- package/prebuilt-themes/default/tabber.css +40 -16
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table.css.map +1 -1
- package/themes/_variables.scss +2 -1
- package/themes/default/_mixins.scss +4 -4
- package/themes/default/buttons/_button-mixins.scss +43 -33
- package/themes/default/buttons/button.scss +49 -28
- package/themes/default/buttons/fab.scss +48 -26
- package/themes/default/buttons/icon-button.scss +38 -17
- package/themes/default/calendar.scss +146 -55
- package/themes/default/checkbox-list.scss +47 -21
- package/themes/default/chips.scss +12 -12
- package/themes/default/color-display.scss +1 -1
- package/themes/default/core.scss +11 -1
- package/themes/default/form-field-frame.scss +9 -4
- package/themes/default/form-field.scss +23 -9
- package/themes/default/inputs/_shared.scss +30 -9
- package/themes/default/inputs/autocomplete-input.scss +68 -14
- package/themes/default/inputs/color-input.scss +2 -2
- package/themes/default/inputs/date-input.scss +54 -5
- package/themes/default/inputs/digit-input.scss +1 -1
- package/themes/default/inputs/file-input.scss +83 -23
- package/themes/default/inputs/hex-input.scss +44 -9
- package/themes/default/inputs/input.scss +37 -4
- package/themes/default/inputs/number-input.scss +54 -15
- package/themes/default/inputs/password-input.scss +70 -15
- package/themes/default/inputs/search-bar.scss +39 -5
- package/themes/default/kbd-shortcut.scss +1 -1
- package/themes/default/kbd.scss +1 -1
- package/themes/default/modal.scss +2 -1
- package/themes/default/radio.scss +5 -3
- package/themes/default/segment.scss +75 -67
- package/themes/default/select.scss +96 -42
- package/themes/default/slider.scss +100 -65
- package/themes/default/statebox.scss +1 -1
- package/themes/default/tabber.scss +36 -13
- package/lib/tabber/tab/tab.defaults.d.ts +0 -6
- package/prebuilt-themes/default/calendar-OLD.css +0 -294
- package/prebuilt-themes/default/calendar-OLD.css.map +0 -1
- package/themes/default/calendar-OLD.scss +0 -183
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ard-tabber-tab-height: 2.5em;
|
|
3
|
+
--ard-tabber-tab-font-size: 0.875rem;
|
|
4
|
+
--ard-tabber-tab-font-weight: 500;
|
|
5
|
+
--ard-tabber-tab-border: none;
|
|
6
|
+
--ard-tabber-tab-background: none;
|
|
7
|
+
--ard-tabber-tab-padding: 0 1.5rem;
|
|
8
|
+
--ard-tabber-tab-gap: 0;
|
|
9
|
+
--ard-tabber-tab-content-gap: 0.375rem;
|
|
10
|
+
--ard-tabber-separator-border: 1px solid var(--ard-detail-ultralight, rgba(0, 0, 0, 12%));
|
|
11
|
+
--ard-tabber-tab-overlay-color: var(--ard-bg-alt, black);
|
|
12
|
+
--ard-tabber-tab-hover-opacity: 4%;
|
|
13
|
+
--ard-tabber-tab-active-opacity: 12%;
|
|
14
|
+
--ard-tabber-tab-focus-visible-opacity: 18%;
|
|
15
|
+
}
|
|
16
|
+
|
|
1
17
|
ard-tabber {
|
|
2
18
|
max-width: 100%;
|
|
3
19
|
}
|
|
@@ -8,7 +24,7 @@ ard-tabber {
|
|
|
8
24
|
display: flex;
|
|
9
25
|
flex-direction: column;
|
|
10
26
|
align-items: stretch;
|
|
11
|
-
font-family:
|
|
27
|
+
font-family: var(--ard-font-family);
|
|
12
28
|
}
|
|
13
29
|
.ard-tabber.ard-color-none {
|
|
14
30
|
--ard-cmpcl--bg: var(--ard-bg);
|
|
@@ -147,7 +163,8 @@ ard-tabber {
|
|
|
147
163
|
max-width: 100%;
|
|
148
164
|
display: flex;
|
|
149
165
|
flex-wrap: wrap;
|
|
150
|
-
|
|
166
|
+
gap: var(--ard-tabber-tab-gap, 0);
|
|
167
|
+
border-bottom: var(--ard-tabber-separator-border, 1px solid var(--ard-detail-ultralight, rgba(0, 0, 0, 0.12)));
|
|
151
168
|
}
|
|
152
169
|
.ard-tabber .ard-tabber-tabs.ard-tab-align-left {
|
|
153
170
|
justify-content: left;
|
|
@@ -165,37 +182,44 @@ ard-tabber {
|
|
|
165
182
|
flex-grow: 1;
|
|
166
183
|
}
|
|
167
184
|
.ard-tabber .ard-tabber-tabs .ard-tab-button {
|
|
168
|
-
height: 2.5em;
|
|
169
|
-
font-size: 0.875rem;
|
|
170
|
-
font-weight: 500;
|
|
185
|
+
height: var(--ard-tabber-tab-height, 2.5em);
|
|
186
|
+
font-size: var(--ard-tabber-tab-font-size, 0.875rem);
|
|
187
|
+
font-weight: var(--ard-tabber-tab-font-weight, 500);
|
|
171
188
|
position: relative;
|
|
172
|
-
border: none;
|
|
173
|
-
background: none;
|
|
174
|
-
padding: 0 1.5rem;
|
|
189
|
+
border: var(--ard-tabber-tab-border, none);
|
|
190
|
+
background: var(--ard-tabber-tab-background, none);
|
|
191
|
+
padding: var(--ard-tabber-tab-padding, 0 1.5rem);
|
|
175
192
|
cursor: pointer;
|
|
176
193
|
outline: none;
|
|
177
194
|
font-family: inherit;
|
|
178
195
|
}
|
|
179
196
|
.ard-tabber .ard-tabber-tabs .ard-tab-button .ard-focus-overlay {
|
|
180
197
|
position: absolute;
|
|
181
|
-
top: -0;
|
|
182
|
-
bottom: -0;
|
|
183
|
-
left: -0;
|
|
184
|
-
right: -0;
|
|
198
|
+
top: calc(-1 * 0);
|
|
199
|
+
bottom: calc(-1 * 0);
|
|
200
|
+
left: calc(-1 * 0);
|
|
201
|
+
right: calc(-1 * 0);
|
|
185
202
|
opacity: 0;
|
|
186
203
|
border-radius: inherit;
|
|
187
204
|
pointer-events: none;
|
|
188
205
|
transition: opacity 0.2s ease;
|
|
189
|
-
background: var(--ard-bg-alt);
|
|
206
|
+
background: var(--ard-tabber-tab-overlay-color, var(--ard-bg-alt, black));
|
|
207
|
+
}
|
|
208
|
+
.ard-tabber .ard-tabber-tabs .ard-tab-button .ard-button-content {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
height: 100%;
|
|
213
|
+
gap: var(--ard-tabber-tab-content-gap, 0.375rem);
|
|
190
214
|
}
|
|
191
215
|
.ard-tabber .ard-tabber-tabs .ard-tab-button:hover .ard-focus-overlay, .ard-tabber .ard-tabber-tabs .ard-tab-button:focus .ard-focus-overlay {
|
|
192
|
-
opacity: 4
|
|
216
|
+
opacity: var(--ard-tabber-tab-hover-opacity, 4%);
|
|
193
217
|
}
|
|
194
218
|
.ard-tabber .ard-tabber-tabs .ard-tab-button.ard-active .ard-focus-overlay, .ard-tabber .ard-tabber-tabs .ard-tab-button:active .ard-focus-overlay {
|
|
195
|
-
opacity: 12
|
|
219
|
+
opacity: var(--ard-tabber-tab-active-opacity, 12%);
|
|
196
220
|
}
|
|
197
221
|
.ard-tabber .ard-tabber-tabs .ard-tab-button:focus-visible .ard-focus-overlay {
|
|
198
|
-
opacity: 18
|
|
222
|
+
opacity: var(--ard-tabber-tab-focus-visible-opacity, 18%);
|
|
199
223
|
}
|
|
200
224
|
.ard-tabber .ard-tabber-tabs .ard-tab-button.ard-tab-active::after {
|
|
201
225
|
content: "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/tabber.scss","../../../../projects/ui/src/themes/default/_coloring.scss","../../../../projects/ui/src/themes/default/_mixins.scss"
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/tabber.scss","../../../../projects/ui/src/themes/default/_coloring.scss","../../../../projects/ui/src/themes/default/_mixins.scss"],"names":[],"mappings":"AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EAEE;EACA;EACA;EACA;EACA;EACA;;AC3BA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;ADtGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EEvDJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EFgDM;;AAEF;EACE;EACA;EACA;EACA;EACA;;AAKA;EACE;;AAKF;EACE;;AAIF;EACE;;AAKF;EACE;EACA;EACA;EACA;EACA;EACA;EACA","file":"tabber.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/table.scss","../../../../projects/ui/src/themes/_variables.scss","../../../../projects/ui/src/themes/default/_coloring.scss"],"names":[],"mappings":"AAGA;EAEE;EACA,YCNG;EDmKH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AExKA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AF9HF;EACE;;AAEF;AAAA;EAEE;;AAEA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAKR;EACE;EACA;EACA;;AAEF;EACE;EACA;;AAEA;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;EACA;;AAGJ;EACE;;AAKA;EACE;;AAEF;EACE;;AAMF;AAAA;EAEE;;AAEF;EACE;;AAEF;EACE;;AAGJ;EACE,kBCvFC;EDwFD;EACA;EACA;;AAEA;EACE;;AAEA;EACE;EACA;EACA;;AAEA;EACE;;AASJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE;EACA;;AAEF;EACE;EACA;;AAOR;EACE;EACA;EACA;EACA,OC9HK;ED+HL,YC/IC;EDgJD;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAMF;EACE;;AAiBF;EACE;EACA;;AAEF;EACE;EACA;;AAIF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;;AAIF;EACE,OC/LC;;ADiMH;EACE;EACA,kBC1MD;;AD4MD;EACE;;AAKF;AAAA;AAAA;EAGE;;AAEF;EACE;EACA;;AAEA;EACE;;AAGJ;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AACA;EACE;EACA;;AAEA;EACE;EACA;;AAIN;EACE;EACA;;AAGE;EACE;;AAIF;EACE;;AAUJ;AAAA;EACE;EACA;;AAGJ;EACE;;AAEA;EACE;;AAGJ;EACE;;AAGA;EACE;EACA;;AAGJ;EACE;;AAMF;EACE,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../projects/ui/src/themes/default/table.scss","../../../../projects/ui/src/themes/_variables.scss","../../../../projects/ui/src/themes/default/_coloring.scss"],"names":[],"mappings":"AAGA;EAEE;EACA,YCNG;EDmKH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AExKA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AF9HF;EACE;;AAEF;AAAA;EAEE;;AAEA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;EACE;EACA;EACA;;AAKR;EACE;EACA;EACA;;AAEF;EACE;EACA;;AAEA;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;EACA;;AAGJ;EACE;;AAKA;EACE;;AAEF;EACE;;AAMF;AAAA;EAEE;;AAEF;EACE;;AAEF;EACE;;AAGJ;EACE,kBCvFC;EDwFD;EACA;EACA;;AAEA;EACE;;AAEA;EACE;EACA;EACA;;AAEA;EACE;;AASJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE;EACA;;AAEF;EACE;EACA;;AAOR;EACE;EACA;EACA;EACA,OC9HK;ED+HL,YC/IC;EDgJD;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAMF;EACE;;AAiBF;EACE;EACA;;AAEF;EACE;EACA;;AAIF;EACE;;AAEF;EACE;EACA;;AAEF;EACE;;AAIF;EACE,OC/LC;;ADiMH;EACE;EACA,kBC1MD;;AD4MD;EACE;;AAKF;AAAA;AAAA;EAGE;;AAEF;EACE;EACA;;AAEA;EACE;;AAGJ;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;;AACA;EACE;EACA;;AAEA;EACE;EACA;;AAIN;EACE;EACA;;AAGE;EACE;;AAIF;EACE;;AAUJ;AAAA;EACE;EACA;;AAGJ;EACE;;AAEA;EACE;;AAGJ;EACE;;AAGA;EACE;EACA;;AAGJ;EACE;;AAMF;EACE,YCzQsB;;AD+QxB;EACE;;AAGJ;EACE;;AAEF;EACE;;AAIF;EACE;EACA;EACA;;AAIF;EACE;;AAKA;EACE;EACA;EACA;;AAQF;EACE;;AAMF;EACE;;AAMF;EACE;;AAMF;EACE;;AAMF;EACE;;AAMF;EACE;;AAOF;AAAA;AAAA;AAAA;EAEE;;AAMF;AAAA;AAAA;AAAA;EAEE;;AAMF;AAAA;AAAA;AAAA;EAEE;;AAMF;EACE;;AAMF;EACE;;AAMF;EACE","file":"table.css"}
|
package/themes/_variables.scss
CHANGED
|
@@ -25,6 +25,7 @@ $lighten-overlay-medium: var(--ard-lighten-overlay-medium);
|
|
|
25
25
|
$lighten-overlay-light: var(--ard-lighten-overlay-light);
|
|
26
26
|
$darken-overlay: var(--ard-darken-overlay);
|
|
27
27
|
$darken-overlay-strong: var(--ard-darken-overlay-strong);
|
|
28
|
+
$darken-overlay-medium-strong: var(--ard-darken-overlay-medium-strong);
|
|
28
29
|
$darken-overlay-medium: var(--ard-darken-overlay-medium);
|
|
29
30
|
$darken-overlay-light: var(--ard-darken-overlay-light);
|
|
30
31
|
$darken-overlay-ultralight: var(--ard-darken-overlay-ultralight);
|
|
@@ -40,7 +41,7 @@ $timing-fn: cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
40
41
|
$clear-button-size: var(--ard-clear-button-size);
|
|
41
42
|
$dropdown-button-size: var(--ard-dropdown-button-size);
|
|
42
43
|
$form-field-height: var(--ard-form-field-height);
|
|
43
|
-
$form-field-compact-height: var(--ard-form-field-compact
|
|
44
|
+
$form-field-compact-height: var(--ard-form-field-height-compact);
|
|
44
45
|
|
|
45
46
|
$gold: var(--ard-gold);
|
|
46
47
|
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
@mixin focus-overlay($size: 0) {
|
|
14
14
|
position: absolute;
|
|
15
|
-
top:
|
|
16
|
-
bottom:
|
|
17
|
-
left:
|
|
18
|
-
right:
|
|
15
|
+
top: calc(-1 * #{$size});
|
|
16
|
+
bottom: calc(-1 * #{$size});
|
|
17
|
+
left: calc(-1 * #{$size});
|
|
18
|
+
right: calc(-1 * #{$size});
|
|
19
19
|
opacity: 0;
|
|
20
20
|
border-radius: inherit;
|
|
21
21
|
pointer-events: none;
|
|
@@ -2,42 +2,54 @@
|
|
|
2
2
|
@use '../coloring' as coloringMixins;
|
|
3
3
|
@use '../../variables' as ARD;
|
|
4
4
|
|
|
5
|
-
@mixin button
|
|
5
|
+
@mixin button(
|
|
6
|
+
$margin,
|
|
7
|
+
$padding,
|
|
8
|
+
$font-size,
|
|
9
|
+
$font-weight,
|
|
10
|
+
$hover-opacity,
|
|
11
|
+
$focus-opacity,
|
|
12
|
+
$active-opacity,
|
|
13
|
+
$focus-visible-opacity
|
|
14
|
+
) {
|
|
6
15
|
@include coloringMixins.typeColors();
|
|
7
|
-
font-family:
|
|
8
|
-
margin:
|
|
16
|
+
font-family: var(--ard-font-family);
|
|
17
|
+
margin: $margin;
|
|
18
|
+
padding: $padding;
|
|
9
19
|
border: 1px solid transparent;
|
|
10
|
-
font-weight:
|
|
20
|
+
font-weight: $font-weight;
|
|
21
|
+
font-size: $font-size;
|
|
11
22
|
display: inline-flex;
|
|
12
23
|
align-items: center;
|
|
13
24
|
position: relative;
|
|
14
25
|
cursor: pointer;
|
|
15
26
|
outline: none;
|
|
16
27
|
|
|
17
|
-
//! button icon
|
|
18
|
-
.ard-button-icon {
|
|
19
|
-
@include defaultMixins.icon(1);
|
|
20
|
-
}
|
|
21
28
|
//! button focus inficator
|
|
22
|
-
|
|
29
|
+
&::before {
|
|
30
|
+
content: '';
|
|
23
31
|
@include defaultMixins.focus-overlay;
|
|
24
32
|
background-color: var(--ard-cmpcl--overlay);
|
|
25
33
|
}
|
|
26
|
-
&:hover
|
|
34
|
+
&:hover {
|
|
35
|
+
&::before {
|
|
36
|
+
opacity: $hover-opacity;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
27
39
|
&:focus {
|
|
28
|
-
|
|
29
|
-
opacity:
|
|
40
|
+
&::before {
|
|
41
|
+
opacity: $focus-opacity;
|
|
30
42
|
}
|
|
31
43
|
}
|
|
32
44
|
&.ard-active,
|
|
33
45
|
&:active {
|
|
34
|
-
|
|
35
|
-
opacity:
|
|
46
|
+
&::before {
|
|
47
|
+
opacity: $active-opacity;
|
|
36
48
|
}
|
|
37
49
|
}
|
|
38
50
|
&:focus-visible {
|
|
39
|
-
|
|
40
|
-
opacity:
|
|
51
|
+
&::before {
|
|
52
|
+
opacity: $focus-visible-opacity;
|
|
41
53
|
}
|
|
42
54
|
}
|
|
43
55
|
//! button appearances
|
|
@@ -47,7 +59,7 @@
|
|
|
47
59
|
color: var(--ard-cmpcl--content);
|
|
48
60
|
border: none;
|
|
49
61
|
|
|
50
|
-
|
|
62
|
+
&::before {
|
|
51
63
|
background: var(--ard-cmpcl--overlay-colored);
|
|
52
64
|
}
|
|
53
65
|
}
|
|
@@ -70,7 +82,7 @@
|
|
|
70
82
|
color: var(--ard-cmpcl--content);
|
|
71
83
|
border: 1px solid ARD.$border-light;
|
|
72
84
|
|
|
73
|
-
|
|
85
|
+
&::before {
|
|
74
86
|
background: var(--ard-cmpcl--overlay-colored);
|
|
75
87
|
}
|
|
76
88
|
}
|
|
@@ -79,13 +91,11 @@
|
|
|
79
91
|
color: var(--ard-cmpcl--content);
|
|
80
92
|
border: 1px solid ARD.$border-light;
|
|
81
93
|
|
|
82
|
-
|
|
94
|
+
&::before {
|
|
83
95
|
display: none;
|
|
84
96
|
}
|
|
85
97
|
|
|
86
|
-
transition:
|
|
87
|
-
background-color 0.2s ease,
|
|
88
|
-
color 0.2s ease;
|
|
98
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
|
89
99
|
&:hover,
|
|
90
100
|
&:focus-visible {
|
|
91
101
|
background: var(--ard-cmpcl--bg-colored);
|
|
@@ -94,11 +104,11 @@
|
|
|
94
104
|
}
|
|
95
105
|
&.ard-appearance-flat,
|
|
96
106
|
&.ard-appearance-raised-strong {
|
|
97
|
-
background: var(--ard-cmpcl--bg);
|
|
98
|
-
color: var(--ard-cmpcl--on-bg);
|
|
99
|
-
border:
|
|
107
|
+
background: var(--ard-cmpcl--bg-colored);
|
|
108
|
+
color: var(--ard-cmpcl--on-bg-colored);
|
|
109
|
+
border: 1px solid var(--ard-cmpcl--bg-colored);
|
|
100
110
|
|
|
101
|
-
|
|
111
|
+
&::before {
|
|
102
112
|
background: var(--ard-cmpcl--on-bg);
|
|
103
113
|
}
|
|
104
114
|
&:focus-visible {
|
|
@@ -109,20 +119,20 @@
|
|
|
109
119
|
&.ard-appearance-transparent.ard-light-coloring {
|
|
110
120
|
color: var(--ard-cmpcl--content-light);
|
|
111
121
|
|
|
112
|
-
|
|
122
|
+
&::before {
|
|
113
123
|
background: var(--ard-cmpcl--overlay-colored-light);
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
//! disabled state
|
|
119
|
-
@mixin button-disabled {
|
|
129
|
+
@mixin button-disabled($opacity, $overlay-opacity) {
|
|
120
130
|
pointer-events: none;
|
|
121
|
-
opacity:
|
|
131
|
+
opacity: $opacity;
|
|
122
132
|
cursor: not-allowed;
|
|
123
133
|
|
|
124
|
-
|
|
125
|
-
opacity:
|
|
134
|
+
&::before {
|
|
135
|
+
opacity: $overlay-opacity;
|
|
126
136
|
transform: scale(1);
|
|
127
137
|
}
|
|
128
138
|
|
|
@@ -130,9 +140,9 @@
|
|
|
130
140
|
&.ard-color-none {
|
|
131
141
|
.ard-button-icon,
|
|
132
142
|
.ard-button-content {
|
|
133
|
-
opacity:
|
|
143
|
+
opacity: $opacity;
|
|
134
144
|
}
|
|
135
|
-
|
|
145
|
+
&::before {
|
|
136
146
|
background: var(--ard-cmpcl--overlay);
|
|
137
147
|
}
|
|
138
148
|
}
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
|
|
3
|
+
:root {
|
|
4
|
+
--ard-button-height: 2.5em;
|
|
5
|
+
--ard-button-height-compact: 2.25em;
|
|
6
|
+
--ard-button-margin: 0.125rem;
|
|
7
|
+
--ard-button-padding: 0 1.2em;
|
|
8
|
+
--ard-button-padding-compact: 0 0.9em;
|
|
9
|
+
--ard-button-padding-vertical: 0.3em 1em;
|
|
10
|
+
--ard-button-padding-vertical-compact: 0.2em 0.8em;
|
|
11
|
+
--ard-button-gap: 0.375rem;
|
|
12
|
+
--ard-button-font-size: 0.875rem;
|
|
13
|
+
--ard-button-font-size-compact: 0.75rem;
|
|
14
|
+
--ard-button-font-weight: 500;
|
|
15
|
+
--ard-button-overlay-hover-opacity: 0.04;
|
|
16
|
+
--ard-button-overlay-focus-opacity: 0.12;
|
|
17
|
+
--ard-button-overlay-active-opacity: 0.18;
|
|
18
|
+
--ard-button-overlay-focus-visible-opacity: 0.24;
|
|
19
|
+
--ard-button-overlay-disabled-opacity: 0.2;
|
|
20
|
+
--ard-button-rounded-corner-radius: var(--ard-rounded-corner-radius, 0.375rem);
|
|
21
|
+
--ard-button-disabled-opacity: 0.6;
|
|
22
|
+
}
|
|
23
|
+
|
|
3
24
|
ard-button {
|
|
4
25
|
display: block;
|
|
5
26
|
width: max-content;
|
|
@@ -7,23 +28,28 @@ ard-button {
|
|
|
7
28
|
}
|
|
8
29
|
|
|
9
30
|
.ard-button {
|
|
10
|
-
@include shared.button
|
|
31
|
+
@include shared.button(
|
|
32
|
+
var(--ard-button-margin, 0.125rem),
|
|
33
|
+
var(--ard-button-padding, 0 1.2em),
|
|
34
|
+
var(--ard-button-font-size, 0.875rem),
|
|
35
|
+
var(--ard-button-font-weight, 500),
|
|
36
|
+
var(--ard-button-overlay-hover-opacity, 0.04),
|
|
37
|
+
var(--ard-button-overlay-focus-opacity, 0.12),
|
|
38
|
+
var(--ard-button-overlay-active-opacity, 0.18),
|
|
39
|
+
var(--ard-button-overlay-focus-visible-opacity, 0.24)
|
|
40
|
+
);
|
|
11
41
|
background: transparent;
|
|
12
|
-
gap: 0.375rem;
|
|
13
|
-
font-size: 0.875rem;
|
|
14
|
-
height: 2.5em;
|
|
15
|
-
padding: 0 1.2em;
|
|
16
|
-
|
|
17
|
-
width: 100%;
|
|
42
|
+
gap: var(--ard-button-gap, 0.375rem);
|
|
43
|
+
font-size: var(--ard-button-font-size, 0.875rem);
|
|
44
|
+
height: var(--ard-button-height, 2.5em);
|
|
45
|
+
padding: var(--ard-button-padding, 0 1.2em);
|
|
46
|
+
width: max-content;
|
|
18
47
|
min-width: max-content;
|
|
48
|
+
letter-spacing: 0.5px;
|
|
19
49
|
justify-content: center;
|
|
20
50
|
margin: 0;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: 0.375rem;
|
|
26
|
-
}
|
|
51
|
+
user-select: none;
|
|
52
|
+
text-decoration: none;
|
|
27
53
|
|
|
28
54
|
//! aligns
|
|
29
55
|
&.ard-align-left {
|
|
@@ -36,13 +62,13 @@ ard-button {
|
|
|
36
62
|
//! button variants
|
|
37
63
|
&.ard-button-vertical {
|
|
38
64
|
height: max-content;
|
|
39
|
-
padding: 0.3em 1em;
|
|
65
|
+
padding: var(--ard-button-padding-vertical, 0.3em 1em);
|
|
40
66
|
gap: 2px;
|
|
41
67
|
flex-direction: column;
|
|
42
68
|
}
|
|
43
69
|
&.ard-variant-rounded,
|
|
44
70
|
&.ard-variant-pill.ard-button-vertical {
|
|
45
|
-
border-radius:
|
|
71
|
+
border-radius: var(--ard-button-rounded-corner-radius, 0.375rem);
|
|
46
72
|
}
|
|
47
73
|
&.ard-variant-pill:not(.ard-button-vertical) {
|
|
48
74
|
border-radius: 9999px;
|
|
@@ -53,26 +79,21 @@ ard-button {
|
|
|
53
79
|
|
|
54
80
|
//! compact
|
|
55
81
|
&.ard-compact {
|
|
56
|
-
font-size: 0.75rem;
|
|
57
|
-
height: 2.25em;
|
|
58
|
-
padding: 0 0.9em;
|
|
82
|
+
font-size: var(--ard-button-font-size-compact, 0.75rem);
|
|
83
|
+
height: var(--ard-button-height-compact, 2.25em);
|
|
84
|
+
padding: var(--ard-button-padding-compact, 0 0.9em);
|
|
59
85
|
|
|
60
86
|
&.ard-button-vertical {
|
|
61
87
|
height: max-content;
|
|
62
|
-
padding: 0.2em 0.8em;
|
|
88
|
+
padding: var(--ard-button-padding-vertical-compact, 0.2em 0.8em);
|
|
63
89
|
gap: 0;
|
|
64
90
|
}
|
|
65
91
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
ard-button.ard-disabled
|
|
69
|
-
> .ard-button {
|
|
70
|
-
@include shared.button-disabled;
|
|
71
|
-
}
|
|
72
|
-
&.ard-button-with-pointer-events-when-disabled {
|
|
73
|
-
pointer-events: all;
|
|
92
|
+
//! disabled
|
|
93
|
+
&.ard-disabled {
|
|
94
|
+
@include shared.button-disabled(var(--ard-button-disabled-opacity, 0.6), var(--ard-button-overlay-disabled-opacity, 0.2));
|
|
74
95
|
|
|
75
|
-
|
|
96
|
+
&.ard-button-with-pointer-events-when-disabled {
|
|
76
97
|
pointer-events: all;
|
|
77
98
|
}
|
|
78
99
|
}
|
|
@@ -1,55 +1,74 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
@use '../mixins' as CM;
|
|
3
3
|
|
|
4
|
+
:root {
|
|
5
|
+
--ard-fab-size-standard: 3.5rem;
|
|
6
|
+
--ard-fab-size-small: 2.5rem;
|
|
7
|
+
--ard-fab-margin: 0.5rem;
|
|
8
|
+
--ard-fab-size-standard-font-size: 1.75rem;
|
|
9
|
+
--ard-fab-size-small-font-size: 1.375rem;
|
|
10
|
+
--ard-fab-font-weight: 900;
|
|
11
|
+
--ard-fab-extended-gap: 0.75em;
|
|
12
|
+
--ard-fab-overlay-hover-opacity: 0.04;
|
|
13
|
+
--ard-fab-overlay-focus-opacity: 0.12;
|
|
14
|
+
--ard-fab-overlay-active-opacity: 0.18;
|
|
15
|
+
--ard-fab-overlay-focus-visible-opacity: 0.24;
|
|
16
|
+
--ard-fab-overlay-disabled-opacity: 0.2;
|
|
17
|
+
--ard-fab-rounded-corner-radius: var(--ard-rounded-corner-radius, 0.375rem);
|
|
18
|
+
--ard-fab-disabled-opacity: 0.6;
|
|
19
|
+
}
|
|
20
|
+
|
|
4
21
|
ard-fab {
|
|
5
|
-
margin:
|
|
22
|
+
margin: var(--ard-fab-margin, 0.5rem);
|
|
6
23
|
display: block;
|
|
7
24
|
width: max-content;
|
|
8
25
|
height: max-content;
|
|
9
26
|
}
|
|
10
27
|
|
|
11
28
|
.ard-fab {
|
|
12
|
-
@include shared.button
|
|
29
|
+
@include shared.button(
|
|
30
|
+
0,
|
|
31
|
+
0,
|
|
32
|
+
unset,
|
|
33
|
+
var(--ard-fab-font-weight, 900),
|
|
34
|
+
var(--ard-fab-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
35
|
+
var(--ard-fab-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
36
|
+
var(--ard-fab-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
37
|
+
var(--ard-fab-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
38
|
+
);
|
|
13
39
|
height: var(--ard-_fab-size);
|
|
14
40
|
width: var(--ard-_fab-size);
|
|
15
|
-
|
|
41
|
+
max-height: var(--ard-_fab-size);
|
|
42
|
+
max-width: var(--ard-_fab-size);
|
|
43
|
+
min-height: var(--ard-_fab-size);
|
|
44
|
+
min-width: var(--ard-_fab-size);
|
|
16
45
|
user-select: none;
|
|
17
|
-
border-radius:
|
|
46
|
+
border-radius: 9999px;
|
|
18
47
|
justify-content: center;
|
|
19
48
|
margin: 0;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
transition: max-width 0.5s ease;
|
|
20
52
|
|
|
21
53
|
&.ard-fab-size-standard {
|
|
22
|
-
--ard-_fab-size: 3.5rem;
|
|
23
|
-
font-size: 1.75rem;
|
|
54
|
+
--ard-_fab-size: var(--ard-fab-size-standard, 3.5rem);
|
|
55
|
+
font-size: var(--ard-fab-size-standard-font-size, 1.75rem);
|
|
24
56
|
}
|
|
25
57
|
&.ard-fab-size-small {
|
|
26
|
-
--ard-_fab-size: 2.5rem;
|
|
27
|
-
font-size: 1.375rem;
|
|
58
|
+
--ard-_fab-size: var(--ard-fab-size-small, 2.5rem);
|
|
59
|
+
font-size: var(--ard-fab-size-small-font-size, 1.375rem);
|
|
28
60
|
}
|
|
29
61
|
&.ard-fab-extended {
|
|
30
62
|
min-width: var(--ard-_fab-size);
|
|
31
63
|
width: max-content;
|
|
32
64
|
font-weight: unset;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
gap: 0.75em;
|
|
36
|
-
max-width: 10em;
|
|
37
|
-
}
|
|
65
|
+
gap: var(--ard-fab-extended-gap, 1em);
|
|
66
|
+
max-width: 10em;
|
|
38
67
|
}
|
|
39
68
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
font-weight: 500;
|
|
43
|
-
justify-content: flex-start !important;
|
|
44
|
-
max-width: 1.5em;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
transition: max-width 0.5s ease;
|
|
47
|
-
|
|
48
|
-
ard-icon {
|
|
49
|
-
font-size: 1em;
|
|
50
|
-
}
|
|
69
|
+
ard-icon {
|
|
70
|
+
font-size: 1em;
|
|
51
71
|
}
|
|
52
|
-
|
|
53
72
|
&.ard-appearance-transparent {
|
|
54
73
|
@include CM.focus-overlay-scale-addon();
|
|
55
74
|
}
|
|
@@ -57,7 +76,10 @@ ard-fab {
|
|
|
57
76
|
|
|
58
77
|
ard-fab.ard-disabled {
|
|
59
78
|
> .ard-fab {
|
|
60
|
-
@include shared.button-disabled
|
|
79
|
+
@include shared.button-disabled(
|
|
80
|
+
var(--ard-fab-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2)),
|
|
81
|
+
var(--ard-fab-disabled-opacity, var(--ard-button-disabled-opacity, 0.6))
|
|
82
|
+
);
|
|
61
83
|
}
|
|
62
84
|
&.ard-button-with-pointer-events-when-disabled {
|
|
63
85
|
pointer-events: all;
|
|
@@ -1,42 +1,60 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
|
|
3
|
+
:root {
|
|
4
|
+
--ard-icon-button-height: 2.1875em;
|
|
5
|
+
--ard-icon-button-height-compact: 2.25em;
|
|
6
|
+
--ard-icon-button-margin: 0;
|
|
7
|
+
--ard-icon-button-font-size: 1rem;
|
|
8
|
+
--ard-icon-button-icon-font-size: 1.5em;
|
|
9
|
+
--ard-icon-button-font-size-compact: 0.75rem;
|
|
10
|
+
--ard-icon-button-font-weight: 600;
|
|
11
|
+
--ard-icon-button-overlay-hover-opacity: var(--ard-button-overlay-hover-opacity, 0.04);
|
|
12
|
+
--ard-icon-button-overlay-focus-opacity: var(--ard-button-overlay-focus-opacity, 0.12);
|
|
13
|
+
--ard-icon-button-overlay-active-opacity: var(--ard-button-overlay-active-opacity, 0.18);
|
|
14
|
+
--ard-icon-button-overlay-focus-visible-opacity: var(--ard-button-overlay-focus-visible-opacity, 0.24);
|
|
15
|
+
--ard-icon-button-overlay-disabled-opacity: var(--ard-button-overlay-disabled-opacity, 0.2);
|
|
16
|
+
--ard-icon-button-disabled-opacity: var(--ard-button-disabled-opacity, 0.6);
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
ard-icon-button {
|
|
4
20
|
height: max-content;
|
|
5
21
|
width: max-content;
|
|
6
22
|
border-radius: 9999px;
|
|
7
23
|
aspect-ratio: 1;
|
|
8
24
|
display: inline-block;
|
|
9
|
-
|
|
25
|
+
margin: var(--ard-icon-button-margin, 0);
|
|
26
|
+
font-size: var(--ard-icon-button-font-size, 1rem);
|
|
10
27
|
}
|
|
11
28
|
|
|
12
29
|
.ard-icon-button {
|
|
13
|
-
@include shared.button
|
|
30
|
+
@include shared.button(
|
|
31
|
+
0,
|
|
32
|
+
0,
|
|
33
|
+
inherit,
|
|
34
|
+
inherit,
|
|
35
|
+
var(--ard-icon-button-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
36
|
+
var(--ard-icon-button-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
37
|
+
var(--ard-icon-button-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
38
|
+
var(--ard-icon-button-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
39
|
+
);
|
|
14
40
|
background: transparent;
|
|
15
|
-
height: 2.1875em;
|
|
41
|
+
height: var(--ard-icon-button-height, 2.1875em);
|
|
16
42
|
aspect-ratio: 1;
|
|
17
43
|
border-radius: 9999px;
|
|
18
44
|
align-items: center;
|
|
19
45
|
justify-content: center;
|
|
20
46
|
padding: 0;
|
|
21
47
|
overflow: hidden;
|
|
22
|
-
font-weight: 600;
|
|
23
|
-
font-size: inherit;
|
|
24
48
|
color: var(--ard-cmpcl--bg-colored);
|
|
25
49
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
> ard-icon {
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
font-size: 1.5em;
|
|
33
|
-
}
|
|
50
|
+
> ard-icon {
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
font-size: var(--ard-icon-button-icon-font-size);
|
|
34
53
|
}
|
|
35
|
-
|
|
36
54
|
//! compact
|
|
37
55
|
&.ard-compact {
|
|
38
|
-
height: 2.25em;
|
|
39
|
-
font-size: 0.
|
|
56
|
+
height: var(--ard-icon-button-height-compact, 2.25em);
|
|
57
|
+
font-size: var(--ard-icon-button-font-size-compact, 0.75rem);
|
|
40
58
|
}
|
|
41
59
|
//! light coloring
|
|
42
60
|
&.ard-light-coloring {
|
|
@@ -46,7 +64,10 @@ ard-icon-button {
|
|
|
46
64
|
|
|
47
65
|
ard-icon-button.ard-disabled {
|
|
48
66
|
> .ard-icon-button {
|
|
49
|
-
@include shared.button-disabled
|
|
67
|
+
@include shared.button-disabled(
|
|
68
|
+
var(--ard-icon-button-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2)),
|
|
69
|
+
var(--ard-icon-button-disabled-opacity, var(--ard-button-disabled-opacity, 0.6))
|
|
70
|
+
);
|
|
50
71
|
|
|
51
72
|
.ard-focus-overlay {
|
|
52
73
|
opacity: 0;
|