@agnos-ui/react-bootstrap 0.3.0 → 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,179 @@
1
+ import type { SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ export interface RatingState {
3
+ /**
4
+ * the aria value of the rating
5
+ */
6
+ ariaValueText: string;
7
+ /**
8
+ * the visible value of the rating (it changes when hovering over the rating even though the real value did not change)
9
+ */
10
+ visibleRating: number;
11
+ /**
12
+ * is the rating interactive i.e. listening to hover, click and keyboard events
13
+ */
14
+ interactive: boolean;
15
+ /**
16
+ * the list of stars
17
+ */
18
+ stars: StarContext[];
19
+ /**
20
+ * The current rating. Could be a decimal value like `3.75`.
21
+ */
22
+ rating: number;
23
+ /**
24
+ * The maximum rating that can be given.
25
+ */
26
+ maxRating: number;
27
+ /**
28
+ * If `true`, the rating is disabled.
29
+ */
30
+ disabled: boolean;
31
+ /**
32
+ * If `true`, the rating can't be changed.
33
+ */
34
+ readonly: boolean;
35
+ /**
36
+ * Define if the rating can be reset.
37
+ *
38
+ * If set to true, the user can 'unset' the rating value by cliking on the current rating value.
39
+ */
40
+ resettable: boolean;
41
+ /**
42
+ * Allows setting a custom rating tabindex.
43
+ * If the component is disabled, `tabindex` will still be set to `-1`.
44
+ */
45
+ tabindex: number;
46
+ /**
47
+ * The aria label
48
+ */
49
+ ariaLabel: string;
50
+ /**
51
+ * The aria labelled by
52
+ */
53
+ ariaLabelledBy: string;
54
+ /**
55
+ * CSS classes to be applied on the widget main container
56
+ */
57
+ className: string;
58
+ /**
59
+ * The template to override the way each star is displayed.
60
+ */
61
+ star: SlotContent<StarContext>;
62
+ }
63
+ export interface RatingProps {
64
+ /**
65
+ * Return the value for the 'aria-valuetext' attribute.
66
+ */
67
+ ariaValueTextFn: (rating: number, maxRating: number) => string;
68
+ /**
69
+ * An event emitted when the rating is changed.
70
+ *
71
+ * Event payload is equal to the newly selected rating.
72
+ */
73
+ onRatingChange: (rating: number) => void;
74
+ /**
75
+ * An event emitted when the user is hovering over a given rating.
76
+ *
77
+ * Event payload is equal to the rating being hovered over.
78
+ */
79
+ onHover: (rating: number) => void;
80
+ /**
81
+ * An event emitted when the user stops hovering over a given rating.
82
+ *
83
+ * Event payload is equal to the rating of the last item being hovered over.
84
+ */
85
+ onLeave: (rating: number) => void;
86
+ /**
87
+ * The current rating. Could be a decimal value like `3.75`.
88
+ */
89
+ rating: number;
90
+ /**
91
+ * The maximum rating that can be given.
92
+ */
93
+ maxRating: number;
94
+ /**
95
+ * If `true`, the rating is disabled.
96
+ */
97
+ disabled: boolean;
98
+ /**
99
+ * If `true`, the rating can't be changed.
100
+ */
101
+ readonly: boolean;
102
+ /**
103
+ * Define if the rating can be reset.
104
+ *
105
+ * If set to true, the user can 'unset' the rating value by cliking on the current rating value.
106
+ */
107
+ resettable: boolean;
108
+ /**
109
+ * Allows setting a custom rating tabindex.
110
+ * If the component is disabled, `tabindex` will still be set to `-1`.
111
+ */
112
+ tabindex: number;
113
+ /**
114
+ * The aria label
115
+ */
116
+ ariaLabel: string;
117
+ /**
118
+ * The aria labelled by
119
+ */
120
+ ariaLabelledBy: string;
121
+ /**
122
+ * CSS classes to be applied on the widget main container
123
+ */
124
+ className: string;
125
+ /**
126
+ * The template to override the way each star is displayed.
127
+ */
128
+ star: SlotContent<StarContext>;
129
+ }
130
+ export type RatingWidget = Widget<RatingProps, RatingState, object, RatingActions, RatingDirectives>;
131
+ export interface StarContext {
132
+ /**
133
+ * indicates how much the current star is filled, from 0 to 100
134
+ */
135
+ fill: number;
136
+ /**
137
+ * the position of the star in the rating
138
+ */
139
+ index: number;
140
+ }
141
+ export interface RatingDirectives {
142
+ /**
143
+ * A directive to be applied to the main container
144
+ * This will handle the keydown, mouseleave, tabindex and aria attributes
145
+ */
146
+ containerDirective: Directive;
147
+ /**
148
+ * A directive to be applied on each star element
149
+ */
150
+ starDirective: Directive<{
151
+ index: number;
152
+ }>;
153
+ }
154
+ export interface RatingActions {
155
+ /**
156
+ * Method to be used when a star is clicked.
157
+ *
158
+ * To be used in the onclick event of a star
159
+ */
160
+ click(index: number): void;
161
+ /**
162
+ * Method to be used when the mouse enter in a star.
163
+ *
164
+ * To be used in the onmouseenter of a star
165
+ */
166
+ hover(index: number): void;
167
+ /**
168
+ * Method to be used when the mouse leave the widget.
169
+ *
170
+ * To be used in the onmouseleave of the rating container
171
+ */
172
+ leave(): void;
173
+ /**
174
+ * Method to be used to handle the keyboard.
175
+ *
176
+ * To be used in the onkeydown of the rating container
177
+ */
178
+ handleKey(event: KeyboardEvent): void;
179
+ }
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const select = require("../../select-DHik5ocI.cjs");
4
- const select$1 = require("@agnos-ui/core-bootstrap/components/select");
3
+ const select = require("../../select-CxX_TdVh.cjs");
5
4
  exports.Select = select.Select;
6
5
  exports.createSelect = select.createSelect;
7
- Object.keys(select$1).forEach((k) => {
8
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
9
- Object.defineProperty(exports, k, {
10
- enumerable: true,
11
- get: () => select$1[k]
12
- });
13
- });
6
+ exports.getSelectDefaultConfig = select.getSelectDefaultConfig;
@@ -1,6 +1,6 @@
1
- import { S, c } from "../../select-B_Thv-qd.js";
2
- export * from "@agnos-ui/core-bootstrap/components/select";
1
+ import { S, c, g } from "../../select-CEXxOyRB.js";
3
2
  export {
4
3
  S as Select,
5
- c as createSelect
4
+ c as createSelect,
5
+ g as getSelectDefaultConfig
6
6
  };
@@ -1,9 +1,6 @@
1
- import type { AdaptSlotContentProps, AdaptWidgetSlots, PropsConfig, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
2
- export * from '@agnos-ui/core-bootstrap/components/select';
3
- export type SelectWidget<Item> = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/select').SelectWidget<Item>>;
4
- export type SelectProps<Item> = WidgetProps<SelectWidget<Item>>;
5
- export type SelectState<Item> = WidgetState<SelectWidget<Item>>;
6
- export type SelectContext<Item> = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/select').SelectContext<Item>>;
7
- export type SelectItemContext<Item> = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/select').SelectItemContext<Item>>;
1
+ import type { PropsConfig } from '@agnos-ui/react-headless/types';
2
+ import type { SelectProps, SelectWidget } from './select.gen';
3
+ export type * from './select.gen';
8
4
  export declare const createSelect: <Item>(propsConfig?: PropsConfig<SelectProps<Item>>) => SelectWidget<Item>;
5
+ export declare const getSelectDefaultConfig: () => SelectProps<any>;
9
6
  export declare function Select<Item>(props: Partial<SelectProps<Item>>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,293 @@
1
+ import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ import type { Placement } from '@floating-ui/dom';
3
+ import type { HasFocus } from '@agnos-ui/react-headless/services/focustrack';
4
+ import type { FloatingUI } from '@agnos-ui/react-headless/services/floatingUI';
5
+ export type SelectContext<Item> = WidgetSlotContext<SelectWidget<Item>>;
6
+ export type SelectItemContext<Item> = SelectContext<Item> & {
7
+ /**
8
+ * Contextual data related to an item
9
+ */
10
+ itemContext: ItemContext<Item>;
11
+ };
12
+ export interface SelectState<Item> {
13
+ /**
14
+ * List of item contexts, to be displayed in the menu
15
+ */
16
+ visibleItems: ItemContext<Item>[];
17
+ /**
18
+ * List of selected items to be display
19
+ */
20
+ selectedContexts: ItemContext<Item>[];
21
+ /**
22
+ * Highlighted item context.
23
+ * It is designed to define the highlighted item in the dropdown menu
24
+ */
25
+ highlighted: ItemContext<Item> | undefined;
26
+ /**
27
+ * Current placement of the dropdown
28
+ */
29
+ placement: Placement | undefined;
30
+ /**
31
+ * id used for the input inside the select
32
+ */
33
+ id: string | undefined;
34
+ /**
35
+ * aria-label used for the input inside the select
36
+ */
37
+ ariaLabel: string | undefined;
38
+ /**
39
+ * List of selected item ids
40
+ */
41
+ selected: Item[];
42
+ /**
43
+ * Filtered text to be display in the filter input
44
+ */
45
+ filterText: string;
46
+ /**
47
+ * true if the select is disabled
48
+ */
49
+ disabled: boolean;
50
+ /**
51
+ * true if the select is open
52
+ */
53
+ open: boolean;
54
+ /**
55
+ * Class to be added on the dropdown menu container
56
+ */
57
+ menuClassName: string;
58
+ /**
59
+ * Class to be added on menu items
60
+ */
61
+ menuItemClassName: string;
62
+ /**
63
+ * Class to be added on selected items (displayed in the input zone)
64
+ */
65
+ badgeClassName: string;
66
+ /**
67
+ * true if a loading process is being done
68
+ */
69
+ loading: boolean;
70
+ /**
71
+ * CSS classes to be applied on the widget main container
72
+ */
73
+ className: string;
74
+ /**
75
+ * The template to override the way each badge on the left of the input is displayed.
76
+ * This define the content of the badge inside the badge container.
77
+ */
78
+ badgeLabel: SlotContent<SelectItemContext<Item>>;
79
+ /**
80
+ * The template to override the way each item is displayed in the list.
81
+ * This define the content of the badge inside the badge container.
82
+ */
83
+ itemLabel: SlotContent<SelectItemContext<Item>>;
84
+ }
85
+ export interface SelectProps<Item> {
86
+ /**
87
+ * List of available items for the dropdown
88
+ */
89
+ items: Item[];
90
+ /**
91
+ * List of allowed placements for the dropdown.
92
+ * 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).
93
+ */
94
+ allowedPlacements: Placement[];
95
+ /**
96
+ * Custom function to get the id of an item
97
+ * By default, the item is returned
98
+ */
99
+ itemIdFn(item: Item): string;
100
+ /**
101
+ * Retrieves navigable elements within an HTML element containing badges and the input.
102
+ */
103
+ navSelector(node: HTMLElement): NodeListOf<HTMLSpanElement | HTMLInputElement>;
104
+ /**
105
+ * Callback called dropdown open state change
106
+ */
107
+ onOpenChange(isOpen: boolean): void;
108
+ /**
109
+ * Callback called when the text filter change
110
+ */
111
+ onFilterTextChange(text: string): void;
112
+ /**
113
+ * Callback called when the selection change
114
+ */
115
+ onSelectedChange(selected: Item[]): void;
116
+ /**
117
+ * id used for the input inside the select
118
+ */
119
+ id: string | undefined;
120
+ /**
121
+ * aria-label used for the input inside the select
122
+ */
123
+ ariaLabel: string | undefined;
124
+ /**
125
+ * List of selected item ids
126
+ */
127
+ selected: Item[];
128
+ /**
129
+ * Filtered text to be display in the filter input
130
+ */
131
+ filterText: string;
132
+ /**
133
+ * true if the select is disabled
134
+ */
135
+ disabled: boolean;
136
+ /**
137
+ * true if the select is open
138
+ */
139
+ open: boolean;
140
+ /**
141
+ * Class to be added on the dropdown menu container
142
+ */
143
+ menuClassName: string;
144
+ /**
145
+ * Class to be added on menu items
146
+ */
147
+ menuItemClassName: string;
148
+ /**
149
+ * Class to be added on selected items (displayed in the input zone)
150
+ */
151
+ badgeClassName: string;
152
+ /**
153
+ * true if a loading process is being done
154
+ */
155
+ loading: boolean;
156
+ /**
157
+ * CSS classes to be applied on the widget main container
158
+ */
159
+ className: string;
160
+ /**
161
+ * The template to override the way each badge on the left of the input is displayed.
162
+ * This define the content of the badge inside the badge container.
163
+ */
164
+ badgeLabel: SlotContent<SelectItemContext<Item>>;
165
+ /**
166
+ * The template to override the way each item is displayed in the list.
167
+ * This define the content of the badge inside the badge container.
168
+ */
169
+ itemLabel: SlotContent<SelectItemContext<Item>>;
170
+ }
171
+ export type SelectWidget<Item> = Widget<SelectProps<Item>, SelectState<Item>, SelectApi<Item>, SelectActions<Item>, SelectDirectives<Item>>;
172
+ export interface ItemContext<T> {
173
+ /**
174
+ * Original item given in the parameters
175
+ */
176
+ item: T;
177
+ /**
178
+ * Unique id to identify the item
179
+ */
180
+ id: string;
181
+ /**
182
+ * Specify if the item is checked
183
+ */
184
+ selected: boolean;
185
+ }
186
+ export interface SelectApi<Item> {
187
+ /**
188
+ * Clear all the selected items
189
+ */
190
+ clear(): void;
191
+ /**
192
+ * Clear the filter text
193
+ */
194
+ clearText(): void;
195
+ /**
196
+ * Highlight the given item, if there is a corresponding match among the visible list
197
+ */
198
+ highlight(item: Item): void;
199
+ /**
200
+ * Highlight the first item among the visible list
201
+ */
202
+ highlightFirst(): void;
203
+ /**
204
+ * Highlight the previous item among the visible list
205
+ * Loop to the last item if needed
206
+ */
207
+ highlightPrevious(): void;
208
+ /**
209
+ * Highlight the next item among the visible list.
210
+ * Loop to the first item if needed
211
+ */
212
+ highlightNext(): void;
213
+ /**
214
+ * Highlight the last item among the visible list
215
+ */
216
+ highlightLast(): void;
217
+ /**
218
+ * Select the provided item.
219
+ * The selected list is used to
220
+ */
221
+ select(item: Item): void;
222
+ /**
223
+ * Unselect the provided item.
224
+ */
225
+ unselect(item: Item): void;
226
+ /**
227
+ * Toggle the selection of an item
228
+ */
229
+ toggleItem(item: Item, selected?: boolean): void;
230
+ /**
231
+ * open the select
232
+ */
233
+ open(): void;
234
+ /**
235
+ * close the select
236
+ */
237
+ close(): void;
238
+ /**
239
+ * Toggle the dropdown menu
240
+ */
241
+ toggle(isOpen?: boolean): void;
242
+ }
243
+ export interface SelectDirectives<Item> {
244
+ /**
245
+ * Directive to be used in the input group and the menu containers
246
+ */
247
+ hasFocusDirective: HasFocus['directive'];
248
+ /**
249
+ * Directive that enables dynamic positioning of menu element
250
+ */
251
+ floatingDirective: FloatingUI['directives']['floatingDirective'];
252
+ /**
253
+ * A directive to be applied to the input group element serves as the base for menu positioning
254
+ */
255
+ referenceDirective: FloatingUI['directives']['referenceDirective'];
256
+ /**
257
+ * A directive to be applied to the element that contains the badges and the input
258
+ */
259
+ inputContainerDirective: Directive;
260
+ /**
261
+ * A directive that applies all the necessary attributes to the container badges
262
+ */
263
+ badgeAttributesDirective: Directive<ItemContext<Item>>;
264
+ /**
265
+ * A directive that applies all the necessary attributes to the dropdown menu
266
+ */
267
+ menuAttributesDirective: Directive;
268
+ /**
269
+ * A directive that applies all the necessary attributes to the dropdown item
270
+ */
271
+ itemAttributesDirective: Directive<ItemContext<Item>>;
272
+ }
273
+ export interface SelectActions<Item> {
274
+ /**
275
+ * Method to be plugged to on the 'input' event. The input text will be used as the filter text.
276
+ */
277
+ onInput: (e: {
278
+ target: any;
279
+ }) => void;
280
+ /**
281
+ * Method to be attached to the node element to close a badge on click.
282
+ */
283
+ onRemoveBadgeClick: (event: MouseEvent, item: Item) => void;
284
+ /**
285
+ * Method to be plugged to on an keydown event of the main input, in order to control the keyboard interactions with the highlighted item.
286
+ * It manages arrow keys to move the highlighted item, or enter to toggle the item.
287
+ */
288
+ onInputKeydown: (event: KeyboardEvent) => void;
289
+ /**
290
+ * Method to be plugged to on an keydown event of a badge container, in order to manage main actions on badges.
291
+ */
292
+ onBadgeKeydown: (event: KeyboardEvent, item: Item) => void;
293
+ }
@@ -1,15 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const slider = require("../../slider-DUv6gRI9.cjs");
4
- const slider$1 = require("@agnos-ui/core-bootstrap/components/slider");
3
+ const slider = require("../../slider-Du37lWVJ.cjs");
5
4
  exports.DefaultSlotHandle = slider.DefaultSlotHandle;
6
5
  exports.DefaultSlotStructure = slider.DefaultSlotStructure;
7
6
  exports.Slider = slider.Slider;
8
7
  exports.createSlider = slider.createSlider;
9
- Object.keys(slider$1).forEach((k) => {
10
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
11
- Object.defineProperty(exports, k, {
12
- enumerable: true,
13
- get: () => slider$1[k]
14
- });
15
- });
8
+ exports.getSliderDefaultConfig = slider.getSliderDefaultConfig;
@@ -1,8 +1,8 @@
1
- import { D, a, S, c } from "../../slider-DLdA-y4u.js";
2
- export * from "@agnos-ui/core-bootstrap/components/slider";
1
+ import { D, a, S, c, g } from "../../slider-CnK847iw.js";
3
2
  export {
4
3
  D as DefaultSlotHandle,
5
4
  a as DefaultSlotStructure,
6
5
  S as Slider,
7
- c as createSlider
6
+ c as createSlider,
7
+ g as getSliderDefaultConfig
8
8
  };
@@ -1,13 +1,9 @@
1
- import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
1
+ import type { WidgetFactory } from '@agnos-ui/react-headless/types';
2
2
  import type { PropsWithChildren } from 'react';
3
- export * from '@agnos-ui/core-bootstrap/components/slider';
4
- export type SliderWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/slider').SliderWidget>;
5
- export type SliderProps = WidgetProps<SliderWidget>;
6
- export type SliderState = WidgetState<SliderWidget>;
7
- export type SliderContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/slider').SliderContext>;
8
- export type SliderSlotLabelContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/slider').SliderSlotLabelContext>;
9
- export type SliderSlotHandleContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/slider').SliderSlotHandleContext>;
3
+ import type { SliderWidget, SliderSlotHandleContext, SliderContext, SliderProps } from './slider.gen';
4
+ export type * from './slider.gen';
10
5
  export declare const createSlider: WidgetFactory<SliderWidget>;
6
+ export declare const getSliderDefaultConfig: () => SliderProps;
11
7
  export declare const DefaultSlotHandle: (slotContext: SliderSlotHandleContext) => import("react/jsx-runtime").JSX.Element;
12
8
  export declare const DefaultSlotStructure: (slotContext: SliderContext) => import("react/jsx-runtime").JSX.Element;
13
9
  export declare function Slider(props: PropsWithChildren<Partial<SliderProps>>): import("react/jsx-runtime").JSX.Element;