@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,36 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
-
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
@mixin kbq-progress-bar-theme($theme) {
|
|
8
8
|
$progress-bar: map.get(map.get($theme, components), progress-bar);
|
|
9
9
|
|
|
10
10
|
.kbq-progress-bar.kbq-theme {
|
|
11
|
-
$bar: map.get($progress-bar, bar);
|
|
12
|
-
|
|
13
11
|
.kbq-progress-bar__inner {
|
|
14
|
-
background-color: map.get($bar, background);
|
|
12
|
+
background-color: kbq-css-variable(progress-bar-bar-background, map.get($progress-bar, bar, background));
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
.kbq-progress-bar__line {
|
|
18
|
-
background-color: map.get($bar, foreground);
|
|
16
|
+
background-color: kbq-css-variable(progress-bar-bar-foreground, map.get($progress-bar, bar, foreground));
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
.kbq-progress-bar-text {
|
|
23
|
-
color: map.get($progress-bar, text);
|
|
21
|
+
color: kbq-css-variable(progress-bar-text, map.get($progress-bar, text));
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
.kbq-progress-bar-caption {
|
|
27
|
-
color: map.get($progress-bar, caption);
|
|
25
|
+
color: kbq-css-variable(progress-bar-caption, map.get($progress-bar, caption));
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
@mixin kbq-progress-bar-typography($config) {
|
|
32
|
-
$tokens: map.get($config, tokens);
|
|
33
|
-
|
|
34
30
|
.kbq-progress-bar-text {
|
|
35
|
-
@include kbq-typography-
|
|
31
|
+
@include kbq-typography-css-variables(progress-bar, label);
|
|
36
32
|
}
|
|
37
33
|
|
|
38
34
|
.kbq-progress-bar-caption {
|
|
39
|
-
@include kbq-typography-
|
|
35
|
+
@include kbq-typography-css-variables(progress-bar, caption);
|
|
40
36
|
}
|
|
41
37
|
}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/functions/timing';
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
7
|
-
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
7
|
|
|
9
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
10
9
|
|
|
@@ -25,37 +24,25 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
25
24
|
overflow: hidden;
|
|
26
25
|
|
|
27
26
|
.kbq-progress-bar-text {
|
|
28
|
-
margin-bottom:
|
|
29
|
-
--kbq-progress-bar-size-container-content-gap,
|
|
30
|
-
map.get($tokens, progress-bar-size-container-content-gap)
|
|
31
|
-
);
|
|
27
|
+
margin-bottom: kbq-css-variable(progress-bar-size-container-content-gap);
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
.kbq-progress-bar-caption {
|
|
35
|
-
margin-top:
|
|
36
|
-
--kbq-progress-bar-size-container-content-gap,
|
|
37
|
-
map.get($tokens, progress-bar-size-container-content-gap)
|
|
38
|
-
);
|
|
31
|
+
margin-top: kbq-css-variable(progress-bar-size-container-content-gap);
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
& .kbq-progress-bar__inner {
|
|
42
35
|
overflow: hidden;
|
|
43
36
|
|
|
44
|
-
height:
|
|
45
|
-
border-radius:
|
|
46
|
-
--kbq-progress-bar-size-container-border-radius,
|
|
47
|
-
map.get($tokens, progress-bar-size-container-border-radius)
|
|
48
|
-
);
|
|
37
|
+
height: kbq-css-variable(progress-bar-size-bar-height);
|
|
38
|
+
border-radius: kbq-css-variable(progress-bar-size-container-border-radius);
|
|
49
39
|
}
|
|
50
40
|
|
|
51
41
|
& .kbq-progress-bar__line {
|
|
52
42
|
height: 100%;
|
|
53
43
|
transform-origin: top left;
|
|
54
44
|
|
|
55
|
-
border-radius:
|
|
56
|
-
--kbq-progress-bar-size-bar-border-radius,
|
|
57
|
-
map.get($tokens, progress-bar-size-bar-border-radius)
|
|
58
|
-
);
|
|
45
|
+
border-radius: kbq-css-variable(progress-bar-size-bar-border-radius);
|
|
59
46
|
}
|
|
60
47
|
|
|
61
48
|
&.kbq-progress-bar_determinate .kbq-progress-bar__line {
|
|
@@ -2,34 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
-
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
@mixin kbq-progress-spinner-theme($theme) {
|
|
8
8
|
$progress-spinner: map.get(map.get($theme, components), progress-spinner);
|
|
9
9
|
|
|
10
10
|
.kbq-progress-spinner {
|
|
11
11
|
.kbq-progress-spinner__circle {
|
|
12
|
-
stroke: map.get($progress-spinner, circle);
|
|
12
|
+
stroke: kbq-css-variable(progress-spinner-circle, map.get($progress-spinner, circle));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.kbq-progress-spinner-text {
|
|
17
|
-
color: map.get($progress-spinner, text);
|
|
17
|
+
color: kbq-css-variable(progress-spinner-text, map.get($progress-spinner, text));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.kbq-progress-spinner-caption {
|
|
21
|
-
color: map.get($progress-spinner, caption);
|
|
21
|
+
color: kbq-css-variable(progress-spinner-caption, map.get($progress-spinner, caption));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@mixin kbq-progress-spinner-typography($config) {
|
|
26
|
-
$tokens: map.get($config, tokens);
|
|
27
|
-
|
|
28
26
|
.kbq-progress-spinner-text {
|
|
29
|
-
@include kbq-typography-
|
|
27
|
+
@include kbq-typography-css-variables(progress-spinner, label);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
.kbq-progress-spinner-caption {
|
|
33
|
-
@include kbq-typography-
|
|
31
|
+
@include kbq-typography-css-variables(progress-spinner, caption);
|
|
34
32
|
}
|
|
35
33
|
}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/functions/timing';
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
7
|
-
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
7
|
|
|
9
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
10
9
|
|
|
@@ -18,10 +17,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
18
17
|
display: flex;
|
|
19
18
|
flex-direction: row;
|
|
20
19
|
|
|
21
|
-
gap:
|
|
22
|
-
--kbq-progress-spinner-size-compact-content-gap-horizontal,
|
|
23
|
-
map.get($tokens, progress-spinner-size-compact-content-gap-horizontal)
|
|
24
|
-
);
|
|
20
|
+
gap: kbq-css-variable(progress-spinner-size-compact-content-gap-horizontal);
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
.kbq-progress-spinner__circle {
|
|
@@ -34,8 +30,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
.kbq-progress-spinner__inner {
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
33
|
+
width: kbq-css-variable(progress-spinner-size-compact-size);
|
|
34
|
+
height: kbq-css-variable(progress-spinner-size-compact-size);
|
|
39
35
|
|
|
40
36
|
transform: rotateZ(-90deg);
|
|
41
37
|
|
|
@@ -44,22 +40,16 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
44
40
|
|
|
45
41
|
.kbq-progress-spinner__content {
|
|
46
42
|
.kbq-progress-spinner-text {
|
|
47
|
-
margin-bottom:
|
|
48
|
-
--kbq-progress-spinner-size-compact-content-gap-vertical,
|
|
49
|
-
map.get($tokens, progress-spinner-size-compact-content-gap-vertical)
|
|
50
|
-
);
|
|
43
|
+
margin-bottom: kbq-css-variable(progress-spinner-size-compact-content-gap-vertical);
|
|
51
44
|
}
|
|
52
45
|
}
|
|
53
46
|
|
|
54
47
|
.kbq-progress-spinner_big {
|
|
55
|
-
gap:
|
|
56
|
-
--kbq-progress-spinner-size-big-content-gap-horizontal,
|
|
57
|
-
map.get($tokens, progress-spinner-size-big-content-gap-horizontal)
|
|
58
|
-
);
|
|
48
|
+
gap: kbq-css-variable(progress-spinner-size-big-content-gap-horizontal);
|
|
59
49
|
|
|
60
50
|
& .kbq-progress-spinner__inner {
|
|
61
|
-
width:
|
|
62
|
-
height:
|
|
51
|
+
width: kbq-css-variable(progress-spinner-size-big-size);
|
|
52
|
+
height: kbq-css-variable(progress-spinner-size-big-size);
|
|
63
53
|
}
|
|
64
54
|
|
|
65
55
|
& .kbq-progress-spinner__circle {
|
package/radio/_radio-theme.scss
CHANGED
|
@@ -2,58 +2,66 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
7
|
+
@mixin kbq-radio-state($component, $type, $state-name) {
|
|
8
|
+
$state: map.get($component, $type, $state-name);
|
|
6
9
|
|
|
7
|
-
@mixin kbq-radio-state($state) {
|
|
8
10
|
& .kbq-radio-button__outer-circle {
|
|
9
|
-
border-color:
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
border-color: kbq-css-variable(
|
|
12
|
+
radio-#{$type}-#{$state-name}-outer-circle-border,
|
|
13
|
+
map.get($state, outer-circle-border)
|
|
14
|
+
);
|
|
15
|
+
background: kbq-css-variable(
|
|
16
|
+
radio-#{$type}-#{$state-name}-outer-circle-background,
|
|
17
|
+
map.get($state, outer-circle-background)
|
|
18
|
+
);
|
|
19
|
+
box-shadow: kbq-css-variable(
|
|
20
|
+
radio-#{$type}-#{$state-name}-outer-circle-shadow,
|
|
21
|
+
map.get($state, outer-circle-shadow)
|
|
22
|
+
);
|
|
12
23
|
}
|
|
13
24
|
|
|
14
25
|
& .kbq-radio-button__inner-circle {
|
|
15
|
-
background:
|
|
26
|
+
background: kbq-css-variable(
|
|
27
|
+
radio-#{$type}-#{$state-name}-inner-circle-background,
|
|
28
|
+
map.get($state, inner-circle-background)
|
|
29
|
+
);
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
|
|
19
|
-
@mixin kbq-radio-color($
|
|
20
|
-
|
|
21
|
-
@include kbq-radio-state($default);
|
|
33
|
+
@mixin kbq-radio-color($component, $type-name) {
|
|
34
|
+
@include kbq-radio-state($component, $type-name, default);
|
|
22
35
|
|
|
23
36
|
& .kbq-hint .kbq-hint__text {
|
|
24
|
-
color: map.get($default, caption);
|
|
37
|
+
color: map.get($component, $type-name, default, caption);
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
&:hover {
|
|
28
|
-
|
|
29
|
-
@include kbq-radio-state($hover);
|
|
41
|
+
@include kbq-radio-state($component, $type-name, states-hover);
|
|
30
42
|
}
|
|
31
43
|
|
|
32
44
|
&.cdk-keyboard-focused {
|
|
33
|
-
|
|
34
|
-
@include kbq-radio-state($focused);
|
|
45
|
+
@include kbq-radio-state($component, $type-name, states-focused);
|
|
35
46
|
}
|
|
36
47
|
|
|
37
48
|
&.kbq-selected:not(.kbq-disabled) {
|
|
38
|
-
|
|
39
|
-
@include kbq-radio-state($selected);
|
|
49
|
+
@include kbq-radio-state($component, $type-name, states-checked);
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
&.kbq-selected.kbq-disabled {
|
|
43
|
-
|
|
44
|
-
@include kbq-radio-state($selected-disabled);
|
|
53
|
+
@include kbq-radio-state($component, $type-name, states-checked-disabled);
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
&.kbq-disabled {
|
|
48
|
-
|
|
49
|
-
@include kbq-radio-state($disabled);
|
|
57
|
+
@include kbq-radio-state($component, $type-name, states-disabled);
|
|
50
58
|
|
|
51
59
|
& .kbq-radio-label {
|
|
52
60
|
cursor: default;
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
& .kbq-hint .kbq-hint__text {
|
|
56
|
-
color: map.get($
|
|
64
|
+
color: map.get($component, $type-name, states-disabled, caption);
|
|
57
65
|
}
|
|
58
66
|
}
|
|
59
67
|
}
|
|
@@ -63,46 +71,37 @@
|
|
|
63
71
|
|
|
64
72
|
$radio: map.get(map.get($theme, components), radio);
|
|
65
73
|
|
|
66
|
-
$radio-theme: map.get($radio, theme);
|
|
67
|
-
$radio-error: map.get($radio, error);
|
|
68
|
-
|
|
69
|
-
.kbq-radio-group {
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
74
|
.kbq-radio-button {
|
|
74
75
|
& .kbq-radio-button__inner-circle {
|
|
75
76
|
border-width: 0 !important;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
|
-
@include kbq-radio-color($radio
|
|
79
|
+
@include kbq-radio-color($radio, theme);
|
|
79
80
|
|
|
80
|
-
color: map.get($foreground, contrast);
|
|
81
|
+
color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
|
|
81
82
|
|
|
82
83
|
&.kbq-error {
|
|
83
|
-
@include kbq-radio-color($radio
|
|
84
|
+
@include kbq-radio-color($radio, error);
|
|
84
85
|
|
|
85
|
-
color: map.get($foreground, contrast);
|
|
86
|
+
color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
@mixin kbq-radio-typography($config) {
|
|
91
|
-
$tokens: map.get($config, tokens);
|
|
92
|
-
|
|
93
92
|
.kbq-radio-button {
|
|
94
|
-
@include kbq-typography-
|
|
93
|
+
@include kbq-typography-css-variables(radio, normal-label);
|
|
95
94
|
|
|
96
95
|
& .kbq-hint .kbq-hint__text {
|
|
97
|
-
@include kbq-typography-
|
|
96
|
+
@include kbq-typography-css-variables(radio, normal-caption);
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
.kbq-radio-button.kbq-radio-button_big {
|
|
102
|
-
@include kbq-typography-
|
|
101
|
+
@include kbq-typography-css-variables(radio, big-label);
|
|
103
102
|
|
|
104
103
|
& .kbq-hint .kbq-hint__text {
|
|
105
|
-
@include kbq-typography-
|
|
104
|
+
@include kbq-typography-css-variables(radio, big-caption);
|
|
106
105
|
}
|
|
107
106
|
}
|
|
108
107
|
}
|
package/radio/radio.scss
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/tokens';
|
|
5
|
-
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
$tokens: meta.module-variables(tokens) !default;
|
|
8
8
|
|
|
@@ -11,11 +11,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
|
|
13
13
|
&.kbq-radio-group_normal {
|
|
14
|
-
gap:
|
|
14
|
+
gap: kbq-css-variable(radio-size-normal-vertical-gap);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&.kbq-radio-group_big {
|
|
18
|
-
gap:
|
|
18
|
+
gap: kbq-css-variable(radio-size-big-vertical-gap);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -46,10 +46,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
46
46
|
|
|
47
47
|
padding-left: calc(
|
|
48
48
|
var(--kbq-radio-size-normal-outer-size, map.get($tokens, radio-size-normal-outer-size)) +
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
var(
|
|
50
|
+
--kbq-radio-size-normal-horizontal-content-padding,
|
|
51
|
+
map.get($tokens, radio-size-normal-horizontal-content-padding)
|
|
52
|
+
)
|
|
53
53
|
);
|
|
54
54
|
padding-right: 0;
|
|
55
55
|
|
|
@@ -73,40 +73,31 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
left: 0;
|
|
76
|
+
top: var(--kbq-radio-size-normal-top, map.get($tokens, radio-size-normal-top));
|
|
76
77
|
|
|
77
|
-
width:
|
|
78
|
-
height:
|
|
78
|
+
width: kbq-css-variable(radio-size-normal-outer-size);
|
|
79
|
+
height: kbq-css-variable(radio-size-normal-outer-size);
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.kbq-radio-button__inner-circle {
|
|
82
83
|
position: relative;
|
|
83
84
|
margin: auto;
|
|
84
85
|
|
|
85
|
-
width:
|
|
86
|
-
height:
|
|
86
|
+
width: kbq-css-variable(radio-size-normal-inner-size);
|
|
87
|
+
height: kbq-css-variable(radio-size-normal-inner-size);
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
.kbq-radio__text-container {
|
|
90
91
|
display: flex;
|
|
91
92
|
flex-direction: column;
|
|
92
|
-
|
|
93
|
-
& .kbq-radio__text {
|
|
94
|
-
|
|
95
|
-
}
|
|
96
93
|
}
|
|
97
94
|
|
|
98
95
|
& .kbq-hint {
|
|
99
|
-
margin-top:
|
|
100
|
-
--kbq-radio-size-normal-vertical-content-padding,
|
|
101
|
-
map.get($tokens, radio-size-normal-vertical-content-padding)
|
|
102
|
-
);
|
|
96
|
+
margin-top: kbq-css-variable(radio-size-normal-vertical-content-padding);
|
|
103
97
|
}
|
|
104
98
|
|
|
105
99
|
[dir='rtl'] & {
|
|
106
|
-
padding-right:
|
|
107
|
-
--kbq-radio-size-normal-horizontal-content-padding,
|
|
108
|
-
map.get($tokens, radio-size-normal-horizontal-content-padding)
|
|
109
|
-
);
|
|
100
|
+
padding-right: kbq-css-variable(radio-size-normal-horizontal-content-padding);
|
|
110
101
|
padding-left: 0;
|
|
111
102
|
}
|
|
112
103
|
}
|
|
@@ -121,36 +112,30 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
121
112
|
.kbq-radio-label-content {
|
|
122
113
|
padding-left: calc(
|
|
123
114
|
var(--kbq-radio-size-big-outer-size, map.get($tokens, radio-size-big-outer-size)) +
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
115
|
+
var(
|
|
116
|
+
--kbq-radio-size-big-horizontal-content-padding,
|
|
117
|
+
map.get($tokens, radio-size-big-horizontal-content-padding)
|
|
118
|
+
)
|
|
128
119
|
);
|
|
129
120
|
|
|
130
121
|
.kbq-radio-button__outer-circle {
|
|
131
|
-
top:
|
|
122
|
+
top: var(--kbq-radio-size-big-top, map.get($tokens, radio-size-big-top));
|
|
132
123
|
|
|
133
|
-
width:
|
|
134
|
-
height:
|
|
124
|
+
width: kbq-css-variable(radio-size-big-outer-size);
|
|
125
|
+
height: kbq-css-variable(radio-size-big-outer-size);
|
|
135
126
|
}
|
|
136
127
|
|
|
137
128
|
.kbq-radio-button__inner-circle {
|
|
138
|
-
width:
|
|
139
|
-
height:
|
|
129
|
+
width: kbq-css-variable(radio-size-big-inner-size);
|
|
130
|
+
height: kbq-css-variable(radio-size-big-inner-size);
|
|
140
131
|
}
|
|
141
132
|
|
|
142
133
|
& .kbq-hint {
|
|
143
|
-
margin-top:
|
|
144
|
-
--kbq-radio-size-big-vertical-content-padding,
|
|
145
|
-
map.get($tokens, radio-size-big-vertical-content-padding)
|
|
146
|
-
);
|
|
134
|
+
margin-top: kbq-css-variable(radio-size-big-vertical-content-padding);
|
|
147
135
|
}
|
|
148
136
|
|
|
149
137
|
[dir='rtl'] & {
|
|
150
|
-
padding-right:
|
|
151
|
-
--kbq-radio-size-big-horizontal-content-padding,
|
|
152
|
-
map.get($tokens, radio-size-big-horizontal-content-padding)
|
|
153
|
-
);
|
|
138
|
+
padding-right: kbq-css-variable(radio-size-big-horizontal-content-padding);
|
|
154
139
|
}
|
|
155
140
|
}
|
|
156
141
|
}
|
|
@@ -2,87 +2,81 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
@mixin kbq-risk-level-filled-color($component, $type, $sub-type, $style-name) {
|
|
8
|
+
$style: map.get($component, $type, $sub-type, $style-name);
|
|
9
|
+
$base: risk-level-#{$type}-#{$sub-type}-#{$style-name};
|
|
8
10
|
border: transparent;
|
|
9
11
|
|
|
10
|
-
color: map.get($
|
|
11
|
-
background: map.get($
|
|
12
|
+
color: kbq-css-variable(#{$base}-color, map.get($style, color));
|
|
13
|
+
background: kbq-css-variable(#{$base}-background, map.get($style, background));
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
@mixin kbq-risk-level-outline-color($
|
|
15
|
-
|
|
16
|
+
@mixin kbq-risk-level-outline-color($component, $type, $sub-type, $style-name) {
|
|
17
|
+
$style: map.get($component, $type, $sub-type, $style-name);
|
|
18
|
+
$base: risk-level-#{$type}-#{$sub-type}-#{$style-name};
|
|
19
|
+
|
|
20
|
+
border-color: kbq-css-variable(#{$base}-border, map.get($style, border));
|
|
16
21
|
|
|
17
|
-
color: map.get($
|
|
18
|
-
background: map.get($
|
|
22
|
+
color: kbq-css-variable(#{$base}-color, map.get($style, color));
|
|
23
|
+
background: kbq-css-variable(#{$base}-background, map.get($style, background));
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
@mixin kbq-risk-level-theme($theme) {
|
|
22
27
|
$risk-level: map.get(map.get($theme, components), risk-level);
|
|
23
28
|
|
|
24
|
-
$filled: map.get($risk-level, filled);
|
|
25
|
-
$outline: map.get($risk-level, outline);
|
|
26
|
-
|
|
27
29
|
.kbq-risk-level_filled {
|
|
28
|
-
$fade-on: map.get($filled, fade-on);
|
|
29
|
-
|
|
30
30
|
&.kbq-risk-level_fade-contrast {
|
|
31
|
-
@include kbq-risk-level-filled-color(
|
|
31
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, contrast);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&.kbq-risk-level_fade-success {
|
|
35
|
-
@include kbq-risk-level-filled-color(
|
|
35
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, success);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&.kbq-risk-level_fade-warning {
|
|
39
|
-
@include kbq-risk-level-filled-color(
|
|
39
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, warning);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&.kbq-risk-level_fade-error {
|
|
43
|
-
@include kbq-risk-level-filled-color(
|
|
43
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, error);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
$fade-off: map.get($filled, fade-off);
|
|
47
|
-
|
|
48
46
|
&.kbq-risk-level_success {
|
|
49
|
-
@include kbq-risk-level-filled-color(
|
|
47
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-off, success);
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
&.kbq-risk-level_warning {
|
|
53
|
-
@include kbq-risk-level-filled-color(
|
|
51
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-off, warning);
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
&.kbq-risk-level_error {
|
|
57
|
-
@include kbq-risk-level-filled-color(
|
|
55
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-off, error);
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
.kbq-risk-level_outline {
|
|
62
|
-
$fade-on: map.get($outline, fade-on);
|
|
63
|
-
|
|
64
60
|
&.kbq-risk-level_fade-contrast {
|
|
65
|
-
@include kbq-risk-level-outline-color(
|
|
61
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, contrast);
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
&.kbq-risk-level_fade-success {
|
|
69
|
-
@include kbq-risk-level-outline-color(
|
|
65
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, success);
|
|
70
66
|
}
|
|
71
67
|
|
|
72
68
|
&.kbq-risk-level_fade-warning {
|
|
73
|
-
@include kbq-risk-level-outline-color(
|
|
69
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, warning);
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
&.kbq-risk-level_fade-error {
|
|
77
|
-
@include kbq-risk-level-outline-color(
|
|
73
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, error);
|
|
78
74
|
}
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
|
|
82
78
|
@mixin kbq-risk-level-typography($config) {
|
|
83
|
-
$tokens: map.get($config, tokens);
|
|
84
|
-
|
|
85
79
|
.kbq-risk-level {
|
|
86
|
-
@include kbq-typography-
|
|
80
|
+
@include kbq-typography-css-variables(risk-level, text);
|
|
87
81
|
}
|
|
88
82
|
}
|
|
@@ -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-risk-level {
|
|
11
7
|
box-sizing: border-box;
|
|
@@ -15,12 +11,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
15
11
|
|
|
16
12
|
border-style: solid;
|
|
17
13
|
|
|
18
|
-
padding:
|
|
19
|
-
var(--kbq-risk-level-size-padding-vertical, map.get($tokens, risk-level-size-padding-vertical))
|
|
20
|
-
var(--kbq-risk-level-size-padding-horizontal, map.get($tokens, risk-level-size-padding-horizontal));
|
|
14
|
+
padding: kbq-css-variable(risk-level-size-padding-vertical) kbq-css-variable(risk-level-size-padding-horizontal);
|
|
21
15
|
|
|
22
16
|
border: {
|
|
23
|
-
width:
|
|
24
|
-
radius:
|
|
17
|
+
width: kbq-css-variable(risk-level-size-border-width);
|
|
18
|
+
radius: kbq-css-variable(risk-level-size-border-radius);
|
|
25
19
|
}
|
|
26
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Adds @koobiq/components library to the project and installs dependencies",
|
|
6
|
+
"factory": "./ng-add/index",
|
|
7
|
+
"schema": "./ng-add/schema.json",
|
|
8
|
+
"aliases": ["install"]
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|