@ardium-ui/ui 1.0.0 → 1.0.2
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/esm2022/lib/_internal/boolean-component.mjs +1 -1
- package/esm2022/lib/_internal/clear-button/clear-button.component.mjs +1 -1
- package/esm2022/lib/_internal/clear-button/clear-button.module.mjs +1 -1
- package/esm2022/lib/_internal/disablable-component.mjs +1 -1
- package/esm2022/lib/_internal/focusable-component.mjs +1 -1
- package/esm2022/lib/_internal/item-storages/dropdown-item-storage.mjs +1 -1
- package/esm2022/lib/_internal/item-storages/simple-item-storage.mjs +1 -1
- package/esm2022/lib/_internal/item-storages/simplest-item-storage.mjs +1 -1
- package/esm2022/lib/_internal/models/pagination.model.mjs +1 -1
- package/esm2022/lib/_internal/ngmodel-component.mjs +1 -1
- package/esm2022/lib/_internal/queue.mjs +1 -1
- package/esm2022/lib/_internal/selectable-list-component.mjs +1 -1
- package/esm2022/lib/badge/badge.directive.mjs +1 -1
- package/esm2022/lib/badge/badge.module.mjs +1 -1
- package/esm2022/lib/badge/badge.types.mjs +1 -1
- package/esm2022/lib/buttons/_button-base.mjs +1 -1
- package/esm2022/lib/buttons/button/button.component.mjs +1 -1
- package/esm2022/lib/buttons/button/button.module.mjs +1 -1
- package/esm2022/lib/buttons/fab/fab.component.mjs +1 -1
- package/esm2022/lib/buttons/fab/fab.module.mjs +1 -1
- package/esm2022/lib/buttons/general-button.types.mjs +1 -1
- package/esm2022/lib/buttons/icon-button/icon-button.component.mjs +1 -1
- package/esm2022/lib/buttons/icon-button/icon-button.module.mjs +1 -1
- package/esm2022/lib/calendar/calendar.component.mjs +2 -5
- package/esm2022/lib/calendar/calendar.directives.mjs +1 -1
- package/esm2022/lib/calendar/calendar.helpers.mjs +1 -1
- package/esm2022/lib/calendar/calendar.module.mjs +1 -1
- package/esm2022/lib/calendar/calendar.types.mjs +1 -1
- package/esm2022/lib/card/card.children.mjs +1 -1
- package/esm2022/lib/card/card.component.mjs +1 -1
- package/esm2022/lib/card/card.module.mjs +1 -1
- package/esm2022/lib/card/card.types.mjs +1 -1
- package/esm2022/lib/checkbox/checkbox.component.mjs +1 -1
- package/esm2022/lib/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/lib/checkbox/checkbox.types.mjs +1 -1
- package/esm2022/lib/checkbox-list/checkbox-list.component.mjs +1 -1
- package/esm2022/lib/checkbox-list/checkbox-list.module.mjs +1 -1
- package/esm2022/lib/checkbox-list/checkbox-list.types.mjs +1 -1
- package/esm2022/lib/chip/chip.component.mjs +1 -1
- package/esm2022/lib/chip/chip.module.mjs +1 -1
- package/esm2022/lib/chip/deletable-chip/deletable-chip.component.mjs +1 -1
- package/esm2022/lib/chip/selectable-chip/selectable-chip.component.mjs +1 -1
- package/esm2022/lib/color/color-display/color-display.component.mjs +1 -1
- package/esm2022/lib/color/color-display/color-display.module.mjs +1 -1
- package/esm2022/lib/color/color-display/color-display.types.mjs +1 -1
- package/esm2022/lib/color/color-picker/color-picker.component.mjs +1 -1
- package/esm2022/lib/color/color-picker/color-picker.directives.mjs +1 -1
- package/esm2022/lib/color/color-picker/color-picker.module.mjs +1 -1
- package/esm2022/lib/color/color-picker/color-picker.types.mjs +1 -1
- package/esm2022/lib/dialog/dialog.component.mjs +1 -1
- package/esm2022/lib/dialog/dialog.directives.mjs +1 -1
- package/esm2022/lib/dialog/dialog.module.mjs +1 -1
- package/esm2022/lib/dialog/dialog.types.mjs +1 -1
- package/esm2022/lib/divider/divider.component.mjs +1 -1
- package/esm2022/lib/divider/divider.module.mjs +1 -1
- package/esm2022/lib/dropdown-panel/dropdown-panel.component.mjs +1 -1
- package/esm2022/lib/dropdown-panel/dropdown-panel.module.mjs +1 -1
- package/esm2022/lib/dropdown-panel/dropdown-panel.types.mjs +1 -1
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.component.mjs +1 -1
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.directives.mjs +1 -1
- package/esm2022/lib/file-inputs/file-drop-area/file-drop-area.module.mjs +1 -1
- package/esm2022/lib/file-inputs/file-input/file-input.component.mjs +1 -1
- package/esm2022/lib/file-inputs/file-input/file-input.directives.mjs +1 -1
- package/esm2022/lib/file-inputs/file-input/file-input.module.mjs +1 -1
- package/esm2022/lib/file-inputs/file-input-base.mjs +1 -1
- package/esm2022/lib/file-inputs/file-input-types.mjs +1 -1
- package/esm2022/lib/form-field-frame/form-field-frame.component.mjs +1 -1
- package/esm2022/lib/form-field-frame/form-field-frame.directives.mjs +1 -1
- package/esm2022/lib/form-field-frame/form-field-frame.module.mjs +1 -1
- package/esm2022/lib/icon/icon.component.mjs +1 -1
- package/esm2022/lib/icon/icon.module.mjs +1 -1
- package/esm2022/lib/icon/icon.pipe.mjs +1 -1
- package/esm2022/lib/inputs/color-input/color-input.component.mjs +1 -1
- package/esm2022/lib/inputs/color-input/color-input.directives.mjs +1 -1
- package/esm2022/lib/inputs/color-input/color-input.module.mjs +1 -1
- package/esm2022/lib/inputs/color-input/color-input.types.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.component.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.model.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.module.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.types.mjs +1 -1
- package/esm2022/lib/inputs/digit-input/digit-input.utils.mjs +1 -1
- package/esm2022/lib/inputs/hex-input/hex-input.component.mjs +2 -3
- package/esm2022/lib/inputs/hex-input/hex-input.directives.mjs +1 -1
- package/esm2022/lib/inputs/hex-input/hex-input.module.mjs +1 -1
- package/esm2022/lib/inputs/hex-input.model.mjs +1 -1
- package/esm2022/lib/inputs/input/input.component.mjs +1 -1
- package/esm2022/lib/inputs/input/input.directives.mjs +1 -1
- package/esm2022/lib/inputs/input/input.module.mjs +1 -1
- package/esm2022/lib/inputs/input-transformers.mjs +1 -1
- package/esm2022/lib/inputs/input-types.mjs +1 -1
- package/esm2022/lib/inputs/input-utils.mjs +1 -1
- package/esm2022/lib/inputs/number-input/number-input.component.mjs +2 -3
- package/esm2022/lib/inputs/number-input/number-input.directives.mjs +1 -1
- package/esm2022/lib/inputs/number-input/number-input.module.mjs +1 -1
- package/esm2022/lib/inputs/password-input/password-input.component.mjs +2 -3
- package/esm2022/lib/inputs/password-input/password-input.directives.mjs +1 -1
- package/esm2022/lib/inputs/password-input/password-input.module.mjs +1 -1
- package/esm2022/lib/inputs/password-input/password-input.types.mjs +1 -1
- package/esm2022/lib/inputs/simple-input/simple-input.component.mjs +2 -3
- package/esm2022/lib/inputs/simple-input/simple-input.directives.mjs +1 -1
- package/esm2022/lib/inputs/simple-input/simple-input.module.mjs +1 -1
- package/esm2022/lib/kbd/kbd.component.mjs +1 -1
- package/esm2022/lib/kbd/kbd.module.mjs +1 -1
- package/esm2022/lib/kbd/kbd.pipe.mjs +1 -1
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.component.mjs +1 -1
- package/esm2022/lib/kbd-shortcut/kbd-shortcut.module.mjs +1 -1
- package/esm2022/lib/modal/modal.component.mjs +1 -1
- package/esm2022/lib/modal/modal.module.mjs +1 -1
- package/esm2022/lib/option/option.component.mjs +1 -1
- package/esm2022/lib/option/option.module.mjs +1 -1
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +1 -1
- package/esm2022/lib/progress-bar/progress-bar.directive.mjs +1 -1
- package/esm2022/lib/progress-bar/progress-bar.module.mjs +1 -1
- package/esm2022/lib/progress-bar/progress-bar.types.mjs +1 -1
- package/esm2022/lib/progress-circle/progress-circle.component.mjs +1 -1
- package/esm2022/lib/progress-circle/progress-circle.directive.mjs +1 -1
- package/esm2022/lib/progress-circle/progress-circle.module.mjs +1 -1
- package/esm2022/lib/progress-circle/progress-circle.types.mjs +1 -1
- package/esm2022/lib/radio/radio/radio.component.mjs +1 -1
- package/esm2022/lib/radio/radio-group.component.mjs +1 -1
- package/esm2022/lib/radio/radio.module.mjs +1 -1
- package/esm2022/lib/search-functions.mjs +1 -1
- package/esm2022/lib/segment/segment.component.mjs +1 -1
- package/esm2022/lib/segment/segment.directives.mjs +1 -1
- package/esm2022/lib/segment/segment.module.mjs +1 -1
- package/esm2022/lib/segment/segment.types.mjs +1 -1
- package/esm2022/lib/select/select.component.mjs +2 -4
- package/esm2022/lib/select/select.directive.mjs +1 -1
- package/esm2022/lib/select/select.module.mjs +1 -1
- package/esm2022/lib/select/select.types.mjs +1 -1
- package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +1 -1
- package/esm2022/lib/slide-toggle/slide-toggle.module.mjs +1 -1
- package/esm2022/lib/slider/abstract-slider.mjs +1 -1
- package/esm2022/lib/slider/range-slider/range-slider.component.mjs +1 -1
- package/esm2022/lib/slider/range-slider/range-slider.module.mjs +1 -1
- package/esm2022/lib/slider/slider.component.mjs +1 -1
- package/esm2022/lib/slider/slider.directive.mjs +1 -1
- package/esm2022/lib/slider/slider.module.mjs +1 -1
- package/esm2022/lib/slider/slider.types.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar-ref.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar.component.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar.service.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar.token.mjs +1 -1
- package/esm2022/lib/snackbar/snackbar.types.mjs +1 -1
- package/esm2022/lib/spinner/spinner.component.mjs +1 -1
- package/esm2022/lib/spinner/spinner.module.mjs +1 -1
- package/esm2022/lib/star/star-button/star-button.component.mjs +1 -1
- package/esm2022/lib/star/star-button/star-button.module.mjs +1 -1
- package/esm2022/lib/star/star-display/star-display.component.mjs +1 -1
- package/esm2022/lib/star/star-display/star-display.module.mjs +1 -1
- package/esm2022/lib/star/star-input/star-input.component.mjs +1 -1
- package/esm2022/lib/star/star-input/star-input.module.mjs +1 -1
- package/esm2022/lib/star/star.component.mjs +1 -1
- package/esm2022/lib/star/star.module.mjs +1 -1
- package/esm2022/lib/star/star.types.mjs +1 -1
- package/esm2022/lib/statebox/statebox.component.mjs +1 -1
- package/esm2022/lib/statebox/statebox.module.mjs +1 -1
- package/esm2022/lib/statebox/statebox.types.mjs +1 -1
- package/esm2022/lib/table/table-item-storage.mjs +1 -1
- package/esm2022/lib/table/table.component.mjs +2 -2
- package/esm2022/lib/table/table.directives.mjs +1 -1
- package/esm2022/lib/table/table.module.mjs +1 -1
- package/esm2022/lib/table/table.types.mjs +1 -1
- package/esm2022/lib/table/utils.mjs +1 -1
- package/esm2022/lib/table-from-csv/table-from-csv.component.mjs +1 -1
- package/esm2022/lib/table-from-csv/table-from-csv.module.mjs +1 -1
- package/esm2022/lib/table-pagination/table-pagination.component.mjs +1 -1
- package/esm2022/lib/table-pagination/table-pagination.module.mjs +1 -1
- package/esm2022/lib/table-pagination/table-pagination.types.mjs +1 -1
- package/esm2022/lib/types/alignment.types.mjs +1 -1
- package/esm2022/lib/types/colors.types.mjs +1 -1
- package/esm2022/lib/types/item-storage.types.mjs +1 -1
- package/esm2022/lib/types/theming.types.mjs +1 -1
- package/esm2022/lib/types/utility.types.mjs +1 -1
- package/fesm2022/ardium-ui-ui.mjs +7 -16
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/color/color-picker/color-picker.component.d.ts +12 -12
- package/lib/inputs/color-input/color-input.component.d.ts +24 -24
- package/package.json +6 -2
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- 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.map +1 -1
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/color-picker.css.map +1 -1
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
- package/prebuilt-themes/default/inputs/simple-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-bar.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/statebox.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css.map +1 -1
- package/themes/default/_clear-button.scss +59 -59
- package/themes/default/_coloring.scss +133 -133
- package/themes/default/_dropdown-arrow.scss +8 -8
- package/themes/default/_mixins.scss +50 -50
- package/themes/default/badge.scss +79 -79
- package/themes/default/buttons/_button-mixins.scss +112 -112
- package/themes/default/buttons/button.scss +47 -47
- package/themes/default/buttons/fab.scss +53 -53
- package/themes/default/buttons/icon-button.scss +40 -40
- package/themes/default/calendar.scss +154 -154
- package/themes/default/card.scss +90 -90
- package/themes/default/checkbox-list.scss +67 -67
- package/themes/default/checkbox.scss +87 -87
- package/themes/default/chips.scss +167 -167
- package/themes/default/color-display.scss +29 -29
- package/themes/default/color-picker.scss +97 -97
- package/themes/default/core.scss +75 -75
- package/themes/default/dialog.scss +8 -8
- package/themes/default/divider.scss +7 -7
- package/themes/default/dropdown-panel.scss +33 -33
- package/themes/default/file-drop-area.scss +139 -139
- package/themes/default/form-field-frame.scss +59 -59
- package/themes/default/inputs/_shared.scss +34 -34
- package/themes/default/inputs/color-input.scss +30 -30
- package/themes/default/inputs/digit-input.scss +37 -37
- package/themes/default/inputs/file-input.scss +62 -62
- package/themes/default/inputs/hex-input.scss +16 -16
- package/themes/default/inputs/input.scss +34 -34
- package/themes/default/inputs/number-input.scss +95 -95
- package/themes/default/inputs/password-input.scss +31 -31
- package/themes/default/inputs/search-bar.scss +9 -9
- package/themes/default/inputs/simple-input.scss +9 -9
- package/themes/default/kbd-shortcut.scss +8 -8
- package/themes/default/kbd.scss +15 -15
- package/themes/default/modal.scss +75 -75
- package/themes/default/progress-bar.scss +140 -140
- package/themes/default/progress-circle.scss +43 -43
- package/themes/default/radio.scss +87 -87
- package/themes/default/segment.scss +283 -283
- package/themes/default/select.scss +226 -226
- package/themes/default/slide-toggle.scss +121 -121
- package/themes/default/slider.scss +206 -206
- package/themes/default/snackbar.scss +40 -40
- package/themes/default/spinner.scss +12 -12
- package/themes/default/stars.scss +93 -93
- package/themes/default/statebox.scss +91 -91
- package/themes/default/table-pagination.scss +44 -44
- package/themes/default/table.scss +345 -345
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
@use './coloring' as CM;
|
|
2
2
|
|
|
3
3
|
.ard-badge-host {
|
|
4
|
-
|
|
4
|
+
position: relative;
|
|
5
5
|
}
|
|
6
6
|
.ard-badge {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
@include CM.typeColors();
|
|
8
|
+
position: absolute;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
pointer-events: none;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
//! colors
|
|
14
|
+
background: var(--ard-cmpcl--bgcolored);
|
|
15
|
+
color: var(--ard-cmpcl--on-bg-colored);
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
//! variants
|
|
18
|
+
&.ard-variant-pill {
|
|
19
|
+
border-radius: 9999px;
|
|
20
|
+
}
|
|
21
|
+
&.ard-variant-rounded {
|
|
22
|
+
border-radius: calc(var(--ard-_badge-size) * 0.25);
|
|
23
|
+
}
|
|
24
|
+
&.ard-variant-sharp {
|
|
25
|
+
border-radius: 0;
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
//! hidden
|
|
29
|
+
&.ard-badge-hidden {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
//! sizes
|
|
34
|
+
font-size: var(--ard-_badge-size);
|
|
35
|
+
min-width: calc(var(--ard-_badge-size) * 1.375);
|
|
36
|
+
height: calc(var(--ard-_badge-size) * 1.375);
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
.ard-badge-content {
|
|
39
|
+
padding: 0 calc(var(--ard-_badge-size) * 0.5);
|
|
40
|
+
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
&.ard-badge-size-small {
|
|
43
|
+
--ard-_badge-size: 0.55rem;
|
|
44
|
+
font-weight: 300;
|
|
45
|
+
letter-spacing: 0.2px;
|
|
46
|
+
}
|
|
47
|
+
&.ard-badge-size-medium {
|
|
48
|
+
--ard-_badge-size: 0.667rem;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
letter-spacing: 0.2px;
|
|
51
|
+
}
|
|
52
|
+
&.ard-badge-size-large {
|
|
53
|
+
--ard-_badge-size: 0.8125rem;
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
letter-spacing: 0.2px;
|
|
56
|
+
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
//! overlap
|
|
59
|
+
--ard-_badge-overlap-offset-x: 0%;
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
61
|
+
&.ard-badge-overlap {
|
|
62
|
+
--ard-_badge-overlap-offset-x: 50%;
|
|
63
|
+
}
|
|
64
|
+
&.ard-badge-position-above-before {
|
|
65
|
+
transform: translate(var(--ard-_badge-overlap-offset-x), 50%);
|
|
66
|
+
}
|
|
67
|
+
&.ard-badge-position-above-after {
|
|
68
|
+
transform: translate(calc(-1 * var(--ard-_badge-overlap-offset-x)), 50%);
|
|
69
|
+
}
|
|
70
|
+
&.ard-badge-position-below-after {
|
|
71
|
+
transform: translate(calc(-1 * var(--ard-_badge-overlap-offset-x)), -50%);
|
|
72
|
+
}
|
|
73
|
+
&.ard-badge-position-below-before {
|
|
74
|
+
transform: translate(var(--ard-_badge-overlap-offset-x), -50%);
|
|
75
|
+
}
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
77
|
+
//! positions
|
|
78
|
+
&.ard-badge-position-above-before,
|
|
79
|
+
&.ard-badge-position-below-before {
|
|
80
|
+
right: 100%;
|
|
81
|
+
}
|
|
82
|
+
&.ard-badge-position-above-after,
|
|
83
|
+
&.ard-badge-position-below-after {
|
|
84
|
+
left: 100%;
|
|
85
|
+
}
|
|
86
|
+
&.ard-badge-position-below-before,
|
|
87
|
+
&.ard-badge-position-below-after {
|
|
88
|
+
top: 100%;
|
|
89
|
+
}
|
|
90
|
+
&.ard-badge-position-above-before,
|
|
91
|
+
&.ard-badge-position-above-after {
|
|
92
|
+
bottom: 100%;
|
|
93
|
+
}
|
|
94
94
|
}
|
|
@@ -3,142 +3,142 @@
|
|
|
3
3
|
@import '../../variables';
|
|
4
4
|
|
|
5
5
|
@mixin button {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
@include coloringMixins.typeColors();
|
|
7
|
+
font-family: 'Roboto', sans-serif;
|
|
8
|
+
margin: 2px;
|
|
9
|
+
border: 1px solid transparent;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
position: relative;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
outline: none;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
//! button icon
|
|
18
|
+
.ard-button-icon {
|
|
19
|
+
@include defaultMixins.icon(1);
|
|
20
|
+
}
|
|
21
|
+
//! button focus inficator
|
|
22
|
+
.ard-focus-overlay {
|
|
23
|
+
@include defaultMixins.focus-overlay;
|
|
24
|
+
background-color: var(--ard-cmpcl--overlay);
|
|
25
|
+
}
|
|
26
|
+
&:hover,
|
|
27
|
+
&:focus {
|
|
22
28
|
.ard-focus-overlay {
|
|
23
|
-
|
|
24
|
-
background-color: var(--ard-cmpcl--overlay);
|
|
25
|
-
}
|
|
26
|
-
&:hover,
|
|
27
|
-
&:focus {
|
|
28
|
-
.ard-focus-overlay {
|
|
29
|
-
opacity: 4%;
|
|
30
|
-
}
|
|
29
|
+
opacity: 4%;
|
|
31
30
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
}
|
|
32
|
+
&.ard-active,
|
|
33
|
+
&:active {
|
|
34
|
+
.ard-focus-overlay {
|
|
35
|
+
opacity: 12%;
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
}
|
|
38
|
+
&:focus-visible {
|
|
39
|
+
.ard-focus-overlay {
|
|
40
|
+
opacity: 18%;
|
|
42
41
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
}
|
|
43
|
+
//! button appearances
|
|
44
|
+
&.ard-appearance-transparent,
|
|
45
|
+
&.ard-appearance-raised {
|
|
46
|
+
background: transparent;
|
|
47
|
+
color: var(--ard-cmpcl--content);
|
|
48
|
+
border: none;
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
50
|
+
.ard-focus-overlay {
|
|
51
|
+
background: var(--ard-cmpcl--overlay-colored);
|
|
53
52
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
}
|
|
54
|
+
&.ard-appearance-flat,
|
|
55
|
+
&.ard-appearance-raised-strong {
|
|
56
|
+
background: var(--ard-cmpcl--bg);
|
|
57
|
+
color: var(--ard-cmpcl--on-bg);
|
|
58
|
+
border: none;
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
60
|
+
.ard-focus-overlay {
|
|
61
|
+
background: var(--ard-cmpcl--on-bg);
|
|
63
62
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
}
|
|
64
|
+
&.ard-appearance-raised,
|
|
65
|
+
&.ard-appearance-raised-strong {
|
|
66
|
+
transition: box-shadow 0.28s $timing-fn;
|
|
67
|
+
box-shadow: $simple-shadow;
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
69
|
+
&:hover,
|
|
70
|
+
&:focus {
|
|
71
|
+
box-shadow: $simple-shadow2;
|
|
72
|
+
}
|
|
73
|
+
&:active {
|
|
74
|
+
box-shadow: $simple-shadow3;
|
|
76
75
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
}
|
|
77
|
+
&.ard-appearance-outlined {
|
|
78
|
+
background: $bg;
|
|
79
|
+
color: var(--ard-cmpcl--content);
|
|
80
|
+
border: 1px solid $border-light;
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
82
|
+
.ard-focus-overlay {
|
|
83
|
+
background: var(--ard-cmpcl--overlay-colored);
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
}
|
|
86
|
+
&.ard-appearance-outlined-strong {
|
|
87
|
+
background: $bg;
|
|
88
|
+
color: var(--ard-cmpcl--content);
|
|
89
|
+
border: 1px solid $border-light;
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
.ard-focus-overlay {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
95
|
+
transition:
|
|
96
|
+
background-color 0.2s ease,
|
|
97
|
+
color 0.2s ease;
|
|
98
|
+
&:hover,
|
|
99
|
+
&:focus,
|
|
100
|
+
&:focus-visible {
|
|
101
|
+
background: var(--ard-cmpcl--bg-colored);
|
|
102
|
+
color: var(--ard-cmpcl--on-bg-colored);
|
|
104
103
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
&:focus-visible {
|
|
111
|
-
outline: solid black;
|
|
112
|
-
}
|
|
104
|
+
}
|
|
105
|
+
&.ard-appearance-raised-strong,
|
|
106
|
+
&.ard-appearance-flat {
|
|
107
|
+
.ard-focus-overlay {
|
|
108
|
+
background: var(--ard-cmpcl--on-bg);
|
|
113
109
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
&:focus-visible {
|
|
111
|
+
outline: solid black;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//! light coloring
|
|
115
|
+
&.ard-appearance-transparent.ard-light-coloring {
|
|
116
|
+
color: var(--ard-cmpcl--content-light);
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
118
|
+
.ard-focus-overlay {
|
|
119
|
+
background: var(--ard-cmpcl--overlay-colored-light);
|
|
121
120
|
}
|
|
121
|
+
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
//! disabled state
|
|
125
125
|
@mixin button-disabled {
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
pointer-events: none;
|
|
127
|
+
opacity: 60%;
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
.ard-focus-overlay {
|
|
130
|
+
opacity: 20%;
|
|
131
|
+
transform: scale(1);
|
|
132
|
+
}
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
134
|
+
//edge case for no coloring
|
|
135
|
+
&.ard-color-none {
|
|
136
|
+
.ard-button-icon,
|
|
137
|
+
.ard-button-content {
|
|
138
|
+
opacity: 60%;
|
|
139
|
+
}
|
|
140
|
+
.ard-focus-overlay {
|
|
141
|
+
background: var(--ard-cmpcl--overlay);
|
|
143
142
|
}
|
|
143
|
+
}
|
|
144
144
|
}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
@use './button-mixins' as shared;
|
|
2
2
|
|
|
3
3
|
ard-button {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
display: block;
|
|
5
|
+
width: max-content;
|
|
6
|
+
height: max-content;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.ard-button {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
@include shared.button;
|
|
11
|
+
background: transparent;
|
|
12
|
+
gap: 6px;
|
|
13
|
+
font-size: 0.875rem;
|
|
14
|
+
height: 2.5em;
|
|
15
|
+
padding: 0 1.2em;
|
|
16
|
+
letter-spacing: 0.5px;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
//! aligns
|
|
19
|
+
&.ard-align-left {
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
}
|
|
22
|
+
&.ard-align-right {
|
|
23
|
+
flex-direction: row-reverse;
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
//! button variants
|
|
27
|
+
&.ard-button-vertical {
|
|
28
|
+
height: max-content;
|
|
29
|
+
padding: 0.3em 1em;
|
|
30
|
+
gap: 2px;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
}
|
|
33
|
+
&.ard-variant-rounded,
|
|
34
|
+
&.ard-variant-pill.ard-button-vertical {
|
|
35
|
+
border-radius: 6px;
|
|
36
|
+
}
|
|
37
|
+
&.ard-variant-pill:not(.ard-button-vertical) {
|
|
38
|
+
border-radius: 9999px;
|
|
39
|
+
}
|
|
40
|
+
&.ard-variant-sharp {
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
//! compact
|
|
45
|
+
&.ard-compact {
|
|
46
|
+
font-size: 0.75rem;
|
|
47
|
+
height: 2.25em;
|
|
48
|
+
padding: 0 0.9em;
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
50
|
+
&.ard-button-vertical {
|
|
51
|
+
height: max-content;
|
|
52
|
+
padding: 0.2em 0.8em;
|
|
53
|
+
gap: 0;
|
|
55
54
|
}
|
|
55
|
+
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
ard-button.ard-disabled {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
> .ard-button {
|
|
60
|
+
@include shared.button-disabled;
|
|
61
|
+
}
|
|
62
62
|
}
|
|
@@ -2,71 +2,71 @@
|
|
|
2
2
|
@use '../mixins' as CM;
|
|
3
3
|
|
|
4
4
|
ard-fab {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
margin: 8px;
|
|
6
|
+
display: block;
|
|
7
|
+
width: max-content;
|
|
8
|
+
height: max-content;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.ard-fab {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
&.ard-fab-size-standard {
|
|
23
|
-
--ard-_fab-size: 3.5rem;
|
|
24
|
-
font-size: 1rem;
|
|
25
|
-
}
|
|
26
|
-
&.ard-fab-size-small {
|
|
27
|
-
--ard-_fab-size: 2.5rem;
|
|
28
|
-
font-size: 0.875rem;
|
|
29
|
-
padding: 0.5625rem;
|
|
30
|
-
}
|
|
31
|
-
&.ard-fab-extended {
|
|
32
|
-
min-width: var(--ard-_fab-size);
|
|
33
|
-
width: max-content;
|
|
34
|
-
font-weight: unset;
|
|
12
|
+
@include shared.button;
|
|
13
|
+
height: var(--ard-_fab-size);
|
|
14
|
+
width: var(--ard-_fab-size);
|
|
15
|
+
font-weight: 900;
|
|
16
|
+
user-select: none;
|
|
17
|
+
border-radius: 999px;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 1rem;
|
|
35
21
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
22
|
+
&.ard-fab-size-standard {
|
|
23
|
+
--ard-_fab-size: 3.5rem;
|
|
24
|
+
font-size: 1rem;
|
|
25
|
+
}
|
|
26
|
+
&.ard-fab-size-small {
|
|
27
|
+
--ard-_fab-size: 2.5rem;
|
|
28
|
+
font-size: 0.875rem;
|
|
29
|
+
padding: 0.5625rem;
|
|
30
|
+
}
|
|
31
|
+
&.ard-fab-extended {
|
|
32
|
+
min-width: var(--ard-_fab-size);
|
|
33
|
+
width: max-content;
|
|
34
|
+
font-weight: unset;
|
|
41
35
|
|
|
42
36
|
.ard-button-content {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
justify-content: flex-start !important;
|
|
46
|
-
max-width: 1.5em;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
transition: max-width 0.5s ease;
|
|
37
|
+
gap: 0.75em;
|
|
38
|
+
max-width: 10em;
|
|
49
39
|
}
|
|
40
|
+
}
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
.ard-button-content {
|
|
43
|
+
gap: 1em;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
justify-content: flex-start !important;
|
|
46
|
+
max-width: 1.5em;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
transition: max-width 0.5s ease;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.ard-appearance-transparent {
|
|
52
|
+
@include CM.focus-overlay-scale-addon();
|
|
53
|
+
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
ard-fab.ard-disabled {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
> .ard-fab {
|
|
58
|
+
@include shared.button-disabled;
|
|
59
|
+
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@keyframes maxWidth {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
0% {
|
|
64
|
+
max-width: 1.5em;
|
|
65
|
+
}
|
|
66
|
+
99% {
|
|
67
|
+
max-width: 21em;
|
|
68
|
+
}
|
|
69
|
+
100% {
|
|
70
|
+
max-width: unset;
|
|
71
|
+
}
|
|
72
72
|
}
|