edvoyui-component-library-test-flight 0.0.25 → 0.0.27

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 (37) hide show
  1. package/dist/{input/EUIInput.vue.d.ts → EUIInput.vue.d.ts} +1 -1
  2. package/dist/EUIInput.vue.d.ts.map +1 -0
  3. package/dist/button/EUIButton.vue.d.ts.map +1 -0
  4. package/dist/library-vue-ts.cjs.js +21 -21
  5. package/dist/library-vue-ts.es.js +6229 -6201
  6. package/dist/library-vue-ts.umd.js +24 -24
  7. package/dist/modal/EUIModal.vue.d.ts +1 -1
  8. package/dist/modal/EUIModal.vue.d.ts.map +1 -1
  9. package/dist/table/EUIDashboardTable.vue.d.ts +1 -1
  10. package/dist/table/EUITable.vue.d.ts +1 -1
  11. package/package.json +1 -1
  12. package/src/assets/svg/ChevronBigDown.vue +22 -0
  13. package/src/components/HelloWorld.vue +235 -77
  14. package/src/components/checkbox/EUICheckbox.vue +2 -2
  15. package/src/components/datepicker/EUIDatepicker.stories.ts +136 -12
  16. package/src/components/datepicker/EUIDatepicker.vue +41 -15
  17. package/src/components/delete.vue +49 -1
  18. package/src/components/index.ts +0 -1
  19. package/src/components/input/EUIInput.stories.ts +219 -6
  20. package/src/components/input/EUIInput.vue +30 -15
  21. package/src/components/modal/EUIModal.vue +13 -16
  22. package/src/components/select/EUISelect.stories.ts +49 -3
  23. package/src/components/select/EUISelect.vue +79 -34
  24. package/src/components/table/EUIDashboardTable.vue +68 -36
  25. package/src/components/table/EUITable.vue +2 -2
  26. package/src/components/telephone/EUITelephone.stories.ts +164 -8
  27. package/src/components/telephone/EUITelephone.vue +33 -11
  28. package/src/components/textArea/EUITextArea.stories.ts +52 -0
  29. package/src/components/textArea/EUITextArea.vue +36 -5
  30. package/dist/EUIButton.vue.d.ts.map +0 -1
  31. package/dist/input/EUIInput.vue.d.ts.map +0 -1
  32. package/dist/inputNormal/EUIInputNormal.vue.d.ts +0 -5
  33. package/dist/inputNormal/EUIInputNormal.vue.d.ts.map +0 -1
  34. package/src/components/inputNormal/EUIInputNormal.stories.ts +0 -164
  35. package/src/components/inputNormal/EUIInputNormal.vue +0 -161
  36. package/src/components/select/EUISelect.scss +0 -0
  37. /package/dist/{EUIButton.vue.d.ts → button/EUIButton.vue.d.ts} +0 -0
