@agnos-ui/react-bootstrap 0.7.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 (32) hide show
  1. package/{alert-BWfpiNSz.cjs → alert-BGVw_vsM.cjs} +1 -1
  2. package/{alert-CWbr08rp.js → alert-BM4ImSpO.js} +1 -1
  3. package/components/alert/index.cjs +1 -1
  4. package/components/alert/index.js +1 -1
  5. package/components/modal/index.cjs +1 -1
  6. package/components/modal/index.js +1 -1
  7. package/components/pagination/index.cjs +1 -1
  8. package/components/pagination/index.js +1 -1
  9. package/components/progressbar/index.cjs +1 -1
  10. package/components/progressbar/index.js +1 -1
  11. package/components/select/index.cjs +1 -1
  12. package/components/select/index.js +1 -1
  13. package/components/slider/slider.gen.d.ts +20 -9
  14. package/components/toast/index.cjs +1 -1
  15. package/components/toast/index.js +1 -1
  16. package/components/tree/index.cjs +1 -1
  17. package/components/tree/index.js +1 -1
  18. package/index.cjs +7 -7
  19. package/index.js +7 -7
  20. package/{modal-C3hVG-lH.cjs → modal-DQLOz7TE.cjs} +2 -2
  21. package/{modal-DPKlan_9.js → modal-apFubipB.js} +2 -2
  22. package/package.json +4 -4
  23. package/{pagination-AH4hiASa.js → pagination-B1Ho_-r4.js} +4 -4
  24. package/{pagination-CYTSlunk.cjs → pagination-Bq4Hvm1j.cjs} +4 -4
  25. package/{progressbar-DKFR5epE.js → progressbar-Ck20N_ee.js} +2 -2
  26. package/{progressbar-JO1ey9mx.cjs → progressbar-CnbqCXqH.cjs} +2 -2
  27. package/{select-VhhSuDsJ.js → select-C2jCf6jT.js} +2 -2
  28. package/{select-D9kVpioc.cjs → select-DHNspXXB.cjs} +2 -2
  29. package/{toast-CDfXkRkD.js → toast-BUHjCme7.js} +1 -1
  30. package/{toast-BdNereP2.cjs → toast-CkwIDuRg.cjs} +1 -1
  31. package/{tree-CrXS0sFt.js → tree-BflF5hyD.js} +2 -2
  32. package/{tree-CCmlpEPq.cjs → tree-DT261j-0.cjs} +2 -2
@@ -18,7 +18,7 @@ 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
  ),
