@ardium-ui/ui 5.0.0-alpha.8 → 5.0.0-alpha.80
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 +5010 -2557
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/boolean-component.d.ts +13 -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 +3 -2
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +19 -19
- 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 +5 -8
- 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/breakpoints/breakpoint.service.d.ts +12 -0
- package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
- package/lib/breakpoints/breakpoints.d.ts +13 -0
- package/lib/breakpoints/index.d.ts +2 -0
- 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 +128 -0
- package/lib/calendar/calendar.component.d.ts +8 -96
- package/lib/calendar/calendar.defaults.d.ts +16 -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 +21 -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 +16 -3
- package/lib/checkbox/checkbox.component.d.ts +5 -2
- package/lib/checkbox/checkbox.types.d.ts +2 -0
- 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 +5 -2
- package/lib/dialog/dialog.component.d.ts +13 -8
- package/lib/dialog/dialog.types.d.ts +1 -0
- package/lib/divider/divider.component.d.ts +2 -3
- package/lib/divider/divider.defaults.d.ts +5 -0
- package/lib/divider/divider.directive.d.ts +18 -0
- package/lib/divider/divider.module.d.ts +3 -2
- package/lib/divider/divider.types.d.ts +5 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
- package/lib/dropdown-panel/dropdown-panel.types.d.ts +1 -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/auto-error/auto-error.component.d.ts +19 -0
- package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
- package/lib/form-field/error/error.directive.d.ts +3 -2
- package/lib/form-field/form-field-base.d.ts +5 -2
- package/lib/form-field/form-field-child.token.d.ts +5 -5
- package/lib/form-field/form-field-native-inputs.d.ts +6 -11
- package/lib/form-field/form-field.component.d.ts +1 -1
- package/lib/form-field/form-field.defaults.d.ts +1 -0
- 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.directive.d.ts +3 -2
- package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +2 -0
- package/lib/form-field/label/label.component.d.ts +3 -2
- package/lib/form-field-frame/form-field-frame.component.d.ts +5 -3
- package/lib/grid/grid.component.d.ts +51 -0
- package/lib/grid/grid.defaults.d.ts +16 -0
- package/lib/grid/grid.module.d.ts +7 -0
- package/lib/grid/grid.types.d.ts +38 -0
- package/lib/grid/grid.utils.d.ts +11 -0
- package/lib/grid/index.d.ts +4 -0
- package/lib/icon/icon.component.d.ts +2 -1
- package/lib/inputs/_simple-input-base.d.ts +6 -3
- 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 +30 -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 +45 -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 +4 -3
- package/lib/inputs/input-utils.d.ts +13 -2
- package/lib/inputs/number-input/number-input.component.d.ts +20 -12
- package/lib/inputs/number-input/number-input.defaults.d.ts +6 -0
- package/lib/inputs/number-input/number-input.directives.d.ts +12 -0
- package/lib/inputs/number-input/number-input.module.d.ts +1 -1
- package/lib/inputs/number-input/number-input.types.d.ts +6 -0
- package/lib/inputs/password-input/password-input.component.d.ts +5 -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 +9 -6
- package/lib/modal/modal.defaults.d.ts +2 -0
- 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/radio/radio/radio.component.d.ts +8 -3
- package/lib/search-functions.d.ts +1 -1
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +42 -32
- package/lib/select/select.defaults.d.ts +10 -2
- 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 +6 -2
- package/lib/select/select.utils.d.ts +2 -0
- package/lib/slide-toggle/slide-toggle.component.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/star/star-button/star-button.component.d.ts +4 -1
- package/lib/star/star-button/star-button.types.d.ts +1 -0
- package/lib/tabber/index.d.ts +2 -1
- package/lib/tabber/tab/tab.component.d.ts +16 -8
- package/lib/tabber/tabber.component.d.ts +25 -9
- package/lib/tabber/tabber.defaults.d.ts +2 -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/alignment.types.d.ts +7 -1
- package/lib/types/item-storage.types.d.ts +17 -18
- package/lib/types/theming.types.d.ts +1 -0
- package/package.json +3 -2
- package/prebuilt-themes/default/badge.css +234 -205
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css +324 -301
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +317 -299
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +299 -287
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +390 -308
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css +151 -127
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +89 -62
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +349 -362
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +412 -359
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +34 -26
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/color-picker.css +105 -103
- package/prebuilt-themes/default/color-picker.css.map +1 -1
- package/prebuilt-themes/default/core.css +108 -86
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +19 -15
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css +84 -8
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +42 -34
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +329 -276
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +102 -98
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +148 -118
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -132
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +99 -137
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +134 -63
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +120 -110
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +385 -325
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +150 -117
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +137 -107
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +213 -164
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +120 -71
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +14 -9
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +26 -15
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +96 -71
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-bar.css +250 -228
- package/prebuilt-themes/default/progress-bar.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +178 -164
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +246 -223
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +432 -414
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +302 -270
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +319 -261
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +399 -351
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +189 -169
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +161 -148
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +271 -246
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +250 -207
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css +57 -45
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +464 -432
- package/prebuilt-themes/default/table.css.map +1 -1
- package/public-api.d.ts +2 -1
- package/themes/_variables.scss +2 -1
- package/themes/default/_coloring.scss +7 -0
- package/themes/default/_mixins.scss +5 -5
- package/themes/default/badge.scss +115 -80
- package/themes/default/buttons/_button-mixins.scss +43 -33
- package/themes/default/buttons/button.scss +90 -63
- package/themes/default/buttons/fab.scss +74 -49
- package/themes/default/buttons/icon-button.scss +70 -45
- package/themes/default/calendar.scss +257 -163
- package/themes/default/card.scss +167 -121
- package/themes/default/checkbox-list.scss +90 -62
- package/themes/default/checkbox.scss +64 -91
- package/themes/default/chips.scss +203 -143
- package/themes/default/color-display.scss +40 -28
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +123 -97
- package/themes/default/dialog.scss +22 -13
- package/themes/default/divider.scss +109 -7
- package/themes/default/dropdown-panel.scss +49 -34
- package/themes/default/file-drop-area.scss +197 -138
- package/themes/default/form-field-frame.scss +73 -63
- package/themes/default/form-field.scss +136 -98
- package/themes/default/inputs/_shared.scss +52 -12
- package/themes/default/inputs/autocomplete-input.scss +102 -31
- package/themes/default/inputs/color-input.scss +34 -32
- package/themes/default/inputs/date-input.scss +90 -20
- package/themes/default/inputs/digit-input.scss +103 -79
- package/themes/default/inputs/file-input.scss +160 -81
- package/themes/default/inputs/hex-input.scss +68 -16
- package/themes/default/inputs/input.scss +55 -6
- package/themes/default/inputs/number-input.scss +164 -92
- package/themes/default/inputs/password-input.scss +100 -29
- package/themes/default/kbd-shortcut.scss +16 -8
- package/themes/default/kbd.scss +35 -16
- package/themes/default/modal.scss +109 -73
- package/themes/default/progress-bar.scss +126 -102
- package/themes/default/progress-circle.scss +49 -41
- package/themes/default/radio.scss +110 -87
- package/themes/default/segment.scss +282 -267
- package/themes/default/select.scss +255 -197
- package/themes/default/slide-toggle.scss +193 -116
- package/themes/default/slider.scss +230 -187
- package/themes/default/snackbar.scss +52 -32
- package/themes/default/spinner.scss +24 -14
- package/themes/default/stars.scss +99 -68
- package/themes/default/tabber.scss +109 -67
- package/themes/default/table-pagination.scss +60 -44
- package/themes/default/table.scss +379 -343
- package/lib/statebox/index.d.ts +0 -4
- package/lib/statebox/statebox.component.d.ts +0 -26
- package/lib/statebox/statebox.defaults.d.ts +0 -10
- package/lib/statebox/statebox.module.d.ts +0 -8
- package/lib/statebox/statebox.types.d.ts +0 -26
- 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/prebuilt-themes/default/inputs/search-bar.css +0 -118
- package/prebuilt-themes/default/inputs/search-bar.css.map +0 -1
- package/prebuilt-themes/default/statebox.css +0 -235
- package/prebuilt-themes/default/statebox.css.map +0 -1
- package/themes/default/calendar-OLD.scss +0 -183
- package/themes/default/inputs/search-bar.scss +0 -19
- package/themes/default/statebox.scss +0 -109
|
@@ -1,79 +1,106 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
|
|
3
|
-
ard-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
gap: 0.375rem;
|
|
3
|
+
@layer ard-ui {
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-button-height: 2.5em;
|
|
8
|
+
--ard-button-height-compact: 2.25em;
|
|
9
|
+
--ard-button-margin: 0.125rem;
|
|
10
|
+
--ard-button-padding: 0 1.2em;
|
|
11
|
+
--ard-button-padding-compact: 0 0.9em;
|
|
12
|
+
--ard-button-padding-vertical: 0.3em 1em;
|
|
13
|
+
--ard-button-padding-vertical-compact: 0.2em 0.8em;
|
|
14
|
+
--ard-button-gap: 0.375rem;
|
|
15
|
+
--ard-button-font-size: 0.875rem;
|
|
16
|
+
--ard-button-font-size-compact: 0.75rem;
|
|
17
|
+
--ard-button-font-weight: 500;
|
|
18
|
+
--ard-button-overlay-hover-opacity: 0.04;
|
|
19
|
+
--ard-button-overlay-focus-opacity: 0.12;
|
|
20
|
+
--ard-button-overlay-active-opacity: 0.18;
|
|
21
|
+
--ard-button-overlay-focus-visible-opacity: 0.24;
|
|
22
|
+
--ard-button-overlay-disabled-opacity: 0.2;
|
|
23
|
+
// --ard-button-rounded-corner-radius: ;
|
|
24
|
+
--ard-button-disabled-opacity: 0.6;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
&.ard-align-right {
|
|
33
|
-
flex-direction: row-reverse;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//! button variants
|
|
37
|
-
&.ard-button-vertical {
|
|
27
|
+
ard-button {
|
|
28
|
+
display: flex;
|
|
29
|
+
width: max-content;
|
|
38
30
|
height: max-content;
|
|
39
|
-
|
|
40
|
-
gap: 2px;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
}
|
|
43
|
-
&.ard-variant-rounded,
|
|
44
|
-
&.ard-variant-pill.ard-button-vertical {
|
|
45
|
-
border-radius: 6px;
|
|
46
|
-
}
|
|
47
|
-
&.ard-variant-pill:not(.ard-button-vertical) {
|
|
48
|
-
border-radius: 9999px;
|
|
49
|
-
}
|
|
50
|
-
&.ard-variant-sharp {
|
|
51
|
-
border-radius: 0;
|
|
31
|
+
justify-content: stretch;
|
|
52
32
|
}
|
|
53
33
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
34
|
+
.ard-button {
|
|
35
|
+
@include shared.button(
|
|
36
|
+
var(--ard-button-margin, 0.125rem),
|
|
37
|
+
var(--ard-button-padding, 0 1.2em),
|
|
38
|
+
var(--ard-button-font-size, 0.875rem),
|
|
39
|
+
var(--ard-button-font-weight, 500),
|
|
40
|
+
var(--ard-button-overlay-hover-opacity, 0.04),
|
|
41
|
+
var(--ard-button-overlay-focus-opacity, 0.12),
|
|
42
|
+
var(--ard-button-overlay-active-opacity, 0.18),
|
|
43
|
+
var(--ard-button-overlay-focus-visible-opacity, 0.24)
|
|
44
|
+
);
|
|
45
|
+
background: transparent;
|
|
46
|
+
gap: var(--ard-button-gap, 0.375rem);
|
|
47
|
+
font-size: var(--ard-button-font-size, 0.875rem);
|
|
48
|
+
height: var(--ard-button-height, 2.5em);
|
|
49
|
+
padding: var(--ard-button-padding, 0 1.2em);
|
|
50
|
+
width: max-content;
|
|
51
|
+
min-width: max-content;
|
|
52
|
+
letter-spacing: 0.5px;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
margin: 0;
|
|
55
|
+
user-select: none;
|
|
56
|
+
text-decoration: none;
|
|
57
|
+
flex-grow: 1;
|
|
59
58
|
|
|
59
|
+
//! aligns
|
|
60
|
+
&.ard-align-left {
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
}
|
|
63
|
+
&.ard-align-right {
|
|
64
|
+
flex-direction: row-reverse;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//! button variants
|
|
60
68
|
&.ard-button-vertical {
|
|
61
69
|
height: max-content;
|
|
62
|
-
padding: 0.
|
|
63
|
-
gap:
|
|
70
|
+
padding: var(--ard-button-padding-vertical, 0.3em 1em);
|
|
71
|
+
gap: 2px;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
}
|
|
74
|
+
&.ard-variant-rounded,
|
|
75
|
+
&.ard-variant-pill.ard-button-vertical {
|
|
76
|
+
border-radius: var(--ard-button-rounded-corner-radius, var(--ard-rounded-corner-radius, 0.375rem));
|
|
77
|
+
}
|
|
78
|
+
&.ard-variant-pill:not(.ard-button-vertical) {
|
|
79
|
+
border-radius: 9999px;
|
|
80
|
+
}
|
|
81
|
+
&.ard-variant-sharp {
|
|
82
|
+
border-radius: 0;
|
|
64
83
|
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
84
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
//! compact
|
|
86
|
+
&.ard-compact {
|
|
87
|
+
font-size: var(--ard-button-font-size-compact, 0.75rem);
|
|
88
|
+
height: var(--ard-button-height-compact, 2.25em);
|
|
89
|
+
padding: var(--ard-button-padding-compact, 0 0.9em);
|
|
90
|
+
|
|
91
|
+
&.ard-button-vertical {
|
|
92
|
+
height: max-content;
|
|
93
|
+
padding: var(--ard-button-padding-vertical-compact, 0.2em 0.8em);
|
|
94
|
+
gap: 0;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//! disabled
|
|
98
|
+
&.ard-disabled {
|
|
99
|
+
@include shared.button-disabled(var(--ard-button-disabled-opacity, 0.6), var(--ard-button-overlay-disabled-opacity, 0.2));
|
|
74
100
|
|
|
75
|
-
|
|
76
|
-
|
|
101
|
+
&.ard-button-with-pointer-events-when-disabled {
|
|
102
|
+
pointer-events: all;
|
|
103
|
+
}
|
|
77
104
|
}
|
|
78
105
|
}
|
|
79
106
|
}
|
|
@@ -1,69 +1,94 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
@use '../mixins' as CM;
|
|
3
3
|
|
|
4
|
-
ard-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
&.ard-fab-size-standard {
|
|
22
|
-
--ard-_fab-size: 3.5rem;
|
|
23
|
-
font-size: 1.75rem;
|
|
4
|
+
@layer ard-ui {
|
|
5
|
+
// the variables are commented out intentionally
|
|
6
|
+
// read more in docs/dev/css-variables.md
|
|
7
|
+
:root {
|
|
8
|
+
--ard-fab-size-standard: 3.5rem;
|
|
9
|
+
--ard-fab-size-small: 2.5rem;
|
|
10
|
+
--ard-fab-margin: 0.5rem;
|
|
11
|
+
--ard-fab-size-standard-font-size: 1.75rem;
|
|
12
|
+
--ard-fab-size-small-font-size: 1.375rem;
|
|
13
|
+
--ard-fab-font-weight: 900;
|
|
14
|
+
--ard-fab-extended-gap: 0.75em;
|
|
15
|
+
--ard-fab-overlay-hover-opacity: 0.04;
|
|
16
|
+
--ard-fab-overlay-focus-opacity: 0.12;
|
|
17
|
+
--ard-fab-overlay-active-opacity: 0.18;
|
|
18
|
+
--ard-fab-overlay-focus-visible-opacity: 0.24;
|
|
19
|
+
--ard-fab-overlay-disabled-opacity: 0.2;
|
|
20
|
+
--ard-fab-disabled-opacity: 0.6;
|
|
24
21
|
}
|
|
25
|
-
&.ard-fab-size-small {
|
|
26
|
-
--ard-_fab-size: 2.5rem;
|
|
27
|
-
font-size: 1.375rem;
|
|
28
|
-
}
|
|
29
|
-
&.ard-fab-extended {
|
|
30
|
-
min-width: var(--ard-_fab-size);
|
|
31
|
-
width: max-content;
|
|
32
|
-
font-weight: unset;
|
|
33
22
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
ard-fab {
|
|
24
|
+
margin: var(--ard-fab-margin, 0.5rem);
|
|
25
|
+
display: block;
|
|
26
|
+
width: max-content;
|
|
27
|
+
height: max-content;
|
|
38
28
|
}
|
|
39
29
|
|
|
40
|
-
.ard-
|
|
41
|
-
|
|
30
|
+
.ard-fab {
|
|
31
|
+
@include shared.button(
|
|
32
|
+
0,
|
|
33
|
+
0,
|
|
34
|
+
unset,
|
|
35
|
+
var(--ard-fab-font-weight, 900),
|
|
36
|
+
var(--ard-fab-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
37
|
+
var(--ard-fab-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
38
|
+
var(--ard-fab-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
39
|
+
var(--ard-fab-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
40
|
+
);
|
|
41
|
+
height: var(--ard-_fab-size);
|
|
42
|
+
width: var(--ard-_fab-size);
|
|
43
|
+
max-height: var(--ard-_fab-size);
|
|
44
|
+
max-width: var(--ard-_fab-size);
|
|
45
|
+
min-height: var(--ard-_fab-size);
|
|
46
|
+
min-width: var(--ard-_fab-size);
|
|
47
|
+
user-select: none;
|
|
48
|
+
border-radius: 9999px;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
margin: 0;
|
|
42
51
|
font-weight: 500;
|
|
43
|
-
justify-content: flex-start !important;
|
|
44
|
-
max-width: 1.5em;
|
|
45
52
|
overflow: hidden;
|
|
46
53
|
transition: max-width 0.5s ease;
|
|
47
54
|
|
|
55
|
+
&.ard-fab-size-standard {
|
|
56
|
+
--ard-_fab-size: var(--ard-fab-size-standard, 3.5rem);
|
|
57
|
+
font-size: var(--ard-fab-size-standard-font-size, 1.75rem);
|
|
58
|
+
}
|
|
59
|
+
&.ard-fab-size-small {
|
|
60
|
+
--ard-_fab-size: var(--ard-fab-size-small, 2.5rem);
|
|
61
|
+
font-size: var(--ard-fab-size-small-font-size, 1.375rem);
|
|
62
|
+
}
|
|
63
|
+
&.ard-fab-extended {
|
|
64
|
+
min-width: var(--ard-_fab-size);
|
|
65
|
+
width: max-content;
|
|
66
|
+
font-weight: unset;
|
|
67
|
+
gap: var(--ard-fab-extended-gap, 1em);
|
|
68
|
+
max-width: 10em;
|
|
69
|
+
}
|
|
70
|
+
|
|
48
71
|
ard-icon {
|
|
49
72
|
font-size: 1em;
|
|
50
73
|
}
|
|
74
|
+
&.ard-appearance-transparent {
|
|
75
|
+
@include CM.focus-overlay-scale-addon();
|
|
76
|
+
}
|
|
51
77
|
}
|
|
52
78
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
&.ard-button-with-pointer-events-when-disabled {
|
|
63
|
-
pointer-events: all;
|
|
64
|
-
|
|
65
|
-
> .ard-button {
|
|
79
|
+
ard-fab.ard-disabled {
|
|
80
|
+
> .ard-fab {
|
|
81
|
+
@include shared.button-disabled(
|
|
82
|
+
var(--ard-fab-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2)),
|
|
83
|
+
var(--ard-fab-disabled-opacity, var(--ard-button-disabled-opacity, 0.6))
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
&.ard-button-with-pointer-events-when-disabled {
|
|
66
87
|
pointer-events: all;
|
|
88
|
+
|
|
89
|
+
> .ard-button {
|
|
90
|
+
pointer-events: all;
|
|
91
|
+
}
|
|
67
92
|
}
|
|
68
93
|
}
|
|
69
94
|
}
|
|
@@ -1,62 +1,87 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
|
|
3
|
-
ard-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
@layer ard-ui {
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-icon-button-height: 2.1875em;
|
|
8
|
+
--ard-icon-button-height-compact: 2.25em;
|
|
9
|
+
--ard-icon-button-margin: 0;
|
|
10
|
+
--ard-icon-button-font-size: 1rem;
|
|
11
|
+
--ard-icon-button-icon-font-size: 1.5em;
|
|
12
|
+
--ard-icon-button-font-size-compact: 0.75rem;
|
|
13
|
+
--ard-icon-button-font-weight: 600;
|
|
14
|
+
// --ard-icon-button-overlay-hover-opacity: ;
|
|
15
|
+
// --ard-icon-button-overlay-focus-opacity: ;
|
|
16
|
+
// --ard-icon-button-overlay-active-opacity: ;
|
|
17
|
+
// --ard-icon-button-overlay-focus-visible-opacity: ;
|
|
18
|
+
// --ard-icon-button-overlay-disabled-opacity: ;
|
|
19
|
+
// --ard-icon-button-disabled-opacity: ;
|
|
20
|
+
}
|
|
11
21
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
font-weight: 600;
|
|
23
|
-
font-size: inherit;
|
|
24
|
-
color: var(--ard-cmpcl--bg-colored);
|
|
22
|
+
ard-icon-button {
|
|
23
|
+
height: max-content;
|
|
24
|
+
width: max-content;
|
|
25
|
+
border-radius: 9999px;
|
|
26
|
+
aspect-ratio: 1;
|
|
27
|
+
display: inline-block;
|
|
28
|
+
margin: var(--ard-icon-button-margin, 0);
|
|
29
|
+
font-size: var(--ard-icon-button-font-size, 1rem);
|
|
30
|
+
}
|
|
25
31
|
|
|
26
|
-
.ard-button
|
|
27
|
-
|
|
32
|
+
.ard-icon-button {
|
|
33
|
+
@include shared.button(
|
|
34
|
+
0,
|
|
35
|
+
0,
|
|
36
|
+
inherit,
|
|
37
|
+
inherit,
|
|
38
|
+
var(--ard-icon-button-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
39
|
+
var(--ard-icon-button-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
40
|
+
var(--ard-icon-button-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
41
|
+
var(--ard-icon-button-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
42
|
+
);
|
|
43
|
+
background: transparent;
|
|
44
|
+
height: var(--ard-icon-button-height, 2.1875em);
|
|
45
|
+
aspect-ratio: 1;
|
|
46
|
+
border-radius: 9999px;
|
|
28
47
|
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
padding: 0;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
color: var(--ard-cmpcl--bg-colored);
|
|
29
52
|
|
|
30
53
|
> ard-icon {
|
|
31
54
|
font-weight: 500;
|
|
32
|
-
font-size:
|
|
55
|
+
font-size: var(--ard-icon-button-icon-font-size);
|
|
56
|
+
}
|
|
57
|
+
//! compact
|
|
58
|
+
&.ard-compact {
|
|
59
|
+
height: var(--ard-icon-button-height-compact, 2.25em);
|
|
60
|
+
font-size: var(--ard-icon-button-font-size-compact, 0.75rem);
|
|
61
|
+
}
|
|
62
|
+
//! light coloring
|
|
63
|
+
&.ard-light-coloring {
|
|
64
|
+
color: var(--ard-cmpcl--bg-colored-light);
|
|
33
65
|
}
|
|
34
66
|
}
|
|
35
67
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
&.ard-light-coloring {
|
|
43
|
-
color: var(--ard-cmpcl--bg-colored-light);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
ard-icon-button.ard-disabled {
|
|
48
|
-
> .ard-icon-button {
|
|
49
|
-
@include shared.button-disabled;
|
|
68
|
+
ard-icon-button.ard-disabled {
|
|
69
|
+
> .ard-icon-button {
|
|
70
|
+
@include shared.button-disabled(
|
|
71
|
+
var(--ard-icon-button-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2)),
|
|
72
|
+
var(--ard-icon-button-disabled-opacity, var(--ard-button-disabled-opacity, 0.6))
|
|
73
|
+
);
|
|
50
74
|
|
|
51
|
-
|
|
52
|
-
|
|
75
|
+
.ard-focus-overlay {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
}
|
|
53
78
|
}
|
|
54
|
-
|
|
55
|
-
&.ard-button-with-pointer-events-when-disabled {
|
|
56
|
-
pointer-events: all;
|
|
57
|
-
|
|
58
|
-
> .ard-button {
|
|
79
|
+
&.ard-button-with-pointer-events-when-disabled {
|
|
59
80
|
pointer-events: all;
|
|
81
|
+
|
|
82
|
+
> .ard-button {
|
|
83
|
+
pointer-events: all;
|
|
84
|
+
}
|
|
60
85
|
}
|
|
61
86
|
}
|
|
62
87
|
}
|