sprintify-ui 0.0.1 → 0.0.4

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.
Files changed (41) hide show
  1. package/README.md +13 -2
  2. package/dist/sprintify-ui.es.js +4588 -1369
  3. package/dist/style.css +1 -1
  4. package/dist/types/src/components/BaseBelongsTo.vue.d.ts +12 -12
  5. package/dist/types/src/components/BaseInput.vue.d.ts +4 -4
  6. package/dist/types/src/components/BaseTableColumn.vue.d.ts +1 -1
  7. package/dist/types/src/components/BaseTextarea.vue.d.ts +4 -4
  8. package/dist/types/src/components/index.d.ts +20 -2
  9. package/dist/types/src/index.d.ts +1 -0
  10. package/package.json +3 -4
  11. package/src/components/BaseAlert.vue +4 -4
  12. package/src/components/BaseAutocomplete.vue +2 -2
  13. package/src/components/BaseAutocompleteFetch.vue +4 -1
  14. package/src/components/BaseAvatar.stories.js +1 -1
  15. package/src/components/BaseBelongsTo.vue +2 -2
  16. package/src/components/BaseBoolean.vue +2 -2
  17. package/src/components/BaseBreadcrumbs.vue +7 -7
  18. package/src/components/BaseClipboard.stories.js +1 -1
  19. package/src/components/BaseClipboard.vue +2 -2
  20. package/src/components/BaseDataIterator.vue +5 -5
  21. package/src/components/BaseDataTable.stories.js +1 -1
  22. package/src/components/BaseDataTable.vue +7 -4
  23. package/src/components/BaseDataTableToggleColumns.vue +1 -3
  24. package/src/components/BaseDatePicker.vue +2 -2
  25. package/src/components/BaseDialog.vue +4 -4
  26. package/src/components/BaseMediaLibrary.vue +1 -1
  27. package/src/components/BaseMenuItem.vue +1 -1
  28. package/src/components/BaseModalCenter.vue +1 -1
  29. package/src/components/BaseModalSide.vue +3 -3
  30. package/src/components/BaseNavbar.vue +2 -2
  31. package/src/components/BaseNavbarItemContent.vue +1 -1
  32. package/src/components/BasePagination.vue +2 -2
  33. package/src/components/BasePaginationSimple.vue +2 -2
  34. package/src/components/BasePassword.vue +6 -2
  35. package/src/components/BaseSystemAlert.vue +1 -1
  36. package/src/components/BaseTable.vue +5 -3
  37. package/src/components/BaseTagAutocomplete.vue +1 -0
  38. package/src/components/BaseTitle.vue +1 -1
  39. package/src/components/index.ts +44 -2
  40. package/src/composables/modal.ts +1 -1
  41. package/src/index.ts +2 -0
@@ -65,7 +65,7 @@
65
65
  type="button"
66
66
  @click="modal.close()"
67
67
  >
68
- <Icon class="h-8 w-8 text-white" icon="heroicons:x-mark"></Icon>
68
+ <BaseIcon class="h-8 w-8 text-white" icon="heroicons:x-mark" />
69
69
  </button>
70
70
  </div>
71
71
  </div>
@@ -56,10 +56,10 @@
56
56
  type="button"
57
57
  @click="modal.close()"
58
58
  >
59
- <Icon
59
+ <BaseIcon
60
60
  class="h-8 w-8 text-white"
61
61
  icon="heroicons:x-mark"
62
- ></Icon>
62
+ />
63
63
  </button>
64
64
  <slot :close="modal.close" />
65
65
  </div>
@@ -73,8 +73,8 @@
73
73
  </template>
74
74
 
75
75
  <script lang="ts" setup>
76
- import { useBreakpoints } from '@/composables/breakpoints';
77
76
  import { useModal } from '@/composables/modal';
77
+ import { useBreakpoints } from '@/composables/breakpoints';
78
78
 
