@koobiq/components 17.0.0-beta.2 → 17.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/alert/_alert-theme.scss +48 -24
- package/alert/alert.component.d.ts +23 -3
- package/alert/alert.component.scss +91 -59
- package/autocomplete/_autocomplete-theme.scss +3 -3
- package/autocomplete/autocomplete.scss +8 -18
- package/badge/_badge-theme.scss +30 -45
- package/badge/badge.component.scss +18 -39
- package/button/_button-base.scss +7 -14
- package/button/_button-theme.scss +30 -86
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -17
- package/button-toggle/_button-toggle-theme.scss +19 -20
- package/button-toggle/button-toggle.scss +17 -44
- package/card/_card-theme.scss +18 -17
- package/card/card.component.scss +3 -6
- package/checkbox/_checkbox-theme.scss +50 -50
- package/checkbox/checkbox.scss +31 -35
- package/code-block/README.md +18 -14
- package/code-block/_code-block-theme.scss +53 -23
- package/code-block/actionbar.component.scss +11 -25
- package/code-block/code-block.component.d.ts +12 -4
- package/code-block/code-block.scss +62 -77
- package/core/form-field/form-field-ref.d.ts +2 -0
- package/core/forms/_forms-theme.scss +4 -8
- package/core/forms/_forms.scss +13 -43
- package/core/locales/formatters.d.ts +96 -0
- package/core/locales/locale-service.d.ts +97 -0
- package/core/option/_optgroup-theme.scss +4 -6
- package/core/option/_option-action-theme.scss +8 -11
- package/core/option/_option-theme.scss +15 -20
- package/core/option/optgroup.scss +0 -1
- package/core/option/option.scss +0 -1
- package/core/pop-up/_pop-up.scss +0 -1
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/select/common.d.ts +35 -0
- package/core/select/index.d.ts +1 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +15 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -9
- package/core/services/theme.service.d.ts +3 -2
- package/core/styles/_core.scss +0 -1
- package/core/styles/_koobiq-theme.scss +5 -3
- package/core/styles/common/_animation.scss +9 -8
- package/core/styles/common/_button.scss +0 -2
- package/core/styles/common/_clearfix.scss +1 -1
- package/core/styles/common/_groups.scss +3 -9
- package/core/styles/common/_list.scss +28 -31
- package/core/styles/common/_overlay.scss +4 -3
- package/core/styles/common/_popup.scss +5 -5
- package/core/styles/common/_rtl.scss +4 -4
- package/core/styles/common/_select.scss +48 -42
- package/core/styles/common/_tokens.scss +47 -0
- package/core/styles/functions/_number.scss +14 -19
- package/core/styles/functions/_string.scss +18 -19
- package/core/styles/functions/_timing.scss +24 -24
- package/core/styles/theming/_components-theming.scss +1380 -1384
- package/core/styles/theming/_scrollbar-theme.scss +8 -5
- package/core/styles/theming/_theming.scss +26 -29
- package/core/styles/typography/_typography-utils.scss +1 -2
- package/core/styles/typography/_typography.scss +138 -85
- package/core/styles/visual/_body.scss +0 -2
- package/core/styles/visual/_layout.scss +44 -38
- package/core/utils/data-size/config.d.ts +20 -2
- package/core/utils/data-size/data-size.pipe.d.ts +10 -9
- package/core/utils/data-size/size.d.ts +3 -4
- package/datepicker/_datepicker-theme.scss +38 -40
- package/datepicker/calendar-body.scss +3 -11
- package/datepicker/calendar-header.scss +4 -10
- package/datepicker/calendar.scss +5 -17
- package/datepicker/datepicker-content.scss +5 -15
- package/datepicker/datepicker-input.scss +0 -5
- package/datepicker/datepicker-toggle.scss +3 -3
- package/divider/_divider-theme.scss +2 -1
- package/divider/divider.scss +9 -26
- package/dl/_dl-theme.scss +5 -8
- package/dl/dl.scss +5 -20
- package/dropdown/_dropdown-theme.scss +27 -22
- package/dropdown/dropdown-item.scss +5 -12
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.scss +6 -15
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/empty-state/README.md +0 -0
- package/empty-state/_empty-state-theme.scss +56 -0
- package/empty-state/empty-state.component.d.ts +31 -0
- package/empty-state/empty-state.module.d.ts +10 -0
- package/empty-state/empty-state.scss +81 -0
- package/empty-state/index.d.ts +1 -0
- package/empty-state/public-api.d.ts +2 -0
- package/esm2022/alert/alert.component.mjs +52 -5
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +58 -14
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/locales/formatters.mjs +97 -1
- package/esm2022/core/locales/locale-service.mjs +5 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-trigger.mjs +18 -11
- package/esm2022/core/select/common.mjs +120 -0
- package/esm2022/core/select/index.mjs +2 -1
- package/esm2022/core/services/theme.service.mjs +4 -1
- package/esm2022/core/utils/data-size/config.mjs +5 -17
- package/esm2022/core/utils/data-size/data-size.pipe.mjs +36 -22
- package/esm2022/core/utils/data-size/size.mjs +10 -14
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/datepicker/datepicker-animations.mjs +2 -2
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/empty-state/empty-state.component.mjs +104 -0
- package/esm2022/empty-state/empty-state.module.mjs +50 -0
- package/esm2022/empty-state/index.mjs +2 -0
- package/esm2022/empty-state/koobiq-components-empty-state.mjs +5 -0
- package/esm2022/empty-state/public-api.mjs +3 -0
- package/esm2022/file-upload/file-upload.mjs +15 -1
- package/esm2022/file-upload/file-upload.module.mjs +15 -5
- package/esm2022/file-upload/multiple-file-upload.component.mjs +98 -49
- package/esm2022/file-upload/single-file-upload.component.mjs +110 -54
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/form-field/password-toggle.mjs +11 -9
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/input/input-number.mjs +2 -2
- package/esm2022/list/list-selection.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +8 -9
- package/esm2022/navbar/navbar-item.component.mjs +11 -11
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/select/select.component.mjs +71 -125
- package/esm2022/select/select.module.mjs +28 -28
- package/esm2022/splitter/splitter.component.mjs +37 -17
- package/esm2022/table/table.component.mjs +29 -6
- package/esm2022/table/table.module.mjs +14 -6
- package/esm2022/tabs/tab-body.component.mjs +1 -1
- package/esm2022/tabs/tab-group.component.mjs +55 -13
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -3
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +4 -4
- package/esm2022/textarea/textarea.component.mjs +12 -10
- package/esm2022/timepicker/timepicker.directive.mjs +11 -3
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +3 -4
- package/esm2022/toast/toast-container.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +4 -4
- package/esm2022/toast/toast.service.mjs +18 -13
- package/esm2022/toast/toast.type.mjs +3 -1
- package/esm2022/tooltip/tooltip.component.mjs +28 -14
- package/esm2022/tree/padding.directive.mjs +2 -2
- package/esm2022/tree/tree-base.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree/tree-selection.component.mjs +6 -1
- package/esm2022/tree-select/tree-select.component.mjs +29 -44
- package/esm2022/tree-select/tree-select.module.mjs +31 -11
- package/fesm2022/koobiq-components-alert.mjs +52 -5
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -5
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +57 -14
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +285 -67
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +2 -2
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +8 -8
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +5 -4
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +157 -0
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -0
- package/fesm2022/koobiq-components-file-upload.mjs +225 -97
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +21 -21
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +14 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +1 -1
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs +7 -8
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +14 -14
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +2 -2
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +102 -155
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +36 -16
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +41 -10
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +57 -15
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +21 -8
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +11 -9
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +10 -2
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +11 -10
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +2 -3
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +25 -17
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +26 -13
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +57 -51
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +9 -4
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +124 -73
- package/file-upload/file-upload.d.ts +1 -1
- package/file-upload/file-upload.module.d.ts +11 -9
- package/file-upload/file-upload.scss +0 -6
- package/file-upload/multiple-file-upload.component.d.ts +38 -10
- package/file-upload/multiple-file-upload.component.scss +50 -120
- package/file-upload/single-file-upload.component.d.ts +40 -13
- package/file-upload/single-file-upload.component.scss +12 -33
- package/form-field/_form-field-theme.scss +46 -36
- package/form-field/_hint-theme.scss +15 -20
- package/form-field/cleaner.scss +3 -9
- package/form-field/form-field.scss +23 -26
- package/form-field/hint.scss +5 -8
- package/form-field/password-toggle.d.ts +3 -2
- package/form-field/password-toggle.scss +3 -10
- package/form-field/stepper.scss +4 -11
- package/icon/_icon-button-theme.scss +47 -36
- package/icon/_icon-item-theme.scss +47 -26
- package/icon/_icon-theme.scss +12 -14
- package/icon/icon-button.scss +5 -20
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +10 -8
- package/icon/icon.scss +0 -6
- package/input/_input-theme.scss +6 -4
- package/input/input.scss +11 -10
- package/link/_link-theme.scss +30 -49
- package/list/_list-theme.scss +21 -19
- package/list/list.scss +2 -6
- package/loader-overlay/_loader-overlay-theme.scss +17 -18
- package/loader-overlay/loader-overlay.scss +9 -33
- package/markdown/_markdown-theme.scss +47 -47
- package/markdown/markdown.scss +41 -91
- package/modal/README.md +5 -4
- package/modal/_modal-animation.scss +0 -1
- package/modal/_modal-confirm.scss +2 -7
- package/modal/_modal-theme.scss +11 -13
- package/modal/modal.component.d.ts +1 -1
- package/modal/modal.scss +15 -31
- package/navbar/README.md +21 -20
- package/navbar/_navbar-item_horizontal.scss +28 -29
- package/navbar/_navbar-item_vertical.scss +31 -31
- package/navbar/_navbar-theme.scss +20 -24
- package/navbar/navbar-brand.scss +24 -27
- package/navbar/navbar-divider.scss +4 -8
- package/navbar/navbar-item.component.d.ts +4 -4
- package/navbar/navbar-item.scss +13 -15
- package/navbar/navbar.scss +2 -6
- package/navbar/vertical-navbar.scss +4 -6
- package/package.json +23 -16
- package/popover/README.md +18 -14
- package/popover/_popover-theme.scss +9 -17
- package/popover/popover.scss +15 -29
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -11
- package/progress-bar/progress-bar.scss +6 -19
- package/progress-spinner/_progress-spinner-theme.scss +6 -8
- package/progress-spinner/progress-spinner.scss +8 -18
- package/radio/_radio-theme.scss +36 -37
- package/radio/radio.scss +25 -40
- package/risk-level/_risk-level-theme.scss +25 -31
- package/risk-level/risk-level.component.scss +4 -10
- package/schematics/collection.json +11 -0
- package/schematics/ng-add/index.js +70 -0
- package/schematics/ng-add/schema.json +15 -0
- package/scrollbar/_scrollbar-component-theme.scss +15 -19
- package/scrollbar/scrollbar.component.scss +68 -63
- package/scrollbar/scrollbar.directive.d.ts +1 -0
- package/scrollbar/scrollbar.types.d.ts +1 -0
- package/select/_select-theme.scss +14 -16
- package/select/select-option.directive.d.ts +3 -2
- package/select/select.component.d.ts +12 -33
- package/select/select.module.d.ts +1 -1
- package/select/select.scss +3 -11
- package/sidepanel/_sidepanel-theme.scss +8 -10
- package/sidepanel/sidepanel.scss +20 -37
- package/splitter/_splitter-theme.scss +5 -6
- package/splitter/splitter.component.d.ts +10 -5
- package/splitter/splitter.scss +0 -1
- package/table/_table-theme.scss +16 -15
- package/table/table.component.d.ts +8 -1
- package/table/table.module.d.ts +1 -1
- package/table/table.scss +41 -42
- package/tabs/_tabs-common.scss +13 -15
- package/tabs/_tabs-theme.scss +76 -44
- package/tabs/tab-body.component.d.ts +1 -1
- package/tabs/tab-group.component.d.ts +9 -3
- package/tabs/tab-group.scss +2 -8
- package/tabs/tab-header.scss +0 -10
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -9
- package/tags/_tag-theme.scss +22 -27
- package/tags/tag-default-options.d.ts +1 -0
- package/tags/tag-input.d.ts +7 -1
- package/tags/tag-list.scss +15 -12
- package/tags/tag.component.d.ts +1 -1
- package/tags/tag.scss +5 -11
- package/textarea/_textarea-theme.scss +2 -5
- package/textarea/textarea.scss +5 -10
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timepicker/timepicker.scss +2 -8
- package/timezone/_timezone-option-theme.scss +8 -10
- package/timezone/timezone-option.component.scss +5 -8
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/timezone/timezone-select.component.d.ts +2 -1
- package/timezone/timezone-select.component.scss +2 -4
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +20 -16
- package/toast/toast-container.component.scss +5 -6
- package/toast/toast.component.scss +28 -29
- package/toast/toast.service.d.ts +8 -4
- package/toast/toast.type.d.ts +2 -0
- package/toggle/_toggle-theme.scss +49 -42
- package/toggle/toggle.scss +9 -22
- package/tooltip/_tooltip-theme.scss +12 -16
- package/tooltip/tooltip.component.d.ts +12 -8
- package/tooltip/tooltip.scss +7 -13
- package/tree/_tree-theme.scss +20 -23
- package/tree/toggle.scss +3 -6
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.scss +17 -14
- package/tree/tree-selection.component.d.ts +1 -0
- package/tree-select/_tree-select-theme.scss +12 -15
- package/tree-select/tree-select.component.d.ts +8 -17
- package/tree-select/tree-select.module.d.ts +1 -2
- package/tree-select/tree-select.scss +1 -6
- package/core/styles/_variables.scss +0 -1
package/select/select.scss
CHANGED
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/select' as *;
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
10
|
-
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
11
7
|
|
|
12
8
|
.kbq-select {
|
|
13
9
|
@extend %kbq-select-base;
|
|
@@ -25,12 +21,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
25
21
|
@extend %kbq-select-content;
|
|
26
22
|
|
|
27
23
|
&:not(:has(> .kbq-select__no-options-message)) .cdk-virtual-scroll-viewport {
|
|
28
|
-
min-height:
|
|
29
|
-
|
|
30
|
-
);
|
|
31
|
-
max-height: calc(
|
|
32
|
-
var(--kbq-select-panel-size-max-height, map.get($tokens, select-panel-size-max-height))
|
|
33
|
-
);
|
|
24
|
+
min-height: kbq-css-variable(select-panel-size-max-height);
|
|
25
|
+
max-height: kbq-css-variable(select-panel-size-max-height);
|
|
34
26
|
|
|
35
27
|
&.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper {
|
|
36
28
|
max-width: 100%;
|
|
@@ -2,36 +2,34 @@
|
|
|
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-sidepanel-theme($theme) {
|
|
8
|
-
$sidepanel: map.get(
|
|
8
|
+
$sidepanel: map.get($theme, components, sidepanel);
|
|
9
9
|
|
|
10
10
|
.kbq-sidepanel-title {
|
|
11
|
-
color: map.get($sidepanel, header-text);
|
|
11
|
+
color: kbq-css-variable(sidepanel-header-text, map.get($sidepanel, header-text));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.kbq-sidepanel-content {
|
|
15
|
-
background-color: map.get($sidepanel, background);
|
|
16
|
-
color: map.get($sidepanel, content-text);
|
|
15
|
+
background-color: kbq-css-variable(sidepanel-background, map.get($sidepanel, background));
|
|
16
|
+
color: kbq-css-variable(sidepanel-content-text, map.get($sidepanel, content-text));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.kbq-sidepanel-container_shadowed {
|
|
20
20
|
.kbq-sidepanel-content {
|
|
21
|
-
box-shadow: map.get($sidepanel, box-shadow);
|
|
21
|
+
box-shadow: kbq-css-variable(sidepanel-box-shadow, map.get($sidepanel, box-shadow));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@mixin kbq-sidepanel-typography($config) {
|
|
27
|
-
$tokens: map.get($config, tokens);
|
|
28
|
-
|
|
29
27
|
.kbq-sidepanel-title {
|
|
30
|
-
@include kbq-typography-
|
|
28
|
+
@include kbq-typography-css-variables(sidepanel, header);
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
.kbq-sidepanel-container,
|
|
34
32
|
.kbq-sidepanel-footer {
|
|
35
|
-
@include kbq-typography-
|
|
33
|
+
@include kbq-typography-css-variables(sidepanel, content);
|
|
36
34
|
}
|
|
37
35
|
}
|
package/sidepanel/sidepanel.scss
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common';
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
7
|
-
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
8
7
|
|
|
9
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
10
9
|
|
|
@@ -39,18 +38,18 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
39
38
|
top: 0;
|
|
40
39
|
|
|
41
40
|
&.kbq-sidepanel_small {
|
|
42
|
-
width:
|
|
43
|
-
max-width:
|
|
41
|
+
width: kbq-css-variable(sidepanel-size-small-width);
|
|
42
|
+
max-width: kbq-css-variable(sidepanel-size-small-width);
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
&.kbq-sidepanel_medium {
|
|
47
|
-
width:
|
|
48
|
-
max-width:
|
|
46
|
+
width: kbq-css-variable(sidepanel-size-medium-width);
|
|
47
|
+
max-width: kbq-css-variable(sidepanel-size-medium-width);
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
&.kbq-sidepanel_large {
|
|
52
|
-
width:
|
|
53
|
-
max-width:
|
|
51
|
+
width: kbq-css-variable(sidepanel-size-large-width);
|
|
52
|
+
max-width: kbq-css-variable(sidepanel-size-large-width);
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
.kbq-sidepanel-indent {
|
|
@@ -96,7 +95,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
|
|
99
|
-
/* stylelint-disable */
|
|
100
98
|
.kbq-sidepanel-wrapper {
|
|
101
99
|
display: flex;
|
|
102
100
|
flex: 1;
|
|
@@ -108,7 +106,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
108
106
|
display: flex;
|
|
109
107
|
flex: 0 0 auto;
|
|
110
108
|
}
|
|
111
|
-
/* stylelint-enable */
|
|
112
109
|
|
|
113
110
|
.kbq-sidepanel-content {
|
|
114
111
|
display: flex;
|
|
@@ -127,16 +124,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
127
124
|
flex-flow: row nowrap;
|
|
128
125
|
flex: 0 0 auto;
|
|
129
126
|
|
|
130
|
-
padding:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
var(--kbq-sidepanel-size-header-padding-vertical, map.get($tokens, sidepanel-size-header-padding-vertical))
|
|
134
|
-
var(--kbq-sidepanel-size-header-padding-left, map.get($tokens, sidepanel-size-header-padding-left));
|
|
127
|
+
padding: kbq-css-variable(sidepanel-size-header-padding-vertical)
|
|
128
|
+
kbq-css-variable(sidepanel-size-header-padding-right) kbq-css-variable(sidepanel-size-header-padding-vertical)
|
|
129
|
+
kbq-css-variable(sidepanel-size-header-padding-left);
|
|
135
130
|
|
|
136
131
|
.kbq-sidepanel-close {
|
|
137
|
-
margin-left:
|
|
138
|
-
--kbq-sidepanel-size-close-button-margin-left, map.get($tokens, sidepanel-size-close-button-margin-left)
|
|
139
|
-
);
|
|
132
|
+
margin-left: kbq-css-variable(sidepanel-size-close-button-margin-left);
|
|
140
133
|
}
|
|
141
134
|
}
|
|
142
135
|
|
|
@@ -153,17 +146,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
153
146
|
flex-direction: column;
|
|
154
147
|
min-height: 0;
|
|
155
148
|
|
|
156
|
-
padding-right:
|
|
157
|
-
--kbq-sidepanel-size-content-padding-horizontal, map.get($tokens, sidepanel-size-content-padding-horizontal)
|
|
158
|
-
);
|
|
149
|
+
padding-right: kbq-css-variable(sidepanel-size-content-padding-horizontal);
|
|
159
150
|
|
|
160
|
-
padding-left:
|
|
161
|
-
--kbq-sidepanel-size-content-padding-horizontal, map.get($tokens, sidepanel-size-content-padding-horizontal)
|
|
162
|
-
);
|
|
151
|
+
padding-left: kbq-css-variable(sidepanel-size-content-padding-horizontal);
|
|
163
152
|
|
|
164
|
-
padding-bottom:
|
|
165
|
-
--kbq-sidepanel-size-content-padding-bottom, map.get($tokens, sidepanel-size-content-padding-bottom)
|
|
166
|
-
);
|
|
153
|
+
padding-bottom: kbq-css-variable(sidepanel-size-content-padding-bottom);
|
|
167
154
|
}
|
|
168
155
|
|
|
169
156
|
.kbq-sidepanel-footer {
|
|
@@ -174,10 +161,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
174
161
|
flex-flow: row nowrap;
|
|
175
162
|
flex: 0 0 auto;
|
|
176
163
|
|
|
177
|
-
padding:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var(--kbq-sidepanel-size-footer-padding-bottom, map.get($tokens, sidepanel-size-footer-padding-bottom));
|
|
164
|
+
padding: kbq-css-variable(sidepanel-size-footer-padding-top)
|
|
165
|
+
kbq-css-variable(sidepanel-size-footer-padding-horizontal)
|
|
166
|
+
kbq-css-variable(sidepanel-size-footer-padding-bottom);
|
|
181
167
|
|
|
182
168
|
.kbq-sidepanel-actions {
|
|
183
169
|
display: flex;
|
|
@@ -185,17 +171,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
185
171
|
flex-direction: row;
|
|
186
172
|
flex: 1;
|
|
187
173
|
|
|
188
|
-
&[align=
|
|
174
|
+
&[align='left'] {
|
|
189
175
|
justify-content: start;
|
|
190
176
|
}
|
|
191
177
|
|
|
192
|
-
&[align=
|
|
178
|
+
&[align='right'] {
|
|
193
179
|
justify-content: flex-end;
|
|
194
180
|
}
|
|
195
181
|
|
|
196
|
-
gap:
|
|
197
|
-
--kbq-sidepanel-size-footer-content-gap-horizontal,
|
|
198
|
-
map.get($tokens, sidepanel-size-footer-content-gap-horizontal)
|
|
199
|
-
);
|
|
182
|
+
gap: kbq-css-variable(sidepanel-size-footer-content-gap-horizontal);
|
|
200
183
|
}
|
|
201
184
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
|
|
3
|
-
@use '../core/styles/
|
|
4
|
-
|
|
3
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
4
|
|
|
6
5
|
@mixin kbq-splitter-theme($theme) {
|
|
7
|
-
$background: map.get(
|
|
6
|
+
$background: map.get($theme, states, background);
|
|
8
7
|
|
|
9
8
|
.kbq-gutter {
|
|
10
9
|
cursor: col-resize;
|
|
11
10
|
|
|
12
11
|
&:hover,
|
|
13
12
|
&.kbq-gutter_dragged {
|
|
14
|
-
background-color:
|
|
13
|
+
background-color: rgba(106, 115, 150, 0.08);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
&.kbq-gutter_vertical {
|
|
@@ -20,13 +19,13 @@
|
|
|
20
19
|
|
|
21
20
|
// todo
|
|
22
21
|
&[disabled] {
|
|
23
|
-
background-color: kbq-
|
|
22
|
+
background-color: kbq-css-variable(background-disabled, map.get($background, disabled));
|
|
24
23
|
|
|
25
24
|
cursor: default;
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
.kbq-gutter-ghost {
|
|
30
|
-
background:
|
|
29
|
+
background: rgba(106, 115, 150, 0.16);
|
|
31
30
|
}
|
|
32
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, QueryList, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, QueryList, Renderer2 } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
interface IArea {
|
|
4
4
|
area: KbqSplitterAreaDirective;
|
|
@@ -64,13 +64,15 @@ export declare class KbqSplitterComponent implements OnInit {
|
|
|
64
64
|
private ngZone;
|
|
65
65
|
private renderer;
|
|
66
66
|
gutterPositionChange: EventEmitter<void>;
|
|
67
|
-
|
|
67
|
+
areas: IArea[];
|
|
68
68
|
gutters: QueryList<KbqGutterDirective>;
|
|
69
69
|
ghost: KbqGutterGhostDirective;
|
|
70
|
+
areaRefs: QueryList<KbqSplitterAreaDirective>;
|
|
70
71
|
get isDragging(): boolean;
|
|
71
72
|
private _isDragging;
|
|
72
73
|
private readonly areaPositionDivider;
|
|
73
74
|
private readonly listeners;
|
|
75
|
+
private areasChangeSubscription;
|
|
74
76
|
get hideGutters(): boolean;
|
|
75
77
|
set hideGutters(value: boolean);
|
|
76
78
|
private _hideGutters;
|
|
@@ -91,18 +93,21 @@ export declare class KbqSplitterComponent implements OnInit {
|
|
|
91
93
|
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, renderer: Renderer2);
|
|
92
94
|
addArea(area: KbqSplitterAreaDirective): void;
|
|
93
95
|
ngOnInit(): void;
|
|
96
|
+
ngAfterContentInit(): void;
|
|
97
|
+
ngOnDestroy(): void;
|
|
94
98
|
onMouseDown(event: MouseEvent, leftAreaIndex: number, rightAreaIndex: number): void;
|
|
95
99
|
removeArea(area: KbqSplitterAreaDirective): void;
|
|
96
100
|
isVertical(): boolean;
|
|
101
|
+
private mapAndOrderArea;
|
|
97
102
|
private updateGutter;
|
|
98
103
|
private onMouseMove;
|
|
99
104
|
private resizeAreas;
|
|
100
105
|
private onMouseUp;
|
|
101
106
|
private setStyle;
|
|
102
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqSplitterComponent, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSplitterComponent, "kbq-splitter", ["kbqSplitter"], { "hideGutters": { "alias": "hideGutters"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "useGhost": { "alias": "useGhost"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; }, { "gutterPositionChange": "gutterPositionChange"; },
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqSplitterComponent, "kbq-splitter", ["kbqSplitter"], { "hideGutters": { "alias": "hideGutters"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "useGhost": { "alias": "useGhost"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; }, { "gutterPositionChange": "gutterPositionChange"; }, ["areaRefs"], ["*"], false, never>;
|
|
104
109
|
}
|
|
105
|
-
export declare class KbqSplitterAreaDirective implements
|
|
110
|
+
export declare class KbqSplitterAreaDirective implements AfterViewInit, OnDestroy {
|
|
106
111
|
private elementRef;
|
|
107
112
|
private renderer;
|
|
108
113
|
private splitter;
|
|
@@ -110,7 +115,7 @@ export declare class KbqSplitterAreaDirective implements OnInit, OnDestroy {
|
|
|
110
115
|
constructor(elementRef: ElementRef, renderer: Renderer2, splitter: KbqSplitterComponent);
|
|
111
116
|
isResizing(): boolean;
|
|
112
117
|
disableFlex(): void;
|
|
113
|
-
|
|
118
|
+
ngAfterViewInit(): void;
|
|
114
119
|
ngOnDestroy(): void;
|
|
115
120
|
setOrder(order: number): void;
|
|
116
121
|
setSize(size: number): void;
|
package/splitter/splitter.scss
CHANGED
package/table/_table-theme.scss
CHANGED
|
@@ -2,30 +2,34 @@
|
|
|
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-table-theme($theme) {
|
|
8
8
|
$foreground: map.get($theme, foreground);
|
|
9
|
-
$background: map.get($theme, background);
|
|
9
|
+
$states-background: map.get($theme, states, background);
|
|
10
|
+
$line: map.get($theme, line);
|
|
10
11
|
|
|
11
12
|
.kbq-table {
|
|
12
13
|
& > thead {
|
|
13
|
-
color: map.get($foreground,
|
|
14
|
+
color: kbq-css-variable(foreground-contrast-secondary, map.get($foreground, contrast-secondary));
|
|
14
15
|
|
|
15
16
|
& > tr > th {
|
|
16
|
-
border-color: map.get($
|
|
17
|
+
border-bottom-color: kbq-css-variable(line-contrast-fade, map.get($line, contrast-fade));
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
& > tbody {
|
|
21
22
|
& > tr {
|
|
22
|
-
&:hover {
|
|
23
|
-
background-color: map.get($background, overlay-hover);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
23
|
& > th,
|
|
27
24
|
& > td {
|
|
28
|
-
color: map.get($foreground, contrast);
|
|
25
|
+
color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:hover td {
|
|
29
|
+
background-color: kbq-css-variable(
|
|
30
|
+
states-background-transparent-hover,
|
|
31
|
+
map.get($states-background, transparent-hover)
|
|
32
|
+
);
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
}
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
& > tbody > tr {
|
|
35
39
|
& th,
|
|
36
40
|
& td {
|
|
37
|
-
border-bottom-color: map.get($
|
|
41
|
+
border-bottom-color: kbq-css-variable(line-contrast-fade, map.get($line, contrast-fade));
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
}
|
|
@@ -42,15 +46,13 @@
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
@mixin kbq-table-typography($config) {
|
|
45
|
-
$tokens: map.get($config, tokens);
|
|
46
|
-
|
|
47
49
|
.kbq-table {
|
|
48
50
|
& > thead {
|
|
49
51
|
& > tr > th {
|
|
50
52
|
font-weight: normal;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
@include kbq-typography-
|
|
55
|
+
@include kbq-typography-css-variables(table, header);
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
& > tbody {
|
|
@@ -58,8 +60,7 @@
|
|
|
58
60
|
font-weight: normal;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
@include kbq-typography-
|
|
63
|
+
@include kbq-typography-css-variables(table, body);
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
|
-
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { KbqButton } from '@koobiq/components/button';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class KbqTable {
|
|
4
|
+
border: boolean;
|
|
3
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTable, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTable, "table[kbq-table]", ["kbqTable"], {}, {}, never, ["*"], false, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTable, "table[kbq-table]", ["kbqTable"], { "border": { "alias": "border"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
7
|
+
}
|
|
8
|
+
export declare class KbqTableCellContent {
|
|
9
|
+
button: KbqButton;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTableCellContent, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTableCellContent, "kbq-table td", never, {}, {}, ["button"], never, false, never>;
|
|
5
12
|
}
|
package/table/table.module.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import * as i3 from "@angular/cdk/a11y";
|
|
|
5
5
|
import * as i4 from "@angular/cdk/platform";
|
|
6
6
|
export declare class KbqTableModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTableModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTableModule, [typeof i1.KbqTable], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.KbqTable]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTableModule, [typeof i1.KbqTable, typeof i1.KbqTableCellContent], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.KbqTable, typeof i1.KbqTableCellContent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqTableModule>;
|
|
10
10
|
}
|
package/table/table.scss
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
5
|
-
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
5
|
|
|
7
6
|
$tokens: meta.module-variables(tokens) !default;
|
|
8
7
|
|
|
@@ -16,61 +15,61 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
16
15
|
& > th,
|
|
17
16
|
& > td {
|
|
18
17
|
padding: {
|
|
19
|
-
top:
|
|
20
|
-
right:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
bottom: calc(
|
|
25
|
-
var(--kbq-table-size-row-padding-vertical, map.get($tokens, table-size-row-padding-vertical)) -
|
|
26
|
-
var(--kbq-table-size-border-width, map.get($tokens, table-size-border-width))
|
|
27
|
-
);
|
|
28
|
-
left: calc((var(
|
|
29
|
-
--kbq-table-size-row-padding-horizontal,
|
|
30
|
-
map.get($tokens, table-size-row-padding-horizontal)
|
|
31
|
-
) / 2))
|
|
32
|
-
};
|
|
18
|
+
top: kbq-css-variable(table-size-row-padding-vertical);
|
|
19
|
+
right: kbq-css-variable(table-size-row-padding-horizontal);
|
|
20
|
+
bottom: kbq-css-variable(table-size-row-padding-vertical);
|
|
21
|
+
left: kbq-css-variable(table-size-row-padding-horizontal);
|
|
22
|
+
}
|
|
33
23
|
|
|
34
24
|
vertical-align: baseline;
|
|
35
25
|
text-align: left;
|
|
36
26
|
}
|
|
37
|
-
|
|
38
|
-
& > th:first-child,
|
|
39
|
-
& > td:first-child {
|
|
40
|
-
padding-left:
|
|
41
|
-
var(--kbq-table-size-row-padding-horizontal, map.get($tokens, table-size-row-padding-horizontal));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
& > th:last-child,
|
|
45
|
-
& > td:last-child {
|
|
46
|
-
padding-right:
|
|
47
|
-
var(--kbq-table-size-row-padding-horizontal, map.get($tokens, table-size-row-padding-horizontal));
|
|
48
|
-
}
|
|
49
27
|
}
|
|
50
28
|
}
|
|
51
29
|
|
|
52
|
-
/* stylelint-disable no-descending-specificity */
|
|
53
30
|
& > thead {
|
|
54
31
|
& > tr > th {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
bottom: (
|
|
58
|
-
calc(var(--kbq-table-size-row-padding-vertical, map.get($tokens, table-size-row-padding-vertical)) -
|
|
59
|
-
var(--kbq-table-size-border-width, map.get($tokens, table-size-border-width)))
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
border-bottom:
|
|
64
|
-
var(--kbq-table-size-border-width, map.get($tokens, table-size-border-width)) solid transparent;
|
|
32
|
+
border-bottom-width: kbq-css-variable(table-size-border-width);
|
|
33
|
+
border-bottom-style: solid;
|
|
65
34
|
}
|
|
66
35
|
}
|
|
67
36
|
|
|
37
|
+
.kbq-table-cell_has-button {
|
|
38
|
+
padding-top: kbq-css-variable(size-xxs);
|
|
39
|
+
padding-bottom: kbq-css-variable(size-xxs);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.kbq-table.kbq-table_bordered {
|
|
68
44
|
& > tbody > tr {
|
|
69
45
|
& th,
|
|
70
46
|
& td {
|
|
71
|
-
border-bottom:
|
|
72
|
-
|
|
47
|
+
border-bottom-width: kbq-css-variable(table-size-border-width);
|
|
48
|
+
border-bottom-style: solid;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.kbq-table:not(.kbq-table_bordered) {
|
|
54
|
+
& > tbody > tr {
|
|
55
|
+
& > td:first-child {
|
|
56
|
+
border-top-left-radius: kbq-css-variable(size-m);
|
|
57
|
+
border-bottom-left-radius: kbq-css-variable(size-m);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
& > td:last-child {
|
|
61
|
+
border-top-right-radius: kbq-css-variable(size-m);
|
|
62
|
+
border-bottom-right-radius: kbq-css-variable(size-m);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:first-child {
|
|
66
|
+
& > td:first-child {
|
|
67
|
+
border-top-left-radius: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& > td:last-child {
|
|
71
|
+
border-top-right-radius: 0;
|
|
72
|
+
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
/* stylelint-enable no-descending-specificity */
|
|
76
75
|
}
|
package/tabs/_tabs-common.scss
CHANGED
|
@@ -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
|
@mixin tab-label {
|
|
11
10
|
position: relative;
|
|
12
11
|
|
|
@@ -25,23 +24,24 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
25
24
|
$padding-horizontal: map.get($tokens, tabs-size-tab-item-padding-horizontal);
|
|
26
25
|
$border-width: map.get($tokens, tabs-size-tab-item-focus-outline-width);
|
|
27
26
|
|
|
28
|
-
padding:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
padding: calc(
|
|
28
|
+
var(--kbq-tabs-size-tab-item-padding-vertical, $padding-vertical) - var(
|
|
29
|
+
--kbq-tabs-size-tab-item-focus-outline-width,
|
|
30
|
+
$border-width
|
|
31
|
+
)
|
|
32
32
|
)
|
|
33
33
|
calc(
|
|
34
|
-
var(--kbq-tabs-size-tab-item-padding-horizontal, $padding-horizontal) -
|
|
35
|
-
|
|
34
|
+
var(--kbq-tabs-size-tab-item-padding-horizontal, $padding-horizontal) - var(
|
|
35
|
+
--kbq-tabs-size-tab-item-focus-outline-width,
|
|
36
|
+
$border-width
|
|
37
|
+
)
|
|
36
38
|
);
|
|
37
39
|
|
|
38
40
|
border: {
|
|
39
|
-
width:
|
|
41
|
+
width: kbq-css-variable(tabs-size-tab-item-focus-outline-width);
|
|
40
42
|
style: solid;
|
|
41
43
|
color: transparent;
|
|
42
|
-
radius:
|
|
43
|
-
--kbq-tabs-size-tab-item-border-radius, map.get($tokens, tabs-size-tab-item-border-radius)
|
|
44
|
-
);
|
|
44
|
+
radius: kbq-css-variable(tabs-size-tab-item-border-radius);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
outline: none;
|
|
@@ -61,9 +61,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
61
61
|
& .kbq-tab-label__content {
|
|
62
62
|
display: flex;
|
|
63
63
|
|
|
64
|
-
gap:
|
|
65
|
-
--kbq-tabs-size-tab-item-content-gap-horizontal, map.get($tokens, tabs-size-tab-item-content-gap-horizontal)
|
|
66
|
-
);
|
|
64
|
+
gap: kbq-css-variable(tabs-size-tab-item-content-gap-horizontal);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
&.kbq-tab-label_vertical {
|