classcard-ui 0.2.210 → 0.2.214

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 (174) hide show
  1. package/README.md +0 -0
  2. package/dist/classcard-ui.common.js +151 -173
  3. package/dist/classcard-ui.common.js.map +1 -1
  4. package/dist/classcard-ui.css +1 -3
  5. package/dist/classcard-ui.umd.js +151 -173
  6. package/dist/classcard-ui.umd.js.map +1 -1
  7. package/dist/classcard-ui.umd.min.js +2 -2
  8. package/dist/classcard-ui.umd.min.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/App.vue +0 -0
  11. package/src/components/CAlerts/CAlerts.vue +0 -0
  12. package/src/components/CAlerts/index.js +0 -0
  13. package/src/components/CAnchorTabs/CAnchorTabs.vue +0 -0
  14. package/src/components/CAnchorTabs/index.js +0 -0
  15. package/src/components/CAnchorTag/CAnchorTag.vue +0 -0
  16. package/src/components/CAnchorTag/index.js +0 -0
  17. package/src/components/CAvatar/CAvatar.vue +0 -0
  18. package/src/components/CAvatar/index.js +0 -0
  19. package/src/components/CAvatarGroup/CAvatarGroup.vue +0 -0
  20. package/src/components/CAvatarGroup/index.js +0 -0
  21. package/src/components/CBasicTable/CBasicTable.vue +0 -0
  22. package/src/components/CBasicTable/index.js +0 -0
  23. package/src/components/CBreadcrumbs/CBreadcrumbs.vue +0 -0
  24. package/src/components/CBreadcrumbs/index.js +0 -0
  25. package/src/components/CButton/CButton.vue +0 -0
  26. package/src/components/CButton/index.js +0 -0
  27. package/src/components/CButtonGroup/CButtonGroup.vue +0 -0
  28. package/src/components/CButtonGroup/index.js +0 -0
  29. package/src/components/CButtonIcon/CButtonIcon.vue +0 -0
  30. package/src/components/CButtonIcon/index.js +0 -0
  31. package/src/components/CButtonLink/CButtonLink.vue +0 -0
  32. package/src/components/CButtonLink/index.js +0 -0
  33. package/src/components/CButtonSelect/CButtonSelect.vue +0 -0
  34. package/src/components/CButtonSelect/index.js +0 -0
  35. package/src/components/CButtonWithDropdown/CButtonWithDropdown.vue +0 -0
  36. package/src/components/CButtonWithDropdown/index.js +0 -0
  37. package/src/components/CCard/CCard.vue +0 -0
  38. package/src/components/CCard/index.js +0 -0
  39. package/src/components/CCheckbox/CCheckbox.vue +0 -0
  40. package/src/components/CCheckbox/index.js +0 -0
  41. package/src/components/CCollapsibleSection/CCollapsibleSection.vue +0 -0
  42. package/src/components/CCollapsibleSection/index.js +0 -0
  43. package/src/components/CColorDots/CColorDots.vue +0 -0
  44. package/src/components/CColorDots/index.js +0 -0
  45. package/src/components/CConfirmActionModal/CConfirmActionModal.vue +0 -0
  46. package/src/components/CConfirmActionModal/index.js +0 -0
  47. package/src/components/CDatepicker/CDatepicker.vue +0 -1
  48. package/src/components/CDatepicker/index.js +0 -0
  49. package/src/components/CDualSelect/CDualSelect.vue +0 -0
  50. package/src/components/CDualSelect/index.js +0 -0
  51. package/src/components/CEditor/CEditor.vue +0 -0
  52. package/src/components/CEditor/index.js +0 -0
  53. package/src/components/CFormSectionHeading/CFormSectionHeading.vue +0 -0
  54. package/src/components/CFormSectionHeading/index.js +0 -0
  55. package/src/components/CGroupedSelect/CGroupedSelect.vue +0 -0
  56. package/src/components/CGroupedSelect/index.js +0 -0
  57. package/src/components/CIcon/CIcon.vue +0 -0
  58. package/src/components/CIcon/index.js +0 -0
  59. package/src/components/CIconDropdown/CIconDropdown.vue +0 -0
  60. package/src/components/CIconDropdown/index.js +0 -0
  61. package/src/components/CInput/CInput.vue +0 -0
  62. package/src/components/CInput/index.js +0 -0
  63. package/src/components/CInputAddon/CInputAddon.vue +1 -1
  64. package/src/components/CInputAddon/index.js +0 -0
  65. package/src/components/CInputEmail/CInputEmail.vue +0 -0
  66. package/src/components/CInputEmail/index.js +0 -0
  67. package/src/components/CModalHeading/CModalHeading.vue +0 -0
  68. package/src/components/CModalHeading/index.js +0 -0
  69. package/src/components/CModuleHelpLinks/CModuleHelpLinks.vue +0 -0
  70. package/src/components/CModuleHelpLinks/index.js +0 -0
  71. package/src/components/CMultiselect/CMultiselect.vue +2 -2
  72. package/src/components/CMultiselect/index.js +0 -0
  73. package/src/components/CMultiselectr/CMultiselectr.vue +3 -2
  74. package/src/components/CMultiselectr/index.js +0 -0
  75. package/src/components/CPageHeading/CPageHeading.vue +0 -0
  76. package/src/components/CPageHeading/index.js +0 -0
  77. package/src/components/CPagination/CPagination.vue +71 -72
  78. package/src/components/CPagination/index.js +0 -0
  79. package/src/components/CPhoneNumber/CPhoneNumber.vue +0 -0
  80. package/src/components/CPhoneNumber/index.js +0 -0
  81. package/src/components/CRadio/CRadio.vue +1 -4
  82. package/src/components/CRadio/index.js +0 -0
  83. package/src/components/CRangeSlider/CRangeSlider.vue +0 -0
  84. package/src/components/CRangeSlider/index.js +0 -0
  85. package/src/components/CReorderableStackedList/CReorderableStackedList.vue +0 -0
  86. package/src/components/CReorderableStackedList/index.js +0 -0
  87. package/src/components/CSelect/CSelect.vue +0 -0
  88. package/src/components/CSelect/index.js +0 -0
  89. package/src/components/CSmallTimeline/CSmallTimeline.vue +0 -0
  90. package/src/components/CSmallTimeline/index.js +0 -0
  91. package/src/components/CStackedList/CStackedList.vue +0 -0
  92. package/src/components/CStackedList/index.js +0 -0
  93. package/src/components/CStats/CStats.vue +0 -0
  94. package/src/components/CStats/index.js +0 -0
  95. package/src/components/CSwitch/CSwitch.vue +2 -6
  96. package/src/components/CSwitch/index.js +0 -0
  97. package/src/components/CTable/CTable.vue +2 -8
  98. package/src/components/CTable/index.js +0 -0
  99. package/src/components/CTabs/CTabs.vue +0 -0
  100. package/src/components/CTabs/index.js +0 -0
  101. package/src/components/CTag/CTag.vue +0 -0
  102. package/src/components/CTag/index.js +0 -0
  103. package/src/components/CTextarea/CTextarea.vue +6 -1
  104. package/src/components/CTextarea/index.js +0 -0
  105. package/src/components/CTimeline/CTimeline.vue +0 -0
  106. package/src/components/CTimeline/index.js +0 -0
  107. package/src/components/CUpload/CUpload.vue +0 -0
  108. package/src/components/CUpload/index.js +0 -0
  109. package/src/components/index.js +0 -0
  110. package/src/icons.js +6 -5
  111. package/src/main.js +0 -1
  112. package/src/stories/CAlerts.stories.js +0 -0
  113. package/src/stories/CAnchorTabs.stories.js +0 -0
  114. package/src/stories/CAnchorTag.stories.js +0 -0
  115. package/src/stories/CAvatar.stories.js +0 -0
  116. package/src/stories/CAvatarGroup.stories.js +0 -0
  117. package/src/stories/CBasicTable.stories.js +0 -0
  118. package/src/stories/CBreadcrumbs.stories.js +0 -0
  119. package/src/stories/CButton.stories.js +0 -0
  120. package/src/stories/CButtonGroup.stories.js +0 -0
  121. package/src/stories/CButtonIcon.stories.js +0 -0
  122. package/src/stories/CButtonLink.stories.js +0 -0
  123. package/src/stories/CButtonSelect.stories.js +0 -0
  124. package/src/stories/CButtonWithDropdown.stories.js +0 -0
  125. package/src/stories/CCard.stories.js +0 -0
  126. package/src/stories/CCheckbox.stories.js +0 -0
  127. package/src/stories/CCollapsibleSection.stories.js +0 -0
  128. package/src/stories/CColorDots.stories.js +0 -0
  129. package/src/stories/CConfirmActionModal.stories.js +0 -0
  130. package/src/stories/CDatepicker.stories.js +0 -0
  131. package/src/stories/CDualSelect.stories.js +0 -0
  132. package/src/stories/CEditor.stories.js +0 -0
  133. package/src/stories/CFormSectionHeading.stories.js +0 -0
  134. package/src/stories/CGroupedSelect.stories.js +0 -0
  135. package/src/stories/CIcon.stories.js +0 -0
  136. package/src/stories/CIconDropdown.stories.js +0 -0
  137. package/src/stories/CInput.stories.js +0 -0
  138. package/src/stories/CInputAddon.stories.js +0 -0
  139. package/src/stories/CInputEmail.stories.js +0 -0
  140. package/src/stories/CModalHeading.stories.js +0 -0
  141. package/src/stories/CModuleHelpLinks.stories.js +0 -0
  142. package/src/stories/CMultiselect.stories.js +0 -0
  143. package/src/stories/CMultiselectr.stories.js +0 -0
  144. package/src/stories/CPageHeading.stories.js +0 -0
  145. package/src/stories/CPagination.stories.js +0 -0
  146. package/src/stories/CPhoneNumber.stories.js +0 -0
  147. package/src/stories/CRadio.stories.js +1 -1
  148. package/src/stories/CRangeSlider.stories.js +0 -0
  149. package/src/stories/CReorderableStackedList.stories.js +0 -0
  150. package/src/stories/CSelect.stories.js +0 -0
  151. package/src/stories/CSmallTimeline.stories.js +0 -0
  152. package/src/stories/CStackedList.stories.js +0 -0
  153. package/src/stories/CStats.stories.js +0 -0
  154. package/src/stories/CSwitch.stories.js +0 -0
  155. package/src/stories/CTable.stories.js +7 -99
  156. package/src/stories/CTabs.stories.js +0 -0
  157. package/src/stories/CTag.stories.js +0 -0
  158. package/src/stories/CTextarea.stories.js +12 -11
  159. package/src/stories/CTimeline.stories.js +0 -0
  160. package/src/stories/CUpload.stories.js +0 -0
  161. package/src/stories/Introduction.stories.mdx +0 -0
  162. package/src/stories/Page.vue +0 -0
  163. package/src/stories/assets/code-brackets.svg +0 -0
  164. package/src/stories/assets/colors.svg +0 -0
  165. package/src/stories/assets/comments.svg +0 -0
  166. package/src/stories/assets/direction.svg +0 -0
  167. package/src/stories/assets/flow.svg +0 -0
  168. package/src/stories/assets/plugin.svg +0 -0
  169. package/src/stories/assets/repo.svg +0 -0
  170. package/src/stories/assets/stackalt.svg +0 -0
  171. package/src/stories/header.css +0 -0
  172. package/src/stories/page.css +0 -0
  173. package/src/stories/utils.css +0 -0
  174. package/src/assets/tailwind.css +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.210",
