@agnos-ui/core-bootstrap 0.4.4 → 0.5.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 (63) hide show
  1. package/README.md +1 -1
  2. package/{alert-CKtd0QdX.cjs → alert-C-GktcuR.cjs} +4 -1
  3. package/{alert-BgtRL35m.js → alert-DXTwYKjx.js} +5 -2
  4. package/collapse-BBklAEOu.js +666 -0
  5. package/collapse-Ci0mVprH.cjs +665 -0
  6. package/components/accordion/accordion.d.ts +26 -4
  7. package/components/alert/alert.d.ts +16 -3
  8. package/components/alert/index.cjs +1 -1
  9. package/components/alert/index.js +1 -1
  10. package/components/collapse/collapse.d.ts +131 -0
  11. package/components/collapse/index.cjs +5 -0
  12. package/components/collapse/index.d.ts +1 -0
  13. package/components/collapse/index.js +5 -0
  14. package/components/modal/index.cjs +1 -1
  15. package/components/modal/index.js +1 -1
  16. package/components/modal/modal.d.ts +29 -3
  17. package/components/pagination/index.cjs +1 -1
  18. package/components/pagination/index.js +1 -1
  19. package/components/pagination/pagination.d.ts +26 -5
  20. package/components/progressbar/index.cjs +1 -1
  21. package/components/progressbar/index.js +1 -1
  22. package/components/progressbar/progressbar.d.ts +20 -4
  23. package/components/rating/index.cjs +1 -1
  24. package/components/rating/index.js +1 -1
  25. package/components/rating/rating.d.ts +11 -2
  26. package/components/select/index.cjs +1 -1
  27. package/components/select/index.js +1 -1
  28. package/components/select/select.d.ts +29 -6
  29. package/components/slider/index.cjs +1 -1
  30. package/components/slider/index.js +1 -1
  31. package/components/slider/slider.d.ts +35 -7
  32. package/components/toast/index.cjs +1 -1
  33. package/components/toast/index.js +1 -1
  34. package/components/toast/toast.d.ts +19 -2
  35. package/config.d.ts +8 -0
  36. package/css/agnosui.css +2 -0
  37. package/css/agnosui.css.map +1 -1
  38. package/css/select.css +2 -0
  39. package/css/select.css.map +1 -1
  40. package/index.cjs +16 -11
  41. package/index.d.ts +1 -0
  42. package/index.js +15 -10
  43. package/{modal-CvEa8ExQ.js → modal-CHqGXdvt.js} +7 -1
  44. package/{modal-B3BJCG4T.cjs → modal-DFEAGpCe.cjs} +7 -1
  45. package/package.json +8 -4
  46. package/{pageFactory-BMdGxeJT.js → pageFactory-CZZJDqOh.js} +15 -2
  47. package/{pageFactory-ClmOTwC3.cjs → pageFactory-vEBrUBB-.cjs} +15 -2
  48. package/{progressbar-B-Ne074g.js → progressbar-D9S5NLpS.js} +5 -2
  49. package/{progressbar-BSwy_XPW.cjs → progressbar-FwnctYWo.cjs} +4 -1
  50. package/{rating-Bf8cRtHn.cjs → rating-C5NZjIRx.cjs} +1 -1
  51. package/{rating-C1UqlpFs.js → rating-hovacUx0.js} +1 -1
  52. package/scss/select.scss +2 -0
  53. package/{select-9qmK2r6f.cjs → select-AtIM2x7x.cjs} +1 -2
  54. package/{select-DMeOSbKZ.js → select-CLjBDJ3a.js} +1 -2
  55. package/services/transitions/collapse.d.ts +13 -0
  56. package/services/transitions/fade.d.ts +6 -0
  57. package/{slider-BOtu3bQi.js → slider-CLWQS0Ke.js} +1 -1
  58. package/{slider-DA7_i-am.cjs → slider-UHwPs1vO.cjs} +1 -1
  59. package/{toast-CnSdkWfG.cjs → toast-BYDfN1cI.cjs} +10 -1
  60. package/{toast-aPzxFEq9.js → toast-D-by8Hwt.js} +10 -1
  61. package/types.cjs +12 -0
  62. package/types.d.ts +19 -0
  63. package/types.js +13 -1
