@rettangoli/ui 1.2.4 → 1.3.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/dist/rettangoli-iife-layout.min.js +5 -3
- package/dist/rettangoli-iife-ui.min.js +6 -4
- package/dist/themes/theme-catppuccin.css +2 -0
- package/dist/themes/theme-rtgl-mono.css +2 -0
- package/dist/themes/theme-rtgl-slate.css +2 -0
- package/package.json +1 -1
- package/src/components/select/select.view.yaml +1 -1
- package/src/primitives/popover.js +2 -2
- package/src/styles/viewStyles.js +4 -0
- package/src/styles/viewStylesForTarget.js +2 -0
- package/src/themes/theme-catppuccin.css +2 -0
- package/src/themes/theme-rtgl-mono.css +2 -0
- package/src/themes/theme-rtgl-slate.css +2 -0
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
--destructive-foreground: #eff1f5;
|
|
77
77
|
|
|
78
78
|
--background: #eff1f5;
|
|
79
|
+
--surface: #eceff4;
|
|
79
80
|
--foreground: #4c4f69;
|
|
80
81
|
--muted: #e6e9ef;
|
|
81
82
|
--muted-foreground: #6c6f85;
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
.dark {
|
|
95
96
|
/* Catppuccin Mocha */
|
|
96
97
|
--background: #1e1e2e;
|
|
98
|
+
--surface: #252536;
|
|
97
99
|
--foreground: #cdd6f4;
|
|
98
100
|
--primary: #89b4fa;
|
|
99
101
|
--primary-foreground: #1e1e2e;
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
--destructive-foreground: #fcf3f3;
|
|
76
76
|
|
|
77
77
|
--background: #fff;
|
|
78
|
+
--surface: #fafafa;
|
|
78
79
|
--foreground: #0a0a0a;
|
|
79
80
|
--muted: #f5f5f5;
|
|
80
81
|
--muted-foreground: #737373;
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
|
|
93
94
|
.dark {
|
|
94
95
|
--background: #0a0a0a;
|
|
96
|
+
--surface: #141414;
|
|
95
97
|
--foreground: #fafafa;
|
|
96
98
|
--primary: #e5e5e5;
|
|
97
99
|
--primary-foreground: #171717;
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
--destructive-foreground: oklch(0.145 0 0);
|
|
76
76
|
|
|
77
77
|
--background: oklch(1 0 0);
|
|
78
|
+
--surface: oklch(0.985 0 0);
|
|
78
79
|
--foreground: oklch(0.145 0 0);
|
|
79
80
|
--muted: oklch(0.97 0 0);
|
|
80
81
|
--muted-foreground: oklch(0.556 0 0);
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
|
|
93
94
|
.dark {
|
|
94
95
|
--background: rgb(29 29 29);
|
|
96
|
+
--surface: rgb(36 36 36);
|
|
95
97
|
--foreground: rgb(242 242 242);
|
|
96
98
|
--primary: oklch(0.922 0 0);
|
|
97
99
|
--primary-foreground: oklch(0.305 0 0);
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ refs:
|
|
|
30
30
|
mouseleave:
|
|
31
31
|
handler: handleAddOptionMouseLeave
|
|
32
32
|
template:
|
|
33
|
-
- 'rtgl-view#selectButton style="display: inline-flex;" d=h av=c h=32 ph=md bw=xs bc=bo h-bc=${selectButtonHoverBorderColor} br=md bgc=
|
|
33
|
+
- 'rtgl-view#selectButton style="display: inline-flex;" d=h av=c h=32 ph=md bw=xs bc=bo h-bc=${selectButtonHoverBorderColor} br=md bgc=su cur=${selectButtonCursor} ${containerAttrString} data-testid="select-button" role="button" tabindex=${selectButtonTabIndex} aria-disabled=${isDisabled}':
|
|
34
34
|
- rtgl-view d=h av=c ah=s w=f:
|
|
35
35
|
- rtgl-text w=1fg ta=s c=${selectedLabelColor} ellipsis: ${selectedLabel}
|
|
36
36
|
- $if showClear:
|
|
@@ -195,7 +195,7 @@ class RettangoliPopoverElement extends HTMLElement {
|
|
|
195
195
|
this._contentWrapper = document.createElement("rtgl-view");
|
|
196
196
|
this._contentWrapper.setAttribute(CONTENT_WRAPPER_ATTR, "");
|
|
197
197
|
this._contentWrapper.setAttribute("part", "content");
|
|
198
|
-
this._contentWrapper.setAttribute("bgc", "
|
|
198
|
+
this._contentWrapper.setAttribute("bgc", "su");
|
|
199
199
|
this._contentWrapper.setAttribute("bw", "xs");
|
|
200
200
|
this._contentWrapper.setAttribute("bc", "bo");
|
|
201
201
|
this._contentWrapper.setAttribute("br", "md");
|
|
@@ -231,7 +231,7 @@ class RettangoliPopoverElement extends HTMLElement {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
wrapper.setAttribute("bgc", this.getAttribute("content-bgc") || "
|
|
234
|
+
wrapper.setAttribute("bgc", this.getAttribute("content-bgc") || "su");
|
|
235
235
|
wrapper.setAttribute("ph", "sm");
|
|
236
236
|
wrapper.setAttribute("pv", this.getAttribute("content-pv") || "sm");
|
|
237
237
|
|
package/src/styles/viewStyles.js
CHANGED
|
@@ -26,6 +26,9 @@ const styles = {
|
|
|
26
26
|
bg: `
|
|
27
27
|
background-color: var(--background);
|
|
28
28
|
`,
|
|
29
|
+
su: `
|
|
30
|
+
background-color: var(--surface);
|
|
31
|
+
`,
|
|
29
32
|
mu: `
|
|
30
33
|
background-color: var(--muted);
|
|
31
34
|
`,
|
|
@@ -98,6 +101,7 @@ const styles = {
|
|
|
98
101
|
de: "--destructive",
|
|
99
102
|
fg: "--foreground",
|
|
100
103
|
bg: "--background",
|
|
104
|
+
su: "--surface",
|
|
101
105
|
mu: "--muted",
|
|
102
106
|
ac: "--accent",
|
|
103
107
|
bo: "--border",
|
|
@@ -16,6 +16,7 @@ const styles = {
|
|
|
16
16
|
de: `background-color: var(--destructive);`,
|
|
17
17
|
fg: `background-color: var(--foreground);`,
|
|
18
18
|
bg: `background-color: var(--background);`,
|
|
19
|
+
su: `background-color: var(--surface);`,
|
|
19
20
|
mu: `background-color: var(--muted);`,
|
|
20
21
|
ac: `background-color: var(--accent);`,
|
|
21
22
|
bo: `background-color: var(--border);`,
|
|
@@ -41,6 +42,7 @@ const styles = {
|
|
|
41
42
|
de: "--destructive",
|
|
42
43
|
fg: "--foreground",
|
|
43
44
|
bg: "--background",
|
|
45
|
+
su: "--surface",
|
|
44
46
|
mu: "--muted",
|
|
45
47
|
ac: "--accent",
|
|
46
48
|
bo: "--border",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
--destructive-foreground: #eff1f5;
|
|
77
77
|
|
|
78
78
|
--background: #eff1f5;
|
|
79
|
+
--surface: #eceff4;
|
|
79
80
|
--foreground: #4c4f69;
|
|
80
81
|
--muted: #e6e9ef;
|
|
81
82
|
--muted-foreground: #6c6f85;
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
.dark {
|
|
95
96
|
/* Catppuccin Mocha */
|
|
96
97
|
--background: #1e1e2e;
|
|
98
|
+
--surface: #252536;
|
|
97
99
|
--foreground: #cdd6f4;
|
|
98
100
|
--primary: #89b4fa;
|
|
99
101
|
--primary-foreground: #1e1e2e;
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
--destructive-foreground: #fcf3f3;
|
|
76
76
|
|
|
77
77
|
--background: #fff;
|
|
78
|
+
--surface: #fafafa;
|
|
78
79
|
--foreground: #0a0a0a;
|
|
79
80
|
--muted: #f5f5f5;
|
|
80
81
|
--muted-foreground: #737373;
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
|
|
93
94
|
.dark {
|
|
94
95
|
--background: #0a0a0a;
|
|
96
|
+
--surface: #141414;
|
|
95
97
|
--foreground: #fafafa;
|
|
96
98
|
--primary: #e5e5e5;
|
|
97
99
|
--primary-foreground: #171717;
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
--destructive-foreground: oklch(0.145 0 0);
|
|
76
76
|
|
|
77
77
|
--background: oklch(1 0 0);
|
|
78
|
+
--surface: oklch(0.985 0 0);
|
|
78
79
|
--foreground: oklch(0.145 0 0);
|
|
79
80
|
--muted: oklch(0.97 0 0);
|
|
80
81
|
--muted-foreground: oklch(0.556 0 0);
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
|
|
93
94
|
.dark {
|
|
94
95
|
--background: rgb(29 29 29);
|
|
96
|
+
--surface: rgb(36 36 36);
|
|
95
97
|
--foreground: rgb(242 242 242);
|
|
96
98
|
--primary: oklch(0.922 0 0);
|
|
97
99
|
--primary-foreground: oklch(0.305 0 0);
|