@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.
@@ -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
@@ -6,6 +6,11 @@ exports.page.stylesheets = [
6
6
  '../ui/transition.css'
7
7
  ];
8
8
 
9
+ exports.page.resources = {
10
+ reset: '../ui/components/reset.css',
11
+ site: '../ui/site.css'
12
+ };
13
+
9
14
  exports.page.scripts = [
10
15
  ...exports.page.scripts,
11
16
  '../ui/transition.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.14.28",
3
+ "version": "0.14.29",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {