@koobiq/components 17.0.0-rc.5 → 17.0.0-rc.7
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/alert/_alert-theme.scss +19 -21
- package/alert/alert.component.scss +39 -41
- package/autocomplete/_autocomplete-theme.scss +3 -2
- package/autocomplete/autocomplete.scss +7 -14
- package/badge/_badge-theme.scss +31 -45
- package/badge/badge.component.scss +15 -35
- package/button/_button-base.scss +7 -13
- package/button/_button-theme.scss +29 -85
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -16
- package/button-toggle/_button-toggle-theme.scss +18 -18
- package/button-toggle/button-toggle.scss +9 -32
- package/card/_card-theme.scss +19 -17
- package/card/card.component.scss +2 -4
- package/checkbox/_checkbox-theme.scss +44 -43
- package/checkbox/checkbox.scss +13 -18
- package/code-block/README.md +1 -0
- package/code-block/_code-block-theme.scss +27 -26
- package/code-block/actionbar.component.scss +7 -18
- package/code-block/code-block.scss +29 -65
- package/core/forms/_forms-theme.scss +4 -7
- package/core/forms/_forms.scss +13 -42
- package/core/option/_optgroup-theme.scss +4 -5
- package/core/option/_option-action-theme.scss +7 -7
- package/core/option/_option-theme.scss +16 -20
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
- package/core/styles/common/_groups.scss +3 -5
- package/core/styles/common/_list.scss +14 -18
- package/core/styles/common/_popup.scss +5 -4
- package/core/styles/common/_select.scss +11 -16
- package/core/styles/common/_tokens.scss +30 -9
- package/core/styles/theming/_components-theming.scss +151 -131
- package/core/styles/visual/_layout.scss +14 -16
- package/datepicker/_datepicker-theme.scss +24 -39
- package/datepicker/calendar-body.scss +3 -8
- package/datepicker/calendar-header.scss +4 -9
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +4 -12
- package/datepicker/datepicker-input.scss +0 -4
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +3 -1
- package/divider/divider.scss +9 -25
- package/dl/_dl-theme.scss +5 -6
- package/dl/dl.scss +5 -19
- package/dropdown/_dropdown-theme.scss +28 -22
- package/dropdown/dropdown-item.scss +3 -11
- package/dropdown/dropdown.scss +6 -14
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/datepicker-animations.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/form-field.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/input/input-number.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +4 -4
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +4 -4
- package/esm2022/splitter/splitter.component.mjs +2 -2
- package/esm2022/tabs/tab-body.component.mjs +1 -1
- package/esm2022/tabs/tab-group.component.mjs +4 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +2 -2
- package/esm2022/timepicker/timepicker.directive.mjs +11 -3
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/title/title.directive.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/tree/tree-base.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -5
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +4 -4
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +1 -1
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +1 -1
- package/fesm2022/koobiq-components-datepicker.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 +2 -2
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +14 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +1 -1
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs +3 -3
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +6 -6
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +3 -3
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +1 -1
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +5 -5
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +1 -1
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +10 -2
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +1 -1
- package/fesm2022/koobiq-components-title.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-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +1 -1
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +109 -68
- package/file-upload/file-upload.scss +0 -5
- package/file-upload/multiple-file-upload.component.scss +32 -98
- package/file-upload/single-file-upload.component.scss +12 -31
- package/form-field/_form-field-theme.scss +32 -34
- package/form-field/_hint-theme.scss +16 -19
- package/form-field/cleaner.scss +3 -8
- package/form-field/form-field.scss +11 -12
- package/form-field/hint.scss +3 -7
- package/form-field/password-toggle.scss +3 -9
- package/form-field/stepper.scss +4 -10
- package/icon/_icon-button-theme.scss +35 -35
- package/icon/_icon-item-theme.scss +46 -31
- package/icon/_icon-theme.scss +9 -15
- package/icon/icon-button.scss +5 -17
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +12 -7
- package/icon/icon.scss +0 -5
- package/input/_input-theme.scss +2 -3
- package/input/input.scss +2 -1
- package/link/_link-theme.scss +25 -42
- package/list/_list-theme.scss +22 -19
- package/list/list.scss +0 -4
- package/loader-overlay/_loader-overlay-theme.scss +13 -16
- package/loader-overlay/loader-overlay.scss +9 -32
- package/markdown/_markdown-theme.scss +41 -44
- package/markdown/markdown.scss +38 -88
- package/modal/_modal-confirm.scss +2 -6
- package/modal/_modal-theme.scss +11 -12
- package/modal/modal.component.d.ts +1 -1
- package/modal/modal.scss +19 -25
- package/navbar/_navbar-item_horizontal.scss +24 -27
- package/navbar/_navbar-item_vertical.scss +28 -27
- package/navbar/_navbar-theme.scss +21 -22
- package/navbar/navbar-brand.scss +24 -26
- package/navbar/navbar-divider.scss +4 -7
- package/navbar/navbar-item.scss +5 -13
- package/navbar/navbar.scss +2 -5
- package/navbar/vertical-navbar.scss +3 -5
- package/package.json +9 -9
- package/popover/README.md +1 -0
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover.scss +18 -24
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -10
- package/progress-bar/progress-bar.scss +6 -18
- package/progress-spinner/_progress-spinner-theme.scss +6 -7
- package/progress-spinner/progress-spinner.scss +8 -17
- package/radio/_radio-theme.scss +29 -37
- package/radio/radio.scss +17 -38
- package/risk-level/_risk-level-theme.scss +25 -30
- package/risk-level/risk-level.component.scss +5 -8
- package/schematics/ng-add/index.js +6 -6
- package/scrollbar/_scrollbar-component-theme.scss +14 -17
- package/scrollbar/scrollbar.component.scss +7 -20
- package/select/_select-theme.scss +14 -15
- package/select/select.scss +3 -10
- package/sidepanel/_sidepanel-theme.scss +8 -9
- package/sidepanel/sidepanel.scss +19 -30
- package/splitter/_splitter-theme.scss +3 -3
- package/table/_table-theme.scss +9 -8
- package/table/table.scss +12 -12
- package/tabs/_tabs-common.scss +4 -7
- package/tabs/_tabs-theme.scss +77 -44
- package/tabs/tab-body.component.d.ts +1 -1
- package/tabs/tab-group.scss +2 -7
- package/tabs/tab-header.scss +0 -4
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -8
- package/tags/_tag-theme.scss +23 -26
- package/tags/tag-list.scss +6 -5
- package/tags/tag.component.d.ts +1 -1
- package/tags/tag.scss +6 -9
- package/textarea/_textarea-theme.scss +2 -4
- package/textarea/textarea.scss +6 -8
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +8 -9
- package/timezone/timezone-option.component.scss +5 -7
- package/timezone/timezone-select.component.scss +2 -3
- package/toast/_toast-theme.scss +15 -14
- package/toast/toast-container.component.scss +4 -7
- package/toast/toast.component.scss +20 -25
- package/toggle/_toggle-theme.scss +48 -42
- package/toggle/toggle.scss +9 -21
- package/tooltip/_tooltip-theme.scss +13 -16
- package/tooltip/tooltip.scss +8 -10
- package/tree/_tree-theme.scss +20 -22
- package/tree/toggle.scss +3 -5
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.scss +5 -6
- package/tree-select/_tree-select-theme.scss +11 -13
- package/tree-select/tree-select.scss +0 -4
- package/core/styles/_variables.scss +0 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/tokens';
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -45,54 +46,30 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
&.kbq-loader-overlay_big {
|
|
48
|
-
padding-left:
|
|
49
|
-
--kbq-loader-overlay-size-big-overlay-padding-horizontal,
|
|
50
|
-
map.get($tokens, loader-overlay-size-big-overlay-padding-horizontal)
|
|
51
|
-
);
|
|
49
|
+
padding-left: kbq-css-variable(loader-overlay-size-big-overlay-padding-horizontal);
|
|
52
50
|
|
|
53
|
-
padding-right:
|
|
54
|
-
--kbq-loader-overlay-size-big-overlay-padding-horizontal,
|
|
55
|
-
map.get($tokens, loader-overlay-size-big-overlay-padding-horizontal)
|
|
56
|
-
);
|
|
51
|
+
padding-right: kbq-css-variable(loader-overlay-size-big-overlay-padding-horizontal);
|
|
57
52
|
|
|
58
53
|
& .kbq-progress-spinner {
|
|
59
|
-
margin-bottom:
|
|
60
|
-
--kbq-loader-overlay-size-big-loader-margin-bottom,
|
|
61
|
-
map.get($tokens, loader-overlay-size-big-loader-margin-bottom)
|
|
62
|
-
);
|
|
54
|
+
margin-bottom: kbq-css-variable(loader-overlay-size-big-loader-margin-bottom);
|
|
63
55
|
}
|
|
64
56
|
|
|
65
57
|
& .kbq-loader-overlay-text {
|
|
66
|
-
margin-bottom:
|
|
67
|
-
--kbq-loader-overlay-size-big-content-content-gap-vertical,
|
|
68
|
-
map.get($tokens, loader-overlay-size-big-content-content-gap-vertical)
|
|
69
|
-
);
|
|
58
|
+
margin-bottom: kbq-css-variable(loader-overlay-size-big-content-content-gap-vertical);
|
|
70
59
|
}
|
|
71
60
|
}
|
|
72
61
|
|
|
73
62
|
&.kbq-loader-overlay_compact {
|
|
74
|
-
padding-left:
|
|
75
|
-
--kbq-loader-overlay-size-compact-overlay-padding-horizontal,
|
|
76
|
-
map.get($tokens, loader-overlay-size-compact-overlay-padding-horizontal)
|
|
77
|
-
);
|
|
63
|
+
padding-left: kbq-css-variable(loader-overlay-size-compact-overlay-padding-horizontal);
|
|
78
64
|
|
|
79
|
-
padding-right:
|
|
80
|
-
--kbq-loader-overlay-size-compact-overlay-padding-horizontal,
|
|
81
|
-
map.get($tokens, loader-overlay-size-compact-overlay-padding-horizontal)
|
|
82
|
-
);
|
|
65
|
+
padding-right: kbq-css-variable(loader-overlay-size-compact-overlay-padding-horizontal);
|
|
83
66
|
|
|
84
67
|
& .kbq-progress-spinner {
|
|
85
|
-
margin-bottom:
|
|
86
|
-
--kbq-loader-overlay-size-compact-loader-margin-bottom,
|
|
87
|
-
map.get($tokens, loader-overlay-size-compact-loader-margin-bottom)
|
|
88
|
-
);
|
|
68
|
+
margin-bottom: kbq-css-variable(loader-overlay-size-compact-loader-margin-bottom);
|
|
89
69
|
}
|
|
90
70
|
|
|
91
71
|
& .kbq-loader-overlay-text {
|
|
92
|
-
margin-bottom:
|
|
93
|
-
--kbq-loader-overlay-size-compact-content-content-gap-vertical,
|
|
94
|
-
map.get($tokens, loader-overlay-size-compact-content-content-gap-vertical)
|
|
95
|
-
);
|
|
72
|
+
margin-bottom: kbq-css-variable(loader-overlay-size-compact-content-content-gap-vertical);
|
|
96
73
|
}
|
|
97
74
|
}
|
|
98
75
|
}
|
|
@@ -3,140 +3,137 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
@mixin kbq-markdown-theme($theme) {
|
|
9
|
-
$
|
|
10
|
-
|
|
11
|
-
$foreground: map.get($theme, foreground);
|
|
12
|
-
$background: map.get($theme, background);
|
|
13
|
-
|
|
14
|
-
$markdown: map.get(map.get($theme, components), markdown);
|
|
10
|
+
$markdown: map.get($theme, components, markdown);
|
|
15
11
|
|
|
16
12
|
.kbq-markdown {
|
|
17
|
-
color: map.get($foreground, contrast);
|
|
18
|
-
background: map.get($background, bg);
|
|
13
|
+
color: kbq-css-variable(foreground-contrast, map.get($theme, foreground, contrast));
|
|
14
|
+
background: kbq-css-variable(background-bg, map.get($theme, background, bg));
|
|
19
15
|
|
|
20
16
|
// h1, h2, h3, h4, h5, h6
|
|
21
17
|
@for $i from 1 through 6 {
|
|
22
18
|
.kbq-markdown__h#{$i} {
|
|
23
|
-
color: map.get($markdown, h#{$i}-color);
|
|
19
|
+
color: kbq-css-variable(markdown-h#{$i}-color, map.get($markdown, h#{$i}-color));
|
|
24
20
|
}
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
.kbq-markdown__p {
|
|
28
|
-
color: map.get($markdown, p-color);
|
|
24
|
+
color: kbq-css-variable(markdown-p-color, map.get($markdown, p-color));
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
.kbq-markdown__ul,
|
|
32
28
|
.kbq-markdown__ol {
|
|
33
|
-
color: map.get($markdown, list-color);
|
|
29
|
+
color: kbq-css-variable(markdown-list-color, map.get($markdown, list-color));
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
.kbq-markdown__blockquote {
|
|
37
|
-
color: map.get($markdown, blockquote-text);
|
|
38
|
-
background: map.get($markdown, blockquote-background);
|
|
39
|
-
border-color: map.get($markdown, blockquote-border);
|
|
40
|
-
border-left-color: map.get($markdown, blockquote-line);
|
|
33
|
+
color: kbq-css-variable(markdown-blockquote-text, map.get($markdown, blockquote-text));
|
|
34
|
+
background: kbq-css-variable(markdown-blockquote-background, map.get($markdown, blockquote-background));
|
|
35
|
+
border-color: kbq-css-variable(markdown-blockquote-border, map.get($markdown, blockquote-border));
|
|
36
|
+
border-left-color: kbq-css-variable(markdown-blockquote-line, map.get($markdown, blockquote-line));
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
.kbq-markdown__pre,
|
|
44
40
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
45
|
-
color: map.get($markdown, code-text);
|
|
46
|
-
background-color: map.get($markdown, code-background);
|
|
47
|
-
border-color: map.get($markdown, code-border);
|
|
41
|
+
color: kbq-css-variable(markdown-code-text, map.get($markdown, code-text));
|
|
42
|
+
background-color: kbq-css-variable(markdown-code-background, map.get($markdown, code-background));
|
|
43
|
+
border-color: kbq-css-variable(markdown-code-border, map.get($markdown, code-border));
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
.kbq-markdown__a {
|
|
51
|
-
color: map.get($markdown, link-text);
|
|
52
|
-
border-bottom-color: map.get($markdown, link-border-bottom);
|
|
47
|
+
color: kbq-css-variable(markdown-link-text, map.get($markdown, link-text));
|
|
48
|
+
border-bottom-color: kbq-css-variable(markdown-link-border-bottom, map.get($markdown, link-border-bottom));
|
|
53
49
|
|
|
54
50
|
&:visited {
|
|
55
|
-
color: map.get($markdown, link-state-visited-text);
|
|
56
|
-
border-bottom-color:
|
|
51
|
+
color: kbq-css-variable(markdown-link-state-visited-text, map.get($markdown, link-state-visited-text));
|
|
52
|
+
border-bottom-color: kbq-css-variable(
|
|
53
|
+
markdown-link-state-visited-border-bottom, map.get($markdown, link-state-visited-border-bottom));
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
&:hover {
|
|
60
|
-
color: map.get($markdown, link-state-hover-text);
|
|
57
|
+
color: kbq-css-variable(markdown-link-state-hover-text, map.get($markdown, link-state-hover-text));
|
|
61
58
|
transition: color 0ms;
|
|
62
|
-
border-bottom-color:
|
|
59
|
+
border-bottom-color: kbq-css-variable(
|
|
60
|
+
markdown-link-state-hover-border-bottom, map.get($markdown, link-state-hover-border-bottom));
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
&:active {
|
|
66
|
-
color: map.get($markdown, link-state-active-text);
|
|
64
|
+
color: kbq-css-variable(markdown-link-state-active-text, map.get($markdown, link-state-active-text));
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
&:focus {
|
|
70
68
|
outline:
|
|
71
|
-
|
|
69
|
+
kbq-css-variable(
|
|
70
|
+
markdown-link-state-focused-outline, map.get($markdown, link-state-focused-outline))
|
|
72
71
|
solid
|
|
73
|
-
|
|
72
|
+
kbq-css-variable(markdown-link-size-state-focused-outline-width);
|
|
74
73
|
|
|
75
|
-
outline-offset:
|
|
74
|
+
outline-offset: kbq-css-variable(markdown-link-size-state-focused-outline-offset);
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
.kbq-markdown__img + em {
|
|
80
|
-
color: map.get($markdown, image-caption-text);
|
|
79
|
+
color: kbq-css-variable(markdown-image-caption-text, map.get($markdown, image-caption-text));
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
.kbq-markdown__hr {
|
|
84
|
-
border-bottom-color: map.get($markdown, hr-color);
|
|
83
|
+
border-bottom-color: kbq-css-variable(markdown-hr-color, map.get($markdown, hr-color));
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
.kbq-markdown__table > .kbq-markdown__thead {
|
|
88
|
-
color: map.get($markdown, table-header);
|
|
89
|
-
border-bottom-color: map.get($markdown, table-border);
|
|
87
|
+
color: kbq-css-variable(markdown-table-header, map.get($markdown, table-header));
|
|
88
|
+
border-bottom-color: kbq-css-variable(markdown-table-border, map.get($markdown, table-border));
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
.kbq-markdown__table > .kbq-markdown__tbody {
|
|
93
|
-
color: map.get($markdown, table-body);
|
|
92
|
+
color: kbq-css-variable(markdown-table-body, map.get($markdown, table-body));
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
@mixin kbq-markdown-typography($config) {
|
|
99
|
-
$tokens: map.get($config, tokens);
|
|
100
|
-
|
|
101
98
|
.kbq-markdown {
|
|
102
99
|
// h1, h2, h3, h4, h5, h6
|
|
103
100
|
@for $i from 1 through 6 {
|
|
104
101
|
.kbq-markdown__h#{$i} {
|
|
105
|
-
@include kbq-typography-
|
|
102
|
+
@include kbq-typography-css-variables(markdown-h#{$i}, default);
|
|
106
103
|
}
|
|
107
104
|
}
|
|
108
105
|
|
|
109
106
|
.kbq-markdown__p {
|
|
110
|
-
@include kbq-typography-
|
|
107
|
+
@include kbq-typography-css-variables(markdown-p, default);
|
|
111
108
|
}
|
|
112
109
|
|
|
113
110
|
.kbq-markdown__ul,
|
|
114
111
|
.kbq-markdown__ol {
|
|
115
|
-
@include kbq-typography-
|
|
112
|
+
@include kbq-typography-css-variables(markdown-list, default);
|
|
116
113
|
}
|
|
117
114
|
|
|
118
115
|
.kbq-markdown__blockquote > .kbq-markdown__p {
|
|
119
|
-
@include kbq-typography-
|
|
116
|
+
@include kbq-typography-css-variables(markdown-blockquote, default);
|
|
120
117
|
}
|
|
121
118
|
|
|
122
119
|
.kbq-markdown__code {
|
|
123
|
-
@include kbq-typography-
|
|
120
|
+
@include kbq-typography-css-variables(markdown-code, default);
|
|
124
121
|
}
|
|
125
122
|
|
|
126
123
|
.kbq-markdown__a {
|
|
127
|
-
@include kbq-typography-
|
|
124
|
+
@include kbq-typography-css-variables(markdown-link, default);
|
|
128
125
|
}
|
|
129
126
|
|
|
130
127
|
.kbq-markdown__img + em {
|
|
131
|
-
@include kbq-typography-
|
|
128
|
+
@include kbq-typography-css-variables(markdown-image, caption);
|
|
132
129
|
}
|
|
133
130
|
|
|
134
131
|
.kbq-markdown__table > .kbq-markdown__thead {
|
|
135
|
-
@include kbq-typography-
|
|
132
|
+
@include kbq-typography-css-variables(markdown-table, header);
|
|
136
133
|
}
|
|
137
134
|
|
|
138
135
|
.kbq-markdown__table > .kbq-markdown__tbody {
|
|
139
|
-
@include kbq-typography-
|
|
136
|
+
@include kbq-typography-css-variables(markdown-table, body);
|
|
140
137
|
}
|
|
141
138
|
}
|
|
142
139
|
}
|
package/markdown/markdown.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/tokens';
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -20,11 +21,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
20
21
|
// h1, h2, h3, h4, h5, h6
|
|
21
22
|
@for $i from 1 through 6 {
|
|
22
23
|
.kbq-markdown__h#{$i} {
|
|
23
|
-
max-width:
|
|
24
|
-
margin-top:
|
|
25
|
-
margin-bottom:
|
|
26
|
-
--kbq-markdown-h#{$i}-size-margin-bottom, map.get($tokens, markdown-h#{$i}-size-margin-bottom)
|
|
27
|
-
);
|
|
24
|
+
max-width: kbq-css-variable(markdown-h#{$i}-size-max-width);
|
|
25
|
+
margin-top: kbq-css-variable(markdown-h#{$i}-size-margin-top);
|
|
26
|
+
margin-bottom: kbq-css-variable(markdown-h#{$i}-size-margin-bottom);
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
|
|
@@ -40,29 +39,26 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
.kbq-markdown__p {
|
|
43
|
-
max-width:
|
|
44
|
-
margin-top:
|
|
45
|
-
margin-bottom:
|
|
42
|
+
max-width: kbq-css-variable(markdown-p-size-max-width);
|
|
43
|
+
margin-top: kbq-css-variable(markdown-p-size-margin-top);
|
|
44
|
+
margin-bottom: kbq-css-variable(markdown-p-size-margin-bottom);
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.kbq-markdown__ul,
|
|
49
48
|
.kbq-markdown__ol {
|
|
50
|
-
max-width:
|
|
51
|
-
margin-top:
|
|
52
|
-
margin-bottom:
|
|
49
|
+
max-width: kbq-css-variable(markdown-list-size-max-width);
|
|
50
|
+
margin-top: kbq-css-variable(markdown-list-size-margin-top);
|
|
51
|
+
margin-bottom: kbq-css-variable(markdown-list-size-margin-bottom);
|
|
53
52
|
|
|
54
53
|
> li {
|
|
55
|
-
margin-bottom:
|
|
56
|
-
--kbq-markdown-list-size-item-margin-bottom,
|
|
57
|
-
map.get($tokens, markdown-list-size-item-margin-bottom)
|
|
58
|
-
);
|
|
54
|
+
margin-bottom: kbq-css-variable(markdown-list-size-item-margin-bottom);
|
|
59
55
|
}
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
.kbq-markdown__ul {
|
|
63
59
|
position: relative;
|
|
64
60
|
list-style: none;
|
|
65
|
-
padding:
|
|
61
|
+
padding: kbq-css-variable(markdown-list-size-ul-padding);
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
.kbq-markdown__ul > li:before {
|
|
@@ -75,7 +71,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
.kbq-markdown__ol {
|
|
78
|
-
//padding: var(--kbq-markdown-list-size-ol-padding, map.get($tokens, markdown-list-size-ol-padding));
|
|
79
74
|
list-style: none;
|
|
80
75
|
padding: 0;
|
|
81
76
|
counter-reset: li;
|
|
@@ -84,10 +79,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
84
79
|
&:before {
|
|
85
80
|
content:counter(li) ".";
|
|
86
81
|
counter-increment: li;
|
|
87
|
-
padding-right:
|
|
88
|
-
--kbq-markdown-list-size-ol-number-padding-right,
|
|
89
|
-
map.get($tokens, markdown-list-size-ol-number-padding-right)
|
|
90
|
-
);
|
|
82
|
+
padding-right: kbq-css-variable(markdown-list-size-ol-number-padding-right);
|
|
91
83
|
}
|
|
92
84
|
|
|
93
85
|
> * {
|
|
@@ -98,36 +90,21 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
98
90
|
|
|
99
91
|
.kbq-markdown__p + .kbq-markdown__ul,
|
|
100
92
|
.kbq-markdown__p + .kbq-markdown__ol {
|
|
101
|
-
margin-top:
|
|
102
|
-
--kbq-markdown-list-size-margin-top-after-paragraph,
|
|
103
|
-
map.get($tokens, markdown-list-size-margin-top-after-paragraph)
|
|
104
|
-
);
|
|
93
|
+
margin-top: kbq-css-variable(markdown-list-size-margin-top-after-paragraph);
|
|
105
94
|
}
|
|
106
95
|
|
|
107
96
|
.kbq-markdown__blockquote {
|
|
108
|
-
max-width:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
margin-
|
|
112
|
-
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
margin-bottom: var(
|
|
116
|
-
--kbq-markdown-blockquote-size-margin-bottom, map.get($tokens, markdown-blockquote-size-margin-bottom)
|
|
117
|
-
);
|
|
97
|
+
max-width: kbq-css-variable(markdown-blockquote-size-max-width);
|
|
98
|
+
margin-top: kbq-css-variable(markdown-blockquote-size-margin-top);
|
|
99
|
+
margin-left: 0;
|
|
100
|
+
margin-bottom: kbq-css-variable(markdown-blockquote-size-margin-bottom);
|
|
101
|
+
margin-right: 0;
|
|
118
102
|
|
|
119
|
-
border-left-width:
|
|
120
|
-
--kbq-markdown-blockquote-size-line-width, map.get($tokens, markdown-blockquote-size-line-width)
|
|
121
|
-
);
|
|
103
|
+
border-left-width: kbq-css-variable(markdown-blockquote-size-line-width);
|
|
122
104
|
|
|
123
105
|
border-left-style: solid;
|
|
124
106
|
|
|
125
|
-
padding:
|
|
126
|
-
--kbq-markdown-blockquote-size-padding, map.get($tokens, markdown-blockquote-size-padding)
|
|
127
|
-
);
|
|
128
|
-
|
|
129
|
-
margin-left: 0;
|
|
130
|
-
margin-right: 0;
|
|
107
|
+
padding: kbq-css-variable(markdown-blockquote-size-padding);
|
|
131
108
|
}
|
|
132
109
|
|
|
133
110
|
.kbq-markdown__blockquote > .kbq-markdown__p {
|
|
@@ -139,53 +116,33 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
139
116
|
position: relative;
|
|
140
117
|
overflow-x: auto;
|
|
141
118
|
|
|
142
|
-
margin-top:
|
|
143
|
-
|
|
144
|
-
map.get($tokens, markdown-code-size-multiline-margin-top)
|
|
145
|
-
);
|
|
146
|
-
margin-bottom: var(
|
|
147
|
-
--kbq-markdown-code-size-multiline-margin-bottom,
|
|
148
|
-
map.get($tokens, markdown-code-size-multiline-margin-bottom)
|
|
149
|
-
);
|
|
119
|
+
margin-top: kbq-css-variable(markdown-code-size-multiline-margin-top);
|
|
120
|
+
margin-bottom: kbq-css-variable(markdown-code-size-multiline-margin-bottom);
|
|
150
121
|
|
|
151
|
-
padding:
|
|
152
|
-
--kbq-markdown-code-size-multiline-padding,
|
|
153
|
-
map.get($tokens, markdown-code-size-multiline-padding)
|
|
154
|
-
);
|
|
122
|
+
padding: kbq-css-variable(markdown-code-size-multiline-padding);
|
|
155
123
|
}
|
|
156
124
|
|
|
157
125
|
.kbq-markdown__pre,
|
|
158
126
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
159
|
-
border-radius:
|
|
160
|
-
|
|
161
|
-
);
|
|
162
|
-
border-width: var(
|
|
163
|
-
--kbq-markdown-code-size-border-width, map.get($tokens, markdown-code-size-border-width)
|
|
164
|
-
);
|
|
127
|
+
border-radius: kbq-css-variable(markdown-code-size-border-radius);
|
|
128
|
+
border-width: kbq-css-variable(markdown-code-size-border-width);
|
|
165
129
|
border-style: solid;
|
|
166
130
|
}
|
|
167
131
|
|
|
168
132
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
169
|
-
max-width:
|
|
170
|
-
padding:
|
|
133
|
+
max-width: kbq-css-variable(markdown-code-size-max-width);
|
|
134
|
+
padding: kbq-css-variable(markdown-code-size-inline-padding);
|
|
171
135
|
}
|
|
172
136
|
|
|
173
137
|
.kbq-markdown__img {
|
|
174
|
-
max-width:
|
|
175
|
-
margin-top:
|
|
176
|
-
margin-bottom:
|
|
177
|
-
--kbq-markdown-image-size-margin-bottom, map.get($tokens, markdown-image-size-margin-bottom)
|
|
178
|
-
);
|
|
138
|
+
max-width: kbq-css-variable(markdown-image-size-max-width);
|
|
139
|
+
margin-top: kbq-css-variable(markdown-image-size-margin-top);
|
|
140
|
+
margin-bottom: kbq-css-variable(markdown-image-size-margin-bottom);
|
|
179
141
|
|
|
180
142
|
+ em {
|
|
181
143
|
display: block;
|
|
182
|
-
margin-top:
|
|
183
|
-
|
|
184
|
-
);
|
|
185
|
-
margin-bottom: var(
|
|
186
|
-
--kbq-markdown-image-size-caption-margin-bottom,
|
|
187
|
-
map.get($tokens, markdown-image-size-caption-margin-bottom)
|
|
188
|
-
);
|
|
144
|
+
margin-top: kbq-css-variable(markdown-image-size-caption-margin-top);
|
|
145
|
+
margin-bottom: kbq-css-variable(markdown-image-size-caption-margin-bottom);
|
|
189
146
|
}
|
|
190
147
|
}
|
|
191
148
|
|
|
@@ -194,10 +151,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
194
151
|
border-left: none;
|
|
195
152
|
border-right: none;
|
|
196
153
|
border-bottom-style: solid;
|
|
197
|
-
border-bottom-width:
|
|
198
|
-
margin:
|
|
199
|
-
--kbq-markdown-hr-size-margin-vertical, map.get($tokens, markdown-hr-size-margin-vertical)
|
|
200
|
-
) 0;
|
|
154
|
+
border-bottom-width: kbq-css-variable(markdown-hr-size-width);
|
|
155
|
+
margin: kbq-css-variable(markdown-hr-size-margin-vertical) 0;
|
|
201
156
|
}
|
|
202
157
|
|
|
203
158
|
.kbq-markdown__table {
|
|
@@ -205,26 +160,21 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
205
160
|
overflow-x: auto;
|
|
206
161
|
display: table;
|
|
207
162
|
border-collapse: collapse;
|
|
208
|
-
margin-bottom:
|
|
209
|
-
--kbq-markdown-table-size-margin-bottom,
|
|
210
|
-
map.get($tokens, markdown-table-size-margin-bottom)
|
|
211
|
-
);
|
|
163
|
+
margin-bottom: kbq-css-variable(markdown-table-size-margin-bottom);
|
|
212
164
|
|
|
213
165
|
td {
|
|
214
166
|
vertical-align: top;
|
|
215
167
|
}
|
|
216
168
|
|
|
217
169
|
th, td {
|
|
218
|
-
padding:
|
|
170
|
+
padding: kbq-css-variable(markdown-table-size-padding);
|
|
219
171
|
font-weight: 400;
|
|
220
172
|
}
|
|
221
173
|
}
|
|
222
174
|
|
|
223
175
|
.kbq-markdown__table > .kbq-markdown__thead {
|
|
224
176
|
border-bottom-style: solid;
|
|
225
|
-
border-bottom-width:
|
|
226
|
-
--kbq-markdown-table-size-border-width, map.get($tokens, markdown-table-size-border-width)
|
|
227
|
-
);
|
|
177
|
+
border-bottom-width: kbq-css-variable(markdown-table-size-border-width);
|
|
228
178
|
|
|
229
179
|
text-align: left;
|
|
230
180
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-confirm {
|
|
10
8
|
.kbq-modal-close {
|
|
11
9
|
display: none;
|
|
@@ -14,8 +12,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
14
12
|
.kbq-confirm-footer {
|
|
15
13
|
display: flex;
|
|
16
14
|
|
|
17
|
-
gap:
|
|
18
|
-
--kbq-modal-size-footer-content-gap-horizontal, map.get($tokens, modal-size-footer-content-gap-horizontal)
|
|
19
|
-
);
|
|
15
|
+
gap: kbq-css-variable(modal-size-footer-content-gap-horizontal);
|
|
20
16
|
}
|
|
21
17
|
}
|
package/modal/_modal-theme.scss
CHANGED
|
@@ -2,51 +2,50 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
@mixin kbq-modal-theme($theme) {
|
|
8
9
|
$modal: map.get(map.get($theme, components), modal);
|
|
9
10
|
|
|
10
11
|
.kbq-modal {
|
|
11
|
-
background: map.get($modal, container-background);
|
|
12
|
-
box-shadow: map.get($modal, container-box-shadow);
|
|
12
|
+
background: kbq-css-variable(modal-container-background, map.get($modal, container-background));
|
|
13
|
+
box-shadow: kbq-css-variable(modal-container-box-shadow, map.get($modal, container-box-shadow));
|
|
13
14
|
|
|
14
15
|
.kbq-modal-header {
|
|
15
16
|
& .kbq-modal-title {
|
|
16
|
-
color: map.get($modal, header);
|
|
17
|
+
color: kbq-css-variable(modal-header, map.get($modal, header));
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
& .kbq-modal-close {
|
|
20
|
-
color: map.get($modal, close-button);
|
|
21
|
+
color: kbq-css-variable(modal-close-button, map.get($modal, close-button));
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.kbq-modal-content {
|
|
25
|
-
color: map.get($modal, content);
|
|
26
|
+
color: kbq-css-variable(modal-content, map.get($modal, content));
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
.kbq-modal-header.kbq-modal-body_top-overflow {
|
|
29
|
-
box-shadow: map.get($modal, body-top-shadow);
|
|
30
|
+
box-shadow: kbq-css-variable(modal-body-top-shadow, map.get($modal, body-top-shadow));
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.kbq-modal-footer.kbq-modal-body_bottom-overflow {
|
|
33
|
-
box-shadow: map.get($modal, body-bottom-shadow);
|
|
34
|
+
box-shadow: kbq-css-variable(modal-body-bottom-shadow, map.get($modal, body-bottom-shadow));
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.kbq-modal-mask {
|
|
38
|
-
background-color: map.get($modal, overlay);
|
|
39
|
+
background-color: kbq-css-variable(modal-overlay, map.get($modal, overlay));
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
@mixin kbq-modal-typography($config) {
|
|
43
|
-
$tokens: map.get($config, tokens);
|
|
44
|
-
|
|
45
44
|
.kbq-modal-title {
|
|
46
|
-
@include kbq-typography-
|
|
45
|
+
@include kbq-typography-css-variables(modal, header);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
.kbq-modal-body {
|
|
50
|
-
@include kbq-typography-
|
|
49
|
+
@include kbq-typography-css-variables(modal, content);
|
|
51
50
|
}
|
|
52
51
|
}
|
|
@@ -122,7 +122,7 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
122
122
|
private createDynamicComponent;
|
|
123
123
|
private updateTransformOrigin;
|
|
124
124
|
/**
|
|
125
|
-
* Take care of the body's overflow to decide the
|
|
125
|
+
* Take care of the body's overflow to decide the existence of scrollbar
|
|
126
126
|
* @param plusNum The number that the openModals.length will increase soon
|
|
127
127
|
*/
|
|
128
128
|
private changeBodyOverflow;
|