@micromag/screen-text 0.3.443 → 0.3.447
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/es/index.js +3 -28
- package/lib/index.js +3 -28
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -16,9 +16,6 @@ import Layout, { Spacer } from '@micromag/element-layout';
|
|
|
16
16
|
import Text from '@micromag/element-text';
|
|
17
17
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
18
18
|
import _extends from '@babel/runtime/helpers/extends';
|
|
19
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
20
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
21
|
-
import { Heading1, Text as Text$1, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
22
19
|
|
|
23
20
|
var styles = {"container":"micromag-screen-text-container","background":"micromag-screen-text-background","disabled":"micromag-screen-text-disabled","hidden":"micromag-screen-text-hidden","placeholder":"micromag-screen-text-placeholder","content":"micromag-screen-text-content","emptyTitle":"micromag-screen-text-emptyTitle","emptyText":"micromag-screen-text-emptyText","title":"micromag-screen-text-title","withMargin":"micromag-screen-text-withMargin","isPlaceholder":"micromag-screen-text-isPlaceholder","layout":"micromag-screen-text-layout"};
|
|
24
21
|
|
|
@@ -186,29 +183,7 @@ var TextTitleScreen = function TextTitleScreen(_ref) {
|
|
|
186
183
|
}));
|
|
187
184
|
};
|
|
188
185
|
|
|
189
|
-
|
|
190
|
-
var text = _ref.text,
|
|
191
|
-
title = _ref.title;
|
|
192
|
-
var _Heading = Heading1(newStory, title),
|
|
193
|
-
titleStory = _Heading.story,
|
|
194
|
-
titleComponent = _Heading.component;
|
|
195
|
-
var _Text = Text$1(titleStory, text),
|
|
196
|
-
textStory = _Text.story,
|
|
197
|
-
textComponent = _Text.component;
|
|
198
|
-
var _Container = Container$1(textStory, [].concat(_toConsumableArray(titleComponent ? [titleComponent] : []), _toConsumableArray(textComponent ? [textComponent] : []))),
|
|
199
|
-
containerStory = _Container.story,
|
|
200
|
-
containerComponent = _Container.component;
|
|
201
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
202
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
// eslint-disable-next-line
|
|
207
|
-
|
|
208
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
209
|
-
__proto__: null,
|
|
210
|
-
appleNews: transform
|
|
211
|
-
});
|
|
186
|
+
// import * as transforms from './transforms/index';
|
|
212
187
|
|
|
213
188
|
var definition = [{
|
|
214
189
|
id: 'text',
|
|
@@ -232,7 +207,7 @@ var definition = [{
|
|
|
232
207
|
}),
|
|
233
208
|
component: TextScreen,
|
|
234
209
|
layouts: ['top', 'middle', 'bottom'],
|
|
235
|
-
|
|
210
|
+
// transforms,
|
|
236
211
|
fields: [{
|
|
237
212
|
name: 'layout',
|
|
238
213
|
type: 'screen-layout',
|
|
@@ -326,7 +301,7 @@ var definition = [{
|
|
|
326
301
|
}),
|
|
327
302
|
component: TextTitleScreen,
|
|
328
303
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
329
|
-
|
|
304
|
+
// transforms,
|
|
330
305
|
fields: [{
|
|
331
306
|
name: 'layout',
|
|
332
307
|
type: 'screen-layout',
|
package/lib/index.js
CHANGED
|
@@ -20,9 +20,6 @@ var Layout = require('@micromag/element-layout');
|
|
|
20
20
|
var Text = require('@micromag/element-text');
|
|
21
21
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
22
22
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
23
|
-
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
24
|
-
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
25
|
-
var appleNews = require('@micromag/transforms/apple-news');
|
|
26
23
|
|
|
27
24
|
var styles = {"container":"micromag-screen-text-container","background":"micromag-screen-text-background","disabled":"micromag-screen-text-disabled","hidden":"micromag-screen-text-hidden","placeholder":"micromag-screen-text-placeholder","content":"micromag-screen-text-content","emptyTitle":"micromag-screen-text-emptyTitle","emptyText":"micromag-screen-text-emptyText","title":"micromag-screen-text-title","withMargin":"micromag-screen-text-withMargin","isPlaceholder":"micromag-screen-text-isPlaceholder","layout":"micromag-screen-text-layout"};
|
|
28
25
|
|
|
@@ -190,29 +187,7 @@ var TextTitleScreen = function TextTitleScreen(_ref) {
|
|
|
190
187
|
}));
|
|
191
188
|
};
|
|
192
189
|
|
|
193
|
-
|
|
194
|
-
var text = _ref.text,
|
|
195
|
-
title = _ref.title;
|
|
196
|
-
var _Heading = appleNews.Heading1(newStory, title),
|
|
197
|
-
titleStory = _Heading.story,
|
|
198
|
-
titleComponent = _Heading.component;
|
|
199
|
-
var _Text = appleNews.Text(titleStory, text),
|
|
200
|
-
textStory = _Text.story,
|
|
201
|
-
textComponent = _Text.component;
|
|
202
|
-
var _Container = appleNews.Container(textStory, [].concat(_toConsumableArray(titleComponent ? [titleComponent] : []), _toConsumableArray(textComponent ? [textComponent] : []))),
|
|
203
|
-
containerStory = _Container.story,
|
|
204
|
-
containerComponent = _Container.component;
|
|
205
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
206
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
207
|
-
});
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
// eslint-disable-next-line
|
|
211
|
-
|
|
212
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
213
|
-
__proto__: null,
|
|
214
|
-
appleNews: transform
|
|
215
|
-
});
|
|
190
|
+
// import * as transforms from './transforms/index';
|
|
216
191
|
|
|
217
192
|
var definition = [{
|
|
218
193
|
id: 'text',
|
|
@@ -236,7 +211,7 @@ var definition = [{
|
|
|
236
211
|
}),
|
|
237
212
|
component: TextScreen,
|
|
238
213
|
layouts: ['top', 'middle', 'bottom'],
|
|
239
|
-
|
|
214
|
+
// transforms,
|
|
240
215
|
fields: [{
|
|
241
216
|
name: 'layout',
|
|
242
217
|
type: 'screen-layout',
|
|
@@ -330,7 +305,7 @@ var definition = [{
|
|
|
330
305
|
}),
|
|
331
306
|
component: TextTitleScreen,
|
|
332
307
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
333
|
-
|
|
308
|
+
// transforms,
|
|
334
309
|
fields: [{
|
|
335
310
|
name: 'layout',
|
|
336
311
|
type: 'screen-layout',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-text",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.447",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-background": "^0.3.
|
|
64
|
-
"@micromag/element-container": "^0.3.
|
|
65
|
-
"@micromag/element-footer": "^0.3.
|
|
66
|
-
"@micromag/element-header": "^0.3.
|
|
67
|
-
"@micromag/element-heading": "^0.3.
|
|
68
|
-
"@micromag/element-layout": "^0.3.
|
|
69
|
-
"@micromag/element-text": "^0.3.
|
|
70
|
-
"@micromag/transforms": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.447",
|
|
63
|
+
"@micromag/element-background": "^0.3.447",
|
|
64
|
+
"@micromag/element-container": "^0.3.447",
|
|
65
|
+
"@micromag/element-footer": "^0.3.447",
|
|
66
|
+
"@micromag/element-header": "^0.3.447",
|
|
67
|
+
"@micromag/element-heading": "^0.3.447",
|
|
68
|
+
"@micromag/element-layout": "^0.3.447",
|
|
69
|
+
"@micromag/element-text": "^0.3.447",
|
|
70
|
+
"@micromag/transforms": "^0.3.447",
|
|
71
71
|
"classnames": "^2.2.6",
|
|
72
72
|
"lodash": "^4.17.21",
|
|
73
73
|
"prop-types": "^15.7.2",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"access": "public",
|
|
79
79
|
"registry": "https://registry.npmjs.org/"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "ec175c602ce6f59b7561f57c92da443814109d50"
|
|
82
82
|
}
|