@koobiq/components 17.0.0-beta.2 → 17.0.0-rc.10
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/README.md +1 -2
- package/alert/_alert-theme.scss +48 -24
- package/alert/alert.component.d.ts +23 -3
- package/alert/alert.component.scss +91 -59
- package/autocomplete/_autocomplete-theme.scss +3 -3
- package/autocomplete/autocomplete.scss +8 -18
- package/badge/_badge-theme.scss +30 -45
- package/badge/badge.component.scss +18 -39
- package/button/_button-base.scss +7 -14
- package/button/_button-theme.scss +30 -86
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -17
- package/button-toggle/_button-toggle-theme.scss +19 -20
- package/button-toggle/button-toggle.scss +17 -44
- package/card/_card-theme.scss +18 -17
- package/card/card.component.scss +3 -6
- package/checkbox/_checkbox-theme.scss +50 -50
- package/checkbox/checkbox.scss +31 -35
- package/code-block/README.md +18 -14
- package/code-block/_code-block-theme.scss +53 -23
- package/code-block/actionbar.component.scss +11 -25
- package/code-block/code-block.component.d.ts +12 -4
- package/code-block/code-block.scss +62 -77
- package/core/form-field/form-field-ref.d.ts +2 -0
- package/core/forms/_forms-theme.scss +4 -8
- package/core/forms/_forms.scss +13 -43
- package/core/locales/formatters.d.ts +96 -0
- package/core/locales/locale-service.d.ts +97 -0
- package/core/option/_optgroup-theme.scss +4 -6
- package/core/option/_option-action-theme.scss +8 -11
- package/core/option/_option-theme.scss +15 -20
- package/core/option/optgroup.scss +0 -1
- package/core/option/option.scss +0 -1
- package/core/pop-up/_pop-up.scss +0 -1
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/select/common.d.ts +35 -0
- package/core/select/index.d.ts +1 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +15 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -9
- package/core/services/theme.service.d.ts +3 -2
- package/core/styles/_core.scss +0 -1
- package/core/styles/_koobiq-theme.scss +5 -3
- package/core/styles/common/_animation.scss +9 -8
- package/core/styles/common/_button.scss +0 -2
- package/core/styles/common/_clearfix.scss +1 -1
- package/core/styles/common/_groups.scss +3 -9
- package/core/styles/common/_list.scss +28 -31
- package/core/styles/common/_overlay.scss +4 -3
- package/core/styles/common/_popup.scss +5 -5
- package/core/styles/common/_rtl.scss +4 -4
- package/core/styles/common/_select.scss +48 -42
- package/core/styles/common/_tokens.scss +47 -0
- package/core/styles/functions/_number.scss +14 -19
- package/core/styles/functions/_string.scss +18 -19
- package/core/styles/functions/_timing.scss +24 -24
- package/core/styles/theming/_components-theming.scss +1380 -1384
- package/core/styles/theming/_scrollbar-theme.scss +8 -5
- package/core/styles/theming/_theming.scss +26 -29
- package/core/styles/typography/_typography-utils.scss +1 -2
- package/core/styles/typography/_typography.scss +138 -85
- package/core/styles/visual/_body.scss +0 -2
- package/core/styles/visual/_layout.scss +44 -38
- package/core/utils/data-size/config.d.ts +20 -2
- package/core/utils/data-size/data-size.pipe.d.ts +10 -9
- package/core/utils/data-size/size.d.ts +3 -4
- package/datepicker/_datepicker-theme.scss +38 -40
- package/datepicker/calendar-body.scss +3 -11
- package/datepicker/calendar-header.scss +4 -10
- package/datepicker/calendar.scss +5 -17
- package/datepicker/datepicker-content.scss +5 -15
- package/datepicker/datepicker-input.scss +0 -5
- package/datepicker/datepicker-toggle.scss +3 -3
- package/divider/_divider-theme.scss +2 -1
- package/divider/divider.scss +9 -26
- package/dl/_dl-theme.scss +5 -8
- package/dl/dl.scss +5 -20
- package/dropdown/_dropdown-theme.scss +27 -22
- package/dropdown/dropdown-item.scss +5 -12
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.scss +6 -15
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/empty-state/README.md +0 -0
- package/empty-state/_empty-state-theme.scss +56 -0
- package/empty-state/empty-state.component.d.ts +31 -0
- package/empty-state/empty-state.module.d.ts +10 -0
- package/empty-state/empty-state.scss +81 -0
- package/empty-state/index.d.ts +1 -0
- package/empty-state/public-api.d.ts +2 -0
- package/esm2022/alert/alert.component.mjs +52 -5
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +58 -14
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/locales/formatters.mjs +97 -1
- package/esm2022/core/locales/locale-service.mjs +5 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-trigger.mjs +18 -11
- package/esm2022/core/select/common.mjs +120 -0
- package/esm2022/core/select/index.mjs +2 -1
- package/esm2022/core/services/theme.service.mjs +4 -1
- package/esm2022/core/utils/data-size/config.mjs +5 -17
- package/esm2022/core/utils/data-size/data-size.pipe.mjs +36 -22
- package/esm2022/core/utils/data-size/size.mjs +10 -14
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/datepicker/datepicker-animations.mjs +2 -2
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/empty-state/empty-state.component.mjs +104 -0
- package/esm2022/empty-state/empty-state.module.mjs +50 -0
- package/esm2022/empty-state/index.mjs +2 -0
- package/esm2022/empty-state/koobiq-components-empty-state.mjs +5 -0
- package/esm2022/empty-state/public-api.mjs +3 -0
- package/esm2022/file-upload/file-upload.mjs +15 -1
- package/esm2022/file-upload/file-upload.module.mjs +15 -5
- package/esm2022/file-upload/multiple-file-upload.component.mjs +98 -49
- package/esm2022/file-upload/single-file-upload.component.mjs +110 -54
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/form-field/password-toggle.mjs +11 -9
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/input/input-number.mjs +2 -2
- package/esm2022/list/list-selection.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +8 -9
- package/esm2022/navbar/navbar-item.component.mjs +11 -11
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/select/select.component.mjs +71 -125
- package/esm2022/select/select.module.mjs +28 -28
- package/esm2022/splitter/splitter.component.mjs +37 -17
- package/esm2022/table/table.component.mjs +29 -6
- package/esm2022/table/table.module.mjs +14 -6
- package/esm2022/tabs/tab-body.component.mjs +1 -1
- package/esm2022/tabs/tab-group.component.mjs +55 -13
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -3
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +4 -4
- package/esm2022/textarea/textarea.component.mjs +12 -10
- package/esm2022/timepicker/timepicker.directive.mjs +11 -3
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +3 -4
- package/esm2022/toast/toast-container.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +4 -4
- package/esm2022/toast/toast.service.mjs +18 -13
- package/esm2022/toast/toast.type.mjs +3 -1
- package/esm2022/tooltip/tooltip.component.mjs +28 -14
- package/esm2022/tree/padding.directive.mjs +2 -2
- package/esm2022/tree/tree-base.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree/tree-selection.component.mjs +6 -1
- package/esm2022/tree-select/tree-select.component.mjs +29 -44
- package/esm2022/tree-select/tree-select.module.mjs +31 -11
- package/fesm2022/koobiq-components-alert.mjs +52 -5
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -5
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +57 -14
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +285 -67
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +2 -2
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +8 -8
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +5 -4
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +157 -0
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -0
- package/fesm2022/koobiq-components-file-upload.mjs +225 -97
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +21 -21
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +14 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +1 -1
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs +7 -8
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +14 -14
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +2 -2
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +102 -155
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +36 -16
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +41 -10
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +57 -15
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +21 -8
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +11 -9
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +10 -2
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +11 -10
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +2 -3
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +25 -17
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +26 -13
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +57 -51
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +9 -4
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +124 -73
- package/file-upload/file-upload.d.ts +1 -1
- package/file-upload/file-upload.module.d.ts +11 -9
- package/file-upload/file-upload.scss +0 -6
- package/file-upload/multiple-file-upload.component.d.ts +38 -10
- package/file-upload/multiple-file-upload.component.scss +50 -120
- package/file-upload/single-file-upload.component.d.ts +40 -13
- package/file-upload/single-file-upload.component.scss +12 -33
- package/form-field/_form-field-theme.scss +46 -36
- package/form-field/_hint-theme.scss +15 -20
- package/form-field/cleaner.scss +3 -9
- package/form-field/form-field.scss +23 -26
- package/form-field/hint.scss +5 -8
- package/form-field/password-toggle.d.ts +3 -2
- package/form-field/password-toggle.scss +3 -10
- package/form-field/stepper.scss +4 -11
- package/icon/_icon-button-theme.scss +47 -36
- package/icon/_icon-item-theme.scss +47 -26
- package/icon/_icon-theme.scss +12 -14
- package/icon/icon-button.scss +5 -20
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +10 -8
- package/icon/icon.scss +0 -6
- package/input/_input-theme.scss +6 -4
- package/input/input.scss +11 -10
- package/link/_link-theme.scss +30 -49
- package/list/_list-theme.scss +21 -19
- package/list/list.scss +2 -6
- package/loader-overlay/_loader-overlay-theme.scss +17 -18
- package/loader-overlay/loader-overlay.scss +9 -33
- package/markdown/_markdown-theme.scss +47 -47
- package/markdown/markdown.scss +41 -91
- package/modal/README.md +5 -4
- package/modal/_modal-animation.scss +0 -1
- package/modal/_modal-confirm.scss +2 -7
- package/modal/_modal-theme.scss +11 -13
- package/modal/modal.component.d.ts +1 -1
- package/modal/modal.scss +15 -31
- package/navbar/README.md +21 -20
- package/navbar/_navbar-item_horizontal.scss +28 -29
- package/navbar/_navbar-item_vertical.scss +31 -31
- package/navbar/_navbar-theme.scss +20 -24
- package/navbar/navbar-brand.scss +24 -27
- package/navbar/navbar-divider.scss +4 -8
- package/navbar/navbar-item.component.d.ts +4 -4
- package/navbar/navbar-item.scss +13 -15
- package/navbar/navbar.scss +2 -6
- package/navbar/vertical-navbar.scss +4 -6
- package/package.json +23 -16
- package/popover/README.md +18 -14
- package/popover/_popover-theme.scss +9 -17
- package/popover/popover.scss +15 -29
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -11
- package/progress-bar/progress-bar.scss +6 -19
- package/progress-spinner/_progress-spinner-theme.scss +6 -8
- package/progress-spinner/progress-spinner.scss +8 -18
- package/radio/_radio-theme.scss +36 -37
- package/radio/radio.scss +25 -40
- package/risk-level/_risk-level-theme.scss +25 -31
- package/risk-level/risk-level.component.scss +4 -10
- package/schematics/collection.json +11 -0
- package/schematics/ng-add/index.js +70 -0
- package/schematics/ng-add/schema.json +15 -0
- package/scrollbar/_scrollbar-component-theme.scss +15 -19
- package/scrollbar/scrollbar.component.scss +68 -63
- package/scrollbar/scrollbar.directive.d.ts +1 -0
- package/scrollbar/scrollbar.types.d.ts +1 -0
- package/select/_select-theme.scss +14 -16
- package/select/select-option.directive.d.ts +3 -2
- package/select/select.component.d.ts +12 -33
- package/select/select.module.d.ts +1 -1
- package/select/select.scss +3 -11
- package/sidepanel/_sidepanel-theme.scss +8 -10
- package/sidepanel/sidepanel.scss +20 -37
- package/splitter/_splitter-theme.scss +5 -6
- package/splitter/splitter.component.d.ts +10 -5
- package/splitter/splitter.scss +0 -1
- package/table/_table-theme.scss +16 -15
- package/table/table.component.d.ts +8 -1
- package/table/table.module.d.ts +1 -1
- package/table/table.scss +41 -42
- package/tabs/_tabs-common.scss +13 -15
- package/tabs/_tabs-theme.scss +76 -44
- package/tabs/tab-body.component.d.ts +1 -1
- package/tabs/tab-group.component.d.ts +9 -3
- package/tabs/tab-group.scss +2 -8
- package/tabs/tab-header.scss +0 -10
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -9
- package/tags/_tag-theme.scss +22 -27
- package/tags/tag-default-options.d.ts +1 -0
- package/tags/tag-input.d.ts +7 -1
- package/tags/tag-list.scss +15 -12
- package/tags/tag.component.d.ts +1 -1
- package/tags/tag.scss +5 -11
- package/textarea/_textarea-theme.scss +2 -5
- package/textarea/textarea.scss +5 -10
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timepicker/timepicker.scss +2 -8
- package/timezone/_timezone-option-theme.scss +8 -10
- package/timezone/timezone-option.component.scss +5 -8
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/timezone/timezone-select.component.d.ts +2 -1
- package/timezone/timezone-select.component.scss +2 -4
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +20 -16
- package/toast/toast-container.component.scss +5 -6
- package/toast/toast.component.scss +28 -29
- package/toast/toast.service.d.ts +8 -4
- package/toast/toast.type.d.ts +2 -0
- package/toggle/_toggle-theme.scss +49 -42
- package/toggle/toggle.scss +9 -22
- package/tooltip/_tooltip-theme.scss +12 -16
- package/tooltip/tooltip.component.d.ts +12 -8
- package/tooltip/tooltip.scss +7 -13
- package/tree/_tree-theme.scss +20 -23
- package/tree/toggle.scss +3 -6
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.scss +17 -14
- package/tree/tree-selection.component.d.ts +1 -0
- package/tree-select/_tree-select-theme.scss +12 -15
- package/tree-select/tree-select.component.d.ts +8 -17
- package/tree-select/tree-select.module.d.ts +1 -2
- package/tree-select/tree-select.scss +1 -6
- package/core/styles/_variables.scss +0 -1
|
@@ -2,40 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../styles/theming/theming' as *;
|
|
4
4
|
@use '../styles/typography/typography-utils' as *;
|
|
5
|
-
|
|
5
|
+
@use '../styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
@mixin kbq-option-action-theme($theme) {
|
|
8
|
-
$foreground: map.get($theme, foreground);
|
|
9
8
|
$background: map.get($theme, background);
|
|
10
9
|
|
|
11
|
-
$
|
|
12
|
-
|
|
13
|
-
$is-dark: map.get($theme, is-dark);
|
|
10
|
+
$states: map.get($theme, states);
|
|
14
11
|
|
|
15
12
|
.kbq-option-action {
|
|
16
13
|
&.cdk-keyboard-focused {
|
|
17
|
-
border-color:
|
|
14
|
+
border-color: kbq-css-variable(states-focused-color, map.get($theme, states, focused-color));
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
&:active,
|
|
21
18
|
&.kbq-pressed {
|
|
22
19
|
& .kbq-icon {
|
|
23
|
-
color: kbq-
|
|
20
|
+
color: kbq-css-variable(states-icon-contrast-fade, map.get($states, icon, contrast-fade));
|
|
24
21
|
}
|
|
25
22
|
|
|
26
|
-
background-color: kbq-
|
|
23
|
+
background-color: kbq-css-variable(background-transparent, map.get($background, transparent));
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
&:hover .kbq-icon {
|
|
30
|
-
color: kbq-
|
|
27
|
+
color: kbq-css-variable(states-icon-contrast-fade-hover, map.get($states, icon, contrast-fade-hover));
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
&.kbq-disabled {
|
|
34
31
|
& .kbq-icon {
|
|
35
|
-
color: kbq-
|
|
32
|
+
color: kbq-css-variable(states-icon-disabled, map.get($states, icon, disabled));
|
|
36
33
|
}
|
|
37
34
|
|
|
38
|
-
background-color: transparent;
|
|
35
|
+
background-color: kbq-css-variable(background-transparent, map.get($background, transparent));
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
}
|
|
@@ -2,26 +2,23 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../styles/common/tokens' as *;
|
|
5
6
|
|
|
7
|
+
@mixin kbq-option($component, $style-name) {
|
|
8
|
+
$state: map.get($component, $style-name);
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
background: map.get($state, container-background);
|
|
10
|
+
background: kbq-css-variable(list-#{$style-name}-container-background, map.get($state, container-background));
|
|
9
11
|
|
|
10
12
|
.kbq-option-text {
|
|
11
|
-
color: map.get($state, text);
|
|
13
|
+
color: kbq-css-variable(list-#{$style-name}-text, map.get($state, text));
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
// todo выглядит как баг
|
|
15
|
-
//.kbq-icon {
|
|
16
|
-
// color: map.get($state, icon);
|
|
17
|
-
//}
|
|
18
|
-
|
|
19
16
|
.kbq-option-action .kbq-icon {
|
|
20
|
-
color: map.get($state, icon-button);
|
|
17
|
+
color: kbq-css-variable(list-#{$style-name}-icon-button, map.get($state, icon-button));
|
|
21
18
|
}
|
|
22
19
|
|
|
23
20
|
.kbq-option-caption {
|
|
24
|
-
color: map.get($state, caption);
|
|
21
|
+
color: kbq-css-variable(list-#{$style-name}-caption, map.get($state, caption));
|
|
25
22
|
}
|
|
26
23
|
}
|
|
27
24
|
|
|
@@ -29,39 +26,37 @@
|
|
|
29
26
|
$list-item: map.get(map.get($theme, components), list-item);
|
|
30
27
|
|
|
31
28
|
.kbq-option {
|
|
32
|
-
@include kbq-option(
|
|
29
|
+
@include kbq-option($list-item, default);
|
|
33
30
|
|
|
34
31
|
&:hover:not(.kbq-disabled) {
|
|
35
|
-
@include kbq-option(
|
|
32
|
+
@include kbq-option($list-item, states-hover);
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
&.kbq-focused,
|
|
39
36
|
&.kbq-active {
|
|
40
|
-
border-color: map.get(
|
|
37
|
+
border-color: map.get($list-item, states-focused, focus-outline);
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
&.kbq-selected {
|
|
44
|
-
@include kbq-option(
|
|
41
|
+
@include kbq-option($list-item, states-selected);
|
|
45
42
|
|
|
46
43
|
&:hover:not(.kbq-disabled) {
|
|
47
|
-
@include kbq-option(
|
|
44
|
+
@include kbq-option($list-item, states-selected-hover);
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
47
|
|
|
51
48
|
&.kbq-disabled {
|
|
52
|
-
@include kbq-option(
|
|
49
|
+
@include kbq-option($list-item, states-disabled);
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
@mixin kbq-option-typography($config) {
|
|
58
|
-
$tokens: map.get($config, tokens);
|
|
59
|
-
|
|
60
55
|
.kbq-option {
|
|
61
|
-
@include kbq-typography-
|
|
56
|
+
@include kbq-typography-css-variables(list, text);
|
|
62
57
|
}
|
|
63
58
|
|
|
64
59
|
.kbq-list-option-caption {
|
|
65
|
-
@include kbq-typography-
|
|
60
|
+
@include kbq-typography-css-variables(list, caption);
|
|
66
61
|
}
|
|
67
62
|
}
|
package/core/option/option.scss
CHANGED
package/core/pop-up/_pop-up.scss
CHANGED
|
@@ -33,12 +33,13 @@ export declare abstract class KbqPopUpTrigger<T> {
|
|
|
33
33
|
protected overlayRef: OverlayRef | null;
|
|
34
34
|
protected portal: ComponentPortal<T>;
|
|
35
35
|
protected instance: any | null;
|
|
36
|
-
protected listeners: Map<string,
|
|
36
|
+
protected listeners: Map<string, EventListener>;
|
|
37
37
|
protected closingActionsSubscription: Subscription;
|
|
38
38
|
protected readonly availablePositions: {
|
|
39
39
|
[key: string]: ConnectionPositionPair;
|
|
40
40
|
};
|
|
41
41
|
protected readonly destroyed: Subject<void>;
|
|
42
|
+
protected triggerName: string;
|
|
42
43
|
protected constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction?: Directionality | undefined);
|
|
43
44
|
abstract updateClassMap(newPlacement?: string): void;
|
|
44
45
|
abstract updateData(): void;
|
|
@@ -63,6 +64,7 @@ export declare abstract class KbqPopUpTrigger<T> {
|
|
|
63
64
|
protected getPriorityPlacementStrategy(value: string | string[]): ConnectionPositionPair[];
|
|
64
65
|
protected getPrioritizedPositions(): ConnectionPositionPair[];
|
|
65
66
|
protected clearListeners(): void;
|
|
67
|
+
private createListener;
|
|
66
68
|
private addEventListener;
|
|
67
69
|
private removeEventListener;
|
|
68
70
|
private subscribeOnClosingActions;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AfterContentInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import { KbqFormFieldRef } from '../form-field';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KbqSelectTrigger {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectTrigger, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectTrigger, "kbq-select-trigger, [kbq-select-trigger]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
export declare class KbqSelectMatcher {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectMatcher, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectMatcher, "kbq-select-matcher, [kbq-select-matcher]", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
export declare class KbqSelectFooter {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectFooter, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectFooter, "kbq-select-footer, [kbq-select-footer]", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class KbqSelectSearch implements AfterContentInit, OnDestroy {
|
|
18
|
+
protected formField: KbqFormFieldRef;
|
|
19
|
+
searchChangesSubscription: Subscription;
|
|
20
|
+
isSearchChanged: boolean;
|
|
21
|
+
get ngControl(): any;
|
|
22
|
+
constructor(formField: KbqFormFieldRef);
|
|
23
|
+
focus(): void;
|
|
24
|
+
reset(): void;
|
|
25
|
+
value(): any;
|
|
26
|
+
ngAfterContentInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectSearch, [{ optional: true; }]>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectSearch, "[kbqSelectSearch]", ["kbqSelectSearch"], {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
export declare class KbqSelectSearchEmptyResult {
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSelectSearchEmptyResult, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqSelectSearchEmptyResult, "[kbq-select-search-empty-result]", ["kbqSelectSearchEmptyResult"], {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
package/core/select/index.d.ts
CHANGED
|
@@ -1,48 +1,44 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
|
+
@use '../../styles/common/tokens' as *;
|
|
3
4
|
|
|
4
|
-
@mixin kbq-pseudo-checkbox-color($
|
|
5
|
-
$
|
|
5
|
+
@mixin kbq-pseudo-checkbox-color($component, $style-name) {
|
|
6
|
+
$style: map.get($component, $style-name);
|
|
7
|
+
$base: checkbox-#{$style-name};
|
|
6
8
|
|
|
7
|
-
border-color: map.get($default, border);
|
|
9
|
+
border-color: kbq-css-variable(#{$base}-default-border, map.get($style, default, border));
|
|
10
|
+
background: kbq-css-variable(#{$base}-default-background, map.get($style, default, background));
|
|
8
11
|
|
|
9
12
|
& .kbq-checkbox-checkmark,
|
|
10
13
|
& .kbq-checkbox-mixedmark {
|
|
11
|
-
color: map.get($default, color);
|
|
14
|
+
color: kbq-css-variable(#{$base}-default-color, map.get($style, default, color));
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
&.kbq-checked,
|
|
15
18
|
&.kbq-indeterminate {
|
|
16
|
-
$checked
|
|
17
|
-
|
|
18
|
-
border-color: map.get($checked, border);
|
|
19
|
-
background: map.get($checked, background);
|
|
19
|
+
border-color: kbq-css-variable(#{$base}-checked-border, map.get($style, checked, border));
|
|
20
|
+
background: kbq-css-variable(#{$base}-checked-background, map.get($style, checked, background));
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
&.kbq-disabled {
|
|
23
|
-
$disabled: map.get($checkbox, disabled);
|
|
24
|
-
|
|
25
24
|
& .kbq-checkbox-checkmark,
|
|
26
25
|
& .kbq-checkbox-mixedmark {
|
|
27
|
-
color: map.get($disabled, color);
|
|
26
|
+
color: kbq-css-variable(#{$base}-disabled-color, map.get($style, disabled, color));
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
border-color: map.get($disabled, border);
|
|
31
|
-
background: map.get($disabled, background);
|
|
29
|
+
border-color: kbq-css-variable(#{$base}-disabled-border, map.get($style, disabled, border));
|
|
30
|
+
background: kbq-css-variable(#{$base}-disabled-background, map.get($style, disabled, background));
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
@mixin kbq-pseudo-checkbox-theme($theme) {
|
|
36
|
-
$
|
|
37
|
-
$background: map.get($theme, background);
|
|
38
|
-
|
|
39
|
-
$checkbox: map.get(map.get($theme, components), checkbox);
|
|
35
|
+
$checkbox: map.get($theme, components, checkbox);
|
|
40
36
|
|
|
41
37
|
.kbq-pseudo-checkbox {
|
|
42
|
-
@include kbq-pseudo-checkbox-color(
|
|
38
|
+
@include kbq-pseudo-checkbox-color($checkbox, theme);
|
|
43
39
|
|
|
44
40
|
&.kbq-error {
|
|
45
|
-
@include kbq-pseudo-checkbox-color(
|
|
41
|
+
@include kbq-pseudo-checkbox-color($checkbox, error);
|
|
46
42
|
}
|
|
47
43
|
}
|
|
48
44
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../../styles/tokens';
|
|
5
|
-
|
|
5
|
+
@use '../../styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
$tokens: meta.module-variables(tokens) !default;
|
|
8
8
|
|
|
@@ -14,12 +14,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: center;
|
|
16
16
|
|
|
17
|
-
width:
|
|
18
|
-
height:
|
|
17
|
+
width: kbq-css-variable(checkbox-size-normal-width);
|
|
18
|
+
height: kbq-css-variable(checkbox-size-normal-width);
|
|
19
19
|
|
|
20
20
|
border: {
|
|
21
|
-
radius:
|
|
22
|
-
width:
|
|
21
|
+
radius: kbq-css-variable(checkbox-size-normal-border-radius);
|
|
22
|
+
width: kbq-css-variable(checkbox-size-normal-border-width);
|
|
23
23
|
style: solid;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -56,11 +56,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.kbq-pseudo-checkbox.kbq-pseudo-checkbox_big {
|
|
59
|
-
width:
|
|
60
|
-
height:
|
|
59
|
+
width: kbq-css-variable(checkbox-size-big-width);
|
|
60
|
+
height: kbq-css-variable(checkbox-size-big-width);
|
|
61
61
|
|
|
62
62
|
border: {
|
|
63
|
-
radius:
|
|
64
|
-
width:
|
|
63
|
+
radius: kbq-css-variable(checkbox-size-big-border-radius);
|
|
64
|
+
width: kbq-css-variable(checkbox-size-big-border-width);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Renderer2, RendererFactory2 } from '@angular/core';
|
|
1
|
+
import { OnDestroy, Renderer2, RendererFactory2 } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface KbqTheme {
|
|
@@ -7,13 +7,14 @@ export interface KbqTheme {
|
|
|
7
7
|
selected: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const KbqDefaultThemes: KbqTheme[];
|
|
10
|
-
export declare class ThemeService<T extends KbqTheme | null = KbqTheme> {
|
|
10
|
+
export declare class ThemeService<T extends KbqTheme | null = KbqTheme> implements OnDestroy {
|
|
11
11
|
private rendererFactory;
|
|
12
12
|
current: BehaviorSubject<T>;
|
|
13
13
|
themes: T[];
|
|
14
14
|
protected renderer: Renderer2;
|
|
15
15
|
protected subscription: Subscription;
|
|
16
16
|
constructor(rendererFactory: RendererFactory2);
|
|
17
|
+
ngOnDestroy(): void;
|
|
17
18
|
setThemes(items: T[]): void;
|
|
18
19
|
setTheme(value: T | number): void;
|
|
19
20
|
getTheme(): T;
|
package/core/styles/_core.scss
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
@use '../../datepicker/datepicker-theme' as *;
|
|
18
18
|
@use '../../divider/divider-theme' as *;
|
|
19
19
|
@use '../../dropdown/dropdown-theme' as *;
|
|
20
|
+
@use '../../empty-state/empty-state-theme' as *;
|
|
20
21
|
@use '../../file-upload/file-upload-theme' as *;
|
|
21
22
|
@use '../../form-field/form-field-theme' as *;
|
|
22
23
|
@use '../../form-field/hint-theme' as *;
|
|
@@ -56,7 +57,6 @@
|
|
|
56
57
|
@use '../highlight/highlight-theme' as *;
|
|
57
58
|
@use '../../dl/dl-theme' as *;
|
|
58
59
|
|
|
59
|
-
|
|
60
60
|
@mixin koobiq-theme($theme) {
|
|
61
61
|
@include kbq-core-theme($theme);
|
|
62
62
|
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
@include kbq-dl-theme($theme);
|
|
73
73
|
@include kbq-divider-theme($theme);
|
|
74
74
|
@include kbq-dropdown-theme($theme);
|
|
75
|
+
@include kbq-empty-state-theme($theme);
|
|
75
76
|
@include kbq-form-field-theme($theme);
|
|
76
77
|
@include kbq-file-upload-theme($theme);
|
|
77
78
|
@include kbq-hint-theme($theme);
|
|
@@ -112,11 +113,11 @@
|
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
@mixin koobiq-typography($tokens, $config: null, $md-config: null) {
|
|
115
|
-
@if $config
|
|
116
|
+
@if not $config {
|
|
116
117
|
$config: kbq-typography-config($tokens);
|
|
117
118
|
}
|
|
118
119
|
|
|
119
|
-
@if $md-config
|
|
120
|
+
@if not $md-config {
|
|
120
121
|
$md-config: kbq-markdown-typography-config($tokens);
|
|
121
122
|
}
|
|
122
123
|
|
|
@@ -131,6 +132,7 @@
|
|
|
131
132
|
@include kbq-code-block-typography($config);
|
|
132
133
|
@include kbq-datepicker-typography($config);
|
|
133
134
|
@include kbq-dropdown-typography($config);
|
|
135
|
+
@include kbq-empty-state-typography($config);
|
|
134
136
|
@include kbq-dl-typography($config);
|
|
135
137
|
@include kbq-form-field-typography($config);
|
|
136
138
|
@include kbq-hint-typography($config);
|
|
@@ -25,14 +25,15 @@
|
|
|
25
25
|
$darker: rgba(0, 0, 0, 0.04);
|
|
26
26
|
|
|
27
27
|
background: linear-gradient(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
135deg,
|
|
29
|
+
$darker 10px,
|
|
30
|
+
$lighter 10px,
|
|
31
|
+
$lighter 20px,
|
|
32
|
+
$darker 20px,
|
|
33
|
+
$darker 30px,
|
|
34
|
+
$lighter 31px
|
|
35
|
+
)
|
|
36
|
+
repeat;
|
|
36
37
|
background-size: 32px 32px;
|
|
37
38
|
animation: kbq-progress 1s linear infinite;
|
|
38
39
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../tokens';
|
|
5
|
-
|
|
5
|
+
@use '../common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
$tokens: meta.module-variables(tokens) !default;
|
|
8
8
|
|
|
@@ -77,12 +77,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
77
77
|
display: flex;
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
|
|
80
|
-
/* stylelint-disable no-descending-specificity */
|
|
81
80
|
> .kbq-group-item {
|
|
82
81
|
&:first-child:not(:last-child) {
|
|
83
82
|
@include border-bottom-radius(0);
|
|
84
83
|
|
|
85
|
-
border-top-right-radius:
|
|
84
|
+
border-top-right-radius: kbq-css-variable(button-size-border-radius);
|
|
86
85
|
|
|
87
86
|
> .kbq-form-field__container {
|
|
88
87
|
@include border-bottom-radius(0);
|
|
@@ -92,10 +91,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
92
91
|
&:last-child:not(:first-child) {
|
|
93
92
|
@include border-top-radius(0);
|
|
94
93
|
|
|
95
|
-
border-bottom-left-radius:
|
|
96
|
-
--kbq-button-size-border-radius,
|
|
97
|
-
map.get($tokens, button-size-border-radius)
|
|
98
|
-
);
|
|
94
|
+
border-bottom-left-radius: kbq-css-variable(button-size-border-radius);
|
|
99
95
|
|
|
100
96
|
> .kbq-form-field__container {
|
|
101
97
|
@include border-top-radius(0);
|
|
@@ -114,6 +110,4 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
114
110
|
.kbq-group-item + .kbq-group-item {
|
|
115
111
|
margin-top: calc(-1 * var(--kbq-button-size-border-width, #{map.get($tokens, button-size-border-width)}));
|
|
116
112
|
}
|
|
117
|
-
/* stylelint-enable no-descending-specificity */
|
|
118
113
|
}
|
|
119
|
-
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../tokens';
|
|
5
|
-
|
|
5
|
+
@use './tokens' as *;
|
|
6
6
|
|
|
7
7
|
// This mixin will ensure that lines that overflow the container will hide the overflow and
|
|
8
8
|
// truncate neatly with an ellipsis.
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
@include kbq-truncate-line();
|
|
57
57
|
|
|
58
|
-
padding-top:
|
|
59
|
-
padding-bottom:
|
|
58
|
+
padding-top: kbq-css-variable(list-size-text-padding-vertical);
|
|
59
|
+
padding-bottom: kbq-css-variable(list-size-text-padding-vertical);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// This mixin provides all list-item styles, changing font size and height based on whether the list is in dense mode.
|
|
@@ -82,30 +82,35 @@
|
|
|
82
82
|
|
|
83
83
|
min-height: 32px;
|
|
84
84
|
|
|
85
|
-
gap:
|
|
86
|
-
--kbq-list-size-container-content-gap-horizontal, map.get($tokens, list-size-container-content-gap-horizontal)
|
|
87
|
-
);
|
|
85
|
+
gap: kbq-css-variable(list-size-container-content-gap-horizontal);
|
|
88
86
|
|
|
89
|
-
border-width:
|
|
87
|
+
border-width: kbq-css-variable(list-size-container-focus-outline-width);
|
|
90
88
|
border-style: solid;
|
|
91
89
|
border-color: transparent;
|
|
92
90
|
|
|
93
|
-
padding:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
padding: calc(
|
|
92
|
+
var(--kbq-list-size-container-padding-vertical, $padding-vertical) - var(
|
|
93
|
+
--kbq-list-size-container-focus-outline-width,
|
|
94
|
+
$outline-width
|
|
95
|
+
)
|
|
97
96
|
)
|
|
98
97
|
calc(
|
|
99
|
-
var(--kbq-list-size-container-padding-right, $padding-right) -
|
|
100
|
-
|
|
98
|
+
var(--kbq-list-size-container-padding-right, $padding-right) - var(
|
|
99
|
+
--kbq-list-size-container-focus-outline-width,
|
|
100
|
+
$outline-width
|
|
101
|
+
)
|
|
101
102
|
)
|
|
102
103
|
calc(
|
|
103
|
-
var(--kbq-list-size-container-padding-vertical, $padding-vertical) -
|
|
104
|
-
|
|
104
|
+
var(--kbq-list-size-container-padding-vertical, $padding-vertical) - var(
|
|
105
|
+
--kbq-list-size-container-focus-outline-width,
|
|
106
|
+
$outline-width
|
|
107
|
+
)
|
|
105
108
|
)
|
|
106
109
|
calc(
|
|
107
|
-
var(--kbq-list-size-container-padding-left, $padding-left) -
|
|
108
|
-
|
|
110
|
+
var(--kbq-list-size-container-padding-left, $padding-left) - var(
|
|
111
|
+
--kbq-list-size-container-focus-outline-width,
|
|
112
|
+
$outline-width
|
|
113
|
+
)
|
|
109
114
|
);
|
|
110
115
|
|
|
111
116
|
.kbq-list-text {
|
|
@@ -113,10 +118,7 @@
|
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
.kbq-list-option-caption {
|
|
116
|
-
padding-top:
|
|
117
|
-
--kbq-list-size-container-content-gap-vertical,
|
|
118
|
-
map.get($tokens, list-size-container-content-gap-vertical)
|
|
119
|
-
);
|
|
121
|
+
padding-top: kbq-css-variable(list-size-container-content-gap-vertical);
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
|
|
@@ -131,11 +133,8 @@
|
|
|
131
133
|
|
|
132
134
|
min-height: 32px;
|
|
133
135
|
|
|
134
|
-
padding:
|
|
135
|
-
|
|
136
|
-
var(--kbq-list-size-header-padding-horizontal, map.get($tokens, list-size-header-padding-horizontal))
|
|
137
|
-
var(--kbq-list-size-header-padding-bottom, map.get($tokens, list-size-header-padding-bottom))
|
|
138
|
-
var(--kbq-list-size-header-padding-horizontal, map.get($tokens, list-size-header-padding-horizontal));
|
|
136
|
+
padding: kbq-css-variable(list-size-header-padding-top) kbq-css-variable(list-size-header-padding-horizontal)
|
|
137
|
+
kbq-css-variable(list-size-header-padding-bottom) kbq-css-variable(list-size-header-padding-horizontal);
|
|
139
138
|
|
|
140
139
|
.kbq-list-text {
|
|
141
140
|
@include kbq-list-text();
|
|
@@ -153,11 +152,9 @@
|
|
|
153
152
|
|
|
154
153
|
min-height: 32px;
|
|
155
154
|
|
|
156
|
-
padding:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
var(--kbq-list-size-subheading-padding-bottom, map.get($tokens, list-size-subheading-padding-bottom))
|
|
160
|
-
var(--kbq-list-size-subheading-padding-horizontal, map.get($tokens, list-size-subheading-padding-horizontal));
|
|
155
|
+
padding: kbq-css-variable(list-size-subheading-padding-top)
|
|
156
|
+
kbq-css-variable(list-size-subheading-padding-horizontal) kbq-css-variable(list-size-subheading-padding-bottom)
|
|
157
|
+
kbq-css-variable(list-size-subheading-padding-horizontal);
|
|
161
158
|
|
|
162
159
|
.kbq-list-text {
|
|
163
160
|
@include kbq-list-text();
|
|
@@ -6,7 +6,7 @@ $overlay-z-index: 1000 !default;
|
|
|
6
6
|
$overlay-backdrop-z-index: 1000 !default;
|
|
7
7
|
|
|
8
8
|
// Background color for all of the backdrops
|
|
9
|
-
$overlay-backdrop-color: rgba(0, 0, 0, 0.
|
|
9
|
+
$overlay-backdrop-color: rgba(0, 0, 0, 0.5) !default;
|
|
10
10
|
|
|
11
11
|
// Default backdrop animation is based on the Material Design swift-ease-out.
|
|
12
12
|
$backdrop-animation-duration: 400ms !default;
|
|
@@ -116,7 +116,9 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
|
116
116
|
|
|
117
117
|
.cdk-overlay-transparent-backdrop {
|
|
118
118
|
// Define a transition on the visibility so that the `transitionend` event can fire immediately.
|
|
119
|
-
transition:
|
|
119
|
+
transition:
|
|
120
|
+
visibility 1ms linear,
|
|
121
|
+
opacity 1ms linear;
|
|
120
122
|
visibility: hidden;
|
|
121
123
|
opacity: 1;
|
|
122
124
|
|
|
@@ -174,4 +176,3 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
|
174
176
|
overflow-y: scroll;
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
|
-
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
2
|
+
@use './tokens' as *;
|
|
3
3
|
|
|
4
4
|
@mixin popup-params($theme) {
|
|
5
|
-
$popup: map.get(
|
|
5
|
+
$popup: map.get($theme, components, popup);
|
|
6
6
|
|
|
7
|
-
box-shadow: map.get($popup, shadow);
|
|
8
|
-
border-color: map.get($popup, border);
|
|
7
|
+
box-shadow: kbq-css-variable(popup-shadow, map.get($popup, shadow));
|
|
8
|
+
border-color: kbq-css-variable(popup-border, map.get($popup, border));
|
|
9
9
|
|
|
10
|
-
background-color: map.get($popup, background);
|
|
10
|
+
background-color: kbq-css-variable(popup-background, map.get($popup, background));
|
|
11
11
|
}
|