@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
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
/* stylelint-disable selector-pseudo-class-no-unknown */
|
|
2
|
+
|
|
1
3
|
@use 'sass:meta';
|
|
2
4
|
@use 'sass:map';
|
|
3
5
|
|
|
4
6
|
@use '../functions/string' as *;
|
|
5
7
|
|
|
6
|
-
|
|
7
8
|
@mixin kbq-scrollbar($tokens) {
|
|
8
9
|
$border-width: calc(
|
|
9
|
-
(
|
|
10
|
-
|
|
10
|
+
(
|
|
11
|
+
var(--kbq-scrollbar-size-track-dimension, map.get($tokens, scrollbar-size-track-dimension)) - var(
|
|
12
|
+
--kbq-scrollbar-size-thumb-width,
|
|
13
|
+
map.get($tokens, scrollbar-size-thumb-width)
|
|
14
|
+
)
|
|
15
|
+
) / 2
|
|
11
16
|
);
|
|
12
17
|
|
|
13
18
|
//firefox
|
|
@@ -29,7 +34,6 @@
|
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
|
-
/* stylelint-disable no-descending-specificity */
|
|
33
37
|
&::-webkit-scrollbar-thumb,
|
|
34
38
|
::-webkit-scrollbar-thumb {
|
|
35
39
|
width: var(--kbq-scrollbar-size-thumb-width, map.get($tokens, scrollbar-size-thumb-width));
|
|
@@ -57,7 +61,6 @@
|
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
|
|
60
|
-
|
|
61
64
|
@mixin kbq-scrollbar-theme($theme) {
|
|
62
65
|
$scrollbar: map.get(map.get($theme, components), scrollbar);
|
|
63
66
|
|
|
@@ -8,11 +8,21 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@function kbq-palette($base-palette, $default) {
|
|
11
|
-
$result: map.merge(
|
|
11
|
+
$result: map.merge(
|
|
12
|
+
$base-palette,
|
|
13
|
+
(
|
|
14
|
+
default: $default,
|
|
15
|
+
)
|
|
16
|
+
);
|
|
12
17
|
|
|
13
18
|
// For each hue in the palette, add a "-contrast" color to the map.
|
|
14
19
|
@each $hue, $color in $base-palette {
|
|
15
|
-
$result: map.merge(
|
|
20
|
+
$result: map.merge(
|
|
21
|
+
$result,
|
|
22
|
+
(
|
|
23
|
+
'#{$hue}-contrast': kbq-contrast($base-palette, $hue),
|
|
24
|
+
)
|
|
25
|
+
);
|
|
16
26
|
}
|
|
17
27
|
|
|
18
28
|
@return $result;
|
|
@@ -94,14 +104,11 @@
|
|
|
94
104
|
error-less: map.get($tokens, '#{$scheme}-background-error-less'),
|
|
95
105
|
success: map.get($tokens, '#{$scheme}-background-success'),
|
|
96
106
|
success-fade: map.get($tokens, '#{$scheme}-background-success-fade'),
|
|
97
|
-
// surfacce — удалить после удаления из компонентов
|
|
98
|
-
surface: map.get($tokens, '#{$scheme}-background-surface'),
|
|
99
107
|
theme: map.get($tokens, '#{$scheme}-background-theme'),
|
|
100
108
|
theme-fade: map.get($tokens, '#{$scheme}-background-theme-fade'),
|
|
101
109
|
warning: map.get($tokens, '#{$scheme}-background-warning'),
|
|
102
110
|
warning-fade: map.get($tokens, '#{$scheme}-background-warning-fade'),
|
|
103
111
|
transparent: map.get($tokens, '#{$scheme}-background-transparent'),
|
|
104
|
-
|
|
105
112
|
// будет удалено, после удаления из компонентов ↓
|
|
106
113
|
background: map.get($tokens, '#{$scheme}-background-background'),
|
|
107
114
|
background-disabled: map.get($tokens, '#{$scheme}-background-background-disabled'),
|
|
@@ -122,6 +129,7 @@
|
|
|
122
129
|
theme: map.get($tokens, '#{$scheme}-icon-theme'),
|
|
123
130
|
contrast: map.get($tokens, '#{$scheme}-icon-contrast'),
|
|
124
131
|
contrast-fade: map.get($tokens, '#{$scheme}-icon-contrast-fade'),
|
|
132
|
+
contrast-fade-hover: map.get($tokens, '#{$scheme}-icon-contrast-fade-hover'),
|
|
125
133
|
success: map.get($tokens, '#{$scheme}-icon-success'),
|
|
126
134
|
warning: map.get($tokens, '#{$scheme}-icon-warning'),
|
|
127
135
|
error: map.get($tokens, '#{$scheme}-icon-error'),
|
|
@@ -141,7 +149,7 @@
|
|
|
141
149
|
warning-fade: map.get($tokens, '#{$scheme}-line-warning-fade'),
|
|
142
150
|
error: map.get($tokens, '#{$scheme}-line-error'),
|
|
143
151
|
error-fade: map.get($tokens, '#{$scheme}-line-error-fade'),
|
|
144
|
-
visited: map.get($tokens, '#{$scheme}-line-visited')
|
|
152
|
+
visited: map.get($tokens, '#{$scheme}-line-visited')
|
|
145
153
|
);
|
|
146
154
|
}
|
|
147
155
|
|
|
@@ -163,9 +171,7 @@
|
|
|
163
171
|
error-fade-hover: map.get($tokens, '#{$scheme}-states-background-error-fade-hover'),
|
|
164
172
|
error-fade-active: map.get($tokens, '#{$scheme}-states-background-error-fade-active'),
|
|
165
173
|
// будет удалено, после удаления из компонентов ↓
|
|
166
|
-
error-less: map.get($tokens, '#{$scheme}-states-background-error-less')
|
|
167
|
-
ghost-hover: map.get($tokens, '#{$scheme}-states-background-ghost-hover'),
|
|
168
|
-
ghost-active: map.get($tokens, '#{$scheme}-states-background-ghost-active')
|
|
174
|
+
error-less: map.get($tokens, '#{$scheme}-states-background-error-less')
|
|
169
175
|
);
|
|
170
176
|
}
|
|
171
177
|
|
|
@@ -209,9 +215,7 @@
|
|
|
209
215
|
}
|
|
210
216
|
|
|
211
217
|
@function _theme_states-others($tokens, $scheme) {
|
|
212
|
-
@return (
|
|
213
|
-
brand: map.get($tokens, '#{$scheme}-states-others-brand')
|
|
214
|
-
);
|
|
218
|
+
@return (brand: map.get($tokens, '#{$scheme}-states-others-brand'));
|
|
215
219
|
}
|
|
216
220
|
|
|
217
221
|
@function _theme_states($tokens, $scheme) {
|
|
@@ -221,7 +225,6 @@
|
|
|
221
225
|
icon: _theme_states-icon($tokens, $scheme),
|
|
222
226
|
line: _theme_states-line($tokens, $scheme),
|
|
223
227
|
others: _theme_states-others($tokens, $scheme),
|
|
224
|
-
|
|
225
228
|
// будет удалено, после удаления из компонентов ↓
|
|
226
229
|
focused-color: map.get($tokens, '#{$scheme}-states-focused-color'),
|
|
227
230
|
focused-color-error: map.get($tokens, '#{$scheme}-states-focused-color-error'),
|
|
@@ -232,25 +235,27 @@
|
|
|
232
235
|
}
|
|
233
236
|
|
|
234
237
|
@function kbq-palette($base-palette, $default) {
|
|
235
|
-
@return map.merge(
|
|
238
|
+
@return map.merge(
|
|
239
|
+
$base-palette,
|
|
240
|
+
(
|
|
241
|
+
default: $default,
|
|
242
|
+
)
|
|
243
|
+
);
|
|
236
244
|
}
|
|
237
245
|
|
|
238
246
|
@function _theme_palette($tokens, $scheme, $name) {
|
|
239
247
|
@return kbq-palette(
|
|
240
248
|
map.get($tokens, '#{$scheme}-#{$name}-palette'),
|
|
241
249
|
map.get($tokens, '#{$scheme}-#{$name}-default')
|
|
242
|
-
)
|
|
250
|
+
);
|
|
243
251
|
}
|
|
244
252
|
|
|
245
253
|
@function _theme_palette_neutral($tokens, $scheme) {
|
|
246
|
-
@return (
|
|
247
|
-
white: map.get($tokens, '#{$scheme}-neutral-white'),
|
|
248
|
-
black: map.get($tokens, '#{$scheme}-neutral-black'),
|
|
249
|
-
)
|
|
254
|
+
@return (white: map.get($tokens, '#{$scheme}-neutral-white'), black: map.get($tokens, '#{$scheme}-neutral-black'));
|
|
250
255
|
}
|
|
251
256
|
|
|
252
257
|
@function kbq-light-theme($tokens) {
|
|
253
|
-
$scheme: 'light
|
|
258
|
+
$scheme: 'light';
|
|
254
259
|
|
|
255
260
|
@return (
|
|
256
261
|
is-dark: false,
|
|
@@ -260,7 +265,6 @@
|
|
|
260
265
|
icon: _theme_icon($tokens, $scheme),
|
|
261
266
|
line: _theme_line($tokens, $scheme),
|
|
262
267
|
states: _theme_states($tokens, $scheme),
|
|
263
|
-
|
|
264
268
|
theme: _theme_palette($tokens, $scheme, theme),
|
|
265
269
|
success: _theme_palette($tokens, $scheme, success),
|
|
266
270
|
warning: _theme_palette($tokens, $scheme, warning),
|
|
@@ -271,19 +275,16 @@
|
|
|
271
275
|
black: _theme_palette($tokens, $scheme, black),
|
|
272
276
|
brand: _theme_palette($tokens, $scheme, brand),
|
|
273
277
|
purple: _theme_palette($tokens, $scheme, purple),
|
|
274
|
-
|
|
275
278
|
// будет удалено, после удаления из компонентов ↓
|
|
276
|
-
secondary: _theme_palette($tokens, $scheme, secondary),
|
|
277
279
|
info: _theme_palette($tokens, $scheme, info),
|
|
278
280
|
// будет удалено, после удаления из компонентов ↑
|
|
279
|
-
|
|
280
281
|
components: kbq-components-theme($tokens, $scheme),
|
|
281
282
|
tokens: $tokens
|
|
282
283
|
);
|
|
283
284
|
}
|
|
284
285
|
|
|
285
286
|
@function kbq-dark-theme($tokens) {
|
|
286
|
-
$scheme: 'dark
|
|
287
|
+
$scheme: 'dark';
|
|
287
288
|
|
|
288
289
|
@return (
|
|
289
290
|
is-dark: true,
|
|
@@ -293,7 +294,6 @@
|
|
|
293
294
|
icon: _theme_icon($tokens, $scheme),
|
|
294
295
|
line: _theme_line($tokens, $scheme),
|
|
295
296
|
states: _theme_states($tokens, $scheme),
|
|
296
|
-
|
|
297
297
|
theme: _theme_palette($tokens, $scheme, theme),
|
|
298
298
|
success: _theme_palette($tokens, $scheme, success),
|
|
299
299
|
warning: _theme_palette($tokens, $scheme, warning),
|
|
@@ -304,12 +304,9 @@
|
|
|
304
304
|
black: _theme_palette($tokens, $scheme, black),
|
|
305
305
|
brand: _theme_palette($tokens, $scheme, brand),
|
|
306
306
|
purple: _theme_palette($tokens, $scheme, purple),
|
|
307
|
-
|
|
308
307
|
// будет удалено, после удаления из компонентов ↓
|
|
309
|
-
secondary: _theme_palette($tokens, $scheme, secondary),
|
|
310
308
|
info: _theme_palette($tokens, $scheme, info),
|
|
311
309
|
// будет удалено, после удаления из компонентов ↑
|
|
312
|
-
|
|
313
310
|
components: kbq-components-theme($tokens, $scheme),
|
|
314
311
|
tokens: $tokens
|
|
315
312
|
);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@use 'sass:meta';
|
|
3
3
|
@use 'sass:string';
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
@function kbq-typography-level(
|
|
7
6
|
$font-size,
|
|
8
7
|
$line-height: $font-size,
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
@function kbq-font-family($config, $level: null) {
|
|
56
55
|
$font-family: map.get($config, font-family);
|
|
57
56
|
|
|
58
|
-
@if $level
|
|
57
|
+
@if $level {
|
|
59
58
|
$font-family: _kbq-get-type-value($config, $level, font-family);
|
|
60
59
|
}
|
|
61
60
|
|
|
@@ -2,89 +2,104 @@
|
|
|
2
2
|
|
|
3
3
|
@use 'typography-utils' as *;
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
@function kbq-typography-config($tokens) {
|
|
7
6
|
$font-family: map.get($tokens, font-family-base);
|
|
8
7
|
$typography: map.get(map.get($tokens, koobiq), typography);
|
|
9
8
|
|
|
10
9
|
$config: (
|
|
11
10
|
//legacy will be deleted
|
|
12
|
-
display-1:
|
|
13
|
-
display-2:
|
|
14
|
-
display-3:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
body
|
|
22
|
-
body-
|
|
23
|
-
body-
|
|
24
|
-
body-mono
|
|
25
|
-
body-
|
|
26
|
-
|
|
27
|
-
caption:
|
|
28
|
-
caption-strong:
|
|
29
|
-
caption-caps:
|
|
30
|
-
caption-mono:
|
|
31
|
-
caption-mono-strong:
|
|
32
|
-
caption-tabular:
|
|
33
|
-
|
|
11
|
+
display-1: map.get($typography, display-1),
|
|
12
|
+
display-2: map.get($typography, display-2),
|
|
13
|
+
display-3: map.get($typography, display-3),
|
|
14
|
+
display-1-strong: map.get($typography, display-1-strong),
|
|
15
|
+
display-2-strong: map.get($typography, display-2-strong),
|
|
16
|
+
display-3-strong: map.get($typography, display-3-strong),
|
|
17
|
+
headline: map.get($typography, headline),
|
|
18
|
+
subheading: map.get($typography, subheading),
|
|
19
|
+
title: map.get($typography, title),
|
|
20
|
+
body: map.get($typography, body),
|
|
21
|
+
body-strong: map.get($typography, body-strong),
|
|
22
|
+
body-caps: map.get($typography, body-caps),
|
|
23
|
+
body-mono: map.get($typography, body-mono),
|
|
24
|
+
body-mono-strong: map.get($typography, body-mono-strong),
|
|
25
|
+
body-tabular: map.get($typography, body-tabular),
|
|
26
|
+
caption: map.get($typography, caption),
|
|
27
|
+
caption-strong: map.get($typography, caption-strong),
|
|
28
|
+
caption-caps: map.get($typography, caption-caps),
|
|
29
|
+
caption-mono: map.get($typography, caption-mono),
|
|
30
|
+
caption-mono-strong: map.get($typography, caption-mono-strong),
|
|
31
|
+
caption-tabular: map.get($typography, caption-tabular),
|
|
34
32
|
//small-text: map.get($typography, small-text),
|
|
35
|
-
extra-small-text:
|
|
36
|
-
extra-small-text-caps:
|
|
37
|
-
extra-small-text-mono:
|
|
38
|
-
extra-small-text-strong:
|
|
39
|
-
|
|
33
|
+
extra-small-text: map.get($typography, extra-small-text),
|
|
34
|
+
extra-small-text-caps: map.get($typography, extra-small-text-caps),
|
|
35
|
+
extra-small-text-mono: map.get($typography, extra-small-text-mono),
|
|
36
|
+
extra-small-text-strong: map.get($typography, extra-small-text-strong),
|
|
40
37
|
//new
|
|
41
|
-
display-big:
|
|
42
|
-
display-normal:
|
|
43
|
-
display-compact:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
text-
|
|
48
|
-
text-
|
|
49
|
-
text-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
caps-
|
|
54
|
-
caps-
|
|
55
|
-
caps-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
mono-
|
|
60
|
-
mono-
|
|
61
|
-
mono-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
tabular-
|
|
66
|
-
tabular-
|
|
67
|
-
tabular-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
italic-
|
|
72
|
-
italic-
|
|
73
|
-
italic-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
38
|
+
display-big: map.get($typography, display-big),
|
|
39
|
+
display-normal: map.get($typography, display-normal),
|
|
40
|
+
display-compact: map.get($typography, display-compact),
|
|
41
|
+
display-big-strong: map.get($typography, display-big-strong),
|
|
42
|
+
display-normal-strong: map.get($typography, display-normal-strong),
|
|
43
|
+
display-compact-strong: map.get($typography, display-compact-strong),
|
|
44
|
+
text-big: map.get($typography, text-big),
|
|
45
|
+
text-big-strong: map.get($typography, text-big-strong),
|
|
46
|
+
text-normal: map.get($typography, text-normal),
|
|
47
|
+
text-normal-strong: map.get($typography, text-normal-strong),
|
|
48
|
+
text-compact: map.get($typography, text-compact),
|
|
49
|
+
text-compact-strong: map.get($typography, text-compact-strong),
|
|
50
|
+
caps-big: map.get($typography, caps-big),
|
|
51
|
+
caps-big-strong: map.get($typography, caps-big-strong),
|
|
52
|
+
caps-normal: map.get($typography, caps-normal),
|
|
53
|
+
caps-normal-strong: map.get($typography, caps-normal-strong),
|
|
54
|
+
caps-compact: map.get($typography, caps-compact),
|
|
55
|
+
caps-compact-strong: map.get($typography, caps-compact-strong),
|
|
56
|
+
mono-big: map.get($typography, mono-big),
|
|
57
|
+
mono-big-strong: map.get($typography, mono-big-strong),
|
|
58
|
+
mono-normal: map.get($typography, mono-normal),
|
|
59
|
+
mono-normal-strong: map.get($typography, mono-normal-strong),
|
|
60
|
+
mono-compact: map.get($typography, mono-compact),
|
|
61
|
+
mono-compact-strong: map.get($typography, mono-compact-strong),
|
|
62
|
+
tabular-big: map.get($typography, tabular-big),
|
|
63
|
+
tabular-big-strong: map.get($typography, tabular-big-strong),
|
|
64
|
+
tabular-normal: map.get($typography, tabular-normal),
|
|
65
|
+
tabular-normal-strong: map.get($typography, tabular-normal-strong),
|
|
66
|
+
tabular-compact: map.get($typography, tabular-compact),
|
|
67
|
+
tabular-compact-strong: map.get($typography, tabular-compact-strong),
|
|
68
|
+
italic-big: map.get($typography, italic-big),
|
|
69
|
+
italic-big-strong: map.get($typography, italic-big-strong),
|
|
70
|
+
italic-normal: map.get($typography, italic-normal),
|
|
71
|
+
italic-normal-strong: map.get($typography, italic-normal-strong),
|
|
72
|
+
italic-compact: map.get($typography, italic-compact),
|
|
73
|
+
italic-compact-strong: map.get($typography, italic-compact-strong),
|
|
74
|
+
mono-codeblock: map.get($typography, mono-codeblock),
|
|
75
|
+
navbar-title: map.get($typography, navbar-title)
|
|
77
76
|
);
|
|
78
77
|
|
|
79
78
|
@each $key, $level in $config {
|
|
80
|
-
@if map.get($level, font-family)
|
|
81
|
-
$new-level: map.merge(
|
|
82
|
-
|
|
79
|
+
@if not map.get($level, font-family) {
|
|
80
|
+
$new-level: map.merge(
|
|
81
|
+
$level,
|
|
82
|
+
(
|
|
83
|
+
font-family: $font-family,
|
|
84
|
+
)
|
|
85
|
+
);
|
|
86
|
+
$config: map.merge(
|
|
87
|
+
$config,
|
|
88
|
+
(
|
|
89
|
+
$key: $new-level,
|
|
90
|
+
)
|
|
91
|
+
);
|
|
83
92
|
}
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
// Add the base font family to the config.
|
|
87
|
-
@return map.merge(
|
|
96
|
+
@return map.merge(
|
|
97
|
+
$config,
|
|
98
|
+
(
|
|
99
|
+
font-family: $font-family,
|
|
100
|
+
tokens: $tokens,
|
|
101
|
+
)
|
|
102
|
+
);
|
|
88
103
|
}
|
|
89
104
|
|
|
90
105
|
@function kbq-markdown-typography-config($tokens) {
|
|
@@ -92,32 +107,46 @@
|
|
|
92
107
|
$md-typography: map.get(map.get($tokens, md-typography), md-typography);
|
|
93
108
|
|
|
94
109
|
$config: (
|
|
95
|
-
md-h1:
|
|
96
|
-
md-h2:
|
|
97
|
-
md-h3:
|
|
98
|
-
md-h4:
|
|
99
|
-
md-h5:
|
|
100
|
-
md-h6:
|
|
101
|
-
|
|
102
|
-
md-body:
|
|
103
|
-
md-
|
|
104
|
-
md-
|
|
105
|
-
md-table-
|
|
106
|
-
md-table-header: map.get($md-typography, md-table-header),
|
|
110
|
+
md-h1: map.get($md-typography, md-h1),
|
|
111
|
+
md-h2: map.get($md-typography, md-h2),
|
|
112
|
+
md-h3: map.get($md-typography, md-h3),
|
|
113
|
+
md-h4: map.get($md-typography, md-h4),
|
|
114
|
+
md-h5: map.get($md-typography, md-h5),
|
|
115
|
+
md-h6: map.get($md-typography, md-h6),
|
|
116
|
+
md-body: map.get($md-typography, md-body),
|
|
117
|
+
md-body-mono: map.get($md-typography, md-body-mono),
|
|
118
|
+
md-caption: map.get($md-typography, md-caption),
|
|
119
|
+
md-table-cell: map.get($md-typography, md-table-cell),
|
|
120
|
+
md-table-header: map.get($md-typography, md-table-header),
|
|
107
121
|
);
|
|
108
122
|
|
|
109
123
|
@each $key, $level in $config {
|
|
110
|
-
@if map.get($level, font-family)
|
|
111
|
-
$new-level: map.merge(
|
|
112
|
-
|
|
124
|
+
@if not map.get($level, font-family) {
|
|
125
|
+
$new-level: map.merge(
|
|
126
|
+
$level,
|
|
127
|
+
(
|
|
128
|
+
font-family: $font-family,
|
|
129
|
+
)
|
|
130
|
+
);
|
|
131
|
+
$config: map.merge(
|
|
132
|
+
$config,
|
|
133
|
+
(
|
|
134
|
+
$key: $new-level,
|
|
135
|
+
)
|
|
136
|
+
);
|
|
113
137
|
}
|
|
114
138
|
}
|
|
115
139
|
|
|
116
140
|
// Add the base font family to the config.
|
|
117
|
-
@return map.merge(
|
|
141
|
+
@return map.merge(
|
|
142
|
+
$config,
|
|
143
|
+
(
|
|
144
|
+
font-family: $font-family,
|
|
145
|
+
tokens: $tokens,
|
|
146
|
+
)
|
|
147
|
+
);
|
|
118
148
|
}
|
|
119
149
|
|
|
120
|
-
|
|
121
150
|
@mixin kbq-base-typography($config) {
|
|
122
151
|
//legacy will be deleted
|
|
123
152
|
.kbq-display-1 {
|
|
@@ -132,6 +161,18 @@
|
|
|
132
161
|
@include kbq-typography-level-to-styles($config, display-3);
|
|
133
162
|
}
|
|
134
163
|
|
|
164
|
+
.kbq-display-1-strong {
|
|
165
|
+
@include kbq-typography-level-to-styles($config, display-1-strong);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.kbq-display-2-strong {
|
|
169
|
+
@include kbq-typography-level-to-styles($config, display-2-strong);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.kbq-display-3-strong {
|
|
173
|
+
@include kbq-typography-level-to-styles($config, display-3-strong);
|
|
174
|
+
}
|
|
175
|
+
|
|
135
176
|
.kbq-headline {
|
|
136
177
|
@include kbq-typography-level-to-styles($config, headline);
|
|
137
178
|
}
|
|
@@ -209,14 +250,26 @@
|
|
|
209
250
|
@include kbq-typography-level-to-styles($config, display-big);
|
|
210
251
|
}
|
|
211
252
|
|
|
253
|
+
.kbq-display-big-strong {
|
|
254
|
+
@include kbq-typography-level-to-styles($config, display-big-strong);
|
|
255
|
+
}
|
|
256
|
+
|
|
212
257
|
.kbq-display-normal {
|
|
213
258
|
@include kbq-typography-level-to-styles($config, display-normal);
|
|
214
259
|
}
|
|
215
260
|
|
|
261
|
+
.kbq-display-normal-strong {
|
|
262
|
+
@include kbq-typography-level-to-styles($config, display-normal-strong);
|
|
263
|
+
}
|
|
264
|
+
|
|
216
265
|
.kbq-display-compact {
|
|
217
266
|
@include kbq-typography-level-to-styles($config, display-compact);
|
|
218
267
|
}
|
|
219
268
|
|
|
269
|
+
.kbq-display-compact-strong {
|
|
270
|
+
@include kbq-typography-level-to-styles($config, display-compact-strong);
|
|
271
|
+
}
|
|
272
|
+
|
|
220
273
|
.kbq-text-big {
|
|
221
274
|
@include kbq-typography-level-to-styles($config, text-big);
|
|
222
275
|
}
|