edvoyui-component-library-test-flight 0.0.89 → 0.0.91

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 (93) hide show
  1. package/dist/EUIButton.vue.d.ts +5 -0
  2. package/dist/EUIButton.vue.d.ts.map +1 -0
  3. package/dist/accordion/EUIAccordion.vue.d.ts +2 -2
  4. package/dist/accordion/EUIAccordion.vue.d.ts.map +1 -1
  5. package/dist/avatar/EUIAvatar.vue.d.ts +2 -2
  6. package/dist/avatar/EUIAvatar.vue.d.ts.map +1 -1
  7. package/dist/checkbox/EUICheckbox.vue.d.ts +5 -0
  8. package/dist/checkbox/EUICheckbox.vue.d.ts.map +1 -0
  9. package/dist/datepicker/EUIDatepicker.vue.d.ts +3 -3
  10. package/dist/datepicker/EUIDatepicker.vue.d.ts.map +1 -1
  11. package/dist/dropdown/EUIMultiDropdown.vue.d.ts +2 -2
  12. package/dist/dropdown/EUIMultiDropdown.vue.d.ts.map +1 -1
  13. package/dist/errorMessage/EUIErrorMessage.vue.d.ts +2 -2
  14. package/dist/errorMessage/EUIErrorMessage.vue.d.ts.map +1 -1
  15. package/dist/input/EUIInput.vue.d.ts +2 -2
  16. package/dist/input/EUIInput.vue.d.ts.map +1 -1
  17. package/dist/library-vue-ts.cjs.js +70 -24
  18. package/dist/library-vue-ts.css +1 -1
  19. package/dist/library-vue-ts.es.js +13732 -10057
  20. package/dist/library-vue-ts.umd.js +71 -25
  21. package/dist/loader/EUICircleLoader.vue.d.ts +1 -1
  22. package/dist/loader/EUICircleLoader.vue.d.ts.map +1 -1
  23. package/dist/loader/EUICubeLoader.vue.d.ts +1 -1
  24. package/dist/loader/EUICubeLoader.vue.d.ts.map +1 -1
  25. package/dist/loader/EUILoader.vue.d.ts +2 -2
  26. package/dist/loader/EUILoader.vue.d.ts.map +1 -1
  27. package/dist/loader/EUISquareLoader.vue.d.ts +1 -1
  28. package/dist/loader/EUISquareLoader.vue.d.ts.map +1 -1
  29. package/dist/modal/EUIModal.vue.d.ts +2 -2
  30. package/dist/modal/EUIModal.vue.d.ts.map +1 -1
  31. package/dist/pillSelect/EUIPillSelect.vue.d.ts +2 -2
  32. package/dist/pillSelect/EUIPillSelect.vue.d.ts.map +1 -1
  33. package/dist/popover/EUIPopover.vue.d.ts +2 -2
  34. package/dist/popover/EUIPopover.vue.d.ts.map +1 -1
  35. package/dist/radio/EUIRadio.vue.d.ts +2 -2
  36. package/dist/radio/EUIRadio.vue.d.ts.map +1 -1
  37. package/dist/searchInput/EUISearch.vue.d.ts +2 -2
  38. package/dist/searchInput/EUISearch.vue.d.ts.map +1 -1
  39. package/dist/searchexpand/EUISearchExpand.vue.d.ts +2 -2
  40. package/dist/searchexpand/EUISearchExpand.vue.d.ts.map +1 -1
  41. package/dist/searchexpand/EUISearchToggle.vue.d.ts +2 -2
  42. package/dist/searchexpand/EUISearchToggle.vue.d.ts.map +1 -1
  43. package/dist/select/EUISelect.vue.d.ts +3 -3
  44. package/dist/select/EUISelect.vue.d.ts.map +1 -1
  45. package/dist/selectSearch/EUISelectSearch.vue.d.ts +2 -2
  46. package/dist/selectSearch/EUISelectSearch.vue.d.ts.map +1 -1
  47. package/dist/slideover/EUISlideover.vue.d.ts +2 -2
  48. package/dist/slideover/EUISlideover.vue.d.ts.map +1 -1
  49. package/dist/stepperTimeline/EUIStepperHorizontal.vue.d.ts +2 -2
  50. package/dist/stepperTimeline/EUIStepperHorizontal.vue.d.ts.map +1 -1
  51. package/dist/stepperTimeline/EUIStepperTimeline.vue.d.ts +2 -2
  52. package/dist/stepperTimeline/EUIStepperTimeline.vue.d.ts.map +1 -1
  53. package/dist/stepperTimeline/EUIStepperVertical.vue.d.ts +2 -2
  54. package/dist/stepperTimeline/EUIStepperVertical.vue.d.ts.map +1 -1
  55. package/dist/table/EUIDashboardTable.vue.d.ts +2 -2
  56. package/dist/table/EUIDashboardTable.vue.d.ts.map +1 -1
  57. package/dist/table/EUIPageLimit.vue.d.ts +2 -2
  58. package/dist/table/EUIPageLimit.vue.d.ts.map +1 -1
  59. package/dist/table/EUIPagination.vue.d.ts +2 -2
  60. package/dist/table/EUIPagination.vue.d.ts.map +1 -1
  61. package/dist/table/EUIStudentPagination.vue.d.ts +2 -2
  62. package/dist/table/EUIStudentPagination.vue.d.ts.map +1 -1
  63. package/dist/table/EUITable.vue.d.ts +2 -2
  64. package/dist/table/EUITable.vue.d.ts.map +1 -1
  65. package/dist/table/EUITableCheckbox.vue.d.ts +3 -3
  66. package/dist/table/EUITableCheckbox.vue.d.ts.map +1 -1
  67. package/dist/table/UCheckbox.vue.d.ts +2 -2
  68. package/dist/table/UCheckbox.vue.d.ts.map +1 -1
  69. package/dist/table/UTable.vue.d.ts +2 -2
  70. package/dist/table/UTable.vue.d.ts.map +1 -1
  71. package/dist/tabs/EUITabs.vue.d.ts +2 -2
  72. package/dist/tabs/EUITabs.vue.d.ts.map +1 -1
  73. package/dist/tag/EUITag.vue.d.ts +2 -2
  74. package/dist/tag/EUITag.vue.d.ts.map +1 -1
  75. package/dist/telephone/EUITelephone.vue.d.ts +3 -3
  76. package/dist/telephone/EUITelephone.vue.d.ts.map +1 -1
  77. package/dist/textArea/EUITextArea.vue.d.ts +2 -2
  78. package/dist/textArea/EUITextArea.vue.d.ts.map +1 -1
  79. package/dist/timeLine/EUITimeLine.vue.d.ts +2 -2
  80. package/dist/timeLine/EUITimeLine.vue.d.ts.map +1 -1
  81. package/dist/timeLine/EUITimeLineItem.vue.d.ts +2 -2
  82. package/dist/timeLine/EUITimeLineItem.vue.d.ts.map +1 -1
  83. package/dist/toggle/EUIToggle.vue.d.ts +2 -2
  84. package/dist/toggle/EUIToggle.vue.d.ts.map +1 -1
  85. package/dist/tooltip/EUITooltip.vue.d.ts +2 -2
  86. package/dist/tooltip/EUITooltip.vue.d.ts.map +1 -1
  87. package/package.json +1 -1
  88. package/src/components/datepicker/EUIDatepicker.vue +130 -117
  89. package/src/components/input/EUIInput.vue +62 -24
  90. package/dist/EUICheckbox.vue.d.ts +0 -5
  91. package/dist/EUICheckbox.vue.d.ts.map +0 -1
  92. package/dist/button/EUIButton.vue.d.ts +0 -5
  93. package/dist/button/EUIButton.vue.d.ts.map +0 -1