3
+ "version": "0.2.214",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/src/App.vue CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -41,7 +41,6 @@
41
41
  : 'border-gray-300 border-l-0 text-gray-700',
42
42
  'bg-white w-full p-2 appearance-none border rounded-r-md focus:outline-none focus:border-blue-500 text-sm',
43
43
  ]"
44
- @click="togglePopover()"
45
44
  :readonly="disabled"
46
45
  />
47
46
  </div>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -74,7 +74,7 @@
74
74
  <div
75
75
  v-if="!isValidate"
76
76
  class="right-0 pr-2 flex items-center pointer-events-none text-red-600"
77
- >
77
+ >
78
78
  <c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
79
79
  </div>
80
80
  <span
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -74,7 +74,7 @@ export default {
74
74
  required: true,
75
75
  },
76
76
  label: String,
77
- placeholder: {
77
+ placeholder:{
78
78
  type: String,
79
79
  default: "Start typing... (min 2 characters) to search options",
80
80
  },
@@ -173,7 +173,7 @@ export default {
173
173
  .vs__dropdown-toggle.vs__dropdown-option--highlight {
174
174
  @apply bg-indigo-700 text-white;
175
175
  }
176
- .vs__dropdown-option--highlight {
176
+ .vs__dropdown-option--highlight {
177
177
  @apply bg-indigo-700 text-white;
178
178
  }
179
179
  </style>
File without changes
@@ -1,11 +1,12 @@
1
1
  <template>
2
2
  <div>
3
- <!-- <label class="text-sm text-gray-900">{{label}}</label>
3
+ <!-- <label class="text-sm text-gray-900">{{label}}</label>
4
4
  <multiselect class="mt-1" v-model="value" :options="options" :multiple="true">
5
5
  </multiselect> -->
6
6
  </div>
7
7
  </template>
8
8
  <script>
9
+
9
10
  export default {
10
11
  // name: "CMultiselect",
11
12
  // components: { Multiselect },
@@ -37,7 +38,7 @@ export default {
37
38
  .multiselect__tag-icon:hover,
38
39
  .multiselect__option--highlight,
39
40
  .multiselect__option--highlight::after {
40
- background: #0369a1;
41
+ background: #0369A1;
41
42
  color: #fff;
42
43
  }
43
44
  </style>
File without changes
File without changes
File without changes
@@ -1,85 +1,84 @@
1
1
  <template>
2
- <div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
3
- <div class="flex-1 flex justify-between sm:hidden">
4
- <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
5
- Previous
6
- </a>
7
- <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
8
- Next
9
- </a>
10
- </div>
11
- <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
12
- <div>
13
- <p class="text-sm text-gray-700">
14
- Showing
15
- <span class="font-medium">1</span>
16
- to
17
- <span class="font-medium">10</span>
18
- of
19
- <span class="font-medium">97</span>
20
- results
21
- </p>
2
+ <div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
3
+ <div class="flex-1 flex justify-between sm:hidden">
4
+ <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
5
+ Previous
6
+ </a>
7
+ <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
8
+ Next
9
+ </a>
22
10
  </div>
23
- <div>
24
- <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
25
- <div class="hidden md:-mt-px md:flex">
26
- <div href="#"
27
- @click="currentPageNumber == '1' ? '' : goToPreviousPage()"
28
- class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-r-0 border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
11
+ <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
12
+ <div>
13
+ <p class="text-sm text-gray-700">
14
+ Showing
15
+ <span class="font-medium">1</span>
16
+ to
17
+ <span class="font-medium">10</span>
18
+ of
19
+ <span class="font-medium">97</span>
20
+ results
21
+ </p>
22
+ </div>
23
+ <div>
24
+ <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
25
+ <div class="hidden md:-mt-px md:flex">
26
+ <div href="#"
27
+ @click="currentPageNumber == '1' ? '' : goToPreviousPage()"
28
+ class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-r-0 border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
29
+ :class="
30
+ currentPageNumber == '1'
31
+ ? 'text-gray-400 pointer-events-none'
32
+ : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
33
+ "
34
+ >
35
+ <span class="sr-only">Previous</span>
36
+ <!-- Heroicon name: solid/chevron-left -->
37
+ <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
38
+ <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
39
+ </svg>
40
+ </div>
41
+ <div
42
+ v-for="page in pageRange"
43
+ :key="page"
44
+ :class="[
45
+ page == currentPageNumber
46
+ ? 'z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium'
47
+ : '',
48
+ page === '...' ? 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border border-r-0 text-sm font-medium' : '',
49
+ page !== currentPageNumber && page !== '...'
50
+ ? 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border border-r-0 text-sm font-medium'
51
+ : '',
52
+ ]"
53
+ @click="changePage(page)"
54
+ >
55
+ <div v-if="page === '...'">...</div>
56
+ <div v-else>
57
+ {{ page }}
58
+ </div>
59
+ </div>
60
+ <div href="#"
61
+ class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
62
+ @click="currentPageNumber == lastPageNumber ? '' : goToNextPage()"
29
63
  :class="
30
- currentPageNumber == '1'
31
- ? 'text-gray-400 pointer-events-none'
32
- : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
64
+ currentPageNumber == lastPageNumber
65
+ ? 'text-gray-400 pointer-events-none'
66
+ : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
33
67
  "
34
68
  >
35
- <span class="sr-only">Previous</span>
36
- <!-- Heroicon name: solid/chevron-left -->
37
- <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
38
- <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
39
- </svg>
40
- </div>
41
- <div
42
- v-for="page in pageRange"
43
- :key="page"
44
- :class="[
45
- page == currentPageNumber
46
- ? 'z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium'
47
- : '',
48
- page === '...' ? 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border border-r-0 text-sm font-medium' : '',
49
- page !== currentPageNumber && page !== '...'
50
- ? 'bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border border-r-0 text-sm font-medium'
51
- : '',
52
- ]"
53
- @click="changePage(page)"
54
- >
55
- <div v-if="page === '...'">...</div>
56
- <div v-else>
57
- {{ page }}
69
+ <span class="sr-only">Next</span>
70
+ <!-- Heroicon name: solid/chevron-right -->
71
+ <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
72
+ <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
73
+ </svg>
58
74
  </div>
59
75
  </div>
60
- <div href="#"
61
- class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"
62
- @click="currentPageNumber == lastPageNumber ? '' : goToNextPage()"
63
- :class="
64
- currentPageNumber == lastPageNumber
65
- ? 'text-gray-400 pointer-events-none'
66
- : 'text-gray-500 hover:text-gray-700 group cursor-pointer'
67
- "
68
- >
69
- <span class="sr-only">Next</span>
70
- <!-- Heroicon name: solid/chevron-right -->
71
- <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
72
- <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
73
- </svg>
74
- </div>
75
- </div>
76
- </nav>
76
+ </nav>
77
+ </div>
77
78
  </div>
78
79
  </div>
79
- </div>
80
80
  </template>
81
81
  <script>
82
- // import CIcon from "../CIcon/CIcon.vue";
83
82
  export default {
84
83
  name: "CPagination",
85
84
  props: {
@@ -153,4 +152,4 @@ export default {
153
152
  },
154
153
  },
155
154
  };
156
- </script>
155
+ </script>
File without changes
File without changes
File without changes
@@ -17,10 +17,7 @@
17
17
  :disabled="isDisabled"
18
18
  />
19
19
  </div>
20
- <label
21
- class="ml-3 flex flex-col cursor-pointer"
22
- @click="onChange(item.value)"
23
- >
20
+ <label class="ml-3 flex flex-col cursor-pointer" @click="onChange(item.value)">
24
21
  <span class="block text-sm font-medium">
25
22
  {{ item.label }}
26
23
  </span>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -38,7 +38,6 @@
38
38
  <span v-if="description" class="text-sm text-gray-500">{{ description }}</span>
39
39
  </span>
40
40
  </div>
41
-
42
41
  <!-- large toggle -->
43
42
  <div v-else :class="label == '' ? 'items-center' : 'items-start'" class="flex justify-between cursor-pointer">
44
43
  <span class="flex-grow flex flex-col" id="toggleLabel" v-if="direction == 'left'" @click="switchValue">
@@ -60,7 +59,7 @@
60
59
  class="inline-block h-5 w-5 rounded-full bg-white transform ring-0 transition ease-in-out duration-200"
61
60
  ></span>
62
61
  </button>
63
- <span class="flex flex-col" id="toggleLabel" v-if="direction == 'right'" @click="switchValue">
62
+ <span class="flex flex-col" id="toggleLabel" v-if="direction == 'right'" disabled:opacity-50>
64
63
  <span v-if="label" :class="classes" class="text-gray-900">{{ label }}</span>
65
64
  <span v-if="description" class="text-sm text-gray-500">{{ description }}</span>
66
65
  </span>
@@ -92,9 +91,6 @@ export default {
92
91
  direction: {
93
92
  type: String,
94
93
  },
95
- disabled: {
96
- type: Boolean,
97
- }
98
94
  },
99
95
  data() {
100
96
  return {
@@ -103,7 +99,7 @@ export default {
103
99
  },
104
100
  methods: {
105
101
  switchValue() {
106
- this.isToggle = this.isToggle == 1 ? 0 : 1;
102
+ this.isToggle = this.isToggle === 1 ? 0 : 1;
107
103
  this.$emit("returnToggleValue", this.isToggle);
108
104
  },
109
105
  },
File without changes
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <div>
3
-
4
3
  <div slot="table-actions" v-if="tableActions" class="bg-gray-50 rounded-lg p-3 mb-4">
5
4
  <div class="flex justify-between">
6
5
  <div v-if="searching">
@@ -70,12 +69,6 @@
70
69
  mode="remote"
71
70
  ref="my-table"
72
71
  :styleClass="showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table'"
73
- row-style-class="focus:outline-none"
74
- min-height="400px"
75
- :globalSearch="true"
76
- :isLoading="showLoader"
77
- :totalRows="totalRecords"
78
- :columns="cols"
79
72
  :rows="rows"
80
73
  :search-options="{
81
74
  enabled: searching,
@@ -149,6 +142,7 @@
149
142
  {{ props.formattedRow[props.column.field] }}
150
143
  </span>
151
144
  </template>
145
+
152
146
  <!-- Custom pagination component -->
153
147
  <template v-if="pagination" slot="pagination-bottom">
154
148
  <c-pagination
@@ -206,7 +200,7 @@ export default {
206
200
  VueGoodTable,
207
201
  CPagination,
208
202
  CButtonIcon,
209
- CInput,
203
+ CInput
210
204
  },
211
205
  props: {
212
206
  // To show or hide pagination section
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -14,7 +14,8 @@
14
14
  :placeholder="placeholder"
15
15
  :rows="rows"
16
16
  :class="errorClasses"
17
- class="focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md"
17
+ :disabled="disabled"
18
+ class="focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md disabled:opacity-50"
18
19
  ></textarea>
19
20
  <div
20
21
  v-if="!isValidate"
@@ -55,6 +56,10 @@ export default {
55
56
  errorMessage: {
56
57
  type: String,
57
58
  },
59
+ disabled: {
60
+ type: Boolean,
61
+ default: false,
62
+ },
58
63
  },
59
64
  computed: {
60
65
  errorClasses() {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/icons.js CHANGED
@@ -52,7 +52,8 @@ export default {
52
52
  "M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3",
53
53
  "clipboard-check":
54
54
  "M9 2a1 1 0 000 2h2a1 1 0 100-2H9z M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
55
- cloud: "M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z",
55
+ cloud:
56
+ "M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z",
56
57
  search: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
57
58
  "menu-alt-2": "M4 6h16M4 12h16M4 18h7",
58
59
  close: "M6 18L18 6M6 6l12 12",
@@ -99,7 +100,8 @@ export default {
99
100
  "M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2zM7 8H5v2h2V8zm2 0h2v2H9V8zm6 0h-2v2h2V8z",
100
101
  "check-circle-solid":
101
102
  "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
102
- "folder-solid": "M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z",
103
+ "folder-solid":
104
+ "M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z",
103
105
  "shopping-cart-outline":
104
106
  "M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z",
105
107
  "external-link-outline":
@@ -184,11 +186,10 @@ export default {
184
186
  "M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z",
185
187
  "x-circle-solid":
186
188
  "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",
187
- "x-circle-outline": "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",
189
+ "x-circle-outline":
190
+ "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",
188
191
  "check-circle-outline": "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
189
192
  "play-solid":
190
193
  "M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",
191
- "phone-outgoing-solid":
192
- "M17.924 2.617a.997.997 0 00-.215-.322l-.004-.004A.997.997 0 0017 2h-4a1 1 0 100 2h1.586l-3.293 3.293a1 1 0 001.414 1.414L16 5.414V7a1 1 0 102 0V3a.997.997 0 00-.076-.383z M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z",
193
194
  save: "M7.707 10.293a1 1 0 10-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 11.586V6h5a2 2 0 012 2v7a2 2 0 01-2 2H4a2 2 0 01-2-2V8a2 2 0 012-2h5v5.586l-1.293-1.293zM9 4a1 1 0 012 0v2H9V4z",
194
195
  };
package/src/main.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as components from './components'
2
- import './assets/tailwind.css'
3
2
 
4
3
  const ClasscardUI = {
5
4
  install(Vue) {
File without changes
File without changes
File without changes