@guildofgleks/ui 21.8.0 → 21.9.1
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/AGENTS.md +120 -5
- package/CHANGELOG.md +383 -0
- package/README.md +24 -3
- package/TOKENS.md +49 -47
- package/fesm2022/guildofgleks-ui.mjs +316 -48
- package/fesm2022/guildofgleks-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/button.css +165 -0
- package/styles/menu.css +120 -114
- package/styles/presets/bevel.css +87 -82
- package/styles/presets/material.css +122 -111
- package/styles/presets/one-dark.css +14 -2
- package/styles/presets/one-light.css +17 -4
- package/styles/presets/primeng.css +139 -121
- package/styles/presets/slate.css +17 -4
- package/styles/theme.css +447 -94
- package/types/guildofgleks-ui.d.ts +176 -10
package/README.md
CHANGED
|
@@ -168,6 +168,16 @@ variant and size classes:
|
|
|
168
168
|
> "what a raised surface looks like here". Change one and every raised surface follows, which is
|
|
169
169
|
> the intent; the rest of `--gog-panel-*` belongs to the component alone.
|
|
170
170
|
|
|
171
|
+
**A status colour is three tokens, not one.** `--gog-danger-color` and its three siblings are
|
|
172
|
+
fills, and a fill needs a label that reads on it and a direction to deepen in — so each also has
|
|
173
|
+
`--gog-<status>-text-color` (the label; defaults to the accent's, state it only when your hue
|
|
174
|
+
disagrees) and `--gog-<status>-shade` (which way hover and press move; defaults to the page's ink,
|
|
175
|
+
and should be the opposite when your label *is* the ink). Setting a status colour alone and
|
|
176
|
+
leaving those at their defaults is how a bright amber ends up under white text: it measured 1.97:1
|
|
177
|
+
in one of this package's own presets before 21.9.0. `gogBadge` and `gog-button`'s `severity` read
|
|
178
|
+
the label; the button also reads the shade. `gog-tag` derives its own pair by mixing and
|
|
179
|
+
`gog-progressbar` paints no label on its bar, so neither needs them.
|
|
180
|
+
|
|
171
181
|
Every group and token name is in **[`TOKENS.md`](./TOKENS.md)**, generated from `theme.css` so it
|
|
172
182
|
cannot drift, and available at runtime as `GOG_TOKEN_GROUPS`.
|
|
173
183
|
|
|
@@ -263,9 +273,20 @@ provideGogConfig({
|
|
|
263
273
|
```
|
|
264
274
|
|
|
265
275
|
Keys: `control`, `dropdown`, `floatLabel`, `datepicker`, `autocomplete`, `inputfield`, `textarea`,
|
|
266
|
-
`tooltip`, `scroll`, `button`, `ripple`, `paginator`, `toast`, `theme`, `labels`. An
|
|
267
|
-
input always wins, and providing the config again lower in the injector tree layers
|
|
268
|
-
parent rather than replacing it.
|
|
276
|
+
`tooltip`, `scroll`, `button`, `ripple`, `spinner`, `paginator`, `toast`, `theme`, `labels`. An
|
|
277
|
+
instance's own input always wins, and providing the config again lower in the injector tree layers
|
|
278
|
+
onto the parent rather than replacing it.
|
|
279
|
+
|
|
280
|
+
`spinner` is the one key that takes a **component** rather than a value:
|
|
281
|
+
|
|
282
|
+
```ts
|
|
283
|
+
provideGogConfig({ spinner: { component: HouseLoader } });
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
That renders your loader wherever the library draws a spinner — including the two places no input
|
|
287
|
+
could reach, since `gog-button` and `gog-autocomplete` render their own and expose nothing for it.
|
|
288
|
+
It keeps the library's sizing, overlay behaviour, `role="status"` and accessible name; only the
|
|
289
|
+
visual is yours.
|
|
269
290
|
|
|
270
291
|
`ripple` is the one visual default that is not a token, and the exception is deliberate:
|
|
271
292
|
`--gog-ripple-opacity: 0` would hide the wash but still pay for the DOM node, the listeners and
|