@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.
- package/{accordion-D3SZgVk6.js → accordion-GX854ooE.js} +18 -22
- package/{accordion-01ch6GZW.cjs → accordion-QclyKh8E.cjs} +17 -21
- package/{alert-DGvp2r3W.cjs → alert-BGVw_vsM.cjs} +4 -4
- package/{alert-CTTuh9t9.js → alert-BM4ImSpO.js} +5 -5
- package/{collapse-DNwn7xgF.js → collapse-BOXBa8_8.js} +6 -8
- package/{collapse-Dodvr8dn.cjs → collapse-UMbDs6Gh.cjs} +5 -7
- package/components/accordion/accordion.d.ts +9 -5
- package/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -1
- package/components/alert/alert.d.ts +5 -3
- package/components/alert/index.cjs +1 -1
- package/components/alert/index.js +1 -1
- package/components/collapse/collapse.d.ts +5 -3
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.js +1 -1
- package/components/modal/index.cjs +1 -1
- package/components/modal/index.js +1 -1
- package/components/modal/modal.d.ts +6 -4
- package/components/pagination/index.cjs +1 -1
- package/components/pagination/index.js +1 -1
- package/components/pagination/pagination.d.ts +6 -2
- package/components/progressbar/index.cjs +1 -1
- package/components/progressbar/index.js +1 -1
- package/components/rating/index.cjs +1 -1
- package/components/rating/index.js +1 -1
- package/components/rating/rating.d.ts +5 -2
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -1
- package/components/select/select.d.ts +5 -2
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -1
- package/components/slider/slider.gen.d.ts +25 -10
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -1
- package/components/toast/toast.d.ts +5 -3
- package/components/tree/index.cjs +1 -1
- package/components/tree/index.js +1 -1
- package/components/tree/tree.gen.d.ts +1 -1
- package/config.d.ts +2 -2
- package/generated/config.cjs +2 -2
- package/generated/config.js +3 -3
- package/index.cjs +12 -12
- package/index.js +14 -14
- package/{modal-_OcXelvY.cjs → modal-DQLOz7TE.cjs} +5 -5
- package/{modal-DuCmvYiX.js → modal-apFubipB.js} +6 -6
- package/package.json +6 -6
- package/{pagination-5jlJWfFj.js → pagination-B1Ho_-r4.js} +6 -4
- package/{pagination-b4pKj3Kx.cjs → pagination-Bq4Hvm1j.cjs} +5 -4
- package/{progressbar-DKFR5epE.js → progressbar-Ck20N_ee.js} +2 -2
- package/{progressbar-JO1ey9mx.cjs → progressbar-CnbqCXqH.cjs} +2 -2
- package/{rating-eI8T0zvS.cjs → rating-BaZTCQi1.cjs} +4 -3
- package/{rating-CTfRQGGu.js → rating-DziC4Tsh.js} +6 -5
- package/{select-BriGqe3k.js → select-C2jCf6jT.js} +5 -3
- package/{select-XHUAqTDw.cjs → select-DHNspXXB.cjs} +5 -3
- package/{slider-BUQne5aJ.cjs → slider-D0knY75x.cjs} +1 -1
- package/{slider--K7ri_0l.js → slider-UQlY3PHn.js} +1 -1
- package/{toast-CS1mMdhx.js → toast-BUHjCme7.js} +5 -5
- package/{toast-Vv1dxnuA.cjs → toast-CkwIDuRg.cjs} +4 -4
- package/{tree-CrXS0sFt.js → tree-BflF5hyD.js} +2 -2
- 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,
|
|
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
|
-
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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,
|