@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,10 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../../styles/common/rtl';
|
|
5
5
|
|
|
6
|
-
@use '../tokens'
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
6
|
+
@use '../common/tokens' as *;
|
|
10
7
|
|
|
11
8
|
/*
|
|
12
9
|
* Responsive attributes
|
|
@@ -28,7 +25,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
@mixin flex-order-for-name($sizes: null) {
|
|
31
|
-
@if $sizes
|
|
28
|
+
@if not $sizes {
|
|
32
29
|
$sizes: '';
|
|
33
30
|
|
|
34
31
|
.flex-order {
|
|
@@ -56,8 +53,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
55
|
|
|
59
|
-
@mixin offset-for-name($sizes:null) {
|
|
60
|
-
@if $sizes
|
|
56
|
+
@mixin offset-for-name($sizes: null) {
|
|
57
|
+
@if not $sizes {
|
|
61
58
|
$sizes: '';
|
|
62
59
|
}
|
|
63
60
|
|
|
@@ -72,8 +69,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
72
69
|
$suffix: '#{$i * 5}';
|
|
73
70
|
}
|
|
74
71
|
|
|
75
|
-
$offsets:
|
|
76
|
-
'.offset-#{$suffix}, ' +
|
|
72
|
+
$offsets: '.offset-#{$suffix}, ' +
|
|
77
73
|
'.flex-offset-#{$suffix}, ' +
|
|
78
74
|
'.layout-margin .flex-offset-#{$suffix}, ' +
|
|
79
75
|
'.layout-margin .offset-#{$suffix}';
|
|
@@ -99,8 +95,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
99
95
|
$suffix: '#{$i}';
|
|
100
96
|
}
|
|
101
97
|
|
|
102
|
-
$offsets:
|
|
103
|
-
'.offset-#{$suffix}, ' +
|
|
98
|
+
$offsets: '.offset-#{$suffix}, ' +
|
|
104
99
|
'.flex-offset-#{$suffix}, ' +
|
|
105
100
|
'.layout-margin .flex-offset-#{$suffix}, ' +
|
|
106
101
|
'.layout-margin .offset-#{$suffix}';
|
|
@@ -122,8 +117,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
122
117
|
$suffix: '#{$i}';
|
|
123
118
|
}
|
|
124
119
|
|
|
125
|
-
$offsets:
|
|
126
|
-
'.offset-#{$suffix}, ' +
|
|
120
|
+
$offsets: '.offset-#{$suffix}, ' +
|
|
127
121
|
'.flex-offset-#{$suffix}, ' +
|
|
128
122
|
'.layout-margin .flex-offset-#{$suffix}, ' +
|
|
129
123
|
'.layout-margin .offset-#{$suffix}';
|
|
@@ -136,7 +130,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
136
130
|
}
|
|
137
131
|
|
|
138
132
|
@mixin layout-for-name($name: null) {
|
|
139
|
-
@if $name
|
|
133
|
+
@if not $name {
|
|
140
134
|
$name: '';
|
|
141
135
|
}
|
|
142
136
|
|
|
@@ -169,7 +163,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
169
163
|
@mixin flex-properties-for-name($name: null) {
|
|
170
164
|
$flexName: 'flex';
|
|
171
165
|
|
|
172
|
-
@if $name
|
|
166
|
+
@if $name {
|
|
173
167
|
$flexName: 'flex-#{$name}';
|
|
174
168
|
$name: '-#{$name}';
|
|
175
169
|
} @else {
|
|
@@ -177,13 +171,27 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
177
171
|
}
|
|
178
172
|
|
|
179
173
|
// === flex: 1 1 0%;
|
|
180
|
-
.#{$flexName}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
.#{$flexName}-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
.#{$flexName}-
|
|
174
|
+
.#{$flexName} {
|
|
175
|
+
flex: 1;
|
|
176
|
+
}
|
|
177
|
+
.#{$flexName}-grow {
|
|
178
|
+
flex: 1 1 100%;
|
|
179
|
+
}
|
|
180
|
+
.#{$flexName}-initial {
|
|
181
|
+
flex: 0 1 auto;
|
|
182
|
+
}
|
|
183
|
+
.#{$flexName}-auto {
|
|
184
|
+
flex: 1 1 auto;
|
|
185
|
+
}
|
|
186
|
+
.#{$flexName}-none {
|
|
187
|
+
flex: 0 0 auto;
|
|
188
|
+
}
|
|
189
|
+
.#{$flexName}-no-shrink {
|
|
190
|
+
flex: 1 0 auto;
|
|
191
|
+
}
|
|
192
|
+
.#{$flexName}-no-grow {
|
|
193
|
+
flex: 0 1 auto;
|
|
194
|
+
}
|
|
187
195
|
|
|
188
196
|
// (1-20) * 5 = 0-100%
|
|
189
197
|
@for $i from 0 through 20 {
|
|
@@ -334,7 +342,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
334
342
|
}
|
|
335
343
|
|
|
336
344
|
@mixin layout-align-for-name($suffix: null) {
|
|
337
|
-
|
|
338
345
|
// Alignment attributes for layout containers' children
|
|
339
346
|
// Arrange on the Main Axis
|
|
340
347
|
// center, start, end, space-between, space-around
|
|
@@ -342,7 +349,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
342
349
|
// ------------------------------
|
|
343
350
|
|
|
344
351
|
$name: 'layout-align';
|
|
345
|
-
@if $suffix
|
|
352
|
+
@if $suffix {
|
|
346
353
|
$name: 'layout-align-#{$suffix}';
|
|
347
354
|
}
|
|
348
355
|
|
|
@@ -456,19 +463,19 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
456
463
|
|
|
457
464
|
@mixin layout-indents() {
|
|
458
465
|
$sizes: (
|
|
459
|
-
'3xs':
|
|
460
|
-
'xxs':
|
|
461
|
-
'xs':
|
|
462
|
-
's':
|
|
463
|
-
'm':
|
|
464
|
-
'l':
|
|
465
|
-
'xl':
|
|
466
|
-
'xxl':
|
|
467
|
-
'3xl':
|
|
468
|
-
'4xl':
|
|
469
|
-
'5xl':
|
|
470
|
-
'6xl':
|
|
471
|
-
'7xl':
|
|
466
|
+
'3xs': kbq-css-variable(size-3xs),
|
|
467
|
+
'xxs': kbq-css-variable(size-xxs),
|
|
468
|
+
'xs': kbq-css-variable(size-xs),
|
|
469
|
+
's': kbq-css-variable(size-s),
|
|
470
|
+
'm': kbq-css-variable(size-m),
|
|
471
|
+
'l': kbq-css-variable(size-l),
|
|
472
|
+
'xl': kbq-css-variable(size-xl),
|
|
473
|
+
'xxl': kbq-css-variable(size-xxl),
|
|
474
|
+
'3xl': kbq-css-variable(size-3xl),
|
|
475
|
+
'4xl': kbq-css-variable(size-4xl),
|
|
476
|
+
'5xl': kbq-css-variable(size-5xl),
|
|
477
|
+
'6xl': kbq-css-variable(size-6xl),
|
|
478
|
+
'7xl': kbq-css-variable(size-7xl),
|
|
472
479
|
);
|
|
473
480
|
|
|
474
481
|
$indents: 'padding', 'margin';
|
|
@@ -524,4 +531,3 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
524
531
|
|
|
525
532
|
@include layout-indents();
|
|
526
533
|
}
|
|
527
|
-
|
|
@@ -1,9 +1,26 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
1
2
|
export declare enum MeasurementSystem {
|
|
2
3
|
SI = "SI",
|
|
3
4
|
IEC = "IEC"
|
|
4
5
|
}
|
|
5
|
-
export
|
|
6
|
-
defaultUnitSystem:
|
|
6
|
+
export interface SizeUnitsConfig {
|
|
7
|
+
defaultUnitSystem: string;
|
|
8
|
+
defaultPrecision: number;
|
|
9
|
+
unitSystems: {
|
|
10
|
+
[MeasurementSystem.SI]: {
|
|
11
|
+
abbreviations: string[];
|
|
12
|
+
base: number;
|
|
13
|
+
power: number;
|
|
14
|
+
};
|
|
15
|
+
[MeasurementSystem.IEC]: {
|
|
16
|
+
abbreviations: string[];
|
|
17
|
+
base: number;
|
|
18
|
+
power: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const KBQ_SIZE_UNITS_DEFAULT_CONFIG: {
|
|
23
|
+
defaultUnitSystem: string;
|
|
7
24
|
defaultPrecision: number;
|
|
8
25
|
unitSystems: {
|
|
9
26
|
SI: {
|
|
@@ -18,3 +35,4 @@ export declare const sizeUnitsConfig: {
|
|
|
18
35
|
};
|
|
19
36
|
};
|
|
20
37
|
};
|
|
38
|
+
export declare const KBQ_SIZE_UNITS_CONFIG: InjectionToken<SizeUnitsConfig>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { KbqLocaleService } from '../../locales';
|
|
3
|
+
import { SizeUnitsConfig } from './config';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class KbqDataSizePipe implements PipeTransform {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
static
|
|
12
|
-
static
|
|
6
|
+
readonly externalConfig: SizeUnitsConfig;
|
|
7
|
+
private localeService?;
|
|
8
|
+
private config;
|
|
9
|
+
constructor(externalConfig: SizeUnitsConfig, localeService?: KbqLocaleService | undefined);
|
|
10
|
+
transform(source: number, precision?: number, unitSystemName?: string): string;
|
|
11
|
+
private updateLocaleParams;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqDataSizePipe, [{ optional: true; }, { optional: true; }]>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<KbqDataSizePipe, "kbqDataSize", true>;
|
|
13
14
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const formatDataSize: (value: number, systemCode?: MeasurementSystem, precision?: number) => {
|
|
1
|
+
export declare const formatDataSize: (value: number, precision: number, system: any) => {
|
|
3
2
|
value: string;
|
|
4
3
|
unit: string;
|
|
5
4
|
};
|
|
@@ -7,10 +6,10 @@ export declare const formatDataSize: (value: number, systemCode?: MeasurementSys
|
|
|
7
6
|
* Переводит байты в Кб, Мб, Гб
|
|
8
7
|
*
|
|
9
8
|
* @param value количество байт
|
|
10
|
-
* @param
|
|
9
|
+
* @param system система измерения
|
|
11
10
|
* @param threshold нижний порог подсчета
|
|
12
11
|
*/
|
|
13
|
-
export declare const getHumanizedBytes: (value: number,
|
|
12
|
+
export declare const getHumanizedBytes: (value: number, system: any, threshold?: number) => {
|
|
14
13
|
result: number;
|
|
15
14
|
unit: string;
|
|
16
15
|
};
|
|
@@ -3,85 +3,83 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/theming/theming';
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
$kbq-datepicker-selected-fade-amount: 0.6;
|
|
9
|
-
$kbq-datepicker-today-fade-amount: 0.2;
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
10
7
|
|
|
11
8
|
@mixin kbq-datepicker-theme($theme) {
|
|
12
9
|
$datepicker: map.get(map.get($theme, components), datepicker);
|
|
13
10
|
|
|
14
|
-
$container: map.get($datepicker, container);
|
|
15
|
-
$header: map.get($datepicker, header);
|
|
16
|
-
$cell: map.get($datepicker, cell);
|
|
17
|
-
|
|
18
11
|
.kbq-datepicker__content {
|
|
19
|
-
background: map.get($container, background);
|
|
20
|
-
box-shadow: map.get($container, box-shadow);
|
|
12
|
+
background: kbq-css-variable(datepicker-container-background, map.get($datepicker, container, background));
|
|
13
|
+
box-shadow: kbq-css-variable(datepicker-container-bo-shadow, map.get($datepicker, container, box-shadow));
|
|
21
14
|
}
|
|
22
15
|
|
|
23
16
|
.kbq-calendar__table-header {
|
|
24
|
-
color: map.get($header, text);
|
|
17
|
+
color: kbq-css-variable(datepicker-header-text, map.get($datepicker, header, text));
|
|
25
18
|
}
|
|
26
19
|
|
|
27
20
|
.kbq-calendar__table-header-divider::after {
|
|
28
|
-
background: map.get($header, divider);
|
|
21
|
+
background: kbq-css-variable(datepicker-header-divider, map.get($datepicker, header, divider));
|
|
29
22
|
}
|
|
30
23
|
|
|
31
24
|
.kbq-calendar__body-cell-content {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
background: kbq-css-variable(
|
|
26
|
+
datepicker-cell-default-background,
|
|
27
|
+
map.get($datepicker, cell, default, background)
|
|
28
|
+
);
|
|
29
|
+
color: kbq-css-variable(datepicker-cell-default-text, map.get($datepicker, cell, default, text));
|
|
36
30
|
|
|
37
31
|
&.kbq-calendar__body-today {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
background: kbq-css-variable(
|
|
33
|
+
datepicker-cell-today-background,
|
|
34
|
+
map.get($datepicker, cell, today, background)
|
|
35
|
+
);
|
|
36
|
+
color: kbq-css-variable(datepicker-cell-today-text, map.get($datepicker, cell, today, text));
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
&:hover:not(.kbq-disabled) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
background: kbq-css-variable(
|
|
41
|
+
datepicker-cell-hover-background,
|
|
42
|
+
map.get($datepicker, cell, hover, background)
|
|
43
|
+
);
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
&:active:not(.kbq-disabled) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
background: kbq-css-variable(
|
|
48
|
+
datepicker-cell-active-background,
|
|
49
|
+
map.get($datepicker, cell, active, background)
|
|
50
|
+
);
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
&.kbq-selected:not(.kbq-disabled) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
background: kbq-css-variable(
|
|
55
|
+
datepicker-cell-selected-background,
|
|
56
|
+
map.get($datepicker, cell, selected, background)
|
|
57
|
+
);
|
|
58
|
+
color: kbq-css-variable(datepicker-cell-selected-text, map.get($datepicker, cell, selected, text));
|
|
61
59
|
|
|
62
60
|
&:hover {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
background: kbq-css-variable(
|
|
62
|
+
datepicker-cell-selected-hover-background,
|
|
63
|
+
map.get($datepicker, cell, selected-hover, background)
|
|
64
|
+
);
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
&.kbq-disabled {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
background: kbq-css-variable(
|
|
70
|
+
datepicker-cell-disabled-background,
|
|
71
|
+
map.get($datepicker, cell, disabled, background)
|
|
72
|
+
);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
@mixin kbq-datepicker-typography($config) {
|
|
78
|
-
$tokens: map.get($config, tokens);
|
|
79
|
-
|
|
80
78
|
.kbq-calendar {
|
|
81
|
-
@include kbq-typography-
|
|
79
|
+
@include kbq-typography-css-variables(datepicker, text);
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
.kbq-calendar__table-header th {
|
|
85
|
-
@include kbq-typography-
|
|
83
|
+
@include kbq-typography-css-variables(datepicker, text);
|
|
86
84
|
}
|
|
87
85
|
}
|
|
@@ -2,11 +2,10 @@
|
|
|
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
|
|
|
9
|
-
|
|
10
9
|
.kbq-calendar__body-cell {
|
|
11
10
|
position: relative;
|
|
12
11
|
height: 0;
|
|
@@ -33,14 +32,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
33
32
|
// Prevents text being off-center on Android.
|
|
34
33
|
line-height: 1;
|
|
35
34
|
|
|
36
|
-
border-radius:
|
|
37
|
-
--kbq-datepicker-size-grid-cell-border-radius,
|
|
38
|
-
map.get($tokens, datepicker-size-grid-cell-border-radius)
|
|
39
|
-
);
|
|
35
|
+
border-radius: kbq-css-variable(datepicker-size-grid-cell-border-radius);
|
|
40
36
|
|
|
41
|
-
margin-bottom:
|
|
42
|
-
--kbq-datepicker-size-grid-content-gap-vertical,
|
|
43
|
-
map.get($tokens, datepicker-size-grid-content-gap-vertical)
|
|
44
|
-
);
|
|
37
|
+
margin-bottom: kbq-css-variable(datepicker-size-grid-content-gap-vertical);
|
|
45
38
|
}
|
|
46
|
-
|
|
@@ -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,17 +11,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
11
11
|
flex-direction: row;
|
|
12
12
|
justify-content: space-between;
|
|
13
13
|
|
|
14
|
-
padding-right:
|
|
15
|
-
--kbq-datepicker-size-header-padding-horizontal, map.get($tokens, datepicker-size-header-padding-horizontal)
|
|
16
|
-
);
|
|
14
|
+
padding-right: kbq-css-variable(datepicker-size-header-padding-horizontal);
|
|
17
15
|
|
|
18
|
-
padding-left:
|
|
19
|
-
--kbq-datepicker-size-header-padding-horizontal, map.get($tokens, datepicker-size-header-padding-horizontal)
|
|
20
|
-
);
|
|
16
|
+
padding-left: kbq-css-variable(datepicker-size-header-padding-horizontal);
|
|
21
17
|
|
|
22
|
-
margin-bottom:
|
|
23
|
-
--kbq-datepicker-size-header-margin-bottom, map.get($tokens, datepicker-size-header-margin-bottom)
|
|
24
|
-
);
|
|
18
|
+
margin-bottom: kbq-css-variable(datepicker-size-header-margin-bottom);
|
|
25
19
|
}
|
|
26
20
|
|
|
27
21
|
.kbq-calendar-header__select {
|
package/datepicker/calendar.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,15 +11,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.kbq-calendar__content {
|
|
14
|
-
padding-right:
|
|
15
|
-
--kbq-datepicker-size-grid-padding-horizontal,
|
|
16
|
-
map.get($tokens, datepicker-size-grid-padding-horizontal)
|
|
17
|
-
);
|
|
14
|
+
padding-right: kbq-css-variable(datepicker-size-grid-padding-horizontal);
|
|
18
15
|
|
|
19
|
-
padding-left:
|
|
20
|
-
--kbq-datepicker-size-grid-padding-horizontal,
|
|
21
|
-
map.get($tokens, datepicker-size-grid-padding-horizontal)
|
|
22
|
-
);
|
|
16
|
+
padding-left: kbq-css-variable(datepicker-size-grid-padding-horizontal);
|
|
23
17
|
|
|
24
18
|
outline: none;
|
|
25
19
|
}
|
|
@@ -38,10 +32,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
38
32
|
position: relative;
|
|
39
33
|
|
|
40
34
|
box-sizing: border-box;
|
|
41
|
-
height:
|
|
42
|
-
--kbq-datepicker-size-grid-content-gap-vertical,
|
|
43
|
-
map.get($tokens, datepicker-size-grid-content-gap-vertical)
|
|
44
|
-
);;
|
|
35
|
+
height: kbq-css-variable(datepicker-size-grid-content-gap-vertical);
|
|
45
36
|
|
|
46
37
|
$horizontal-padding: map.get($tokens, datepicker-size-grid-padding-horizontal);
|
|
47
38
|
// We use an absolutely positioned pseudo-element as the divider line for the table header so we
|
|
@@ -54,10 +45,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
54
45
|
left: calc(-1 * var(--kbq-datepicker-size-grid-padding-horizontal, #{$horizontal-padding}));
|
|
55
46
|
right: calc(-1 * var(--kbq-datepicker-size-grid-padding-horizontal, #{$horizontal-padding}));
|
|
56
47
|
|
|
57
|
-
height:
|
|
58
|
-
--kbq-datepicker-size-grid-divider-height,
|
|
59
|
-
map.get($tokens, datepicker-size-grid-divider-height)
|
|
60
|
-
);
|
|
48
|
+
height: kbq-css-variable(datepicker-size-grid-divider-height);
|
|
61
49
|
}
|
|
62
50
|
}
|
|
63
51
|
}
|
|
@@ -2,14 +2,13 @@
|
|
|
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
|
|
|
9
9
|
$kbq-datepicker-non-touch-calendar-cell-size: 40px;
|
|
10
10
|
|
|
11
|
-
$kbq-datepicker-non-touch-calendar-width:
|
|
12
|
-
$kbq-datepicker-non-touch-calendar-cell-size * 7 +
|
|
11
|
+
$kbq-datepicker-non-touch-calendar-width: $kbq-datepicker-non-touch-calendar-cell-size * 7 +
|
|
13
12
|
map.get($tokens, datepicker-size-grid-padding-horizontal) * 2;
|
|
14
13
|
// Based on the natural height of the calendar in a month with 6 rows of dates
|
|
15
14
|
// (largest the calendar will get).
|
|
@@ -18,23 +17,14 @@ $kbq-datepicker-non-touch-calendar-height: 270px;
|
|
|
18
17
|
.kbq-datepicker__content {
|
|
19
18
|
display: block;
|
|
20
19
|
|
|
21
|
-
border-radius:
|
|
22
|
-
--kbq-datepicker-size-container-border-radius,
|
|
23
|
-
map.get($tokens, datepicker-size-container-border-radius)
|
|
24
|
-
);
|
|
20
|
+
border-radius: kbq-css-variable(datepicker-size-container-border-radius);
|
|
25
21
|
|
|
26
22
|
.kbq-calendar {
|
|
27
23
|
width: $kbq-datepicker-non-touch-calendar-width;
|
|
28
24
|
height: $kbq-datepicker-non-touch-calendar-height;
|
|
29
25
|
|
|
30
|
-
padding-top:
|
|
31
|
-
--kbq-datepicker-size-container-padding-vertical,
|
|
32
|
-
map.get($tokens, datepicker-size-container-padding-vertical)
|
|
33
|
-
);
|
|
26
|
+
padding-top: kbq-css-variable(datepicker-size-container-padding-vertical);
|
|
34
27
|
|
|
35
|
-
padding-bottom:
|
|
36
|
-
--kbq-datepicker-size-container-padding-vertical,
|
|
37
|
-
map.get($tokens, datepicker-size-container-padding-vertical)
|
|
38
|
-
);
|
|
28
|
+
padding-bottom: kbq-css-variable(datepicker-size-container-padding-vertical);
|
|
39
29
|
}
|
|
40
30
|
}
|
|
@@ -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,8 +11,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.kbq-datepicker-toggle__button.kbq-button-icon {
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: kbq-css-variable(datepicker-toggle-size-width);
|
|
15
|
+
height: kbq-css-variable(datepicker-toggle-size-height);
|
|
16
16
|
margin-left: 2px;
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
|
+
@use '../core/styles/common/tokens' as *;
|
|
3
4
|
|
|
4
5
|
@mixin kbq-divider-theme($theme) {
|
|
5
6
|
$divider: map.get(map.get($theme, components), divider);
|
|
6
7
|
|
|
7
8
|
.kbq-divider {
|
|
8
|
-
background: map.get($divider, color);
|
|
9
|
+
background: kbq-css-variable(divider-color, map.get($divider, color));
|
|
9
10
|
}
|
|
10
11
|
}
|
package/divider/divider.scss
CHANGED
|
@@ -1,47 +1,30 @@
|
|
|
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-divider {
|
|
11
7
|
display: block;
|
|
12
8
|
margin: 0;
|
|
13
9
|
|
|
14
10
|
&.kbq-divider_horizontal {
|
|
15
|
-
height:
|
|
11
|
+
height: kbq-css-variable(divider-size-horizontal-width);
|
|
16
12
|
|
|
17
13
|
&.kbq-divider_paddings {
|
|
18
|
-
margin-top:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
margin-bottom: var(
|
|
24
|
-
--kbq-divider-size-horizontal-margin-vertical,
|
|
25
|
-
map.get($tokens, divider-size-horizontal-margin-vertical)
|
|
26
|
-
);
|
|
14
|
+
margin-top: kbq-css-variable(divider-size-horizontal-margin-vertical);
|
|
15
|
+
|
|
16
|
+
margin-bottom: kbq-css-variable(divider-size-horizontal-margin-vertical);
|
|
27
17
|
}
|
|
28
18
|
}
|
|
29
19
|
|
|
30
20
|
&.kbq-divider_vertical {
|
|
31
|
-
width:
|
|
21
|
+
width: kbq-css-variable(divider-size-vertical-width);
|
|
32
22
|
height: 100%;
|
|
33
23
|
|
|
34
24
|
&.kbq-divider_paddings {
|
|
35
|
-
margin-left:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
margin-right: var(
|
|
41
|
-
--kbq-divider-size-vertical-margin-horizontal,
|
|
42
|
-
map.get($tokens, divider-size-vertical-margin-horizontal)
|
|
43
|
-
);
|
|
25
|
+
margin-left: kbq-css-variable(divider-size-vertical-margin-horizontal);
|
|
26
|
+
|
|
27
|
+
margin-right: kbq-css-variable(divider-size-vertical-margin-horizontal);
|
|
44
28
|
}
|
|
45
29
|
}
|
|
46
|
-
|
|
47
30
|
}
|
package/dl/_dl-theme.scss
CHANGED
|
@@ -2,31 +2,28 @@
|
|
|
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-dl-theme($theme) {
|
|
8
8
|
$dl: map.get(map.get($theme, components), dl);
|
|
9
9
|
|
|
10
10
|
.kbq-dt {
|
|
11
|
-
color: map.get($dl, dt);
|
|
11
|
+
color: kbq-css-variable(dl-dt, map.get($dl, dt));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.kbq-dd {
|
|
15
|
-
color: map.get($dl, dd);
|
|
15
|
+
color: kbq-css-variable(dl-dd, map.get($dl, dd));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@mixin kbq-dl-typography($config) {
|
|
20
|
-
$tokens: map.get($config, tokens);
|
|
21
|
-
|
|
22
20
|
.kbq-dl {
|
|
23
21
|
& .kbq-dt {
|
|
24
|
-
@include kbq-typography-
|
|
22
|
+
@include kbq-typography-css-variables(description-list, term);
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
& .kbq-dd {
|
|
28
|
-
@include kbq-typography-
|
|
26
|
+
@include kbq-typography-css-variables(description-list, description);
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
|
-
|