@juwel-development/design-system 3.5.0 → 3.6.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/README.md +8 -0
- package/dist/design-system.js +317 -180
- package/dist/index.css +1 -1
- package/dist/types/Layout/Dialog/Dialog.d.ts +104 -0
- package/dist/types/Layout/Dialog/DialogCompositionError.d.ts +3 -0
- package/dist/types/Layout/Dialog/DialogNamingError.d.ts +3 -0
- package/dist/types/Theme/Palette.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/Layout/Dialog/Dialog.tsx +478 -0
- package/src/Layout/Dialog/DialogCompositionError.ts +6 -0
- package/src/Layout/Dialog/DialogNamingError.ts +8 -0
- package/src/Theme/Palette.ts +15 -0
- package/src/Theme/renderTokens.ts +31 -3
- package/src/index.ts +1 -0
- package/src/tokens.css +20 -0
- package/src/tokens.dark.css +19 -0
- package/src/tokens.light.css +19 -0
package/README.md
CHANGED
|
@@ -122,6 +122,14 @@ npm run build:tokens
|
|
|
122
122
|
The generated files are committed, and a test pins each to the palette - editing the
|
|
123
123
|
palette without regenerating fails the suite rather than shipping stale colours.
|
|
124
124
|
|
|
125
|
+
#### Migrating a custom palette to the `scrim` role
|
|
126
|
+
|
|
127
|
+
Dialog added the required `scrim` role to `PaletteTokens`. A consumer that constructs its own
|
|
128
|
+
palette object of this type must add a `scrim` colour - an `rgb(r g b / a)` value whose alpha is
|
|
129
|
+
part of the role, `rgb(15 23 42 / 0.5)` being the shipped default. Spreading `light`/`dark` and
|
|
130
|
+
overriding stays valid unchanged, and a theme that only overrides the generated
|
|
131
|
+
`--color-*` custom properties in CSS inherits the new default without any change.
|
|
132
|
+
|
|
125
133
|
## Development
|
|
126
134
|
|
|
127
135
|
```bash
|