@cerberus-design/react 0.7.4-next-1cd5801 → 0.7.4-next-7fa6bfb

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 (71) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.ts +306 -1
  2. package/build/legacy/{chunk-7CZ3NIGH.js → chunk-3RZUW5KH.js} +10 -10
  3. package/build/legacy/{chunk-XGNAFSMG.js → chunk-7BB66W4A.js} +2 -2
  4. package/build/legacy/chunk-7VJOPJVX.js +29 -0
  5. package/build/legacy/chunk-7VJOPJVX.js.map +1 -0
  6. package/build/legacy/{chunk-JWQJLOX4.js → chunk-ANXV7JDK.js} +2 -2
  7. package/build/legacy/chunk-DCI4IKCI.js +63 -0
  8. package/build/legacy/chunk-DCI4IKCI.js.map +1 -0
  9. package/build/legacy/{chunk-5GEC53G7.js → chunk-DED42MIR.js} +5 -5
  10. package/build/legacy/{chunk-C45DY4VE.js → chunk-GIHAFJYX.js} +3 -1
  11. package/build/legacy/chunk-GIHAFJYX.js.map +1 -0
  12. package/build/{modern/chunk-CU7HXAKM.js → legacy/chunk-JJGZRBIR.js} +4 -4
  13. package/build/{modern/chunk-6TXQZ3PB.js → legacy/chunk-OLQQB53X.js} +2 -2
  14. package/build/legacy/components/Droppable.js +8 -0
  15. package/build/legacy/components/Droppable.js.map +1 -0
  16. package/build/legacy/components/FileUploader.js +11 -0
  17. package/build/legacy/components/FileUploader.js.map +1 -0
  18. package/build/legacy/components/Input.js +4 -4
  19. package/build/legacy/components/Label.js +2 -2
  20. package/build/legacy/components/Toggle.js +3 -3
  21. package/build/legacy/config/cerbIcons.js +1 -1
  22. package/build/legacy/config/defineIcons.js +2 -2
  23. package/build/legacy/context/confirm-modal.js +3 -3
  24. package/build/legacy/context/prompt-modal.js +6 -6
  25. package/build/legacy/index.js +41 -30
  26. package/build/legacy/index.js.map +1 -1
  27. package/build/modern/_tsup-dts-rollup.d.ts +306 -1
  28. package/build/modern/chunk-2NSXMFKX.js +62 -0
  29. package/build/modern/chunk-2NSXMFKX.js.map +1 -0
  30. package/build/modern/chunk-7VJOPJVX.js +29 -0
  31. package/build/modern/chunk-7VJOPJVX.js.map +1 -0
  32. package/build/modern/{chunk-JWQJLOX4.js → chunk-ANXV7JDK.js} +2 -2
  33. package/build/modern/{chunk-5GEC53G7.js → chunk-DED42MIR.js} +5 -5
  34. package/build/modern/{chunk-FAXDUWAU.js → chunk-DKHQ5GBY.js} +10 -10
  35. package/build/modern/{chunk-C45DY4VE.js → chunk-GIHAFJYX.js} +3 -1
  36. package/build/modern/chunk-GIHAFJYX.js.map +1 -0
  37. package/build/{legacy/chunk-CU7HXAKM.js → modern/chunk-JJGZRBIR.js} +4 -4
  38. package/build/{legacy/chunk-6TXQZ3PB.js → modern/chunk-OLQQB53X.js} +2 -2
  39. package/build/modern/{chunk-TPRGGEVJ.js → chunk-SHNZS357.js} +2 -2
  40. package/build/modern/components/Droppable.js +8 -0
  41. package/build/modern/components/Droppable.js.map +1 -0
  42. package/build/modern/components/FileUploader.js +11 -0
  43. package/build/modern/components/FileUploader.js.map +1 -0
  44. package/build/modern/components/Input.js +4 -4
  45. package/build/modern/components/Label.js +2 -2
  46. package/build/modern/components/Toggle.js +3 -3
  47. package/build/modern/config/cerbIcons.js +1 -1
  48. package/build/modern/config/defineIcons.js +2 -2
  49. package/build/modern/context/confirm-modal.js +3 -3
  50. package/build/modern/context/prompt-modal.js +6 -6
  51. package/build/modern/index.js +41 -30
  52. package/build/modern/index.js.map +1 -1
  53. package/package.json +5 -2
  54. package/src/components/Droppable.tsx +33 -0
  55. package/src/components/FileUploader.tsx +55 -0
  56. package/src/config/cerbIcons.ts +3 -0
  57. package/src/index.ts +6 -0
  58. package/build/legacy/chunk-C45DY4VE.js.map +0 -1
  59. package/build/modern/chunk-C45DY4VE.js.map +0 -1
  60. /package/build/legacy/{chunk-7CZ3NIGH.js.map → chunk-3RZUW5KH.js.map} +0 -0
  61. /package/build/legacy/{chunk-XGNAFSMG.js.map → chunk-7BB66W4A.js.map} +0 -0
  62. /package/build/legacy/{chunk-JWQJLOX4.js.map → chunk-ANXV7JDK.js.map} +0 -0
  63. /package/build/legacy/{chunk-5GEC53G7.js.map → chunk-DED42MIR.js.map} +0 -0
  64. /package/build/legacy/{chunk-CU7HXAKM.js.map → chunk-JJGZRBIR.js.map} +0 -0
  65. /package/build/legacy/{chunk-6TXQZ3PB.js.map → chunk-OLQQB53X.js.map} +0 -0
  66. /package/build/modern/{chunk-JWQJLOX4.js.map → chunk-ANXV7JDK.js.map} +0 -0
  67. /package/build/modern/{chunk-5GEC53G7.js.map → chunk-DED42MIR.js.map} +0 -0
  68. /package/build/modern/{chunk-FAXDUWAU.js.map → chunk-DKHQ5GBY.js.map} +0 -0
  69. /package/build/modern/{chunk-CU7HXAKM.js.map → chunk-JJGZRBIR.js.map} +0 -0
  70. /package/build/modern/{chunk-6TXQZ3PB.js.map → chunk-OLQQB53X.js.map} +0 -0
  71. /package/build/modern/{chunk-TPRGGEVJ.js.map → chunk-SHNZS357.js.map} +0 -0
