edvoyui-component-library-test-flight 0.0.103 → 0.0.104

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.
@@ -1 +1 @@
1
- {"version":3,"file":"UCheckbox.vue.d.ts","sourceRoot":"","sources":["../../src/components/table/UCheckbox.vue"],"names":[],"mappings":"AACA,cAAc,4FAA4F,CAAC;AA6B3G,OAAO,qGAAqG,CAAC;;AAE7G,wBAAiF"}
1
+ {"version":3,"file":"UCheckbox.vue.d.ts","sourceRoot":"","sources":["../../src/components/table/UCheckbox.vue"],"names":[],"mappings":"AACA,cAAc,4FAA4F,CAAC;AA4B3G,OAAO,qGAAqG,CAAC;;AAE7G,wBAAiF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "edvoyui-component-library-test-flight",
3
3
  "private": false,
4
- "version": "0.0.103",
4
+ "version": "0.0.104",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/",
@@ -6,8 +6,13 @@ import {
6
6
  EUIStudentPagination,
7
7
  EUIDashboardTable,
8
8
  EUIPagination,
9
+ UTable,
10
+ UCheckbox,
11
+ GrowthTable,
9
12
  } from "..";
10
13
  import {
14
+ growthTableData,
15
+ growthTableHeaders,
11
16
  studentData,
12
17
  studentHeader,
13
18
  tableData,
@@ -128,15 +133,15 @@ export const StudentTable: Story = {
128
133
  },
129
134
  render: (args) => ({
130
135
  components: {
131
- EUITable,
132
- EUITableCheckbox,
136
+ UTable,
137
+ UCheckbox,
133
138
  EUIPageLimit,
134
139
  EUIStudentPagination,
135
140
  },
136
141
  setup() {
137
142
  return { args };
138
143
  },
139
- template: `<EUITable v-bind="args">
144
+ template: `<UTable v-bind="args">
140
145
  <template #item.firstName="{ row, rowIndex }">
141
146
  <div class="space-y-0.5">
142
147
  <div class="block text-sm font-medium leading-snug">
@@ -151,7 +156,7 @@ export const StudentTable: Story = {
151
156
  {{ row?.activeUser?.user?.firstName }}
152
157
  {{ row?.activeUser?.user?.lastName }}
153
158
  </template>
154
- </EUITable>`,
159
+ </UTable>`,
155
160
  }),
156
161
  };
157
162
 
@@ -192,4 +197,104 @@ export const DashboardTable: Story = {
192
197
  </template>
193
198
  </EUIDashboardTable>`,
194
199
  }),
200
+ };
201
+
202
+ export const NormalTable: Story = {
203
+ args: {
204
+ headers: studentHeader,
205
+ items: studentData,
206
+ checkable: true,
207
+ paginated: true,
208
+ perPage: 10,
209
+ total: studentData.length,
210
+ currentPage: 1,
211
+ },
212
+ render: (args) => ({
213
+ components: {
214
+ EUITable,
215
+ EUITableCheckbox,
216
+ EUIPageLimit,
217
+ EUIStudentPagination,
218
+ },
219
+ setup() {
220
+ return { args };
221
+ },
222
+ template: `<EUITable v-bind="args">
223
+ <template #item.firstName="{ row, rowIndex }">
224
+ <div class="space-y-0.5">
225
+ <div class="block text-sm font-medium leading-snug">
226
+ {{row?.firstName + " " + row?.lastName }}
227
+ </div>
228
+ <div class="text-xs font-medium text-gray-900 leading-[normal]">
229
+ {{ row?.referenceId }}
230
+ </div>
231
+ </div>
232
+ </template>
233
+ <template #item.activeUser="{ row, rowIndex }">
234
+ {{ row?.activeUser?.user?.firstName }}
235
+ {{ row?.activeUser?.user?.lastName }}
236
+ </template>
237
+ </EUITable>`,
238
+ }),
239
+ };
240
+
241
+ export const DashboardGrowthTable: Story = {
242
+ args: {
243
+ checkable: true,
244
+ paginated: true,
245
+ perPage: 10,
246
+ total: studentData.length,
247
+ currentPage: 1,
248
+ headers: growthTableHeaders,
249
+ items: growthTableData,
250
+ },
251
+ render: (args) => ({
252
+ components: {
253
+ GrowthTable,
254
+ EUITableCheckbox,
255
+ EUIPageLimit,
256
+ EUIPagination,
257
+ },
258
+ setup() {
259
+ return { args };
260
+ },
261
+ template: `<GrowthTable v-bind="args">
262
+ <template #item.firstName="{ row, rowIndex }">
263
+ <div class="space-y-0.5">
264
+ <div class="block text-sm font-medium leading-snug">
265
+ {{row?.firstName + " " + row?.lastName }}
266
+ </div>
267
+ <div class="text-xs font-medium text-gray-900 leading-[normal]">
268
+ {{ row?.referenceId }}
269
+ </div>
270
+ </div>
271
+ </template>
272
+
273
+ <template #item.active_allagents="{ row, rowIndex }">
274
+ <div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
275
+ <span v-for="(data, idx) in row?.active_allagents" >{{ data.value || '-' }}</span>
276
+ </div>
277
+ </template>
278
+ <template #item.active_active_allagents="{ row, rowIndex }">
279
+ <div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
280
+ <span v-for="(data, idx) in row?.active_active_allagents">{{ data.value || '-' }}</span>
281
+ </div>
282
+ </template>
283
+ <template #item.active_dormant="{ row, rowIndex }">
284
+ <div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
285
+ <span v-for="(data, idx) in row?.active_dormant" >{{ data.value || '-' }}</span>
286
+ </div>
287
+ </template>
288
+ <template #item.totalDepositCount="{ row, rowIndex }">
289
+ <div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
290
+ <span v-for="(data, idx) in row?.totalDepositCount" >{{ data.value || '-' }}</span>
291
+ </div>
292
+ </template>
293
+ <template #item.totalStudentCount="{ row, rowIndex }">
294
+ <div class="flex flex-row items-center gap-4 justify-between bg-violet-50 pl-2 pr-10 rounded-[0.625rem] py-2 h-full">
295
+ <span v-for="(data, idx) in row?.totalStudentCount">{{ data.value || '-' }}</span>
296
+ </div>
297
+ </template>
298
+ </GrowthTable>`,
299
+ }),
195
300
  };
@@ -2,7 +2,6 @@
2
2
  <label :class="classes">
3
3
  <input
4
4
  v-model="selected"
5
- data-test="checkbox-toggle"
6
5
  type="checkbox"
7
6
  :value="value"
8
7
  v-bind="attrs"
@@ -101,26 +100,33 @@ export default {
101
100
  .ui-checkbox {
102
101
  @apply inline-flex items-center cursor-pointer;
103
102
  &__input {
104
- @apply w-5 h-5 flex-shrink-0 border border-solid border-gray-200 bg-white appearance-none inline-block select-none cursor-pointer align-middle rounded relative;
103
+ @apply w-5 h-5 flex-shrink-0 border border-solid border-gray-200 bg-white appearance-none inline-block select-none cursor-pointer align-middle rounded relative before:content-[''] before:transform before:translate-x-1/2 before:-translate-y-1/2 before:z-[-1] before:absolute before:top-1/2 before:right-1/2 before:block before:size-9 before:rounded-full before:bg-violet-100 before:opacity-0 before:transition-opacity hover:before:opacity-75;
105
104
  &::after {
106
- @apply absolute hidden border-solid inset-x-0 top-0 m-auto w-1.5 h-2.5 bottom-0.5;
105
+ @apply absolute hidden border-solid inset-x-0 top-0 m-auto w-1.5 h-2.5 bottom-0.5 scale-100;
107
106
  content: "";
108
- border-width: 0 3px 3px 0;
107
+ border-width: 0 2px 2px 0;
109
108
  -webkit-transform: rotate(45deg);
110
109
  -ms-transform: rotate(45deg);
111
110
  transform: rotate(45deg);
111
+ transform: translate3d(0, 1, 0);
112
+ transition: all 0.2s ease;
112
113
  }
113
114
  &:hover {
114
- @apply bg-purple-100 border-purple-200;
115
+ @apply bg-purple-100 border-purple-500;
115
116
  }
116
117
  &:checked {
117
- @apply bg-white border-purple-600;
118
+ transition: all 0.3s ease;
119
+ transform: translate3d(0, 1, 0);
120
+ @apply bg-purple-700 border-purple-700;
118
121
  &::after {
119
- @apply block border-purple-700;
122
+ @apply block border-white;
123
+ }
124
+ &:focus {
125
+ @apply bg-purple-700;
120
126
  }
121
127
  }
122
128
  &:focus {
123
- @apply outline-none border-2 border-purple-700 bg-purple-100;
129
+ @apply outline-none border-2 border-purple-700 bg-purple-200;
124
130
  }
125
131
  &:disabled {
126
132
  @apply bg-gray-300 border-gray-100 cursor-not-allowed;
package/src/style.scss CHANGED
@@ -29,7 +29,7 @@
29
29
  @apply bg-transparent rounded-full;
30
30
  }
31
31
  &:hover::-webkit-scrollbar-thumb {
32
- @apply bg-gray-400;
32
+ @apply bg-gray-300;
33
33
  }
34
34
  }
35
35
  }