@ozen-ui/kit 0.21.0 → 0.22.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/Button/Button.css +14 -12
- package/__inner__/cjs/components/ThemeProvider/_control/Theme_control_ozenDefault.css +16 -0
- package/__inner__/cjs/components/ThemeProvider/_spacing/Theme_spacing_ozenDefault.css +13 -0
- package/__inner__/cjs/components/ThemeProvider/themes/helper.d.ts +2 -0
- package/__inner__/cjs/components/ThemeProvider/themes/helper.js +30 -1
- package/__inner__/cjs/components/ThemeProvider/themes/themeBBusinessDefault.d.ts +2 -0
- package/__inner__/cjs/components/ThemeProvider/themes/themeBBusinessDefault.js +4 -0
- package/__inner__/cjs/components/ThemeProvider/themes/themeOzenDark.d.ts +2 -0
- package/__inner__/cjs/components/ThemeProvider/themes/themeOzenDark.js +4 -0
- package/__inner__/cjs/components/ThemeProvider/themes/themeOzenDefault.d.ts +2 -0
- package/__inner__/cjs/components/ThemeProvider/themes/themeOzenDefault.js +4 -0
- package/__inner__/cjs/components/ThemeProvider/types.d.ts +2 -0
- package/__inner__/cjs/hooks/useThemeVars/useThemeVars.d.ts +1 -1
- package/__inner__/esm/components/Button/Button.css +14 -12
- package/__inner__/esm/components/ThemeProvider/_control/Theme_control_ozenDefault.css +16 -0
- package/__inner__/esm/components/ThemeProvider/_spacing/Theme_spacing_ozenDefault.css +13 -0
- package/__inner__/esm/components/ThemeProvider/themes/helper.d.ts +2 -0
- package/__inner__/esm/components/ThemeProvider/themes/helper.js +29 -0
- package/__inner__/esm/components/ThemeProvider/themes/themeBBusinessDefault.d.ts +2 -0
- package/__inner__/esm/components/ThemeProvider/themes/themeBBusinessDefault.js +4 -0
- package/__inner__/esm/components/ThemeProvider/themes/themeOzenDark.d.ts +2 -0
- package/__inner__/esm/components/ThemeProvider/themes/themeOzenDark.js +4 -0
- package/__inner__/esm/components/ThemeProvider/themes/themeOzenDefault.d.ts +2 -0
- package/__inner__/esm/components/ThemeProvider/themes/themeOzenDefault.js +4 -0
- package/__inner__/esm/components/ThemeProvider/types.d.ts +2 -0
- package/__inner__/esm/hooks/useThemeVars/useThemeVars.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,16 +14,18 @@
|
|
|
14
14
|
padding: 0 var(--button-padding-x);
|
|
15
15
|
background-color: var(--button-bg-color);
|
|
16
16
|
border-radius: var(--border-radius-xs);
|
|
17
|
-
transition:
|
|
18
|
-
|
|
17
|
+
transition:
|
|
18
|
+
background-color var(--transition-default),
|
|
19
|
+
border-color var(--transition-default),
|
|
20
|
+
box-shadow var(--transition-default),
|
|
19
21
|
opacity var(--transition-default);
|
|
20
22
|
-webkit-tap-highlight-color: unset;
|
|
21
23
|
position: relative;
|
|
22
24
|
}
|
|
23
25
|
.Button_size_2xs {
|
|
24
|
-
--button-height:
|
|
26
|
+
--button-height: var(--control-height-2xs);
|
|
27
|
+
--button-padding-x: var(--control-padding-xs);
|
|
25
28
|
--button-min-width: 56px;
|
|
26
|
-
--button-padding-x: 12px;
|
|
27
29
|
|
|
28
30
|
font: var(--typography-text-2xs-font);
|
|
29
31
|
|
|
@@ -32,9 +34,9 @@
|
|
|
32
34
|
text-transform: var(--typography-text-2xs-text_transform, none);
|
|
33
35
|
}
|
|
34
36
|
.Button_size_xs {
|
|
35
|
-
--button-height:
|
|
37
|
+
--button-height: var(--control-height-xs);
|
|
38
|
+
--button-padding-x: var(--control-padding-xs);
|
|
36
39
|
--button-min-width: 64px;
|
|
37
|
-
--button-padding-x: 12px;
|
|
38
40
|
|
|
39
41
|
font: var(--typography-text-xs-font);
|
|
40
42
|
|
|
@@ -43,9 +45,9 @@
|
|
|
43
45
|
text-transform: var(--typography-text-xs-text_transform, none);
|
|
44
46
|
}
|
|
45
47
|
.Button_size_s {
|
|
46
|
-
--button-height:
|
|
48
|
+
--button-height: var(--control-height-s);
|
|
49
|
+
--button-padding-x: var(--control-padding-s);
|
|
47
50
|
--button-min-width: 72px;
|
|
48
|
-
--button-padding-x: 16px;
|
|
49
51
|
|
|
50
52
|
font: var(--typography-text-s-font);
|
|
51
53
|
|
|
@@ -54,9 +56,9 @@
|
|
|
54
56
|
text-transform: var(--typography-text-s-text_transform, none);
|
|
55
57
|
}
|
|
56
58
|
.Button_size_m {
|
|
57
|
-
--button-height:
|
|
59
|
+
--button-height: var(--control-height-m);
|
|
60
|
+
--button-padding-x: var(--control-padding-m);
|
|
58
61
|
--button-min-width: 80px;
|
|
59
|
-
--button-padding-x: 20px;
|
|
60
62
|
|
|
61
63
|
font: var(--typography-text-m-font);
|
|
62
64
|
|
|
@@ -65,9 +67,9 @@
|
|
|
65
67
|
text-transform: var(--typography-text-m-text_transform, none);
|
|
66
68
|
}
|
|
67
69
|
.Button_size_l {
|
|
68
|
-
--button-height:
|
|
70
|
+
--button-height: var(--control-height-l);
|
|
71
|
+
--button-padding-x: var(--control-padding-l);
|
|
69
72
|
--button-min-width: 88px;
|
|
70
|
-
--button-padding-x: 24px;
|
|
71
73
|
|
|
72
74
|
font: var(--typography-text-l-font);
|
|
73
75
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.Theme_control_ozenDefault {
|
|
2
|
+
--control-padding-4xs: 2px;
|
|
3
|
+
--control-padding-3xs: 4px;
|
|
4
|
+
--control-padding-2xs: 8px;
|
|
5
|
+
--control-padding-xs: 12px;
|
|
6
|
+
--control-padding-s: 16px;
|
|
7
|
+
--control-padding-m: 20px;
|
|
8
|
+
--control-padding-l: 24px;
|
|
9
|
+
--control-height-4xs: 16px;
|
|
10
|
+
--control-height-3xs: 24px;
|
|
11
|
+
--control-height-2xs: 32px;
|
|
12
|
+
--control-height-xs: 40px;
|
|
13
|
+
--control-height-s: 48px;
|
|
14
|
+
--control-height-m: 56px;
|
|
15
|
+
--control-height-l: 64px;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.Theme_spacing_ozenDefault {
|
|
2
|
+
--spacing-4xs: 2px;
|
|
3
|
+
--spacing-3xs: 4px;
|
|
4
|
+
--spacing-2xs: 8px;
|
|
5
|
+
--spacing-xs: 12px;
|
|
6
|
+
--spacing-s: 16px;
|
|
7
|
+
--spacing-m: 24px;
|
|
8
|
+
--spacing-l: 32px;
|
|
9
|
+
--spacing-xl: 40px;
|
|
10
|
+
--spacing-2xl: 48px;
|
|
11
|
+
--spacing-3xl: 56px;
|
|
12
|
+
--spacing-4xl: 64px;
|
|
13
|
+
}
|
|
@@ -5,5 +5,7 @@ export declare const shadow: readonly ["--shadow-l", "--shadow-m", "--shadow-s"]
|
|
|
5
5
|
export declare const breakpoint: readonly ["--breakpoint-xs", "--breakpoint-s", "--breakpoint-m", "--breakpoint-l"];
|
|
6
6
|
export declare const zIndex: readonly ["--z-index-default", "--z-index-absolute", "--z-index-header", "--z-index-sidebar", "--z-index-modal", "--z-index-popover", "--z-index-snackbar", "--z-index-chat"];
|
|
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
|
+
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
|
+
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"];
|
|
8
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"];
|
|
9
11
|
export declare const transition: readonly ["--transition-default", "--transition-slow"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transition = exports.typography = exports.space = exports.zIndex = exports.breakpoint = exports.shadow = exports.borderWidth = exports.borderRadius = exports.color = void 0;
|
|
3
|
+
exports.transition = exports.typography = exports.control = exports.spacing = exports.space = exports.zIndex = exports.breakpoint = exports.shadow = exports.borderWidth = exports.borderRadius = exports.color = void 0;
|
|
4
4
|
exports.color = [
|
|
5
5
|
'--color-content-primary',
|
|
6
6
|
'--color-content-secondary',
|
|
@@ -192,6 +192,35 @@ exports.space = [
|
|
|
192
192
|
'--space-s',
|
|
193
193
|
'--space-xs',
|
|
194
194
|
];
|
|
195
|
+
exports.spacing = [
|
|
196
|
+
'--spacing-4xs',
|
|
197
|
+
'--spacing-3xs',
|
|
198
|
+
'--spacing-2xs',
|
|
199
|
+
'--spacing-xs',
|
|
200
|
+
'--spacing-s',
|
|
201
|
+
'--spacing-m',
|
|
202
|
+
'--spacing-l',
|
|
203
|
+
'--spacing-xl',
|
|
204
|
+
'--spacing-2xl',
|
|
205
|
+
'--spacing-3xl',
|
|
206
|
+
'--spacing-4xl',
|
|
207
|
+
];
|
|
208
|
+
exports.control = [
|
|
209
|
+
'--control-padding-4xs',
|
|
210
|
+
'--control-padding-3xs',
|
|
211
|
+
'--control-padding-2xs',
|
|
212
|
+
'--control-padding-xs',
|
|
213
|
+
'--control-padding-s',
|
|
214
|
+
'--control-padding-m',
|
|
215
|
+
'--control-padding-l',
|
|
216
|
+
'--control-height-4xs',
|
|
217
|
+
'--control-height-3xs',
|
|
218
|
+
'--control-height-2xs',
|
|
219
|
+
'--control-height-xs',
|
|
220
|
+
'--control-height-s',
|
|
221
|
+
'--control-height-m',
|
|
222
|
+
'--control-height-l',
|
|
223
|
+
];
|
|
195
224
|
exports.typography = [
|
|
196
225
|
'--typography-text-xl_1-font',
|
|
197
226
|
'--typography-text-4xl_1-font',
|
|
@@ -4,6 +4,8 @@ import '../_color/Theme_color_bBusinessDefault.css';
|
|
|
4
4
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
5
5
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
6
6
|
import '../_space/Theme_space_ozenDefault.css';
|
|
7
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
8
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
7
9
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
8
10
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
9
11
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -6,6 +6,8 @@ require("../_color/Theme_color_bBusinessDefault.css");
|
|
|
6
6
|
require("../_typography/Theme_typography_ozenDefault.css");
|
|
7
7
|
require("../_borderRadius/Theme_borderRadius_ozenDefault.css");
|
|
8
8
|
require("../_space/Theme_space_ozenDefault.css");
|
|
9
|
+
require("../_spacing/Theme_spacing_ozenDefault.css");
|
|
10
|
+
require("../_control/Theme_control_ozenDefault.css");
|
|
9
11
|
require("../_shadow/Theme_shadow_ozenDefault.css");
|
|
10
12
|
require("../_breakpoint/Theme_breakpoint_ozenDefault.css");
|
|
11
13
|
require("../_borderWidth/Theme_borderWidth_ozenDefault.css");
|
|
@@ -15,6 +17,8 @@ exports.themeBBusinessDefault = {
|
|
|
15
17
|
tokens: {
|
|
16
18
|
color: 'bBusinessDefault',
|
|
17
19
|
space: 'ozenDefault',
|
|
20
|
+
spacing: 'ozenDefault',
|
|
21
|
+
control: 'ozenDefault',
|
|
18
22
|
typography: 'ozenDefault',
|
|
19
23
|
borderRadius: 'ozenDefault',
|
|
20
24
|
borderWidth: 'ozenDefault',
|
|
@@ -4,6 +4,8 @@ import '../_color/Theme_color_ozenDark.css';
|
|
|
4
4
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
5
5
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
6
6
|
import '../_space/Theme_space_ozenDefault.css';
|
|
7
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
8
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
7
9
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
8
10
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
9
11
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -6,6 +6,8 @@ require("../_color/Theme_color_ozenDark.css");
|
|
|
6
6
|
require("../_typography/Theme_typography_ozenDefault.css");
|
|
7
7
|
require("../_borderRadius/Theme_borderRadius_ozenDefault.css");
|
|
8
8
|
require("../_space/Theme_space_ozenDefault.css");
|
|
9
|
+
require("../_spacing/Theme_spacing_ozenDefault.css");
|
|
10
|
+
require("../_control/Theme_control_ozenDefault.css");
|
|
9
11
|
require("../_shadow/Theme_shadow_ozenDefault.css");
|
|
10
12
|
require("../_breakpoint/Theme_breakpoint_ozenDefault.css");
|
|
11
13
|
require("../_borderWidth/Theme_borderWidth_ozenDefault.css");
|
|
@@ -15,6 +17,8 @@ exports.themeOzenDark = {
|
|
|
15
17
|
tokens: {
|
|
16
18
|
color: 'ozenDark',
|
|
17
19
|
space: 'ozenDefault',
|
|
20
|
+
spacing: 'ozenDefault',
|
|
21
|
+
control: 'ozenDefault',
|
|
18
22
|
typography: 'ozenDefault',
|
|
19
23
|
borderRadius: 'ozenDefault',
|
|
20
24
|
borderWidth: 'ozenDefault',
|
|
@@ -4,6 +4,8 @@ import '../_color/Theme_color_ozenDefault.css';
|
|
|
4
4
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
5
5
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
6
6
|
import '../_space/Theme_space_ozenDefault.css';
|
|
7
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
8
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
7
9
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
8
10
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
9
11
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -6,6 +6,8 @@ require("../_color/Theme_color_ozenDefault.css");
|
|
|
6
6
|
require("../_typography/Theme_typography_ozenDefault.css");
|
|
7
7
|
require("../_borderRadius/Theme_borderRadius_ozenDefault.css");
|
|
8
8
|
require("../_space/Theme_space_ozenDefault.css");
|
|
9
|
+
require("../_spacing/Theme_spacing_ozenDefault.css");
|
|
10
|
+
require("../_control/Theme_control_ozenDefault.css");
|
|
9
11
|
require("../_shadow/Theme_shadow_ozenDefault.css");
|
|
10
12
|
require("../_breakpoint/Theme_breakpoint_ozenDefault.css");
|
|
11
13
|
require("../_borderWidth/Theme_borderWidth_ozenDefault.css");
|
|
@@ -15,6 +17,8 @@ exports.themeOzenDefault = {
|
|
|
15
17
|
tokens: {
|
|
16
18
|
color: 'ozenDefault',
|
|
17
19
|
space: 'ozenDefault',
|
|
20
|
+
spacing: 'ozenDefault',
|
|
21
|
+
control: 'ozenDefault',
|
|
18
22
|
typography: 'ozenDefault',
|
|
19
23
|
borderRadius: 'ozenDefault',
|
|
20
24
|
borderWidth: 'ozenDefault',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { themeHelper } from '../../components/ThemeProvider';
|
|
2
|
-
type VariablesVariant = 'color' | 'breakpoint' | 'zIndex' | 'space' | 'borderRadius' | 'borderWidth' | 'shadow' | 'typography' | 'transition';
|
|
2
|
+
type VariablesVariant = 'color' | 'breakpoint' | 'zIndex' | 'space' | 'spacing' | 'control' | 'borderRadius' | 'borderWidth' | 'shadow' | 'typography' | 'transition';
|
|
3
3
|
export type ThemeVariables = {
|
|
4
4
|
[P in VariablesVariant]: {
|
|
5
5
|
[key in (typeof themeHelper)[P][number]]: string;
|
|
@@ -14,16 +14,18 @@
|
|
|
14
14
|
padding: 0 var(--button-padding-x);
|
|
15
15
|
background-color: var(--button-bg-color);
|
|
16
16
|
border-radius: var(--border-radius-xs);
|
|
17
|
-
transition:
|
|
18
|
-
|
|
17
|
+
transition:
|
|
18
|
+
background-color var(--transition-default),
|
|
19
|
+
border-color var(--transition-default),
|
|
20
|
+
box-shadow var(--transition-default),
|
|
19
21
|
opacity var(--transition-default);
|
|
20
22
|
-webkit-tap-highlight-color: unset;
|
|
21
23
|
position: relative;
|
|
22
24
|
}
|
|
23
25
|
.Button_size_2xs {
|
|
24
|
-
--button-height:
|
|
26
|
+
--button-height: var(--control-height-2xs);
|
|
27
|
+
--button-padding-x: var(--control-padding-xs);
|
|
25
28
|
--button-min-width: 56px;
|
|
26
|
-
--button-padding-x: 12px;
|
|
27
29
|
|
|
28
30
|
font: var(--typography-text-2xs-font);
|
|
29
31
|
|
|
@@ -32,9 +34,9 @@
|
|
|
32
34
|
text-transform: var(--typography-text-2xs-text_transform, none);
|
|
33
35
|
}
|
|
34
36
|
.Button_size_xs {
|
|
35
|
-
--button-height:
|
|
37
|
+
--button-height: var(--control-height-xs);
|
|
38
|
+
--button-padding-x: var(--control-padding-xs);
|
|
36
39
|
--button-min-width: 64px;
|
|
37
|
-
--button-padding-x: 12px;
|
|
38
40
|
|
|
39
41
|
font: var(--typography-text-xs-font);
|
|
40
42
|
|
|
@@ -43,9 +45,9 @@
|
|
|
43
45
|
text-transform: var(--typography-text-xs-text_transform, none);
|
|
44
46
|
}
|
|
45
47
|
.Button_size_s {
|
|
46
|
-
--button-height:
|
|
48
|
+
--button-height: var(--control-height-s);
|
|
49
|
+
--button-padding-x: var(--control-padding-s);
|
|
47
50
|
--button-min-width: 72px;
|
|
48
|
-
--button-padding-x: 16px;
|
|
49
51
|
|
|
50
52
|
font: var(--typography-text-s-font);
|
|
51
53
|
|
|
@@ -54,9 +56,9 @@
|
|
|
54
56
|
text-transform: var(--typography-text-s-text_transform, none);
|
|
55
57
|
}
|
|
56
58
|
.Button_size_m {
|
|
57
|
-
--button-height:
|
|
59
|
+
--button-height: var(--control-height-m);
|
|
60
|
+
--button-padding-x: var(--control-padding-m);
|
|
58
61
|
--button-min-width: 80px;
|
|
59
|
-
--button-padding-x: 20px;
|
|
60
62
|
|
|
61
63
|
font: var(--typography-text-m-font);
|
|
62
64
|
|
|
@@ -65,9 +67,9 @@
|
|
|
65
67
|
text-transform: var(--typography-text-m-text_transform, none);
|
|
66
68
|
}
|
|
67
69
|
.Button_size_l {
|
|
68
|
-
--button-height:
|
|
70
|
+
--button-height: var(--control-height-l);
|
|
71
|
+
--button-padding-x: var(--control-padding-l);
|
|
69
72
|
--button-min-width: 88px;
|
|
70
|
-
--button-padding-x: 24px;
|
|
71
73
|
|
|
72
74
|
font: var(--typography-text-l-font);
|
|
73
75
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.Theme_control_ozenDefault {
|
|
2
|
+
--control-padding-4xs: 2px;
|
|
3
|
+
--control-padding-3xs: 4px;
|
|
4
|
+
--control-padding-2xs: 8px;
|
|
5
|
+
--control-padding-xs: 12px;
|
|
6
|
+
--control-padding-s: 16px;
|
|
7
|
+
--control-padding-m: 20px;
|
|
8
|
+
--control-padding-l: 24px;
|
|
9
|
+
--control-height-4xs: 16px;
|
|
10
|
+
--control-height-3xs: 24px;
|
|
11
|
+
--control-height-2xs: 32px;
|
|
12
|
+
--control-height-xs: 40px;
|
|
13
|
+
--control-height-s: 48px;
|
|
14
|
+
--control-height-m: 56px;
|
|
15
|
+
--control-height-l: 64px;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.Theme_spacing_ozenDefault {
|
|
2
|
+
--spacing-4xs: 2px;
|
|
3
|
+
--spacing-3xs: 4px;
|
|
4
|
+
--spacing-2xs: 8px;
|
|
5
|
+
--spacing-xs: 12px;
|
|
6
|
+
--spacing-s: 16px;
|
|
7
|
+
--spacing-m: 24px;
|
|
8
|
+
--spacing-l: 32px;
|
|
9
|
+
--spacing-xl: 40px;
|
|
10
|
+
--spacing-2xl: 48px;
|
|
11
|
+
--spacing-3xl: 56px;
|
|
12
|
+
--spacing-4xl: 64px;
|
|
13
|
+
}
|
|
@@ -5,5 +5,7 @@ export declare const shadow: readonly ["--shadow-l", "--shadow-m", "--shadow-s"]
|
|
|
5
5
|
export declare const breakpoint: readonly ["--breakpoint-xs", "--breakpoint-s", "--breakpoint-m", "--breakpoint-l"];
|
|
6
6
|
export declare const zIndex: readonly ["--z-index-default", "--z-index-absolute", "--z-index-header", "--z-index-sidebar", "--z-index-modal", "--z-index-popover", "--z-index-snackbar", "--z-index-chat"];
|
|
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
|
+
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
|
+
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"];
|
|
8
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"];
|
|
9
11
|
export declare const transition: readonly ["--transition-default", "--transition-slow"];
|
|
@@ -189,6 +189,35 @@ export var space = [
|
|
|
189
189
|
'--space-s',
|
|
190
190
|
'--space-xs',
|
|
191
191
|
];
|
|
192
|
+
export var spacing = [
|
|
193
|
+
'--spacing-4xs',
|
|
194
|
+
'--spacing-3xs',
|
|
195
|
+
'--spacing-2xs',
|
|
196
|
+
'--spacing-xs',
|
|
197
|
+
'--spacing-s',
|
|
198
|
+
'--spacing-m',
|
|
199
|
+
'--spacing-l',
|
|
200
|
+
'--spacing-xl',
|
|
201
|
+
'--spacing-2xl',
|
|
202
|
+
'--spacing-3xl',
|
|
203
|
+
'--spacing-4xl',
|
|
204
|
+
];
|
|
205
|
+
export var control = [
|
|
206
|
+
'--control-padding-4xs',
|
|
207
|
+
'--control-padding-3xs',
|
|
208
|
+
'--control-padding-2xs',
|
|
209
|
+
'--control-padding-xs',
|
|
210
|
+
'--control-padding-s',
|
|
211
|
+
'--control-padding-m',
|
|
212
|
+
'--control-padding-l',
|
|
213
|
+
'--control-height-4xs',
|
|
214
|
+
'--control-height-3xs',
|
|
215
|
+
'--control-height-2xs',
|
|
216
|
+
'--control-height-xs',
|
|
217
|
+
'--control-height-s',
|
|
218
|
+
'--control-height-m',
|
|
219
|
+
'--control-height-l',
|
|
220
|
+
];
|
|
192
221
|
export var typography = [
|
|
193
222
|
'--typography-text-xl_1-font',
|
|
194
223
|
'--typography-text-4xl_1-font',
|
|
@@ -4,6 +4,8 @@ import '../_color/Theme_color_bBusinessDefault.css';
|
|
|
4
4
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
5
5
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
6
6
|
import '../_space/Theme_space_ozenDefault.css';
|
|
7
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
8
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
7
9
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
8
10
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
9
11
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -3,6 +3,8 @@ import '../_color/Theme_color_bBusinessDefault.css';
|
|
|
3
3
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
4
4
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
5
5
|
import '../_space/Theme_space_ozenDefault.css';
|
|
6
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
7
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
6
8
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
7
9
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
8
10
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -12,6 +14,8 @@ export var themeBBusinessDefault = {
|
|
|
12
14
|
tokens: {
|
|
13
15
|
color: 'bBusinessDefault',
|
|
14
16
|
space: 'ozenDefault',
|
|
17
|
+
spacing: 'ozenDefault',
|
|
18
|
+
control: 'ozenDefault',
|
|
15
19
|
typography: 'ozenDefault',
|
|
16
20
|
borderRadius: 'ozenDefault',
|
|
17
21
|
borderWidth: 'ozenDefault',
|
|
@@ -4,6 +4,8 @@ import '../_color/Theme_color_ozenDark.css';
|
|
|
4
4
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
5
5
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
6
6
|
import '../_space/Theme_space_ozenDefault.css';
|
|
7
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
8
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
7
9
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
8
10
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
9
11
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -3,6 +3,8 @@ import '../_color/Theme_color_ozenDark.css';
|
|
|
3
3
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
4
4
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
5
5
|
import '../_space/Theme_space_ozenDefault.css';
|
|
6
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
7
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
6
8
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
7
9
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
8
10
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -12,6 +14,8 @@ export var themeOzenDark = {
|
|
|
12
14
|
tokens: {
|
|
13
15
|
color: 'ozenDark',
|
|
14
16
|
space: 'ozenDefault',
|
|
17
|
+
spacing: 'ozenDefault',
|
|
18
|
+
control: 'ozenDefault',
|
|
15
19
|
typography: 'ozenDefault',
|
|
16
20
|
borderRadius: 'ozenDefault',
|
|
17
21
|
borderWidth: 'ozenDefault',
|
|
@@ -4,6 +4,8 @@ import '../_color/Theme_color_ozenDefault.css';
|
|
|
4
4
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
5
5
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
6
6
|
import '../_space/Theme_space_ozenDefault.css';
|
|
7
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
8
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
7
9
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
8
10
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
9
11
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -3,6 +3,8 @@ import '../_color/Theme_color_ozenDefault.css';
|
|
|
3
3
|
import '../_typography/Theme_typography_ozenDefault.css';
|
|
4
4
|
import '../_borderRadius/Theme_borderRadius_ozenDefault.css';
|
|
5
5
|
import '../_space/Theme_space_ozenDefault.css';
|
|
6
|
+
import '../_spacing/Theme_spacing_ozenDefault.css';
|
|
7
|
+
import '../_control/Theme_control_ozenDefault.css';
|
|
6
8
|
import '../_shadow/Theme_shadow_ozenDefault.css';
|
|
7
9
|
import '../_breakpoint/Theme_breakpoint_ozenDefault.css';
|
|
8
10
|
import '../_borderWidth/Theme_borderWidth_ozenDefault.css';
|
|
@@ -12,6 +14,8 @@ export var themeOzenDefault = {
|
|
|
12
14
|
tokens: {
|
|
13
15
|
color: 'ozenDefault',
|
|
14
16
|
space: 'ozenDefault',
|
|
17
|
+
spacing: 'ozenDefault',
|
|
18
|
+
control: 'ozenDefault',
|
|
15
19
|
typography: 'ozenDefault',
|
|
16
20
|
borderRadius: 'ozenDefault',
|
|
17
21
|
borderWidth: 'ozenDefault',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { themeHelper } from '../../components/ThemeProvider';
|
|
2
|
-
type VariablesVariant = 'color' | 'breakpoint' | 'zIndex' | 'space' | 'borderRadius' | 'borderWidth' | 'shadow' | 'typography' | 'transition';
|
|
2
|
+
type VariablesVariant = 'color' | 'breakpoint' | 'zIndex' | 'space' | 'spacing' | 'control' | 'borderRadius' | 'borderWidth' | 'shadow' | 'typography' | 'transition';
|
|
3
3
|
export type ThemeVariables = {
|
|
4
4
|
[P in VariablesVariant]: {
|
|
5
5
|
[key in (typeof themeHelper)[P][number]]: string;
|