@agnos-ui/react-bootstrap 0.4.0-next.1 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/{accordion-DnlQmoOX.cjs → accordion-CG9yl3xh.cjs} +10 -8
  2. package/{accordion-CMbgQzoG.js → accordion-DKdL2Sr3.js} +12 -10
  3. package/{alert-DKl7HLhb.js → alert-0W1n8ahW.js} +7 -7
  4. package/{alert-Bn5ooyqK.cjs → alert-DeQRFTm3.cjs} +6 -6
  5. package/components/accordion/accordion.d.ts +1 -6
  6. package/components/accordion/accordion.gen.d.ts +77 -5
  7. package/components/accordion/index.cjs +5 -4
  8. package/components/accordion/index.d.ts +1 -0
  9. package/components/accordion/index.js +5 -4
  10. package/components/alert/alert.d.ts +1 -5
  11. package/components/alert/alert.gen.d.ts +61 -7
  12. package/components/alert/index.cjs +3 -3
  13. package/components/alert/index.d.ts +1 -0
  14. package/components/alert/index.js +3 -3
  15. package/components/modal/index.cjs +5 -12
  16. package/components/modal/index.d.ts +1 -0
  17. package/components/modal/index.js +5 -6
  18. package/components/modal/modal.d.ts +1 -6
  19. package/components/modal/modal.gen.d.ts +123 -23
  20. package/components/pagination/index.cjs +3 -3
  21. package/components/pagination/index.d.ts +2 -0
  22. package/components/pagination/index.js +4 -4
  23. package/components/pagination/pagination.d.ts +1 -6
  24. package/components/pagination/pagination.gen.d.ts +188 -18
  25. package/components/progressbar/index.cjs +3 -3
  26. package/components/progressbar/index.d.ts +1 -0
  27. package/components/progressbar/index.js +3 -3
  28. package/components/progressbar/progressbar.d.ts +1 -5
  29. package/components/progressbar/progressbar.gen.d.ts +54 -1
  30. package/components/rating/index.cjs +3 -3
  31. package/components/rating/index.d.ts +1 -0
  32. package/components/rating/index.js +3 -3
  33. package/components/rating/rating.d.ts +1 -5
  34. package/components/rating/rating.gen.d.ts +84 -1
  35. package/components/select/index.cjs +3 -3
  36. package/components/select/index.d.ts +1 -0
  37. package/components/select/index.js +3 -3
  38. package/components/select/select.d.ts +1 -5
  39. package/components/select/select.gen.d.ts +121 -1
  40. package/components/slider/index.cjs +3 -3
  41. package/components/slider/index.d.ts +1 -0
  42. package/components/slider/index.js +3 -3
  43. package/components/slider/slider.d.ts +1 -5
  44. package/components/slider/slider.gen.d.ts +98 -3
  45. package/components/toast/index.cjs +3 -3
  46. package/components/toast/index.d.ts +1 -0
  47. package/components/toast/index.js +3 -3
  48. package/components/toast/toast.d.ts +1 -5
  49. package/components/toast/toast.gen.d.ts +65 -7
  50. package/config.d.ts +1 -1
  51. package/index.cjs +31 -37
  52. package/index.js +35 -35
  53. package/{modal-1m6cSYmZ.cjs → modal-Cyt40iyH.cjs} +14 -11
  54. package/{modal-BJy1upw0.js → modal-qidZ4ghL.js} +15 -12
  55. package/package.json +4 -4
  56. package/{pagination-B76wbKhG.js → pagination-BDq1dOoH.js} +9 -9
  57. package/{pagination-DeZ2Eb3e.cjs → pagination-ChA90-py.cjs} +6 -6
  58. package/{progressbar-UDs4TPtQ.js → progressbar-B0keLNtE.js} +8 -8
  59. package/{progressbar-DKshX5DJ.cjs → progressbar-Fa1PDviu.cjs} +7 -7
  60. package/{rating-DRAx20tg.js → rating-CWOEBPWs.js} +7 -7
  61. package/{rating-DB4Ze-r4.cjs → rating-D5-3ELHv.cjs} +6 -6
  62. package/{select-CxX_TdVh.cjs → select-C4STYCmG.cjs} +6 -6
  63. package/{select-CEXxOyRB.js → select-DmgOBdqs.js} +6 -6
  64. package/{slider-CnK847iw.js → slider-CxodlRoZ.js} +9 -9
  65. package/{slider-Du37lWVJ.cjs → slider-MNZTN_vu.cjs} +8 -8
  66. package/{toast-Bvz7Uyrd.js → toast-3amUxqw1.js} +7 -7
  67. package/{toast-cd5__9Rl.cjs → toast-BXMjE9E3.cjs} +6 -6