@@ -1,161 +0,0 @@
1
- <template>
2
- <div>
3
- <label
4
- v-if="label"
5
- :for="`${name}-${id}`"
6
- :class="[
7
- 'text-sm w-full text-gray-600 cursor-pointer font-medium',
8
- required && `after:content-['*'] after:ml-0.5 after:text-red-500`,
9
- ]"
10
- >
11
- {{ label }}
12
- </label>
13
- <div
14
- :class="disabled || readonly ? 'pointer-events-none cursor-not-allowed' : ''"
15
- class="relative w-full overflow-hidden cursor-pointer group"
16
- >
17
- <div
18
- v-if="icon && iconType"
19
- class="absolute inset-y-0 flex items-center pointer-events-none"
20
- :class="[
21
- iconType === 'startIcon' ? 'left-0 pl-3' : 'right-0 pr-3',
22
- disabled ? 'cursor-not-allowed' : '',
23
- ]"
24
- >
25
- <component
26
- :is="icon"
27
- class="text-gray-400 size-6"
28
- aria-hidden="true"
29
- />
30
- </div>
31
- <input
32
- :id="`${name}-${id}`"
33
- ref="input"
34
- :type="type"
35
- :value="modelValue"
36
- :placeholder="placeholder"
37
- :name="name"
38
- :class="['z-10 h-10 w-full px-4 py-3 placeholder:text-gray-400 focus:outline-none block text-sm font-medium appearance-none disabled:opacity-75 autofill:bg-white leading-6 ring-1 ring-gray-100 focus-within:ring-purple-600 focus-within:ring-2 ring-inset transition-all duration-100 border-none outline-none', rounded ? 'rounded-2xl' : 'rounded-md', getIconClass(), disabled ? 'cursor-not-allowed' : 'cursor-text', className]"
39
- :required="required"
40
- :disabled="disabled"
41
- :readonly="readonly"
42
- autocomplete="off"
43
- @input="emitInput"
44
- @focus="hasFocus = true"
45
- @blur="hasFocus = false"
46
- />
47
- </div>
48
- <EUIErrorMessage :errors="errors" :name="name" />
49
- </div>
50
- </template>
51
-
52
- <script lang="ts" setup>
53
- import EUIErrorMessage from "../errorMessage/EUIErrorMessage.vue";
54
- import {
55
- defineProps,
56
- defineEmits,
57
- PropType,
58
- ref,
59
- onMounted,
60
- } from "vue";
61
-
62
- const props = defineProps({
63
- errors: { type: Object, required: false, default: () => {} },
64
- type: {
65
- type: String as PropType<
66
- "text" | "number" | "email" | "password" | "search" | "date"
67
- >,
68
- default: "text",
69
- },
70
- modelValue: {
71
- type: [String, Number],
72
- default: "",
73
- },
74
- name: {
75
- type: String,
76
- required: false,
77
- default: "",
78
- },
79
- label: {
80
- type: String,
81
- required: true,
82
- default: "",
83
- },
84
- placeholder: {
85
- type: String,
86
- required: false,
87
- default: "",
88
- },
89
- iconType: {
90
- type: String as PropType<"startIcon" | "endIcon">,
91
- default: "",
92
- },
93
- icon: {
94
- type: [Object, String],
95
- default: "",
96
- },
97
- autoFocus: {
98
- type: Boolean,
99
- required: false,
100
- default: false,
101
- },
102
- disabled: {
103
- type: Boolean,
104
- default: false,
105
- },
106
- required: {
107
- type: Boolean,
108
- default: false,
109
- },
110
- readonly:{
111
- type:Boolean,
112
- default: false
113
- },
114
- rounded:Boolean,
115
- className: {
116
- type: Array as PropType<string[]>,
117
- required: false,
118
- default: () => [],
119
- },
120
- });
121
-
122
- const hasFocus = ref(false);
123
- const input = ref<HTMLInputElement>();
124
- const id = "id"; //generateUID();
125
-
126
- const emit = defineEmits(["update:modelValue"]);
127
- const emitInput = (event: Event) => {
128
- const newValue = (event?.target as HTMLInputElement)?.value;
129
- if (newValue !== undefined) {
130
- emit("update:modelValue", newValue);
131
- }
132
- };
133
-
134
- const getIconClass = () => {
135
- switch (props.iconType) {
136
- case "startIcon":
137
- return "pl-12 pr-4";
138
- case "endIcon":
139
- return "pr-12 pl-4";
140
- }
141
- };
142
-
143
- onMounted(() => {
144
- if (props?.autoFocus) {
145
- input?.value?.focus();
146
- }
147
- });
148
- </script>
149
-
150
- <style lang="scss" scoped>
151
- /* Chrome, Safari, Edge, Opera */
152
- input::-webkit-outer-spin-button,
153
- input::-webkit-inner-spin-button {
154
- -webkit-appearance: none;
155
- margin: 0;
156
- }
157
- /* Firefox */
158
- input[type="number"] {
159
- -moz-appearance: textfield;
160
- }
161
- </style>
File without changes