@@ -17,7 +17,7 @@ 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
  ),
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const alert = require("../../alert-BWfpiNSz.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-CWbr08rp.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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const modal = require("../../modal-C3hVG-lH.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-DPKlan_9.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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const pagination = require("../../pagination-CYTSlunk.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-AH4hiASa.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,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 select = require("../../select-D9kVpioc.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-VhhSuDsJ.js";
1
+ import { S, a, e } from "../../select-C2jCf6jT.js";
2
2
  export {
3
3
  S as Select,
4
4
  a as createSelect,
@@ -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'
173
+ * ```
174
+ */
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
+ * () => ''
175
183
  * ```
176
184
  */
177
- ariaLabelHandle: (value: number, sortedIndex: number, index: number) => string;
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
  *
@@ -354,11 +361,15 @@ export interface SliderHandle {
354
361
  /**
355
362
  * ariaLabel of the handle
356
363
  */
357
- ariaLabel: string;
364
+ ariaLabel: string | undefined;
358
365
  /**
359
366
  * ariaValueText of the handle
360
367
  */
361
- ariaValueText: string;
368
+ ariaValueText: string | undefined;
369
+ /**
370
+ * aria-labelledBy of the handle
371
+ */
372
+ ariaLabelledBy: string | undefined;
362
373
  }
363
374
  /**
364
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-BdNereP2.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-CDfXkRkD.js";
1
+ import { a, T, b, e } from "../../toast-BUHjCme7.js";
2
2
  export {
3
3
  a as Toast,
4
4
  T as ToastDefaultSlotStructure,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const tree = require("../../tree-CCmlpEPq.cjs");
3
+ const tree = require("../../tree-DT261j-0.cjs");
4
4
  exports.DefaultTreeSlotItem = tree.DefaultTreeSlotItem;
5
5
  exports.DefaultTreeSlotItemContent = tree.DefaultTreeSlotItemContent;
6
6
  exports.DefaultTreeSlotItemToggle = tree.DefaultTreeSlotItemToggle;
@@ -1,4 +1,4 @@
1
- import { b, a, D, c, T, d, e } from "../../tree-CrXS0sFt.js";
1
+ import { b, a, D, c, T, d, e } from "../../tree-BflF5hyD.js";
2
2
  export {
3
3
  b as DefaultTreeSlotItem,
4
4
  a as DefaultTreeSlotItemContent,
package/index.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const accordion = require("./accordion-QclyKh8E.cjs");
4
- const alert = require("./alert-BWfpiNSz.cjs");
4
+ const alert = require("./alert-BGVw_vsM.cjs");
5
5
  const collapse = require("./collapse-UMbDs6Gh.cjs");
6
- const modal = require("./modal-C3hVG-lH.cjs");
7
- const pagination = require("./pagination-CYTSlunk.cjs");
8
- const progressbar = require("./progressbar-JO1ey9mx.cjs");
6
+ const modal = require("./modal-DQLOz7TE.cjs");
7
+ const pagination = require("./pagination-Bq4Hvm1j.cjs");
8
+ const progressbar = require("./progressbar-CnbqCXqH.cjs");
9
9
  const rating = require("./rating-BaZTCQi1.cjs");
10
- const select = require("./select-D9kVpioc.cjs");
10
+ const select = require("./select-DHNspXXB.cjs");
11
11
  const slider = require("./slider-D0knY75x.cjs");
12
- const toast = require("./toast-BdNereP2.cjs");
13
- const tree = require("./tree-CCmlpEPq.cjs");
12
+ const toast = require("./toast-CkwIDuRg.cjs");
13
+ const tree = require("./tree-DT261j-0.cjs");
14
14
  const types = require("@agnos-ui/react-headless/types");
15
15
  const slot = require("@agnos-ui/react-headless/slot");
16
16
  const config = require("@agnos-ui/react-headless/config");
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { b, a, A, d, c, f, e } from "./accordion-GX854ooE.js";
2
- import { a as a2, A as A2, b as b2, e as e2 } from "./alert-CWbr08rp.js";
2
+ import { a as a2, A as A2, b as b2, e as e2 } from "./alert-BM4ImSpO.js";
3
3
  import { C, a as a3, e as e3 } from "./collapse-BOXBa8_8.js";
4
- import { b as b3, M, a as a4, c as c2, e as e4, f as f2, d as d2, o } from "./modal-DPKlan_9.js";
5
- import { N, P, c as c3, a as a5, b as b4, d as d3, e as e5 } from "./pagination-AH4hiASa.js";
6
- import { a as a6, P as P2, b as b5, e as e6 } from "./progressbar-DKFR5epE.js";
4
+ import { b as b3, M, a as a4, c as c2, e as e4, f as f2, d as d2, o } from "./modal-apFubipB.js";
5
+ import { N, P, c as c3, a as a5, b as b4, d as d3, e as e5 } from "./pagination-B1Ho_-r4.js";
6
+ import { a as a6, P as P2, b as b5, e as e6 } from "./progressbar-Ck20N_ee.js";
7
7
  import { R, a as a7, e as e7 } from "./rating-DziC4Tsh.js";
8
- import { S, a as a8, e as e8 } from "./select-VhhSuDsJ.js";
8
+ import { S, a as a8, e as e8 } from "./select-C2jCf6jT.js";
9
9
  import { b as b6, S as S2, a as a9, c as c4, e as e9 } from "./slider-UQlY3PHn.js";
10
- import { a as a10, T, b as b7, e as e10 } from "./toast-CDfXkRkD.js";
11
- import { b as b8, a as a11, D, c as c5, T as T2, d as d4, e as e11 } from "./tree-CrXS0sFt.js";
10
+ import { a as a10, T, b as b7, e as e10 } from "./toast-BUHjCme7.js";
11
+ import { b as b8, a as a11, D, c as c5, T as T2, d as d4, e as e11 } from "./tree-BflF5hyD.js";
12
12
  export * from "@agnos-ui/react-headless/types";
13
13
  export * from "@agnos-ui/react-headless/slot";
14
14
  export * from "@agnos-ui/react-headless/config";
@@ -3,7 +3,7 @@ const jsxRuntime = require("react/jsx-runtime");
3
3
  const slot = require("@agnos-ui/react-headless/slot");
4
4
  const directive = require("@agnos-ui/react-headless/utils/directive");
5
5
  const portal = require("@agnos-ui/react-headless/utils/portal");
6
- const classNames = require("classnames");
6
+ const clsx = require("clsx");
7
7
  const React = require("react");
8
8
  const ReactDOM = require("react-dom/client");
9
9
  const generated_config = require("./generated/config.cjs");
@@ -25,7 +25,7 @@ const ModalDefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxRuntime.js
25
25
  const BackdropElement = ({ directives }) => /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "modal-backdrop"], directives.backdropDirective) });
26
26
  const ModalElement = (slotContext) => {
27
27
  const { fullscreen } = slotContext.state;
28
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "modal d-block"], slotContext.directives.modalDirective), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames("modal-dialog", { "modal-fullscreen": fullscreen }), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "modal-content", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.structure, props: slotContext }) }) }) });
28
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "modal d-block"], slotContext.directives.modalDirective), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx("modal-dialog", { "modal-fullscreen": fullscreen }), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "modal-content", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.structure, props: slotContext }) }) }) });
29
29
  };
30
30
  function Modal(props) {
31
31
  const widgetContext = generated_config.useWidgetWithConfig(export_createModal, props, "modal", {
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { Slot } from "@agnos-ui/react-headless/slot";
3
3
  import { useDirective, useDirectives, classDirective } from "@agnos-ui/react-headless/utils/directive";
4
4
  import { Portal } from "@agnos-ui/react-headless/utils/portal";
5
- import classNames from "classnames";
5
+ import clsx from "clsx";
6
6
  import { useImperativeHandle } from "react";
7
7
  import ReactDOM from "react-dom/client";
8
8
  import { useWidgetWithConfig } from "./generated/config.js";
@@ -24,7 +24,7 @@ const ModalDefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxs(Fragment
24
24
  const BackdropElement = ({ directives }) => /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "modal-backdrop"], directives.backdropDirective) });
25
25
  const ModalElement = (slotContext) => {
26
26
  const { fullscreen } = slotContext.state;
27
- return /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "modal d-block"], slotContext.directives.modalDirective), children: /* @__PURE__ */ jsx("div", { className: classNames("modal-dialog", { "modal-fullscreen": fullscreen }), children: /* @__PURE__ */ jsx("div", { className: "modal-content", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.structure, props: slotContext }) }) }) });
27
+ return /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "modal d-block"], slotContext.directives.modalDirective), children: /* @__PURE__ */ jsx("div", { className: clsx("modal-dialog", { "modal-fullscreen": fullscreen }), children: /* @__PURE__ */ jsx("div", { className: "modal-content", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.structure, props: slotContext }) }) }) });
28
28
  };
