@fullstackunicorn/style 1.0.8 → 1.0.9

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.
@@ -77,18 +77,20 @@ export const ratioXY = {
77
77
  nativeStyle: ({ X, Y }) => ([`ratioXY_${X}_${Y}: { aspectRatio: ${X / Y} }`]),
78
78
  }
79
79
 
80
-
81
- // image normalize cover
82
-
83
80
  export const cover = {
84
81
  target: `fixed`,
85
- write: (n='') => ([`cover`]),
86
- webClasses: (n) => ([`cover: 'cover'`]),
87
- webStyle: (n) => ([
88
- `.cover { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block }`
89
- ]),
90
- nativeClasses: (n) => ([`cover: style['cover']`]),
91
- nativeStyle: (n) => ([
92
- `cover: { width: '100%', height: '100%', resizeMode: 'cover' }`
93
- ])
82
+ write: () => ([`cover`]),
83
+ webClasses: () => ([`cover: 'cover'`]),
84
+ webStyle: () => ([`.cover { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block }`]),
85
+ nativeClasses: () => ([`cover: style['cover']`]),
86
+ nativeStyle: () => ([`cover: { width: '100%', height: '100%', resizeMode: 'cover' }`])
87
+ }
88
+
89
+ export const noPointer = {
90
+ target: `fixed`,
91
+ write: (n='') => ([`noPointer`]),
92
+ webClasses: (n) => ([`noPointer: 'noPointer'`]),
93
+ webStyle: (n) => ([`.noPointer { pointer-events: none }`]),
94
+ nativeClasses: (n) => ([`noPointer: style['noPointer']`]),
95
+ nativeStyle: (n) => ([`noPointer: { pointerEvents: 'none' }`])
94
96
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.8",
2
+ "version": "1.0.9",
3
3
  "name": "@fullstackunicorn/style",
4
4
  "author": "lucanigido (https://fullstackunicorn.dev/author/lucanigido)",
5
5
  "description": "A development utility for generating responsive web and native styles (CSS, SCSS, JS, RN) from a declarative style.config.js file.",