@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,394 @@
1
+ import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ export type PaginationContext = WidgetSlotContext<PaginationWidget>;
3
+ export type PaginationNumberContext = PaginationContext & {
4
+ /**
5
+ * Displayed page
6
+ */
7
+ displayedPage: number;
8
+ };
9
+ export interface PaginationState {
10
+ /**
11
+ * The number of pages.
12
+ */
13
+ pageCount: number;
14
+ /**
15
+ * The current pages, the number in the Array is the number of the page.
16
+ */
17
+ pages: number[];
18
+ /**
19
+ * true if the previous link need to be disabled
20
+ */
21
+ previousDisabled: boolean;
22
+ /**
23
+ * true if the next link need to be disabled
24
+ */
25
+ nextDisabled: boolean;
26
+ /**
27
+ * The label for each "Page" page link.
28
+ */
29
+ pagesLabel: string[];
30
+ /**
31
+ * The hrefs for each "Page" page link
32
+ */
33
+ pagesHrefs: string[];
34
+ /**
35
+ * The hrefs for the direction links
36
+ */
37
+ directionsHrefs: DirectionsHrefs;
38
+ /**
39
+ * The aria-live text
40
+ */
41
+ ariaLiveLabelText: string;
42
+ /**
43
+ * The current page.
44
+ *
45
+ * Page numbers start with `1`.
46
+ */
47
+ page: number;
48
+ /**
49
+ * The pagination display size.
50
+ *
51
+ * Bootstrap currently supports small and large sizes.
52
+ */
53
+ size: 'sm' | 'lg' | null;
54
+ /**
55
+ * The label for the nav element.
56
+ *
57
+ * for I18n, we suggest to use the global configuration
58
+ * override any configuration parameters provided for this
59
+ */
60
+ ariaLabel: string;
61
+ /**
62
+ * The label for the "active" page.
63
+ * for I18n, we suggest to use the global configuration
64
+ * override any configuration parameters provided for this
65
+ */
66
+ activeLabel: string;
67
+ /**
68
+ * The label for the "First" page button.
69
+ * for I18n, we suggest to use the global configuration
70
+ * override any configuration parameters provided for this
71
+ */
72
+ ariaFirstLabel: string;
73
+ /**
74
+ * The label for the "Previous" page button.
75
+ * for I18n, we suggest to use the global configuration
76
+ * override any configuration parameters provided for this
77
+ */
78
+ ariaPreviousLabel: string;
79
+ /**
80
+ * The label for the "Next" page button.
81
+ * for I18n, we suggest to use the global configuration
82
+ * override any configuration parameters provided for this
83
+ */
84
+ ariaNextLabel: string;
85
+ /**
86
+ * The label for the "Last" page button.
87
+ * for I18n, we suggest to use the global configuration
88
+ * override any configuration parameters provided for this
89
+ */
90
+ ariaLastLabel: string;
91
+ /**
92
+ * The label for the "Ellipsis" page.
93
+ * for I18n, we suggest to use the global configuration
94
+ * override any configuration parameters provided for this
95
+ */
96
+ ariaEllipsisLabel: string;
97
+ /**
98
+ * If `true`, pagination links will be disabled.
99
+ */
100
+ disabled: boolean;
101
+ /**
102
+ * If `true`, the "Next" and "Previous" page links are shown.
103
+ */
104
+ directionLinks: boolean;
105
+ /**
106
+ * If `true`, the "First" and "Last" page links are shown.
107
+ */
108
+ boundaryLinks: boolean;
109
+ /**
110
+ * CSS classes to be applied on the widget main container
111
+ */
112
+ className: string;
113
+ /**
114
+ * The template to use for the structure of the pagination component
115
+ * The default structure uses {@link PaginationCommonPropsAndState.slotEllipsis slotEllipsis}, {@link PaginationCommonPropsAndState.slotFirst slotFirst},
116
+ * {@link PaginationCommonPropsAndState.slotPrevious slotPrevious}, {@link PaginationCommonPropsAndState.slotNext slotNext},
117
+ * {@link PaginationCommonPropsAndState.slotLast slotLast}, {@link PaginationCommonPropsAndState.slotPages slotPages},
118
+ * {@link PaginationCommonPropsAndState.slotNumberLabel slotNumberLabel},
119
+ */
120
+ slotStructure: SlotContent<PaginationContext>;
121
+ /**
122
+ * The template to use for the ellipsis slot
123
+ * for I18n, we suggest to use the global configuration
124
+ * override any configuration parameters provided for this
125
+ */
126
+ slotEllipsis: SlotContent<PaginationContext>;
127
+ /**
128
+ * The template to use for the first slot
129
+ * for I18n, we suggest to use the global configuration
130
+ * override any configuration parameters provided for this
131
+ */
132
+ slotFirst: SlotContent<PaginationContext>;
133
+ /**
134
+ * The template to use for the previous slot
135
+ * for I18n, we suggest to use the global configuration
136
+ * override any configuration parameters provided for this
137
+ */
138
+ slotPrevious: SlotContent<PaginationContext>;
139
+ /**
140
+ * The template to use for the next slot
141
+ * for I18n, we suggest to use the global configuration
142
+ * override any configuration parameters provided for this
143
+ */
144
+ slotNext: SlotContent<PaginationContext>;
145
+ /**
146
+ * The template to use for the last slot
147
+ * for I18n, we suggest to use the global configuration
148
+ * override any configuration parameters provided for this
149
+ */
150
+ slotLast: SlotContent<PaginationContext>;
151
+ /**
152
+ * The template to use for the pages slot
153
+ * To use to customize the pages view
154
+ * override any configuration parameters provided for this
155
+ */
156
+ slotPages: SlotContent<PaginationContext>;
157
+ /**
158
+ * The template to use for the number slot
159
+ * override any configuration parameters provided for this
160
+ * for I18n, we suggest to use the global configuration
161
+ */
162
+ slotNumberLabel: SlotContent<PaginationNumberContext>;
163
+ }
164
+ export interface PaginationProps {
165
+ /**
166
+ * The number of items in your paginated collection.
167
+ *
168
+ * Note, that this is not the number of pages. Page numbers are calculated dynamically based on
169
+ * `collectionSize` and `pageSize`.
170
+ *
171
+ * Ex. if you have 100 items in your collection and displaying 20 items per page, you'll end up with 5 pages.
172
+ *
173
+ * Whatever the collectionSize the page number is of minimum 1.
174
+ */
175
+ collectionSize: number;
176
+ /**
177
+ * The number of items per page.
178
+ */
179
+ pageSize: number;
180
+ /**
181
+ * An event fired when the page is changed.
182
+ *
183
+ * Event payload is the number of the newly selected page.
184
+ *
185
+ * Page numbers start with `1`.
186
+ */
187
+ onPageChange: (page: number) => void;
188
+ /**
189
+ * pagesFactory returns a function computing the array of pages to be displayed
190
+ * as number (-1 are treated as ellipsis).
191
+ * Use Page slot to customize the pages view and not this
192
+ */
193
+ pagesFactory: (page: number, pageCount: number) => number[];
194
+ /**
195
+ * Provide the label for each "Page" page button.
196
+ * This is used for accessibility purposes.
197
+ * for I18n, we suggest to use the global configuration
198
+ * override any configuration parameters provided for this
199
+ */
200
+ ariaPageLabel: (processPage: number, pageCount: number) => string;
201
+ /**
202
+ * Provide the label for the aria-live element
203
+ * This is used for accessibility purposes.
204
+ * for I18n, we suggest to use the global configuration
205
+ * override any configuration parameters provided for this
206
+ */
207
+ ariaLiveLabel: (currentPage: number, pageCount: number) => string;
208
+ /**
209
+ * Factory function providing the href for a "Page" page anchor,
210
+ * based on the current page number
211
+ */
212
+ pageLink: (pageNumber: number) => string;
213
+ /**
214
+ * The current page.
215
+ *
216
+ * Page numbers start with `1`.
217
+ */
218
+ page: number;
219
+ /**
220
+ * The pagination display size.
221
+ *
222
+ * Bootstrap currently supports small and large sizes.
223
+ */
224
+ size: 'sm' | 'lg' | null;
225
+ /**
226
+ * The label for the nav element.
227
+ *
228
+ * for I18n, we suggest to use the global configuration
229
+ * override any configuration parameters provided for this
230
+ */
231
+ ariaLabel: string;
232
+ /**
233
+ * The label for the "active" page.
234
+ * for I18n, we suggest to use the global configuration
235
+ * override any configuration parameters provided for this
236
+ */
237
+ activeLabel: string;
238
+ /**
239
+ * The label for the "First" page button.
240
+ * for I18n, we suggest to use the global configuration
241
+ * override any configuration parameters provided for this
242
+ */
243
+ ariaFirstLabel: string;
244
+ /**
245
+ * The label for the "Previous" page button.
246
+ * for I18n, we suggest to use the global configuration
247
+ * override any configuration parameters provided for this
248
+ */
249
+ ariaPreviousLabel: string;
250
+ /**
251
+ * The label for the "Next" page button.
252
+ * for I18n, we suggest to use the global configuration
253
+ * override any configuration parameters provided for this
254
+ */
255
+ ariaNextLabel: string;
256
+ /**
257
+ * The label for the "Last" page button.
258
+ * for I18n, we suggest to use the global configuration
259
+ * override any configuration parameters provided for this
260
+ */
261
+ ariaLastLabel: string;
262
+ /**
263
+ * The label for the "Ellipsis" page.
264
+ * for I18n, we suggest to use the global configuration
265
+ * override any configuration parameters provided for this
266
+ */
267
+ ariaEllipsisLabel: string;
268
+ /**
269
+ * If `true`, pagination links will be disabled.
270
+ */
271
+ disabled: boolean;
272
+ /**
273
+ * If `true`, the "Next" and "Previous" page links are shown.
274
+ */
275
+ directionLinks: boolean;
276
+ /**
277
+ * If `true`, the "First" and "Last" page links are shown.
278
+ */
279
+ boundaryLinks: boolean;
280
+ /**
281
+ * CSS classes to be applied on the widget main container
282
+ */
283
+ className: string;
284
+ /**
285
+ * The template to use for the structure of the pagination component
286
+ * The default structure uses {@link PaginationCommonPropsAndState.slotEllipsis slotEllipsis}, {@link PaginationCommonPropsAndState.slotFirst slotFirst},
287
+ * {@link PaginationCommonPropsAndState.slotPrevious slotPrevious}, {@link PaginationCommonPropsAndState.slotNext slotNext},
288
+ * {@link PaginationCommonPropsAndState.slotLast slotLast}, {@link PaginationCommonPropsAndState.slotPages slotPages},
289
+ * {@link PaginationCommonPropsAndState.slotNumberLabel slotNumberLabel},
290
+ */
291
+ slotStructure: SlotContent<PaginationContext>;
292
+ /**
293
+ * The template to use for the ellipsis slot
294
+ * for I18n, we suggest to use the global configuration
295
+ * override any configuration parameters provided for this
296
+ */
297
+ slotEllipsis: SlotContent<PaginationContext>;
298
+ /**
299
+ * The template to use for the first slot
300
+ * for I18n, we suggest to use the global configuration
301
+ * override any configuration parameters provided for this
302
+ */
303
+ slotFirst: SlotContent<PaginationContext>;
304
+ /**
305
+ * The template to use for the previous slot
306
+ * for I18n, we suggest to use the global configuration
307
+ * override any configuration parameters provided for this
308
+ */
309
+ slotPrevious: SlotContent<PaginationContext>;
310
+ /**
311
+ * The template to use for the next slot
312
+ * for I18n, we suggest to use the global configuration
313
+ * override any configuration parameters provided for this
314
+ */
315
+ slotNext: SlotContent<PaginationContext>;
316
+ /**
317
+ * The template to use for the last slot
318
+ * for I18n, we suggest to use the global configuration
319
+ * override any configuration parameters provided for this
320
+ */
321
+ slotLast: SlotContent<PaginationContext>;
322
+ /**
323
+ * The template to use for the pages slot
324
+ * To use to customize the pages view
325
+ * override any configuration parameters provided for this
326
+ */
327
+ slotPages: SlotContent<PaginationContext>;
328
+ /**
329
+ * The template to use for the number slot
330
+ * override any configuration parameters provided for this
331
+ * for I18n, we suggest to use the global configuration
332
+ */
333
+ slotNumberLabel: SlotContent<PaginationNumberContext>;
334
+ }
335
+ export type PaginationWidget = Widget<PaginationProps, PaginationState, PaginationApi, PaginationActions, PaginationDirectives>;
336
+ export interface DirectionsHrefs {
337
+ /**
338
+ * The href for the 'Previous' navigation link
339
+ */
340
+ previous: string;
341
+ /**
342
+ * The href for the 'Next' direction link
343
+ */
344
+ next: string;
345
+ }
346
+ export interface PaginationActions {
347
+ /**
348
+ * To "go" to a specific page
349
+ */
350
+ select(page: number, event?: MouseEvent): void;
351
+ /**
352
+ * To "go" to the first page
353
+ */
354
+ first(event?: MouseEvent): void;
355
+ /**
356
+ * To "go" to the previous page
357
+ */
358
+ previous(event?: MouseEvent): void;
359
+ /**
360
+ * To "go" to the next page
361
+ */
362
+ next(event?: MouseEvent): void;
363
+ /**
364
+ * To "go" to the last page
365
+ */
366
+ last(event?: MouseEvent): void;
367
+ }
368
+ export interface PaginationDirectives {
369
+ /**
370
+ * A directive to be applied to each page link
371
+ * This will handle the click, tabindex and aria attributes
372
+ */
373
+ pageLink: Directive<{
374
+ page: number;
375
+ }>;
376
+ /**
377
+ * A directive to be applied on the previous link
378
+ */
379
+ pagePrev: Directive;
380
+ /**
381
+ * A directive to be applied on the first link
382
+ */
383
+ pageFirst: Directive;
384
+ /**
385
+ * A directive to be applied on the next link
386
+ */
387
+ pageNext: Directive;
388
+ /**
389
+ * A directive to be applied on the Last link
390
+ */
391
+ pageLast: Directive;
392
+ }
393
+ export interface PaginationApi {
394
+ }
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const progressbar = require("../../progressbar-D-yo9AHH.cjs");
4
- const progressbar$1 = require("@agnos-ui/core-bootstrap/components/progressbar");
3
+ const progressbar = require("../../progressbar-Bi9aS9jg.cjs");
5
4
  exports.Progressbar = progressbar.Progressbar;
