@zazz-ui/core 0.5.3 → 0.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/AUTHORING.md +17 -14
- package/CHANGELOG.md +51 -0
- package/README.md +3 -3
- package/dist/sri.json +74 -74
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +3604 -116
- package/editor/zazz.html-data.json +18 -12
- package/editor/zazz.language-data.json +103 -54
- package/editor/zazz.lint-data.json +2 -0
- package/package.json +1 -1
- package/src/base/_properties-2xl.css +16 -0
- package/src/base/_properties-active.css +12 -0
- package/src/base/_properties-checked.css +12 -0
- package/src/base/_properties-current.css +12 -0
- package/src/base/_properties-disabled.css +12 -0
- package/src/base/_properties-focus-visible.css +12 -0
- package/src/base/_properties-focus-within.css +12 -0
- package/src/base/_properties-hover.css +12 -0
- package/src/base/_properties-lg.css +16 -0
- package/src/base/_properties-md.css +16 -0
- package/src/base/_properties-open.css +12 -0
- package/src/base/_properties-sm.css +16 -0
- package/src/base/_properties-starting.css +6 -0
- package/src/base/_properties-stuck.css +6 -0
- package/src/base/_properties-xl.css +16 -0
- package/src/base/_properties.css +22 -1
- package/src/base/_reset.css +8 -2
- package/src/base/_switches.css +3 -0
- package/src/base/_typography.css +3 -4
- package/src/base/_utilities-color.css +5 -5
- package/src/base/_utilities-effects.css +45 -6
- package/src/base/_utilities-flow.css +5 -5
- package/src/base/_utilities-grid.css +10 -10
- package/src/base/_utilities-margin.css +35 -35
- package/src/base/_utilities-pseudo.css +16 -0
- package/src/base/_utilities-sizing.css +20 -20
- package/src/base/_utilities-tier-2xl.css +9 -1
- package/src/base/_utilities-tier-active.css +6 -0
- package/src/base/_utilities-tier-checked.css +6 -0
- package/src/base/_utilities-tier-current.css +6 -0
- package/src/base/_utilities-tier-disabled.css +6 -0
- package/src/base/_utilities-tier-focus-visible.css +6 -0
- package/src/base/_utilities-tier-focus-within.css +6 -0
- package/src/base/_utilities-tier-hover.css +6 -0
- package/src/base/_utilities-tier-lg.css +9 -1
- package/src/base/_utilities-tier-md.css +9 -1
- package/src/base/_utilities-tier-open.css +6 -0
- package/src/base/_utilities-tier-sm.css +9 -1
- package/src/base/_utilities-tier-starting.css +3 -0
- package/src/base/_utilities-tier-stuck.css +3 -0
- package/src/base/_utilities-tier-xl.css +9 -1
- package/src/base/_utilities-typography.css +5 -5
- package/src/base/_variables.css +116 -55
- package/src/base/_view-transitions.css +7 -9
- package/src/base/dialog-lifecycle.d.ts +18 -1
- package/src/base/dialog-lifecycle.d.ts.map +1 -1
- package/src/base/dialog-lifecycle.js +72 -1
- package/src/base/dialog-lifecycle.ts +79 -1
- package/src/base/navigation.d.ts.map +1 -1
- package/src/base/navigation.js +19 -8
- package/src/base/navigation.ts +19 -8
- package/src/base/utilities.d.ts +19 -13
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +72 -21
- package/src/base/utilities.ts +84 -24
- package/src/head.d.ts +4 -1
- package/src/head.d.ts.map +1 -1
- package/src/head.js +9 -5
- package/src/head.ts +9 -5
- package/src/primitives/accordion/accordion.css +23 -12
- package/src/primitives/accordion/accordion.html +3 -3
- package/src/primitives/badge/badge.css +16 -9
- package/src/primitives/button/button.css +18 -11
- package/src/primitives/checkbox/checkbox-tasklist.html +6 -1
- package/src/primitives/checkbox/checkbox.css +16 -9
- package/src/primitives/checkbox/checkbox.html +1 -1
- package/src/primitives/checkbox/checkbox.js +1 -1
- package/src/primitives/checkbox/checkbox.ts +1 -1
- package/src/primitives/combobox/combobox.css +15 -8
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.html +1 -0
- package/src/primitives/command/command-actions.js +9 -4
- package/src/primitives/command/command-actions.ts +9 -4
- package/src/primitives/command/command-dialog.html +36 -0
- package/src/primitives/command/command.css +12 -1
- package/src/primitives/command/command.html +1 -0
- package/src/primitives/debug/audit-core.d.ts +3 -1
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +19 -1
- package/src/primitives/debug/audit-core.ts +25 -1
- package/src/primitives/debug/debug.d.ts.map +1 -1
- package/src/primitives/debug/debug.js +1 -0
- package/src/primitives/debug/debug.ts +1 -0
- package/src/primitives/dialog/dialog.css +2 -2
- package/src/primitives/fields/fields.css +15 -2
- package/src/primitives/input/input-icon-leading.html +1 -1
- package/src/primitives/input/input-icon-trailing.html +1 -1
- package/src/primitives/input/input.css +16 -9
- package/src/primitives/input-group/input-group.css +15 -8
- package/src/primitives/lightbox/lightbox.html +1 -2
- package/src/primitives/mobile-menu/mobile-menu.html +50 -10
- package/src/primitives/navigation-menu/navigation-menu-featured.html +5 -1
- package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +5 -1
- package/src/primitives/navigation-menu/navigation-menu-interest.html +10 -2
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +5 -1
- package/src/primitives/navigation-menu/navigation-menu-simple.html +6 -1
- package/src/primitives/navigation-menu/navigation-menu.css +6 -3
- package/src/primitives/navigation-menu/navigation-menu.html +15 -3
- package/src/primitives/password-group/password-group.css +14 -7
- package/src/primitives/password-group/password-group.js +1 -1
- package/src/primitives/password-group/password-group.ts +1 -1
- package/src/primitives/radio/radio.css +15 -8
- package/src/primitives/select/multiselect.d.ts.map +1 -1
- package/src/primitives/select/multiselect.js +3 -1
- package/src/primitives/select/multiselect.ts +3 -1
- package/src/primitives/select/select.css +14 -7
- package/src/primitives/slider/slider.html +1 -0
- package/src/primitives/switch/switch.css +15 -8
- package/src/primitives/tabs/tabs.css +21 -9
- package/src/primitives/textarea/textarea.css +16 -9
- package/src/primitives/toggle/toggle.css +16 -9
- package/src/primitives/toggle/toggle.html +6 -6
- package/src/primitives/toolbar/toolbar.html +2 -1
package/src/base/utilities.ts
CHANGED
|
@@ -11,25 +11,14 @@ export const BREAKPOINTS = ["sm", "md", "lg", "xl", "2xl"] as const;
|
|
|
11
11
|
export type Breakpoint = (typeof BREAKPOINTS)[number];
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Breakpoint thresholds
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
14
|
+
* Breakpoint thresholds and layout widths, in rem: Tailwind's scale. A tier
|
|
15
|
+
* applies when the nearest inline-size container is at least this wide, and
|
|
16
|
+
* `--layout-<breakpoint>` is the same width, so `@md` means "an md band fits".
|
|
17
|
+
* rem resolves against the root in every container, so siblings in different
|
|
18
|
+
* fonts flip together; it still follows the reader's font size and zoom.
|
|
19
|
+
* 640 / 768 / 1024 / 1280 / 1536px at 16px.
|
|
19
20
|
*/
|
|
20
|
-
export const
|
|
21
|
-
sm: 40,
|
|
22
|
-
md: 65,
|
|
23
|
-
lg: 90,
|
|
24
|
-
xl: 120,
|
|
25
|
-
"2xl": 150,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Layout band and component widths (`--layout-*`), in rem for predictable
|
|
30
|
-
* geometry: Tailwind's scale. Decoupled from the query thresholds above.
|
|
31
|
-
*/
|
|
32
|
-
export const LAYOUT_REM: Record<Breakpoint, number> = {
|
|
21
|
+
export const BREAKPOINT_REM: Record<Breakpoint, number> = {
|
|
33
22
|
sm: 40,
|
|
34
23
|
md: 48,
|
|
35
24
|
lg: 64,
|
|
@@ -160,9 +149,19 @@ export interface Utility {
|
|
|
160
149
|
* `line-clamp` adds the -webkit-box companions; `bg` is a relative oklch
|
|
161
150
|
* with `--bg-alpha`; `none` feeds a composite (`box-shadow`) and emits nothing itself;
|
|
162
151
|
* `border` is a border shorthand: it sorts a color, number, or length into
|
|
163
|
-
* width and color channels, and the side rules emit them.
|
|
152
|
+
* width and color channels, and the side rules emit them. `px` feeds a
|
|
153
|
+
* composite too, as one signed length `--_<name>-w`: a number is that many
|
|
154
|
+
* pixels, a length passes through, and the sign carries meaning (a negative
|
|
155
|
+
* ring is inset).
|
|
156
|
+
*/
|
|
157
|
+
emit?: "plain" | "repeat" | "span" | "grid-fit" | "line-clamp" | "bg" | "none" | "border" | "px";
|
|
158
|
+
/**
|
|
159
|
+
* What the precedence chain ends in when neither the base nor an active tier
|
|
160
|
+
* sets the utility: a `px` utility that stands in for a token (`--focus-ring`
|
|
161
|
+
* falls back to `--ring-width`, so `--focus-ring--md: -2` alone keeps the
|
|
162
|
+
* default ring below md).
|
|
164
163
|
*/
|
|
165
|
-
|
|
164
|
+
chainEnd?: string;
|
|
166
165
|
/** Overrides the family's tier kind (`none` for a utility that is base-only). */
|
|
167
166
|
tiers?: Tiers;
|
|
168
167
|
/**
|
|
@@ -739,10 +738,53 @@ export const UTILITIES: readonly Utility[] = [
|
|
|
739
738
|
// the shadow color for an element and its subtree: _variables.css re-declares the
|
|
740
739
|
// --shadow-* tokens wherever this is set, so keyword, var(), and primitive shadows follow
|
|
741
740
|
{ name: "shadow-hue", properties: [], mode: "raw", family: "box", emit: "none" },
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
{
|
|
745
|
-
|
|
741
|
+
// the shadow's cast direction: the --shadow-* tokens rotate their offsets by it
|
|
742
|
+
// (0deg casts down, clockwise), re-declared where it is set (_variables.css)
|
|
743
|
+
{
|
|
744
|
+
name: "shadow-angle",
|
|
745
|
+
properties: [],
|
|
746
|
+
mode: "raw",
|
|
747
|
+
family: "effects",
|
|
748
|
+
emit: "none",
|
|
749
|
+
tiers: "both",
|
|
750
|
+
},
|
|
751
|
+
// ring widths are signed: a number is pixels, and a negative ring is inset
|
|
752
|
+
{ name: "ring", properties: [], mode: "raw", family: "effects", emit: "px", tiers: "both" },
|
|
753
|
+
{
|
|
754
|
+
name: "ring-color",
|
|
755
|
+
properties: [],
|
|
756
|
+
mode: "raw",
|
|
757
|
+
family: "effects",
|
|
758
|
+
emit: "none",
|
|
759
|
+
tiers: "both",
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
name: "ring-offset",
|
|
763
|
+
properties: [],
|
|
764
|
+
mode: "raw",
|
|
765
|
+
family: "effects",
|
|
766
|
+
emit: "px",
|
|
767
|
+
tiers: "both",
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
name: "ring-offset-color",
|
|
771
|
+
properties: [],
|
|
772
|
+
mode: "raw",
|
|
773
|
+
family: "effects",
|
|
774
|
+
emit: "none",
|
|
775
|
+
tiers: "both",
|
|
776
|
+
},
|
|
777
|
+
// a primitive's focus ring (and the reset's focus outline): signed like --ring,
|
|
778
|
+
// the --ring-width token when unset
|
|
779
|
+
{
|
|
780
|
+
name: "focus-ring",
|
|
781
|
+
properties: [],
|
|
782
|
+
mode: "raw",
|
|
783
|
+
family: "effects",
|
|
784
|
+
emit: "px",
|
|
785
|
+
tiers: "breakpoints",
|
|
786
|
+
chainEnd: "var(--ring-width)",
|
|
787
|
+
},
|
|
746
788
|
{
|
|
747
789
|
name: "scale",
|
|
748
790
|
pseudo: true,
|
|
@@ -768,6 +810,24 @@ export const UTILITIES: readonly Utility[] = [
|
|
|
768
810
|
noBase: "none",
|
|
769
811
|
},
|
|
770
812
|
{ name: "transition", pseudo: true, properties: ["transition"], mode: "raw", family: "effects" },
|
|
813
|
+
// longhands after the shorthand, so they win over --transition and over a
|
|
814
|
+
// primitive's transition: retime one element without restating its property list
|
|
815
|
+
{
|
|
816
|
+
name: "transition-duration",
|
|
817
|
+
pseudo: true,
|
|
818
|
+
properties: ["transition-duration"],
|
|
819
|
+
mode: "raw",
|
|
820
|
+
family: "effects",
|
|
821
|
+
tiers: "both",
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
name: "transition-delay",
|
|
825
|
+
pseudo: true,
|
|
826
|
+
properties: ["transition-delay"],
|
|
827
|
+
mode: "raw",
|
|
828
|
+
family: "effects",
|
|
829
|
+
tiers: "both",
|
|
830
|
+
},
|
|
771
831
|
// box: no tiers
|
|
772
832
|
{
|
|
773
833
|
name: "rounded",
|
package/src/head.d.ts
CHANGED
|
@@ -37,7 +37,10 @@ declare const ESM_DEPENDENCIES: readonly CdnDependency[];
|
|
|
37
37
|
* Not polyfilled (native across the support window): the **Popover API** (Chrome 114, Firefox 125, Safari 17, iOS 18.3)
|
|
38
38
|
* and **Invoker Commands** `command`/`commandfor` (Chrome 135, Firefox 144,
|
|
39
39
|
* Safari 26.2). CSS anchor positioning is below the floor but has no polyfill
|
|
40
|
-
* here — the components gate it behind `@supports` instead.
|
|
40
|
+
* here — the components gate it behind `@supports` instead. Dialog light
|
|
41
|
+
* dismiss (`closedby="any"`: Chrome 134, Firefox 141; Safari 26 has only `none`
|
|
42
|
+
* and `closerequest`) is filled in by `base/dialog-lifecycle.ts` where `any`
|
|
43
|
+
* is not supported.
|
|
41
44
|
*/
|
|
42
45
|
declare const POLYFILLS: readonly CdnDependency[];
|
|
43
46
|
/** CDN mode for `buildHead` — kit files served from jsDelivr. */
|
package/src/head.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"head.d.ts","sourceRoot":"","sources":["head.ts"],"names":[],"mappings":"AA6BA,wDAAwD;AACxD,UAAU,aAAa;IACrB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAqCD;;;;;;GAMG;AACH,iBAAS,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAE1C;AAED;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,EAAE,SAAS,aAAa,EA+B7C,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"head.d.ts","sourceRoot":"","sources":["head.ts"],"names":[],"mappings":"AA6BA,wDAAwD;AACxD,UAAU,aAAa;IACrB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAqCD;;;;;;GAMG;AACH,iBAAS,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAE1C;AAED;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,EAAE,SAAS,aAAa,EA+B7C,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,SAAS,EAAE,SAAS,aAAa,EAOtC,CAAC;AAiFF,iEAAiE;AACjE,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED,+BAA+B;AAC/B,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC;IAC1C,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,OAAO,GAAE,WAAgB,GAAG,MAAM,CA6C3D;AA8HD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,CAAC;AAI9B;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;IACrB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB;AAKD,yEAAyE;AACzE,wBAAgB,UAAU,CAAC,OAAO,GAAE,WAAgB,GAAG,MAAM,CAI5D;AAED,+FAA+F;AAC/F,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAgBjE;AAcD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,WAAW,GACpB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAa1D;AAED,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAG1F"}
|
package/src/head.js
CHANGED
|
@@ -110,7 +110,10 @@ const ESM_DEPENDENCIES = [
|
|
|
110
110
|
* Not polyfilled (native across the support window): the **Popover API** (Chrome 114, Firefox 125, Safari 17, iOS 18.3)
|
|
111
111
|
* and **Invoker Commands** `command`/`commandfor` (Chrome 135, Firefox 144,
|
|
112
112
|
* Safari 26.2). CSS anchor positioning is below the floor but has no polyfill
|
|
113
|
-
* here — the components gate it behind `@supports` instead.
|
|
113
|
+
* here — the components gate it behind `@supports` instead. Dialog light
|
|
114
|
+
* dismiss (`closedby="any"`: Chrome 134, Firefox 141; Safari 26 has only `none`
|
|
115
|
+
* and `closerequest`) is filled in by `base/dialog-lifecycle.ts` where `any`
|
|
116
|
+
* is not supported.
|
|
114
117
|
*/
|
|
115
118
|
const POLYFILLS = [
|
|
116
119
|
{
|
|
@@ -172,7 +175,7 @@ function polyfillsBlock() {
|
|
|
172
175
|
}
|
|
173
176
|
/**
|
|
174
177
|
* The theme-persistence script. Runs inline (no `defer`) while the parser is
|
|
175
|
-
* still in `<head>`, so `
|
|
178
|
+
* still in `<head>`, so the `theme-*` switch lands on `<html>` before first paint. The
|
|
176
179
|
* try/catch covers contexts where storage access throws (sandboxed iframes,
|
|
177
180
|
* blocked site data).
|
|
178
181
|
*/
|
|
@@ -180,11 +183,12 @@ const THEME_SCRIPT = `<!-- Theme: apply the persisted (or preferred) scheme befo
|
|
|
180
183
|
<script>
|
|
181
184
|
(() => {
|
|
182
185
|
try {
|
|
183
|
-
// A stored choice pins the scheme with
|
|
184
|
-
//
|
|
186
|
+
// A stored choice pins the scheme with the theme-dark / theme-light
|
|
187
|
+
// switch; with no choice the page follows the system scheme.
|
|
185
188
|
const storedTheme = localStorage.getItem("theme");
|
|
186
189
|
if (storedTheme === "dark" || storedTheme === "light") {
|
|
187
|
-
document.documentElement
|
|
190
|
+
const root = document.documentElement;
|
|
191
|
+
root.dataset.ui = ((root.dataset.ui || "") + " theme-" + storedTheme).trim();
|
|
188
192
|
}
|
|
189
193
|
} catch {
|
|
190
194
|
/* no storage access: follow the system scheme */
|
package/src/head.ts
CHANGED
|
@@ -137,7 +137,10 @@ const ESM_DEPENDENCIES: readonly CdnDependency[] = [
|
|
|
137
137
|
* Not polyfilled (native across the support window): the **Popover API** (Chrome 114, Firefox 125, Safari 17, iOS 18.3)
|
|
138
138
|
* and **Invoker Commands** `command`/`commandfor` (Chrome 135, Firefox 144,
|
|
139
139
|
* Safari 26.2). CSS anchor positioning is below the floor but has no polyfill
|
|
140
|
-
* here — the components gate it behind `@supports` instead.
|
|
140
|
+
* here — the components gate it behind `@supports` instead. Dialog light
|
|
141
|
+
* dismiss (`closedby="any"`: Chrome 134, Firefox 141; Safari 26 has only `none`
|
|
142
|
+
* and `closerequest`) is filled in by `base/dialog-lifecycle.ts` where `any`
|
|
143
|
+
* is not supported.
|
|
141
144
|
*/
|
|
142
145
|
const POLYFILLS: readonly CdnDependency[] = [
|
|
143
146
|
{
|
|
@@ -204,7 +207,7 @@ function polyfillsBlock(): string {
|
|
|
204
207
|
|
|
205
208
|
/**
|
|
206
209
|
* The theme-persistence script. Runs inline (no `defer`) while the parser is
|
|
207
|
-
* still in `<head>`, so `
|
|
210
|
+
* still in `<head>`, so the `theme-*` switch lands on `<html>` before first paint. The
|
|
208
211
|
* try/catch covers contexts where storage access throws (sandboxed iframes,
|
|
209
212
|
* blocked site data).
|
|
210
213
|
*/
|
|
@@ -212,11 +215,12 @@ const THEME_SCRIPT = `<!-- Theme: apply the persisted (or preferred) scheme befo
|
|
|
212
215
|
<script>
|
|
213
216
|
(() => {
|
|
214
217
|
try {
|
|
215
|
-
// A stored choice pins the scheme with
|
|
216
|
-
//
|
|
218
|
+
// A stored choice pins the scheme with the theme-dark / theme-light
|
|
219
|
+
// switch; with no choice the page follows the system scheme.
|
|
217
220
|
const storedTheme = localStorage.getItem("theme");
|
|
218
221
|
if (storedTheme === "dark" || storedTheme === "light") {
|
|
219
|
-
document.documentElement
|
|
222
|
+
const root = document.documentElement;
|
|
223
|
+
root.dataset.ui = ((root.dataset.ui || "") + " theme-" + storedTheme).trim();
|
|
220
224
|
}
|
|
221
225
|
} catch {
|
|
222
226
|
/* no storage access: follow the system scheme */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* accordion.css: Accordion (ui-accordion | [data-ui~="accordion"] on <details>/<summary
|
|
2
|
+
* accordion.css: Accordion (ui-accordion | [data-ui~="accordion"] on <details>/<summary>;
|
|
3
|
+
* slot data-accordion-slot="marker" on the summary icon that rotates open)
|
|
3
4
|
*
|
|
4
5
|
* @layer variables, reset, components
|
|
5
|
-
* @requires _layers.css, _variables.css, _properties.css (--_focus-
|
|
6
|
+
* @requires _layers.css, _variables.css, _properties.css (--_focus-shadow)
|
|
6
7
|
* @uses ::details-content: native open/close block-size transition (reset layer)
|
|
7
8
|
* @uses interpolate-size: allow-keywords (from _variables.css; required for
|
|
8
9
|
* block-size: 0 -> auto transitions)
|
|
@@ -64,31 +65,38 @@
|
|
|
64
65
|
align-items: center;
|
|
65
66
|
justify-content: space-between;
|
|
66
67
|
|
|
67
|
-
/* The ring is published to --_focus-
|
|
68
|
+
/* The ring is published to --_focus-shadow so a --shadow utility on the
|
|
68
69
|
summary keeps it; the ring widths grow from 0 so the ring eases in. */
|
|
69
70
|
--_ring-offset-width: 0px;
|
|
70
71
|
--_ring-width: 0px;
|
|
71
|
-
--_focus-ring
|
|
72
|
-
|
|
73
|
-
0 0 0 calc(var(--_ring-offset-width)
|
|
72
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
73
|
+
--_focus-shadow:
|
|
74
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
75
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
76
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
77
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
78
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
74
79
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
75
|
-
box-shadow: var(--_focus-
|
|
80
|
+
box-shadow: var(--_focus-shadow, 0 0 #0000), var(--_shadow-resolved, 0 0 #0000);
|
|
76
81
|
|
|
77
82
|
/* transparent twin of the ring for forced-colors / high-contrast modes */
|
|
78
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
79
|
-
outline-offset:
|
|
83
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
84
|
+
outline-offset: calc(
|
|
85
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
86
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
87
|
+
);
|
|
80
88
|
|
|
81
89
|
transition: var(--default-transition);
|
|
82
90
|
}
|
|
83
91
|
|
|
84
92
|
:where(ui-accordion, [data-ui~="accordion"]) > details > summary:focus-visible {
|
|
85
93
|
--_ring-offset-width: var(--ring-offset-width);
|
|
86
|
-
--_ring-width: var(--ring-width);
|
|
94
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
87
95
|
|
|
88
96
|
outline-color: transparent;
|
|
89
97
|
}
|
|
90
98
|
|
|
91
|
-
:where(ui-accordion, [data-ui~="accordion"]) summary >
|
|
99
|
+
:where(ui-accordion, [data-ui~="accordion"]) summary > [data-accordion-slot="marker"] {
|
|
92
100
|
display: flex;
|
|
93
101
|
align-items: center;
|
|
94
102
|
justify-content: center;
|
|
@@ -99,7 +107,10 @@
|
|
|
99
107
|
var(--default-transition-timing-function);
|
|
100
108
|
}
|
|
101
109
|
|
|
102
|
-
:where(ui-accordion, [data-ui~="accordion"])
|
|
110
|
+
:where(ui-accordion, [data-ui~="accordion"])
|
|
111
|
+
> details[open]
|
|
112
|
+
> summary
|
|
113
|
+
> [data-accordion-slot="marker"] {
|
|
103
114
|
transform: var(--ui-accordion-icon-transform--open);
|
|
104
115
|
}
|
|
105
116
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"
|
|
14
14
|
>
|
|
15
15
|
What is an accordion?
|
|
16
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
|
|
16
|
+
<svg data-accordion-slot="marker" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
|
|
17
17
|
<rect width="256" height="256" fill="none" />
|
|
18
18
|
<polyline
|
|
19
19
|
points="208 96 128 176 48 96"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"
|
|
48
48
|
>
|
|
49
49
|
How does it work?
|
|
50
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
|
|
50
|
+
<svg data-accordion-slot="marker" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
|
|
51
51
|
<rect width="256" height="256" fill="none" />
|
|
52
52
|
<polyline
|
|
53
53
|
points="208 96 128 176 48 96"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"
|
|
81
81
|
>
|
|
82
82
|
Why use it?
|
|
83
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
|
|
83
|
+
<svg data-accordion-slot="marker" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
|
|
84
84
|
<rect width="256" height="256" fill="none" />
|
|
85
85
|
<polyline
|
|
86
86
|
points="208 96 128 176 48 96"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* badge.css: Badge ([data-ui~="badge"])
|
|
3
3
|
*
|
|
4
4
|
* @layer variables, components
|
|
5
|
-
* @requires _layers.css, _variables.css, _reset.css, _properties.css (--_*-resolved, --_focus-
|
|
5
|
+
* @requires _layers.css, _variables.css, _reset.css, _properties.css (--_*-resolved, --_focus-shadow), fields.css (--ui-field-* border/ring)
|
|
6
6
|
* @uses color-mix(), oklch(from …): variant hover/active tints
|
|
7
7
|
* @uses text-box: vertical trim (patchy browser support)
|
|
8
8
|
* @tokens --ui-badge-* (@layer variables; hooks are named after the utilities they back)
|
|
@@ -211,31 +211,38 @@
|
|
|
211
211
|
background-clip: padding-box;
|
|
212
212
|
white-space-collapse: collapse;
|
|
213
213
|
|
|
214
|
-
/* The ring is published to --_focus-
|
|
214
|
+
/* The ring is published to --_focus-shadow so the utilities layer's
|
|
215
215
|
box-shadow emission keeps it above a --shadow or --ring utility; the ring
|
|
216
216
|
widths grow from 0 on :focus-visible so the ring eases in. */
|
|
217
217
|
--_ring-offset-width: 0px;
|
|
218
218
|
--_ring-width: 0px;
|
|
219
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
219
220
|
--_ring-fill: color-mix(
|
|
220
221
|
in oklch,
|
|
221
222
|
var(--_ring-color-resolved, var(--_badge-ring-color, var(--ui-badge-ring-color)))
|
|
222
223
|
var(--ring-opacity),
|
|
223
224
|
transparent
|
|
224
225
|
);
|
|
225
|
-
--_focus-
|
|
226
|
-
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
227
|
-
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
226
|
+
--_focus-shadow:
|
|
227
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
228
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
229
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
230
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
231
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
228
232
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
229
233
|
box-shadow:
|
|
230
|
-
var(--_focus-
|
|
234
|
+
var(--_focus-shadow, 0 0 #0000),
|
|
231
235
|
var(--_shadow-resolved, var(--_badge-shadow, var(--ui-badge-shadow)));
|
|
232
236
|
|
|
233
237
|
cursor: default;
|
|
234
238
|
text-decoration: none;
|
|
235
239
|
|
|
236
240
|
/* transparent twin of the ring for forced-colors / high-contrast modes */
|
|
237
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
238
|
-
outline-offset:
|
|
241
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
242
|
+
outline-offset: calc(
|
|
243
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
244
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
245
|
+
);
|
|
239
246
|
|
|
240
247
|
transition: var(--default-transition);
|
|
241
248
|
|
|
@@ -277,7 +284,7 @@
|
|
|
277
284
|
[aria-disabled="true"]
|
|
278
285
|
) {
|
|
279
286
|
--_ring-offset-width: var(--ring-offset-width);
|
|
280
|
-
--_ring-width: var(--ring-width);
|
|
287
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
281
288
|
|
|
282
289
|
outline-color: transparent;
|
|
283
290
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* button.css — Button ([data-ui~="button"])
|
|
3
3
|
*
|
|
4
4
|
* @layer variables, components
|
|
5
|
-
* @requires _layers.css, _variables.css, _reset.css, _properties.css (--_*-resolved, --_focus-
|
|
5
|
+
* @requires _layers.css, _variables.css, _reset.css, _properties.css (--_*-resolved, --_focus-shadow), fields.css (--ui-field-* metrics), kbd.css (--ui-kbd-*)
|
|
6
6
|
* @uses color-mix(), oklch(from …) — variant hover/active tints
|
|
7
7
|
* @uses text-box — vertical trim (patchy browser support)
|
|
8
8
|
* @tokens --ui-button-* (@layer variables; hooks are named after the utilities they back; metrics default to the --ui-field-* family)
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
--ui-button-ring-color: var(--ui-field-ring-color);
|
|
25
25
|
|
|
26
26
|
--ui-button-font-family: var(--font-family-body);
|
|
27
|
-
--ui-button-font-size: var(--
|
|
27
|
+
--ui-button-font-size: var(--font-size-sm);
|
|
28
28
|
--ui-button-font-weight: var(--font-weight-strong);
|
|
29
|
-
--ui-button-leading: var(--
|
|
29
|
+
--ui-button-leading: var(--leading-sm);
|
|
30
30
|
|
|
31
31
|
--ui-button-bg: var(--color-background);
|
|
32
32
|
--ui-button-bg--hover: oklch(from var(--color-background) calc(l - 0.025) c h);
|
|
@@ -217,31 +217,38 @@
|
|
|
217
217
|
background-clip: padding-box;
|
|
218
218
|
white-space-collapse: collapse;
|
|
219
219
|
|
|
220
|
-
/* The ring is published to --_focus-
|
|
220
|
+
/* The ring is published to --_focus-shadow so the utilities layer's
|
|
221
221
|
box-shadow emission keeps it above a --shadow or --ring utility; the ring
|
|
222
222
|
widths grow from 0 on :focus-visible so the ring eases in. */
|
|
223
223
|
--_ring-offset-width: 0px;
|
|
224
224
|
--_ring-width: 0px;
|
|
225
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
225
226
|
--_ring-fill: color-mix(
|
|
226
227
|
in oklch,
|
|
227
228
|
var(--_ring-color-resolved, var(--_button-ring-color, var(--ui-button-ring-color)))
|
|
228
229
|
var(--ring-opacity),
|
|
229
230
|
transparent
|
|
230
231
|
);
|
|
231
|
-
--_focus-
|
|
232
|
-
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
233
|
-
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
232
|
+
--_focus-shadow:
|
|
233
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
234
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
235
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
236
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
237
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
234
238
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
235
239
|
box-shadow:
|
|
236
|
-
var(--_focus-
|
|
240
|
+
var(--_focus-shadow, 0 0 #0000),
|
|
237
241
|
var(--_shadow-resolved, var(--_button-shadow, var(--ui-button-shadow)));
|
|
238
242
|
|
|
239
243
|
cursor: default;
|
|
240
244
|
text-decoration: none;
|
|
241
245
|
|
|
242
246
|
/* transparent twin of the ring for forced-colors / high-contrast modes */
|
|
243
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
244
|
-
outline-offset:
|
|
247
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
248
|
+
outline-offset: calc(
|
|
249
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
250
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
251
|
+
);
|
|
245
252
|
|
|
246
253
|
transition: var(--default-transition);
|
|
247
254
|
|
|
@@ -280,7 +287,7 @@
|
|
|
280
287
|
|
|
281
288
|
:where([data-ui~="button"]):focus-visible:not(:disabled, [aria-disabled="true"]) {
|
|
282
289
|
--_ring-offset-width: var(--ring-offset-width);
|
|
283
|
-
--_ring-width: var(--ring-width);
|
|
290
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
284
291
|
|
|
285
292
|
outline-color: transparent;
|
|
286
293
|
}
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
<thead>
|
|
6
6
|
<tr>
|
|
7
7
|
<th>
|
|
8
|
-
<input
|
|
8
|
+
<input
|
|
9
|
+
type="checkbox"
|
|
10
|
+
name="tasks-all"
|
|
11
|
+
data-checkbox-controls="tasks"
|
|
12
|
+
aria-label="Select all tasks"
|
|
13
|
+
/>
|
|
9
14
|
</th>
|
|
10
15
|
<th>Task</th>
|
|
11
16
|
<th>Assignee</th>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* checkbox.css — Checkbox (input[type="checkbox"]:not([role="switch"]))
|
|
3
3
|
*
|
|
4
4
|
* @layer variables, reset
|
|
5
|
-
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-
|
|
5
|
+
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-shadow), fields.css (--ui-field-* background/border)
|
|
6
6
|
* @uses appearance: none — redraws the native control from theme tokens
|
|
7
7
|
* @uses checked/indeterminate fill with --primary and layer a glyph (never color alone)
|
|
8
8
|
* @tokens --ui-checkbox-* (@layer variables; named after the utilities they back;
|
|
@@ -57,17 +57,24 @@
|
|
|
57
57
|
|
|
58
58
|
cursor: pointer;
|
|
59
59
|
|
|
60
|
-
/* The ring is published to --_focus-
|
|
60
|
+
/* The ring is published to --_focus-shadow so a --shadow utility keeps
|
|
61
61
|
it; the transparent outline twin keeps focus visible in forced-colors */
|
|
62
62
|
--_ring-offset-width: 0px;
|
|
63
63
|
--_ring-width: 0px;
|
|
64
|
-
--_focus-ring
|
|
65
|
-
|
|
66
|
-
0 0 0 calc(var(--_ring-offset-width)
|
|
64
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
65
|
+
--_focus-shadow:
|
|
66
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
67
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
68
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
69
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
70
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
67
71
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
68
|
-
box-shadow: var(--_focus-
|
|
69
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
70
|
-
outline-offset:
|
|
72
|
+
box-shadow: var(--_focus-shadow, 0 0 #0000), var(--_shadow-resolved, 0 0 #0000);
|
|
73
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
74
|
+
outline-offset: calc(
|
|
75
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
76
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
77
|
+
);
|
|
71
78
|
|
|
72
79
|
transition-property: border-color, background-color, color, opacity, box-shadow;
|
|
73
80
|
transition-duration: var(--default-transition-duration);
|
|
@@ -82,7 +89,7 @@
|
|
|
82
89
|
|
|
83
90
|
:where(input[type="checkbox"]:not([role="switch"]):focus-visible) {
|
|
84
91
|
--_ring-offset-width: var(--ring-offset-width);
|
|
85
|
-
--_ring-width: var(--ring-width);
|
|
92
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
86
93
|
outline-color: transparent;
|
|
87
94
|
}
|
|
88
95
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"
|
|
8
8
|
>
|
|
9
9
|
<label data-ui="field" data-field-orientation="horizontal">
|
|
10
|
-
<input type="checkbox" data-checkbox-controls="preferences" />
|
|
10
|
+
<input type="checkbox" name="preferences-all" data-checkbox-controls="preferences" />
|
|
11
11
|
<span data-field-slot="label">Select all</span>
|
|
12
12
|
</label>
|
|
13
13
|
<label data-ui="field" data-field-orientation="horizontal">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* <table data-ui="table">
|
|
23
|
-
* <thead><tr><th><input type="checkbox" data-checkbox-controls="tasks" /></th>...</tr></thead>
|
|
23
|
+
* <thead><tr><th><input type="checkbox" name="tasks-all" data-checkbox-controls="tasks" /></th>...</tr></thead>
|
|
24
24
|
* <tbody><tr><td><input type="checkbox" name="tasks" /></td>...</tr></tbody>
|
|
25
25
|
* </table>
|
|
26
26
|
*/
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* <table data-ui="table">
|
|
24
|
-
* <thead><tr><th><input type="checkbox" data-checkbox-controls="tasks" /></th>...</tr></thead>
|
|
24
|
+
* <thead><tr><th><input type="checkbox" name="tasks-all" data-checkbox-controls="tasks" /></th>...</tr></thead>
|
|
25
25
|
* <tbody><tr><td><input type="checkbox" name="tasks" /></td>...</tr></tbody>
|
|
26
26
|
* </table>
|
|
27
27
|
*/
|
|
@@ -124,15 +124,22 @@
|
|
|
124
124
|
visible in forced-colors mode */
|
|
125
125
|
--_ring-offset-width: 0px;
|
|
126
126
|
--_ring-width: 0px;
|
|
127
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
127
128
|
--_ring-fill: color-mix(in oklch, var(--ui-field-ring-color) var(--ring-opacity), transparent);
|
|
128
|
-
/* The ring is published to --_focus-
|
|
129
|
-
--_focus-
|
|
130
|
-
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
131
|
-
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
129
|
+
/* The ring is published to --_focus-shadow so a --shadow utility keeps it */
|
|
130
|
+
--_focus-shadow:
|
|
131
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
132
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
133
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
134
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
135
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
132
136
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
133
|
-
box-shadow: var(--_focus-
|
|
134
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
135
|
-
outline-offset:
|
|
137
|
+
box-shadow: var(--_focus-shadow, 0 0 #0000), var(--_shadow-resolved, 0 0 #0000);
|
|
138
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
139
|
+
outline-offset: calc(
|
|
140
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
141
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
142
|
+
);
|
|
136
143
|
|
|
137
144
|
transition: var(--default-transition);
|
|
138
145
|
}
|
|
@@ -147,7 +154,7 @@
|
|
|
147
154
|
border-color: var(--ui-field-border-color--focus-within);
|
|
148
155
|
background-color: var(--ui-field-bg--focus-within);
|
|
149
156
|
--_ring-offset-width: var(--ring-offset-width);
|
|
150
|
-
--_ring-width: var(--ring-width);
|
|
157
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
151
158
|
outline-color: transparent;
|
|
152
159
|
}
|
|
153
160
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-actions.d.ts","sourceRoot":"","sources":["command-actions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;GAGG;AACH,iBAAS,kBAAkB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"command-actions.d.ts","sourceRoot":"","sources":["command-actions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;GAGG;AACH,iBAAS,kBAAkB,IAAI,IAAI,CAiClC;AAED;;;GAGG;AACH,iBAAS,wBAAwB,IAAI,IAAI,CAKxC;AAWD,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,CAAC"}
|