@atom-learning/components 2.27.0 → 2.28.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 (32) hide show
  1. package/CHANGELOG.md +22 -6
  2. package/dist/components/data-table/DataTable.d.ts +5 -0
  3. package/dist/components/data-table/DataTable.js +1 -1
  4. package/dist/components/data-table/DataTable.types.d.ts +18 -2
  5. package/dist/components/data-table/DataTableContext.d.ts +5 -10
  6. package/dist/components/data-table/DataTableContext.js +1 -1
  7. package/dist/components/data-table/DataTableRow.d.ts +1 -2
  8. package/dist/components/data-table/DataTableRow.js +1 -1
  9. package/dist/components/data-table/DataTableTable.d.ts +1 -2
  10. package/dist/components/data-table/drag-and-drop/DragAndDropContainer.d.ts +21 -0
  11. package/dist/components/data-table/drag-and-drop/DragAndDropContainer.js +1 -0
  12. package/dist/components/data-table/drag-and-drop/DragAndDropTable.d.ts +8 -0
  13. package/dist/components/data-table/drag-and-drop/DragAndDropTable.js +1 -0
  14. package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.d.ts +5 -0
  15. package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.js +1 -0
  16. package/dist/components/data-table/drag-and-drop/DraggableRow.d.ts +7 -0
  17. package/dist/components/data-table/drag-and-drop/DraggableRow.js +1 -0
  18. package/dist/components/data-table/drag-and-drop/Handle.d.ts +564 -0
  19. package/dist/components/data-table/drag-and-drop/Handle.js +1 -0
  20. package/dist/components/data-table/drag-and-drop/index.d.ts +4 -0
  21. package/dist/components/data-table/usePagination.d.ts +8 -0
  22. package/dist/components/data-table/usePagination.js +1 -0
  23. package/dist/components/data-table/useSorting.d.ts +9 -0
  24. package/dist/components/data-table/useSorting.js +1 -0
  25. package/dist/components/table/Table.js +1 -1
  26. package/dist/components/table/TableBody.js +1 -1
  27. package/dist/components/table/TableRow.d.ts +272 -1
  28. package/dist/components/table/TableRow.js +1 -1
  29. package/dist/docgen.json +1 -1
  30. package/dist/docs/DataTable.mdx +37 -1
  31. package/dist/index.cjs.js +1 -1
  32. package/package.json +5 -1
