@agnos-ui/react-bootstrap 0.7.0-next.0 → 0.7.1

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 (60) hide show
  1. package/{accordion-D3SZgVk6.js → accordion-GX854ooE.js} +18 -22
  2. package/{accordion-01ch6GZW.cjs → accordion-QclyKh8E.cjs} +17 -21
  3. package/{alert-DGvp2r3W.cjs → alert-BGVw_vsM.cjs} +4 -4
  4. package/{alert-CTTuh9t9.js → alert-BM4ImSpO.js} +5 -5
  5. package/{collapse-DNwn7xgF.js → collapse-BOXBa8_8.js} +6 -8
  6. package/{collapse-Dodvr8dn.cjs → collapse-UMbDs6Gh.cjs} +5 -7
  7. package/components/accordion/accordion.d.ts +9 -5
  8. package/components/accordion/index.cjs +1 -1
  9. package/components/accordion/index.js +1 -1
  10. package/components/alert/alert.d.ts +5 -3
  11. package/components/alert/index.cjs +1 -1
  12. package/components/alert/index.js +1 -1
  13. package/components/collapse/collapse.d.ts +5 -3
  14. package/components/collapse/index.cjs +1 -1
  15. package/components/collapse/index.js +1 -1
  16. package/components/modal/index.cjs +1 -1
  17. package/components/modal/index.js +1 -1
  18. package/components/modal/modal.d.ts +6 -4
  19. package/components/pagination/index.cjs +1 -1
  20. package/components/pagination/index.js +1 -1
  21. package/components/pagination/pagination.d.ts +6 -2
  22. package/components/progressbar/index.cjs +1 -1
  23. package/components/progressbar/index.js +1 -1
  24. package/components/rating/index.cjs +1 -1
  25. package/components/rating/index.js +1 -1
  26. package/components/rating/rating.d.ts +5 -2
  27. package/components/select/index.cjs +1 -1
  28. package/components/select/index.js +1 -1
  29. package/components/select/select.d.ts +5 -2
  30. package/components/slider/index.cjs +1 -1
  31. package/components/slider/index.js +1 -1
  32. package/components/slider/slider.gen.d.ts +25 -10
  33. package/components/toast/index.cjs +1 -1
  34. package/components/toast/index.js +1 -1
  35. package/components/toast/toast.d.ts +5 -3
  36. package/components/tree/index.cjs +1 -1
  37. package/components/tree/index.js +1 -1
  38. package/components/tree/tree.gen.d.ts +1 -1
  39. package/config.d.ts +2 -2
  40. package/generated/config.cjs +2 -2
  41. package/generated/config.js +3 -3
  42. package/index.cjs +12 -12
  43. package/index.js +14 -14
  44. package/{modal-_OcXelvY.cjs → modal-DQLOz7TE.cjs} +5 -5
  45. package/{modal-DuCmvYiX.js → modal-apFubipB.js} +6 -6
  46. package/package.json +6 -6
  47. package/{pagination-5jlJWfFj.js → pagination-B1Ho_-r4.js} +6 -4
  48. package/{pagination-b4pKj3Kx.cjs → pagination-Bq4Hvm1j.cjs} +5 -4
  49. package/{progressbar-DKFR5epE.js → progressbar-Ck20N_ee.js} +2 -2
  50. package/{progressbar-JO1ey9mx.cjs → progressbar-CnbqCXqH.cjs} +2 -2
  51. package/{rating-eI8T0zvS.cjs → rating-BaZTCQi1.cjs} +4 -3
  52. package/{rating-CTfRQGGu.js → rating-DziC4Tsh.js} +6 -5
  53. package/{select-BriGqe3k.js → select-C2jCf6jT.js} +5 -3
  54. package/{select-XHUAqTDw.cjs → select-DHNspXXB.cjs} +5 -3
  55. package/{slider-BUQne5aJ.cjs → slider-D0knY75x.cjs} +1 -1
  56. package/{slider--K7ri_0l.js → slider-UQlY3PHn.js} +1 -1
  57. package/{toast-CS1mMdhx.js → toast-BUHjCme7.js} +5 -5
  58. package/{toast-Vv1dxnuA.cjs → toast-CkwIDuRg.cjs} +4 -4
  59. package/{tree-CrXS0sFt.js → tree-BflF5hyD.js} +2 -2
  60. package/{tree-CCmlpEPq.cjs → tree-DT261j-0.cjs} +2 -2
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Slot } from "@agnos-ui/react-headless/slot";
3
3
  import { useDirectives, classDirective } from "@agnos-ui/react-headless/utils/directive";
