@rettangoli/ui 0.1.32-rc1 → 1.0.0-rc2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rettangoli/ui",
3
- "version": "0.1.32-rc1",
3
+ "version": "1.0.0-rc2",
4
4
  "description": "A UI component library for building web interfaces.",
5
5
  "main": "dist/rettangoli-esm.min.js",
6
6
  "type": "module",
@@ -25,7 +25,9 @@
25
25
  "scripts": {
26
26
  "check:contracts": "rtgl fe check",
27
27
  "build:dev": "rtgl fe build -d && bun run esbuild-dev.js",
28
- "build": "rtgl fe build && bun run esbuild.js",
28
+ "build": "rtgl fe build && bun run esbuild.js && bun run esbuild-dev.js && npm run verify:vt-bundle",
29
+ "verify:vt-bundle": "rg -q 'customElements\\.define\\(\"rtgl-button\"' vt/static/public/main.js",
30
+ "prepack": "npm run build",
29
31
  "vt:generate": "bun run build:dev && rtgl vt generate --skip-screenshots",
30
32
  "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.38 rtgl vt generate",
31
33
  "vt:report": "bun run vt:docker && rtgl vt report",
@@ -53,7 +53,24 @@ class RettangoliButtonElement extends HTMLElement {
53
53
  a.surface:visited,
54
54
  a.surface:hover,
55
55
  a.surface:active {
56
- color: inherit;
56
+ display: flex;
57
+ flex-direction: row;
58
+ align-items: center;
59
+ justify-content: center;
60
+ gap: var(--spacing-md);
61
+ border-width: 0px;
62
+ border-style: solid;
63
+ border-color: var(--border);
64
+ height: 32px;
65
+ padding-left: 16px;
66
+ padding-right: 16px;
67
+ border-radius: 4px;
68
+ font-size: var(--sm-font-size);
69
+ font-weight: var(--sm-font-weight);
70
+ line-height: var(--sm-line-height);
71
+ letter-spacing: var(--sm-letter-spacing);
72
+ background-color: var(--primary);
73
+ color: var(--primary-foreground);
57
74
  text-decoration: none;
58
75
  }
59
76