@micromag/screen-title 0.3.444 → 0.3.452
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 +4 -35
- package/lib/index.js +4 -35
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -17,9 +17,6 @@ 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
19
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
20
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
21
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
22
|
-
import { Heading1, Heading2, Text as Text$1, Container as Container$1 } from '@micromag/transforms/apple-news';
|
|
23
20
|
|
|
24
21
|
var styles = {"container":"micromag-screen-title-container","background":"micromag-screen-title-background","disabled":"micromag-screen-title-disabled","hidden":"micromag-screen-title-hidden","placeholder":"micromag-screen-title-placeholder","content":"micromag-screen-title-content","emptyTitle":"micromag-screen-title-emptyTitle","emptySubtitle":"micromag-screen-title-emptySubtitle","emptyDescription":"micromag-screen-title-emptyDescription","title":"micromag-screen-title-title","withMargin":"micromag-screen-title-withMargin","subtitle":"micromag-screen-title-subtitle","box":"micromag-screen-title-box","isPlaceholder":"micromag-screen-title-isPlaceholder","layout":"micromag-screen-title-layout"};
|
|
25
22
|
|
|
@@ -280,34 +277,6 @@ var TitleWithBoxScreen = function TitleWithBoxScreen(props) {
|
|
|
280
277
|
TitleWithBoxScreen.propTypes = propTypes;
|
|
281
278
|
TitleWithBoxScreen.defaultProps = defaultProps;
|
|
282
279
|
|
|
283
|
-
var transform = function transform(newStory, _ref) {
|
|
284
|
-
var title = _ref.title,
|
|
285
|
-
subtitle = _ref.subtitle,
|
|
286
|
-
credits = _ref.credits;
|
|
287
|
-
var _Heading = Heading1(newStory, title),
|
|
288
|
-
titleStory = _Heading.story,
|
|
289
|
-
titleComponent = _Heading.component;
|
|
290
|
-
var _Heading2 = Heading2(titleStory, subtitle),
|
|
291
|
-
subtitleStory = _Heading2.story,
|
|
292
|
-
subtitleComponent = _Heading2.component;
|
|
293
|
-
var _Text = Text$1(subtitleStory, credits),
|
|
294
|
-
creditsStory = _Text.story,
|
|
295
|
-
creditsComponent = _Text.component;
|
|
296
|
-
var _Container = Container$1(creditsStory, [].concat(_toConsumableArray(titleComponent ? [titleComponent] : []), _toConsumableArray(subtitleComponent ? [subtitleComponent] : []), _toConsumableArray(creditsComponent ? [creditsComponent] : []))),
|
|
297
|
-
containerStory = _Container.story,
|
|
298
|
-
containerComponent = _Container.component;
|
|
299
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
300
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
301
|
-
});
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
// eslint-disable-next-line
|
|
305
|
-
|
|
306
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
307
|
-
__proto__: null,
|
|
308
|
-
appleNews: transform
|
|
309
|
-
});
|
|
310
|
-
|
|
311
280
|
var definition = [{
|
|
312
281
|
id: 'title',
|
|
313
282
|
type: 'screen',
|
|
@@ -330,7 +299,7 @@ var definition = [{
|
|
|
330
299
|
}),
|
|
331
300
|
component: TitleScreen,
|
|
332
301
|
layouts: ['top', 'middle', 'bottom'],
|
|
333
|
-
|
|
302
|
+
// transforms,
|
|
334
303
|
fields: [{
|
|
335
304
|
name: 'layout',
|
|
336
305
|
type: 'screen-layout',
|
|
@@ -424,7 +393,7 @@ var definition = [{
|
|
|
424
393
|
}),
|
|
425
394
|
component: TitleSubtitleScreen,
|
|
426
395
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
427
|
-
|
|
396
|
+
// transforms,
|
|
428
397
|
fields: [{
|
|
429
398
|
name: 'layout',
|
|
430
399
|
type: 'screen-layout',
|
|
@@ -531,7 +500,7 @@ var definition = [{
|
|
|
531
500
|
}),
|
|
532
501
|
component: TitleSubtitleCreditsScreen,
|
|
533
502
|
layouts: ['top', 'middle', 'bottom', 'split-top', 'split-bottom'],
|
|
534
|
-
|
|
503
|
+
// transforms,
|
|
535
504
|
fields: [{
|
|
536
505
|
name: 'layout',
|
|
537
506
|
type: 'screen-layout',
|
|
@@ -651,7 +620,7 @@ var definition = [{
|
|
|
651
620
|
}),
|
|
652
621
|
component: TitleWithBoxScreen,
|
|
653
622
|
layouts: ['top', 'middle', 'bottom', 'split-top', 'split-bottom'],
|
|
654
|
-
|
|
623
|
+
// transforms,
|
|
655
624
|
fields: [{
|
|
656
625
|
name: 'layout',
|
|
657
626
|
type: 'screen-layout',
|
package/lib/index.js
CHANGED
|
@@ -21,9 +21,6 @@ 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
23
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
24
|
-
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
25
|
-
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
26
|
-
var appleNews = require('@micromag/transforms/apple-news');
|
|
27
24
|
|
|
28
25
|
var styles = {"container":"micromag-screen-title-container","background":"micromag-screen-title-background","disabled":"micromag-screen-title-disabled","hidden":"micromag-screen-title-hidden","placeholder":"micromag-screen-title-placeholder","content":"micromag-screen-title-content","emptyTitle":"micromag-screen-title-emptyTitle","emptySubtitle":"micromag-screen-title-emptySubtitle","emptyDescription":"micromag-screen-title-emptyDescription","title":"micromag-screen-title-title","withMargin":"micromag-screen-title-withMargin","subtitle":"micromag-screen-title-subtitle","box":"micromag-screen-title-box","isPlaceholder":"micromag-screen-title-isPlaceholder","layout":"micromag-screen-title-layout"};
|
|
29
26
|
|
|
@@ -284,34 +281,6 @@ var TitleWithBoxScreen = function TitleWithBoxScreen(props) {
|
|
|
284
281
|
TitleWithBoxScreen.propTypes = propTypes;
|
|
285
282
|
TitleWithBoxScreen.defaultProps = defaultProps;
|
|
286
283
|
|
|
287
|
-
var transform = function transform(newStory, _ref) {
|
|
288
|
-
var title = _ref.title,
|
|
289
|
-
subtitle = _ref.subtitle,
|
|
290
|
-
credits = _ref.credits;
|
|
291
|
-
var _Heading = appleNews.Heading1(newStory, title),
|
|
292
|
-
titleStory = _Heading.story,
|
|
293
|
-
titleComponent = _Heading.component;
|
|
294
|
-
var _Heading2 = appleNews.Heading2(titleStory, subtitle),
|
|
295
|
-
subtitleStory = _Heading2.story,
|
|
296
|
-
subtitleComponent = _Heading2.component;
|
|
297
|
-
var _Text = appleNews.Text(subtitleStory, credits),
|
|
298
|
-
creditsStory = _Text.story,
|
|
299
|
-
creditsComponent = _Text.component;
|
|
300
|
-
var _Container = appleNews.Container(creditsStory, [].concat(_toConsumableArray(titleComponent ? [titleComponent] : []), _toConsumableArray(subtitleComponent ? [subtitleComponent] : []), _toConsumableArray(creditsComponent ? [creditsComponent] : []))),
|
|
301
|
-
containerStory = _Container.story,
|
|
302
|
-
containerComponent = _Container.component;
|
|
303
|
-
return _objectSpread(_objectSpread({}, containerStory), {}, {
|
|
304
|
-
components: [].concat(_toConsumableArray(newStory.components || []), _toConsumableArray(containerComponent ? [containerComponent] : []))
|
|
305
|
-
});
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
// eslint-disable-next-line
|
|
309
|
-
|
|
310
|
-
var transforms = /*#__PURE__*/Object.freeze({
|
|
311
|
-
__proto__: null,
|
|
312
|
-
appleNews: transform
|
|
313
|
-
});
|
|
314
|
-
|
|
315
284
|
var definition = [{
|
|
316
285
|
id: 'title',
|
|
317
286
|
type: 'screen',
|
|
@@ -334,7 +303,7 @@ var definition = [{
|
|
|
334
303
|
}),
|
|
335
304
|
component: TitleScreen,
|
|
336
305
|
layouts: ['top', 'middle', 'bottom'],
|
|
337
|
-
|
|
306
|
+
// transforms,
|
|
338
307
|
fields: [{
|
|
339
308
|
name: 'layout',
|
|
340
309
|
type: 'screen-layout',
|
|
@@ -428,7 +397,7 @@ var definition = [{
|
|
|
428
397
|
}),
|
|
429
398
|
component: TitleSubtitleScreen,
|
|
430
399
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
431
|
-
|
|
400
|
+
// transforms,
|
|
432
401
|
fields: [{
|
|
433
402
|
name: 'layout',
|
|
434
403
|
type: 'screen-layout',
|
|
@@ -535,7 +504,7 @@ var definition = [{
|
|
|
535
504
|
}),
|
|
536
505
|
component: TitleSubtitleCreditsScreen,
|
|
537
506
|
layouts: ['top', 'middle', 'bottom', 'split-top', 'split-bottom'],
|
|
538
|
-
|
|
507
|
+
// transforms,
|
|
539
508
|
fields: [{
|
|
540
509
|
name: 'layout',
|
|
541
510
|
type: 'screen-layout',
|
|
@@ -655,7 +624,7 @@ var definition = [{
|
|
|
655
624
|
}),
|
|
656
625
|
component: TitleWithBoxScreen,
|
|
657
626
|
layouts: ['top', 'middle', 'bottom', 'split-top', 'split-bottom'],
|
|
658
|
-
|
|
627
|
+
// transforms,
|
|
659
628
|
fields: [{
|
|
660
629
|
name: 'layout',
|
|
661
630
|
type: 'screen-layout',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-title",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.452",
|
|
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.452",
|
|
63
|
+
"@micromag/element-background": "^0.3.452",
|
|
64
|
+
"@micromag/element-container": "^0.3.452",
|
|
65
|
+
"@micromag/element-footer": "^0.3.452",
|
|
66
|
+
"@micromag/element-header": "^0.3.452",
|
|
67
|
+
"@micromag/element-heading": "^0.3.452",
|
|
68
|
+
"@micromag/element-layout": "^0.3.452",
|
|
69
|
+
"@micromag/element-text": "^0.3.452",
|
|
70
|
+
"@micromag/transforms": "^0.3.452",
|
|
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": "aec551095929a41f43406d0da6e3cfe7f394b92e"
|
|
82
82
|
}
|