@@ -1,8 +1,12 @@
1
- import type { AccordionApi, AccordionDirectives, AccordionItemActions, AccordionItemApi, AccordionProps as CoreProps, AccordionState as CoreState, AccordionItemState as CoreItemState, AccordionItemProps as CoreItemProps, AccordionItemDirectives } from '@agnos-ui/core/components/accordion';
1
+ import type { AccordionApi, AccordionDirectives, AccordionItemApi, AccordionProps as CoreProps, AccordionState as CoreState, AccordionItemState as CoreItemState, AccordionItemProps as CoreItemProps, AccordionItemDirectives } from '@agnos-ui/core/components/accordion';
2
2
  import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
3
3
  import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
4
4
  export * from '@agnos-ui/core/components/accordion';
5
- export type AccordionItemContext = WidgetSlotContext<AccordionItemWidget>;
5
+ /**
6
+ * Represents the context for an accordion item within the accordion component.
7
+ */
8
+ export interface AccordionItemContext extends WidgetSlotContext<AccordionItemWidget> {
9
+ }
6
10
  interface AccordionExtraProps {
7
11
  /**
8
12
  * Structure of the accordion-item. The default item structure is: accordion-item
@@ -37,8 +41,14 @@ interface AccordionItemExtraProps {
37
41
  */
38
42
  header: SlotContent<AccordionItemContext>;
39
43
  }
44
+ /**
45
+ * Represents the state of an Accordion component.
46
+ */
40
47
  export interface AccordionState extends CoreState, AccordionExtraProps {
41
48
  }
49
+ /**
50
+ * Represents the state of an AccordionItem component.
51
+ */
42
52
  export interface AccordionProps extends CoreProps, AccordionExtraProps {
43
53
  /**
44
54
  * The transition to use for the accordion-item body-container when the accordion-item is toggled.
@@ -50,12 +60,24 @@ export interface AccordionProps extends CoreProps, AccordionExtraProps {
50
60
  */
51
61
  itemTransition: TransitionFn;
52
62
  }
53
- export type AccordionWidget = Widget<AccordionProps, AccordionState, AccordionApi, object, AccordionDirectives>;
63
+ /**
64
+ * Represents an Accordion widget type.
65
+ */
66
+ export type AccordionWidget = Widget<AccordionProps, AccordionState, AccordionApi, AccordionDirectives>;
67
+ /**
68
+ * Represents the state of an accordion item, extending the core item state and additional properties specific to the accordion item.
69
+ */
54
70
  export interface AccordionItemState extends CoreItemState, AccordionItemExtraProps {
55
71
  }
72
+ /**
73
+ * Represents the properties for an Accordion item component.
74
+ */
56
75
  export interface AccordionItemProps extends CoreItemProps, AccordionItemExtraProps {
57
76
  }
58
- export type AccordionItemWidget = Widget<AccordionItemProps, AccordionItemState, AccordionItemApi, AccordionItemActions, AccordionItemDirectives>;
77
+ /**
78
+ * Represents a widget for an accordion item.
79
+ */
80
+ export type AccordionItemWidget = Widget<AccordionItemProps, AccordionItemState, AccordionItemApi, AccordionItemDirectives>;
59
81
  /**
60
82
  * Create an AccordionItemWidget with given config props
61
83
  * @param config - an optional AccordionItem config
@@ -1,9 +1,13 @@
1
1
  import type { AlertDirectives, AlertState as CoreState, AlertProps as CoreProps, AlertApi } from '@agnos-ui/core/components/alert';
2
2
  import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
3
- import type { BSContextualClass } from '../../types';
3
+ import { type BSContextualClass } from '../../types';
4
4
  import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
5
5
  export * from '@agnos-ui/core/components/alert';
6
- export type AlertContext = WidgetSlotContext<AlertWidget>;
6
+ /**
7
+ * Represents the context for an Alert component.
8
+ */
9
+ export interface AlertContext extends WidgetSlotContext<AlertWidget> {
10
+ }
7
11
  interface AlertExtraProps {
8
12
  /**
9
13
  * Global template for the alert component
@@ -20,8 +24,14 @@ interface AlertExtraProps {
20
24
  */
21
25
  type: BSContextualClass;
22
26
  }
27
+ /**
28
+ * Represents the state of an alert component.
29
+ */
23
30
  export interface AlertState extends CoreState, AlertExtraProps {
24
31
  }