79
79
  const props = defineProps({
80
80
  modelValue: {
@@ -15,13 +15,13 @@
15
15
  @click="toggleMenu()"
16
16
  >
17
17
  <span class="sr-only">Open main menu</span>
18
- <Icon
18
+ <BaseIcon
19
19
  v-if="!showMobileMenu"
20
20
  icon="heroicons:bars-3"
21
21
  class="block h-6 w-6"
22
22
  aria-hidden="true"
23
23
  />
24
- <Icon
24
+ <BaseIcon
25
25
  v-else
26
26
  icon="heroicons:x-mark"
27
27
  class="block h-6 w-6"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :class="classes">
3
3
  <div class="flex grow items-center">
4
- <Icon v-if="icon" :icon="icon" :class="iconClasses" />
4
+ <BaseIcon v-if="icon" :icon="icon" :class="iconClasses" />
5
5
  {{ label }}
6
6
  </div>
7
7
  <div v-if="count" class="relative -top-px ml-[5px]">
@@ -10,7 +10,7 @@
10
10
  class="inline-flex items-center border-t-2 border-transparent px-1 py-4 text-sm font-medium text-slate-500 hover:enabled:border-slate-300 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:opacity-60"
11
11
  @click="previous()"
12
12
  >
13
- <Icon
13
+ <BaseIcon
14
14
  class="mr-3 h-5 w-5 text-slate-400"
15
15
  icon="heroicons-solid:arrow-narrow-left"
16
16
  />
@@ -40,7 +40,7 @@
40
40
  @click="next()"
41
41
  >
42
42
  {{ $t('sui.next') }}
43
- <Icon
43
+ <BaseIcon
44
44
  class="ml-3 h-5 w-5 text-slate-400"
45
45
  icon="heroicons-solid:arrow-narrow-right"
46
46
  />
@@ -9,7 +9,7 @@
9
9
  class="flex h-8 w-8 items-center justify-center rounded-md border border-slate-300 text-sm font-medium text-slate-400 outline-none hover:enabled:border-slate-400 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:border-transparent disabled:opacity-60"
10
10
  @click="previous()"
11
11
  >
12
- <Icon
12
+ <BaseIcon
13
13
  class="h-5 w-5 text-slate-400"
14
14
  icon="heroicons-solid:chevron-left"
15
15
  />
@@ -19,7 +19,7 @@
19
19
  class="flex h-8 w-8 items-center justify-center rounded-md border border-slate-300 text-sm font-medium text-slate-400 outline-none hover:enabled:border-slate-400 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:border-transparent disabled:opacity-60"
20
20
  @click="next()"
21
21
  >
22
- <Icon
22
+ <BaseIcon
23
23
  class="h-5 w-5 text-slate-400"
24
24
  icon="heroicons-solid:chevron-right"
25
25
  />
@@ -19,8 +19,12 @@
19
19
  class="pr-3 text-slate-500"
20
20
  @click="showPassword = !showPassword"
21
21
  >
22
- <Icon v-if="!showPassword" icon="heroicons:eye-off" class="h-5 w-5" />
23
- <Icon v-else icon="heroicons:eye" class="h-5 w-5" />
22
+ <BaseIcon
23
+ v-if="!showPassword"
24
+ icon="heroicons:eye-off"
25
+ class="h-5 w-5"
26
+ />
27
+ <BaseIcon v-else icon="heroicons:eye" class="h-5 w-5" />
24
28
  </button>
25
29
  </div>
26
30
  </div>
@@ -23,7 +23,7 @@
23
23
  class="rounded-full bg-black bg-opacity-50 p-1 text-white"
24
24
  @click="close"
25
25
  >
26
- <Icon icon="heroicons:x-mark" />
26
+ <BaseIcon icon="heroicons:x-mark" />
27
27
  </button>
28
28
  </div>
29
29
  </div>
@@ -52,7 +52,7 @@
52
52
  <span
53
53
  v-show="column.sortable && currentSortColumn === column"
54
54
  >
55
- <Icon
55
+ <BaseIcon
56
56
  icon="mdi:chevron-down"
57
57
  class="h-5 w-5 duration-300"
58
58
  :class="{
@@ -128,7 +128,7 @@
128
128
  : false,
129
129
  ]"
130
130
  >
131
- <Icon icon="heroicons-solid:dots-vertical" />
131
+ <BaseIcon icon="heroicons-solid:dots-vertical" />
132
132
  </div>
133
133
  </template>
134
134
  </BaseMenu>
@@ -153,7 +153,7 @@
153
153
  }"
154
154
  @click.stop="toggleDetails(row)"
155
155
  >
156
- <Icon
156
+ <BaseIcon
157
157
  v-if="hasDetailedVisible(row)"
158
158
  icon="mdi:chevron-down"
159
159
  class="h-5 w-5"
@@ -266,6 +266,8 @@ import { BaseTableColumn, MenuItemInterface, Row } from '@/types/types';
266
266
  import SlotComponent from './SlotComponent';
267
267
  import { useResizeObserver } from '@vueuse/core';
268
268
  import { debounce, isArray } from 'lodash';
269
+ import BaseLoadingCover from './BaseLoadingCover.vue';
270
+ import BaseMenu from './BaseMenu.vue';
269
271
 
270
272
  const checkboxStyle =
271
273
  'disabled:bg-slate-100 disabled:border-slate-300 disabled:cursor-not-allowed border-slate-400 rounded';
@@ -82,6 +82,7 @@ import { cloneDeep, get } from 'lodash';
82
82
  import { PropType, Ref, ComputedRef } from 'vue';
83
83
  import { NormalizedOption, Option, OptionValue } from '@/types/types';
84
84
  import { useInfiniteScroll } from '@vueuse/core';
85
+ import BaseLoadingCover from './BaseLoadingCover.vue';
85
86
  //import { useNotificationsStore } from '../../stores/notifications';
86
87
 
87
88
  const props = defineProps({
@@ -5,7 +5,7 @@
5
5
  :to="back"
6
6
  class="block rounded-full border border-slate-200 bg-white p-2 shadow duration-150 hover:bg-slate-100"
7
7
  >
8
- <Icon class="h-6 w-6" icon="mdi:chevron-left" />
8
+ <BaseIcon class="h-6 w-6" icon="mdi:chevron-left" />
9
9
  </router-link>
10
10
  </div>
11
11
  <div class="grow sm:flex sm:items-start">
@@ -1,6 +1,48 @@
1
1
  import BaseAlert from './BaseAlert.vue';
2
2
  import BaseAutocomplete from './BaseAutocomplete.vue';
3
+ import BaseAutocompleteFetch from './BaseAutocompleteFetch.vue';
4
+ import BaseAvatar from './BaseAvatar.vue';
5
+ import BaseBadge from './BaseBadge.vue';
6
+ import BaseBelongsTo from './BaseBelongsTo.vue';
7
+ import BaseBoolean from './BaseBoolean.vue';
8
+ import BaseBreadcrumbs from './BaseBreadcrumbs.vue';
3
9
  import BaseButton from './BaseButton.vue';
4
- import { Icon } from '@iconify/vue';
10
+ import BaseCard from './BaseCard.vue';
11
+ import BaseCardRow from './BaseCardRow.vue';
12
+ import BaseClipboard from './BaseClipboard.vue';
13
+ import BaseContainer from './BaseContainer.vue';
14
+ import BaseCounter from './BaseCounter.vue';
15
+ import BaseDataIterator from './BaseDataIterator.vue';
16
+ import BaseDataTable from './BaseDataTable.vue';
5
17
 
6
- export { BaseAlert, BaseAutocomplete, BaseButton, Icon };
18
+ import { Icon as BaseIcon } from '@iconify/vue';
19
+ import BaseLoadingCover from './BaseLoadingCover.vue';
20
+ import BaseMenu from './BaseMenu.vue';
21
+ import BaseMenuItem from './BaseMenuItem.vue';
22
+ import BaseTable from './BaseTable.vue';
23
+ import BaseTableColumn from './BaseTableColumn.vue';
24
+
25
+ export {
26
+ BaseAlert,
27
+ BaseAutocomplete,
28
+ BaseAutocompleteFetch,
29
+ BaseAvatar,
30
+ BaseBadge,
31
+ BaseBelongsTo,
32
+ BaseBoolean,
33
+ BaseBreadcrumbs,
34
+ BaseButton,
35
+ BaseCard,
36
+ BaseCardRow,
37
+ BaseClipboard,
38
+ BaseContainer,
39
+ BaseCounter,
40
+ BaseDataIterator,
41
+ BaseDataTable,
42
+ BaseIcon,
43
+ BaseLoadingCover,
44
+ BaseMenu,
45
+ BaseMenuItem,
46
+ BaseTable,
47
+ BaseTableColumn,
48
+ };
@@ -1,4 +1,4 @@
1
- import { disableScroll, enableScroll } from 'src/utils';
1
+ import { disableScroll, enableScroll } from '../utils';
2
2
  import { Ref } from 'vue';
3
3
 
4
4
  export function useModal(
package/src/index.ts CHANGED
@@ -69,4 +69,6 @@ export * from './components';
69
69
  export * from './constants';
70
70
  export * from './utils';
71
71
 
72
+ export { messages };
73
+
72
74
  export { pluginConfig as config };