@uxf/data-grid 10.0.2 → 11.0.0-beta.1

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 (203) hide show
  1. package/_store/reducer.d.ts +8 -0
  2. package/{store → _store}/reducer.js +33 -19
  3. package/_story-utils/data.d.ts +12 -0
  4. package/_story-utils/data.js +115 -0
  5. package/_story-utils/grid-type.d.ts +22 -0
  6. package/_story-utils/grid-type.js +2 -0
  7. package/_story-utils/loader.d.ts +2 -0
  8. package/_story-utils/loader.js +36 -0
  9. package/_story-utils/schema.d.ts +3 -0
  10. package/_story-utils/schema.js +53 -0
  11. package/{tailwindui/body-cell → body-cell}/body-cell-boolean.d.ts +1 -1
  12. package/{tailwindui/body-cell → body-cell}/body-cell-date.d.ts +1 -1
  13. package/{tailwindui/body-cell → body-cell}/body-cell-datetime.d.ts +1 -1
  14. package/{tailwindui/body-cell → body-cell}/body-cell-default.d.ts +1 -1
  15. package/{tailwindui/body-cell → body-cell}/body-cell-email.d.ts +1 -1
  16. package/{tailwindui/body-cell → body-cell}/body-cell-phone.d.ts +1 -1
  17. package/{tailwindui/body-cell → body-cell}/body-cell-to-many.d.ts +1 -1
  18. package/{tailwindui/body-cell → body-cell}/body-cell-to-one.d.ts +1 -1
  19. package/{tailwindui/body-cell → body-cell}/body-cell-url.d.ts +1 -1
  20. package/{tailwindui/body-cell → body-cell}/index.d.ts +1 -1
  21. package/data-grid.d.ts +1 -1
  22. package/data-grid.js +34 -120
  23. package/data-grid.stories.d.ts +0 -5
  24. package/data-grid.stories.js +14 -216
  25. package/export-button/export-button.d.ts +10 -0
  26. package/export-button/export-button.js +15 -0
  27. package/export-button/export-button.stories.d.ts +2 -0
  28. package/export-button/export-button.stories.js +18 -0
  29. package/export-button/index.d.ts +1 -0
  30. package/{tailwindui → export-button}/index.js +1 -3
  31. package/{tailwindui/filter-handler → filter-handler}/bool-filter.d.ts +1 -1
  32. package/{tailwindui/filter-handler → filter-handler}/boolean-filter.d.ts +1 -1
  33. package/filter-handler/index.d.ts +4 -0
  34. package/{tailwindui/filter-handler → filter-handler}/index.js +15 -0
  35. package/{tailwindui/filter-handler → filter-handler}/interval-filter.d.ts +1 -1
  36. package/{tailwindui/filter-handler → filter-handler}/interval-filter.js +2 -2
  37. package/{tailwindui/filter-handler → filter-handler}/select-filter.d.ts +1 -1
  38. package/{tailwindui/filter-handler → filter-handler}/text-filter.d.ts +1 -1
  39. package/filter-handler/types.d.ts +8 -0
  40. package/filter-handler/types.js +2 -0
  41. package/filter-list/filter-list.d.ts +11 -0
  42. package/{tailwindui/components → filter-list}/filter-list.js +7 -6
  43. package/filter-list/filter-list.stories.d.ts +2 -0
  44. package/filter-list/filter-list.stories.js +19 -0
  45. package/filter-list/index.d.ts +1 -0
  46. package/filter-list/index.js +17 -0
  47. package/filters/filters.d.ts +11 -0
  48. package/filters/filters.js +25 -0
  49. package/filters/filters.stories.d.ts +2 -0
  50. package/filters/filters.stories.js +19 -0
  51. package/filters/index.d.ts +1 -0
  52. package/filters/index.js +17 -0
  53. package/filters-button/filters-button.d.ts +11 -0
  54. package/{tailwindui/show.js → filters-button/filters-button.js} +15 -6
  55. package/filters-button/filters-button.stories.d.ts +2 -0
  56. package/filters-button/filters-button.stories.js +19 -0
  57. package/filters-button/index.d.ts +1 -0
  58. package/filters-button/index.js +17 -0
  59. package/fulltext-input/fulltext-input.d.ts +5 -0
  60. package/fulltext-input/fulltext-input.js +13 -0
  61. package/fulltext-input/fulltext-input.stories.d.ts +2 -0
  62. package/fulltext-input/fulltext-input.stories.js +18 -0
  63. package/fulltext-input/index.d.ts +1 -0
  64. package/fulltext-input/index.js +17 -0
  65. package/hidden-columns/hidden-columns.d.ts +8 -0
  66. package/hidden-columns/hidden-columns.js +17 -0
  67. package/hidden-columns/hidden-columns.stories.d.ts +2 -0
  68. package/hidden-columns/hidden-columns.stories.js +18 -0
  69. package/hidden-columns/index.d.ts +1 -0
  70. package/hidden-columns/index.js +17 -0
  71. package/hidden-columns-button/hidden-columns-button.d.ts +8 -0
  72. package/{tailwindui/data-grid.js → hidden-columns-button/hidden-columns-button.js} +14 -10
  73. package/hidden-columns-button/hidden-columns-button.stories.d.ts +2 -0
  74. package/hidden-columns-button/hidden-columns-button.stories.js +18 -0
  75. package/hidden-columns-button/index.d.ts +1 -0
  76. package/hidden-columns-button/index.js +17 -0
  77. package/linear-progress/index.d.ts +1 -0
  78. package/linear-progress/index.js +17 -0
  79. package/linear-progress/linear-progress.d.ts +5 -0
  80. package/{tailwindui/components → linear-progress}/linear-progress.js +4 -4
  81. package/package.json +2 -2
  82. package/pagination/index.d.ts +1 -0
  83. package/pagination/index.js +17 -0
  84. package/pagination/pagination.d.ts +8 -0
  85. package/pagination/pagination.js +16 -0
  86. package/pagination/pagination.stories.d.ts +2 -0
  87. package/pagination/pagination.stories.js +18 -0
  88. package/row-counts/index.d.ts +1 -0
  89. package/row-counts/index.js +17 -0
  90. package/row-counts/row-counts.d.ts +7 -0
  91. package/row-counts/row-counts.js +18 -0
  92. package/row-counts/row-counts.stories.d.ts +2 -0
  93. package/row-counts/row-counts.stories.js +15 -0
  94. package/rows-per-page-select/index.d.ts +1 -0
  95. package/rows-per-page-select/index.js +17 -0
  96. package/rows-per-page-select/rows-per-page-select.d.ts +3 -0
  97. package/{tailwindui/components/pagination-rows-per-page-select.js → rows-per-page-select/rows-per-page-select.js} +5 -5
  98. package/rows-per-page-select/rows-per-page-select.stories.d.ts +2 -0
  99. package/rows-per-page-select/rows-per-page-select.stories.js +18 -0
  100. package/selected-rows-toolbar/index.d.ts +1 -0
  101. package/selected-rows-toolbar/index.js +17 -0
  102. package/selected-rows-toolbar/selected-rows-toolbar.d.ts +11 -0
  103. package/{tailwindui/components → selected-rows-toolbar}/selected-rows-toolbar.js +9 -6
  104. package/selected-rows-toolbar/selected-rows-toolbar.stories.d.ts +2 -0
  105. package/{tailwindui/components/select-row-checkbox.js → selected-rows-toolbar/selected-rows-toolbar.stories.js} +15 -14
  106. package/table/components/select-row-checkbox.d.ts +3 -0
  107. package/table/components/select-row-checkbox.js +20 -0
  108. package/table/hooks/use-react-data-grid-columns.d.ts +3 -0
  109. package/table/hooks/use-react-data-grid-columns.js +92 -0
  110. package/table/index.d.ts +1 -0
  111. package/table/index.js +17 -0
  112. package/table/no-rows-fallback.d.ts +7 -0
  113. package/{tailwindui/components → table}/no-rows-fallback.js +4 -4
  114. package/table/table.d.ts +3 -0
  115. package/table/table.js +80 -0
  116. package/table/table.stories.d.ts +2 -0
  117. package/table/table.stories.js +20 -0
  118. package/table/types.d.ts +26 -0
  119. package/table/types.js +2 -0
  120. package/toolbar-control/index.d.ts +1 -0
  121. package/toolbar-control/index.js +17 -0
  122. package/toolbar-control/toolbar-control.d.ts +13 -0
  123. package/toolbar-control/toolbar-control.js +22 -0
  124. package/toolbar-control/toolbar-control.stories.d.ts +2 -0
  125. package/toolbar-control/toolbar-control.stories.js +20 -0
  126. package/toolbar-customs/index.d.ts +1 -0
  127. package/toolbar-customs/index.js +17 -0
  128. package/toolbar-customs/toolbar-customs.d.ts +10 -0
  129. package/{tailwindui/components → toolbar-customs}/toolbar-customs.js +2 -2
  130. package/toolbar-customs/toolbar-customs.stories.d.ts +2 -0
  131. package/toolbar-customs/toolbar-customs.stories.js +16 -0
  132. package/toolbar-tabs/index.d.ts +1 -0
  133. package/toolbar-tabs/index.js +17 -0
  134. package/toolbar-tabs/toolbar-tabs.d.ts +7 -0
  135. package/{tailwindui/components → toolbar-tabs}/toolbar-tabs.js +10 -10
  136. package/toolbar-tabs/toolbar-tabs.stories.d.ts +2 -0
  137. package/toolbar-tabs/toolbar-tabs.stories.js +18 -0
  138. package/types/components.d.ts +5 -160
  139. package/types/data-grid-props.d.ts +16 -23
  140. package/types/state.d.ts +7 -3
  141. package/types/ui-components.d.ts +7 -16
  142. package/use-data-grid-control/actions-factory.d.ts +14 -0
  143. package/use-data-grid-control/actions-factory.js +18 -0
  144. package/use-data-grid-control/index.d.ts +1 -0
  145. package/use-data-grid-control/index.js +17 -0
  146. package/use-data-grid-control/use-data-grid-control.d.ts +19 -0
  147. package/use-data-grid-control/use-data-grid-control.js +12 -0
  148. package/use-data-grid-fetching/index.d.ts +1 -0
  149. package/use-data-grid-fetching/index.js +17 -0
  150. package/use-data-grid-fetching/use-data-grid-fetching.d.ts +16 -0
  151. package/use-data-grid-fetching/use-data-grid-fetching.js +37 -0
  152. package/utils/classes.d.ts +1 -0
  153. package/utils/classes.js +4 -0
  154. package/utils.d.ts +4 -5
  155. package/utils.js +9 -60
  156. package/hooks/useColumns.d.ts +0 -3
  157. package/hooks/useColumns.js +0 -97
  158. package/store/reducer.d.ts +0 -5
  159. package/tailwindui/components/container.d.ts +0 -2
  160. package/tailwindui/components/container.js +0 -13
  161. package/tailwindui/components/filter-list.d.ts +0 -2
  162. package/tailwindui/components/footer.d.ts +0 -2
  163. package/tailwindui/components/footer.js +0 -12
  164. package/tailwindui/components/linear-progress.d.ts +0 -2
  165. package/tailwindui/components/no-rows-fallback.d.ts +0 -2
  166. package/tailwindui/components/pagination-counts.d.ts +0 -2
  167. package/tailwindui/components/pagination-counts.js +0 -18
  168. package/tailwindui/components/pagination-rows-per-page-select.d.ts +0 -2
  169. package/tailwindui/components/select-row-checkbox.d.ts +0 -2
  170. package/tailwindui/components/selected-rows-toolbar.d.ts +0 -2
  171. package/tailwindui/components/toolbar-control.d.ts +0 -2
  172. package/tailwindui/components/toolbar-control.js +0 -86
  173. package/tailwindui/components/toolbar-customs.d.ts +0 -2
  174. package/tailwindui/components/toolbar-tabs.d.ts +0 -2
  175. package/tailwindui/components/toolbar.d.ts +0 -2
  176. package/tailwindui/components/toolbar.js +0 -12
  177. package/tailwindui/data-grid.d.ts +0 -6
  178. package/tailwindui/filter-handler/index.d.ts +0 -2
  179. package/tailwindui/index.d.ts +0 -3
  180. package/tailwindui/show.d.ts +0 -7
  181. package/tailwindui/styles.css +0 -592
  182. package/tailwindui/ui.d.ts +0 -2
  183. package/tailwindui/ui.js +0 -38
  184. /package/{tailwindui/components → _components}/drawer.d.ts +0 -0
  185. /package/{tailwindui/components → _components}/drawer.js +0 -0
  186. /package/{store → _store}/actions.d.ts +0 -0
  187. /package/{store → _store}/actions.js +0 -0
  188. /package/{tailwindui/body-cell → body-cell}/body-cell-boolean.js +0 -0
  189. /package/{tailwindui/body-cell → body-cell}/body-cell-date.js +0 -0
  190. /package/{tailwindui/body-cell → body-cell}/body-cell-datetime.js +0 -0
  191. /package/{tailwindui/body-cell → body-cell}/body-cell-default.js +0 -0
  192. /package/{tailwindui/body-cell → body-cell}/body-cell-email.js +0 -0
  193. /package/{tailwindui/body-cell → body-cell}/body-cell-phone.js +0 -0
  194. /package/{tailwindui/body-cell → body-cell}/body-cell-to-many.js +0 -0
  195. /package/{tailwindui/body-cell → body-cell}/body-cell-to-one.js +0 -0
  196. /package/{tailwindui/body-cell → body-cell}/body-cell-url.js +0 -0
  197. /package/{tailwindui/body-cell → body-cell}/index.js +0 -0
  198. /package/{tailwindui/filter-handler → filter-handler}/bool-filter.js +0 -0
  199. /package/{tailwindui/filter-handler → filter-handler}/boolean-filter.js +0 -0
  200. /package/{tailwindui/filter-handler → filter-handler}/select-filter.js +0 -0
  201. /package/{tailwindui/filter-handler → filter-handler}/text-filter.js +0 -0
  202. /package/{tailwindui → table}/components/action-cell-base.d.ts +0 -0
  203. /package/{tailwindui → table}/components/action-cell-base.js +0 -0
