@agnos-ui/react-bootstrap 0.3.1 → 0.4.0-next.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 (82) hide show
  1. package/{accordion-Bpx0new2.js → accordion-CMbgQzoG.js} +12 -10
  2. package/{accordion-BaQCaLLI.cjs → accordion-DnlQmoOX.cjs} +9 -7
  3. package/{alert-DOBOL4nD.cjs → alert-Bn5ooyqK.cjs} +9 -17
  4. package/{alert-DWq65Emo.js → alert-DKl7HLhb.js} +11 -19
  5. package/components/accordion/accordion.d.ts +6 -12
  6. package/components/accordion/accordion.gen.d.ts +343 -0
  7. package/components/accordion/index.cjs +3 -9
  8. package/components/accordion/index.js +5 -4
  9. package/components/alert/alert.d.ts +6 -9
  10. package/components/alert/alert.gen.d.ts +119 -0
  11. package/components/alert/index.cjs +2 -9
  12. package/components/alert/index.js +3 -3
  13. package/components/modal/index.cjs +10 -8
  14. package/components/modal/index.js +5 -2
  15. package/components/modal/modal.d.ts +7 -9
  16. package/components/modal/modal.gen.d.ts +239 -0
  17. package/components/pagination/index.cjs +2 -9
  18. package/components/pagination/index.js +3 -3
  19. package/components/pagination/pagination.d.ts +4 -7
  20. package/components/pagination/pagination.gen.d.ts +394 -0
  21. package/components/progressbar/index.cjs +2 -9
  22. package/components/progressbar/index.js +3 -3
  23. package/components/progressbar/progressbar.d.ts +5 -8
  24. package/components/progressbar/progressbar.gen.d.ts +126 -0
  25. package/components/rating/index.cjs +2 -9
  26. package/components/rating/index.js +3 -3
  27. package/components/rating/rating.d.ts +4 -5
  28. package/components/rating/rating.gen.d.ts +179 -0
  29. package/components/select/index.cjs +2 -9
  30. package/components/select/index.js +3 -3
  31. package/components/select/select.d.ts +4 -7
  32. package/components/select/select.gen.d.ts +293 -0
  33. package/components/slider/index.cjs +2 -9
  34. package/components/slider/index.js +3 -3
  35. package/components/slider/slider.d.ts +4 -8
  36. package/components/slider/slider.gen.d.ts +293 -0
  37. package/components/toast/index.cjs +2 -9
  38. package/components/toast/index.js +3 -3
  39. package/components/toast/toast.d.ts +6 -9
  40. package/components/toast/toast.gen.d.ts +146 -0
  41. package/config.d.ts +3 -4
  42. package/config.gen.d.ts +47 -0
  43. package/generated/config.cjs +4 -5
  44. package/generated/services/extendWidget.cjs +4 -5
  45. package/generated/services/floatingUI.cjs +4 -5
  46. package/generated/services/focustrack.cjs +4 -5
  47. package/generated/services/hash.cjs +4 -5
  48. package/generated/services/intersection.cjs +4 -5
  49. package/generated/services/matchMedia.cjs +4 -5
  50. package/generated/services/navManager.cjs +4 -5
  51. package/generated/services/portal.cjs +4 -5
  52. package/generated/services/resizeObserver.cjs +4 -5
  53. package/generated/services/siblingsInert.cjs +4 -5
  54. package/generated/services/transitions/baseTransitions.cjs +4 -5
  55. package/generated/services/transitions/bootstrap.cjs +4 -5
  56. package/generated/services/transitions/collapse.cjs +4 -5
  57. package/generated/services/transitions/cssTransitions.cjs +4 -5
  58. package/generated/services/transitions/simpleClassTransition.cjs +4 -5
  59. package/generated/slot.cjs +4 -5
  60. package/generated/types.cjs +4 -5
  61. package/generated/utils/directive.cjs +4 -5
  62. package/generated/utils/portal.cjs +4 -5
  63. package/generated/utils/stores.cjs +4 -5
  64. package/generated/utils/widget.cjs +4 -5
  65. package/generated/utils/writables.cjs +4 -5
  66. package/index.cjs +120 -196
  67. package/index.js +24 -20
  68. package/{modal-B6rJgzVm.js → modal-B9xclGji.js} +8 -5
  69. package/{modal-2qAV4Hjl.cjs → modal-Vd0W6U05.cjs} +7 -4
  70. package/package.json +6 -6
  71. package/{pagination-X2bugeX-.js → pagination-BGHP7K6U.js} +5 -3
  72. package/{pagination-CKUbq-OI.cjs → pagination-BO6qrpA6.cjs} +3 -1
  73. package/{progressbar-D-yo9AHH.cjs → progressbar-Bi9aS9jg.cjs} +4 -2
  74. package/{progressbar-D1-6Dzrf.js → progressbar-D8_F2wYh.js} +6 -4
  75. package/{rating-D2Ajh4vg.cjs → rating-DB4Ze-r4.cjs} +3 -2
  76. package/{rating-Cvad2Z2H.js → rating-DRAx20tg.js} +5 -4
  77. package/{select-B_Thv-qd.js → select-CEXxOyRB.js} +8 -6
  78. package/{select-DHik5ocI.cjs → select-CxX_TdVh.cjs} +6 -4
  79. package/{slider-DLdA-y4u.js → slider-CnK847iw.js} +15 -13
  80. package/{slider-DUv6gRI9.cjs → slider-Du37lWVJ.cjs} +13 -11
  81. package/{toast-BUiyh5r_.js → toast-Bvz7Uyrd.js} +12 -10
  82. package/{toast-Dp_zjIff.cjs → toast-cd5__9Rl.cjs} +10 -8