@@ -1,18 +1,24 @@
1
1
  <template>
2
2
  <div>
3
3
  <label
4
- v-if="!inputFilled && label"
5
- :class="[
6
- 'text-xs w-full text-gray-500 cursor-pointer font-medium block mb-1',
7
- required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
8
- ]"
9
- >
10
- {{ label }}
11
- </label>
4
+ v-if="!inputFilled && label"
5
+ :class="[
6
+ 'text-xs w-full text-gray-500 cursor-pointer font-medium block mb-1',
7
+ required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
8
+ ]"
9
+ >
10
+ {{ label }}
11
+ </label>
12
12
  <div
13
- :class="[{'pointer-events-none cursor-not-allowed':disabled}, inputFilled ? 'overflow-hidden border border-gray-100 cursor-pointer group h-14 rounded-2xl eui-datepicker' : 'h-10 eui-datepicker normal', 'relative w-full mb-2']"
13
+ :class="[
14
+ { 'pointer-events-none cursor-not-allowed': disabled },
15
+ inputFilled
16
+ ? 'overflow-hidden border border-gray-100 cursor-pointer group h-14 rounded-2xl eui-datepicker'
17
+ : 'h-10 eui-datepicker normal',
18
+ 'relative w-full mb-2',
19
+ ]"
14
20
  >
