ywana-core8 0.0.77 → 0.0.81

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.umd.js CHANGED
@@ -1,11 +1,12 @@
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('react-notifications'), require('react-notifications/lib/notifications.css'), require('deep-equal'), require('resumablejs')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-notifications', 'react-notifications/lib/notifications.css', 'deep-equal', 'resumablejs'], factory) :
4
- (global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactNotifications, null, global.deepEqual, global.resumablejs));
5
- })(this, (function (exports, materialDesignIcons_css, React, reactNotifications, notifications_css, equal, ResumableJS) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('react-switch'), require('react-notifications'), require('react-notifications/lib/notifications.css'), require('deep-equal'), require('resumablejs')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-switch', 'react-notifications', 'react-notifications/lib/notifications.css', 'deep-equal', 'resumablejs'], factory) :
4
+ (global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactSwitch, global.reactNotifications, null, global.deepEqual, global.resumablejs));
5
+ })(this, (function (exports, materialDesignIcons_css, React, RSwitch, reactNotifications, notifications_css, equal, ResumableJS) {
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);
9
+ var RSwitch__default = /*#__PURE__*/_interopDefaultLegacy(RSwitch);
9
10
  var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
10
11
  var ResumableJS__default = /*#__PURE__*/_interopDefaultLegacy(ResumableJS);
11
12
 
@@ -1475,6 +1476,10 @@
1475
1476
  }, actions));
1476
1477
  };
1477
1478
 
1479
+ var Switch = function Switch(props) {
1480
+ return /*#__PURE__*/React__default["default"].createElement(RSwitch__default["default"], props);
1481
+ };
1482
+
1478
1483
  /**
1479
1484
  * Login Box
1480
1485
  */
@@ -1958,8 +1963,10 @@
1958
1963
  confirm: function confirm(message) {
1959
1964
  return window.confirm(message);
1960
1965
  },
1961
- notify: function notify(title, message) {
1962
- reactNotifications.NotificationManager.info(message, title);
1966
+ notify: function notify(_ref2) {
1967
+ var title = _ref2.title,
1968
+ body = _ref2.body;
1969
+ reactNotifications.NotificationManager.info(body, title);
1963
1970
  }
1964
1971
  };
1965
1972
  return /*#__PURE__*/React__default["default"].createElement(SiteContext.Provider, {
@@ -1970,16 +1977,16 @@
1970
1977
  * Site
1971
1978
  */
1972
1979
 
1973
- var Site = function Site(_ref2) {
1974
- var icon = _ref2.icon,
1975
- logo = _ref2.logo,
1976
- title = _ref2.title,
1977
- toolbar = _ref2.toolbar,
1978
- children = _ref2.children,
1979
- init = _ref2.init,
1980
- min = _ref2.min,
1981
- lang = _ref2.lang,
1982
- dictionary = _ref2.dictionary;
1980
+ var Site = function Site(_ref3) {
1981
+ var icon = _ref3.icon,
1982
+ logo = _ref3.logo,
1983
+ title = _ref3.title,
1984
+ toolbar = _ref3.toolbar,
1985
+ children = _ref3.children,
1986
+ init = _ref3.init,
1987
+ min = _ref3.min,
1988
+ lang = _ref3.lang,
1989
+ dictionary = _ref3.dictionary;
1983
1990
  return /*#__PURE__*/React__default["default"].createElement(SiteProvider, {
1984
1991
  siteLang: lang,
1985
1992
  siteDictionary: dictionary
@@ -2020,8 +2027,8 @@
2020
2027
  */
2021
2028
 
2022
2029
 
2023
- var SiteToolBar = function SiteToolBar(_ref3) {
2024
- var children = _ref3.children;
2030
+ var SiteToolBar = function SiteToolBar(_ref4) {
2031
+ var children = _ref4.children;
2025
2032
  React.useContext(SiteContext);
2026
2033
  return /*#__PURE__*/React__default["default"].createElement("nav", null, children);
2027
2034
  };
@@ -2039,9 +2046,9 @@
2039
2046
  */
2040
2047
 
2041
2048
 
2042
- var SiteMenu = function SiteMenu(_ref4) {
2043
- var children = _ref4.children,
2044
- min = _ref4.min;
2049
+ var SiteMenu = function SiteMenu(_ref5) {
2050
+ var children = _ref5.children,
2051
+ min = _ref5.min;
2045
2052
  var context = React.useContext(SiteContext);
2046
2053
  var showNav = context.showNav;
2047
2054
  React.useEffect(function () {
@@ -2072,10 +2079,10 @@
2072
2079
  }, /*#__PURE__*/React__default["default"].createElement("main", null, Object.keys(sections).map(function (title) {
2073
2080
  return /*#__PURE__*/React__default["default"].createElement(React.Fragment, {
2074
2081
  key: title
2075
- }, sections[title].map(function (_ref5) {
2076
- var id = _ref5.id,
2077
- _ref5$icon = _ref5.icon,
2078
- icon = _ref5$icon === void 0 ? 'info' : _ref5$icon;
2082
+ }, sections[title].map(function (_ref6) {
2083
+ var id = _ref6.id,
2084
+ _ref6$icon = _ref6.icon,
2085
+ icon = _ref6$icon === void 0 ? 'info' : _ref6$icon;
2079
2086
  return /*#__PURE__*/React__default["default"].createElement(Icon, {
2080
2087
  key: id,
2081
2088
  icon: icon,
@@ -2095,9 +2102,9 @@
2095
2102
  */
2096
2103
 
2097
2104
 
2098
- var SitePage = function SitePage(_ref6) {
2099
- var children = _ref6.children,
2100
- init = _ref6.init;
2105
+ var SitePage = function SitePage(_ref7) {
2106
+ var children = _ref7.children,
2107
+ init = _ref7.init;
2101
2108
  var context = React.useContext(SiteContext);
2102
2109
  var page = context.page;
2103
2110
  React.useEffect(function () {
@@ -4923,6 +4930,7 @@
4923
4930
  exports.SiteContext = SiteContext;
4924
4931
  exports.SiteProvider = SiteProvider;
4925
4932
  exports.Stack = Stack;
4933
+ exports.Switch = Switch;
4926
4934
  exports.TYPES = TYPES;
4927
4935
  exports.Tab = Tab;
4928
4936
  exports.TabbedContentEditor = TabbedContentEditor;