@knovator/pagecreator-admin 1.2.9 → 1.3.0

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 (167) hide show
  1. package/index.cjs +7876 -0
  2. package/index.css +2 -0
  3. package/index.js +7862 -0
  4. package/package.json +42 -38
  5. package/src/{index.ts → index.d.ts} +0 -1
  6. package/src/lib/api/index.d.ts +10 -0
  7. package/src/lib/api/list.d.ts +56 -0
  8. package/src/lib/components/Page/AddButton/AddButton.d.ts +3 -0
  9. package/src/lib/components/Page/AddButton/{index.ts → index.d.ts} +0 -1
  10. package/src/lib/components/Page/Form/PageForm.d.ts +4 -0
  11. package/src/lib/components/Page/Form/{index.ts → index.d.ts} +0 -1
  12. package/src/lib/components/Page/Page/Page.d.ts +13 -0
  13. package/src/lib/components/Page/Page/{index.ts → index.d.ts} +0 -1
  14. package/src/lib/components/Page/PageFormActions/PageFormActions.d.ts +4 -0
  15. package/src/lib/components/Page/PageFormActions/{index.ts → index.d.ts} +0 -1
  16. package/src/lib/components/Page/PageFormWrapper/PageFormWrapper.d.ts +4 -0
  17. package/src/lib/components/Page/PageFormWrapper/{index.ts → index.d.ts} +0 -1
  18. package/src/lib/components/Page/Pagination/PagePagination.d.ts +3 -0
  19. package/src/lib/components/Page/Pagination/{index.ts → index.d.ts} +0 -1
  20. package/src/lib/components/Page/Search/PageSearch.d.ts +3 -0
  21. package/src/lib/components/Page/Search/{index.tsx → index.d.ts} +0 -1
  22. package/src/lib/components/Page/Table/PageTable.d.ts +4 -0
  23. package/src/lib/components/Page/Table/{index.ts → index.d.ts} +0 -1
  24. package/src/lib/components/Page/{index.ts → index.d.ts} +0 -1
  25. package/src/lib/components/Widget/AddButton/AddButton.d.ts +3 -0
  26. package/src/lib/components/Widget/AddButton/{index.ts → index.d.ts} +0 -1
  27. package/src/lib/components/Widget/Form/ItemsAccordian.d.ts +4 -0
  28. package/src/lib/components/Widget/Form/Tabs/TabItem.d.ts +4 -0
  29. package/src/lib/components/Widget/Form/Tabs/Tabs.d.ts +4 -0
  30. package/src/lib/components/Widget/Form/Tabs/{index.ts → index.d.ts} +0 -1
  31. package/src/lib/components/Widget/Form/WidgetForm.d.ts +4 -0
  32. package/src/lib/components/Widget/Form/{index.ts → index.d.ts} +0 -1
  33. package/src/lib/components/Widget/Pagination/WidgetPagination.d.ts +3 -0
  34. package/src/lib/components/Widget/Pagination/{index.ts → index.d.ts} +0 -1
  35. package/src/lib/components/Widget/Search/WidgetSearch.d.ts +3 -0
  36. package/src/lib/components/Widget/Search/{index.tsx → index.d.ts} +0 -1
  37. package/src/lib/components/Widget/Table/WidgetTable.d.ts +4 -0
  38. package/src/lib/components/Widget/Table/{index.ts → index.d.ts} +0 -1
  39. package/src/lib/components/Widget/Widget/Widget.d.ts +13 -0
  40. package/src/lib/components/Widget/Widget/{index.ts → index.d.ts} +0 -1
  41. package/src/lib/components/Widget/WidgetFormActions/WidgetFormActions.d.ts +4 -0
  42. package/src/lib/components/Widget/WidgetFormActions/{index.ts → index.d.ts} +0 -1
  43. package/src/lib/components/Widget/WidgetFormWrapper/WidgetFormWrapper.d.ts +4 -0
  44. package/src/lib/components/Widget/WidgetFormWrapper/{index.ts → index.d.ts} +0 -1
  45. package/src/lib/components/Widget/{index.tsx → index.d.ts} +0 -1
  46. package/src/lib/components/common/Accordian/Accordian.d.ts +13 -0
  47. package/src/lib/components/common/Accordian/{index.ts → index.d.ts} +0 -1
  48. package/src/lib/components/common/Button/Button.d.ts +4 -0
  49. package/src/lib/components/common/Button/{index.ts → index.d.ts} +0 -1
  50. package/src/lib/components/common/ConfirmPopover/ConfirmPopover.d.ts +4 -0
  51. package/src/lib/components/common/ConfirmPopover/{index.ts → index.d.ts} +0 -1
  52. package/src/lib/components/common/DNDItemsList/DNDItemsList.d.ts +4 -0
  53. package/src/lib/components/common/DNDItemsList/{index.ts → index.d.ts} +0 -1
  54. package/src/lib/components/common/DeleteModal/DeleteModal.d.ts +4 -0
  55. package/src/lib/components/common/DeleteModal/index.d.ts +2 -0
  56. package/src/lib/components/common/Drawer/Drawer.d.ts +9 -0
  57. package/src/lib/components/common/Drawer/{index.ts → index.d.ts} +0 -1
  58. package/src/lib/components/common/Form/Form.d.ts +15 -0
  59. package/src/lib/components/common/Form/SimpleForm.d.ts +18 -0
  60. package/src/lib/components/common/Form/{index.ts → index.d.ts} +0 -1
  61. package/src/lib/components/common/FormActions/FormActions.d.ts +10 -0
  62. package/src/lib/components/common/FormActions/{index.ts → index.d.ts} +0 -1
  63. package/src/lib/components/common/ImageUpload/ImageUpload.d.ts +4 -0
  64. package/src/lib/components/common/ImageUpload/index.d.ts +2 -0
  65. package/src/lib/components/common/Input/Checkbox.d.ts +4 -0
  66. package/src/lib/components/common/Input/Input.d.ts +4 -0
  67. package/src/lib/components/common/Input/ReactSelect.d.ts +4 -0
  68. package/src/lib/components/common/Input/Select.d.ts +4 -0
  69. package/src/lib/components/common/Input/SrcSet.d.ts +4 -0
  70. package/src/lib/components/common/Input/index.d.ts +12 -0
  71. package/src/lib/components/common/Modal/Modal.d.ts +8 -0
  72. package/src/lib/components/common/Modal/index.d.ts +2 -0
  73. package/src/lib/components/common/Pagination/Pagination.d.ts +4 -0
  74. package/src/lib/components/common/Pagination/{index.ts → index.d.ts} +0 -1
  75. package/src/lib/components/common/Table/Table.d.ts +4 -0
  76. package/src/lib/components/common/Table/{index.ts → index.d.ts} +0 -1
  77. package/src/lib/components/common/Toggle/Toggle.d.ts +4 -0
  78. package/src/lib/components/common/Toggle/{index.ts → index.d.ts} +0 -1
  79. package/src/lib/constants/common.d.ts +122 -0
  80. package/src/lib/context/PageContext.d.ts +7 -0
  81. package/src/lib/context/ProviderContext.d.ts +5 -0
  82. package/src/lib/context/WidgetContext.d.ts +7 -0
  83. package/src/lib/helper/utils.d.ts +10 -0
  84. package/src/lib/hooks/usePage.d.ts +37 -0
  85. package/src/lib/hooks/usePagination.d.ts +15 -0
  86. package/src/lib/hooks/useWidget.d.ts +46 -0
  87. package/src/lib/icons/chevronDown.d.ts +4 -0
  88. package/src/lib/icons/chevronLeft.d.ts +4 -0
  89. package/src/lib/icons/chevronRight.d.ts +4 -0
  90. package/src/lib/icons/chevronUp.d.ts +4 -0
  91. package/src/lib/icons/close.d.ts +4 -0
  92. package/src/lib/icons/pencil.d.ts +4 -0
  93. package/src/lib/icons/plus.d.ts +4 -0
  94. package/src/lib/icons/settings.d.ts +4 -0
  95. package/src/lib/icons/trash.d.ts +4 -0
  96. package/src/lib/types/api.d.ts +34 -0
  97. package/src/lib/types/common.d.ts +30 -0
  98. package/src/lib/types/components.d.ts +421 -0
  99. package/src/lib/types/context.d.ts +135 -0
  100. package/index.d.ts +0 -1
  101. package/src/lib/api/index.ts +0 -70
  102. package/src/lib/api/list.ts +0 -59
  103. package/src/lib/components/Page/AddButton/AddButton.tsx +0 -16
  104. package/src/lib/components/Page/Form/PageForm.tsx +0 -194
  105. package/src/lib/components/Page/Page/Page.tsx +0 -151
  106. package/src/lib/components/Page/PageFormActions/PageFormActions.tsx +0 -50
  107. package/src/lib/components/Page/PageFormWrapper/PageFormWrapper.tsx +0 -16
  108. package/src/lib/components/Page/Pagination/PagePagination.tsx +0 -26
  109. package/src/lib/components/Page/Search/PageSearch.tsx +0 -32
  110. package/src/lib/components/Page/Table/PageTable.tsx +0 -36
  111. package/src/lib/components/Widget/AddButton/AddButton.tsx +0 -16
  112. package/src/lib/components/Widget/Form/ItemsAccordian.tsx +0 -354
  113. package/src/lib/components/Widget/Form/Tabs/TabItem.tsx +0 -43
  114. package/src/lib/components/Widget/Form/Tabs/Tabs.tsx +0 -190
  115. package/src/lib/components/Widget/Form/WidgetForm.tsx +0 -771
  116. package/src/lib/components/Widget/Pagination/WidgetPagination.tsx +0 -26
  117. package/src/lib/components/Widget/Search/WidgetSearch.tsx +0 -32
  118. package/src/lib/components/Widget/Table/WidgetTable.tsx +0 -70
  119. package/src/lib/components/Widget/Widget/Widget.tsx +0 -173
  120. package/src/lib/components/Widget/WidgetFormActions/WidgetFormActions.tsx +0 -50
  121. package/src/lib/components/Widget/WidgetFormWrapper/WidgetFormWrapper.tsx +0 -16
  122. package/src/lib/components/common/Accordian/Accordian.tsx +0 -56
  123. package/src/lib/components/common/Button/Button.tsx +0 -45
  124. package/src/lib/components/common/ConfirmPopover/ConfirmPopover.tsx +0 -47
  125. package/src/lib/components/common/DNDItemsList/DNDItemsList.tsx +0 -77
  126. package/src/lib/components/common/DeleteModal/DeleteModal.tsx +0 -72
  127. package/src/lib/components/common/DeleteModal/index.tsx +0 -3
  128. package/src/lib/components/common/Drawer/Drawer.tsx +0 -79
  129. package/src/lib/components/common/Form/Form.tsx +0 -256
  130. package/src/lib/components/common/Form/SimpleForm.tsx +0 -314
  131. package/src/lib/components/common/FormActions/FormActions.tsx +0 -37
  132. package/src/lib/components/common/ImageUpload/ImageUpload.tsx +0 -113
  133. package/src/lib/components/common/ImageUpload/index.tsx +0 -3
  134. package/src/lib/components/common/Input/Checkbox.tsx +0 -25
  135. package/src/lib/components/common/Input/Input.tsx +0 -51
  136. package/src/lib/components/common/Input/ReactSelect.tsx +0 -61
  137. package/src/lib/components/common/Input/Select.tsx +0 -47
  138. package/src/lib/components/common/Input/SrcSet.tsx +0 -143
  139. package/src/lib/components/common/Input/index.ts +0 -20
  140. package/src/lib/components/common/Modal/Modal.tsx +0 -57
  141. package/src/lib/components/common/Modal/index.tsx +0 -3
  142. package/src/lib/components/common/Pagination/Pagination.tsx +0 -88
  143. package/src/lib/components/common/Table/Table.tsx +0 -133
  144. package/src/lib/components/common/Toggle/Toggle.tsx +0 -23
  145. package/src/lib/constants/common.ts +0 -145
  146. package/src/lib/context/PageContext.tsx +0 -100
  147. package/src/lib/context/ProviderContext.tsx +0 -52
  148. package/src/lib/context/WidgetContext.tsx +0 -127
  149. package/src/lib/helper/utils.ts +0 -46
  150. package/src/lib/hooks/usePage.tsx +0 -306
  151. package/src/lib/hooks/usePagination.tsx +0 -41
  152. package/src/lib/hooks/useWidget.tsx +0 -503
  153. package/src/lib/icons/chevronDown.tsx +0 -21
  154. package/src/lib/icons/chevronLeft.tsx +0 -20
  155. package/src/lib/icons/chevronRight.tsx +0 -20
  156. package/src/lib/icons/chevronUp.tsx +0 -21
  157. package/src/lib/icons/close.tsx +0 -21
  158. package/src/lib/icons/pencil.tsx +0 -21
  159. package/src/lib/icons/plus.tsx +0 -23
  160. package/src/lib/icons/settings.tsx +0 -35
  161. package/src/lib/icons/trash.tsx +0 -21
  162. package/src/lib/types/api.ts +0 -44
  163. package/src/lib/types/common.ts +0 -31
  164. package/src/lib/types/components.ts +0 -428
  165. package/src/lib/types/context.ts +0 -184
  166. package/src/styles/index.css +0 -481
  167. /package/src/lib/types/{index.ts → index.d.ts} +0 -0