15
- <label
21
+ <label
16
22
  v-if="inputFilled"
17
23
  :class="[
18
24
  getIconClass(),
@@ -21,17 +27,18 @@
21
27
  : 'top-1/2 text-sm w-full text-gray-700 cursor-pointer h-14 pt-5 pb-4 bg-white',
22
28
  disabled ? ' cursor-not-allowed' : '',
23
29
  required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
24
- 'absolute font-medium left-0 px-4 z-[1] -translate-y-1/2 group-focus-within:top-3.5 group-focus-within:text-xs group-focus-within:text-gray-400 rounded-2xl group-focus-within:bg-transparent group-hover:text-xs group-focus-within:h-auto group-focus-within:py-0 group-hover:top-3.5 group-hover:bg-transparent group-hover:h-auto group-hover:py-0 group-focus-within:-translate-y-1/2 group-hover:-translate-y-1/2 text-start first-letter:capitalize group-hover:rounded-none group-hover:text-gray-400 group-hover:w-max transition-all ease-in-out duration-300'
30
+ 'absolute font-medium left-0 px-4 z-[1] -translate-y-1/2 group-focus-within:top-3.5 group-focus-within:text-xs group-focus-within:text-gray-400 rounded-2xl group-focus-within:bg-transparent group-hover:text-xs group-focus-within:h-auto group-focus-within:py-0 group-hover:top-3.5 group-hover:bg-transparent group-hover:h-auto group-hover:py-0 group-focus-within:-translate-y-1/2 group-hover:-translate-y-1/2 text-start first-letter:capitalize group-hover:rounded-none group-hover:text-gray-400 group-hover:w-max transition-all ease-in-out duration-300',
25
31
  ]"
26
32
  >
27
- {{ label || 'Datepicker'}}
33
+ {{ label || 'Datepicker' }}
28
34
  </label>
29
35
  <div
30
36
  v-if="icon && iconType"
31
37
  :class="[
32
38
  iconType === 'startIcon' ? 'left-0 pl-3' : 'right-0 pr-3',
33
39
  disabled ? 'cursor-not-allowed' : '',
34
- inputFilled ? 'inset-y-0' : 'top-2', 'absolute z-10 flex items-center pointer-events-none'
40
+ inputFilled ? 'inset-y-0' : 'top-2',
41
+ 'absolute z-10 flex items-center pointer-events-none',
35
42
  ]"
36
43
  >
37
44
  <component
@@ -40,35 +47,35 @@
40
47
  aria-hidden="true"
41
48
  />
42
49
  </div>
