@agnos-ui/react-bootstrap 0.4.0-next.1 → 0.4.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 (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 +3 -3
  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,6 +1,6 @@
1
- import { R, c, g } from "../../rating-DRAx20tg.js";
1
+ import { R, a, e } from "../../rating-CWOEBPWs.js";
2
2
  export {
3
3
  R as Rating,
4
- c as createRating,
5
- g as getRatingDefaultConfig
4
+ a as createRating,
5
+ e as getRatingDefaultConfig
6
6
  };
@@ -1,6 +1,2 @@
1
- import type { WidgetFactory } from '@agnos-ui/react-headless/types';
2
- import type { RatingWidget, RatingProps } from './rating.gen';
3
- export type * from './rating.gen';
4
- export declare const createRating: WidgetFactory<RatingWidget>;
5
- export declare const getRatingDefaultConfig: () => RatingProps;
1
+ import type { RatingProps } from './rating.gen';
6
2
  export declare function Rating(props: Partial<RatingProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,10 @@
1
- import type { SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
1
+ import type { SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/react-headless/types';
2
+ /**
3
+ * Retrieve a shallow copy of the default Rating config
4
+ * @returns the default Rating config
5
+ */
6
+ declare const export_getRatingDefaultConfig: () => RatingProps;
7
+ export { export_getRatingDefaultConfig as getRatingDefaultConfig };
2
8
  export interface RatingState {
3
9
  /**
4
10
  * the aria value of the rating
@@ -18,116 +24,191 @@ export interface RatingState {
18
24
  stars: StarContext[];
19
25
  /**
20
26
  * The current rating. Could be a decimal value like `3.75`.
27
+ *
28
+ * @defaultValue `0`
21
29
  */
22
30
  rating: number;
23
31
  /**
24
32
  * The maximum rating that can be given.
33
+ *
34
+ * @defaultValue `10`
25
35
  */
26
36
  maxRating: number;
27
37
  /**
28
38
  * If `true`, the rating is disabled.
39
+ *
40
+ * @defaultValue `false`
29
41
  */
30
42
  disabled: boolean;
31
43
  /**
32
44
  * If `true`, the rating can't be changed.
45
+ *
46
+ * @defaultValue `false`
33
47
  */
34
48
  readonly: boolean;
35
49
  /**
36
50
  * Define if the rating can be reset.
37
51
  *
38
52
  * If set to true, the user can 'unset' the rating value by cliking on the current rating value.
53
+ *
54
+ * @defaultValue `true`
39
55
  */
40
56
  resettable: boolean;
41
57
  /**
42
58
  * Allows setting a custom rating tabindex.
43
59
  * If the component is disabled, `tabindex` will still be set to `-1`.
60
+ *
61
+ * @defaultValue `0`
44
62
  */
45
63
  tabindex: number;
46
64
  /**
47
65
  * The aria label
66
+ *
67
+ * @defaultValue `'Rating'`
48
68
  */
49
69
  ariaLabel: string;
50
70
  /**
51
71
  * The aria labelled by
72
+ *
73
+ * @defaultValue `''`
52
74
  */
53
75
  ariaLabelledBy: string;
54
76
  /**
55
77
  * CSS classes to be applied on the widget main container
78
+ *
79
+ * @defaultValue `''`
56
80
  */
57
81
  className: string;
58
82
  /**
59
83
  * The template to override the way each star is displayed.
84
+ *
85
+ * @defaultValue
86
+ * ```ts
87
+ * ({fill}: StarContext) => String.fromCharCode(fill === 100 ? 9733 : 9734)
88
+ * ```
60
89
  */
61
90
  star: SlotContent<StarContext>;
62
91
  }
63
92
  export interface RatingProps {
64
93
  /**
65
94
  * Return the value for the 'aria-valuetext' attribute.
95
+ * @param rating - Current rating value.
96
+ * @param maxRating - maxRating value.
97
+ *
98
+ * @defaultValue
99
+ * ```ts
100
+ * (rating: number, maxRating: number) => `${rating} out of ${maxRating}`
101
+ * ```
66
102
  */
67
103
  ariaValueTextFn: (rating: number, maxRating: number) => string;
68
104
  /**
69
105
  * An event emitted when the rating is changed.
70
106
  *
71
107
  * Event payload is equal to the newly selected rating.
108
+ *
109
+ * @defaultValue
110
+ * ```ts
111
+ * () => {}
112
+ * ```
72
113
  */
73
114
  onRatingChange: (rating: number) => void;
74
115
  /**
75
116
  * An event emitted when the user is hovering over a given rating.
76
117
  *
77
118
  * Event payload is equal to the rating being hovered over.
119
+ *
120
+ * @defaultValue
121
+ * ```ts
122
+ * () => {}
123
+ * ```
78
124
  */
79
125
  onHover: (rating: number) => void;
80
126
  /**
81
127
  * An event emitted when the user stops hovering over a given rating.
82
128
  *
83
129
  * Event payload is equal to the rating of the last item being hovered over.
130
+ *
131
+ * @defaultValue
132
+ * ```ts
133
+ * () => {}
134
+ * ```
84
135
  */
85
136
  onLeave: (rating: number) => void;
86
137
  /**
87
138
  * The current rating. Could be a decimal value like `3.75`.
139
+ *
140
+ * @defaultValue `0`
88
141
  */
89
142
  rating: number;
90
143
  /**
91
144
  * The maximum rating that can be given.
145
+ *
146
+ * @defaultValue `10`
92
147
  */
93
148
  maxRating: number;
94
149
  /**
95
150
  * If `true`, the rating is disabled.
151
+ *
152
+ * @defaultValue `false`
96
153
  */
97
154
  disabled: boolean;
98
155
  /**
99
156
  * If `true`, the rating can't be changed.
157
+ *
158
+ * @defaultValue `false`
100
159
  */
101
160
  readonly: boolean;
102
161
  /**
103
162
  * Define if the rating can be reset.
104
163
  *
105
164
  * If set to true, the user can 'unset' the rating value by cliking on the current rating value.
165
+ *
166
+ * @defaultValue `true`
106
167
  */
107
168
  resettable: boolean;
108
169
  /**
109
170
  * Allows setting a custom rating tabindex.
110
171
  * If the component is disabled, `tabindex` will still be set to `-1`.
172
+ *
173
+ * @defaultValue `0`
111
174
  */
112
175
  tabindex: number;
113
176
  /**
114
177
  * The aria label
178
+ *
179
+ * @defaultValue `'Rating'`
115
180
  */
116
181
  ariaLabel: string;
117
182
  /**
118
183
  * The aria labelled by
184
+ *
185
+ * @defaultValue `''`
119
186
  */
120
187
  ariaLabelledBy: string;
121
188
  /**
122
189
  * CSS classes to be applied on the widget main container
190
+ *
191
+ * @defaultValue `''`
123
192
  */
124
193
  className: string;
125
194
  /**
126
195
  * The template to override the way each star is displayed.
196
+ *
197
+ * @defaultValue
198
+ * ```ts
199
+ * ({fill}: StarContext) => String.fromCharCode(fill === 100 ? 9733 : 9734)
200
+ * ```
127
201
  */
128
202
  star: SlotContent<StarContext>;
129
203
  }
130
204
  export type RatingWidget = Widget<RatingProps, RatingState, object, RatingActions, RatingDirectives>;
205
+ /**
206
+ * Create a RatingWidget with given config props
207
+ * @param config - an optional rating config
208
+ * @returns a RatingWidget
209
+ */
210
+ declare const export_createRating: WidgetFactory<RatingWidget>;
211
+ export { export_createRating as createRating };
131
212
  export interface StarContext {
132
213
  /**
133
214
  * indicates how much the current star is filled, from 0 to 100
@@ -156,12 +237,14 @@ export interface RatingActions {
156
237
  * Method to be used when a star is clicked.
157
238
  *
158
239
  * To be used in the onclick event of a star
240
+ * @param index - Star index, starting from 1
159
241
  */
160
242
  click(index: number): void;
161
243
  /**
162
244
  * Method to be used when the mouse enter in a star.
163
245
  *
164
246
  * To be used in the onmouseenter of a star
247
+ * @param index - Star index, starting from 1
165
248
  */
166
249
  hover(index: number): void;
167
250
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const select = require("../../select-CxX_TdVh.cjs");
3
+ const select = require("../../select-C4STYCmG.cjs");
4
4
  exports.Select = select.Select;
5
- exports.createSelect = select.createSelect;
6
- exports.getSelectDefaultConfig = select.getSelectDefaultConfig;
5
+ exports.createSelect = select.export_createSelect;
6
+ exports.getSelectDefaultConfig = select.export_getSelectDefaultConfig;
@@ -1 +1,2 @@
1
1
  export * from './select';
2
+ export * from './select.gen';
@@ -1,6 +1,6 @@
1
- import { S, c, g } from "../../select-CEXxOyRB.js";
1
+ import { S, a, e } from "../../select-DmgOBdqs.js";
2
2
  export {
3
3
  S as Select,
4
- c as createSelect,
5
- g as getSelectDefaultConfig
4
+ a as createSelect,
5
+ e as getSelectDefaultConfig
6
6
  };
@@ -1,6 +1,2 @@
1
- import type { PropsConfig } from '@agnos-ui/react-headless/types';
2
- import type { SelectProps, SelectWidget } from './select.gen';
3
- export type * from './select.gen';
4
- export declare const createSelect: <Item>(propsConfig?: PropsConfig<SelectProps<Item>>) => SelectWidget<Item>;
5
- export declare const getSelectDefaultConfig: () => SelectProps<any>;
1
+ import type { SelectProps } from './select.gen';
6
2
  export declare function Select<Item>(props: Partial<SelectProps<Item>>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,16 @@
1
- import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
1
+ import type { WidgetSlotContext, SlotContent, Widget, PropsConfig, Directive } from '@agnos-ui/react-headless/types';
2
2
  import type { Placement } from '@floating-ui/dom';
3
3
  import type { HasFocus } from '@agnos-ui/react-headless/services/focustrack';
4
4
  import type { FloatingUI } from '@agnos-ui/react-headless/services/floatingUI';
5
+ /**
6
+ * Retrieve a shallow copy of the default Select config
7
+ * @returns the default Select config
8
+ */
9
+ declare const export_getSelectDefaultConfig: () => SelectProps<any>;
10
+ export { export_getSelectDefaultConfig as getSelectDefaultConfig };
11
+ /**
12
+ * A type for the slot context of the pagination widget
13
+ */
5
14
  export type SelectContext<Item> = WidgetSlotContext<SelectWidget<Item>>;
6
15
  export type SelectItemContext<Item> = SelectContext<Item> & {
7
16
  /**
@@ -33,84 +42,150 @@ export interface SelectState<Item> {
33
42
  id: string | undefined;
34
43
  /**
35
44
  * aria-label used for the input inside the select
45
+ *
46
+ * @defaultValue `'Select'`
36
47
  */
37
48
  ariaLabel: string | undefined;
38
49
  /**
39
50
  * List of selected item ids
51
+ *
52
+ * @defaultValue `[]`
40
53
  */
41
54
  selected: Item[];
42
55
  /**
43
56
  * Filtered text to be display in the filter input
57
+ *
58
+ * @defaultValue `''`
44
59
  */
45
60
  filterText: string;
46
61
  /**
47
62
  * true if the select is disabled
63
+ *
64
+ * @defaultValue `false`
48
65
  */
49
66
  disabled: boolean;
50
67
  /**
51
68
  * true if the select is open
69
+ *
70
+ * @defaultValue `false`
52
71
  */
53
72
  open: boolean;
54
73
  /**
55
74
  * Class to be added on the dropdown menu container
75
+ *
76
+ * @defaultValue `''`
56
77
  */
57
78
  menuClassName: string;
58
79
  /**
59
80
  * Class to be added on menu items
81
+ *
82
+ * @defaultValue `''`
60
83
  */
61
84
  menuItemClassName: string;
62
85
  /**
63
86
  * Class to be added on selected items (displayed in the input zone)
87
+ *
88
+ * @defaultValue `''`
64
89
  */
65
90
  badgeClassName: string;
66
91
  /**
67
92
  * true if a loading process is being done
93
+ *
94
+ * @defaultValue `false`
68
95
  */
69
96
  loading: boolean;
70
97
  /**
71
98
  * CSS classes to be applied on the widget main container
99
+ *
100
+ * @defaultValue `''`
72
101
  */
73
102
  className: string;
74
103
  /**
75
104
  * The template to override the way each badge on the left of the input is displayed.
76
105
  * This define the content of the badge inside the badge container.
106
+ *
107
+ * @defaultValue
108
+ * ```ts
109
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
110
+ * ```
77
111
  */
78
112
  badgeLabel: SlotContent<SelectItemContext<Item>>;
79
113
  /**
80
114
  * The template to override the way each item is displayed in the list.
81
115
  * This define the content of the badge inside the badge container.
116
+ *
117
+ * @defaultValue
118
+ * ```ts
119
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
120
+ * ```
82
121
  */
83
122
  itemLabel: SlotContent<SelectItemContext<Item>>;
84
123
  }
85
124
  export interface SelectProps<Item> {
86
125
  /**
87
126
  * List of available items for the dropdown
127
+ *
128
+ * @defaultValue `[]`
88
129
  */
89
130
  items: Item[];
90
131
  /**
91
132
  * List of allowed placements for the dropdown.
92
133
  * This refers to the [allowedPlacements from floating UI](https://floating-ui.com/docs/autoPlacement#allowedplacements), given the different [Placement possibilities](https://floating-ui.com/docs/computePosition#placement).
134
+ *
135
+ * @defaultValue
136
+ * ```ts
137
+ * ['bottom-start', 'top-start', 'bottom-end', 'top-end']
138
+ * ```
93
139
  */
94
140
  allowedPlacements: Placement[];
95
141
  /**
96
142
  * Custom function to get the id of an item
97
143
  * By default, the item is returned
144
+ *
145
+ * @defaultValue
146
+ * ```ts
147
+ * (item: any) => '' + item
148
+ * ```
98
149
  */
99
150
  itemIdFn(item: Item): string;
100
151
  /**
101
152
  * Retrieves navigable elements within an HTML element containing badges and the input.
153
+ *
154
+ * @param node - HTMLElement that contains the badges and the input
155
+ *
156
+ * @defaultValue
157
+ * ```ts
158
+ * (node: HTMLElement) => node.querySelectorAll('.au-select-badge,input')
159
+ * ```
102
160
  */
103
161
  navSelector(node: HTMLElement): NodeListOf<HTMLSpanElement | HTMLInputElement>;
104
162
  /**
105
163
  * Callback called dropdown open state change
164
+ * @param isOpen - updated open state
165
+ *
166
+ * @defaultValue
167
+ * ```ts
168
+ * () => {}
169
+ * ```
106
170
  */
107
171
  onOpenChange(isOpen: boolean): void;
108
172
  /**
109
173
  * Callback called when the text filter change
174
+ * @param text - Filtered text
175
+ *
176
+ * @defaultValue
177
+ * ```ts
178
+ * () => {}
179
+ * ```
110
180
  */
111
181
  onFilterTextChange(text: string): void;
112
182
  /**
113
183
  * Callback called when the selection change
184
+ *
185
+ * @defaultValue
186
+ * ```ts
187
+ * () => {}
188
+ * ```
114
189
  */
115
190
  onSelectedChange(selected: Item[]): void;
116
191
  /**
@@ -119,56 +194,93 @@ export interface SelectProps<Item> {
119
194
  id: string | undefined;
120
195
  /**
121
196
  * aria-label used for the input inside the select
197
+ *
198
+ * @defaultValue `'Select'`
122
199
  */
123
200
  ariaLabel: string | undefined;
124
201
  /**
125
202
  * List of selected item ids
203
+ *
204
+ * @defaultValue `[]`
126
205
  */
127
206
  selected: Item[];
128
207
  /**
129
208
  * Filtered text to be display in the filter input
209
+ *
210
+ * @defaultValue `''`
130
211
  */
131
212
  filterText: string;
132
213
  /**
133
214
  * true if the select is disabled
215
+ *
216
+ * @defaultValue `false`
134
217
  */
135
218
  disabled: boolean;
136
219
  /**
137
220
  * true if the select is open
221
+ *
222
+ * @defaultValue `false`
138
223
  */
139
224
  open: boolean;
140
225
  /**
141
226
  * Class to be added on the dropdown menu container
227
+ *
228
+ * @defaultValue `''`
142
229
  */
143
230
  menuClassName: string;
144
231
  /**
145
232
  * Class to be added on menu items
233
+ *
234
+ * @defaultValue `''`
146
235
  */
147
236
  menuItemClassName: string;
148
237
  /**
149
238
  * Class to be added on selected items (displayed in the input zone)
239
+ *
240
+ * @defaultValue `''`
150
241
  */
151
242
  badgeClassName: string;
152
243
  /**
153
244
  * true if a loading process is being done
245
+ *
246
+ * @defaultValue `false`
154
247
  */
155
248
  loading: boolean;
156
249
  /**
157
250
  * CSS classes to be applied on the widget main container
251
+ *
252
+ * @defaultValue `''`
158
253
  */
159
254
  className: string;
160
255
  /**
161
256
  * The template to override the way each badge on the left of the input is displayed.
162
257
  * This define the content of the badge inside the badge container.
258
+ *
259
+ * @defaultValue
260
+ * ```ts
261
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
262
+ * ```
163
263
  */
164
264
  badgeLabel: SlotContent<SelectItemContext<Item>>;
165
265
  /**
166
266
  * The template to override the way each item is displayed in the list.
167
267
  * This define the content of the badge inside the badge container.
268
+ *
269
+ * @defaultValue
270
+ * ```ts
271
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
272
+ * ```
168
273
  */
169
274
  itemLabel: SlotContent<SelectItemContext<Item>>;
170
275
  }
171
276
  export type SelectWidget<Item> = Widget<SelectProps<Item>, SelectState<Item>, SelectApi<Item>, SelectActions<Item>, SelectDirectives<Item>>;
277
+ /**
278
+ * Creates a new select widget instance.
279
+ * @param config - config of the modal, either as a store or as an object containing values or stores.
280
+ * @returns a new select widget instance
281
+ */
282
+ declare const export_createSelect: <Item>(config?: PropsConfig<SelectProps<Item>>) => SelectWidget<Item>;
283
+ export { export_createSelect as createSelect };
172
284
  export interface ItemContext<T> {
173
285
  /**
174
286
  * Original item given in the parameters
@@ -217,14 +329,18 @@ export interface SelectApi<Item> {
217
329
  /**
218
330
  * Select the provided item.
219
331
  * The selected list is used to
332
+ * @param item - the item to select
220
333
  */
221
334
  select(item: Item): void;
222
335
  /**
223
336
  * Unselect the provided item.
337
+ * @param item - the item to unselect
224
338
  */
225
339
  unselect(item: Item): void;
226
340
  /**
227
341
  * Toggle the selection of an item
342
+ * @param item - the item to toggle
343
+ * @param selected - an optional boolean to enforce the selected/unselected state instead of toggling
228
344
  */
229
345
  toggleItem(item: Item, selected?: boolean): void;
230
346
  /**
@@ -237,6 +353,7 @@ export interface SelectApi<Item> {
237
353
  close(): void;
238
354
  /**
239
355
  * Toggle the dropdown menu
356
+ * @param isOpen - If specified, set the menu in the defined state.
240
357
  */
241
358
  toggle(isOpen?: boolean): void;
242
359
  }
@@ -288,6 +405,9 @@ export interface SelectActions<Item> {
288
405
  onInputKeydown: (event: KeyboardEvent) => void;
289
406
  /**
290
407
  * Method to be plugged to on an keydown event of a badge container, in order to manage main actions on badges.
408
+ *
409
+ * @param event - keyboard event
410
+ * @param item - corresponding item
291
411
  */
292
412
  onBadgeKeydown: (event: KeyboardEvent, item: Item) => void;
293
413
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const slider = require("../../slider-Du37lWVJ.cjs");
3
+ const slider = require("../../slider-MNZTN_vu.cjs");
4
4
  exports.DefaultSlotHandle = slider.DefaultSlotHandle;
5
5
  exports.DefaultSlotStructure = slider.DefaultSlotStructure;
6
6
  exports.Slider = slider.Slider;
7
- exports.createSlider = slider.createSlider;
8
- exports.getSliderDefaultConfig = slider.getSliderDefaultConfig;
7
+ exports.createSlider = slider.export_createSlider;
8
+ exports.getSliderDefaultConfig = slider.export_getSliderDefaultConfig;
@@ -1 +1,2 @@
1
1
  export * from './slider';
2
+ export * from './slider.gen';
@@ -1,8 +1,8 @@
1
- import { D, a, S, c, g } from "../../slider-CnK847iw.js";
1
+ import { D, a, S, b, e } from "../../slider-CxodlRoZ.js";
2
2
  export {
3
3
  D as DefaultSlotHandle,
4
4
  a as DefaultSlotStructure,
5
5
  S as Slider,
6
- c as createSlider,
7
- g as getSliderDefaultConfig
6
+ b as createSlider,
7
+ e as getSliderDefaultConfig
8
8
  };
@@ -1,9 +1,5 @@
1
- import type { WidgetFactory } from '@agnos-ui/react-headless/types';
2
1
  import type { PropsWithChildren } from 'react';
3
- import type { SliderWidget, SliderSlotHandleContext, SliderContext, SliderProps } from './slider.gen';
4
- export type * from './slider.gen';
5
- export declare const createSlider: WidgetFactory<SliderWidget>;
6
- export declare const getSliderDefaultConfig: () => SliderProps;
2
+ import type { SliderContext, SliderProps, SliderSlotHandleContext } from './slider.gen';
7
3
  export declare const DefaultSlotHandle: (slotContext: SliderSlotHandleContext) => import("react/jsx-runtime").JSX.Element;
8
4
  export declare const DefaultSlotStructure: (slotContext: SliderContext) => import("react/jsx-runtime").JSX.Element;
9
5
  export declare function Slider(props: PropsWithChildren<Partial<SliderProps>>): import("react/jsx-runtime").JSX.Element;