@atom-learning/components 2.28.0-beta.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 (106) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/accordion/AccordionContent.js +1 -1
  3. package/dist/components/accordion/AccordionItem.js +1 -1
  4. package/dist/components/accordion/AccordionTrigger.d.ts +4 -5
  5. package/dist/components/accordion/AccordionTrigger.js +1 -1
  6. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  7. package/dist/components/avatar/Avatar.js +1 -1
  8. package/dist/components/button/Button.js +1 -1
  9. package/dist/components/calendar/Calendar.js +1 -1
  10. package/dist/components/carousel/CarouselArrows.js +1 -1
  11. package/dist/components/carousel/CarouselSlide.js +1 -1
  12. package/dist/components/checkbox-field/CheckboxField.js +1 -1
  13. package/dist/components/chip/Chip.js +1 -1
  14. package/dist/components/chip/ChipGroup.js +1 -1
  15. package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -1
  16. package/dist/components/data-table/DataTable.d.ts +5 -0
  17. package/dist/components/data-table/DataTable.js +1 -1
  18. package/dist/components/data-table/DataTable.types.d.ts +18 -2
  19. package/dist/components/data-table/DataTableBody.js +1 -1
  20. package/dist/components/data-table/DataTableContext.d.ts +5 -10
  21. package/dist/components/data-table/DataTableContext.js +1 -1
  22. package/dist/components/data-table/DataTableDataCell.js +1 -1
  23. package/dist/components/data-table/DataTableRow.d.ts +1 -2
  24. package/dist/components/data-table/DataTableRow.js +1 -1
  25. package/dist/components/data-table/DataTableTable.d.ts +1 -2
  26. package/dist/components/data-table/drag-and-drop/DragAndDropContainer.d.ts +21 -0
  27. package/dist/components/data-table/drag-and-drop/DragAndDropContainer.js +1 -0
  28. package/dist/components/data-table/drag-and-drop/DragAndDropTable.d.ts +8 -0
  29. package/dist/components/data-table/drag-and-drop/DragAndDropTable.js +1 -0
  30. package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.d.ts +5 -0
  31. package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.js +1 -0
  32. package/dist/components/data-table/drag-and-drop/DraggableRow.d.ts +7 -0
  33. package/dist/components/data-table/drag-and-drop/DraggableRow.js +1 -0
  34. package/dist/components/data-table/drag-and-drop/Handle.d.ts +564 -0
  35. package/dist/components/data-table/drag-and-drop/Handle.js +1 -0
  36. package/dist/components/data-table/drag-and-drop/index.d.ts +4 -0
  37. package/dist/components/data-table/usePagination.d.ts +8 -0
  38. package/dist/components/data-table/usePagination.js +1 -0
  39. package/dist/components/data-table/useSorting.d.ts +9 -0
  40. package/dist/components/data-table/useSorting.js +1 -0
  41. package/dist/components/dialog/DialogContent.js +1 -1
  42. package/dist/components/dismissible/DismissibleRoot.js +1 -1
  43. package/dist/components/dismissible/DismissibleTrigger.js +1 -1
  44. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
  45. package/dist/components/field-wrapper/FieldDescription.js +1 -1
  46. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  47. package/dist/components/file-input/FileInput.js +1 -1
  48. package/dist/components/grid/Grid.js +1 -1
  49. package/dist/components/icon/Icon.js +1 -1
  50. package/dist/components/inline-message/InlineMessage.js +1 -1
  51. package/dist/components/label/Label.js +1 -1
  52. package/dist/components/link/Link.js +1 -1
  53. package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
  54. package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
  55. package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
  56. package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
  57. package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
  58. package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
  59. package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
  60. package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
  61. package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
  62. package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
  63. package/dist/components/navigation/NavigationMenuLink.js +1 -1
  64. package/dist/components/notification-badge/NotificationBadge.js +1 -1
  65. package/dist/components/number-input/NumberInput.js +1 -1
  66. package/dist/components/number-input-field/NumberInputField.js +1 -1
  67. package/dist/components/popover/PopoverContent.js +1 -1
  68. package/dist/components/radio-button/RadioButton.js +1 -1
  69. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  70. package/dist/components/radio-button-field/RadioField.js +1 -1
  71. package/dist/components/radio-card/RadioCardGroup.js +1 -1
  72. package/dist/components/search-input/SearchInput.js +1 -1
  73. package/dist/components/select-field/SelectField.js +1 -1
  74. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
  75. package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
  76. package/dist/components/slider-field/SliderField.js +1 -1
  77. package/dist/components/stack-content/StackContent.js +1 -1
  78. package/dist/components/stepper/StepperStepBack.js +1 -1
  79. package/dist/components/table/Table.js +1 -1
  80. package/dist/components/table/TableBody.js +1 -1
  81. package/dist/components/table/TableHeader.js +1 -1
  82. package/dist/components/table/TableRow.d.ts +272 -1
  83. package/dist/components/table/TableRow.js +1 -1
  84. package/dist/components/tabs/{TabsTrigger.d.ts → TabTrigger.d.ts} +6 -3
  85. package/dist/components/tabs/TabTrigger.js +1 -0
  86. package/dist/components/tabs/Tabs.d.ts +276 -7
  87. package/dist/components/tabs/Tabs.js +1 -1
  88. package/dist/components/tabs/TabsTriggerList.d.ts +9 -5
  89. package/dist/components/tabs/TabsTriggerList.js +1 -1
  90. package/dist/components/tabs/utils.d.ts +2 -0
  91. package/dist/components/tabs/utils.js +1 -0
  92. package/dist/components/toast/Toast.js +1 -1
  93. package/dist/components/toast/ToastProvider.js +1 -1
  94. package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
  95. package/dist/components/tooltip/TooltipContent.js +1 -1
  96. package/dist/components/video/Video.js +1 -1
  97. package/dist/docgen.json +1 -1
  98. package/dist/docs/Accordion.mdx +7 -56
  99. package/dist/docs/DataTable.mdx +37 -1
  100. package/dist/docs/Tabs.mdx +57 -31
  101. package/dist/index.cjs.js +1 -1
  102. package/dist/utilities/hooks/useCallbackRef.js +1 -1
  103. package/package.json +6 -3
  104. package/dist/components/tabs/TabsContent.d.ts +0 -267
  105. package/dist/components/tabs/TabsContent.js +0 -1
  106. package/dist/components/tabs/TabsTrigger.js +0 -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{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as w,Close as g}from"@radix-ui/react-dialog";import*as t from"react";import{DIALOG_Z_INDEX as r}from"../../constants/zIndices.js";import{keyframes as n,styled as l}from"../../stitches.js";import{ActionIcon as v}from"../action-icon/ActionIcon.js";import{Icon as $}from"../icon/Icon.js";import{DialogBackground as s}from"./DialogBackground.js";import{fadeIn as z,fadeOut as C}from"../../utilities/style/keyframe-animations.js";const e="translate3d(-50%, -50%, 0)",m="translate3d(-50%, 50vh, 0)",d="modal_overlay",D=n({"0%":{transform:m},"100%":{transform:e}}),I=n({"0%":{transform:e},"100%":{transform:m}}),y=l(x,{backgroundColor:"$alpha600",inset:0,position:"fixed",overflowY:"auto",zIndex:r,"@allowMotion":{'&[data-state="open"]':{animation:`${z} 250ms ease-out`},'&[data-state="closed"]':{animation:`${C} 550ms ease-out`}}}),E=l(b,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",p:"$5",position:"fixed",top:"50%",transform:e,zIndex:r,"&:focus":{outline:"none"},"@allowMotion":{'&[data-state="open"]':{animation:`${D} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${I} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{xs:{width:"380px"},sm:{width:"480px"},md:{width:"600px"},lg:{width:"800px"},xl:{width:"1100px"}}}}),O=({size:p="sm",children:a,closeDialogText:f="Close dialog",showCloseButton:c=!0,...u})=>t.createElement(w,null,t.createElement(y,{id:d},t.Children.map(a,o=>(o==null?void 0:o.type)===s&&o),t.createElement(E,{size:p,"aria-label":"Dialog",onPointerDownOutside:o=>{const i=o.target;(i==null?void 0:i.id)!==d&&o.preventDefault()},...u},c&&t.createElement(v,{as:g,css:{position:"absolute",right:"$4",top:"$4"},label:f,size:"md",theme:"neutral"},t.createElement($,{is:h})),t.Children.map(a,o=>(o==null?void 0:o.type)!==s&&o))));export{O as DialogContent};
1
+ import{Close as h}from"@atom-learning/icons";import{Overlay as x,Content as b,Portal as w,Close as g}from"@radix-ui/react-dialog";import*as o from"react";import{DIALOG_Z_INDEX as r}from"../../constants/zIndices.js";import{keyframes as n,styled as l}from"../../stitches.js";import{ActionIcon as v}from"../action-icon/ActionIcon.js";import{Icon as $}from"../icon/Icon.js";import{DialogBackground as s}from"./DialogBackground.js";import{fadeIn as z,fadeOut as C}from"../../utilities/style/keyframe-animations.js";const e="translate3d(-50%, -50%, 0)",m="translate3d(-50%, 50vh, 0)",d="modal_overlay",D=n({"0%":{transform:m},"100%":{transform:e}}),I=n({"0%":{transform:e},"100%":{transform:m}}),y=l(x,{backgroundColor:"$alpha600",inset:0,position:"fixed",overflowY:"auto",zIndex:r,"@allowMotion":{'&[data-state="open"]':{animation:`${z} 250ms ease-out`},'&[data-state="closed"]':{animation:`${C} 550ms ease-out`}}}),E=l(b,{bg:"white",borderRadius:"$1",boxShadow:"$3",boxSizing:"border-box",left:"50%",maxWidth:"90vw",maxHeight:"90vh",overflowY:"auto",p:"$5",position:"fixed",top:"50%",transform:e,zIndex:r,"&:focus":{outline:"none"},"@allowMotion":{'&[data-state="open"]':{animation:`${D} 550ms cubic-bezier(0.22, 1, 0.36, 1)`},'&[data-state="closed"]':{animation:`${I} 550ms cubic-bezier(0.22, 1, 0.36, 1)`}},variants:{size:{xs:{width:"380px"},sm:{width:"480px"},md:{width:"600px"},lg:{width:"800px"},xl:{width:"1100px"}}}}),O=({size:p="sm",children:a,closeDialogText:f="Close dialog",showCloseButton:c=!0,...u})=>o.createElement(w,null,o.createElement(y,{id:d},o.Children.map(a,t=>(t==null?void 0:t.type)===s&&t),o.createElement(E,{size:p,"aria-label":"Dialog",onPointerDownOutside:t=>{const i=t.target;(i==null?void 0:i.id)!==d&&t.preventDefault()},...u},c&&o.createElement(v,{as:g,css:{position:"absolute",right:"$4",top:"$4"},label:f,size:"md",theme:"neutral"},o.createElement($,{is:h})),o.Children.map(a,t=>(t==null?void 0:t.type)!==s&&t))));export{O as DialogContent};
@@ -1 +1 @@
1
- import*as e from"react";import{Slot as c}from"@radix-ui/react-slot";const r=e.createContext({isDismissed:!1,setIsDismissed:()=>null}),n=({children:i,disabled:s})=>{const[t,o]=e.useState(!1),l=e.useMemo(()=>({disabled:s,isDismissed:t,setIsDismissed:o}),[s,t]);return e.createElement(r.Provider,{value:l},i)},u=({asChild:i=!1,value:s,onDismiss:t,...o})=>{const l=e.useContext(r),{isDismissed:d,disabled:a}=l;if(e.useEffect(()=>{d&&(t==null||t(s))},[d]),d)return null;const m={...a&&{["data-disabled"]:""},...o};return e.createElement(i?c:"div",{...m})},b=({disabled:i=!1,...s})=>e.createElement(n,{disabled:i},e.createElement(u,{...s}));export{b as DismissibleRoot,r as DismissibleRootContext,n as DismissibleRootProvider};
1
+ import*as e from"react";import{Slot as c}from"@radix-ui/react-slot";const r=e.createContext({isDismissed:!1,setIsDismissed:()=>null}),n=({children:t,disabled:s})=>{const[i,l]=e.useState(!1),o=e.useMemo(()=>({disabled:s,isDismissed:i,setIsDismissed:l}),[s,i]);return e.createElement(r.Provider,{value:o},t)},u=({asChild:t=!1,value:s,onDismiss:i,...l})=>{const o=e.useContext(r),{isDismissed:d,disabled:a}=o;if(e.useEffect(()=>{d&&(i==null||i(s))},[d]),d)return null;const m={...a&&{["data-disabled"]:""},...l};return e.createElement(t?c:"div",{...m})},b=({disabled:t=!1,...s})=>e.createElement(n,{disabled:t},e.createElement(u,{...s}));export{b as DismissibleRoot,r as DismissibleRootContext,n as DismissibleRootProvider};
@@ -1 +1 @@
1
- import*as e from"react";import{Slot as m}from"@radix-ui/react-slot";import{DismissibleRootContext as l}from"./DismissibleRoot.js";const b=s=>e.createElement("button",{type:"button",...s},"Dismiss"),a=({asChild:s=!1,...t})=>{const i=e.useContext(l);if(i===void 0)throw new Error("Dismissible.Trigger can only be used within a Dismissible.Item");const{setIsDismissed:o,disabled:r}=i,n={disabled:r,onClick:()=>{o(!0)},...t};return e.createElement(s?m:b,{...n})};export{a as DismissibleTrigger};
1
+ import*as t from"react";import{Slot as m}from"@radix-ui/react-slot";import{DismissibleRootContext as l}from"./DismissibleRoot.js";const b=s=>t.createElement("button",{type:"button",...s},"Dismiss"),a=({asChild:s=!1,...i})=>{const e=t.useContext(l);if(e===void 0)throw new Error("Dismissible.Trigger can only be used within a Dismissible.Item");const{setIsDismissed:o,disabled:r}=e,n={disabled:r,onClick:()=>{o(!0)},...i};return t.createElement(s?m:b,{...n})};export{a as DismissibleTrigger};
@@ -1 +1 @@
1
- import e from"react";import{styled as n}from"../../stitches.js";import{DropdownMenuItem as m}from"./DropdownMenuItem.js";const i=n("a",{textDecoration:"none"}),l=({children:o,href:t,...r})=>e.createElement(m,{...r,asChild:!0},e.createElement(i,{href:t,role:"menuitem"},o));export{l as DropdownMenuLinkItem};
1
+ import e from"react";import{styled as n}from"../../stitches.js";import{DropdownMenuItem as m}from"./DropdownMenuItem.js";const i=n("a",{textDecoration:"none"}),l=({children:t,href:o,...r})=>e.createElement(m,{...r,asChild:!0},e.createElement(i,{href:o,role:"menuitem"},t));export{l as DropdownMenuLinkItem};
@@ -1 +1 @@
1
- import*as e from"react";import{Text as r}from"../text/Text.js";const s=({children:o,css:t})=>e.createElement(r,{size:"sm",css:{color:"$tonal300",maxWidth:"80ch",...t}},o);export{s as Description};
1
+ import*as e from"react";import{Text as r}from"../text/Text.js";const s=({children:t,css:o})=>e.createElement(r,{size:"sm",css:{color:"$tonal300",maxWidth:"80ch",...o}},t);export{s as Description};
@@ -1 +1 @@
1
- import*as e from"react";import{Box as m}from"../box/Box.js";import{Checkbox as d}from"../checkbox/Checkbox.js";import{Label as f}from"../label/Label.js";import{RadioButton as $}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";import{InlineMessage as u}from"../inline-message/InlineMessage.js";import{Description as E}from"./FieldDescription.js";const l=({align:n="start",children:a,css:s,description:i,direction:t="row",error:o,label:p,required:c})=>e.createElement(m,{css:s},e.createElement(f,{align:n,direction:t,required:c,type:"inline"},e.Children.map(a,r=>e.createElement(m,{css:{[t==="reverse"?"ml":"mr"]:"$3",...((r==null?void 0:r.type)===d||(r==null?void 0:r.type)===$)&&{transform:"translateY($space$1)"}}},r)),p),o&&e.createElement(u,{css:{mt:"$2"}},o),i&&e.createElement(E,{css:{mt:"$2",[t==="reverse"?"mr":"ml"]:"calc($space$3 + $sizes$1)"}},i));l.displayName="InlineFieldWrapper";export{l as InlineFieldWrapper};
1
+ import*as e from"react";import{Box as o}from"../box/Box.js";import{Checkbox as d}from"../checkbox/Checkbox.js";import{Label as f}from"../label/Label.js";import{RadioButton as $}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";import{InlineMessage as u}from"../inline-message/InlineMessage.js";import{Description as E}from"./FieldDescription.js";const l=({align:n="start",children:a,css:s,description:i,direction:t="row",error:m,label:p,required:c})=>e.createElement(o,{css:s},e.createElement(f,{align:n,direction:t,required:c,type:"inline"},e.Children.map(a,r=>e.createElement(o,{css:{[t==="reverse"?"ml":"mr"]:"$3",...((r==null?void 0:r.type)===d||(r==null?void 0:r.type)===$)&&{transform:"translateY($space$1)"}}},r)),p),m&&e.createElement(u,{css:{mt:"$2"}},m),i&&e.createElement(E,{css:{mt:"$2",[t==="reverse"?"mr":"ml"]:"calc($space$3 + $sizes$1)"}},i));l.displayName="InlineFieldWrapper";export{l as InlineFieldWrapper};
@@ -1 +1 @@
1
- import{Upload as c}from"@atom-learning/icons";import*as e from"react";import{Button as s}from"../button/Button.js";import{Icon as u}from"../icon/Icon.js";const t=({accept:l,children:o,multiple:i=!1,onFileSelect:n,...r})=>{const p=a=>{const{files:m}=a.target;n(m)};return e.createElement(s,{as:"label",...r},e.createElement(u,{is:c}),o,e.createElement("input",{type:"file",onChange:p,accept:l,multiple:i,hidden:!0}))};t.displayName="FileInput";export{t as FileInput};
1
+ import{Upload as c}from"@atom-learning/icons";import*as e from"react";import{Button as s}from"../button/Button.js";import{Icon as u}from"../icon/Icon.js";const t=({accept:l,children:i,multiple:n=!1,onFileSelect:o,...r})=>{const p=a=>{const{files:m}=a.target;o(m)};return e.createElement(s,{as:"label",...r},e.createElement(u,{is:c}),i,e.createElement("input",{type:"file",onChange:p,accept:l,multiple:n,hidden:!0}))};t.displayName="FileInput";export{t as FileInput};
@@ -1 +1 @@
1
- import*as s from"react";import{styled as p}from"../../stitches.js";import{createThemeVariants as o}from"../../utilities/create-theme-variants/createThemeVariants.js";const d=p("div",{display:"grid",variants:{gap:o("space",{gap:"$key"})}}),a=({css:m,gap:t=2,minItemSize:e,maxItemSize:i="1fr",...r})=>s.createElement(d,{css:{...e&&{gridTemplateColumns:`repeat(auto-fit, minmax(${e}, ${i}))`},...m},gap:t,...r});a.displayName="Grid";export{a as Grid};
1
+ import*as s from"react";import{styled as p}from"../../stitches.js";import{createThemeVariants as o}from"../../utilities/create-theme-variants/createThemeVariants.js";const d=p("div",{display:"grid",variants:{gap:o("space",{gap:"$key"})}}),a=({css:t,gap:m=2,minItemSize:e,maxItemSize:i="1fr",...r})=>s.createElement(d,{css:{...e&&{gridTemplateColumns:`repeat(auto-fit, minmax(${e}, ${i}))`},...t},gap:m,...r});a.displayName="Grid";export{a as Grid};