4
- import { createContext, forwardRef, useContext, useImperativeHandle, useEffect } from "react";
4
+ import { createContext, useContext, useImperativeHandle, useEffect } from "react";
5
5
  import { useWidgetWithConfig } from "./generated/config.js";
6
6
  import { getAccordionDefaultConfig, createAccordionItem, createAccordion, factoryCreateAccordion } from "@agnos-ui/core-bootstrap/components/accordion";
7
7
  const export_getAccordionDefaultConfig = getAccordionDefaultConfig;
@@ -19,27 +19,23 @@ const AccordionItemDefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxs(
19
19
  /* @__PURE__ */ jsx(Header, { directive: slotContext.directives.headerDirective, headerTag: slotContext.state.headingTag, children: /* @__PURE__ */ jsx("button", { ...useDirectives([classDirective, "accordion-button"], slotContext.directives.buttonDirective), children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.header, props: slotContext }) }) }),
20
20
  slotContext.state.shouldBeInDOM && /* @__PURE__ */ jsx(ItemContent, { ...slotContext })
21
21
  ] });
22
- const AccordionItem = forwardRef(
23
- function AccordionItem2(props, ref) {
24
- const { registerItem } = useContext(AccordionDIContext);
25
- const widgetContext = useWidgetWithConfig(registerItem, props, null, {
26
- structure: AccordionItemDefaultSlotStructure
27
- });
28
- const { state, api, directives } = widgetContext;
29
- useImperativeHandle(ref, () => api, [api]);
30
- useEffect(() => {
31
- api.initDone();
32
- }, [api]);
33
- return /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, `accordion-item ${state.className}`], directives.itemDirective), children: /* @__PURE__ */ jsx(Slot, { slotContent: state.structure, props: widgetContext }) });
34
- }
35
- );
36
- const Accordion = forwardRef(
37
- function Accordion2(props, ref) {
38
- const widget = useWidgetWithConfig(export_createAccordion, props, "accordion");
39
- useImperativeHandle(ref, () => widget.api, [widget.api]);
40
- return /* @__PURE__ */ jsx(AccordionDIContext.Provider, { value: widget.api, children: /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "accordion"], widget.directives.accordionDirective), children: props.children }) });
41
- }
42
- );
22
+ function AccordionItem(props) {
23
+ const { registerItem } = useContext(AccordionDIContext);
24
+ const widgetContext = useWidgetWithConfig(registerItem, props, null, {
25
+ structure: AccordionItemDefaultSlotStructure
26
+ });
27
+ const { state, api, directives } = widgetContext;
28
+ useImperativeHandle(props.ref, () => api, [api]);
29
+ useEffect(() => {
30
+ api.initDone();
31
+ }, [api]);
32
+ return /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, `accordion-item ${state.className}`], directives.itemDirective), children: /* @__PURE__ */ jsx(Slot, { slotContent: state.structure, props: widgetContext }) });
33
+ }
34
+ function Accordion(props) {
35
+ const widget = useWidgetWithConfig(export_createAccordion, props, "accordion");
36
+ useImperativeHandle(props.ref, () => widget.api, [widget.api]);
37
+ return /* @__PURE__ */ jsx(AccordionDIContext, { value: widget.api, children: /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "accordion"], widget.directives.accordionDirective), children: props.children }) });
38
+ }
43
39
  export {
44
40
  AccordionItemDefaultSlotStructure as A,
45
41
  AccordionItem as a,
@@ -20,27 +20,23 @@ const AccordionItemDefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxRu
20
20
  /* @__PURE__ */ jsxRuntime.jsx(Header, { directive: slotContext.directives.headerDirective, headerTag: slotContext.state.headingTag, children: /* @__PURE__ */ jsxRuntime.jsx("button", { ...directive.useDirectives([directive.classDirective, "accordion-button"], slotContext.directives.buttonDirective), children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.header, props: slotContext }) }) }),
21
21
  slotContext.state.shouldBeInDOM && /* @__PURE__ */ jsxRuntime.jsx(ItemContent, { ...slotContext })
22
22
  ] });
