ywana-core8 0.1.57 → 0.1.59
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/dist/index.cjs +12 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -33
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -35
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/site/link.js +0 -49
- package/src/site/navigation.js +1 -1
- package/src/site/site.js +6 -21
package/dist/index.umd.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('resumablejs'), require('react-switch'), require('react-notifications-component'), require('
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'resumablejs', 'react-switch', 'react-notifications-component', '
|
4
|
-
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.resumablejs, global.reactSwitch, global.reactNotificationsComponent,
|
5
|
-
})(this, (function (exports, materialDesignIcons_css, React, ResumableJS, RSwitch, reactNotificationsComponent,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('resumablejs'), require('react-switch'), require('react-notifications-component'), require('react-notifications-component/dist/theme.css'), require('moment'), require('moment-range'), require('moment/locale/es'), require('axios'), require('deep-equal')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'resumablejs', 'react-switch', 'react-notifications-component', 'react-notifications-component/dist/theme.css', 'moment', 'moment-range', 'moment/locale/es', 'axios', 'deep-equal'], factory) :
|
4
|
+
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.resumablejs, global.reactSwitch, global.reactNotificationsComponent, null, global.moment, global.momentRange, null, global.axios, global.deepEqual));
|
5
|
+
})(this, (function (exports, materialDesignIcons_css, React, ResumableJS, RSwitch, reactNotificationsComponent, theme_css, moment$1, momentRange, es, axios, equal) {
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
7
7
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
@@ -3358,6 +3358,7 @@
|
|
3358
3358
|
history = _useState2[0],
|
3359
3359
|
setHistory = _useState2[1];
|
3360
3360
|
var _useState3 = React.useState("left"),
|
3361
|
+
direction = _useState3[0],
|
3361
3362
|
setDirection = _useState3[1];
|
3362
3363
|
var isFirstLoad = React.useRef(true);
|
3363
3364
|
React.useEffect(function () {
|
@@ -3405,7 +3406,8 @@
|
|
3405
3406
|
page: page,
|
3406
3407
|
"goto": _goto,
|
3407
3408
|
goBack: goBack,
|
3408
|
-
history: history
|
3409
|
+
history: history,
|
3410
|
+
direction: direction
|
3409
3411
|
};
|
3410
3412
|
}
|
3411
3413
|
|
@@ -3452,7 +3454,8 @@
|
|
3452
3454
|
var _useHashPage = useHashPage(),
|
3453
3455
|
page = _useHashPage.page,
|
3454
3456
|
_goto = _useHashPage["goto"],
|
3455
|
-
goBack = _useHashPage.goBack
|
3457
|
+
goBack = _useHashPage.goBack,
|
3458
|
+
direction = _useHashPage.direction;
|
3456
3459
|
var value = {
|
3457
3460
|
lang: lang,
|
3458
3461
|
setLang: setLang,
|
@@ -3490,6 +3493,7 @@
|
|
3490
3493
|
page: page,
|
3491
3494
|
"goto": _goto,
|
3492
3495
|
goBack: goBack,
|
3496
|
+
direction: direction,
|
3493
3497
|
dialog: dialog,
|
3494
3498
|
openDialog: function openDialog(dialog) {
|
3495
3499
|
setDialog(dialog);
|
@@ -3711,8 +3715,7 @@
|
|
3711
3715
|
var children = _ref8.children,
|
3712
3716
|
init = _ref8.init;
|
3713
3717
|
var context = React.useContext(SiteContext);
|
3714
|
-
var page = context.page
|
3715
|
-
direction = context.direction;
|
3718
|
+
var page = context.page;
|
3716
3719
|
React.useEffect(function () {
|
3717
3720
|
if (init) {
|
3718
3721
|
context["goto"](init);
|
@@ -3720,32 +3723,9 @@
|
|
3720
3723
|
context["goto"]("EMPTY");
|
3721
3724
|
}
|
3722
3725
|
}, []);
|
3723
|
-
|
3726
|
+
return /*#__PURE__*/React__default["default"].createElement("main", null, React__default["default"].Children.toArray(children).filter(function (child) {
|
3724
3727
|
return child.props ? child.props.id === page : false;
|
3725
|
-
});
|
3726
|
-
var xOffset = direction === "left" ? 40 : -40;
|
3727
|
-
return /*#__PURE__*/React__default["default"].createElement("main", {
|
3728
|
-
className: "site-page-container"
|
3729
|
-
}, /*#__PURE__*/React__default["default"].createElement(framerMotion.AnimatePresence, {
|
3730
|
-
exitBeforeEnter: true
|
3731
|
-
}, currentPage && /*#__PURE__*/React__default["default"].createElement(framerMotion.motion.div, {
|
3732
|
-
key: page,
|
3733
|
-
initial: {
|
3734
|
-
opacity: 0,
|
3735
|
-
x: xOffset
|
3736
|
-
},
|
3737
|
-
animate: {
|
3738
|
-
opacity: 1,
|
3739
|
-
x: 0
|
3740
|
-
},
|
3741
|
-
exit: {
|
3742
|
-
opacity: 0,
|
3743
|
-
x: -xOffset
|
3744
|
-
},
|
3745
|
-
transition: {
|
3746
|
-
duration: 0.3
|
3747
|
-
}
|
3748
|
-
}, currentPage)));
|
3728
|
+
}));
|
3749
3729
|
};
|
3750
3730
|
|
3751
3731
|
/**
|
@@ -3931,10 +3911,10 @@
|
|
3931
3911
|
_ref$style = _ref.style,
|
3932
3912
|
style = _ref$style === void 0 ? {} : _ref$style;
|
3933
3913
|
var _useContext = React.useContext(SiteContext),
|
3934
|
-
|
3914
|
+
_goto = _useContext["goto"];
|
3935
3915
|
var handleClick = function handleClick(e) {
|
3936
3916
|
e.preventDefault();
|
3937
|
-
|
3917
|
+
_goto(page);
|
3938
3918
|
};
|
3939
3919
|
return /*#__PURE__*/React__default["default"].createElement("a", {
|
3940
3920
|
href: "#" + page,
|
@@ -12967,6 +12947,7 @@
|
|
12967
12947
|
exports.WizardContext = WizardContext;
|
12968
12948
|
exports.isEmpty = isEmpty;
|
12969
12949
|
exports.isFunction = isFunction;
|
12950
|
+
exports.useHashPage = useHashPage;
|
12970
12951
|
exports.validatePassword = validatePassword;
|
12971
12952
|
|
12972
12953
|
}));
|