29
29
  function Modal(props) {
30
30
  const widgetContext = useWidgetWithConfig(export_createModal, props, "modal", {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agnos-ui/react-bootstrap",
3
3
  "description": "Bootstrap-based component library for React.",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",
7
7
  "module": "./index.js",
@@ -49,9 +49,9 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@agnos-ui/core-bootstrap": "0.7.0",
53
- "@agnos-ui/react-headless": "0.7.0",
54
- "classnames": "^2.5.1"
52
+ "@agnos-ui/core-bootstrap": "0.7.1",
53
+ "@agnos-ui/react-headless": "0.7.1",
54
+ "clsx": "^2.1.1"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@amadeus-it-group/tansu": "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { Slot } from "@agnos-ui/react-headless/slot";
3
- import classNames from "classnames";
3
+ import clsx from "clsx";
4
4
  import { useWidgetWithConfig } from "./generated/config.js";
5
5
  import * as React from "react";
6
6
  import { useImperativeHandle } from "react";
@@ -8,7 +8,7 @@ import { useDirectives, classDirective } from "@agnos-ui/react-headless/utils/di
8
8
  import { getPaginationDefaultConfig, createPagination } from "@agnos-ui/core-bootstrap/components/pagination";
9
9
  const PageItem = React.forwardRef(
10
10
  ({ disabled, active, activeLabel, className, children, directive, page }, ref) => {
11
- return /* @__PURE__ */ jsx("li", { ref, className: classNames("page-item", { active, disabled }), children: /* @__PURE__ */ jsxs("a", { ...useDirectives([directive, { page }], [classDirective, classNames("page-link", className)]), children: [
11
+ return /* @__PURE__ */ jsx("li", { ref, className: clsx("page-item", { active, disabled }), children: /* @__PURE__ */ jsxs("a", { ...useDirectives([directive, { page }], [classDirective, ["page-link", className]]), children: [
12
12
  children,
13
13
  active && activeLabel && /* @__PURE__ */ jsx("span", { className: "visually-hidden", children: activeLabel })
14
14
  ] }) });
@@ -16,7 +16,7 @@ const PageItem = React.forwardRef(
16
16
  );
17
17
  PageItem.displayName = "PageItem";
18
18
  const NavButton = React.forwardRef(({ disabled, className, children, directive }, ref) => {
19
- return /* @__PURE__ */ jsx("li", { ref, className: classNames("page-item", { disabled }), children: /* @__PURE__ */ jsx("a", { ...useDirectives(directive, [classDirective, classNames("page-link", className)]), children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children }) }) });
19
+ return /* @__PURE__ */ jsx("li", { ref, className: clsx("page-item", { disabled }), children: /* @__PURE__ */ jsx("a", { ...useDirectives(directive, [classDirective, ["page-link", className]]), children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children }) }) });
20
20
  });
21
21
  NavButton.displayName = "NavButton";
22
22
  const export_getPaginationDefaultConfig = getPaginationDefaultConfig;
@@ -76,7 +76,7 @@ const PaginationDefaultSlotStructure = (slotContext) => {
76
76
  );
77
77
  }
78
78
  return /* @__PURE__ */ jsxs(Fragment, { children: [
79
- /* @__PURE__ */ jsxs("ul", { className: classNames("au-pagination", "pagination", { [`pagination-${state.size}`]: !!state.size }, state.className), children: [
79
+ /* @__PURE__ */ jsxs("ul", { className: clsx("au-pagination", "pagination", { [`pagination-${state.size}`]: !!state.size }, state.className), children: [
80
80
  ItemsBefore,
81
81
  /* @__PURE__ */ jsx(Slot, { slotContent: state.pagesDisplay, props: slotContext }),
82
82
  ItemsAfter
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const slot = require("@agnos-ui/react-headless/slot");
4
- const classNames = require("classnames");
4
+ const clsx = require("clsx");
5
5
  const generated_config = require("./generated/config.cjs");
6
6
  const React = require("react");
7
7
  const directive = require("@agnos-ui/react-headless/utils/directive");
@@ -25,7 +25,7 @@ function _interopNamespaceDefault(e) {
25
25
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
26
26
  const PageItem = React__namespace.forwardRef(
27
27
  ({ disabled, active, activeLabel, className, children, directive: directive$1, page }, ref) => {
28
- return /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: classNames("page-item", { active, disabled }), children: /* @__PURE__ */ jsxRuntime.jsxs("a", { ...directive.useDirectives([directive$1, { page }], [directive.classDirective, classNames("page-link", className)]), children: [
28
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: clsx("page-item", { active, disabled }), children: /* @__PURE__ */ jsxRuntime.jsxs("a", { ...directive.useDirectives([directive$1, { page }], [directive.classDirective, ["page-link", className]]), children: [
29
29
  children,
30
30
  active && activeLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "visually-hidden", children: activeLabel })
31
31
  ] }) });
@@ -33,7 +33,7 @@ const PageItem = React__namespace.forwardRef(
33
33
  );
34
34
  PageItem.displayName = "PageItem";
35
35
  const NavButton = React__namespace.forwardRef(({ disabled, className, children, directive: directive$1 }, ref) => {
36
- return /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: classNames("page-item", { disabled }), children: /* @__PURE__ */ jsxRuntime.jsx("a", { ...directive.useDirectives(directive$1, [directive.classDirective, classNames("page-link", className)]), children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children }) }) });
36
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: clsx("page-item", { disabled }), children: /* @__PURE__ */ jsxRuntime.jsx("a", { ...directive.useDirectives(directive$1, [directive.classDirective, ["page-link", className]]), children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children }) }) });
37
37
  });
38
38
  NavButton.displayName = "NavButton";
39
39
  const export_getPaginationDefaultConfig = pagination.getPaginationDefaultConfig;
@@ -93,7 +93,7 @@ const PaginationDefaultSlotStructure = (slotContext) => {
93
93
  );
94
94
  }
95
95
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
96
- /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: classNames("au-pagination", "pagination", { [`pagination-${state.size}`]: !!state.size }, state.className), children: [
96
+ /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: clsx("au-pagination", "pagination", { [`pagination-${state.size}`]: !!state.size }, state.className), children: [
97
97
  ItemsBefore,
98
98
  /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: state.pagesDisplay, props: slotContext }),
99
99
  ItemsAfter
@@ -1,14 +1,14 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Slot } from "@agnos-ui/react-headless/slot";
3
3
  import { useDirective } from "@agnos-ui/react-headless/utils/directive";
4
- import classNames from "classnames";
4
+ import clsx from "clsx";
5
5
  import { useWidgetWithConfig } from "./generated/config.js";
6
6
  import { getProgressbarDefaultConfig, createProgressbar } from "@agnos-ui/core-bootstrap/components/progressbar";
7
7
  const export_getProgressbarDefaultConfig = getProgressbarDefaultConfig;
8
8
  const export_createProgressbar = createProgressbar;
9
9
  const ProgressbarDefaultSlotStructure = (slotContext) => {
10
10
  const { striped, animated, type } = slotContext.state;
11
- const classes = classNames("progress-bar", { "progress-bar-striped": striped }, { "progress-bar-animated": animated }, { [`text-bg-${type}`]: !!type });
11
+ const classes = clsx("progress-bar", { "progress-bar-striped": striped }, { "progress-bar-animated": animated }, { [`text-bg-${type}`]: !!type });
12
12
  return /* @__PURE__ */ jsx("div", { className: "progress", style: { height: slotContext.state.height || void 0 }, children: /* @__PURE__ */ jsx("div", { className: classes, style: { width: `${slotContext.state.percentage}%` }, children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.children, props: slotContext }) }) });
13
13
  };
14
14
  const Progressbar = (props) => {
@@ -2,14 +2,14 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const slot = require("@agnos-ui/react-headless/slot");
4
4
  const directive = require("@agnos-ui/react-headless/utils/directive");
5
- const classNames = require("classnames");
5
+ const clsx = require("clsx");
6
6
  const generated_config = require("./generated/config.cjs");
7
7
  const progressbar = require("@agnos-ui/core-bootstrap/components/progressbar");
8
8
  const export_getProgressbarDefaultConfig = progressbar.getProgressbarDefaultConfig;
9
9
  const export_createProgressbar = progressbar.createProgressbar;
10
10
  const ProgressbarDefaultSlotStructure = (slotContext) => {
11
11
  const { striped, animated, type } = slotContext.state;
12
- const classes = classNames("progress-bar", { "progress-bar-striped": striped }, { "progress-bar-animated": animated }, { [`text-bg-${type}`]: !!type });
12
+ const classes = clsx("progress-bar", { "progress-bar-striped": striped }, { "progress-bar-animated": animated }, { [`text-bg-${type}`]: !!type });
13
13
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "progress", style: { height: slotContext.state.height || void 0 }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes, style: { width: `${slotContext.state.percentage}%` }, children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.children, props: slotContext }) }) });
14
14
  };