43
- <VueDatePicker
44
- locale="en-US"
45
- :name="name"
46
- :placeholder="placeholder"
47
- v-model="datepicker"
48
- :value="modelValue"
49
- :utc="isUtc"
50
- :range="range"
51
- :teleport="true"
52
- :clearable="clearIcon"
53
- :required="required"
54
- :disabled="disabled"
55
- :readonly="readonly"
56
- :disabled-dates="disableDate ? disabledDates : undefined"
57
- :time-picker="timePicker"
58
- :enable-time-picker="false"
59
- :enable-seconds="false"
60
- :is-24="false"
61
- :dark="false"
62
- :inline="false"
63
- :text-input="false"
64
- :auto-apply="autoApply"
65
- :hide-input-icon="true"
66
- position="left"
67
- :multi-calendars="multiCalendars"
68
- :min-date="minDate"
69
- :max-date="maxDate"
70
- :format="format"
71
- :config="config"
50
+ <VueDatePicker
51
+ locale="en-US"
52
+ :name="name"
53
+ :placeholder="placeholder"
54
+ :model-value="datepicker"
55
+ :utc="isUtc"
56
+ :range="range"
57
+ :teleport="true"
58
+ :clearable="clearIcon"
59
+ :required="required"
60
+ :disabled="disabled"
61
+ :readonly="readonly"
62
+ :disabled-dates="disableDate ? disabledDates : undefined"
63
+ :time-picker="timePicker"
64
+ :enable-time-picker="false"
65
+ :enable-seconds="false"
66
+ :is-24="false"
67
+ :dark="false"
68
+ :inline="false"
69
+ :text-input="false"
70
+ :auto-apply="autoApply"
71
+ :hide-input-icon="true"
72
+ position="left"
73
+ :multi-calendars="multiCalendars"
74
+ :min-date="minDate"
75
+ :max-date="maxDate"
76
+ :format="format"
77
+ :config="config"
78
+ @update:model-value="handleDate"
72
79
  />
73
80
  </div>
74
81
  <EUIErrorMessage :errors="errors" :name="name" />
@@ -76,35 +83,34 @@
76
83
  </template>
77
84
 
78
85
  <script setup lang="ts">
79
- import { computed, PropType, ref, toRefs, watch } from "vue";
80
- import VueDatePicker from "@vuepic/vue-datepicker";
81
- import "@vuepic/vue-datepicker/dist/main.css";
86
+ import { computed, ref, toRefs, watch } from 'vue'
87
+ import type { PropType } from 'vue'
88
+ import VueDatePicker from '@vuepic/vue-datepicker'
89
+ import '@vuepic/vue-datepicker/dist/main.css'
82
90
 
