@agnos-ui/core-bootstrap 0.10.0-next.0 → 0.10.0-next.2
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-C1fPM-Yp.cjs → accordion-BMOaHzWf.cjs} +1 -1
- package/{accordion-fxxgzVzz.js → accordion-BXlyBeGU.js} +1 -1
- package/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -1
- package/components/carousel/carousel.d.ts +0 -6
- package/components/drawer/drawer.d.ts +25 -0
- package/components/drawer/index.cjs +1 -1
- package/components/drawer/index.js +1 -1
- package/index.cjs +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/{drawer-Dv6lMUKE.cjs → drawer-Bp5nbc7G.cjs} +3 -3
- package/{drawer-ByOWziyU.js → drawer-D-fu8Wx0.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const accordion = require("../../accordion-
|
|
3
|
+
const accordion = require("../../accordion-BMOaHzWf.cjs");
|
|
4
4
|
const accordion$1 = require("@agnos-ui/core/components/accordion");
|
|
5
5
|
exports.createAccordion = accordion.createAccordion;
|
|
6
6
|
exports.createAccordionItem = accordion.createAccordionItem;
|
|
@@ -50,20 +50,14 @@ interface CarouselExtraProps<SlideData extends {
|
|
|
50
50
|
slidesData: SlideData[];
|
|
51
51
|
/**
|
|
52
52
|
* The structure of the carousel.
|
|
53
|
-
*
|
|
54
|
-
* @defaultValue `undefined`
|
|
55
53
|
*/
|
|
56
54
|
structure: SlotContent<CarouselContext<SlideData>>;
|
|
57
55
|
/**
|
|
58
56
|
* The navigation layer of the carousel.
|
|
59
|
-
*
|
|
60
|
-
* @defaultValue `undefined`
|
|
61
57
|
*/
|
|
62
58
|
navigation: SlotContent<CarouselContext<SlideData>>;
|
|
63
59
|
/**
|
|
64
60
|
* The content of each slide in the carousel.
|
|
65
|
-
*
|
|
66
|
-
* @defaultValue `undefined`
|
|
67
61
|
*/
|
|
68
62
|
slide: SlotContent<CarouselSlideContext<SlideData>>;
|
|
69
63
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DrawerProps as CoreProps, DrawerState as CoreState, DrawerApi, DrawerDirectives as DrawerCoreDirectives } from '@agnos-ui/core/components/drawer';
|
|
2
2
|
import type { Directive, SlotContent, Widget, WidgetFactory, WidgetSlotContext } from '@agnos-ui/core/types';
|
|
3
|
+
import type { TransitionFn } from '@agnos-ui/core/services/transitions/baseTransitions';
|
|
3
4
|
export * from '@agnos-ui/core/components/drawer';
|
|
4
5
|
/**
|
|
5
6
|
* Represents the context for a Drawer widget.
|
|
@@ -32,6 +33,30 @@ export interface DrawerState extends CoreState, DrawerExtraProps {
|
|
|
32
33
|
* Represents the properties for the Drawer component.
|
|
33
34
|
*/
|
|
34
35
|
export interface DrawerProps extends CoreProps, DrawerExtraProps {
|
|
36
|
+
/**
|
|
37
|
+
* The transition function will be executed when the drawer is displayed or hidden.
|
|
38
|
+
*
|
|
39
|
+
* @defaultValue
|
|
40
|
+
* ```ts
|
|
41
|
+
* collapseHorizontalTransition
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
transition: TransitionFn;
|
|
45
|
+
/**
|
|
46
|
+
* The transition function for vertically positioned drawer (top, bottom) that will be executed when the drawer is displayed or hidden.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue
|
|
49
|
+
* ```ts
|
|
50
|
+
* collapseVerticalTransition
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
verticalTransition: TransitionFn;
|
|
54
|
+
/**
|
|
55
|
+
* The transition to use for the backdrop behind the drawer (if present).
|
|
56
|
+
*
|
|
57
|
+
* @defaultValue `fadeTransition`
|
|
58
|
+
*/
|
|
59
|
+
backdropTransition: TransitionFn;
|
|
35
60
|
}
|
|
36
61
|
/**
|
|
37
62
|
* Represents the directives for the Drawer component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const drawer = require("../../drawer-
|
|
3
|
+
const drawer = require("../../drawer-Bp5nbc7G.cjs");
|
|
4
4
|
const drawer$1 = require("@agnos-ui/core/components/drawer");
|
|
5
5
|
exports.createDrawer = drawer.createDrawer;
|
|
6
6
|
exports.getDrawerDefaultConfig = drawer.getDrawerDefaultConfig;
|
package/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const accordion = require("./accordion-
|
|
3
|
+
const accordion = require("./accordion-BMOaHzWf.cjs");
|
|
4
4
|
const alert = require("./alert-C-GktcuR.cjs");
|
|
5
5
|
const modal = require("./modal-DFEAGpCe.cjs");
|
|
6
6
|
const pageFactory = require("./pageFactory-vEBrUBB-.cjs");
|
|
@@ -12,7 +12,7 @@ const toast = require("./toast-C4gj0rX-.cjs");
|
|
|
12
12
|
const collapse = require("./collapse-Dy-3cJym.cjs");
|
|
13
13
|
const tree = require("./tree-DuY7bsYo.cjs");
|
|
14
14
|
const carousel = require("./carousel-C-vSnTTq.cjs");
|
|
15
|
-
const drawer = require("./drawer-
|
|
15
|
+
const drawer = require("./drawer-Bp5nbc7G.cjs");
|
|
16
16
|
const collapse$2 = require("./collapse-sUYbZqEx.cjs");
|
|
17
17
|
const fade = require("./fade-CJ0jXGio.cjs");
|
|
18
18
|
const types = require("./types.cjs");
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a, c, g } from "./accordion-
|
|
1
|
+
import { a, c, g } from "./accordion-BXlyBeGU.js";
|
|
2
2
|
import { c as c2, g as g2 } from "./alert-DXTwYKjx.js";
|
|
3
3
|
import { c as c3, g as g3 } from "./modal-CHqGXdvt.js";
|
|
4
4
|
import { c as c4, g as g4, n } from "./pageFactory-CZZJDqOh.js";
|
|
@@ -10,7 +10,7 @@ import { c as c9, g as g9, t } from "./toast-Dggjpjqk.js";
|
|
|
10
10
|
import { c as c10, g as g10 } from "./collapse-BxmbNhX5.js";
|
|
11
11
|
import { c as c11, g as g11 } from "./tree-Be8WJS8u.js";
|
|
12
12
|
import { c as c12, g as g12 } from "./carousel-CY0kDaVK.js";
|
|
13
|
-
import { c as c13, g as g13 } from "./drawer-
|
|
13
|
+
import { c as c13, g as g13 } from "./drawer-D-fu8Wx0.js";
|
|
14
14
|
import { a as a2, c as c14 } from "./collapse-CVjUhnIz.js";
|
|
15
15
|
import { f } from "./fade-uOobJKgw.js";
|
|
16
16
|
import { BS_CONTEXTUAL_CLASSES } from "./types.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnos-ui/core-bootstrap",
|
|
3
3
|
"description": "Styles and component interface extensions necessary to use AgnosUI with Bootstrap.",
|
|
4
|
-
"version": "0.10.0-next.
|
|
4
|
+
"version": "0.10.0-next.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bootstrap",
|
|
7
7
|
"css",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@agnos-ui/core": "0.10.0-next.
|
|
65
|
+
"@agnos-ui/core": "0.10.0-next.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@amadeus-it-group/tansu": "^2.0.0"
|
|
@@ -16,14 +16,14 @@ const configValidator = {
|
|
|
16
16
|
header: void 0,
|
|
17
17
|
children: void 0
|
|
18
18
|
};
|
|
19
|
-
function getDrawerDefaultConfig() {
|
|
20
|
-
return { ...drawer.getDrawerDefaultConfig(), ...defaultConfigExtraProps, ...coreOverride };
|
|
21
|
-
}
|
|
22
19
|
const coreOverride = {
|
|
23
20
|
backdropTransition: fade.fadeTransition,
|
|
24
21
|
transition: collapse.collapseHorizontalTransition,
|
|
25
22
|
verticalTransition: collapse.collapseVerticalTransition
|
|
26
23
|
};
|
|
24
|
+
function getDrawerDefaultConfig() {
|
|
25
|
+
return { ...drawer.getDrawerDefaultConfig(), ...defaultConfigExtraProps, ...coreOverride };
|
|
26
|
+
}
|
|
27
27
|
const createDrawer = widget.createWidgetFactory("drawer", (config) => {
|
|
28
28
|
const widget2 = extendWidget.extendWidgetProps(drawer.createDrawer, defaultConfigExtraProps, configValidator, coreOverride)(config);
|
|
29
29
|
return {
|
|
@@ -15,14 +15,14 @@ const configValidator = {
|
|
|
15
15
|
header: void 0,
|
|
16
16
|
children: void 0
|
|
17
17
|
};
|
|
18
|
-
function getDrawerDefaultConfig() {
|
|
19
|
-
return { ...getDrawerDefaultConfig$1(), ...defaultConfigExtraProps, ...coreOverride };
|
|
20
|
-
}
|
|
21
18
|
const coreOverride = {
|
|
22
19
|
backdropTransition: fadeTransition,
|
|
23
20
|
transition: collapseHorizontalTransition,
|
|
24
21
|
verticalTransition: collapseVerticalTransition
|
|
25
22
|
};
|
|
23
|
+
function getDrawerDefaultConfig() {
|
|
24
|
+
return { ...getDrawerDefaultConfig$1(), ...defaultConfigExtraProps, ...coreOverride };
|
|
25
|
+
}
|
|
26
26
|
const createDrawer = createWidgetFactory("drawer", (config) => {
|
|
27
27
|
const widget = extendWidgetProps(createDrawer$1, defaultConfigExtraProps, configValidator, coreOverride)(config);
|
|
28
28
|
return {
|