sprintify-ui 0.2.0 → 0.2.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/sprintify-ui.es.js +1146 -1146
- package/dist/style.css +1 -1
- package/package.json +2 -4
- package/src/assets/main.css +3 -3
- package/src/components/BaseActionItem.vue +9 -4
- package/src/components/BaseActionItemButton.vue +1 -1
- package/src/components/BaseAddressForm.vue +6 -5
- package/src/components/BaseAlert.vue +8 -2
- package/src/components/BaseAppNotifications.vue +4 -1
- package/src/components/BaseAutocomplete.vue +18 -9
- package/src/components/BaseAutocompleteDrawer.vue +28 -10
- package/src/components/BaseAutocompleteFetch.vue +14 -3
- package/src/components/BaseAvatar.vue +1 -1
- package/src/components/BaseBadge.vue +1 -2
- package/src/components/BaseBelongsTo.vue +12 -3
- package/src/components/BaseBreadcrumbs.vue +8 -2
- package/src/components/BaseButton.vue +9 -2
- package/src/components/BaseButtonGroup.vue +4 -1
- package/src/components/BaseCharacterCounter.vue +4 -1
- package/src/components/BaseClickOutside.vue +1 -1
- package/src/components/BaseClipboard.vue +5 -2
- package/src/components/BaseColor.vue +4 -1
- package/src/components/BaseCropper.vue +17 -5
- package/src/components/BaseCropperModal.vue +4 -1
- package/src/components/BaseDataIterator.vue +29 -11
- package/src/components/BaseDataIteratorSectionBox.vue +5 -2
- package/src/components/BaseDataIteratorSectionButton.vue +6 -4
- package/src/components/BaseDataIteratorSectionColumns.vue +5 -2
- package/src/components/BaseDataTable.vue +43 -20
- package/src/components/BaseDataTableRowAction.vue +8 -2
- package/src/components/BaseDatePicker.vue +5 -2
- package/src/components/BaseDateSelect.vue +33 -6
- package/src/components/BaseDisplayRelativeTime.vue +4 -1
- package/src/components/BaseDraggable.vue +1 -1
- package/src/components/BaseDropdown.vue +16 -5
- package/src/components/BaseDropdownAutocomplete.vue +8 -4
- package/src/components/BaseField.vue +5 -2
- package/src/components/BaseFieldI18n.vue +10 -2
- package/src/components/BaseFilePicker.vue +6 -2
- package/src/components/BaseFilePickerCrop.vue +4 -1
- package/src/components/BaseForm.vue +9 -2
- package/src/components/BaseHasMany.vue +16 -4
- package/src/components/BaseHeader.vue +4 -1
- package/src/components/BaseIconPicker.vue +14 -4
- package/src/components/BaseInput.vue +10 -7
- package/src/components/BaseInputError.vue +1 -1
- package/src/components/BaseInputLabel.vue +4 -1
- package/src/components/BaseInputPercent.vue +1 -1
- package/src/components/BaseLayoutNotificationDropdown.vue +11 -5
- package/src/components/BaseLayoutNotificationItem.vue +15 -5
- package/src/components/BaseLayoutNotificationItemContent.vue +5 -2
- package/src/components/BaseLayoutSidebar.vue +22 -5
- package/src/components/BaseLayoutSidebarConfigurable.vue +19 -5
- package/src/components/BaseLayoutStackedConfigurable.vue +24 -7
- package/src/components/BaseMediaGallery.vue +4 -1
- package/src/components/BaseMediaGalleryItem.vue +13 -4
- package/src/components/BaseMediaItem.vue +12 -3
- package/src/components/BaseMediaLibrary.vue +10 -5
- package/src/components/BaseMediaList.vue +1 -1
- package/src/components/BaseMediaListItem.vue +15 -6
- package/src/components/BaseMediaPictures.vue +1 -1
- package/src/components/BaseMediaPicturesItem.vue +9 -3
- package/src/components/BaseMediaPreview.vue +2 -2
- package/src/components/BaseMenu.vue +37 -9
- package/src/components/BaseMenuItem.vue +14 -3
- package/src/components/BaseModalCenter.vue +4 -1
- package/src/components/BaseNavbarItemContent.vue +14 -3
- package/src/components/BaseNavbarSideItem.vue +4 -1
- package/src/components/BaseNavbarSideItemContent.vue +9 -2
- package/src/components/BaseNumber.vue +7 -4
- package/src/components/BasePagination.vue +2 -2
- package/src/components/BasePanel.vue +4 -1
- package/src/components/BasePassword.vue +6 -2
- package/src/components/BaseProgressCircle.vue +4 -1
- package/src/components/BaseRadioGroup.vue +5 -2
- package/src/components/BaseRichText.vue +1 -2
- package/src/components/BaseSelect.vue +6 -2
- package/src/components/BaseShortcut.vue +11 -4
- package/src/components/BaseSideNavigation.vue +4 -1
- package/src/components/BaseSideNavigationItem.vue +5 -2
- package/src/components/BaseSkeleton.vue +2 -2
- package/src/components/BaseStatistic.vue +15 -4
- package/src/components/BaseStepper.vue +4 -1
- package/src/components/BaseSwitch.stories.js +0 -1
- package/src/components/BaseSwitch.vue +8 -2
- package/src/components/BaseSystemAlert.vue +4 -1
- package/src/components/BaseTabItem.vue +5 -2
- package/src/components/BaseTable.vue +19 -9
- package/src/components/BaseTagAutocomplete.vue +13 -4
- package/src/components/BaseTagAutocompleteFetch.vue +18 -4
- package/src/components/BaseTextareaAutoresize.vue +6 -2
- package/src/components/BaseTimeline.vue +8 -2
- package/src/svg/BaseEmptyState.vue +5 -1
- package/src/svg/BaseSpinnerLarge.vue +15 -3
- package/src/svg/BaseSpinnerSmall.vue +8 -2
|
@@ -24,10 +24,16 @@
|
|
|
24
24
|
}"
|
|
25
25
|
class="flex items-center justify-center transition duration-200 ease-in-out bg-white rounded-full shadow pointer-events-none text-slate-500 ring-0"
|
|
26
26
|
>
|
|
27
|
-
<BaseIcon
|
|
27
|
+
<BaseIcon
|
|
28
|
+
v-if="icon"
|
|
29
|
+
:icon="icon"
|
|
30
|
+
/>
|
|
28
31
|
</span>
|
|
29
32
|
</Switch>
|
|
30
|
-
<SwitchLabel
|
|
33
|
+
<SwitchLabel
|
|
34
|
+
v-if="$slots.default"
|
|
35
|
+
class="cursor-pointer"
|
|
36
|
+
>
|
|
31
37
|
<slot />
|
|
32
38
|
</SwitchLabel>
|
|
33
39
|
</div>
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</component>
|
|
20
|
-
<div
|
|
20
|
+
<div
|
|
21
|
+
v-if="closable"
|
|
22
|
+
class="absolute top-0 right-0 p-3"
|
|
23
|
+
>
|
|
21
24
|
<button
|
|
22
25
|
type="button"
|
|
23
26
|
class="rounded-full bg-black bg-opacity-50 p-1 text-white"
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
]"
|
|
19
19
|
@click.prevent="onClick(navigate)"
|
|
20
20
|
>
|
|
21
|
-
<div
|
|
21
|
+
<div
|
|
22
|
+
class="relative flex"
|
|
23
|
+
:class="sizeClassInner"
|
|
24
|
+
>
|
|
22
25
|
<div
|
|
23
26
|
class="absolute left-0 bottom-0 w-full"
|
|
24
27
|
:class="[
|
|
@@ -26,7 +29,7 @@
|
|
|
26
29
|
? 'h-[2px] bg-primary-600'
|
|
27
30
|
: 'group-hover:h-px group-hover:bg-slate-700',
|
|
28
31
|
]"
|
|
29
|
-
|
|
32
|
+
/>
|
|
30
33
|
<div class="whitespace-nowrap">
|
|
31
34
|
<slot :active="isActiveInternal(isActive, isExactActive)" />
|
|
32
35
|
</div>
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
class="relative w-full overflow-hidden"
|
|
4
4
|
:class="maxHeight ? 'base-table--has-max-height' : ''"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
6
|
+
<div
|
|
7
|
+
ref="slot"
|
|
8
|
+
style="display: none"
|
|
9
|
+
>
|
|
7
10
|
<slot />
|
|
8
11
|
</div>
|
|
9
12
|
|
|
@@ -17,7 +20,10 @@
|
|
|
17
20
|
<div class="inline-block min-w-full align-middle">
|
|
18
21
|
<div class="relative min-h-[300px]">
|
|
19
22
|
<table class="min-w-full border-separate border-spacing-0">
|
|
20
|
-
<thead
|
|
23
|
+
<thead
|
|
24
|
+
v-if="newColumns.length"
|
|
25
|
+
ref="thead"
|
|
26
|
+
>
|
|
21
27
|
<tr>
|
|
22
28
|
<th
|
|
23
29
|
v-if="showDetailRowIcon"
|
|
@@ -38,7 +44,7 @@
|
|
|
38
44
|
:checked="isAllChecked"
|
|
39
45
|
:disabled="isAllUncheckable"
|
|
40
46
|
:class="checkboxStyle"
|
|
41
|
-
|
|
47
|
+
>
|
|
42
48
|
</div>
|
|
43
49
|
</th>
|
|
44
50
|
<th
|
|
@@ -84,14 +90,14 @@
|
|
|
84
90
|
:opacity="!isAsc ? '0.5' : '1'"
|
|
85
91
|
fill="currentColor"
|
|
86
92
|
d="M8.71 12.29L11.3 9.7a.996.996 0 0 1 1.41 0l2.59 2.59c.63.63.18 1.71-.71 1.71H9.41c-.89 0-1.33-1.08-.7-1.71z"
|
|
87
|
-
|
|
93
|
+
/>
|
|
88
94
|
</g>
|
|
89
95
|
<g transform="translate(0 3)">
|
|
90
96
|
<path
|
|
91
97
|
:opacity="isAsc ? '0.5' : '1'"
|
|
92
98
|
fill="currentColor"
|
|
93
99
|
d="m8.71 11.71l2.59 2.59c.39.39 1.02.39 1.41 0l2.59-2.59c.63-.63.18-1.71-.71-1.71H9.41c-.89 0-1.33 1.08-.7 1.71z"
|
|
94
|
-
|
|
100
|
+
/>
|
|
95
101
|
</g>
|
|
96
102
|
</svg>
|
|
97
103
|
</div>
|
|
@@ -109,7 +115,7 @@
|
|
|
109
115
|
:checked="isAllChecked"
|
|
110
116
|
:disabled="isAllUncheckable"
|
|
111
117
|
:class="checkboxStyle"
|
|
112
|
-
|
|
118
|
+
>
|
|
113
119
|
</th>
|
|
114
120
|
</tr>
|
|
115
121
|
</thead>
|
|
@@ -156,7 +162,7 @@
|
|
|
156
162
|
:disabled="!isRowCheckable(row)"
|
|
157
163
|
:checked="isRowChecked(row)"
|
|
158
164
|
:class="checkboxStyle"
|
|
159
|
-
|
|
165
|
+
>
|
|
160
166
|
</div>
|
|
161
167
|
</td>
|
|
162
168
|
|
|
@@ -197,7 +203,7 @@
|
|
|
197
203
|
:disabled="!isRowCheckable(row)"
|
|
198
204
|
:checked="isRowChecked(row)"
|
|
199
205
|
:class="checkboxStyle"
|
|
200
|
-
|
|
206
|
+
>
|
|
201
207
|
</td>
|
|
202
208
|
</tr>
|
|
203
209
|
|
|
@@ -211,7 +217,11 @@
|
|
|
211
217
|
class="td"
|
|
212
218
|
:class="borderBottomDetailClasses(index)"
|
|
213
219
|
>
|
|
214
|
-
<slot
|
|
220
|
+
<slot
|
|
221
|
+
name="detail"
|
|
222
|
+
:row="row"
|
|
223
|
+
:index="index"
|
|
224
|
+
/>
|
|
215
225
|
</td>
|
|
216
226
|
</tr>
|
|
217
227
|
</transition>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
@click="open"
|
|
56
56
|
@input="onTextInput"
|
|
57
57
|
@keydown="onTextKeydown"
|
|
58
|
-
|
|
58
|
+
>
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
@@ -82,13 +82,22 @@
|
|
|
82
82
|
@scroll-bottom="emit('scrollBottom')"
|
|
83
83
|
>
|
|
84
84
|
<template #empty="emptyProps">
|
|
85
|
-
<slot
|
|
85
|
+
<slot
|
|
86
|
+
name="empty"
|
|
87
|
+
v-bind="{ ...emptyProps, ...slotProps }"
|
|
88
|
+
/>
|
|
86
89
|
</template>
|
|
87
90
|
<template #option="optionProps">
|
|
88
|
-
<slot
|
|
91
|
+
<slot
|
|
92
|
+
name="option"
|
|
93
|
+
v-bind="{ ...optionProps, ...slotProps }"
|
|
94
|
+
/>
|
|
89
95
|
</template>
|
|
90
96
|
<template #footer="footerProps">
|
|
91
|
-
<slot
|
|
97
|
+
<slot
|
|
98
|
+
name="footer"
|
|
99
|
+
v-bind="{ ...footerProps, ...slotProps }"
|
|
100
|
+
/>
|
|
92
101
|
</template>
|
|
93
102
|
</BaseAutocompleteDrawer>
|
|
94
103
|
</div>
|
|
@@ -18,19 +18,33 @@
|
|
|
18
18
|
@update:model-value="$emit('update:modelValue', $event)"
|
|
19
19
|
>
|
|
20
20
|
<template #items="itemProps">
|
|
21
|
-
<slot
|
|
21
|
+
<slot
|
|
22
|
+
name="items"
|
|
23
|
+
v-bind="itemProps"
|
|
24
|
+
/>
|
|
22
25
|
</template>
|
|
23
26
|
|
|
24
27
|
<template #option="optionProps">
|
|
25
|
-
<slot
|
|
28
|
+
<slot
|
|
29
|
+
name="option"
|
|
30
|
+
v-bind="optionProps"
|
|
31
|
+
/>
|
|
26
32
|
</template>
|
|
27
33
|
|
|
28
34
|
<template #footer="footerProps">
|
|
29
|
-
<slot
|
|
35
|
+
<slot
|
|
36
|
+
name="footer"
|
|
37
|
+
v-bind="footerProps"
|
|
38
|
+
:keywords="keywords"
|
|
39
|
+
/>
|
|
30
40
|
</template>
|
|
31
41
|
|
|
32
42
|
<template #empty="emptyProps">
|
|
33
|
-
<slot
|
|
43
|
+
<slot
|
|
44
|
+
name="empty"
|
|
45
|
+
v-bind="emptyProps"
|
|
46
|
+
:first-search="firstSearch"
|
|
47
|
+
>
|
|
34
48
|
<div
|
|
35
49
|
v-if="firstSearch"
|
|
36
50
|
class="flex h-[80px] items-center justify-center px-3 text-center text-base leading-tight text-slate-600"
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
ref="wrapper"
|
|
4
|
+
class="grid"
|
|
5
|
+
:style="{ maxHeight: maxHeight + 'px' }"
|
|
6
|
+
>
|
|
3
7
|
<textarea
|
|
4
8
|
:value="modelValue"
|
|
5
9
|
:name="nameInternal"
|
|
@@ -91,7 +95,7 @@ const props = defineProps({
|
|
|
91
95
|
|
|
92
96
|
const emit = defineEmits(['update:modelValue', 'submit', 'focus', 'input']);
|
|
93
97
|
|
|
94
|
-
const { nameInternal, requiredInternal, hasErrorInternal
|
|
98
|
+
const { nameInternal, requiredInternal, hasErrorInternal } =
|
|
95
99
|
useField({
|
|
96
100
|
name: computed(() => props.name),
|
|
97
101
|
required: computed(() => props.required),
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flow-root">
|
|
3
|
-
<ul
|
|
4
|
-
|
|
3
|
+
<ul
|
|
4
|
+
role="list"
|
|
5
|
+
class="-mb-8"
|
|
6
|
+
>
|
|
7
|
+
<li
|
|
8
|
+
v-for="(item, index) in items"
|
|
9
|
+
:key="index"
|
|
10
|
+
>
|
|
5
11
|
<div class="relative pb-8">
|
|
6
12
|
<span
|
|
7
13
|
v-if="index != items.length - 1"
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<svg
|
|
2
|
+
<svg
|
|
3
|
+
viewBox="0 0 150 150"
|
|
4
|
+
fill="none"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
>
|
|
3
7
|
<path
|
|
4
8
|
class="text-slate-100"
|
|
5
9
|
d="M75 150C116.421 150 150 116.421 150 75C150 33.5786 116.421 0 75 0C33.5786 0 0 33.5786 0 75C0 116.421 33.5786 150 75 150Z"
|
|
@@ -14,9 +14,21 @@
|
|
|
14
14
|
stroke="url(#gradient)"
|
|
15
15
|
/>
|
|
16
16
|
<linearGradient id="gradient">
|
|
17
|
-
<stop
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
<stop
|
|
18
|
+
offset="50%"
|
|
19
|
+
stop-color="#2563eb"
|
|
20
|
+
stop-opacity="1"
|
|
21
|
+
/>
|
|
22
|
+
<stop
|
|
23
|
+
offset="65%"
|
|
24
|
+
stop-color="#2563eb"
|
|
25
|
+
stop-opacity=".5"
|
|
26
|
+
/>
|
|
27
|
+
<stop
|
|
28
|
+
offset="100%"
|
|
29
|
+
stop-color="#2563eb"
|
|
30
|
+
stop-opacity="0"
|
|
31
|
+
/>
|
|
20
32
|
</linearGradient>
|
|
21
33
|
</svg>
|
|
22
34
|
</template>
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<svg
|
|
3
|
-
|
|
2
|
+
<svg
|
|
3
|
+
class="animate-spin"
|
|
4
|
+
viewBox="0 0 24 24"
|
|
5
|
+
>
|
|
6
|
+
<path
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"
|
|
9
|
+
/>
|
|
4
10
|
</svg>
|
|
5
11
|
</template>
|
|
6
12
|
|