@arthurzakharov/ui-kit 1.2.3 → 1.2.5
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/dist/assets/footer-Dt0rYt73.css +1 -0
- package/dist/assets/not-found-ColZD3Vb.css +1 -0
- package/dist/assets/signature-CLmBTe_C.css +1 -0
- package/dist/components/certifications/certifications.component.d.ts +2 -5
- package/dist/components/certifications/certifications.component.js +48 -17
- package/dist/components/certifications/certifications.types.d.ts +6 -0
- package/dist/components/certifications/index.d.ts +2 -0
- package/dist/components/certifications/index.js +4 -0
- package/dist/components/footer/footer.component.d.ts +2 -9
- package/dist/components/footer/footer.component.js +32 -29
- package/dist/components/footer/footer.types.d.ts +10 -0
- package/dist/components/footer/footer.types.js +1 -0
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/footer/index.js +4 -0
- package/dist/components/message-block/message-block.component.js +1 -1
- package/dist/components/not-found/index.d.ts +2 -0
- package/dist/components/not-found/index.js +4 -0
- package/dist/components/not-found/not-found.component.d.ts +2 -10
- package/dist/components/not-found/not-found.component.js +26 -26
- package/dist/components/not-found/not-found.types.d.ts +12 -0
- package/dist/components/not-found/not-found.types.js +1 -0
- package/dist/components/sidebar/sidebar.component.d.ts +1 -1
- package/dist/components/signature/signature.component.js +122 -122
- package/dist/main.d.ts +3 -3
- package/dist/utils/types.d.ts +3 -0
- package/package.json +15 -5
- package/dist/assets/footer-Dwb-_jI0.css +0 -1
- package/dist/assets/signature-Cd87a2ey.css +0 -1
- package/dist/assets/tag-create-CXB1HuBg.css +0 -1
- package/dist/components/tag/block.component.d.ts +0 -32
- package/dist/components/tag/block.component.js +0 -5
- package/dist/components/tag/css-variables-map.util.d.ts +0 -32
- package/dist/components/tag/css-variables-map.util.js +0 -35
- package/dist/components/tag/flex.component.d.ts +0 -127
- package/dist/components/tag/flex.component.js +0 -10
- package/dist/components/tag/inline-block.component.d.ts +0 -32
- package/dist/components/tag/inline-block.component.js +0 -5
- package/dist/components/tag/inline-flex.component.d.ts +0 -127
- package/dist/components/tag/inline-flex.component.js +0 -10
- package/dist/components/tag/inline.component.d.ts +0 -32
- package/dist/components/tag/inline.component.js +0 -5
- package/dist/components/tag/table.component.d.ts +0 -189
- package/dist/components/tag/table.component.js +0 -12
- package/dist/components/tag/tag-create.d.ts +0 -32
- package/dist/components/tag/tag-create.js +0 -79
- package/dist/components/tag/tag.types.d.ts +0 -61
- package/dist/components/tag/use-mq.hook.d.ts +0 -6
- package/dist/components/tag/use-mq.hook.js +0 -9
- /package/dist/components/{tag/tag.types.js → certifications/certifications.types.js} +0 -0
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { TableTagProps } from './tag.types';
|
|
2
|
-
export declare const Table: {
|
|
3
|
-
Main: (props: TableTagProps) => import('react').ReactElement<{
|
|
4
|
-
className: string;
|
|
5
|
-
d: ("flex" | "table" | "block" | "inline" | "table-cell" | "table-row" | "table-row-group" | "inline-block" | "inline-flex") | undefined;
|
|
6
|
-
pos: ("fixed" | "relative" | "absolute" | "static" | "sticky") | undefined;
|
|
7
|
-
mt: import('./tag.types').Space | undefined;
|
|
8
|
-
mb: import('./tag.types').Space | undefined;
|
|
9
|
-
ml: import('./tag.types').Space | undefined;
|
|
10
|
-
mr: import('./tag.types').Space | undefined;
|
|
11
|
-
p: import('./tag.types').Space | undefined;
|
|
12
|
-
px: import('./tag.types').Space | undefined;
|
|
13
|
-
py: import('./tag.types').Space | undefined;
|
|
14
|
-
pt: import('./tag.types').Space | undefined;
|
|
15
|
-
pb: import('./tag.types').Space | undefined;
|
|
16
|
-
pl: import('./tag.types').Space | undefined;
|
|
17
|
-
pr: import('./tag.types').Space | undefined;
|
|
18
|
-
fw: ("bold" | "light" | "regular" | "medium") | undefined;
|
|
19
|
-
fz: ("small" | "regular" | "large" | "extra-small" | "hl1" | "hl2" | "hl3" | "hl4" | "hl5") | undefined;
|
|
20
|
-
c: ("primary" | "secondary" | "accent-primary" | "accent-secondary") | undefined;
|
|
21
|
-
ta: ("center" | "left" | "right") | undefined;
|
|
22
|
-
td: ("line-through" | "overline" | "underline") | undefined;
|
|
23
|
-
fxd: ("row" | "column" | "column-reverse" | "row-reverse") | undefined;
|
|
24
|
-
ai: ("center" | "end" | "start" | "stretch") | undefined;
|
|
25
|
-
jc: ("center" | "end" | "start" | "space-between") | undefined;
|
|
26
|
-
g: import('./tag.types').Space | undefined;
|
|
27
|
-
va: ("bottom" | "top" | "middle") | undefined;
|
|
28
|
-
style: import('react').CSSProperties | undefined;
|
|
29
|
-
dangerouslySetInnerHTML: {
|
|
30
|
-
__html: string;
|
|
31
|
-
} | null;
|
|
32
|
-
children: number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined;
|
|
33
|
-
}, string | import('react').JSXElementConstructor<any>>;
|
|
34
|
-
Head: (props: TableTagProps) => import('react').ReactElement<{
|
|
35
|
-
className: string;
|
|
36
|
-
d: ("flex" | "table" | "block" | "inline" | "table-cell" | "table-row" | "table-row-group" | "inline-block" | "inline-flex") | undefined;
|
|
37
|
-
pos: ("fixed" | "relative" | "absolute" | "static" | "sticky") | undefined;
|
|
38
|
-
mt: import('./tag.types').Space | undefined;
|
|
39
|
-
mb: import('./tag.types').Space | undefined;
|
|
40
|
-
ml: import('./tag.types').Space | undefined;
|
|
41
|
-
mr: import('./tag.types').Space | undefined;
|
|
42
|
-
p: import('./tag.types').Space | undefined;
|
|
43
|
-
px: import('./tag.types').Space | undefined;
|
|
44
|
-
py: import('./tag.types').Space | undefined;
|
|
45
|
-
pt: import('./tag.types').Space | undefined;
|
|
46
|
-
pb: import('./tag.types').Space | undefined;
|
|
47
|
-
pl: import('./tag.types').Space | undefined;
|
|
48
|
-
pr: import('./tag.types').Space | undefined;
|
|
49
|
-
fw: ("bold" | "light" | "regular" | "medium") | undefined;
|
|
50
|
-
fz: ("small" | "regular" | "large" | "extra-small" | "hl1" | "hl2" | "hl3" | "hl4" | "hl5") | undefined;
|
|
51
|
-
c: ("primary" | "secondary" | "accent-primary" | "accent-secondary") | undefined;
|
|
52
|
-
ta: ("center" | "left" | "right") | undefined;
|
|
53
|
-
td: ("line-through" | "overline" | "underline") | undefined;
|
|
54
|
-
fxd: ("row" | "column" | "column-reverse" | "row-reverse") | undefined;
|
|
55
|
-
ai: ("center" | "end" | "start" | "stretch") | undefined;
|
|
56
|
-
jc: ("center" | "end" | "start" | "space-between") | undefined;
|
|
57
|
-
g: import('./tag.types').Space | undefined;
|
|
58
|
-
va: ("bottom" | "top" | "middle") | undefined;
|
|
59
|
-
style: import('react').CSSProperties | undefined;
|
|
60
|
-
dangerouslySetInnerHTML: {
|
|
61
|
-
__html: string;
|
|
62
|
-
} | null;
|
|
63
|
-
children: number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined;
|
|
64
|
-
}, string | import('react').JSXElementConstructor<any>>;
|
|
65
|
-
Body: (props: TableTagProps) => import('react').ReactElement<{
|
|
66
|
-
className: string;
|
|
67
|
-
d: ("flex" | "table" | "block" | "inline" | "table-cell" | "table-row" | "table-row-group" | "inline-block" | "inline-flex") | undefined;
|
|
68
|
-
pos: ("fixed" | "relative" | "absolute" | "static" | "sticky") | undefined;
|
|
69
|
-
mt: import('./tag.types').Space | undefined;
|
|
70
|
-
mb: import('./tag.types').Space | undefined;
|
|
71
|
-
ml: import('./tag.types').Space | undefined;
|
|
72
|
-
mr: import('./tag.types').Space | undefined;
|
|
73
|
-
p: import('./tag.types').Space | undefined;
|
|
74
|
-
px: import('./tag.types').Space | undefined;
|
|
75
|
-
py: import('./tag.types').Space | undefined;
|
|
76
|
-
pt: import('./tag.types').Space | undefined;
|
|
77
|
-
pb: import('./tag.types').Space | undefined;
|
|
78
|
-
pl: import('./tag.types').Space | undefined;
|
|
79
|
-
pr: import('./tag.types').Space | undefined;
|
|
80
|
-
fw: ("bold" | "light" | "regular" | "medium") | undefined;
|
|
81
|
-
fz: ("small" | "regular" | "large" | "extra-small" | "hl1" | "hl2" | "hl3" | "hl4" | "hl5") | undefined;
|
|
82
|
-
c: ("primary" | "secondary" | "accent-primary" | "accent-secondary") | undefined;
|
|
83
|
-
ta: ("center" | "left" | "right") | undefined;
|
|
84
|
-
td: ("line-through" | "overline" | "underline") | undefined;
|
|
85
|
-
fxd: ("row" | "column" | "column-reverse" | "row-reverse") | undefined;
|
|
86
|
-
ai: ("center" | "end" | "start" | "stretch") | undefined;
|
|
87
|
-
jc: ("center" | "end" | "start" | "space-between") | undefined;
|
|
88
|
-
g: import('./tag.types').Space | undefined;
|
|
89
|
-
va: ("bottom" | "top" | "middle") | undefined;
|
|
90
|
-
style: import('react').CSSProperties | undefined;
|
|
91
|
-
dangerouslySetInnerHTML: {
|
|
92
|
-
__html: string;
|
|
93
|
-
} | null;
|
|
94
|
-
children: number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined;
|
|
95
|
-
}, string | import('react').JSXElementConstructor<any>>;
|
|
96
|
-
Row: (props: TableTagProps) => import('react').ReactElement<{
|
|
97
|
-
className: string;
|
|
98
|
-
d: ("flex" | "table" | "block" | "inline" | "table-cell" | "table-row" | "table-row-group" | "inline-block" | "inline-flex") | undefined;
|
|
99
|
-
pos: ("fixed" | "relative" | "absolute" | "static" | "sticky") | undefined;
|
|
100
|
-
mt: import('./tag.types').Space | undefined;
|
|
101
|
-
mb: import('./tag.types').Space | undefined;
|
|
102
|
-
ml: import('./tag.types').Space | undefined;
|
|
103
|
-
mr: import('./tag.types').Space | undefined;
|
|
104
|
-
p: import('./tag.types').Space | undefined;
|
|
105
|
-
px: import('./tag.types').Space | undefined;
|
|
106
|
-
py: import('./tag.types').Space | undefined;
|
|
107
|
-
pt: import('./tag.types').Space | undefined;
|
|
108
|
-
pb: import('./tag.types').Space | undefined;
|
|
109
|
-
pl: import('./tag.types').Space | undefined;
|
|
110
|
-
pr: import('./tag.types').Space | undefined;
|
|
111
|
-
fw: ("bold" | "light" | "regular" | "medium") | undefined;
|
|
112
|
-
fz: ("small" | "regular" | "large" | "extra-small" | "hl1" | "hl2" | "hl3" | "hl4" | "hl5") | undefined;
|
|
113
|
-
c: ("primary" | "secondary" | "accent-primary" | "accent-secondary") | undefined;
|
|
114
|
-
ta: ("center" | "left" | "right") | undefined;
|
|
115
|
-
td: ("line-through" | "overline" | "underline") | undefined;
|
|
116
|
-
fxd: ("row" | "column" | "column-reverse" | "row-reverse") | undefined;
|
|
117
|
-
ai: ("center" | "end" | "start" | "stretch") | undefined;
|
|
118
|
-
jc: ("center" | "end" | "start" | "space-between") | undefined;
|
|
119
|
-
g: import('./tag.types').Space | undefined;
|
|
120
|
-
va: ("bottom" | "top" | "middle") | undefined;
|
|
121
|
-
style: import('react').CSSProperties | undefined;
|
|
122
|
-
dangerouslySetInnerHTML: {
|
|
123
|
-
__html: string;
|
|
124
|
-
} | null;
|
|
125
|
-
children: number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined;
|
|
126
|
-
}, string | import('react').JSXElementConstructor<any>>;
|
|
127
|
-
CellHead: (props: TableTagProps) => import('react').ReactElement<{
|
|
128
|
-
className: string;
|
|
129
|
-
d: ("flex" | "table" | "block" | "inline" | "table-cell" | "table-row" | "table-row-group" | "inline-block" | "inline-flex") | undefined;
|
|
130
|
-
pos: ("fixed" | "relative" | "absolute" | "static" | "sticky") | undefined;
|
|
131
|
-
mt: import('./tag.types').Space | undefined;
|
|
132
|
-
mb: import('./tag.types').Space | undefined;
|
|
133
|
-
ml: import('./tag.types').Space | undefined;
|
|
134
|
-
mr: import('./tag.types').Space | undefined;
|
|
135
|
-
p: import('./tag.types').Space | undefined;
|
|
136
|
-
px: import('./tag.types').Space | undefined;
|
|
137
|
-
py: import('./tag.types').Space | undefined;
|
|
138
|
-
pt: import('./tag.types').Space | undefined;
|
|
139
|
-
pb: import('./tag.types').Space | undefined;
|
|
140
|
-
pl: import('./tag.types').Space | undefined;
|
|
141
|
-
pr: import('./tag.types').Space | undefined;
|
|
142
|
-
fw: ("bold" | "light" | "regular" | "medium") | undefined;
|
|
143
|
-
fz: ("small" | "regular" | "large" | "extra-small" | "hl1" | "hl2" | "hl3" | "hl4" | "hl5") | undefined;
|
|
144
|
-
c: ("primary" | "secondary" | "accent-primary" | "accent-secondary") | undefined;
|
|
145
|
-
ta: ("center" | "left" | "right") | undefined;
|
|
146
|
-
td: ("line-through" | "overline" | "underline") | undefined;
|
|
147
|
-
fxd: ("row" | "column" | "column-reverse" | "row-reverse") | undefined;
|
|
148
|
-
ai: ("center" | "end" | "start" | "stretch") | undefined;
|
|
149
|
-
jc: ("center" | "end" | "start" | "space-between") | undefined;
|
|
150
|
-
g: import('./tag.types').Space | undefined;
|
|
151
|
-
va: ("bottom" | "top" | "middle") | undefined;
|
|
152
|
-
style: import('react').CSSProperties | undefined;
|
|
153
|
-
dangerouslySetInnerHTML: {
|
|
154
|
-
__html: string;
|
|
155
|
-
} | null;
|
|
156
|
-
children: number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined;
|
|
157
|
-
}, string | import('react').JSXElementConstructor<any>>;
|
|
158
|
-
CellBody: (props: TableTagProps) => import('react').ReactElement<{
|
|
159
|
-
className: string;
|
|
160
|
-
d: ("flex" | "table" | "block" | "inline" | "table-cell" | "table-row" | "table-row-group" | "inline-block" | "inline-flex") | undefined;
|
|
161
|
-
pos: ("fixed" | "relative" | "absolute" | "static" | "sticky") | undefined;
|
|
162
|
-
mt: import('./tag.types').Space | undefined;
|
|
163
|
-
mb: import('./tag.types').Space | undefined;
|
|
164
|
-
ml: import('./tag.types').Space | undefined;
|
|
165
|
-
mr: import('./tag.types').Space | undefined;
|
|
166
|
-
p: import('./tag.types').Space | undefined;
|
|
167
|
-
px: import('./tag.types').Space | undefined;
|
|
168
|
-
py: import('./tag.types').Space | undefined;
|
|
169
|
-
pt: import('./tag.types').Space | undefined;
|
|
170
|
-
pb: import('./tag.types').Space | undefined;
|
|
171
|
-
pl: import('./tag.types').Space | undefined;
|
|
172
|
-
pr: import('./tag.types').Space | undefined;
|
|
173
|
-
fw: ("bold" | "light" | "regular" | "medium") | undefined;
|
|
174
|
-
fz: ("small" | "regular" | "large" | "extra-small" | "hl1" | "hl2" | "hl3" | "hl4" | "hl5") | undefined;
|
|
175
|
-
c: ("primary" | "secondary" | "accent-primary" | "accent-secondary") | undefined;
|
|
176
|
-
ta: ("center" | "left" | "right") | undefined;
|
|
177
|
-
td: ("line-through" | "overline" | "underline") | undefined;
|
|
178
|
-
fxd: ("row" | "column" | "column-reverse" | "row-reverse") | undefined;
|
|
179
|
-
ai: ("center" | "end" | "start" | "stretch") | undefined;
|
|
180
|
-
jc: ("center" | "end" | "start" | "space-between") | undefined;
|
|
181
|
-
g: import('./tag.types').Space | undefined;
|
|
182
|
-
va: ("bottom" | "top" | "middle") | undefined;
|
|
183
|
-
style: import('react').CSSProperties | undefined;
|
|
184
|
-
dangerouslySetInnerHTML: {
|
|
185
|
-
__html: string;
|
|
186
|
-
} | null;
|
|
187
|
-
children: number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined;
|
|
188
|
-
}, string | import('react').JSXElementConstructor<any>>;
|
|
189
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { tagCreate as a } from "./tag-create.js";
|
|
2
|
-
const l = {
|
|
3
|
-
Main: (t) => a({ ...t, d: "table", tag: "table" }),
|
|
4
|
-
Head: (t) => a({ ...t, d: "table-row-group", tag: "thead" }),
|
|
5
|
-
Body: (t) => a({ ...t, d: "table-row-group", tag: "tbody" }),
|
|
6
|
-
Row: (t) => a({ ...t, d: "table-row", tag: "tr" }),
|
|
7
|
-
CellHead: (t) => a({ ...t, d: "table-cell", tag: "th" }),
|
|
8
|
-
CellBody: (t) => a({ ...t, d: "table-cell", tag: "td" })
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
l as Table
|
|
12
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Space, CreateProps } from './tag.types';
|
|
2
|
-
export declare const tagCreate: (props: CreateProps) => import('react').ReactElement<{
|
|
3
|
-
className: string;
|
|
4
|
-
d: ("flex" | "table" | "block" | "inline" | "table-cell" | "table-row" | "table-row-group" | "inline-block" | "inline-flex") | undefined;
|
|
5
|
-
pos: ("fixed" | "relative" | "absolute" | "static" | "sticky") | undefined;
|
|
6
|
-
mt: Space | undefined;
|
|
7
|
-
mb: Space | undefined;
|
|
8
|
-
ml: Space | undefined;
|
|
9
|
-
mr: Space | undefined;
|
|
10
|
-
p: Space | undefined;
|
|
11
|
-
px: Space | undefined;
|
|
12
|
-
py: Space | undefined;
|
|
13
|
-
pt: Space | undefined;
|
|
14
|
-
pb: Space | undefined;
|
|
15
|
-
pl: Space | undefined;
|
|
16
|
-
pr: Space | undefined;
|
|
17
|
-
fw: ("bold" | "light" | "regular" | "medium") | undefined;
|
|
18
|
-
fz: ("small" | "regular" | "large" | "extra-small" | "hl1" | "hl2" | "hl3" | "hl4" | "hl5") | undefined;
|
|
19
|
-
c: ("primary" | "secondary" | "accent-primary" | "accent-secondary") | undefined;
|
|
20
|
-
ta: ("center" | "left" | "right") | undefined;
|
|
21
|
-
td: ("line-through" | "overline" | "underline") | undefined;
|
|
22
|
-
fxd: ("row" | "column" | "column-reverse" | "row-reverse") | undefined;
|
|
23
|
-
ai: ("center" | "end" | "start" | "stretch") | undefined;
|
|
24
|
-
jc: ("center" | "end" | "start" | "space-between") | undefined;
|
|
25
|
-
g: Space | undefined;
|
|
26
|
-
va: ("bottom" | "top" | "middle") | undefined;
|
|
27
|
-
style: import('react').CSSProperties | undefined;
|
|
28
|
-
dangerouslySetInnerHTML: {
|
|
29
|
-
__html: string;
|
|
30
|
-
} | null;
|
|
31
|
-
children: number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined;
|
|
32
|
-
}, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { createElement as r } from "react";
|
|
2
|
-
import c from "clsx";
|
|
3
|
-
import '../../assets/tag-create-CXB1HuBg.css';const b = "_Tag_dnl2k_3", v = {
|
|
4
|
-
Tag: b
|
|
5
|
-
}, f = (t) => t === "xxs" || t === "xs" || t === "sm" || t === "md" || t === "lg" || t === "xl" || t === "xxl" || t === "xxxl", e = (t) => {
|
|
6
|
-
if (!t) return {};
|
|
7
|
-
const m = t.trim().split(/\s+/).filter(Boolean);
|
|
8
|
-
if (m.length === 0 || m.length > 4) return {};
|
|
9
|
-
if (!m.every(f)) return {};
|
|
10
|
-
const [i, l, n, d] = m;
|
|
11
|
-
return l ? n ? d ? { t: i, r: l, b: n, l: d } : { t: i, r: l, b: n, l } : { t: i, r: l, b: i, l } : { t: i, r: i, b: i, l: i };
|
|
12
|
-
}, x = (t) => {
|
|
13
|
-
const m = e(t);
|
|
14
|
-
return m.t === m.b && m.l === m.r && m.t === m.l ? { p: m.t, px: void 0, py: void 0, pt: void 0, pr: void 0, pb: void 0, pl: void 0 } : m.t === m.b && m.l === m.r && m.t !== m.l ? { p: void 0, px: m.l, py: m.t, pt: void 0, pr: void 0, pb: void 0, pl: void 0 } : { p: void 0, px: void 0, py: void 0, pt: m.t, pr: m.r, pb: m.b, pl: m.l };
|
|
15
|
-
}, a = (t) => {
|
|
16
|
-
const m = e(t);
|
|
17
|
-
return m.t === m.b && m.l === m.r && m.t === m.l ? { m: m.t, mx: void 0, my: void 0, mt: void 0, mr: void 0, mb: void 0, ml: void 0 } : m.t === m.b && m.l === m.r && m.t !== m.l ? { m: void 0, mx: m.l, my: m.t, mt: void 0, mr: void 0, mb: void 0, ml: void 0 } : { m: void 0, mx: void 0, my: void 0, mt: m.t, mr: m.r, mb: m.b, ml: m.l };
|
|
18
|
-
}, o = (t) => {
|
|
19
|
-
const m = x(t.p), i = {
|
|
20
|
-
p: m.p,
|
|
21
|
-
px: m.px,
|
|
22
|
-
py: m.py,
|
|
23
|
-
pt: m.pt,
|
|
24
|
-
pr: m.pr,
|
|
25
|
-
pb: m.pb,
|
|
26
|
-
pl: m.pl
|
|
27
|
-
};
|
|
28
|
-
return t.py && (i.py = t.py), t.px && (i.px = t.px), t.pt && (i.pt = t.pt), t.pr && (i.pr = t.pr), t.pb && (i.pb = t.pb), t.pl && (i.pl = t.pl), i;
|
|
29
|
-
}, y = (t) => {
|
|
30
|
-
const m = a(t.m), i = {
|
|
31
|
-
m: m.m,
|
|
32
|
-
mx: m.mx,
|
|
33
|
-
my: m.my,
|
|
34
|
-
mt: m.mt,
|
|
35
|
-
mr: m.mr,
|
|
36
|
-
mb: m.mb,
|
|
37
|
-
ml: m.ml
|
|
38
|
-
};
|
|
39
|
-
return t.my && (i.my = t.my), t.mx && (i.mx = t.mx), t.mt && (i.mt = t.mt), t.mr && (i.mr = t.mr), t.mb && (i.mb = t.mb), t.ml && (i.ml = t.ml), i;
|
|
40
|
-
}, h = (t) => {
|
|
41
|
-
const m = y(t), i = o(t);
|
|
42
|
-
return r(t.tag || "div", {
|
|
43
|
-
className: c(v.Tag, t.className),
|
|
44
|
-
d: t.d,
|
|
45
|
-
pos: t.pos,
|
|
46
|
-
// Margins
|
|
47
|
-
mt: m.mt,
|
|
48
|
-
mb: m.mb,
|
|
49
|
-
ml: m.ml,
|
|
50
|
-
mr: m.mr,
|
|
51
|
-
// Paddings
|
|
52
|
-
p: i.p,
|
|
53
|
-
px: i.px,
|
|
54
|
-
py: i.py,
|
|
55
|
-
pt: i.pt,
|
|
56
|
-
pb: i.pb,
|
|
57
|
-
pl: i.pl,
|
|
58
|
-
pr: i.pr,
|
|
59
|
-
// Font
|
|
60
|
-
fw: t.fw,
|
|
61
|
-
fz: t.fz,
|
|
62
|
-
c: t.c,
|
|
63
|
-
ta: t.ta,
|
|
64
|
-
td: t.td,
|
|
65
|
-
// FlexProps
|
|
66
|
-
fxd: t.fxd,
|
|
67
|
-
ai: t.ai,
|
|
68
|
-
jc: t.jc,
|
|
69
|
-
g: t.g,
|
|
70
|
-
va: t.va,
|
|
71
|
-
// Styles
|
|
72
|
-
style: t.style,
|
|
73
|
-
dangerouslySetInnerHTML: typeof t.children == "string" ? { __html: t.children } : null,
|
|
74
|
-
children: typeof t.children != "string" ? t.children : null
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
h as tagCreate
|
|
79
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
type Display = 'flex' | 'inline-flex' | 'block' | 'inline-block' | 'inline' | 'table' | 'table-row-group' | 'table-row' | 'table-cell';
|
|
3
|
-
type Position = 'relative' | 'absolute' | 'fixed' | 'static' | 'sticky';
|
|
4
|
-
type Direction = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
5
|
-
type AlignItems = 'center' | 'start' | 'end' | 'stretch';
|
|
6
|
-
type JustifyContent = 'center' | 'start' | 'end' | 'space-between';
|
|
7
|
-
type TextAlign = 'left' | 'center' | 'right';
|
|
8
|
-
type FontWeight = 'light' | 'regular' | 'medium' | 'bold';
|
|
9
|
-
type FontSize = 'regular' | 'small' | 'extra-small' | 'large' | 'hl1' | 'hl2' | 'hl3' | 'hl4' | 'hl5';
|
|
10
|
-
type Color = 'primary' | 'secondary' | 'accent-primary' | 'accent-secondary';
|
|
11
|
-
type TextDecoration = 'underline' | 'overline' | 'line-through';
|
|
12
|
-
type VerticalAlign = 'top' | 'bottom' | 'middle';
|
|
13
|
-
export type Space = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
14
|
-
export type SpaceShorthand = Space | `${Space} ${Space}` | `${Space} ${Space} ${Space}` | `${Space} ${Space} ${Space} ${Space}`;
|
|
15
|
-
export type ResolvedPadding = Partial<Record<'p' | 'px' | 'py' | 'pt' | 'pr' | 'pb' | 'pl', Space>>;
|
|
16
|
-
export type ResolvedMargin = Partial<Record<'m' | 'mx' | 'my' | 'mt' | 'mr' | 'mb' | 'ml', Space>>;
|
|
17
|
-
export type ResolvedSpaceShorthand = Partial<Record<'t' | 'r' | 'b' | 'l', Space>>;
|
|
18
|
-
interface CommonProps extends PropsWithChildren {
|
|
19
|
-
tag?: keyof HTMLElementTagNameMap;
|
|
20
|
-
style?: CSSProperties;
|
|
21
|
-
className?: string;
|
|
22
|
-
d?: Display;
|
|
23
|
-
pos?: Position;
|
|
24
|
-
}
|
|
25
|
-
export interface MarginProps {
|
|
26
|
-
mt?: Space;
|
|
27
|
-
mb?: Space;
|
|
28
|
-
ml?: Space;
|
|
29
|
-
mr?: Space;
|
|
30
|
-
mx?: Space;
|
|
31
|
-
my?: Space;
|
|
32
|
-
m?: SpaceShorthand;
|
|
33
|
-
}
|
|
34
|
-
export interface PaddingProps {
|
|
35
|
-
pt?: Space;
|
|
36
|
-
pb?: Space;
|
|
37
|
-
pl?: Space;
|
|
38
|
-
pr?: Space;
|
|
39
|
-
px?: Space;
|
|
40
|
-
py?: Space;
|
|
41
|
-
p?: SpaceShorthand;
|
|
42
|
-
}
|
|
43
|
-
interface FontProps {
|
|
44
|
-
fw?: FontWeight;
|
|
45
|
-
fz?: FontSize;
|
|
46
|
-
c?: Color;
|
|
47
|
-
ta?: TextAlign;
|
|
48
|
-
td?: TextDecoration;
|
|
49
|
-
va?: VerticalAlign;
|
|
50
|
-
}
|
|
51
|
-
interface FlexProps {
|
|
52
|
-
fxd?: Direction;
|
|
53
|
-
ai?: AlignItems;
|
|
54
|
-
jc?: JustifyContent;
|
|
55
|
-
g?: Space;
|
|
56
|
-
}
|
|
57
|
-
export type FlexTagProps = Omit<CommonProps & MarginProps & PaddingProps & FontProps & FlexProps, 'd' | 'fxd'>;
|
|
58
|
-
export type RegularTagProps = Omit<CommonProps & MarginProps & PaddingProps & FontProps, 'd'>;
|
|
59
|
-
export type TableTagProps = Omit<CommonProps & MarginProps & PaddingProps & FontProps, 'd' | 'tag'>;
|
|
60
|
-
export type CreateProps = CommonProps & MarginProps & PaddingProps & FontProps & FlexProps;
|
|
61
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type Device = 'phone' | 'tablet' | 'laptop' | 'pc';
|
|
2
|
-
export type DeviceValues<T> = Partial<Record<Device, T>> & {
|
|
3
|
-
default?: T;
|
|
4
|
-
};
|
|
5
|
-
export declare const useMQ: () => Device;
|
|
6
|
-
export declare const media: <T>(device: Device, values: DeviceValues<T>) => T | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useMediaQuery as n } from "usehooks-ts";
|
|
2
|
-
const i = () => {
|
|
3
|
-
const p = n("(min-width: 1200px)"), t = n("(min-width: 1024px)"), r = n("(min-width: 768px)");
|
|
4
|
-
return p ? "pc" : t ? "laptop" : r ? "tablet" : "phone";
|
|
5
|
-
}, e = (p, t) => p === "pc" ? t.pc ?? t.laptop ?? t.tablet ?? t.phone ?? t.default : p === "laptop" ? t.laptop ?? t.tablet ?? t.phone ?? t.default : p === "tablet" ? t.tablet ?? t.phone ?? t.default : t.phone ?? t.default;
|
|
6
|
-
export {
|
|
7
|
-
e as media,
|
|
8
|
-
i as useMQ
|
|
9
|
-
};
|
|
File without changes
|