@agnos-ui/react-bootstrap 0.3.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.
- package/README.md +15 -0
- package/accordion-BaQCaLLI.cjs +49 -0
- package/accordion-Bpx0new2.js +50 -0
- package/alert-DOBOL4nD.cjs +50 -0
- package/alert-DWq65Emo.js +51 -0
- package/components/accordion/accordion.d.ts +15 -0
- package/components/accordion/index.cjs +14 -0
- package/components/accordion/index.d.ts +1 -0
- package/components/accordion/index.js +7 -0
- package/components/alert/alert.d.ts +10 -0
- package/components/alert/index.cjs +13 -0
- package/components/alert/index.d.ts +1 -0
- package/components/alert/index.js +6 -0
- package/components/modal/index.cjs +14 -0
- package/components/modal/index.d.ts +1 -0
- package/components/modal/index.js +7 -0
- package/components/modal/modal.d.ts +11 -0
- package/components/pagination/index.cjs +17 -0
- package/components/pagination/index.d.ts +1 -0
- package/components/pagination/index.js +10 -0
- package/components/pagination/pageItem.d.ts +20 -0
- package/components/pagination/pagination.d.ts +12 -0
- package/components/progressbar/index.cjs +13 -0
- package/components/progressbar/index.d.ts +1 -0
- package/components/progressbar/index.js +6 -0
- package/components/progressbar/progressbar.d.ts +9 -0
- package/components/rating/index.cjs +13 -0
- package/components/rating/index.d.ts +1 -0
- package/components/rating/index.js +6 -0
- package/components/rating/rating.d.ts +7 -0
- package/components/select/index.cjs +13 -0
- package/components/select/index.d.ts +1 -0
- package/components/select/index.js +6 -0
- package/components/select/select.d.ts +9 -0
- package/components/slider/index.cjs +15 -0
- package/components/slider/index.d.ts +1 -0
- package/components/slider/index.js +8 -0
- package/components/slider/slider.d.ts +13 -0
- package/components/toast/index.cjs +13 -0
- package/components/toast/index.d.ts +1 -0
- package/components/toast/index.js +6 -0
- package/components/toast/toast.d.ts +10 -0
- package/config.d.ts +13 -0
- package/generated/config.cjs +16 -0
- package/generated/config.d.ts +1 -0
- package/generated/config.js +10 -0
- package/generated/index.d.ts +24 -0
- package/generated/services/extendWidget.cjs +10 -0
- package/generated/services/extendWidget.d.ts +1 -0
- package/generated/services/extendWidget.js +1 -0
- package/generated/services/floatingUI.cjs +10 -0
- package/generated/services/floatingUI.d.ts +1 -0
- package/generated/services/floatingUI.js +1 -0
- package/generated/services/focustrack.cjs +10 -0
- package/generated/services/focustrack.d.ts +1 -0
- package/generated/services/focustrack.js +1 -0
- package/generated/services/hash.cjs +10 -0
- package/generated/services/hash.d.ts +1 -0
- package/generated/services/hash.js +1 -0
- package/generated/services/intersection.cjs +10 -0
- package/generated/services/intersection.d.ts +1 -0
- package/generated/services/intersection.js +1 -0
- package/generated/services/matchMedia.cjs +10 -0
- package/generated/services/matchMedia.d.ts +1 -0
- package/generated/services/matchMedia.js +1 -0
- package/generated/services/navManager.cjs +10 -0
- package/generated/services/navManager.d.ts +1 -0
- package/generated/services/navManager.js +1 -0
- package/generated/services/portal.cjs +10 -0
- package/generated/services/portal.d.ts +1 -0
- package/generated/services/portal.js +1 -0
- package/generated/services/resizeObserver.cjs +10 -0
- package/generated/services/resizeObserver.d.ts +1 -0
- package/generated/services/resizeObserver.js +1 -0
- package/generated/services/siblingsInert.cjs +10 -0
- package/generated/services/siblingsInert.d.ts +1 -0
- package/generated/services/siblingsInert.js +1 -0
- package/generated/services/transitions/baseTransitions.cjs +10 -0
- package/generated/services/transitions/baseTransitions.d.ts +1 -0
- package/generated/services/transitions/baseTransitions.js +1 -0
- package/generated/services/transitions/bootstrap.cjs +10 -0
- package/generated/services/transitions/bootstrap.d.ts +1 -0
- package/generated/services/transitions/bootstrap.js +1 -0
- package/generated/services/transitions/collapse.cjs +10 -0
- package/generated/services/transitions/collapse.d.ts +1 -0
- package/generated/services/transitions/collapse.js +1 -0
- package/generated/services/transitions/cssTransitions.cjs +10 -0
- package/generated/services/transitions/cssTransitions.d.ts +1 -0
- package/generated/services/transitions/cssTransitions.js +1 -0
- package/generated/services/transitions/simpleClassTransition.cjs +10 -0
- package/generated/services/transitions/simpleClassTransition.d.ts +1 -0
- package/generated/services/transitions/simpleClassTransition.js +1 -0
- package/generated/slot.cjs +10 -0
- package/generated/slot.d.ts +1 -0
- package/generated/slot.js +1 -0
- package/generated/types.cjs +10 -0
- package/generated/types.d.ts +1 -0
- package/generated/types.js +1 -0
- package/generated/utils/directive.cjs +10 -0
- package/generated/utils/directive.d.ts +1 -0
- package/generated/utils/directive.js +1 -0
- package/generated/utils/portal.cjs +10 -0
- package/generated/utils/portal.d.ts +1 -0
- package/generated/utils/portal.js +1 -0
- package/generated/utils/stores.cjs +10 -0
- package/generated/utils/stores.d.ts +1 -0
- package/generated/utils/stores.js +1 -0
- package/generated/utils/widget.cjs +10 -0
- package/generated/utils/widget.d.ts +1 -0
- package/generated/utils/widget.js +1 -0
- package/generated/utils/writables.cjs +10 -0
- package/generated/utils/writables.d.ts +1 -0
- package/generated/utils/writables.js +1 -0
- package/index.cjs +298 -0
- package/index.d.ts +10 -0
- package/index.js +74 -0
- package/modal-2qAV4Hjl.cjs +59 -0
- package/modal-B6rJgzVm.js +60 -0
- package/package.json +85 -0
- package/pagination-CKUbq-OI.cjs +118 -0
- package/pagination-X2bugeX-.js +102 -0
- package/progressbar-D-yo9AHH.cjs +24 -0
- package/progressbar-D1-6Dzrf.js +25 -0
- package/rating-Cvad2Z2H.js +30 -0
- package/rating-D2Ajh4vg.cjs +29 -0
- package/select-B_Thv-qd.js +75 -0
- package/select-DHik5ocI.cjs +74 -0
- package/services/transitions/bootstrap.d.ts +1 -0
- package/slider-DLdA-y4u.js +59 -0
- package/slider-DUv6gRI9.cjs +58 -0
- package/toast-BUiyh5r_.js +45 -0
- package/toast-Dp_zjIff.cjs +44 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @agnos-ui/react-bootstrap
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@agnos-ui/react-bootstrap)
|
|
4
|
+
|
|
5
|
+
[Bootstrap](https://getbootstrap.com/)-based widget library for [React](https://react.dev/).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @agnos-ui/react-bootstrap
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Please check [our demo site](https://amadeusitgroup.github.io/AgnosUI/latest/) to see all the available widgets and how to use them.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const slot = require("@agnos-ui/react-headless/slot");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const generated_config = require("./generated/config.cjs");
|
|
6
|
+
const directive = require("@agnos-ui/react-headless/utils/directive");
|
|
7
|
+
const accordion = require("@agnos-ui/core-bootstrap/components/accordion");
|
|
8
|
+
const createAccordion = accordion.createAccordion;
|
|
9
|
+
const Header = (props) => {
|
|
10
|
+
const re = new RegExp("^h[1-6]$");
|
|
11
|
+
const Heading = re.test(props.headerTag) ? props.headerTag : "h2";
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Heading, { ...directive.useDirectives([directive.classDirective, "accordion-header"], props.directive), children: props.children });
|
|
13
|
+
};
|
|
14
|
+
const ItemContent = (slotContext) => /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "accordion-collapse"], slotContext.widget.directives.bodyContainerDirective), children: /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "accordion-body"], slotContext.widget.directives.bodyDirective), children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotItemBody, props: slotContext }) }) });
|
|
15
|
+
const AccordionDIContext = React.createContext({});
|
|
16
|
+
const DefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
17
|
+
/* @__PURE__ */ jsxRuntime.jsx(Header, { directive: slotContext.widget.directives.headerDirective, headerTag: slotContext.state.itemHeadingTag, children: /* @__PURE__ */ jsxRuntime.jsx("button", { ...directive.useDirectives([directive.classDirective, "accordion-button"], slotContext.widget.directives.buttonDirective), children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotItemHeader, props: slotContext }) }) }),
|
|
18
|
+
slotContext.state.shouldBeInDOM && /* @__PURE__ */ jsxRuntime.jsx(ItemContent, { ...slotContext })
|
|
19
|
+
] });
|
|
20
|
+
const defaultConfig = {
|
|
21
|
+
slotItemStructure: DefaultSlotStructure
|
|
22
|
+
};
|
|
23
|
+
const AccordionItem = React.forwardRef(
|
|
24
|
+
function AccordionItem2(props, ref) {
|
|
25
|
+
const { registerItem } = React.useContext(AccordionDIContext);
|
|
26
|
+
const [state, widget] = generated_config.useWidgetWithConfig(registerItem, props, null, {
|
|
27
|
+
...defaultConfig
|
|
28
|
+
});
|
|
29
|
+
const slotContext = {
|
|
30
|
+
state,
|
|
31
|
+
widget
|
|
32
|
+
};
|
|
33
|
+
React.useImperativeHandle(ref, () => widget.api, []);
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
widget.api.initDone();
|
|
36
|
+
}, []);
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, `accordion-item ${state.itemClass}`], widget.directives.accordionItemDirective), children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: state.slotItemStructure, props: slotContext }) });
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
const Accordion = React.forwardRef(
|
|
41
|
+
function Accordion2(props, ref) {
|
|
42
|
+
const widget = generated_config.useWidgetWithConfig(createAccordion, props, "accordion")[1];
|
|
43
|
+
React.useImperativeHandle(ref, () => widget.api, []);
|
|
44
|
+
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 }) });
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
exports.Accordion = Accordion;
|
|
48
|
+
exports.AccordionItem = AccordionItem;
|
|
49
|
+
exports.createAccordion = createAccordion;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from "@agnos-ui/react-headless/slot";
|
|
3
|
+
import { createContext, forwardRef, useContext, useImperativeHandle, useEffect } from "react";
|
|
4
|
+
import { useWidgetWithConfig } from "./generated/config.js";
|
|
5
|
+
import { useDirectives, classDirective } from "@agnos-ui/react-headless/utils/directive";
|
|
6
|
+
import { createAccordion as createAccordion$1 } from "@agnos-ui/core-bootstrap/components/accordion";
|
|
7
|
+
const createAccordion = createAccordion$1;
|
|
8
|
+
const Header = (props) => {
|
|
9
|
+
const re = new RegExp("^h[1-6]$");
|
|
10
|
+
const Heading = re.test(props.headerTag) ? props.headerTag : "h2";
|
|
11
|
+
return /* @__PURE__ */ jsx(Heading, { ...useDirectives([classDirective, "accordion-header"], props.directive), children: props.children });
|
|
12
|
+
};
|
|
13
|
+
const ItemContent = (slotContext) => /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "accordion-collapse"], slotContext.widget.directives.bodyContainerDirective), children: /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "accordion-body"], slotContext.widget.directives.bodyDirective), children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotItemBody, props: slotContext }) }) });
|
|
14
|
+
const AccordionDIContext = createContext({});
|
|
15
|
+
const DefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsx(Header, { directive: slotContext.widget.directives.headerDirective, headerTag: slotContext.state.itemHeadingTag, children: /* @__PURE__ */ jsx("button", { ...useDirectives([classDirective, "accordion-button"], slotContext.widget.directives.buttonDirective), children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotItemHeader, props: slotContext }) }) }),
|
|
17
|
+
slotContext.state.shouldBeInDOM && /* @__PURE__ */ jsx(ItemContent, { ...slotContext })
|
|
18
|
+
] });
|
|
19
|
+
const defaultConfig = {
|
|
20
|
+
slotItemStructure: DefaultSlotStructure
|
|
21
|
+
};
|
|
22
|
+
const AccordionItem = forwardRef(
|
|
23
|
+
function AccordionItem2(props, ref) {
|
|
24
|
+
const { registerItem } = useContext(AccordionDIContext);
|
|
25
|
+
const [state, widget] = useWidgetWithConfig(registerItem, props, null, {
|
|
26
|
+
...defaultConfig
|
|
27
|
+
});
|
|
28
|
+
const slotContext = {
|
|
29
|
+
state,
|
|
30
|
+
widget
|
|
31
|
+
};
|
|
32
|
+
useImperativeHandle(ref, () => widget.api, []);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
widget.api.initDone();
|
|
35
|
+
}, []);
|
|
36
|
+
return /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, `accordion-item ${state.itemClass}`], widget.directives.accordionItemDirective), children: /* @__PURE__ */ jsx(Slot, { slotContent: state.slotItemStructure, props: slotContext }) });
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
const Accordion = forwardRef(
|
|
40
|
+
function Accordion2(props, ref) {
|
|
41
|
+
const widget = useWidgetWithConfig(createAccordion, props, "accordion")[1];
|
|
42
|
+
useImperativeHandle(ref, () => widget.api, []);
|
|
43
|
+
return /* @__PURE__ */ jsx(AccordionDIContext.Provider, { value: widget.api, children: /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "accordion"], widget.directives.accordionDirective), children: props.children }) });
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
export {
|
|
47
|
+
AccordionItem as A,
|
|
48
|
+
Accordion as a,
|
|
49
|
+
createAccordion as c
|
|
50
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const slot = require("@agnos-ui/react-headless/slot");
|
|
4
|
+
const generated_config = require("./generated/config.cjs");
|
|
5
|
+
const directive = require("@agnos-ui/react-headless/utils/directive");
|
|
6
|
+
const React = require("react");
|
|
7
|
+
const alert = require("@agnos-ui/core-bootstrap/components/alert");
|
|
8
|
+
const createAlert = alert.createAlert;
|
|
9
|
+
const DefaultSlotStructure = (slotContext) => {
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "alert-body", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotDefault, props: slotContext }) }),
|
|
12
|
+
slotContext.state.dismissible && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
|
+
"button",
|
|
14
|
+
{
|
|
15
|
+
type: "button",
|
|
16
|
+
className: "btn-close",
|
|
17
|
+
onClick: slotContext.widget.api.close,
|
|
18
|
+
"aria-label": slotContext.state.ariaCloseButtonLabel
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
] });
|
|
22
|
+
};
|
|
23
|
+
const defaultConfig = {
|
|
24
|
+
slotStructure: DefaultSlotStructure
|
|
25
|
+
};
|
|
26
|
+
const AlertElement = (slotContext) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
role: "alert",
|
|
30
|
+
...directive.useDirectives(
|
|
31
|
+
[
|
|
32
|
+
directive.classDirective,
|
|
33
|
+
`au-alert alert alert-${slotContext.state.type} ${slotContext.state.className} ${slotContext.state.dismissible ? "alert-dismissible" : ""}`
|
|
34
|
+
],
|
|
35
|
+
slotContext.widget.directives.transitionDirective
|
|
36
|
+
),
|
|
37
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotStructure, props: slotContext })
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
const Alert = React.forwardRef(function Alert2(props, ref) {
|
|
41
|
+
const [state, widget] = generated_config.useWidgetWithConfig(createAlert, props, "alert", { ...defaultConfig, slotDefault: props.children });
|
|
42
|
+
React.useImperativeHandle(ref, () => widget.api, []);
|
|
43
|
+
const slotContext = {
|
|
44
|
+
state,
|
|
45
|
+
widget
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: !state.hidden && /* @__PURE__ */ jsxRuntime.jsx(AlertElement, { ...slotContext }) });
|
|
48
|
+
});
|
|
49
|
+
exports.Alert = Alert;
|
|
50
|
+
exports.createAlert = createAlert;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from "@agnos-ui/react-headless/slot";
|
|
3
|
+
import { useWidgetWithConfig } from "./generated/config.js";
|
|
4
|
+
import { useDirectives, classDirective } from "@agnos-ui/react-headless/utils/directive";
|
|
5
|
+
import { forwardRef, useImperativeHandle } from "react";
|
|
6
|
+
import { createAlert as createAlert$1 } from "@agnos-ui/core-bootstrap/components/alert";
|
|
7
|
+
const createAlert = createAlert$1;
|
|
8
|
+
const DefaultSlotStructure = (slotContext) => {
|
|
9
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10
|
+
/* @__PURE__ */ jsx("div", { className: "alert-body", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotDefault, props: slotContext }) }),
|
|
11
|
+
slotContext.state.dismissible && /* @__PURE__ */ jsx(
|
|
12
|
+
"button",
|
|
13
|
+
{
|
|
14
|
+
type: "button",
|
|
15
|
+
className: "btn-close",
|
|
16
|
+
onClick: slotContext.widget.api.close,
|
|
17
|
+
"aria-label": slotContext.state.ariaCloseButtonLabel
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
] });
|
|
21
|
+
};
|
|
22
|
+
const defaultConfig = {
|
|
23
|
+
slotStructure: DefaultSlotStructure
|
|
24
|
+
};
|
|
25
|
+
const AlertElement = (slotContext) => /* @__PURE__ */ jsx(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
role: "alert",
|
|
29
|
+
...useDirectives(
|
|
30
|
+
[
|
|
31
|
+
classDirective,
|
|
32
|
+
`au-alert alert alert-${slotContext.state.type} ${slotContext.state.className} ${slotContext.state.dismissible ? "alert-dismissible" : ""}`
|
|
33
|
+
],
|
|
34
|
+
slotContext.widget.directives.transitionDirective
|
|
35
|
+
),
|
|
36
|
+
children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotStructure, props: slotContext })
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
const Alert = forwardRef(function Alert2(props, ref) {
|
|
40
|
+
const [state, widget] = useWidgetWithConfig(createAlert, props, "alert", { ...defaultConfig, slotDefault: props.children });
|
|
41
|
+
useImperativeHandle(ref, () => widget.api, []);
|
|
42
|
+
const slotContext = {
|
|
43
|
+
state,
|
|
44
|
+
widget
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ jsx(Fragment, { children: !state.hidden && /* @__PURE__ */ jsx(AlertElement, { ...slotContext }) });
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
Alert as A,
|
|
50
|
+
createAlert as c
|
|
51
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, PropsWithChildren, RefAttributes } from 'react';
|
|
2
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
3
|
+
import type { AccordionItemApi } from '@agnos-ui/core-bootstrap/components/accordion';
|
|
4
|
+
export * from '@agnos-ui/core-bootstrap/components/accordion';
|
|
5
|
+
export type AccordionWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/accordion').AccordionWidget>;
|
|
6
|
+
export type AccordionProps = WidgetProps<AccordionWidget>;
|
|
7
|
+
export type AccordionState = WidgetState<AccordionWidget>;
|
|
8
|
+
export type AccordionApi = AccordionWidget['api'];
|
|
9
|
+
export type AccordionItemWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/accordion').AccordionItemWidget>;
|
|
10
|
+
export type AccordionItemProps = WidgetProps<AccordionItemWidget>;
|
|
11
|
+
export type AccordionItemState = WidgetState<AccordionItemWidget>;
|
|
12
|
+
export type AccordionItemContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/accordion').AccordionItemContext>;
|
|
13
|
+
export declare const createAccordion: WidgetFactory<AccordionWidget>;
|
|
14
|
+
export declare const AccordionItem: ForwardRefExoticComponent<PropsWithChildren<Partial<AccordionItemProps>> & RefAttributes<AccordionItemApi>>;
|
|
15
|
+
export declare const Accordion: ForwardRefExoticComponent<PropsWithChildren<Partial<AccordionProps>> & RefAttributes<AccordionApi>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const accordion = require("../../accordion-BaQCaLLI.cjs");
|
|
4
|
+
const accordion$1 = require("@agnos-ui/core-bootstrap/components/accordion");
|
|
5
|
+
exports.Accordion = accordion.Accordion;
|
|
6
|
+
exports.AccordionItem = accordion.AccordionItem;
|
|
7
|
+
exports.createAccordion = accordion.createAccordion;
|
|
8
|
+
Object.keys(accordion$1).forEach((k) => {
|
|
9
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
10
|
+
Object.defineProperty(exports, k, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: () => accordion$1[k]
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './accordion';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PropsWithChildren, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
import type { AlertApi } from '@agnos-ui/core-bootstrap/components/alert';
|
|
3
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
4
|
+
export * from '@agnos-ui/core-bootstrap/components/alert';
|
|
5
|
+
export type AlertWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/alert').AlertWidget>;
|
|
6
|
+
export type AlertProps = WidgetProps<AlertWidget>;
|
|
7
|
+
export type AlertState = WidgetState<AlertWidget>;
|
|
8
|
+
export type AlertContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/alert').AlertContext>;
|
|
9
|
+
export declare const createAlert: WidgetFactory<AlertWidget>;
|
|
10
|
+
export declare const Alert: ForwardRefExoticComponent<PropsWithChildren<Partial<AlertProps>> & RefAttributes<AlertApi>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const alert = require("../../alert-DOBOL4nD.cjs");
|
|
4
|
+
const alert$1 = require("@agnos-ui/core-bootstrap/components/alert");
|
|
5
|
+
exports.Alert = alert.Alert;
|
|
6
|
+
exports.createAlert = alert.createAlert;
|
|
7
|
+
Object.keys(alert$1).forEach((k) => {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
+
Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => alert$1[k]
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './alert';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const modal = require("../../modal-2qAV4Hjl.cjs");
|
|
4
|
+
const modal$1 = require("@agnos-ui/core-bootstrap/components/modal");
|
|
5
|
+
exports.Modal = modal.Modal;
|
|
6
|
+
exports.createModal = modal.createModal;
|
|
7
|
+
exports.openModal = modal.openModal;
|
|
8
|
+
Object.keys(modal$1).forEach((k) => {
|
|
9
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
10
|
+
Object.defineProperty(exports, k, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: () => modal$1[k]
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modal';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, PropsConfig, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
2
|
+
import type { PropsWithChildren, RefAttributes } from 'react';
|
|
3
|
+
import type { ModalApi } from '@agnos-ui/core-bootstrap/components/modal';
|
|
4
|
+
export * from '@agnos-ui/core-bootstrap/components/modal';
|
|
5
|
+
export type ModalWidget<Data> = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/modal').ModalWidget<Data>>;
|
|
6
|
+
export type ModalProps<Data> = WidgetProps<ModalWidget<Data>>;
|
|
7
|
+
export type ModalState<Data> = WidgetState<ModalWidget<Data>>;
|
|
8
|
+
export type ModalContext<Data> = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/modal').ModalContext<Data>>;
|
|
9
|
+
export declare const createModal: <Data>(propsConfig?: PropsConfig<ModalProps<Data>>) => ModalWidget<Data>;
|
|
10
|
+
export declare const Modal: <Data>(props: PropsWithChildren<Partial<ModalProps<Data>>> & RefAttributes<ModalApi<Data>>) => JSX.Element;
|
|
11
|
+
export declare function openModal<Data>(options: Partial<ModalProps<Data>>): Promise<any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const pagination = require("../../pagination-CKUbq-OI.cjs");
|
|
4
|
+
const pagination$1 = require("@agnos-ui/core-bootstrap/components/pagination");
|
|
5
|
+
exports.DefaultPages = pagination.DefaultPages;
|
|
6
|
+
exports.DefaultStructure = pagination.DefaultStructure;
|
|
7
|
+
exports.NavButton = pagination.NavButton;
|
|
8
|
+
exports.PageItem = pagination.PageItem;
|
|
9
|
+
exports.Pagination = pagination.Pagination;
|
|
10
|
+
exports.createPagination = pagination.createPagination;
|
|
11
|
+
Object.keys(pagination$1).forEach((k) => {
|
|
12
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
13
|
+
Object.defineProperty(exports, k, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => pagination$1[k]
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pagination';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { D, a, N, b, P, c } from "../../pagination-X2bugeX-.js";
|
|
2
|
+
export * from "@agnos-ui/core-bootstrap/components/pagination";
|
|
3
|
+
export {
|
|
4
|
+
D as DefaultPages,
|
|
5
|
+
a as DefaultStructure,
|
|
6
|
+
N as NavButton,
|
|
7
|
+
b as PageItem,
|
|
8
|
+
P as Pagination,
|
|
9
|
+
c as createPagination
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type Directive } from '@agnos-ui/react-headless/types';
|
|
3
|
+
export interface PageItemProps extends React.HTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
activeLabel?: string;
|
|
7
|
+
directive: Directive<{
|
|
8
|
+
page: number;
|
|
9
|
+
}>;
|
|
10
|
+
page: number;
|
|
11
|
+
}
|
|
12
|
+
export interface NavItemProps extends React.HTMLAttributes<HTMLAnchorElement> {
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
activeLabel?: string;
|
|
16
|
+
directive: Directive;
|
|
17
|
+
}
|
|
18
|
+
export declare const PageItem: React.ForwardRefExoticComponent<PageItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
19
|
+
export default PageItem;
|
|
20
|
+
export declare const NavButton: React.ForwardRefExoticComponent<NavItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
2
|
+
export * from '@agnos-ui/core-bootstrap/components/pagination';
|
|
3
|
+
export type PaginationWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/pagination').PaginationWidget>;
|
|
4
|
+
export type PaginationProps = WidgetProps<PaginationWidget>;
|
|
5
|
+
export type PaginationState = WidgetState<PaginationWidget>;
|
|
6
|
+
export type PaginationContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/pagination').PaginationContext>;
|
|
7
|
+
export type PaginationNumberContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/pagination').PaginationNumberContext>;
|
|
8
|
+
export declare const createPagination: WidgetFactory<PaginationWidget>;
|
|
9
|
+
export * from './pageItem';
|
|
10
|
+
export declare function DefaultPages(slotContext: PaginationContext): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export declare function DefaultStructure(slotContext: PaginationContext): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function Pagination(props: Partial<PaginationProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const progressbar = require("../../progressbar-D-yo9AHH.cjs");
|
|
4
|
+
const progressbar$1 = require("@agnos-ui/core-bootstrap/components/progressbar");
|
|
5
|
+
exports.Progressbar = progressbar.Progressbar;
|
|
6
|
+
exports.createProgressbar = progressbar.createProgressbar;
|
|
7
|
+
Object.keys(progressbar$1).forEach((k) => {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
+
Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => progressbar$1[k]
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './progressbar';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
export * from '@agnos-ui/core-bootstrap/components/progressbar';
|
|
3
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
4
|
+
export type ProgressbarWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/progressbar').ProgressbarWidget>;
|
|
5
|
+
export type ProgressbarProps = WidgetProps<ProgressbarWidget>;
|
|
6
|
+
export type ProgressbarState = WidgetState<ProgressbarWidget>;
|
|
7
|
+
export type ProgressbarContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/progressbar').ProgressbarContext>;
|
|
8
|
+
export declare const createProgressbar: WidgetFactory<ProgressbarWidget>;
|
|
9
|
+
export declare const Progressbar: (props: PropsWithChildren<Partial<ProgressbarProps>>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const rating = require("../../rating-D2Ajh4vg.cjs");
|
|
4
|
+
const rating$1 = require("@agnos-ui/react-headless/components/rating");
|
|
5
|
+
exports.Rating = rating.Rating;
|
|
6
|
+
exports.createRating = rating.createRating;
|
|
7
|
+
Object.keys(rating$1).forEach((k) => {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
+
Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => rating$1[k]
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './rating';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
2
|
+
export * from '@agnos-ui/react-headless/components/rating';
|
|
3
|
+
export type RatingWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/rating').RatingWidget>;
|
|
4
|
+
export type RatingProps = WidgetProps<RatingWidget>;
|
|
5
|
+
export type RatingState = WidgetState<RatingWidget>;
|
|
6
|
+
export declare const createRating: WidgetFactory<RatingWidget>;
|
|
7
|
+
export declare function Rating(props: Partial<RatingProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const select = require("../../select-DHik5ocI.cjs");
|
|
4
|
+
const select$1 = require("@agnos-ui/core-bootstrap/components/select");
|
|
5
|
+
exports.Select = select.Select;
|
|
6
|
+
exports.createSelect = select.createSelect;
|
|
7
|
+
Object.keys(select$1).forEach((k) => {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
+
Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => select$1[k]
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, PropsConfig, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
2
|
+
export * from '@agnos-ui/core-bootstrap/components/select';
|
|
3
|
+
export type SelectWidget<Item> = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/select').SelectWidget<Item>>;
|
|
4
|
+
export type SelectProps<Item> = WidgetProps<SelectWidget<Item>>;
|
|
5
|
+
export type SelectState<Item> = WidgetState<SelectWidget<Item>>;
|
|
6
|
+
export type SelectContext<Item> = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/select').SelectContext<Item>>;
|
|
7
|
+
export type SelectItemContext<Item> = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/select').SelectItemContext<Item>>;
|
|
8
|
+
export declare const createSelect: <Item>(propsConfig?: PropsConfig<SelectProps<Item>>) => SelectWidget<Item>;
|
|
9
|
+
export declare function Select<Item>(props: Partial<SelectProps<Item>>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const slider = require("../../slider-DUv6gRI9.cjs");
|
|
4
|
+
const slider$1 = require("@agnos-ui/core-bootstrap/components/slider");
|
|
5
|
+
exports.DefaultSlotHandle = slider.DefaultSlotHandle;
|
|
6
|
+
exports.DefaultSlotStructure = slider.DefaultSlotStructure;
|
|
7
|
+
exports.Slider = slider.Slider;
|
|
8
|
+
exports.createSlider = slider.createSlider;
|
|
9
|
+
Object.keys(slider$1).forEach((k) => {
|
|
10
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
11
|
+
Object.defineProperty(exports, k, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: () => slider$1[k]
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './slider';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
export * from '@agnos-ui/core-bootstrap/components/slider';
|
|
4
|
+
export type SliderWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/slider').SliderWidget>;
|
|
5
|
+
export type SliderProps = WidgetProps<SliderWidget>;
|
|
6
|
+
export type SliderState = WidgetState<SliderWidget>;
|
|
7
|
+
export type SliderContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/slider').SliderContext>;
|
|
8
|
+
export type SliderSlotLabelContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/slider').SliderSlotLabelContext>;
|
|
9
|
+
export type SliderSlotHandleContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/slider').SliderSlotHandleContext>;
|
|
10
|
+
export declare const createSlider: WidgetFactory<SliderWidget>;
|
|
11
|
+
export declare const DefaultSlotHandle: (slotContext: SliderSlotHandleContext) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const DefaultSlotStructure: (slotContext: SliderContext) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function Slider(props: PropsWithChildren<Partial<SliderProps>>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const toast = require("../../toast-Dp_zjIff.cjs");
|
|
4
|
+
const toast$1 = require("@agnos-ui/core-bootstrap/components/toast");
|
|
5
|
+
exports.Toast = toast.Toast;
|
|
6
|
+
exports.createToast = toast.createToast;
|
|
7
|
+
Object.keys(toast$1).forEach((k) => {
|
|
8
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
9
|
+
Object.defineProperty(exports, k, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: () => toast$1[k]
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toast';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, PropsWithChildren, RefAttributes } from 'react';
|
|
2
|
+
import type { AdaptSlotContentProps, AdaptWidgetSlots, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
3
|
+
import type { ToastApi } from '@agnos-ui/core-bootstrap/components/toast';
|
|
4
|
+
export * from '@agnos-ui/core-bootstrap/components/toast';
|
|
5
|
+
export type ToastWidget = AdaptWidgetSlots<import('@agnos-ui/core-bootstrap/components/toast').ToastWidget>;
|
|
6
|
+
export type ToastProps = WidgetProps<ToastWidget>;
|
|
7
|
+
export type ToastState = WidgetState<ToastWidget>;
|
|
8
|
+
export type ToastContext = AdaptSlotContentProps<import('@agnos-ui/core-bootstrap/components/toast').ToastContext>;
|
|
9
|
+
export declare const createToast: WidgetFactory<ToastWidget>;
|
|
10
|
+
export declare const Toast: ForwardRefExoticComponent<PropsWithChildren<Partial<ToastProps>> & RefAttributes<ToastApi>>;
|
package/config.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Partial2Levels, WidgetsConfigStore } from '@agnos-ui/react-headless/config';
|
|
2
|
+
import type { AdaptPropsSlots, Widget, WidgetFactory, WidgetProps, WidgetState } from '@agnos-ui/react-headless/types';
|
|
3
|
+
import type { BootstrapWidgetsConfig } from '@agnos-ui/core-bootstrap/config';
|
|
4
|
+
import type { ReactNode, Context } from 'react';
|
|
5
|
+
export * from '@agnos-ui/react-headless/config';
|
|
6
|
+
export type WidgetsConfig = {
|
|
7
|
+
[WidgetName in keyof BootstrapWidgetsConfig]: AdaptPropsSlots<BootstrapWidgetsConfig[WidgetName]>;
|
|
8
|
+
};
|
|
9
|
+
type DefaultConfigInput = Partial2Levels<WidgetsConfig> & {
|
|
10
|
+
adaptParentConfig?: (config: Partial2Levels<WidgetsConfig>) => Partial2Levels<WidgetsConfig>;
|
|
11
|
+
children?: ReactNode | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const widgetsConfigContext: Context<WidgetsConfigStore<WidgetsConfig> | undefined>, WidgetsDefaultConfig: ({ children, adaptParentConfig, ...props }: DefaultConfigInput) => import('react/jsx-runtime').JSX.Element, useWidgetContext: <Props extends object>(widgetName: keyof BootstrapWidgetsConfig | null, defaultConfig?: Partial<Props> | undefined) => import('@amadeus-it-group/tansu').ReadableSignal<Partial<Props>>, useWidgetWithConfig: <W extends Widget<object, object, object, object, object>>(factory: WidgetFactory<W>, props: Partial<WidgetProps<W>> | undefined, widgetName: keyof BootstrapWidgetsConfig | null, defaultProps?: Partial<WidgetProps<W>> | undefined) => [WidgetState<W>, W];
|