6
5
  exports.createProgressbar = progressbar.createProgressbar;
7
- Object.keys(progressbar$1).forEach((k) => {
8
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
9
- Object.defineProperty(exports, k, {
10
- enumerable: true,
11
- get: () => progressbar$1[k]
12
- });
13
- });
6
+ exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
@@ -1,6 +1,6 @@
1
- import { P, c } from "../../progressbar-D1-6Dzrf.js";
2
- export * from "@agnos-ui/core-bootstrap/components/progressbar";
1
+ import { P, c, g } from "../../progressbar-D8_F2wYh.js";
3
2
  export {
4
3
  P as Progressbar,
5
- c as createProgressbar
4
+ c as createProgressbar,
5
+ g as getProgressbarDefaultConfig
6
6
  };
@@ -1,9 +1,6 @@
1
- import { type PropsWithChildren } from 'react';
2
- export * from '@agnos-ui/core-bootstrap/components/progressbar';
3
- import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
4
- export type ProgressbarWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/progressbar').ProgressbarWidget>;
5
- export type ProgressbarProps = WidgetProps<ProgressbarWidget>;
6
- export type ProgressbarState = WidgetState<ProgressbarWidget>;
7
- export type ProgressbarContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/progressbar').ProgressbarContext>;
1
+ import type { WidgetFactory } from '@agnos-ui/react-headless/types';
2
+ import type { ProgressbarProps, ProgressbarWidget } from './progressbar.gen';
3
+ export type * from './progressbar.gen';
8
4
  export declare const createProgressbar: WidgetFactory<ProgressbarWidget>;