@@ -1,21 +1,91 @@
1
+ import { Activator } from '@dnd-kit/core';
2
+ import { Activators } from '@dnd-kit/core';
3
+ import { Active } from '@dnd-kit/core';
1
4
  import type { AnchorHTMLAttributes } from 'react';
5
+ import { Announcements } from '@dnd-kit/core';
6
+ import { applyModifiers } from '@dnd-kit/core';
7
+ import { AutoScrollActivator } from '@dnd-kit/core';
8
+ import { AutoScrollOptions } from '@dnd-kit/core';
2
9
  import { button } from '@cerberus/styled-system/recipes';
3
10
  import { ButtonHTMLAttributes } from 'react';
11
+ import { CancelDrop } from '@dnd-kit/core';
4
12
  import { CarbonIconType } from '@cerberus/icons';
5
13
  import { ChangeEvent } from 'react';
14
+ import { ClientRect as ClientRect_2 } from '@dnd-kit/core';
15
+ import { closestCenter } from '@dnd-kit/core';
16
+ import { closestCorners } from '@dnd-kit/core';
17
+ import { Collision } from '@dnd-kit/core';
18
+ import { CollisionDescriptor } from '@dnd-kit/core';
19
+ import { CollisionDetection } from '@dnd-kit/core';
6
20
  import { Context } from 'react';
21
+ import { Data } from '@dnd-kit/core';
22
+ import { DataRef } from '@dnd-kit/core';
23
+ import { defaultAnnouncements } from '@dnd-kit/core';
24
+ import { defaultCoordinates } from '@dnd-kit/core';
25
+ import { defaultDropAnimation } from '@dnd-kit/core';
26
+ import { defaultDropAnimationSideEffects } from '@dnd-kit/core';
27
+ import { defaultScreenReaderInstructions } from '@dnd-kit/core';
28
+ import { DistanceMeasurement } from '@dnd-kit/core';
29
+ import { DndContext } from '@dnd-kit/core';
30
+ import { DndContextDescriptor } from '@dnd-kit/core';
31
+ import { DndContextProps } from '@dnd-kit/core';
32
+ import { DndMonitorArguments } from '@dnd-kit/core';
33
+ import { DndMonitorListener } from '@dnd-kit/core';
34
+ import { DragCancelEvent } from '@dnd-kit/core';
35
+ import { DragEndEvent } from '@dnd-kit/core';
36
+ import { DraggableAttributes } from '@dnd-kit/core';
37
+ import { DraggableMeasuring } from '@dnd-kit/core';
38
+ import { DraggableNode } from '@dnd-kit/core';
39
+ import { DraggableSyntheticListeners } from '@dnd-kit/core';
40
+ import { DragMoveEvent } from '@dnd-kit/core';
41
+ import { DragOverEvent } from '@dnd-kit/core';
42
+ import { DragOverlay } from '@dnd-kit/core';
43
+ import { DragOverlayProps } from '@dnd-kit/core';
44
+ import { DragStartEvent } from '@dnd-kit/core';
45
+ import { DropAnimation } from '@dnd-kit/core';
46
+ import { DropAnimationFunction } from '@dnd-kit/core';
47
+ import { DropAnimationFunctionArguments } from '@dnd-kit/core';
48
+ import { DropAnimationKeyframeResolver } from '@dnd-kit/core';
49
+ import { DropAnimationSideEffects } from '@dnd-kit/core';
50
+ import { DroppableContainer } from '@dnd-kit/core';
51
+ import { DroppableContainers } from '@dnd-kit/core';
52
+ import { DroppableMeasuring } from '@dnd-kit/core';
7
53
  import { ElementType } from 'react';
8
54
  import { fieldMessage } from '@cerberus/styled-system/recipes';
9
55
  import { ForwardRefExoticComponent } from 'react';
