@koobiq/components 18.8.0 → 18.9.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/accordion-tokens.scss +1 -13
- package/alert/alert-tokens.scss +1 -36
- package/autocomplete/autocomplete-tokens.scss +1 -8
- package/autocomplete/autocomplete-trigger.directive.d.ts +5 -3
- package/autocomplete/autocomplete.scss +21 -1
- package/badge/_badge-theme.scss +1 -1
- package/badge/badge-tokens.scss +1 -71
- package/button/button-tokens.scss +1 -140
- package/button-toggle/button-toggle-tokens.scss +1 -32
- package/checkbox/checkbox-tokens.scss +1 -50
- package/code-block/actionbar.component.d.ts +2 -2
- package/code-block/code-block-content.d.ts +28 -0
- package/code-block/code-block-tokens.scss +1 -139
- package/code-block/code-block.component.d.ts +6 -3
- package/code-block/code-block.module.d.ts +3 -3
- package/code-block/code-block.types.d.ts +10 -2
- package/core/common-behaviors/common-module.d.ts +2 -2
- package/core/forms/forms-tokens.scss +2 -9
- package/core/option/_option-theme.scss +10 -0
- package/core/option/option-tokens.scss +4 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +1 -50
- package/core/services/measure-scrollbar.service.d.ts +2 -2
- package/core/services/theme.service.d.ts +4 -3
- package/core/styles/_koobiq-theme.scss +3 -2
- package/core/styles/common/_list.scss +6 -8
- package/core/styles/common/_select.scss +3 -2
- package/core/styles/theming/scrollbar-tokens.scss +1 -16
- package/datepicker/datepicker-tokens.scss +1 -21
- package/datepicker/datepicker.component.d.ts +3 -3
- package/divider/divider-tokens.scss +1 -7
- package/dl/dl-tokens.scss +1 -8
- package/dl/dl.scss +1 -1
- package/dropdown/_dropdown-theme.scss +10 -0
- package/dropdown/dropdown-content.directive.d.ts +2 -2
- package/dropdown/dropdown-tokens.scss +5 -8
- package/dropdown/dropdown-trigger.directive.d.ts +1 -0
- package/dropdown/dropdown.scss +22 -3
- package/empty-state/empty-state-tokens.scss +1 -8
- package/esm2022/accordion/accordion-trigger.component.mjs +2 -2
- package/esm2022/accordion/accordion.component.mjs +2 -2
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +13 -17
- 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-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +1 -1
- package/esm2022/code-block/code-block-content.mjs +393 -0
- package/esm2022/code-block/code-block.component.mjs +16 -10
- package/esm2022/code-block/code-block.module.mjs +7 -27
- package/esm2022/code-block/code-block.types.mjs +1 -1
- package/esm2022/core/common-behaviors/common-module.mjs +14 -12
- package/esm2022/core/option/option.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
- package/esm2022/core/services/measure-scrollbar.service.mjs +7 -12
- package/esm2022/core/services/theme.service.mjs +10 -8
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/datepicker/datepicker.component.mjs +8 -13
- package/esm2022/divider/divider.component.mjs +2 -2
- package/esm2022/dl/dl.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-content.directive.mjs +6 -9
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +8 -5
- 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 +3 -3
- package/esm2022/file-upload/single-file-upload.component.mjs +3 -3
- package/esm2022/form-field/cleaner.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +4 -4
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +5 -5
- package/esm2022/form-field/password-toggle.mjs +3 -3
- package/esm2022/form-field/stepper.mjs +5 -1
- package/esm2022/icon/icon-button.component.mjs +4 -4
- package/esm2022/icon/icon-item.component.mjs +4 -4
- package/esm2022/icon/icon.component.mjs +5 -5
- 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 +10 -13
- package/esm2022/navbar/navbar-item.component.mjs +31 -32
- 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 +52 -18
- package/esm2022/sidebar/sidebar.component.mjs +8 -7
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar.mjs +3 -3
- package/esm2022/tags/tag-input.mjs +2 -3
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/textarea/textarea.component.mjs +8 -5
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- 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 +6 -5
- 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 +46 -11
- package/fesm2022/koobiq-components-accordion.mjs +4 -4
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +14 -18
- 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 +2 -2
- 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 +408 -34
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +30 -33
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +7 -12
- 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 +14 -14
- 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 +17 -13
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +10 -10
- 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 +9 -12
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +34 -36
- 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 +52 -18
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +6 -6
- package/fesm2022/koobiq-components-sidebar.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-tabs.mjs +4 -4
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +3 -4
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +7 -4
- package/fesm2022/koobiq-components-textarea.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 +2 -2
- 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 +46 -11
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +11 -10
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +2 -2
- package/file-upload/file-upload-tokens.scss +1 -52
- package/form-field/_form-field-theme.scss +7 -0
- package/form-field/form-field-tokens.scss +3 -29
- package/form-field/form-field.scss +5 -6
- package/form-field/hint-tokens.scss +1 -22
- package/icon/_icon-item-theme.scss +3 -0
- package/icon/_icon-theme.scss +3 -1
- package/icon/icon-button-tokens.scss +1 -30
- package/icon/icon-item-tokens.scss +1 -26
- package/icon/icon-tokens.scss +2 -10
- package/link/_link-theme.scss +27 -5
- package/link/link-tokens.scss +1 -21
- package/list/_list-theme.scss +10 -0
- package/list/list-tokens.scss +17 -42
- package/loader-overlay/loader-overlay-tokens.scss +1 -12
- package/markdown/markdown-tokens.scss +1 -34
- package/modal/modal-tokens.scss +1 -12
- package/modal/modal.component.d.ts +2 -2
- package/navbar/navbar-item.component.d.ts +7 -7
- package/navbar/navbar-tokens.scss +1 -28
- package/package.json +6 -8
- package/popover/popover-tokens.scss +1 -12
- package/popover/popover.scss +4 -0
- 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-tokens.scss +1 -10
- package/progress-spinner/progress-spinner-tokens.scss +1 -9
- package/radio/radio-tokens.scss +11 -70
- package/risk-level/risk-level-tokens.scss +1 -32
- package/schematics/ng-add/index.js +3 -6
- package/scrollbar/scrollbar-tokens.scss +1 -16
- package/select/select-tokens.scss +1 -8
- package/select/select.component.d.ts +41 -4
- package/select/select.scss +20 -0
- package/sidebar/sidebar.component.d.ts +1 -0
- package/sidepanel/sidepanel-tokens.scss +1 -11
- package/tabs/tabs-tokens.scss +1 -92
- package/tags/tag-tokens.scss +1 -74
- package/textarea/textarea.component.d.ts +1 -0
- package/timezone/timezone-option-tokens.scss +5 -11
- package/toast/toast-tokens.scss +1 -22
- package/toggle/toggle-tokens.scss +1 -52
- package/tooltip/tooltip-tokens.scss +1 -21
- package/tree/_tree-theme.scss +2 -1
- package/tree/tree-option.scss +11 -0
- package/tree/tree-tokens.scss +1 -37
- package/tree-select/_tree-select-theme.scss +5 -1
- package/tree-select/tree-select-tokens.scss +2 -6
- package/tree-select/tree-select.component.d.ts +46 -5
- package/select/README.md +0 -0
|
@@ -4,19 +4,7 @@
|
|
|
4
4
|
--kbq-accordion-size-item-header-variant-hug-padding: var(--kbq-size-xs) var(--kbq-size-s) var(--kbq-size-xs)
|
|
5
5
|
var(--kbq-size-m);
|
|
6
6
|
--kbq-accordion-size-item-content-padding: 0px var(--kbq-size-m) var(--kbq-size-s) var(--kbq-size-m);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
10
|
-
--kbq-accordion-item-default-background: transparent;
|
|
11
|
-
--kbq-accordion-item-default-text-color: var(--kbq-foreground-contrast);
|
|
12
|
-
--kbq-accordion-item-default-icon-color: var(--kbq-icon-contrast-fade);
|
|
13
|
-
--kbq-accordion-item-states-hover-icon-color: var(--kbq-icon-contrast);
|
|
14
|
-
--kbq-accordion-item-states-focus-border-color: var(--kbq-line-theme);
|
|
15
|
-
--kbq-accordion-item-states-disabled-text-color: var(--kbq-foreground-contrast-secondary);
|
|
16
|
-
--kbq-accordion-item-states-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
7
|
+
/* THEME TOKENS */
|
|
20
8
|
--kbq-accordion-item-default-background: transparent;
|
|
21
9
|
--kbq-accordion-item-default-text-color: var(--kbq-foreground-contrast);
|
|
22
10
|
--kbq-accordion-item-default-icon-color: var(--kbq-icon-contrast-fade);
|
package/alert/alert-tokens.scss
CHANGED
|
@@ -39,42 +39,7 @@
|
|
|
39
39
|
--kbq-alert-size-compact-button-stack-padding-bottom: var(--kbq-size-3xs);
|
|
40
40
|
--kbq-alert-size-compact-no-title-icon-margin-top: var(--kbq-size-m);
|
|
41
41
|
--kbq-alert-size-compact-no-title-icon-padding-top: var(--kbq-size-3xs);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
45
|
-
--kbq-alert-default-contrast-container-background: var(--kbq-background-contrast-fade);
|
|
46
|
-
--kbq-alert-default-contrast-container-title: var(--kbq-foreground-contrast);
|
|
47
|
-
--kbq-alert-default-contrast-container-text: var(--kbq-foreground-contrast);
|
|
48
|
-
--kbq-alert-default-error-container-background: var(--kbq-background-contrast-fade);
|
|
49
|
-
--kbq-alert-default-error-container-title: var(--kbq-foreground-contrast);
|
|
50
|
-
--kbq-alert-default-error-container-text: var(--kbq-foreground-contrast);
|
|
51
|
-
--kbq-alert-default-warning-container-background: var(--kbq-background-contrast-fade);
|
|
52
|
-
--kbq-alert-default-warning-container-title: var(--kbq-foreground-contrast);
|
|
53
|
-
--kbq-alert-default-warning-container-text: var(--kbq-foreground-contrast);
|
|
54
|
-
--kbq-alert-default-success-container-background: var(--kbq-background-contrast-fade);
|
|
55
|
-
--kbq-alert-default-success-container-title: var(--kbq-foreground-contrast);
|
|
56
|
-
--kbq-alert-default-success-container-text: var(--kbq-foreground-contrast);
|
|
57
|
-
--kbq-alert-default-theme-container-background: var(--kbq-background-contrast-fade);
|
|
58
|
-
--kbq-alert-default-theme-container-title: var(--kbq-foreground-contrast);
|
|
59
|
-
--kbq-alert-default-theme-container-text: var(--kbq-foreground-contrast);
|
|
60
|
-
--kbq-alert-colored-contrast-container-background: var(--kbq-background-contrast-fade);
|
|
61
|
-
--kbq-alert-colored-contrast-container-title: var(--kbq-foreground-contrast);
|
|
62
|
-
--kbq-alert-colored-contrast-container-text: var(--kbq-foreground-contrast);
|
|
63
|
-
--kbq-alert-colored-error-container-background: var(--kbq-background-error-fade);
|
|
64
|
-
--kbq-alert-colored-error-container-title: var(--kbq-foreground-contrast);
|
|
65
|
-
--kbq-alert-colored-error-container-text: var(--kbq-foreground-contrast);
|
|
66
|
-
--kbq-alert-colored-warning-container-background: var(--kbq-background-warning-fade);
|
|
67
|
-
--kbq-alert-colored-warning-container-title: var(--kbq-foreground-contrast);
|
|
68
|
-
--kbq-alert-colored-warning-container-text: var(--kbq-foreground-contrast);
|
|
69
|
-
--kbq-alert-colored-success-container-background: var(--kbq-background-success-fade);
|
|
70
|
-
--kbq-alert-colored-success-container-title: var(--kbq-foreground-contrast);
|
|
71
|
-
--kbq-alert-colored-success-container-text: var(--kbq-foreground-contrast);
|
|
72
|
-
--kbq-alert-colored-theme-container-background: var(--kbq-background-theme-fade);
|
|
73
|
-
--kbq-alert-colored-theme-container-title: var(--kbq-foreground-contrast);
|
|
74
|
-
--kbq-alert-colored-theme-container-text: var(--kbq-foreground-contrast);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
42
|
+
/* THEME TOKENS */
|
|
78
43
|
--kbq-alert-default-contrast-container-background: var(--kbq-background-contrast-fade);
|
|
79
44
|
--kbq-alert-default-contrast-container-title: var(--kbq-foreground-contrast);
|
|
80
45
|
--kbq-alert-default-contrast-container-text: var(--kbq-foreground-contrast);
|
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
--kbq-autocomplete-size-panel-padding: var(--kbq-size-xxs) 0;
|
|
3
3
|
--kbq-autocomplete-size-panel-max-height: 256px;
|
|
4
4
|
--kbq-autocomplete-size-panel-border-radius: var(--kbq-size-border-radius);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
8
|
-
--kbq-select-panel-dropdown-background: var(--kbq-background-card);
|
|
9
|
-
--kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
5
|
+
/* THEME TOKENS */
|
|
13
6
|
--kbq-select-panel-dropdown-background: var(--kbq-background-card);
|
|
14
7
|
--kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
|
|
15
8
|
}
|
|
@@ -43,8 +43,8 @@ export declare class KbqAutocompleteTrigger implements AfterViewInit, ControlVal
|
|
|
43
43
|
private zone;
|
|
44
44
|
private dir;
|
|
45
45
|
private formField;
|
|
46
|
-
private document;
|
|
47
46
|
private viewportRuler?;
|
|
47
|
+
protected readonly document: Document;
|
|
48
48
|
readonly optionSelections: Observable<KbqOptionSelectionChange>;
|
|
49
49
|
/** The currently active option, coerced to MatOption type. */
|
|
50
50
|
get activeOption(): KbqOption | null;
|
|
@@ -95,7 +95,7 @@ export declare class KbqAutocompleteTrigger implements AfterViewInit, ControlVal
|
|
|
95
95
|
private canOpenOnNextFocus;
|
|
96
96
|
/** Stream of keyboard events that can close the panel. */
|
|
97
97
|
private readonly closeKeyEventStream;
|
|
98
|
-
constructor(elementRef: ElementRef<HTMLInputElement>, viewContainerRef: ViewContainerRef, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, zone: NgZone, scrollStrategy: any, dir: Directionality, formField: KbqFormField,
|
|
98
|
+
constructor(elementRef: ElementRef<HTMLInputElement>, viewContainerRef: ViewContainerRef, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, zone: NgZone, scrollStrategy: any, dir: Directionality, formField: KbqFormField, viewportRuler?: ViewportRuler | undefined);
|
|
99
99
|
ngAfterViewInit(): void;
|
|
100
100
|
ngOnDestroy(): void;
|
|
101
101
|
/** `View -> model callback called when value changes` */
|
|
@@ -158,6 +158,8 @@ export declare class KbqAutocompleteTrigger implements AfterViewInit, ControlVal
|
|
|
158
158
|
*/
|
|
159
159
|
private resetActiveItem;
|
|
160
160
|
private canOpen;
|
|
161
|
-
|
|
161
|
+
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
162
|
+
private getWindow;
|
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAutocompleteTrigger, [null, null, null, null, null, null, { optional: true; }, { optional: true; host: true; }, null]>;
|
|
162
164
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAutocompleteTrigger, "input[kbqAutocomplete], textarea[kbqAutocomplete]", ["kbqAutocompleteTrigger"], { "autocomplete": { "alias": "kbqAutocomplete"; "required": false; }; "connectedTo": { "alias": "kbqAutocompleteConnectedTo"; "required": false; }; "autocompleteAttribute": { "alias": "autocomplete"; "required": false; }; "autocompleteDisabled": { "alias": "kbqAutocompleteDisabled"; "required": false; }; "onInputBlur": { "alias": "kbqAutocompleteOnBlur"; "required": false; }; }, {}, never, never, false, never>;
|
|
163
165
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
border-bottom-left-radius: var(--kbq-autocomplete-size-panel-border-radius);
|
|
22
22
|
border-bottom-right-radius: var(--kbq-autocomplete-size-panel-border-radius);
|
|
23
23
|
|
|
24
|
-
padding: var(--kbq-
|
|
24
|
+
padding: var(--kbq-size-xxs);
|
|
25
25
|
|
|
26
26
|
&.kbq-autocomplete_visible {
|
|
27
27
|
visibility: visible;
|
|
@@ -31,6 +31,26 @@
|
|
|
31
31
|
visibility: hidden;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.kbq-option {
|
|
35
|
+
position: relative;
|
|
36
|
+
|
|
37
|
+
&:before,
|
|
38
|
+
&:after {
|
|
39
|
+
position: absolute;
|
|
40
|
+
content: '';
|
|
41
|
+
width: var(--kbq-size-xxs);
|
|
42
|
+
height: calc(100% + var(--kbq-size-3xs) * 2); // outline size * 2
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:before {
|
|
46
|
+
right: calc(100% + var(--kbq-size-3xs)); // outline size
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:after {
|
|
50
|
+
left: calc(100% + var(--kbq-size-3xs)); // outline size
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
34
54
|
.kbq-autocomplete-panel-above & {
|
|
35
55
|
border-radius: var(--kbq-autocomplete-size-panel-border-radius) var(--kbq-autocomplete-size-panel-border-radius)
|
|
36
56
|
0 0;
|
package/badge/_badge-theme.scss
CHANGED
package/badge/badge-tokens.scss
CHANGED
|
@@ -22,77 +22,7 @@
|
|
|
22
22
|
--kbq-badge-size-compact-content-padding: var(--kbq-size-3xs);
|
|
23
23
|
--kbq-badge-size-compact-border-width: var(--kbq-size-border-width);
|
|
24
24
|
--kbq-badge-size-compact-border-radius: var(--kbq-size-xxs);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
28
|
-
--kbq-badge-filled-fade-off-contrast-background: var(--kbq-background-contrast);
|
|
29
|
-
--kbq-badge-filled-fade-off-contrast-color: var(--kbq-foreground-on-contrast);
|
|
30
|
-
--kbq-badge-filled-fade-off-contrast-caption: var(--kbq-foreground-on-contrast);
|
|
31
|
-
--kbq-badge-filled-fade-off-contrast-icon: var(--kbq-icon-on-contrast);
|
|
32
|
-
--kbq-badge-filled-fade-off-theme-background: var(--kbq-background-theme);
|
|
33
|
-
--kbq-badge-filled-fade-off-theme-color: var(--kbq-foreground-white);
|
|
34
|
-
--kbq-badge-filled-fade-off-theme-caption: var(--kbq-foreground-white);
|
|
35
|
-
--kbq-badge-filled-fade-off-theme-icon: var(--kbq-icon-white);
|
|
36
|
-
--kbq-badge-filled-fade-off-success-background: var(--kbq-background-success);
|
|
37
|
-
--kbq-badge-filled-fade-off-success-color: var(--kbq-foreground-white);
|
|
38
|
-
--kbq-badge-filled-fade-off-success-caption: var(--kbq-foreground-white);
|
|
39
|
-
--kbq-badge-filled-fade-off-success-icon: var(--kbq-icon-white);
|
|
40
|
-
--kbq-badge-filled-fade-off-warning-background: var(--kbq-background-warning);
|
|
41
|
-
--kbq-badge-filled-fade-off-warning-color: var(--kbq-foreground-white);
|
|
42
|
-
--kbq-badge-filled-fade-off-warning-caption: var(--kbq-foreground-white);
|
|
43
|
-
--kbq-badge-filled-fade-off-warning-icon: var(--kbq-icon-white);
|
|
44
|
-
--kbq-badge-filled-fade-off-error-background: var(--kbq-background-error);
|
|
45
|
-
--kbq-badge-filled-fade-off-error-color: var(--kbq-foreground-white);
|
|
46
|
-
--kbq-badge-filled-fade-off-error-caption: var(--kbq-foreground-white);
|
|
47
|
-
--kbq-badge-filled-fade-off-error-icon: var(--kbq-icon-white);
|
|
48
|
-
--kbq-badge-filled-fade-on-theme-background: var(--kbq-background-theme-fade);
|
|
49
|
-
--kbq-badge-filled-fade-on-theme-color: var(--kbq-foreground-theme);
|
|
50
|
-
--kbq-badge-filled-fade-on-theme-caption: var(--kbq-foreground-theme);
|
|
51
|
-
--kbq-badge-filled-fade-on-theme-icon: var(--kbq-icon-theme);
|
|
52
|
-
--kbq-badge-filled-fade-on-contrast-background: var(--kbq-background-contrast-fade);
|
|
53
|
-
--kbq-badge-filled-fade-on-contrast-color: var(--kbq-foreground-contrast);
|
|
54
|
-
--kbq-badge-filled-fade-on-contrast-caption: var(--kbq-foreground-contrast);
|
|
55
|
-
--kbq-badge-filled-fade-on-contrast-icon: var(--kbq-icon-contrast-fade);
|
|
56
|
-
--kbq-badge-filled-fade-on-success-background: var(--kbq-background-success-fade);
|
|
57
|
-
--kbq-badge-filled-fade-on-success-color: var(--kbq-foreground-success);
|
|
58
|
-
--kbq-badge-filled-fade-on-success-caption: var(--kbq-foreground-success);
|
|
59
|
-
--kbq-badge-filled-fade-on-success-icon: var(--kbq-icon-success);
|
|
60
|
-
--kbq-badge-filled-fade-on-warning-background: var(--kbq-background-warning-fade);
|
|
61
|
-
--kbq-badge-filled-fade-on-warning-color: var(--kbq-foreground-warning);
|
|
62
|
-
--kbq-badge-filled-fade-on-warning-caption: var(--kbq-foreground-warning);
|
|
63
|
-
--kbq-badge-filled-fade-on-warning-icon: var(--kbq-icon-warning);
|
|
64
|
-
--kbq-badge-filled-fade-on-error-background: var(--kbq-background-error-fade);
|
|
65
|
-
--kbq-badge-filled-fade-on-error-color: var(--kbq-foreground-error);
|
|
66
|
-
--kbq-badge-filled-fade-on-error-caption: var(--kbq-foreground-error);
|
|
67
|
-
--kbq-badge-filled-fade-on-error-icon: var(--kbq-icon-error);
|
|
68
|
-
--kbq-badge-outline-fade-on-theme-background: transparent;
|
|
69
|
-
--kbq-badge-outline-fade-on-theme-color: var(--kbq-foreground-theme);
|
|
70
|
-
--kbq-badge-outline-fade-on-theme-border: var(--kbq-line-theme-fade);
|
|
71
|
-
--kbq-badge-outline-fade-on-theme-caption: var(--kbq-foreground-theme);
|
|
72
|
-
--kbq-badge-outline-fade-on-theme-icon: var(--kbq-icon-theme);
|
|
73
|
-
--kbq-badge-outline-fade-on-contrast-background: transparent;
|
|
74
|
-
--kbq-badge-outline-fade-on-contrast-color: var(--kbq-foreground-contrast);
|
|
75
|
-
--kbq-badge-outline-fade-on-contrast-border: var(--kbq-line-contrast-fade);
|
|
76
|
-
--kbq-badge-outline-fade-on-contrast-caption: var(--kbq-foreground-contrast);
|
|
77
|
-
--kbq-badge-outline-fade-on-contrast-icon: var(--kbq-icon-contrast-fade);
|
|
78
|
-
--kbq-badge-outline-fade-on-success-background: transparent;
|
|
79
|
-
--kbq-badge-outline-fade-on-success-color: var(--kbq-foreground-success);
|
|
80
|
-
--kbq-badge-outline-fade-on-success-border: var(--kbq-line-success-fade);
|
|
81
|
-
--kbq-badge-outline-fade-on-success-caption: var(--kbq-foreground-success);
|
|
82
|
-
--kbq-badge-outline-fade-on-success-icon: var(--kbq-icon-success);
|
|
83
|
-
--kbq-badge-outline-fade-on-warning-background: transparent;
|
|
84
|
-
--kbq-badge-outline-fade-on-warning-color: var(--kbq-foreground-warning);
|
|
85
|
-
--kbq-badge-outline-fade-on-warning-border: var(--kbq-line-warning-fade);
|
|
86
|
-
--kbq-badge-outline-fade-on-warning-caption: var(--kbq-foreground-warning);
|
|
87
|
-
--kbq-badge-outline-fade-on-warning-icon: var(--kbq-icon-warning);
|
|
88
|
-
--kbq-badge-outline-fade-on-error-background: transparent;
|
|
89
|
-
--kbq-badge-outline-fade-on-error-color: var(--kbq-foreground-error);
|
|
90
|
-
--kbq-badge-outline-fade-on-error-border: var(--kbq-line-error-fade);
|
|
91
|
-
--kbq-badge-outline-fade-on-error-caption: var(--kbq-foreground-error);
|
|
92
|
-
--kbq-badge-outline-fade-on-error-icon: var(--kbq-icon-error);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
25
|
+
/* THEME TOKENS */
|
|
96
26
|
--kbq-badge-filled-fade-off-contrast-background: var(--kbq-background-contrast);
|
|
97
27
|
--kbq-badge-filled-fade-off-contrast-color: var(--kbq-foreground-on-contrast);
|
|
98
28
|
--kbq-badge-filled-fade-off-contrast-caption: var(--kbq-foreground-on-contrast);
|
|
@@ -8,146 +8,7 @@
|
|
|
8
8
|
--kbq-button-icon-size-horizontal-padding: var(--kbq-size-s);
|
|
9
9
|
--kbq-button-icon-size-vertical-padding: var(--kbq-size-s);
|
|
10
10
|
--kbq-button-icon-size-content-padding: var(--kbq-size-xxs);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
14
|
-
--kbq-button-filled-contrast-fade-off-background: var(--kbq-background-contrast);
|
|
15
|
-
--kbq-button-filled-contrast-fade-off-border: transparent;
|
|
16
|
-
--kbq-button-filled-contrast-fade-off-foreground: var(--kbq-foreground-on-contrast);
|
|
17
|
-
--kbq-button-filled-contrast-fade-off-left-icon: var(--kbq-icon-on-contrast);
|
|
18
|
-
--kbq-button-filled-contrast-fade-off-right-icon: var(--kbq-icon-on-contrast);
|
|
19
|
-
--kbq-button-filled-contrast-fade-off-states-hover-background: var(--kbq-states-background-contrast-hover);
|
|
20
|
-
--kbq-button-filled-contrast-fade-off-states-active-background: var(--kbq-states-background-contrast-active);
|
|
21
|
-
--kbq-button-filled-contrast-fade-off-states-active-hover-background: var(--kbq-states-background-contrast-active);
|
|
22
|
-
--kbq-button-filled-contrast-fade-off-states-disabled-background: var(--kbq-states-background-disabled);
|
|
23
|
-
--kbq-button-filled-contrast-fade-off-states-disabled-border: transparent;
|
|
24
|
-
--kbq-button-filled-contrast-fade-off-states-disabled-foreground: var(--kbq-states-foreground-disabled);
|
|
25
|
-
--kbq-button-filled-contrast-fade-off-states-disabled-left-icon: var(--kbq-states-foreground-disabled);
|
|
26
|
-
--kbq-button-filled-contrast-fade-off-states-disabled-right-icon: var(--kbq-states-foreground-disabled);
|
|
27
|
-
--kbq-button-filled-contrast-fade-on-background: var(--kbq-background-contrast-fade);
|
|
28
|
-
--kbq-button-filled-contrast-fade-on-border: transparent;
|
|
29
|
-
--kbq-button-filled-contrast-fade-on-foreground: var(--kbq-foreground-contrast);
|
|
30
|
-
--kbq-button-filled-contrast-fade-on-left-icon: var(--kbq-icon-contrast);
|
|
31
|
-
--kbq-button-filled-contrast-fade-on-right-icon: var(--kbq-icon-contrast);
|
|
32
|
-
--kbq-button-filled-contrast-fade-on-states-hover-background: var(--kbq-states-background-contrast-fade-hover);
|
|
33
|
-
--kbq-button-filled-contrast-fade-on-states-active-background: var(--kbq-states-background-contrast-fade-active);
|
|
34
|
-
--kbq-button-filled-contrast-fade-on-states-active-hover-background: var(
|
|
35
|
-
--kbq-states-background-contrast-fade-active
|
|
36
|
-
);
|
|
37
|
-
--kbq-button-filled-contrast-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
38
|
-
--kbq-button-filled-contrast-fade-on-states-disabled-border: transparent;
|
|
39
|
-
--kbq-button-filled-contrast-fade-on-states-disabled-foreground: var(--kbq-states-foreground-disabled);
|
|
40
|
-
--kbq-button-filled-contrast-fade-on-states-disabled-left-icon: var(--kbq-states-foreground-disabled);
|
|
41
|
-
--kbq-button-filled-contrast-fade-on-states-disabled-right-icon: var(--kbq-states-foreground-disabled);
|
|
42
|
-
--kbq-button-outline-theme-fade-on-background: transparent;
|
|
43
|
-
--kbq-button-outline-theme-fade-on-border: var(--kbq-line-theme-fade);
|
|
44
|
-
--kbq-button-outline-theme-fade-on-foreground: var(--kbq-foreground-theme);
|
|
45
|
-
--kbq-button-outline-theme-fade-on-left-icon: var(--kbq-icon-theme);
|
|
46
|
-
--kbq-button-outline-theme-fade-on-right-icon: var(--kbq-icon-theme);
|
|
47
|
-
--kbq-button-outline-theme-fade-on-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
48
|
-
--kbq-button-outline-theme-fade-on-states-hover-border: var(--kbq-line-theme-fade);
|
|
49
|
-
--kbq-button-outline-theme-fade-on-states-hover-foreground: var(--kbq-foreground-theme);
|
|
50
|
-
--kbq-button-outline-theme-fade-on-states-hover-left-icon: var(--kbq-icon-theme);
|
|
51
|
-
--kbq-button-outline-theme-fade-on-states-hover-right-icon: var(--kbq-icon-theme);
|
|
52
|
-
--kbq-button-outline-theme-fade-on-states-active-background: var(--kbq-states-background-transparent-active);
|
|
53
|
-
--kbq-button-outline-theme-fade-on-states-active-border: var(--kbq-line-theme-fade);
|
|
54
|
-
--kbq-button-outline-theme-fade-on-states-active-foreground: var(--kbq-foreground-theme);
|
|
55
|
-
--kbq-button-outline-theme-fade-on-states-active-left-icon: var(--kbq-icon-theme);
|
|
56
|
-
--kbq-button-outline-theme-fade-on-states-active-right-icon: var(--kbq-icon-theme);
|
|
57
|
-
--kbq-button-outline-theme-fade-on-states-active-hover-background: var(--kbq-states-background-transparent-active);
|
|
58
|
-
--kbq-button-outline-theme-fade-on-states-active-hover-border: var(--kbq-line-theme-fade);
|
|
59
|
-
--kbq-button-outline-theme-fade-on-states-active-hover-foreground: var(--kbq-foreground-theme);
|
|
60
|
-
--kbq-button-outline-theme-fade-on-states-active-hover-left-icon: var(--kbq-icon-theme);
|
|
61
|
-
--kbq-button-outline-theme-fade-on-states-active-hover-right-icon: var(--kbq-icon-theme);
|
|
62
|
-
--kbq-button-outline-theme-fade-on-states-disabled-background: transparent;
|
|
63
|
-
--kbq-button-outline-theme-fade-on-states-disabled-border: var(--kbq-states-line-disabled);
|
|
64
|
-
--kbq-button-outline-theme-fade-on-states-disabled-foreground: var(--kbq-states-foreground-disabled);
|
|
65
|
-
--kbq-button-outline-theme-fade-on-states-disabled-left-icon: var(--kbq-states-icon-disabled);
|
|
66
|
-
--kbq-button-outline-theme-fade-on-states-disabled-right-icon: var(--kbq-states-icon-disabled);
|
|
67
|
-
--kbq-button-outline-contrast-fade-on-background: transparent;
|
|
68
|
-
--kbq-button-outline-contrast-fade-on-border: var(--kbq-line-contrast-fade);
|
|
69
|
-
--kbq-button-outline-contrast-fade-on-foreground: var(--kbq-foreground-contrast);
|
|
70
|
-
--kbq-button-outline-contrast-fade-on-left-icon: var(--kbq-icon-contrast);
|
|
71
|
-
--kbq-button-outline-contrast-fade-on-right-icon: var(--kbq-icon-contrast);
|
|
72
|
-
--kbq-button-outline-contrast-fade-on-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
73
|
-
--kbq-button-outline-contrast-fade-on-states-hover-border: var(--kbq-line-contrast-fade);
|
|
74
|
-
--kbq-button-outline-contrast-fade-on-states-hover-foreground: var(--kbq-foreground-contrast);
|
|
75
|
-
--kbq-button-outline-contrast-fade-on-states-hover-left-icon: var(--kbq-icon-contrast);
|
|
76
|
-
--kbq-button-outline-contrast-fade-on-states-hover-right-icon: var(--kbq-icon-contrast);
|
|
77
|
-
--kbq-button-outline-contrast-fade-on-states-active-background: var(--kbq-states-background-transparent-active);
|
|
78
|
-
--kbq-button-outline-contrast-fade-on-states-active-border: var(--kbq-line-contrast-fade);
|
|
79
|
-
--kbq-button-outline-contrast-fade-on-states-active-foreground: var(--kbq-foreground-contrast);
|
|
80
|
-
--kbq-button-outline-contrast-fade-on-states-active-left-icon: var(--kbq-icon-contrast);
|
|
81
|
-
--kbq-button-outline-contrast-fade-on-states-active-right-icon: var(--kbq-icon-contrast);
|
|
82
|
-
--kbq-button-outline-contrast-fade-on-states-active-hover-background: var(
|
|
83
|
-
--kbq-states-background-transparent-active
|
|
84
|
-
);
|
|
85
|
-
--kbq-button-outline-contrast-fade-on-states-active-hover-border: var(--kbq-line-contrast-fade);
|
|
86
|
-
--kbq-button-outline-contrast-fade-on-states-active-hover-foreground: var(--kbq-foreground-contrast);
|
|
87
|
-
--kbq-button-outline-contrast-fade-on-states-active-hover-left-icon: var(--kbq-icon-contrast);
|
|
88
|
-
--kbq-button-outline-contrast-fade-on-states-active-hover-right-icon: var(--kbq-icon-contrast);
|
|
89
|
-
--kbq-button-outline-contrast-fade-on-states-disabled-background: transparent;
|
|
90
|
-
--kbq-button-outline-contrast-fade-on-states-disabled-border: var(--kbq-states-line-disabled);
|
|
91
|
-
--kbq-button-outline-contrast-fade-on-states-disabled-foreground: var(--kbq-states-foreground-disabled);
|
|
92
|
-
--kbq-button-outline-contrast-fade-on-states-disabled-left-icon: var(--kbq-states-icon-disabled);
|
|
93
|
-
--kbq-button-outline-contrast-fade-on-states-disabled-right-icon: var(--kbq-states-icon-disabled);
|
|
94
|
-
--kbq-button-transparent-theme-fade-on-border: transparent;
|
|
95
|
-
--kbq-button-transparent-theme-fade-on-foreground: var(--kbq-foreground-theme);
|
|
96
|
-
--kbq-button-transparent-theme-fade-on-background: transparent;
|
|
97
|
-
--kbq-button-transparent-theme-fade-on-left-icon: var(--kbq-icon-theme);
|
|
98
|
-
--kbq-button-transparent-theme-fade-on-right-icon: var(--kbq-icon-theme);
|
|
99
|
-
--kbq-button-transparent-theme-fade-on-states-hover-border: transparent;
|
|
100
|
-
--kbq-button-transparent-theme-fade-on-states-hover-foreground: var(--kbq-foreground-theme);
|
|
101
|
-
--kbq-button-transparent-theme-fade-on-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
102
|
-
--kbq-button-transparent-theme-fade-on-states-hover-left-icon: var(--kbq-icon-theme);
|
|
103
|
-
--kbq-button-transparent-theme-fade-on-states-hover-right-icon: var(--kbq-icon-theme);
|
|
104
|
-
--kbq-button-transparent-theme-fade-on-states-active-border: transparent;
|
|
105
|
-
--kbq-button-transparent-theme-fade-on-states-active-foreground: var(--kbq-foreground-theme);
|
|
106
|
-
--kbq-button-transparent-theme-fade-on-states-active-background: var(--kbq-states-background-transparent-active);
|
|
107
|
-
--kbq-button-transparent-theme-fade-on-states-active-left-icon: var(--kbq-icon-theme);
|
|
108
|
-
--kbq-button-transparent-theme-fade-on-states-active-right-icon: var(--kbq-icon-theme);
|
|
109
|
-
--kbq-button-transparent-theme-fade-on-states-active-hover-border: transparent;
|
|
110
|
-
--kbq-button-transparent-theme-fade-on-states-active-hover-foreground: var(--kbq-foreground-theme);
|
|
111
|
-
--kbq-button-transparent-theme-fade-on-states-active-hover-background: var(
|
|
112
|
-
--kbq-states-background-transparent-active
|
|
113
|
-
);
|
|
114
|
-
--kbq-button-transparent-theme-fade-on-states-active-hover-left-icon: var(--kbq-icon-theme);
|
|
115
|
-
--kbq-button-transparent-theme-fade-on-states-active-hover-right-icon: var(--kbq-icon-theme);
|
|
116
|
-
--kbq-button-transparent-theme-fade-on-states-disabled-border: transparent;
|
|
117
|
-
--kbq-button-transparent-theme-fade-on-states-disabled-foreground: var(--kbq-states-foreground-disabled);
|
|
118
|
-
--kbq-button-transparent-theme-fade-on-states-disabled-background: transparent;
|
|
119
|
-
--kbq-button-transparent-theme-fade-on-states-disabled-left-icon: var(--kbq-states-icon-disabled);
|
|
120
|
-
--kbq-button-transparent-theme-fade-on-states-disabled-right-icon: var(--kbq-states-icon-disabled);
|
|
121
|
-
--kbq-button-transparent-contrast-fade-on-border: transparent;
|
|
122
|
-
--kbq-button-transparent-contrast-fade-on-foreground: var(--kbq-foreground-contrast);
|
|
123
|
-
--kbq-button-transparent-contrast-fade-on-background: transparent;
|
|
124
|
-
--kbq-button-transparent-contrast-fade-on-left-icon: var(--kbq-icon-contrast);
|
|
125
|
-
--kbq-button-transparent-contrast-fade-on-right-icon: var(--kbq-icon-contrast);
|
|
126
|
-
--kbq-button-transparent-contrast-fade-on-states-hover-border: transparent;
|
|
127
|
-
--kbq-button-transparent-contrast-fade-on-states-hover-foreground: var(--kbq-foreground-contrast);
|
|
128
|
-
--kbq-button-transparent-contrast-fade-on-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
129
|
-
--kbq-button-transparent-contrast-fade-on-states-hover-left-icon: var(--kbq-icon-contrast);
|
|
130
|
-
--kbq-button-transparent-contrast-fade-on-states-hover-right-icon: var(--kbq-icon-contrast);
|
|
131
|
-
--kbq-button-transparent-contrast-fade-on-states-active-border: transparent;
|
|
132
|
-
--kbq-button-transparent-contrast-fade-on-states-active-foreground: var(--kbq-foreground-contrast);
|
|
133
|
-
--kbq-button-transparent-contrast-fade-on-states-active-background: var(--kbq-states-background-transparent-active);
|
|
134
|
-
--kbq-button-transparent-contrast-fade-on-states-active-left-icon: var(--kbq-icon-contrast);
|
|
135
|
-
--kbq-button-transparent-contrast-fade-on-states-active-right-icon: var(--kbq-icon-contrast);
|
|
136
|
-
--kbq-button-transparent-contrast-fade-on-states-active-hover-border: transparent;
|
|
137
|
-
--kbq-button-transparent-contrast-fade-on-states-active-hover-foreground: var(--kbq-foreground-contrast);
|
|
138
|
-
--kbq-button-transparent-contrast-fade-on-states-active-hover-background: var(
|
|
139
|
-
--kbq-states-background-transparent-active
|
|
140
|
-
);
|
|
141
|
-
--kbq-button-transparent-contrast-fade-on-states-active-hover-left-icon: var(--kbq-icon-contrast);
|
|
142
|
-
--kbq-button-transparent-contrast-fade-on-states-active-hover-right-icon: var(--kbq-icon-contrast);
|
|
143
|
-
--kbq-button-transparent-contrast-fade-on-states-disabled-border: transparent;
|
|
144
|
-
--kbq-button-transparent-contrast-fade-on-states-disabled-foreground: var(--kbq-states-foreground-disabled);
|
|
145
|
-
--kbq-button-transparent-contrast-fade-on-states-disabled-background: transparent;
|
|
146
|
-
--kbq-button-transparent-contrast-fade-on-states-disabled-left-icon: var(--kbq-states-icon-disabled);
|
|
147
|
-
--kbq-button-transparent-contrast-fade-on-states-disabled-right-icon: var(--kbq-states-icon-disabled);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
11
|
+
/* THEME TOKENS */
|
|
151
12
|
--kbq-button-filled-contrast-fade-off-background: var(--kbq-background-contrast);
|
|
152
13
|
--kbq-button-filled-contrast-fade-off-border: transparent;
|
|
153
14
|
--kbq-button-filled-contrast-fade-off-foreground: var(--kbq-foreground-on-contrast);
|
|
@@ -9,38 +9,7 @@
|
|
|
9
9
|
--kbq-button-toggle-size-item-padding-vertical: var(--kbq-size-3xs);
|
|
10
10
|
--kbq-button-toggle-size-item-content-gap-horizontal: var(--kbq-size-xxs);
|
|
11
11
|
--kbq-button-toggle-size-item-focus-outline-width: var(--kbq-size-3xs);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
15
|
-
--kbq-button-toggle-container-background: var(--kbq-background-contrast-fade);
|
|
16
|
-
--kbq-button-toggle-item-default-background: var(--kbq-background-contrast-fade);
|
|
17
|
-
--kbq-button-toggle-item-default-text: var(--kbq-foreground-contrast);
|
|
18
|
-
--kbq-button-toggle-item-default-icon: var(--kbq-icon-contrast-fade);
|
|
19
|
-
--kbq-button-toggle-item-states-hover-background: var(--kbq-states-background-contrast-fade-hover);
|
|
20
|
-
--kbq-button-toggle-item-states-hover-text: var(--kbq-foreground-contrast);
|
|
21
|
-
--kbq-button-toggle-item-states-hover-icon: var(--kbq-icon-contrast-fade);
|
|
22
|
-
--kbq-button-toggle-item-states-active-background: var(--kbq-states-background-contrast-fade-active);
|
|
23
|
-
--kbq-button-toggle-item-states-active-text: var(--kbq-foreground-contrast);
|
|
24
|
-
--kbq-button-toggle-item-states-active-icon: var(--kbq-icon-contrast-fade);
|
|
25
|
-
--kbq-button-toggle-item-states-selected-background: var(--kbq-background-card);
|
|
26
|
-
--kbq-button-toggle-item-states-selected-text: var(--kbq-foreground-contrast);
|
|
27
|
-
--kbq-button-toggle-item-states-selected-icon: var(--kbq-icon-contrast-fade);
|
|
28
|
-
--kbq-button-toggle-item-states-selected-hover-background: var(--kbq-states-background-transparent-hover);
|
|
29
|
-
--kbq-button-toggle-item-states-selected-hover-text: var(--kbq-foreground-contrast);
|
|
30
|
-
--kbq-button-toggle-item-states-selected-hover-icon: var(--kbq-icon-contrast-fade);
|
|
31
|
-
--kbq-button-toggle-item-states-selected-active-background: var(--kbq-states-background-transparent-active);
|
|
32
|
-
--kbq-button-toggle-item-states-selected-active-text: var(--kbq-foreground-contrast);
|
|
33
|
-
--kbq-button-toggle-item-states-selected-active-icon: var(--kbq-icon-contrast-fade);
|
|
34
|
-
--kbq-button-toggle-item-states-selected-disabled-background: var(--kbq-states-background-disabled);
|
|
35
|
-
--kbq-button-toggle-item-states-selected-disabled-text: var(--kbq-states-foreground-disabled);
|
|
36
|
-
--kbq-button-toggle-item-states-selected-disabled-icon: var(--kbq-states-icon-disabled);
|
|
37
|
-
--kbq-button-toggle-item-states-disabled-background: none;
|
|
38
|
-
--kbq-button-toggle-item-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
39
|
-
--kbq-button-toggle-item-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
40
|
-
--kbq-button-toggle-item-states-focused-outline: var(--kbq-states-line-focus-theme);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
12
|
+
/* THEME TOKENS */
|
|
44
13
|
--kbq-button-toggle-container-background: var(--kbq-background-contrast-fade);
|
|
45
14
|
--kbq-button-toggle-item-default-background: var(--kbq-background-contrast-fade);
|
|
46
15
|
--kbq-button-toggle-item-default-text: var(--kbq-foreground-contrast);
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
--kbq-checkbox-size-big-horizontal-content-padding: var(--kbq-size-s);
|
|
12
12
|
--kbq-checkbox-size-big-vertical-content-padding: var(--kbq-size-3xs);
|
|
13
13
|
--kbq-checkbox-size-big-top: var(--kbq-size-xxs);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
14
|
+
/* THEME TOKENS */
|
|
17
15
|
--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
|
|
18
16
|
--kbq-checkbox-theme-default-color: var(--kbq-icon-white);
|
|
19
17
|
--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
|
|
@@ -59,50 +57,3 @@
|
|
|
59
57
|
--kbq-checkbox-error-states-disabled-background: var(--kbq-states-background-disabled);
|
|
60
58
|
--kbq-checkbox-error-states-disabled-caption: var(--kbq-states-icon-disabled);
|
|
61
59
|
}
|
|
62
|
-
|
|
63
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
64
|
-
--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
|
|
65
|
-
--kbq-checkbox-theme-default-color: var(--kbq-icon-white);
|
|
66
|
-
--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
|
|
67
|
-
--kbq-checkbox-theme-default-background: var(--kbq-background-bg);
|
|
68
|
-
--kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
69
|
-
--kbq-checkbox-theme-states-hover-border: var(--kbq-line-contrast-fade);
|
|
70
|
-
--kbq-checkbox-theme-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
71
|
-
--kbq-checkbox-theme-states-checked-border: transparent;
|
|
72
|
-
--kbq-checkbox-theme-states-checked-background: var(--kbq-background-theme);
|
|
73
|
-
--kbq-checkbox-theme-states-checked-hover-border: transparent;
|
|
74
|
-
--kbq-checkbox-theme-states-checked-hover-background: var(--kbq-states-background-theme-hover);
|
|
75
|
-
--kbq-checkbox-theme-states-focused-border: var(--kbq-states-line-focus-theme);
|
|
76
|
-
--kbq-checkbox-theme-states-focused-background: var(--kbq-background-bg);
|
|
77
|
-
--kbq-checkbox-theme-states-focused-outline: 1px solid var(--kbq-states-line-focus-theme);
|
|
78
|
-
--kbq-checkbox-theme-states-checked-focused-border: var(--kbq-states-line-focus-theme);
|
|
79
|
-
--kbq-checkbox-theme-states-checked-focused-background: var(--kbq-background-theme);
|
|
80
|
-
--kbq-checkbox-theme-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-theme);
|
|
81
|
-
--kbq-checkbox-theme-states-disabled-border: var(--kbq-line-contrast-fade);
|
|
82
|
-
--kbq-checkbox-theme-states-disabled-color: var(--kbq-states-icon-disabled);
|
|
83
|
-
--kbq-checkbox-theme-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
84
|
-
--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
|
|
85
|
-
--kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
|
|
86
|
-
--kbq-checkbox-error-default-border: var(--kbq-line-error);
|
|
87
|
-
--kbq-checkbox-error-default-color: var(--kbq-icon-white);
|
|
88
|
-
--kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
|
|
89
|
-
--kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
|
|
90
|
-
--kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
|
|
91
|
-
--kbq-checkbox-error-states-hover-border: var(--kbq-line-error);
|
|
92
|
-
--kbq-checkbox-error-states-hover-background: var(--kbq-states-background-error-fade-hover);
|
|
93
|
-
--kbq-checkbox-error-states-checked-border: transparent;
|
|
94
|
-
--kbq-checkbox-error-states-checked-background: var(--kbq-background-error);
|
|
95
|
-
--kbq-checkbox-error-states-checked-hover-border: transparent;
|
|
96
|
-
--kbq-checkbox-error-states-checked-hover-background: var(--kbq-states-background-error-hover);
|
|
97
|
-
--kbq-checkbox-error-states-focused-border: var(--kbq-line-error);
|
|
98
|
-
--kbq-checkbox-error-states-focused-background: var(--kbq-states-background-error-less);
|
|
99
|
-
--kbq-checkbox-error-states-focused-outline: 1px solid var(--kbq-states-line-focus-error);
|
|
100
|
-
--kbq-checkbox-error-states-checked-focused-border: var(--kbq-states-line-focus-error);
|
|
101
|
-
--kbq-checkbox-error-states-checked-focused-background: var(--kbq-background-error);
|
|
102
|
-
--kbq-checkbox-error-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-error);
|
|
103
|
-
--kbq-checkbox-error-states-disabled-border: var(--kbq-line-contrast-fade);
|
|
104
|
-
--kbq-checkbox-error-states-disabled-color: var(--kbq-states-icon-disabled);
|
|
105
|
-
--kbq-checkbox-error-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
106
|
-
--kbq-checkbox-error-states-disabled-background: var(--kbq-states-background-disabled);
|
|
107
|
-
--kbq-checkbox-error-states-disabled-caption: var(--kbq-states-icon-disabled);
|
|
108
|
-
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { KbqLocaleService } from '@koobiq/components/core';
|
|
3
3
|
import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
|
|
4
|
-
import { KbqCodeBlockConfiguration,
|
|
4
|
+
import { KbqCodeBlockConfiguration, KbqCodeBlockFile } from './code-block.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class KbqActionBarComponent implements AfterViewInit {
|
|
7
7
|
private changeDetectorRef;
|
|
8
8
|
protected configuration?: KbqCodeBlockConfiguration | undefined;
|
|
9
9
|
protected localeService?: KbqLocaleService | undefined;
|
|
10
10
|
copyTooltip: KbqTooltipTrigger;
|
|
11
|
-
codeFiles:
|
|
11
|
+
codeFiles: KbqCodeBlockFile[];
|
|
12
12
|
selectedTabIndex: number;
|
|
13
13
|
multiLine: boolean;
|
|
14
14
|
softWrap: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { KbqCodeBlockFile } from './code-block.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KbqCodeBlockContent {
|
|
4
|
+
protected readonly document: Document;
|
|
5
|
+
private readonly nativeElement;
|
|
6
|
+
private readonly renderer;
|
|
7
|
+
private readonly domSanitizer;
|
|
8
|
+
/** The code file. */
|
|
9
|
+
set file({ language, content }: KbqCodeBlockFile);
|
|
10
|
+
/** The starting line number. */
|
|
11
|
+
startFrom: number;
|
|
12
|
+
/** Whether to display line numbers for single line code block. */
|
|
13
|
+
singleLine: boolean;
|
|
14
|
+
constructor();
|
|
15
|
+
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
16
|
+
private getWindow;
|
|
17
|
+
private initLineNumbersPlugin;
|
|
18
|
+
/**
|
|
19
|
+
* This method is not intended for editing.
|
|
20
|
+
* Changes may lead to unpredictable behavior.
|
|
21
|
+
* Source code: https://github.com/wcoder/highlightjs-line-numbers.js/blob/v2.9.0/src/highlightjs-line-numbers.js
|
|
22
|
+
*/
|
|
23
|
+
private highlightJSLineNumbersPlugin;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqCodeBlockContent, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqCodeBlockContent, "[kbqCodeBlockContent]", never, { "file": { "alias": "file"; "required": true; }; "startFrom": { "alias": "startFrom"; "required": false; }; "singleLine": { "alias": "singleLine"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
static ngAcceptInputType_startFrom: unknown;
|
|
27
|
+
static ngAcceptInputType_singleLine: unknown;
|
|
28
|
+
}
|