@@ -1,592 +0,0 @@
1
- @import url("react-data-grid/lib/styles.css");
2
-
3
- @layer rdg.Root {
4
- .uxf-data-grid__table {
5
- --rdg-color-scheme: light;
6
- --rdg-color: theme("colors.lightHigh");
7
- --rdg-border-color: theme("colors.lightBorder");
8
- --rdg-summary-border-color: theme("colors.lightBorder");
9
- --rdg-background-color: theme("colors.white");
10
- --rdg-header-background-color: theme("colors.gray.50");
11
- --rdg-row-hover-background-color: theme("colors.gray.50");
12
- --rdg-row-selected-background-color: theme("colors.gray.100/.75");
13
- --rdg-row-selected-hover-background-color: theme("colors.gray.200/.75");
14
- --rdg-selection-color: theme("colors.lightBorder");
15
- --rdg-font-size: 14px;
16
-
17
- :root .dark & {
18
- --rdg-color-scheme: dark;
19
- --rdg-color: theme("colors.darkHigh");
20
- --rdg-border-color: theme("colors.darkBorder");
21
- --rdg-summary-border-color: theme("colors.darkBorder");
22
- --rdg-background-color: theme("colors.gray.950");
23
- --rdg-header-background-color: theme("colors.gray.900");
24
- --rdg-row-hover-background-color: theme("colors.gray.950");
25
- --rdg-row-selected-background-color: theme("colors.gray.900/.75");
26
- --rdg-row-selected-hover-background-color: theme("colors.gray.800/.75");
27
- --rdg-selection-color: theme("colors.darkBorder");
28
- --rdg-font-size: 14px;
29
- }
30
- }
31
- }
32
-
33
- .uxf-data-grid {
34
- border: 1px solid var(--rdg-border-color);
35
- border-radius: theme("borderRadius.DEFAULT");
36
-
37
- &.no-border {
38
- border-style: none;
39
- }
40
-
41
- &__action-cell {
42
- background-color: var(--rdg-background-color);
43
- border-inline-start: 1px solid var(--rdg-border-color);
44
- position: sticky;
45
- right: 0;
46
- }
47
-
48
- &__action-cell-wrapper {
49
- @apply space-x-2;
50
-
51
- align-items: center;
52
- display: flex;
53
- height: 100%;
54
- justify-content: center;
55
- text-align: center;
56
- width: 100%;
57
-
58
- .uxf-icon {
59
- color: theme("colors.lightMedium");
60
-
61
- :root .dark & {
62
- color: theme("colors.darkMedium");
63
- }
64
- }
65
- }
66
-
67
- &__body-cell {
68
- &--boolean {
69
- align-items: center;
70
- display: flex;
71
- height: 100%;
72
- width: 100%;
73
- }
74
- }
75
-
76
- &__drawer {
77
- @apply ease-in-out;
78
-
79
- background-color: theme("colors.gray.900/.25");
80
- inset: 0;
81
- overflow: hidden;
82
- position: fixed;
83
- z-index: theme("zIndex.modal");
84
-
85
- :root .dark & {
86
- background-color: theme("colors.gray.900/.75");
87
- }
88
-
89
- &--open {
90
- @apply transition-opacity duration-500;
91
-
92
- opacity: 100;
93
- transform: translateX(0);
94
- }
95
-
96
- &--closed {
97
- @apply transition-all delay-500;
98
-
99
- opacity: 0;
100
- transform: translateX(100%);
101
- }
102
-
103
- &-body-wrapper {
104
- @apply transition-all duration-500 ease-in-out;
105
-
106
- background-color: theme("colors.white");
107
- box-shadow: theme("boxShadow.xl");
108
- height: 100%;
109
- max-width: theme("maxWidth.sm");
110
- position: absolute;
111
- right: 0;
112
- transform: translateX(100%);
113
- width: theme("width.11/12");
114
-
115
- &--open {
116
- transform: translateX(0);
117
- }
118
- }
119
-
120
- &-body {
121
- display: flex;
122
- flex-direction: column;
123
- height: 100%;
124
- max-width: theme("maxWidth.sm");
125
- overflow-y: scroll;
126
- padding-bottom: theme("spacing.10");
127
- position: relative;
128
- width: 100%;
129
-
130
- :root .dark & {
131
- background-color: theme("colors.gray.950");
132
- color: theme("colors.gray.100");
133
- }
134
- }
135
-
136
- &-close-button {
137
- margin-left: auto;
138
- margin-right: theme("spacing.4");
139
- margin-top: theme("spacing.4") !important;
140
- }
141
-
142
- &-header {
143
- font-weight: theme("fontWeight.bold");
144
- padding: theme("spacing.8") theme("spacing.4") theme("spacing.4");
145
- }
146
-
147
- &-content {
148
- padding: theme("spacing.4");
149
- }
150
-
151
- &-backdrop {
152
- cursor: pointer;
153
- height: 100%;
154
- width: 100vw;
155
- }
156
- }
157
-
158
- &__fallback {
159
- align-items: center;
160
- color: theme("colors.gray.600"); /* ?? */
161
- display: flex;
162
- grid-column: 1/-1;
163
- justify-content: center;
164
- text-align: center;
165
- }
166
-
167
- &__filter {
168
- &--interval {
169
- display: grid;
170
- gap: theme("spacing.4");
171
- grid-template-columns: 1fr min-content 1fr;
172
-
173
- .uxf-data-grid__filter-gap {
174
- align-items: center;
175
- display: flex;
176
- padding-top: theme("spacing.5");
177
- }
178
- }
179
- }
180
-
181
- &__filters {
182
- @apply space-y-4;
183
- }
184
-
185
- &__filter-list {
186
- @apply space-x-2;
187
-
188
- padding: theme("spacing.2");
189
- }
190
-
191
- &__footer {
192
- align-items: center;
193
- display: flex;
194
- flex-wrap: wrap;
195
- gap: theme("spacing.4");
196
- justify-content: flex-end;
197
- padding: theme("spacing.2");
198
-
199
- &.no-border {
200
- padding-inline: 0;
201
- }
202
- }
203
-
204
- &__linear-progress {
205
- border-radius: 20px;
206
- height: 3px;
207
- left: 0;
208
- overflow: hidden;
209
- position: absolute;
210
- right: 0;
211
- z-index: 1;
212
-
213
- &.is-loading::before {
214
- animation: datagridlineanim 1s linear infinite;
215
- background-color: theme("colors.dataGridSecondary");
216
- border-radius: inherit;
217
- content: "";
218
- height: 3px;
219
- left: -50%;
220
- position: absolute;
221
- width: 40%;
222
- }
223
- }
224
-
225
- &__linear-progress-wrapper {
226
- position: relative;
227
- }
228
-
229
- &__pagination-counts {
230
- @apply text-sm;
231
-
232
- color: theme("colors.lightLow");
233
- }
234
-
235
- &__plugin-fulltext {
236
- color: theme("colors.gray.400");
237
- margin: theme("spacing.2") 0;
238
- width: 100%;
239
-
240
- @screen sm {
241
- width: auto;
242
- }
243
-
244
- .uxf-icon {
245
- color: theme("colors.lightMedium");
246
-
247
- :root .dark & {
248
- color: theme("colors.darkMedium");
249
- }
250
- }
251
- }
252
-
253
- &__plugin-button {
254
- flex-shrink: 0;
255
- margin: theme("spacing.2") 0;
256
-
257
- .uxf-icon {
258
- color: theme("colors.lightMedium");
259
-
260
- :root .dark & {
261
- color: theme("colors.darkMedium");
262
- }
263
- }
264
- }
265
-
266
- &__rows-per-page {
267
- @apply text-sm;
268
-
269
- align-items: center;
270
- color: theme("colors.lightLow");
271
- display: flex;
272
- flex-wrap: wrap;
273
- gap: theme("spacing.2");
274
-
275
- .uxf-select {
276
- width: theme("width.28");
277
- }
278
- }
279
-
280
- &__select-row-checkbox-wrapper {
281
- align-items: center;
282
- color: theme("colors.white");
283
- display: flex;
284
- height: 100%;
285
- justify-content: center;
286
- width: 100%;
287
- }
288
-
289
- &__selected-rows-toolbar-wrapper {
290
- align-items: center;
291
- bottom: theme("spacing.8");
292
- display: flex;
293
- justify-content: center;
294
- left: 0;
295
- position: fixed;
296
- right: 0;
297
- }
298
-
299
- &__selected-rows-toolbar {
300
- @apply text-sm drop-shadow-xl;
301
-
302
- align-items: center;
303
- background-color: theme("colors.dataGridPrimary");
304
- border: 1px solid theme("colors.lightBorder");
305
- border-radius: 999px;
306
- color: theme("colors.white");
307
- display: flex;
308
- justify-content: center;
309
- padding: theme("spacing.2") theme("spacing.6");
310
-
311
- :root .dark & {
312
- border-color: theme("colors.darkBorder");
313
- }
314
- }
315
-
316
- &__selected-rows-toolbar-actions {
317
- @apply space-x-2;
318
-
319
- padding-left: theme("spacing.4");
320
- }
321
-
322
- &__table {
323
- overflow-y: hidden;
324
-
325
- &::-webkit-scrollbar {
326
- height: 8px;
327
- width: 8px;
328
- }
329
-
330
- &::-webkit-scrollbar-track {
331
- background-color: transparent;
332
- }
333
-
334
- &::-webkit-scrollbar-thumb,
335
- &::-webkit-scrollbar-thumb:hover {
336
- background-color: theme("colors.lightLow");
337
- border-radius: 999px;
338
-
339
- :root .dark & {
340
- background-color: theme("colors.darkLow");
341
- }
342
- }
343
- }
344
-
345
- &__toolbar {
346
- align-items: center;
347
- border-bottom: 1px solid theme("colors.lightBorder");
348
- display: flex;
349
- flex-wrap: wrap;
350
- gap: theme("spacing.2");
351
- justify-content: flex-end;
352
- padding: theme("spacing.2");
353
-
354
- :root .dark & {
355
- border-bottom-color: theme("colors.darkBorder");
356
- }
357
-
358
- @screen md {
359
- padding-block: 0;
360
- padding-left: 0;
361
- }
362
- }
363
-
364
- &__toolbar-tab {
365
- @apply text-sm;
366
-
367
- align-items: center;
368
- border-bottom: 2px solid transparent;
369
- color: theme("colors.lightMedium");
370
- display: inline-flex;
371
- font-weight: theme("fontWeight.medium");
372
- padding: theme("spacing.4");
373
- white-space: nowrap;
374
-
375
- :root .dark & {
376
- color: theme("colors.darkMedium");
377
- }
378
-
379
- &:hover {
380
- color: theme("colors.lightHigh");
381
-
382
- :root .dark & {
383
- color: theme("colors.darkHigh");
384
- }
385
- }
386
-
387
- &.is-active {
388
- border-bottom-color: currentcolor;
389
- color: theme("colors.dataGridPrimary");
390
- }
391
- }
392
-
393
- &__toolbar-tabs {
394
- align-self: stretch;
395
- display: flex;
396
- flex: 1;
397
-
398
- &-nav {
399
- &--desktop {
400
- @apply space-x-4;
401
-
402
- display: none;
403
- margin-bottom: -1px;
404
-
405
- @screen md {
406
- display: flex;
407
- }
408
- }
409
-
410
- &--mobile {
411
- align-items: center;
412
- display: flex;
413
- width: max-content;
414
- z-index: theme("zIndex.10");
415
-
416
- @screen md {
417
- display: none;
418
- }
419
-
420
- .uxf-data-grid__toolbar-tabs-button {
421
- align-items: center;
422
- display: flex;
423
- margin: 0;
424
-
425
- &-icon {
426
- color: theme("colors.lightHigh");
427
- margin-left: theme("spacing.1");
428
-
429
- :root .dark & {
430
- color: theme("colors.darkHigh");
431
- }
432
- }
433
- }
434
- }
435
-
436
- &-text {
437
- color: theme("colors.lightHigh");
438
-
439
- :root .dark & {
440
- color: theme("colors.darkHigh");
441
- }
442
- }
443
- }
444
-
445
- &-modal-content {
446
- @apply divide-lightBorder dark:divide-darkBorder divide-y;
447
-
448
- align-items: flex-start;
449
- display: flex;
450
- flex-direction: column;
451
- padding-bottom: theme("spacing.4");
452
- padding-top: theme("spacing.1");
453
- text-align: left;
454
- }
455
-
456
- &-modal-button {
457
- border-radius: 0;
458
- justify-content: flex-start;
459
- width: 100%;
460
- }
461
-
462
- &-modal-button-text {
463
- color: theme("colors.lightHigh");
464
-
465
- :root .dark & {
466
- color: theme("colors.darkHigh");
467
- }
468
- }
469
-
470
- &-modal-active-tab-icon {
471
- color: theme("colors.lightMedium");
472
- margin-right: theme("spacing.3");
473
-
474
- :root .dark & {
475
- color: theme("colors.darkMedium");
476
- }
477
- }
478
- }
479
-
480
- &__toolbar-control {
481
- align-items: center;
482
- display: flex;
483
- flex-direction: row;
484
- gap: theme("spacing.2");
485
- justify-content: space-between;
486
- order: 3;
487
- width: 100%;
488
-
489
- @screen xs {
490
- order: 2;
491
- width: auto;
492
- }
493
- }
494
-
495
- &__toolbar-customs {
496
- align-items: center;
497
- display: flex;
498
- flex-direction: row;
499
- gap: theme("spacing.2");
500
- order: 2;
501
-
502
- @screen xs {
503
- order: 2;
504
- }
505
-
506
- @screen md {
507
- margin-block: theme("spacing.2");
508
- }
509
-
510
- &-mobile {
511
- display: flex;
512
-
513
- @screen md {
514
- display: none;
515
- }
516
- }
517
-
518
- &-desktop {
519
- display: none;
520
-
521
- @screen md {
522
- display: flex;
523
- gap: theme("spacing.2");
524
- }
525
- }
526
- }
527
- }
528
-
529
- /* TODO: tohle je imo k ničemu, že Vejvis? */
530
-
531
- /* .rdg-cell.action {
532
- align-items: center;
533
- border-right: 0;
534
- box-shadow: -3px 0 15px rgba(221 221 221 / 50%);
535
- display: flex;
536
- justify-content: center;
537
- position: sticky;
538
- right: 0;
539
- text-align: right;
540
- } */
541
-
542
- .rdg-header-row {
543
- color: theme("colors.lightLow");
544
- font-weight: theme("fontWeight.normal");
545
-
546
- :root .dark & {
547
- color: theme("colors.darkLow");
548
- }
549
-
550
- .rdg-cell {
551
- background-color: var(--rdg-header-background-color);
552
-
553
- :root .dark & {
554
- color: theme("colors.darkMedium");
555
- }
556
-
557
- &:not(:first-child) {
558
- border-inline-start: 1px solid var(--rdg-border-color);
559
- }
560
- }
561
- }
562
-
563
- .rdg-header-sort-name + span {
564
- align-items: center;
565
- display: flex;
566
- }
567
-
568
- .rdg-cell {
569
- border-block-end-width: 1px;
570
- border-color: var(--rdg-border-color);
571
- border-inline-end: none;
572
-
573
- &.rdg-cell-frozen {
574
- box-shadow: none;
575
- }
576
- }
577
-
578
- @keyframes datagridlineanim {
579
- 0% {
580
- left: -40%;
581
- }
582
-
583
- 50% {
584
- left: 20%;
585
- width: 80%;
586
- }
587
-
588
- 100% {
589
- left: 100%;
590
- width: 100%;
591
- }
592
- }
@@ -1,2 +0,0 @@
1
- import { UIComponents } from "../types";
2
- export declare const UI: UIComponents<any, any>;
package/tailwindui/ui.js DELETED
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UI = void 0;
4
- const pagination_1 = require("@uxf/ui/pagination/pagination");
5
- const body_cell_1 = require("./body-cell");
6
- const action_cell_base_1 = require("./components/action-cell-base");
7
- const container_1 = require("./components/container");
8
- const filter_list_1 = require("./components/filter-list");
9
- const linear_progress_1 = require("./components/linear-progress");
10
- const no_rows_fallback_1 = require("./components/no-rows-fallback");
11
- const pagination_counts_1 = require("./components/pagination-counts");
12
- const pagination_rows_per_page_select_1 = require("./components/pagination-rows-per-page-select");
13
- const select_row_checkbox_1 = require("./components/select-row-checkbox");
14
- const selected_rows_toolbar_1 = require("./components/selected-rows-toolbar");
15
- const toolbar_1 = require("./components/toolbar");
16
- const toolbar_control_1 = require("./components/toolbar-control");
17
- const toolbar_customs_1 = require("./components/toolbar-customs");
18
- const toolbar_tabs_1 = require("./components/toolbar-tabs");
19
- const filter_handler_1 = require("./filter-handler");
20
- exports.UI = {
21
- ActionCell: action_cell_base_1.ActionCellBase,
22
- actionCellWidth: 128,
23
- BodyCells: body_cell_1.BodyCells,
24
- Container: container_1.Container,
25
- FilterHandlers: filter_handler_1.defaultFilterHandlers,
26
- FilterList: filter_list_1.FilterList,
27
- LinearProgress: linear_progress_1.LinearProgress,
28
- NoRowsFallback: no_rows_fallback_1.NoRowsFallback,
29
- Pagination: pagination_1.Pagination,
30
- PaginationCounts: pagination_counts_1.PaginationCounts,
31
- PaginationRowsPerPageSelect: pagination_rows_per_page_select_1.PaginationRowsPerPageSelect,
32
- SelectRowCheckbox: select_row_checkbox_1.SelectRowCheckbox,
33
- SelectedRowsToolbar: selected_rows_toolbar_1.SelectedRowsToolbar,
34
- Toolbar: toolbar_1.Toolbar,
35
- ToolbarControl: toolbar_control_1.ToolbarControl,
36
- ToolbarCustoms: toolbar_customs_1.ToolbarCustoms,
37
- ToolbarTabs: toolbar_tabs_1.ToolbarTabs,
38
- };
File without changes
File without changes
File without changes