23
- const AccordionItem = React.forwardRef(
24
- function AccordionItem2(props, ref) {
25
- const { registerItem } = React.useContext(AccordionDIContext);
26
- const widgetContext = generated_config.useWidgetWithConfig(registerItem, props, null, {
27
- structure: AccordionItemDefaultSlotStructure
28
- });
29
- const { state, api, directives } = widgetContext;
30
- React.useImperativeHandle(ref, () => api, [api]);
31
- React.useEffect(() => {
32
- api.initDone();
33
- }, [api]);
34
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, `accordion-item ${state.className}`], directives.itemDirective), children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: state.structure, props: widgetContext }) });
35
- }
36
- );
37
- const Accordion = React.forwardRef(
38
- function Accordion2(props, ref) {
39
- const widget = generated_config.useWidgetWithConfig(export_createAccordion, props, "accordion");
40
- React.useImperativeHandle(ref, () => widget.api, [widget.api]);
41
- return /* @__PURE__ */ jsxRuntime.jsx(AccordionDIContext.Provider, { value: widget.api, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "accordion"], widget.directives.accordionDirective), children: props.children }) });
42
- }
43
- );
23
+ function AccordionItem(props) {
24
+ const { registerItem } = React.useContext(AccordionDIContext);
25
+ const widgetContext = generated_config.useWidgetWithConfig(registerItem, props, null, {
26
+ structure: AccordionItemDefaultSlotStructure
27
+ });
28
+ const { state, api, directives } = widgetContext;
29
+ React.useImperativeHandle(props.ref, () => api, [api]);
30
+ React.useEffect(() => {
31
+ api.initDone();
32
+ }, [api]);
33
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, `accordion-item ${state.className}`], directives.itemDirective), children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: state.structure, props: widgetContext }) });
34
+ }
35
+ function Accordion(props) {
36
+ const widget = generated_config.useWidgetWithConfig(export_createAccordion, props, "accordion");
37
+ React.useImperativeHandle(props.ref, () => widget.api, [widget.api]);
38
+ return /* @__PURE__ */ jsxRuntime.jsx(AccordionDIContext, { value: widget.api, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "accordion"], widget.directives.accordionDirective), children: props.children }) });
39
+ }
44
40
  exports.Accordion = Accordion;
45
41
  exports.AccordionItem = AccordionItem;
46
42
  exports.AccordionItemDefaultSlotStructure = AccordionItemDefaultSlotStructure;
@@ -18,20 +18,20 @@ const AlertElement = (slotContext) => /* @__PURE__ */ jsxRuntime.jsx(
18
18
  ...directive.useDirectives(
19
19
  [
20
20
  directive.classDirective,
21
- `au-alert alert alert-${slotContext.state.type} ${slotContext.state.className} ${slotContext.state.dismissible ? "alert-dismissible" : ""}`
21
+ [`au-alert alert alert-${slotContext.state.type} ${slotContext.state.className}`, { "alert-dismissible": slotContext.state.dismissible }]
22
22
  ],
23
23
  slotContext.directives.transitionDirective
24
24
  ),
25
25
  children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.structure, props: slotContext })
26
26
  }
27
27
  );
28
- const Alert = React.forwardRef(function Alert2(props, ref) {
28
+ function Alert(props) {
29
29
  const widgetContext = generated_config.useWidgetWithConfig(export_createAlert, props, "alert", {
30
30
  structure: AlertDefaultSlotStructure
31
31
  });
32
- React.useImperativeHandle(ref, () => widgetContext.api, [widgetContext.api]);
32
+ React.useImperativeHandle(props.ref, () => widgetContext.api, [widgetContext.api]);
33
33
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: !widgetContext.state.hidden && /* @__PURE__ */ jsxRuntime.jsx(AlertElement, { ...widgetContext }) });
34
- });
34
+ }
35
35
  exports.Alert = Alert;
36
36
  exports.AlertDefaultSlotStructure = AlertDefaultSlotStructure;
37
37
  exports.export_createAlert = export_createAlert;
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Slot } from "@agnos-ui/react-headless/slot";
3
3
  import { useDirectives, classDirective } from "@agnos-ui/react-headless/utils/directive";
4
- import { forwardRef, useImperativeHandle } from "react";
4
+ import { useImperativeHandle } from "react";
5
5
  import { useWidgetWithConfig } from "./generated/config.js";
6
6
  import { getAlertDefaultConfig, createAlert } from "@agnos-ui/core-bootstrap/components/alert";
7
7
  const export_getAlertDefaultConfig = getAlertDefaultConfig;