56
+ import { getClientRect } from '@dnd-kit/core';
57
+ import { getFirstCollision } from '@dnd-kit/core';
58
+ import { getScrollableAncestors } from '@dnd-kit/core';
10
59
  import { HTMLAttributes } from 'react';
60
+ import { HtmlHTMLAttributes } from 'react';
11
61
  import { iconButton } from '@cerberus/styled-system/recipes';
12
62
  import { input } from '@cerberus/styled-system/recipes';
13
- import type { InputHTMLAttributes } from 'react';
63
+ import { InputHTMLAttributes } from 'react';
14
64
  import { JSX as JSX_2 } from 'react/jsx-runtime';
65
+ import { KeyboardCode } from '@dnd-kit/core';
66
+ import { KeyboardCodes } from '@dnd-kit/core';
67
+ import { KeyboardCoordinateGetter } from '@dnd-kit/core';
15
68
  import type { KeyboardEventHandler } from 'react';
69
+ import { KeyboardSensor } from '@dnd-kit/core';
70
+ import { KeyboardSensorOptions } from '@dnd-kit/core';
71
+ import { KeyboardSensorProps } from '@dnd-kit/core';
16
72
  import { label } from '@cerberus/styled-system/recipes';
73
+ import { MeasuringConfiguration } from '@dnd-kit/core';
74
+ import { MeasuringFrequency } from '@dnd-kit/core';
75
+ import { MeasuringStrategy } from '@dnd-kit/core';
17
76
  import { ModalIconVariantProps } from '@cerberus/styled-system/recipes';
77
+ import { Modifier } from '@dnd-kit/core';
78
+ import { Modifiers } from '@dnd-kit/core';
79
+ import { MouseSensor } from '@dnd-kit/core';
80
+ import { MouseSensorOptions } from '@dnd-kit/core';
18
81
  import { MutableRefObject } from 'react';
82
+ import { Over } from '@dnd-kit/core';
83
+ import { PointerActivationConstraint } from '@dnd-kit/core';
84
+ import { PointerEventHandlers } from '@dnd-kit/core';
85
+ import { PointerSensor } from '@dnd-kit/core';
86
+ import { PointerSensorOptions } from '@dnd-kit/core';
87
+ import { PointerSensorProps } from '@dnd-kit/core';
88
+ import { pointerWithin } from '@dnd-kit/core';
19
89
  import type { Pretty } from '@cerberus/styled-system/types';
20
90
  import { PropsWithChildren } from 'react';
21
91
  import { radio } from '@cerberus/styled-system/recipes';
@@ -23,17 +93,56 @@ import { ReactNode } from 'react';
23
93
  import { ReactPortal } from 'react';
24
94
  import { RecipeVariantProps } from '@cerberus/styled-system/css';
25
95
  import type { RecipeVariantProps as RecipeVariantProps_2 } from '@cerberus/styled-system/types';
96
+ import { rectIntersection } from '@dnd-kit/core';
26
97
  import { RefAttributes } from 'react';
27
98
  import { RefObject } from 'react';
99
+ import { ScreenReaderInstructions } from '@dnd-kit/core';
100
+ import { Sensor } from '@dnd-kit/core';
101
+ import { SensorContext } from '@dnd-kit/core';
102
+ import { SensorDescriptor } from '@dnd-kit/core';
103
+ import { SensorHandler } from '@dnd-kit/core';
104
+ import { SensorInstance } from '@dnd-kit/core';
105
+ import { SensorOptions } from '@dnd-kit/core';
106
+ import { SensorProps } from '@dnd-kit/core';
107
+ import { SensorResponse } from '@dnd-kit/core';
108
+ import { Sensors } from '@dnd-kit/core';
28
109
  import { TabsVariantProps } from '@cerberus/styled-system/recipes';
29
110
  import { tag } from '@cerberus/styled-system/recipes';
30
111
  import type { TextareaHTMLAttributes } from 'react';
31
112
  import { ToggleVariantProps } from '@cerberus/styled-system/recipes';
113
+ import { TouchSensor } from '@dnd-kit/core';
114
+ import { TouchSensorOptions } from '@dnd-kit/core';
115
+ import { Translate } from '@dnd-kit/core';
116
+ import { TraversalOrder } from '@dnd-kit/core';
117
+ import { UniqueIdentifier } from '@dnd-kit/core';
118
+ import { useDndContext } from '@dnd-kit/core';
119
+ import { UseDndContextReturnValue } from '@dnd-kit/core';
120
+ import { useDndMonitor } from '@dnd-kit/core';
121
+ import { useDraggable } from '@dnd-kit/core';
122
+ import { UseDraggableArguments } from '@dnd-kit/core';
123
+ import { useDroppable } from '@dnd-kit/core';
124
+ import { UseDroppableArguments } from '@dnd-kit/core';
125
+ import { useSensor } from '@dnd-kit/core';
126
+ import { useSensors } from '@dnd-kit/core';
32
127
 
33
128
  declare let $cerberusIcons: Required<DefinedIcons>;
34
129
  export { $cerberusIcons }
35
130
  export { $cerberusIcons as $cerberusIcons_alias_1 }
36
131
 
