@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
@@ -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
@@ -30,14 +30,14 @@ const ToastElement = (slotContext) => /* @__PURE__ */ jsxRuntime.jsx(
30
30
  children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.structure, props: slotContext })
31
31
  }
32
32
  );
33
- const Toast = React.forwardRef(function Toast2(props, ref) {
33
+ function Toast(props) {
34
34
  const widgetContext = generated_config.useWidgetWithConfig(export_createToast, props, "toast", {
35
35
  structure: ToastDefaultSlotStructure,
36
36
  children: props.children
37
37
  });
38
- React.useImperativeHandle(ref, () => widgetContext.api, [widgetContext.api]);
38
+ React.useImperativeHandle(props.ref, () => widgetContext.api, [widgetContext.api]);
39
39
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: !widgetContext.state.hidden && /* @__PURE__ */ jsxRuntime.jsx(ToastElement, { ...widgetContext }) });
40
- });
40
+ }
41
41
  exports.Toast = Toast;
42
42
  exports.ToastDefaultSlotStructure = ToastDefaultSlotStructure;
43
43
  exports.export_createToast = export_createToast;
@@ -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,