@rpgjs/ui-css 5.0.0-beta.1 → 5.0.0-beta.10
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/LICENSE +19 -0
- package/package.json +2 -2
- package/src/primitives/dialog.css +25 -9
- package/theme-default/theme.css +4 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (C) 2026 by Samuel Ronce
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpgjs/ui-css",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.10",
|
|
4
4
|
"description": "CSS library for RPG UI components - framework-agnostic and fully customizable",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Samuel Ronce",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"framework-agnostic"
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"vite": "^
|
|
32
|
+
"vite": "^8.0.10"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "echo 'CSS package - no build needed'"
|
|
@@ -25,18 +25,28 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.rpg-ui-dialog-container[data-full-width="false"] .rpg-ui-dialog {
|
|
28
|
+
width: min(720px, 100%);
|
|
29
|
+
max-width: 100%;
|
|
28
30
|
margin-left: auto;
|
|
29
31
|
margin-right: auto;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.rpg-ui-dialog {
|
|
35
|
+
--rpg-ui-dialog-min-height: 256px;
|
|
36
|
+
--rpg-ui-dialog-padding: 24px;
|
|
37
|
+
--rpg-ui-dialog-face-margin: 8px;
|
|
38
|
+
--rpg-ui-dialog-face-size: calc(
|
|
39
|
+
var(--rpg-ui-dialog-min-height) -
|
|
40
|
+
var(--rpg-ui-dialog-padding) * 2 -
|
|
41
|
+
var(--rpg-ui-dialog-face-margin) * 2
|
|
42
|
+
);
|
|
33
43
|
background: var(--rpg-ui-surface);
|
|
34
44
|
border: 4px solid var(--rpg-ui-border);
|
|
35
45
|
border-radius: var(--rpg-ui-radius-lg);
|
|
36
|
-
padding:
|
|
46
|
+
padding: var(--rpg-ui-dialog-padding);
|
|
37
47
|
position: relative;
|
|
38
48
|
box-shadow: var(--rpg-ui-shadow-lg);
|
|
39
|
-
min-height:
|
|
49
|
+
min-height: var(--rpg-ui-dialog-min-height);
|
|
40
50
|
display: flex;
|
|
41
51
|
flex-direction: column;
|
|
42
52
|
margin-top: 24px;
|
|
@@ -116,20 +126,26 @@
|
|
|
116
126
|
justify-content: flex-start;
|
|
117
127
|
flex-direction: row;
|
|
118
128
|
flex-wrap: nowrap;
|
|
129
|
+
flex: 1 1 auto;
|
|
119
130
|
min-height: 128px;
|
|
120
131
|
width: 100%;
|
|
121
132
|
}
|
|
122
133
|
|
|
134
|
+
.rpg-ui-dialog-body > :first-child {
|
|
135
|
+
flex: 1 1 auto;
|
|
136
|
+
min-width: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
123
139
|
.rpg-ui-dialog-face {
|
|
124
140
|
flex: 0 0 auto;
|
|
125
|
-
width:
|
|
126
|
-
height:
|
|
127
|
-
align-self:
|
|
128
|
-
|
|
141
|
+
width: var(--rpg-ui-dialog-face-size);
|
|
142
|
+
height: var(--rpg-ui-dialog-face-size);
|
|
143
|
+
align-self: center;
|
|
144
|
+
margin: var(--rpg-ui-dialog-face-margin) 0;
|
|
129
145
|
overflow: hidden;
|
|
130
|
-
background:
|
|
131
|
-
border:
|
|
132
|
-
box-shadow:
|
|
146
|
+
background: transparent;
|
|
147
|
+
border: 0;
|
|
148
|
+
box-shadow: none;
|
|
133
149
|
display: flex;
|
|
134
150
|
align-items: center;
|
|
135
151
|
justify-content: center;
|
package/theme-default/theme.css
CHANGED
|
@@ -264,6 +264,7 @@
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
.rpg-ui-dialog {
|
|
267
|
+
--rpg-ui-dialog-min-height: 220px;
|
|
267
268
|
min-height: 220px;
|
|
268
269
|
}
|
|
269
270
|
|
|
@@ -282,9 +283,9 @@
|
|
|
282
283
|
}
|
|
283
284
|
|
|
284
285
|
.rpg-ui-dialog-face {
|
|
285
|
-
border
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
border: 0;
|
|
287
|
+
background: transparent;
|
|
288
|
+
box-shadow: none;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
291
|
.rpg-ui-dialog-indicator {
|