132
+ export { Activator }
133
+
134
+ export { Activators }
135
+
136
+ export { Active }
137
+
138
+ export { Announcements }
139
+
140
+ export { applyModifiers }
141
+
142
+ export { AutoScrollActivator }
143
+
144
+ export { AutoScrollOptions }
145
+
37
146
  /**
38
147
  * A component that allows the user to perform actions
39
148
  * @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/Button.tsx
@@ -50,6 +159,8 @@ declare type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & RecipeVaria
50
159
  export { ButtonProps }
51
160
  export { ButtonProps as ButtonProps_alias_1 }
52
161
 
162
+ export { CancelDrop }
163
+
53
164
  declare type ClickableTagProps = HTMLAttributes<HTMLSpanElement> & {
54
165
  gradient?: never;
55
166
  palette?: never;
@@ -60,6 +171,18 @@ declare type ClickableTagProps = HTMLAttributes<HTMLSpanElement> & {
60
171
  export { ClickableTagProps }
61
172
  export { ClickableTagProps as ClickableTagProps_alias_1 }
62
173
 
174
+ export { ClientRect_2 as ClientRect }
175
+
176
+ export { closestCenter }
177
+
178
+ export { closestCorners }
179
+
180
+ export { Collision }
181
+
182
+ export { CollisionDescriptor }
183
+
184
+ export { CollisionDetection }
185
+
63
186
  declare type ColorModes = 'light' | 'dark';
64
187
  export { ColorModes }
65
188
  export { ColorModes as ColorModes_alias_1 }
@@ -111,14 +234,29 @@ declare type CustomThemes<K extends string = DefaultThemes> = 'cerberus' | K;
111
234
  export { CustomThemes }
112
235
  export { CustomThemes as CustomThemes_alias_1 }
113
236
 
237
+ export { Data }
238
+
239
+ export { DataRef }
240
+
241
+ export { defaultAnnouncements }
242
+
243
+ export { defaultCoordinates }
244
+
245
+ export { defaultDropAnimation }
246
+
247
+ export { defaultDropAnimationSideEffects }
248
+
114
249
  export declare const defaultIcons: DefinedIcons;
115
250
 
251
+ export { defaultScreenReaderInstructions }
252
+
116
253
  declare type DefaultThemes = 'cerberus';
117
254
  export { DefaultThemes }
118
255
  export { DefaultThemes as DefaultThemes_alias_1 }
119
256
 
120
257
  export declare interface DefinedIcons {
121
258
  confirmModal?: CarbonIconType | ElementType;
259
+ fileUploader?: CarbonIconType | ElementType;
122
260
  promptModal?: CarbonIconType | ElementType;
123
261
  invalid: CarbonIconType | ElementType;
124
262
  toggleChecked?: CarbonIconType | ElementType;
@@ -128,6 +266,66 @@ declare function defineIcons(icons: DefinedIcons): Required<DefinedIcons>;
128
266
  export { defineIcons }
129
267
  export { defineIcons as defineIcons_alias_1 }
130
268
 
269
+ export { DistanceMeasurement }
270
+
271
+ export { DndContext }
272
+
273
+ export { DndContextDescriptor }
274
+
275
+ export { DndContextProps }
276
+
277
+ export { DndMonitorArguments }
278
+
279
+ export { DndMonitorListener }
280
+
281
+ export { DragCancelEvent }
282
+
283
+ export { DragEndEvent }
284
+
285
+ export { DraggableAttributes }
286
+
287
+ export { DraggableMeasuring }
288
+
289
+ export { DraggableNode }
290
+
291
+ export { DraggableSyntheticListeners }
292
+
293
+ export { DragMoveEvent }
294
+
295
+ export { DragOverEvent }
296
+
297
+ export { DragOverlay }
298
+
299
+ export { DragOverlayProps }
300
+
301
+ export { DragStartEvent }
302
+
303
+ export { DropAnimation }
304
+
305
+ export { DropAnimationFunction }
306
+
307
+ export { DropAnimationFunctionArguments }
308
+
309
+ export { DropAnimationKeyframeResolver }
310
+
311
+ export { DropAnimationSideEffects }
312
+
313
+ declare function Droppable(props: PropsWithChildren<DroppableProps>): JSX_2.Element;
314
+ export { Droppable }
315
+ export { Droppable as Droppable_alias_1 }
316
+
317
+ export { DroppableContainer }
318
+
319
+ export { DroppableContainers }
320
+
321
+ export { DroppableMeasuring }
322
+
323
+ declare interface DroppableProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'id'>, UseDroppableArguments {
324
+ dropped?: boolean;
325
+ }
326
+ export { DroppableProps }
327
+ export { DroppableProps as DroppableProps_alias_1 }
328
+
131
329
  declare function FeatureFlag(props: PropsWithChildren<FeatureFlagProps>): JSX_2.Element;
132
330
  export { FeatureFlag }
133
331
  export { FeatureFlag as FeatureFlag_alias_1 }
@@ -229,6 +427,21 @@ declare type FieldMessageRecipe = RecipeVariantProps<typeof fieldMessage>;
229
427
  export { FieldMessageRecipe }
230
428
  export { FieldMessageRecipe as FieldMessageRecipe_alias_1 }
231
429
 
430
+ declare function FileUploader(props: FileUploaderProps): JSX_2.Element;
431
+ export { FileUploader }
432
+ export { FileUploader as FileUploader_alias_1 }
433
+
434
+ declare interface FileUploaderProps extends InputHTMLAttributes<HTMLInputElement> {
435
+ heading?: string;
436
+ name: string;
437
+ }
438
+ export { FileUploaderProps }
439
+ export { FileUploaderProps as FileUploaderProps_alias_1 }
440
+
441
+ export { getClientRect }
442
+
443
+ export { getFirstCollision }
444
+
232
445
  declare function getPosition(position: Positions): GetPositionResult;
233
446
  export { getPosition }
234
447
  export { getPosition as getPosition_alias_1 }
@@ -240,6 +453,8 @@ declare interface GetPositionResult {
240
453
  bottom: string;
241
454
  }
242
455
 
456
+ export { getScrollableAncestors }
457
+
243
458
  /**
244
459
  * A component that allows the user to perform actions using an icon
245
460
  * @description https://github.com/omnifed/cerberus/blob/main/packages/react/src/components/IconButton.tsx
@@ -288,6 +503,18 @@ declare type InputRecipeProps = RecipeVariantProps<typeof input>;
288
503
  export { InputRecipeProps }
289
504
  export { InputRecipeProps as InputRecipeProps_alias_1 }
290
505
 
506
+ export { KeyboardCode }
507
+
508
+ export { KeyboardCodes }
509
+
510
+ export { KeyboardCoordinateGetter }
511
+
512
+ export { KeyboardSensor }
513
+
514
+ export { KeyboardSensorOptions }
515
+
516
+ export { KeyboardSensorProps }
517
+
291
518
  /**
292
519
  * A screen ready friendly label component.
293
520
  * @definition [ARIA Forms](https://www.a11yproject.com/checklist/#forms)
@@ -322,6 +549,12 @@ declare type LabelRecipeProps = RecipeVariantProps<typeof label>;
322
549
  export { LabelRecipeProps }
323
550
  export { LabelRecipeProps as LabelRecipeProps_alias_1 }
324
551
 
552
+ export { MeasuringConfiguration }
553
+
554
+ export { MeasuringFrequency }
555
+
556
+ export { MeasuringStrategy }
557
+
325
558
  /**
326
559
  * The Modal component is the root element for a customizable modal.
327
560
  * @example
@@ -428,6 +661,14 @@ declare const MODE_KEY = "cerberus-mode";
428
661
  export { MODE_KEY }
429
662
  export { MODE_KEY as MODE_KEY_alias_1 }
430
663
 
664
+ export { Modifier }
665
+
666
+ export { Modifiers }
667
+
668
+ export { MouseSensor }
669
+
670
+ export { MouseSensorOptions }
671
+
431
672
  declare function NavMenu(props: PropsWithChildren): JSX.Element;
432
673
  export { NavMenu }
433
674
  export { NavMenu as NavMenu_alias_1 }
@@ -517,6 +758,20 @@ declare type NavTriggerRef = RefObject<HTMLButtonElement>;
517
758
  export { NavTriggerRef }
518
759
  export { NavTriggerRef as NavTriggerRef_alias_1 }
519
760
 
761
+ export { Over }
762
+
763
+ export { PointerActivationConstraint }
764
+
765
+ export { PointerEventHandlers }
766
+
767
+ export { PointerSensor }
768
+
769
+ export { PointerSensorOptions }
770
+
771
+ export { PointerSensorProps }
772
+
773
+ export { pointerWithin }
774
+
520
775
  /**
521
776
  * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
522
777
  * @param container - The props for the Portal component.
@@ -604,6 +859,28 @@ declare type RadioRecipe = RecipeVariantProps_2<typeof radio>;
604
859
  export { RadioRecipe }
605
860
  export { RadioRecipe as RadioRecipe_alias_1 }
606
861
 
862
+ export { rectIntersection }
863
+
864
+ export { ScreenReaderInstructions }
865
+
866
+ export { Sensor }
867
+
868
+ export { SensorContext }
869
+
870
+ export { SensorDescriptor }
871
+
872
+ export { SensorHandler }
873
+
874
+ export { SensorInstance }
875
+
876
+ export { SensorOptions }
877
+
878
+ export { SensorProps }
879
+
880
+ export { SensorResponse }
881
+
882
+ export { Sensors }
883
+
607
884
  /**
608
885
  * Conditionally render its children or an optional fallback component
609
886
  * based on the SolidJS component.
@@ -884,14 +1161,38 @@ declare type ToggleProps = ToggleBase & ToggleVariantProps;
884
1161
  export { ToggleProps }
885
1162
  export { ToggleProps as ToggleProps_alias_1 }
886
1163
 
1164
+ export { TouchSensor }
1165
+
1166
+ export { TouchSensorOptions }
1167
+
1168
+ export { Translate }
1169
+
887
1170
  declare function trapFocus(modalRef: RefObject<HTMLDialogElement>): KeyboardEventHandler<HTMLDialogElement>;
888
1171
  export { trapFocus }
889
1172
  export { trapFocus as trapFocus_alias_1 }
890
1173
 
1174
+ export { TraversalOrder }
1175
+
1176
+ export { UniqueIdentifier }
1177
+
891
1178
  declare function useConfirmModal(): ConfirmModalValue;
892
1179
  export { useConfirmModal }
893
1180
  export { useConfirmModal as useConfirmModal_alias_1 }
894
1181
 
1182
+ export { useDndContext }
1183
+
1184
+ export { UseDndContextReturnValue }
1185
+
1186
+ export { useDndMonitor }
1187
+
1188
+ export { useDraggable }
1189
+
1190
+ export { UseDraggableArguments }
1191
+
1192
+ export { useDroppable }
1193
+
1194
+ export { UseDroppableArguments }
1195
+
895
1196
  declare function useFeatureFlags(key: string): boolean;
896
1197
  export { useFeatureFlags }
897
1198
  export { useFeatureFlags as useFeatureFlags_alias_1 }
@@ -922,6 +1223,10 @@ declare function usePromptModal(): PromptModalValue;
922
1223
  export { usePromptModal }
923
1224
  export { usePromptModal as usePromptModal_alias_1 }
924
1225
 
1226
+ export { useSensor }
1227
+
1228
+ export { useSensors }
1229
+
925
1230
  declare function useTabsContext(): TabsContextValue;
926
1231
  export { useTabsContext }
927
1232
  export { useTabsContext as useTabsContext_alias_1 }
@@ -1,6 +1,12 @@
1
1
  import {
2
2
  Portal
3
3
  } from "./chunk-4CAT3FHV.js";
4
+ import {
5
+ Input
6
+ } from "./chunk-DED42MIR.js";
7
+ import {
8
+ Label
9
+ } from "./chunk-JJGZRBIR.js";
4
10
  import {
5
11
  Modal
6
12
  } from "./chunk-2UFNQM55.js";
@@ -20,23 +26,17 @@ import {
20
26
  Button
21
27
  } from "./chunk-2ATICEW3.js";
22
28
  import {
23
- Input
24
- } from "./chunk-5GEC53G7.js";
25
- import {
26
- Label
27
- } from "./chunk-CU7HXAKM.js";
29
+ Field
30
+ } from "./chunk-ZAU4JVLL.js";
28
31
  import {
29
32
  Show
30
33
  } from "./chunk-4O4QFF4S.js";
31
- import {
32
- Field
33
- } from "./chunk-ZAU4JVLL.js";
34
34
  import {
35
35
  trapFocus
36
36
  } from "./chunk-KESKDLX6.js";
37
37
  import {
38
38
  $cerberusIcons
39
- } from "./chunk-6TXQZ3PB.js";
39
+ } from "./chunk-OLQQB53X.js";
40
40
  import {
41
41
  useModal
42
42
  } from "./chunk-TZNYJ3G7.js";
@@ -205,4 +205,4 @@ export {
205
205
  PromptModal,
206
206
  usePromptModal
207
207
  };
208
- //# sourceMappingURL=chunk-7CZ3NIGH.js.map
208
+ //# sourceMappingURL=chunk-3RZUW5KH.js.map
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-KESKDLX6.js";
28
28
  import {
29
29
  $cerberusIcons
30
- } from "./chunk-6TXQZ3PB.js";
30
+ } from "./chunk-OLQQB53X.js";
31
31
  import {
32
32
  useModal
33
33
  } from "./chunk-TZNYJ3G7.js";
@@ -152,4 +152,4 @@ export {
152
152
  ConfirmModal,
153
153
  useConfirmModal
154
154
  };
155
- //# sourceMappingURL=chunk-XGNAFSMG.js.map
155
+ //# sourceMappingURL=chunk-7BB66W4A.js.map
@@ -0,0 +1,29 @@
1
+ // src/components/Droppable.tsx
2
+ import { useDroppable } from "@dnd-kit/core";
3
+ import { useId } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ function Droppable(props) {
6
+ const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } = props;
7
+ const uuid = useId();
8
+ const { isOver, setNodeRef } = useDroppable({
9
+ data,
10
+ disabled,
11
+ id: id || uuid,
12
+ resizeObserverConfig
13
+ });
14
+ return /* @__PURE__ */ jsx(
15
+ "div",
16
+ {
17
+ ...nativeProps,
18
+ "data-over": isOver,
19
+ "data-dropped": dropped,
20
+ ref: setNodeRef,
21
+ children: props.children
22
+ }
23
+ );
24
+ }
25
+
26
+ export {
27
+ Droppable
28
+ };
29
+ //# sourceMappingURL=chunk-7VJOPJVX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/Droppable.tsx"],"sourcesContent":["'use client'\n\nimport { useDroppable, type UseDroppableArguments } from '@dnd-kit/core'\nimport { useId, type HtmlHTMLAttributes, type PropsWithChildren } from 'react'\n\nexport interface DroppableProps\n extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'id'>,\n UseDroppableArguments {\n dropped?: boolean\n}\n\nexport function Droppable(props: PropsWithChildren<DroppableProps>) {\n const { dropped, id, disabled, data, resizeObserverConfig, ...nativeProps } =\n props\n const uuid = useId()\n const { isOver, setNodeRef } = useDroppable({\n data,\n disabled,\n id: id || uuid,\n resizeObserverConfig,\n })\n\n return (\n <div\n {...nativeProps}\n data-over={isOver}\n data-dropped={dropped}\n ref={setNodeRef}\n >\n {props.children}\n </div>\n )\n}\n"],"mappings":";AAEA,SAAS,oBAAgD;AACzD,SAAS,aAA8D;AAoBnE;AAZG,SAAS,UAAU,OAA0C;AAClE,QAAM,EAAE,SAAS,IAAI,UAAU,MAAM,sBAAsB,GAAG,YAAY,IACxE;AACF,QAAM,OAAO,MAAM;AACnB,QAAM,EAAE,QAAQ,WAAW,IAAI,aAAa;AAAA,IAC1C;AAAA,IACA;AAAA,IACA,IAAI,MAAM;AAAA,IACV;AAAA,EACF,CAAC;AAED,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,aAAW;AAAA,MACX,gBAAc;AAAA,MACd,KAAK;AAAA,MAEJ,gBAAM;AAAA;AAAA,EACT;AAEJ;","names":[]}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ZAU4JVLL.js";
4
4
  import {
5
5
  $cerberusIcons
6
- } from "./chunk-6TXQZ3PB.js";
6
+ } from "./chunk-OLQQB53X.js";
7
7
 
