@hyvor/design 2.1.18 → 2.1.19
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/components/Button/Button.svelte +413 -349
- package/dist/components/ButtonGroup/ButtonGroup.svelte +62 -63
- package/dist/components/Dropdown/Dropdown.svelte +9 -8
- package/dist/components/Dropdown/DropdownContent.svelte +14 -12
- package/dist/components/FileUploader/FileUploader.svelte +19 -17
- package/dist/components/FileUploader/Media/Media.svelte +44 -44
- package/dist/components/FileUploader/TabUpload/TabUpload.svelte +47 -45
- package/dist/components/FileUploader/Unsplash/Unsplash.svelte +38 -38
- package/dist/components/FormControl/Validation.svelte +30 -30
- package/dist/components/IconButton/IconButton.svelte +266 -204
- package/dist/components/Kbd/Kbd.svelte +33 -28
- package/dist/components/Loader/Loader.svelte +81 -78
- package/dist/components/Radio/Radio.svelte +71 -69
- package/dist/components/SplitControl/SplitControl.svelte +45 -40
- package/dist/components/Tag/Tag.svelte +152 -130
- package/dist/components/TextInput/TextInput.svelte +90 -89
- package/dist/components/Textarea/Textarea.svelte +1 -2
- package/dist/components/Usage/Usage.svelte +40 -40
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/marketing/Docs/Toc.svelte +103 -91
- package/dist/marketing/Document/Document.svelte +77 -62
- package/dist/{variables.scss → variables.css} +1 -7
- package/package.json +19 -20
|
@@ -12,72 +12,71 @@
|
|
|
12
12
|
{@render children?.()}
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
|
-
<style
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.button-group.column {
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
align-items: stretch;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.button-group :global(> .button) {
|
|
25
|
-
position: relative;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.button-group :global(> .button:hover),
|
|
29
|
-
.button-group :global(> .button:focus-visible) {
|
|
30
|
-
z-index: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.button-group:not(.column) :global(> .button:not(:first-child)) {
|
|
34
|
-
border-top-left-radius: 0;
|
|
35
|
-
border-bottom-left-radius: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.button-group:not(.column) :global(> .button:not(:last-child)) {
|
|
39
|
-
border-top-right-radius: 0;
|
|
40
|
-
border-bottom-right-radius: 0;
|
|
41
|
-
}
|
|
15
|
+
<style>
|
|
16
|
+
.button-group {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
}
|
|
42
19
|
|
|
43
|
-
.button-group.column
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
20
|
+
.button-group.column {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
}
|
|
47
24
|
|
|
48
|
-
.button-group
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
25
|
+
.button-group :global(> .button) {
|
|
26
|
+
position: relative;
|
|
27
|
+
}
|
|
28
|
+
.button-group :global(> .button:hover),
|
|
29
|
+
.button-group :global(> .button:focus-visible) {
|
|
30
|
+
z-index: 1;
|
|
31
|
+
}
|
|
52
32
|
|
|
53
|
-
.button-group:not(.column) :global(> .button:not(:first-child)) {
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
.button-group:not(.column) :global(> .button:not(:first-child)) {
|
|
34
|
+
border-top-left-radius: 0;
|
|
35
|
+
border-bottom-left-radius: 0;
|
|
36
|
+
}
|
|
37
|
+
.button-group:not(.column) :global(> .button:not(:last-child)) {
|
|
38
|
+
border-top-right-radius: 0;
|
|
39
|
+
border-bottom-right-radius: 0;
|
|
40
|
+
}
|
|
56
41
|
|
|
57
|
-
.button-group.column :global(> .button:not(:first-child)) {
|
|
58
|
-
|
|
59
|
-
|
|
42
|
+
.button-group.column :global(> .button:not(:first-child)) {
|
|
43
|
+
border-top-left-radius: 0;
|
|
44
|
+
border-top-right-radius: 0;
|
|
45
|
+
}
|
|
46
|
+
.button-group.column :global(> .button:not(:last-child)) {
|
|
47
|
+
border-bottom-left-radius: 0;
|
|
48
|
+
border-bottom-right-radius: 0;
|
|
49
|
+
}
|
|
60
50
|
|
|
61
|
-
.button-group:not(.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
width: 1px;
|
|
68
|
-
background-color: currentColor;
|
|
69
|
-
opacity: 0.25;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
}
|
|
51
|
+
.button-group:not(.column) :global(> .button:not(:first-child)) {
|
|
52
|
+
margin-left: -1px;
|
|
53
|
+
}
|
|
54
|
+
.button-group.column :global(> .button:not(:first-child)) {
|
|
55
|
+
margin-top: -1px;
|
|
56
|
+
}
|
|
72
57
|
|
|
73
|
-
.button-group
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
58
|
+
.button-group:not(.no-divider):not(.column)
|
|
59
|
+
:global(> .button:not(.outline):not(.outline-fill):not(:first-child))::before {
|
|
60
|
+
content: '';
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 22%;
|
|
63
|
+
bottom: 22%;
|
|
64
|
+
left: 0;
|
|
65
|
+
width: 1px;
|
|
66
|
+
background-color: currentColor;
|
|
67
|
+
opacity: 0.25;
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
}
|
|
70
|
+
.button-group.column:not(.no-divider)
|
|
71
|
+
:global(> .button:not(.outline):not(.outline-fill):not(:first-child))::before {
|
|
72
|
+
content: '';
|
|
73
|
+
position: absolute;
|
|
74
|
+
left: 22%;
|
|
75
|
+
right: 22%;
|
|
76
|
+
top: 0;
|
|
77
|
+
height: 1px;
|
|
78
|
+
background-color: currentColor;
|
|
79
|
+
opacity: 0.25;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
@@ -62,11 +62,12 @@
|
|
|
62
62
|
{/if}
|
|
63
63
|
</span>
|
|
64
64
|
|
|
65
|
-
<style
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
.dropdown.relative > :global(.content-wrap) {
|
|
71
|
-
|
|
72
|
-
}
|
|
65
|
+
<style>
|
|
66
|
+
.dropdown {
|
|
67
|
+
position: relative;
|
|
68
|
+
display: inline-block;
|
|
69
|
+
}
|
|
70
|
+
.dropdown.relative > :global(.content-wrap) {
|
|
71
|
+
position: relative !important;
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
@@ -142,15 +142,17 @@
|
|
|
142
142
|
</div>
|
|
143
143
|
</div>
|
|
144
144
|
|
|
145
|
-
<style
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
145
|
+
<style>
|
|
146
|
+
.content-wrap {
|
|
147
|
+
position: fixed;
|
|
148
|
+
z-index: 1000000;
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.content {
|
|
154
|
+
overflow-y: auto;
|
|
155
|
+
min-height: 0;
|
|
156
|
+
overscroll-behavior: contain;
|
|
157
|
+
}
|
|
158
|
+
</style>
|
|
@@ -126,21 +126,23 @@
|
|
|
126
126
|
</Modal>
|
|
127
127
|
</div>
|
|
128
128
|
|
|
129
|
-
<style
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
129
|
+
<style>
|
|
130
|
+
.image-uploader :global(.inner) {
|
|
131
|
+
height: 100%;
|
|
132
|
+
width: 1100px !important;
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
:global(> .content) {
|
|
136
|
+
flex: 1;
|
|
137
|
+
padding-top: 0;
|
|
138
|
+
min-height: 0;
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
142
143
|
|
|
143
|
-
.body {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
144
|
+
.body {
|
|
145
|
+
flex: 1;
|
|
146
|
+
min-height: 0;
|
|
147
|
+
}
|
|
148
|
+
</style>
|
|
@@ -72,47 +72,47 @@
|
|
|
72
72
|
{/if}
|
|
73
73
|
</div>
|
|
74
74
|
|
|
75
|
-
<style
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.grid {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
75
|
+
<style>
|
|
76
|
+
.media {
|
|
77
|
+
height: 100%;
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
overflow-y: auto;
|
|
81
|
+
}
|
|
82
|
+
.grid {
|
|
83
|
+
display: grid;
|
|
84
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
85
|
+
gap: 10px;
|
|
86
|
+
}
|
|
87
|
+
.item {
|
|
88
|
+
display: block;
|
|
89
|
+
width: 100%;
|
|
90
|
+
aspect-ratio: 1;
|
|
91
|
+
padding: 0;
|
|
92
|
+
border: 1px solid var(--border);
|
|
93
|
+
border-radius: 5px;
|
|
94
|
+
background: var(--input);
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
transition: 0.2s box-shadow;
|
|
98
|
+
&:hover {
|
|
99
|
+
box-shadow: 0 0 0 2px var(--accent-light);
|
|
100
|
+
}
|
|
101
|
+
img {
|
|
102
|
+
display: block;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
object-fit: cover;
|
|
106
|
+
}
|
|
107
|
+
.audio-name {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
height: 100%;
|
|
112
|
+
padding: 10px;
|
|
113
|
+
font-size: 13px;
|
|
114
|
+
text-align: center;
|
|
115
|
+
word-break: break-word;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
</style>
|
|
@@ -235,48 +235,50 @@
|
|
|
235
235
|
{/if}
|
|
236
236
|
</div>
|
|
237
237
|
|
|
238
|
-
<style
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
.upload-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
.
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
.
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
238
|
+
<style>
|
|
239
|
+
.tab {
|
|
240
|
+
height: 100%;
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
padding-bottom: 15px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.upload-wrap {
|
|
247
|
+
flex: 1;
|
|
248
|
+
width: 100%;
|
|
249
|
+
height: 100%;
|
|
250
|
+
.upload-area {
|
|
251
|
+
background-color: var(--input);
|
|
252
|
+
width: 100%;
|
|
253
|
+
height: 100%;
|
|
254
|
+
border-radius: 20px;
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
justify-content: center;
|
|
258
|
+
font-size: 14px;
|
|
259
|
+
color: var(--text-light);
|
|
260
|
+
transition: 0.2s box-shadow;
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
&:hover {
|
|
263
|
+
box-shadow: 0 0 0 2px var(--accent-light);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.by-url-wrap {
|
|
269
|
+
margin-top: 15px;
|
|
270
|
+
.title {
|
|
271
|
+
font-size: 0.9rem;
|
|
272
|
+
font-weight: 500;
|
|
273
|
+
color: var(--text-light);
|
|
274
|
+
margin-bottom: 10px;
|
|
275
|
+
padding-left: 5px;
|
|
276
|
+
text-align: center;
|
|
277
|
+
}
|
|
278
|
+
.input-button {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 10px;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
</style>
|
|
@@ -116,41 +116,41 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
</div>
|
|
118
118
|
|
|
119
|
-
<style
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.search-wrap {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
119
|
+
<style>
|
|
120
|
+
.unsplash {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
height: 100%;
|
|
124
|
+
}
|
|
125
|
+
.search-wrap {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
margin-bottom: 15px;
|
|
129
|
+
gap: 10px;
|
|
130
|
+
}
|
|
131
|
+
.results {
|
|
132
|
+
flex: 1;
|
|
133
|
+
overflow-y: auto;
|
|
134
|
+
.cols {
|
|
135
|
+
display: flex;
|
|
136
|
+
gap: 10px;
|
|
137
|
+
}
|
|
138
|
+
.col {
|
|
139
|
+
flex: 1;
|
|
140
|
+
}
|
|
141
|
+
.img-wrap {
|
|
142
|
+
display: block;
|
|
143
|
+
width: 100%;
|
|
144
|
+
margin-bottom: 10px;
|
|
145
|
+
padding: 0;
|
|
146
|
+
border: none;
|
|
147
|
+
background: none;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
img {
|
|
150
|
+
display: block;
|
|
151
|
+
width: 100%;
|
|
152
|
+
border-radius: 5px;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</style>
|
|
@@ -29,34 +29,34 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
-
<style
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.icon {
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.validation.success {
|
|
51
|
-
color: var(--green-dark);
|
|
52
|
-
}
|
|
32
|
+
<style>
|
|
33
|
+
.validation {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
}
|
|
38
|
+
.icon {
|
|
39
|
+
margin-right: 8px;
|
|
40
|
+
}
|
|
41
|
+
.validation.error {
|
|
42
|
+
color: var(--red-dark);
|
|
43
|
+
}
|
|
44
|
+
.validation.warning {
|
|
45
|
+
color: var(--orange-dark);
|
|
46
|
+
}
|
|
47
|
+
.validation.success {
|
|
48
|
+
color: var(--green-dark);
|
|
49
|
+
}
|
|
53
50
|
|
|
54
|
-
:global(:root.dark)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
:global(:root.dark) {
|
|
52
|
+
.validation.error {
|
|
53
|
+
color: var(--red);
|
|
54
|
+
}
|
|
55
|
+
.validation.warning {
|
|
56
|
+
color: var(--orange);
|
|
57
|
+
}
|
|
58
|
+
.validation.success {
|
|
59
|
+
color: var(--green);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</style>
|