@ardium-ui/ui 5.0.0-alpha.7 → 5.0.0-alpha.71
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 +4707 -2272
- 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 +4 -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/search-functions.d.ts +1 -1
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +40 -30
- 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 +13 -10
- 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/package.json +3 -2
- package/prebuilt-themes/default/badge.css +37 -15
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css +74 -58
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +64 -51
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +50 -44
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +131 -55
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css +56 -24
- 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 +31 -58
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +75 -43
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +15 -8
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/core.css +21 -1
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +7 -2
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css +82 -6
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +16 -8
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +81 -35
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +18 -14
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +62 -29
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +79 -28
- 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 +97 -25
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +31 -19
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +117 -62
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +55 -23
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +47 -18
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +83 -33
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +74 -25
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +8 -4
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +19 -9
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +46 -22
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +13 -7
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +46 -28
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +71 -61
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +78 -44
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +88 -37
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +93 -52
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +29 -16
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +9 -3
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +42 -20
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +53 -17
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css +21 -9
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +93 -69
- 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/_mixins.scss +5 -5
- package/themes/default/badge.scss +48 -15
- package/themes/default/buttons/_button-mixins.scss +43 -33
- package/themes/default/buttons/button.scss +54 -29
- package/themes/default/buttons/fab.scss +47 -26
- package/themes/default/buttons/icon-button.scss +40 -17
- package/themes/default/calendar.scss +148 -58
- package/themes/default/card.scss +68 -24
- package/themes/default/checkbox-list.scss +47 -21
- package/themes/default/checkbox.scss +30 -59
- package/themes/default/chips.scss +71 -40
- package/themes/default/color-display.scss +18 -8
- package/themes/default/core.scss +24 -1
- package/themes/default/dialog.scss +9 -2
- package/themes/default/divider.scss +106 -6
- package/themes/default/dropdown-panel.scss +21 -8
- package/themes/default/file-drop-area.scss +92 -35
- package/themes/default/form-field-frame.scss +23 -15
- package/themes/default/form-field.scss +64 -28
- package/themes/default/inputs/_shared.scss +52 -12
- package/themes/default/inputs/autocomplete-input.scss +83 -14
- package/themes/default/inputs/color-input.scss +2 -2
- package/themes/default/inputs/date-input.scss +74 -6
- package/themes/default/inputs/digit-input.scss +42 -20
- package/themes/default/inputs/file-input.scss +100 -23
- package/themes/default/inputs/hex-input.scss +59 -9
- package/themes/default/inputs/input.scss +51 -4
- package/themes/default/inputs/number-input.scss +94 -24
- package/themes/default/inputs/password-input.scss +84 -15
- package/themes/default/kbd-shortcut.scss +10 -4
- package/themes/default/kbd.scss +26 -9
- package/themes/default/modal.scss +56 -22
- package/themes/default/progress-circle.scss +16 -10
- package/themes/default/radio.scss +47 -26
- package/themes/default/segment.scss +77 -67
- package/themes/default/select.scss +98 -42
- package/themes/default/slide-toggle.scss +134 -59
- package/themes/default/slider.scss +102 -65
- package/themes/default/snackbar.scss +32 -14
- package/themes/default/spinner.scss +11 -3
- package/themes/default/stars.scss +45 -16
- package/themes/default/tabber.scss +54 -14
- package/themes/default/table-pagination.scss +24 -9
- package/themes/default/table.scss +104 -70
- 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
|
@@ -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,29 +1,59 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
|
|
3
|
+
// the variables are commented out intentionally
|
|
4
|
+
// read more in docs/dev/css-variables.md
|
|
5
|
+
:root {
|
|
6
|
+
--ard-button-height: 2.5em;
|
|
7
|
+
--ard-button-height-compact: 2.25em;
|
|
8
|
+
--ard-button-margin: 0.125rem;
|
|
9
|
+
--ard-button-padding: 0 1.2em;
|
|
10
|
+
--ard-button-padding-compact: 0 0.9em;
|
|
11
|
+
--ard-button-padding-vertical: 0.3em 1em;
|
|
12
|
+
--ard-button-padding-vertical-compact: 0.2em 0.8em;
|
|
13
|
+
--ard-button-gap: 0.375rem;
|
|
14
|
+
--ard-button-font-size: 0.875rem;
|
|
15
|
+
--ard-button-font-size-compact: 0.75rem;
|
|
16
|
+
--ard-button-font-weight: 500;
|
|
17
|
+
--ard-button-overlay-hover-opacity: 0.04;
|
|
18
|
+
--ard-button-overlay-focus-opacity: 0.12;
|
|
19
|
+
--ard-button-overlay-active-opacity: 0.18;
|
|
20
|
+
--ard-button-overlay-focus-visible-opacity: 0.24;
|
|
21
|
+
--ard-button-overlay-disabled-opacity: 0.2;
|
|
22
|
+
// --ard-button-rounded-corner-radius: ;
|
|
23
|
+
--ard-button-disabled-opacity: 0.6;
|
|
24
|
+
}
|
|
25
|
+
|
|
3
26
|
ard-button {
|
|
4
|
-
display:
|
|
27
|
+
display: flex;
|
|
5
28
|
width: max-content;
|
|
6
29
|
height: max-content;
|
|
30
|
+
justify-content: stretch;
|
|
7
31
|
}
|
|
8
32
|
|
|
9
33
|
.ard-button {
|
|
10
|
-
@include shared.button
|
|
34
|
+
@include shared.button(
|
|
35
|
+
var(--ard-button-margin, 0.125rem),
|
|
36
|
+
var(--ard-button-padding, 0 1.2em),
|
|
37
|
+
var(--ard-button-font-size, 0.875rem),
|
|
38
|
+
var(--ard-button-font-weight, 500),
|
|
39
|
+
var(--ard-button-overlay-hover-opacity, 0.04),
|
|
40
|
+
var(--ard-button-overlay-focus-opacity, 0.12),
|
|
41
|
+
var(--ard-button-overlay-active-opacity, 0.18),
|
|
42
|
+
var(--ard-button-overlay-focus-visible-opacity, 0.24)
|
|
43
|
+
);
|
|
11
44
|
background: transparent;
|
|
12
|
-
gap: 0.375rem;
|
|
13
|
-
font-size: 0.875rem;
|
|
14
|
-
height: 2.5em;
|
|
15
|
-
padding: 0 1.2em;
|
|
16
|
-
|
|
17
|
-
width: 100%;
|
|
45
|
+
gap: var(--ard-button-gap, 0.375rem);
|
|
46
|
+
font-size: var(--ard-button-font-size, 0.875rem);
|
|
47
|
+
height: var(--ard-button-height, 2.5em);
|
|
48
|
+
padding: var(--ard-button-padding, 0 1.2em);
|
|
49
|
+
width: max-content;
|
|
18
50
|
min-width: max-content;
|
|
51
|
+
letter-spacing: 0.5px;
|
|
19
52
|
justify-content: center;
|
|
20
53
|
margin: 0;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: 0.375rem;
|
|
26
|
-
}
|
|
54
|
+
user-select: none;
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
flex-grow: 1;
|
|
27
57
|
|
|
28
58
|
//! aligns
|
|
29
59
|
&.ard-align-left {
|
|
@@ -36,13 +66,13 @@ ard-button {
|
|
|
36
66
|
//! button variants
|
|
37
67
|
&.ard-button-vertical {
|
|
38
68
|
height: max-content;
|
|
39
|
-
padding: 0.3em 1em;
|
|
69
|
+
padding: var(--ard-button-padding-vertical, 0.3em 1em);
|
|
40
70
|
gap: 2px;
|
|
41
71
|
flex-direction: column;
|
|
42
72
|
}
|
|
43
73
|
&.ard-variant-rounded,
|
|
44
74
|
&.ard-variant-pill.ard-button-vertical {
|
|
45
|
-
border-radius:
|
|
75
|
+
border-radius: var(--ard-button-rounded-corner-radius, var(--ard-rounded-corner-radius, 0.375rem));
|
|
46
76
|
}
|
|
47
77
|
&.ard-variant-pill:not(.ard-button-vertical) {
|
|
48
78
|
border-radius: 9999px;
|
|
@@ -53,26 +83,21 @@ ard-button {
|
|
|
53
83
|
|
|
54
84
|
//! compact
|
|
55
85
|
&.ard-compact {
|
|
56
|
-
font-size: 0.75rem;
|
|
57
|
-
height: 2.25em;
|
|
58
|
-
padding: 0 0.9em;
|
|
86
|
+
font-size: var(--ard-button-font-size-compact, 0.75rem);
|
|
87
|
+
height: var(--ard-button-height-compact, 2.25em);
|
|
88
|
+
padding: var(--ard-button-padding-compact, 0 0.9em);
|
|
59
89
|
|
|
60
90
|
&.ard-button-vertical {
|
|
61
91
|
height: max-content;
|
|
62
|
-
padding: 0.2em 0.8em;
|
|
92
|
+
padding: var(--ard-button-padding-vertical-compact, 0.2em 0.8em);
|
|
63
93
|
gap: 0;
|
|
64
94
|
}
|
|
65
95
|
}
|
|
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;
|
|
96
|
+
//! disabled
|
|
97
|
+
&.ard-disabled {
|
|
98
|
+
@include shared.button-disabled(var(--ard-button-disabled-opacity, 0.6), var(--ard-button-overlay-disabled-opacity, 0.2));
|
|
74
99
|
|
|
75
|
-
|
|
100
|
+
&.ard-button-with-pointer-events-when-disabled {
|
|
76
101
|
pointer-events: all;
|
|
77
102
|
}
|
|
78
103
|
}
|
|
@@ -1,55 +1,73 @@
|
|
|
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-disabled-opacity: 0.6;
|
|
18
|
+
}
|
|
19
|
+
|
|
4
20
|
ard-fab {
|
|
5
|
-
margin:
|
|
21
|
+
margin: var(--ard-fab-margin, 0.5rem);
|
|
6
22
|
display: block;
|
|
7
23
|
width: max-content;
|
|
8
24
|
height: max-content;
|
|
9
25
|
}
|
|
10
26
|
|
|
11
27
|
.ard-fab {
|
|
12
|
-
@include shared.button
|
|
28
|
+
@include shared.button(
|
|
29
|
+
0,
|
|
30
|
+
0,
|
|
31
|
+
unset,
|
|
32
|
+
var(--ard-fab-font-weight, 900),
|
|
33
|
+
var(--ard-fab-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
34
|
+
var(--ard-fab-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
35
|
+
var(--ard-fab-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
36
|
+
var(--ard-fab-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
37
|
+
);
|
|
13
38
|
height: var(--ard-_fab-size);
|
|
14
39
|
width: var(--ard-_fab-size);
|
|
15
|
-
|
|
40
|
+
max-height: var(--ard-_fab-size);
|
|
41
|
+
max-width: var(--ard-_fab-size);
|
|
42
|
+
min-height: var(--ard-_fab-size);
|
|
43
|
+
min-width: var(--ard-_fab-size);
|
|
16
44
|
user-select: none;
|
|
17
|
-
border-radius:
|
|
45
|
+
border-radius: 9999px;
|
|
18
46
|
justify-content: center;
|
|
19
47
|
margin: 0;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
transition: max-width 0.5s ease;
|
|
20
51
|
|
|
21
52
|
&.ard-fab-size-standard {
|
|
22
|
-
--ard-_fab-size: 3.5rem;
|
|
23
|
-
font-size: 1.75rem;
|
|
53
|
+
--ard-_fab-size: var(--ard-fab-size-standard, 3.5rem);
|
|
54
|
+
font-size: var(--ard-fab-size-standard-font-size, 1.75rem);
|
|
24
55
|
}
|
|
25
56
|
&.ard-fab-size-small {
|
|
26
|
-
--ard-_fab-size: 2.5rem;
|
|
27
|
-
font-size: 1.375rem;
|
|
57
|
+
--ard-_fab-size: var(--ard-fab-size-small, 2.5rem);
|
|
58
|
+
font-size: var(--ard-fab-size-small-font-size, 1.375rem);
|
|
28
59
|
}
|
|
29
60
|
&.ard-fab-extended {
|
|
30
61
|
min-width: var(--ard-_fab-size);
|
|
31
62
|
width: max-content;
|
|
32
63
|
font-weight: unset;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
gap: 0.75em;
|
|
36
|
-
max-width: 10em;
|
|
37
|
-
}
|
|
64
|
+
gap: var(--ard-fab-extended-gap, 1em);
|
|
65
|
+
max-width: 10em;
|
|
38
66
|
}
|
|
39
67
|
|
|
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
|
-
}
|
|
68
|
+
ard-icon {
|
|
69
|
+
font-size: 1em;
|
|
51
70
|
}
|
|
52
|
-
|
|
53
71
|
&.ard-appearance-transparent {
|
|
54
72
|
@include CM.focus-overlay-scale-addon();
|
|
55
73
|
}
|
|
@@ -57,7 +75,10 @@ ard-fab {
|
|
|
57
75
|
|
|
58
76
|
ard-fab.ard-disabled {
|
|
59
77
|
> .ard-fab {
|
|
60
|
-
@include shared.button-disabled
|
|
78
|
+
@include shared.button-disabled(
|
|
79
|
+
var(--ard-fab-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2)),
|
|
80
|
+
var(--ard-fab-disabled-opacity, var(--ard-button-disabled-opacity, 0.6))
|
|
81
|
+
);
|
|
61
82
|
}
|
|
62
83
|
&.ard-button-with-pointer-events-when-disabled {
|
|
63
84
|
pointer-events: all;
|
|
@@ -1,42 +1,62 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
|
|
3
|
+
// the variables are commented out intentionally
|
|
4
|
+
// read more in docs/dev/css-variables.md
|
|
5
|
+
:root {
|
|
6
|
+
--ard-icon-button-height: 2.1875em;
|
|
7
|
+
--ard-icon-button-height-compact: 2.25em;
|
|
8
|
+
--ard-icon-button-margin: 0;
|
|
9
|
+
--ard-icon-button-font-size: 1rem;
|
|
10
|
+
--ard-icon-button-icon-font-size: 1.5em;
|
|
11
|
+
--ard-icon-button-font-size-compact: 0.75rem;
|
|
12
|
+
--ard-icon-button-font-weight: 600;
|
|
13
|
+
// --ard-icon-button-overlay-hover-opacity: ;
|
|
14
|
+
// --ard-icon-button-overlay-focus-opacity: ;
|
|
15
|
+
// --ard-icon-button-overlay-active-opacity: ;
|
|
16
|
+
// --ard-icon-button-overlay-focus-visible-opacity: ;
|
|
17
|
+
// --ard-icon-button-overlay-disabled-opacity: ;
|
|
18
|
+
// --ard-icon-button-disabled-opacity: ;
|
|
19
|
+
}
|
|
20
|
+
|
|
3
21
|
ard-icon-button {
|
|
4
22
|
height: max-content;
|
|
5
23
|
width: max-content;
|
|
6
24
|
border-radius: 9999px;
|
|
7
25
|
aspect-ratio: 1;
|
|
8
26
|
display: inline-block;
|
|
9
|
-
|
|
27
|
+
margin: var(--ard-icon-button-margin, 0);
|
|
28
|
+
font-size: var(--ard-icon-button-font-size, 1rem);
|
|
10
29
|
}
|
|
11
30
|
|
|
12
31
|
.ard-icon-button {
|
|
13
|
-
@include shared.button
|
|
32
|
+
@include shared.button(
|
|
33
|
+
0,
|
|
34
|
+
0,
|
|
35
|
+
inherit,
|
|
36
|
+
inherit,
|
|
37
|
+
var(--ard-icon-button-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
38
|
+
var(--ard-icon-button-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
39
|
+
var(--ard-icon-button-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
40
|
+
var(--ard-icon-button-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
41
|
+
);
|
|
14
42
|
background: transparent;
|
|
15
|
-
height: 2.1875em;
|
|
43
|
+
height: var(--ard-icon-button-height, 2.1875em);
|
|
16
44
|
aspect-ratio: 1;
|
|
17
45
|
border-radius: 9999px;
|
|
18
46
|
align-items: center;
|
|
19
47
|
justify-content: center;
|
|
20
48
|
padding: 0;
|
|
21
49
|
overflow: hidden;
|
|
22
|
-
font-weight: 600;
|
|
23
|
-
font-size: inherit;
|
|
24
50
|
color: var(--ard-cmpcl--bg-colored);
|
|
25
51
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
> ard-icon {
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
font-size: 1.5em;
|
|
33
|
-
}
|
|
52
|
+
> ard-icon {
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
font-size: var(--ard-icon-button-icon-font-size);
|
|
34
55
|
}
|
|
35
|
-
|
|
36
56
|
//! compact
|
|
37
57
|
&.ard-compact {
|
|
38
|
-
height: 2.25em;
|
|
39
|
-
font-size: 0.
|
|
58
|
+
height: var(--ard-icon-button-height-compact, 2.25em);
|
|
59
|
+
font-size: var(--ard-icon-button-font-size-compact, 0.75rem);
|
|
40
60
|
}
|
|
41
61
|
//! light coloring
|
|
42
62
|
&.ard-light-coloring {
|
|
@@ -46,7 +66,10 @@ ard-icon-button {
|
|
|
46
66
|
|
|
47
67
|
ard-icon-button.ard-disabled {
|
|
48
68
|
> .ard-icon-button {
|
|
49
|
-
@include shared.button-disabled
|
|
69
|
+
@include shared.button-disabled(
|
|
70
|
+
var(--ard-icon-button-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2)),
|
|
71
|
+
var(--ard-icon-button-disabled-opacity, var(--ard-button-disabled-opacity, 0.6))
|
|
72
|
+
);
|
|
50
73
|
|
|
51
74
|
.ard-focus-overlay {
|
|
52
75
|
opacity: 0;
|