@tempots/ui 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +39 -37
- package/components/Box/Box.d.ts +0 -8
- package/components/Box/Box.js +0 -8
- package/components/Button/Button.d.ts +0 -12
- package/components/Button/Button.js +0 -19
- package/components/Control/Control.d.ts +0 -8
- package/components/Control/Control.js +0 -16
- package/components/Field/Field.d.ts +0 -11
- package/components/Field/Field.js +0 -37
- package/components/Field/field-layout.d.ts +0 -1
- package/components/Field/field-layout.js +0 -1
- package/components/Fieldset/Fieldset.d.ts +0 -8
- package/components/Fieldset/Fieldset.js +0 -12
- package/components/Fieldset/fieldset-context.d.ts +0 -7
- package/components/Fieldset/fieldset-context.js +0 -3
- package/components/Group/Group.d.ts +0 -13
- package/components/Group/Group.js +0 -28
- package/components/Input/BaseInput.d.ts +0 -10
- package/components/Input/BaseInput.js +0 -17
- package/components/Input/FloatInput.d.ts +0 -10
- package/components/Input/FloatInput.js +0 -14
- package/components/Input/IntInput.d.ts +0 -9
- package/components/Input/IntInput.js +0 -25
- package/components/Input/NativeSelect.d.ts +0 -11
- package/components/Input/NativeSelect.js +0 -27
- package/components/Input/TextInput.d.ts +0 -7
- package/components/Input/TextInput.js +0 -9
- package/components/Input/UnitInput.d.ts +0 -10
- package/components/Input/UnitInput.js +0 -14
- package/components/Popover/Popover.d.ts +0 -9
- package/components/Popover/Popover.js +0 -35
- package/components/Popover/UnstyledPopover.d.ts +0 -19
- package/components/Popover/UnstyledPopover.js +0 -97
- package/components/Popover/index.d.ts +0 -2
- package/components/Popover/index.js +0 -2
- package/components/SegmentedControl/SegmentedControl.d.ts +0 -9
- package/components/SegmentedControl/SegmentedControl.js +0 -16
- package/components/Stack/Stack.d.ts +0 -11
- package/components/Stack/Stack.js +0 -18
- package/components/StyleProvider/StyleProvider.d.ts +0 -41
- package/components/StyleProvider/StyleProvider.js +0 -106
- package/components/Tooltip/index.d.ts +0 -5
- package/components/Tooltip/index.js +0 -31
- package/components/styling/Sizing.d.ts +0 -10
- package/components/styling/Sizing.js +0 -5
- package/components/styling/Spacing.d.ts +0 -28
- package/components/styling/Spacing.js +0 -49
- package/components/styling/Sx.d.ts +0 -6
- package/components/styling/Sx.js +0 -6
- package/index.d.ts +0 -24
- package/index.js +0 -20
- package/styles/color.d.ts +0 -1
- package/styles/color.js +0 -1
- package/styles/reset.d.ts +0 -1
- package/styles/reset.js +0 -283
- package/styles/side.d.ts +0 -1
- package/styles/side.js +0 -1
- package/styles/size.d.ts +0 -5
- package/styles/size.js +0 -44
- package/styles/sx.d.ts +0 -9
- package/styles/sx.js +0 -28
- package/styles/ui-styles.d.ts +0 -67
- package/styles/ui-styles.js +0 -118
package/styles/reset.js
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
// export const reset = css`
|
|
2
|
-
// * {
|
|
3
|
-
// box-sizing: border-box;
|
|
4
|
-
// }
|
|
5
|
-
// `
|
|
6
|
-
export const resetCss = `
|
|
7
|
-
html {
|
|
8
|
-
line-height: 1.5;
|
|
9
|
-
-webkit-text-size-adjust: 100%;
|
|
10
|
-
font-family: system-ui, sans-serif;
|
|
11
|
-
-webkit-font-smoothing: antialiased;
|
|
12
|
-
text-rendering: optimizeLegibility;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
touch-action: manipulation;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
body {
|
|
18
|
-
position: relative;
|
|
19
|
-
min-height: 100%;
|
|
20
|
-
font-feature-settings: 'kern';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
*,
|
|
24
|
-
*::before,
|
|
25
|
-
*::after {
|
|
26
|
-
border-width: 0;
|
|
27
|
-
border-style: solid;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
main {
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
hr {
|
|
36
|
-
border-top-width: 1px;
|
|
37
|
-
box-sizing: content-box;
|
|
38
|
-
height: 0;
|
|
39
|
-
overflow: visible;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
pre,
|
|
43
|
-
code,
|
|
44
|
-
kbd,
|
|
45
|
-
samp {
|
|
46
|
-
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
47
|
-
font-size: 1em;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
a {
|
|
51
|
-
background-color: transparent;
|
|
52
|
-
color: inherit;
|
|
53
|
-
text-decoration: inherit;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
abbr[title] {
|
|
57
|
-
border-bottom: none;
|
|
58
|
-
text-decoration: underline;
|
|
59
|
-
-webkit-text-decoration: underline dotted;
|
|
60
|
-
text-decoration: underline dotted;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
b,
|
|
64
|
-
strong {
|
|
65
|
-
font-weight: bold;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
small {
|
|
69
|
-
font-size: 80%;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
sub,
|
|
73
|
-
sup {
|
|
74
|
-
font-size: 75%;
|
|
75
|
-
line-height: 0;
|
|
76
|
-
position: relative;
|
|
77
|
-
vertical-align: baseline;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
sub {
|
|
81
|
-
bottom: -0.25em;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
sup {
|
|
85
|
-
top: -0.5em;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
img {
|
|
89
|
-
border-style: none;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
button,
|
|
93
|
-
input,
|
|
94
|
-
optgroup,
|
|
95
|
-
select,
|
|
96
|
-
textarea {
|
|
97
|
-
font-family: inherit;
|
|
98
|
-
font-size: 100%;
|
|
99
|
-
line-height: 1.15;
|
|
100
|
-
margin: 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
button,
|
|
104
|
-
input {
|
|
105
|
-
overflow: visible;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
button,
|
|
109
|
-
select {
|
|
110
|
-
text-transform: none;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
button::-moz-focus-inner,
|
|
114
|
-
[type='button']::-moz-focus-inner,
|
|
115
|
-
[type='reset']::-moz-focus-inner,
|
|
116
|
-
[type='submit']::-moz-focus-inner {
|
|
117
|
-
border-style: none;
|
|
118
|
-
padding: 0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
fieldset {
|
|
122
|
-
padding: 0.35em 0.75em 0.625em;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
legend {
|
|
126
|
-
box-sizing: border-box;
|
|
127
|
-
color: inherit;
|
|
128
|
-
display: table;
|
|
129
|
-
max-width: 100%;
|
|
130
|
-
padding: 0;
|
|
131
|
-
white-space: normal;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
progress {
|
|
135
|
-
vertical-align: baseline;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
textarea {
|
|
139
|
-
overflow: auto;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
[type='checkbox'],
|
|
143
|
-
[type='radio'] {
|
|
144
|
-
box-sizing: border-box;
|
|
145
|
-
padding: 0;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
[type='number']::-webkit-inner-spin-button,
|
|
149
|
-
[type='number']::-webkit-outer-spin-button {
|
|
150
|
-
-webkit-appearance: none !important;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
input[type='number'] {
|
|
154
|
-
-moz-appearance: textfield;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
[type='search'] {
|
|
158
|
-
-webkit-appearance: textfield;
|
|
159
|
-
outline-offset: -2px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
[type='search']::-webkit-search-decoration {
|
|
163
|
-
-webkit-appearance: none !important;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
::-webkit-file-upload-button {
|
|
167
|
-
-webkit-appearance: button;
|
|
168
|
-
font: inherit;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
details {
|
|
172
|
-
display: block;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
summary {
|
|
176
|
-
display: list-item;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
template {
|
|
180
|
-
display: none;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
[hidden] {
|
|
184
|
-
display: none !important;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
body,
|
|
188
|
-
blockquote,
|
|
189
|
-
dl,
|
|
190
|
-
dd,
|
|
191
|
-
h1,
|
|
192
|
-
h2,
|
|
193
|
-
h3,
|
|
194
|
-
h4,
|
|
195
|
-
h5,
|
|
196
|
-
h6,
|
|
197
|
-
hr,
|
|
198
|
-
figure,
|
|
199
|
-
p,
|
|
200
|
-
pre {
|
|
201
|
-
margin: 0;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
button {
|
|
205
|
-
background: transparent;
|
|
206
|
-
padding: 0;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
fieldset {
|
|
210
|
-
margin: 0;
|
|
211
|
-
padding: 0;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
ol,
|
|
215
|
-
ul {
|
|
216
|
-
margin: 0;
|
|
217
|
-
padding: 0;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
textarea {
|
|
221
|
-
resize: vertical;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
button,
|
|
225
|
-
[role='button'] {
|
|
226
|
-
cursor: pointer;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
button::-moz-focus-inner {
|
|
230
|
-
border: 0 !important;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
table {
|
|
234
|
-
border-collapse: collapse;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
h1,
|
|
238
|
-
h2,
|
|
239
|
-
h3,
|
|
240
|
-
h4,
|
|
241
|
-
h5,
|
|
242
|
-
h6 {
|
|
243
|
-
font-size: inherit;
|
|
244
|
-
font-weight: inherit;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
button,
|
|
248
|
-
input,
|
|
249
|
-
optgroup,
|
|
250
|
-
select,
|
|
251
|
-
textarea {
|
|
252
|
-
padding: 0;
|
|
253
|
-
line-height: inherit;
|
|
254
|
-
color: inherit;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
img,
|
|
258
|
-
svg,
|
|
259
|
-
video,
|
|
260
|
-
canvas,
|
|
261
|
-
audio,
|
|
262
|
-
iframe,
|
|
263
|
-
embed,
|
|
264
|
-
object {
|
|
265
|
-
display: block;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
img,
|
|
269
|
-
video {
|
|
270
|
-
max-width: 100%;
|
|
271
|
-
height: auto;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
[data-js-focus-visible]
|
|
275
|
-
:focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
|
|
276
|
-
outline: none;
|
|
277
|
-
box-shadow: none;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
select::-ms-expand {
|
|
281
|
-
display: none;
|
|
282
|
-
}
|
|
283
|
-
`;
|
package/styles/side.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Side = 'top' | 'right' | 'bottom' | 'left' | 'start' | 'end';
|
package/styles/side.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/styles/size.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
2
|
-
export declare const getSize: <T>(size: Size | number | undefined | null, defaultSize: Size, sizes: Record<Size, T>) => number | T;
|
|
3
|
-
export declare const getSizeOrNull: <T>(size: Size | number | undefined | null, sizes: Record<Size, T>) => number | T | null;
|
|
4
|
-
export declare const getRadiusSize: (size: Size | 'full' | number | undefined | null, defaultSize: Size | 'full', sizes: Record<Size, number>) => string | number;
|
|
5
|
-
export declare const getSizeT: <T>(size: Size | number | undefined | null, defaultSize: Size, sizes: Record<Size, T>) => T;
|
package/styles/size.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export const getSize = (size, defaultSize, sizes) => {
|
|
2
|
-
if (size == null) {
|
|
3
|
-
return sizes[defaultSize];
|
|
4
|
-
}
|
|
5
|
-
else if (typeof size === 'string' && sizes[size] != null) {
|
|
6
|
-
return sizes[size];
|
|
7
|
-
}
|
|
8
|
-
else {
|
|
9
|
-
return size;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export const getSizeOrNull = (size, sizes) => {
|
|
13
|
-
if (size == null) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
else if (typeof size === 'string' && sizes[size] != null) {
|
|
17
|
-
return sizes[size];
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
return size;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export const getRadiusSize = (size, defaultSize, sizes) => {
|
|
24
|
-
if (size === 'full') {
|
|
25
|
-
return '100%';
|
|
26
|
-
}
|
|
27
|
-
else if (size == null) {
|
|
28
|
-
return defaultSize === 'full' ? '100%' : sizes[defaultSize];
|
|
29
|
-
}
|
|
30
|
-
else if (typeof size === 'string' && sizes[size] != null) {
|
|
31
|
-
return sizes[size];
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return size;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export const getSizeT = (size, defaultSize, sizes) => {
|
|
38
|
-
if (typeof size === 'string' && sizes[size] != null) {
|
|
39
|
-
return sizes[size];
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return sizes[defaultSize];
|
|
43
|
-
}
|
|
44
|
-
};
|
package/styles/sx.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type CSSObject } from '@emotion/css';
|
|
2
|
-
import { Signal } from '@tempots/dom';
|
|
3
|
-
export type CSSObjectOfProperties = {
|
|
4
|
-
[K in keyof CSSObject]: Signal<CSSObject[K]> | CSSObject[K];
|
|
5
|
-
};
|
|
6
|
-
export type SX = Signal<CSSObject> | CSSObjectOfProperties;
|
|
7
|
-
export declare const objectOfPropertiesToSignalOfObject: (sx: CSSObjectOfProperties) => Signal<CSSObject>;
|
|
8
|
-
export declare const sxToSignal: (sx: SX) => Signal<CSSObject>;
|
|
9
|
-
export declare const sxToClassProp: (sx: SX) => Signal<string | undefined>;
|
package/styles/sx.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { css } from '@emotion/css';
|
|
2
|
-
import { Signal } from '@tempots/dom';
|
|
3
|
-
export const objectOfPropertiesToSignalOfObject = (sx) => {
|
|
4
|
-
const keys = Object.keys(sx);
|
|
5
|
-
const values = keys.map(k => sx[k]);
|
|
6
|
-
return keys.reduce((acc, k, i) => {
|
|
7
|
-
const field = values[i];
|
|
8
|
-
if (field == null)
|
|
9
|
-
return acc;
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
-
const value = Signal.wrap(field);
|
|
12
|
-
return acc.combine(value, (a, v) => ({ ...a, [k]: v }));
|
|
13
|
-
}, Signal.of({}));
|
|
14
|
-
};
|
|
15
|
-
export const sxToSignal = (sx) => {
|
|
16
|
-
if (typeof sx === 'object' && Signal.isSignal(sx)) {
|
|
17
|
-
return sx;
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
sx = Signal.isSignal(sx)
|
|
21
|
-
? sx.get()
|
|
22
|
-
: sx;
|
|
23
|
-
return objectOfPropertiesToSignalOfObject(sx);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
export const sxToClassProp = (sx) => {
|
|
27
|
-
return sxToSignal(sx).map(v => css(v));
|
|
28
|
-
};
|
package/styles/ui-styles.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { type Size } from './size';
|
|
2
|
-
export interface Heading {
|
|
3
|
-
fontSize: number;
|
|
4
|
-
lineHeight: number;
|
|
5
|
-
fontWeight: number;
|
|
6
|
-
}
|
|
7
|
-
export interface UIStyles {
|
|
8
|
-
dir: 'ltr' | 'rtl';
|
|
9
|
-
defaultRadius: Size;
|
|
10
|
-
lineHeight: number;
|
|
11
|
-
background: {
|
|
12
|
-
color: string;
|
|
13
|
-
mutedColor: string;
|
|
14
|
-
inverseColor: string;
|
|
15
|
-
inverseMutedColor: string;
|
|
16
|
-
accentColor: string;
|
|
17
|
-
inverseAccentColor: string;
|
|
18
|
-
};
|
|
19
|
-
spacing: {
|
|
20
|
-
[key in Size]: number;
|
|
21
|
-
};
|
|
22
|
-
font: {
|
|
23
|
-
family: {
|
|
24
|
-
heading: string;
|
|
25
|
-
sans: string;
|
|
26
|
-
control: string;
|
|
27
|
-
mono: string;
|
|
28
|
-
};
|
|
29
|
-
size: {
|
|
30
|
-
[key in Size]: number;
|
|
31
|
-
};
|
|
32
|
-
color: string;
|
|
33
|
-
mutedColor: string;
|
|
34
|
-
inverseColor: string;
|
|
35
|
-
inverseMutedColor: string;
|
|
36
|
-
};
|
|
37
|
-
border: {
|
|
38
|
-
radius: {
|
|
39
|
-
[key in Size]: number;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
shadow: {
|
|
43
|
-
[key in Size]: string;
|
|
44
|
-
};
|
|
45
|
-
breakpoint: {
|
|
46
|
-
[key in Size]: number;
|
|
47
|
-
};
|
|
48
|
-
heading: {
|
|
49
|
-
h1: Heading;
|
|
50
|
-
h2: Heading;
|
|
51
|
-
h3: Heading;
|
|
52
|
-
h4: Heading;
|
|
53
|
-
h5: Heading;
|
|
54
|
-
h6: Heading;
|
|
55
|
-
};
|
|
56
|
-
control: {
|
|
57
|
-
height: {
|
|
58
|
-
[key in Size]: number;
|
|
59
|
-
};
|
|
60
|
-
focusColor: string;
|
|
61
|
-
borderColor: string;
|
|
62
|
-
accentTextShadow: string;
|
|
63
|
-
shadow: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export declare const defaultLightStyles: UIStyles;
|
|
67
|
-
export declare const defaultDarkStyles: UIStyles;
|
package/styles/ui-styles.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
export const defaultLightStyles = {
|
|
2
|
-
dir: 'ltr',
|
|
3
|
-
defaultRadius: 'sm',
|
|
4
|
-
lineHeight: 1.45,
|
|
5
|
-
background: {
|
|
6
|
-
color: '#fff',
|
|
7
|
-
mutedColor: '#f5f5f5',
|
|
8
|
-
inverseColor: '#333',
|
|
9
|
-
inverseMutedColor: '#666',
|
|
10
|
-
accentColor: '#0074d9',
|
|
11
|
-
inverseAccentColor: '#7fdbff'
|
|
12
|
-
},
|
|
13
|
-
spacing: {
|
|
14
|
-
xxs: 4,
|
|
15
|
-
xs: 8,
|
|
16
|
-
sm: 12,
|
|
17
|
-
md: 16,
|
|
18
|
-
lg: 20,
|
|
19
|
-
xl: 24,
|
|
20
|
-
xxl: 32
|
|
21
|
-
},
|
|
22
|
-
font: {
|
|
23
|
-
family: {
|
|
24
|
-
heading: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji',
|
|
25
|
-
control: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji',
|
|
26
|
-
sans: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji',
|
|
27
|
-
mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace'
|
|
28
|
-
},
|
|
29
|
-
size: {
|
|
30
|
-
xxs: 10,
|
|
31
|
-
xs: 12,
|
|
32
|
-
sm: 14,
|
|
33
|
-
md: 16,
|
|
34
|
-
lg: 18,
|
|
35
|
-
xl: 20,
|
|
36
|
-
xxl: 24
|
|
37
|
-
},
|
|
38
|
-
color: '#333',
|
|
39
|
-
mutedColor: '#666',
|
|
40
|
-
inverseColor: '#fff',
|
|
41
|
-
inverseMutedColor: '#ccc'
|
|
42
|
-
},
|
|
43
|
-
border: {
|
|
44
|
-
radius: {
|
|
45
|
-
xxs: 1,
|
|
46
|
-
xs: 2,
|
|
47
|
-
sm: 4,
|
|
48
|
-
md: 8,
|
|
49
|
-
lg: 16,
|
|
50
|
-
xl: 24,
|
|
51
|
-
xxl: 32
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
shadow: {
|
|
55
|
-
xxs: '0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.1)',
|
|
56
|
-
xs: '0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)',
|
|
57
|
-
sm: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px',
|
|
58
|
-
md: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px',
|
|
59
|
-
lg: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px',
|
|
60
|
-
xl: '0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px',
|
|
61
|
-
xxl: '0 1px 5px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 44x 44px -9px, rgba(0, 0, 0, 0.04) 0px 22px 22px -9px'
|
|
62
|
-
},
|
|
63
|
-
breakpoint: {
|
|
64
|
-
xxs: 384,
|
|
65
|
-
xs: 576,
|
|
66
|
-
sm: 768,
|
|
67
|
-
md: 992,
|
|
68
|
-
lg: 1200,
|
|
69
|
-
xl: 1400,
|
|
70
|
-
xxl: 1800
|
|
71
|
-
},
|
|
72
|
-
heading: {
|
|
73
|
-
h1: { fontSize: 34, lineHeight: 1.3, fontWeight: 700 },
|
|
74
|
-
h2: { fontSize: 26, lineHeight: 1.35, fontWeight: 700 },
|
|
75
|
-
h3: { fontSize: 22, lineHeight: 1.4, fontWeight: 700 },
|
|
76
|
-
h4: { fontSize: 18, lineHeight: 1.45, fontWeight: 700 },
|
|
77
|
-
h5: { fontSize: 16, lineHeight: 1.5, fontWeight: 700 },
|
|
78
|
-
h6: { fontSize: 14, lineHeight: 1.5, fontWeight: 700 }
|
|
79
|
-
},
|
|
80
|
-
control: {
|
|
81
|
-
height: {
|
|
82
|
-
xxs: 20,
|
|
83
|
-
xs: 24,
|
|
84
|
-
sm: 28,
|
|
85
|
-
md: 32,
|
|
86
|
-
lg: 36,
|
|
87
|
-
xl: 40,
|
|
88
|
-
xxl: 44
|
|
89
|
-
},
|
|
90
|
-
focusColor: '#007bff',
|
|
91
|
-
borderColor: '#ccc',
|
|
92
|
-
accentTextShadow: '0 0 1px #0074d9',
|
|
93
|
-
shadow: '0px 1px 1px 0px rgba(0, 0, 0, 0.2)'
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
export const defaultDarkStyles = {
|
|
97
|
-
...defaultLightStyles,
|
|
98
|
-
background: {
|
|
99
|
-
...defaultLightStyles.background,
|
|
100
|
-
color: '#333',
|
|
101
|
-
mutedColor: '#666',
|
|
102
|
-
inverseColor: '#fff',
|
|
103
|
-
inverseMutedColor: '#ccc'
|
|
104
|
-
},
|
|
105
|
-
font: {
|
|
106
|
-
...defaultLightStyles.font,
|
|
107
|
-
color: '#fff',
|
|
108
|
-
mutedColor: '#ccc',
|
|
109
|
-
inverseColor: '#333',
|
|
110
|
-
inverseMutedColor: '#666'
|
|
111
|
-
},
|
|
112
|
-
control: {
|
|
113
|
-
...defaultLightStyles.control,
|
|
114
|
-
borderColor: '#666',
|
|
115
|
-
accentTextShadow: '0 0 1px #7fdbff',
|
|
116
|
-
shadow: '0px 0px 1px 1px rgba(255, 255, 255, 0.15)'
|
|
117
|
-
}
|
|
118
|
-
};
|