@agnos-ui/react-bootstrap 0.10.0-next.3 → 0.10.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/components/drawer/drawer.gen.d.ts +10 -0
- package/generated/index.d.ts +4 -4
- package/index.cjs +20 -20
- package/index.js +4 -4
- package/package.json +3 -3
|
@@ -24,6 +24,10 @@ export interface DrawerState {
|
|
|
24
24
|
* Flag to show whether the drawer is fully hidden.
|
|
25
25
|
*/
|
|
26
26
|
hidden: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Flag to show whether the drawer is vertically positioned.
|
|
29
|
+
*/
|
|
30
|
+
isVertical: boolean;
|
|
27
31
|
/**
|
|
28
32
|
* CSS classes to be applied on the widget main container
|
|
29
33
|
*
|
|
@@ -137,6 +141,12 @@ export interface DrawerProps {
|
|
|
137
141
|
* @defaultValue `false`
|
|
138
142
|
*/
|
|
139
143
|
bodyScroll: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* If `true` focuses the drawer when it is opened.
|
|
146
|
+
*
|
|
147
|
+
* @defaultValue `true`
|
|
148
|
+
*/
|
|
149
|
+
focusOnInit: boolean;
|
|
140
150
|
/**
|
|
141
151
|
* Event to be triggered when the transition is completed and the drawer is not visible.
|
|
142
152
|
*
|
package/generated/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './utils/widget';
|
|
2
|
-
export * from './utils/stores';
|
|
3
|
-
export * from './utils/portal';
|
|
4
|
-
export * from './utils/directive';
|
|
5
1
|
export * from './types';
|
|
6
2
|
export * from './slot';
|
|
7
3
|
export * from './index';
|
|
8
4
|
export * from './config';
|
|
5
|
+
export * from './utils/widget';
|
|
6
|
+
export * from './utils/stores';
|
|
7
|
+
export * from './utils/portal';
|
|
8
|
+
export * from './utils/directive';
|
|
9
9
|
export * from './utils/writables';
|
|
10
10
|
export * from './utils/func';
|
|
11
11
|
export * from './services/siblingsInert';
|
package/index.cjs
CHANGED
|
@@ -13,15 +13,15 @@ const slider = require("./slider-BGUFmm57.cjs");
|
|
|
13
13
|
const toasterProvider = require("./toasterProvider-CWGY-kqw.cjs");
|
|
14
14
|
const tree = require("./tree--CHag_Wm.cjs");
|
|
15
15
|
const drawer = require("./drawer-EEj6XJt5.cjs");
|
|
16
|
-
const widget = require("@agnos-ui/react-headless/utils/widget");
|
|
17
|
-
const stores = require("@agnos-ui/react-headless/utils/stores");
|
|
18
|
-
const portal = require("@agnos-ui/react-headless/utils/portal");
|
|
19
|
-
const directive = require("@agnos-ui/react-headless/utils/directive");
|
|
20
16
|
const types = require("@agnos-ui/react-headless/types");
|
|
21
17
|
const types$1 = require("@agnos-ui/core-bootstrap/types");
|
|
22
18
|
const slot = require("@agnos-ui/react-headless/slot");
|
|
23
19
|
const config = require("@agnos-ui/react-headless/config");
|
|
24
20
|
const generated_config = require("./generated/config.cjs");
|
|
21
|
+
const widget = require("@agnos-ui/react-headless/utils/widget");
|
|
22
|
+
const stores = require("@agnos-ui/react-headless/utils/stores");
|
|
23
|
+
const portal = require("@agnos-ui/react-headless/utils/portal");
|
|
24
|
+
const directive = require("@agnos-ui/react-headless/utils/directive");
|
|
25
25
|
const writables = require("@agnos-ui/react-headless/utils/writables");
|
|
26
26
|
const func = require("@agnos-ui/react-headless/utils/func");
|
|
27
27
|
const siblingsInert = require("@agnos-ui/react-headless/services/siblingsInert");
|
|
@@ -116,52 +116,52 @@ exports.WidgetsConfigContext = generated_config.WidgetsConfigContext;
|
|
|
116
116
|
exports.WidgetsDefaultConfig = generated_config.WidgetsDefaultConfig;
|
|
117
117
|
exports.useWidget = generated_config.useWidget;
|
|
118
118
|
exports.useWidgetContext = generated_config.useWidgetContext;
|
|
119
|
-
Object.keys(
|
|
119
|
+
Object.keys(types).forEach((k) => {
|
|
120
120
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: () =>
|
|
122
|
+
get: () => types[k]
|
|
123
123
|
});
|
|
124
124
|
});
|
|
125
|
-
Object.keys(
|
|
125
|
+
Object.keys(types$1).forEach((k) => {
|
|
126
126
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: () =>
|
|
128
|
+
get: () => types$1[k]
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
|
-
Object.keys(
|
|
131
|
+
Object.keys(slot).forEach((k) => {
|
|
132
132
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: () =>
|
|
134
|
+
get: () => slot[k]
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
|
-
Object.keys(
|
|
137
|
+
Object.keys(config).forEach((k) => {
|
|
138
138
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: () =>
|
|
140
|
+
get: () => config[k]
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
|
-
Object.keys(
|
|
143
|
+
Object.keys(widget).forEach((k) => {
|
|
144
144
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: () =>
|
|
146
|
+
get: () => widget[k]
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
Object.keys(
|
|
149
|
+
Object.keys(stores).forEach((k) => {
|
|
150
150
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: () =>
|
|
152
|
+
get: () => stores[k]
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
|
-
Object.keys(
|
|
155
|
+
Object.keys(portal).forEach((k) => {
|
|
156
156
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: () =>
|
|
158
|
+
get: () => portal[k]
|
|
159
159
|
});
|
|
160
160
|
});
|
|
161
|
-
Object.keys(
|
|
161
|
+
Object.keys(directive).forEach((k) => {
|
|
162
162
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: () =>
|
|
164
|
+
get: () => directive[k]
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
Object.keys(writables).forEach((k) => {
|
package/index.js
CHANGED
|
@@ -11,15 +11,15 @@ import { c as c5, S as S2, b as b7, a as a10, d as d4, e as e10 } from "./slider
|
|
|
11
11
|
import { a as a11, T, f as f3, g as g2, b as b8, d as d5, e as e11, c as c6, u } from "./toasterProvider-BcueMHl1.js";
|
|
12
12
|
import { b as b9, a as a12, D, c as c7, T as T2, d as d6, e as e12 } from "./tree-DTg_JB2R.js";
|
|
13
13
|
import { D as D2, b as b10, a as a13, e as e13 } from "./drawer-BvsFOxUr.js";
|
|
14
|
-
export * from "@agnos-ui/react-headless/utils/widget";
|
|
15
|
-
export * from "@agnos-ui/react-headless/utils/stores";
|
|
16
|
-
export * from "@agnos-ui/react-headless/utils/portal";
|
|
17
|
-
export * from "@agnos-ui/react-headless/utils/directive";
|
|
18
14
|
export * from "@agnos-ui/react-headless/types";
|
|
19
15
|
export * from "@agnos-ui/core-bootstrap/types";
|
|
20
16
|
export * from "@agnos-ui/react-headless/slot";
|
|
21
17
|
export * from "@agnos-ui/react-headless/config";
|
|
22
18
|
import { WidgetsConfigContext, WidgetsDefaultConfig, useWidget, useWidgetContext } from "./generated/config.js";
|
|
19
|
+
export * from "@agnos-ui/react-headless/utils/widget";
|
|
20
|
+
export * from "@agnos-ui/react-headless/utils/stores";
|
|
21
|
+
export * from "@agnos-ui/react-headless/utils/portal";
|
|
22
|
+
export * from "@agnos-ui/react-headless/utils/directive";
|
|
23
23
|
export * from "@agnos-ui/react-headless/utils/writables";
|
|
24
24
|
export * from "@agnos-ui/react-headless/utils/func";
|
|
25
25
|
export * from "@agnos-ui/react-headless/services/siblingsInert";
|
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.10.0
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"module": "./index.js",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@agnos-ui/core-bootstrap": "0.10.0
|
|
53
|
-
"@agnos-ui/react-headless": "0.10.0
|
|
52
|
+
"@agnos-ui/core-bootstrap": "0.10.0",
|
|
53
|
+
"@agnos-ui/react-headless": "0.10.0",
|
|
54
54
|
"clsx": "^2.1.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|