sprintify-ui 0.6.14 → 0.6.15
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/sprintify-ui.es.js +2900 -2900
- package/dist/style.css +1 -1
- package/dist/types/src/components/BaseProgressCircle.vue.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/base-calendar.css +27 -0
- package/src/assets/base-cropper.css +62 -0
- package/src/assets/base-date-picker.css +5 -0
- package/src/assets/base-rich-text.css +98 -0
- package/src/assets/base-spinner.css +18 -0
- package/src/assets/base-table.css +17 -0
- package/src/assets/base-tabs.css +5 -0
- package/src/assets/google-pac.css +26 -0
- package/src/assets/main.css +10 -2
- package/src/components/BaseAddressForm.vue +0 -29
- package/src/components/BaseCalendar.vue +1 -30
- package/src/components/BaseCropper.vue +6 -71
- package/src/components/BaseDatePicker.vue +0 -8
- package/src/components/BaseProgressCircle.vue +11 -11
- package/src/components/BaseRichText.vue +0 -101
- package/src/components/BaseTable.vue +1 -19
- package/src/components/BaseTabs.vue +1 -7
- package/src/svg/BaseSpinnerLarge.vue +5 -24
- package/src/svg/BaseSpinnerSmall.vue +1 -3
package/src/assets/main.css
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
@import "./
|
|
1
|
+
@import "./base-calendar.css";
|
|
2
|
+
@import "./base-cropper.css";
|
|
3
|
+
@import "./base-date-picker.css";
|
|
4
|
+
@import "./base-rich-text.css";
|
|
5
|
+
@import "./base-table.css";
|
|
6
|
+
@import "./base-tabs.css";
|
|
7
|
+
@import "./base-spinner.css";
|
|
2
8
|
@import "./flatpickr.css";
|
|
9
|
+
@import "./form.css";
|
|
10
|
+
@import "./google-pac.css";
|
|
3
11
|
|
|
4
12
|
[aria-label][role~="tooltip"]::after {
|
|
5
13
|
white-space: pre-line;
|
|
@@ -8,7 +16,7 @@
|
|
|
8
16
|
.btn-group {
|
|
9
17
|
display: flex;
|
|
10
18
|
align-items: center;
|
|
11
|
-
justify-content: start;
|
|
19
|
+
justify-content: flex-start;
|
|
12
20
|
margin: 0 -0.5rem;
|
|
13
21
|
|
|
14
22
|
& > *:not(:first-child) .btn,
|
|
@@ -323,32 +323,3 @@ function fillAddress() {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
</script>
|
|
326
|
-
|
|
327
|
-
<style lang="postcss">
|
|
328
|
-
.pac-container {
|
|
329
|
-
@apply rounded-lg border border-gray-200 font-sans shadow-md;
|
|
330
|
-
|
|
331
|
-
& .pac-item {
|
|
332
|
-
@apply flex cursor-pointer items-center py-2 pl-2;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
& .pac-icon {
|
|
336
|
-
@apply m-0 mr-2;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
& .pac-item,
|
|
340
|
-
& .pac-item-query,
|
|
341
|
-
& .pac-matched {
|
|
342
|
-
@apply text-base;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
& .pac-matched {
|
|
346
|
-
@apply font-semibold;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
&:after {
|
|
350
|
-
background-image: none !important;
|
|
351
|
-
@apply h-0 p-0;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FullCalendar
|
|
3
3
|
ref="fullCalendar"
|
|
4
|
-
class="base-
|
|
4
|
+
class="base-calendar"
|
|
5
5
|
:options="calendarOptions"
|
|
6
6
|
>
|
|
7
7
|
<template
|
|
@@ -185,32 +185,3 @@ function remove(payload: any) {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
</script>
|
|
188
|
-
<style lang="postcss">
|
|
189
|
-
.base-full-calendar {
|
|
190
|
-
&.fc {
|
|
191
|
-
.fc-button-primary:disabled {
|
|
192
|
-
@apply btn btn-primary cursor-not-allowed;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.fc-button-primary {
|
|
196
|
-
@apply btn btn-primary;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.fc-button-primary:not(:disabled).fc-button-active {
|
|
200
|
-
@apply bg-primary-600 text-white border-primary-700
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.fc-button-primary:not(:disabled):active {
|
|
204
|
-
@apply bg-primary-600 text-white border-primary-700
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.fc-button-primary:hover {
|
|
208
|
-
@apply border-primary-700;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.fc-button-primary:focus {
|
|
212
|
-
@apply ring-4 ring-primary-200 !important;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
</style>
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
width: cropperConfiguration?.boundary?.width + 'px',
|
|
22
22
|
height: cropperConfiguration?.showZoomer
|
|
23
23
|
? (cropperConfiguration?.boundary?.height ?? 0) +
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
ZOOMER_HEIGHT +
|
|
25
|
+
'px'
|
|
26
26
|
: cropperConfiguration?.boundary?.height + 'px',
|
|
27
27
|
}"
|
|
28
28
|
>
|
|
@@ -316,10 +316,10 @@ async function save(
|
|
|
316
316
|
|
|
317
317
|
const resultConfig = result ??
|
|
318
318
|
props.saveOptions ?? {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
319
|
+
type: 'blob',
|
|
320
|
+
size: 'original',
|
|
321
|
+
circle: false,
|
|
322
|
+
};
|
|
323
323
|
|
|
324
324
|
const r = await cropper.result(resultConfig);
|
|
325
325
|
|
|
@@ -391,68 +391,3 @@ const shared = {
|
|
|
391
391
|
|
|
392
392
|
defineExpose(shared);
|
|
393
393
|
</script>
|
|
394
|
-
|
|
395
|
-
<style lang="postcss">
|
|
396
|
-
.base-cropper-wrapper {
|
|
397
|
-
.cr-slider-wrap {
|
|
398
|
-
margin-top: 20px;
|
|
399
|
-
display: flex;
|
|
400
|
-
align-items: center;
|
|
401
|
-
justify-content: center;
|
|
402
|
-
|
|
403
|
-
&:before {
|
|
404
|
-
content: '-';
|
|
405
|
-
flex-shrink: 0;
|
|
406
|
-
font-size: 20px;
|
|
407
|
-
font-weight: 400;
|
|
408
|
-
@apply text-slate-900;
|
|
409
|
-
display: flex;
|
|
410
|
-
align-items: center;
|
|
411
|
-
justify-content: center;
|
|
412
|
-
width: 36px;
|
|
413
|
-
height: 24px;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
&:after {
|
|
417
|
-
content: '+';
|
|
418
|
-
flex-shrink: 0;
|
|
419
|
-
font-size: 20px;
|
|
420
|
-
font-weight: 400;
|
|
421
|
-
@apply text-slate-900;
|
|
422
|
-
display: flex;
|
|
423
|
-
align-items: center;
|
|
424
|
-
justify-content: center;
|
|
425
|
-
width: 36px;
|
|
426
|
-
height: 24px;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
.cr-slider::-webkit-slider-runnable-track {
|
|
430
|
-
@apply bg-gray-300;
|
|
431
|
-
height: 5px;
|
|
432
|
-
}
|
|
433
|
-
.cr-slider::-moz-range-track {
|
|
434
|
-
@apply bg-gray-300;
|
|
435
|
-
height: 5px;
|
|
436
|
-
}
|
|
437
|
-
.cr-slider::-webkit-slider-thumb {
|
|
438
|
-
width: 24px;
|
|
439
|
-
height: 24px;
|
|
440
|
-
cursor: pointer;
|
|
441
|
-
position: relative;
|
|
442
|
-
top: -3px;
|
|
443
|
-
@apply bg-white;
|
|
444
|
-
@apply shadow-md;
|
|
445
|
-
@apply ring-0;
|
|
446
|
-
}
|
|
447
|
-
.cr-slider::-moz-range-thumb {
|
|
448
|
-
width: 24px;
|
|
449
|
-
height: 24px;
|
|
450
|
-
cursor: pointer;
|
|
451
|
-
position: relative;
|
|
452
|
-
top: -3px;
|
|
453
|
-
@apply bg-white;
|
|
454
|
-
@apply shadow-md;
|
|
455
|
-
@apply ring-0;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
</style>
|
|
@@ -11,17 +11,18 @@
|
|
|
11
11
|
:r="normalizedRadius"
|
|
12
12
|
:cx="radius"
|
|
13
13
|
:cy="radius"
|
|
14
|
-
|
|
14
|
+
:style="circleStyle"
|
|
15
|
+
></circle>
|
|
15
16
|
<circle
|
|
16
17
|
stroke="currentColor"
|
|
17
18
|
:stroke-dasharray="`${circumference} ${circumference}`"
|
|
18
|
-
:style="{ strokeDashoffset: strokeDashoffset }"
|
|
19
|
+
:style="{ ...circleStyle, strokeDashoffset: strokeDashoffset }"
|
|
19
20
|
:stroke-width="stroke"
|
|
20
21
|
fill="transparent"
|
|
21
22
|
:r="normalizedRadius"
|
|
22
23
|
:cx="radius"
|
|
23
24
|
:cy="radius"
|
|
24
|
-
|
|
25
|
+
></circle>
|
|
25
26
|
<text
|
|
26
27
|
text-anchor="middle"
|
|
27
28
|
alignment-baseline="middle"
|
|
@@ -67,14 +68,13 @@ export default defineComponent({
|
|
|
67
68
|
fontSize(): number {
|
|
68
69
|
return Math.min(30, this.radius / 2.7);
|
|
69
70
|
},
|
|
71
|
+
circleStyle(): Record<string, string> {
|
|
72
|
+
return {
|
|
73
|
+
transition: 'stroke-dashoffset 0.35s',
|
|
74
|
+
transform: 'rotate(-90deg)',
|
|
75
|
+
transformOrigin: '50% 50%',
|
|
76
|
+
};
|
|
77
|
+
},
|
|
70
78
|
},
|
|
71
79
|
});
|
|
72
80
|
</script>
|
|
73
|
-
|
|
74
|
-
<style scoped>
|
|
75
|
-
circle {
|
|
76
|
-
transition: stroke-dashoffset 0.35s;
|
|
77
|
-
transform: rotate(-90deg);
|
|
78
|
-
transform-origin: 50% 50%;
|
|
79
|
-
}
|
|
80
|
-
</style>
|
|
@@ -95,104 +95,3 @@ function updateChange(value: string | null): string | null {
|
|
|
95
95
|
return '';
|
|
96
96
|
}
|
|
97
97
|
</script>
|
|
98
|
-
|
|
99
|
-
<style lang="postcss">
|
|
100
|
-
.base-rich-text {
|
|
101
|
-
.ql-toolbar.ql-snow {
|
|
102
|
-
@apply rounded-t border-slate-300 font-sans;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ql-container.ql-snow {
|
|
106
|
-
@apply rounded-b border-slate-300 font-sans;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.ql-container {
|
|
110
|
-
@apply font-sans;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.error {
|
|
114
|
-
|
|
115
|
-
& .ql-toolbar.ql-snow,
|
|
116
|
-
& .ql-container.ql-snow {
|
|
117
|
-
@apply border-red-500;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ql-tooltip {
|
|
122
|
-
@apply z-menu;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.ql-container {
|
|
126
|
-
@apply text-slate-900;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.ql-editor.ql-blank::before {
|
|
130
|
-
@apply text-base text-slate-400 font-light not-italic;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/** Style Prose */
|
|
134
|
-
.ql-editor {
|
|
135
|
-
h1 {
|
|
136
|
-
@apply mt-0 mb-8 text-4xl font-bold leading-snug tracking-normal;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
h2 {
|
|
140
|
-
@apply mt-6 mb-4 text-3xl font-bold leading-snug tracking-normal;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
h3 {
|
|
144
|
-
@apply mt-5 mb-3 text-2xl font-bold leading-snug tracking-normal;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
h4 {
|
|
148
|
-
@apply mt-4 mb-2 text-xl font-bold leading-snug tracking-normal;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
p {
|
|
152
|
-
@apply my-5 text-base leading-relaxed;
|
|
153
|
-
|
|
154
|
-
&:first-child {
|
|
155
|
-
@apply mt-0;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
ol,
|
|
160
|
-
ul {
|
|
161
|
-
padding-left: 2rem;
|
|
162
|
-
|
|
163
|
-
li {
|
|
164
|
-
@apply my-2 text-base leading-relaxed;
|
|
165
|
-
padding-left: 0.5rem;
|
|
166
|
-
|
|
167
|
-
&::before {
|
|
168
|
-
@apply text-slate-500;
|
|
169
|
-
width: 2em;
|
|
170
|
-
text-align: left;
|
|
171
|
-
position: absolute;
|
|
172
|
-
left: 3rem;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
blockquote {
|
|
178
|
-
@apply my-5 text-base;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
pre {
|
|
182
|
-
@apply my-5 p-4 text-sm;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
h1,
|
|
187
|
-
h2,
|
|
188
|
-
h3,
|
|
189
|
-
h4,
|
|
190
|
-
h5,
|
|
191
|
-
h6,
|
|
192
|
-
p {
|
|
193
|
-
&:first-child {
|
|
194
|
-
margin-top: 0;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="relative w-full overflow-hidden"
|
|
3
|
+
class="base-table relative w-full overflow-hidden"
|
|
4
4
|
:class="maxHeight ? 'base-table--has-max-height' : ''"
|
|
5
5
|
>
|
|
6
6
|
<div
|
|
@@ -884,21 +884,3 @@ defineExpose({
|
|
|
884
884
|
scrollTop,
|
|
885
885
|
});
|
|
886
886
|
</script>
|
|
887
|
-
|
|
888
|
-
<style lang="postcss" scoped>
|
|
889
|
-
.th {
|
|
890
|
-
@apply relative z-[2];
|
|
891
|
-
@apply bg-slate-50;
|
|
892
|
-
@apply border-b border-slate-300;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.base-table--has-max-height .th {
|
|
896
|
-
@apply sticky;
|
|
897
|
-
@apply top-0;
|
|
898
|
-
@apply bg-opacity-75 backdrop-blur backdrop-filter;
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
tbody tr.item-row:hover td {
|
|
902
|
-
@apply bg-slate-50;
|
|
903
|
-
}
|
|
904
|
-
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="relative">
|
|
2
|
+
<div class="base-tabs relative">
|
|
3
3
|
<div class="absolute bottom-0 left-0 h-px w-full bg-slate-300" />
|
|
4
4
|
<div
|
|
5
5
|
ref="scrollable"
|
|
@@ -154,9 +154,3 @@ function animateLine(animate = true) {
|
|
|
154
154
|
|
|
155
155
|
}
|
|
156
156
|
</script>
|
|
157
|
-
|
|
158
|
-
<style scoped>
|
|
159
|
-
.scrollable::-webkit-scrollbar {
|
|
160
|
-
display: none;
|
|
161
|
-
}
|
|
162
|
-
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<svg
|
|
3
|
-
class="spinner h-20 w-20"
|
|
3
|
+
class="base-spinner-large h-20 w-20"
|
|
4
4
|
viewBox="0 0 66 66"
|
|
5
5
|
xmlns="http://www.w3.org/2000/svg"
|
|
6
6
|
>
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
cy="33"
|
|
13
13
|
r="30"
|
|
14
14
|
stroke="url(#gradient)"
|
|
15
|
-
|
|
15
|
+
></circle>
|
|
16
16
|
<linearGradient id="gradient">
|
|
17
17
|
<stop
|
|
18
18
|
offset="50%"
|
|
19
19
|
stop-color="#2563eb"
|
|
20
20
|
stop-opacity="1"
|
|
21
|
-
|
|
21
|
+
></stop>
|
|
22
22
|
<stop
|
|
23
23
|
offset="65%"
|
|
24
24
|
stop-color="#2563eb"
|
|
25
25
|
stop-opacity=".5"
|
|
26
|
-
|
|
26
|
+
></stop>
|
|
27
27
|
<stop
|
|
28
28
|
offset="100%"
|
|
29
29
|
stop-color="#2563eb"
|
|
30
30
|
stop-opacity="0"
|
|
31
|
-
|
|
31
|
+
></stop>
|
|
32
32
|
</linearGradient>
|
|
33
33
|
</svg>
|
|
34
34
|
</template>
|
|
@@ -38,22 +38,3 @@ import { defineComponent } from 'vue';
|
|
|
38
38
|
|
|
39
39
|
export default defineComponent({});
|
|
40
40
|
</script>
|
|
41
|
-
|
|
42
|
-
<style scoped>
|
|
43
|
-
.spinner {
|
|
44
|
-
animation: rotate 1s linear infinite;
|
|
45
|
-
-webkit-animation: rotate 1s linear infinite;
|
|
46
|
-
-moz-animation: rotate 1s linear infinite;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@keyframes rotate {
|
|
50
|
-
to {
|
|
51
|
-
transform: rotate(360deg);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.path {
|
|
56
|
-
stroke-dasharray: 170;
|
|
57
|
-
stroke-dashoffset: 20;
|
|
58
|
-
}
|
|
59
|
-
</style>
|