ywana-core8 0.0.184 → 0.0.188
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 +6 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -20
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -23
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +1 -3
- package/src/domain/ContentType.js +2 -1
- package/src/html/button.js +1 -15
package/dist/index.modern.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import 'material-design-icons-iconfont/dist/material-design-icons.css';
|
2
2
|
import React, { useContext, useState, useEffect, Fragment, useRef, Children, useMemo } from 'react';
|
3
|
-
import { preview } from '@reactpreview/config';
|
4
3
|
import RSwitch from 'react-switch';
|
5
4
|
import { NotificationContainer, NotificationManager } from 'react-notifications';
|
6
5
|
import 'react-notifications/lib/notifications.css';
|
@@ -197,22 +196,6 @@ var Button$1 = function Button(_ref) {
|
|
197
196
|
action: click
|
198
197
|
}) : null, /*#__PURE__*/React.createElement("span", null, label));
|
199
198
|
};
|
200
|
-
preview(Button$1, {
|
201
|
-
example1: {
|
202
|
-
label: "OK",
|
203
|
-
raised: true,
|
204
|
-
action: function action() {
|
205
|
-
return alert('click');
|
206
|
-
}
|
207
|
-
},
|
208
|
-
example2: {
|
209
|
-
label: "CANCEL",
|
210
|
-
outlined: true,
|
211
|
-
action: function action() {
|
212
|
-
return alert('click');
|
213
|
-
}
|
214
|
-
}
|
215
|
-
});
|
216
199
|
|
217
200
|
/**
|
218
201
|
* Site Context
|
@@ -2299,7 +2282,8 @@ var FORMATS = {
|
|
2299
2282
|
NONE: '',
|
2300
2283
|
DATE: 'date',
|
2301
2284
|
EMAIL: 'email',
|
2302
|
-
HTML: 'HTML'
|
2285
|
+
HTML: 'HTML',
|
2286
|
+
URL: 'URL'
|
2303
2287
|
};
|
2304
2288
|
/**
|
2305
2289
|
* CHECK
|
@@ -2727,7 +2711,6 @@ var TabbedContentEditor = function TabbedContentEditor(_ref2) {
|
|
2727
2711
|
}
|
2728
2712
|
|
2729
2713
|
var sections = content.sections();
|
2730
|
-
console.log("TabbedContentEditor", sections);
|
2731
2714
|
return /*#__PURE__*/React.createElement("div", {
|
2732
2715
|
className: "content-editor tabbed"
|
2733
2716
|
}, /*#__PURE__*/React.createElement(Tabs, {
|
@@ -2999,7 +2982,10 @@ var StringEditor = function StringEditor(_ref6) {
|
|
2999
2982
|
return /*#__PURE__*/React.createElement("div", {
|
3000
2983
|
className: "field-editor string-editor"
|
3001
2984
|
}, format === FORMATS.HTML ? /*#__PURE__*/React.createElement(Editor, {
|
3002
|
-
|
2985
|
+
id: id,
|
2986
|
+
value: value,
|
2987
|
+
onChange: change,
|
2988
|
+
content: content
|
3003
2989
|
}) : null, format === FORMATS.DATE ? /*#__PURE__*/React.createElement(TextField, {
|
3004
2990
|
outlined: outlined,
|
3005
2991
|
id: id,
|