@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,119 @@
1
+ import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ import type { BSContextualClass } from '@agnos-ui/core-bootstrap/types';
3
+ import type { TransitionFn } from '@agnos-ui/react-headless/services/transitions/baseTransitions';
4
+ export type AlertContext = WidgetSlotContext<AlertWidget>;
5
+ export interface AlertState {
6
+ /**
7
+ * Is `true` when the alert is hidden. Compared to `visible`, this is updated after the transition is executed.
8
+ */
9
+ hidden: boolean;
10
+ /**
11
+ * If `true`, alert can be dismissed by the user.
12
+ * The close button (×) will be displayed and you can be notified of the event with the (close) output.
13
+ */
14
+ dismissible: boolean;
15
+ /**
16
+ * If `true` the alert is visible to the user
17
+ */
18
+ visible: boolean;
19
+ /**
20
+ * Accessibility close button label
21
+ */
22
+ ariaCloseButtonLabel: string;
23
+ /**
24
+ * CSS classes to be applied on the widget main container
25
+ */
26
+ className: string;
27
+ /**
28
+ * Global template for the alert component
29
+ */
30
+ structure: SlotContent<AlertContext>;
31
+ /**
32
+ * Template for the alert content
33
+ */
34
+ children: SlotContent<AlertContext>;
35
+ /**
36
+ * Type of the alert, following bootstrap types.
37
+ */
38
+ type: BSContextualClass;
39
+ }
40
+ export interface AlertProps {
41
+ /**
42
+ * Callback called when the alert visibility changed.
43
+ */
44
+ onVisibleChange: (visible: boolean) => void;
45
+ /**
46
+ * Callback called when the alert is hidden.
47
+ */
48
+ onHidden: () => void;
49
+ /**
50
+ * Callback called when the alert is shown.
51
+ */
52
+ onShown: () => void;
53
+ /**
54
+ * The transition function will be executed when the alert is displayed or hidden.
55
+ *
56
+ * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
57
+ */
58
+ transition: TransitionFn;
59
+ /**
60
+ * If `true`, alert opening will be animated.
61
+ *
62
+ * Animation is triggered when the `.open()` function is called
63
+ * or the visible prop is changed
64
+ */
65
+ animatedOnInit: boolean;
66
+ /**
67
+ * If `true`, alert closing will be animated.
68
+ *
69
+ * Animation is triggered when clicked on the close button (×),
70
+ * via the `.close()` function or the visible prop is changed
71
+ */
72
+ animated: boolean;
73
+ /**
74
+ * If `true`, alert can be dismissed by the user.
75
+ * The close button (×) will be displayed and you can be notified of the event with the (close) output.
76
+ */
77
+ dismissible: boolean;
78
+ /**
79
+ * If `true` the alert is visible to the user
80
+ */
81
+ visible: boolean;
82
+ /**
83
+ * Accessibility close button label
84
+ */
85
+ ariaCloseButtonLabel: string;
86
+ /**
87
+ * CSS classes to be applied on the widget main container
88
+ */
89
+ className: string;
90
+ /**
91
+ * Global template for the alert component
92
+ */
93
+ structure: SlotContent<AlertContext>;
94
+ /**
95
+ * Template for the alert content
96
+ */
97
+ children: SlotContent<AlertContext>;
98
+ /**
99
+ * Type of the alert, following bootstrap types.
100
+ */
101
+ type: BSContextualClass;
102
+ }
103
+ export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, object, AlertDirectives>;
104
+ export interface AlertApi {
105
+ /**
106
+ * Triggers alert closing programmatically (same as clicking on the close button (×)).
107
+ */
108
+ close(): void;
109
+ /**
110
+ * Triggers the alert to be displayed for the user.
111
+ */
112
+ open(): void;
113
+ }
114
+ export interface AlertDirectives {
115
+ /**
116
+ * the transition directive, piloting what is the visual effect of going from hidden to visible
117
+ */
118
+ transitionDirective: Directive;
119
+ }
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const alert = require("../../alert-DOBOL4nD.cjs");
4
- const alert$1 = require("@agnos-ui/core-bootstrap/components/alert");
3
+ const alert = require("../../alert-Bn5ooyqK.cjs");
5
4
  exports.Alert = alert.Alert;