9
- export declare const Progressbar: (props: PropsWithChildren<Partial<ProgressbarProps>>) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const getProgressbarDefaultConfig: () => ProgressbarProps;
6
+ export declare const Progressbar: (props: Partial<ProgressbarProps>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,126 @@
1
+ import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ import type { BSContextualClass } from '@agnos-ui/core-bootstrap/types';
3
+ export type ProgressbarContext = WidgetSlotContext<ProgressbarWidget>;
4
+ export interface ProgressbarState {
5
+ /**
6
+ * Percentage of completion.
7
+ */
8
+ percentage: number;
9
+ /**
10
+ * `true` if the value is above its minimum value.
11
+ */
12
+ started: boolean;
13
+ /**
14
+ * `true` if the value has reached its maximum value.
15
+ */
16
+ finished: boolean;
17
+ /**
18
+ * The aria value text.
19
+ */
20
+ ariaValueText: string | undefined;
21
+ /**
22
+ * The minimum value.
23
+ */
24
+ min: number;
25
+ /**
26
+ * The maximum value.
27
+ */
28
+ max: number;
29
+ /**
30
+ * The current value.
31
+ */
32
+ value: number;
33
+ /**
34
+ * The aria label.
35
+ */
36
+ ariaLabel: string;
37
+ /**
38
+ * CSS classes to be applied on the widget main container
39
+ */
40
+ className: string;
41
+ /**
42
+ * Global template for the Progressbar.
43
+ */
44
+ slotStructure: SlotContent<ProgressbarContext>;
45
+ /**
46
+ * Label of the progress.
47
+ */
48
+ children: SlotContent<ProgressbarContext>;
49
+ /**
50
+ * Height of the progressbar, can be any valid css height value.
51
+ */
52
+ height: string;
53
+ /**
54
+ * If `true`, shows a striped progressbar.
55
+ */
56
+ striped: boolean;
57
+ /**
58
+ * If `true`, animates a striped progressbar.
59
+ * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
60
+ */
61
+ animated: boolean;
62
+ /**
63
+ * Type of the progressbar, following bootstrap types.
64
+ */
65
+ type: BSContextualClass | undefined;
66
+ }
67
+ export interface ProgressbarProps {
68
+ /**
69
+ * Return the value for the 'aria-valuetext' attribute.
70
+ */
71
+ ariaValueTextFn: (value: number, minimum: number, maximum: number) => string | undefined;
72
+ /**
73
+ * The minimum value.
74
+ */
75
+ min: number;
76
+ /**
77
+ * The maximum value.
78
+ */
79
+ max: number;
80
+ /**
81
+ * The current value.
82
+ */
83
+ value: number;
84
+ /**
85
+ * The aria label.
86
+ */
87
+ ariaLabel: string;
88
+ /**
89
+ * CSS classes to be applied on the widget main container
90
+ */
91
+ className: string;
92
+ /**
93
+ * Global template for the Progressbar.
94
+ */
95
+ slotStructure: SlotContent<ProgressbarContext>;
96
+ /**
97
+ * Label of the progress.
98
+ */
99
+ children: SlotContent<ProgressbarContext>;
100
+ /**
101
+ * Height of the progressbar, can be any valid css height value.
102
+ */
103
+ height: string;
104
+ /**
105
+ * If `true`, shows a striped progressbar.
106
+ */
107
+ striped: boolean;
108
+ /**
109
+ * If `true`, animates a striped progressbar.
110
+ * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
111
+ */
112
+ animated: boolean;
113
+ /**
114
+ * Type of the progressbar, following bootstrap types.
115
+ */
116
+ type: BSContextualClass | undefined;
117
+ }
118
+ export type ProgressbarWidget = Widget<ProgressbarProps, ProgressbarState, ProgressbarApi, object, ProgressbarDirectives>;
119
+ export interface ProgressbarDirectives {
120
+ /**
121
+ * A directive to be applied to the main container that handles aria attributes.
122
+ */
123
+ ariaDirective: Directive;
124
+ }
125
+ export interface ProgressbarApi {
126
+ }
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const rating = require("../../rating-D2Ajh4vg.cjs");
4
- const rating$1 = require("@agnos-ui/react-headless/components/rating");
3
+ const rating = require("../../rating-DB4Ze-r4.cjs");
5
4
  exports.Rating = rating.Rating;
6
5
  exports.createRating = rating.createRating;
7
- Object.keys(rating$1).forEach((k) => {
8
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
9
- Object.defineProperty(exports, k, {
10
- enumerable: true,
11
- get: () => rating$1[k]
12
- });
13
- });
6
+ exports.getRatingDefaultConfig = rating.getRatingDefaultConfig;
@@ -1,6 +1,6 @@
1
- import { R, c } from "../../rating-Cvad2Z2H.js";
2
- export * from "@agnos-ui/react-headless/components/rating";
1
+ import { R, c, g } from "../../rating-DRAx20tg.js";
3
2
  export {
4
3
  R as Rating,
5
- c as createRating
4
+ c as createRating,
5
+ g as getRatingDefaultConfig
6
6
  };
@@ -1,7 +1,6 @@
1
- import type { AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
2
- export * from '@agnos-ui/react-headless/components/rating';
3
- export type RatingWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/rating').RatingWidget>;
4
- export type RatingProps = WidgetProps<RatingWidget>;
5
- export type RatingState = WidgetState<RatingWidget>;
1
+ import type { WidgetFactory } from '@agnos-ui/react-headless/types';
2
+ import type { RatingWidget, RatingProps } from './rating.gen';
3
+ export type * from './rating.gen';
6
4
  export declare const createRating: WidgetFactory<RatingWidget>;
5
+ export declare const getRatingDefaultConfig: () => RatingProps;
7
6
  export declare function Rating(props: Partial<RatingProps>): import("react/jsx-runtime").JSX.Element;