8
8
  // src/components/Toggle.tsx
9
9
  import { cx } from "@cerberus/styled-system/css";
@@ -55,4 +55,4 @@ function Toggle(props) {
55
55
  export {
56
56
  Toggle
57
57
  };
58
- //# sourceMappingURL=chunk-JWQJLOX4.js.map
58
+ //# sourceMappingURL=chunk-ANXV7JDK.js.map
@@ -0,0 +1,63 @@
1
+ import {
2
+ Show
3
+ } from "./chunk-4O4QFF4S.js";
4
+ import {
5
+ $cerberusIcons
6
+ } from "./chunk-OLQQB53X.js";
7
+
8
+ // src/components/FileUploader.tsx
9
+ import { cx } from "@cerberus-design/styled-system/css";
10
+ import { circle, vstack } from "@cerberus-design/styled-system/patterns";
11
+ import { fileUploader, modalIcon } from "@cerberus-design/styled-system/recipes";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ function FileUploader(props) {
14
+ var _a;
15
+ const styles = fileUploader();
16
+ const Icon = $cerberusIcons.fileUploader;
17
+ return /* @__PURE__ */ jsxs(
18
+ "div",
19
+ {
20
+ className: cx(
21
+ vstack({
22
+ justify: "center"
23
+ }),
24
+ styles.container
25
+ ),
26
+ children: [
27
+ /* @__PURE__ */ jsx("span", { className: cx(styles.icon, modalIcon(), circle()), children: /* @__PURE__ */ jsx(Icon, {}) }),
28
+ /* @__PURE__ */ jsxs(
29
+ "label",
30
+ {
31
+ className: cx(
32
+ vstack({
33
+ justify: "center"
34
+ }),
35
+ styles.label
36
+ ),
37
+ htmlFor: props.name,
38
+ children: [
39
+ /* @__PURE__ */ jsx(Show, { when: Boolean(props.heading), children: /* @__PURE__ */ jsx("p", { className: styles.heading, children: props.heading }) }),
40
+ "Import ",
41
+ (_a = props.accept) == null ? void 0 : _a.replace(",", ", "),
42
+ " files",
43
+ /* @__PURE__ */ jsx("p", { className: styles.description, children: "Or click to upload" }),
44
+ /* @__PURE__ */ jsx(
45
+ "input",
46
+ {
47
+ ...props,
48
+ className: cx(props.className, styles.input),
49
+ type: "file"
50
+ }
51
+ )
52
+ ]
53
+ }
54
+ )
55
+ ]
56
+ }
57
+ );
58
+ }
59
+
60
+ export {
61
+ FileUploader
62
+ };
63
+ //# sourceMappingURL=chunk-DCI4IKCI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/FileUploader.tsx"],"sourcesContent":["'use client'\n\nimport { cx } from '@cerberus-design/styled-system/css'\nimport { circle, vstack } from '@cerberus-design/styled-system/patterns'\nimport { type InputHTMLAttributes } from 'react'\nimport { Show } from './Show'\nimport { fileUploader, modalIcon } from '@cerberus-design/styled-system/recipes'\nimport { $cerberusIcons } from '../config/defineIcons'\n\nexport interface FileUploaderProps\n extends InputHTMLAttributes<HTMLInputElement> {\n heading?: string\n name: string\n}\n\nexport function FileUploader(props: FileUploaderProps) {\n const styles = fileUploader()\n const Icon = $cerberusIcons.fileUploader\n\n return (\n <div\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.container,\n )}\n >\n <span className={cx(styles.icon, modalIcon(), circle())}>\n <Icon />\n </span>\n\n <label\n className={cx(\n vstack({\n justify: 'center',\n }),\n styles.label,\n )}\n htmlFor={props.name}\n >\n <Show when={Boolean(props.heading)}>\n <p className={styles.heading}>{props.heading}</p>\n </Show>\n Import {props.accept?.replace(',', ', ')} files\n <p className={styles.description}>Or click to upload</p>\n <input\n {...props}\n className={cx(props.className, styles.input)}\n type=\"file\"\n />\n </label>\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAEA,SAAS,UAAU;AACnB,SAAS,QAAQ,cAAc;AAG/B,SAAS,cAAc,iBAAiB;AAuBhC,cAGF,YAHE;AAdD,SAAS,aAAa,OAA0B;AAfvD;AAgBE,QAAM,SAAS,aAAa;AAC5B,QAAM,OAAO,eAAe;AAE5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,OAAO;AAAA,UACL,SAAS;AAAA,QACX,CAAC;AAAA,QACD,OAAO;AAAA,MACT;AAAA,MAEA;AAAA,4BAAC,UAAK,WAAW,GAAG,OAAO,MAAM,UAAU,GAAG,OAAO,CAAC,GACpD,8BAAC,QAAK,GACR;AAAA,QAEA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW;AAAA,cACT,OAAO;AAAA,gBACL,SAAS;AAAA,cACX,CAAC;AAAA,cACD,OAAO;AAAA,YACT;AAAA,YACA,SAAS,MAAM;AAAA,YAEf;AAAA,kCAAC,QAAK,MAAM,QAAQ,MAAM,OAAO,GAC/B,8BAAC,OAAE,WAAW,OAAO,SAAU,gBAAM,SAAQ,GAC/C;AAAA,cAAO;AAAA,eACC,WAAM,WAAN,mBAAc,QAAQ,KAAK;AAAA,cAAM;AAAA,cACzC,oBAAC,OAAE,WAAW,OAAO,aAAa,gCAAkB;AAAA,cACpD;AAAA,gBAAC;AAAA;AAAA,kBACE,GAAG;AAAA,kBACJ,WAAW,GAAG,MAAM,WAAW,OAAO,KAAK;AAAA,kBAC3C,MAAK;AAAA;AAAA,cACP;AAAA;AAAA;AAAA,QACF;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,12 +1,12 @@
1
- import {
2
- Show
3
- } from "./chunk-4O4QFF4S.js";
4
1
  import {
5
2
  useFieldContext
6
3
  } from "./chunk-ZAU4JVLL.js";
4
+ import {
5
+ Show
6
+ } from "./chunk-4O4QFF4S.js";
7
7
  import {
8
8
  $cerberusIcons
9
- } from "./chunk-6TXQZ3PB.js";
9
+ } from "./chunk-OLQQB53X.js";
10
10
 