15
15
  const Progressbar = (props) => {
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { Slot } from "@agnos-ui/react-headless/slot";
3
3
  import { useDirectives, classDirective, useDirective } from "@agnos-ui/react-headless/utils/directive";
4
- import classNames from "classnames";
4
+ import clsx from "clsx";
5
5
  import { useWidgetWithConfig } from "./generated/config.js";
6
6
  import { getSelectDefaultConfig, createSelect } from "@agnos-ui/core-bootstrap/components/select";
7
7
  import { useImperativeHandle } from "react";
@@ -24,7 +24,7 @@ function Badges({ slotContext }) {
24
24
  return badges.length ? /* @__PURE__ */ jsx(Fragment, { children: badges }) : null;
25
25
  }
26
26
  function SelectItem({ itemContext, slotContext }) {
27
- const classname = classNames("dropdown-item", "position-relative", { "text-bg-primary": itemContext === slotContext.state.highlighted });
27
+ const classname = clsx("dropdown-item", "position-relative", { "text-bg-primary": itemContext === slotContext.state.highlighted });
28
28
  return /* @__PURE__ */ jsx("li", { className: classname, ...useDirective(slotContext.directives.itemAttributesDirective, itemContext), children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.itemLabel, props: { ...slotContext, itemContext } }) });
