edvoyui-component-library-test-flight 0.0.21 → 0.0.23

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 (125) hide show
  1. package/dist/EUIButton.vue.d.ts.map +1 -0
  2. package/dist/library-vue-ts.cjs.js +4 -3
  3. package/dist/library-vue-ts.es.js +3 -8
  4. package/dist/library-vue-ts.umd.js +4 -3
  5. package/dist/select/EUISelect.vue.d.ts.map +1 -0
  6. package/package.json +4 -2
  7. package/src/App.vue +16 -0
  8. package/src/assets/fonts/gilroy/GilroyBold/font.woff +0 -0
  9. package/src/assets/fonts/gilroy/GilroyBold/font.woff2 +0 -0
  10. package/src/assets/fonts/gilroy/GilroyBoldItalic/font.woff +0 -0
  11. package/src/assets/fonts/gilroy/GilroyBoldItalic/font.woff2 +0 -0
  12. package/src/assets/fonts/gilroy/GilroyExtraBold/font.woff +0 -0
  13. package/src/assets/fonts/gilroy/GilroyExtraBold/font.woff2 +0 -0
  14. package/src/assets/fonts/gilroy/GilroyExtraBoldItalic/font.woff +0 -0
  15. package/src/assets/fonts/gilroy/GilroyExtraBoldItalic/font.woff2 +0 -0
  16. package/src/assets/fonts/gilroy/GilroyMedium/font.woff +0 -0
  17. package/src/assets/fonts/gilroy/GilroyMedium/font.woff2 +0 -0
  18. package/src/assets/fonts/gilroy/GilroyRegular/font.woff +0 -0
  19. package/src/assets/fonts/gilroy/GilroyRegular/font.woff2 +0 -0
  20. package/src/assets/fonts/gilroy/GilroySemiBold/font.woff +0 -0
  21. package/src/assets/fonts/gilroy/GilroySemiBold/font.woff2 +0 -0
  22. package/src/assets/fonts/inter/Inter-Bold.woff +0 -0
  23. package/src/assets/fonts/inter/Inter-Bold.woff2 +0 -0
  24. package/src/assets/fonts/inter/Inter-Italic.woff +0 -0
  25. package/src/assets/fonts/inter/Inter-Italic.woff2 +0 -0
  26. package/src/assets/fonts/inter/Inter-Medium.woff +0 -0
  27. package/src/assets/fonts/inter/Inter-Medium.woff2 +0 -0
  28. package/src/assets/fonts/inter/Inter-MediumItalic.woff +0 -0
  29. package/src/assets/fonts/inter/Inter-MediumItalic.woff2 +0 -0
  30. package/src/assets/fonts/inter/Inter-Regular.woff +0 -0
  31. package/src/assets/fonts/inter/Inter-Regular.woff2 +0 -0
  32. package/src/assets/fonts/inter/Inter-SemiBold.woff +0 -0
  33. package/src/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
  34. package/src/assets/fonts/inter/Inter-SemiBoldItalic.woff +0 -0
  35. package/src/assets/fonts/inter/Inter-SemiBoldItalic.woff2 +0 -0
  36. package/src/assets/scss/body.scss +15 -0
  37. package/src/assets/svg/ChevronDownSolid.vue +19 -0
  38. package/src/assets/svg/ChevronDownStroke.vue +22 -0
  39. package/src/assets/svg/SortArrow.vue +24 -0
  40. package/src/assets/svg/Student.vue +30 -0
  41. package/src/assets/svg/partner.vue +33 -0
  42. package/src/assets/svg/people.vue +25 -0
  43. package/src/assets/vue.svg +1 -0
  44. package/src/components/HelloWorld.vue +999 -0
  45. package/src/components/accordion/EUIAccordion.stories.ts +157 -0
  46. package/src/components/accordion/EUIAccordion.vue +90 -0
  47. package/src/components/avatar/EUIAvatar.stories.ts +157 -0
  48. package/src/components/avatar/EUIAvatar.vue +96 -0
  49. package/src/components/button/EUIButton.stories.ts +252 -0
  50. package/src/components/button/EUIButton.vue +151 -0
  51. package/src/components/checkbox/EUICheckbox.stories.ts +58 -0
  52. package/src/components/checkbox/EUICheckbox.vue +103 -0
  53. package/src/components/datepicker/EUIDatepicker.stories.ts +236 -0
  54. package/src/components/datepicker/EUIDatepicker.vue +185 -0
  55. package/src/components/delete.vue +108 -0
  56. package/src/components/dropdown/EUIMultiDropdown.stories.ts +187 -0
  57. package/src/components/dropdown/EUIMultiDropdown.vue +129 -0
  58. package/src/components/errorMessage/EUIErrorMessage.scss +0 -0
  59. package/src/components/errorMessage/EUIErrorMessage.stories.ts +41 -0
  60. package/src/components/errorMessage/EUIErrorMessage.vue +25 -0
  61. package/src/components/index.ts +46 -0
  62. package/src/components/input/EUIInput.stories.ts +174 -0
  63. package/src/components/input/EUIInput.vue +169 -0
  64. package/src/components/inputNormal/EUIInputNormal.stories.ts +164 -0
  65. package/src/components/inputNormal/EUIInputNormal.vue +161 -0
  66. package/src/components/loader/EUICircleLoader.vue +31 -0
  67. package/src/components/loader/EUICubeLoader.vue +237 -0
  68. package/src/components/loader/EUILoader.stories.ts +99 -0
  69. package/src/components/loader/EUILoader.vue +17 -0
  70. package/src/components/loader/EUISquareLoader.vue +47 -0
  71. package/src/components/modal/EUIModal.stories.ts +372 -0
  72. package/src/components/modal/EUIModal.vue +163 -0
  73. package/src/components/pillSelect/EUIPillSelect.stories.ts +74 -0
  74. package/src/components/pillSelect/EUIPillSelect.vue +149 -0
  75. package/src/components/popover/EUIPopover.stories.ts +247 -0
  76. package/src/components/popover/EUIPopover.vue +159 -0
  77. package/src/components/radio/EUIRadio.stories.ts +54 -0
  78. package/src/components/radio/EUIRadio.vue +78 -0
  79. package/src/components/searchInput/EUISearch.stories.ts +24 -0
  80. package/src/components/searchInput/EUISearch.vue +215 -0
  81. package/src/components/select/EUISelect.scss +0 -0
  82. package/src/components/select/EUISelect.stories.ts +49 -0
  83. package/src/components/select/EUISelect.vue +682 -0
  84. package/src/components/selectSearch/EUISelectSearch.vue +23 -0
  85. package/src/components/slideover/EUISlideover.stories.ts +318 -0
  86. package/src/components/slideover/EUISlideover.vue +207 -0
  87. package/src/components/stepperTimeline/EUIStepperHorizontal.vue +112 -0
  88. package/src/components/stepperTimeline/EUIStepperTimeline.stories.ts +54 -0
  89. package/src/components/stepperTimeline/EUIStepperTimeline.vue +16 -0
  90. package/src/components/stepperTimeline/EUIStepperVertical.vue +112 -0
  91. package/src/components/table/EUIDashboardTable.vue +482 -0
  92. package/src/components/table/EUIPageLimit.vue +66 -0
  93. package/src/components/table/EUIPagination.vue +175 -0
  94. package/src/components/table/EUIStudentPagination.vue +172 -0
  95. package/src/components/table/EUITable.stories.ts +190 -0
  96. package/src/components/table/EUITable.vue +508 -0
  97. package/src/components/table/EUITableCheckbox.vue +97 -0
  98. package/src/components/tabs/EUITabs.vue +128 -0
  99. package/src/components/tabs/EUItabs.stories.ts +123 -0
  100. package/src/components/tag/EUITag.stories.ts +46 -0
  101. package/src/components/tag/EUITag.vue +46 -0
  102. package/src/components/telephone/EUITelephone.stories.ts +202 -0
  103. package/src/components/telephone/EUITelephone.vue +280 -0
  104. package/src/components/textArea/EUITextArea.stories.ts +82 -0
  105. package/src/components/textArea/EUITextArea.vue +122 -0
  106. package/src/components/timeLine/EUITimeLine.stories.ts +247 -0
  107. package/src/components/timeLine/EUITimeLine.vue +43 -0
  108. package/src/components/timeLine/EUITimeLineItem.vue +124 -0
  109. package/src/components/toggle/EUIToggle.stories.ts +63 -0
  110. package/src/components/toggle/EUIToggle.vue +99 -0
  111. package/src/components/tooltip/EUITooltip.stories.ts +53 -0
  112. package/src/components/tooltip/EUITooltip.vue +108 -0
  113. package/src/data/books.ts +163 -0
  114. package/src/data/tab.ts +33 -0
  115. package/src/data/table.ts +5392 -0
  116. package/src/main.ts +5 -0
  117. package/src/utils/lodash.ts +9 -0
  118. package/src/utils/types.ts +9 -0
  119. package/src/vite-env.d.ts +5 -0
  120. package/dist/EUISelect.vue.d.ts.map +0 -1
  121. package/dist/button/EUIButton.vue.d.ts.map +0 -1
  122. package/dist/library-vue-ts.css +0 -1
  123. package/dist/style.scss +0 -118
  124. /package/dist/{button/EUIButton.vue.d.ts → EUIButton.vue.d.ts} +0 -0
  125. /package/dist/{EUISelect.vue.d.ts → select/EUISelect.vue.d.ts} +0 -0
