@koobiq/components 17.2.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/_alert-theme.scss +3 -3
- package/alert/alert.component.scss +6 -6
- package/autocomplete/_autocomplete-theme.scss +2 -2
- package/badge/_badge-theme.scss +6 -5
- package/button/_button-theme.scss +4 -4
- package/button-toggle/_button-toggle-theme.scss +4 -1
- package/checkbox/_checkbox-theme.scss +35 -17
- package/code-block/_code-block-theme.scss +218 -214
- package/core/forms/_forms.scss +2 -2
- package/core/option/_option-action-theme.scss +1 -1
- package/core/option/_option-theme.scss +7 -4
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +5 -5
- package/core/styles/_koobiq-theme.scss +2 -2
- package/core/styles/theming/_components-theming.scss +17 -19
- package/core/styles/theming/_scrollbar-theme.scss +6 -5
- package/core/styles/theming/_theming.scss +1 -0
- package/core/styles/typography/_typography.scss +70 -68
- package/datepicker/_datepicker-theme.scss +14 -11
- package/datepicker/calendar-header.component.d.ts +1 -0
- package/datepicker/datepicker-content.scss +8 -3
- package/datepicker/datepicker-toggle.scss +1 -0
- package/dl/_dl-theme.scss +2 -2
- package/dropdown/_dropdown-theme.scss +4 -4
- package/empty-state/_empty-state-theme.scss +2 -2
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +7 -3
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/stepper.mjs +2 -2
- package/esm2022/icon/icon-button.component.mjs +2 -2
- package/esm2022/list/list-selection.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal.service.mjs +4 -6
- package/esm2022/modal/modal.type.mjs +1 -1
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +72 -15
- package/esm2022/popover/popover.module.mjs +6 -4
- package/esm2022/select/select.component.mjs +2 -2
- package/esm2022/tabs/tab-body.component.mjs +3 -3
- package/esm2022/tabs/tab.component.mjs +3 -4
- package/esm2022/toast/toast.component.mjs +3 -3
- package/fesm2022/koobiq-components-core.mjs +2 -2
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +8 -4
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +4 -4
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +2 -2
- package/fesm2022/koobiq-components-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.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 +3 -5
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +82 -25
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +1 -1
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +4 -5
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +31 -27
- package/form-field/_form-field-theme.scss +6 -6
- package/form-field/form-field.scss +2 -2
- package/form-field/stepper.scss +5 -1
- package/icon/_icon-button-theme.scss +45 -26
- package/icon/_icon-item-theme.scss +1 -1
- package/icon/icon-button.scss +4 -4
- package/input/_input-theme.scss +1 -1
- package/link/_link-theme.scss +12 -6
- package/list/_list-theme.scss +8 -5
- package/list/list.scss +1 -0
- package/loader-overlay/_loader-overlay-theme.scss +10 -6
- package/markdown/_markdown-theme.scss +1 -1
- package/markdown/markdown.scss +5 -6
- package/modal/_modal-theme.scss +6 -5
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal.service.d.ts +9 -9
- package/modal/modal.type.d.ts +6 -6
- package/navbar/_navbar-theme.scss +9 -9
- package/package.json +18 -14
- package/popover/_popover-theme.scss +9 -4
- package/popover/popover.component.d.ts +22 -8
- package/popover/popover.module.d.ts +3 -1
- package/popover/popover.scss +32 -0
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +2 -2
- package/progress-spinner/_progress-spinner-theme.scss +3 -3
- package/radio/_radio-theme.scss +15 -19
- package/schematics/ng-add/index.js +4 -4
- package/scrollbar/_scrollbar-component-theme.scss +27 -12
- package/select/_select-theme.scss +2 -2
- package/sidepanel/_sidepanel-theme.scss +4 -4
- package/splitter/_splitter-theme.scss +1 -2
- package/splitter/splitter.scss +3 -3
- package/table/_table-theme.scss +2 -2
- package/tabs/_tabs-theme.scss +4 -3
- package/tags/_tag-theme.scss +7 -5
- package/timepicker/timepicker.scss +1 -0
- package/timezone/_timezone-option-theme.scss +3 -3
- package/toast/_toast-theme.scss +1 -1
- package/toast/toast.component.scss +1 -1
- package/toggle/_toggle-theme.scss +1 -1
- package/tooltip/_tooltip-theme.scss +1 -0
- package/tree/_tree-theme.scss +5 -5
- package/tree/toggle.scss +1 -1
- package/tree-select/_tree-select-theme.scss +2 -2
- package/toggle/README.md +0 -0
|
@@ -11,130 +11,149 @@
|
|
|
11
11
|
outline: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
// FIXME: move to unified mixin
|
|
14
15
|
&.kbq-theme {
|
|
15
|
-
color: kbq-css-variable(icon-button-
|
|
16
|
+
color: kbq-css-variable(icon-button-theme-default, map.get($icon-button, theme, default));
|
|
16
17
|
|
|
17
18
|
&:active,
|
|
18
19
|
&.kbq-active {
|
|
19
|
-
color: kbq-css-variable(icon-button-
|
|
20
|
+
color: kbq-css-variable(icon-button-theme-states-active, map.get($icon-button, theme, state-active));
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
&:not(.kbq-disabled):hover {
|
|
23
|
-
color: kbq-css-variable(icon-button-
|
|
24
|
+
color: kbq-css-variable(icon-button-theme-states-hover, map.get($icon-button, theme, state-hover));
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
&.kbq-disabled {
|
|
27
|
-
color: kbq-css-variable(
|
|
28
|
+
color: kbq-css-variable(
|
|
29
|
+
icon-button-theme-states-disabled,
|
|
30
|
+
map.get($icon-button, theme, state-disabled)
|
|
31
|
+
);
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
&.kbq-contrast {
|
|
32
|
-
color: kbq-css-variable(icon-button-
|
|
36
|
+
color: kbq-css-variable(icon-button-contrast-default, map.get($icon-button, contrast, default));
|
|
33
37
|
|
|
34
38
|
&:active,
|
|
35
39
|
&.kbq-active {
|
|
36
40
|
color: kbq-css-variable(
|
|
37
|
-
icon-button-
|
|
41
|
+
icon-button-contrast-states-active,
|
|
38
42
|
map.get($icon-button, contrast, state-active)
|
|
39
43
|
);
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
&:not(.kbq-disabled):hover {
|
|
43
|
-
color: kbq-css-variable(
|
|
47
|
+
color: kbq-css-variable(
|
|
48
|
+
icon-button-contrast-states-hover,
|
|
49
|
+
map.get($icon-button, contrast, state-hover)
|
|
50
|
+
);
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
&.kbq-disabled {
|
|
47
54
|
color: kbq-css-variable(
|
|
48
|
-
icon-button-
|
|
55
|
+
icon-button-contrast-states-disabled,
|
|
49
56
|
map.get($icon-button, contrast, state-disabled)
|
|
50
57
|
);
|
|
51
58
|
}
|
|
52
59
|
}
|
|
53
60
|
|
|
54
61
|
&.kbq-contrast-fade {
|
|
55
|
-
color: kbq-css-variable(icon-button-
|
|
62
|
+
color: kbq-css-variable(icon-button-fade-contrast-default, map.get($icon-button, fade-contrast, default));
|
|
56
63
|
|
|
57
64
|
&:active,
|
|
58
65
|
&.kbq-active {
|
|
59
66
|
color: kbq-css-variable(
|
|
60
|
-
icon-button-
|
|
67
|
+
icon-button-fade-contrast-states-active,
|
|
61
68
|
map.get($icon-button, fade-contrast, state-active)
|
|
62
69
|
);
|
|
63
70
|
}
|
|
64
71
|
|
|
65
72
|
&:not(.kbq-disabled):hover {
|
|
66
73
|
color: kbq-css-variable(
|
|
67
|
-
icon-button-
|
|
74
|
+
icon-button-fade-contrast-states-hover,
|
|
68
75
|
map.get($icon-button, fade-contrast, state-hover)
|
|
69
76
|
);
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
&.kbq-disabled {
|
|
73
80
|
color: kbq-css-variable(
|
|
74
|
-
icon-button-
|
|
81
|
+
icon-button-fade-contrast-states-disabled,
|
|
75
82
|
map.get($icon-button, fade-contrast, state-disabled)
|
|
76
83
|
);
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
&.kbq-error {
|
|
81
|
-
color: kbq-css-variable(icon-button-
|
|
88
|
+
color: kbq-css-variable(icon-button-error-default, map.get($icon-button, error, default));
|
|
82
89
|
|
|
83
90
|
&:active,
|
|
84
91
|
&.kbq-active {
|
|
85
|
-
color: kbq-css-variable(icon-button-
|
|
92
|
+
color: kbq-css-variable(icon-button-error-states-active, map.get($icon-button, error, state-active));
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
&:not(.kbq-disabled):hover {
|
|
89
|
-
color: kbq-css-variable(icon-button-
|
|
96
|
+
color: kbq-css-variable(icon-button-error-states-hover, map.get($icon-button, error, state-hover));
|
|
90
97
|
}
|
|
91
98
|
|
|
92
99
|
&.kbq-disabled {
|
|
93
|
-
color: kbq-css-variable(
|
|
100
|
+
color: kbq-css-variable(
|
|
101
|
+
icon-button-error-states-disabled,
|
|
102
|
+
map.get($icon-button, error, state-disabled)
|
|
103
|
+
);
|
|
94
104
|
}
|
|
95
105
|
}
|
|
96
106
|
|
|
97
107
|
&.kbq-success {
|
|
98
|
-
color: kbq-css-variable(icon-button-
|
|
108
|
+
color: kbq-css-variable(icon-button-success-default, map.get($icon-button, success, default));
|
|
99
109
|
|
|
100
110
|
&:active,
|
|
101
111
|
&.kbq-active {
|
|
102
|
-
color: kbq-css-variable(
|
|
112
|
+
color: kbq-css-variable(
|
|
113
|
+
icon-button-success-states-active,
|
|
114
|
+
map.get($icon-button, success, state-active)
|
|
115
|
+
);
|
|
103
116
|
}
|
|
104
117
|
|
|
105
118
|
&:not(.kbq-disabled):hover {
|
|
106
|
-
color: kbq-css-variable(icon-button-
|
|
119
|
+
color: kbq-css-variable(icon-button-success-states-hover, map.get($icon-button, success, state-hover));
|
|
107
120
|
}
|
|
108
121
|
|
|
109
122
|
&.kbq-disabled {
|
|
110
123
|
color: kbq-css-variable(
|
|
111
|
-
icon-button-
|
|
124
|
+
icon-button-success-states-disabled,
|
|
112
125
|
map.get($icon-button, success, state-disabled)
|
|
113
126
|
);
|
|
114
127
|
}
|
|
115
128
|
}
|
|
116
129
|
|
|
117
130
|
&.kbq-warning {
|
|
118
|
-
color: kbq-css-variable(icon-button-default, map.get($icon-button, default));
|
|
131
|
+
color: kbq-css-variable(icon-button-warning-default, map.get($icon-button, warning, default));
|
|
119
132
|
|
|
120
133
|
&:active,
|
|
121
134
|
&.kbq-active {
|
|
122
|
-
color: kbq-css-variable(
|
|
135
|
+
color: kbq-css-variable(
|
|
136
|
+
icon-button-warning-states-active,
|
|
137
|
+
map.get($icon-button, warning, state-active)
|
|
138
|
+
);
|
|
123
139
|
}
|
|
124
140
|
|
|
125
141
|
&:not(.kbq-disabled):hover {
|
|
126
|
-
color: kbq-css-variable(icon-button-
|
|
142
|
+
color: kbq-css-variable(icon-button-warning-states-hover, map.get($icon-button, warning, state-hover));
|
|
127
143
|
}
|
|
128
144
|
|
|
129
145
|
&.kbq-disabled {
|
|
130
|
-
color: kbq-css-variable(
|
|
146
|
+
color: kbq-css-variable(
|
|
147
|
+
icon-button-warning-states-disabled,
|
|
148
|
+
map.get($icon-button, warning, state-disabled)
|
|
149
|
+
);
|
|
131
150
|
}
|
|
132
151
|
}
|
|
133
152
|
|
|
134
153
|
&.cdk-keyboard-focused {
|
|
135
154
|
box-shadow:
|
|
136
|
-
inset 0 0 0.1px 1px map.get($theme, states, focused-color),
|
|
137
|
-
0 0 0.1px 1px map.get($theme, states, focused-color);
|
|
155
|
+
inset 0 0 0.1px 1px kbq-css-variable(states-focused-color, map.get($theme, states, focused-color)),
|
|
156
|
+
0 0 0.1px 1px kbq-css-variable(states-focused-color, map.get($theme, states, focused-color));
|
|
138
157
|
}
|
|
139
158
|
}
|
|
140
159
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@mixin kbq-icon-item-style($component, $type, $style-name) {
|
|
7
7
|
$style: map.get($component, $type, $style-name);
|
|
8
|
-
$base: icon-item-filled-#{$type}-#{$
|
|
8
|
+
$base: icon-item-filled-#{$type}-#{$style-name};
|
|
9
9
|
|
|
10
10
|
color: kbq-css-variable(#{$base}-color, map.get($component, $type, $style-name, color));
|
|
11
11
|
background: kbq-css-variable(#{$base}-background, map.get($component, $type, $style-name, background));
|
package/icon/icon-button.scss
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
padding: kbq-css-variable(icon-button-size-
|
|
12
|
-
kbq-css-variable(icon-button-size-
|
|
11
|
+
padding: kbq-css-variable(icon-button-size-normal-vertical-padding)
|
|
12
|
+
kbq-css-variable(icon-button-size-normal-horizontal-padding);
|
|
13
13
|
|
|
14
14
|
&.kbq-icon-button_small {
|
|
15
|
-
padding: kbq-css-variable(icon-button-size-
|
|
16
|
-
kbq-css-variable(icon-button-size-
|
|
15
|
+
padding: kbq-css-variable(icon-button-size-small-vertical-padding)
|
|
16
|
+
kbq-css-variable(icon-button-size-small-horizontal-padding);
|
|
17
17
|
}
|
|
18
18
|
}
|
package/input/_input-theme.scss
CHANGED
package/link/_link-theme.scss
CHANGED
|
@@ -67,19 +67,25 @@
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
@mixin kbq-link-state($component, $state-name) {
|
|
71
|
-
$state:
|
|
70
|
+
@mixin kbq-link-state($component, $state-name: null) {
|
|
71
|
+
$state: $component;
|
|
72
|
+
$base-path: link;
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
@if $state-name {
|
|
75
|
+
$state: map.get($component, $state-name);
|
|
76
|
+
$base-path: link-#{$state-name};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
color: kbq-css-variable(#{$base-path}-text, map.get($state, text));
|
|
74
80
|
|
|
75
81
|
&.kbq-text-only,
|
|
76
82
|
&.kbq-text-with-icon .kbq-link__text,
|
|
77
83
|
&.kbq-text-with-dot .kbq-link__text {
|
|
78
|
-
border-bottom-color: kbq-css-variable(
|
|
84
|
+
border-bottom-color: kbq-css-variable(#{$base-path}-border-bottom, map.get($state, border-bottom));
|
|
79
85
|
}
|
|
80
86
|
|
|
81
87
|
& .kbq-icon {
|
|
82
|
-
color: kbq-css-variable(
|
|
88
|
+
color: kbq-css-variable(#{$base-path}-text, map.get($state, text)) !important;
|
|
83
89
|
}
|
|
84
90
|
}
|
|
85
91
|
|
|
@@ -91,7 +97,7 @@
|
|
|
91
97
|
.kbq-link {
|
|
92
98
|
@include kbq-link-geometry($tokens);
|
|
93
99
|
|
|
94
|
-
@include kbq-link-state($link
|
|
100
|
+
@include kbq-link-state($link);
|
|
95
101
|
|
|
96
102
|
transition: color ease-out 300ms;
|
|
97
103
|
|
package/list/_list-theme.scss
CHANGED
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
background: kbq-css-variable(list-#{$state-name}-container-background, map.get($state, container-background));
|
|
11
11
|
|
|
12
12
|
.kbq-list-text {
|
|
13
|
-
color: kbq-css-variable(list-#{$state-name}-text, map.get($state, text));
|
|
13
|
+
color: kbq-css-variable(list-#{$state-name}-text-color, map.get($state, text));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.kbq-icon {
|
|
17
|
-
color: kbq-css-variable(list-#{$state-name}-icon, map.get($state, icon));
|
|
17
|
+
color: kbq-css-variable(list-#{$state-name}-icon-color, map.get($state, icon));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.kbq-option-action .kbq-icon {
|
|
21
|
-
color: kbq-css-variable(list-#{$state-name}-icon-button, map.get($state, icon-button));
|
|
21
|
+
color: kbq-css-variable(list-#{$state-name}-icon-button-color, map.get($state, icon-button));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.kbq-list-option-caption {
|
|
25
|
-
color: kbq-css-variable(list-#{$state-name}-caption, map.get($state, caption));
|
|
25
|
+
color: kbq-css-variable(list-#{$state-name}-caption-color, map.get($state, caption));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -37,7 +37,10 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&.kbq-focused {
|
|
40
|
-
border-color:
|
|
40
|
+
border-color: kbq-css-variable(
|
|
41
|
+
list-states-focused-focus-outline-color,
|
|
42
|
+
map.get($list-item, states-focused, focus-outline)
|
|
43
|
+
);
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
&.kbq-selected {
|
package/list/list.scss
CHANGED
|
@@ -7,37 +7,41 @@
|
|
|
7
7
|
@mixin kbq-loader-overlay-theme($theme) {
|
|
8
8
|
$loader-overlay: map.get(map.get($theme, components), loader-overlay);
|
|
9
9
|
|
|
10
|
+
// FIXME: move to unified mixin if necessary
|
|
10
11
|
.kbq-loader-overlay_filled {
|
|
11
12
|
&.kbq-loader-overlay {
|
|
12
13
|
background: kbq-css-variable(
|
|
13
|
-
loader-overlay-filled-background,
|
|
14
|
+
loader-overlay-filled-overlay-background,
|
|
14
15
|
map.get($loader-overlay, filled, background)
|
|
15
16
|
);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
& .kbq-loader-overlay-text {
|
|
19
|
-
color: kbq-css-variable(loader-overlay-filled-text, map.get($loader-overlay, filled, text));
|
|
20
|
+
color: kbq-css-variable(loader-overlay-filled-text-color, map.get($loader-overlay, filled, text));
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
& .kbq-loader-overlay-caption {
|
|
23
|
-
color: kbq-css-variable(loader-overlay-filled-caption, map.get($loader-overlay, filled, caption));
|
|
24
|
+
color: kbq-css-variable(loader-overlay-filled-caption-color, map.get($loader-overlay, filled, caption));
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.kbq-loader-overlay_transparent {
|
|
28
29
|
&.kbq-loader-overlay {
|
|
29
30
|
background: kbq-css-variable(
|
|
30
|
-
loader-overlay-transparent-background,
|
|
31
|
+
loader-overlay-transparent-overlay-background,
|
|
31
32
|
map.get($loader-overlay, transparent, background)
|
|
32
33
|
);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
& .kbq-loader-overlay-text {
|
|
36
|
-
color: kbq-css-variable(loader-overlay-transparent-text, map.get($loader-overlay, transparent, text));
|
|
37
|
+
color: kbq-css-variable(loader-overlay-transparent-text-color, map.get($loader-overlay, transparent, text));
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
& .kbq-loader-overlay-caption {
|
|
40
|
-
color: kbq-css-variable(
|
|
41
|
+
color: kbq-css-variable(
|
|
42
|
+
loader-overlay-transparent-caption-color,
|
|
43
|
+
map.get($loader-overlay, transparent, caption)
|
|
44
|
+
);
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
}
|
package/markdown/markdown.scss
CHANGED
|
@@ -20,7 +20,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
20
20
|
// h1, h2, h3, h4, h5, h6
|
|
21
21
|
@for $i from 1 through 6 {
|
|
22
22
|
.kbq-markdown__h#{$i} {
|
|
23
|
-
max-width: kbq-css-variable(markdown-h#{$i}-size-max-width);
|
|
24
23
|
margin-top: kbq-css-variable(markdown-h#{$i}-size-margin-top);
|
|
25
24
|
margin-bottom: kbq-css-variable(markdown-h#{$i}-size-margin-bottom);
|
|
26
25
|
}
|
|
@@ -38,14 +37,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
.kbq-markdown__p {
|
|
41
|
-
max-width: kbq-css-variable(markdown-p-size-max-width);
|
|
42
40
|
margin-top: kbq-css-variable(markdown-p-size-margin-top);
|
|
43
41
|
margin-bottom: kbq-css-variable(markdown-p-size-margin-bottom);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
.kbq-markdown__ul,
|
|
47
45
|
.kbq-markdown__ol {
|
|
48
|
-
max-width: kbq-css-variable(markdown-list-size-max-width);
|
|
49
46
|
margin-top: kbq-css-variable(markdown-list-size-margin-top);
|
|
50
47
|
margin-bottom: kbq-css-variable(markdown-list-size-margin-bottom);
|
|
51
48
|
|
|
@@ -93,7 +90,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
.kbq-markdown__blockquote {
|
|
96
|
-
max-width: kbq-css-variable(markdown-blockquote-size-max-width);
|
|
97
93
|
margin-top: kbq-css-variable(markdown-blockquote-size-margin-top);
|
|
98
94
|
margin-left: 0;
|
|
99
95
|
margin-bottom: kbq-css-variable(markdown-blockquote-size-margin-bottom);
|
|
@@ -129,12 +125,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
129
125
|
}
|
|
130
126
|
|
|
131
127
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
132
|
-
max-width: kbq-css-variable(markdown-code-size-max-width);
|
|
133
128
|
padding: kbq-css-variable(markdown-code-size-inline-padding);
|
|
134
129
|
}
|
|
135
130
|
|
|
136
131
|
.kbq-markdown__img {
|
|
137
|
-
max-width:
|
|
132
|
+
max-width: 100%;
|
|
138
133
|
margin-top: kbq-css-variable(markdown-image-size-margin-top);
|
|
139
134
|
margin-bottom: kbq-css-variable(markdown-image-size-margin-bottom);
|
|
140
135
|
|
|
@@ -197,3 +192,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
197
192
|
}
|
|
198
193
|
}
|
|
199
194
|
}
|
|
195
|
+
|
|
196
|
+
.docs-live-example.kbq-markdown {
|
|
197
|
+
margin-bottom: 128px;
|
|
198
|
+
}
|
package/modal/_modal-theme.scss
CHANGED
|
@@ -13,29 +13,30 @@
|
|
|
13
13
|
|
|
14
14
|
.kbq-modal-header {
|
|
15
15
|
& .kbq-modal-title {
|
|
16
|
-
color: kbq-css-variable(modal-header, map.get($modal, header));
|
|
16
|
+
color: kbq-css-variable(modal-header-text-color, map.get($modal, header));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
& .kbq-modal-close {
|
|
20
|
-
color: kbq-css-variable(modal-close-button, map.get($modal, close-button));
|
|
20
|
+
color: kbq-css-variable(modal-close-button-color, map.get($modal, close-button));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.kbq-modal-content {
|
|
25
|
-
color: kbq-css-variable(modal-content, map.get($modal, content));
|
|
25
|
+
color: kbq-css-variable(modal-content-text-color, map.get($modal, content));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
// FIXME: default token doesn't exist
|
|
28
29
|
.kbq-modal-header.kbq-modal-body_top-overflow {
|
|
29
30
|
box-shadow: kbq-css-variable(modal-body-top-shadow, map.get($modal, body-top-shadow));
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
+
// FIXME: default token doesn't exist
|
|
32
33
|
.kbq-modal-footer.kbq-modal-body_bottom-overflow {
|
|
33
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: kbq-css-variable(modal-overlay, map.get($modal, overlay));
|
|
39
|
+
background-color: kbq-css-variable(modal-overlay-background, map.get($modal, overlay));
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
|
|
@@ -4,7 +4,7 @@ import { KbqModalComponent } from './modal.component';
|
|
|
4
4
|
* API class that public to users to handle the modal instance.
|
|
5
5
|
* KbqModalRef is aim to avoid accessing to the modal instance directly by users.
|
|
6
6
|
*/
|
|
7
|
-
export declare abstract class KbqModalRef<
|
|
7
|
+
export declare abstract class KbqModalRef<C = any, R = any> {
|
|
8
8
|
abstract afterOpen: Observable<void>;
|
|
9
9
|
abstract afterClose: Observable<R>;
|
|
10
10
|
abstract open(): void;
|
|
@@ -20,7 +20,7 @@ export declare abstract class KbqModalRef<T = any, R = any> {
|
|
|
20
20
|
* Note: this method may return undefined if the Component has not ready yet.
|
|
21
21
|
* (it only available after Modal's ngOnInit)
|
|
22
22
|
*/
|
|
23
|
-
abstract getContentComponent():
|
|
23
|
+
abstract getContentComponent(): C;
|
|
24
24
|
/**
|
|
25
25
|
* Get the dom element of this Modal
|
|
26
26
|
*/
|
package/modal/modal.service.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ import { KbqModalComponent } from './modal.component';
|
|
|
6
6
|
import { ConfirmType, IModalOptionsForService } from './modal.type';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ModalBuilderForService {
|
|
9
|
-
private overlay;
|
|
9
|
+
private readonly overlay;
|
|
10
|
+
readonly options: IModalOptionsForService;
|
|
10
11
|
private modalRef;
|
|
11
12
|
private overlayRef;
|
|
12
13
|
constructor(overlay: Overlay, options?: IModalOptionsForService);
|
|
@@ -16,18 +17,17 @@ export declare class ModalBuilderForService {
|
|
|
16
17
|
private createModal;
|
|
17
18
|
}
|
|
18
19
|
export declare class KbqModalService {
|
|
19
|
-
private overlay;
|
|
20
|
-
private modalControl;
|
|
20
|
+
private readonly overlay;
|
|
21
|
+
private readonly modalControl;
|
|
21
22
|
get openModals(): KbqModalRef[];
|
|
22
23
|
get afterAllClose(): Observable<void>;
|
|
23
24
|
constructor(overlay: Overlay, modalControl: KbqModalControlService);
|
|
24
25
|
closeAll(): void;
|
|
25
|
-
create<
|
|
26
|
-
confirm<
|
|
27
|
-
open<
|
|
28
|
-
success<
|
|
29
|
-
delete<
|
|
30
|
-
private simpleConfirm;
|
|
26
|
+
create<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
27
|
+
confirm<C, R>(options?: IModalOptionsForService<C>, confirmType?: ConfirmType): KbqModalRef<C, R>;
|
|
28
|
+
open<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
29
|
+
success<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
30
|
+
delete<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqModalService, never>;
|
|
32
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<KbqModalService>;
|
|
33
33
|
}
|
package/modal/modal.type.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare enum ModalSize {
|
|
|
8
8
|
Medium = "medium",
|
|
9
9
|
Large = "large"
|
|
10
10
|
}
|
|
11
|
-
export interface ModalOptions<
|
|
11
|
+
export interface ModalOptions<C = any, R = any> {
|
|
12
12
|
kbqModalType?: ModalType;
|
|
13
13
|
kbqVisible?: boolean;
|
|
14
14
|
kbqWidth?: number | string;
|
|
@@ -17,15 +17,15 @@ export interface ModalOptions<T = any, R = any> {
|
|
|
17
17
|
kbqClassName?: string;
|
|
18
18
|
kbqStyle?: object;
|
|
19
19
|
kbqTitle?: string | TemplateRef<{}>;
|
|
20
|
-
kbqContent?: string | TemplateRef<{}> | Type<
|
|
21
|
-
kbqComponent?: Type<
|
|
20
|
+
kbqContent?: string | TemplateRef<{}> | Type<C>;
|
|
21
|
+
kbqComponent?: Type<C>;
|
|
22
22
|
kbqComponentParams?: any;
|
|
23
23
|
kbqClosable?: boolean;
|
|
24
24
|
kbqMask?: boolean;
|
|
25
25
|
kbqMaskClosable?: boolean;
|
|
26
26
|
kbqMaskStyle?: object;
|
|
27
27
|
kbqBodyStyle?: object;
|
|
28
|
-
kbqFooter?: string | TemplateRef<{}> | IModalButtonOptions<
|
|
28
|
+
kbqFooter?: string | TemplateRef<{}> | IModalButtonOptions<C>[];
|
|
29
29
|
kbqGetContainer?: HTMLElement | OverlayRef | (() => HTMLElement | OverlayRef) | null;
|
|
30
30
|
kbqAfterOpen?: EventEmitter<void>;
|
|
31
31
|
kbqAfterClose?: EventEmitter<R>;
|
|
@@ -34,10 +34,10 @@ export interface ModalOptions<T = any, R = any> {
|
|
|
34
34
|
kbqOkText?: string;
|
|
35
35
|
kbqOkType?: string;
|
|
36
36
|
kbqOkLoading?: boolean;
|
|
37
|
-
kbqOnOk?: EventEmitter<
|
|
37
|
+
kbqOnOk?: EventEmitter<C> | OnClickCallback<C>;
|
|
38
38
|
kbqCancelText?: string;
|
|
39
39
|
kbqCancelLoading?: boolean;
|
|
40
|
-
kbqOnCancel?: EventEmitter<
|
|
40
|
+
kbqOnCancel?: EventEmitter<C> | OnClickCallback<C>;
|
|
41
41
|
}
|
|
42
42
|
export interface IModalOptionsForService<T = any> extends ModalOptions<T> {
|
|
43
43
|
kbqOnOk?: OnClickCallback<T>;
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
&:not(.kbq-navbar-item_has-nested) {
|
|
11
11
|
&:after {
|
|
12
12
|
display: block;
|
|
13
|
-
background: kbq-css-variable(navbar-item-#{$state-name}-background, map.get($state, background));
|
|
13
|
+
background: kbq-css-variable(navbar-item-#{$state-name}-content-background, map.get($state, background));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.kbq-navbar-title {
|
|
18
|
-
color: kbq-css-variable(navbar-item-#{$state-name}-text, map.get($state, text));
|
|
18
|
+
color: kbq-css-variable(navbar-item-#{$state-name}-content-text, map.get($state, text));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
& > .kbq-icon {
|
|
22
|
-
color: kbq-css-variable(navbar-item-#{$state-name}-icon-left, map.get($state, icon-left)) !important;
|
|
22
|
+
color: kbq-css-variable(navbar-item-#{$state-name}-content-icon-left, map.get($state, icon-left)) !important;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.kbq-navbar-item__arrow-icon {
|
|
26
|
-
color: kbq-css-variable(navbar-item-#{$state-name}-icon-right, map.get($state, icon-right)) !important;
|
|
26
|
+
color: kbq-css-variable(navbar-item-#{$state-name}-content-icon-right, map.get($state, icon-right)) !important;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
@include kbq-navbar-item($item, default);
|
|
49
49
|
|
|
50
50
|
&:hover:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand) {
|
|
51
|
-
@include kbq-navbar-item($item, hover);
|
|
51
|
+
@include kbq-navbar-item($item, states-hover);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&.cdk-focused.cdk-keyboard-focused {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
&:active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand),
|
|
65
65
|
&.kbq-active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand) {
|
|
66
|
-
@include kbq-navbar-item($item, selected);
|
|
66
|
+
@include kbq-navbar-item($item, states-selected);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&.kbq-navbar-focusable-item {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&.kbq-disabled {
|
|
74
|
-
@include kbq-navbar-item($item, disabled);
|
|
74
|
+
@include kbq-navbar-item($item, states-disabled);
|
|
75
75
|
|
|
76
76
|
pointer-events: none;
|
|
77
77
|
cursor: default;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.kbq-navbar-divider {
|
|
94
|
-
background: kbq-css-variable(line-contrast-
|
|
94
|
+
background: kbq-css-variable(line-contrast-less, map.get($theme, line, contrast-less));
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -106,7 +106,7 @@ button {
|
|
|
106
106
|
|
|
107
107
|
@mixin kbq-navbar-typography($config) {
|
|
108
108
|
.kbq-navbar-title {
|
|
109
|
-
@include kbq-typography-level-to-
|
|
109
|
+
@include kbq-typography-level-to-styles_css-variables(typography, text-normal-medium);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.kbq-navbar-brand {
|