29
29
  }
30
30
  function Rows({ slotContext }) {
@@ -2,7 +2,7 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const slot = require("@agnos-ui/react-headless/slot");
4
4
  const directive = require("@agnos-ui/react-headless/utils/directive");
5
- const classNames = require("classnames");
5
+ const clsx = require("clsx");
6
6
  const generated_config = require("./generated/config.cjs");
7
7
  const select = require("@agnos-ui/core-bootstrap/components/select");
8
8
  const React = require("react");
@@ -25,7 +25,7 @@ function Badges({ slotContext }) {
25
25
  return badges.length ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: badges }) : null;
26
26
  }
27
27
  function SelectItem({ itemContext, slotContext }) {
28
- const classname = classNames("dropdown-item", "position-relative", { "text-bg-primary": itemContext === slotContext.state.highlighted });
28
+ const classname = clsx("dropdown-item", "position-relative", { "text-bg-primary": itemContext === slotContext.state.highlighted });
29
29
  return /* @__PURE__ */ jsxRuntime.jsx("li", { className: classname, ...directive.useDirective(slotContext.directives.itemAttributesDirective, itemContext), children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.itemLabel, props: { ...slotContext, itemContext } }) });
30
30
  }
31
31
  function Rows({ slotContext }) {
@@ -21,7 +21,7 @@ const ToastElement = (slotContext) => /* @__PURE__ */ jsx(
21
21
  "div",
22
22
  {
23
23
  ...useDirectives(
24
- [classDirective, `toast ${slotContext.state.dismissible ? "toast-dismissible" : ""} ${!slotContext.state.header ? "d-flex" : ""}`],
24
+ [classDirective, { "toast-dismissible": slotContext.state.dismissible, "d-flex": !slotContext.state.header }],
25
25
  slotContext.directives.transitionDirective,
26
26
  slotContext.directives.autoHideDirective,
27
27
  slotContext.directives.bodyDirective
@@ -22,7 +22,7 @@ const ToastElement = (slotContext) => /* @__PURE__ */ jsxRuntime.jsx(
22
22
  "div",
23
23
  {
24
24
  ...directive.useDirectives(
25
- [directive.classDirective, `toast ${slotContext.state.dismissible ? "toast-dismissible" : ""} ${!slotContext.state.header ? "d-flex" : ""}`],
25
+ [directive.classDirective, { "toast-dismissible": slotContext.state.dismissible, "d-flex": !slotContext.state.header }],
26
26
  slotContext.directives.transitionDirective,
27
27
  slotContext.directives.autoHideDirective,
28
28
  slotContext.directives.bodyDirective
@@ -3,7 +3,7 @@ import { Slot } from "@agnos-ui/react-headless/slot";
3
3
  import { useDirective } from "@agnos-ui/react-headless/utils/directive";
4
4
  import { useWidgetWithConfig } from "./generated/config.js";
5
5
  import { getTreeDefaultConfig, createTree } from "@agnos-ui/core-bootstrap/components/tree";
6
- import classNames from "classnames";
6
+ import clsx from "clsx";
7
7
  const export_getTreeDefaultConfig = getTreeDefaultConfig;
8
8
  const export_createTree = createTree;
9
9
  const ToggleButtonDisplay = ({ directive, item }) => {
@@ -29,7 +29,7 @@ const DefaultTreeSlotItem = (slotContext) => {
29
29
  };
30
30
  const DefaultTreeSlotStructure = (slotContext) => {
31
31
  const { state } = slotContext;
32
- return /* @__PURE__ */ jsx("ul", { role: "tree", className: classNames("au-tree", state.className), ...useDirective(slotContext.directives.navigationDirective), children: state.normalizedNodes.map((node, index) => /* @__PURE__ */ jsx(Slot, { slotContent: state.item, props: { item: node, ...slotContext } }, node.label + node.level + index)) });
32
+ return /* @__PURE__ */ jsx("ul", { role: "tree", className: clsx("au-tree", state.className), ...useDirective(slotContext.directives.navigationDirective), children: state.normalizedNodes.map((node, index) => /* @__PURE__ */ jsx(Slot, { slotContent: state.item, props: { item: node, ...slotContext } }, node.label + node.level + index)) });
33
33
  };
34
34
  const defaultConfig = {
35
35
  structure: DefaultTreeSlotStructure,
@@ -4,7 +4,7 @@ const slot = require("@agnos-ui/react-headless/slot");
4
4
  const directive = require("@agnos-ui/react-headless/utils/directive");
5
5
  const generated_config = require("./generated/config.cjs");
6
6
  const tree = require("@agnos-ui/core-bootstrap/components/tree");
7
- const classNames = require("classnames");
7
+ const clsx = require("clsx");
8
8
  const export_getTreeDefaultConfig = tree.getTreeDefaultConfig;
9
9
  const export_createTree = tree.createTree;
10
10
  const ToggleButtonDisplay = ({ directive: directive$1, item }) => {
@@ -30,7 +30,7 @@ const DefaultTreeSlotItem = (slotContext) => {
30
30
  };
31
31
  const DefaultTreeSlotStructure = (slotContext) => {
32
32
  const { state } = slotContext;
33
- return /* @__PURE__ */ jsxRuntime.jsx("ul", { role: "tree", className: classNames("au-tree", state.className), ...directive.useDirective(slotContext.directives.navigationDirective), children: state.normalizedNodes.map((node, index) => /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: state.item, props: { item: node, ...slotContext } }, node.label + node.level + index)) });
33
+ return /* @__PURE__ */ jsxRuntime.jsx("ul", { role: "tree", className: clsx("au-tree", state.className), ...directive.useDirective(slotContext.directives.navigationDirective), children: state.normalizedNodes.map((node, index) => /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: state.item, props: { item: node, ...slotContext } }, node.label + node.level + index)) });
34
34
  };
35
35
  const defaultConfig = {
36
36
  structure: DefaultTreeSlotStructure,