native-document 1.0.125 → 1.0.127
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/native-document.components.min.js +132 -130
- package/dist/native-document.dev.js +55 -58
- package/dist/native-document.dev.js.map +1 -1
- package/dist/native-document.min.js +1 -1
- package/package.json +1 -1
- package/src/components/$traits/HasItems.js +39 -2
- package/src/components/BaseComponent.js +4 -0
- package/src/components/button/Button.js +15 -9
- package/src/components/menu/Menu.js +18 -7
- package/src/components/menu/MenuItem.js +13 -13
- package/src/components/menu/MenuLink.js +24 -0
- package/src/core/elements/anchor/anchor.js +3 -10
- package/src/core/utils/property-accumulator.js +1 -1
- package/src/router/Router.js +11 -0
- package/src/router/RouterComponent.js +3 -1
- package/src/ui/components/button/button.css +362 -0
- package/src/ui/components/button/button.render.js +63 -0
- package/src/ui/theme.js +2 -1
- package/src/ui/tokens/animation.scss +36 -0
- package/src/ui/tokens/colors-dark.scss +57 -0
- package/src/ui/tokens/colors.scss +54 -0
- package/src/ui/tokens/components.scss +32 -0
- package/src/ui/tokens/fonts.scss +57 -0
- package/src/ui/tokens/glass.scss +10 -0
- package/src/ui/tokens/index.scss +38 -0
- package/src/ui/tokens/layouts.scss +228 -0
- package/src/ui/tokens/opacity.scss +21 -0
- package/src/ui/tokens/others.scss +11 -0
- package/src/ui/tokens/radius.scss +6 -0
- package/src/ui/tokens/reset.scss +48 -0
- package/src/ui/tokens/shadows.scss +29 -0
- package/src/ui/tokens/spacings.scss +13 -0
- package/src/ui/tokens/vars.scss +35 -0
- package/src/ui/tokens/viewports.scss +30 -0
- package/utils.js +3 -1
- package/src/ui/components/button/Button.js +0 -8
- package/src/ui/tokens/vars.css +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@media (prefers-color-scheme: dark) {
|
|
2
|
+
:root {
|
|
3
|
+
--transparent: transparent;
|
|
4
|
+
--background: #242426;
|
|
5
|
+
--background-color: #242426;
|
|
6
|
+
--text-color: black;
|
|
7
|
+
|
|
8
|
+
--red: #ff4245;
|
|
9
|
+
--orange: #ff9230;
|
|
10
|
+
--yellow: #ffd600;
|
|
11
|
+
--green: #30d158;
|
|
12
|
+
--mint: #00dac3;
|
|
13
|
+
--teal: #00d2e0;
|
|
14
|
+
--cyan: #3cd3fe;
|
|
15
|
+
--blue: #0091ff;
|
|
16
|
+
--indigo: #6b5dff;
|
|
17
|
+
--purple: #db34f2;
|
|
18
|
+
--pink: #ff375f;
|
|
19
|
+
--brown: #b78a66;
|
|
20
|
+
--gray: #8e8e93;
|
|
21
|
+
--gray-lite-1: #636366;
|
|
22
|
+
--gray-lite-2: #48484a;
|
|
23
|
+
--gray-lite-3: #3a3a3c;
|
|
24
|
+
--gray-lite-4: #2c2c2e;
|
|
25
|
+
--gray-lite-5: #1c1c1e;
|
|
26
|
+
--white: #FFFFFF;
|
|
27
|
+
--black: #000000;
|
|
28
|
+
--sidereal-black: #0a0a0a;
|
|
29
|
+
|
|
30
|
+
--contrasted-red: #ff6165;
|
|
31
|
+
--contrasted-orange: #ffa056;
|
|
32
|
+
--contrasted-yellow: #fedf43;
|
|
33
|
+
--contrasted-green: #4ad968;
|
|
34
|
+
--contrasted-mint: #54dfcb;
|
|
35
|
+
--contrasted-teal: #3bddec;
|
|
36
|
+
--contrasted-cyan: #6dd9ff;
|
|
37
|
+
--contrasted-blue: #5cb8ff;
|
|
38
|
+
--contrasted-indigo: #a7aaff;
|
|
39
|
+
--contrasted-purple: #ea8dff;
|
|
40
|
+
--contrasted-pink: #ff8ac4;
|
|
41
|
+
--contrasted-brown: #dba679;
|
|
42
|
+
--contrasted-gray: #aeaeb2;
|
|
43
|
+
--contrasted-gray-lite-1: #7c7c80;
|
|
44
|
+
--contrasted-gray-lite-2: #545456;
|
|
45
|
+
--contrasted-gray-lite-3: #444446;
|
|
46
|
+
--contrasted-gray-lite-4: #363638;
|
|
47
|
+
--contrasted-gray-lite-5: #242426;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.light-mode {
|
|
52
|
+
color-scheme: light;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dark-mode {
|
|
56
|
+
color-scheme: dark;
|
|
57
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--transparent: transparent;
|
|
3
|
+
--background: white;
|
|
4
|
+
--background-color: white;
|
|
5
|
+
--text-color: black;
|
|
6
|
+
|
|
7
|
+
--red: #ff383c;
|
|
8
|
+
--dark-red: #721c24;
|
|
9
|
+
--orange: #ff8d28;
|
|
10
|
+
--dark-orange: #ff8d28;
|
|
11
|
+
--yellow: #ffcc00;
|
|
12
|
+
--dark-yellow: #7e6c15;
|
|
13
|
+
--green: #34c759;
|
|
14
|
+
--dark-green: #155724;
|
|
15
|
+
--mint: #00c8b3;
|
|
16
|
+
--teal: #00c3d0;
|
|
17
|
+
--cyan: #00c0e8;
|
|
18
|
+
--blue: #0088ff;
|
|
19
|
+
--dark-lite-blue: #0c5460;
|
|
20
|
+
--dark-blue: #004085;
|
|
21
|
+
--indigo: #6155f5;
|
|
22
|
+
--purple: #cb30e0;
|
|
23
|
+
--pink: #ff2d55;
|
|
24
|
+
--brown: #ac7f5e;
|
|
25
|
+
--dark-brown: #856404;
|
|
26
|
+
--gray: #8e8e93;
|
|
27
|
+
--gray-lite-1: #aeaeb2;
|
|
28
|
+
--gray-lite-2: #c7c7cc;
|
|
29
|
+
--gray-lite-3: #d1d1d6;
|
|
30
|
+
--gray-lite-4: #e5e5ea;
|
|
31
|
+
--gray-lite-5: #f2f2f7;
|
|
32
|
+
--white: #ffffff;
|
|
33
|
+
--black: #000000;
|
|
34
|
+
--sidereal-black: #0a0a0a;
|
|
35
|
+
|
|
36
|
+
--contrasted-red: #e9152d;
|
|
37
|
+
--contrasted-orange: #c55300;
|
|
38
|
+
--contrasted-yellow: #a16a00;
|
|
39
|
+
--contrasted-green: #008932;
|
|
40
|
+
--contrasted-mint: #008575;
|
|
41
|
+
--contrasted-teal: #008198;
|
|
42
|
+
--contrasted-cyan: #007eae;
|
|
43
|
+
--contrasted-blue: #1e6ef4;
|
|
44
|
+
--contrasted-indigo: #564ade;
|
|
45
|
+
--contrasted-purple: #b02fc2;
|
|
46
|
+
--contrasted-pink: #e7124d;
|
|
47
|
+
--contrasted-brown: #956d51;
|
|
48
|
+
--contrasted-gray: #6c6c70;
|
|
49
|
+
--contrasted-gray-lite-1: #8e8e93;
|
|
50
|
+
--contrasted-gray-lite-2: #aeaeb2;
|
|
51
|
+
--contrasted-gray-lite-3: #bcbcc0;
|
|
52
|
+
--contrasted-gray-lite-4: #d8d8dc;
|
|
53
|
+
--contrasted-gray-lite-5: #ebebf0;
|
|
54
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.tag {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
background: var(--gray-lite-3);
|
|
4
|
+
color: var(--white);
|
|
5
|
+
padding: var(--space-tiny) var(--space-comfortable);
|
|
6
|
+
border-radius: var(--radius-pill);
|
|
7
|
+
}
|
|
8
|
+
.spacer {
|
|
9
|
+
flex: 1;
|
|
10
|
+
}
|
|
11
|
+
.hidden {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
.note {
|
|
15
|
+
font-size: var(--note-size);
|
|
16
|
+
}
|
|
17
|
+
.hint {
|
|
18
|
+
font-size: var(--hint-size);
|
|
19
|
+
}
|
|
20
|
+
.right-footer-options {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
column-gap: var(--space-cozy);
|
|
24
|
+
align-items: center;
|
|
25
|
+
align-content: center;
|
|
26
|
+
}
|
|
27
|
+
.no-margin {
|
|
28
|
+
margin: 0 !important;
|
|
29
|
+
}
|
|
30
|
+
.no-padding {
|
|
31
|
+
padding: 0 !important;
|
|
32
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font: Inter, Arial, sans-serif;
|
|
3
|
+
--diablo-detail-size: .5rem;
|
|
4
|
+
--diablo-size: .6rem;
|
|
5
|
+
--hint-size: .7rem;
|
|
6
|
+
--note-size: .8rem;
|
|
7
|
+
--description-size: 0.9rem;
|
|
8
|
+
--text-size: 1rem;
|
|
9
|
+
--field-size: .9rem;
|
|
10
|
+
--important-size: 1.25rem;
|
|
11
|
+
|
|
12
|
+
--main-title: 2.5rem;
|
|
13
|
+
--h1-font-size: 2.5rem;
|
|
14
|
+
--section-title: 1.6rem;
|
|
15
|
+
--h2-font-size: 1.6rem;
|
|
16
|
+
--sub-section-title: 1.4rem;
|
|
17
|
+
--h3-font-size: 1.4rem;
|
|
18
|
+
--content-title: 1.5rem;
|
|
19
|
+
--h4-font-size: 1.5rem;
|
|
20
|
+
--legend-title: 1.25rem;
|
|
21
|
+
--h5-font-size: 1.25rem;
|
|
22
|
+
--h6-font-size: 1.15rem;
|
|
23
|
+
--field-title: .9rem;
|
|
24
|
+
--text: 1rem;
|
|
25
|
+
--paragraph: 1rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* {
|
|
29
|
+
font-synthesis: none;
|
|
30
|
+
text-rendering: optimizeLegibility;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
H1, .main-title {
|
|
34
|
+
font-size: var(--main-title);
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
}
|
|
37
|
+
H2, .section-title {
|
|
38
|
+
font-size: var(--section-title);
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
}
|
|
41
|
+
H3, .sub-section-title, .card-title {
|
|
42
|
+
font-size: var(--block-title-size);
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
}
|
|
45
|
+
H4, .content-title, .paragraph-title {
|
|
46
|
+
font-size: var(--sub-block-title-size);
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
}
|
|
49
|
+
H5, .legend-title {
|
|
50
|
+
font-size: var(--sub-block-title-size);
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
53
|
+
H6, .field-title, .hint-title {
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
p, .paragraph {
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
.glass-container {
|
|
3
|
+
background: radial-gradient(circle, var(--transparent) 70%, var(--glass-color) 100%);
|
|
4
|
+
border-radius: 15px;
|
|
5
|
+
backdrop-filter: var(--glass-blur);
|
|
6
|
+
--webkit-backdrop-filter: var(--glass-blur);
|
|
7
|
+
border: 1px solid var(--glass-border);
|
|
8
|
+
padding: 1rem;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use "reset";
|
|
2
|
+
@use "opacity";
|
|
3
|
+
@use "viewports";
|
|
4
|
+
@use "fonts";
|
|
5
|
+
@use "spacings";
|
|
6
|
+
@use "colors" as colors;
|
|
7
|
+
@use "colors-dark";
|
|
8
|
+
@use "shadows";
|
|
9
|
+
@use "layouts";
|
|
10
|
+
@use "glass";
|
|
11
|
+
@use "others";
|
|
12
|
+
@use "animation";
|
|
13
|
+
@use "radius";
|
|
14
|
+
@use "components";
|
|
15
|
+
|
|
16
|
+
@use "vars";
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
padding: 0;
|
|
21
|
+
margin: 0;
|
|
22
|
+
word-break: break-word;
|
|
23
|
+
font-family: var(--font);
|
|
24
|
+
color-scheme: light dark;
|
|
25
|
+
color: var(--text-color);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
//transition: all .3s ease-in-out;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titles-list {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
row-gap: 1rem;
|
|
37
|
+
margin-top: 2rem;
|
|
38
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--z-stack-z-index: 10_000;
|
|
3
|
+
--glass-color: rgba(255, 255, 255, 0.4);
|
|
4
|
+
--glass-blur: blur(1px);
|
|
5
|
+
--glass-shadow: 0px 4px 30px rgba(0, 0, 0, 0.2);
|
|
6
|
+
--glass-border: rgba(255, 255, 255, .5);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.flex {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
column-gap: var(--space-tight);
|
|
15
|
+
&.started, &.leading {
|
|
16
|
+
justify-content: flex-start;
|
|
17
|
+
}
|
|
18
|
+
&.centered {
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
&.ended, &.trailing {
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.flex-fill, .flex-spacer {
|
|
26
|
+
flex: 1;
|
|
27
|
+
}
|
|
28
|
+
.grid {
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-gap: var(--space-tight);
|
|
31
|
+
}
|
|
32
|
+
.custom-grid {
|
|
33
|
+
display: grid;
|
|
34
|
+
grid-template-columns: attr(data-columns, 1fr);
|
|
35
|
+
grid-template-rows: attr(data-rows, 0fr);
|
|
36
|
+
column-gap: var(--space-tight);
|
|
37
|
+
row-gap: var(--space-tight);
|
|
38
|
+
}
|
|
39
|
+
.h-stack, .h-stack-multiline {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
column-gap: var(--space-tight);
|
|
43
|
+
row-gap: var(--space-tight);
|
|
44
|
+
align-items: center;
|
|
45
|
+
align-content: center;
|
|
46
|
+
}
|
|
47
|
+
.h-stack-responsive {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
column-gap: var(--space-tight);
|
|
51
|
+
row-gap: var(--space-tight);
|
|
52
|
+
align-items: stretch;
|
|
53
|
+
align-content: center;
|
|
54
|
+
}
|
|
55
|
+
.h-stack-multiline {
|
|
56
|
+
flex-wrap: wrap;
|
|
57
|
+
}
|
|
58
|
+
.v-stack {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
column-gap: var(--space-tight);
|
|
62
|
+
row-gap: var(--space-tight);
|
|
63
|
+
align-items: stretch;
|
|
64
|
+
align-content: center;
|
|
65
|
+
}
|
|
66
|
+
body.z-stack-open {
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
}
|
|
69
|
+
.z-stack, .z-stack-relative {
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
z-index: var(--z-stack-z-index);
|
|
74
|
+
backdrop-filter: var(--glass-blur);
|
|
75
|
+
&.fill-parent {
|
|
76
|
+
left: 0;
|
|
77
|
+
top: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
bottom: 0;
|
|
80
|
+
}
|
|
81
|
+
.top {
|
|
82
|
+
top: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
right: 0;
|
|
85
|
+
}
|
|
86
|
+
.top-center {
|
|
87
|
+
top: 0;
|
|
88
|
+
left: 50%;
|
|
89
|
+
transform: translateX(-50%);
|
|
90
|
+
}
|
|
91
|
+
.top-right {
|
|
92
|
+
top: 0;
|
|
93
|
+
right: 0;
|
|
94
|
+
}
|
|
95
|
+
.top-left {
|
|
96
|
+
top: 0;
|
|
97
|
+
left: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.bottom {
|
|
101
|
+
bottom: 0;
|
|
102
|
+
left: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
}
|
|
105
|
+
.bottom-center {
|
|
106
|
+
bottom: 0;
|
|
107
|
+
left: 50%;
|
|
108
|
+
transform: translateX(-50%);
|
|
109
|
+
}
|
|
110
|
+
.bottom-right {
|
|
111
|
+
bottom: 0;
|
|
112
|
+
right: 0;
|
|
113
|
+
}
|
|
114
|
+
.bottom-left {
|
|
115
|
+
bottom: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.center {
|
|
120
|
+
top: 50%;
|
|
121
|
+
left: 50%;
|
|
122
|
+
transform: translate(-50%, -50%);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.left,
|
|
126
|
+
.left-center {
|
|
127
|
+
left: 0;
|
|
128
|
+
top: 50%;
|
|
129
|
+
transform: translateY(-50%);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.right,
|
|
133
|
+
.right-center {
|
|
134
|
+
right: 0;
|
|
135
|
+
top: 50%;
|
|
136
|
+
transform: translateY(-50%);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.z-stack {
|
|
142
|
+
position: fixed;
|
|
143
|
+
}
|
|
144
|
+
.z-stack-relative {
|
|
145
|
+
position: absolute;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** Alignment */
|
|
149
|
+
.align-start, .align-top {
|
|
150
|
+
justify-content: flex-start;
|
|
151
|
+
}
|
|
152
|
+
.align-center, .align-middle {
|
|
153
|
+
justify-content: center;
|
|
154
|
+
}
|
|
155
|
+
.align-end, .align-bottom {
|
|
156
|
+
justify-content: flex-end;
|
|
157
|
+
}
|
|
158
|
+
.align-stretch {
|
|
159
|
+
justify-content: stretch;
|
|
160
|
+
}
|
|
161
|
+
.align-between {
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
}
|
|
164
|
+
.align-around {
|
|
165
|
+
justify-content: space-around;
|
|
166
|
+
}
|
|
167
|
+
.align-evenly {
|
|
168
|
+
justify-content: space-evenly;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** Content Alignment */
|
|
172
|
+
.content-stretch {
|
|
173
|
+
align-items: stretch;
|
|
174
|
+
}
|
|
175
|
+
.content-center, .content-middle {
|
|
176
|
+
align-items: center;
|
|
177
|
+
}
|
|
178
|
+
.content-start, .content-top {
|
|
179
|
+
align-items: flex-start;
|
|
180
|
+
}
|
|
181
|
+
.content-end, .content-bottom {
|
|
182
|
+
align-items: flex-end;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** Spacing */
|
|
186
|
+
.space-tiny {
|
|
187
|
+
column-gap: var(--space-tiny);
|
|
188
|
+
row-gap: var(--space-tiny);
|
|
189
|
+
}
|
|
190
|
+
.space-tight {
|
|
191
|
+
column-gap: var(--space-tight);
|
|
192
|
+
row-gap: var(--space-tight);
|
|
193
|
+
}
|
|
194
|
+
.space-cozy {
|
|
195
|
+
column-gap: var(--space-cozy);
|
|
196
|
+
row-gap: var(--space-cozy);
|
|
197
|
+
}
|
|
198
|
+
.space-cozy-comfortable {
|
|
199
|
+
column-gap: var(--space-cozy-comfortable);
|
|
200
|
+
row-gap: var(--space-cozy-comfortable);
|
|
201
|
+
}
|
|
202
|
+
.space-comfortable {
|
|
203
|
+
column-gap: var(--space-comfortable);
|
|
204
|
+
row-gap: var(--space-comfortable);
|
|
205
|
+
}
|
|
206
|
+
.space-relaxed {
|
|
207
|
+
column-gap: var(--space-relaxed);
|
|
208
|
+
row-gap: var(--space-relaxed);
|
|
209
|
+
}
|
|
210
|
+
.space-loose {
|
|
211
|
+
column-gap: var(--space-loose);
|
|
212
|
+
row-gap: var(--space-loose);
|
|
213
|
+
}
|
|
214
|
+
.space-spacious {
|
|
215
|
+
column-gap: var(--space-spacious);
|
|
216
|
+
row-gap: var(--space-spacious);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** Text Alignment */
|
|
220
|
+
.text-center {
|
|
221
|
+
text-align: center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media only screen and (min-width: 768px) {
|
|
225
|
+
.h-stack-responsive {
|
|
226
|
+
flex-direction: row;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--opacity-hidden: 0;
|
|
3
|
+
--opacity-disabled: .5;
|
|
4
|
+
--opacity-middle: .5;
|
|
5
|
+
--opacity-backdrop: .7;
|
|
6
|
+
--opacity-unfocused: .8;
|
|
7
|
+
--opacity-visible: 1;
|
|
8
|
+
|
|
9
|
+
--opacity-ghost: .1;
|
|
10
|
+
--opacity-faint: .2;
|
|
11
|
+
--opacity-subtle: .3;
|
|
12
|
+
--opacity-light: .4;
|
|
13
|
+
--opacity-medium: .5;
|
|
14
|
+
--opacity-moderate: .6;
|
|
15
|
+
--opacity-strong: .7;
|
|
16
|
+
--opacity-bold: .8;
|
|
17
|
+
--opacity-intense: .9;
|
|
18
|
+
--opacity-full: 1;
|
|
19
|
+
|
|
20
|
+
--background-opacity: .35;
|
|
21
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
2
|
+
v2.0 | 20110126
|
|
3
|
+
License: none (public domain)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
html, body, div, span, applet, object, iframe,
|
|
7
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
8
|
+
a, abbr, acronym, address, big, cite, code,
|
|
9
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
|
10
|
+
small, strike, strong, sub, sup, tt, var,
|
|
11
|
+
b, u, i, center,
|
|
12
|
+
dl, dt, dd, ol, ul, li,
|
|
13
|
+
fieldset, form, label, legend,
|
|
14
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
|
15
|
+
article, aside, canvas, details, embed,
|
|
16
|
+
figure, figcaption, footer, header, hgroup,
|
|
17
|
+
menu, nav, output, ruby, section, summary,
|
|
18
|
+
time, mark, audio, video {
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
border: 0;
|
|
22
|
+
font-size: 100%;
|
|
23
|
+
font: inherit;
|
|
24
|
+
vertical-align: baseline;
|
|
25
|
+
}
|
|
26
|
+
/* HTML5 display-role reset for older browsers */
|
|
27
|
+
article, aside, details, figcaption, figure,
|
|
28
|
+
footer, header, hgroup, menu, nav, section {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
body {
|
|
32
|
+
line-height: 1;
|
|
33
|
+
}
|
|
34
|
+
ol, ul {
|
|
35
|
+
list-style: none;
|
|
36
|
+
}
|
|
37
|
+
blockquote, q {
|
|
38
|
+
quotes: none;
|
|
39
|
+
}
|
|
40
|
+
blockquote:before, blockquote:after,
|
|
41
|
+
q:before, q:after {
|
|
42
|
+
content: '';
|
|
43
|
+
content: none;
|
|
44
|
+
}
|
|
45
|
+
table {
|
|
46
|
+
border-collapse: collapse;
|
|
47
|
+
border-spacing: 0;
|
|
48
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--shadow-focus-color: rgba(59, 130, 246, 0.5);
|
|
3
|
+
--shadow-inner-color: rgba(0, 0, 0, 0.06);
|
|
4
|
+
--shadow-outline-color: rgba(59, 130, 246, 0.5);
|
|
5
|
+
--shadow-glow-color: rgba(59, 130, 246, 0.3);
|
|
6
|
+
|
|
7
|
+
--shadow-none: none;
|
|
8
|
+
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
9
|
+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1),
|
|
10
|
+
0 1px 2px rgba(0, 0, 0, 0.06);
|
|
11
|
+
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07),
|
|
12
|
+
0 2px 4px rgba(0, 0, 0, 0.06);
|
|
13
|
+
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1),
|
|
14
|
+
0 4px 6px rgba(0, 0, 0, 0.05);
|
|
15
|
+
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1),
|
|
16
|
+
0 10px 10px rgba(0, 0, 0, 0.04);
|
|
17
|
+
--shadow-double-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
|
|
18
|
+
|
|
19
|
+
--shadow-card: 0 4px 6px rgba(0, 0, 0, 0.07);
|
|
20
|
+
--shadow-button: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
21
|
+
--shadow-modal: 0 20px 25px rgba(0, 0, 0, 0.15);
|
|
22
|
+
--shadow-dropdown: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
23
|
+
--shadow-tooltip: 0 4px 8px rgba(0, 0, 0, 0.12);
|
|
24
|
+
|
|
25
|
+
--shadow-focus: 0 0 0 3px var(--shadow-focus-color);
|
|
26
|
+
--shadow-inner: inset 0 2px 4px var(--shadow-inner-color);
|
|
27
|
+
--shadow-outline: 0 0 0 3px var(--shadow-outline-color);
|
|
28
|
+
--shadow-glow: 0 0 20px var(--shadow-glow-color);
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--space-tiny: 0.25rem;
|
|
3
|
+
--space-tight: 0.35rem;
|
|
4
|
+
--space-cozy: 0.5rem;
|
|
5
|
+
--space-cozy-comfortable: 0.75rem;
|
|
6
|
+
--space-comfortable: 1rem;
|
|
7
|
+
--space-relaxed: 1.5rem;
|
|
8
|
+
--space-loose: 2rem;
|
|
9
|
+
--space-spacious: 3rem;
|
|
10
|
+
|
|
11
|
+
--container-padding: 1rem;
|
|
12
|
+
--container-margin: 0rem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Primary */
|
|
3
|
+
--color-primary: var(--blue);
|
|
4
|
+
--color-primary-hover: var(--contrasted-blue);
|
|
5
|
+
|
|
6
|
+
/* Secondary */
|
|
7
|
+
--color-secondary: var(--gray-lite-4);
|
|
8
|
+
--color-secondary-hover: var(--gray-lite-3);
|
|
9
|
+
--color-secondary-text: var(--text-color);
|
|
10
|
+
|
|
11
|
+
/* Danger */
|
|
12
|
+
--color-danger: var(--red);
|
|
13
|
+
--color-danger-hover: var(--contrasted-red);
|
|
14
|
+
|
|
15
|
+
/* Success */
|
|
16
|
+
--color-success: var(--green);
|
|
17
|
+
--color-success-hover: var(--contrasted-green);
|
|
18
|
+
|
|
19
|
+
/* Warning */
|
|
20
|
+
--color-warning: var(--yellow);
|
|
21
|
+
--color-warning-hover: var(--contrasted-yellow);
|
|
22
|
+
|
|
23
|
+
/* Info */
|
|
24
|
+
--color-info: var(--cyan);
|
|
25
|
+
--color-info-hover: var(--contrasted-cyan);
|
|
26
|
+
|
|
27
|
+
/* Ghost */
|
|
28
|
+
--color-ghost: transparent;
|
|
29
|
+
--color-ghost-hover: var(--gray-lite-5);
|
|
30
|
+
--color-ghost-text: var(--text-color);
|
|
31
|
+
|
|
32
|
+
/* Link */
|
|
33
|
+
--color-link: var(--blue);
|
|
34
|
+
--color-link-hover: var(--contrasted-blue);
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
:root {
|
|
3
|
+
--mobile-width: 320px;
|
|
4
|
+
--tablet-width: 768px;
|
|
5
|
+
--desktop-width: 1024px;
|
|
6
|
+
--wide-desktop-width: 1280px;
|
|
7
|
+
--fullhd-width: 1440px;
|
|
8
|
+
|
|
9
|
+
--floor-layer: 0;
|
|
10
|
+
--noitifcation-layer: 1;
|
|
11
|
+
--dropdown-layer: 4;
|
|
12
|
+
--tooltip-layer: 2;
|
|
13
|
+
--overlay-layer: 10000;
|
|
14
|
+
--modal-layer: 10001;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media only screen and (min-width: 768px) {
|
|
18
|
+
.mobile-only {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media only screen and (max-width: 768px) {
|
|
24
|
+
.desktop-only {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
.at-least-tablet {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
package/utils.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import NativeFetch from "./src/fetch/NativeFetch";
|
|
2
2
|
import * as Cache from "./src/core/utils/cache";
|
|
3
3
|
import * as filters from "./src/core/utils/filters/index";
|
|
4
|
-
|
|
4
|
+
import {classPropertyAccumulator, cssPropertyAccumulator} from "./src/core/utils/property-accumulator";
|
|
5
5
|
|
|
6
6
|
export {
|
|
7
7
|
NativeFetch,
|
|
8
8
|
Cache,
|
|
9
9
|
filters,
|
|
10
|
+
classPropertyAccumulator,
|
|
11
|
+
cssPropertyAccumulator
|
|
10
12
|
};
|
package/src/ui/tokens/vars.css
DELETED
|
File without changes
|