83
91
  const props = defineProps({
84
92
  modelValue: {
85
93
  type: Date as any,
86
- default: "",
94
+ default: '',
87
95
  },
88
96
  format: {
89
97
  type: [String, Function] as PropType<
90
- | string
91
- | ((date: Date) => string)
92
- | ((dates: Date[]) => string)
98
+ string | ((date: Date) => string) | ((dates: Date[]) => string)
93
99
  >,
94
100
  default: 'dd/MM/yyyy', // Default format dd/MM/yyyy HH:mm
95
101
  },
96
102
  maxDate: {
97
103
  type: Date as any,
98
- default: "",
104
+ default: '',
99
105
  },
100
106
  minDate: {
101
107
  type: Date as any,
102
- default: "",
108
+ default: '',
103
109
  },
104
110
  name: {
105
111
  type: String,
106
112
  required: false,
107
- default: "date-picker",
113
+ default: 'date-picker',
108
114
  },
109
115
  isUtc: {
110
116
  type: Boolean,
@@ -121,15 +127,15 @@ const props = defineProps({
121
127
  label: {
122
128
  type: String,
123
129
  required: true,
124
- default: "",
130
+ default: '',
125
131
  },
126
132
  iconType: {
127
- type: String as PropType<"startIcon" | "endIcon">,
128
- default: "",
133
+ type: String as PropType<'startIcon' | 'endIcon'>,
134
+ default: '',
129
135
  },
130
136
  icon: {
131
137
  type: [Object, String],
132
- default: "",
138
+ default: '',
133
139
  },
134
140
  errors: { type: Object, required: false, default: () => {} },
135
141
  timePicker: Boolean,
@@ -137,24 +143,26 @@ const props = defineProps({
137
143
  disableDate: Boolean,
138
144
  formatDate: Boolean,
139
145
  readonly: Boolean,
140
- disabled:Boolean,
146
+ disabled: Boolean,
141
147
  required: Boolean,
142
- range:Boolean,
143
- multiCalendars:Boolean,
148
+ range: Boolean,
149
+ multiCalendars: Boolean,
144
150
  autoApply: {
145
- type:Boolean,
146
- default: true
151
+ type: Boolean,
152
+ default: true,
147
153
  },
148
154
  inputFilled: {
149
- type:Boolean,
150
- default: false
155
+ type: Boolean,
156
+ default: false,
151
157
  },
152
158
  config: {
153
- type: Object, required: false, default: () => {}
154
- }
155
- });
156
- const emit = defineEmits(["update:modelValue"]);
157
- const { modelValue, isUtc, clearIcon } = toRefs(props);
159
+ type: Object,
160
+ required: false,
161
+ default: () => {},
162
+ },
163
+ })
164
+ const emit = defineEmits(['update:modelValue'])
165
+ const { isUtc, clearIcon } = toRefs(props)
158
166
  // const startDate = ref(new Date());
159
167
  // const endDate = ref(new Date(new Date().setDate(startDate.value.getDate() + 7)));
160
168
 
@@ -170,45 +178,51 @@ const datepicker = ref(props.modelValue || (props.range ? [] : null))
170
178
  //Date clear
171
179
  watch(
172
180
  () => props.modelValue,
173
- (newValue) => {
174
- if (newValue === null || newValue === undefined || (Array.isArray(newValue) && newValue.length === 0)) {
175
- datepicker.value = props.range ? [] : null;;
181
+ newValue => {
182
+ if (
183
+ newValue === null ||
184
+ newValue === undefined ||
185
+ (Array.isArray(newValue) && newValue.length === 0)
186
+ ) {
187
+ datepicker.value = props.range ? [] : null
176
188
  } else {
177
- datepicker.value = newValue;
189
+ datepicker.value = newValue
178
190
  }
179
191
  },
180
- { immediate: true }
181
- );
192
+ { immediate: true },
193
+ )
182
194
 
183
- watch(
184
- datepicker,
185
- (newDate) => {
186
- emit("update:modelValue", newDate);
187
- }
188
- );
195
+ const handleDate = (modelData: any) => {
196
+ datepicker.value = modelData
197
+ emit('update:modelValue', modelData)
198
+ }
189
199
 
190
200
  const disabledDates = (date: Date) => {
191
- const today = new Date();
192
- today.setHours(0, 0, 0, 0);
193
- return date < today;
194
- };
201
+ const today = new Date()
202
+ today.setHours(0, 0, 0, 0)
203
+ return date < today
204
+ }
195
205
 
196
206
  const getIconClass = () => {
197
207
  switch (props.iconType) {
198
- case "startIcon":
199
- return "pl-12 pr-4";
200
- case "endIcon":
201
- return "pr-12 pl-4";
208
+ case 'startIcon':
209
+ return 'pl-12 pr-4'
210
+ case 'endIcon':
211
+ return 'pr-12 pl-4'
202
212
  default:
203
- return "px-4";
213
+ return 'px-4'
204
214
  }
205
- };
206
-
207
-
215
+ }
208
216
 
209
- const iconshowLeft = computed(() => (props.iconType === 'startIcon' ? "46px" : "16px"));
210
- const iconshowRight = computed(() => (props.iconType === 'endIcon' ? "46px" : "16px"));
211
- const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '0px'));
217
+ const iconshowLeft = computed(() =>
218
+ props.iconType === 'startIcon' ? '46px' : '16px',
219
+ )
220
+ const iconshowRight = computed(() =>
221
+ props.iconType === 'endIcon' ? '46px' : '16px',
222
+ )
223
+ const clearIconRight = computed(() =>
224
+ props.iconType === 'endIcon' ? '40px' : '0px',
225
+ )
212
226
  </script>