6
5
  exports.createAlert = alert.createAlert;
7
- Object.keys(alert$1).forEach((k) => {
8
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
9
- Object.defineProperty(exports, k, {
10
- enumerable: true,
11
- get: () => alert$1[k]
12
- });
13
- });
6
+ exports.getAlertDefaultConfig = alert.getAlertDefaultConfig;
@@ -1,6 +1,6 @@
1
- import { A, c } from "../../alert-DWq65Emo.js";
2
- export * from "@agnos-ui/core-bootstrap/components/alert";
1
+ import { A, c, g } from "../../alert-DKl7HLhb.js";
3
2
  export {
4
3
  A as Alert,
5
- c as createAlert
4
+ c as createAlert,
5
+ g as getAlertDefaultConfig
6
6
  };
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const modal = require("../../modal-2qAV4Hjl.cjs");
4
- const modal$1 = require("@agnos-ui/core-bootstrap/components/modal");
3
+ const modal = require("../../modal-Vd0W6U05.cjs");
4
+ const modal$1 = require("@agnos-ui/react-headless/components/modal");
5
5
  exports.Modal = modal.Modal;
6
6
  exports.createModal = modal.createModal;
7
+ exports.getModalDefaultConfig = modal.getModalDefaultConfig;
7
8
  exports.openModal = modal.openModal;