@@ -1,481 +0,0 @@
1
- @import 'tailwindcss';
2
-
3
- /* Buttons */
4
- .khb_btn {
5
- @apply rounded-lg font-medium text-center m-1 focus:outline-none focus:ring-4;
6
- }
7
- .khb_btn:disabled {
8
- @apply cursor-not-allowed;
9
- }
10
- .khb_btn-primary {
11
- @apply text-white bg-blue-700 hover:bg-blue-800 focus:ring-blue-300;
12
- }
13
- .khb_btn-primary:disabled {
14
- @apply bg-blue-800;
15
- }
16
- .khb_btn-secondary:disabled {
17
- @apply bg-gray-100;
18
- }
19
- .khb_btn-secondary {
20
- @apply text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 focus:ring-gray-200;
21
- }
22
- .khb_btn-success {
23
- @apply text-white bg-green-700 hover:bg-green-800 focus:ring-green-300;
24
- }
25
- .khb_btn-danger {
26
- @apply text-white bg-red-700 hover:bg-red-800 focus:ring-red-300;
27
- }
28
- .khb_btn-danger:disabled {
29
- @apply bg-red-800;
30
- }
31
-
32
- .khb_btn-xs {
33
- @apply text-xs px-1.5 py-1;
34
- }
35
- .khb_btn-sm {
36
- @apply text-sm px-3 py-2;
37
- }
38
- .khb_btn-base {
39
- @apply text-sm px-4 py-2.5;
40
- }
41
- .khb_btn-lg {
42
- @apply text-lg px-5 py-3;
43
- }
44
-
45
- .khb_btn-loader {
46
- @apply inline-block mr-2;
47
- }
48
- /* \ End of Buttons */
49
-
50
- /* Table */
51
- .khb_table-container {
52
- @apply overflow-hidden bg-white border rounded-lg border-gray-200;
53
- }
54
- .khb_table-height {
55
- @apply justify-center overflow-auto;
56
- height: calc(100vh - 252px);
57
- }
58
- .khb_table-wrapper {
59
- @apply overflow-x-auto relative shadow-md sm:rounded-lg;
60
- }
61
- .khb_table {
62
- @apply w-full text-sm text-left text-gray-500;
63
- }
64
- .khb_thead {
65
- @apply text-xs text-gray-700 uppercase bg-gray-50;
66
- }
67
- .khb_table-heading {
68
- @apply py-3 px-6;
69
- }
70
- .khb_table-row {
71
- @apply bg-white border-b hover:bg-gray-50;
72
- }
73
- .khb_table-row-heading {
74
- @apply py-4 px-6 font-medium text-gray-900 whitespace-nowrap;
75
- }
76
- .khb_table-row-data {
77
- @apply py-3 px-5;
78
- }
79
- .khb_table-row-actions {
80
- @apply p-0.5;
81
- }
82
- .khb_actions-update {
83
- @apply rounded-lg font-medium text-center m-1 focus:outline-none focus:ring-4 text-white bg-blue-700 hover:bg-blue-800 focus:ring-blue-300 text-xs px-1.5 py-1;
84
- }
85
- .khb_actions-delete {
86
- @apply rounded-lg font-medium text-center m-1 focus:outline-none focus:ring-4 text-white bg-red-700 hover:bg-red-800 focus:ring-red-300 text-xs px-1.5 py-1;
87
- }
88
- /* \ End of Table */
89
-
90
- /* Pagination */
91
- .khb_pagination {
92
- @apply flex justify-between items-center py-2 px-5;
93
- }
94
- .khb_pagination-total {
95
- @apply text-sm font-normal text-gray-500;
96
- }
97
- .khb_pagination-total-showing {
98
- @apply font-semibold text-gray-900;
99
- }
100
- .khb_pagination-total-items {
101
- @apply font-semibold text-gray-900;
102
- }
103
- .khb_pagination-actions {
104
- @apply inline-flex items-center -space-x-px;
105
- }
106
- .khb_pagination-pager {
107
- @apply flex flex-row items-center px-1;
108
- }
109
- .khb_pagination-pager input {
110
- @apply my-2 w-16;
111
- }
112
- /* \ End of Pagination */
113
-
114
- /* Input */
115
- .khb_input {
116
- @apply bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-1 focus:ring-blue-500 focus:border-blue-500 outline-none w-full;
117
- }
118
- .khb_input:disabled {
119
- @apply bg-gray-100 border-gray-300 text-gray-500 cursor-not-allowed;
120
- }
121
- .khb_input-info {
122
- @apply text-sm text-gray-400 mt-1;
123
- }
124
- .khb_input-error {
125
- @apply text-sm text-red-600;
126
- }
127
- .khb_input-xs {
128
- @apply text-sm p-1.5;
129
- }
130
- .khb_input-sm {
131
- @apply text-sm p-2;
132
- }
133
- .khb_input-base {
134
- @apply text-base p-2.5;
135
- }
136
- .khb_input-label {
137
- @apply block mb-1 text-sm font-medium text-gray-900;
138
- }
139
- .khb_input-label-required {
140
- @apply text-red-600;
141
- }
142
- .khb_input-srcset {
143
- @apply flex flex-row items-center;
144
- }
145
- .khb_input-srcset-items {
146
- @apply space-y-1;
147
- }
148
- .khb_input-color {
149
- @apply h-14;
150
- }
151
- /* \ End of Input */
152
-
153
- /* Drawer */
154
- .khb_drawer-wrapper-1 {
155
- @apply fixed inset-0 overflow-hidden;
156
- }
157
- .khb_drawer-wrapper-2 {
158
- @apply absolute inset-0 overflow-hidden;
159
- }
160
- .khb_drawer-backdrop {
161
- @apply absolute inset-0 transition-opacity bg-black opacity-75 backdrop-blur-sm;
162
- }
163
- .khb_drawer-container-1 {
164
- @apply fixed inset-y-0 right-0 flex max-w-full pl-10;
165
- }
166
- .khb_drawer-container-2 {
167
- @apply relative w-screen max-w-6xl;
168
- }
169
- .khb_drawer-close-section {
170
- @apply absolute top-0 left-0 flex pt-4 pr-2 -ml-8 sm:-ml-10 sm:pr-4;
171
- }
172
- .khb_drawer-close-btn {
173
- @apply flex items-center justify-center w-8 h-8 transition bg-white rounded-full focus:outline-none hover:rotate-90;
174
- }
175
- .khb_sr-only {
176
- @apply sr-only;
177
- }
178
- .khb_drawer-main {
179
- @apply flex flex-col h-full overflow-y-scroll bg-white shadow-xl;
180
- }
181
- .khb_drawer-header {
182
- @apply px-4 py-6 border-b border-slate-400 sm:px-6 bg-slate-300;
183
- }
184
- .khb_drawer-header-title {
185
- @apply text-xl font-medium;
186
- }
187
- .khb_darwer-content {
188
- @apply relative flex-1 px-6 py-6 overflow-auto;
189
- }
190
- .khb_drawer-footer {
191
- @apply flex items-center justify-end px-4 py-4 border-t bg-slate-50 border-slate-400;
192
- }
193
- /* \ End of Drawer */
194
-
195
- /* Utility */
196
- .khb_sr-only {
197
- @apply sr-only;
198
- }
199
- .khb_grid-item-1of3 {
200
- @apply w-1/3 inline-block;
201
- }
202
- .khb_grid-item-1of2 {
203
- @apply w-1/2 inline-block;
204
- }
205
- .khb_padding-right-1 {
206
- @apply pr-1;
207
- }
208
- .khb_padding-left-1 {
209
- @apply pl-1;
210
- }
211
- .khb_align-top {
212
- @apply align-top;
213
- }
214
- .khb_margin-top-0 {
215
- @apply mt-0!;
216
- }
217
- /* \ End of Utility */
218
-
219
- /* Animations */
220
- .khb_drawer-enter {
221
- opacity: 0.1;
222
- }
223
- .khb_drawer-enter.khb_drawer-enter-active {
224
- opacity: 1;
225
- transition: opacity 200ms ease-in;
226
- }
227
- .khb_drawer-exit {
228
- opacity: 1;
229
- }
230
- .khb_drawer-exit.khb_drawer-exit-active {
231
- opacity: 0.01;
232
- transition: opacity 200ms ease-in;
233
- }
234
- /* \ End of Animations */
235
-
236
- /* Form */
237
- .khb_form {
238
- @apply grid grid-rows-1 grid-cols-1 gap-y-3;
239
- }
240
- /* \ End of Form */
241
-
242
- /* Accordian */
243
- .khb_accordian-header {
244
- @apply flex items-center justify-between w-full p-4 font-medium border-2 bg-gray-100 border-gray-300 hover:bg-gray-200 rounded-t-md;
245
- }
246
- .khb_accordian-body {
247
- @apply border-2 border-t-0 border-gray-300 rounded-b-md;
248
- }
249
- .khb_accordian-content {
250
- @apply p-2.5;
251
- }
252
- .khb_accordian-footer {
253
- @apply p-1 flex flex-row space-x-1 justify-end border-t-2 border-gray-300 bg-gray-200;
254
- }
255
- .khb_item-items {
256
- @apply space-y-1;
257
- }
258
- .khb-form-items {
259
- @apply space-y-2;
260
- }
261
- /* \ End of Accordian */
262
-
263
- /* Modal */
264
- .khb_modal-wrapper-1 {
265
- @apply fixed inset-0 z-20 overflow-y-auto;
266
- }
267
- .khb_modal-wrapper-2 {
268
- @apply flex items-end justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0 relative;
269
- }
270
- .khb_modal-backdrop {
271
- @apply absolute inset-0 transition-opacity bg-black opacity-75 backdrop-blur-sm;
272
- }
273
- .khb_modal-container-1 {
274
- @apply opacity-100 min-h-screen flex justify-center items-center;
275
- }
276
- .khb_modal-container-2 {
277
- @apply inline-block overflow-hidden text-left align-bottom transition-all transform shadow-xl sm:my-8 sm:align-middle sm:max-w-xl sm:w-full rounded-lg;
278
- }
279
- .khb_modal-main {
280
- @apply bg-white;
281
- }
282
- .khb_modal-header {
283
- @apply relative p-4 pb-4 border-b border-gray-200;
284
- }
285
- .khb_modal-title {
286
- @apply text-sm font-semibold;
287
- }
288
- .khb_modal-close {
289
- @apply absolute right-5 top-5 focus:outline-none;
290
- }
291
- .khb_modal-content {
292
- @apply p-4;
293
- }
294
- /* \ End of Modal */
295
-
296
- /* Delete Modal */
297
- .khb_delete-header {
298
- @apply py-2 px-4 rounded-lg flex items-center gap-3 text-black text-sm bg-red-200;
299
- }
300
- .khb_delete-content {
301
- @apply mt-3 text-black text-sm;
302
- }
303
- .khb_delete-note {
304
- @apply mt-3;
305
- }
306
- .khb_delete-actions {
307
- @apply mt-3 flex flex-row gap-3;
308
- }
309
- .khb_delete-input {
310
- @apply w-full flex-grow;
311
- }
312
- .khb_delete-buttons {
313
- @apply col-span-3;
314
- }
315
- /* \ End of Delete Modal */
316
-
317
- /* Image Upload */
318
- .khb_img-upload-wrapper-1 {
319
- @apply mt-1 border-2 border-dashed rounded-md border-slate-400;
320
- }
321
- .khb_img-upload-wrapper-2 {
322
- @apply flex justify-center px-6 pt-5 pb-6 cursor-pointer space-y-1 text-center;
323
- }
324
- .khb_img-wrapper {
325
- @apply relative inline-flex;
326
- }
327
- .khb_img-wrapper-img {
328
- @apply h-24 w-24 object-cover;
329
- }
330
- .khb_img-wrapper-del {
331
- @apply h-5 w-5 rounded-full bg-red-500 flex items-center justify-center absolute -top-2 -right-2 cursor-pointer;
332
- }
333
- .khb_img-text-wrapper {
334
- @apply flex text-sm text-gray-600;
335
- }
336
- .khb_img-text-label {
337
- @apply relative font-medium rounded-md focus-within:outline-none;
338
- }
339
- .khb_img-text-1 {
340
- @apply pl-1 text-gray-500;
341
- }
342
- .khb_img-text-2 {
343
- @apply text-xs text-gray-500;
344
- }
345
- .khb_img-upload-wrapper-3 {
346
- @apply p-3 border border-white mt-6 rounded-lg cursor-pointer;
347
- }
348
- /* \End of Image Upload */
349
-
350
- /* Switch */
351
- .khb_switch {
352
- position: relative;
353
- display: inline-block;
354
- width: 60px;
355
- height: 30px;
356
- }
357
- .khb_switch input {
358
- opacity: 0;
359
- width: 0;
360
- height: 0;
361
- }
362
- .khb_switch .slider {
363
- position: absolute;
364
- cursor: pointer;
365
- top: 0;
366
- left: 0;
367
- right: 0;
368
- bottom: 0;
369
- background-color: #888;
370
- -webkit-transition: all 0.4s ease-in;
371
- transition: all 0.4s ease-in;
372
- }
373
- .khb_switch .slider:before {
374
- position: absolute;
375
- content: "";
376
- height: 22px;
377
- width: 22px;
378
- left: 5px;
379
- bottom: 4px;
380
- background-color: #fff;
381
- -webkit-transition: all 0.2s ease-in;
382
- transition: all 0.2s ease-in;
383
- box-shadow: 0px 0px 6px #00000029;
384
- /* background-image: url(../public/images/close.png); */
385
- /* background-repeat: no-repeat; */
386
- /* background-position: center; */
387
- }
388
- .khb_switch .slider.khb_btn {
389
- @apply rounded-lg font-medium text-center m-1 focus:outline-none focus:ring-4;
390
- }
391
- /* Switch Rounded sliders */
392
- .khb_switch .slider.round {
393
- border-radius: 34px;
394
- }
395
- .khb_switch .slider.round:before {
396
- border-radius: 50%;
397
- }
398
- input:checked + .slider {
399
- background-color: #16a34a;
400
- }
401
- input:focus + .slider {
402
- box-shadow: 0 0 1px #16a34a;
403
- }
404
- input:checked + .slider:before {
405
- -webkit-transform: translateX(28px);
406
- -ms-transform: translateX(28px);
407
- transform: translateX(28px);
408
- /* background-image: url(../public/images/tick.png);
409
- background-repeat: no-repeat;
410
- background-position: center; */
411
- }
412
- /* \ End of Switch */
413
-
414
- .khb_DND-items {
415
- @apply space-y-2;
416
- }
417
- .khb_DND-item-text {
418
- @apply text-base font-medium leading-6 text-black truncate;
419
- }
420
- .khb_DND-item-content {
421
- @apply flex items-center justify-between gap-3;
422
- }
423
- .khb_DND-item-settings {
424
- @apply flex items-center text-slate-500 bg-transparent border-0 p-0 cursor-pointer;
425
- }
426
- .khb_DND-item-settings-icon {
427
- @apply w-4 h-4;
428
- }
429
- .khb_DND-item {
430
- @apply p-3 overflow-hidden bg-white border rounded-md cursor-pointer border-slate-500 hover:shadow hover:border-blue-400 transition-colors duration-200 ease-in-out;
431
- }
432
-
433
- /* Tabs */
434
- .khb_tabs-container {
435
- @apply p-3 border rounded;
436
- }
437
- .khb-tabs {
438
- @apply mb-2;
439
- }
440
- .khb_tabs-item {
441
- @apply bg-gray-200 rounded-md transition-colors cursor-pointer p-2 self-center flex flex-col;
442
- }
443
- .khb_tabs-item:hover {
444
- @apply bg-gray-300 cursor-pointer;
445
- }
446
- .khb_tabs-input {
447
- @apply bg-transparent text-black font-medium cursor-pointer min-w-0 whitespace-pre-wrap focus:ring-1;
448
- }
449
- .khb_tabs-item-selected {
450
- @apply bg-gray-300 font-medium;
451
- }
452
- .khb_tabs-remove {
453
- @apply text-red-600 hover:text-red-700 focus:ring-red-300;
454
- }
455
- /* .khb_tabs-add {
456
- @apply khb_btn khb_btn-primary khb_btn-xs;
457
- } */
458
- .khb_tabs-list {
459
- @apply flex gap-x-4 gap-y-2.5 flex-wrap;
460
- }
461
- .khb_tabs-body {
462
- @apply pt-2;
463
- }
464
- /* Confirm Popover */
465
- .khb_confirm-popover {
466
- @apply relative bg-white px-4 py-2.5 z-20 border rounded shadow-lg;
467
- }
468
- .khb_confirm-popover-content {
469
- @apply grid grid-cols-1 gap-1.5;
470
- }
471
- .khb_confirm-popover-title {
472
- @apply font-bold;
473
- }
474
- .khb_confirm-popover-footer {
475
- @apply flex justify-center;
476
- }
477
- /* SrcSet */
478
- .khb_srcset-remove {
479
- @apply w-7 h-7;
480
- }
481
- /* End of SrcSet */
File without changes