213
227
 
214
228
  <style lang="scss">
@@ -217,10 +231,10 @@ const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '
217
231
  --dp-menu-min-width: 232px;
218
232
  }
219
233
  .dp__theme_light {
220
- --dp-primary-color: rgba(139, 92, 246, 1);
221
- --dp-row-margin: 2px 0;
222
- --dp-cell-size: 36px;
223
- }
234
+ --dp-primary-color: rgba(139, 92, 246, 1);
235
+ --dp-row-margin: 2px 0;
236
+ --dp-cell-size: 36px;
237
+ }
224
238
 
225
239
  .eui-datepicker {
226
240
  @apply min-w-56;
@@ -231,10 +245,10 @@ const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '
231
245
  padding-right: v-bind(iconshowRight);
232
246
  }
233
247
  .dp__input.dp__input_focus {
234
- @apply ring-2 ring-purple-600 rounded-2xl ring-inset h-[3.365rem];
248
+ @apply ring-2 ring-purple-600 rounded-2xl ring-inset h-[3.365rem];
235
249
  }
236
250
  .dp--clear-btn {
237
- right: v-bind(clearIconRight);
251
+ right: v-bind(clearIconRight);
238
252
  }
239
253
  }
240
254
  &.normal {
@@ -243,7 +257,7 @@ const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '
243
257
  @apply py-2 ring-1 ring-gray-100;
244
258
  }
245
259
  .dp__input.dp__input_focus {
246
- @apply ring-2 h-10 rounded-md ring-purple-600;
260
+ @apply ring-2 h-10 rounded-md ring-purple-600;
247
261
  }
248
262
  }
249
263
  }
@@ -261,19 +275,18 @@ const clearIconRight = computed(() => (props.iconType === 'endIcon' ? '40px' : '
261
275
  color: #fff;
262
276
  }
263
277
  }
264
- .dp__calendar_header {
265
- @apply text-sm font-medium;
266
- }
267
- .dp__cell_inner {
268
- height: var(--dp-cell-size);
269
- width: var(--dp-cell-size);
270
- @apply text-sm font-normal;
271
-
272
- }
273
- .dp__month_year_wrap {
274
- @apply text-sm font-semibold;
275
- }
276
- .dp__calendar_row {
277
- margin: var(--dp-row-margin);
278
- }
278
+ .dp__calendar_header {
279
+ @apply text-sm font-medium;
280
+ }
281
+ .dp__cell_inner {
282
+ height: var(--dp-cell-size);
283
+ width: var(--dp-cell-size);
284
+ @apply text-sm font-normal;
285
+ }
286
+ .dp__month_year_wrap {
287
+ @apply text-sm font-semibold;
288
+ }
289
+ .dp__calendar_row {
290
+ margin: var(--dp-row-margin);
291
+ }
279
292
  </style>
@@ -1,18 +1,47 @@
1
1
  <template>
2
2
  <div>
3
3
  <label
4
- v-if="!inputFilled && label"
5
- :for="`${name}-${id}`"
6
- :class="[
7
- 'text-xs w-full text-gray-500 cursor-pointer font-medium',
8
- required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
9
- ]"
10
- >
11
- {{ label }}
12
- </label>
4
+ v-if="!inputFilled && label"
5
+ :for="`${name}-${id}`"
6
+ :class="[
7
+ 'text-xs w-full text-gray-500 cursor-pointer font-medium',
8
+ required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
9
+ ]"
10
+ >
11
+ {{ label }}
12
+ </label>
13
13
  <div