11
11
  // src/components/Input.tsx
12
12
  import { input } from "@cerberus/styled-system/recipes";
@@ -39,4 +39,4 @@ function Input(props) {
39
39
  export {
40
40
  Input
41
41
  };
42
- //# sourceMappingURL=chunk-5GEC53G7.js.map
42
+ //# sourceMappingURL=chunk-DED42MIR.js.map
@@ -1,11 +1,13 @@
1
1
  // src/config/cerbIcons.ts
2
2
  import {
3
3
  Checkmark,
4
+ CloudUpload,
4
5
  Information,
5
6
  WarningFilled
6
7
  } from "@cerberus/icons";
7
8
  var defaultIcons = {
8
9
  confirmModal: Information,
10
+ fileUploader: CloudUpload,
9
11
  promptModal: Information,
10
12
  invalid: WarningFilled,
11
13
  toggleChecked: Checkmark
@@ -14,4 +16,4 @@ var defaultIcons = {
14
16
  export {
15
17
  defaultIcons
16
18
  };
17
- //# sourceMappingURL=chunk-C45DY4VE.js.map
19
+ //# sourceMappingURL=chunk-GIHAFJYX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/config/cerbIcons.ts"],"sourcesContent":["import {\n Checkmark,\n CloudUpload,\n Information,\n WarningFilled,\n type CarbonIconType,\n} from '@cerberus/icons'\nimport type { ElementType } from 'react'\n\nexport interface DefinedIcons {\n confirmModal?: CarbonIconType | ElementType\n fileUploader?: CarbonIconType | ElementType\n promptModal?: CarbonIconType | ElementType\n invalid: CarbonIconType | ElementType\n toggleChecked?: CarbonIconType | ElementType\n}\n\nexport const defaultIcons: DefinedIcons = {\n confirmModal: Information,\n fileUploader: CloudUpload,\n promptModal: Information,\n invalid: WarningFilled,\n toggleChecked: Checkmark,\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAWA,IAAM,eAA6B;AAAA,EACxC,cAAc;AAAA,EACd,cAAc;AAAA,EACd,aAAa;AAAA,EACb,SAAS;AAAA,EACT,eAAe;AACjB;","names":[]}