32
+ /**
33
+ * Represents the properties for the Alert component.
34
+ */
25
35
  export interface AlertProps extends CoreProps, AlertExtraProps {
26
36
  /**
27
37
  * The transition function will be executed when the alert is displayed or hidden.
@@ -32,7 +42,10 @@ export interface AlertProps extends CoreProps, AlertExtraProps {
32
42
  */
33
43
  transition: TransitionFn;
34
44
  }
35
- export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, object, AlertDirectives>;
45
+ /**
46
+ * Represents an alert widget component.
47
+ */
48
+ export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, AlertDirectives>;
36
49
  /**
37
50
  * Retrieve a shallow copy of the default Alert config
38
51
  * @returns the default Alert config
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const alert = require("../../alert-CKtd0QdX.cjs");
3
+ const alert = require("../../alert-C-GktcuR.cjs");
4
4
  const alert$1 = require("@agnos-ui/core/components/alert");
5
5
  exports.createAlert = alert.createAlert;
6
6
  exports.getAlertDefaultConfig = alert.getAlertDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../alert-BgtRL35m.js";
1
+ import { c, g } from "../../alert-DXTwYKjx.js";
2
2
  export * from "@agnos-ui/core/components/alert";
3
3
  export {
4
4
  c as createAlert,
@@ -0,0 +1,131 @@
1
+ import type { Directive, PropsConfig, Widget } from '@agnos-ui/core/types';
2
+ /**
3
+ * Interface representing the common properties and state for a collapse component.
4
+ */
5
+ export interface CollapseCommonPropsAndState {
6
+ /**
7
+ * CSS classes to be applied on the widget main container
8
+ *
9
+ * @defaultValue `''`
10
+ */
11
+ className: string;
12
+ /**
13
+ * If `true`, collapse will be done horizontally.
14
+ *
15
+ * @defaultValue `false`
16
+ */
17
+ horizontal: boolean;
18
+ /**
19
+ * If `true` the collapse is visible to the user
20
+ *
21
+ * @defaultValue `true`
22
+ */
23
+ visible: boolean;
24
+ }
25
+ /**
26
+ * Represents the state of a collapse component.
27
+ * Extends the properties and state from `CollapseCommonPropsAndState`.
28
+ */
29
+ export interface CollapseState extends CollapseCommonPropsAndState {
30
+ /**
31
+ * Is `true` when the collapse is hidden. Compared to `visible`, this is updated after the transition is executed.
32
+ */
33
+ hidden: boolean;
34
+ }
35
+ /**
36
+ * Properties for the Collapse component.
37
+ */
38
+ export interface CollapseProps extends CollapseCommonPropsAndState {
39
+ /**
40
+ * Callback called when the collapse visibility changed.
41
+ *
42
+ * @defaultValue
43
+ * ```ts
44
+ * () => {}
45
+ * ```
46
+ * @param visible - The new visibility state of the collapse.
47
+ */
48
+ onVisibleChange: (visible: boolean) => void;
49
+ /**
50
+ * Callback called when the collapse is hidden.
51
+ *
52
+ * @defaultValue
53
+ * ```ts
54
+ * () => {}
55
+ * ```
56
+ */
57
+ onHidden: () => void;
58
+ /**
59
+ * Callback called when the collapse is shown.
60
+ *
61
+ * @defaultValue
62
+ * ```ts
63
+ * () => {}
64
+ * ```
65
+ */
66
+ onShown: () => void;
67
+ /**
68
+ * If `true`, collapse opening will be animated at init time.
69
+ *
70
+ * @defaultValue `false`
71
+ */
72
+ animatedOnInit: boolean;
73
+ /**
74
+ * If `true`, collapse closing and opening will be animated.
75
+ *
76
+ * @defaultValue `true`
77
+ */
78
+ animated: boolean;
79
+ /**
80
+ * id of the collapse
81
+ *
82
+ * @defaultValue `''`
83
+ */
84
+ id: string;
85
+ }
86
+ /**
87
+ * Interface representing the API for a collapsible component.
88
+ */
89
+ export interface CollapseApi {
90
+ /**
91
+ * Triggers collapse closing programmatically.
92
+ */
93
+ close(): void;
94
+ /**
95
+ * Triggers the collapse content to be displayed for the user.
96
+ */
97
+ open(): void;
98
+ /**
99
+ * Toggles the collapse content visibility.
100
+ */
101
+ toggle(): void;
102
+ }
103
+ /**
104
+ * Interface representing the directives used in a collapse component.
105
+ */
106
+ export interface CollapseDirectives {
107
+ /**
108
+ * Directive to apply the collapse.
109
+ */
110
+ collapseDirective: Directive;
111
+ }
112
+ /**
113
+ * Represents a widget for handling collapse functionality.
114
+ *
115
+ * This type defines the structure of a CollapseWidget, which includes properties, state, API, and directives
116
+ * necessary for managing the collapse behavior in the UI.
117
+ *
118
+ * @type {Widget<CollapseProps, CollapseState, CollapseApi, CollapseDirectives>}
119
+ */
120
+ export type CollapseWidget = Widget<CollapseProps, CollapseState, CollapseApi, CollapseDirectives>;
121
+ /**
122
+ * Retrieve a shallow copy of the default collapse config
123
+ * @returns the default collapse config
124
+ */
125
+ export declare function getCollapseDefaultConfig(): CollapseProps;
126
+ /**
127
+ * Create an CollapseWidget with given config props
128
+ * @param config - an optional collapse config
129
+ * @returns an CollapseWidget
130
+ */
131
+ export declare function createCollapse(config?: PropsConfig<CollapseProps>): CollapseWidget;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const collapse = require("../../collapse-Ci0mVprH.cjs");
4
+ exports.createCollapse = collapse.createCollapse;
5
+ exports.getCollapseDefaultConfig = collapse.getCollapseDefaultConfig;
@@ -0,0 +1 @@
1
+ export * from './collapse';
@@ -0,0 +1,5 @@
1
+ import { c, g } from "../../collapse-BBklAEOu.js";
2
+ export {
3
+ c as createCollapse,
4
+ g as getCollapseDefaultConfig
5
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const modal = require("../../modal-B3BJCG4T.cjs");
3
+ const modal = require("../../modal-DFEAGpCe.cjs");
4
4
  const modal$1 = require("@agnos-ui/core/components/modal");
5
5
  exports.createModal = modal.createModal;
6
6
  exports.getModalDefaultConfig = modal.getModalDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../modal-CvEa8ExQ.js";
1
+ import { c, g } from "../../modal-CHqGXdvt.js";
2
2
  export * from "@agnos-ui/core/components/modal";
3
3
  export {
4
4
  c as createModal,
@@ -1,8 +1,14 @@
1
- import type { ModalProps as CoreProps, ModalState as CoreState, ModalActions, ModalApi as CoreApi, ModalDirectives } from '@agnos-ui/core/components/modal';
1
+ import type { ModalProps as CoreProps, ModalState as CoreState, ModalApi as CoreApi, ModalDirectives } from '@agnos-ui/core/components/modal';
2
2
  import type { PropsConfig, SlotContent, Widget, WidgetSlotContext } from '@agnos-ui/core/types';
3
3
  import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
4
4
  export * from '@agnos-ui/core/components/modal';
5
- export type ModalContext<Data> = WidgetSlotContext<ModalWidget<Data>>;
5
+ /**
6
+ * Represents the context for a modal component.
7
+ *
8
+ * @template Data - The type of data associated with the modal.
9
+ */
10
+ export interface ModalContext<Data> extends WidgetSlotContext<ModalWidget<Data>> {
11
+ }
6
12
  interface ModalExtraProps<Data> {
7
13
  /**
8
14
  * Data to use in content slots
@@ -36,8 +42,18 @@ interface ModalExtraProps<Data> {
36
42
  */
37
43
  fullscreen: boolean;
38
44
  }
45
+ /**
46
+ * Represents the state of a modal component.
47
+ *
48
+ * @template Data - The type of the data associated with the modal.
49
+ */
39
50
  export interface ModalState<Data> extends CoreState, ModalExtraProps<Data> {
40
51
  }
52
+ /**
53
+ * Interface representing the properties for a modal component.
54
+ *
55
+ * @template Data - The type of data that the modal will handle.
56
+ */
41
57
  export interface ModalProps<Data> extends CoreProps, ModalExtraProps<Data> {
42
58
  /**
43
59
  * The transition to use for the backdrop behind the modal (if present).
@@ -52,13 +68,23 @@ export interface ModalProps<Data> extends CoreProps, ModalExtraProps<Data> {
52
68
  */
53
69
  modalTransition: TransitionFn;
54
70
  }
71
+ /**
72
+ * Interface representing the API for a modal component.
73
+ *
74
+ * @template Data - The type of data associated with the modal.
75
+ */
55
76
  export interface ModalApi<Data> extends Omit<CoreApi, 'patch'> {
56
77
  /**
57
78
  * Method to change some modal properties.
58
79
  */
59
80
  patch: ModalWidget<Data>['patch'];
60
81
  }
61
- export type ModalWidget<Data> = Widget<ModalProps<Data>, ModalState<Data>, ModalApi<Data>, ModalActions, ModalDirectives>;
82
+ /**
83
+ * Represents a modal widget with specific data type.
84
+ *
85
+ * @template Data - The type of data that the modal widget will handle.
86
+ */
87
+ export type ModalWidget<Data> = Widget<ModalProps<Data>, ModalState<Data>, ModalApi<Data>, ModalDirectives>;
62
88
  /**
63
89
  * Retrieve a shallow copy of the default modal config
64
90
  * @returns the default modal config
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pageFactory = require("../../pageFactory-ClmOTwC3.cjs");
3
+ const pageFactory = require("../../pageFactory-vEBrUBB-.cjs");
4
4
  const pagination = require("@agnos-ui/core/components/pagination");
5
5
  exports.createPagination = pageFactory.createPagination;
6
6
  exports.getPaginationDefaultConfig = pageFactory.getPaginationDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g, n } from "../../pageFactory-BMdGxeJT.js";
1
+ import { c, g, n } from "../../pageFactory-CZZJDqOh.js";
2
2
  export * from "@agnos-ui/core/components/pagination";
3
3
  export {
4
4
  c as createPagination,
@@ -1,19 +1,20 @@
1
1
  import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
2
- import type { PaginationActions, PaginationApi, PaginationDirectives, PaginationProps as CoreProps, PaginationState as CoreState } from '@agnos-ui/core/components/pagination';
2
+ import type { PaginationApi, PaginationDirectives, PaginationProps as CoreProps, PaginationState as CoreState } from '@agnos-ui/core/components/pagination';
3
3
  export * from '@agnos-ui/core/components/pagination';
4
4
  /**
5
5
  * A type for the slot context of the pagination widget
6
6
  */
7
- export type PaginationContext = WidgetSlotContext<PaginationWidget>;
7
+ export interface PaginationContext extends WidgetSlotContext<PaginationWidget> {
8
+ }
8
9
  /**
9
10
  * A type for the slot context of the pagination widget when the slot is the number label
10
11
  */
11
- export type PaginationNumberContext = PaginationContext & {
12
+ export interface PaginationNumberContext extends PaginationContext {
12
13
  /**
13
14
  * Displayed page
14
15
  */
15
16
  displayedPage: number;
16
- };
17
+ }
17
18
  interface PaginationExtraProps {
18
19
  /**
19
20
  * The template to use for the structure of the pagination component
@@ -81,12 +82,32 @@ interface PaginationExtraProps {
81
82
  * ```
82
83
  */
83
84
  numberLabel: SlotContent<PaginationNumberContext>;
85
+ /**
86
+ * The pagination display size.
87
+ *
88
+ * Bootstrap currently supports small and large sizes.
89
+ *
90
+ * @defaultValue `null`
91
+ */
92
+ size: 'sm' | 'lg' | null;
84
93
  }
94
+ /**
95
+ * Represents the state of a pagination component.
96
+ */
85
97
  export interface PaginationState extends CoreState, PaginationExtraProps {
86
98
  }
99
+ /**
100
+ * Represents the properties for the Pagination component.
101
+ */
87
102
  export interface PaginationProps extends CoreProps, PaginationExtraProps {
88
103
  }
89
- export type PaginationWidget = Widget<PaginationProps, PaginationState, PaginationApi, PaginationActions, PaginationDirectives>;
104
+ /**
105
+ * Represents a pagination widget component.
106
+ *
107
+ * This type defines a widget that handles pagination functionality,
108
+ * including properties, state, api and directives specific to pagination.
109
+ */
110
+ export type PaginationWidget = Widget<PaginationProps, PaginationState, PaginationApi, PaginationDirectives>;
90
111
  /**
91
112
  * Retrieve a shallow copy of the default Pagination config
92
113
  * @returns the default Pagination config
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const progressbar = require("../../progressbar-BSwy_XPW.cjs");
3
+ const progressbar = require("../../progressbar-FwnctYWo.cjs");
4
4
  const progressbar$1 = require("@agnos-ui/core/components/progressbar");
5
5
  exports.createProgressbar = progressbar.createProgressbar;
6
6
  exports.getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../progressbar-B-Ne074g.js";
1
+ import { c, g } from "../../progressbar-D9S5NLpS.js";
2
2
  export * from "@agnos-ui/core/components/progressbar";
3
3
  export {
4
4
  c as createProgressbar,
@@ -1,8 +1,13 @@
1
- import type { ProgressbarDirectives, ProgressbarState as CoreState, ProgressbarProps as CoreProps, ProgressbarApi } from '@agnos-ui/core/components/progressbar';
1
+ import type { ProgressbarDirectives, ProgressbarState as CoreState, ProgressbarProps as CoreProps } from '@agnos-ui/core/components/progressbar';
2
2
  import type { SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
3
- import type { BSContextualClass } from '../../types';
3
+ import { type BSContextualClass } from '../../types';
4
4
  export * from '@agnos-ui/core/components/progressbar';
5
- export type ProgressbarContext = WidgetSlotContext<ProgressbarWidget>;
5
+ /**
6
+ * Represents the context for a Progressbar widget.
7
+ * This interface is used to define the context object that is passed to the Progressbar widget.
8
+ */
9
+ export interface ProgressbarContext extends WidgetSlotContext<ProgressbarWidget> {
10
+ }
6
11
  interface ProgressbarExtraProps {
7
12
  /**
8
13
  * Global template for the Progressbar.
@@ -36,11 +41,22 @@ interface ProgressbarExtraProps {
36
41
  */
37
42
  type: BSContextualClass | undefined;
38
43
  }
44
+ /**
45
+ * Represents the state of a Progressbar component.
46
+ */
39
47
  export interface ProgressbarState extends CoreState, ProgressbarExtraProps {
40
48
  }
49
+ /**
50
+ * Interface representing the properties for the Progressbar component.
51
+ */
41
52
  export interface ProgressbarProps extends CoreProps, ProgressbarExtraProps {
42
53
  }
43
- export type ProgressbarWidget = Widget<ProgressbarProps, ProgressbarState, ProgressbarApi, object, ProgressbarDirectives>;
54
+ /**
55
+ * Represents a Progressbar widget.
56
+ *
57
+ * This type defines the structure of a Progressbar widget, including its properties, state, and directives.
58
+ */
59
+ export type ProgressbarWidget = Widget<ProgressbarProps, ProgressbarState, object, ProgressbarDirectives>;
44
60
  /**
45
61
  * Retrieve a shallow copy of the default Progressbar config
46
62
  * @returns the default Progressbar config
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const rating = require("../../rating-Bf8cRtHn.cjs");
3
+ const rating = require("../../rating-C5NZjIRx.cjs");
4
4
  const rating$1 = require("@agnos-ui/core/components/rating");
5
5
  exports.createRating = rating.createRating;
6
6
  exports.getRatingDefaultConfig = rating.getRatingDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../rating-C1UqlpFs.js";
1
+ import { c, g } from "../../rating-hovacUx0.js";
2
2
  export * from "@agnos-ui/core/components/rating";
3
3
  export {
4
4
  c as createRating,
@@ -1,4 +1,4 @@
1
- import type { RatingActions, RatingDirectives, StarContext, RatingState as CoreState, RatingProps as CoreProps } from '@agnos-ui/core/components/rating';
1
+ import type { RatingApi, RatingDirectives, StarContext, RatingState as CoreState, RatingProps as CoreProps } from '@agnos-ui/core/components/rating';
2
2
  import type { SlotContent, Widget, WidgetFactory } from '@agnos-ui/core/types';
3
3
  export * from '@agnos-ui/core/components/rating';
4
4
  interface RatingExtraProps {
@@ -12,11 +12,20 @@ interface RatingExtraProps {
12
12
  */
13
13
  star: SlotContent<StarContext>;
14
14
  }
15
+ /**
16
+ * Represents the state of a rating component.
17
+ */
15
18
  export interface RatingState extends CoreState, RatingExtraProps {
16
19
  }
20
+ /**
21
+ * Represents the properties for the Rating component.
22
+ */
17
23
  export interface RatingProps extends CoreProps, RatingExtraProps {
18
24
  }
19
- export type RatingWidget = Widget<RatingProps, RatingState, object, RatingActions, RatingDirectives>;
25
+ /**
26
+ * Represents a Rating Widget component.
27
+ */
28
+ export type RatingWidget = Widget<RatingProps, RatingState, RatingApi, RatingDirectives>;
20
29
  /**
21
30
  * Retrieve a shallow copy of the default Rating config
22
31
  * @returns the default Rating config
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const select = require("../../select-9qmK2r6f.cjs");
3
+ const select = require("../../select-AtIM2x7x.cjs");
4
4
  const select$1 = require("@agnos-ui/core/components/select");
5
5
  exports.createSelect = select.createSelect;
6
6
  exports.getSelectDefaultConfig = select.getSelectDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../select-DMeOSbKZ.js";
1
+ import { c, g } from "../../select-CLjBDJ3a.js";
2
2
  export * from "@agnos-ui/core/components/select";
3
3
  export {
4
4
  c as createSelect,
@@ -1,16 +1,24 @@
1
- import type { ItemContext, SelectActions, SelectApi, SelectDirectives, SelectProps as CoreProps, SelectState as CoreState } from '@agnos-ui/core/components/select';
1
+ import type { ItemContext, SelectApi, SelectDirectives, SelectProps as CoreProps, SelectState as CoreState } from '@agnos-ui/core/components/select';
2
2
  import type { PropsConfig, SlotContent, Widget, WidgetSlotContext } from '@agnos-ui/core/types';
3
3
  export * from '@agnos-ui/core/components/select';
4
4
  /**
5
- * A type for the slot context of the pagination widget
5
+ * Interface for the slot context of the pagination widget
6
+ * @template Item - The type of the items in the Select component.
6
7
  */
7
- export type SelectContext<Item> = WidgetSlotContext<SelectWidget<Item>>;
8
- export type SelectItemContext<Item> = SelectContext<Item> & {
8
+ export interface SelectContext<Item> extends WidgetSlotContext<SelectWidget<Item>> {
9
+ }
10
+ /**
11
+ * Represents the context for a select item, extending the base `SelectContext` with additional
12
+ * contextual data specific to an item.
13
+ *
14
+ * @template Item - The type of the item within the select context.
15
+ */
16
+ export interface SelectItemContext<Item> extends SelectContext<Item> {
9
17
  /**
10
18
  * Contextual data related to an item
11
19
  */
12
20
  itemContext: ItemContext<Item>;
13
- };
21
+ }
14
22
  interface SelectExtraProps<Item> {
15
23
  /**
16
24
  * The template to override the way each badge on the left of the input is displayed.
@@ -33,11 +41,26 @@ interface SelectExtraProps<Item> {
33
41
  */
34
42
  itemLabel: SlotContent<SelectItemContext<Item>>;
35
43
  }
44
+ /**
45
+ * Represents the state of a Select component.
46
+ *
47
+ * @template Item - The type of the items in the select component.
48
+ */
36
49
  export interface SelectState<Item> extends CoreState<Item>, SelectExtraProps<Item> {
37
50
  }
51
+ /**
52
+ * Represents the properties for the Select component.
53
+ *
54
+ * @template Item - The type of the items in the select component.
55
+ */
38
56
  export interface SelectProps<Item> extends CoreProps<Item>, SelectExtraProps<Item> {
39
57
  }
40
- export type SelectWidget<Item> = Widget<SelectProps<Item>, SelectState<Item>, SelectApi<Item>, SelectActions<Item>, SelectDirectives<Item>>;
58
+ /**
59
+ * Represents a Select widget component.
60
+ *
61
+ * @template Item - The type of the items that the select widget will handle.
62
+ */
63
+ export type SelectWidget<Item> = Widget<SelectProps<Item>, SelectState<Item>, SelectApi<Item>, SelectDirectives<Item>>;
41
64
  /**
42
65
  * Retrieve a shallow copy of the default Select config
43
66
  * @returns the default Select config
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const slider = require("../../slider-DA7_i-am.cjs");
3
+ const slider = require("../../slider-UHwPs1vO.cjs");
4
4
  const slider$1 = require("@agnos-ui/core/components/slider");
5
5
  exports.createSlider = slider.createSlider;
6
6
  exports.getSliderDefaultConfig = slider.getSliderDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { c, g } from "../../slider-BOtu3bQi.js";
1
+ import { c, g } from "../../slider-CLWQS0Ke.js";
2
2
  export * from "@agnos-ui/core/components/slider";
3
3
  export {
4
4
  c as createSlider,