@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,5 +1,51 @@
|
|
|
1
1
|
@use './coloring' as CM;
|
|
2
2
|
|
|
3
|
+
// the variables are commented out intentionally
|
|
4
|
+
// read more in docs/dev/css-variables.md
|
|
5
|
+
:root {
|
|
6
|
+
--ard-file-drop-area-min-width: 15rem;
|
|
7
|
+
--ard-file-drop-area-min-height: 10rem;
|
|
8
|
+
--ard-file-drop-area-padding: 0.625rem;
|
|
9
|
+
--ard-file-drop-area-outline-border-width: 2px;
|
|
10
|
+
--ard-file-drop-area-outline-border-style: dashed;
|
|
11
|
+
--ard-file-drop-area-outline-padding: 0.375rem;
|
|
12
|
+
--ard-file-drop-area-content-gap-min: 0.2rem;
|
|
13
|
+
--ard-file-drop-area-content-gap-preferred: 10%;
|
|
14
|
+
--ard-file-drop-area-content-gap-max: 1rem;
|
|
15
|
+
--ard-file-drop-area-icon-font-size: 220%;
|
|
16
|
+
--ard-file-drop-area-drop-text-font-weight: 500;
|
|
17
|
+
--ard-file-drop-area-drop-text-font-size: 105%;
|
|
18
|
+
--ard-file-drop-area-or-text-font-weight: 400;
|
|
19
|
+
--ard-file-drop-area-or-text-font-size: 95%;
|
|
20
|
+
--ard-file-drop-area-dragover-text-font-weight: 500;
|
|
21
|
+
--ard-file-drop-area-dragover-text-font-size: 105%;
|
|
22
|
+
--ard-file-drop-area-dragover-amount-font-weight: 600;
|
|
23
|
+
--ard-file-drop-area-dragover-amount-font-size: 120%;
|
|
24
|
+
--ard-file-drop-area-uploaded-container-gap: 0.75rem;
|
|
25
|
+
--ard-file-drop-area-uploaded-message-font-weight: 500;
|
|
26
|
+
--ard-file-drop-area-uploaded-message-font-size: 105%;
|
|
27
|
+
--ard-file-drop-area-uploaded-amount-font-weight: 600;
|
|
28
|
+
--ard-file-drop-area-uploaded-amount-font-size: 100%;
|
|
29
|
+
--ard-file-drop-area-uploaded-files-gap: 0.45rem;
|
|
30
|
+
--ard-file-drop-area-file-gap: 0.75rem;
|
|
31
|
+
--ard-file-drop-area-file-icon-font-size: 220%;
|
|
32
|
+
--ard-file-drop-area-file-info-gap: 0.5ch;
|
|
33
|
+
--ard-file-drop-area-filename-gap: 0;
|
|
34
|
+
--ard-file-drop-area-filename-name-line-height: 1;
|
|
35
|
+
--ard-file-drop-area-filename-name-height: 1em;
|
|
36
|
+
--ard-file-drop-area-filesize-font-weight: 500;
|
|
37
|
+
--ard-file-drop-area-filesize-font-size: 83%;
|
|
38
|
+
--ard-file-drop-area-filesize-opacity: 60%;
|
|
39
|
+
--ard-file-drop-area-variant-rounded-corner-radius: 0.875rem;
|
|
40
|
+
--ard-file-drop-area-outline-corner-radius: 0.25rem;
|
|
41
|
+
--ard-file-drop-area-font-size-compact: 85%;
|
|
42
|
+
--ard-file-drop-area-min-width-compact: 12rem;
|
|
43
|
+
--ard-file-drop-area-min-height-compact: 8rem;
|
|
44
|
+
--ard-file-drop-area-content-gap-min-compact: 0.1667rem;
|
|
45
|
+
--ard-file-drop-area-content-gap-preferred-compact: 10%;
|
|
46
|
+
--ard-file-drop-area-content-gap-max-compact: 0.75rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
3
49
|
ard-file-drop-area {
|
|
4
50
|
display: block;
|
|
5
51
|
width: 100%;
|
|
@@ -14,9 +60,9 @@ ard-file-drop-area {
|
|
|
14
60
|
max-width: 100%;
|
|
15
61
|
height: 100%;
|
|
16
62
|
max-height: 100%;
|
|
17
|
-
min-width: 15rem;
|
|
18
|
-
min-height: 10rem;
|
|
19
|
-
padding: 0.625rem;
|
|
63
|
+
min-width: var(--ard-file-drop-area-min-width, 15rem);
|
|
64
|
+
min-height: var(--ard-file-drop-area-min-height, 10rem);
|
|
65
|
+
padding: var(--ard-file-drop-area-padding, 0.625rem);
|
|
20
66
|
box-sizing: border-box;
|
|
21
67
|
background: var(--ard-cmpcl--bg-colored-verylight);
|
|
22
68
|
display: flex;
|
|
@@ -25,8 +71,9 @@ ard-file-drop-area {
|
|
|
25
71
|
width: 100%;
|
|
26
72
|
min-height: 100%;
|
|
27
73
|
box-sizing: border-box;
|
|
28
|
-
border: 2px
|
|
29
|
-
|
|
74
|
+
border: var(--ard-file-drop-area-outline-border-width, 2px) var(--ard-file-drop-area-outline-border-style, dashed)
|
|
75
|
+
var(--ard-cmpcl--border);
|
|
76
|
+
padding: var(--ard-file-drop-area-outline-padding, 0.375rem);
|
|
30
77
|
pointer-events: none;
|
|
31
78
|
|
|
32
79
|
* {
|
|
@@ -40,22 +87,27 @@ ard-file-drop-area {
|
|
|
40
87
|
flex-direction: column;
|
|
41
88
|
align-items: center;
|
|
42
89
|
justify-content: center;
|
|
43
|
-
gap: clamp(
|
|
44
|
-
|
|
90
|
+
gap: clamp(
|
|
91
|
+
var(--ard-file-drop-area-content-gap-min, 0.2rem),
|
|
92
|
+
var(--ard-file-drop-area-content-gap-preferred, 10%),
|
|
93
|
+
var(--ard-file-drop-area-content-gap-max, 1rem)
|
|
94
|
+
);
|
|
95
|
+
padding: var(--ard-file-drop-area-content-padding, 0.2rem 0);
|
|
45
96
|
box-sizing: border-box;
|
|
46
97
|
}
|
|
47
98
|
|
|
48
99
|
//! state-specific styling
|
|
49
100
|
//idle
|
|
50
101
|
.ard-file-drop-area-icon {
|
|
51
|
-
font-size: 220
|
|
102
|
+
font-size: var(--ard-file-drop-area-icon-font-size, 220%);
|
|
52
103
|
}
|
|
53
104
|
.ard-file-drop-area-drop-text {
|
|
54
|
-
font-weight: 500;
|
|
55
|
-
font-size: 105
|
|
105
|
+
font-weight: var(--ard-file-drop-area-drop-text-font-weight, 500);
|
|
106
|
+
font-size: var(--ard-file-drop-area-drop-text-font-size, 105%);
|
|
56
107
|
}
|
|
57
108
|
.ard-file-drop-area-or-text {
|
|
58
|
-
font-
|
|
109
|
+
font-weight: var(--ard-file-drop-area-or-text-font-weight, 400);
|
|
110
|
+
font-size: var(--ard-file-drop-area-or-text-font-size, 95%);
|
|
59
111
|
}
|
|
60
112
|
.ard-file-drop-area-browse-button > button {
|
|
61
113
|
border: 1px solid var(--ard-cmpcl--border);
|
|
@@ -63,12 +115,12 @@ ard-file-drop-area {
|
|
|
63
115
|
}
|
|
64
116
|
//dragover
|
|
65
117
|
.ard-file-drop-area-dragover-text {
|
|
66
|
-
font-weight: 500;
|
|
67
|
-
font-size: 105
|
|
118
|
+
font-weight: var(--ard-file-drop-area-dragover-text-font-weight, 500);
|
|
119
|
+
font-size: var(--ard-file-drop-area-dragover-text-font-size, 105%);
|
|
68
120
|
}
|
|
69
121
|
.ard-file-drop-area-dragover-amount {
|
|
70
|
-
font-weight: 600;
|
|
71
|
-
font-size: 120
|
|
122
|
+
font-weight: var(--ard-file-drop-area-dragover-amount-font-weight, 600);
|
|
123
|
+
font-size: var(--ard-file-drop-area-dragover-amount-font-size, 120%);
|
|
72
124
|
}
|
|
73
125
|
//uploaded
|
|
74
126
|
.ard-file-drop-area-uploaded-container {
|
|
@@ -78,15 +130,16 @@ ard-file-drop-area {
|
|
|
78
130
|
display: grid;
|
|
79
131
|
grid-template-columns: 1fr;
|
|
80
132
|
grid-template-rows: max-content 1fr;
|
|
81
|
-
gap: 0.75rem;
|
|
133
|
+
gap: var(--ard-file-drop-area-uploaded-container-gap, 0.75rem);
|
|
82
134
|
justify-items: center;
|
|
83
135
|
}
|
|
84
136
|
.ard-file-drop-area-uploaded-message {
|
|
85
|
-
font-weight: 500;
|
|
86
|
-
font-size: 105
|
|
137
|
+
font-weight: var(--ard-file-drop-area-uploaded-message-font-weight, 500);
|
|
138
|
+
font-size: var(--ard-file-drop-area-uploaded-message-font-size, 105%);
|
|
87
139
|
}
|
|
88
140
|
.ard-file-drop-area-uploaded-amount {
|
|
89
|
-
font-weight: 600;
|
|
141
|
+
font-weight: var(--ard-file-drop-area-uploaded-amount-font-weight, 600);
|
|
142
|
+
font-size: var(--ard-file-drop-area-uploaded-amount-font-size, 100%);
|
|
90
143
|
}
|
|
91
144
|
.ard-file-drop-area-uploaded-files {
|
|
92
145
|
max-width: 100%;
|
|
@@ -94,7 +147,7 @@ ard-file-drop-area {
|
|
|
94
147
|
display: flex;
|
|
95
148
|
flex-direction: column;
|
|
96
149
|
align-items: flex-start;
|
|
97
|
-
gap: 0.45rem;
|
|
150
|
+
gap: var(--ard-file-drop-area-uploaded-files-gap, 0.45rem);
|
|
98
151
|
overflow: hidden auto;
|
|
99
152
|
box-sizing: border-box;
|
|
100
153
|
|
|
@@ -103,36 +156,36 @@ ard-file-drop-area {
|
|
|
103
156
|
display: grid;
|
|
104
157
|
align-items: center;
|
|
105
158
|
grid-template-columns: max-content 1fr;
|
|
106
|
-
gap: 0.75rem;
|
|
159
|
+
gap: var(--ard-file-drop-area-file-gap, 0.75rem);
|
|
107
160
|
max-height: min-content;
|
|
108
161
|
|
|
109
162
|
ard-icon {
|
|
110
|
-
font-size: 220
|
|
163
|
+
font-size: var(--ard-file-drop-area-file-icon-font-size, 220%);
|
|
111
164
|
}
|
|
112
165
|
.ard-file-drop-area-file-info {
|
|
113
166
|
display: flex;
|
|
114
167
|
flex-direction: column;
|
|
115
168
|
line-height: 1;
|
|
116
|
-
gap: 0.5ch;
|
|
169
|
+
gap: var(--ard-file-drop-area-file-info-gap, 0.5ch);
|
|
117
170
|
}
|
|
118
171
|
.ard-file-drop-area-filename {
|
|
119
172
|
max-width: 100%;
|
|
120
173
|
display: grid;
|
|
121
174
|
grid-template-columns: 1fr max-content;
|
|
122
|
-
gap: 0;
|
|
175
|
+
gap: var(--ard-file-drop-area-filename-gap, 0);
|
|
123
176
|
}
|
|
124
177
|
.ard-file-drop-area-filename-name {
|
|
125
178
|
max-width: 100%;
|
|
126
|
-
line-height: 1;
|
|
179
|
+
line-height: var(--ard-file-drop-area-filename-name-line-height, 1);
|
|
127
180
|
text-overflow: ellipsis;
|
|
128
181
|
overflow: hidden;
|
|
129
182
|
white-space: nowrap;
|
|
130
|
-
height: 1em;
|
|
183
|
+
height: var(--ard-file-drop-area-filename-name-height, 1em);
|
|
131
184
|
}
|
|
132
185
|
.ard-file-drop-area-filesize {
|
|
133
|
-
font-weight: 500;
|
|
134
|
-
font-size: 83
|
|
135
|
-
opacity: 60
|
|
186
|
+
font-weight: var(--ard-file-drop-area-filesize-font-weight, 500);
|
|
187
|
+
font-size: var(--ard-file-drop-area-filesize-font-size, 83%);
|
|
188
|
+
opacity: var(--ard-file-drop-area-filesize-opacity, 60%);
|
|
136
189
|
}
|
|
137
190
|
}
|
|
138
191
|
}
|
|
@@ -140,10 +193,10 @@ ard-file-drop-area {
|
|
|
140
193
|
//! variant
|
|
141
194
|
&.ard-variant-rounded,
|
|
142
195
|
&.ard-variant-pill {
|
|
143
|
-
border-radius: 0.875rem;
|
|
196
|
+
border-radius: var(--ard-file-drop-area-variant-rounded-corner-radius, 0.875rem);
|
|
144
197
|
|
|
145
198
|
.ard-file-drop-area-outline {
|
|
146
|
-
border-radius: 0.25rem;
|
|
199
|
+
border-radius: var(--ard-file-drop-area-outline-corner-radius, 0.25rem);
|
|
147
200
|
}
|
|
148
201
|
}
|
|
149
202
|
&.ard-variant-sharp {
|
|
@@ -151,12 +204,16 @@ ard-file-drop-area {
|
|
|
151
204
|
}
|
|
152
205
|
//! compact
|
|
153
206
|
&.ard-compact {
|
|
154
|
-
font-size: 85
|
|
155
|
-
min-width: 12rem;
|
|
156
|
-
min-height: 8rem;
|
|
207
|
+
font-size: var(--ard-file-drop-area-font-size-compact, 85%);
|
|
208
|
+
min-width: var(--ard-file-drop-area-min-width-compact, 12rem);
|
|
209
|
+
min-height: var(--ard-file-drop-area-min-height-compact, 8rem);
|
|
157
210
|
|
|
158
211
|
.ard-file-drop-area-content {
|
|
159
|
-
gap: clamp(
|
|
212
|
+
gap: clamp(
|
|
213
|
+
var(--ard-file-drop-area-content-gap-min-compact, 0.1667rem),
|
|
214
|
+
var(--ard-file-drop-area-content-gap-preferred-compact, 10%),
|
|
215
|
+
var(--ard-file-drop-area-content-gap-max-compact, 0.75rem)
|
|
216
|
+
);
|
|
160
217
|
}
|
|
161
218
|
}
|
|
162
219
|
}
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: stretch;
|
|
12
12
|
position: relative;
|
|
13
|
-
font-
|
|
14
|
-
line-height: 1.25em;
|
|
15
|
-
font-family: 'Roboto', sans-serif;
|
|
13
|
+
font-family: var(--ard-font-family);
|
|
16
14
|
|
|
17
15
|
.ard-form-field-content-container {
|
|
18
16
|
flex-grow: 1;
|
|
@@ -30,17 +28,15 @@
|
|
|
30
28
|
align-items: center;
|
|
31
29
|
}
|
|
32
30
|
.ard-form-field-prefix-container {
|
|
33
|
-
padding-left: 0.
|
|
31
|
+
padding-left: var(--ard-form-field-padding-left, 0.375rem);
|
|
34
32
|
}
|
|
35
33
|
.ard-form-field-suffix-container {
|
|
36
|
-
padding-right: 0.
|
|
34
|
+
padding-right: var(--ard-form-field-padding-right, 0.375rem);
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
//! compact
|
|
40
38
|
&.ard-compact {
|
|
41
39
|
min-height: ARD.$form-field-compact-height;
|
|
42
|
-
font-size: 0.85rem;
|
|
43
|
-
line-height: 1;
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
//! appearance & variant
|
|
@@ -48,34 +44,46 @@
|
|
|
48
44
|
@include defaultMixins.formVariants();
|
|
49
45
|
background: var(--ard-appearance-background);
|
|
50
46
|
border: var(--ard-appearance-border);
|
|
51
|
-
transition: border-color 0.15s ARD.$timing-fn;
|
|
52
47
|
|
|
53
48
|
.ard-form-field-overlay {
|
|
54
49
|
background: ARD.$overlay;
|
|
55
50
|
opacity: 0;
|
|
56
|
-
transition:
|
|
57
|
-
opacity 0.15s ARD.$timing-fn,
|
|
58
|
-
background-color 0.15s ARD.$timing-fn;
|
|
59
51
|
}
|
|
60
52
|
|
|
61
53
|
&:hover {
|
|
62
54
|
.ard-form-field-overlay {
|
|
63
|
-
opacity: 3
|
|
55
|
+
opacity: var(--ard-form-field-hover-overlay-opacity, 3%);
|
|
64
56
|
}
|
|
65
57
|
}
|
|
66
58
|
&.ard-focused {
|
|
67
59
|
.ard-form-field-overlay {
|
|
68
|
-
opacity: 6
|
|
60
|
+
opacity: var(--ard-form-field-focus-overlay-opacity, 6%);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
&.ard-enable-transitions {
|
|
64
|
+
transition: border-color var(--ard-form-field-transitions-duration, 150ms) ARD.$timing-fn;
|
|
65
|
+
|
|
66
|
+
.ard-form-field-overlay {
|
|
67
|
+
transition:
|
|
68
|
+
opacity var(--ard-form-field-transitions-duration, 150ms) ARD.$timing-fn,
|
|
69
|
+
background-color var(--ard-form-field-transitions-duration, 150ms) ARD.$timing-fn;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
.ard-disabled .ard-form-field-frame {
|
|
73
74
|
pointer-events: none;
|
|
74
|
-
opacity: 50
|
|
75
|
+
opacity: var(--ard-form-field-disabled-opacity, 50%);
|
|
75
76
|
|
|
76
77
|
&.ard-appearance-transparent {
|
|
77
78
|
.ard-form-field-overlay {
|
|
78
|
-
opacity: 4.5
|
|
79
|
+
opacity: var(--ard-form-field-disabled-transparent-overlay-opacity, 4.5%);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.ard-readonly .ard-form-field-frame {
|
|
84
|
+
&:hover {
|
|
85
|
+
.ard-form-field-overlay {
|
|
86
|
+
opacity: 0;
|
|
79
87
|
}
|
|
80
88
|
}
|
|
81
89
|
}
|
|
@@ -1,5 +1,32 @@
|
|
|
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-form-field-label-padding: 0.25rem 0 0.125rem 0.125rem;
|
|
7
|
+
--ard-form-field-label-font-size: 0.9375rem;
|
|
8
|
+
--ard-form-field-label-font-weight: 500;
|
|
9
|
+
--ard-form-field-label-required-font-weight: 500;
|
|
10
|
+
--ard-form-field-label-required-font-size: 112.5%;
|
|
11
|
+
--ard-form-field-label-required-color: orangered;
|
|
12
|
+
--ard-form-field-label-optional-font-weight: 400;
|
|
13
|
+
--ard-form-field-label-optional-font-size: 0.8125rem;
|
|
14
|
+
// --ard-form-field-label-optional-color: ;
|
|
15
|
+
--ard-form-field-label-optional-font-style: italic;
|
|
16
|
+
// --ard-form-field-error-color: ;
|
|
17
|
+
// --ard-form-field-success-color: ;
|
|
18
|
+
--ard-form-field-hint-padding: 0.125rem 0 0.25rem 0.125rem;
|
|
19
|
+
--ard-form-field-hint-font-size: 0.8125rem;
|
|
20
|
+
--ard-form-field-hint-line-height: 1.2;
|
|
21
|
+
--ard-form-field-hint-right-padding-left: 0.5rem;
|
|
22
|
+
--ard-form-field-hint-error-line-height: 1.2;
|
|
23
|
+
--ard-form-field-hint-error-gap: 0.375em;
|
|
24
|
+
--ard-form-field-label-disabled-opacity: 40%;
|
|
25
|
+
--ard-form-field-hint-disabled-opacity: 50%;
|
|
26
|
+
--ard-form-field-error-animation-duration: 0.25s;
|
|
27
|
+
--ard-horizontal-form-field-gap: 0.5rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
3
30
|
ard-form-field,
|
|
4
31
|
ard-horizontal-form-field {
|
|
5
32
|
display: block;
|
|
@@ -12,80 +39,84 @@ ard-horizontal-form-field {
|
|
|
12
39
|
flex-direction: column;
|
|
13
40
|
|
|
14
41
|
.ard-label {
|
|
15
|
-
padding: 0.25rem 0 0.125rem 0.125rem;
|
|
16
|
-
font-size: 0.9375rem;
|
|
17
|
-
font-weight: 500;
|
|
42
|
+
padding: var(--ard-form-field-label-padding, 0.25rem 0 0.125rem 0.125rem);
|
|
43
|
+
font-size: var(--ard-form-field-label-font-size, 0.9375rem);
|
|
44
|
+
font-weight: var(--ard-form-field-label-font-weight, 500);
|
|
18
45
|
|
|
19
46
|
.ard-label__required {
|
|
20
47
|
.ard-label__required-optional-text {
|
|
21
|
-
font-weight: 500;
|
|
22
|
-
|
|
23
|
-
|
|
48
|
+
font-weight: var(--ard-form-field-label-required-font-weight, 500);
|
|
49
|
+
font-size: var(--ard-form-field-label-required-font-size, 112.5%);
|
|
50
|
+
color: var(--ard-form-field-label-required-color, orangered);
|
|
24
51
|
line-height: 1;
|
|
25
52
|
}
|
|
26
53
|
}
|
|
27
54
|
.ard-label__optional {
|
|
28
55
|
.ard-label__required-optional-text {
|
|
29
|
-
font-weight: 400;
|
|
30
|
-
font-size: 0.8125rem;
|
|
31
|
-
|
|
56
|
+
font-weight: var(--ard-form-field-label-optional-font-weight, 400);
|
|
57
|
+
font-size: var(--ard-form-field-label-optional-font-size, 0.8125rem);
|
|
58
|
+
color: var(--ard-form-field-label-optional-color, #{ARD.$text2});
|
|
59
|
+
font-style: var(--ard-form-field-label-optional-font-style, italic);
|
|
32
60
|
}
|
|
33
61
|
}
|
|
34
62
|
}
|
|
35
63
|
.ard-form-field__hints {
|
|
36
|
-
padding: 0.125rem 0 0.25rem 0.125rem;
|
|
37
|
-
font-size: 0.8125rem;
|
|
38
|
-
line-height: 1.1;
|
|
64
|
+
padding: var(--ard-form-field-hint-padding, 0.125rem 0 0.25rem 0.125rem);
|
|
65
|
+
font-size: var(--ard-form-field-hint-font-size, 0.8125rem);
|
|
66
|
+
line-height: var(--ard-form-field-hint-line-height, 1.1);
|
|
39
67
|
|
|
40
68
|
&.ard-form-field__reserve-hint-line {
|
|
41
69
|
box-sizing: content-box;
|
|
42
|
-
min-height: 1.1em;
|
|
70
|
+
min-height: calc(var(--ard-form-field-hint-line-height, 1.1) * 1em);
|
|
43
71
|
}
|
|
44
72
|
}
|
|
45
73
|
.ard-form-field__hints-right,
|
|
46
74
|
.ard-form-field__errors-right {
|
|
47
75
|
> * {
|
|
48
|
-
padding-left: 0.5rem;
|
|
76
|
+
padding-left: var(--ard-form-field-hint-right-padding-left, 0.5rem);
|
|
49
77
|
}
|
|
50
78
|
}
|
|
51
79
|
.ard-hint,
|
|
52
80
|
.ard-error {
|
|
53
81
|
font-size: 1em;
|
|
54
|
-
line-height: 1.
|
|
82
|
+
line-height: var(--ard-form-field-hint-error-line-height, 1.2);
|
|
55
83
|
display: inline-grid;
|
|
56
|
-
min-height: 1.1em;
|
|
84
|
+
min-height: calc(var(--ard-form-field-hint-error-line-height, 1.2) * 1em);
|
|
57
85
|
}
|
|
58
86
|
.ard-hint {
|
|
59
|
-
color: ARD.$text2;
|
|
87
|
+
color: var(--ard-form-field-hint-color, #{ARD.$text2});
|
|
60
88
|
}
|
|
61
89
|
.ard-error:not(.ard-hint-error),
|
|
62
90
|
.ard-form-field__errors .ard-hint-error {
|
|
63
|
-
color: ARD.$danger700;
|
|
91
|
+
color: var(--ard-form-field-error-color, #{ARD.$danger700});
|
|
64
92
|
overflow: hidden;
|
|
65
93
|
}
|
|
66
94
|
.ard-error:not(.ard-hint-error) {
|
|
67
|
-
animation: errorAppear 0.25s ARD.$timing-fn forwards;
|
|
95
|
+
animation: errorAppear var(--ard-form-field-error-animation-duration, 0.25s) ARD.$timing-fn forwards;
|
|
68
96
|
}
|
|
69
|
-
.ard-form-field__default-hint,
|
|
70
|
-
|
|
97
|
+
.ard-form-field__default-hint,
|
|
98
|
+
.ard-form-field__default-error {
|
|
99
|
+
gap: var(--ard-form-field-hint-error-gap, 0.375em);
|
|
71
100
|
}
|
|
72
101
|
|
|
73
102
|
&.ard-form-field__with-error {
|
|
74
|
-
.ard-label
|
|
75
|
-
|
|
103
|
+
.ard-label,
|
|
104
|
+
ard-label {
|
|
105
|
+
color: var(--ard-form-field-error-color, #{ARD.$danger700});
|
|
76
106
|
}
|
|
77
107
|
}
|
|
78
108
|
&.ard-form-field__is-success {
|
|
79
|
-
.ard-label
|
|
80
|
-
|
|
109
|
+
.ard-label,
|
|
110
|
+
ard-label {
|
|
111
|
+
color: var(--ard-form-field-success-color, #{ARD.$success700});
|
|
81
112
|
}
|
|
82
113
|
}
|
|
83
114
|
&.ard-form-field__control-disabled {
|
|
84
115
|
.ard-label {
|
|
85
|
-
opacity: 40
|
|
116
|
+
opacity: var(--ard-form-field-label-disabled-opacity, 40%);
|
|
86
117
|
}
|
|
87
118
|
.ard-form-field__hints {
|
|
88
|
-
opacity: 50
|
|
119
|
+
opacity: var(--ard-form-field-hint-disabled-opacity, 50%);
|
|
89
120
|
}
|
|
90
121
|
}
|
|
91
122
|
}
|
|
@@ -93,10 +124,11 @@ ard-horizontal-form-field {
|
|
|
93
124
|
align-items: flex-start;
|
|
94
125
|
justify-content: stretch;
|
|
95
126
|
flex-direction: row;
|
|
96
|
-
gap: 0.5rem;
|
|
127
|
+
gap: var(--ard-horizontal-form-field-gap, 0.5rem);
|
|
97
128
|
|
|
98
129
|
.ard-form-field__label-container {
|
|
99
130
|
width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
131
|
+
min-width: var(--ard-horizontal-form-field-label-width, 12rem);
|
|
100
132
|
height: ARD.$form-field-height;
|
|
101
133
|
display: flex;
|
|
102
134
|
align-items: center;
|
|
@@ -113,6 +145,10 @@ ard-horizontal-form-field {
|
|
|
113
145
|
}
|
|
114
146
|
}
|
|
115
147
|
|
|
148
|
+
ard-label {
|
|
149
|
+
display: flex;
|
|
150
|
+
}
|
|
151
|
+
|
|
116
152
|
@keyframes errorAppear {
|
|
117
153
|
from {
|
|
118
154
|
grid-template-rows: 0fr;
|
|
@@ -3,32 +3,69 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Should be applied to the first element in the component's template.
|
|
5
5
|
*/
|
|
6
|
-
@mixin genericInput(
|
|
6
|
+
@mixin genericInput(
|
|
7
|
+
$height,
|
|
8
|
+
$height-compact,
|
|
9
|
+
$gap,
|
|
10
|
+
$font-size,
|
|
11
|
+
$font-size-compact,
|
|
12
|
+
$line-height,
|
|
13
|
+
$line-height-compact,
|
|
14
|
+
$font-weight,
|
|
15
|
+
$padding-top,
|
|
16
|
+
$padding-right,
|
|
17
|
+
$padding-bottom,
|
|
18
|
+
$padding-left,
|
|
19
|
+
$padding-top-compact,
|
|
20
|
+
$padding-right-compact,
|
|
21
|
+
$padding-bottom-compact,
|
|
22
|
+
$padding-left-compact,
|
|
23
|
+
$color,
|
|
24
|
+
$placeholder-color,
|
|
25
|
+
$placeholder-opacity
|
|
26
|
+
) {
|
|
27
|
+
height: $height;
|
|
7
28
|
position: relative;
|
|
8
|
-
font-family:
|
|
29
|
+
font-family: var(--ard-font-family);
|
|
9
30
|
display: flex;
|
|
10
31
|
align-items: center;
|
|
11
32
|
justify-content: stretch;
|
|
12
|
-
gap:
|
|
33
|
+
gap: $gap;
|
|
13
34
|
cursor: text;
|
|
14
35
|
box-sizing: border-box;
|
|
15
|
-
font-size:
|
|
16
|
-
line-height:
|
|
36
|
+
font-size: $font-size;
|
|
37
|
+
line-height: $line-height;
|
|
38
|
+
font-weight: $font-weight;
|
|
39
|
+
padding-left: $padding-left;
|
|
40
|
+
padding-right: $padding-right;
|
|
41
|
+
padding-top: $padding-top;
|
|
42
|
+
padding-bottom: $padding-bottom;
|
|
43
|
+
color: $color;
|
|
17
44
|
|
|
18
45
|
.ard-input-container {
|
|
19
46
|
flex-grow: 1;
|
|
20
47
|
text-size-adjust: 100%;
|
|
21
48
|
display: flex;
|
|
22
49
|
align-items: center;
|
|
50
|
+
height: 100%;
|
|
51
|
+
position: relative;
|
|
23
52
|
|
|
53
|
+
> * {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
padding: 0;
|
|
58
|
+
}
|
|
24
59
|
.ard-placeholder {
|
|
25
60
|
font: inherit;
|
|
26
|
-
opacity:
|
|
61
|
+
opacity: $placeholder-opacity;
|
|
62
|
+
color: $placeholder-color;
|
|
27
63
|
white-space: nowrap;
|
|
28
64
|
overflow: hidden;
|
|
29
65
|
text-overflow: ellipsis;
|
|
30
|
-
max-width: 100%;
|
|
31
66
|
pointer-events: none;
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
32
69
|
}
|
|
33
70
|
|
|
34
71
|
input {
|
|
@@ -36,15 +73,18 @@
|
|
|
36
73
|
background: transparent;
|
|
37
74
|
outline: none;
|
|
38
75
|
font: inherit;
|
|
39
|
-
|
|
76
|
+
color: inherit;
|
|
40
77
|
display: block;
|
|
41
|
-
width: 100%;
|
|
42
78
|
}
|
|
43
79
|
}
|
|
44
80
|
//! compact
|
|
45
81
|
&.ard-compact {
|
|
46
|
-
height:
|
|
47
|
-
font-size:
|
|
48
|
-
line-height:
|
|
82
|
+
height: $height-compact;
|
|
83
|
+
font-size: $font-size-compact;
|
|
84
|
+
line-height: $line-height-compact;
|
|
85
|
+
padding-left: $padding-left-compact;
|
|
86
|
+
padding-right: $padding-right-compact;
|
|
87
|
+
padding-top: $padding-top-compact;
|
|
88
|
+
padding-bottom: $padding-bottom-compact;
|
|
49
89
|
}
|
|
50
90
|
}
|