@ardium-ui/ui 5.0.0-alpha.10 → 5.0.0-alpha.101
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 +5898 -2890
- 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 +3 -3
- package/lib/_internal/form-field-component.d.ts +1 -1
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +21 -21
- 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 +8 -9
- package/lib/_internal/selectable-list-component.d.ts +2 -3
- package/lib/_internal/utils/date.utils.d.ts +16 -0
- 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 +9 -6
- package/lib/buttons/_button-base.defaults.d.ts +3 -2
- package/lib/buttons/button/button.component.d.ts +10 -5
- package/lib/buttons/button/button.defaults.d.ts +1 -2
- package/lib/buttons/button/button.directive.d.ts +23 -0
- package/lib/buttons/button/button.module.d.ts +3 -2
- package/lib/buttons/button/index.d.ts +1 -0
- package/lib/buttons/button-group/button-group.component.d.ts +25 -0
- package/lib/buttons/button-group/button-group.defaults.d.ts +7 -0
- package/lib/buttons/button-group/button-group.module.d.ts +8 -0
- package/lib/buttons/button-group/index.d.ts +3 -0
- package/lib/buttons/fab/fab.component.d.ts +3 -1
- package/lib/buttons/icon-button/icon-button.component.d.ts +2 -1
- package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
- package/lib/calendar/abstract-calendar.d.ts +135 -0
- package/lib/calendar/calendar.component.d.ts +9 -97
- 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 +33 -5
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/range-calendar.component.d.ts +17 -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 +5 -4
- 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/deletable-chip/deletable-chip.component.d.ts +1 -0
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +2 -0
- package/lib/dialog/dialog.component.d.ts +5 -1
- package/lib/dialog/dialog.types.d.ts +1 -0
- package/lib/divider/divider.component.d.ts +2 -4
- 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.types.d.ts +1 -1
- package/lib/file-inputs/file-input/file-input.component.d.ts +3 -3
- package/lib/file-inputs/file-input/file-input.directives.d.ts +3 -3
- package/lib/file-inputs/file-input/file-input.module.d.ts +1 -1
- package/lib/file-inputs/file-input-base.d.ts +0 -1
- 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/form-field-base.d.ts +3 -1
- package/lib/form-field/form-field-child.token.d.ts +5 -5
- package/lib/form-field/form-field-native-inputs.d.ts +3 -9
- 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/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +2 -0
- package/lib/form-field-frame/form-field-frame.component.d.ts +1 -0
- package/lib/grid/grid.component.d.ts +63 -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 +20 -0
- package/lib/grid/index.d.ts +4 -0
- package/lib/inputs/_simple-input-base.d.ts +6 -2
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +2 -2
- package/lib/inputs/date-input/abstract-date-input.d.ts +111 -0
- package/lib/inputs/date-input/date-input.component.d.ts +21 -83
- 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 +32 -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 +46 -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/hex-input/hex-input.component.d.ts +1 -2
- package/lib/inputs/input-types.d.ts +9 -0
- package/lib/inputs/input-utils.d.ts +13 -2
- package/lib/inputs/number-input/number-input.component.d.ts +12 -6
- 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 +4 -4
- package/lib/modal/modal.component.d.ts +3 -1
- package/lib/modal/modal.defaults.d.ts +2 -0
- package/lib/radio/radio/radio.component.d.ts +8 -3
- package/lib/radio/radio-group.component.d.ts +3 -2
- package/lib/search-functions.d.ts +1 -1
- package/lib/select/select.component.d.ts +28 -22
- package/lib/select/select.defaults.d.ts +4 -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/slide-toggle/slide-toggle.component.d.ts +2 -0
- package/lib/slider/abstract-slider.d.ts +30 -23
- 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/snackbar/snackbar-ref.d.ts +37 -4
- package/lib/snackbar/snackbar.service.d.ts +27 -0
- package/lib/snackbar/snackbar.types.d.ts +36 -0
- package/lib/stack/index.d.ts +3 -0
- package/lib/stack/stack.component.d.ts +26 -0
- package/lib/stack/stack.defaults.d.ts +14 -0
- package/lib/stack/stack.module.d.ts +7 -0
- package/lib/star/rating-input/rating-input.component.d.ts +3 -2
- 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 +14 -7
- package/lib/tabber/tabber.component.d.ts +22 -7
- 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/types/alignment.types.d.ts +7 -1
- package/lib/types/item-storage.types.d.ts +29 -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-group.css +19 -0
- package/prebuilt-themes/default/buttons/button-group.css.map +1 -0
- package/prebuilt-themes/default/buttons/button.css +332 -301
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +316 -299
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +301 -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 +98 -65
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +355 -362
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +418 -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 +109 -88
- 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 -102
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +148 -128
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +192 -132
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +102 -137
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +142 -63
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +126 -110
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +394 -325
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +159 -117
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +146 -107
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +224 -169
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +126 -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 -72
- 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 +258 -225
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +438 -414
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +311 -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 +425 -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 +281 -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 +4 -1
- package/themes/_variables.scss +2 -1
- package/themes/default/_clear-button.scss +5 -0
- package/themes/default/_coloring.scss +7 -0
- package/themes/default/_mixins.scss +10 -8
- package/themes/default/badge.scss +115 -80
- package/themes/default/buttons/_button-mixins.scss +44 -33
- package/themes/default/buttons/button-group.scss +19 -0
- package/themes/default/buttons/button.scss +97 -63
- package/themes/default/buttons/fab.scss +76 -49
- package/themes/default/buttons/icon-button.scss +72 -45
- package/themes/default/calendar.scss +257 -163
- package/themes/default/card.scss +167 -121
- package/themes/default/checkbox-list.scss +101 -62
- package/themes/default/checkbox.scss +70 -88
- package/themes/default/chips.scss +216 -147
- package/themes/default/color-display.scss +40 -28
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +125 -100
- 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 +71 -66
- package/themes/default/form-field.scss +136 -106
- package/themes/default/inputs/_shared.scss +61 -12
- package/themes/default/inputs/autocomplete-input.scss +104 -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 +111 -77
- package/themes/default/inputs/file-input.scss +162 -81
- package/themes/default/inputs/hex-input.scss +70 -16
- package/themes/default/inputs/input.scss +57 -6
- package/themes/default/inputs/number-input.scss +175 -98
- package/themes/default/inputs/password-input.scss +102 -29
- package/themes/default/kbd-shortcut.scss +16 -8
- package/themes/default/kbd.scss +35 -16
- package/themes/default/modal.scss +109 -74
- package/themes/default/progress-bar.scss +126 -102
- package/themes/default/progress-circle.scss +49 -41
- package/themes/default/radio.scss +129 -89
- package/themes/default/segment.scss +283 -255
- package/themes/default/select.scss +265 -197
- package/themes/default/slide-toggle.scss +193 -116
- package/themes/default/slider.scss +250 -187
- package/themes/default/snackbar.scss +52 -32
- package/themes/default/spinner.scss +24 -14
- package/themes/default/stars.scss +115 -67
- 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,113 @@
|
|
|
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
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
//! aligns
|
|
29
|
-
&.ard-align-left {
|
|
30
|
-
flex-direction: row;
|
|
31
|
-
}
|
|
32
|
-
&.ard-align-right {
|
|
33
|
-
flex-direction: row-reverse;
|
|
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;
|
|
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;
|
|
25
|
+
--ard-button-disabled-cursor: not-allowed;
|
|
34
26
|
}
|
|
35
27
|
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
ard-button {
|
|
29
|
+
display: flex;
|
|
30
|
+
width: max-content;
|
|
38
31
|
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;
|
|
32
|
+
justify-content: stretch;
|
|
52
33
|
}
|
|
53
34
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
35
|
+
.ard-button {
|
|
36
|
+
@include shared.button(
|
|
37
|
+
var(--ard-button-margin, 0.125rem),
|
|
38
|
+
var(--ard-button-padding, 0 1.2em),
|
|
39
|
+
var(--ard-button-font-size, 0.875rem),
|
|
40
|
+
var(--ard-button-font-weight, 500),
|
|
41
|
+
var(--ard-button-overlay-hover-opacity, 0.04),
|
|
42
|
+
var(--ard-button-overlay-focus-opacity, 0.12),
|
|
43
|
+
var(--ard-button-overlay-active-opacity, 0.18),
|
|
44
|
+
var(--ard-button-overlay-focus-visible-opacity, 0.24)
|
|
45
|
+
);
|
|
46
|
+
background: transparent;
|
|
47
|
+
gap: var(--ard-button-gap, 0.375rem);
|
|
48
|
+
font-size: var(--ard-button-font-size, 0.875rem);
|
|
49
|
+
height: var(--ard-button-height, 2.5em);
|
|
50
|
+
padding: var(--ard-button-padding, 0 1.2em);
|
|
51
|
+
width: 100%;
|
|
52
|
+
min-width: max-content;
|
|
53
|
+
letter-spacing: 0.5px;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
margin: 0;
|
|
56
|
+
user-select: none;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
flex-grow: 1;
|
|
59
59
|
|
|
60
|
+
//! aligns
|
|
61
|
+
&.ard-align-left {
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
}
|
|
64
|
+
&.ard-align-right {
|
|
65
|
+
flex-direction: row-reverse;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//! button variants
|
|
60
69
|
&.ard-button-vertical {
|
|
61
70
|
height: max-content;
|
|
62
|
-
padding: 0.
|
|
63
|
-
gap:
|
|
71
|
+
padding: var(--ard-button-padding-vertical, 0.3em 1em);
|
|
72
|
+
gap: 2px;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
}
|
|
75
|
+
&.ard-variant-rounded,
|
|
76
|
+
&.ard-variant-pill.ard-button-vertical {
|
|
77
|
+
border-radius: var(--ard-button-rounded-corner-radius, var(--ard-rounded-corner-radius, 0.375rem));
|
|
78
|
+
}
|
|
79
|
+
&.ard-variant-pill:not(.ard-button-vertical) {
|
|
80
|
+
border-radius: 9999px;
|
|
81
|
+
}
|
|
82
|
+
&.ard-variant-sharp {
|
|
83
|
+
border-radius: 0;
|
|
84
|
+
}
|
|
85
|
+
&.ard-button-square {
|
|
86
|
+
width: var(--ard-button-height, 2.5em);
|
|
87
|
+
padding: 0;
|
|
88
|
+
aspect-ratio: 1 / 1;
|
|
64
89
|
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
90
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
//! compact
|
|
92
|
+
&.ard-compact {
|
|
93
|
+
font-size: var(--ard-button-font-size-compact, 0.75rem);
|
|
94
|
+
height: var(--ard-button-height-compact, 2.25em);
|
|
95
|
+
padding: var(--ard-button-padding-compact, 0 0.9em);
|
|
96
|
+
|
|
97
|
+
&.ard-button-vertical {
|
|
98
|
+
height: max-content;
|
|
99
|
+
padding: var(--ard-button-padding-vertical-compact, 0.2em 0.8em);
|
|
100
|
+
gap: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
//! disabled
|
|
104
|
+
&.ard-disabled {
|
|
105
|
+
@include shared.button-disabled(var(--ard-button-disabled-opacity, 0.6), var(--ard-button-overlay-disabled-opacity, 0.2));
|
|
74
106
|
|
|
75
|
-
|
|
76
|
-
|
|
107
|
+
&.ard-button-with-pointer-events-when-disabled {
|
|
108
|
+
pointer-events: all;
|
|
109
|
+
cursor: var(--ard-button-disabled-cursor, not-allowed);
|
|
110
|
+
}
|
|
77
111
|
}
|
|
78
112
|
}
|
|
79
113
|
}
|
|
@@ -1,69 +1,96 @@
|
|
|
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
|
-
|
|
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: ;
|
|
16
|
+
// --ard-fab-overlay-focus-opacity: ;
|
|
17
|
+
// --ard-fab-overlay-active-opacity: ;
|
|
18
|
+
// --ard-fab-overlay-focus-visible-opacity: ;
|
|
19
|
+
// --ard-fab-overlay-disabled-opacity: ;
|
|
20
|
+
// --ard-fab-disabled-opacity: ;
|
|
21
|
+
// --ard-fab-disabled-cursor: ;
|
|
24
22
|
}
|
|
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
23
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
ard-fab {
|
|
25
|
+
margin: var(--ard-fab-margin, 0.5rem);
|
|
26
|
+
display: block;
|
|
27
|
+
width: max-content;
|
|
28
|
+
height: max-content;
|
|
38
29
|
}
|
|
39
30
|
|
|
40
|
-
.ard-
|
|
41
|
-
|
|
31
|
+
.ard-fab {
|
|
32
|
+
@include shared.button(
|
|
33
|
+
0,
|
|
34
|
+
0,
|
|
35
|
+
unset,
|
|
36
|
+
var(--ard-fab-font-weight, 900),
|
|
37
|
+
var(--ard-fab-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
38
|
+
var(--ard-fab-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
39
|
+
var(--ard-fab-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
40
|
+
var(--ard-fab-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
41
|
+
);
|
|
42
|
+
height: var(--ard-_fab-size);
|
|
43
|
+
width: var(--ard-_fab-size);
|
|
44
|
+
max-height: var(--ard-_fab-size);
|
|
45
|
+
max-width: var(--ard-_fab-size);
|
|
46
|
+
min-height: var(--ard-_fab-size);
|
|
47
|
+
min-width: var(--ard-_fab-size);
|
|
48
|
+
user-select: none;
|
|
49
|
+
border-radius: 9999px;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
margin: 0;
|
|
42
52
|
font-weight: 500;
|
|
43
|
-
justify-content: flex-start !important;
|
|
44
|
-
max-width: 1.5em;
|
|
45
53
|
overflow: hidden;
|
|
46
54
|
transition: max-width 0.5s ease;
|
|
47
55
|
|
|
56
|
+
&.ard-fab-size-standard {
|
|
57
|
+
--ard-_fab-size: var(--ard-fab-size-standard, 3.5rem);
|
|
58
|
+
font-size: var(--ard-fab-size-standard-font-size, 1.75rem);
|
|
59
|
+
}
|
|
60
|
+
&.ard-fab-size-small {
|
|
61
|
+
--ard-_fab-size: var(--ard-fab-size-small, 2.5rem);
|
|
62
|
+
font-size: var(--ard-fab-size-small-font-size, 1.375rem);
|
|
63
|
+
}
|
|
64
|
+
&.ard-fab-extended {
|
|
65
|
+
min-width: var(--ard-_fab-size);
|
|
66
|
+
width: max-content;
|
|
67
|
+
font-weight: unset;
|
|
68
|
+
gap: var(--ard-fab-extended-gap, 1em);
|
|
69
|
+
max-width: 10em;
|
|
70
|
+
}
|
|
71
|
+
|
|
48
72
|
ard-icon {
|
|
49
73
|
font-size: 1em;
|
|
50
74
|
}
|
|
75
|
+
&.ard-appearance-transparent {
|
|
76
|
+
@include CM.focus-overlay-scale-addon();
|
|
77
|
+
}
|
|
51
78
|
}
|
|
52
79
|
|
|
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 {
|
|
80
|
+
ard-fab.ard-disabled {
|
|
81
|
+
> .ard-fab {
|
|
82
|
+
@include shared.button-disabled(
|
|
83
|
+
var(--ard-fab-disabled-opacity, var(--ard-button-disabled-opacity, 0.6)),
|
|
84
|
+
var(--ard-fab-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2))
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
&.ard-fab-with-pointer-events-when-disabled {
|
|
66
88
|
pointer-events: all;
|
|
89
|
+
|
|
90
|
+
> .ard-fab {
|
|
91
|
+
pointer-events: all;
|
|
92
|
+
cursor: var(--ard-fab-disabled-cursor, var(--ard-button-disabled-cursor, not-allowed));
|
|
93
|
+
}
|
|
67
94
|
}
|
|
68
95
|
}
|
|
69
96
|
}
|
|
@@ -1,62 +1,89 @@
|
|
|
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-size: 2.1875em;
|
|
8
|
+
--ard-icon-button-size-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
|
+
// --ard-icon-button-disabled-cursor: ;
|
|
21
|
+
}
|
|
11
22
|
|
|
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);
|
|
23
|
+
ard-icon-button {
|
|
24
|
+
height: max-content;
|
|
25
|
+
width: max-content;
|
|
26
|
+
border-radius: 9999px;
|
|
27
|
+
aspect-ratio: 1;
|
|
28
|
+
display: inline-block;
|
|
29
|
+
margin: var(--ard-icon-button-margin, 0);
|
|
30
|
+
font-size: var(--ard-icon-button-font-size, 1rem);
|
|
31
|
+
}
|
|
25
32
|
|
|
26
|
-
.ard-button
|
|
27
|
-
|
|
33
|
+
.ard-icon-button {
|
|
34
|
+
@include shared.button(
|
|
35
|
+
0,
|
|
36
|
+
0,
|
|
37
|
+
inherit,
|
|
38
|
+
inherit,
|
|
39
|
+
var(--ard-icon-button-overlay-hover-opacity, var(--ard-button-overlay-hover-opacity, 0.04)),
|
|
40
|
+
var(--ard-icon-button-overlay-focus-opacity, var(--ard-button-overlay-focus-opacity, 0.12)),
|
|
41
|
+
var(--ard-icon-button-overlay-active-opacity, var(--ard-button-overlay-active-opacity, 0.18)),
|
|
42
|
+
var(--ard-icon-button-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
43
|
+
);
|
|
44
|
+
background: transparent;
|
|
45
|
+
height: var(--ard-icon-button-size, 2.1875em);
|
|
46
|
+
aspect-ratio: 1;
|
|
47
|
+
border-radius: 9999px;
|
|
28
48
|
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
padding: 0;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
color: var(--ard-cmpcl--bg-colored);
|
|
29
53
|
|
|
30
54
|
> ard-icon {
|
|
31
55
|
font-weight: 500;
|
|
32
|
-
font-size:
|
|
56
|
+
font-size: var(--ard-icon-button-icon-font-size);
|
|
57
|
+
}
|
|
58
|
+
//! compact
|
|
59
|
+
&.ard-compact {
|
|
60
|
+
height: var(--ard-icon-button-size-compact, 2.25em);
|
|
61
|
+
font-size: var(--ard-icon-button-font-size-compact, 0.75rem);
|
|
62
|
+
}
|
|
63
|
+
//! light coloring
|
|
64
|
+
&.ard-light-coloring {
|
|
65
|
+
color: var(--ard-cmpcl--bg-colored-light);
|
|
33
66
|
}
|
|
34
67
|
}
|
|
35
68
|
|
|
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;
|
|
69
|
+
ard-icon-button.ard-disabled {
|
|
70
|
+
> .ard-icon-button {
|
|
71
|
+
@include shared.button-disabled(
|
|
72
|
+
var(--ard-icon-button-disabled-opacity, var(--ard-button-disabled-opacity, 0.6)),
|
|
73
|
+
var(--ard-icon-button-overlay-disabled-opacity, var(--ard-button-overlay-disabled-opacity, 0.2))
|
|
74
|
+
);
|
|
50
75
|
|
|
51
|
-
|
|
52
|
-
|
|
76
|
+
.ard-focus-overlay {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
}
|
|
53
79
|
}
|
|
54
|
-
|
|
55
|
-
&.ard-button-with-pointer-events-when-disabled {
|
|
56
|
-
pointer-events: all;
|
|
57
|
-
|
|
58
|
-
> .ard-button {
|
|
80
|
+
&.ard-icon-button-with-pointer-events-when-disabled {
|
|
59
81
|
pointer-events: all;
|
|
82
|
+
|
|
83
|
+
> .ard-icon-button {
|
|
84
|
+
pointer-events: all;
|
|
85
|
+
cursor: var(--ard-icon-button-disabled-cursor, var(--ard-button-disabled-cursor, not-allowed));
|
|
86
|
+
}
|
|
60
87
|
}
|
|
61
88
|
}
|
|
62
89
|
}
|