@@ -17,20 +17,20 @@ const AlertElement = (slotContext) => /* @__PURE__ */ jsx(
17
17
  ...useDirectives(
18
18
  [
19
19
  classDirective,
20
- `au-alert alert alert-${slotContext.state.type} ${slotContext.state.className} ${slotContext.state.dismissible ? "alert-dismissible" : ""}`
20
+ [`au-alert alert alert-${slotContext.state.type} ${slotContext.state.className}`, { "alert-dismissible": slotContext.state.dismissible }]
21
21
  ],
22
22
  slotContext.directives.transitionDirective
23
23
  ),
24
24
  children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.structure, props: slotContext })
25
25
  }
26
26
  );
27
- const Alert = forwardRef(function Alert2(props, ref) {
27
+ function Alert(props) {
28
28
  const widgetContext = useWidgetWithConfig(export_createAlert, props, "alert", {
29
29
  structure: AlertDefaultSlotStructure
30
30
  });
31
- useImperativeHandle(ref, () => widgetContext.api, [widgetContext.api]);
31
+ useImperativeHandle(props.ref, () => widgetContext.api, [widgetContext.api]);
32
32
  return /* @__PURE__ */ jsx(Fragment, { children: !widgetContext.state.hidden && /* @__PURE__ */ jsx(AlertElement, { ...widgetContext }) });
33
- });
33
+ }
34
34
  export {
35
35
  AlertDefaultSlotStructure as A,
36
36
  Alert as a,
@@ -1,17 +1,15 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { forwardRef, useImperativeHandle } from "react";
2
+ import { useImperativeHandle } from "react";
3
3
  import { useWidgetWithConfig } from "./generated/config.js";
4
4
  import { getCollapseDefaultConfig, createCollapse } from "@agnos-ui/core-bootstrap/components/collapse";
5
5
  import { useDirectives } from "@agnos-ui/react-headless/utils/directive";
6
6
  const export_getCollapseDefaultConfig = getCollapseDefaultConfig;
7
7
  const export_createCollapse = createCollapse;
8
- const Collapse = forwardRef(
9
- function Collapse2(props, ref) {
10
- const { api, directives } = useWidgetWithConfig(export_createCollapse, props, "collapse");
11
- useImperativeHandle(ref, () => api, [api]);
12
- return /* @__PURE__ */ jsx("div", { ...useDirectives(directives.collapseDirective), children: props.children });
13
- }
14
- );
8
+ function Collapse(props) {
9
+ const { api, directives } = useWidgetWithConfig(export_createCollapse, props, "collapse");
10
+ useImperativeHandle(props.ref, () => api, [api]);
11
+ return /* @__PURE__ */ jsx("div", { ...useDirectives(directives.collapseDirective), children: props.children });
12
+ }
15
13
  export {
16
14
  Collapse as C,
17
15
  export_createCollapse as a,
@@ -6,13 +6,11 @@ const collapse = require("@agnos-ui/core-bootstrap/components/collapse");
6
6
  const directive = require("@agnos-ui/react-headless/utils/directive");
7
7
  const export_getCollapseDefaultConfig = collapse.getCollapseDefaultConfig;
8
8
  const export_createCollapse = collapse.createCollapse;
9
- const Collapse = React.forwardRef(
10
- function Collapse2(props, ref) {
11
- const { api, directives } = generated_config.useWidgetWithConfig(export_createCollapse, props, "collapse");
12
- React.useImperativeHandle(ref, () => api, [api]);
13
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives(directives.collapseDirective), children: props.children });
14
- }
15
- );
9
+ function Collapse(props) {
10
+ const { api, directives } = generated_config.useWidgetWithConfig(export_createCollapse, props, "collapse");
11
+ React.useImperativeHandle(props.ref, () => api, [api]);
12
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives(directives.collapseDirective), children: props.children });
13
+ }
16
14
  exports.Collapse = Collapse;
17
15
  exports.export_createCollapse = export_createCollapse;
18
16
  exports.export_getCollapseDefaultConfig = export_getCollapseDefaultConfig;
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, PropsWithChildren, RefAttributes } from 'react';
1
+ import type { ForwardedRef, PropsWithChildren, Ref } from 'react';
2
2
  import type { AccordionApi, AccordionItemApi, AccordionItemContext, AccordionItemProps, AccordionProps } from './accordion.gen';