@@ -0,0 +1,293 @@
1
+ import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ export type SliderContext = WidgetSlotContext<SliderWidget>;
3
+ export type SliderSlotLabelContext = SliderContext & {
4
+ value: number;
5
+ };
6
+ export type SliderSlotHandleContext = SliderContext & {
7
+ item: SliderHandle;
8
+ };
9
+ export interface SliderState {
10
+ /**
11
+ * Sorted slider values
12
+ */
13
+ sortedValues: number[];
14
+ /**
15
+ * Combined label left offset in %
16
+ */
17
+ combinedLabelPositionLeft: number;
18
+ /**
19
+ * Combined label top offset in %
20
+ */
21
+ combinedLabelPositionTop: number;
22
+ /**
23
+ * If true, the minimum label will be visible
24
+ */
25
+ minValueLabelDisplay: boolean;
26
+ /**
27
+ * If true, the maximum label will be visible
28
+ */
29
+ maxValueLabelDisplay: boolean;
30
+ /**
31
+ * If true, the label when the handles are close is visible
32
+ */
33
+ combinedLabelDisplay: boolean;
34
+ /**
35
+ * Array of the sorted handles to display
36
+ */
37
+ sortedHandles: SliderHandle[];
38
+ /**
39
+ * Array of objects representing progress display options
40
+ */
41
+ progressDisplayOptions: ProgressDisplayOptions[];
42
+ /**
43
+ * Array of objects representing handle display options
44
+ */
45
+ handleDisplayOptions: HandleDisplayOptions[];
46
+ /**
47
+ * Check if the slider is interactive, meaning it is not disabled or readonly
48
+ */
49
+ interactive: boolean;
50
+ /**
51
+ * Minimum value that can be assigned to the slider
52
+ */
53
+ min: number;
54
+ /**
55
+ * Maximum value that can be assigned to the slider
56
+ */
57
+ max: number;
58
+ /**
59
+ * Unit value between slider steps
60
+ */
61
+ stepSize: number;
62
+ /**
63
+ * If `true` slider value cannot be changed but the slider is still focusable
64
+ */
65
+ readonly: boolean;
66
+ /**
67
+ * If `true` slider value cannot be changed and the slider cannot be focused
68
+ */
69
+ disabled: boolean;
70
+ /**
71
+ * If `true` is vertically positioned otherwise it is horizontal
72
+ */
73
+ vertical: boolean;
74
+ /**
75
+ * Current slider values
76
+ */
77
+ values: number[];
78
+ /**
79
+ * If `true` the value labels are displayed on the slider
80
+ */
81
+ showValueLabels: boolean;
82
+ /**
83
+ * If `true` the min and max labels are displayed on the slider
84
+ */
85
+ showMinMaxLabels: boolean;
86
+ /**
87
+ * It `true` slider display is inversed
88
+ */
89
+ rtl: boolean;
90
+ /**
91
+ * CSS classes to be applied on the widget main container
92
+ */
93
+ className: string;
94
+ /**
95
+ * Slot to change the default display of the slider
96
+ */
97
+ structure: SlotContent<SliderContext>;
98
+ /**
99
+ * Slot to change the default labels of the slider
100
+ */
101
+ label: SlotContent<SliderSlotLabelContext>;
102
+ /**
103
+ * Slot to change the handlers
104
+ */
105
+ handle: SlotContent<SliderSlotHandleContext>;
106
+ }
107
+ export interface SliderProps {
108
+ /**
109
+ * Return the value for the 'aria-label' attribute for the handle
110
+ */
111
+ ariaLabelHandle: (value: number, sortedIndex: number, index: number) => string;
112
+ /**
113
+ * Return the value for the 'aria-valuetext' attribute for the handle
114
+ */
115
+ ariaValueText: (value: number, sortedIndex: number, index: number) => string;
116
+ /**
117
+ * An event emitted when slider values are changed
118
+ *
119
+ * Event payload equals to the updated slider values
120
+ */
121
+ onValuesChange: (values: number[]) => void;
122
+ /**
123
+ * Minimum value that can be assigned to the slider
124
+ */
125
+ min: number;
126
+ /**
127
+ * Maximum value that can be assigned to the slider
128
+ */
129
+ max: number;
130
+ /**
131
+ * Unit value between slider steps
132
+ */
133
+ stepSize: number;
134
+ /**
135
+ * If `true` slider value cannot be changed but the slider is still focusable
136
+ */
137
+ readonly: boolean;
138
+ /**
139
+ * If `true` slider value cannot be changed and the slider cannot be focused
140
+ */
141
+ disabled: boolean;
142
+ /**
143
+ * If `true` is vertically positioned otherwise it is horizontal
144
+ */
145
+ vertical: boolean;
146
+ /**
147
+ * Current slider values
148
+ */
149
+ values: number[];
150
+ /**
151
+ * If `true` the value labels are displayed on the slider
152
+ */
153
+ showValueLabels: boolean;
154
+ /**
155
+ * If `true` the min and max labels are displayed on the slider
156
+ */
157
+ showMinMaxLabels: boolean;
158
+ /**
159
+ * It `true` slider display is inversed
160
+ */
161
+ rtl: boolean;
162
+ /**
163
+ * CSS classes to be applied on the widget main container
164
+ */
165
+ className: string;
166
+ /**
167
+ * Slot to change the default display of the slider
168
+ */
169
+ structure: SlotContent<SliderContext>;
170
+ /**
171
+ * Slot to change the default labels of the slider
172
+ */
173
+ label: SlotContent<SliderSlotLabelContext>;
174
+ /**
175
+ * Slot to change the handlers
176
+ */
177
+ handle: SlotContent<SliderSlotHandleContext>;
178
+ }
179
+ export type SliderWidget = Widget<SliderProps, SliderState, SliderApi, SliderActions, SliderDirectives>;
180
+ export interface ProgressDisplayOptions {
181
+ /**
182
+ * Right offset of the progress in %
183
+ */
184
+ left: number | null;
185
+ /**
186
+ * Left offset of the progress in %
187
+ */
188
+ right: number | null;
189
+ /**
190
+ * Top offset of the progress in %
191
+ */
192
+ top: number | null;
193
+ /**
194
+ * Bottom offset of the progress in %
195
+ */
196
+ bottom: number | null;
197
+ /**
198
+ * Width of the progress in %
199
+ */
200
+ width: number;
201
+ /**
202
+ * Height of hte progress in %
203
+ */
204
+ height: number;
205
+ }
206
+ export interface HandleDisplayOptions {
207
+ /**
208
+ * Left offset of the handle in %
209
+ */
210
+ left: number | null;
211
+ /**
212
+ * Top offset of the handle in %
213
+ */
214
+ top: number | null;
215
+ }
216
+ export interface SliderHandle {
217
+ /**
218
+ * Value of the handle
219
+ */
220
+ value: number;
221
+ /**
222
+ * Handle id
223
+ */
224
+ id: number;
225
+ /**
226
+ * ariaLabel of the handle
227
+ */
228
+ ariaLabel: string;
229
+ /**
230
+ * ariaValueText of the handle
231
+ */
232
+ ariaValueText: string;
233
+ }
234
+ export interface SliderApi {
235
+ }
236
+ export interface SliderDirectives {
237
+ /**
238
+ * Directive to get the slider component elementRef
239
+ */
240
+ sliderDirective: Directive;
241
+ /**
242
+ * Directive used to style the progress display for each handle
243
+ */
244
+ progressDisplayDirective: Directive<{
245
+ option: ProgressDisplayOptions;
246
+ }>;
247
+ /**
248
+ * Directive to apply to the slider clickable area, to directly move the handle to a given specific position
249
+ */
250
+ clickableAreaDirective: Directive;
251
+ /**
252
+ * Directive to apply to the slider handle if any
253
+ */
254
+ handleDirective: Directive<{
255
+ item: SliderHandle;
256
+ }>;
257
+ /**
258
+ * Directive to get the minLabel elementRef
259
+ */
260
+ minLabelDirective: Directive;
261
+ /**
262
+ * Directive to get the maxLabel elementRef
263
+ */
264
+ maxLabelDirective: Directive;
265
+ /**
266
+ * Directive to apply to the handle when combined label display is active
267
+ */
268
+ combinedHandleLabelDisplayDirective: Directive;
269
+ /**
270
+ * Directive to apply to the handle when combined label display is not active
271
+ */
272
+ handleLabelDisplayDirective: Directive<{
273
+ index: number;
274
+ }>;
275
+ }
276
+ export interface SliderActions {
277
+ /**
278
+ * Method to handle click on the slider
279
+ */
280
+ click(event: MouseEvent): void;
281
+ /**
282
+ * Method to process the keyboard event
283
+ */
284
+ keydown(event: KeyboardEvent, handleNumber: number): void;
285
+ /**
286
+ * Method describing the behavior of the slider handle on mouse down event
287
+ */
288
+ mouseDown(event: MouseEvent, handleId: number): void;
289
+ /**
290
+ * Method describing the behavior of the slider handle on touch start event
291
+ */
292
+ touchStart(event: TouchEvent, handleId: number): void;
293
+ }
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const toast = require("../../toast-Dp_zjIff.cjs");
4
- const toast$1 = require("@agnos-ui/core-bootstrap/components/toast");
3
+ const toast = require("../../toast-cd5__9Rl.cjs");
5
4
  exports.Toast = toast.Toast;
