@hyvor/design 2.1.18 → 2.1.20-beta.1
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 +14 -12
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +1 -0
- package/dist/components/Dropdown/DropdownContent.svelte +21 -13
- 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/Tooltip/Tooltip.svelte +4 -1
- package/dist/components/Usage/Usage.svelte +40 -40
- package/dist/components/directives/clickOutside.d.ts +2 -1
- package/dist/components/directives/clickOutside.js +25 -7
- 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/marketing/Testimonials/Testimonials.svelte +3 -27
- package/dist/marketing/Testimonials/Testimonials.svelte.d.ts +0 -1
- package/dist/{variables.scss → variables.css} +1 -7
- package/package.json +20 -20
|
@@ -120,81 +120,84 @@
|
|
|
120
120
|
{/if}
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
|
-
<style
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
123
|
+
<style>
|
|
124
|
+
.loader {
|
|
125
|
+
display: inline-flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
.message {
|
|
128
|
+
margin-left: 10px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.loader.block {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
.message {
|
|
138
|
+
margin-top: 10px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.loader.full {
|
|
143
|
+
width: 100%;
|
|
144
|
+
height: 100%;
|
|
145
|
+
flex: 1;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
.message {
|
|
151
|
+
margin-top: 10px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.loader-wrap {
|
|
156
|
+
display: inline-flex;
|
|
157
|
+
width: var(--local-size);
|
|
158
|
+
height: var(--local-size);
|
|
159
|
+
border-radius: var(--local-size);
|
|
160
|
+
position: relative;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.success-icon,
|
|
164
|
+
.error-icon {
|
|
165
|
+
animation: scale 0.2s ease-in-out;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
svg {
|
|
169
|
+
width: inherit;
|
|
170
|
+
height: inherit;
|
|
171
|
+
display: inherit;
|
|
172
|
+
box-sizing: inherit;
|
|
173
|
+
position: absolute;
|
|
174
|
+
top: 0;
|
|
175
|
+
left: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
circle.progress {
|
|
179
|
+
transform: rotate(-90deg);
|
|
180
|
+
transform-origin: center;
|
|
181
|
+
animation: 0.8s linear 0s infinite normal none running rotate;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@keyframes rotate {
|
|
185
|
+
0% {
|
|
186
|
+
transform: rotate(-90deg);
|
|
187
|
+
}
|
|
188
|
+
100% {
|
|
189
|
+
transform: rotate(270deg);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@keyframes scale {
|
|
194
|
+
0% {
|
|
195
|
+
transform: scale(0.5);
|
|
196
|
+
opacity: 0.4;
|
|
197
|
+
}
|
|
198
|
+
100% {
|
|
199
|
+
transform: scale(1);
|
|
200
|
+
opacity: 1;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
</style>
|
|
@@ -48,72 +48,74 @@
|
|
|
48
48
|
{@render children?.()}
|
|
49
49
|
</label>
|
|
50
50
|
|
|
51
|
-
<style>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
119
|
-
|
|
51
|
+
<style>
|
|
52
|
+
label {
|
|
53
|
+
position: relative;
|
|
54
|
+
padding-left: 30px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
user-select: none;
|
|
57
|
+
height: 20px;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
label.disabled {
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
opacity: 0.5;
|
|
65
|
+
.checkmark {
|
|
66
|
+
box-shadow: none !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
input {
|
|
71
|
+
position: absolute;
|
|
72
|
+
opacity: 0;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
height: 0;
|
|
75
|
+
width: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.checkmark {
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 0;
|
|
81
|
+
left: 0;
|
|
82
|
+
height: 20px;
|
|
83
|
+
width: 20px;
|
|
84
|
+
background-color: var(--input);
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
transition: 0.4s;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.checkmark:after {
|
|
90
|
+
content: '';
|
|
91
|
+
position: absolute;
|
|
92
|
+
display: none;
|
|
93
|
+
top: 50%;
|
|
94
|
+
left: 50%;
|
|
95
|
+
transform: translate(-50%, -50%);
|
|
96
|
+
width: 8px;
|
|
97
|
+
height: 8px;
|
|
98
|
+
border-radius: 50%;
|
|
99
|
+
background: var(--accent-text);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
label:hover input ~ .checkmark {
|
|
103
|
+
box-shadow: 0 0 0 3px var(--accent-light);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
label:active input ~ .checkmark {
|
|
107
|
+
box-shadow: 0 0 0 4px var(--accent-light);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
label input:focus-visible ~ .checkmark {
|
|
111
|
+
box-shadow: 0 0 0 3px var(--accent-light);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
label input:checked ~ .checkmark {
|
|
115
|
+
background-color: var(--accent);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
input:checked ~ .checkmark:after {
|
|
119
|
+
display: block;
|
|
120
|
+
}
|
|
121
|
+
</style>
|
|
@@ -67,48 +67,53 @@
|
|
|
67
67
|
</div>
|
|
68
68
|
{/if}
|
|
69
69
|
|
|
70
|
-
<style
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
}
|
|
70
|
+
<style>
|
|
71
|
+
.split-control {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
border-bottom: 1px solid var(--accent-lightest);
|
|
75
|
+
line-height: 1.3;
|
|
76
|
+
&:last-child,
|
|
77
|
+
&.has-nested {
|
|
78
|
+
border-bottom: none;
|
|
79
|
+
}
|
|
80
|
+
&.column {
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
.left {
|
|
83
|
+
padding-bottom: 10px;
|
|
84
|
+
}
|
|
85
|
+
.right {
|
|
86
|
+
padding-top: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
88
90
|
|
|
89
|
-
.nested {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
91
|
+
.nested {
|
|
92
|
+
margin-left: 40px;
|
|
93
|
+
padding-top: 0;
|
|
94
|
+
padding-left: 15px;
|
|
95
|
+
border-left: 2px solid var(--accent-light);
|
|
96
|
+
margin-bottom: 15px;
|
|
97
|
+
}
|
|
96
98
|
|
|
97
|
-
.left {
|
|
98
|
-
|
|
99
|
-
}
|
|
99
|
+
.left {
|
|
100
|
+
padding: 15px;
|
|
101
|
+
}
|
|
100
102
|
|
|
101
|
-
.right {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
103
|
+
.right {
|
|
104
|
+
padding: 15px;
|
|
105
|
+
min-width: 0;
|
|
106
|
+
}
|
|
105
107
|
|
|
106
|
-
.no-hpadding
|
|
107
|
-
.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
.no-hpadding {
|
|
109
|
+
.left,
|
|
110
|
+
.right {
|
|
111
|
+
padding-left: 0;
|
|
112
|
+
padding-right: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
111
115
|
|
|
112
|
-
.caption-wrap {
|
|
113
|
-
|
|
114
|
-
}
|
|
116
|
+
.caption-wrap {
|
|
117
|
+
margin-top: 4px;
|
|
118
|
+
}
|
|
119
|
+
</style>
|