3
3
  /**
4
4
  * Renders the default slot structure for an accordion item.
@@ -11,7 +11,7 @@ export declare const AccordionItemDefaultSlotStructure: (slotContext: AccordionI
11
11
  * AccordionItem component is a part of the Accordion component suite.
12
12
  *
13
13
  * @param props - The properties for the AccordionItem component.
14
- * @param ref - The forwarded ref to the AccordionItemApi.
14
+ * @param props.ref - The forwarded ref to the AccordionItemApi.
15
15
  *
16
16
  * @returns The rendered AccordionItem component.
17
17
  * @remarks
@@ -26,7 +26,9 @@ export declare const AccordionItemDefaultSlotStructure: (slotContext: AccordionI
26
26
  * @see {@link useWidgetWithConfig}
27
27
  * @see {@link useDirectives}
28
28
  */
29
- export declare const AccordionItem: ForwardRefExoticComponent<Partial<AccordionItemProps> & RefAttributes<AccordionItemApi>>;
29
+ export declare function AccordionItem(props: Partial<AccordionItemProps> & {
30
+ ref?: Ref<AccordionItemApi>;
31
+ }): import("react/jsx-runtime").JSX.Element;
30
32
  /**
31
33
  * Accordion component that provides a collapsible content container.
32
34
  *
@@ -35,9 +37,11 @@ export declare const AccordionItem: ForwardRefExoticComponent<Partial<AccordionI
35
37
  * {@link https://react.dev/reference/react/useImperativeHandle | useImperativeHandle} to bind the widget API to the ref.
36
38
  *
37
39
  * @param props - The properties for the Accordion component.
38
- * @param ref - The ref to be forwarded to the Accordion API.
40
+ * @param props.ref - The ref to be forwarded to the Accordion API.
39
41
  *
40
42
  * @returns The rendered Accordion component.
41
43
  *
42
44
  */
