@koobiq/components 18.5.2 → 18.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/_accordion-theme.scss +3 -3
- package/alert/_alert-theme.scss +3 -3
- package/badge/_badge-theme.scss +8 -4
- package/badge/badge-tokens.scss +8 -0
- package/badge/badge.component.d.ts +1 -0
- package/button/_button-theme.scss +2 -2
- package/button/button-tokens.scss +3 -6
- package/button/button.scss +13 -8
- package/button-toggle/_button-toggle-theme.scss +1 -1
- package/checkbox/_checkbox-theme.scss +4 -4
- package/checkbox/checkbox-tokens.scss +4 -4
- package/code-block/_code-block-theme.scss +4 -4
- package/core/forms/_forms-theme.scss +1 -1
- package/core/option/_optgroup-theme.scss +2 -2
- package/core/option/_option-action-theme.scss +1 -1
- package/core/option/_option-theme.scss +2 -2
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +4 -4
- package/core/styles/theming/_theming.scss +2 -42
- package/core/styles/typography/_typography.scss +120 -159
- package/core/styles/visual/_layout.scss +1 -1
- package/datepicker/_datepicker-theme.scss +2 -2
- package/dl/_dl-theme.scss +2 -2
- package/dl/dl-tokens.scss +2 -2
- package/dropdown/_dropdown-theme.scss +8 -4
- package/empty-state/_empty-state-theme.scss +4 -4
- package/esm2022/badge/badge.component.mjs +4 -3
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/option/action.mjs +2 -2
- package/esm2022/core/option/optgroup.mjs +2 -2
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dl/dl.component.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/icon/icon-button.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +3 -3
- package/esm2022/splitter/splitter.component.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-badge.mjs +3 -2
- package/fesm2022/koobiq-components-badge.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 +2 -2
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +7 -7
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -2
- package/fesm2022/koobiq-components-dropdown.mjs +2 -2
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +2 -2
- package/fesm2022/koobiq-components-icon.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-select.mjs +2 -2
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +2 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- 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-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +7 -7
- package/form-field/_form-field-theme.scss +2 -2
- package/form-field/_hint-theme.scss +2 -2
- package/icon/_icon-button-theme.scss +2 -2
- package/input/_input-theme.scss +2 -2
- package/link/_link-theme.scss +3 -3
- package/list/_list-theme.scss +2 -2
- package/loader-overlay/_loader-overlay-theme.scss +4 -4
- package/markdown/_markdown-theme.scss +9 -9
- package/markdown/markdown-tokens.scss +23 -23
- package/modal/_modal-theme.scss +2 -2
- package/navbar/_navbar-theme.scss +2 -2
- package/package.json +6 -6
- package/popover/_popover-theme.scss +2 -2
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +2 -2
- package/progress-spinner/_progress-spinner-theme.scss +2 -2
- package/radio/_radio-theme.scss +4 -4
- package/risk-level/_risk-level-theme.scss +1 -1
- package/schematics/collection.json +5 -0
- package/schematics/migrations/css-selectors/data.js +65 -0
- package/schematics/migrations/css-selectors/index.js +103 -0
- package/schematics/migrations/css-selectors/schema.json +25 -0
- package/schematics/ng-add/index.js +4 -4
- package/select/_select-theme.scss +5 -5
- package/sidepanel/_sidepanel-theme.scss +2 -2
- package/splitter/_splitter-theme.scss +1 -1
- package/table/_table-theme.scss +2 -2
- package/tabs/_tabs-theme.scss +1 -1
- package/tags/_tag-theme.scss +2 -2
- package/textarea/_textarea-theme.scss +1 -1
- package/timezone/_timezone-option-theme.scss +4 -4
- package/toast/_toast-theme.scss +2 -2
- package/toast/toast.component.scss +6 -1
- package/toggle/_toggle-theme.scss +5 -5
- package/tooltip/_tooltip-theme.scss +2 -2
- package/tree/_tree-theme.scss +2 -2
- package/tree-select/_tree-select-theme.scss +3 -3
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const typographyCssSelectorsReplacement = [
|
|
4
|
+
{ replace: 'kbq-display-1-strong', replaceWith: 'kbq-display-big-strong' },
|
|
5
|
+
{ replace: 'kbq-display-2-strong', replaceWith: 'kbq-display-normal-strong' },
|
|
6
|
+
{ replace: 'kbq-display-3-strong', replaceWith: 'kbq-display-compact-strong' },
|
|
7
|
+
{ replace: 'kbq-body-tabular', replaceWith: 'kbq-tabular-big' },
|
|
8
|
+
{ replace: 'kbq-body-strong', replaceWith: 'kbq-text-big-strong' },
|
|
9
|
+
{ replace: 'kbq-body-mono-strong', replaceWith: 'kbq-mono-big-strong' },
|
|
10
|
+
{ replace: 'kbq-body-mono', replaceWith: 'kbq-mono-big' },
|
|
11
|
+
{ replace: 'kbq-body-caps', replaceWith: 'kbq-caps-big' },
|
|
12
|
+
{ replace: 'kbq-caption-tabular', replaceWith: 'kbq-tabular-normal' },
|
|
13
|
+
{ replace: 'kbq-caption-strong', replaceWith: 'kbq-text-normal-strong' },
|
|
14
|
+
{ replace: 'kbq-caption-mono-strong', replaceWith: 'kbq-mono-normal-strong' },
|
|
15
|
+
{ replace: 'kbq-caption-mono', replaceWith: 'kbq-mono-normal' },
|
|
16
|
+
{ replace: 'kbq-caption-caps', replaceWith: 'kbq-caps-normal' },
|
|
17
|
+
{ replace: 'kbq-extra-small-text-strong', replaceWith: 'kbq-text-compact-strong' },
|
|
18
|
+
{ replace: 'kbq-extra-small-text-mono', replaceWith: 'kbq-mono-compact' },
|
|
19
|
+
{ replace: 'kbq-extra-small-text-caps', replaceWith: 'kbq-caps-compact' },
|
|
20
|
+
{ replace: 'kbq-display-1', replaceWith: 'kbq-display-big' },
|
|
21
|
+
{ replace: 'kbq-display-2', replaceWith: 'kbq-display-normal' },
|
|
22
|
+
{ replace: 'kbq-display-3', replaceWith: 'kbq-display-compact' },
|
|
23
|
+
{ replace: 'kbq-body', replaceWith: 'kbq-text-big' },
|
|
24
|
+
{ replace: 'kbq-caption', replaceWith: 'kbq-text-normal' },
|
|
25
|
+
{ replace: 'kbq-extra-small-text', replaceWith: 'kbq-text-compact' }
|
|
26
|
+
];
|
|
27
|
+
const colorsVarsReplacement = [
|
|
28
|
+
/* NEUTRAL */
|
|
29
|
+
{ replace: 'neutral-white', replaceWith: '<remove from project>' },
|
|
30
|
+
/* BRAND */
|
|
31
|
+
{ replace: 'brand-default', replaceWith: '<remove from project>' },
|
|
32
|
+
{ replace: 'brand-palette', replaceWith: '<remove from project>' },
|
|
33
|
+
/* INFO */
|
|
34
|
+
{ replace: 'info-default', replaceWith: '<remove from project>' },
|
|
35
|
+
/* BACKGROUND */
|
|
36
|
+
{ replace: 'background-background-disabled', replaceWith: 'states-background-disabled' },
|
|
37
|
+
{ replace: 'background-background-less-contrast', replaceWith: 'states-background-secondary' },
|
|
38
|
+
{ replace: 'background-background-under', replaceWith: 'states-background-secondary' },
|
|
39
|
+
{ replace: 'background-background', replaceWith: 'background-bg' },
|
|
40
|
+
{ replace: 'background-overlay-hover', replaceWith: 'states-background-transparent-hover' },
|
|
41
|
+
{ replace: 'background-overlay-active', replaceWith: 'states-background-transparent-active' },
|
|
42
|
+
{ replace: 'background-overlay-disabled', replaceWith: 'states-background-transparent-disabled' },
|
|
43
|
+
/* FOREGROUND */
|
|
44
|
+
{ replace: 'foreground-text-less-contrast', replaceWith: 'foreground-contrast-fade' },
|
|
45
|
+
{ replace: 'foreground-text-disabled', replaceWith: 'states-foreground-disabled' },
|
|
46
|
+
{ replace: 'foreground-text-error', replaceWith: 'foreground-contrast-fade' },
|
|
47
|
+
{ replace: 'foreground-text-success', replaceWith: 'foreground-success' },
|
|
48
|
+
{ replace: 'foreground-divider', replaceWith: 'line-contrast-less' },
|
|
49
|
+
{ replace: 'foreground-text', replaceWith: 'foreground-contrast' },
|
|
50
|
+
{ replace: 'foreground-icon', replaceWith: 'icon-contrast' },
|
|
51
|
+
{ replace: 'foreground-border', replaceWith: 'line-contrast-fade' },
|
|
52
|
+
/* STATES */
|
|
53
|
+
{ replace: 'states-background-ghost-hover', replaceWith: 'states-background-transparent-hover' },
|
|
54
|
+
{ replace: 'states-background-ghost-active', replaceWith: 'states-background-transparent-active' },
|
|
55
|
+
/* ICON */
|
|
56
|
+
{ replace: 'states-focused-color-error', replaceWith: 'states-line-focus-error' },
|
|
57
|
+
{ replace: 'states-focused-color', replaceWith: 'states-line-focus-theme' },
|
|
58
|
+
{ replace: 'states-selected-color', replaceWith: '<remove from project>' },
|
|
59
|
+
{ replace: 'states-pressed-shadow', replaceWith: '<remove from project>' },
|
|
60
|
+
{ replace: 'states-pressed-shadow', replaceWith: '<remove from project>' },
|
|
61
|
+
{ replace: 'others-brand', replaceWith: '<remove from project>' }
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
exports.colorsVarsReplacement = colorsVarsReplacement;
|
|
65
|
+
exports.typographyCssSelectorsReplacement = typographyCssSelectorsReplacement;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var utils_packageConfig = require('../../utils/package-config.js');
|
|
7
|
+
var migrations_cssSelectors_data = require('./data.js');
|
|
8
|
+
require('@angular-devkit/schematics');
|
|
9
|
+
require('@schematics/angular/utility');
|
|
10
|
+
|
|
11
|
+
function _interopNamespaceDefault(e) {
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
29
|
+
|
|
30
|
+
function cssSelectors(options) {
|
|
31
|
+
let targetDir;
|
|
32
|
+
return async (tree, context) => {
|
|
33
|
+
const { project, fix, stylesExt } = options;
|
|
34
|
+
try {
|
|
35
|
+
const projectDefinition = await utils_packageConfig.setupOptions(project, tree);
|
|
36
|
+
targetDir = projectDefinition ? tree.getDir(projectDefinition.root) : tree;
|
|
37
|
+
}
|
|
38
|
+
catch (e) {
|
|
39
|
+
targetDir = tree;
|
|
40
|
+
}
|
|
41
|
+
const { logger } = context;
|
|
42
|
+
const getDeprecatedFrom = (content, replacementInfo) => {
|
|
43
|
+
return replacementInfo.filter(({ replace }) => new RegExp(`\\b${replace}\\b`, 'g').exec(content));
|
|
44
|
+
};
|
|
45
|
+
const handleReplacements = (newContent, path) => {
|
|
46
|
+
if (fix) {
|
|
47
|
+
migrations_cssSelectors_data.typographyCssSelectorsReplacement.forEach(({ replace, replaceWith }) => {
|
|
48
|
+
newContent = newContent.replace(new RegExp(`\\b${replace}\\b`, 'g'), replaceWith);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const foundSelectors = getDeprecatedFrom(newContent, migrations_cssSelectors_data.typographyCssSelectorsReplacement);
|
|
53
|
+
if (foundSelectors.length) {
|
|
54
|
+
logger.warn(getTypographyReplacements(path, foundSelectors));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// Just suggest about colors replacements without changing file,
|
|
58
|
+
// since it's potentially a complex task to handle
|
|
59
|
+
const foundColors = getDeprecatedFrom(newContent, migrations_cssSelectors_data.colorsVarsReplacement);
|
|
60
|
+
if (foundColors.length) {
|
|
61
|
+
logger.warn(getBaseReplacements(path, foundColors));
|
|
62
|
+
}
|
|
63
|
+
return newContent;
|
|
64
|
+
};
|
|
65
|
+
// Update templates & components & styles
|
|
66
|
+
targetDir.visit((path, entry) => {
|
|
67
|
+
// if project property not provided, provide node_modules to be changed
|
|
68
|
+
if (path.includes('node_modules'))
|
|
69
|
+
return;
|
|
70
|
+
if (path.endsWith('.html') || path.endsWith('.ts') || path.endsWith(stylesExt)) {
|
|
71
|
+
const initialContent = entry?.content.toString();
|
|
72
|
+
let newContent = initialContent;
|
|
73
|
+
if (newContent) {
|
|
74
|
+
newContent = handleReplacements(newContent, path);
|
|
75
|
+
if (initialContent !== newContent) {
|
|
76
|
+
tree.overwrite(path, newContent || '');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function getBaseReplacements(filePath, foundSelectors) {
|
|
84
|
+
const parsedFilePath = path__namespace.relative(__dirname, `.${filePath}`);
|
|
85
|
+
return `
|
|
86
|
+
-------------------------
|
|
87
|
+
Please pay attention! Found deprecated сss-selectors in file:
|
|
88
|
+
${parsedFilePath.replace(/\\/g, '/')}
|
|
89
|
+
Replace with specified rules:
|
|
90
|
+
${foundSelectors.map(({ replace, replaceWith }) => `\t${replace} -> \t${replaceWith}`).join('\n')}
|
|
91
|
+
-------------------------
|
|
92
|
+
`;
|
|
93
|
+
}
|
|
94
|
+
function getTypographyReplacements(filePath, foundSelectors) {
|
|
95
|
+
const baseMessage = getBaseReplacements(filePath, foundSelectors);
|
|
96
|
+
return `${baseMessage}\n
|
|
97
|
+
Or use --fix=true to replace automatically
|
|
98
|
+
Pay attention: overwriting is possible. Check the code after automatic replacement was done.
|
|
99
|
+
-------------------------
|
|
100
|
+
`;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
exports.default = cssSelectors;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "koobiq-components-css-selectors",
|
|
4
|
+
"title": "koobiq-components css-selectors schematic",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"project": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Name of the project",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "projectName"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"fix": {
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "Whether overwrite icons prefixes or simply inform in console",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"stylesExt": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Use this option to specify styles extension preferred in your project",
|
|
22
|
+
"default": "scss"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -41,13 +41,13 @@ function ngAdd(options) {
|
|
|
41
41
|
}
|
|
42
42
|
// Installing dependencies
|
|
43
43
|
utils_packageConfig.addPackageToPackageJson(tree, '@angular/cdk', "^18.2.6");
|
|
44
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^18.
|
|
45
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^18.
|
|
44
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^18.6.0");
|
|
45
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^18.6.0");
|
|
46
46
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.3");
|
|
47
47
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.1.3");
|
|
48
48
|
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/icons', "^9.1.0");
|
|
49
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.
|
|
50
|
-
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.
|
|
49
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.8.1");
|
|
50
|
+
utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.8.1");
|
|
51
51
|
utils_packageConfig.addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
|
|
52
52
|
utils_packageConfig.addPackageToPackageJson(tree, '@radix-ng/primitives', VERSIONS.RADIX_NG);
|
|
53
53
|
utils_packageConfig.addPackageToPackageJson(tree, 'luxon', "^3.4.4");
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&.kbq-disabled {
|
|
14
|
-
color: var(--kbq-foreground-
|
|
14
|
+
color: var(--kbq-states-foreground-disabled);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.kbq-select__placeholder {
|
|
19
19
|
text-overflow: ellipsis;
|
|
20
20
|
|
|
21
|
-
color: var(--kbq-foreground-
|
|
21
|
+
color: var(--kbq-states-foreground-disabled);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.kbq-select__panel {
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.kbq-select__no-options-message {
|
|
38
|
-
color: var(--kbq-foreground-
|
|
38
|
+
color: var(--kbq-foreground-contrast-secondary);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@mixin kbq-select-typography() {
|
|
43
43
|
.kbq-select {
|
|
44
|
-
@include kbq-typography-level-to-
|
|
44
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.kbq-select__panel {
|
|
48
|
-
@include kbq-typography-level-to-
|
|
48
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
@mixin kbq-sidepanel-typography() {
|
|
21
21
|
.kbq-sidepanel-title {
|
|
22
|
-
@include kbq-typography-level-to-
|
|
22
|
+
@include kbq-typography-level-to-styles-css-variables(typography, title);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.kbq-sidepanel-container,
|
|
26
26
|
.kbq-sidepanel-footer {
|
|
27
|
-
@include kbq-typography-level-to-
|
|
27
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
28
28
|
}
|
|
29
29
|
}
|
package/table/_table-theme.scss
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
font-weight: normal;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
@include kbq-typography-level-to-
|
|
44
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
& > tbody {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
font-weight: normal;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@include kbq-typography-level-to-
|
|
52
|
+
@include kbq-typography-level-to-styles-css-variables(typography, tabular-normal);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
package/tabs/_tabs-theme.scss
CHANGED
|
@@ -151,6 +151,6 @@
|
|
|
151
151
|
@mixin kbq-tabs-typography() {
|
|
152
152
|
.kbq-tab-label,
|
|
153
153
|
.kbq-tab-link {
|
|
154
|
-
@include kbq-typography-level-to-
|
|
154
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
|
|
155
155
|
}
|
|
156
156
|
}
|
package/tags/_tag-theme.scss
CHANGED
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
|
|
56
56
|
@mixin kbq-tag-typography() {
|
|
57
57
|
.kbq-tag {
|
|
58
|
-
@include kbq-typography-level-to-
|
|
58
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.kbq-tag-input {
|
|
62
|
-
@include kbq-typography-level-to-
|
|
62
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
|
|
18
18
|
@mixin kbq-timezone-option-typography() {
|
|
19
19
|
.kbq-timezone-option__offset {
|
|
20
|
-
@include kbq-typography-level-to-
|
|
20
|
+
@include kbq-typography-level-to-styles-css-variables(typography, tabular-normal);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.kbq-timezone-option__city {
|
|
24
|
-
@include kbq-typography-level-to-
|
|
24
|
+
@include kbq-typography-level-to-styles-css-variables(typography, tabular-normal);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.kbq-timezone-option__cities {
|
|
28
|
-
@include kbq-typography-level-to-
|
|
28
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.kbq-timezone-select__panel.kbq-select__panel .kbq-optgroup-label {
|
|
32
|
-
@include kbq-typography-level-to-
|
|
32
|
+
@include kbq-typography-level-to-styles-css-variables(typography, caps-compact-strong);
|
|
33
33
|
}
|
|
34
34
|
}
|
package/toast/_toast-theme.scss
CHANGED
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
|
|
37
37
|
@mixin kbq-toast-typography() {
|
|
38
38
|
.kbq-toast {
|
|
39
|
-
@include kbq-typography-level-to-
|
|
39
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.kbq-toast__title {
|
|
43
|
-
@include kbq-typography-level-to-
|
|
43
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -89,11 +89,16 @@
|
|
|
89
89
|
[calc(var(--kbq-icon-button-size-small-vertical-padding) * 2),
|
|
90
90
|
16px]
|
|
91
91
|
),
|
|
92
|
-
|
|
92
|
+
typography-text-normal-line-height]
|
|
93
93
|
) / 2
|
|
94
94
|
)]
|
|
95
95
|
);
|
|
96
96
|
margin-right: var(--kbq-toast-size-close-button-margin-right);
|
|
97
|
+
|
|
98
|
+
&.kbq-icon-button {
|
|
99
|
+
--kbq-icon-button-size-normal-horizontal-padding: 4px;
|
|
100
|
+
--kbq-icon-button-size-normal-vertical-padding: 4px;
|
|
101
|
+
}
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
@include kbq-toast-theme();
|
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&.kbq-disabled {
|
|
64
|
-
color: var(--kbq-foreground-
|
|
64
|
+
color: var(--kbq-states-foreground-disabled);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
@mixin kbq-toggle-typography() {
|
|
70
70
|
.kbq-toggle:not(.kbq-toggle_big) {
|
|
71
|
-
@include kbq-typography-level-to-
|
|
71
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
72
72
|
|
|
73
73
|
& .kbq-hint {
|
|
74
|
-
@include kbq-typography-level-to-
|
|
74
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
& .kbq-toggle-bar-container {
|
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.kbq-toggle.kbq-toggle_big {
|
|
83
|
-
@include kbq-typography-level-to-
|
|
83
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-big);
|
|
84
84
|
|
|
85
85
|
& .kbq-hint {
|
|
86
|
-
@include kbq-typography-level-to-
|
|
86
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
& .kbq-toggle-bar-container {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
|
|
40
40
|
@mixin kbq-tooltip-typography() {
|
|
41
41
|
.kbq-tooltip {
|
|
42
|
-
@include kbq-typography-level-to-
|
|
42
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
43
43
|
|
|
44
44
|
.kbq-tooltip__header {
|
|
45
|
-
@include kbq-typography-level-to-
|
|
45
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
package/tree/_tree-theme.scss
CHANGED
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
|
|
60
60
|
@mixin kbq-tree-typography() {
|
|
61
61
|
.kbq-tree-option {
|
|
62
|
-
@include kbq-typography-level-to-
|
|
62
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.kbq-tree-option-caption {
|
|
66
|
-
@include kbq-typography-level-to-
|
|
66
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&.kbq-disabled {
|
|
12
|
-
color: var(--kbq-foreground-
|
|
12
|
+
color: var(--kbq-states-foreground-disabled);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.kbq-select__placeholder {
|
|
17
17
|
text-overflow: ellipsis;
|
|
18
18
|
|
|
19
|
-
color: var(--kbq-foreground-
|
|
19
|
+
color: var(--kbq-states-foreground-disabled);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.kbq-tree-select__panel {
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
@mixin kbq-tree-select-typography() {
|
|
33
33
|
.kbq-tree-select,
|
|
34
34
|
.kbq-tree-select__panel {
|
|
35
|
-
@include kbq-typography-level-to-
|
|
35
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
36
36
|
}
|
|
37
37
|
}
|