@ardium-ui/ui 5.0.0-alpha.9 → 5.0.0-alpha.90
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 +5072 -2571
- 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 +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 +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 +2 -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 +9 -4
- 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 +5 -5
- 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 +20 -13
- 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 +6 -5
- 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/radio/radio/radio.component.d.ts +8 -3
- package/lib/radio/radio-group.component.d.ts +2 -2
- package/lib/search-functions.d.ts +1 -1
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +45 -39
- 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 +37 -29
- 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/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 +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.css +324 -301
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +317 -299
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +299 -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 +89 -62
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +349 -362
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +412 -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 +108 -86
- 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 -98
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +148 -118
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -132
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +99 -137
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +134 -63
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +120 -110
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +385 -325
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +150 -117
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +137 -107
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +213 -164
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +120 -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 -71
- 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 +246 -223
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +432 -414
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +302 -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 +399 -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 +271 -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 +2 -1
- package/themes/_variables.scss +2 -1
- package/themes/default/_coloring.scss +7 -0
- package/themes/default/_mixins.scss +5 -5
- package/themes/default/badge.scss +115 -80
- package/themes/default/buttons/_button-mixins.scss +43 -33
- package/themes/default/buttons/button.scss +90 -63
- package/themes/default/buttons/fab.scss +74 -49
- package/themes/default/buttons/icon-button.scss +70 -45
- package/themes/default/calendar.scss +257 -163
- package/themes/default/card.scss +167 -121
- package/themes/default/checkbox-list.scss +90 -62
- package/themes/default/checkbox.scss +64 -91
- package/themes/default/chips.scss +203 -143
- package/themes/default/color-display.scss +40 -28
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +123 -97
- 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 +73 -63
- package/themes/default/form-field.scss +136 -98
- package/themes/default/inputs/_shared.scss +52 -12
- package/themes/default/inputs/autocomplete-input.scss +102 -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 +103 -79
- package/themes/default/inputs/file-input.scss +160 -81
- package/themes/default/inputs/hex-input.scss +68 -16
- package/themes/default/inputs/input.scss +55 -6
- package/themes/default/inputs/number-input.scss +164 -92
- package/themes/default/inputs/password-input.scss +100 -29
- package/themes/default/kbd-shortcut.scss +16 -8
- package/themes/default/kbd.scss +35 -16
- package/themes/default/modal.scss +109 -73
- package/themes/default/progress-bar.scss +126 -102
- package/themes/default/progress-circle.scss +49 -41
- package/themes/default/radio.scss +110 -87
- package/themes/default/segment.scss +282 -267
- package/themes/default/select.scss +255 -197
- package/themes/default/slide-toggle.scss +193 -116
- package/themes/default/slider.scss +230 -187
- package/themes/default/snackbar.scss +52 -32
- package/themes/default/spinner.scss +24 -14
- package/themes/default/stars.scss +99 -68
- 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
|
@@ -3,25 +3,77 @@
|
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
4
|
@use '../../variables' as ARD;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
@layer ard-ui {
|
|
7
|
+
// the variables are commented out intentionally
|
|
8
|
+
// read more in docs/dev/css-variables.md
|
|
9
|
+
:root {
|
|
10
|
+
// --ard-hex-input-height: ;
|
|
11
|
+
// --ard-hex-input-height-compact: ;
|
|
12
|
+
--ard-hex-input-gap: 0.625rem;
|
|
13
|
+
// --ard-hex-input-font-size: ;
|
|
14
|
+
// --ard-hex-input-font-size-compact: ;
|
|
15
|
+
--ard-hex-input-line-height: 1.25;
|
|
16
|
+
--ard-hex-input-line-height-compact: 1;
|
|
17
|
+
--ard-hex-input-font-weight: 400;
|
|
18
|
+
// --ard-hex-input-padding-top: ;
|
|
19
|
+
// --ard-hex-input-padding-right: ;
|
|
20
|
+
// --ard-hex-input-padding-bottom: ;
|
|
21
|
+
// --ard-hex-input-padding-left: ;
|
|
22
|
+
// --ard-hex-input-padding-top-compact: ;
|
|
23
|
+
// --ard-hex-input-padding-right-compact: ;
|
|
24
|
+
// --ard-hex-input-padding-bottom-compact: ;
|
|
25
|
+
// --ard-hex-input-padding-left-compact: ;
|
|
26
|
+
// --ard-hex-input-color: ;
|
|
27
|
+
// --ard-hex-input-placeholder-color: ;
|
|
28
|
+
--ard-hex-input-placeholder-opacity: 60%;
|
|
11
29
|
|
|
12
|
-
|
|
30
|
+
--ard-hex-input-min-width: 10rem;
|
|
31
|
+
--ard-hex-input-max-width: 100%;
|
|
32
|
+
// --ard-hex-input-hash-color: ;
|
|
33
|
+
--ard-hex-input-hash-opacity: 70%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ard-hex-input {
|
|
37
|
+
@include inputMixin.genericInput(
|
|
38
|
+
var(--ard-hex-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
39
|
+
var(--ard-hex-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
40
|
+
var(--ard-hex-input-gap, 0.625rem),
|
|
41
|
+
var(--ard-hex-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
42
|
+
var(--ard-hex-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
43
|
+
var(--ard-hex-input-line-height, 1.25),
|
|
44
|
+
var(--ard-hex-input-line-height-compact, 1),
|
|
45
|
+
var(--ard-hex-input-font-weight, 400),
|
|
46
|
+
var(--ard-hex-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
47
|
+
var(--ard-hex-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
48
|
+
var(--ard-hex-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
49
|
+
var(--ard-hex-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
50
|
+
var(--ard-hex-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
51
|
+
var(--ard-hex-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
52
|
+
var(--ard-hex-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
53
|
+
var(--ard-hex-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
54
|
+
var(--ard-hex-input-color, #{ARD.$text}),
|
|
55
|
+
var(--ard-hex-input-placeholder-color, #{ARD.$text}),
|
|
56
|
+
var(--ard-hex-input-placeholder-opacity, 60%)
|
|
57
|
+
);
|
|
58
|
+
min-width: var(--ard-hex-input-min-width, 10rem);
|
|
59
|
+
max-width: var(--ard-hex-input-max-width, 100%);
|
|
60
|
+
|
|
61
|
+
@include CB.clearButton();
|
|
13
62
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
63
|
+
.ard-input-container {
|
|
64
|
+
input {
|
|
65
|
+
font-family: var(--ard-font-family-mono);
|
|
66
|
+
}
|
|
17
67
|
}
|
|
18
|
-
}
|
|
19
68
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
69
|
+
.ard-hash-container {
|
|
70
|
+
color: var(--ard-hex-input-hash-color, #{ARD.$text});
|
|
71
|
+
opacity: var(--ard-hex-input-hash-opacity, 70%);
|
|
72
|
+
user-select: none;
|
|
73
|
+
font-family: var(--ard-font-family-mono);
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
height: 100%;
|
|
77
|
+
}
|
|
26
78
|
}
|
|
27
79
|
}
|
|
@@ -1,12 +1,61 @@
|
|
|
1
1
|
@use './shared' as inputMixin;
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
|
+
@use '../../variables' as ARD;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
@layer ard-ui {
|
|
7
|
+
// the variables are commented out intentionally
|
|
8
|
+
// read more in docs/dev/css-variables.md
|
|
9
|
+
:root {
|
|
10
|
+
// --ard-input-height: ;
|
|
11
|
+
// --ard-input-height-compact: ;
|
|
12
|
+
--ard-input-gap: 0.625rem;
|
|
13
|
+
// --ard-input-font-size: ;
|
|
14
|
+
// --ard-input-font-size-compact: ;
|
|
15
|
+
--ard-input-line-height: 1.25;
|
|
16
|
+
--ard-input-line-height-compact: 1;
|
|
17
|
+
--ard-input-font-weight: 400;
|
|
18
|
+
// --ard-input-padding-left: ;
|
|
19
|
+
// --ard-input-padding-right: ;
|
|
20
|
+
// --ard-input-padding-top: ;
|
|
21
|
+
// --ard-input-padding-bottom: ;
|
|
22
|
+
// --ard-input-padding-left-compact: ;
|
|
23
|
+
// --ard-input-padding-right-compact: ;
|
|
24
|
+
// --ard-input-padding-top-compact: ;
|
|
25
|
+
// --ard-input-padding-bottom-compact: ;
|
|
26
|
+
// --ard-input-color: ;
|
|
27
|
+
// --ard-input-placeholder-color: ;
|
|
28
|
+
--ard-input-placeholder-opacity: 60%;
|
|
10
29
|
|
|
11
|
-
|
|
30
|
+
--ard-input-min-width: 10rem;
|
|
31
|
+
--ard-input-max-width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ard-input {
|
|
35
|
+
@include inputMixin.genericInput(
|
|
36
|
+
var(--ard-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
37
|
+
var(--ard-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
38
|
+
var(--ard-input-gap, 0.625rem),
|
|
39
|
+
var(--ard-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
40
|
+
var(--ard-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
41
|
+
var(--ard-input-line-height, 1.25),
|
|
42
|
+
var(--ard-input-line-height-compact, 1),
|
|
43
|
+
var(--ard-input-font-weight, 400),
|
|
44
|
+
var(--ard-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
45
|
+
var(--ard-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
46
|
+
var(--ard-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
47
|
+
var(--ard-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
48
|
+
var(--ard-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
49
|
+
var(--ard-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
50
|
+
var(--ard-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
51
|
+
var(--ard-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
52
|
+
var(--ard-input-color, #{ARD.$text}),
|
|
53
|
+
var(--ard-input-placeholder-color, #{ARD.$text}),
|
|
54
|
+
var(--ard-input-placeholder-opacity, 60%)
|
|
55
|
+
);
|
|
56
|
+
min-width: var(--ard-input-min-width, 10rem);
|
|
57
|
+
max-width: var(--ard-input-max-width, 100%);
|
|
58
|
+
|
|
59
|
+
@include CB.clearButton();
|
|
60
|
+
}
|
|
12
61
|
}
|
|
@@ -2,130 +2,202 @@
|
|
|
2
2
|
@use '../mixins' as defaultMixins;
|
|
3
3
|
@use '../../variables' as ARD;
|
|
4
4
|
|
|
5
|
-
ard-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
@layer ard-ui {
|
|
6
|
+
// the variables are commented out intentionally
|
|
7
|
+
// read more in docs/dev/css-variables.md
|
|
8
|
+
:root {
|
|
9
|
+
// --ard-number-input-height: ;
|
|
10
|
+
// --ard-number-input-height-compact: ;
|
|
11
|
+
--ard-number-input-gap: 0.625rem;
|
|
12
|
+
// --ard-number-input-font-size: ;
|
|
13
|
+
// --ard-number-input-font-size-compact: ;
|
|
14
|
+
--ard-number-input-line-height: 1.25;
|
|
15
|
+
--ard-number-input-line-height-compact: 1;
|
|
16
|
+
--ard-number-input-font-weight: 400;
|
|
17
|
+
// --ard-number-input-padding-top: ;
|
|
18
|
+
// --ard-number-input-padding-right: ;
|
|
19
|
+
// --ard-number-input-padding-bottom: ;
|
|
20
|
+
// --ard-number-input-padding-left: ;
|
|
21
|
+
// --ard-number-input-padding-top-compact: ;
|
|
22
|
+
// --ard-number-input-padding-right-compact: ;
|
|
23
|
+
// --ard-number-input-padding-bottom-compact: ;
|
|
24
|
+
// --ard-number-input-padding-left-compact: ;
|
|
25
|
+
// --ard-number-input-color: ;
|
|
26
|
+
// --ard-number-input-placeholder-color: ;
|
|
27
|
+
--ard-number-input-placeholder-opacity: 60%;
|
|
28
|
+
--ard-number-input-disabled-opacity: 50%;
|
|
29
|
+
// --ard-number-input-width: ;
|
|
30
|
+
--ard-number-input-rounded-border-radius: 8px;
|
|
10
31
|
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ard-number-input {
|
|
14
|
-
@include inputMixin.genericInput();
|
|
15
|
-
@include defaultMixins.formAppearances();
|
|
16
|
-
min-height: 2.1875rem;
|
|
17
|
-
height: 2.1875rem;
|
|
18
|
-
gap: 0;
|
|
19
|
-
width: 100%;
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
max-width: 100%;
|
|
24
|
-
|
|
25
|
-
& > input {
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
33
|
+
ard-number-input {
|
|
34
|
+
width: var(--ard-number-input-width, unset);
|
|
28
35
|
}
|
|
29
36
|
|
|
30
|
-
.ard-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
.ard-number-input {
|
|
38
|
+
@include inputMixin.genericInput(
|
|
39
|
+
var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
40
|
+
var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
41
|
+
var(--ard-number-input-gap, 0.625rem),
|
|
42
|
+
var(--ard-number-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
43
|
+
var(--ard-number-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
44
|
+
var(--ard-number-input-line-height, 1.25),
|
|
45
|
+
var(--ard-number-input-line-height-compact, 1),
|
|
46
|
+
var(--ard-number-input-font-weight, 400),
|
|
47
|
+
var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
48
|
+
var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
49
|
+
var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
50
|
+
var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
51
|
+
var(--ard-number-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
52
|
+
var(--ard-number-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
53
|
+
var(--ard-number-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
54
|
+
var(--ard-number-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
55
|
+
var(--ard-number-input-color, #{ARD.$text}),
|
|
56
|
+
var(--ard-number-input-placeholder-color, #{ARD.$text}),
|
|
57
|
+
var(--ard-number-input-placeholder-opacity, 60%)
|
|
58
|
+
);
|
|
59
|
+
@include defaultMixins.formAppearances();
|
|
60
|
+
gap: 0;
|
|
61
|
+
width: 100%;
|
|
62
|
+
|
|
63
|
+
.ard-number-input-wrapper {
|
|
64
|
+
flex-grow: 1;
|
|
65
|
+
text-size-adjust: 100%;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
34
68
|
height: 100%;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
69
|
+
}
|
|
70
|
+
.ard-input-container {
|
|
71
|
+
position: relative;
|
|
72
|
+
padding-left: var(--ard-number-input-padding-left, var(--ard-form-field-padding-left, 0.375rem));
|
|
73
|
+
padding-right: var(--ard-number-input-padding-right, var(--ard-form-field-padding-right, 0.375rem));
|
|
74
|
+
padding-top: var(--ard-number-input-padding-top, var(--ard-form-field-padding-top, 0));
|
|
75
|
+
padding-bottom: var(--ard-number-input-padding-bottom, var(--ard-form-field-padding-bottom, 0));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//! prefix & suffix
|
|
79
|
+
.ard-number-input-prefix-container,
|
|
80
|
+
.ard-number-input-suffix-container {
|
|
81
|
+
height: max-content;
|
|
82
|
+
max-height: 100%;
|
|
38
83
|
display: flex;
|
|
39
|
-
|
|
40
|
-
margin: 0;
|
|
84
|
+
align-items: center;
|
|
41
85
|
}
|
|
42
|
-
|
|
43
|
-
|
|
86
|
+
.ard-number-input-prefix-container {
|
|
87
|
+
padding-left: var(--ard-number-input-padding-left, 0.375rem);
|
|
88
|
+
}
|
|
89
|
+
.ard-number-input-suffix-container {
|
|
90
|
+
padding-right: var(--ard-number-input-padding-right, 0.375rem);
|
|
44
91
|
}
|
|
45
92
|
|
|
46
|
-
|
|
47
|
-
|
|
93
|
+
//! buttons
|
|
94
|
+
.ard-quick-change-button {
|
|
95
|
+
position: relative;
|
|
96
|
+
min-width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
48
97
|
|
|
49
98
|
.ard-button {
|
|
50
|
-
|
|
51
|
-
|
|
99
|
+
height: 100%;
|
|
100
|
+
aspect-ratio: 1;
|
|
101
|
+
padding: 0;
|
|
102
|
+
border-color: var(--ard-appearance-border-color);
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
margin: 0;
|
|
106
|
+
}
|
|
107
|
+
&.ard-disabled .ard-focus-overlay {
|
|
108
|
+
opacity: 0;
|
|
52
109
|
}
|
|
53
|
-
}
|
|
54
|
-
&.increment {
|
|
55
|
-
right: 1px;
|
|
56
110
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
111
|
+
&.decrement {
|
|
112
|
+
left: 1px;
|
|
113
|
+
|
|
114
|
+
.ard-button {
|
|
115
|
+
border-top-right-radius: 0;
|
|
116
|
+
border-bottom-right-radius: 0;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
&.increment {
|
|
120
|
+
right: 1px;
|
|
121
|
+
|
|
122
|
+
.ard-button {
|
|
123
|
+
border-top-left-radius: 0;
|
|
124
|
+
border-bottom-left-radius: 0;
|
|
125
|
+
}
|
|
60
126
|
}
|
|
61
127
|
}
|
|
62
|
-
}
|
|
63
128
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
129
|
+
//! variants
|
|
130
|
+
&.ard-variant-rounded {
|
|
131
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
67
132
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
133
|
+
&.ard-quick-change-false {
|
|
134
|
+
.ard-number-input-wrapper {
|
|
135
|
+
border-radius: var(--ard-number-input-rounded-border-radius, 8px);
|
|
136
|
+
}
|
|
71
137
|
}
|
|
72
138
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
border-radius: 0;
|
|
76
|
-
}
|
|
77
|
-
&.ard-variant-pill {
|
|
78
|
-
border-radius: 9999px;
|
|
79
|
-
|
|
80
|
-
.ard-button {
|
|
81
|
-
border-radius: 9999px !important;
|
|
82
|
-
height: 30px;
|
|
83
|
-
width: 30px;
|
|
84
|
-
margin: 0 2px;
|
|
139
|
+
&.ard-variant-sharp {
|
|
140
|
+
border-radius: 0;
|
|
85
141
|
}
|
|
142
|
+
&.ard-variant-pill {
|
|
143
|
+
border-radius: 9999px;
|
|
86
144
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
145
|
+
.ard-button {
|
|
146
|
+
border-radius: 9999px !important;
|
|
147
|
+
width: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
148
|
+
height: var(--ard-number-input-height, var(--ard-form-field-height, 2.3125rem));
|
|
149
|
+
margin: 0 2px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.ard-quick-change-false {
|
|
153
|
+
.ard-number-input-wrapper {
|
|
154
|
+
border-radius: 9999px;
|
|
155
|
+
}
|
|
90
156
|
}
|
|
91
157
|
}
|
|
92
|
-
}
|
|
93
158
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
159
|
+
//! variant-specific appearances
|
|
160
|
+
&.ard-variant-rounded,
|
|
161
|
+
&.ard-variant-sharp {
|
|
162
|
+
&:not(.ard-appearance-filled) .ard-number-input-wrapper {
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
background: var(--ard-appearance-background);
|
|
165
|
+
border: var(--ard-appearance-border);
|
|
166
|
+
}
|
|
167
|
+
&.ard-appearance-filled {
|
|
168
|
+
background: var(--ard-appearance-background);
|
|
169
|
+
border: var(--ard-appearance-border);
|
|
170
|
+
}
|
|
101
171
|
}
|
|
102
|
-
&.ard-
|
|
172
|
+
&.ard-variant-pill {
|
|
103
173
|
background: var(--ard-appearance-background);
|
|
104
174
|
border: var(--ard-appearance-border);
|
|
105
175
|
}
|
|
106
|
-
}
|
|
107
|
-
&.ard-variant-pill {
|
|
108
|
-
background: var(--ard-appearance-background);
|
|
109
|
-
border: var(--ard-appearance-border);
|
|
110
|
-
}
|
|
111
176
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
177
|
+
//! compact
|
|
178
|
+
&.ard-compact {
|
|
179
|
+
.ard-number-input-wrapper {
|
|
180
|
+
padding-left: var(--ard-number-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem));
|
|
181
|
+
padding-right: var(--ard-number-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem));
|
|
182
|
+
padding-top: var(--ard-number-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0));
|
|
183
|
+
padding-bottom: var(--ard-number-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0));
|
|
184
|
+
}
|
|
185
|
+
.ard-quick-change-button {
|
|
186
|
+
min-width: var(--ard-number-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
117
189
|
}
|
|
118
|
-
}
|
|
119
190
|
|
|
120
|
-
.ard-disabled {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
191
|
+
.ard-disabled {
|
|
192
|
+
> .ard-number-input {
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
opacity: var(--ard-number-input-disabled-opacity, 50%);
|
|
124
195
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
196
|
+
.ard-button .ard-focus-overlay {
|
|
197
|
+
opacity: 0;
|
|
198
|
+
}
|
|
128
199
|
|
|
129
|
-
|
|
200
|
+
background: ARD.$bg-f;
|
|
201
|
+
}
|
|
130
202
|
}
|
|
131
203
|
}
|
|
@@ -3,41 +3,112 @@
|
|
|
3
3
|
@use '../clear-button' as CB;
|
|
4
4
|
@use '../../variables' as ARD;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
@layer ard-ui {
|
|
7
|
+
// the variables are commented out intentionally
|
|
8
|
+
// read more in docs/dev/css-variables.md
|
|
9
|
+
:root {
|
|
10
|
+
// --ard-password-input-height: ;
|
|
11
|
+
// --ard-password-input-height-compact: ;
|
|
12
|
+
--ard-password-input-gap: 0.625rem;
|
|
13
|
+
// --ard-password-input-font-size: ;
|
|
14
|
+
// --ard-password-input-font-size-compact: ;
|
|
15
|
+
--ard-password-input-line-height: 1.25;
|
|
16
|
+
--ard-password-input-line-height-compact: 1;
|
|
17
|
+
--ard-password-input-font-weight: 400;
|
|
18
|
+
// --ard-password-input-padding-top: ;
|
|
19
|
+
// --ard-password-input-padding-right: ;
|
|
20
|
+
// --ard-password-input-padding-bottom: ;
|
|
21
|
+
// --ard-password-input-padding-left: ;
|
|
22
|
+
// --ard-password-input-padding-top-compact: ;
|
|
23
|
+
// --ard-password-input-padding-right-compact: ;
|
|
24
|
+
// --ard-password-input-padding-bottom-compact: ;
|
|
25
|
+
// --ard-password-input-padding-left-compact: ;
|
|
26
|
+
// --ard-password-input-color: ;
|
|
27
|
+
// --ard-password-input-placeholder-color: ;
|
|
28
|
+
--ard-password-input-placeholder-opacity: 60%;
|
|
11
29
|
|
|
12
|
-
|
|
13
|
-
|
|
30
|
+
--ard-password-input-min-width: 10rem;
|
|
31
|
+
--ard-password-input-max-width: 100%;
|
|
32
|
+
--ard-password-input-disabled-opacity: 50%;
|
|
33
|
+
--ard-password-input-reveal-button-margin: 0.125rem;
|
|
34
|
+
--ard-password-input-reveal-button-font-size: 0.8rem;
|
|
35
|
+
--ard-password-input-reveal-button-height: calc(100% - 0.25rem);
|
|
36
|
+
--ard-password-input-reveal-button-width: unset;
|
|
37
|
+
--ard-password-input-reveal-button-aspect-ratio: 1;
|
|
38
|
+
--ard-password-input-reveal-button-padding: 0;
|
|
39
|
+
// --ard-password-input-reveal-button-color: ;
|
|
40
|
+
--ard-password-input-reveal-button-border-radius: 9999px;
|
|
41
|
+
--ard-password-input-reveal-button-border: none;
|
|
42
|
+
--ard-password-input-reveal-button-background: transparent;
|
|
43
|
+
--ard-password-input-reveal-button-hover-background: rgba(0, 0, 0, 4%);
|
|
44
|
+
--ard-password-input-reveal-button-focus-background: rgba(0, 0, 0, 12%);
|
|
45
|
+
--ard-password-input-reveal-button-active-background: rgba(0, 0, 0, 20%);
|
|
14
46
|
}
|
|
15
47
|
|
|
16
|
-
.ard-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
48
|
+
.ard-password-input {
|
|
49
|
+
@include inputMixin.genericInput(
|
|
50
|
+
var(--ard-password-input-height, var(--ard-form-field-height, 2.3125rem)),
|
|
51
|
+
var(--ard-password-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
|
|
52
|
+
var(--ard-password-input-gap, 0.625rem),
|
|
53
|
+
var(--ard-password-input-font-size, var(--ard-form-field-font-size, 1rem)),
|
|
54
|
+
var(--ard-password-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
|
|
55
|
+
var(--ard-password-input-line-height, 1.25),
|
|
56
|
+
var(--ard-password-input-line-height-compact, 1),
|
|
57
|
+
var(--ard-password-input-font-weight, 400),
|
|
58
|
+
var(--ard-password-input-padding-top, var(--ard-form-field-padding-top, 0)),
|
|
59
|
+
var(--ard-password-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
|
|
60
|
+
var(--ard-password-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
|
|
61
|
+
var(--ard-password-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
|
|
62
|
+
var(--ard-password-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
|
|
63
|
+
var(--ard-password-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
|
|
64
|
+
var(--ard-password-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
|
|
65
|
+
var(--ard-password-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
|
|
66
|
+
var(--ard-password-input-color, #{ARD.$text}),
|
|
67
|
+
var(--ard-password-input-placeholder-color, #{ARD.$text}),
|
|
68
|
+
var(--ard-password-input-placeholder-opacity, 60%)
|
|
69
|
+
);
|
|
70
|
+
min-width: var(--ard-password-input-min-width, 10rem);
|
|
71
|
+
max-width: var(--ard-password-input-max-width, 100%);
|
|
30
72
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
&:hover {
|
|
34
|
-
background: rgba(0, 0, 0, 4%);
|
|
73
|
+
&.ard-revealable {
|
|
74
|
+
padding-right: 0;
|
|
35
75
|
}
|
|
36
|
-
|
|
37
|
-
|
|
76
|
+
|
|
77
|
+
.ard-reveal-button {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
padding: var(--ard-password-input-reveal-button-padding, 0);
|
|
82
|
+
color: var(--ard-password-input-reveal-button-color, #{ARD.$text});
|
|
83
|
+
margin: var(--ard-password-input-reveal-button-margin, 0.125rem);
|
|
84
|
+
height: var(--ard-password-input-reveal-button-height, calc(100% - 0.25rem));
|
|
85
|
+
width: var(--ard-password-input-reveal-button-width, unset);
|
|
86
|
+
aspect-ratio: var(--ard-password-input-reveal-button-aspect-ratio, 1);
|
|
87
|
+
font-size: var(--ard-password-input-reveal-button-font-size, 0.8rem);
|
|
88
|
+
border-radius: var(--ard-password-input-reveal-button-border-radius, 9999px);
|
|
89
|
+
border: var(--ard-password-input-reveal-button-border, none);
|
|
90
|
+
background: var(--ard-password-input-reveal-button-background, transparent);
|
|
91
|
+
outline: none;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
|
|
94
|
+
transition: background-color 0.2s ARD.$timing-fn;
|
|
95
|
+
|
|
96
|
+
&:hover {
|
|
97
|
+
background: var(--ard-password-input-reveal-button-hover-background, rgba(0, 0, 0, 4%));
|
|
98
|
+
}
|
|
99
|
+
&:focus {
|
|
100
|
+
background: var(--ard-password-input-reveal-button-focus-background, rgba(0, 0, 0, 12%));
|
|
101
|
+
}
|
|
102
|
+
&:active {
|
|
103
|
+
background: var(--ard-password-input-reveal-button-active-background, rgba(0, 0, 0, 20%));
|
|
104
|
+
}
|
|
38
105
|
}
|
|
39
|
-
|
|
40
|
-
|
|
106
|
+
}
|
|
107
|
+
//! disabled state
|
|
108
|
+
.ard-disabled {
|
|
109
|
+
.ard-password-input {
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
opacity: var(--ard-password-input-disabled-opacity, 50%);
|
|
41
112
|
}
|
|
42
113
|
}
|
|
43
114
|
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
@use '../variables' as ARD;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
font-size: 0.
|
|
3
|
+
@layer ard-ui {
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-kbd-shortcut-font-size: 0.875em;
|
|
8
|
+
--ard-kbd-shortcut-transparent-font-size: 0.75em;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
|
|
11
|
+
.ard-kbd-shortcut {
|
|
12
|
+
font-family: var(--ard-font-family-mono);
|
|
13
|
+
|
|
14
|
+
> span {
|
|
15
|
+
font-size: var(--ard-kbd-shortcut-font-size, 0.875em);
|
|
16
|
+
}
|
|
17
|
+
&.ard-appearance-transparent > span {
|
|
18
|
+
font-size: var(--ard-kbd-shortcut-transparent-font-size, 0.75em);
|
|
19
|
+
}
|
|
12
20
|
}
|
|
13
21
|
}
|