14
- :class="[{'pointer-events-none cursor-not-allowed': disabled}, {'h-14 rounded-2xl focus-within:border-purple-600 focus-within:ring-1 focus-within:ring-purple-600 border border-gray-100': inputFilled}, 'group cursor-pointer relative w-full mb-2 overflow-hidden']"
14
+ :class="[
15
+ 'relative',
16
+ { 'pointer-events-none cursor-not-allowed': disabled },
17
+ {
18
+ 'h-14 rounded-2xl focus-within:border-purple-600 focus-within:ring-1 focus-within:ring-purple-600 border border-gray-100':
19
+ inputFilled,
20
+ },
21
+ 'group cursor-pointer relative w-full mb-2 overflow-hidden',
22
+ ]"
15
23
  >
24
+ <button
25
+ :class="inputValue ? ' absolute inset-y-0 right-3 ' : ' hidden '"
26
+ @click="emit('update:modelValue', '')"
27
+ >
28
+ <svg
29
+ xmlns="http://www.w3.org/2000/svg"
30
+ fill="none"
31
+ viewBox="0 0 24 24"
32
+ stroke-width="1.5"
33
+ stroke="currentColor"
34
+ class="size-5"
35
+ >
36
+ <!-- <path stroke-linecap="round" stroke-linejoin="round" d="m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
37
+ -->
38
+ <path
39
+ stroke-linecap="round"
40
+ stroke-linejoin="round"
41
+ d="M6 18 18 6M6 6l12 12"
42
+ />
43
+ </svg>
44
+ </button>
16
45
  <label
17
46
  v-if="inputFilled"
18
47
  :for="`${name}-${id}`"
@@ -23,30 +52,39 @@
23
52
  : 'top-1/2 text-sm w-full text-gray-700 cursor-pointer h-14 pt-5 pb-4',
24
53
  disabled ? 'cursor-not-allowed bg-gray-50 z-10' : 'z-0 bg-white',
25
54
  required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
26
- 'absolute font-medium left-0 px-4 -translate-y-1/2 duration-300 group-focus-within:top-3.5 group-focus-within:text-xs group-focus-within:text-gray-400 rounded-2xl group-focus-within:bg-transparent group-focus-within:-translate-y-1/2 group-focus-within:ring-transparent group-focus-within:h-auto group-focus-within:py-0 first-letter:capitalize transition-all ease-in-out'
55
+ 'absolute font-medium left-0 px-4 -translate-y-1/2 duration-300 group-focus-within:top-3.5 group-focus-within:text-xs group-focus-within:text-gray-400 rounded-2xl group-focus-within:bg-transparent group-focus-within:-translate-y-1/2 group-focus-within:ring-transparent group-focus-within:h-auto group-focus-within:py-0 first-letter:capitalize transition-all ease-in-out',
27
56
  ]"
28
57
  >
29
- {{ label || 'Label' }}
58
+ {{ label || "Label" }}
30
59
  </label>
31
60
  <div
32
61
  v-if="icon && iconType"
33
- :class="['absolute inset-y-0 flex items-center pointer-events-none', iconType === 'startIcon' ? 'left-0 pl-3' : 'right-0 pr-3', disabled ? 'z-20': '']"
62
+ :class="[
63
+ 'absolute inset-y-0 flex items-center pointer-events-none',
64
+ iconType === 'startIcon' ? 'left-0 pl-3' : 'right-0 pr-3',
65
+ disabled ? 'z-20' : '',
66
+ ]"
34
67
  >
35
- <component
36
- :is="icon"
37
- class="text-gray-400 size-6"
38
- aria-hidden="true"
39
- />
68
+ <component :is="icon" class="text-gray-400 size-6" aria-hidden="true" />
40
69
  </div>
41
70
  <input
42
71
  :id="`${name}-${id}`"
43
72
  ref="input"