43
- export declare const Accordion: ForwardRefExoticComponent<PropsWithChildren<Partial<AccordionProps>> & RefAttributes<AccordionApi>>;
45
+ export declare function Accordion(props: PropsWithChildren<Partial<AccordionProps>> & {
46
+ ref?: ForwardedRef<AccordionApi>;
47
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const accordion = require("../../accordion-01ch6GZW.cjs");
3
+ const accordion = require("../../accordion-QclyKh8E.cjs");
4
4
  exports.Accordion = accordion.Accordion;
5
5
  exports.AccordionItem = accordion.AccordionItem;
6
6
  exports.AccordionItemDefaultSlotStructure = accordion.AccordionItemDefaultSlotStructure;
@@ -1,4 +1,4 @@
1
- import { b, a, A, d, c, f, e } from "../../accordion-D3SZgVk6.js";
1
+ import { b, a, A, d, c, f, e } from "../../accordion-GX854ooE.js";
2
2
  export {
3
3
  b as Accordion,
4
4
  a as AccordionItem,
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, RefAttributes } from 'react';
1
+ import type { Ref } from 'react';
2
2
  import type { AlertApi, AlertContext, AlertProps } from './alert.gen';
3
3
  /**
4
4
  * Renders the default slot structure for an alert component.
@@ -14,8 +14,10 @@ export declare const AlertDefaultSlotStructure: (slotContext: AlertContext) => i
14
14
  * and the {@link https://react.dev/reference/react/useImperativeHandle | useImperativeHandle} hook to expose the widget's API via the ref.
15
15
  *
16
16
  * @param props - Partial properties of the AlertProps interface.
17
- * @param ref - Forwarded reference to the AlertApi.
17
+ * @param props.ref - Forwarded reference to the AlertApi.
18
18
  *
19
19
  * @returns A JSX element that conditionally renders the AlertElement based on the widget's hidden state.
20
20
  */
21
- export declare const Alert: ForwardRefExoticComponent<Partial<AlertProps> & RefAttributes<AlertApi>>;
21
+ export declare function Alert(props: Partial<AlertProps> & {
22
+ ref?: Ref<AlertApi>;
23
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const alert = require("../../alert-DGvp2r3W.cjs");
3
+ const alert = require("../../alert-BGVw_vsM.cjs");
4
4
  exports.Alert = alert.Alert;
5
5
  exports.AlertDefaultSlotStructure = alert.AlertDefaultSlotStructure;
6
6
  exports.createAlert = alert.export_createAlert;
@@ -1,4 +1,4 @@
1
- import { a, A, b, e } from "../../alert-CTTuh9t9.js";
1
+ import { a, A, b, e } from "../../alert-BM4ImSpO.js";
2
2
  export {
3
3
  a as Alert,
4
4
  A as AlertDefaultSlotStructure,
@@ -1,4 +1,4 @@
1
- import type { ForwardRefExoticComponent, PropsWithChildren, RefAttributes } from 'react';
1
+ import type { PropsWithChildren, Ref } from 'react';
2
2
  import type { CollapseApi, CollapseProps } from './collapse.gen';
3
3
  /**
4
4
  * Collapse component that provides a collapsible container.
@@ -8,8 +8,10 @@ import type { CollapseApi, CollapseProps } from './collapse.gen';
8
8
  *
9
9
  * @param props - The properties for the Collapse component.
10
10
  * @param props.children - The child elements to be rendered inside the collapsible container.
11
- * @param ref - A ref object to access the Collapse API.
11
+ * @param props.ref - A ref object to access the Collapse API.
12
12
  *
13
13
  * @returns A div element with transition directives applied, containing the child elements.
14
14
  */
15
- export declare const Collapse: ForwardRefExoticComponent<PropsWithChildren<Partial<CollapseProps>> & RefAttributes<CollapseApi>>;
15
+ export declare function Collapse(props: PropsWithChildren<Partial<CollapseProps>> & {
16
+ ref?: Ref<CollapseApi>;
17
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const collapse = require("../../collapse-Dodvr8dn.cjs");
3
+ const collapse = require("../../collapse-UMbDs6Gh.cjs");
4
4
  exports.Collapse = collapse.Collapse;
5
5
  exports.createCollapse = collapse.export_createCollapse;
6
6
  exports.getCollapseDefaultConfig = collapse.export_getCollapseDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { C, a, e } from "../../collapse-DNwn7xgF.js";
1
+ import { C, a, e } from "../../collapse-BOXBa8_8.js";
2
2
  export {
3
3
  C as Collapse,
4
4
  a as createCollapse,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const modal = require("../../modal-_OcXelvY.cjs");
3
+ const modal = require("../../modal-DQLOz7TE.cjs");
4
4
  exports.Modal = modal.Modal;
5
5
  exports.ModalDefaultSlotHeader = modal.ModalDefaultSlotHeader;
6
6
  exports.ModalDefaultSlotStructure = modal.ModalDefaultSlotStructure;
@@ -1,4 +1,4 @@
1
- import { b, M, a, c, e, f, d, o } from "../../modal-DuCmvYiX.js";
1
+ import { b, M, a, c, e, f, d, o } from "../../modal-apFubipB.js";
2
2
  export {
3
3
  b as Modal,
4
4
  M as ModalDefaultSlotHeader,
@@ -1,4 +1,4 @@
1
- import type { RefAttributes } from 'react';
1
+ import type { Ref } from 'react';
2
2
  import type { ModalApi, ModalContext, ModalProps } from './modal.gen';
3
3
  /**
4
4
  * A default header component for the modal that displays a title and an optional close button.
@@ -17,16 +17,18 @@ export declare const ModalDefaultSlotHeader: <Data>(slotContext: ModalContext<Da
17
17
  */
18
18
  export declare const ModalDefaultSlotStructure: <Data>(slotContext: ModalContext<Data>) => import("react/jsx-runtime").JSX.Element;
19
19
  /**
20
- * A Modal component that uses a forwardRef to expose its API.
20
+ * A Modal component
21
21
  *
22
22
  * @template Data - The type of data that the modal will handle.
23
23
  *
24
24
  * @param props - The properties for the Modal component.
25
- * @param ref - A ref to access the Modal API.
25
+ * @param props.ref - A ref to access the Modal API.
26
26
  *
27
27
  * @returns The rendered Modal component.
28
28
  */
29
- export declare const Modal: <Data>(props: Partial<ModalProps<Data>> & RefAttributes<ModalApi<Data>>) => JSX.Element;
29
+ export declare function Modal<Data>(props: Partial<ModalProps<Data>> & {
30
+ ref?: Ref<ModalApi<Data>>;
31
+ }): import("react/jsx-runtime").JSX.Element;
30
32
  /**
31
33
  * Opens a modal dialog with the specified options.
32
34
  *
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pagination = require("../../pagination-b4pKj3Kx.cjs");
3
+ const pagination = require("../../pagination-Bq4Hvm1j.cjs");
4
4
  exports.NavButton = pagination.NavButton;
5
5
  exports.PageItem = pagination.PageItem;
6
6
  exports.Pagination = pagination.Pagination;
@@ -1,4 +1,4 @@
1
- import { N, P, c, a, b, d, e } from "../../pagination-5jlJWfFj.js";
1
+ import { N, P, c, a, b, d, e } from "../../pagination-B1Ho_-r4.js";
2
2
  export {
3
3
  N as NavButton,
4
4
  P as PageItem,
@@ -1,4 +1,5 @@
1
- import type { PaginationContext, PaginationProps } from './pagination.gen';
1
+ import type { PaginationApi, PaginationContext, PaginationProps } from './pagination.gen';
2
+ import { type Ref } from 'react';
2
3
  /**
3
4
  * Renders the default slot pages for the pagination component.
4
5
  *
@@ -31,6 +32,9 @@ export declare const PaginationDefaultSlotStructure: (slotContext: PaginationCon
31
32
  * It uses the {@link useWidgetWithConfig} hook to create a pagination widget with the provided props.
32
33
  *
33
34
  * @param props - The properties for the Pagination component.
35
+ * @param props.ref - Forwarded reference to the PaginationApi.
34
36
  * @returns The rendered pagination navigation element.
35
37
  */
36
- export declare function Pagination(props: Partial<PaginationProps>): import("react/jsx-runtime").JSX.Element;
38
+ export declare function Pagination(props: Partial<PaginationProps> & {
39
+ ref?: Ref<PaginationApi>;
40
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const progressbar = require("../../progressbar-JO1ey9mx.cjs");
3
+ const progressbar = require("../../progressbar-CnbqCXqH.cjs");
4
4
  exports.Progressbar = progressbar.Progressbar;
5
5
  exports.ProgressbarDefaultSlotStructure = progressbar.ProgressbarDefaultSlotStructure;
6
6
  exports.createProgressbar = progressbar.export_createProgressbar;
@@ -1,4 +1,4 @@
1
- import { a, P, b, e } from "../../progressbar-DKFR5epE.js";
1
+ import { a, P, b, e } from "../../progressbar-Ck20N_ee.js";
2
2
  export {
3
3
  a as Progressbar,
4
4
  P as ProgressbarDefaultSlotStructure,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const rating = require("../../rating-eI8T0zvS.cjs");
3
+ const rating = require("../../rating-BaZTCQi1.cjs");
4
4
  exports.Rating = rating.Rating;
5
5
  exports.createRating = rating.export_createRating;
6
6
  exports.getRatingDefaultConfig = rating.export_getRatingDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { R, a, e } from "../../rating-CTfRQGGu.js";
1
+ import { R, a, e } from "../../rating-DziC4Tsh.js";
2
2
  export {
3
3
  R as Rating,
4
4
  a as createRating,
@@ -1,4 +1,5 @@
1
- import type { RatingProps } from './rating.gen';
1
+ import { type Ref } from 'react';
2
+ import type { RatingApi, RatingProps } from './rating.gen';
2
3
  /**
3
4
  * Rating component that displays a series of stars based on the provided state.
4
5
  *
@@ -10,4 +11,6 @@ import type { RatingProps } from './rating.gen';
10
11
  * It applies directives to the container and individual stars for styling and behavior.
11
12
  *
12
13
  */
13
- export declare function Rating(props: Partial<RatingProps>): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Rating(props: Partial<RatingProps> & {
15
+ ref?: Ref<RatingApi>;
16
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const select = require("../../select-XHUAqTDw.cjs");
3
+ const select = require("../../select-DHNspXXB.cjs");
4
4
  exports.Select = select.Select;
5
5
  exports.createSelect = select.export_createSelect;
6
6
  exports.getSelectDefaultConfig = select.export_getSelectDefaultConfig;
@@ -1,4 +1,4 @@
1
- import { S, a, e } from "../../select-BriGqe3k.js";
1
+ import { S, a, e } from "../../select-C2jCf6jT.js";
2
2
  export {
3
3
  S as Select,
4
4
  a as createSelect,
@@ -1,4 +1,5 @@
1
- import type { SelectProps } from './select.gen';
1
+ import type { SelectApi, SelectProps } from './select.gen';
2
+ import { type Ref } from 'react';
2
3
  /**
3
4
  * A generic Select component that provides a customizable dropdown selection interface.
4
5
  *
@@ -10,4 +11,6 @@ import type { SelectProps } from './select.gen';
10
11
  * This component uses a widget context to manage its state and directives. It supports
11
12
  * custom badge labels and item labels through the widget configuration.
12
13
  */
13
- export declare function Select<Item>(props: Partial<SelectProps<Item>>): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Select<Item>(props: Partial<SelectProps<Item>> & {
15
+ ref?: Ref<SelectApi<Item>>;
16
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const slider = require("../../slider-BUQne5aJ.cjs");
3
+ const slider = require("../../slider-D0knY75x.cjs");
4
4
  exports.Slider = slider.Slider;
5
5
  exports.SliderDefaultSlotHandle = slider.SliderDefaultSlotHandle;
6
6
  exports.SliderDefaultSlotStructure = slider.SliderDefaultSlotStructure;
@@ -1,4 +1,4 @@
1
- import { b, S, a, c, e } from "../../slider--K7ri_0l.js";
1
+ import { b, S, a, c, e } from "../../slider-UQlY3PHn.js";
2
2
  export {
3
3
  b as Slider,
4
4
  S as SliderDefaultSlotHandle,
@@ -165,28 +165,35 @@ export interface SliderState {
165
165
  export interface SliderProps {
166
166
  /**
167
167
  * Return the value for the 'aria-label' attribute for the handle
168
- * @param value - value of the handle
169
168
  * @param sortedIndex - index of the handle in the sorted list
170
- * @param index - index of the handle in the original list
171
169
  *
172
170
  * @defaultValue
173
171
  * ```ts
174
- * (value: number) => '' + value
172
+ * () => 'Value'
175
173
  * ```
176
174
  */
177
- ariaLabelHandle: (value: number, sortedIndex: number, index: number) => string;
175
+ ariaLabel: (sortedIndex: number) => string;
176
+ /**
177
+ * Return the value for the 'aria-labelledBy' attribute for the handle
178
+ * @param sortedIndex - index of the handle in the sorted list
179
+ *
180
+ * @defaultValue
181
+ * ```ts
182
+ * () => ''
183
+ * ```
184
+ */
185
+ ariaLabelledBy: (sortedIndex: number) => string;
178
186
  /**
179
187
  * Return the value for the 'aria-valuetext' attribute for the handle
180
188
  * @param value - value of the handle
181
189
  * @param sortedIndex - index of the handle in the sorted list
182
- * @param index - index of the handle in the original list
183
190
  *
184
191
  * @defaultValue
185
192
  * ```ts
186
- * (value: number) => '' + value
193
+ * (value: number) => ''
187
194
  * ```
188
195
  */
189
- ariaValueText: (value: number, sortedIndex: number, index: number) => string;
196
+ ariaValueText: (value: number, sortedIndex: number) => string;
190
197
  /**
191
198
  * An event emitted when slider values are changed
192
199
  *
@@ -318,9 +325,13 @@ export interface ProgressDisplayOptions {
318
325
  */
319
326
  width: number;
320
327
  /**
321
- * Height of hte progress in %
328
+ * Height of the progress in %
322
329
  */
323
330
  height: number;
331
+ /**
332
+ * Id of the progress
333
+ */
334
+ id: number;
324
335
  }
325
336
  /**
326
337
  * Options for displaying a handle in a slider component.
@@ -350,11 +361,15 @@ export interface SliderHandle {
350
361
  /**
351
362
  * ariaLabel of the handle
352
363
  */
353
- ariaLabel: string;
364
+ ariaLabel: string | undefined;
354
365
  /**
355
366
  * ariaValueText of the handle
356
367
  */
357
- ariaValueText: string;
368
+ ariaValueText: string | undefined;
369
+ /**
370
+ * aria-labelledBy of the handle
371
+ */
372
+ ariaLabelledBy: string | undefined;
358
373
  }
359
374
  /**
360
375
  * Interface representing various directives used in the slider component.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const toast = require("../../toast-Vv1dxnuA.cjs");
3
+ const toast = require("../../toast-CkwIDuRg.cjs");
4
4
  exports.Toast = toast.Toast;
5
5
  exports.ToastDefaultSlotStructure = toast.ToastDefaultSlotStructure;
6
6
  exports.createToast = toast.export_createToast;
@@ -1,4 +1,4 @@
1
- import { a, T, b, e } from "../../toast-CS1mMdhx.js";
1
+ import { a, T, b, e } from "../../toast-BUHjCme7.js";
2
2
  export {
3
3
  a as Toast,
4
4
  T as ToastDefaultSlotStructure,