@pageboard/html 0.14.28 → 0.14.29
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/elements/layout.js +12 -1
- package/elements/page.js +5 -0
- package/package.json +1 -1
package/elements/layout.js
CHANGED
|
@@ -7,7 +7,8 @@ exports.units = {
|
|
|
7
7
|
{ const: 'ch' },
|
|
8
8
|
{ const: 'vw' },
|
|
9
9
|
{ const: 'rem' },
|
|
10
|
-
{ const: 'px' }
|
|
10
|
+
{ const: 'px' },
|
|
11
|
+
{ const: '%' }
|
|
11
12
|
],
|
|
12
13
|
default: 'em',
|
|
13
14
|
$helper: 'units'
|
|
@@ -114,6 +115,15 @@ exports.layout = {
|
|
|
114
115
|
title: "Contained"
|
|
115
116
|
}]
|
|
116
117
|
},
|
|
118
|
+
maxWidth: {
|
|
119
|
+
title: 'Max width',
|
|
120
|
+
type: 'number',
|
|
121
|
+
minimum: 0,
|
|
122
|
+
nullable: true
|
|
123
|
+
},
|
|
124
|
+
maxWidthUnits: {
|
|
125
|
+
$ref: "#/definitions/units/properties/data/properties/inline"
|
|
126
|
+
},
|
|
117
127
|
height: {
|
|
118
128
|
title: 'Height',
|
|
119
129
|
type: 'number',
|
|
@@ -374,6 +384,7 @@ exports.layout = {
|
|
|
374
384
|
style-margin-inline="[margins.inline|fail:][margins.inlineUnits]"
|
|
375
385
|
style-padding-block="[padding.block|fail:][padding.blockUnits]"
|
|
376
386
|
style-padding-inline="[padding.inline|fail:][padding.inlineUnits]"
|
|
387
|
+
style-max-width="[maxWidth|fail:][maxWidthUnits]"
|
|
377
388
|
style-height="[height|fail:][heightUnits]"
|
|
378
389
|
style-background-color="[background.color]"
|
|
379
390
|
style-background-size="[background.size]"
|
package/elements/page.js
CHANGED