@@ -0,0 +1,564 @@
1
+ import { Icon } from '../../icon';
2
+ import * as React from 'react';
3
+ export declare const StyledHandle: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<Pick<Omit<Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
4
+ ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
5
+ }, "appearance" | "size" | "css" | "theme" | "isRounded"> & import("@stitches/react/types/styled-component").TransformProps<{
6
+ theme?: "primary" | "success" | "danger" | "warning" | "neutral" | undefined;
7
+ appearance?: "outline" | "solid" | "simple" | undefined;
8
+ size?: "sm" | "md" | "lg" | "xs" | undefined;
9
+ isRounded?: boolean | "true" | undefined;
10
+ }, {
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ xl: string;
15
+ reducedMotion: string;
16
+ allowMotion: string;
17
+ hover: string;
18
+ }> & {
19
+ css?: import("@stitches/react/types/css-util").CSS<{
20
+ sm: string;
21
+ md: string;
22
+ lg: string;
23
+ xl: string;
24
+ reducedMotion: string;
25
+ allowMotion: string;
26
+ hover: string;
27
+ }, {
28
+ colors: {
29
+ textForeground: any;
30
+ textSubtle: any;
31
+ textPlaceholder: any;
32
+ background: any;
33
+ backgroundAccent: any;
34
+ tonal50: any;
35
+ tonal100: any;
36
+ tonal200: any;
37
+ tonal300: any;
38
+ tonal400: any;
39
+ tonal500: any;
40
+ tonal600: any;
41
+ alpha100: any;
42
+ alpha150: any;
43
+ alpha200: any;
44
+ alpha250: any;
45
+ alpha600: any;
46
+ primaryLight: any;
47
+ primary: any;
48
+ primaryMid: any;
49
+ primaryDark: any;
50
+ secondary: any;
51
+ brandRed: any;
52
+ brandRedAccent: any;
53
+ brandGreen: any;
54
+ brandGreenAccent: any;
55
+ brandPurple: any;
56
+ brandPurpleAccent: any;
57
+ brandYellow: any;
58
+ brandYellowAccent: any;
59
+ successLight: any;
60
+ success: any;
61
+ successMid: any;
62
+ successDark: any;
63
+ dangerLight: any;
64
+ danger: any;
65
+ dangerMid: any;
66
+ dangerDark: any;
67
+ warningLight: any;
68
+ warning: any;
69
+ warningMid: any;
70
+ warningDark: any;
71
+ warningText: any;
72
+ subjectEnglish: any;
73
+ subjectMaths: any;
74
+ subjectScience: any;
75
+ subjectVerbalReasoning: any;
76
+ subjectNonVerbalReasoning: any;
77
+ subjectCreativeWriting: any;
78
+ subjectExamSkills: any;
79
+ };
80
+ space: {
81
+ "0": any;
82
+ "1": any;
83
+ "2": any;
84
+ "3": any;
85
+ "4": any;
86
+ "5": any;
87
+ "6": any;
88
+ "7": any;
89
+ "8": any;
90
+ "9": any;
91
+ };
92
+ fontSizes: {
93
+ xs: any;
94
+ sm: any;
95
+ md: any;
96
+ lg: any;
97
+ xl: any;
98
+ "2xl": any;
99
+ "3xl": any;
100
+ "4xl": any;
101
+ };
102
+ fonts: {
103
+ sans: any;
104
+ mono: any;
105
+ display: any;
106
+ body: any;
107
+ };
108
+ sizes: {
109
+ "0": any;
110
+ "1": any;
111
+ "2": any;
112
+ "3": any;
113
+ "4": any;
114
+ "5": any;
115
+ "6": any;
116
+ "7": any;
117
+ "8": any;
118
+ };
119
+ radii: {
120
+ "0": any;
121
+ "1": any;
122
+ "2": any;
123
+ "3": any;
124
+ round: any;
125
+ };
126
+ shadows: {
127
+ "0": any;
128
+ "1": any;
129
+ "2": any;
130
+ "3": any;
131
+ };
132
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
133
+ bg: (value: {
134
+ readonly [$$PropertyValue]: "background";
135
+ }) => {
136
+ background: {
137
+ readonly [$$PropertyValue]: "background";
138
+ };
139
+ };
140
+ inset: (value: string | number | {
141
+ readonly [$$ScaleValue]: "space";
142
+ }) => {
143
+ top: string | number | {
144
+ readonly [$$ScaleValue]: "space";
145
+ };
146
+ right: string | number | {
147
+ readonly [$$ScaleValue]: "space";
148
+ };
149
+ bottom: string | number | {
150
+ readonly [$$ScaleValue]: "space";
151
+ };
152
+ left: string | number | {
153
+ readonly [$$ScaleValue]: "space";
154
+ };
155
+ };
156
+ size: (value: string | number | {
157
+ readonly [$$ScaleValue]: "size";
158
+ }) => {
159
+ height: string | number | {
160
+ readonly [$$ScaleValue]: "size";
161
+ };
162
+ width: string | number | {
163
+ readonly [$$ScaleValue]: "size";
164
+ };
165
+ };
166
+ p: (value: string | number | {
167
+ readonly [$$ScaleValue]: "space";
168
+ }) => {
169
+ padding: string | number | {
170
+ readonly [$$ScaleValue]: "space";
171
+ };
172
+ };
173
+ pt: (value: string | number | {
174
+ readonly [$$ScaleValue]: "space";
175
+ }) => {
176
+ paddingTop: string | number | {
177
+ readonly [$$ScaleValue]: "space";
178
+ };
179
+ };
180
+ pr: (value: string | number | {
181
+ readonly [$$ScaleValue]: "space";
182
+ }) => {
183
+ paddingRight: string | number | {
184
+ readonly [$$ScaleValue]: "space";
185
+ };
186
+ };
187
+ pb: (value: string | number | {
188
+ readonly [$$ScaleValue]: "space";
189
+ }) => {
190
+ paddingBottom: string | number | {
191
+ readonly [$$ScaleValue]: "space";
192
+ };
193
+ };
194
+ pl: (value: string | number | {
195
+ readonly [$$ScaleValue]: "space";
196
+ }) => {
197
+ paddingLeft: string | number | {
198
+ readonly [$$ScaleValue]: "space";
199
+ };
200
+ };
201
+ px: (value: string | number | {
202
+ readonly [$$ScaleValue]: "space";
203
+ }) => {
204
+ paddingLeft: string | number | {
205
+ readonly [$$ScaleValue]: "space";
206
+ };
207
+ paddingRight: string | number | {
208
+ readonly [$$ScaleValue]: "space";
209
+ };
210
+ };
211
+ py: (value: string | number | {
212
+ readonly [$$ScaleValue]: "space";
213
+ }) => {
214
+ paddingTop: string | number | {
215
+ readonly [$$ScaleValue]: "space";
216
+ };
217
+ paddingBottom: string | number | {
218
+ readonly [$$ScaleValue]: "space";
219
+ };
220
+ };
221
+ m: (value: string | number | {
222
+ readonly [$$ScaleValue]: "space";
223
+ }) => {
224
+ margin: string | number | {
225
+ readonly [$$ScaleValue]: "space";
226
+ };
227
+ };
228
+ mt: (value: string | number | {
229
+ readonly [$$ScaleValue]: "space";
230
+ }) => {
231
+ marginTop: string | number | {
232
+ readonly [$$ScaleValue]: "space";
233
+ };
234
+ };
235
+ mr: (value: string | number | {
236
+ readonly [$$ScaleValue]: "space";
237
+ }) => {
238
+ marginRight: string | number | {
239
+ readonly [$$ScaleValue]: "space";
240
+ };
241
+ };
242
+ mb: (value: string | number | {
243
+ readonly [$$ScaleValue]: "space";
244
+ }) => {
245
+ marginBottom: string | number | {
246
+ readonly [$$ScaleValue]: "space";
247
+ };
248
+ };
249
+ ml: (value: string | number | {
250
+ readonly [$$ScaleValue]: "space";
251
+ }) => {
252
+ marginLeft: string | number | {
253
+ readonly [$$ScaleValue]: "space";
254
+ };
255
+ };
256
+ mx: (value: string | number | {
257
+ readonly [$$ScaleValue]: "space";
258
+ }) => {
259
+ marginLeft: string | number | {
260
+ readonly [$$ScaleValue]: "space";
261
+ };
262
+ marginRight: string | number | {
263
+ readonly [$$ScaleValue]: "space";
264
+ };
265
+ };
266
+ my: (value: string | number | {
267
+ readonly [$$ScaleValue]: "space";
268
+ }) => {
269
+ marginTop: string | number | {
270
+ readonly [$$ScaleValue]: "space";
271
+ };
272
+ marginBottom: string | number | {
273
+ readonly [$$ScaleValue]: "space";
274
+ };
275
+ };
276
+ }> | undefined;
277
+ }, "appearance" | "size" | "theme" | "label" | "children" | "as" | "isRounded" | keyof import("../../../types").NavigatorActions> & import("@stitches/react/types/styled-component").TransformProps<{
278
+ theme?: "primary" | "success" | "danger" | "warning" | "neutral" | undefined;
279
+ appearance?: "outline" | "solid" | "simple" | undefined;
280
+ size?: "sm" | "md" | "lg" | "xs" | undefined;
281
+ isRounded?: boolean | "true" | undefined;
282
+ }, {
283
+ sm: string;
284
+ md: string;
285
+ lg: string;
286
+ xl: string;
287
+ reducedMotion: string;
288
+ allowMotion: string;
289
+ hover: string;
290
+ }> & {
291
+ as?: React.ReactNode;
292
+ children: React.ReactNode;
293
+ label: string;
294
+ } & import("../../../types").NavigatorActions, "appearance" | "color" | "translate" | "size" | "css" | "theme" | "onBlur" | "onChange" | "onSubmit" | "form" | "label" | "slot" | "style" | "title" | "key" | "name" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "as" | "disabled" | "value" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "isRounded" | keyof import("../../../types").NavigatorActions> & React.RefAttributes<HTMLButtonElement>>, {
295
+ isDragging?: boolean | "true" | "false" | undefined;
296
+ }, {
297
+ sm: string;
298
+ md: string;
299
+ lg: string;
300
+ xl: string;
301
+ reducedMotion: string;
302
+ allowMotion: string;
303
+ hover: string;
304
+ }, import("@stitches/react/types/css-util").CSS<{
305
+ sm: string;
306
+ md: string;
307
+ lg: string;
308
+ xl: string;
309
+ reducedMotion: string;
310
+ allowMotion: string;
311
+ hover: string;
312
+ }, {
313
+ colors: {
314
+ textForeground: any;
315
+ textSubtle: any;
316
+ textPlaceholder: any;
317
+ background: any;
318
+ backgroundAccent: any;
319
+ tonal50: any;
320
+ tonal100: any;
321
+ tonal200: any;
322
+ tonal300: any;
323
+ tonal400: any;
324
+ tonal500: any;
325
+ tonal600: any;
326
+ alpha100: any;
327
+ alpha150: any;
328
+ alpha200: any;
329
+ alpha250: any;
330
+ alpha600: any;
331
+ primaryLight: any;
332
+ primary: any;
333
+ primaryMid: any;
334
+ primaryDark: any;
335
+ secondary: any;
336
+ brandRed: any;
337
+ brandRedAccent: any;
338
+ brandGreen: any;
339
+ brandGreenAccent: any;
340
+ brandPurple: any;
341
+ brandPurpleAccent: any;
342
+ brandYellow: any;
343
+ brandYellowAccent: any;
344
+ successLight: any;
345
+ success: any;
346
+ successMid: any;
347
+ successDark: any;
348
+ dangerLight: any;
349
+ danger: any;
350
+ dangerMid: any;
351
+ dangerDark: any;
352
+ warningLight: any;
353
+ warning: any;
354
+ warningMid: any;
355
+ warningDark: any;
356
+ warningText: any;
357
+ subjectEnglish: any;
358
+ subjectMaths: any;
359
+ subjectScience: any;
360
+ subjectVerbalReasoning: any;
361
+ subjectNonVerbalReasoning: any;
362
+ subjectCreativeWriting: any;
363
+ subjectExamSkills: any;
364
+ };
365
+ space: {
366
+ "0": any;
367
+ "1": any;
368
+ "2": any;
369
+ "3": any;
370
+ "4": any;
371
+ "5": any;
372
+ "6": any;
373
+ "7": any;
374
+ "8": any;
375
+ "9": any;
376
+ };
377
+ fontSizes: {
378
+ xs: any;
379
+ sm: any;
380
+ md: any;
381
+ lg: any;
382
+ xl: any;
383
+ "2xl": any;
384
+ "3xl": any;
385
+ "4xl": any;
386
+ };
387
+ fonts: {
388
+ sans: any;
389
+ mono: any;
390
+ display: any;
391
+ body: any;
392
+ };
393
+ sizes: {
394
+ "0": any;
395
+ "1": any;
396
+ "2": any;
397
+ "3": any;
398
+ "4": any;
399
+ "5": any;
400
+ "6": any;
401
+ "7": any;
402
+ "8": any;
403
+ };
404
+ radii: {
405
+ "0": any;
406
+ "1": any;
407
+ "2": any;
408
+ "3": any;
409
+ round: any;
410
+ };
411
+ shadows: {
412
+ "0": any;
413
+ "1": any;
414
+ "2": any;
415
+ "3": any;
416
+ };
417
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
418
+ bg: (value: {
419
+ readonly [$$PropertyValue]: "background";
420
+ }) => {
421
+ background: {
422
+ readonly [$$PropertyValue]: "background";
423
+ };
424
+ };
425
+ inset: (value: string | number | {
426
+ readonly [$$ScaleValue]: "space";
427
+ }) => {
428
+ top: string | number | {
429
+ readonly [$$ScaleValue]: "space";
430
+ };
431
+ right: string | number | {
432
+ readonly [$$ScaleValue]: "space";
433
+ };
434
+ bottom: string | number | {
435
+ readonly [$$ScaleValue]: "space";
436
+ };
437
+ left: string | number | {
438
+ readonly [$$ScaleValue]: "space";
439
+ };
440
+ };
441
+ size: (value: string | number | {
442
+ readonly [$$ScaleValue]: "size";
443
+ }) => {
444
+ height: string | number | {
445
+ readonly [$$ScaleValue]: "size";
446
+ };
447
+ width: string | number | {
448
+ readonly [$$ScaleValue]: "size";
449
+ };
450
+ };
451
+ p: (value: string | number | {
452
+ readonly [$$ScaleValue]: "space";
453
+ }) => {
454
+ padding: string | number | {
455
+ readonly [$$ScaleValue]: "space";
456
+ };
457
+ };
458
+ pt: (value: string | number | {
459
+ readonly [$$ScaleValue]: "space";
460
+ }) => {
461
+ paddingTop: string | number | {
462
+ readonly [$$ScaleValue]: "space";
463
+ };
464
+ };
465
+ pr: (value: string | number | {
466
+ readonly [$$ScaleValue]: "space";
467
+ }) => {
468
+ paddingRight: string | number | {
469
+ readonly [$$ScaleValue]: "space";
470
+ };
471
+ };
472
+ pb: (value: string | number | {
473
+ readonly [$$ScaleValue]: "space";
474
+ }) => {
475
+ paddingBottom: string | number | {
476
+ readonly [$$ScaleValue]: "space";
477
+ };
478
+ };
479
+ pl: (value: string | number | {
480
+ readonly [$$ScaleValue]: "space";
481
+ }) => {
482
+ paddingLeft: string | number | {
483
+ readonly [$$ScaleValue]: "space";
484
+ };
485
+ };
486
+ px: (value: string | number | {
487
+ readonly [$$ScaleValue]: "space";
488
+ }) => {
489
+ paddingLeft: string | number | {
490
+ readonly [$$ScaleValue]: "space";
491
+ };
492
+ paddingRight: string | number | {
493
+ readonly [$$ScaleValue]: "space";
494
+ };
495
+ };
496
+ py: (value: string | number | {
497
+ readonly [$$ScaleValue]: "space";
498
+ }) => {
499
+ paddingTop: string | number | {
500
+ readonly [$$ScaleValue]: "space";
501
+ };
502
+ paddingBottom: string | number | {
503
+ readonly [$$ScaleValue]: "space";
504
+ };
505
+ };
506
+ m: (value: string | number | {
507
+ readonly [$$ScaleValue]: "space";
508
+ }) => {
509
+ margin: string | number | {
510
+ readonly [$$ScaleValue]: "space";
511
+ };
512
+ };
513
+ mt: (value: string | number | {
514
+ readonly [$$ScaleValue]: "space";
515
+ }) => {
516
+ marginTop: string | number | {
517
+ readonly [$$ScaleValue]: "space";
518
+ };
519
+ };
520
+ mr: (value: string | number | {
521
+ readonly [$$ScaleValue]: "space";
522
+ }) => {
523
+ marginRight: string | number | {
524
+ readonly [$$ScaleValue]: "space";
525
+ };
526
+ };
527
+ mb: (value: string | number | {
528
+ readonly [$$ScaleValue]: "space";
529
+ }) => {
530
+ marginBottom: string | number | {
531
+ readonly [$$ScaleValue]: "space";
532
+ };
533
+ };
534
+ ml: (value: string | number | {
535
+ readonly [$$ScaleValue]: "space";
536
+ }) => {
537
+ marginLeft: string | number | {
538
+ readonly [$$ScaleValue]: "space";
539
+ };
540
+ };
541
+ mx: (value: string | number | {
542
+ readonly [$$ScaleValue]: "space";
543
+ }) => {
544
+ marginLeft: string | number | {
545
+ readonly [$$ScaleValue]: "space";
546
+ };
547
+ marginRight: string | number | {
548
+ readonly [$$ScaleValue]: "space";
549
+ };
550
+ };
551
+ my: (value: string | number | {
552
+ readonly [$$ScaleValue]: "space";
553
+ }) => {
554
+ marginTop: string | number | {
555
+ readonly [$$ScaleValue]: "space";
556
+ };
557
+ marginBottom: string | number | {
558
+ readonly [$$ScaleValue]: "space";
559
+ };
560
+ };
561
+ }>>;
562
+ declare type HandleProps = Omit<React.ComponentProps<typeof StyledHandle>, 'children'> & Pick<React.ComponentProps<typeof Icon>, 'size'>;
563
+ export declare const Handle: React.ForwardRefExoticComponent<HandleProps>;
564
+ export {};
@@ -0,0 +1 @@
1
+ import{ActionIcon as n}from"../../action-icon/ActionIcon.js";import{Icon as s}from"../../icon/Icon.js";import{styled as m}from"../../../stitches.js";import{DragHandle as g}from"@atom-learning/icons";import*as r from"react";const i=m(n,{color:"inherit !important",fill:"currentColor",variants:{isDragging:{true:{cursor:"grabbing"},false:{cursor:"grab"}}}}),l=r.forwardRef(({isDragging:o,size:e,...t},a)=>r.createElement(i,{ref:a,isDragging:o,appearance:"simple",size:e,...t},r.createElement(s,{is:g,size:e})));export{l as Handle,i as StyledHandle};
@@ -0,0 +1,4 @@
1
+ export { DragAndDropContainer } from './DragAndDropContainer';
2
+ export { DraggableRow } from './DraggableRow';
3
+ export { Handle } from './Handle';
4
+ export { DragAndDropTable } from './DragAndDropTable';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { PaginationState } from '@tanstack/react-table';
3
+ export declare const usePagination: (initialPaginationState: PaginationState | undefined) => {
4
+ isPaginated: boolean;
5
+ paginationState: PaginationState | undefined;
6
+ setPaginationState: React.Dispatch<React.SetStateAction<PaginationState | undefined>>;
7
+ applyPagination: () => void;
8
+ };
@@ -0,0 +1 @@
1
+ import t from"react";const g={pageIndex:0,pageSize:10},p=a=>{const[e,n]=t.useState(!!a),[i,o]=t.useState({...g,...a||{}}),s=t.useCallback(()=>{n(!0)},[]);return{isPaginated:e,paginationState:i,setPaginationState:o,applyPagination:s}};export{p as usePagination};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { SortingState } from '@tanstack/react-table';
3
+ import { TDefaultSort } from './DataTable.types';
4
+ export declare const useSortByColumn: (defaultSort: TDefaultSort | undefined) => {
5
+ isSortable: boolean;
6
+ setIsSortable: React.Dispatch<React.SetStateAction<boolean>>;
7
+ sorting: SortingState;
8
+ setSorting: React.Dispatch<React.SetStateAction<SortingState>>;
9
+ };
@@ -0,0 +1 @@
1
+ import e from"react";const i=t=>{const[o,s]=e.useState(!1),[r,n]=e.useState(t?[{id:t.column,desc:t.direction==="desc"}]:[]);return{isSortable:o,setIsSortable:s,sorting:r,setSorting:n}};export{i as useSortByColumn};
@@ -1 +1 @@
1
- import*as d from"react";import{styled as m}from"../../stitches.js";import{TableBody as f}from"./TableBody.js";import{TableCell as o}from"./TableCell.js";import{TableFooter as p}from"./TableFooter.js";import{TableFooterCell as t}from"./TableFooterCell.js";import{TableHeader as $}from"./TableHeader.js";import{TableHeaderCell as r}from"./TableHeaderCell.js";import{TableRow as l}from"./TableRow.js";const b=m("table",{borderCollapse:"separate",borderSpacing:0,fontFamily:"$sans",fontSize:"$sm",width:"100%",variants:{size:{md:{[`${o}, ${r}, ${t}`]:{height:"$4"}},lg:{[`${o}, ${r}, ${t}`]:{height:"$5"}}},corners:{round:{[`${r}`]:{"&:first-of-type":{borderTopLeftRadius:"$0"},"&:last-of-type":{borderTopRightRadius:"$0"}},[`${l}:last-child`]:{[`${o}:first-child`]:{borderBottomLeftRadius:"$0"},[`${o}:last-child`]:{borderBottomRightRadius:"$0"}}},square:{}}}}),e=({size:a="md",corners:i="round",...s})=>d.createElement(b,{size:a,corners:i,...s});e.Body=f,e.Cell=o,e.Footer=p,e.FooterCell=t,e.Header=$,e.HeaderCell=r,e.Row=l,e.displayName="Table";export{e as Table};
1
+ import*as d from"react";import{styled as s}from"../../stitches.js";import{TableBody as m}from"./TableBody.js";import{TableCell as o}from"./TableCell.js";import{TableFooter as p}from"./TableFooter.js";import{TableFooterCell as t}from"./TableFooterCell.js";import{TableHeader as $}from"./TableHeader.js";import{TableHeaderCell as r}from"./TableHeaderCell.js";import{StyledRow as f,TableRow as b}from"./TableRow.js";const n=s("table",{borderCollapse:"separate",borderSpacing:0,fontFamily:"$sans",fontSize:"$sm",width:"100%",variants:{size:{md:{[`${o}, ${r}, ${t}`]:{height:"$4"}},lg:{[`${o}, ${r}, ${t}`]:{height:"$5"}}},corners:{round:{[`${r}`]:{"&:first-of-type":{borderTopLeftRadius:"$0"},"&:last-of-type":{borderTopRightRadius:"$0"}},[`${f}:last-child`]:{[`${o}:first-child`]:{borderBottomLeftRadius:"$0"},[`${o}:last-child`]:{borderBottomRightRadius:"$0"}}},square:{}}}}),e=({size:l="md",corners:a="round",...i})=>d.createElement(n,{size:l,corners:a,...i});e.Body=m,e.Cell=o,e.Footer=p,e.FooterCell=t,e.Header=$,e.HeaderCell=r,e.Row=b,e.displayName="Table";export{e as Table};
@@ -1 +1 @@
1
- import*as r from"react";import{styled as d}from"../../stitches.js";import{TableRow as i}from"./TableRow.js";const a=d("tbody",{variants:{striped:{true:{[`${i}`]:{"&:nth-child(odd)":{bg:"white"},"&:nth-child(even)":{bg:"$tonal50"}}},false:{bg:"white"}}}}),t=({striped:e=!0,...o})=>r.createElement(a,{striped:e,...o});t.displayName="TableBody";export{t as TableBody};
1
+ import*as d from"react";import{styled as r}from"../../stitches.js";import{StyledRow as i}from"./TableRow.js";const l=r("tbody",{variants:{striped:{true:{[`${i}`]:{"&:nth-child(odd)":{bg:"white"},"&:nth-child(even)":{bg:"$tonal50"}}},false:{bg:"white"}}}}),t=({striped:e=!0,...o})=>d.createElement(l,{striped:e,...o});t.displayName="TableBody";export{t as TableBody};