44
- :type="type"
73
+ :type="type === 'search' ? 'text' : type"
45
74
  :value="modelValue"
46
75
  :placeholder="placeholder"
47
76
  :name="name"
48
- :class="['z-10 block placeholder:text-gray-400 focus:outline-none text-sm font-medium appearance-none disabled:opacity-75 autofill:bg-white leading-6 transition-all duration-100 border-none outline-none', inputFilled ? 'pt-6 pb-3 rounded-2xl size-full' : 'py-3 h-10 w-full ring-1 ring-gray-100 focus-within:ring-purple-600 focus-within:ring-2 ring-inset', !inputFilled && rounded ? 'rounded-2xl' : 'rounded-md', disabled ? 'cursor-not-allowed' : 'cursor-text', getIconClass(), !inputFilled && className]"
49
-
77
+ :class="[
78
+ 'z-10 block placeholder:text-gray-400 focus:outline-none text-sm font-medium appearance-none disabled:opacity-75 autofill:bg-white leading-6 transition-all duration-100 border-none outline-none',
79
+ inputFilled
80
+ ? 'pt-6 pb-3 rounded-2xl size-full'
81
+ : 'py-3 h-10 w-full ring-1 ring-gray-100 focus-within:ring-purple-600 focus-within:ring-2 ring-inset',
82
+ !inputFilled && rounded ? 'rounded-2xl' : 'rounded-md',
83
+ disabled ? 'cursor-not-allowed' : 'cursor-text',
84
+ getIconClass(),
85
+ !inputFilled && className,
86
+ 'pr-8'
87
+ ]"
50
88
  :required="required"
51
89
  :disabled="disabled"
52
90
  :readonly="readonly"
@@ -124,10 +162,10 @@ const props = defineProps({
124
162
  default: false,
125
163
  },
126
164
  inputFilled: {
127
- type:Boolean,
128
- default: false
165
+ type: Boolean,
166
+ default: false,
129
167
  },
130
- rounded:Boolean,
168
+ rounded: Boolean,
131
169
  className: {
132
170
  type: Array as PropType<string[]>,
133
171
  required: false,
@@ -1,5 +0,0 @@
1
- import _sfc_main from "/Users/somnath/Documents/Workspace/Edvoy/edvoy-ui-v2/src/components/checkbox/EUICheckbox.vue?vue&type=script&setup=true&lang.ts";
2
- export * from "/Users/somnath/Documents/Workspace/Edvoy/edvoy-ui-v2/src/components/checkbox/EUICheckbox.vue?vue&type=script&setup=true&lang.ts";
3
- import "/Users/somnath/Documents/Workspace/Edvoy/edvoy-ui-v2/src/components/checkbox/EUICheckbox.vue?vue&type=style&index=0&lang.scss";
4
- export default _sfc_main;
5
- //# sourceMappingURL=EUICheckbox.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EUICheckbox.vue.d.ts","sourceRoot":"","sources":["../src/components/checkbox/EUICheckbox.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iIAAiI,CAAC;AACxJ,cAAc,iIAAiI,CAAC;AAChJ,OAAO,+HAA+H,CAAC;AACvI,eAAe,SAAS,CAAC"}
@@ -1,5 +0,0 @@
1
- import _sfc_main from "/Users/somnath/Documents/Workspace/Edvoy/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=script&setup=true&lang.ts";
2
- export * from "/Users/somnath/Documents/Workspace/Edvoy/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=script&setup=true&lang.ts";
3
- import "/Users/somnath/Documents/Workspace/Edvoy/edvoy-ui-v2/src/components/button/EUIButton.vue?vue&type=style&index=0&lang.scss";
4
- export default _sfc_main;
5
- //# sourceMappingURL=EUIButton.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EUIButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/button/EUIButton.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,6HAA6H,CAAC;AACpJ,cAAc,6HAA6H,CAAC;AAC5I,OAAO,2HAA2H,CAAC;AACnI,eAAe,SAAS,CAAC"}