@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
|
@@ -1,12 +1,59 @@
|
|
|
1
1
|
@use './shared' as inputMixin;
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
|
+
@use '../../variables' as ARD;
|
|
5
|
+
|
|
6
|
+
// the variables are commented out intentionally
|
|
7
|
+
// read more in docs/dev/css-variables.md
|
|
8
|
+
:root {
|
|
9
|
+
// --ard-input-height: ;
|
|
10
|
+
// --ard-input-height-compact: ;
|
|
11
|
+
--ard-input-gap: 0.625rem;
|
|
12
|
+
// --ard-input-font-size: ;
|
|
13
|
+
// --ard-input-font-size-compact: ;
|
|
14
|
+
--ard-input-line-height: 1.25;
|
|
15
|
+
--ard-input-line-height-compact: 1;
|
|
16
|
+
--ard-input-font-weight: 400;
|
|
17
|
+
// --ard-input-padding-left: ;
|
|
18
|
+
// --ard-input-padding-right: ;
|
|
19
|
+
// --ard-input-padding-top: ;
|
|
20
|
+
// --ard-input-padding-bottom: ;
|
|
21
|
+
// --ard-input-padding-left-compact: ;
|
|
22
|
+
// --ard-input-padding-right-compact: ;
|
|
23
|
+
// --ard-input-padding-top-compact: ;
|
|
24
|
+
// --ard-input-padding-bottom-compact: ;
|
|
25
|
+
// --ard-input-color: ;
|
|
26
|
+
// --ard-input-placeholder-color: ;
|
|
27
|
+
--ard-input-placeholder-opacity: 60%;
|
|
28
|
+
|
|
29
|
+
--ard-input-min-width: 10rem;
|
|
30
|
+
--ard-input-max-width: 100%;
|
|
31
|
+
}
|
|
4
32
|
|
|
5
33
|
.ard-input {
|
|
6
|
-
@include inputMixin.genericInput(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
34
|
+
@include inputMixin.genericInput(
|
|
35
|
+
var(--ard-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
36
|
+
var(--ard-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
37
|
+
var(--ard-input-gap, 0.625rem),
|
|
38
|
+
var(--ard-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
39
|
+
var(--ard-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
40
|
+
var(--ard-input-line-height, 1.25),
|
|
41
|
+
var(--ard-input-line-height-compact, 1),
|
|
42
|
+
var(--ard-input-font-weight, 400),
|
|
43
|
+
var(--ard-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
44
|
+
var(--ard-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
45
|
+
var(--ard-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
46
|
+
var(--ard-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
47
|
+
var(--ard-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
48
|
+
var(--ard-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
49
|
+
var(--ard-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
50
|
+
var(--ard-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
51
|
+
var(--ard-input-color, #{ARD.$text}),
|
|
52
|
+
var(--ard-input-placeholder-color, #{ARD.$text}),
|
|
53
|
+
var(--ard-input-placeholder-opacity, 60%)
|
|
54
|
+
);
|
|
55
|
+
min-width: var(--ard-input-min-width, 10rem);
|
|
56
|
+
max-width: var(--ard-input-max-width, 100%);
|
|
10
57
|
|
|
11
58
|
@include CB.clearButton();
|
|
12
59
|
}
|
|
@@ -2,33 +2,97 @@
|
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../../variables' as ARD;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// the variables are commented out intentionally
|
|
6
|
+
// read more in docs/dev/css-variables.md
|
|
7
|
+
:root {
|
|
8
|
+
// --ard-number-input-height: ;
|
|
9
|
+
// --ard-number-input-height-compact: ;
|
|
10
|
+
--ard-number-input-gap: 0.625rem;
|
|
11
|
+
// --ard-number-input-font-size: ;
|
|
12
|
+
// --ard-number-input-font-size-compact: ;
|
|
13
|
+
--ard-number-input-line-height: 1.25;
|
|
14
|
+
--ard-number-input-line-height-compact: 1;
|
|
15
|
+
--ard-number-input-font-weight: 400;
|
|
16
|
+
// --ard-number-input-padding-top: ;
|
|
17
|
+
// --ard-number-input-padding-right: ;
|
|
18
|
+
// --ard-number-input-padding-bottom: ;
|
|
19
|
+
// --ard-number-input-padding-left: ;
|
|
20
|
+
// --ard-number-input-padding-top-compact: ;
|
|
21
|
+
// --ard-number-input-padding-right-compact: ;
|
|
22
|
+
// --ard-number-input-padding-bottom-compact: ;
|
|
23
|
+
// --ard-number-input-padding-left-compact: ;
|
|
24
|
+
// --ard-number-input-color: ;
|
|
25
|
+
// --ard-number-input-placeholder-color: ;
|
|
26
|
+
--ard-number-input-placeholder-opacity: 60%;
|
|
27
|
+
--ard-number-input-disabled-opacity: 50%;
|
|
28
|
+
// --ard-number-input-width: ;
|
|
29
|
+
--ard-number-input-rounded-border-radius: 8px;
|
|
30
|
+
}
|
|
7
31
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
32
|
+
ard-number-input {
|
|
33
|
+
width: var(--ard-number-input-width, unset);
|
|
11
34
|
}
|
|
12
35
|
|
|
13
36
|
.ard-number-input {
|
|
14
|
-
@include inputMixin.genericInput(
|
|
37
|
+
@include inputMixin.genericInput(
|
|
38
|
+
var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
39
|
+
var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
40
|
+
var(--ard-number-input-gap, 0.625rem),
|
|
41
|
+
var(--ard-number-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
42
|
+
var(--ard-number-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
43
|
+
var(--ard-number-input-line-height, 1.25),
|
|
44
|
+
var(--ard-number-input-line-height-compact, 1),
|
|
45
|
+
var(--ard-number-input-font-weight, 400),
|
|
46
|
+
var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
47
|
+
var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
48
|
+
var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
49
|
+
var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
50
|
+
var(--ard-number-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
51
|
+
var(--ard-number-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
52
|
+
var(--ard-number-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
53
|
+
var(--ard-number-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
54
|
+
var(--ard-number-input-color, #{ARD.$text}),
|
|
55
|
+
var(--ard-number-input-placeholder-color, #{ARD.$text}),
|
|
56
|
+
var(--ard-number-input-placeholder-opacity, 60%)
|
|
57
|
+
);
|
|
15
58
|
@include defaultMixins.formAppearances();
|
|
16
|
-
min-height: 2.1875rem;
|
|
17
|
-
height: 2.1875rem;
|
|
18
59
|
gap: 0;
|
|
19
60
|
width: 100%;
|
|
20
61
|
|
|
21
|
-
.ard-input-
|
|
62
|
+
.ard-number-input-wrapper {
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
text-size-adjust: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
22
67
|
height: 100%;
|
|
23
|
-
|
|
68
|
+
}
|
|
69
|
+
.ard-input-container {
|
|
70
|
+
position: relative;
|
|
71
|
+
padding-left: var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem));
|
|
72
|
+
padding-right: var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem));
|
|
73
|
+
padding-top: var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0));
|
|
74
|
+
padding-bottom: var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0));
|
|
75
|
+
}
|
|
24
76
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
77
|
+
//! prefix & suffix
|
|
78
|
+
.ard-number-input-prefix-container,
|
|
79
|
+
.ard-number-input-suffix-container {
|
|
80
|
+
height: max-content;
|
|
81
|
+
max-height: 100%;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
}
|
|
85
|
+
.ard-number-input-prefix-container {
|
|
86
|
+
padding-left: var(--ard-number-input-padding-left, 0.375rem);
|
|
87
|
+
}
|
|
88
|
+
.ard-number-input-suffix-container {
|
|
89
|
+
padding-right: var(--ard-number-input-padding-right, 0.375rem);
|
|
28
90
|
}
|
|
29
91
|
|
|
92
|
+
//! buttons
|
|
30
93
|
.ard-quick-change-button {
|
|
31
94
|
position: relative;
|
|
95
|
+
min-width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
32
96
|
|
|
33
97
|
.ard-button {
|
|
34
98
|
height: 100%;
|
|
@@ -63,11 +127,11 @@ ard-number-input {
|
|
|
63
127
|
|
|
64
128
|
//! variants
|
|
65
129
|
&.ard-variant-rounded {
|
|
66
|
-
border-radius: 8px;
|
|
130
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
67
131
|
|
|
68
132
|
&.ard-quick-change-false {
|
|
69
|
-
.ard-input-
|
|
70
|
-
border-radius: 8px;
|
|
133
|
+
.ard-number-input-wrapper {
|
|
134
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
71
135
|
}
|
|
72
136
|
}
|
|
73
137
|
}
|
|
@@ -79,13 +143,13 @@ ard-number-input {
|
|
|
79
143
|
|
|
80
144
|
.ard-button {
|
|
81
145
|
border-radius: 9999px !important;
|
|
82
|
-
|
|
83
|
-
|
|
146
|
+
width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
147
|
+
height: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
84
148
|
margin: 0 2px;
|
|
85
149
|
}
|
|
86
150
|
|
|
87
151
|
&.ard-quick-change-false {
|
|
88
|
-
.ard-input-
|
|
152
|
+
.ard-number-input-wrapper {
|
|
89
153
|
border-radius: 9999px;
|
|
90
154
|
}
|
|
91
155
|
}
|
|
@@ -94,7 +158,7 @@ ard-number-input {
|
|
|
94
158
|
//! variant-specific appearances
|
|
95
159
|
&.ard-variant-rounded,
|
|
96
160
|
&.ard-variant-sharp {
|
|
97
|
-
&:not(.ard-appearance-filled) .ard-input-
|
|
161
|
+
&:not(.ard-appearance-filled) .ard-number-input-wrapper {
|
|
98
162
|
box-sizing: border-box;
|
|
99
163
|
background: var(--ard-appearance-background);
|
|
100
164
|
border: var(--ard-appearance-border);
|
|
@@ -111,16 +175,22 @@ ard-number-input {
|
|
|
111
175
|
|
|
112
176
|
//! compact
|
|
113
177
|
&.ard-compact {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
178
|
+
.ard-number-input-wrapper {
|
|
179
|
+
padding-left: var(--ard-number-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem));
|
|
180
|
+
padding-right: var(--ard-number-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem));
|
|
181
|
+
padding-top: var(--ard-number-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0));
|
|
182
|
+
padding-bottom: var(--ard-number-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0));
|
|
183
|
+
}
|
|
184
|
+
.ard-quick-change-button {
|
|
185
|
+
min-width: var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem));
|
|
186
|
+
}
|
|
117
187
|
}
|
|
118
188
|
}
|
|
119
189
|
|
|
120
190
|
.ard-disabled {
|
|
121
191
|
> .ard-number-input {
|
|
122
192
|
pointer-events: none;
|
|
123
|
-
opacity: 50
|
|
193
|
+
opacity: var(--ard-number-input-disabled-opacity, 50%);
|
|
124
194
|
|
|
125
195
|
.ard-button .ard-focus-overlay {
|
|
126
196
|
opacity: 0;
|
|
@@ -3,11 +3,71 @@
|
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
4
|
@use '../../variables' as ARD;
|
|
5
5
|
|
|
6
|
+
// the variables are commented out intentionally
|
|
7
|
+
// read more in docs/dev/css-variables.md
|
|
8
|
+
:root {
|
|
9
|
+
// --ard-password-input-height: ;
|
|
10
|
+
// --ard-password-input-height-compact: ;
|
|
11
|
+
--ard-password-input-gap: 0.625rem;
|
|
12
|
+
// --ard-password-input-font-size: ;
|
|
13
|
+
// --ard-password-input-font-size-compact: ;
|
|
14
|
+
--ard-password-input-line-height: 1.25;
|
|
15
|
+
--ard-password-input-line-height-compact: 1;
|
|
16
|
+
--ard-password-input-font-weight: 400;
|
|
17
|
+
// --ard-password-input-padding-top: ;
|
|
18
|
+
// --ard-password-input-padding-right: ;
|
|
19
|
+
// --ard-password-input-padding-bottom: ;
|
|
20
|
+
// --ard-password-input-padding-left: ;
|
|
21
|
+
// --ard-password-input-padding-top-compact: ;
|
|
22
|
+
// --ard-password-input-padding-right-compact: ;
|
|
23
|
+
// --ard-password-input-padding-bottom-compact: ;
|
|
24
|
+
// --ard-password-input-padding-left-compact: ;
|
|
25
|
+
// --ard-password-input-color: ;
|
|
26
|
+
// --ard-password-input-placeholder-color: ;
|
|
27
|
+
--ard-password-input-placeholder-opacity: 60%;
|
|
28
|
+
|
|
29
|
+
--ard-password-input-min-width: 10rem;
|
|
30
|
+
--ard-password-input-max-width: 100%;
|
|
31
|
+
--ard-password-input-disabled-opacity: 50%;
|
|
32
|
+
--ard-password-input-reveal-button-margin: 0.125rem;
|
|
33
|
+
--ard-password-input-reveal-button-font-size: 0.8rem;
|
|
34
|
+
--ard-password-input-reveal-button-height: calc(100% - 0.25rem);
|
|
35
|
+
--ard-password-input-reveal-button-width: unset;
|
|
36
|
+
--ard-password-input-reveal-button-aspect-ratio: 1;
|
|
37
|
+
--ard-password-input-reveal-button-padding: 0;
|
|
38
|
+
// --ard-password-input-reveal-button-color: ;
|
|
39
|
+
--ard-password-input-reveal-button-border-radius: 9999px;
|
|
40
|
+
--ard-password-input-reveal-button-border: none;
|
|
41
|
+
--ard-password-input-reveal-button-background: transparent;
|
|
42
|
+
--ard-password-input-reveal-button-hover-background: rgba(0, 0, 0, 4%);
|
|
43
|
+
--ard-password-input-reveal-button-focus-background: rgba(0, 0, 0, 12%);
|
|
44
|
+
--ard-password-input-reveal-button-active-background: rgba(0, 0, 0, 20%);
|
|
45
|
+
}
|
|
46
|
+
|
|
6
47
|
.ard-password-input {
|
|
7
|
-
@include inputMixin.genericInput(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
48
|
+
@include inputMixin.genericInput(
|
|
49
|
+
var(--ard-password-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
50
|
+
var(--ard-password-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
51
|
+
var(--ard-password-input-gap, 0.625rem),
|
|
52
|
+
var(--ard-password-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
53
|
+
var(--ard-password-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
54
|
+
var(--ard-password-input-line-height, 1.25),
|
|
55
|
+
var(--ard-password-input-line-height-compact, 1),
|
|
56
|
+
var(--ard-password-input-font-weight, 400),
|
|
57
|
+
var(--ard-password-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
58
|
+
var(--ard-password-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
59
|
+
var(--ard-password-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
60
|
+
var(--ard-password-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
61
|
+
var(--ard-password-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
62
|
+
var(--ard-password-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
63
|
+
var(--ard-password-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
64
|
+
var(--ard-password-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
65
|
+
var(--ard-password-input-color, #{ARD.$text}),
|
|
66
|
+
var(--ard-password-input-placeholder-color, #{ARD.$text}),
|
|
67
|
+
var(--ard-password-input-placeholder-opacity, 60%)
|
|
68
|
+
);
|
|
69
|
+
min-width: var(--ard-password-input-min-width, 10rem);
|
|
70
|
+
max-width: var(--ard-password-input-max-width, 100%);
|
|
11
71
|
|
|
12
72
|
&.ard-revealable {
|
|
13
73
|
padding-right: 0;
|
|
@@ -17,27 +77,36 @@
|
|
|
17
77
|
display: flex;
|
|
18
78
|
align-items: center;
|
|
19
79
|
justify-content: center;
|
|
20
|
-
padding: 0;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
80
|
+
padding: var(--ard-password-input-reveal-button-padding, 0);
|
|
81
|
+
color: var(--ard-password-input-reveal-button-color, #{ARD.$text});
|
|
82
|
+
margin: var(--ard-password-input-reveal-button-margin, 0.125rem);
|
|
83
|
+
height: var(--ard-password-input-reveal-button-height, calc(100% - 0.25rem));
|
|
84
|
+
width: var(--ard-password-input-reveal-button-width, unset);
|
|
85
|
+
aspect-ratio: var(--ard-password-input-reveal-button-aspect-ratio, 1);
|
|
86
|
+
font-size: var(--ard-password-input-reveal-button-font-size, 0.8rem);
|
|
87
|
+
border-radius: var(--ard-password-input-reveal-button-border-radius, 9999px);
|
|
88
|
+
border: var(--ard-password-input-reveal-button-border, none);
|
|
89
|
+
background: var(--ard-password-input-reveal-button-background, transparent);
|
|
28
90
|
outline: none;
|
|
29
91
|
cursor: pointer;
|
|
30
92
|
|
|
31
93
|
transition: background-color 0.2s ARD.$timing-fn;
|
|
32
94
|
|
|
33
95
|
&:hover {
|
|
34
|
-
background: rgba(0, 0, 0, 4%);
|
|
96
|
+
background: var(--ard-password-input-reveal-button-hover-background, rgba(0, 0, 0, 4%));
|
|
35
97
|
}
|
|
36
98
|
&:focus {
|
|
37
|
-
background: rgba(0, 0, 0, 12%);
|
|
99
|
+
background: var(--ard-password-input-reveal-button-focus-background, rgba(0, 0, 0, 12%));
|
|
38
100
|
}
|
|
39
101
|
&:active {
|
|
40
|
-
background: rgba(0, 0, 0, 20%);
|
|
102
|
+
background: var(--ard-password-input-reveal-button-active-background, rgba(0, 0, 0, 20%));
|
|
41
103
|
}
|
|
42
104
|
}
|
|
43
105
|
}
|
|
106
|
+
//! disabled state
|
|
107
|
+
.ard-disabled {
|
|
108
|
+
.ard-password-input {
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
opacity: var(--ard-password-input-disabled-opacity, 50%);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
@use '../variables' as ARD;
|
|
2
2
|
|
|
3
|
+
// the variables are commented out intentionally
|
|
4
|
+
// read more in docs/dev/css-variables.md
|
|
5
|
+
:root {
|
|
6
|
+
--ard-kbd-shortcut-font-size: 0.875em;
|
|
7
|
+
--ard-kbd-shortcut-transparent-font-size: 0.75em;
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
.ard-kbd-shortcut {
|
|
4
|
-
font-family:
|
|
5
|
-
color: ARD.$text2;
|
|
11
|
+
font-family: var(--ard-font-family-mono);
|
|
6
12
|
|
|
7
13
|
> span {
|
|
8
|
-
font-size: 0.
|
|
14
|
+
font-size: var(--ard-kbd-shortcut-font-size, 0.875em);
|
|
9
15
|
}
|
|
10
16
|
&.ard-appearance-transparent > span {
|
|
11
|
-
font-size: 0.75em;
|
|
17
|
+
font-size: var(--ard-kbd-shortcut-transparent-font-size, 0.75em);
|
|
12
18
|
}
|
|
13
19
|
}
|
package/themes/default/kbd.scss
CHANGED
|
@@ -1,21 +1,38 @@
|
|
|
1
1
|
@use '../variables' as ARD;
|
|
2
2
|
|
|
3
|
+
// the variables are commented out intentionally
|
|
4
|
+
// read more in docs/dev/css-variables.md
|
|
5
|
+
:root {
|
|
6
|
+
// --ard-kbd-font-size: ;
|
|
7
|
+
--ard-kbd-border-radius: 0.1875em;
|
|
8
|
+
--ard-kbd-margin: 0 0.125em;
|
|
9
|
+
--ard-kbd-padding: 0.125em 0.375em;
|
|
10
|
+
--ard-kbd-border-width: 1px;
|
|
11
|
+
--ard-kbd-border-style: solid;
|
|
12
|
+
--ard-kbd-border-color: ;
|
|
13
|
+
--ard-kbd-box-shadow-settings: inset 0 -1px 0;
|
|
14
|
+
// --ard-kbd-box-shadow-color: ;
|
|
15
|
+
// --ard-kbd-bg: ;
|
|
16
|
+
// --ard-kbd-filled-bg: ;
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
.ard-kbd {
|
|
4
|
-
border-radius: 0.
|
|
5
|
-
font-family:
|
|
6
|
-
font-size: 0.
|
|
7
|
-
margin: 0 0.125em;
|
|
20
|
+
border-radius: var(--ard-kbd-border-radius, 0.1875em);
|
|
21
|
+
font-family: var(--ard-font-family-mono);
|
|
22
|
+
font-size: var(--ard-kbd-font-size, 0.875em);
|
|
23
|
+
margin: var(--ard-kbd-margin, 0 0.125em);
|
|
8
24
|
color: ARD.$text2;
|
|
9
25
|
|
|
10
26
|
//! appearance
|
|
11
27
|
&.ard-appearance-outlined,
|
|
12
28
|
&.ard-appearance-filled {
|
|
13
|
-
border: 1px solid
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
29
|
+
border: var(--ard-kbd-border-width, 1px) var(--ard-kbd-border-style, solid)
|
|
30
|
+
var(--ard-kbd-border-color, #{ARD.$detail-ultralight});
|
|
31
|
+
box-shadow: var(--ard-kbd-box-shadow-settings, inset 0 -1px 0) var(--ard-kbd-box-shadow-color, #{ARD.$detail-light});
|
|
32
|
+
padding: var(--ard-kbd-padding, 0.125em 0.375em);
|
|
33
|
+
background-color: var(--ard-kbd-bg, #{ARD.$bg});
|
|
17
34
|
}
|
|
18
35
|
&.ard-appearance-filled {
|
|
19
|
-
background: ARD.$bg-d;
|
|
36
|
+
background: var(--ard-kbd-filled-bg, #{ARD.$bg-d});
|
|
20
37
|
}
|
|
21
38
|
}
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
@use '../variables' as ARD;
|
|
2
2
|
|
|
3
|
+
// the variables are commented out intentionally
|
|
4
|
+
// read more in docs/dev/css-variables.md
|
|
5
|
+
:root {
|
|
6
|
+
// --ard-modal-width: ;
|
|
7
|
+
// --ard-modal-height: ;
|
|
8
|
+
// --ard-modal-min-width: ;
|
|
9
|
+
// --ard-modal-min-height: ;
|
|
10
|
+
// --ard-modal-max-width: ;
|
|
11
|
+
// --ard-modal-max-height: ;
|
|
12
|
+
--ard-modal-viewport-spacing: 2rem;
|
|
13
|
+
--ard-modal-padding: 1.25rem;
|
|
14
|
+
--ard-modal-padding-top: 1rem;
|
|
15
|
+
--ard-modal-gap: 1.5rem;
|
|
16
|
+
// --ard-modal-bg: ;
|
|
17
|
+
--ard-modal-no-heading-gap: 0.25rem;
|
|
18
|
+
--ard-modal-close-button-offset: 0.5rem;
|
|
19
|
+
--ard-modal-heading-padding-right: 2rem;
|
|
20
|
+
--ard-modal-heading-font-size: 1.25rem;
|
|
21
|
+
--ard-modal-heading-font-weight: 500;
|
|
22
|
+
// --ard-modal-heading-color: ;
|
|
23
|
+
--ard-modal-rounded-border-radius: 8px;
|
|
24
|
+
--ard-modal-font-size: 1rem;
|
|
25
|
+
--ard-modal-font-size-compact: 0.875rem;
|
|
26
|
+
--ard-modal-padding-compact: 0.75rem 2rem 1rem 2rem;
|
|
27
|
+
--ard-modal-gap-compact: 1rem;
|
|
28
|
+
--ard-modal-close-button-offset-compact: 0.25rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
3
31
|
.ard-modal {
|
|
4
32
|
position: fixed;
|
|
5
33
|
top: 0;
|
|
@@ -13,28 +41,34 @@
|
|
|
13
41
|
background: ARD.$darken-overlay-strong;
|
|
14
42
|
}
|
|
15
43
|
.ard-modal-panel {
|
|
16
|
-
padding: 1.25rem;
|
|
17
|
-
padding-top: 1rem;
|
|
18
|
-
|
|
19
|
-
|
|
44
|
+
padding: var(--ard-modal-padding, 1.25rem);
|
|
45
|
+
padding-top: var(--ard-modal-padding-top, 1rem);
|
|
46
|
+
width: var(--ard-modal-width);
|
|
47
|
+
height: var(--ard-modal-height);
|
|
48
|
+
min-width: var(--ard-modal-min-width);
|
|
49
|
+
min-height: var(--ard-modal-min-height);
|
|
50
|
+
max-width: var(--ard-modal-max-width, calc(100vw - var(--ard-modal-viewport-spacing, 2rem) * 2));
|
|
51
|
+
max-height: var(--ard-modal-max-height, calc(100vh - var(--ard-modal-viewport-spacing, 2rem) * 2));
|
|
52
|
+
background: var(--ard-modal-bg, #{ARD.$bg});
|
|
20
53
|
position: relative;
|
|
21
54
|
display: flex;
|
|
22
55
|
flex-direction: column;
|
|
23
56
|
align-items: flex-start;
|
|
24
|
-
gap: 1.5rem;
|
|
57
|
+
gap: var(--ard-modal-gap, 1.5rem);
|
|
58
|
+
font-size: 1rem;
|
|
25
59
|
|
|
26
60
|
&.ard-modal-no-heading-text {
|
|
27
|
-
gap: 0.25rem;
|
|
61
|
+
gap: var(--ard-modal-no-heading-gap, 0.25rem);
|
|
28
62
|
|
|
29
63
|
.ard-modal-close-button {
|
|
30
64
|
position: absolute;
|
|
31
|
-
right: 0.5rem;
|
|
32
|
-
top: 0.5rem;
|
|
65
|
+
right: var(--ard-modal-close-button-offset, 0.5rem);
|
|
66
|
+
top: var(--ard-modal-close-button-offset, 0.5rem);
|
|
33
67
|
}
|
|
34
68
|
}
|
|
35
69
|
&.ard-modal-has-close-button {
|
|
36
70
|
.ard-modal-heading {
|
|
37
|
-
padding-right: 2rem;
|
|
71
|
+
padding-right: var(--ard-modal-heading-padding-right, 2rem);
|
|
38
72
|
}
|
|
39
73
|
}
|
|
40
74
|
}
|
|
@@ -44,15 +78,15 @@
|
|
|
44
78
|
justify-content: space-between;
|
|
45
79
|
|
|
46
80
|
.ard-modal-heading-text {
|
|
47
|
-
font-size: 1.25rem;
|
|
48
|
-
color: ARD.$text;
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
font-family:
|
|
81
|
+
font-size: var(--ard-modal-heading-font-size, 1.25rem);
|
|
82
|
+
color: var(--ard-modal-heading-color, #{ARD.$text});
|
|
83
|
+
font-weight: var(--ard-modal-heading-font-weight, 500);
|
|
84
|
+
font-family: var(--ard-font-family);
|
|
51
85
|
}
|
|
52
86
|
.ard-modal-close-button {
|
|
53
87
|
position: absolute;
|
|
54
|
-
right: 0.5rem;
|
|
55
|
-
top: 0.5rem;
|
|
88
|
+
right: var(--ard-modal-close-button-offset, 0.5rem);
|
|
89
|
+
top: var(--ard-modal-close-button-offset, 0.5rem);
|
|
56
90
|
}
|
|
57
91
|
}
|
|
58
92
|
//! appearances
|
|
@@ -64,7 +98,7 @@
|
|
|
64
98
|
//! variants
|
|
65
99
|
&.ard-variant-rounded {
|
|
66
100
|
.ard-modal-panel {
|
|
67
|
-
border-radius: 8px;
|
|
101
|
+
border-radius: var(--ard-modal-rounded-border-radius, 8px);
|
|
68
102
|
}
|
|
69
103
|
}
|
|
70
104
|
&.ard-variant-sharp {
|
|
@@ -76,17 +110,17 @@
|
|
|
76
110
|
//! compact
|
|
77
111
|
&.ard-compact {
|
|
78
112
|
.ard-modal-panel {
|
|
79
|
-
font-size:
|
|
80
|
-
padding: 0.75rem 2rem 1rem 2rem;
|
|
81
|
-
gap: 1rem;
|
|
113
|
+
font-size: var(--ard-modal-font-size-compact, 0.875rem);
|
|
114
|
+
padding: var(--ard-modal-padding-compact, 0.75rem 2rem 1rem 2rem);
|
|
115
|
+
gap: var(--ard-modal-gap-compact, 1rem);
|
|
82
116
|
|
|
83
117
|
&.ard-modal-no-heading-text {
|
|
84
|
-
gap: 0.25rem;
|
|
118
|
+
gap: var(--ard-modal-no-heading-gap, 0.25rem);
|
|
85
119
|
|
|
86
120
|
.ard-modal-close-button {
|
|
87
121
|
position: absolute;
|
|
88
|
-
right: 0.25rem;
|
|
89
|
-
top: 0.25rem;
|
|
122
|
+
right: var(--ard-modal-close-button-offset-compact, 0.25rem);
|
|
123
|
+
top: var(--ard-modal-close-button-offset-compact, 0.25rem);
|
|
90
124
|
}
|
|
91
125
|
}
|
|
92
126
|
}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
@use './coloring' as coloringMixins;
|
|
2
2
|
@use '../variables' as ARD;
|
|
3
3
|
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-progress-circle-size: 3em;
|
|
8
|
+
// --ard-progress-circle-colorless-background-color: ;
|
|
9
|
+
--ard-progress-circle-colorless-background-opacity: 100%;
|
|
10
|
+
--ard-progress-circle-colored-background-opacity: 100%;
|
|
11
|
+
--ard-progress-circle-value-font-size: 0.875em;
|
|
12
|
+
}
|
|
13
|
+
|
|
4
14
|
.ard-progress-circle {
|
|
5
15
|
@include coloringMixins.typeColors;
|
|
6
|
-
width: 3em;
|
|
16
|
+
width: var(--ard-progress-circle-size, 3em);
|
|
17
|
+
height: var(--ard-progress-circle-size, 3em);
|
|
7
18
|
|
|
8
19
|
--ard-_progress-circle-fill-color: var(--ard-cmpcl--bg-colored);
|
|
9
20
|
|
|
@@ -15,20 +26,15 @@
|
|
|
15
26
|
}
|
|
16
27
|
&.ard-appearance-colorless {
|
|
17
28
|
.ard-progress-circle-background {
|
|
18
|
-
background: ARD.$darken-overlay-medium;
|
|
29
|
+
background: var(--ard-progress-circle-colorless-background-color, #{ARD.$darken-overlay-medium});
|
|
30
|
+
opacity: var(--ard-progress-circle-colorless-background-opacity, 100%);
|
|
19
31
|
}
|
|
20
32
|
}
|
|
21
33
|
&.ard-appearance-colored {
|
|
22
34
|
.ard-progress-circle-background {
|
|
23
|
-
opacity:
|
|
35
|
+
opacity: var(--ard-progress-circle-colored-background-opacity, 100%);
|
|
24
36
|
background: var(--ard-cmpcl--bg-colored);
|
|
25
37
|
}
|
|
26
|
-
//special case for no coloring
|
|
27
|
-
&.ard-color-none {
|
|
28
|
-
.ard-progress-circle-background {
|
|
29
|
-
opacity: 8%;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
38
|
}
|
|
33
39
|
//! ring variant
|
|
34
40
|
&.ard-progress-circle-variant-ring {
|
|
@@ -46,7 +52,7 @@
|
|
|
46
52
|
top: 50%;
|
|
47
53
|
transform: translate(-50%, -50%);
|
|
48
54
|
font-weight: bold;
|
|
49
|
-
font-size: 0.
|
|
55
|
+
font-size: var(--ard-progress-circle-value-font-size, 0.875em);
|
|
50
56
|
}
|
|
51
57
|
&.ard-progress-circle-variant-full {
|
|
52
58
|
.ard-progress-circle-value {
|