8
- Object.keys(modal$1).forEach((k) => {
9
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
10
- Object.defineProperty(exports, k, {
11
- enumerable: true,
12
- get: () => modal$1[k]
13
- });
9
+ Object.defineProperty(exports, "modalCloseButtonClick", {
10
+ enumerable: true,
11
+ get: () => modal$1.modalCloseButtonClick
12
+ });
13
+ Object.defineProperty(exports, "modalOutsideClick", {
14
+ enumerable: true,
15
+ get: () => modal$1.modalOutsideClick
14
16
  });
@@ -1,7 +1,10 @@
1
- import { M, c, o } from "../../modal-B6rJgzVm.js";
2
- export * from "@agnos-ui/core-bootstrap/components/modal";
1
+ import { M, c, g, o } from "../../modal-B9xclGji.js";
2
+ import { modalCloseButtonClick, modalOutsideClick } from "@agnos-ui/react-headless/components/modal";
3
3
  export {
4
4
  M as Modal,
5
5
  c as createModal,
6
+ g as getModalDefaultConfig,
7
+ modalCloseButtonClick,
8
+ modalOutsideClick,
6
9
  o as openModal
7
10
  };
@@ -1,11 +1,9 @@
1
- import type { AdaptSlotContentProps, AdaptWidgetSlots, PropsConfig, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
2
- import type { PropsWithChildren, RefAttributes } from 'react';
3
- import type { ModalApi } from '@agnos-ui/core-bootstrap/components/modal';
4
- export * from '@agnos-ui/core-bootstrap/components/modal';
5
- export type ModalWidget<Data> = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/modal').ModalWidget<Data>>;
6
- export type ModalProps<Data> = WidgetProps<ModalWidget<Data>>;
7
- export type ModalState<Data> = WidgetState<ModalWidget<Data>>;
8
- export type ModalContext<Data> = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/modal').ModalContext<Data>>;
1
+ import type { PropsConfig } from '@agnos-ui/react-headless/types';
2
+ import type { RefAttributes } from 'react';
3
+ import type { ModalApi, ModalProps, ModalWidget } from './modal.gen';
4
+ export type * from './modal.gen';
9
5
  export declare const createModal: <Data>(propsConfig?: PropsConfig<ModalProps<Data>>) => ModalWidget<Data>;
10
- export declare const Modal: <Data>(props: PropsWithChildren<Partial<ModalProps<Data>>> & RefAttributes<ModalApi<Data>>) => JSX.Element;
6
+ export { modalCloseButtonClick, modalOutsideClick } from '@agnos-ui/react-headless/components/modal';
7
+ export declare const getModalDefaultConfig: () => ModalProps<any>;
8
+ export declare const Modal: <Data>(props: Partial<ModalProps<Data>> & RefAttributes<ModalApi<Data>>) => JSX.Element;
11
9
  export declare function openModal<Data>(options: Partial<ModalProps<Data>>): Promise<any>;
@@ -0,0 +1,239 @@
1
+ import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/react-headless/types';
2
+ import type { TransitionFn } from '@agnos-ui/react-headless/services/transitions/baseTransitions';
3
+ export type ModalContext<Data> = WidgetSlotContext<ModalWidget<Data>>;
4
+ export interface ModalState<Data> {
5
+ /**
6
+ * Whether the backdrop is fully hidden. This can be true either because {@link ModalProps.backdropbackdrop} is false or
7
+ * because {@link ModalCommonPropsAndState.visiblevisible} is false and there is no current transition.
8
+ */
9
+ backdropHidden: boolean;
10
+ /**
11
+ * Whether the modal is fully hidden.
12
+ */
13
+ hidden: boolean;
14
+ /**
15
+ * Whether there is an active transition to either display or hide the modal.
16
+ */
17
+ transitioning: boolean;
18
+ /**
19
+ * DOM element of the modal.
20
+ */
21
+ modalElement: HTMLElement | null;
22
+ /**
23
+ * Value of the aria-label attribute to put on the close button.
24
+ */
25
+ ariaCloseButtonLabel: string;
26
+ /**
27
+ * Classes to add on the backdrop DOM element.
28
+ */
29
+ backdropClass: string;
30
+ /**
31
+ * Whether to display the close button.
32
+ */
33
+ closeButton: boolean;
34
+ /**
35
+ * Which element should contain the modal and backdrop DOM elements.
36
+ * If it is not null, the modal and backdrop DOM elements are moved to the specified container.
37
+ * Otherwise, they stay where the widget is located.
38
+ */
39
+ container: HTMLElement | null;
40
+ /**
41
+ * Whether the modal should be visible when the transition is completed.
42
+ */
43
+ visible: boolean;
44
+ /**
45
+ * CSS classes to be applied on the widget main container
46
+ */
47
+ className: string;
48
+ /**
49
+ * Data to use in content slots
50
+ */
51
+ contentData: Data;
52
+ /**
53
+ * Body of the modal.
54
+ */
55
+ children: SlotContent<ModalContext<Data>>;
56
+ /**
57
+ * Footer of the modal.
58
+ */
59
+ slotFooter: SlotContent<ModalContext<Data>>;
60
+ /**
61
+ * Header of the modal. The default header includes {@link ModalCommonPropsAndState.slotTitle slotTitle}.
62
+ */
63
+ slotHeader: SlotContent<ModalContext<Data>>;
64
+ /**
65
+ * Structure of the modal.
66
+ * The default structure uses {@link ModalCommonPropsAndState.slotHeader slotHeader}, {@link ModalCommonPropsAndState.children children} and {@link ModalCommonPropsAndState.slotFooter slotFooter}.
67
+ */
68
+ slotStructure: SlotContent<ModalContext<Data>>;
69
+ /**
70
+ * Title of the modal.
71
+ */
72
+ slotTitle: SlotContent<ModalContext<Data>>;
73
+ /**
74
+ * Option to create a fullscreen modal, according to the bootstrap documentation.
75
+ */
76
+ fullscreen: boolean;
77
+ }
78
+ export interface ModalProps<Data> {
79
+ /**
80
+ * Whether the modal and its backdrop (if present) should be animated when shown or hidden.
81
+ */
82
+ animated: boolean;
83
+ /**
84
+ * Whether a backdrop should be created behind the modal.
85
+ */
86
+ backdrop: boolean;
87
+ /**
88
+ * The transition to use for the backdrop behind the modal (if present).
89
+ */
90
+ backdropTransition: TransitionFn;
91
+ /**
92
+ * Whether the modal should be closed when clicking on the viewport outside the modal.
93
+ */
94
+ closeOnOutsideClick: boolean;
95
+ /**
96
+ * The transition to use for the modal.
97
+ */
98
+ modalTransition: TransitionFn;
99
+ /**
100
+ * Event to be triggered when the modal is about to be closed (i.e. the {@link ModalApi.closeclose} method was called).
101
+ */
102
+ onBeforeClose: (event: ModalBeforeCloseEvent) => void;
103
+ /**
104
+ * Event to be triggered when the visible property changes.
105
+ */
106
+ onVisibleChange: (visible: boolean) => void;
107
+ /**
108
+ * Event to be triggered when the transition is completed and the modal is not visible.
109
+ */
110
+ onHidden: () => void;
111
+ /**
112
+ * Event to be triggered when the transition is completed and the modal is visible.
113
+ */
114
+ onShown: () => void;
115
+ /**
116
+ * Value of the aria-label attribute to put on the close button.
117
+ */
118
+ ariaCloseButtonLabel: string;
119
+ /**
120
+ * Classes to add on the backdrop DOM element.
121
+ */
122
+ backdropClass: string;
123
+ /**
124
+ * Whether to display the close button.
125
+ */
126
+ closeButton: boolean;
127
+ /**
128
+ * Which element should contain the modal and backdrop DOM elements.
129
+ * If it is not null, the modal and backdrop DOM elements are moved to the specified container.
130
+ * Otherwise, they stay where the widget is located.
131
+ */
132
+ container: HTMLElement | null;
133
+ /**
134
+ * Whether the modal should be visible when the transition is completed.
135
+ */
136
+ visible: boolean;
137
+ /**
138
+ * CSS classes to be applied on the widget main container
139
+ */
140
+ className: string;
141
+ /**
142
+ * Data to use in content slots
143
+ */
144
+ contentData: Data;
145
+ /**
146
+ * Body of the modal.
147
+ */
148
+ children: SlotContent<ModalContext<Data>>;
149
+ /**
150
+ * Footer of the modal.
151
+ */
152
+ slotFooter: SlotContent<ModalContext<Data>>;
153
+ /**
154
+ * Header of the modal. The default header includes {@link ModalCommonPropsAndState.slotTitle slotTitle}.
155
+ */
156
+ slotHeader: SlotContent<ModalContext<Data>>;
157
+ /**
158
+ * Structure of the modal.
159
+ * The default structure uses {@link ModalCommonPropsAndState.slotHeader slotHeader}, {@link ModalCommonPropsAndState.children children} and {@link ModalCommonPropsAndState.slotFooter slotFooter}.
160
+ */
161
+ slotStructure: SlotContent<ModalContext<Data>>;
162
+ /**
163
+ * Title of the modal.
164
+ */
165
+ slotTitle: SlotContent<ModalContext<Data>>;
166
+ /**
167
+ * Option to create a fullscreen modal, according to the bootstrap documentation.
168
+ */
169
+ fullscreen: boolean;
170
+ }
171
+ export interface ModalApi<Data> {
172
+ /**
173
+ * Method to change some modal properties.
174
+ */
175
+ patch: ModalWidget<Data>['patch'];
176
+ /**
177
+ * Closes the modal with the given result.
178
+ */
179
+ close(result?: any): void;
180
+ /**
181
+ * Opens the modal and returns a promise that is resolved when the modal is closed.
182
+ * The resolved value is the result passed to the {@link ModalApi.closeclose} method and possibly changed by the
183
+ * {@link ModalProps.onBeforeCloseonBeforeClose} event handler
184
+ */
185
+ open(): Promise<any>;
186
+ }
187
+ export type ModalWidget<Data> = Widget<ModalProps<Data>, ModalState<Data>, ModalApi<Data>, ModalActions, ModalDirectives>;
188
+ export interface ModalBeforeCloseEvent {
189
+ /**
190
+ * Result of the modal, which is the value passed to the {@link ModalApi.closeclose} method
191
+ * and later resolved by the promise returned by the {@link ModalApi.openopen} method.
192
+ * If needed, it can be changed from the {@link ModalProps.onBeforeCloseonBeforeClose} event handler.
193
+ */
194
+ result: any;
195
+ /**
196
+ * Whether to cancel the close of the modal.
197
+ * It can be changed from the {@link ModalProps.onBeforeCloseonBeforeClose} event handler.
198
+ */
199
+ cancel: boolean;
200
+ }
201
+ export interface ModalActions {
202
+ /**
203
+ * Action to be called when the user clicks on the close button. It closes the modal with the {@link modalCloseButtonClick} result.
204
+ */
205
+ closeButtonClick(event: Pick<MouseEvent, never>): void;
206
+ /**
207
+ * Action to be called when the user clicks on the modal DOM element (which is supposed to have the size of the full viewport).
208
+ * If the click is not done on a descendant of the modal DOM element, it is considered to be done outside the modal
209
+ * and, depending on the value of the {@link ModalProps.closeOnOutsideClickcloseOnOutsideClick} prop, the modal is or isn't closed
210
+ * (with the {@link modalOutsideClick} result).
211
+ */
212
+ modalClick(event: Pick<MouseEvent, 'target' | 'currentTarget'>): void;
213
+ }
214
+ export interface ModalDirectives {
215
+ /**
216
+ * Directive to put on the modal DOM element.
217
+ */
218
+ modalDirective: Directive;
219
+ /**
220
+ * Directive to put on the backdrop DOM element.
221
+ */
222
+ backdropDirective: Directive;
223
+ /**
224
+ * Portal directive to put on the modal DOM element.
225
+ */
226
+ modalPortalDirective: Directive;
227
+ /**
228
+ * Portal directive to put on the backdrop DOM element.
229
+ */
230
+ backdropPortalDirective: Directive;
231
+ /**
232
+ * Directive that adds all the necessary attributes to the close button
233
+ */
234
+ closeButtonDirective: Directive;
235
+ /**
236
+ * Directive to apply to the dialog element when using the native [HTMLDialogElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement)
237
+ */
238
+ dialogDirective: Directive;
239
+ }
@@ -1,17 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pagination = require("../../pagination-CKUbq-OI.cjs");
4
- const pagination$1 = require("@agnos-ui/core-bootstrap/components/pagination");
3
+ const pagination = require("../../pagination-BO6qrpA6.cjs");
5
4
  exports.DefaultPages = pagination.DefaultPages;
6
5
  exports.DefaultStructure = pagination.DefaultStructure;
7
6
  exports.NavButton = pagination.NavButton;
8
7
  exports.PageItem = pagination.PageItem;
9
8
  exports.Pagination = pagination.Pagination;
10
9
  exports.createPagination = pagination.createPagination;
11
- Object.keys(pagination$1).forEach((k) => {
12
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
13
- Object.defineProperty(exports, k, {
14
- enumerable: true,
15
- get: () => pagination$1[k]
16
- });
17
- });
10
+ exports.getPaginationDefaultConfig = pagination.getPaginationDefaultConfig;
@@ -1,10 +1,10 @@
1
- import { D, a, N, b, P, c } from "../../pagination-X2bugeX-.js";
2
- export * from "@agnos-ui/core-bootstrap/components/pagination";
1
+ import { D, a, N, b, P, c, g } from "../../pagination-BGHP7K6U.js";
3
2
  export {
4
3
  D as DefaultPages,
5
4
  a as DefaultStructure,
6
5
  N as NavButton,
7
6
  b as PageItem,
8
7
  P as Pagination,
9
- c as createPagination
8
+ c as createPagination,
9
+ g as getPaginationDefaultConfig
10
10
  };
@@ -1,11 +1,8 @@
1
- import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
2
- export * from '@agnos-ui/core-bootstrap/components/pagination';
3
- export type PaginationWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/pagination').PaginationWidget>;
4
- export type PaginationProps = WidgetProps<PaginationWidget>;
5
- export type PaginationState = WidgetState<PaginationWidget>;
6
- export type PaginationContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/pagination').PaginationContext>;
7
- export type PaginationNumberContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/pagination').PaginationNumberContext>;
1
+ import type { WidgetFactory } from '@agnos-ui/react-headless/types';
2
+ import type { PaginationContext, PaginationProps, PaginationWidget } from './pagination.gen';
3
+ export type * from './pagination.gen';
8
4
  export declare const createPagination: WidgetFactory<PaginationWidget>;
5
+ export declare const getPaginationDefaultConfig: () => PaginationProps;
9
6
  export * from './pageItem';
10
7
  export declare function DefaultPages(slotContext: PaginationContext): import("react/jsx-runtime").JSX.Element | null;
11
8
  export declare function DefaultStructure(slotContext: PaginationContext): import("react/jsx-runtime").JSX.Element;