@@ -0,0 +1,108 @@
1
+ <template>
2
+ <div ref="tooltipContainer" class="relative">
3
+ <div @mouseover="showTooltip" @mouseleave="hideTooltip">
4
+ <slot />
5
+ </div>
6
+
7
+ <div v-if="isVisible" ref="tooltip" class="tooltip">
8
+ <div class="arrow" data-popper-arrow />
9
+ <slot name="tooltip">Tooltip content</slot>
10
+ </div>
11
+ </div>
12
+ </template>
13
+
14
+ <script setup lang="ts">
15
+ import { createPopper, Instance } from "@popperjs/core";
16
+ import { PropType, ref, nextTick } from "vue";
17
+
18
+ const popperInstance = ref<Instance | null>(null);
19
+ const tooltipContainer = ref<HTMLElement | null>(null);
20
+ const tooltip = ref<HTMLElement | null>(null);
21
+ const isVisible = ref(false);
22
+
23
+ const props = defineProps({
24
+ placement: {
25
+ type: String as PropType<
26
+ "top" | "left" | "bottom" | "right" | "bottom-start" | "bottom-end"
27
+ >,
28
+ default: "left",
29
+ },
30
+ });
31
+
32
+ const showTooltip = async () => {
33
+ isVisible.value = true;
34
+ await nextTick(); // Ensures the tooltip element is rendered before creating the Popper instance
35
+ createPopperInstance();
36
+ };
37
+
38
+ const hideTooltip = () => {
39
+ isVisible.value = false;
40
+ if (popperInstance.value) {
41
+ popperInstance.value.destroy();
42
+ popperInstance.value = null;
43
+ }
44
+ };
45
+
46
+ const createPopperInstance = () => {
47
+ if (tooltipContainer.value && tooltip.value) {
48
+ popperInstance.value = createPopper(tooltipContainer.value, tooltip.value, {
49
+ placement: props.placement,
50
+ modifiers: [
51
+ {
52
+ name: "offset",
53
+ options: {
54
+ offset: [0, 8],
55
+ },
56
+ },
57
+ ],
58
+ });
59
+ }
60
+ };
61
+ </script>
62
+
63
+ <style lang="scss" scoped>
64
+ .tooltip {
65
+ @apply block z-50 p-2 text-sm text-white bg-gray-900 shadow-md ring-1 ring-slate-950 ring-inset rounded shadow-gray-100 max-w-64 min-w-64 text-start;
66
+ }
67
+ .arrow,
68
+ .arrow::before {
69
+ background: inherit;
70
+ @apply size-3 absolute border-[0.375rem] border-gray-900 rounded-tl-sm;
71
+ }
72
+
73
+ .arrow {
74
+ @apply invisible;
75
+ }
76
+
77
+ .arrow::before {
78
+ content: "";
79
+ @apply visible transform rotate-45;
80
+ }
81
+
82
+ .tooltip {
83
+ &[data-popper-placement^="top"] > .arrow {
84
+ @apply bottom-px;
85
+ &::before {
86
+ @apply border-t-transparent border-l-transparent -mx-1;
87
+ }
88
+ }
89
+ &[data-popper-placement^="bottom"] > .arrow {
90
+ @apply -top-[0.70rem];
91
+ &::before {
92
+ @apply border-b-transparent border-r-transparent -mx-1;
93
+ }
94
+ }
95
+ &[data-popper-placement^="left"] > .arrow {
96
+ @apply right-px;
97
+ &::before {
98
+ @apply border-l-transparent border-b-transparent -mt-1.5;
99
+ }
100
+ }
101
+ &[data-popper-placement^="right"] > .arrow {
102
+ @apply -left-[0.95rem];
103
+ &::before {
104
+ @apply border-r-transparent border-t-transparent -mt-1 mx-1;
105
+ }
106
+ }
107
+ }
108
+ </style>
@@ -0,0 +1,163 @@
1
+ export default [
2
+ {
3
+ title: "Old Man's War",
4
+ author: {
5
+ firstName: "John",
6
+ lastName: "Scalzi",
7
+ },
8
+ },
9
+ {
10
+ title: "The Lock Artist",
11
+ author: {
12
+ firstName: "Steve",
13
+ lastName: "Hamilton",
14
+ },
15
+ },
16
+ {
17
+ title: "HTML5",
18
+ author: {
19
+ firstName: "Remy",
20
+ lastName: "Sharp",
21
+ },
22
+ },
23
+ {
24
+ title: "Right Ho Jeeves",
25
+ author: {
26
+ firstName: "P.D",
27
+ lastName: "Woodhouse",
28
+ },
29
+ },
30
+ {
31
+ title: "The Code of the Wooster",
32
+ author: {
33
+ firstName: "P.D",
34
+ lastName: "Woodhouse",
35
+ },
36
+ },
37
+ {
38
+ title: "Thank You Jeeves",
39
+ author: {
40
+ firstName: "P.D",
41
+ lastName: "Woodhouse",
42
+ },
43
+ },
44
+ {
45
+ title: "The DaVinci Code",
46
+ author: {
47
+ firstName: "Dan",
48
+ lastName: "Brown",
49
+ },
50
+ },
51
+ {
52
+ title: "Angels & Demons",
53
+ author: {
54
+ firstName: "Dan",
55
+ lastName: "Brown",
56
+ },
57
+ },
58
+ {
59
+ title: "The Silmarillion",
60
+ author: {
61
+ firstName: "J.R.R",
62
+ lastName: "Tolkien",
63
+ },
64
+ },
65
+ {
66
+ title: "Syrup",
67
+ author: {
68
+ firstName: "Max",
69
+ lastName: "Barry",
70
+ },
71
+ },
72
+ {
73
+ title: "The Lost Symbol",
74
+ author: {
75
+ firstName: "Dan",
76
+ lastName: "Brown",
77
+ },
78
+ },
79
+ {
80
+ title: "The Book of Lies",
81
+ author: {
82
+ firstName: "Brad",
83
+ lastName: "Meltzer",
84
+ },
85
+ },
86
+ {
87
+ title: "Lamb",
88
+ author: {
89
+ firstName: "Christopher",
90
+ lastName: "Moore",
91
+ },
92
+ },
93
+ {
94
+ title: "Fool",
95
+ author: {
96
+ firstName: "Christopher",
97
+ lastName: "Moore",
98
+ },
99
+ },
100
+ {
101
+ title: "Incompetence",
102
+ author: {
103
+ firstName: "Rob",
104
+ lastName: "Grant",
105
+ },
106
+ },
107
+ {
108
+ title: "Fat",
109
+ author: {
110
+ firstName: "Rob",
111
+ lastName: "Grant",
112
+ },
113
+ },
114
+ {
115
+ title: "Colony",
116
+ author: {
117
+ firstName: "Rob",
118
+ lastName: "Grant",
119
+ },
120
+ },
121
+ {
122
+ title: "Backwards, Red Dwarf",
123
+ author: {
124
+ firstName: "Rob",
125
+ lastName: "Grant",
126
+ },
127
+ },
128
+ {
129
+ title: "The Grand Design",
130
+ author: {
131
+ firstName: "Stephen",
132
+ lastName: "Hawking",
133
+ },
134
+ },
135
+ {
136
+ title: "The Book of Samson",
137
+ author: {
138
+ firstName: "David",
139
+ lastName: "Maine",
140
+ },
141
+ },
142
+ {
143
+ title: "The Preservationist",
144
+ author: {
145
+ firstName: "David",
146
+ lastName: "Maine",
147
+ },
148
+ },
149
+ {
150
+ title: "Fallen",
151
+ author: {
152
+ firstName: "David",
153
+ lastName: "Maine",
154
+ },
155
+ },
156
+ {
157
+ title: "Monster 1959",
158
+ author: {
159
+ firstName: "David",
160
+ lastName: "Maine",
161
+ },
162
+ },
163
+ ];
@@ -0,0 +1,33 @@
1
+ export default [
2
+ {
3
+ name: "About",
4
+ active: true,
5
+ content:
6
+ "About Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
7
+ priority: "Choose the status and priority for this student",
8
+ },
9
+ {
10
+ name: "Application",
11
+ active: false,
12
+ content:
13
+ "Application Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
14
+ course: {
15
+ name: "MSc Computer Science (Network Engineering)",
16
+ levels: "Postgraduate",
17
+ },
18
+ },
19
+ {
20
+ name: "Notes",
21
+ active: false,
22
+ content:
23
+ "Notes Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
24
+ notes: "Here you can add some notes for yourself!",
25
+ },
26
+ {
27
+ name: "Task",
28
+ active: false,
29
+ content:
30
+ "Task Lorem ipsum dolor, sit amet consectetur adipisicing elit. In laudantium labore error repellendus similique, quibusdam et mollitia iure nesciunt? Impedit ut veniam repudiandae omnis eligendi quis dignissimos animi, rem officia!",
31
+ task: "You can add your tasks here!",
32
+ },
33
+ ];