@grucloud/bau-ui 0.62.0 → 0.63.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/checkbox/checkbox.js +1 -0
- package/drillDownMenu/drillDownMenu.js +11 -13
- package/form/form.js +0 -2
- package/globalStyle/globalStyle.js +4 -0
- package/modal/modal.js +2 -0
- package/package.json +4 -4
- package/paper/paper.js +1 -0
- package/radioButton/radioButton.js +1 -0
package/checkbox/checkbox.js
CHANGED
|
@@ -200,8 +200,6 @@ export default function (context, options = {}) {
|
|
|
200
200
|
|
|
201
201
|
const Menu = ({ variant, color, size, currentTree, pathnameState }) => {
|
|
202
202
|
const { children, parentTree, data, renderList } = currentTree;
|
|
203
|
-
if (renderList) {
|
|
204
|
-
}
|
|
205
203
|
return div(
|
|
206
204
|
{ class: cn("drillDownMenu", variant, color, size) },
|
|
207
205
|
parentTree && renderHeader({ variant, color, size, data, currentTree }),
|
|
@@ -267,21 +265,21 @@ export default function (context, options = {}) {
|
|
|
267
265
|
return _currentTree;
|
|
268
266
|
});
|
|
269
267
|
|
|
270
|
-
let
|
|
268
|
+
let directionState = bau.state(0);
|
|
271
269
|
|
|
272
270
|
const onclick = (event) => {
|
|
273
271
|
const { dataset } = event.target;
|
|
274
272
|
if (dataset.buttonback == "true") {
|
|
275
|
-
|
|
273
|
+
directionState.val = -1;
|
|
276
274
|
} else if (dataset.ischild == "false") {
|
|
277
|
-
|
|
275
|
+
directionState.val = 1;
|
|
278
276
|
} else if (dataset.ischild == "true") {
|
|
279
|
-
direction = 0;
|
|
277
|
+
//direction = 0;
|
|
280
278
|
}
|
|
281
279
|
};
|
|
282
280
|
|
|
283
|
-
const animationHide = (
|
|
284
|
-
switch (
|
|
281
|
+
const animationHide = (directionState) => {
|
|
282
|
+
switch (directionState.val) {
|
|
285
283
|
case 1:
|
|
286
284
|
return `${hideToLeft} ${animationDuration}`;
|
|
287
285
|
case -1:
|
|
@@ -291,8 +289,8 @@ export default function (context, options = {}) {
|
|
|
291
289
|
}
|
|
292
290
|
};
|
|
293
291
|
|
|
294
|
-
const animationShow = (
|
|
295
|
-
switch (
|
|
292
|
+
const animationShow = (directionState) => {
|
|
293
|
+
switch (directionState.val) {
|
|
296
294
|
case 1:
|
|
297
295
|
return `${hideToRight} ${animationDuration} reverse`;
|
|
298
296
|
case -1:
|
|
@@ -316,11 +314,11 @@ export default function (context, options = {}) {
|
|
|
316
314
|
},
|
|
317
315
|
Animate(
|
|
318
316
|
{
|
|
319
|
-
animationHide: () => animationHide(
|
|
320
|
-
animationShow: () => animationShow(
|
|
317
|
+
animationHide: () => animationHide(directionState),
|
|
318
|
+
animationShow: () => animationShow(directionState),
|
|
321
319
|
},
|
|
322
320
|
bau.bind({
|
|
323
|
-
deps: [
|
|
321
|
+
deps: [directionState],
|
|
324
322
|
render: () => () =>
|
|
325
323
|
Menu({
|
|
326
324
|
variant,
|
package/form/form.js
CHANGED
package/modal/modal.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grucloud/bau-ui",
|
|
3
3
|
"description": "Components library built with Bau",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.63.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BSD",
|
|
7
7
|
"keywords": [
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"directory": "bau-ui"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@grucloud/bau": "^0.
|
|
24
|
-
"@grucloud/bau-css": "^0.
|
|
23
|
+
"@grucloud/bau": "^0.63.0",
|
|
24
|
+
"@grucloud/bau-css": "^0.63.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typedoc": "0.24.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ba14ec686f27ecca6fba9dd765862f85ea77e554"
|
|
30
30
|
}
|
package/paper/paper.js
CHANGED