@react-pdf/stylesheet 4.0.0 → 4.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @react-pdf/stylesheet
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2160](https://github.com/diegomura/react-pdf/pull/2160) [`a743c90`](https://github.com/diegomura/react-pdf/commit/a743c905fb5d201d2382bc9175fa36b83cc47284) Thanks [@jeetiss](https://github.com/jeetiss)! - implement flex gap
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`a743c90`](https://github.com/diegomura/react-pdf/commit/a743c905fb5d201d2382bc9175fa36b83cc47284)]:
12
+ - @react-pdf/types@2.2.0
13
+
3
14
  ## 4.0.0
4
15
 
5
16
  ### Major Changes
package/lib/index.cjs.js CHANGED
@@ -296,8 +296,17 @@ var expandTransformOrigin = function expandTransformOrigin(key, value) {
296
296
  };
297
297
  };
298
298
 
299
+ var expandGap = function expandGap(key, value) {
300
+ var match = ("" + value).split(' ');
301
+ return {
302
+ rowGap: (match === null || match === void 0 ? void 0 : match[0]) || value,
303
+ columnGap: (match === null || match === void 0 ? void 0 : match[1]) || value
304
+ };
305
+ };
306
+
299
307
  var shorthands = {
300
308
  flex: expandFlex,
309
+ gap: expandGap,
301
310
  margin: processMargin,
302
311
  marginHorizontal: processMarginHorizontal,
303
312
  marginVertical: processMarginVertical,
package/lib/index.es.js CHANGED
@@ -283,8 +283,17 @@ var expandTransformOrigin = function expandTransformOrigin(key, value) {
283
283
  };
284
284
  };
285
285
 
286
+ var expandGap = function expandGap(key, value) {
287
+ var match = ("" + value).split(' ');
288
+ return {
289
+ rowGap: (match === null || match === void 0 ? void 0 : match[0]) || value,
290
+ columnGap: (match === null || match === void 0 ? void 0 : match[1]) || value
291
+ };
292
+ };
293
+
286
294
  var shorthands = {
287
295
  flex: expandFlex,
296
+ gap: expandGap,
288
297
  margin: processMargin,
289
298
  marginHorizontal: processMarginHorizontal,
290
299
  marginVertical: processMarginVertical,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pdf/stylesheet",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "license": "MIT",
5
5
  "description": "A styles engine for Node and the browser",
6
6
  "author": "Diego Muracciole <diegomuracciole@gmail.com>",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@babel/runtime": "^7.16.4",
22
22
  "@react-pdf/fns": "2.0.0",
23
- "@react-pdf/types": "^2.1.0",
23
+ "@react-pdf/types": "^2.2.0",
24
24
  "color-string": "^1.5.3",
25
25
  "hsl-to-hex": "^1.0.0",
26
26
  "media-engine": "^1.0.3",