@koobiq/components 18.1.0 → 18.2.1
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.d.ts +1 -1
- package/core/option/action.scss +2 -2
- package/core/option/optgroup.scss +1 -1
- package/core/pop-up/pop-up-trigger.d.ts +3 -3
- 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 +7 -10
- package/esm2022/core/option/optgroup.mjs +2 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -12
- 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 +9 -10
- 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 +10 -14
- 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 +8 -11
- package/esm2022/navbar/navbar.component.mjs +14 -15
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +5 -5
- 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 +17 -16
- 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/paginated-tab-header.mjs +10 -12
- 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 +11 -13
- 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 +7 -8
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/tree/padding.directive.mjs +3 -9
- package/esm2022/tree/toggle.mjs +2 -2
- package/esm2022/tree/tree-base.mjs +5 -8
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree/tree-selection.component.mjs +12 -15
- package/esm2022/tree/tree.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +15 -15
- 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 +22 -23
- 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 +18 -19
- 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 +11 -15
- 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 +19 -24
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +7 -7
- 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 +17 -16
- 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 +15 -17
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +11 -13
- 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 +8 -9
- 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 +14 -14
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +21 -32
- 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.d.ts +1 -1
- 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-selection.component.d.ts +2 -4
- 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.component.d.ts +2 -3
- package/navbar/navbar-item.scss +6 -6
- package/navbar/navbar.component.d.ts +7 -5
- package/navbar/navbar.scss +1 -1
- package/navbar/vertical-navbar.scss +2 -2
- package/package.json +14 -7
- 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 +23 -6
- 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.component.d.ts +1 -2
- 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/paginated-tab-header.d.ts +1 -3
- 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.component.d.ts +1 -2
- 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.d.ts +0 -1
- 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/padding.directive.d.ts +2 -4
- package/tree/toggle.scss +2 -2
- package/tree/tree-base.d.ts +2 -3
- package/tree/tree-option.scss +4 -4
- package/tree/tree-selection.component.d.ts +2 -4
- package/tree-select/_tree-select-theme.scss +7 -7
- package/tree-select/tree-select.component.d.ts +1 -2
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
|
+
|
|
7
|
+
@mixin kbq-accordion-theme() {
|
|
8
|
+
.kbq-accordion.cdk-keyboard-focused {
|
|
9
|
+
& .kbq-accordion-item:focus-within {
|
|
10
|
+
border-color: var(--kbq-accordion-item-states-focus-border-color);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.kbq-accordion-item {
|
|
15
|
+
background: var(--kbq-accordion-item-default-background);
|
|
16
|
+
color: var(--kbq-accordion-item-default-text-color);
|
|
17
|
+
|
|
18
|
+
& .kbq-accordion-trigger__icon {
|
|
19
|
+
color: var(--kbq-accordion-item-default-icon-color);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.kbq-accordion-trigger {
|
|
24
|
+
width: 100%;
|
|
25
|
+
background: transparent;
|
|
26
|
+
border: none;
|
|
27
|
+
outline: none;
|
|
28
|
+
|
|
29
|
+
color: var(--kbq-accordion-item-default-text-color);
|
|
30
|
+
|
|
31
|
+
&:hover:not([data-disabled='true']) {
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
|
|
34
|
+
& .kbq-accordion-trigger__icon {
|
|
35
|
+
color: var(--kbq-accordion-item-states-hover-icon-color);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-disabled='true'] {
|
|
40
|
+
color: var(--kbq-accordion-item-states-disabled-text-color);
|
|
41
|
+
|
|
42
|
+
& .kbq-accordion-trigger__icon {
|
|
43
|
+
color: var(--kbq-accordion-item-states-disabled-icon-color) !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin kbq-accordion-typography() {
|
|
50
|
+
.kbq-accordion-header,
|
|
51
|
+
.kbq-accordion-trigger {
|
|
52
|
+
@include kbq-typography-css-variables(accordion, item-header-text);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.kbq-accordion-trigger__caption {
|
|
56
|
+
@include kbq-typography-level-to-styles_css-variables(typography, text-compact);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.kbq-accordion-content {
|
|
60
|
+
@include kbq-typography-css-variables(accordion, item-content-text);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@radix-ng/primitives/accordion";
|
|
3
|
+
export declare class KbqAccordionContent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAccordionContent, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAccordionContent, "kbq-accordion-content, [kbq-accordion-content]", never, {}, {}, never, never, false, [{ directive: typeof i1.RdxAccordionContentDirective; inputs: {}; outputs: {}; }]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@radix-ng/primitives/accordion";
|
|
3
|
+
export declare class KbqAccordionHeader {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAccordionHeader, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAccordionHeader, "kbq-accordion-header, [kbq-accordion-header]", never, {}, {}, never, never, false, [{ directive: typeof i1.RdxAccordionHeaderDirective; inputs: {}; outputs: {}; }]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@radix-ng/primitives/accordion";
|
|
3
|
+
export declare class KbqAccordionItem {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAccordionItem, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAccordionItem, "kbq-accordion-item, [kbq-accordion-item]", never, {}, {}, never, never, false, [{ directive: typeof i1.RdxAccordionItemDirective; inputs: { "expanded": "expanded"; "disabled": "disabled"; "value": "value"; }; outputs: { "closed": "closed"; "opened": "opened"; "expandedChange": "expandedChange"; }; }]>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* stylelint-disable no-unknown-custom-properties */
|
|
2
|
+
|
|
3
|
+
.kbq-accordion {
|
|
4
|
+
--kbq-accordion-size-item-header-height: 36px;
|
|
5
|
+
--kbq-accordion-size-item-header-variant-fill-padding: var(--kbq-size-xs) var(--kbq-size-s);
|
|
6
|
+
--kbq-accordion-size-item-header-variant-hug-padding: var(--kbq-size-xs) var(--kbq-size-s) var(--kbq-size-xs)
|
|
7
|
+
var(--kbq-size-m);
|
|
8
|
+
--kbq-accordion-size-item-content-padding: 0px var(--kbq-size-m) var(--kbq-size-s) var(--kbq-size-m);
|
|
9
|
+
--kbq-accordion-font-item-header-text-font-size: var(--kbq-typography-text-big-font-size);
|
|
10
|
+
--kbq-accordion-font-item-header-text-line-height: var(--kbq-typography-text-big-line-height);
|
|
11
|
+
--kbq-accordion-font-item-header-text-letter-spacing: var(--kbq-typography-text-big-letter-spacing);
|
|
12
|
+
--kbq-accordion-font-item-header-text-font-weight: var(--kbq-typography-text-big-font-weight);
|
|
13
|
+
--kbq-accordion-font-item-header-text-font-family: var(--kbq-typography-text-big-font-family);
|
|
14
|
+
--kbq-accordion-font-item-header-text-text-transform: var(--kbq-typography-text-big-text-transform);
|
|
15
|
+
--kbq-accordion-font-item-header-text-font-feature-settings: var(--kbq-typography-text-big-font-feature-settings);
|
|
16
|
+
--kbq-accordion-font-item-content-text-font-size: var(--kbq-typography-text-normal-font-size);
|
|
17
|
+
--kbq-accordion-font-item-content-text-line-height: var(--kbq-typography-text-normal-line-height);
|
|
18
|
+
--kbq-accordion-font-item-content-text-letter-spacing: var(--kbq-typography-text-normal-letter-spacing);
|
|
19
|
+
--kbq-accordion-font-item-content-text-font-weight: var(--kbq-typography-text-normal-font-weight);
|
|
20
|
+
--kbq-accordion-font-item-content-text-font-family: var(--kbq-typography-text-normal-font-family);
|
|
21
|
+
--kbq-accordion-font-item-content-text-text-transform: var(--kbq-typography-text-normal-text-transform);
|
|
22
|
+
--kbq-accordion-font-item-content-text-font-feature-settings: var(
|
|
23
|
+
--kbq-typography-text-normal-font-feature-settings
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
28
|
+
--kbq-accordion-item-default-background: transparent;
|
|
29
|
+
--kbq-accordion-item-default-text-color: var(--kbq-foreground-contrast);
|
|
30
|
+
--kbq-accordion-item-default-icon-color: var(--kbq-icon-contrast-fade);
|
|
31
|
+
--kbq-accordion-item-states-hover-icon-color: var(--kbq-icon-contrast);
|
|
32
|
+
--kbq-accordion-item-states-focus-border-color: var(--kbq-line-theme);
|
|
33
|
+
--kbq-accordion-item-states-disabled-text-color: var(--kbq-foreground-contrast-secondary);
|
|
34
|
+
--kbq-accordion-item-states-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
38
|
+
--kbq-accordion-item-default-background: transparent;
|
|
39
|
+
--kbq-accordion-item-default-text-color: var(--kbq-foreground-contrast);
|
|
40
|
+
--kbq-accordion-item-default-icon-color: var(--kbq-icon-contrast-fade);
|
|
41
|
+
--kbq-accordion-item-states-hover-icon-color: var(--kbq-icon-contrast);
|
|
42
|
+
--kbq-accordion-item-states-focus-border-color: var(--kbq-line-theme);
|
|
43
|
+
--kbq-accordion-item-states-disabled-text-color: var(--kbq-foreground-contrast-secondary);
|
|
44
|
+
--kbq-accordion-item-states-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
45
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KbqAccordion } from './accordion.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@radix-ng/primitives/accordion";
|
|
4
|
+
export declare class KbqAccordionTrigger {
|
|
5
|
+
protected accordion: KbqAccordion;
|
|
6
|
+
get isFill(): boolean;
|
|
7
|
+
get isHug(): boolean;
|
|
8
|
+
get isHugSpaceBetween(): boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAccordionTrigger, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqAccordionTrigger, "kbq-accordion-trigger, [kbq-accordion-trigger]", never, {}, {}, never, ["*"], false, [{ directive: typeof i1.RdxAccordionTriggerDirective; inputs: {}; outputs: {}; }]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
|
+
|
|
6
|
+
.kbq-accordion-trigger {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
align-items: center;
|
|
10
|
+
|
|
11
|
+
background: transparent;
|
|
12
|
+
border: none;
|
|
13
|
+
outline: none;
|
|
14
|
+
|
|
15
|
+
& .kbq-accordion-trigger__icon {
|
|
16
|
+
padding: var(--kbq-size-xxs);
|
|
17
|
+
|
|
18
|
+
transition: transform 300ms ease-out;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& .kbq-accordion-trigger__badge,
|
|
22
|
+
& .kbq-accordion-trigger__caption {
|
|
23
|
+
margin-top: var(--kbq-size-xxs);
|
|
24
|
+
margin-right: var(--kbq-size-s);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& .kbq-accordion-trigger__action {
|
|
28
|
+
padding: var(--kbq-size-xxs) var(--kbq-size-xxs) var(--kbq-size-3xs);
|
|
29
|
+
margin-bottom: calc(-1 * #{var(--kbq-size-3xs)});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:hover:not([data-disabled='true']) {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
|
|
35
|
+
& .kbq-accordion-trigger__icon {
|
|
36
|
+
color: var(--kbq-accordion-item-states-hover-icon-color);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.kbq-accordion-trigger_fill {
|
|
41
|
+
padding: var(--kbq-accordion-size-item-header-variant-fill-padding);
|
|
42
|
+
|
|
43
|
+
&[data-state='open'] > .kbq-accordion-trigger__icon {
|
|
44
|
+
transform: rotate(90deg);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.kbq-accordion-trigger_hug {
|
|
49
|
+
flex-direction: row-reverse;
|
|
50
|
+
justify-content: flex-end;
|
|
51
|
+
|
|
52
|
+
padding: var(--kbq-accordion-size-item-header-variant-hug-padding);
|
|
53
|
+
|
|
54
|
+
&[data-state='open'] > .kbq-accordion-trigger__icon {
|
|
55
|
+
transform: rotate(90deg);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.kbq-accordion-trigger_hug-space-between {
|
|
60
|
+
flex-direction: row-reverse;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
|
|
63
|
+
padding: var(--kbq-accordion-size-item-header-variant-hug-padding);
|
|
64
|
+
|
|
65
|
+
&[data-state='open'] > .kbq-accordion-trigger__icon {
|
|
66
|
+
transform: rotate(-180deg);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&[data-disabled='true'] {
|
|
71
|
+
& .kbq-accordion-trigger__icon {
|
|
72
|
+
color: var(--kbq-accordion-item-states-disabled-icon-color) !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
button.kbq-accordion-trigger {
|
|
78
|
+
flex: 1;
|
|
79
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import { RdxAccordionType } from '@radix-ng/primitives/accordion';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@radix-ng/primitives/accordion";
|
|
6
|
+
export type KbqAccordionType = RdxAccordionType;
|
|
7
|
+
export declare enum KbqAccordionVariant {
|
|
8
|
+
fill = "fill",
|
|
9
|
+
hug = "hug",
|
|
10
|
+
hugSpaceBetween = "hugSpaceBetween"
|
|
11
|
+
}
|
|
12
|
+
export declare class KbqAccordion implements OnDestroy {
|
|
13
|
+
private focusMonitor;
|
|
14
|
+
private elementRef;
|
|
15
|
+
variant: KbqAccordionVariant | string;
|
|
16
|
+
constructor(focusMonitor: FocusMonitor, elementRef: ElementRef<HTMLElement>);
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAccordion, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqAccordion, "kbq-accordion, [kbq-accordion]", never, { "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["*"], false, [{ directive: typeof i1.RdxAccordionRootDirective; inputs: { "type": "type"; "collapsible": "collapsible"; "disabled": "disabled"; "defaultValue": "defaultValue"; "value": "value"; }; outputs: { "onValueChange": "onValueChange"; }; }]>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
|
+
|
|
6
|
+
@use './accordion-theme' as *;
|
|
7
|
+
|
|
8
|
+
@keyframes slideDown {
|
|
9
|
+
from {
|
|
10
|
+
height: 0;
|
|
11
|
+
padding-bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
to {
|
|
15
|
+
height: var(--radix-accordion-content-height);
|
|
16
|
+
padding-bottom: 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes slideUp {
|
|
21
|
+
from {
|
|
22
|
+
height: var(--radix-accordion-content-height);
|
|
23
|
+
padding-bottom: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
to {
|
|
27
|
+
height: 0;
|
|
28
|
+
padding-bottom: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.kbq-accordion {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.kbq-accordion-item {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
display: block;
|
|
39
|
+
|
|
40
|
+
border-width: 2px;
|
|
41
|
+
border-style: solid;
|
|
42
|
+
border-color: transparent;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.kbq-accordion-header {
|
|
46
|
+
display: flex;
|
|
47
|
+
|
|
48
|
+
height: var(--kbq-accordion-size-item-header-height);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.kbq-accordion-content {
|
|
52
|
+
display: block;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
padding: var(--kbq-accordion-size-item-content-padding);
|
|
55
|
+
|
|
56
|
+
&[data-state='open'] {
|
|
57
|
+
animation: slideDown 300ms ease-out;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-state='closed'] {
|
|
61
|
+
animation: slideUp 300ms ease-out;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include kbq-accordion-theme();
|
|
66
|
+
@include kbq-accordion-typography();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./accordion.component";
|
|
3
|
+
import * as i2 from "./accordion-content";
|
|
4
|
+
import * as i3 from "./accordion-header";
|
|
5
|
+
import * as i4 from "./accordion-item";
|
|
6
|
+
import * as i5 from "./accordion-trigger.component";
|
|
7
|
+
import * as i6 from "@koobiq/components/icon";
|
|
8
|
+
export declare class KbqAccordionModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAccordionModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqAccordionModule, [typeof i1.KbqAccordion, typeof i2.KbqAccordionContent, typeof i3.KbqAccordionHeader, typeof i4.KbqAccordionItem, typeof i5.KbqAccordionTrigger], [typeof i6.KbqIcon], [typeof i1.KbqAccordion, typeof i2.KbqAccordionContent, typeof i3.KbqAccordionHeader, typeof i4.KbqAccordionItem, typeof i5.KbqAccordionTrigger]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KbqAccordionModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
package/alert/_alert-theme.scss
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
@mixin kbq-alert-style($type, $style-name) {
|
|
8
|
-
background: kbq-
|
|
8
|
+
background: var(--kbq-alert-#{$type}-#{$style-name}-container-background);
|
|
9
9
|
|
|
10
10
|
.kbq-alert__title {
|
|
11
|
-
color: kbq-
|
|
11
|
+
color: var(--kbq-alert-#{$type}-#{$style-name}-container-title);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.kbq-alert__text {
|
|
15
|
-
color: kbq-
|
|
15
|
+
color: var(--kbq-alert-#{$type}-#{$style-name}-container-text);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
package/alert/alert-tokens.scss
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
--kbq-alert-size-normal-icon-margin-left: var(--kbq-size-m);
|
|
17
17
|
--kbq-alert-size-normal-icon-padding-top: var(--kbq-size-xxs);
|
|
18
18
|
--kbq-alert-size-normal-title-margin-bottom: var(--kbq-size-xxs);
|
|
19
|
-
--kbq-alert-size-normal-close-button-margin-top:
|
|
20
|
-
--kbq-alert-size-normal-close-button-margin-left:
|
|
19
|
+
--kbq-alert-size-normal-close-button-margin-top: 10px;
|
|
20
|
+
--kbq-alert-size-normal-close-button-margin-left: var(--kbq-size-3xs);
|
|
21
21
|
--kbq-alert-size-normal-button-stack-padding-top: var(--kbq-size-s);
|
|
22
22
|
--kbq-alert-size-normal-button-stack-padding-bottom: var(--kbq-size-3xs);
|
|
23
23
|
--kbq-alert-size-normal-no-title-icon-margin-top: var(--kbq-size-l);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--kbq-alert-size-compact-icon-margin-right: var(--kbq-size-s);
|
|
36
36
|
--kbq-alert-size-compact-icon-padding-top: var(--kbq-size-xxs);
|
|
37
37
|
--kbq-alert-size-compact-title-margin-bottom: var(--kbq-size-3xs);
|
|
38
|
-
--kbq-alert-size-compact-close-button-margin-top:
|
|
38
|
+
--kbq-alert-size-compact-close-button-margin-top: 10px;
|
|
39
39
|
--kbq-alert-size-compact-close-button-margin-left: var(--kbq-size-3xs);
|
|
40
40
|
--kbq-alert-size-compact-button-stack-padding-top: var(--kbq-size-s);
|
|
41
41
|
--kbq-alert-size-compact-button-stack-padding-bottom: var(--kbq-size-3xs);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
|
|
13
13
|
& .kbq-alert__content_title {
|
|
14
|
-
margin-bottom: kbq-
|
|
14
|
+
margin-bottom: var(--kbq-size-xxs);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -24,22 +24,19 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.kbq-alert.kbq-alert_normal {
|
|
27
|
-
border-radius: kbq-
|
|
27
|
+
border-radius: var(--kbq-alert-size-normal-container-border-radius);
|
|
28
28
|
|
|
29
|
-
padding: kbq-
|
|
30
|
-
kbq-
|
|
31
|
-
kbq-css-variable(alert-size-normal-container-padding-bottom)
|
|
32
|
-
kbq-css-variable(alert-size-normal-container-padding-left);
|
|
29
|
+
padding: var(--kbq-alert-size-normal-container-padding-top) var(--kbq-alert-size-normal-container-padding-right)
|
|
30
|
+
var(--kbq-alert-size-normal-container-padding-bottom) var(--kbq-alert-size-normal-container-padding-left);
|
|
33
31
|
|
|
34
32
|
& .kbq-alert__icon {
|
|
35
|
-
margin: kbq-
|
|
36
|
-
kbq-
|
|
37
|
-
kbq-css-variable(alert-size-normal-icon-margin-left);
|
|
33
|
+
margin: var(--kbq-alert-size-normal-no-title-icon-margin-top) var(--kbq-alert-size-normal-icon-margin-right)
|
|
34
|
+
var(--kbq-alert-size-normal-icon-margin-bottom) var(--kbq-alert-size-normal-icon-margin-left);
|
|
38
35
|
|
|
39
36
|
&.kbq-alert__icon_title {
|
|
40
|
-
margin-top: kbq-
|
|
37
|
+
margin-top: var(--kbq-alert-size-normal-icon-margin-top);
|
|
41
38
|
|
|
42
|
-
padding-top: kbq-
|
|
39
|
+
padding-top: var(--kbq-alert-size-normal-no-title-icon-padding-top);
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
display: inline-flex;
|
|
@@ -47,19 +44,17 @@
|
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
& .kbq-alert__content {
|
|
50
|
-
padding: kbq-
|
|
51
|
-
kbq-
|
|
52
|
-
kbq-css-variable(alert-size-normal-content-padding-bottom)
|
|
53
|
-
kbq-css-variable(alert-size-normal-content-padding-left);
|
|
47
|
+
padding: var(--kbq-alert-size-normal-content-padding-top) var(--kbq-alert-size-normal-content-padding-right)
|
|
48
|
+
var(--kbq-alert-size-normal-content-padding-bottom) var(--kbq-alert-size-normal-content-padding-left);
|
|
54
49
|
}
|
|
55
50
|
|
|
56
51
|
& .kbq-alert__title {
|
|
57
|
-
margin-bottom: kbq-
|
|
52
|
+
margin-bottom: var(--kbq-alert-size-normal-title-margin-bottom);
|
|
58
53
|
}
|
|
59
54
|
|
|
60
55
|
& .kbq-alert__button-stack {
|
|
61
|
-
padding-top: kbq-
|
|
62
|
-
padding-bottom: kbq-
|
|
56
|
+
padding-top: var(--kbq-alert-size-normal-button-stack-padding-top);
|
|
57
|
+
padding-bottom: var(--kbq-alert-size-normal-button-stack-padding-bottom);
|
|
63
58
|
}
|
|
64
59
|
|
|
65
60
|
& .kbq-alert__button-stack_has-button {
|
|
@@ -67,29 +62,32 @@
|
|
|
67
62
|
}
|
|
68
63
|
|
|
69
64
|
& .kbq-alert__close-button {
|
|
70
|
-
margin-top: kbq-
|
|
71
|
-
margin-left: kbq-
|
|
65
|
+
margin-top: var(--kbq-alert-size-normal-close-button-margin-top);
|
|
66
|
+
margin-left: var(--kbq-alert-size-normal-close-button-margin-left);
|
|
67
|
+
|
|
68
|
+
.kbq-icon-button {
|
|
69
|
+
--kbq-icon-button-size-normal-horizontal-padding: 4px;
|
|
70
|
+
--kbq-icon-button-size-normal-vertical-padding: 4px;
|
|
71
|
+
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.kbq-alert.kbq-alert_compact {
|
|
76
|
-
border-radius: kbq-
|
|
76
|
+
border-radius: var(--kbq-alert-size-compact-container-border-radius);
|
|
77
77
|
|
|
78
|
-
padding: kbq-
|
|
79
|
-
kbq-
|
|
80
|
-
kbq-css-variable(alert-size-compact-container-padding-bottom)
|
|
81
|
-
kbq-css-variable(alert-size-compact-container-padding-left);
|
|
78
|
+
padding: var(--kbq-alert-size-compact-container-padding-top) var(--kbq-alert-size-compact-container-padding-right)
|
|
79
|
+
var(--kbq-alert-size-compact-container-padding-bottom) var(--kbq-alert-size-compact-container-padding-left);
|
|
82
80
|
|
|
83
81
|
& .kbq-alert__icon {
|
|
84
|
-
margin-top: kbq-
|
|
85
|
-
margin-right: kbq-
|
|
82
|
+
margin-top: var(--kbq-alert-size-compact-no-title-icon-margin-top);
|
|
83
|
+
margin-right: var(--kbq-alert-size-compact-icon-margin-right);
|
|
86
84
|
|
|
87
|
-
padding-top: kbq-
|
|
85
|
+
padding-top: var(--kbq-alert-size-compact-no-title-icon-padding-top);
|
|
88
86
|
|
|
89
87
|
&.kbq-alert__icon_title {
|
|
90
|
-
margin-top: kbq-
|
|
88
|
+
margin-top: var(--kbq-alert-size-compact-icon-margin-top);
|
|
91
89
|
|
|
92
|
-
padding-top: kbq-
|
|
90
|
+
padding-top: var(--kbq-alert-size-compact-icon-padding-top);
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
display: inline-flex;
|
|
@@ -97,19 +95,17 @@
|
|
|
97
95
|
}
|
|
98
96
|
|
|
99
97
|
& .kbq-alert__content {
|
|
100
|
-
padding: kbq-
|
|
101
|
-
kbq-
|
|
102
|
-
kbq-css-variable(alert-size-compact-content-padding-bottom)
|
|
103
|
-
kbq-css-variable(alert-size-compact-content-padding-left);
|
|
98
|
+
padding: var(--kbq-alert-size-compact-content-padding-top) var(--kbq-alert-size-compact-content-padding-right)
|
|
99
|
+
var(--kbq-alert-size-compact-content-padding-bottom) var(--kbq-alert-size-compact-content-padding-left);
|
|
104
100
|
}
|
|
105
101
|
|
|
106
102
|
& .kbq-alert__title {
|
|
107
|
-
margin-bottom: kbq-
|
|
103
|
+
margin-bottom: var(--kbq-alert-size-compact-title-margin-bottom);
|
|
108
104
|
}
|
|
109
105
|
|
|
110
106
|
& .kbq-alert__button-stack {
|
|
111
|
-
padding-top: kbq-
|
|
112
|
-
padding-bottom: kbq-
|
|
107
|
+
padding-top: var(--kbq-alert-size-compact-button-stack-padding-top);
|
|
108
|
+
padding-bottom: var(--kbq-alert-size-compact-button-stack-padding-bottom);
|
|
113
109
|
}
|
|
114
110
|
|
|
115
111
|
& .kbq-alert__button-stack_has-button {
|
|
@@ -117,8 +113,13 @@
|
|
|
117
113
|
}
|
|
118
114
|
|
|
119
115
|
& .kbq-alert__close-button {
|
|
120
|
-
margin-top: kbq-
|
|
121
|
-
margin-left: kbq-
|
|
116
|
+
margin-top: var(--kbq-alert-size-compact-close-button-margin-top);
|
|
117
|
+
margin-left: var(--kbq-alert-size-compact-close-button-margin-left);
|
|
118
|
+
|
|
119
|
+
.kbq-icon-button {
|
|
120
|
+
--kbq-icon-button-size-normal-horizontal-padding: 4px;
|
|
121
|
+
--kbq-icon-button-size-normal-vertical-padding: 4px;
|
|
122
|
+
}
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
@mixin kbq-autocomplete-theme {
|
|
8
8
|
.kbq-autocomplete-panel {
|
|
9
|
-
box-shadow: kbq-
|
|
10
|
-
background: kbq-
|
|
9
|
+
box-shadow: var(--kbq-select-panel-dropdown-shadow);
|
|
10
|
+
background: var(--kbq-select-panel-dropdown-background);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
width: 100%;
|
|
20
20
|
max-width: none;
|
|
21
21
|
|
|
22
|
-
max-height: kbq-
|
|
22
|
+
max-height: var(--kbq-autocomplete-size-panel-max-height);
|
|
23
23
|
|
|
24
|
-
border-bottom-left-radius: kbq-
|
|
25
|
-
border-bottom-right-radius: kbq-
|
|
24
|
+
border-bottom-left-radius: var(--kbq-autocomplete-size-panel-border-radius);
|
|
25
|
+
border-bottom-right-radius: var(--kbq-autocomplete-size-panel-border-radius);
|
|
26
26
|
|
|
27
|
-
padding: kbq-
|
|
27
|
+
padding: var(--kbq-autocomplete-size-panel-padding);
|
|
28
28
|
|
|
29
29
|
&.kbq-autocomplete_visible {
|
|
30
30
|
visibility: visible;
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.kbq-autocomplete-panel-above & {
|
|
38
|
-
border-radius: kbq-
|
|
39
|
-
|
|
38
|
+
border-radius: var(--kbq-autocomplete-size-panel-border-radius) var(--kbq-autocomplete-size-panel-border-radius)
|
|
39
|
+
0 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// We need to offset horizontal dividers by their height, because
|
package/badge/_badge-theme.scss
CHANGED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
@mixin kbq-badge-style($type, $sub-type, $style-name) {
|
|
8
8
|
$base-path: badge-#{$type}-#{$sub-type}-#{$style-name};
|
|
9
9
|
|
|
10
|
-
color: kbq
|
|
11
|
-
background: kbq
|
|
10
|
+
color: var(--kbq-#{$base-path}-color);
|
|
11
|
+
background: var(--kbq-#{$base-path}-background);
|
|
12
12
|
|
|
13
13
|
& .kbq-badge-caption {
|
|
14
|
-
color: kbq
|
|
14
|
+
color: var(--kbq-#{$base-path}-caption);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
& .kbq-icon {
|
|
18
|
-
color: kbq
|
|
18
|
+
color: var(--kbq-#{$base-path}-icon) !important;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@if $type == filled {
|
|
22
22
|
border: transparent;
|
|
23
23
|
} @else {
|
|
24
|
-
border-color: kbq
|
|
24
|
+
border-color: var(--kbq-#{$base-path}-border);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|