@@ -1,4 +1,10 @@
1
- import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
1
+ import type { WidgetSlotContext, SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/react-headless/types';
2
+ /**
3
+ * Retrieve a shallow copy of the default Slider config
4
+ * @returns the default Slider config
5
+ */
6
+ declare const export_getSliderDefaultConfig: () => SliderProps;
7
+ export { export_getSliderDefaultConfig as getSliderDefaultConfig };
2
8
  export type SliderContext = WidgetSlotContext<SliderWidget>;
3
9
  export type SliderSlotLabelContext = SliderContext & {
4
10
  value: number;
@@ -49,46 +55,68 @@ export interface SliderState {
49
55
  interactive: boolean;
50
56
  /**
51
57
  * Minimum value that can be assigned to the slider
58
+ *
59
+ * @defaultValue `0`
52
60
  */
53
61
  min: number;
54
62
  /**
55
63
  * Maximum value that can be assigned to the slider
64
+ *
65
+ * @defaultValue `100`
56
66
  */
57
67
  max: number;
58
68
  /**
59
69
  * Unit value between slider steps
70
+ *
71
+ * @defaultValue `1`
60
72
  */
61
73
  stepSize: number;
62
74
  /**
63
75
  * If `true` slider value cannot be changed but the slider is still focusable
76
+ *
77
+ * @defaultValue `false`
64
78
  */
65
79
  readonly: boolean;
66
80
  /**
67
81
  * If `true` slider value cannot be changed and the slider cannot be focused
82
+ *
83
+ * @defaultValue `false`
68
84
  */
69
85
  disabled: boolean;
70
86
  /**
71
87
  * If `true` is vertically positioned otherwise it is horizontal
88
+ *
89
+ * @defaultValue `false`
72
90
  */
73
91
  vertical: boolean;
74
92
  /**
75
93
  * Current slider values
94
+ *
95
+ * @defaultValue `[0]`
76
96
  */
77
97
  values: number[];
78
98
  /**
79
99
  * If `true` the value labels are displayed on the slider
100
+ *
101
+ * @defaultValue `true`
80
102
  */
81
103
  showValueLabels: boolean;
82
104
  /**
83
105
  * If `true` the min and max labels are displayed on the slider
106
+ *
107
+ * @defaultValue `true`
84
108
  */
85
109
  showMinMaxLabels: boolean;
86
110
  /**
87
111
  * It `true` slider display is inversed
112
+ *
113
+ * @defaultValue `false`
88
114
  */
89
115
  rtl: boolean;
90
116
  /**
91
117
  * CSS classes to be applied on the widget main container
118
+ *
119
+ * @defaultValue `''`
92
120
  */
93
121
  className: string;
94
122
  /**
@@ -97,70 +125,118 @@ export interface SliderState {
97
125
  structure: SlotContent<SliderContext>;
98
126
  /**
99
127
  * Slot to change the default labels of the slider
128
+ *
129
+ * @defaultValue
130
+ * ```ts
131
+ * ({value}: SliderSlotLabelContext) => '' + value
132
+ * ```
100
133
  */
101
134
  label: SlotContent<SliderSlotLabelContext>;
102
135
  /**
103
- * Slot to change the handlers
136
+ * Slot to change the handlers
104
137
  */
105
138
  handle: SlotContent<SliderSlotHandleContext>;
106
139
  }
107
140
  export interface SliderProps {
108
141
  /**
109
142
  * Return the value for the 'aria-label' attribute for the handle
143
+ * @param value - value of the handle
144
+ * @param sortedIndex - index of the handle in the sorted list
145
+ * @param index - index of the handle in the original list
146
+ *
147
+ * @defaultValue
148
+ * ```ts
149
+ * (value: number) => '' + value
150
+ * ```
110
151
  */
111
152
  ariaLabelHandle: (value: number, sortedIndex: number, index: number) => string;
112
153
  /**
113
154
  * Return the value for the 'aria-valuetext' attribute for the handle
155
+ * @param value - value of the handle
156
+ * @param sortedIndex - index of the handle in the sorted list
157
+ * @param index - index of the handle in the original list
158
+ *
159
+ * @defaultValue
160
+ * ```ts
161
+ * (value: number) => '' + value
162
+ * ```
114
163
  */
115
164
  ariaValueText: (value: number, sortedIndex: number, index: number) => string;
116
165
  /**
117
166
  * An event emitted when slider values are changed
118
167
  *
119
168
  * Event payload equals to the updated slider values
169
+ *
170
+ * @defaultValue
171
+ * ```ts
172
+ * () => {}
173
+ * ```
120
174
  */
121
175
  onValuesChange: (values: number[]) => void;
122
176
  /**
123
177
  * Minimum value that can be assigned to the slider
178
+ *
179
+ * @defaultValue `0`
124
180
  */
125
181
  min: number;
126
182
  /**
127
183
  * Maximum value that can be assigned to the slider
184
+ *
185
+ * @defaultValue `100`
128
186
  */
129
187
  max: number;
130
188
  /**
131
189
  * Unit value between slider steps
190
+ *
191
+ * @defaultValue `1`
132
192
  */
133
193
  stepSize: number;
134
194
  /**
135
195
  * If `true` slider value cannot be changed but the slider is still focusable
196
+ *
197
+ * @defaultValue `false`
136
198
  */
137
199
  readonly: boolean;
138
200
  /**
139
201
  * If `true` slider value cannot be changed and the slider cannot be focused
202
+ *
203
+ * @defaultValue `false`
140
204
  */
141
205
  disabled: boolean;
142
206
  /**
143
207
  * If `true` is vertically positioned otherwise it is horizontal
208
+ *
209
+ * @defaultValue `false`
144
210
  */
145
211
  vertical: boolean;
146
212
  /**
147
213
  * Current slider values
214
+ *
215
+ * @defaultValue `[0]`
148
216
  */
149
217
  values: number[];
150
218
  /**
151
219
  * If `true` the value labels are displayed on the slider
220
+ *
221
+ * @defaultValue `true`
152
222
  */
153
223
  showValueLabels: boolean;
154
224
  /**
155
225
  * If `true` the min and max labels are displayed on the slider
226
+ *
227
+ * @defaultValue `true`
156
228
  */
157
229
  showMinMaxLabels: boolean;
158
230
  /**
159
231
  * It `true` slider display is inversed
232
+ *
233
+ * @defaultValue `false`
160
234
  */
161
235
  rtl: boolean;
162
236
  /**
163
237
  * CSS classes to be applied on the widget main container
238
+ *
239
+ * @defaultValue `''`
164
240
  */
165
241
  className: string;
166
242
  /**
@@ -169,14 +245,26 @@ export interface SliderProps {
169
245
  structure: SlotContent<SliderContext>;
170
246
  /**
171
247
  * Slot to change the default labels of the slider
248
+ *
249
+ * @defaultValue
250
+ * ```ts
251
+ * ({value}: SliderSlotLabelContext) => '' + value
252
+ * ```
172
253
  */
173
254
  label: SlotContent<SliderSlotLabelContext>;
174
255
  /**
175
- * Slot to change the handlers
256
+ * Slot to change the handlers
176
257
  */
177
258
  handle: SlotContent<SliderSlotHandleContext>;
178
259
  }
179
260
  export type SliderWidget = Widget<SliderProps, SliderState, SliderApi, SliderActions, SliderDirectives>;
261
+ /**
262
+ * Create a Slider with given config props
263
+ * @param config - an optional slider config
264
+ * @returns a SliderWidget
265
+ */
266
+ declare const export_createSlider: WidgetFactory<SliderWidget>;
267
+ export { export_createSlider as createSlider };
180
268
  export interface ProgressDisplayOptions {
181
269
  /**
182
270
  * Right offset of the progress in %
@@ -276,18 +364,25 @@ export interface SliderDirectives {
276
364
  export interface SliderActions {
277
365
  /**
278
366
  * Method to handle click on the slider
367
+ * @param event - mouse event
279
368
  */
280
369
  click(event: MouseEvent): void;
281
370
  /**
282
371
  * Method to process the keyboard event
372
+ * @param event - keyboard event object
373
+ * @param handleNumber - id of the modified handle
283
374
  */
284
375
  keydown(event: KeyboardEvent, handleNumber: number): void;
285
376
  /**
286
377
  * Method describing the behavior of the slider handle on mouse down event
378
+ * @param event - mouse event
379
+ * @param handleId - numeric id of the handle
287
380
  */
288
381
  mouseDown(event: MouseEvent, handleId: number): void;
289
382
  /**
290
383
  * Method describing the behavior of the slider handle on touch start event
384
+ * @param event - touch event
385
+ * @param handleId - number id of the handle
291
386
  */
292
387
  touchStart(event: TouchEvent, handleId: number): void;
293
388
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const toast = require("../../toast-cd5__9Rl.cjs");
3
+ const toast = require("../../toast-BXMjE9E3.cjs");
4
4
  exports.Toast = toast.Toast;
5
- exports.createToast = toast.createToast;
6
- exports.getToastDefaultConfig = toast.getToastDefaultConfig;
5
+ exports.createToast = toast.export_createToast;
6
+ exports.getToastDefaultConfig = toast.export_getToastDefaultConfig;
@@ -1 +1,2 @@
1
1
  export * from './toast';
2
+ export * from './toast.gen';
@@ -1,6 +1,6 @@
1
- import { T, c, g } from "../../toast-Bvz7Uyrd.js";
1
+ import { T, a, e } from "../../toast-3amUxqw1.js";
2
2
  export {
3
3
  T as Toast,
4
- c as createToast,
5
- g as getToastDefaultConfig
4
+ a as createToast,
5
+ e as getToastDefaultConfig
6
6
  };
@@ -1,7 +1,3 @@
1
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';
5
- export declare const createToast: WidgetFactory<ToastWidget>;
6
- export declare const getToastDefaultConfig: () => ToastProps;
2
+ import type { ToastApi, ToastProps } from './toast.gen';
7
3
  export declare const Toast: ForwardRefExoticComponent<Partial<ToastProps> & RefAttributes<ToastApi>>;
@@ -1,5 +1,11 @@
1
- import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
1
+ import type { WidgetSlotContext, SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/react-headless/types';
2
2
  import type { TransitionFn } from '@agnos-ui/react-headless/services/transitions/baseTransitions';
3
+ /**
4
+ * Retrieve a shallow copy of the default Toast config
5
+ * @returns the default Toast config
6
+ */
7
+ declare const export_getToastDefaultConfig: () => ToastProps;
8
+ export { export_getToastDefaultConfig as getToastDefaultConfig };
3
9
  export type ToastContext = WidgetSlotContext<ToastWidget>;
4
10
  export interface ToastState {
5
11
  /**
@@ -9,26 +15,38 @@ export interface ToastState {
9
15
  /**
10
16
  * If `true`, alert can be dismissed by the user.
11
17
  * The close button (×) will be displayed and you can be notified of the event with the (close) output.
18
+ *
19
+ * @defaultValue `true`
12
20
  */
13
21
  dismissible: boolean;
14
22
  /**
15
23
  * If `true` the alert is visible to the user
24
+ *
25
+ * @defaultValue `true`
16
26
  */
17
27
  visible: boolean;
18
28
  /**
19
29
  * Accessibility close button label
30
+ *
31
+ * @defaultValue `'Close'`
20
32
  */
21
33
  ariaCloseButtonLabel: string;
22
34
  /**
23
35
  * CSS classes to be applied on the widget main container
36
+ *
37
+ * @defaultValue `''`
24
38
  */
25
39
  className: string;
26
40
  /**
27
41
  * If `true` automatically hides the toast after the delay.
42
+ *
43
+ * @defaultValue `true`
28
44
  */
29
45
  autoHide: boolean;
30
46
  /**
31
47
  * Delay in milliseconds before hiding the toast.
48
+ *
49
+ * @defaultValue `5000`
32
50
  */
33
51
  delay: number;
34
52
  /**
@@ -45,29 +63,48 @@ export interface ToastState {
45
63
  header: SlotContent<ToastContext>;
46
64
  }
47
65
  export interface ToastProps {
66
+ /**
67
+ * The transition function will be executed when the alert is displayed or hidden.
68
+ *
69
+ * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
70
+ *
71
+ * @defaultValue `fadeTransition`
72
+ */
73
+ transition: TransitionFn;
48
74
  /**
49
75
  * Callback called when the alert visibility changed.
76
+ *
77
+ * @defaultValue
78
+ * ```ts
79
+ * () => {}
80
+ * ```
50
81
  */
51
82
  onVisibleChange: (visible: boolean) => void;
52
83
  /**
53
84
  * Callback called when the alert is hidden.
85
+ *
86
+ * @defaultValue
87
+ * ```ts
88
+ * () => {}
89
+ * ```
54
90
  */
55
91
  onHidden: () => void;
56
92
  /**
57
93
  * 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
94
  *
63
- * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
95
+ * @defaultValue
96
+ * ```ts
97
+ * () => {}
98
+ * ```
64
99
  */
65
- transition: TransitionFn;
100
+ onShown: () => void;
66
101
  /**
67
102
  * If `true`, alert opening will be animated.
68
103
  *
69
104
  * Animation is triggered when the `.open()` function is called
70
105
  * or the visible prop is changed
106
+ *
107
+ * @defaultValue `false`
71
108
  */
72
109
  animatedOnInit: boolean;
73
110
  /**
@@ -75,31 +112,45 @@ export interface ToastProps {
75
112
  *
76
113
  * Animation is triggered when clicked on the close button (×),
77
114
  * via the `.close()` function or the visible prop is changed
115
+ *
116
+ * @defaultValue `true`
78
117
  */
79
118
  animated: boolean;
80
119
  /**
81
120
  * If `true`, alert can be dismissed by the user.
82
121
  * The close button (×) will be displayed and you can be notified of the event with the (close) output.
122
+ *
123
+ * @defaultValue `true`
83
124
  */
84
125
  dismissible: boolean;
85
126
  /**
86
127
  * If `true` the alert is visible to the user
128
+ *
129
+ * @defaultValue `true`
87
130
  */
88
131
  visible: boolean;
89
132
  /**
90
133
  * Accessibility close button label
134
+ *
135
+ * @defaultValue `'Close'`
91
136
  */
92
137
  ariaCloseButtonLabel: string;
93
138
  /**
94
139
  * CSS classes to be applied on the widget main container
140
+ *
141
+ * @defaultValue `''`
95
142
  */
96
143
  className: string;
97
144
  /**
98
145
  * If `true` automatically hides the toast after the delay.
146
+ *
147
+ * @defaultValue `true`
99
148
  */
100
149
  autoHide: boolean;
101
150
  /**
102
151
  * Delay in milliseconds before hiding the toast.
152
+ *
153
+ * @defaultValue `5000`
103
154
  */
104
155
  delay: number;
105
156
  /**
@@ -116,6 +167,13 @@ export interface ToastProps {
116
167
  header: SlotContent<ToastContext>;
117
168
  }
118
169
  export type ToastWidget = Widget<ToastProps, ToastState, ToastApi, object, ToastDirectives>;
170
+ /**
171
+ * Create an ToastWidget with given config props
172
+ * @param config - an optional alert config
173
+ * @returns an ToastWidget
174
+ */
175
+ declare const export_createToast: WidgetFactory<ToastWidget>;
176
+ export { export_createToast as createToast };
119
177
  export interface ToastApi {
120
178
  /**
121
179
  * Triggers alert closing programmatically (same as clicking on the close button (×)).
package/config.d.ts CHANGED
@@ -9,4 +9,4 @@ type DefaultConfigInput = Partial2Levels<WidgetsConfig> & {
9
9
  adaptParentConfig?: (config: Partial2Levels<WidgetsConfig>) => Partial2Levels<WidgetsConfig>;
10
10
  children?: ReactNode | undefined;
11
11
  };
12
- export declare const widgetsConfigContext: Context<WidgetsConfigStore<WidgetsConfig> | undefined>, WidgetsDefaultConfig: ({ children, adaptParentConfig, ...props }: DefaultConfigInput) => import('react/jsx-runtime').JSX.Element, useWidgetContext: <Props extends object>(widgetName: keyof BootstrapWidgetsConfig | null, defaultConfig?: Partial<Props> | undefined) => import('@amadeus-it-group/tansu').ReadableSignal<Partial<Props>>, useWidgetWithConfig: <W extends Widget<object, object, object, object, object>>(factory: WidgetFactory<W>, props: Partial<WidgetProps<W>> | undefined, widgetName: keyof BootstrapWidgetsConfig | null, defaultProps?: Partial<WidgetProps<W>> | undefined) => [WidgetState<W>, W];
12
+ export declare const widgetsConfigContext: Context<WidgetsConfigStore<WidgetsConfig> | undefined>, WidgetsDefaultConfig: ({ children, adaptParentConfig, ...props }: DefaultConfigInput) => import("react/jsx-runtime").JSX.Element, useWidgetContext: <Props extends object>(widgetName: keyof BootstrapWidgetsConfig | null, defaultConfig?: Partial<Props> | undefined) => import("@amadeus-it-group/tansu").ReadableSignal<Partial<Props>>, useWidgetWithConfig: <W extends Widget<object, object, object, object, object>>(factory: WidgetFactory<W>, props: Partial<WidgetProps<W>> | undefined, widgetName: keyof BootstrapWidgetsConfig | null, defaultProps?: Partial<WidgetProps<W>> | undefined) => [WidgetState<W>, W];
package/index.cjs CHANGED
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const accordion = require("./accordion-DnlQmoOX.cjs");
4
- const alert = require("./alert-Bn5ooyqK.cjs");
5
- const modal = require("./modal-1m6cSYmZ.cjs");
6
- const pagination = require("./pagination-DeZ2Eb3e.cjs");
7
- const progressbar = require("./progressbar-DKshX5DJ.cjs");
8
- const rating = require("./rating-DB4Ze-r4.cjs");
9
- const select = require("./select-CxX_TdVh.cjs");
10
- const slider = require("./slider-Du37lWVJ.cjs");
11
- const toast = require("./toast-cd5__9Rl.cjs");
12
- const modal$1 = require("@agnos-ui/react-headless/components/modal");
3
+ const accordion = require("./accordion-CG9yl3xh.cjs");
4
+ const alert = require("./alert-DeQRFTm3.cjs");
5
+ const modal = require("./modal-Cyt40iyH.cjs");
6
+ const pagination = require("./pagination-ChA90-py.cjs");
7
+ const progressbar = require("./progressbar-Fa1PDviu.cjs");
8
+ const rating = require("./rating-D5-3ELHv.cjs");
9
+ const select = require("./select-C4STYCmG.cjs");
10
+ const slider = require("./slider-MNZTN_vu.cjs");
11
+ const toast = require("./toast-BXMjE9E3.cjs");
13
12
  const types = require("@agnos-ui/react-headless/types");
14
13
  const slot = require("@agnos-ui/react-headless/slot");
15
14
  const config = require("@agnos-ui/react-headless/config");
@@ -36,48 +35,43 @@ const baseTransitions = require("@agnos-ui/react-headless/services/transitions/b
36
35
  const transitions = require("@agnos-ui/core-bootstrap/services/transitions");
37
36
  exports.Accordion = accordion.Accordion;
38
37
  exports.AccordionItem = accordion.AccordionItem;
39
- exports.createAccordion = accordion.createAccordion;
40
- exports.createAccordionItem = accordion.createAccordionItem;
41
- exports.getAccordionDefaultConfig = accordion.getAccordionDefaultConfig;
38
+ exports.createAccordion = accordion.export_createAccordion;
39
+ exports.createAccordionItem = accordion.export_createAccordionItem;
40
+ exports.factoryCreateAccordion = accordion.export_factoryCreateAccordion;
41
+ exports.getAccordionDefaultConfig = accordion.export_getAccordionDefaultConfig;
42
42
  exports.Alert = alert.Alert;
43
- exports.createAlert = alert.createAlert;
44
- exports.getAlertDefaultConfig = alert.getAlertDefaultConfig;
43
+ exports.createAlert = alert.export_createAlert;
44
+ exports.getAlertDefaultConfig = alert.export_getAlertDefaultConfig;
45
45
  exports.Modal = modal.Modal;
46
- exports.createModal = modal.createModal;
47
- exports.getModalDefaultConfig = modal.getModalDefaultConfig;
46
+ exports.createModal = modal.export_createModal;
47
+ exports.getModalDefaultConfig = modal.export_getModalDefaultConfig;
48
+ exports.modalCloseButtonClick = modal.export_modalCloseButtonClick;
49
+ exports.modalOutsideClick = modal.export_modalOutsideClick;
48
50
  exports.openModal = modal.openModal;
49
51
  exports.DefaultPages = pagination.DefaultPages;
50
52
  exports.DefaultStructure = pagination.DefaultStructure;
51
53
  exports.NavButton = pagination.NavButton;
52
54
  exports.PageItem = pagination.PageItem;
53
55
  exports.Pagination = pagination.Pagination;
54
- exports.createPagination = pagination.createPagination;
55
- exports.getPaginationDefaultConfig = pagination.getPaginationDefaultConfig;
56
+ exports.createPagination = pagination.export_createPagination;
57
+ exports.getPaginationDefaultConfig = pagination.export_getPaginationDefaultConfig;
56
58
  exports.Progressbar = progressbar.Progressbar;
57
- exports.createProgressbar = progressbar.createProgressbar;
58
- exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
59
+ exports.createProgressbar = progressbar.export_createProgressbar;
60
+ exports.getProgressbarDefaultConfig = progressbar.export_getProgressbarDefaultConfig;
59
61
  exports.Rating = rating.Rating;
60
- exports.createRating = rating.createRating;
61
- exports.getRatingDefaultConfig = rating.getRatingDefaultConfig;
62
+ exports.createRating = rating.export_createRating;
63
+ exports.getRatingDefaultConfig = rating.export_getRatingDefaultConfig;
62
64
  exports.Select = select.Select;
63
- exports.createSelect = select.createSelect;
64
- exports.getSelectDefaultConfig = select.getSelectDefaultConfig;
65
+ exports.createSelect = select.export_createSelect;
66
+ exports.getSelectDefaultConfig = select.export_getSelectDefaultConfig;
65
67
  exports.DefaultSlotHandle = slider.DefaultSlotHandle;
66
68
  exports.DefaultSlotStructure = slider.DefaultSlotStructure;
67
69
  exports.Slider = slider.Slider;
68
- exports.createSlider = slider.createSlider;
69
- exports.getSliderDefaultConfig = slider.getSliderDefaultConfig;
70
+ exports.createSlider = slider.export_createSlider;
71
+ exports.getSliderDefaultConfig = slider.export_getSliderDefaultConfig;
70
72
  exports.Toast = toast.Toast;
71
- exports.createToast = toast.createToast;
72
- exports.getToastDefaultConfig = toast.getToastDefaultConfig;
73
- Object.defineProperty(exports, "modalCloseButtonClick", {
74
- enumerable: true,
75
- get: () => modal$1.modalCloseButtonClick
76
- });
77
- Object.defineProperty(exports, "modalOutsideClick", {
78
- enumerable: true,
79
- get: () => modal$1.modalOutsideClick
80
- });
73
+ exports.createToast = toast.export_createToast;
74
+ exports.getToastDefaultConfig = toast.export_getToastDefaultConfig;
81
75
  exports.WidgetsDefaultConfig = generated_config.WidgetsDefaultConfig;
82
76
  exports.useWidgetContext = generated_config.useWidgetContext;
83
77
  exports.useWidgetWithConfig = generated_config.useWidgetWithConfig;
package/index.js CHANGED
@@ -1,13 +1,12 @@
1
- import { b, A, c, a, g } from "./accordion-CMbgQzoG.js";
2
- import { A as A2, c as c2, g as g2 } from "./alert-DKl7HLhb.js";
3
- import { M, c as c3, g as g3, o } from "./modal-BJy1upw0.js";
4
- import { D, a as a2, N, b as b2, P, c as c4, g as g4 } from "./pagination-B76wbKhG.js";
5
- import { P as P2, c as c5, g as g5 } from "./progressbar-UDs4TPtQ.js";
6
- import { R, c as c6, g as g6 } from "./rating-DRAx20tg.js";
7
- import { S, c as c7, g as g7 } from "./select-CEXxOyRB.js";
8
- import { D as D2, a as a3, S as S2, c as c8, g as g8 } from "./slider-CnK847iw.js";
9
- import { T, c as c9, g as g9 } from "./toast-Bvz7Uyrd.js";
10
- import { modalCloseButtonClick, modalOutsideClick } from "@agnos-ui/react-headless/components/modal";
1
+ import { a, A, c, b, d, e } from "./accordion-DKdL2Sr3.js";
2
+ import { A as A2, a as a2, e as e2 } from "./alert-0W1n8ahW.js";
3
+ import { M, a as a3, e as e3, c as c2, b as b2, o } from "./modal-qidZ4ghL.js";
4
+ import { D, a as a4, N, P, b as b3, c as c3, e as e4 } from "./pagination-BDq1dOoH.js";
5
+ import { P as P2, a as a5, e as e5 } from "./progressbar-B0keLNtE.js";
6
+ import { R, a as a6, e as e6 } from "./rating-CWOEBPWs.js";
7
+ import { S, a as a7, e as e7 } from "./select-DmgOBdqs.js";
8
+ import { D as D2, a as a8, S as S2, b as b4, e as e8 } from "./slider-CxodlRoZ.js";
9
+ import { T, a as a9, e as e9 } from "./toast-3amUxqw1.js";
11
10
  export * from "@agnos-ui/react-headless/types";
12
11
  export * from "@agnos-ui/react-headless/slot";
13
12
  export * from "@agnos-ui/react-headless/config";
@@ -33,17 +32,17 @@ export * from "@agnos-ui/react-headless/services/transitions/collapse";
33
32
  export * from "@agnos-ui/react-headless/services/transitions/baseTransitions";
34
33
  export * from "@agnos-ui/core-bootstrap/services/transitions";
35
34
  export {
36
- b as Accordion,
35
+ a as Accordion,
37
36
  A as AccordionItem,
38
37
  A2 as Alert,
39
38
  D as DefaultPages,
40
39
  D2 as DefaultSlotHandle,
41
- a3 as DefaultSlotStructure,
42
- a2 as DefaultStructure,
40
+ a8 as DefaultSlotStructure,
41
+ a4 as DefaultStructure,
43
42
  M as Modal,
44
43
  N as NavButton,
45
- b2 as PageItem,
46
- P as Pagination,
44
+ P as PageItem,
45
+ b3 as Pagination,
47
46
  P2 as Progressbar,
48
47
  R as Rating,
49
48
  S as Select,
@@ -51,26 +50,27 @@ export {
51
50
  T as Toast,
52
51
  WidgetsDefaultConfig,
53
52
  c as createAccordion,
54
- a as createAccordionItem,
55
- c2 as createAlert,
56
- c3 as createModal,
57
- c4 as createPagination,
58
- c5 as createProgressbar,
59
- c6 as createRating,
60
- c7 as createSelect,
61
- c8 as createSlider,
62
- c9 as createToast,
63
- g as getAccordionDefaultConfig,
64
- g2 as getAlertDefaultConfig,
65
- g3 as getModalDefaultConfig,
66
- g4 as getPaginationDefaultConfig,
67
- g5 as getProgressbarDefaultConfig,
68
- g6 as getRatingDefaultConfig,
69
- g7 as getSelectDefaultConfig,
70
- g8 as getSliderDefaultConfig,
71
- g9 as getToastDefaultConfig,
72
- modalCloseButtonClick,
73
- modalOutsideClick,
53
+ b as createAccordionItem,
54
+ a2 as createAlert,
55
+ a3 as createModal,
56
+ c3 as createPagination,
57
+ a5 as createProgressbar,
58
+ a6 as createRating,
59
+ a7 as createSelect,
60
+ b4 as createSlider,
61
+ a9 as createToast,
62
+ d as factoryCreateAccordion,
63
+ e as getAccordionDefaultConfig,
64
+ e2 as getAlertDefaultConfig,
65
+ e3 as getModalDefaultConfig,
66
+ e4 as getPaginationDefaultConfig,
67
+ e5 as getProgressbarDefaultConfig,
68
+ e6 as getRatingDefaultConfig,
69
+ e7 as getSelectDefaultConfig,
70
+ e8 as getSliderDefaultConfig,
71
+ e9 as getToastDefaultConfig,
72
+ c2 as modalCloseButtonClick,
73
+ b2 as modalOutsideClick,
74
74
  o as openModal,
75
75
  useWidgetContext,
76
76
  useWidgetWithConfig,