@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
package/form-field/cleaner.scss
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
5
|
|
|
9
6
|
.kbq-cleaner {
|
|
10
7
|
display: flex;
|
|
11
8
|
align-items: center;
|
|
12
9
|
justify-content: center;
|
|
13
10
|
|
|
14
|
-
width:
|
|
15
|
-
margin-right:
|
|
16
|
-
--kbq-form-field-size-icon-button-margin-right,
|
|
17
|
-
map.get($tokens, form-field-size-icon-button-margin-right)
|
|
18
|
-
);
|
|
11
|
+
width: kbq-css-variable(form-field-size-icon-button-size);
|
|
12
|
+
margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
|
|
19
13
|
height: 100%;
|
|
20
14
|
|
|
21
15
|
cursor: pointer;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
/* stylelint-disable scss/operator-no-newline-after */
|
|
2
|
+
|
|
1
3
|
@use 'sass:meta';
|
|
2
4
|
@use 'sass:map';
|
|
3
5
|
|
|
4
6
|
@use '../core/forms/forms';
|
|
5
7
|
|
|
6
8
|
@use '../core/styles/tokens';
|
|
7
|
-
|
|
9
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
10
|
|
|
9
11
|
$tokens: meta.module-variables(tokens) !default;
|
|
10
12
|
|
|
11
|
-
/* stylelint-disable no-descending-specificity */
|
|
12
|
-
|
|
13
13
|
.kbq-form-field {
|
|
14
14
|
position: relative;
|
|
15
15
|
display: inline-block;
|
|
@@ -20,13 +20,13 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.kbq-form-field:not(.kbq-form-field-type-textarea) {
|
|
23
|
-
height:
|
|
23
|
+
height: kbq-css-variable(form-field-size-height);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&,
|
|
27
27
|
.kbq-input,
|
|
28
28
|
.kbq-textarea {
|
|
29
|
-
border-radius:
|
|
29
|
+
border-radius: kbq-css-variable(form-field-size-border-radius);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&:hover {
|
|
@@ -46,8 +46,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
46
46
|
.kbq-input {
|
|
47
47
|
padding-left: calc(
|
|
48
48
|
var(--kbq-form-field-size-icon-size, map.get($tokens, form-field-size-icon-size)) +
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
var(--kbq-form-field-size-icon-margin-left, map.get($tokens, form-field-size-icon-margin-left)) +
|
|
50
|
+
var(--kbq-form-field-size-icon-margin-right, map.get($tokens, form-field-size-icon-margin-right))
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -59,30 +59,30 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
59
59
|
.kbq-input {
|
|
60
60
|
padding-right: calc(
|
|
61
61
|
var(--kbq-form-field-size-icon-button-size, map.get($tokens, form-field-size-icon-button-size)) +
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
var(
|
|
63
|
+
--kbq-form-field-size-icon-button-margin-left,
|
|
64
|
+
map.get($tokens, form-field-size-icon-button-margin-left)
|
|
65
|
+
) +
|
|
66
|
+
var(
|
|
67
|
+
--kbq-form-field-size-icon-button-margin-right,
|
|
68
|
+
map.get($tokens, form-field-size-icon-button-margin-right)
|
|
69
|
+
)
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
& + .kbq-password-hint {
|
|
75
|
-
margin-top:
|
|
75
|
+
margin-top: kbq-css-variable(size-m);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.kbq-form-field__container {
|
|
80
80
|
position: relative;
|
|
81
81
|
|
|
82
|
-
border-width:
|
|
82
|
+
border-width: kbq-css-variable(form-field-size-border-width);
|
|
83
83
|
border-style: solid;
|
|
84
84
|
border-color: transparent;
|
|
85
|
-
border-radius:
|
|
85
|
+
border-radius: kbq-css-variable(form-field-size-border-radius);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.kbq-form-field__prefix,
|
|
@@ -122,12 +122,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
122
122
|
justify-content: center;
|
|
123
123
|
align-items: center;
|
|
124
124
|
|
|
125
|
-
width:
|
|
125
|
+
width: kbq-css-variable(form-field-size-button-width);
|
|
126
126
|
|
|
127
127
|
.kbq-stepper-step-up,
|
|
128
128
|
.kbq-stepper-step-down {
|
|
129
129
|
cursor: pointer;
|
|
130
|
-
width:
|
|
130
|
+
width: kbq-css-variable(form-field-size-button-width);
|
|
131
131
|
text-align: center;
|
|
132
132
|
}
|
|
133
133
|
|
|
@@ -139,16 +139,13 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
139
139
|
.kbq-form-field__hint {
|
|
140
140
|
display: flex;
|
|
141
141
|
flex-direction: column;
|
|
142
|
-
margin-top:
|
|
142
|
+
margin-top: kbq-css-variable(form-field-hint-size-margin-top);
|
|
143
143
|
|
|
144
144
|
& .kbq-password-hint:first-child {
|
|
145
|
-
margin-top:
|
|
145
|
+
margin-top: kbq-css-variable(size-s);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.kbq-password-hint {
|
|
150
|
-
margin-top:
|
|
150
|
+
margin-top: kbq-css-variable(form-field-hint-size-gap);
|
|
151
151
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/* stylelint-enable no-descending-specificity */
|
package/form-field/hint.scss
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
5
|
|
|
9
6
|
.kbq-hint {
|
|
10
7
|
display: flex;
|
|
11
8
|
|
|
12
9
|
& .kbq-icon {
|
|
13
|
-
margin-
|
|
10
|
+
margin-top: kbq-css-variable(hint-size-normal-margin-top);
|
|
11
|
+
margin-right: kbq-css-variable(hint-size-normal-content-padding);
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
&.kbq-hint_compact {
|
|
17
15
|
& .kbq-icon {
|
|
18
|
-
margin-
|
|
19
|
-
|
|
20
|
-
);
|
|
16
|
+
margin-top: kbq-css-variable(hint-size-compact-margin-top);
|
|
17
|
+
margin-right: kbq-css-variable(hint-size-compact-content-padding);
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
20
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
1
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
3
|
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
3
4
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
@@ -15,10 +16,10 @@ export declare class KbqPasswordToggle extends KbqTooltipTrigger implements Afte
|
|
|
15
16
|
get hidden(): boolean;
|
|
16
17
|
get iconClass(): string;
|
|
17
18
|
get visibility(): string;
|
|
18
|
-
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, formField: KbqFormFieldRef, changeDetector: ChangeDetectorRef);
|
|
19
|
+
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, focusMonitor: FocusMonitor, direction: Directionality, formField: KbqFormFieldRef, changeDetector: ChangeDetectorRef);
|
|
19
20
|
ngAfterViewInit(): void;
|
|
20
21
|
toggle(event: KeyboardEvent): void;
|
|
21
22
|
private updateState;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordToggle, [null, null, null, null, null, null, { optional: true; }, null, null]>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordToggle, [null, null, null, null, null, null, null, { optional: true; }, null, null]>;
|
|
23
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordToggle, "kbq-password-toggle", ["kbqPasswordToggle"], { "content": { "alias": "kbqTooltipNotHidden"; "required": false; }; "kbqTooltipHidden": { "alias": "kbqTooltipHidden"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
25
|
}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
9
5
|
|
|
10
6
|
.kbq-password-toggle {
|
|
11
7
|
display: flex;
|
|
12
8
|
align-items: center;
|
|
13
9
|
justify-content: center;
|
|
14
10
|
|
|
15
|
-
width:
|
|
16
|
-
margin-right:
|
|
17
|
-
--kbq-form-field-size-icon-button-margin-right,
|
|
18
|
-
map.get($tokens, form-field-size-icon-button-margin-right)
|
|
19
|
-
);
|
|
11
|
+
width: kbq-css-variable(form-field-size-icon-button-size);
|
|
12
|
+
margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
|
|
20
13
|
height: 100%;
|
|
21
14
|
|
|
22
15
|
&::-moz-focus-inner {
|
package/form-field/stepper.scss
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
9
5
|
|
|
10
6
|
.kbq-stepper {
|
|
11
7
|
display: flex;
|
|
@@ -13,17 +9,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
13
9
|
justify-content: center;
|
|
14
10
|
align-items: center;
|
|
15
11
|
|
|
16
|
-
width:
|
|
17
|
-
margin-right:
|
|
18
|
-
--kbq-form-field-size-icon-button-margin-right,
|
|
19
|
-
map.get($tokens, form-field-size-icon-button-margin-right)
|
|
20
|
-
);
|
|
12
|
+
width: kbq-css-variable(form-field-size-icon-button-size);
|
|
13
|
+
margin-right: kbq-css-variable(form-field-size-icon-button-margin-right);
|
|
21
14
|
height: 100%;
|
|
22
15
|
|
|
23
16
|
.kbq-stepper-step-up,
|
|
24
17
|
.kbq-stepper-step-down {
|
|
25
18
|
cursor: pointer;
|
|
26
|
-
width:
|
|
19
|
+
width: kbq-css-variable(form-field-size-button-width);
|
|
27
20
|
text-align: center;
|
|
28
21
|
}
|
|
29
22
|
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$icon-button: map.get(map.get($themeObj, components), icon-button);
|
|
8
|
-
|
|
9
|
-
$theme: map.get($icon-button, theme);
|
|
10
|
-
$contrast: map.get($icon-button, contrast);
|
|
11
|
-
$fade-contrast: map.get($icon-button, fade-contrast);
|
|
12
|
-
$error: map.get($icon-button, error);
|
|
13
|
-
$success: map.get($icon-button, success);
|
|
14
|
-
$warning: map.get($icon-button, warning);
|
|
6
|
+
@mixin kbq-icon-button-theme($theme) {
|
|
7
|
+
$icon-button: map.get($theme, components, icon-button);
|
|
15
8
|
|
|
16
9
|
.kbq-icon-button {
|
|
17
10
|
&:focus {
|
|
@@ -19,111 +12,129 @@
|
|
|
19
12
|
}
|
|
20
13
|
|
|
21
14
|
&.kbq-theme {
|
|
22
|
-
color: map.get($theme, default);
|
|
15
|
+
color: kbq-css-variable(icon-button-heme-default, map.get($icon-button, theme, default));
|
|
23
16
|
|
|
24
17
|
&:active,
|
|
25
18
|
&.kbq-active {
|
|
26
|
-
color: map.get($theme, state-active);
|
|
19
|
+
color: kbq-css-variable(icon-button-heme-state-active, map.get($icon-button, theme, state-active));
|
|
27
20
|
}
|
|
28
21
|
|
|
29
22
|
&:not(.kbq-disabled):hover {
|
|
30
|
-
color: map.get($theme, state-hover);
|
|
23
|
+
color: kbq-css-variable(icon-button-heme-state-hover, map.get($icon-button, theme, state-hover));
|
|
31
24
|
}
|
|
32
25
|
|
|
33
26
|
&.kbq-disabled {
|
|
34
|
-
color: map.get($theme, state-disabled);
|
|
27
|
+
color: kbq-css-variable(icon-button-heme-state-disabled, map.get($icon-button, theme, state-disabled));
|
|
35
28
|
}
|
|
36
29
|
}
|
|
37
30
|
|
|
38
31
|
&.kbq-contrast {
|
|
39
|
-
color: map.get($contrast, default);
|
|
32
|
+
color: kbq-css-variable(icon-button-ontrast-default, map.get($icon-button, contrast, default));
|
|
40
33
|
|
|
41
34
|
&:active,
|
|
42
35
|
&.kbq-active {
|
|
43
|
-
color:
|
|
36
|
+
color: kbq-css-variable(
|
|
37
|
+
icon-button-ontrast-state-active,
|
|
38
|
+
map.get($icon-button, contrast, state-active)
|
|
39
|
+
);
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
&:not(.kbq-disabled):hover {
|
|
47
|
-
color: map.get($contrast, state-hover);
|
|
43
|
+
color: kbq-css-variable(icon-button-ontrast-state-hover, map.get($icon-button, contrast, state-hover));
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
&.kbq-disabled {
|
|
51
|
-
color:
|
|
47
|
+
color: kbq-css-variable(
|
|
48
|
+
icon-button-ontrast-state-disabled,
|
|
49
|
+
map.get($icon-button, contrast, state-disabled)
|
|
50
|
+
);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
&.kbq-contrast-fade {
|
|
56
|
-
color: map.get($fade-contrast, default);
|
|
55
|
+
color: kbq-css-variable(icon-button-ade-contrast-default, map.get($icon-button, fade-contrast, default));
|
|
57
56
|
|
|
58
57
|
&:active,
|
|
59
58
|
&.kbq-active {
|
|
60
|
-
color:
|
|
59
|
+
color: kbq-css-variable(
|
|
60
|
+
icon-button-ade-contrast-state-active,
|
|
61
|
+
map.get($icon-button, fade-contrast, state-active)
|
|
62
|
+
);
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
&:not(.kbq-disabled):hover {
|
|
64
|
-
color:
|
|
66
|
+
color: kbq-css-variable(
|
|
67
|
+
icon-button-ade-contrast-state-hover,
|
|
68
|
+
map.get($icon-button, fade-contrast, state-hover)
|
|
69
|
+
);
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
&.kbq-disabled {
|
|
68
|
-
color:
|
|
73
|
+
color: kbq-css-variable(
|
|
74
|
+
icon-button-ade-contrast-state-disabled,
|
|
75
|
+
map.get($icon-button, fade-contrast, state-disabled)
|
|
76
|
+
);
|
|
69
77
|
}
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
&.kbq-error {
|
|
73
|
-
color: map.get($error, default);
|
|
81
|
+
color: kbq-css-variable(icon-button-rror-default, map.get($icon-button, error, default));
|
|
74
82
|
|
|
75
83
|
&:active,
|
|
76
84
|
&.kbq-active {
|
|
77
|
-
color: map.get($error, state-active);
|
|
85
|
+
color: kbq-css-variable(icon-button-rror-state-active, map.get($icon-button, error, state-active));
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
&:not(.kbq-disabled):hover {
|
|
81
|
-
color: map.get($error, state-hover);
|
|
89
|
+
color: kbq-css-variable(icon-button-rror-state-hover, map.get($icon-button, error, state-hover));
|
|
82
90
|
}
|
|
83
91
|
|
|
84
92
|
&.kbq-disabled {
|
|
85
|
-
color: map.get($error, state-disabled);
|
|
93
|
+
color: kbq-css-variable(icon-button-rror-state-disabled, map.get($icon-button, error, state-disabled));
|
|
86
94
|
}
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
&.kbq-success {
|
|
90
|
-
color: map.get($success, default);
|
|
98
|
+
color: kbq-css-variable(icon-button-uccess-default, map.get($icon-button, success, default));
|
|
91
99
|
|
|
92
100
|
&:active,
|
|
93
101
|
&.kbq-active {
|
|
94
|
-
color: map.get($success, state-active);
|
|
102
|
+
color: kbq-css-variable(icon-button-uccess-state-active, map.get($icon-button, success, state-active));
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
&:not(.kbq-disabled):hover {
|
|
98
|
-
color: map.get($success, state-hover);
|
|
106
|
+
color: kbq-css-variable(icon-button-uccess-state-hover, map.get($icon-button, success, state-hover));
|
|
99
107
|
}
|
|
100
108
|
|
|
101
109
|
&.kbq-disabled {
|
|
102
|
-
color:
|
|
110
|
+
color: kbq-css-variable(
|
|
111
|
+
icon-button-uccess-state-disabled,
|
|
112
|
+
map.get($icon-button, success, state-disabled)
|
|
113
|
+
);
|
|
103
114
|
}
|
|
104
115
|
}
|
|
105
116
|
|
|
106
117
|
&.kbq-warning {
|
|
107
|
-
color: map.get($
|
|
118
|
+
color: kbq-css-variable(icon-button-default, map.get($icon-button, default));
|
|
108
119
|
|
|
109
120
|
&:active,
|
|
110
121
|
&.kbq-active {
|
|
111
|
-
color: map.get($
|
|
122
|
+
color: kbq-css-variable(icon-button-state-active, map.get($icon-button, state-active));
|
|
112
123
|
}
|
|
113
124
|
|
|
114
125
|
&:not(.kbq-disabled):hover {
|
|
115
|
-
color: map.get($
|
|
126
|
+
color: kbq-css-variable(icon-button-state-hover, map.get($icon-button, state-hover));
|
|
116
127
|
}
|
|
117
128
|
|
|
118
129
|
&.kbq-disabled {
|
|
119
|
-
color: map.get($
|
|
130
|
+
color: kbq-css-variable(icon-button-state-disabled, map.get($icon-button, state-disabled));
|
|
120
131
|
}
|
|
121
132
|
}
|
|
122
133
|
|
|
123
134
|
&.cdk-keyboard-focused {
|
|
124
135
|
box-shadow:
|
|
125
|
-
inset 0 0 0 1px map.get(
|
|
126
|
-
0 0 0 1px map.get(
|
|
136
|
+
inset 0 0 0.1px 1px map.get($theme, states, focused-color),
|
|
137
|
+
0 0 0.1px 1px map.get($theme, states, focused-color);
|
|
127
138
|
}
|
|
128
139
|
}
|
|
129
140
|
}
|
|
@@ -1,41 +1,62 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
4
5
|
|
|
6
|
+
@mixin kbq-icon-item-style($component, $type, $style-name) {
|
|
7
|
+
$style: map.get($component, $type, $style-name);
|
|
8
|
+
$base: icon-item-filled-#{$type}-#{$type}-#{$style-name};
|
|
5
9
|
|
|
6
|
-
|
|
7
|
-
$
|
|
10
|
+
color: kbq-css-variable(#{$base}-color, map.get($component, $type, $style-name, color));
|
|
11
|
+
background: kbq-css-variable(#{$base}-background, map.get($component, $type, $style-name, background));
|
|
12
|
+
}
|
|
8
13
|
|
|
9
|
-
|
|
10
|
-
$
|
|
11
|
-
$fade-contrast: map.get($icon-item, fade-contrast);
|
|
12
|
-
$error: map.get($icon-item, error);
|
|
13
|
-
$success: map.get($icon-item, success);
|
|
14
|
+
@mixin kbq-icon-item-theme($theme) {
|
|
15
|
+
$icon-item: map.get($theme, components, icon-item);
|
|
14
16
|
|
|
15
|
-
.kbq-icon-item {
|
|
16
|
-
&.kbq-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
.kbq-icon-item.kbq-icon-item_filled {
|
|
18
|
+
&.kbq-icon-item_fade-off {
|
|
19
|
+
&.kbq-theme {
|
|
20
|
+
@include kbq-icon-item-style($icon-item, fade-off, theme);
|
|
21
|
+
}
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
23
|
+
&.kbq-contrast {
|
|
24
|
+
@include kbq-icon-item-style($icon-item, fade-off, contrast);
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
&.kbq-error {
|
|
28
|
+
@include kbq-icon-item-style($icon-item, fade-off, error);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.kbq-warning {
|
|
32
|
+
@include kbq-icon-item-style($icon-item, fade-off, warning);
|
|
33
|
+
}
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
&.kbq-success {
|
|
36
|
+
@include kbq-icon-item-style($icon-item, fade-off, success);
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
&.kbq-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
&.kbq-icon-item_fade-on {
|
|
41
|
+
&.kbq-theme {
|
|
42
|
+
@include kbq-icon-item-style($icon-item, fade-on, theme);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.kbq-contrast {
|
|
46
|
+
@include kbq-icon-item-style($icon-item, fade-on, contrast);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.kbq-error {
|
|
50
|
+
@include kbq-icon-item-style($icon-item, fade-on, error);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.kbq-warning {
|
|
54
|
+
@include kbq-icon-item-style($icon-item, fade-on, warning);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.kbq-success {
|
|
58
|
+
@include kbq-icon-item-style($icon-item, fade-on, success);
|
|
59
|
+
}
|
|
39
60
|
}
|
|
40
61
|
}
|
|
41
62
|
}
|
package/icon/_icon-theme.scss
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$icon: map.get(map.get($themeObj, components), icon);
|
|
8
|
-
|
|
9
|
-
$theme: map.get($icon, theme);
|
|
10
|
-
$contrast: map.get($icon, contrast);
|
|
11
|
-
$fade-contrast: map.get($icon, fade-contrast);
|
|
12
|
-
$error: map.get($icon, error);
|
|
13
|
-
$success: map.get($icon, success);
|
|
6
|
+
@mixin kbq-icon-theme($theme) {
|
|
7
|
+
$icon: map.get($theme, components, icon);
|
|
14
8
|
|
|
15
9
|
.kbq-icon:not(.kbq-icon-button, .kbq-icon-item) {
|
|
16
10
|
&.kbq-theme {
|
|
17
|
-
color: map.get($theme, color);
|
|
11
|
+
color: kbq-css-variable(icon-theme-color, map.get($icon, theme, color));
|
|
18
12
|
}
|
|
19
13
|
|
|
20
14
|
&.kbq-contrast {
|
|
21
|
-
color: map.get($contrast, color);
|
|
15
|
+
color: kbq-css-variable(icon-contrast-color, map.get($icon, contrast, color));
|
|
22
16
|
}
|
|
23
17
|
|
|
24
18
|
&.kbq-contrast-fade {
|
|
25
|
-
color: map.get($fade-contrast, color);
|
|
19
|
+
color: kbq-css-variable(icon-fade-contrast-color, map.get($icon, fade-contrast, color));
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
&.kbq-error {
|
|
29
|
-
color: map.get($error, color);
|
|
23
|
+
color: kbq-css-variable(icon-error-color, map.get($icon, error, color));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.kbq-warning {
|
|
27
|
+
color: kbq-css-variable(icon-warning-color, map.get($icon, warning, color));
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
&.kbq-success {
|
|
33
|
-
color: map.get($success, color);
|
|
31
|
+
color: kbq-css-variable(icon-success-color, map.get($icon, success, color));
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
}
|
package/icon/icon-button.scss
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
9
5
|
|
|
10
6
|
.kbq-icon-button {
|
|
11
7
|
&:not(.kbq-disabled) {
|
|
12
8
|
cursor: pointer;
|
|
13
9
|
}
|
|
14
10
|
|
|
15
|
-
padding:
|
|
16
|
-
|
|
17
|
-
var(
|
|
18
|
-
--kbq-icon-button-size-small-horizontal-padding,
|
|
19
|
-
map-get($tokens, icon-button-size-small-horizontal-padding)
|
|
20
|
-
);
|
|
11
|
+
padding: kbq-css-variable(icon-button-size-small-vertical-padding)
|
|
12
|
+
kbq-css-variable(icon-button-size-small-horizontal-padding);
|
|
21
13
|
|
|
22
14
|
&.kbq-icon-button_small {
|
|
23
|
-
padding:
|
|
24
|
-
|
|
25
|
-
--kbq-icon-button-size-normal-vertical-padding,
|
|
26
|
-
map-get($tokens, icon-button-size-normal-vertical-padding)
|
|
27
|
-
)
|
|
28
|
-
var(
|
|
29
|
-
--kbq-icon-button-size-normal-horizontal-padding,
|
|
30
|
-
map-get($tokens, icon-button-size-normal-horizontal-padding)
|
|
31
|
-
);
|
|
15
|
+
padding: kbq-css-variable(icon-button-size-normal-vertical-padding)
|
|
16
|
+
kbq-css-variable(icon-button-size-normal-horizontal-padding);
|
|
32
17
|
}
|
|
33
18
|
}
|
|
@@ -5,7 +5,9 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class KbqIconItem extends KbqIcon implements CanColor {
|
|
6
6
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
7
7
|
name: string;
|
|
8
|
+
fade: boolean;
|
|
9
|
+
big: boolean;
|
|
8
10
|
constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef);
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconItem, [null, { attribute: "kbq-icon-item"; }, { optional: true; }, null]>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconItem, "[kbq-icon-item]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconItem, "[kbq-icon-item]", never, { "color": { "alias": "color"; "required": false; }; "fade": { "alias": "fade"; "required": false; }; "big": { "alias": "big"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
11
13
|
}
|
package/icon/icon-item.scss
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
9
5
|
|
|
10
6
|
.kbq-icon-item {
|
|
11
7
|
box-sizing: border-box;
|
|
12
8
|
|
|
13
9
|
border-radius: 50%;
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
&.kbq-icon-item_normal {
|
|
12
|
+
padding: kbq-css-variable(icon-item-size-normal-vertical-padding)
|
|
13
|
+
kbq-css-variable(icon-item-size-normal-horizontal-padding);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.kbq-icon-item_big {
|
|
17
|
+
padding: kbq-css-variable(icon-item-size-big-vertical-padding)
|
|
18
|
+
kbq-css-variable(icon-item-size-big-horizontal-padding);
|
|
19
|
+
}
|
|
18
20
|
}
|