@ozen-ui/kit 0.51.0 → 0.53.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/__inner__/cjs/components/Loader/Loader.css +12 -12
- package/__inner__/cjs/components/Loader/Loader.d.ts +11 -11
- package/__inner__/cjs/components/Loader/Loader.js +3 -2
- package/__inner__/cjs/components/Modal/Modal.js +2 -4
- package/__inner__/cjs/components/Select/Select.css +0 -1
- package/__inner__/cjs/components/Snackbar/components/Snackbar/Snackbar.css +6 -5
- package/__inner__/cjs/components/ThemeProvider/_typography/Theme_typography_ozenDefault.css +1 -0
- package/__inner__/cjs/components/ThemeProvider/themes/helper.d.ts +1 -1
- package/__inner__/cjs/components/ThemeProvider/themes/helper.js +1 -0
- package/__inner__/cjs/components/Typography/Typography.css +8 -0
- package/__inner__/cjs/components/Typography/Typography.d.ts +1 -1
- package/__inner__/cjs/components/Typography/Typography.js +1 -0
- package/__inner__/cjs/components/Typography/utils.js +1 -0
- package/__inner__/esm/components/Loader/Loader.css +12 -12
- package/__inner__/esm/components/Loader/Loader.d.ts +11 -11
- package/__inner__/esm/components/Loader/Loader.js +3 -2
- package/__inner__/esm/components/Modal/Modal.js +2 -4
- package/__inner__/esm/components/Select/Select.css +0 -1
- package/__inner__/esm/components/Snackbar/components/Snackbar/Snackbar.css +6 -5
- package/__inner__/esm/components/ThemeProvider/_typography/Theme_typography_ozenDefault.css +1 -0
- package/__inner__/esm/components/ThemeProvider/themes/helper.d.ts +1 -1
- package/__inner__/esm/components/ThemeProvider/themes/helper.js +1 -0
- package/__inner__/esm/components/Typography/Typography.css +8 -0
- package/__inner__/esm/components/Typography/Typography.d.ts +1 -1
- package/__inner__/esm/components/Typography/Typography.js +1 -0
- package/__inner__/esm/components/Typography/utils.js +1 -0
- package/package.json +4 -4
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.Loader_size_s {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
inline-size: 12px;
|
|
14
|
+
block-size: 12px;
|
|
15
|
+
}
|
|
16
16
|
|
|
17
17
|
.Loader_size_m {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
inline-size: 20px;
|
|
19
|
+
block-size: 20px;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
22
|
.Loader_size_l {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
inline-size: 28px;
|
|
24
|
+
block-size: 28px;
|
|
25
|
+
}
|
|
26
26
|
|
|
27
27
|
.Loader_size_xl {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
inline-size: 44px;
|
|
29
|
+
block-size: 44px;
|
|
30
|
+
}
|
|
31
31
|
|
|
32
32
|
@keyframes spinner-border {
|
|
33
33
|
to {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import './Loader.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { HTMLAttributes } from 'react';
|
|
3
|
+
import type { CSSProperties, HTMLAttributes } from 'react';
|
|
4
4
|
export declare const loaderSizeVariant: readonly ["s", "m", "l", "xl"];
|
|
5
5
|
export type LoaderSizeVariant = (typeof loaderSizeVariant)[number];
|
|
6
6
|
export type LoaderProps = {
|
|
7
|
-
/** Дополнительный класс */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Размер прелоадера */
|
|
10
|
-
size?: LoaderSizeVariant;
|
|
11
7
|
/** Цвет */
|
|
12
|
-
color?:
|
|
8
|
+
color?: CSSProperties['color'];
|
|
9
|
+
/** Размер */
|
|
10
|
+
size?: LoaderSizeVariant;
|
|
11
|
+
/** Дополнительные СSS-классы */
|
|
12
|
+
className?: string;
|
|
13
13
|
} & HTMLAttributes<HTMLDivElement>;
|
|
14
14
|
export declare const Loader: React.ForwardRefExoticComponent<{
|
|
15
|
-
/** Дополнительный класс */
|
|
16
|
-
className?: string | undefined;
|
|
17
|
-
/** Размер прелоадера */
|
|
18
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
19
15
|
/** Цвет */
|
|
20
|
-
color?:
|
|
16
|
+
color?: CSSProperties['color'];
|
|
17
|
+
/** Размер */
|
|
18
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
19
|
+
/** Дополнительные СSS-классы */
|
|
20
|
+
className?: string | undefined;
|
|
21
21
|
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -10,7 +10,8 @@ var cnLoader = (0, classname_1.cn)('Loader');
|
|
|
10
10
|
exports.loaderSizeVariant = ['s', 'm', 'l', 'xl'];
|
|
11
11
|
exports.Loader = (0, react_1.forwardRef)(function (inProps, ref) {
|
|
12
12
|
var props = (0, useThemeProps_1.useThemeProps)({ props: inProps, name: 'Loader' });
|
|
13
|
-
var _a = props.size, size = _a === void 0 ? 'm' : _a, className = props.className, color = props.color, ariaLabel = props["aria-label"], other = tslib_1.__rest(props, ["size", "className", "color", 'aria-label']);
|
|
14
|
-
|
|
13
|
+
var _a = props.size, size = _a === void 0 ? 'm' : _a, className = props.className, color = props.color, ariaLabel = props["aria-label"], styleProp = props.style, other = tslib_1.__rest(props, ["size", "className", "color", 'aria-label', "style"]);
|
|
14
|
+
var style = tslib_1.__assign(tslib_1.__assign({}, styleProp), { '--loader-color': color });
|
|
15
|
+
return (react_1.default.createElement("div", tslib_1.__assign({ role: "progressbar", "aria-label": ariaLabel, className: cnLoader({ size: size }, [className]), style: style }, other, { ref: ref })));
|
|
15
16
|
});
|
|
16
17
|
exports.Loader.displayName = 'Loader';
|
|
@@ -30,10 +30,8 @@ exports.Modal = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
30
30
|
refs: tslib_1.__spreadArray(tslib_1.__spreadArray([
|
|
31
31
|
modalInnerRef
|
|
32
32
|
], tslib_1.__read(refsClickOutside), false), tslib_1.__read((ignoreClickOutsideRefs || [])), false),
|
|
33
|
-
handler:
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
active: !disableClickOutside,
|
|
33
|
+
handler: onClose,
|
|
34
|
+
active: open && !disableClickOutside,
|
|
37
35
|
});
|
|
38
36
|
// Блокирует прокрутку основного окна приложения
|
|
39
37
|
(0, useLockBodyScroll_1.useLockBodyScroll)(opened && !disableScrollLock);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
.Snackbar {
|
|
2
|
+
display: flex;
|
|
2
3
|
position: fixed;
|
|
3
|
-
|
|
4
|
-
min-inline-size: 300px;
|
|
4
|
+
inline-size: 100%;
|
|
5
5
|
min-block-size: 0;
|
|
6
|
-
display: flex;
|
|
7
6
|
flex-direction: column;
|
|
8
|
-
|
|
9
|
-
margin: var(--spacing-xs);
|
|
7
|
+
box-sizing: border-box;
|
|
10
8
|
gap: var(--spacing-2xs);
|
|
9
|
+
padding: var(--spacing-xs);
|
|
10
|
+
z-index: var(--z-index-snackbar);
|
|
11
|
+
max-inline-size: calc(360px + var(--spacing-xs) * 2);
|
|
11
12
|
|
|
12
13
|
/* workaround for a removed scroll bar on the body */
|
|
13
14
|
border-inline-end: var(--removed-body-scroll-bar-size) solid transparent;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
--typography-heading-xl-font: 700 24px/32px 'Roboto', sans-serif;
|
|
13
13
|
--typography-text-xl-font: 400 24px/32px 'Roboto', sans-serif;
|
|
14
14
|
--typography-text-l-font: 400 18px/28px 'Roboto', sans-serif;
|
|
15
|
+
--typography-heading-l-font: 700 20px/28px 'Roboto', sans-serif;
|
|
15
16
|
--typography-text-l_1-font: 500 18px/28px 'Roboto', sans-serif;
|
|
16
17
|
--typography-text-m-font: 400 16px/24px 'Roboto', sans-serif;
|
|
17
18
|
--typography-text-m_1-font: 500 16px/24px 'Roboto', sans-serif;
|
|
@@ -7,5 +7,5 @@ export declare const zIndex: readonly ["--z-index-default", "--z-index-absolute"
|
|
|
7
7
|
export declare const space: readonly ["--space-8xl", "--space-7xl", "--space-6xl", "--space-5xl", "--space-4xl", "--space-3xl", "--space-2xl", "--space-xl", "--space-l", "--space-m", "--space-s", "--space-xs"];
|
|
8
8
|
export declare const spacing: readonly ["--spacing-4xs", "--spacing-3xs", "--spacing-2xs", "--spacing-xs", "--spacing-s", "--spacing-m", "--spacing-l", "--spacing-xl", "--spacing-2xl", "--spacing-3xl", "--spacing-4xl"];
|
|
9
9
|
export declare const control: readonly ["--control-padding-4xs", "--control-padding-3xs", "--control-padding-2xs", "--control-padding-xs", "--control-padding-s", "--control-padding-m", "--control-padding-l", "--control-height-4xs", "--control-height-3xs", "--control-height-2xs", "--control-height-xs", "--control-height-s", "--control-height-m", "--control-height-l"];
|
|
10
|
-
export declare const typography: readonly ["--typography-text-xl_1-font", "--typography-text-4xl_1-font", "--typography-text-3xl_1-font", "--typography-text-2xl_1-font", "--typography-heading-4xl-font", "--typography-text-4xl-font", "--typography-heading-3xl-font", "--typography-text-3xl-font", "--typography-heading-2xl-font", "--typography-text-2xl-font", "--typography-heading-xl-font", "--typography-text-xl-font", "--typography-text-l-font", "--typography-text-l_1-font", "--typography-text-m-font", "--typography-text-m_1-font", "--typography-text-s-font", "--typography-text-s_1-font", "--typography-text-xs-font", "--typography-text-xs_1-font", "--typography-text-2xs-font", "--typography-text-2xs_1-font", "--typography-text-3xs-font", "--typography-caption-3xs-font", "--typography-caption-3xs-text_transform", "--typography-caption-3xs-letter_spacing", "--typography-text-3xs_1-font", "--typography-caption-3xs_1-font", "--typography-caption-3xs_1-text_transform", "--typography-caption-3xs_1-letter_spacing"];
|
|
10
|
+
export declare const typography: readonly ["--typography-text-xl_1-font", "--typography-text-4xl_1-font", "--typography-text-3xl_1-font", "--typography-text-2xl_1-font", "--typography-heading-4xl-font", "--typography-text-4xl-font", "--typography-heading-3xl-font", "--typography-text-3xl-font", "--typography-heading-2xl-font", "--typography-text-2xl-font", "--typography-heading-xl-font", "--typography-text-xl-font", "--typography-text-l-font", "--typography-heading-l-font", "--typography-text-l_1-font", "--typography-text-m-font", "--typography-text-m_1-font", "--typography-text-s-font", "--typography-text-s_1-font", "--typography-text-xs-font", "--typography-text-xs_1-font", "--typography-text-2xs-font", "--typography-text-2xs_1-font", "--typography-text-3xs-font", "--typography-caption-3xs-font", "--typography-caption-3xs-text_transform", "--typography-caption-3xs-letter_spacing", "--typography-text-3xs_1-font", "--typography-caption-3xs_1-font", "--typography-caption-3xs_1-text_transform", "--typography-caption-3xs_1-letter_spacing"];
|
|
11
11
|
export declare const transition: readonly ["--transition-default", "--transition-slow"];
|
|
@@ -257,6 +257,7 @@ exports.typography = [
|
|
|
257
257
|
'--typography-heading-xl-font',
|
|
258
258
|
'--typography-text-xl-font',
|
|
259
259
|
'--typography-text-l-font',
|
|
260
|
+
'--typography-heading-l-font',
|
|
260
261
|
'--typography-text-l_1-font',
|
|
261
262
|
'--typography-text-m-font',
|
|
262
263
|
'--typography-text-m_1-font',
|
|
@@ -157,6 +157,14 @@
|
|
|
157
157
|
.Typography_variant_heading-xl.Typography_defaultMargin {
|
|
158
158
|
margin-block-end: var(--spacing-l);
|
|
159
159
|
}
|
|
160
|
+
.Typography_variant_heading-l {
|
|
161
|
+
font: var(--typography-heading-l-font);
|
|
162
|
+
letter-spacing: var(--typography-heading-l-letter_spacing, 0);
|
|
163
|
+
text-transform: var(--typography-heading-l-text_transform, none);
|
|
164
|
+
}
|
|
165
|
+
.Typography_variant_heading-l.Typography_defaultMargin {
|
|
166
|
+
margin-block-end: var(--spacing-m);
|
|
167
|
+
}
|
|
160
168
|
.Typography_variant_text-4xl {
|
|
161
169
|
font: var(--typography-text-4xl-font);
|
|
162
170
|
letter-spacing: var(--typography-text-4xl-letter_spacing, 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './Typography.css';
|
|
2
2
|
import type { ElementType, ReactNode } from 'react';
|
|
3
3
|
import type { PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef';
|
|
4
|
-
export declare const typographyVariant: readonly ["heading-4xl", "heading-3xl", "heading-2xl", "heading-xl", "text-4xl", "text-4xl_1", "text-3xl", "text-3xl_1", "text-2xl", "text-2xl_1", "text-xl", "text-xl_1", "text-l", "text-l_1", "text-m", "text-m_1", "text-s", "text-s_1", "text-xs", "text-xs_1", "text-2xs", "text-2xs_1", "text-3xs", "text-3xs_1", "caption-3xs", "caption-3xs_1", "inherit"];
|
|
4
|
+
export declare const typographyVariant: readonly ["heading-4xl", "heading-3xl", "heading-2xl", "heading-xl", "heading-l", "text-4xl", "text-4xl_1", "text-3xl", "text-3xl_1", "text-2xl", "text-2xl_1", "text-xl", "text-xl_1", "text-l", "text-l_1", "text-m", "text-m_1", "text-s", "text-s_1", "text-xs", "text-xs_1", "text-2xs", "text-2xs_1", "text-3xs", "text-3xs_1", "caption-3xs", "caption-3xs_1", "inherit"];
|
|
5
5
|
export type TypographyVariant = (typeof typographyVariant)[number];
|
|
6
6
|
export declare const typographyDisplayVariant: readonly ["block", "inline", "inlineBlock"];
|
|
7
7
|
export type TypographyDisplayVariant = (typeof typographyDisplayVariant)[number];
|
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.Loader_size_s {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
inline-size: 12px;
|
|
14
|
+
block-size: 12px;
|
|
15
|
+
}
|
|
16
16
|
|
|
17
17
|
.Loader_size_m {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
inline-size: 20px;
|
|
19
|
+
block-size: 20px;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
22
|
.Loader_size_l {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
inline-size: 28px;
|
|
24
|
+
block-size: 28px;
|
|
25
|
+
}
|
|
26
26
|
|
|
27
27
|
.Loader_size_xl {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
inline-size: 44px;
|
|
29
|
+
block-size: 44px;
|
|
30
|
+
}
|
|
31
31
|
|
|
32
32
|
@keyframes spinner-border {
|
|
33
33
|
to {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import './Loader.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { HTMLAttributes } from 'react';
|
|
3
|
+
import type { CSSProperties, HTMLAttributes } from 'react';
|
|
4
4
|
export declare const loaderSizeVariant: readonly ["s", "m", "l", "xl"];
|
|
5
5
|
export type LoaderSizeVariant = (typeof loaderSizeVariant)[number];
|
|
6
6
|
export type LoaderProps = {
|
|
7
|
-
/** Дополнительный класс */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Размер прелоадера */
|
|
10
|
-
size?: LoaderSizeVariant;
|
|
11
7
|
/** Цвет */
|
|
12
|
-
color?:
|
|
8
|
+
color?: CSSProperties['color'];
|
|
9
|
+
/** Размер */
|
|
10
|
+
size?: LoaderSizeVariant;
|
|
11
|
+
/** Дополнительные СSS-классы */
|
|
12
|
+
className?: string;
|
|
13
13
|
} & HTMLAttributes<HTMLDivElement>;
|
|
14
14
|
export declare const Loader: React.ForwardRefExoticComponent<{
|
|
15
|
-
/** Дополнительный класс */
|
|
16
|
-
className?: string | undefined;
|
|
17
|
-
/** Размер прелоадера */
|
|
18
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
19
15
|
/** Цвет */
|
|
20
|
-
color?:
|
|
16
|
+
color?: CSSProperties['color'];
|
|
17
|
+
/** Размер */
|
|
18
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
19
|
+
/** Дополнительные СSS-классы */
|
|
20
|
+
className?: string | undefined;
|
|
21
21
|
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,7 +7,8 @@ var cnLoader = cn('Loader');
|
|
|
7
7
|
export var loaderSizeVariant = ['s', 'm', 'l', 'xl'];
|
|
8
8
|
export var Loader = forwardRef(function (inProps, ref) {
|
|
9
9
|
var props = useThemeProps({ props: inProps, name: 'Loader' });
|
|
10
|
-
var _a = props.size, size = _a === void 0 ? 'm' : _a, className = props.className, color = props.color, ariaLabel = props["aria-label"], other = __rest(props, ["size", "className", "color", 'aria-label']);
|
|
11
|
-
|
|
10
|
+
var _a = props.size, size = _a === void 0 ? 'm' : _a, className = props.className, color = props.color, ariaLabel = props["aria-label"], styleProp = props.style, other = __rest(props, ["size", "className", "color", 'aria-label', "style"]);
|
|
11
|
+
var style = __assign(__assign({}, styleProp), { '--loader-color': color });
|
|
12
|
+
return (React.createElement("div", __assign({ role: "progressbar", "aria-label": ariaLabel, className: cnLoader({ size: size }, [className]), style: style }, other, { ref: ref })));
|
|
12
13
|
});
|
|
13
14
|
Loader.displayName = 'Loader';
|
|
@@ -27,10 +27,8 @@ export var Modal = forwardRef(function (_a, ref) {
|
|
|
27
27
|
refs: __spreadArray(__spreadArray([
|
|
28
28
|
modalInnerRef
|
|
29
29
|
], __read(refsClickOutside), false), __read((ignoreClickOutsideRefs || [])), false),
|
|
30
|
-
handler:
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
active: !disableClickOutside,
|
|
30
|
+
handler: onClose,
|
|
31
|
+
active: open && !disableClickOutside,
|
|
34
32
|
});
|
|
35
33
|
// Блокирует прокрутку основного окна приложения
|
|
36
34
|
useLockBodyScroll(opened && !disableScrollLock);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
.Snackbar {
|
|
2
|
+
display: flex;
|
|
2
3
|
position: fixed;
|
|
3
|
-
|
|
4
|
-
min-inline-size: 300px;
|
|
4
|
+
inline-size: 100%;
|
|
5
5
|
min-block-size: 0;
|
|
6
|
-
display: flex;
|
|
7
6
|
flex-direction: column;
|
|
8
|
-
|
|
9
|
-
margin: var(--spacing-xs);
|
|
7
|
+
box-sizing: border-box;
|
|
10
8
|
gap: var(--spacing-2xs);
|
|
9
|
+
padding: var(--spacing-xs);
|
|
10
|
+
z-index: var(--z-index-snackbar);
|
|
11
|
+
max-inline-size: calc(360px + var(--spacing-xs) * 2);
|
|
11
12
|
|
|
12
13
|
/* workaround for a removed scroll bar on the body */
|
|
13
14
|
border-inline-end: var(--removed-body-scroll-bar-size) solid transparent;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
--typography-heading-xl-font: 700 24px/32px 'Roboto', sans-serif;
|
|
13
13
|
--typography-text-xl-font: 400 24px/32px 'Roboto', sans-serif;
|
|
14
14
|
--typography-text-l-font: 400 18px/28px 'Roboto', sans-serif;
|
|
15
|
+
--typography-heading-l-font: 700 20px/28px 'Roboto', sans-serif;
|
|
15
16
|
--typography-text-l_1-font: 500 18px/28px 'Roboto', sans-serif;
|
|
16
17
|
--typography-text-m-font: 400 16px/24px 'Roboto', sans-serif;
|
|
17
18
|
--typography-text-m_1-font: 500 16px/24px 'Roboto', sans-serif;
|
|
@@ -7,5 +7,5 @@ export declare const zIndex: readonly ["--z-index-default", "--z-index-absolute"
|
|
|
7
7
|
export declare const space: readonly ["--space-8xl", "--space-7xl", "--space-6xl", "--space-5xl", "--space-4xl", "--space-3xl", "--space-2xl", "--space-xl", "--space-l", "--space-m", "--space-s", "--space-xs"];
|
|
8
8
|
export declare const spacing: readonly ["--spacing-4xs", "--spacing-3xs", "--spacing-2xs", "--spacing-xs", "--spacing-s", "--spacing-m", "--spacing-l", "--spacing-xl", "--spacing-2xl", "--spacing-3xl", "--spacing-4xl"];
|
|
9
9
|
export declare const control: readonly ["--control-padding-4xs", "--control-padding-3xs", "--control-padding-2xs", "--control-padding-xs", "--control-padding-s", "--control-padding-m", "--control-padding-l", "--control-height-4xs", "--control-height-3xs", "--control-height-2xs", "--control-height-xs", "--control-height-s", "--control-height-m", "--control-height-l"];
|
|
10
|
-
export declare const typography: readonly ["--typography-text-xl_1-font", "--typography-text-4xl_1-font", "--typography-text-3xl_1-font", "--typography-text-2xl_1-font", "--typography-heading-4xl-font", "--typography-text-4xl-font", "--typography-heading-3xl-font", "--typography-text-3xl-font", "--typography-heading-2xl-font", "--typography-text-2xl-font", "--typography-heading-xl-font", "--typography-text-xl-font", "--typography-text-l-font", "--typography-text-l_1-font", "--typography-text-m-font", "--typography-text-m_1-font", "--typography-text-s-font", "--typography-text-s_1-font", "--typography-text-xs-font", "--typography-text-xs_1-font", "--typography-text-2xs-font", "--typography-text-2xs_1-font", "--typography-text-3xs-font", "--typography-caption-3xs-font", "--typography-caption-3xs-text_transform", "--typography-caption-3xs-letter_spacing", "--typography-text-3xs_1-font", "--typography-caption-3xs_1-font", "--typography-caption-3xs_1-text_transform", "--typography-caption-3xs_1-letter_spacing"];
|
|
10
|
+
export declare const typography: readonly ["--typography-text-xl_1-font", "--typography-text-4xl_1-font", "--typography-text-3xl_1-font", "--typography-text-2xl_1-font", "--typography-heading-4xl-font", "--typography-text-4xl-font", "--typography-heading-3xl-font", "--typography-text-3xl-font", "--typography-heading-2xl-font", "--typography-text-2xl-font", "--typography-heading-xl-font", "--typography-text-xl-font", "--typography-text-l-font", "--typography-heading-l-font", "--typography-text-l_1-font", "--typography-text-m-font", "--typography-text-m_1-font", "--typography-text-s-font", "--typography-text-s_1-font", "--typography-text-xs-font", "--typography-text-xs_1-font", "--typography-text-2xs-font", "--typography-text-2xs_1-font", "--typography-text-3xs-font", "--typography-caption-3xs-font", "--typography-caption-3xs-text_transform", "--typography-caption-3xs-letter_spacing", "--typography-text-3xs_1-font", "--typography-caption-3xs_1-font", "--typography-caption-3xs_1-text_transform", "--typography-caption-3xs_1-letter_spacing"];
|
|
11
11
|
export declare const transition: readonly ["--transition-default", "--transition-slow"];
|
|
@@ -254,6 +254,7 @@ export var typography = [
|
|
|
254
254
|
'--typography-heading-xl-font',
|
|
255
255
|
'--typography-text-xl-font',
|
|
256
256
|
'--typography-text-l-font',
|
|
257
|
+
'--typography-heading-l-font',
|
|
257
258
|
'--typography-text-l_1-font',
|
|
258
259
|
'--typography-text-m-font',
|
|
259
260
|
'--typography-text-m_1-font',
|
|
@@ -157,6 +157,14 @@
|
|
|
157
157
|
.Typography_variant_heading-xl.Typography_defaultMargin {
|
|
158
158
|
margin-block-end: var(--spacing-l);
|
|
159
159
|
}
|
|
160
|
+
.Typography_variant_heading-l {
|
|
161
|
+
font: var(--typography-heading-l-font);
|
|
162
|
+
letter-spacing: var(--typography-heading-l-letter_spacing, 0);
|
|
163
|
+
text-transform: var(--typography-heading-l-text_transform, none);
|
|
164
|
+
}
|
|
165
|
+
.Typography_variant_heading-l.Typography_defaultMargin {
|
|
166
|
+
margin-block-end: var(--spacing-m);
|
|
167
|
+
}
|
|
160
168
|
.Typography_variant_text-4xl {
|
|
161
169
|
font: var(--typography-text-4xl-font);
|
|
162
170
|
letter-spacing: var(--typography-text-4xl-letter_spacing, 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './Typography.css';
|
|
2
2
|
import type { ElementType, ReactNode } from 'react';
|
|
3
3
|
import type { PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphicComponentWithRef';
|
|
4
|
-
export declare const typographyVariant: readonly ["heading-4xl", "heading-3xl", "heading-2xl", "heading-xl", "text-4xl", "text-4xl_1", "text-3xl", "text-3xl_1", "text-2xl", "text-2xl_1", "text-xl", "text-xl_1", "text-l", "text-l_1", "text-m", "text-m_1", "text-s", "text-s_1", "text-xs", "text-xs_1", "text-2xs", "text-2xs_1", "text-3xs", "text-3xs_1", "caption-3xs", "caption-3xs_1", "inherit"];
|
|
4
|
+
export declare const typographyVariant: readonly ["heading-4xl", "heading-3xl", "heading-2xl", "heading-xl", "heading-l", "text-4xl", "text-4xl_1", "text-3xl", "text-3xl_1", "text-2xl", "text-2xl_1", "text-xl", "text-xl_1", "text-l", "text-l_1", "text-m", "text-m_1", "text-s", "text-s_1", "text-xs", "text-xs_1", "text-2xs", "text-2xs_1", "text-3xs", "text-3xs_1", "caption-3xs", "caption-3xs_1", "inherit"];
|
|
5
5
|
export type TypographyVariant = (typeof typographyVariant)[number];
|
|
6
6
|
export declare const typographyDisplayVariant: readonly ["block", "inline", "inlineBlock"];
|
|
7
7
|
export type TypographyDisplayVariant = (typeof typographyDisplayVariant)[number];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ozen-ui/kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "React component library",
|
|
5
5
|
"files": [
|
|
6
6
|
"*"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"react-popper": "^2.3.0",
|
|
29
29
|
"react-transition-group": "^4.4.5",
|
|
30
30
|
"tslib": "^2.6.2",
|
|
31
|
-
"@ozen-ui/fonts": "0.
|
|
32
|
-
"@ozen-ui/icons": "0.
|
|
33
|
-
"@ozen-ui/logger": "0.
|
|
31
|
+
"@ozen-ui/fonts": "0.53.0",
|
|
32
|
+
"@ozen-ui/icons": "0.53.0",
|
|
33
|
+
"@ozen-ui/logger": "0.53.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=17.0.2 <19.0.0",
|