6
5
  exports.createToast = toast.createToast;
7
- Object.keys(toast$1).forEach((k) => {
8
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
9
- Object.defineProperty(exports, k, {
10
- enumerable: true,
11
- get: () => toast$1[k]
12
- });
13
- });
6
+ exports.getToastDefaultConfig = toast.getToastDefaultConfig;
@@ -1,6 +1,6 @@
1
- import { T, c } from "../../toast-BUiyh5r_.js";
2
- export * from "@agnos-ui/core-bootstrap/components/toast";
1
+ import { T, c, g } from "../../toast-Bvz7Uyrd.js";
3
2
  export {
4
3
  T as Toast,
5
- c as createToast
4
+ c as createToast,
5
+ g as getToastDefaultConfig
6
6
  };
@@ -1,10 +1,7 @@
1
- import type { ForwardRefExoticComponent, PropsWithChildren, RefAttributes } from 'react';
2
- import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
3
- import type { ToastApi } from '@agnos-ui/core-bootstrap/components/toast';
4
- export * from '@agnos-ui/core-bootstrap/components/toast';
5
- export type ToastWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/toast').ToastWidget>;
6
- export type ToastProps = WidgetProps<ToastWidget>;
7
- export type ToastState = WidgetState<ToastWidget>;
8
- export type ToastContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/toast').ToastContext>;
1
+ import type { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ import type { WidgetFactory } from '@agnos-ui/react-headless/types';
3
+ import type { ToastWidget, ToastProps, ToastApi } from './toast.gen';
4
+ export type * from './toast.gen';
9
5
  export declare const createToast: WidgetFactory<ToastWidget>;
10
- export declare const Toast: ForwardRefExoticComponent<PropsWithChildren<Partial<ToastProps>> & RefAttributes<ToastApi>>;
6
+ export declare const getToastDefaultConfig: () => ToastProps;
7
+ export declare const Toast: ForwardRefExoticComponent<Partial<ToastProps> & RefAttributes<ToastApi>>;
@@ -0,0 +1,146 @@
1
+ import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ import type { TransitionFn } from '@agnos-ui/react-headless/services/transitions/baseTransitions';
3
+ export type ToastContext = WidgetSlotContext<ToastWidget>;
4
+ export interface ToastState {
5
+ /**
6
+ * Is `true` when the alert is hidden. Compared to `visible`, this is updated after the transition is executed.
7
+ */
8
+ hidden: boolean;
9
+ /**
10
+ * If `true`, alert can be dismissed by the user.
11
+ * The close button (×) will be displayed and you can be notified of the event with the (close) output.
12
+ */
13
+ dismissible: boolean;
14
+ /**
15
+ * If `true` the alert is visible to the user
16
+ */
17
+ visible: boolean;
18
+ /**
19
+ * Accessibility close button label
20
+ */
21
+ ariaCloseButtonLabel: string;
22
+ /**
23
+ * CSS classes to be applied on the widget main container
24
+ */
25
+ className: string;
26
+ /**
27
+ * If `true` automatically hides the toast after the delay.
28
+ */
29
+ autoHide: boolean;
30
+ /**
31
+ * Delay in milliseconds before hiding the toast.
32
+ */
33
+ delay: number;
34
+ /**
35
+ * Global template for the toast component
36
+ */
37
+ structure: SlotContent<ToastContext>;
38
+ /**
39
+ * Template for the toast content
40
+ */
41
+ children: SlotContent<ToastContext>;
42
+ /**
43
+ * Header template for the toast component
44
+ */
45
+ header: SlotContent<ToastContext>;
46
+ }
47
+ export interface ToastProps {
48
+ /**
49
+ * Callback called when the alert visibility changed.
50
+ */
51
+ onVisibleChange: (visible: boolean) => void;
52
+ /**
53
+ * Callback called when the alert is hidden.
54
+ */
55
+ onHidden: () => void;
56
+ /**
57
+ * Callback called when the alert is shown.
58
+ */
59
+ onShown: () => void;
60
+ /**
61
+ * The transition function will be executed when the alert is displayed or hidden.
62
+ *
63
+ * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
64
+ */
65
+ transition: TransitionFn;
66
+ /**
67
+ * If `true`, alert opening will be animated.
68
+ *
69
+ * Animation is triggered when the `.open()` function is called
70
+ * or the visible prop is changed
71
+ */
72
+ animatedOnInit: boolean;
73
+ /**
74
+ * If `true`, alert closing will be animated.
75
+ *
76
+ * Animation is triggered when clicked on the close button (×),
77
+ * via the `.close()` function or the visible prop is changed
78
+ */
79
+ animated: boolean;
80
+ /**
81
+ * If `true`, alert can be dismissed by the user.
82
+ * The close button (×) will be displayed and you can be notified of the event with the (close) output.
83
+ */
84
+ dismissible: boolean;
85
+ /**
86
+ * If `true` the alert is visible to the user
87
+ */
88
+ visible: boolean;
89
+ /**
90
+ * Accessibility close button label
91
+ */
92
+ ariaCloseButtonLabel: string;
93
+ /**
94
+ * CSS classes to be applied on the widget main container
95
+ */
96
+ className: string;
97
+ /**
98
+ * If `true` automatically hides the toast after the delay.
99
+ */
100
+ autoHide: boolean;
101
+ /**
102
+ * Delay in milliseconds before hiding the toast.
103
+ */
104
+ delay: number;
105
+ /**
106
+ * Global template for the toast component
107
+ */
108
+ structure: SlotContent<ToastContext>;
109
+ /**
110
+ * Template for the toast content
111
+ */
112
+ children: SlotContent<ToastContext>;
113
+ /**
114
+ * Header template for the toast component
115
+ */
116
+ header: SlotContent<ToastContext>;
117
+ }
118
+ export type ToastWidget = Widget<ToastProps, ToastState, ToastApi, object, ToastDirectives>;
119
+ export interface ToastApi {
120
+ /**
121
+ * Triggers alert closing programmatically (same as clicking on the close button (×)).
122
+ */
123
+ close(): void;
124
+ /**
125
+ * Triggers the alert to be displayed for the user.
126
+ */
127
+ open(): void;
128
+ }
129
+ export interface ToastDirectives {
130
+ /**
131
+ * the transition directive, piloting what is the visual effect of going from hidden to visible
132
+ */
133
+ transitionDirective: Directive;
134
+ /**
135
+ * Directive that handles the autohide of the toast component
136
+ */
137
+ autoHideDirective: Directive;
138
+ /**
139
+ * Directive that adds all the necessary attributes to the body
140
+ */
141
+ bodyDirective: Directive;
142
+ /**
143
+ * Directive that adds all the necessary attributes to the close button depending on the presence of the header
144
+ */
145
+ closeButtonDirective: Directive;
146
+ }
package/config.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import type { Partial2Levels, WidgetsConfigStore } from '@agnos-ui/react-headless/config';
2
- import type { AdaptPropsSlots, Widget, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
2
+ import type { Widget, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
3
3
  import type { BootstrapWidgetsConfig } from '@agnos-ui/core-bootstrap/config';
4
4
  import type { ReactNode, Context } from 'react';
5
5
  export * from '@agnos-ui/react-headless/config';
6
- export type WidgetsConfig = {
7
- [WidgetName in keyof BootstrapWidgetsConfig]: AdaptPropsSlots<BootstrapWidgetsConfig[WidgetName]>;
8
- };
6
+ import type { WidgetsConfig } from './config.gen';
7
+ export type { WidgetsConfig };
9
8
  type DefaultConfigInput = Partial2Levels<WidgetsConfig> & {
10
9
  adaptParentConfig?: (config: Partial2Levels<WidgetsConfig>) => Partial2Levels<WidgetsConfig>;
11
10
  children?: ReactNode | undefined;
@@ -0,0 +1,47 @@
1
+ import type { AccordionProps } from './components/accordion';
2
+ import type { AlertProps } from './components/alert';
3
+ import type { ModalProps } from './components/modal';
4
+ import type { PaginationProps } from './components/pagination';
5
+ import type { ProgressbarProps } from './components/progressbar';
6
+ import type { RatingProps } from './components/rating';
7
+ import type { SelectProps } from './components/select';
8
+ import type { SliderProps } from './components/slider';
9
+ import type { ToastProps } from './components/toast';
10
+ export type WidgetsConfig = {
11
+ /**
12
+ * the accordion widget config
13
+ */
14
+ accordion: AccordionProps;
15
+ /**
16
+ * the alert widget config
17
+ */
18
+ alert: AlertProps;
19
+ /**
20
+ * the modal widget config
21
+ */
22
+ modal: ModalProps<any>;
23
+ /**
24
+ * the pagination widget config
25
+ */
26
+ pagination: PaginationProps;
27
+ /**
28
+ * the progressbar widget config
29
+ */
30
+ progressbar: ProgressbarProps;
31
+ /**
32
+ * the rating widget config
33
+ */
34
+ rating: RatingProps;
35
+ /**
36
+ * the select widget config
37
+ */
38
+ select: SelectProps<any>;
39
+ /**
40
+ * the slider widget config
41
+ */
42
+ slider: SliderProps;
43
+ /**
44
+ * the toast widget config
45
+ */
46
+ toast: ToastProps;
47
+ };
@@ -8,9 +8,8 @@ exports.useWidgetContext = useWidgetContext;
8
8
  exports.useWidgetWithConfig = useWidgetWithConfig;
9
9
  exports.widgetsConfigContext = widgetsConfigContext;
10
10
  Object.keys(config).forEach((k) => {
11
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
12
- Object.defineProperty(exports, k, {
13
- enumerable: true,
14
- get: () => config[k]
15
- });
11
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
12
+ enumerable: true,
13
+ get: () => config[k]
14
+ });
16
15
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const extendWidget = require("@agnos-ui/react-headless/services/extendWidget");
4
4
  Object.keys(extendWidget).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => extendWidget[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => extendWidget[k]
8
+ });
10
9
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const floatingUI = require("@agnos-ui/react-headless/services/floatingUI");
4
4
  Object.keys(floatingUI).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => floatingUI[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => floatingUI[k]
8
+ });
10
9
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const focustrack = require("@agnos-ui/react-headless/services/focustrack");
4
4
  Object.keys(focustrack).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => focustrack[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => focustrack[k]
8
+ });
10
9
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const hash = require("@agnos-ui/react-headless/services/hash");
4
4
  Object.keys(hash).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => hash[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => hash[k]
8
+ });
10
9
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const intersection = require("@agnos-ui/react-headless/services/intersection");
4
4
  Object.keys(intersection).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => intersection[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => intersection[k]
8
+ });
10
9
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const matchMedia = require("@agnos-ui/react-headless/services/matchMedia");
4
4
  Object.keys(matchMedia).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => matchMedia[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => matchMedia[k]
8
+ });
10
9
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const navManager = require("@agnos-ui/react-headless/services/navManager");
4
4
  Object.keys(navManager).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => navManager[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => navManager[k]
8
+ });
10
9
  });
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const portal = require("@agnos-ui/react-headless/services/portal");
4
4
  Object.keys(portal).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
6
- Object.defineProperty(exports, k, {
7
- enumerable: true,
8
- get: () => portal[k]
9
- });
5
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: () => portal[k]
8
+ });
10
9
  });