@rettangoli/ui 0.1.28 → 0.1.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.
@@ -532,6 +532,13 @@ var rettangoli=(()=>{function d(s,...t){let i="";return s.forEach((n,o)=>{i+=n+(
532
532
  height: 100%;
533
533
  width: 100%;
534
534
  }
535
+ :host([w]:not([h]):not([wh])) img,
536
+ :host([sm-w]:not([sm-h]):not([sm-wh])) img,
537
+ :host([md-w]:not([md-h]):not([md-wh])) img,
538
+ :host([lg-w]:not([lg-h]):not([lg-wh])) img,
539
+ :host([xl-w]:not([xl-h]):not([xl-wh])) img {
540
+ height: auto;
541
+ }
535
542
 
536
543
  ${S}
537
544
 
@@ -532,6 +532,13 @@ var rettangoli=(()=>{var ni=Object.defineProperty;var P=(e,t)=>{for(var r in t)n
532
532
  height: 100%;
533
533
  width: 100%;
534
534
  }
535
+ :host([w]:not([h]):not([wh])) img,
536
+ :host([sm-w]:not([sm-h]):not([sm-wh])) img,
537
+ :host([md-w]:not([md-h]):not([md-wh])) img,
538
+ :host([lg-w]:not([lg-h]):not([lg-wh])) img,
539
+ :host([xl-w]:not([xl-h]):not([xl-wh])) img {
540
+ height: auto;
541
+ }
535
542
 
536
543
  ${_e}
537
544
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rettangoli/ui",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "A UI component library for building web interfaces.",
5
5
  "main": "dist/rettangoli-esm.min.js",
6
6
  "type": "module",
@@ -25,8 +25,9 @@
25
25
  "scripts": {
26
26
  "build:dev": "rtgl fe build -d && bun run esbuild-dev.js",
27
27
  "build": "rtgl fe build && bun run esbuild.js",
28
- "vt:generate": "rtgl fe build -d && bun run esbuild-dev.js && rtgl vt generate --skip-screenshots",
29
- "vt:report": "bun run build:dev && rtgl vt generate --screenshot-wait-time 500 && rtgl vt report",
28
+ "vt:generate": "bun run build:dev && rtgl vt generate",
29
+ "vt:docker": "bun run build:dev && docker run --rm --user $(id -u):$(id -g) -v \"$PWD:/app\" -w /app han4wluc/rtgl:playwright-v1.57.0-rtgl-v0.0.36 rtgl vt generate",
30
+ "vt:report": "bun run vt:docker && rtgl vt report",
30
31
  "vt:accept": "rtgl vt accept",
31
32
  "serve": "bunx serve .rettangoli/vt/_site"
32
33
  },
@@ -34,7 +35,7 @@
34
35
  "esbuild": "^0.20.0",
35
36
  "looks-same": "^9.0.1",
36
37
  "pixelmatch": "^6.0.0",
37
- "playwright": "^1.46.0",
38
+ "playwright": "1.57.0",
38
39
  "pngjs": "^7.0.0"
39
40
  },
40
41
  "keywords": [
@@ -40,6 +40,13 @@ class RettangoliImageElement extends HTMLElement {
40
40
  height: 100%;
41
41
  width: 100%;
42
42
  }
43
+ :host([w]:not([h]):not([wh])) img,
44
+ :host([sm-w]:not([sm-h]):not([sm-wh])) img,
45
+ :host([md-w]:not([md-h]):not([md-wh])) img,
46
+ :host([lg-w]:not([lg-h]):not([lg-wh])) img,
47
+ :host([xl-w]:not([xl-h]):not([xl-wh])) img {
48
+ height: auto;
49
+ }
43
50
 
44
51
  ${anchorStyles}
45
52