@zazz-ui/core 0.5.4 → 0.6.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/AUTHORING.md +16 -13
- package/CHANGELOG.md +50 -0
- package/README.md +3 -3
- package/dist/sri.json +73 -73
- 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 +0 -1
- 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/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 +15 -5
- package/src/base/navigation.ts +15 -5
- 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
|
@@ -41,6 +41,7 @@ export type RuleId =
|
|
|
41
41
|
| "scroll-state"
|
|
42
42
|
| "whitespace-before-colon"
|
|
43
43
|
| "attribute-outside-identity"
|
|
44
|
+
| "field-id-or-name"
|
|
44
45
|
| "persist";
|
|
45
46
|
|
|
46
47
|
export const RULE_IDS: readonly RuleId[] = [
|
|
@@ -60,6 +61,7 @@ export const RULE_IDS: readonly RuleId[] = [
|
|
|
60
61
|
"scroll-state",
|
|
61
62
|
"whitespace-before-colon",
|
|
62
63
|
"attribute-outside-identity",
|
|
64
|
+
"field-id-or-name",
|
|
63
65
|
"persist",
|
|
64
66
|
];
|
|
65
67
|
|
|
@@ -84,6 +86,8 @@ export interface Finding {
|
|
|
84
86
|
|
|
85
87
|
/** The parts of an element the audit reads. */
|
|
86
88
|
export interface AuditNode {
|
|
89
|
+
/** The tag name, any case. */
|
|
90
|
+
tagName: string;
|
|
87
91
|
getAttribute(name: string): string | null;
|
|
88
92
|
getAttributeNames(): string[];
|
|
89
93
|
/** True when this node or an ancestor carries the identity `name` (see {@link carriesIdentity}). */
|
|
@@ -104,6 +108,11 @@ const UTILITY_BY_NAME = new Map<string, Utility>(
|
|
|
104
108
|
);
|
|
105
109
|
const PSEUDO_ONLY_NAMES = new Set(PSEUDO_ONLY.map((utility) => utility.name));
|
|
106
110
|
|
|
111
|
+
/** Form fields Chrome's autofill identifies by `id` or `name`. */
|
|
112
|
+
const FIELD_TAGS = new Set(["input", "select", "textarea"]);
|
|
113
|
+
/** `<input>` types that are buttons, not fields. */
|
|
114
|
+
const BUTTON_TYPES = new Set(["button", "submit", "reset", "image"]);
|
|
115
|
+
|
|
107
116
|
const NUMBER = /^-?(\d+\.?\d*|\.\d+)$/;
|
|
108
117
|
const DIMENSION =
|
|
109
118
|
/^-?(\d+\.?\d*|\.\d+)(px|r?em|%|v[wh]|v[ib]|[sld]v[wh]|ch|ex|cap|ic|lh|rlh|cq[iwhb]|cqmin|cqmax|pt|cm|mm|in)$/;
|
|
@@ -333,7 +342,9 @@ export function auditNode(node: AuditNode, context: AuditContext): Finding[] {
|
|
|
333
342
|
const borderBase =
|
|
334
343
|
/^border-(?:width|color|style)$/.test(baseName) &&
|
|
335
344
|
BORDER_SHORTHANDS.some((name) => bases.has(name));
|
|
336
|
-
|
|
345
|
+
// a utility that only feeds a composite (ring, shadow) has a literal at its chain's end
|
|
346
|
+
const feedsComposite = utility.emit === "none" || utility.emit === "px";
|
|
347
|
+
if (utility.noBase === undefined && !bases.has(baseName) && !borderBase && !feedsComposite) {
|
|
337
348
|
warn(
|
|
338
349
|
"tier-without-base",
|
|
339
350
|
`\`${name}\` has no base \`--${baseName}\`; the tier only overrides a base.`,
|
|
@@ -456,6 +467,19 @@ export function auditNode(node: AuditNode, context: AuditContext): Finding[] {
|
|
|
456
467
|
});
|
|
457
468
|
}
|
|
458
469
|
}
|
|
470
|
+
// Chrome's Issues panel flags a form field with neither id nor name
|
|
471
|
+
const tag = node.tagName.toLowerCase();
|
|
472
|
+
if (
|
|
473
|
+
FIELD_TAGS.has(tag) &&
|
|
474
|
+
!(tag === "input" && BUTTON_TYPES.has((node.getAttribute("type") ?? "").toLowerCase())) &&
|
|
475
|
+
!node.getAttribute("id")?.trim() &&
|
|
476
|
+
!node.getAttribute("name")?.trim()
|
|
477
|
+
) {
|
|
478
|
+
found.push({
|
|
479
|
+
rule: "field-id-or-name",
|
|
480
|
+
message: `\`<${tag}>\` has neither \`id\` nor \`name\`: give it a \`name\` (the key it submits under, and what autofill reads).`,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
459
483
|
return found;
|
|
460
484
|
}
|
|
461
485
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["debug.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAqB,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,+GAA+G;IAC/G,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["debug.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAqB,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAKL,KAAK,MAAM,EACZ,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,+GAA+G;IAC/G,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjC,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AA2CD,8EAA8E;AAC9E,wBAAgB,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,EAAE,CAc1E;AAED,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,QAAQ,GAAG;IAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAyCtF;AAED,eAAO,MAAM,aAAa,8KACiJ,CAAC;AAI5K,cAAM,OAAQ,SAAQ,WAAW;IAC/B,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAgDzC;CACF;AAID,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -19,6 +19,7 @@ import { auditNode, auditPersistence, carriesIdentity, } from "./audit-core.js";
|
|
|
19
19
|
/** A live element as the audit core reads it. */
|
|
20
20
|
function auditNodeOf(el) {
|
|
21
21
|
return {
|
|
22
|
+
tagName: el.tagName,
|
|
22
23
|
getAttribute: (name) => el.getAttribute(name),
|
|
23
24
|
getAttributeNames: () => el.getAttributeNames(),
|
|
24
25
|
withinIdentity: (name, identities) => {
|
|
@@ -41,6 +41,7 @@ export interface AuditOptions {
|
|
|
41
41
|
/** A live element as the audit core reads it. */
|
|
42
42
|
function auditNodeOf(el: Element): AuditNode {
|
|
43
43
|
return {
|
|
44
|
+
tagName: el.tagName,
|
|
44
45
|
getAttribute: (name) => el.getAttribute(name),
|
|
45
46
|
getAttributeNames: () => el.getAttributeNames(),
|
|
46
47
|
withinIdentity: (name, identities) => {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--ui-dialog-transition-timing-function: var(--default-transition-timing-function);
|
|
22
22
|
--ui-dialog-backdrop-transition-duration: calc(var(--ui-dialog-transition-duration) - 100ms);
|
|
23
23
|
--ui-dialog-backdrop-transition-timing-function: ease;
|
|
24
|
-
--ui-dialog-backdrop-
|
|
24
|
+
--ui-dialog-backdrop-filter: none;
|
|
25
25
|
--ui-dialog-shadow: var(--shadow-lg);
|
|
26
26
|
--ui-dialog-border: 1px solid var(--color-border);
|
|
27
27
|
--ui-dialog-w: min(var(--layout-md), 100% - var(--gutters) * 2);
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
overscroll-behavior: contain;
|
|
104
104
|
overflow: auto;
|
|
105
105
|
background-color: var(--ui-dialog-backdrop-color);
|
|
106
|
-
backdrop-filter: var(--ui-dialog-backdrop-
|
|
106
|
+
backdrop-filter: var(--ui-dialog-backdrop-filter);
|
|
107
107
|
transition: opacity var(--ui-dialog-backdrop-transition-duration)
|
|
108
108
|
var(--ui-dialog-backdrop-transition-timing-function);
|
|
109
109
|
}
|
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
* @uses :user-invalid: validation after commit (not while typing)
|
|
7
7
|
* @uses :has(:user-invalid): label/hint/error crossfade
|
|
8
8
|
* @uses @starting-style + visibility allow-discrete: hint <-> error swap
|
|
9
|
+
* @uses @supports (-webkit-touch-callout: none): iOS-only 16px field text,
|
|
10
|
+
* so a focused control does not zoom the page
|
|
9
11
|
* @tokens --ui-field-*, --ui-field-group-* (Tier 3 owner; @layer variables)
|
|
10
12
|
* @consumedby input.css, textarea.css, select.css, input-group.css,
|
|
11
13
|
* password-group.css, otp.css, radio.css, checkbox.css,
|
|
12
14
|
* autocomplete.css, combobox.css, command.css,
|
|
13
|
-
* button.css (metrics: h/rounded/px/
|
|
14
|
-
*
|
|
15
|
+
* button.css (metrics: h/rounded/px/icon/ring/border width+style; not font-size
|
|
16
|
+
* or leading, so the iOS 16px rule below reaches text controls only),
|
|
17
|
+
* toggle.css (via button.css), tabs.css (same metrics), badge.css (border/ring)
|
|
15
18
|
*
|
|
16
19
|
* Identities: data-ui="field" (label + control + description wrapper),
|
|
17
20
|
* data-ui="field-group" (fieldset; data-ui="radio-group" shares its rules).
|
|
@@ -69,6 +72,16 @@
|
|
|
69
72
|
--ui-field-group-gap: var(--space-xs);
|
|
70
73
|
--ui-field-group-rounded: var(--radius-lg);
|
|
71
74
|
}
|
|
75
|
+
|
|
76
|
+
/* iOS zooms the page to any focused control that renders under 16px, so a
|
|
77
|
+
--font-size-sm field opens the keyboard with a lurch. Every iOS browser is
|
|
78
|
+
WebKit, and -webkit-touch-callout exists only there, so this raises the
|
|
79
|
+
field size on iOS alone; desktop and Android keep the smaller type. */
|
|
80
|
+
@supports (-webkit-touch-callout: none) {
|
|
81
|
+
:root {
|
|
82
|
+
--ui-field-font-size: max(16px, var(--font-size-sm));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
72
85
|
}
|
|
73
86
|
|
|
74
87
|
@layer ui.components {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<label data-ui="input-group">
|
|
2
|
-
<input data-ui="input" type="search" placeholder="Search…" aria-label="Search" />
|
|
2
|
+
<input data-ui="input" type="search" name="q" placeholder="Search…" aria-label="Search" />
|
|
3
3
|
<span data-input-group-slot="addon" data-input-group-align="inline-end">
|
|
4
4
|
<svg
|
|
5
5
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* input.css — Text input ([data-ui~="input"])
|
|
3
3
|
*
|
|
4
4
|
* @layer variables, components
|
|
5
|
-
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-
|
|
5
|
+
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-shadow), fields.css, _reset.css
|
|
6
6
|
* @uses ::-webkit-calendar-picker-indicator — date/time picker chrome (WebKit)
|
|
7
7
|
* @uses mask — calendar icon (not background-image, for color: currentColor)
|
|
8
8
|
* @tokens --ui-input-* (@layer variables; surface colors and height read the
|
|
@@ -67,18 +67,25 @@
|
|
|
67
67
|
border-color: var(--_border-color-resolved, var(--ui-input-border-color));
|
|
68
68
|
border-radius: var(--_rounded-resolved, var(--ui-input-rounded));
|
|
69
69
|
|
|
70
|
-
/* The ring is published to --_focus-
|
|
70
|
+
/* The ring is published to --_focus-shadow so a --shadow utility keeps
|
|
71
71
|
it; the transparent outline twin keeps focus visible in forced-colors */
|
|
72
72
|
--_ring-offset-width: 0px;
|
|
73
73
|
--_ring-width: 0px;
|
|
74
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
74
75
|
--_ring-fill: color-mix(in oklch, var(--ui-field-ring-color) var(--ring-opacity), transparent);
|
|
75
|
-
--_focus-
|
|
76
|
-
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
77
|
-
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
76
|
+
--_focus-shadow:
|
|
77
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
78
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
79
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
80
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
81
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
78
82
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
79
|
-
box-shadow: var(--_focus-
|
|
80
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
81
|
-
outline-offset:
|
|
83
|
+
box-shadow: var(--_focus-shadow, 0 0 #0000), var(--_shadow-resolved, 0 0 #0000);
|
|
84
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
85
|
+
outline-offset: calc(
|
|
86
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
87
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
88
|
+
);
|
|
82
89
|
|
|
83
90
|
transition: var(--default-transition);
|
|
84
91
|
}
|
|
@@ -94,7 +101,7 @@
|
|
|
94
101
|
background-color: var(--_bg-resolved, var(--ui-field-bg--focus-within));
|
|
95
102
|
border-color: var(--_border-color-resolved, var(--ui-field-border-color--focus-within));
|
|
96
103
|
--_ring-offset-width: var(--ring-offset-width);
|
|
97
|
-
--_ring-width: var(--ring-width);
|
|
104
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
98
105
|
outline-color: transparent;
|
|
99
106
|
}
|
|
100
107
|
|
|
@@ -79,17 +79,24 @@
|
|
|
79
79
|
|
|
80
80
|
--_ring-offset-width: 0px;
|
|
81
81
|
--_ring-width: 0px;
|
|
82
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
82
83
|
--_ring-fill: color-mix(in oklch, var(--ui-field-ring-color) var(--ring-opacity), transparent);
|
|
83
|
-
/* The ring is published to --_focus-
|
|
84
|
-
--_focus-
|
|
85
|
-
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
86
|
-
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
84
|
+
/* The ring is published to --_focus-shadow so a --shadow utility keeps it */
|
|
85
|
+
--_focus-shadow:
|
|
86
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
87
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
88
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
89
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
90
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
87
91
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
88
92
|
box-shadow:
|
|
89
|
-
var(--_focus-
|
|
93
|
+
var(--_focus-shadow, 0 0 #0000), var(--_shadow-resolved, var(--ui-input-group-shadow));
|
|
90
94
|
|
|
91
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
92
|
-
outline-offset:
|
|
95
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
96
|
+
outline-offset: calc(
|
|
97
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
98
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
99
|
+
);
|
|
93
100
|
|
|
94
101
|
transition: var(--default-transition);
|
|
95
102
|
}
|
|
@@ -105,7 +112,7 @@
|
|
|
105
112
|
background-color: var(--_bg-resolved, var(--ui-field-bg--focus-within));
|
|
106
113
|
border-color: var(--_border-color-resolved, var(--ui-field-border-color--focus-within));
|
|
107
114
|
--_ring-offset-width: var(--ring-offset-width);
|
|
108
|
-
--_ring-width: var(--ring-width);
|
|
115
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
109
116
|
outline-color: transparent;
|
|
110
117
|
}
|
|
111
118
|
|
|
@@ -111,7 +111,11 @@
|
|
|
111
111
|
"
|
|
112
112
|
>
|
|
113
113
|
Platform
|
|
114
|
-
<svg
|
|
114
|
+
<svg
|
|
115
|
+
data-accordion-slot="marker"
|
|
116
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
117
|
+
viewBox="0 0 256 256"
|
|
118
|
+
>
|
|
115
119
|
<rect width="256" height="256" fill="none" />
|
|
116
120
|
<polyline
|
|
117
121
|
points="208 96 128 176 48 96"
|
|
@@ -259,7 +263,11 @@
|
|
|
259
263
|
"
|
|
260
264
|
>
|
|
261
265
|
Resources
|
|
262
|
-
<svg
|
|
266
|
+
<svg
|
|
267
|
+
data-accordion-slot="marker"
|
|
268
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
269
|
+
viewBox="0 0 256 256"
|
|
270
|
+
>
|
|
263
271
|
<rect width="256" height="256" fill="none" />
|
|
264
272
|
<polyline
|
|
265
273
|
points="208 96 128 176 48 96"
|
|
@@ -378,7 +386,11 @@
|
|
|
378
386
|
"
|
|
379
387
|
>
|
|
380
388
|
Products
|
|
381
|
-
<svg
|
|
389
|
+
<svg
|
|
390
|
+
data-accordion-slot="marker"
|
|
391
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
392
|
+
viewBox="0 0 256 256"
|
|
393
|
+
>
|
|
382
394
|
<rect width="256" height="256" fill="none" />
|
|
383
395
|
<polyline
|
|
384
396
|
points="208 96 128 176 48 96"
|
|
@@ -408,7 +420,11 @@
|
|
|
408
420
|
"
|
|
409
421
|
>
|
|
410
422
|
Design
|
|
411
|
-
<svg
|
|
423
|
+
<svg
|
|
424
|
+
data-accordion-slot="marker"
|
|
425
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
426
|
+
viewBox="0 0 256 256"
|
|
427
|
+
>
|
|
412
428
|
<rect width="256" height="256" fill="none" />
|
|
413
429
|
<polyline
|
|
414
430
|
points="208 96 128 176 48 96"
|
|
@@ -556,7 +572,11 @@
|
|
|
556
572
|
"
|
|
557
573
|
>
|
|
558
574
|
Development
|
|
559
|
-
<svg
|
|
575
|
+
<svg
|
|
576
|
+
data-accordion-slot="marker"
|
|
577
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
578
|
+
viewBox="0 0 256 256"
|
|
579
|
+
>
|
|
560
580
|
<rect width="256" height="256" fill="none" />
|
|
561
581
|
<polyline
|
|
562
582
|
points="208 96 128 176 48 96"
|
|
@@ -704,7 +724,11 @@
|
|
|
704
724
|
"
|
|
705
725
|
>
|
|
706
726
|
Content
|
|
707
|
-
<svg
|
|
727
|
+
<svg
|
|
728
|
+
data-accordion-slot="marker"
|
|
729
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
730
|
+
viewBox="0 0 256 256"
|
|
731
|
+
>
|
|
708
732
|
<rect width="256" height="256" fill="none" />
|
|
709
733
|
<polyline
|
|
710
734
|
points="208 96 128 176 48 96"
|
|
@@ -826,7 +850,11 @@
|
|
|
826
850
|
"
|
|
827
851
|
>
|
|
828
852
|
Shop
|
|
829
|
-
<svg
|
|
853
|
+
<svg
|
|
854
|
+
data-accordion-slot="marker"
|
|
855
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
856
|
+
viewBox="0 0 256 256"
|
|
857
|
+
>
|
|
830
858
|
<rect width="256" height="256" fill="none" />
|
|
831
859
|
<polyline
|
|
832
860
|
points="208 96 128 176 48 96"
|
|
@@ -856,7 +884,11 @@
|
|
|
856
884
|
"
|
|
857
885
|
>
|
|
858
886
|
Women
|
|
859
|
-
<svg
|
|
887
|
+
<svg
|
|
888
|
+
data-accordion-slot="marker"
|
|
889
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
890
|
+
viewBox="0 0 256 256"
|
|
891
|
+
>
|
|
860
892
|
<rect width="256" height="256" fill="none" />
|
|
861
893
|
<polyline
|
|
862
894
|
points="208 96 128 176 48 96"
|
|
@@ -1191,7 +1223,11 @@
|
|
|
1191
1223
|
"
|
|
1192
1224
|
>
|
|
1193
1225
|
Men
|
|
1194
|
-
<svg
|
|
1226
|
+
<svg
|
|
1227
|
+
data-accordion-slot="marker"
|
|
1228
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1229
|
+
viewBox="0 0 256 256"
|
|
1230
|
+
>
|
|
1195
1231
|
<rect width="256" height="256" fill="none" />
|
|
1196
1232
|
<polyline
|
|
1197
1233
|
points="208 96 128 176 48 96"
|
|
@@ -1526,7 +1562,11 @@
|
|
|
1526
1562
|
"
|
|
1527
1563
|
>
|
|
1528
1564
|
Home
|
|
1529
|
-
<svg
|
|
1565
|
+
<svg
|
|
1566
|
+
data-accordion-slot="marker"
|
|
1567
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1568
|
+
viewBox="0 0 256 256"
|
|
1569
|
+
>
|
|
1530
1570
|
<rect width="256" height="256" fill="none" />
|
|
1531
1571
|
<polyline
|
|
1532
1572
|
points="208 96 128 176 48 96"
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
popovertarget="nav-featured-1"
|
|
12
12
|
>
|
|
13
13
|
Magazine
|
|
14
|
-
<svg
|
|
14
|
+
<svg
|
|
15
|
+
data-navigation-menu-slot="marker"
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
viewBox="0 0 256 256"
|
|
18
|
+
>
|
|
15
19
|
<rect width="256" height="256" fill="none" />
|
|
16
20
|
<polyline
|
|
17
21
|
points="208 96 128 176 48 96"
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
popovertarget="nav-icon-grid-1"
|
|
12
12
|
>
|
|
13
13
|
Solutions
|
|
14
|
-
<svg
|
|
14
|
+
<svg
|
|
15
|
+
data-navigation-menu-slot="marker"
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
viewBox="0 0 256 256"
|
|
18
|
+
>
|
|
15
19
|
<rect width="256" height="256" fill="none" />
|
|
16
20
|
<polyline
|
|
17
21
|
points="208 96 128 176 48 96"
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
interestfor="nav-interest-1"
|
|
14
14
|
>
|
|
15
15
|
Platform
|
|
16
|
-
<svg
|
|
16
|
+
<svg
|
|
17
|
+
data-navigation-menu-slot="marker"
|
|
18
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
19
|
+
viewBox="0 0 256 256"
|
|
20
|
+
>
|
|
17
21
|
<rect width="256" height="256" fill="none" />
|
|
18
22
|
<polyline
|
|
19
23
|
points="208 96 128 176 48 96"
|
|
@@ -115,7 +119,11 @@
|
|
|
115
119
|
interestfor="nav-interest-2"
|
|
116
120
|
>
|
|
117
121
|
Resources
|
|
118
|
-
<svg
|
|
122
|
+
<svg
|
|
123
|
+
data-navigation-menu-slot="marker"
|
|
124
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
125
|
+
viewBox="0 0 256 256"
|
|
126
|
+
>
|
|
119
127
|
<rect width="256" height="256" fill="none" />
|
|
120
128
|
<polyline
|
|
121
129
|
points="208 96 128 176 48 96"
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
popovertarget="nav-megamenu-1"
|
|
13
13
|
>
|
|
14
14
|
Shop
|
|
15
|
-
<svg
|
|
15
|
+
<svg
|
|
16
|
+
data-navigation-menu-slot="marker"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
viewBox="0 0 256 256"
|
|
19
|
+
>
|
|
16
20
|
<rect width="256" height="256" fill="none" />
|
|
17
21
|
<polyline
|
|
18
22
|
points="208 96 128 176 48 96"
|
|
@@ -22,7 +22,11 @@
|
|
|
22
22
|
popovertarget="nav-simple-1"
|
|
23
23
|
>
|
|
24
24
|
Products
|
|
25
|
-
<svg
|
|
25
|
+
<svg
|
|
26
|
+
data-navigation-menu-slot="marker"
|
|
27
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
+
viewBox="0 0 256 256"
|
|
29
|
+
>
|
|
26
30
|
<rect width="256" height="256" fill="none" />
|
|
27
31
|
<polyline
|
|
28
32
|
points="208 96 128 176 48 96"
|
|
@@ -136,6 +140,7 @@
|
|
|
136
140
|
<input
|
|
137
141
|
data-ui="input"
|
|
138
142
|
type="search"
|
|
143
|
+
name="q"
|
|
139
144
|
aria-label="Search the site"
|
|
140
145
|
placeholder="Search…"
|
|
141
146
|
style="--min-w: 40ch"
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* @uses [popover] + nested popovers: megamenu panels and flyout submenus
|
|
7
7
|
* @uses anchor-name, anchor-scope, position-anchor, anchor-size(): panel
|
|
8
8
|
* sizing and positioning (Chromium 125+ for anchor-size)
|
|
9
|
-
* @uses :has(:popover-open):
|
|
9
|
+
* @uses :has(:popover-open): rotates the trigger's data-navigation-menu-slot="marker"
|
|
10
|
+
* chevron without JS
|
|
10
11
|
* @uses @starting-style: slide-down viewport reveal
|
|
11
12
|
* @tokens --ui-navigation-menu-* (@layer variables)
|
|
12
13
|
* @presets on the popover slot: data-navigation-menu-variant="submenu",
|
|
@@ -62,7 +63,9 @@
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
/* Chevron points down by default, flips up while its popover is open (no JS) */
|
|
65
|
-
:where([data-ui~="navigation-menu"])
|
|
66
|
+
:where([data-ui~="navigation-menu"])
|
|
67
|
+
[data-navigation-menu-slot~="trigger"]
|
|
68
|
+
> [data-navigation-menu-slot~="marker"] {
|
|
66
69
|
inline-size: var(--space-sm);
|
|
67
70
|
block-size: var(--space-sm);
|
|
68
71
|
transition: var(--ui-navigation-menu-icon-transition);
|
|
@@ -71,7 +74,7 @@
|
|
|
71
74
|
:where([data-ui~="navigation-menu"])
|
|
72
75
|
[data-navigation-menu-slot~="item"]:has([data-navigation-menu-slot~="popover"]:popover-open)
|
|
73
76
|
[data-navigation-menu-slot~="trigger"]
|
|
74
|
-
>
|
|
77
|
+
> [data-navigation-menu-slot~="marker"] {
|
|
75
78
|
transform: var(--ui-navigation-menu-icon-transform);
|
|
76
79
|
}
|
|
77
80
|
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
popovertarget="nav-panel-1"
|
|
12
12
|
>
|
|
13
13
|
Platform
|
|
14
|
-
<svg
|
|
14
|
+
<svg
|
|
15
|
+
data-navigation-menu-slot="marker"
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
viewBox="0 0 256 256"
|
|
18
|
+
>
|
|
15
19
|
<rect width="256" height="256" fill="none" />
|
|
16
20
|
<polyline
|
|
17
21
|
points="208 96 128 176 48 96"
|
|
@@ -197,7 +201,11 @@
|
|
|
197
201
|
popovertarget="nav-panel-2"
|
|
198
202
|
>
|
|
199
203
|
Resources
|
|
200
|
-
<svg
|
|
204
|
+
<svg
|
|
205
|
+
data-navigation-menu-slot="marker"
|
|
206
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
207
|
+
viewBox="0 0 256 256"
|
|
208
|
+
>
|
|
201
209
|
<rect width="256" height="256" fill="none" />
|
|
202
210
|
<polyline
|
|
203
211
|
points="208 96 128 176 48 96"
|
|
@@ -300,7 +308,11 @@
|
|
|
300
308
|
popovertarget="nav-panel-3"
|
|
301
309
|
>
|
|
302
310
|
Products
|
|
303
|
-
<svg
|
|
311
|
+
<svg
|
|
312
|
+
data-navigation-menu-slot="marker"
|
|
313
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
314
|
+
viewBox="0 0 256 256"
|
|
315
|
+
>
|
|
304
316
|
<rect width="256" height="256" fill="none" />
|
|
305
317
|
<polyline
|
|
306
318
|
points="208 96 128 176 48 96"
|
|
@@ -74,14 +74,21 @@
|
|
|
74
74
|
forced-colors mode */
|
|
75
75
|
--_ring-offset-width: 0px;
|
|
76
76
|
--_ring-width: 0px;
|
|
77
|
+
--_focus-in: max(0, -1 * sign(var(--_focus-ring-w, 1px)));
|
|
77
78
|
--_ring-fill: color-mix(in oklch, var(--ui-field-ring-color) var(--ring-opacity), transparent);
|
|
78
|
-
--_focus-
|
|
79
|
-
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
80
|
-
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
79
|
+
--_focus-shadow:
|
|
80
|
+
0 0 0 calc(var(--_ring-offset-width) * (1 - var(--_focus-in))) var(--ring-offset-shadow-color),
|
|
81
|
+
0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * (1 - var(--_focus-in)))
|
|
82
|
+
var(--_ring-fill, var(--ring-shadow-color)),
|
|
83
|
+
inset 0 0 0 calc(var(--_ring-offset-width) * var(--_focus-in)) var(--ring-offset-shadow-color),
|
|
84
|
+
inset 0 0 0 calc((var(--_ring-offset-width) + var(--_ring-width)) * var(--_focus-in))
|
|
81
85
|
var(--_ring-fill, var(--ring-shadow-color));
|
|
82
|
-
box-shadow: var(--_focus-
|
|
83
|
-
outline: var(--outline-width) var(--outline-style) transparent;
|
|
84
|
-
outline-offset:
|
|
86
|
+
box-shadow: var(--_focus-shadow, 0 0 #0000), var(--_shadow-resolved, 0 0 #0000);
|
|
87
|
+
outline: abs(var(--_focus-ring-w, var(--outline-width))) var(--outline-style) transparent;
|
|
88
|
+
outline-offset: calc(
|
|
89
|
+
var(--outline-offset) - var(--_focus-in) *
|
|
90
|
+
(2 * var(--outline-offset) + abs(var(--_focus-ring-w, var(--outline-width))))
|
|
91
|
+
);
|
|
85
92
|
|
|
86
93
|
transition: var(--default-transition);
|
|
87
94
|
}
|
|
@@ -97,7 +104,7 @@
|
|
|
97
104
|
background-color: var(--_bg-resolved, var(--ui-field-bg--focus-within));
|
|
98
105
|
border-color: var(--_border-color-resolved, var(--ui-field-border-color--focus-within));
|
|
99
106
|
--_ring-offset-width: var(--ring-offset-width);
|
|
100
|
-
--_ring-width: var(--ring-width);
|
|
107
|
+
--_ring-width: abs(var(--_focus-ring-w, var(--ring-width)));
|
|
101
108
|
outline-color: transparent;
|
|
102
109
|
}
|
|
103
110
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @example
|
|
26
26
|
* <ui-password>
|
|
27
27
|
* <label data-ui="password-group">
|
|
28
|
-
* <input data-ui="input" type="password" autocomplete="current-password" />
|
|
28
|
+
* <input data-ui="input" type="password" name="password" autocomplete="current-password" />
|
|
29
29
|
* <span data-password-group-slot="addon" data-password-group-align="inline-end">
|
|
30
30
|
* <button data-ui="button" data-password-group-slot="toggle" type="button"
|
|
31
31
|
* aria-pressed="false" aria-label="Show password">…</button>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* @example
|
|
27
27
|
* <ui-password>
|
|
28
28
|
* <label data-ui="password-group">
|
|
29
|
-
* <input data-ui="input" type="password" autocomplete="current-password" />
|
|
29
|
+
* <input data-ui="input" type="password" name="password" autocomplete="current-password" />
|
|
30
30
|
* <span data-password-group-slot="addon" data-password-group-align="inline-end">
|
|
31
31
|
* <button data-ui="button" data-password-group-slot="toggle" type="button"
|
|
32
32
|
* aria-pressed="false" aria-label="Show password">…</button>
|