@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
|
@@ -3,140 +3,140 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
-
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
8
|
@mixin kbq-markdown-theme($theme) {
|
|
9
|
-
$
|
|
10
|
-
|
|
11
|
-
$foreground: map.get($theme, foreground);
|
|
12
|
-
$background: map.get($theme, background);
|
|
13
|
-
|
|
14
|
-
$markdown: map.get(map.get($theme, components), markdown);
|
|
9
|
+
$markdown: map.get($theme, components, markdown);
|
|
15
10
|
|
|
16
11
|
.kbq-markdown {
|
|
17
|
-
color: map.get($foreground, contrast);
|
|
18
|
-
background: map.get($background, bg);
|
|
12
|
+
color: kbq-css-variable(foreground-contrast, map.get($theme, foreground, contrast));
|
|
13
|
+
background: kbq-css-variable(background-bg, map.get($theme, background, bg));
|
|
19
14
|
|
|
20
15
|
// h1, h2, h3, h4, h5, h6
|
|
21
16
|
@for $i from 1 through 6 {
|
|
22
17
|
.kbq-markdown__h#{$i} {
|
|
23
|
-
color: map.get($markdown, h#{$i}-color);
|
|
18
|
+
color: kbq-css-variable(markdown-h#{$i}-color, map.get($markdown, h#{$i}-color));
|
|
24
19
|
}
|
|
25
20
|
}
|
|
26
21
|
|
|
27
22
|
.kbq-markdown__p {
|
|
28
|
-
color: map.get($markdown, p-color);
|
|
23
|
+
color: kbq-css-variable(markdown-p-color, map.get($markdown, p-color));
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
.kbq-markdown__ul,
|
|
32
27
|
.kbq-markdown__ol {
|
|
33
|
-
color: map.get($markdown, list-color);
|
|
28
|
+
color: kbq-css-variable(markdown-list-color, map.get($markdown, list-color));
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
.kbq-markdown__blockquote {
|
|
37
|
-
color: map.get($markdown, blockquote-text);
|
|
38
|
-
background: map.get($markdown, blockquote-background);
|
|
39
|
-
border-color: map.get($markdown, blockquote-border);
|
|
40
|
-
border-left-color: map.get($markdown, blockquote-line);
|
|
32
|
+
color: kbq-css-variable(markdown-blockquote-text, map.get($markdown, blockquote-text));
|
|
33
|
+
background: kbq-css-variable(markdown-blockquote-background, map.get($markdown, blockquote-background));
|
|
34
|
+
border-color: kbq-css-variable(markdown-blockquote-border, map.get($markdown, blockquote-border));
|
|
35
|
+
border-left-color: kbq-css-variable(markdown-blockquote-line, map.get($markdown, blockquote-line));
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
.kbq-markdown__pre,
|
|
44
39
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
45
|
-
color: map.get($markdown, code-text);
|
|
46
|
-
background-color: map.get($markdown, code-background);
|
|
47
|
-
border-color: map.get($markdown, code-border);
|
|
40
|
+
color: kbq-css-variable(markdown-code-text, map.get($markdown, code-text));
|
|
41
|
+
background-color: kbq-css-variable(markdown-code-background, map.get($markdown, code-background));
|
|
42
|
+
border-color: kbq-css-variable(markdown-code-border, map.get($markdown, code-border));
|
|
48
43
|
}
|
|
49
44
|
|
|
50
45
|
.kbq-markdown__a {
|
|
51
|
-
color: map.get($markdown, link-text);
|
|
52
|
-
border-bottom-color: map.get($markdown, link-border-bottom);
|
|
46
|
+
color: kbq-css-variable(markdown-link-text, map.get($markdown, link-text));
|
|
47
|
+
border-bottom-color: kbq-css-variable(markdown-link-border-bottom, map.get($markdown, link-border-bottom));
|
|
53
48
|
|
|
54
49
|
&:visited {
|
|
55
|
-
color: map.get($markdown, link-state-visited-text);
|
|
56
|
-
border-bottom-color:
|
|
50
|
+
color: kbq-css-variable(markdown-link-state-visited-text, map.get($markdown, link-state-visited-text));
|
|
51
|
+
border-bottom-color: kbq-css-variable(
|
|
52
|
+
markdown-link-state-visited-border-bottom,
|
|
53
|
+
map.get($markdown, link-state-visited-border-bottom)
|
|
54
|
+
);
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
&:hover {
|
|
60
|
-
color: map.get($markdown, link-state-hover-text);
|
|
58
|
+
color: kbq-css-variable(markdown-link-state-hover-text, map.get($markdown, link-state-hover-text));
|
|
61
59
|
transition: color 0ms;
|
|
62
|
-
border-bottom-color:
|
|
60
|
+
border-bottom-color: kbq-css-variable(
|
|
61
|
+
markdown-link-state-hover-border-bottom,
|
|
62
|
+
map.get($markdown, link-state-hover-border-bottom)
|
|
63
|
+
);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
&:active {
|
|
66
|
-
color: map.get($markdown, link-state-active-text);
|
|
67
|
+
color: kbq-css-variable(markdown-link-state-active-text, map.get($markdown, link-state-active-text));
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
&:focus {
|
|
70
|
-
outline:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
outline: kbq-css-variable(
|
|
72
|
+
markdown-link-state-focused-outline,
|
|
73
|
+
map.get($markdown, link-state-focused-outline)
|
|
74
|
+
)
|
|
75
|
+
solid kbq-css-variable(markdown-link-size-state-focused-outline-width);
|
|
74
76
|
|
|
75
|
-
outline-offset:
|
|
77
|
+
outline-offset: kbq-css-variable(markdown-link-size-state-focused-outline-offset);
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
.kbq-markdown__img + em {
|
|
80
|
-
color: map.get($markdown, image-caption-text);
|
|
82
|
+
color: kbq-css-variable(markdown-image-caption-text, map.get($markdown, image-caption-text));
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.kbq-markdown__hr {
|
|
84
|
-
border-bottom-color: map.get($markdown, hr-color);
|
|
86
|
+
border-bottom-color: kbq-css-variable(markdown-hr-color, map.get($markdown, hr-color));
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
.kbq-markdown__table > .kbq-markdown__thead {
|
|
88
|
-
color: map.get($markdown, table-header);
|
|
89
|
-
border-bottom-color: map.get($markdown, table-border);
|
|
90
|
+
color: kbq-css-variable(markdown-table-header, map.get($markdown, table-header));
|
|
91
|
+
border-bottom-color: kbq-css-variable(markdown-table-border, map.get($markdown, table-border));
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
.kbq-markdown__table > .kbq-markdown__tbody {
|
|
93
|
-
color: map.get($markdown, table-body);
|
|
95
|
+
color: kbq-css-variable(markdown-table-body, map.get($markdown, table-body));
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
@mixin kbq-markdown-typography($config) {
|
|
99
|
-
$tokens: map.get($config, tokens);
|
|
100
|
-
|
|
101
101
|
.kbq-markdown {
|
|
102
102
|
// h1, h2, h3, h4, h5, h6
|
|
103
103
|
@for $i from 1 through 6 {
|
|
104
104
|
.kbq-markdown__h#{$i} {
|
|
105
|
-
@include kbq-typography-
|
|
105
|
+
@include kbq-typography-css-variables(markdown-h#{$i}, default);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.kbq-markdown__p {
|
|
110
|
-
@include kbq-typography-
|
|
110
|
+
@include kbq-typography-css-variables(markdown-p, default);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.kbq-markdown__ul,
|
|
114
114
|
.kbq-markdown__ol {
|
|
115
|
-
@include kbq-typography-
|
|
115
|
+
@include kbq-typography-css-variables(markdown-list, default);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.kbq-markdown__blockquote > .kbq-markdown__p {
|
|
119
|
-
@include kbq-typography-
|
|
119
|
+
@include kbq-typography-css-variables(markdown-blockquote, default);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.kbq-markdown__code {
|
|
123
|
-
@include kbq-typography-
|
|
123
|
+
@include kbq-typography-css-variables(markdown-code, default);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.kbq-markdown__a {
|
|
127
|
-
@include kbq-typography-
|
|
127
|
+
@include kbq-typography-css-variables(markdown-link, default);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.kbq-markdown__img + em {
|
|
131
|
-
@include kbq-typography-
|
|
131
|
+
@include kbq-typography-css-variables(markdown-image, caption);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.kbq-markdown__table > .kbq-markdown__thead {
|
|
135
|
-
@include kbq-typography-
|
|
135
|
+
@include kbq-typography-css-variables(markdown-table, header);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.kbq-markdown__table > .kbq-markdown__tbody {
|
|
139
|
-
@include kbq-typography-
|
|
139
|
+
@include kbq-typography-css-variables(markdown-table, body);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
package/markdown/markdown.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
|
|
|
@@ -20,11 +20,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
20
20
|
// h1, h2, h3, h4, h5, h6
|
|
21
21
|
@for $i from 1 through 6 {
|
|
22
22
|
.kbq-markdown__h#{$i} {
|
|
23
|
-
max-width:
|
|
24
|
-
margin-top:
|
|
25
|
-
margin-bottom:
|
|
26
|
-
--kbq-markdown-h#{$i}-size-margin-bottom, map.get($tokens, markdown-h#{$i}-size-margin-bottom)
|
|
27
|
-
);
|
|
23
|
+
max-width: kbq-css-variable(markdown-h#{$i}-size-max-width);
|
|
24
|
+
margin-top: kbq-css-variable(markdown-h#{$i}-size-margin-top);
|
|
25
|
+
margin-bottom: kbq-css-variable(markdown-h#{$i}-size-margin-bottom);
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
@@ -40,29 +38,26 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
.kbq-markdown__p {
|
|
43
|
-
max-width:
|
|
44
|
-
margin-top:
|
|
45
|
-
margin-bottom:
|
|
41
|
+
max-width: kbq-css-variable(markdown-p-size-max-width);
|
|
42
|
+
margin-top: kbq-css-variable(markdown-p-size-margin-top);
|
|
43
|
+
margin-bottom: kbq-css-variable(markdown-p-size-margin-bottom);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
.kbq-markdown__ul,
|
|
49
47
|
.kbq-markdown__ol {
|
|
50
|
-
max-width:
|
|
51
|
-
margin-top:
|
|
52
|
-
margin-bottom:
|
|
48
|
+
max-width: kbq-css-variable(markdown-list-size-max-width);
|
|
49
|
+
margin-top: kbq-css-variable(markdown-list-size-margin-top);
|
|
50
|
+
margin-bottom: kbq-css-variable(markdown-list-size-margin-bottom);
|
|
53
51
|
|
|
54
52
|
> li {
|
|
55
|
-
margin-bottom:
|
|
56
|
-
--kbq-markdown-list-size-item-margin-bottom,
|
|
57
|
-
map.get($tokens, markdown-list-size-item-margin-bottom)
|
|
58
|
-
);
|
|
53
|
+
margin-bottom: kbq-css-variable(markdown-list-size-item-margin-bottom);
|
|
59
54
|
}
|
|
60
55
|
}
|
|
61
56
|
|
|
62
57
|
.kbq-markdown__ul {
|
|
63
58
|
position: relative;
|
|
64
59
|
list-style: none;
|
|
65
|
-
padding:
|
|
60
|
+
padding: kbq-css-variable(markdown-list-size-ul-padding);
|
|
66
61
|
}
|
|
67
62
|
|
|
68
63
|
.kbq-markdown__ul > li:before {
|
|
@@ -75,19 +70,15 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
75
70
|
}
|
|
76
71
|
|
|
77
72
|
.kbq-markdown__ol {
|
|
78
|
-
//padding: var(--kbq-markdown-list-size-ol-padding, map.get($tokens, markdown-list-size-ol-padding));
|
|
79
73
|
list-style: none;
|
|
80
74
|
padding: 0;
|
|
81
75
|
counter-reset: li;
|
|
82
76
|
|
|
83
77
|
> li {
|
|
84
78
|
&:before {
|
|
85
|
-
content:counter(li)
|
|
79
|
+
content: counter(li) '.';
|
|
86
80
|
counter-increment: li;
|
|
87
|
-
padding-right:
|
|
88
|
-
--kbq-markdown-list-size-ol-number-padding-right,
|
|
89
|
-
map.get($tokens, markdown-list-size-ol-number-padding-right)
|
|
90
|
-
);
|
|
81
|
+
padding-right: kbq-css-variable(markdown-list-size-ol-number-padding-right);
|
|
91
82
|
}
|
|
92
83
|
|
|
93
84
|
> * {
|
|
@@ -98,36 +89,21 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
98
89
|
|
|
99
90
|
.kbq-markdown__p + .kbq-markdown__ul,
|
|
100
91
|
.kbq-markdown__p + .kbq-markdown__ol {
|
|
101
|
-
margin-top:
|
|
102
|
-
--kbq-markdown-list-size-margin-top-after-paragraph,
|
|
103
|
-
map.get($tokens, markdown-list-size-margin-top-after-paragraph)
|
|
104
|
-
);
|
|
92
|
+
margin-top: kbq-css-variable(markdown-list-size-margin-top-after-paragraph);
|
|
105
93
|
}
|
|
106
94
|
|
|
107
95
|
.kbq-markdown__blockquote {
|
|
108
|
-
max-width:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
margin-
|
|
112
|
-
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
margin-bottom: var(
|
|
116
|
-
--kbq-markdown-blockquote-size-margin-bottom, map.get($tokens, markdown-blockquote-size-margin-bottom)
|
|
117
|
-
);
|
|
96
|
+
max-width: kbq-css-variable(markdown-blockquote-size-max-width);
|
|
97
|
+
margin-top: kbq-css-variable(markdown-blockquote-size-margin-top);
|
|
98
|
+
margin-left: 0;
|
|
99
|
+
margin-bottom: kbq-css-variable(markdown-blockquote-size-margin-bottom);
|
|
100
|
+
margin-right: 0;
|
|
118
101
|
|
|
119
|
-
border-left-width:
|
|
120
|
-
--kbq-markdown-blockquote-size-line-width, map.get($tokens, markdown-blockquote-size-line-width)
|
|
121
|
-
);
|
|
102
|
+
border-left-width: kbq-css-variable(markdown-blockquote-size-line-width);
|
|
122
103
|
|
|
123
104
|
border-left-style: solid;
|
|
124
105
|
|
|
125
|
-
padding:
|
|
126
|
-
--kbq-markdown-blockquote-size-padding, map.get($tokens, markdown-blockquote-size-padding)
|
|
127
|
-
);
|
|
128
|
-
|
|
129
|
-
margin-left: 0;
|
|
130
|
-
margin-right: 0;
|
|
106
|
+
padding: kbq-css-variable(markdown-blockquote-size-padding);
|
|
131
107
|
}
|
|
132
108
|
|
|
133
109
|
.kbq-markdown__blockquote > .kbq-markdown__p {
|
|
@@ -139,53 +115,33 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
139
115
|
position: relative;
|
|
140
116
|
overflow-x: auto;
|
|
141
117
|
|
|
142
|
-
margin-top:
|
|
143
|
-
|
|
144
|
-
map.get($tokens, markdown-code-size-multiline-margin-top)
|
|
145
|
-
);
|
|
146
|
-
margin-bottom: var(
|
|
147
|
-
--kbq-markdown-code-size-multiline-margin-bottom,
|
|
148
|
-
map.get($tokens, markdown-code-size-multiline-margin-bottom)
|
|
149
|
-
);
|
|
118
|
+
margin-top: kbq-css-variable(markdown-code-size-multiline-margin-top);
|
|
119
|
+
margin-bottom: kbq-css-variable(markdown-code-size-multiline-margin-bottom);
|
|
150
120
|
|
|
151
|
-
padding:
|
|
152
|
-
--kbq-markdown-code-size-multiline-padding,
|
|
153
|
-
map.get($tokens, markdown-code-size-multiline-padding)
|
|
154
|
-
);
|
|
121
|
+
padding: kbq-css-variable(markdown-code-size-multiline-padding);
|
|
155
122
|
}
|
|
156
123
|
|
|
157
124
|
.kbq-markdown__pre,
|
|
158
125
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
159
|
-
border-radius:
|
|
160
|
-
|
|
161
|
-
);
|
|
162
|
-
border-width: var(
|
|
163
|
-
--kbq-markdown-code-size-border-width, map.get($tokens, markdown-code-size-border-width)
|
|
164
|
-
);
|
|
126
|
+
border-radius: kbq-css-variable(markdown-code-size-border-radius);
|
|
127
|
+
border-width: kbq-css-variable(markdown-code-size-border-width);
|
|
165
128
|
border-style: solid;
|
|
166
129
|
}
|
|
167
130
|
|
|
168
131
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
169
|
-
max-width:
|
|
170
|
-
padding:
|
|
132
|
+
max-width: kbq-css-variable(markdown-code-size-max-width);
|
|
133
|
+
padding: kbq-css-variable(markdown-code-size-inline-padding);
|
|
171
134
|
}
|
|
172
135
|
|
|
173
136
|
.kbq-markdown__img {
|
|
174
|
-
max-width:
|
|
175
|
-
margin-top:
|
|
176
|
-
margin-bottom:
|
|
177
|
-
--kbq-markdown-image-size-margin-bottom, map.get($tokens, markdown-image-size-margin-bottom)
|
|
178
|
-
);
|
|
137
|
+
max-width: kbq-css-variable(markdown-image-size-max-width);
|
|
138
|
+
margin-top: kbq-css-variable(markdown-image-size-margin-top);
|
|
139
|
+
margin-bottom: kbq-css-variable(markdown-image-size-margin-bottom);
|
|
179
140
|
|
|
180
141
|
+ em {
|
|
181
142
|
display: block;
|
|
182
|
-
margin-top:
|
|
183
|
-
|
|
184
|
-
);
|
|
185
|
-
margin-bottom: var(
|
|
186
|
-
--kbq-markdown-image-size-caption-margin-bottom,
|
|
187
|
-
map.get($tokens, markdown-image-size-caption-margin-bottom)
|
|
188
|
-
);
|
|
143
|
+
margin-top: kbq-css-variable(markdown-image-size-caption-margin-top);
|
|
144
|
+
margin-bottom: kbq-css-variable(markdown-image-size-caption-margin-bottom);
|
|
189
145
|
}
|
|
190
146
|
}
|
|
191
147
|
|
|
@@ -194,10 +150,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
194
150
|
border-left: none;
|
|
195
151
|
border-right: none;
|
|
196
152
|
border-bottom-style: solid;
|
|
197
|
-
border-bottom-width:
|
|
198
|
-
margin:
|
|
199
|
-
--kbq-markdown-hr-size-margin-vertical, map.get($tokens, markdown-hr-size-margin-vertical)
|
|
200
|
-
) 0;
|
|
153
|
+
border-bottom-width: kbq-css-variable(markdown-hr-size-width);
|
|
154
|
+
margin: kbq-css-variable(markdown-hr-size-margin-vertical) 0;
|
|
201
155
|
}
|
|
202
156
|
|
|
203
157
|
.kbq-markdown__table {
|
|
@@ -205,26 +159,22 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
205
159
|
overflow-x: auto;
|
|
206
160
|
display: table;
|
|
207
161
|
border-collapse: collapse;
|
|
208
|
-
margin-bottom:
|
|
209
|
-
--kbq-markdown-table-size-margin-bottom,
|
|
210
|
-
map.get($tokens, markdown-table-size-margin-bottom)
|
|
211
|
-
);
|
|
162
|
+
margin-bottom: kbq-css-variable(markdown-table-size-margin-bottom);
|
|
212
163
|
|
|
213
164
|
td {
|
|
214
165
|
vertical-align: top;
|
|
215
166
|
}
|
|
216
167
|
|
|
217
|
-
th,
|
|
218
|
-
|
|
168
|
+
th,
|
|
169
|
+
td {
|
|
170
|
+
padding: kbq-css-variable(markdown-table-size-padding);
|
|
219
171
|
font-weight: 400;
|
|
220
172
|
}
|
|
221
173
|
}
|
|
222
174
|
|
|
223
175
|
.kbq-markdown__table > .kbq-markdown__thead {
|
|
224
176
|
border-bottom-style: solid;
|
|
225
|
-
border-bottom-width:
|
|
226
|
-
--kbq-markdown-table-size-border-width, map.get($tokens, markdown-table-size-border-width)
|
|
227
|
-
);
|
|
177
|
+
border-bottom-width: kbq-css-variable(markdown-table-size-border-width);
|
|
228
178
|
|
|
229
179
|
text-align: left;
|
|
230
180
|
|
package/modal/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
The dialog is currently divided into 3 modes - `default`, `confirm box`, `custom`.
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
#### Using service to create Confirm Mode
|
|
5
4
|
|
|
6
5
|
```ts
|
|
@@ -18,14 +17,16 @@ showConfirm() {
|
|
|
18
17
|
|
|
19
18
|
```ts
|
|
20
19
|
let dialogRef = modalService.open({
|
|
21
|
-
kbqComponent: CustomComponent
|
|
20
|
+
kbqComponent: CustomComponent,
|
|
22
21
|
});
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
```ts
|
|
26
|
-
@Component({
|
|
25
|
+
@Component({
|
|
26
|
+
/* ... */
|
|
27
|
+
})
|
|
27
28
|
export class CustomComponent {
|
|
28
|
-
constructor(private dialogRef: KbqModalRef) {
|
|
29
|
+
constructor(private dialogRef: KbqModalRef) {}
|
|
29
30
|
|
|
30
31
|
closeDialog() {
|
|
31
32
|
this.modal.destroy({ data: 'this the result data' });
|
|
@@ -1,10 +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;
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
5
|
|
|
9
6
|
.kbq-confirm {
|
|
10
7
|
.kbq-modal-close {
|
|
@@ -14,8 +11,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
14
11
|
.kbq-confirm-footer {
|
|
15
12
|
display: flex;
|
|
16
13
|
|
|
17
|
-
gap:
|
|
18
|
-
--kbq-modal-size-footer-content-gap-horizontal, map.get($tokens, modal-size-footer-content-gap-horizontal)
|
|
19
|
-
);
|
|
14
|
+
gap: kbq-css-variable(modal-size-footer-content-gap-horizontal);
|
|
20
15
|
}
|
|
21
16
|
}
|
package/modal/_modal-theme.scss
CHANGED
|
@@ -2,51 +2,49 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
-
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
@mixin kbq-modal-theme($theme) {
|
|
8
8
|
$modal: map.get(map.get($theme, components), modal);
|
|
9
9
|
|
|
10
10
|
.kbq-modal {
|
|
11
|
-
background: map.get($modal, container-background);
|
|
12
|
-
box-shadow: map.get($modal, container-box-shadow);
|
|
11
|
+
background: kbq-css-variable(modal-container-background, map.get($modal, container-background));
|
|
12
|
+
box-shadow: kbq-css-variable(modal-container-box-shadow, map.get($modal, container-box-shadow));
|
|
13
13
|
|
|
14
14
|
.kbq-modal-header {
|
|
15
15
|
& .kbq-modal-title {
|
|
16
|
-
color: map.get($modal, header);
|
|
16
|
+
color: kbq-css-variable(modal-header, map.get($modal, header));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
& .kbq-modal-close {
|
|
20
|
-
color: map.get($modal, close-button);
|
|
20
|
+
color: kbq-css-variable(modal-close-button, map.get($modal, close-button));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.kbq-modal-content {
|
|
25
|
-
color: map.get($modal, content);
|
|
25
|
+
color: kbq-css-variable(modal-content, map.get($modal, content));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.kbq-modal-header.kbq-modal-body_top-overflow {
|
|
29
|
-
box-shadow: map.get($modal, body-top-shadow);
|
|
29
|
+
box-shadow: kbq-css-variable(modal-body-top-shadow, map.get($modal, body-top-shadow));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.kbq-modal-footer.kbq-modal-body_bottom-overflow {
|
|
33
|
-
box-shadow: map.get($modal, body-bottom-shadow);
|
|
33
|
+
box-shadow: kbq-css-variable(modal-body-bottom-shadow, map.get($modal, body-bottom-shadow));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.kbq-modal-mask {
|
|
38
|
-
background-color: map.get($modal, overlay);
|
|
38
|
+
background-color: kbq-css-variable(modal-overlay, map.get($modal, overlay));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@mixin kbq-modal-typography($config) {
|
|
43
|
-
$tokens: map.get($config, tokens);
|
|
44
|
-
|
|
45
43
|
.kbq-modal-title {
|
|
46
|
-
@include kbq-typography-
|
|
44
|
+
@include kbq-typography-css-variables(modal, header);
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
.kbq-modal-body {
|
|
50
|
-
@include kbq-typography-
|
|
48
|
+
@include kbq-typography-css-variables(modal, content);
|
|
51
49
|
}
|
|
52
50
|
}
|
|
@@ -122,7 +122,7 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
122
122
|
private createDynamicComponent;
|
|
123
123
|
private updateTransformOrigin;
|
|
124
124
|
/**
|
|
125
|
-
* Take care of the body's overflow to decide the
|
|
125
|
+
* Take care of the body's overflow to decide the existence of scrollbar
|
|
126
126
|
* @param plusNum The number that the openModals.length will increase soon
|
|
127
127
|
*/
|
|
128
128
|
private changeBodyOverflow;
|