yukit-web 0.9.2 → 0.10.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/README.md +2 -1
- package/fesm2022/yukit-web.mjs +364 -75
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme/components/label.css +5 -0
- package/src/lib/theme/spartan-overwrites/sonner.css +18 -0
- package/src/lib/theme/theme.css +12 -0
- package/src/lib/theme/tokens/color.css +409 -419
- package/src/lib/theme/tokens/component-colors.css +58 -42
- package/types/yukit-web.d.ts +119 -14
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The toast's close button sits inside its top inline-end corner, instead of over its top-left one, and
|
|
3
|
+
* takes the toast's own colors.
|
|
4
|
+
*/
|
|
5
|
+
:root {
|
|
6
|
+
--brn-sonner-toast-close-button-start: auto;
|
|
7
|
+
--brn-sonner-toast-close-button-end: 0.75rem;
|
|
8
|
+
--brn-sonner-toast-close-button-transform: none;
|
|
9
|
+
--brn-sonner-rtl-toast-close-button-start: 0.75rem;
|
|
10
|
+
--brn-sonner-rtl-toast-close-button-end: auto;
|
|
11
|
+
--brn-sonner-rtl-toast-close-button-transform: none;
|
|
12
|
+
--brn-sonner-toast-close-button-background: var(--toast);
|
|
13
|
+
--brn-sonner-toast-close-button-color: var(--toast-foreground);
|
|
14
|
+
--brn-sonner-toast-close-button-border: 1px solid transparent;
|
|
15
|
+
--brn-sonner-toast-close-button-hover-background: var(--toast);
|
|
16
|
+
--brn-sonner-toast-close-button-hover-color: var(--toast-foreground);
|
|
17
|
+
--brn-sonner-toast-close-button-hover-border-color: var(--toast-foreground);
|
|
18
|
+
}
|
package/src/lib/theme/theme.css
CHANGED
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
@import './components/button.css';
|
|
13
13
|
@import './components/button-group.css';
|
|
14
|
+
@import './components/label.css';
|
|
14
15
|
@import './components/reveal-on-hover.css';
|
|
15
16
|
@import './components/overflow-list-cell.css';
|
|
16
17
|
@import './spartan-overwrites/accordion.css';
|
|
17
18
|
@import './spartan-overwrites/sheet.css';
|
|
19
|
+
@import './spartan-overwrites/sonner.css';
|
|
18
20
|
|
|
19
21
|
@layer base {
|
|
20
22
|
*,
|
|
@@ -27,6 +29,16 @@
|
|
|
27
29
|
outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
|
|
28
30
|
}
|
|
29
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Focus rings are drawn inset. `--tw-ring-inset` does not inherit, so it is set on every element a focus variant
|
|
34
|
+
* rings: the focused one, a container through `focus-within`/`has-`, and the descendants of a `group` or
|
|
35
|
+
* `group/day` ringed through `group-has-`/`group-data-`.
|
|
36
|
+
*/
|
|
37
|
+
:where(:focus-visible, :focus-within, :has(:focus-visible), [data-focused='true']),
|
|
38
|
+
:where(.group:has(:focus-visible), [class~='group/day'][data-focused='true']) * {
|
|
39
|
+
--tw-ring-inset: inset;
|
|
40
|
+
}
|
|
41
|
+
|
|
30
42
|
body {
|
|
31
43
|
background-color: var(--background);
|
|
32
44
|
color: var(--foreground);
|