@koobiq/components 18.1.0 → 18.2.0
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/accordion/README.md +0 -0
- package/accordion/_accordion-theme.scss +62 -0
- package/accordion/accordion-content.d.ts +6 -0
- package/accordion/accordion-header.d.ts +6 -0
- package/accordion/accordion-item.d.ts +6 -0
- package/accordion/accordion-tokens.scss +45 -0
- package/accordion/accordion-trigger.component.d.ts +11 -0
- package/accordion/accordion-trigger.component.scss +79 -0
- package/accordion/accordion.component.d.ts +20 -0
- package/accordion/accordion.component.scss +66 -0
- package/accordion/accordion.module.d.ts +12 -0
- package/accordion/index.d.ts +1 -0
- package/accordion/public-api.d.ts +6 -0
- package/alert/_alert-theme.scss +3 -3
- package/alert/alert-tokens.scss +3 -3
- package/alert/alert.component.scss +40 -39
- package/autocomplete/_autocomplete-theme.scss +2 -2
- package/autocomplete/autocomplete.scss +6 -6
- package/badge/_badge-theme.scss +5 -5
- package/badge/badge.component.scss +16 -16
- package/button/_button-base.scss +6 -6
- package/button/_button-theme.scss +11 -11
- package/button/button.dropdown-trigger.directive.d.ts +14 -0
- package/button/button.module.d.ts +2 -1
- package/button/button.scss +8 -8
- package/button/public-api.d.ts +1 -0
- package/button-toggle/_button-toggle-theme.scss +5 -5
- package/button-toggle/button-toggle.scss +11 -11
- package/checkbox/_checkbox-theme.scss +22 -22
- package/checkbox/checkbox-tokens.scss +2 -2
- package/checkbox/checkbox.scss +16 -16
- package/code-block/_code-block-theme.scss +15 -15
- package/code-block/actionbar.component.scss +4 -4
- package/code-block/code-block.scss +18 -19
- package/core/forms/_forms-theme.scss +2 -2
- package/core/forms/_forms.scss +12 -12
- package/core/option/_optgroup-theme.scss +2 -2
- package/core/option/_option-action-theme.scss +6 -6
- package/core/option/_option-theme.scss +5 -5
- package/core/option/action.scss +2 -2
- package/core/option/optgroup.scss +1 -1
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +8 -8
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +2 -2
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +8 -8
- package/core/styles/common/_groups.scss +4 -4
- package/core/styles/common/_list.scss +19 -19
- package/core/styles/common/_popup.scss +3 -3
- package/core/styles/common/_select.scss +13 -13
- package/core/styles/common/_tokens.scss +8 -19
- package/core/styles/theming/_scrollbar-theme.scss +11 -11
- package/core/styles/visual/_layout.scss +13 -13
- package/datepicker/_datepicker-theme.scss +15 -15
- package/datepicker/calendar-body.scss +2 -2
- package/datepicker/calendar-header.scss +3 -3
- package/datepicker/calendar.scss +6 -6
- package/datepicker/datepicker-content.scss +4 -4
- package/datepicker/datepicker-toggle.scss +2 -2
- package/divider/_divider-theme.scss +1 -1
- package/divider/divider.scss +6 -6
- package/dl/_dl-theme.scss +2 -2
- package/dl/dl.scss +4 -4
- package/dropdown/_dropdown-theme.scss +7 -7
- package/dropdown/dropdown-item.scss +2 -2
- package/dropdown/dropdown.scss +5 -5
- package/empty-state/_empty-state-theme.scss +4 -4
- package/empty-state/empty-state.scss +18 -20
- package/esm2022/accordion/accordion-content.mjs +19 -0
- package/esm2022/accordion/accordion-header.mjs +19 -0
- package/esm2022/accordion/accordion-item.mjs +25 -0
- package/esm2022/accordion/accordion-trigger.component.mjs +60 -0
- package/esm2022/accordion/accordion.component.mjs +40 -0
- package/esm2022/accordion/accordion.module.mjs +44 -0
- package/esm2022/accordion/index.mjs +2 -0
- package/esm2022/accordion/koobiq-components-accordion.mjs +5 -0
- package/esm2022/accordion/public-api.mjs +7 -0
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/autocomplete/autocomplete.component.mjs +2 -2
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/button/button.dropdown-trigger.directive.mjs +28 -0
- package/esm2022/button/button.module.mjs +10 -5
- package/esm2022/button/public-api.mjs +2 -1
- 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 +2 -2
- package/esm2022/core/option/action.mjs +2 -2
- package/esm2022/core/option/optgroup.mjs +2 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +2 -2
- package/esm2022/datepicker/calendar.component.mjs +2 -2
- package/esm2022/datepicker/datepicker-toggle.component.mjs +2 -2
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/divider/divider.component.mjs +2 -2
- package/esm2022/dl/dl.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/empty-state/empty-state.component.mjs +2 -2
- package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- package/esm2022/form-field/cleaner.mjs +2 -2
- 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 +2 -2
- package/esm2022/form-field/stepper.mjs +2 -2
- package/esm2022/icon/icon-button.component.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +2 -2
- package/esm2022/icon/icon.component.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 +5 -7
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- 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/progress-bar/progress-bar.component.mjs +2 -2
- package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/risk-level/risk-level.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
- package/esm2022/select/select.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/splitter/splitter.component.mjs +3 -3
- package/esm2022/table/table.component.mjs +2 -2
- package/esm2022/tabs/tab-group.component.mjs +2 -2
- 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-list.component.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +2 -2
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/toast/toast-container.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/tree/toggle.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree/tree-selection.component.mjs +2 -2
- package/esm2022/tree/tree.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-accordion.mjs +189 -0
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -0
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +2 -2
- package/fesm2022/koobiq-components-autocomplete.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 +38 -8
- 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 +4 -4
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +9 -9
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +10 -10
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +2 -2
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -2
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +4 -4
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +2 -2
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +4 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +12 -12
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +6 -6
- package/fesm2022/koobiq-components-icon.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 +2 -2
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +4 -6
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +6 -6
- 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-progress-bar.mjs +2 -2
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
- package/fesm2022/koobiq-components-progress-spinner.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-risk-level.mjs +2 -2
- package/fesm2022/koobiq-components-risk-level.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 +2 -2
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +2 -2
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +2 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +6 -6
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +4 -4
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +4 -4
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +4 -4
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +2 -2
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +8 -8
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +27 -29
- package/file-upload/multiple-file-upload.component.scss +26 -26
- package/file-upload/single-file-upload.component.scss +8 -8
- package/form-field/_form-field-theme.scss +14 -14
- package/form-field/_hint-theme.scss +2 -2
- package/form-field/cleaner.scss +2 -2
- package/form-field/form-field.scss +10 -10
- package/form-field/hint.scss +4 -4
- package/form-field/password-toggle.scss +2 -2
- package/form-field/stepper.scss +3 -3
- package/icon/_icon-button-theme.scss +26 -26
- package/icon/_icon-item-theme.scss +2 -2
- package/icon/_icon-theme.scss +6 -6
- package/icon/icon-button.scss +2 -4
- package/icon/icon-item.scss +2 -4
- package/input/input.scss +2 -2
- package/link/_link-theme.scss +11 -11
- package/list/_list-theme.scss +6 -6
- package/list/list.scss +1 -1
- package/loader-overlay/_loader-overlay-theme.scss +6 -6
- package/loader-overlay/loader-overlay.scss +8 -8
- package/markdown/_markdown-theme.scss +27 -27
- package/markdown/markdown-tokens.scss +17 -17
- package/markdown/markdown.scss +29 -29
- package/modal/_modal-confirm.scss +1 -1
- package/modal/_modal-theme.scss +9 -12
- package/modal/modal.scss +12 -13
- package/navbar/_navbar-item_horizontal.scss +20 -20
- package/navbar/_navbar-item_vertical.scss +28 -28
- package/navbar/_navbar-theme.scss +8 -8
- package/navbar/navbar-brand.scss +23 -23
- package/navbar/navbar-divider.scss +3 -3
- package/navbar/navbar-item.scss +6 -6
- package/navbar/navbar.scss +1 -1
- package/navbar/vertical-navbar.scss +2 -2
- package/package.json +13 -6
- package/popover/_popover-theme.scss +7 -7
- package/popover/popover.scss +17 -18
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +4 -4
- package/progress-bar/progress-bar.scss +5 -5
- package/progress-spinner/_progress-spinner-theme.scss +3 -3
- package/progress-spinner/progress-spinner.scss +7 -7
- package/radio/_radio-theme.scss +9 -9
- package/radio/radio.scss +14 -14
- package/risk-level/_risk-level-theme.scss +5 -5
- package/risk-level/risk-level.component.scss +3 -3
- package/schematics/ng-add/index.js +21 -4
- package/scrollbar/_scrollbar-component-theme.scss +12 -12
- package/scrollbar/scrollbar.component.scss +6 -6
- package/select/_select-theme.scss +9 -9
- package/select/select.scss +2 -2
- package/sidepanel/_sidepanel-theme.scss +4 -4
- package/sidepanel/sidepanel.scss +14 -16
- package/splitter/_splitter-theme.scss +1 -1
- package/table/_table-theme.scss +5 -5
- package/table/table.scss +12 -12
- package/tabs/_tabs-common.scss +3 -3
- package/tabs/_tabs-theme.scss +13 -13
- package/tabs/tab-group.scss +1 -1
- package/tabs/tab-header.scss +3 -2
- package/tabs/tab-nav-bar/tab-nav-bar.scss +1 -1
- package/tags/_tag-theme.scss +5 -5
- package/tags/tag-list.scss +5 -5
- package/tags/tag.scss +4 -4
- package/textarea/textarea.scss +2 -2
- package/timepicker/timepicker.scss +1 -1
- package/timezone/_timezone-option-theme.scss +3 -3
- package/timezone/timezone-option.component.scss +4 -4
- package/timezone/timezone-select.component.scss +1 -1
- package/toast/_toast-theme.scss +4 -4
- package/toast/toast-container.component.scss +3 -3
- package/toast/toast.component.scss +21 -21
- package/toggle/_toggle-theme.scss +8 -8
- package/toggle/toggle.scss +8 -8
- package/tooltip/_tooltip-theme.scss +5 -5
- package/tooltip/tooltip.scss +7 -7
- package/tree/_tree-theme.scss +6 -6
- package/tree/toggle.scss +2 -2
- package/tree/tree-option.scss +4 -4
- package/tree-select/_tree-select-theme.scss +7 -7
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
@use './code-block-theme' as *;
|
|
6
6
|
|
|
7
|
-
$border-radius: kbq-
|
|
8
|
-
$border-width: kbq-
|
|
7
|
+
$border-radius: var(--kbq-code-block-size-container-border-radius);
|
|
8
|
+
$border-width: var(--kbq-code-block-size-container-border-width);
|
|
9
9
|
|
|
10
10
|
.kbq-code-block {
|
|
11
11
|
display: block;
|
|
@@ -26,10 +26,9 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
|
|
|
26
26
|
// 4 buttons + margin
|
|
27
27
|
$buttons-margin: calc(32 * 4) + 24px;
|
|
28
28
|
|
|
29
|
-
padding: calc(kbq-
|
|
29
|
+
padding: calc(var(--kbq-code-block-size-header-padding-vertical) - $border-width)
|
|
30
30
|
kbq-sum-series-css-variables([code-block-size-header-padding-right, $buttons-margin])
|
|
31
|
-
kbq-
|
|
32
|
-
kbq-css-variable(code-block-size-header-padding-left);
|
|
31
|
+
var(--kbq-code-block-size-header-padding-vertical) var(--kbq-code-block-size-header-padding-left);
|
|
33
32
|
|
|
34
33
|
border-width: $border-width $border-width 0 $border-width;
|
|
35
34
|
border-style: solid;
|
|
@@ -39,7 +38,7 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
|
|
|
39
38
|
&:has(.kbq-code-block__show-more) {
|
|
40
39
|
.kbq-code-block__code {
|
|
41
40
|
& > code {
|
|
42
|
-
padding-bottom: kbq-
|
|
41
|
+
padding-bottom: var(--kbq-size-3xl) !important;
|
|
43
42
|
overflow-x: scroll;
|
|
44
43
|
}
|
|
45
44
|
}
|
|
@@ -55,10 +54,10 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
|
|
|
55
54
|
|
|
56
55
|
.kbq-code-block__code {
|
|
57
56
|
> code {
|
|
58
|
-
padding: kbq-
|
|
59
|
-
kbq-
|
|
60
|
-
kbq-
|
|
61
|
-
kbq-
|
|
57
|
+
padding: var(--kbq-code-block-size-with-header-content-padding-top)
|
|
58
|
+
var(--kbq-code-block-size-with-header-content-padding-horizontal)
|
|
59
|
+
var(--kbq-code-block-size-with-header-content-padding-bottom)
|
|
60
|
+
var(--kbq-code-block-size-with-header-content-padding-horizontal);
|
|
62
61
|
|
|
63
62
|
border-radius: $border-radius;
|
|
64
63
|
|
|
@@ -68,7 +67,7 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
|
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
.hljs-ln-numbers {
|
|
71
|
-
padding-right: kbq-
|
|
70
|
+
padding-right: var(--kbq-code-block-size-with-header-content-content-gap-horizontal);
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
|
|
@@ -110,12 +109,12 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
|
|
|
110
109
|
position: relative;
|
|
111
110
|
|
|
112
111
|
& > code {
|
|
113
|
-
padding: kbq-
|
|
114
|
-
kbq-
|
|
112
|
+
padding: var(--kbq-code-block-size-no-header-content-padding-vertical)
|
|
113
|
+
var(--kbq-code-block-size-no-header-content-padding-horizontal);
|
|
115
114
|
}
|
|
116
115
|
|
|
117
116
|
.hljs-ln-numbers {
|
|
118
|
-
padding-right: kbq-
|
|
117
|
+
padding-right: var(--kbq-code-block-size-no-header-content-content-gap-horizontal);
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
120
|
}
|
|
@@ -183,19 +182,19 @@ $border-width: kbq-css-variable(code-block-size-container-border-width);
|
|
|
183
182
|
border-radius: $border-radius;
|
|
184
183
|
|
|
185
184
|
&.kbq-code-block__show-more_collapsed {
|
|
186
|
-
padding-top: kbq-
|
|
185
|
+
padding-top: var(--kbq-code-block-size-collapse-collapsed-padding-top);
|
|
187
186
|
|
|
188
|
-
padding-bottom: kbq-
|
|
187
|
+
padding-bottom: var(--kbq-code-block-size-collapse-collapsed-padding-bottom);
|
|
189
188
|
}
|
|
190
189
|
|
|
191
190
|
&.kbq-code-block__show-more_expanded {
|
|
192
|
-
padding-top: kbq-
|
|
191
|
+
padding-top: var(--kbq-code-block-size-collapse-expanded-padding-top);
|
|
193
192
|
|
|
194
|
-
margin-bottom: kbq-
|
|
193
|
+
margin-bottom: var(--kbq-code-block-size-collapse-expanded-padding-bottom);
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
.bg-wrapper {
|
|
198
|
-
border-radius: kbq-
|
|
197
|
+
border-radius: var(--kbq-button-size-border-radius);
|
|
199
198
|
}
|
|
200
199
|
}
|
|
201
200
|
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
@include kbq-form-geometry();
|
|
8
8
|
|
|
9
9
|
.kbq-form__label {
|
|
10
|
-
color: kbq-
|
|
10
|
+
color: var(--kbq-forms-label);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.kbq-form__legend {
|
|
14
|
-
color: kbq-
|
|
14
|
+
color: var(--kbq-forms-legend);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
package/core/forms/_forms.scss
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.kbq-form-horizontal {
|
|
15
|
-
$line-height: kbq-
|
|
16
|
-
$form-field-size-height: kbq-
|
|
15
|
+
$line-height: var(--kbq-forms-font-label-line-height);
|
|
16
|
+
$form-field-size-height: var(--kbq-form-field-size-height);
|
|
17
17
|
|
|
18
18
|
& .kbq-form-row_margin {
|
|
19
|
-
margin-bottom: kbq-
|
|
19
|
+
margin-bottom: var(--kbq-forms-size-horizontal-row-margin-bottom);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
& .kbq-form__label {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
& .kbq-form__control {
|
|
29
|
-
padding-left: kbq-
|
|
29
|
+
padding-left: var(--kbq-forms-size-horizontal-control-padding-left);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
& .kbq-form__legend {
|
|
33
|
-
margin-top: kbq-
|
|
34
|
-
margin-bottom: kbq-
|
|
33
|
+
margin-top: var(--kbq-forms-size-horizontal-legend-margin-top);
|
|
34
|
+
margin-bottom: var(--kbq-forms-size-horizontal-legend-margin-bottom);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
& .kbq-form-row_margin {
|
|
44
|
-
margin-bottom: kbq-
|
|
44
|
+
margin-bottom: var(--kbq-forms-size-vertical-row-margin-bottom);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
& .kbq-form__label {
|
|
48
|
-
padding-top: kbq-
|
|
49
|
-
padding-bottom: kbq-
|
|
48
|
+
padding-top: var(--kbq-forms-size-vertical-label-padding-top);
|
|
49
|
+
padding-bottom: var(--kbq-forms-size-vertical-label-padding-bottom);
|
|
50
50
|
|
|
51
51
|
text-align: start;
|
|
52
52
|
}
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
& .kbq-form__legend {
|
|
59
|
-
margin-top: kbq-
|
|
60
|
-
margin-bottom: kbq-
|
|
59
|
+
margin-top: var(--kbq-forms-size-vertical-legend-margin-top);
|
|
60
|
+
margin-bottom: var(--kbq-forms-size-vertical-legend-margin-bottom);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
flex-direction: row;
|
|
71
71
|
|
|
72
72
|
& .kbq-form__row:not(:first-child) {
|
|
73
|
-
padding-left: kbq-
|
|
73
|
+
padding-left: var(--kbq-forms-size-vertical-control-padding-left);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin kbq-optgroup-theme() {
|
|
4
4
|
.kbq-optgroup-label {
|
|
5
|
-
color: kbq-
|
|
5
|
+
color: var(--kbq-foreground-contrast);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.kbq-disabled .kbq-optgroup-label {
|
|
9
|
-
color: kbq-
|
|
9
|
+
color: var(--kbq-foreground-text-disabled);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
@mixin kbq-option-action-theme() {
|
|
4
4
|
.kbq-option-action {
|
|
5
5
|
&.cdk-keyboard-focused {
|
|
6
|
-
border-color: kbq-
|
|
6
|
+
border-color: var(--kbq-states-focused-color);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
&:active,
|
|
10
10
|
&.kbq-pressed {
|
|
11
11
|
& .kbq-icon {
|
|
12
|
-
color: kbq-
|
|
12
|
+
color: var(--kbq-states-icon-contrast-fade-active);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
background-color: kbq-
|
|
15
|
+
background-color: var(--kbq-background-transparent);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
&:hover .kbq-icon {
|
|
19
|
-
color: kbq-
|
|
19
|
+
color: var(--kbq-states-icon-contrast-fade-hover);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&.kbq-disabled {
|
|
23
23
|
& .kbq-icon {
|
|
24
|
-
color: kbq-
|
|
24
|
+
color: var(--kbq-states-icon-disabled);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
background-color: kbq-
|
|
27
|
+
background-color: var(--kbq-background-transparent);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@use '../styles/common/tokens' as *;
|
|
2
2
|
|
|
3
3
|
@mixin kbq-option($style-name) {
|
|
4
|
-
background: kbq-
|
|
4
|
+
background: var(--kbq-list-#{$style-name}-container-background);
|
|
5
5
|
|
|
6
6
|
.kbq-option-text {
|
|
7
|
-
color: kbq-
|
|
7
|
+
color: var(--kbq-list-#{$style-name}-text-color);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.kbq-option-action .kbq-icon {
|
|
11
|
-
color: kbq-
|
|
11
|
+
color: var(--kbq-list-#{$style-name}-icon-button-color);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.kbq-option-caption {
|
|
15
|
-
color: kbq-
|
|
15
|
+
color: var(--kbq-list-#{$style-name}-caption-color);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
&.kbq-focused,
|
|
28
28
|
&.kbq-active {
|
|
29
|
-
border-color: kbq-
|
|
29
|
+
border-color: var(--kbq-list-states-focused-focus-outline-color);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&.kbq-selected {
|
package/core/option/action.scss
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
|
|
15
15
|
margin-right: -2px;
|
|
16
16
|
|
|
17
|
-
width: kbq-
|
|
18
|
-
height: kbq-
|
|
17
|
+
width: var(--kbq-list-font-text-line-height);
|
|
18
|
+
height: var(--kbq-list-font-text-line-height);
|
|
19
19
|
|
|
20
20
|
cursor: pointer;
|
|
21
21
|
|
|
@@ -5,28 +5,28 @@
|
|
|
5
5
|
@mixin kbq-pseudo-checkbox-color($style-name) {
|
|
6
6
|
$base: checkbox-#{$style-name};
|
|
7
7
|
|
|
8
|
-
border-color: kbq
|
|
9
|
-
background: kbq
|
|
8
|
+
border-color: var(--kbq-#{$base}-default-border);
|
|
9
|
+
background: var(--kbq-#{$base}-default-background);
|
|
10
10
|
|
|
11
11
|
& .kbq-checkbox-checkmark,
|
|
12
12
|
& .kbq-checkbox-mixedmark {
|
|
13
|
-
color: kbq
|
|
13
|
+
color: var(--kbq-#{$base}-default-color);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&.kbq-checked,
|
|
17
17
|
&.kbq-indeterminate {
|
|
18
|
-
border-color: kbq
|
|
19
|
-
background: kbq
|
|
18
|
+
border-color: var(--kbq-#{$base}-states-checked-border);
|
|
19
|
+
background: var(--kbq-#{$base}-states-checked-background);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&.kbq-disabled {
|
|
23
23
|
& .kbq-checkbox-checkmark,
|
|
24
24
|
& .kbq-checkbox-mixedmark {
|
|
25
|
-
color: kbq
|
|
25
|
+
color: var(--kbq-#{$base}-states-disabled-color);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
border-color: kbq
|
|
29
|
-
background: kbq
|
|
28
|
+
border-color: var(--kbq-#{$base}-states-disabled-border);
|
|
29
|
+
background: var(--kbq-#{$base}-states-disabled-background);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
--kbq-checkbox-theme-states-checked-focused-border: var(--kbq-states-line-focus-theme);
|
|
62
62
|
--kbq-checkbox-theme-states-checked-focused-background: var(--kbq-background-theme);
|
|
63
63
|
--kbq-checkbox-theme-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-theme);
|
|
64
|
-
--kbq-checkbox-theme-states-disabled-border: var(--kbq-line-
|
|
64
|
+
--kbq-checkbox-theme-states-disabled-border: var(--kbq-states-line-disabled);
|
|
65
65
|
--kbq-checkbox-theme-states-disabled-color: var(--kbq-states-icon-disabled);
|
|
66
66
|
--kbq-checkbox-theme-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
67
67
|
--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
--kbq-checkbox-error-states-checked-focused-border: var(--kbq-states-line-focus-error);
|
|
84
84
|
--kbq-checkbox-error-states-checked-focused-background: var(--kbq-background-error);
|
|
85
85
|
--kbq-checkbox-error-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-error);
|
|
86
|
-
--kbq-checkbox-error-states-disabled-border: var(--kbq-line-
|
|
86
|
+
--kbq-checkbox-error-states-disabled-border: var(--kbq-states-line-disabled);
|
|
87
87
|
--kbq-checkbox-error-states-disabled-color: var(--kbq-states-icon-disabled);
|
|
88
88
|
--kbq-checkbox-error-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
89
89
|
--kbq-checkbox-error-states-disabled-background: var(--kbq-states-background-disabled);
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: center;
|
|
15
15
|
|
|
16
|
-
width: kbq-
|
|
17
|
-
height: kbq-
|
|
16
|
+
width: var(--kbq-checkbox-size-normal-width);
|
|
17
|
+
height: var(--kbq-checkbox-size-normal-width);
|
|
18
18
|
|
|
19
19
|
border: {
|
|
20
|
-
radius: kbq-
|
|
21
|
-
width: kbq-
|
|
20
|
+
radius: var(--kbq-checkbox-size-normal-border-radius);
|
|
21
|
+
width: var(--kbq-checkbox-size-normal-border-width);
|
|
22
22
|
style: solid;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.kbq-pseudo-checkbox.kbq-pseudo-checkbox_big {
|
|
58
|
-
width: kbq-
|
|
59
|
-
height: kbq-
|
|
58
|
+
width: var(--kbq-checkbox-size-big-width);
|
|
59
|
+
height: var(--kbq-checkbox-size-big-width);
|
|
60
60
|
|
|
61
61
|
border: {
|
|
62
|
-
radius: kbq-
|
|
63
|
-
width: kbq-
|
|
62
|
+
radius: var(--kbq-checkbox-size-big-border-radius);
|
|
63
|
+
width: var(--kbq-checkbox-size-big-border-width);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -45,7 +45,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.kbq-group-item + .kbq-group-item {
|
|
48
|
-
margin-left: calc(-1 * #{kbq-
|
|
48
|
+
margin-left: calc(-1 * #{var(--kbq-button-size-border-width)});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
& > .kbq-group-item:first-child:not(:last-child) {
|
|
@@ -81,7 +81,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
81
81
|
&:first-child:not(:last-child) {
|
|
82
82
|
@include border-bottom-radius(0);
|
|
83
83
|
|
|
84
|
-
border-top-right-radius: kbq-
|
|
84
|
+
border-top-right-radius: var(--kbq-button-size-border-radius);
|
|
85
85
|
|
|
86
86
|
> .kbq-form-field__container {
|
|
87
87
|
@include border-bottom-radius(0);
|
|
@@ -91,7 +91,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
91
91
|
&:last-child:not(:first-child) {
|
|
92
92
|
@include border-top-radius(0);
|
|
93
93
|
|
|
94
|
-
border-bottom-left-radius: kbq-
|
|
94
|
+
border-bottom-left-radius: var(--kbq-button-size-border-radius);
|
|
95
95
|
|
|
96
96
|
> .kbq-form-field__container {
|
|
97
97
|
@include border-top-radius(0);
|
|
@@ -108,6 +108,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.kbq-group-item + .kbq-group-item {
|
|
111
|
-
margin-top: calc(-1 * #{kbq-
|
|
111
|
+
margin-top: calc(-1 * #{var(--kbq-button-size-border-width)});
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -64,21 +64,21 @@
|
|
|
64
64
|
outline: none;
|
|
65
65
|
-webkit-tap-highlight-color: transparent;
|
|
66
66
|
min-height: 32px;
|
|
67
|
-
gap: kbq-
|
|
67
|
+
gap: var(--kbq-size-s);
|
|
68
68
|
|
|
69
|
-
border: kbq-
|
|
69
|
+
border: var(--kbq-size-3xs) solid transparent;
|
|
70
70
|
|
|
71
|
-
padding-top: kbq-
|
|
72
|
-
padding-left: kbq-
|
|
73
|
-
padding-right: kbq-
|
|
74
|
-
padding-bottom: kbq-
|
|
71
|
+
padding-top: var(--kbq-size-xxs);
|
|
72
|
+
padding-left: var(--kbq-size-m);
|
|
73
|
+
padding-right: var(--kbq-size-m);
|
|
74
|
+
padding-bottom: var(--kbq-size-xxs);
|
|
75
75
|
|
|
76
76
|
.kbq-list-text {
|
|
77
77
|
@include kbq-list-text();
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.kbq-list-option-caption {
|
|
81
|
-
padding-top: kbq-
|
|
81
|
+
padding-top: var(--kbq-size-3xs);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -89,13 +89,13 @@
|
|
|
89
89
|
box-sizing: border-box;
|
|
90
90
|
min-height: 32px;
|
|
91
91
|
|
|
92
|
-
border-left: kbq-
|
|
93
|
-
border-right: kbq-
|
|
92
|
+
border-left: var(--kbq-size-3xs) solid transparent;
|
|
93
|
+
border-right: var(--kbq-size-3xs) solid transparent;
|
|
94
94
|
|
|
95
|
-
padding-top: kbq-
|
|
96
|
-
padding-left: kbq-
|
|
97
|
-
padding-right: kbq-
|
|
98
|
-
padding-bottom: kbq-
|
|
95
|
+
padding-top: var(--kbq-size-xs);
|
|
96
|
+
padding-left: var(--kbq-size-m);
|
|
97
|
+
padding-right: var(--kbq-size-m);
|
|
98
|
+
padding-bottom: var(--kbq-size-3xs);
|
|
99
99
|
|
|
100
100
|
.kbq-list-text {
|
|
101
101
|
@include kbq-list-text();
|
|
@@ -109,13 +109,13 @@
|
|
|
109
109
|
box-sizing: border-box;
|
|
110
110
|
min-height: 32px;
|
|
111
111
|
|
|
112
|
-
border-left: kbq-
|
|
113
|
-
border-right: kbq-
|
|
112
|
+
border-left: var(--kbq-size-3xs) solid transparent;
|
|
113
|
+
border-right: var(--kbq-size-3xs) solid transparent;
|
|
114
114
|
|
|
115
|
-
padding-top: kbq-
|
|
116
|
-
padding-left: kbq-
|
|
117
|
-
padding-right: kbq-
|
|
118
|
-
padding-bottom: kbq-
|
|
115
|
+
padding-top: var(--kbq-size-m);
|
|
116
|
+
padding-left: var(--kbq-size-m);
|
|
117
|
+
padding-right: var(--kbq-size-m);
|
|
118
|
+
padding-bottom: var(--kbq-size-xxs);
|
|
119
119
|
|
|
120
120
|
.kbq-list-text {
|
|
121
121
|
@include kbq-list-text();
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
@mixin popup-params($theme) {
|
|
5
5
|
$popup: map.get($theme, components, popup);
|
|
6
6
|
|
|
7
|
-
box-shadow: kbq-
|
|
8
|
-
border-color: kbq-
|
|
7
|
+
box-shadow: var(--kbq-popup-shadow, map.get($popup, shadow));
|
|
8
|
+
border-color: var(--kbq-popup-border, map.get($popup, border));
|
|
9
9
|
|
|
10
|
-
background-color: kbq-
|
|
10
|
+
background-color: var(--kbq-popup-background, map.get($popup, background));
|
|
11
11
|
}
|
|
@@ -42,7 +42,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
42
42
|
|
|
43
43
|
height: kbq-difference-series-css-variables(
|
|
44
44
|
[form-field-size-height,
|
|
45
|
-
calc(kbq-
|
|
45
|
+
calc(var(--kbq-form-field-size-border-width) * 2)]
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -83,17 +83,17 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
83
83
|
|
|
84
84
|
height: kbq-difference-series-css-variables(
|
|
85
85
|
[form-field-size-height,
|
|
86
|
-
calc(kbq-
|
|
86
|
+
calc(var(--kbq-select-size-multiple-padding-vertical) * 2)]
|
|
87
87
|
);
|
|
88
88
|
|
|
89
89
|
max-height: kbq-difference-series-css-variables(
|
|
90
90
|
[form-field-size-height,
|
|
91
|
-
calc(kbq-
|
|
91
|
+
calc(var(--kbq-select-size-multiple-padding-vertical) * 2)]
|
|
92
92
|
);
|
|
93
93
|
|
|
94
|
-
gap: kbq-
|
|
94
|
+
gap: var(--kbq-select-size-multiple-content-gap);
|
|
95
95
|
|
|
96
|
-
margin-right: kbq-
|
|
96
|
+
margin-right: var(--kbq-select-size-multiple-content-gap);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -108,7 +108,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
108
108
|
flex: 0 0 70px;
|
|
109
109
|
align-self: center;
|
|
110
110
|
padding-left: 4px;
|
|
111
|
-
padding-right: kbq-
|
|
111
|
+
padding-right: var(--kbq-select-size-multiple-content-gap);
|
|
112
112
|
|
|
113
113
|
text-align: right;
|
|
114
114
|
}
|
|
@@ -146,7 +146,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
146
146
|
|
|
147
147
|
overflow: hidden;
|
|
148
148
|
|
|
149
|
-
border-radius: kbq-
|
|
149
|
+
border-radius: var(--kbq-select-panel-size-border-radius);
|
|
150
150
|
|
|
151
151
|
// Override optgroup and option to scale based on font-size of the trigger.
|
|
152
152
|
.kbq-optgroup-label,
|
|
@@ -163,15 +163,15 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
163
163
|
position: relative;
|
|
164
164
|
|
|
165
165
|
max-width: 100%;
|
|
166
|
-
height: kbq-
|
|
166
|
+
height: var(--kbq-option-size-height);
|
|
167
167
|
|
|
168
168
|
cursor: default;
|
|
169
169
|
outline: none;
|
|
170
170
|
|
|
171
|
-
padding-left: kbq-
|
|
172
|
-
padding-right: kbq-
|
|
171
|
+
padding-left: var(--kbq-option-size-horizontal-padding);
|
|
172
|
+
padding-right: var(--kbq-option-size-horizontal-padding);
|
|
173
173
|
|
|
174
|
-
border: kbq-
|
|
174
|
+
border: var(--kbq-option-size-border-width) solid transparent;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.kbq-select__search-container {
|
|
@@ -183,7 +183,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
%kbq-select-content {
|
|
186
|
-
max-height: kbq-
|
|
186
|
+
max-height: var(--kbq-select-panel-size-max-height);
|
|
187
187
|
padding: 4px 0;
|
|
188
188
|
overflow: hidden auto;
|
|
189
189
|
}
|
|
@@ -198,5 +198,5 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
198
198
|
border-top-width: 1px;
|
|
199
199
|
border-top-style: solid;
|
|
200
200
|
|
|
201
|
-
padding: kbq-
|
|
201
|
+
padding: var(--kbq-size-xxs) var(--kbq-size-m);
|
|
202
202
|
}
|
|
@@ -7,23 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
9
9
|
|
|
10
|
-
@function kbq-css-variable($name, $value: null) {
|
|
11
|
-
@if $value {
|
|
12
|
-
@return var(--kbq-#{$name}, $value);
|
|
13
|
-
} @else {
|
|
14
|
-
@return var(--kbq-#{$name}, map.get($tokens, $name));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
10
|
@function getToken($name) {
|
|
19
11
|
@return map.get($tokens, $name);
|
|
20
12
|
}
|
|
21
13
|
|
|
22
14
|
@mixin kbq-css-font-variable($component, $component-property, $font-property, $font) {
|
|
23
|
-
#{$font-property}: var(
|
|
24
|
-
--kbq-#{$component}-#{$font}#{$component-property}-#{$font-property},
|
|
25
|
-
map.get($tokens, #{$component}-#{$font}#{$component-property}-#{$font-property})
|
|
26
|
-
);
|
|
15
|
+
#{$font-property}: var(--kbq-#{$component}-#{$font}#{$component-property}-#{$font-property});
|
|
27
16
|
}
|
|
28
17
|
|
|
29
18
|
@mixin kbq-typography-css-variables($component, $property) {
|
|
@@ -53,13 +42,13 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
53
42
|
@if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
|
|
54
43
|
$sum: $variable;
|
|
55
44
|
} @else {
|
|
56
|
-
$sum: kbq
|
|
45
|
+
$sum: var(--kbq-#{$variable});
|
|
57
46
|
}
|
|
58
47
|
} @else {
|
|
59
48
|
@if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
|
|
60
49
|
$sum: calc($sum + $variable);
|
|
61
50
|
} @else {
|
|
62
|
-
$sum: calc($sum + kbq
|
|
51
|
+
$sum: calc($sum + var(--kbq-#{$variable}));
|
|
63
52
|
}
|
|
64
53
|
}
|
|
65
54
|
}
|
|
@@ -73,13 +62,13 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
73
62
|
@if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
|
|
74
63
|
$difference: $variable;
|
|
75
64
|
} @else {
|
|
76
|
-
$difference: kbq
|
|
65
|
+
$difference: var(--kbq-#{$variable});
|
|
77
66
|
}
|
|
78
67
|
} @else {
|
|
79
68
|
@if (meta.type-of($variable) == number or meta.type-of($variable) == calculation) {
|
|
80
69
|
$difference: calc($difference - $variable);
|
|
81
70
|
} @else {
|
|
82
|
-
$difference: calc($difference - kbq
|
|
71
|
+
$difference: calc($difference - var(--kbq-#{$variable}));
|
|
83
72
|
}
|
|
84
73
|
}
|
|
85
74
|
}
|
|
@@ -89,11 +78,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
89
78
|
@function kbq-css-half-difference($outer, $inner, $border: null) {
|
|
90
79
|
@if $border {
|
|
91
80
|
@if (meta.type-of($border) == number or meta.type-of($border) == calculation) {
|
|
92
|
-
@return calc((kbq
|
|
81
|
+
@return calc((var(--kbq-#{$outer}) - var(--kbq-#{$inner}) - $border * 2) / 2);
|
|
93
82
|
} @else {
|
|
94
|
-
@return calc((kbq
|
|
83
|
+
@return calc((var(--kbq-#{$outer}) - var(--kbq-#{$inner}) - var(--kbq-#{$border} * 2)) / 2);
|
|
95
84
|
}
|
|
96
85
|
} @else {
|
|
97
|
-
@return calc((kbq
|
|
86
|
+
@return calc((var(--kbq-#{$outer}) - var(--kbq-#{$inner})) / 2);
|
|
98
87
|
}
|
|
99
88
|
}
|