@matekit/react 0.1.0 → 0.1.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/CHANGELOG.md +31 -0
- package/dist/organisms/PaneScaffold/PaneScaffold.d.ts +21 -9
- package/dist/organisms/PaneScaffold/PaneScaffold.js +22 -10
- package/dist/organisms/Search/Search.d.ts +11 -5
- package/dist/organisms/Search/Search.js +39 -10
- package/dist/organisms/Search/SearchSlots.d.ts +3 -1
- package/dist/organisms/Search/SearchSlots.js +3 -1
- package/dist/styles-no-fonts.css +64 -30
- package/dist/styles.css +64 -30
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,36 @@ All notable changes to `@matekit/react` are documented in this file. The format
|
|
|
5
5
|
[Semantic Versioning](https://semver.org/) (while in 0.x, a minor version may contain breaking
|
|
6
6
|
changes, always listed here).
|
|
7
7
|
|
|
8
|
+
## [0.1.1] - Unreleased
|
|
9
|
+
|
|
10
|
+
Fixes for four problems found by building an app with 0.1.0 and testing it on a phone. No API changes.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **`Search`: focus order.** `SearchBar` now renders its parts in the order they are seen: start
|
|
15
|
+
(`SearchBarLeading`), the input, the clear button, end (`SearchBarTrailing`). Before, both parts came
|
|
16
|
+
before the `<input>` in the DOM, so Tab and screen readers reached a button in `SearchBarTrailing`
|
|
17
|
+
(an account avatar, a voice button) before the field (WCAG 2.4.3). The order no longer depends on how
|
|
18
|
+
you write the parts, also in server-rendered HTML. Parts must be direct children of `SearchBar` (or
|
|
19
|
+
inside a fragment); a part wrapped in a component of your own keeps the 0.1.0 order.
|
|
20
|
+
- **`PaneScaffold`: no empty column with a single pane.** From 840 px wide, a `variant="supporting"`
|
|
21
|
+
scaffold with only `<Pane name="main">`, or a `list-detail` scaffold with only one pane, reserved the
|
|
22
|
+
missing pane's column (360 px, or 412 px from 1200 px) and left it empty. Only the panes that exist take
|
|
23
|
+
room now: a single pane fills the width, and the detail (or main) pane with the extra one and no list
|
|
24
|
+
(or supporting) pane shows those two. If you overrode the scaffold's private grid variable to work
|
|
25
|
+
around this, remove that override.
|
|
26
|
+
- **`PaneScaffold`: a visible `main` landmark on phones.** The documented recipe (`render={<main />}` on
|
|
27
|
+
the detail pane) left a phone showing the list with no visible `main` landmark, because the hidden
|
|
28
|
+
detail is out of the accessibility tree. The recipe is now: make each pane a named `<section>` with
|
|
29
|
+
`render`, and set `role="main"` on the pane that is the scaffold's `pane`
|
|
30
|
+
(`role={pane === 'list' ? 'main' : undefined}`). There is always exactly one visible `main`, and the
|
|
31
|
+
`NavigationSuite` stays outside it. Change the `role`, not the `render` element, so the pane keeps its
|
|
32
|
+
state and scroll position. Updated in the `PaneScaffold` and `Pane` JSDoc and the documentation site.
|
|
33
|
+
- **`Search`: full screen on a phone in landscape.** `view="auto"` chose only by the window width, so a
|
|
34
|
+
phone in landscape (about 844 × 390) got the docked list, and with the on-screen keyboard open it was
|
|
35
|
+
left a thin strip. It now goes full screen in a short window too (under 480 px tall), the same rule as
|
|
36
|
+
`Dialog view="auto"` and `NavigationSuite`.
|
|
37
|
+
|
|
8
38
|
## [0.1.0] - 2026-11-30
|
|
9
39
|
|
|
10
40
|
First public release: React 19 components for Material 3 Expressive, as an ESM package with
|
|
@@ -68,4 +98,5 @@ TypeScript declarations, plain CSS and a self-hosted font.
|
|
|
68
98
|
- Diagnostics with stable codes: `MatekitError` and the `MatekitErrorCode`/`MatekitWarningCode` types;
|
|
69
99
|
development warnings are removed in production builds.
|
|
70
100
|
|
|
101
|
+
[0.1.1]: https://github.com/jrodrigopuca/matekit/compare/v0.1.0...v0.1.1
|
|
71
102
|
[0.1.0]: https://github.com/jrodrigopuca/matekit/releases/tag/v0.1.0
|
|
@@ -35,14 +35,17 @@ export type PaneScaffoldProps = PaneScaffoldListDetailProps | PaneScaffoldSuppor
|
|
|
35
35
|
* layout with its own sidebar, a 900 px window can show the rail and a single pane.
|
|
36
36
|
*
|
|
37
37
|
* ```tsx
|
|
38
|
-
*
|
|
38
|
+
* const pane = selected ? 'detail' : 'list'
|
|
39
|
+
* const main = (name: ListDetailPaneName) => (pane === name ? 'main' : undefined)
|
|
40
|
+
*
|
|
41
|
+
* <PaneScaffold pane={pane}>
|
|
39
42
|
* <NavigationSuite aria-label="Main">…</NavigationSuite>
|
|
40
|
-
* <Pane name="list" render={<
|
|
43
|
+
* <Pane name="list" render={<section aria-label="Inbox" />} role={main('list')}>
|
|
41
44
|
* <TopAppBar><TopAppBarTitle>Inbox</TopAppBarTitle></TopAppBar>
|
|
42
45
|
* <List>…</List>
|
|
43
46
|
* </Pane>
|
|
44
|
-
* <Pane name="detail" render={<
|
|
45
|
-
* <TopAppBar>…</TopAppBar>
|
|
47
|
+
* <Pane name="detail" render={<section aria-labelledby="subject" />} role={main('detail')}>
|
|
48
|
+
* <TopAppBar><TopAppBarTitle id="subject">…</TopAppBarTitle></TopAppBar>
|
|
46
49
|
* …
|
|
47
50
|
* </Pane>
|
|
48
51
|
* </PaneScaffold>
|
|
@@ -59,7 +62,16 @@ export type PaneScaffoldProps = PaneScaffoldListDetailProps | PaneScaffoldSuppor
|
|
|
59
62
|
* - **Which:** with one, the `pane`. With more, the `pane` and the higher-priority ones (Compose: the
|
|
60
63
|
* detail or the main pane, then the list or the supporting one, then the extra), from start to end:
|
|
61
64
|
* list, detail, extra; or main, supporting, extra. The rest stay mounted and hidden (also from
|
|
62
|
-
* accessibility): their state and scroll position are kept.
|
|
65
|
+
* accessibility): their state and scroll position are kept. Only the panes that exist take room: a
|
|
66
|
+
* scaffold with a single `Pane` (a screen with no supporting content) fills the width at any size,
|
|
67
|
+
* and the detail or main pane with the extra one and no list or supporting pane shows those two.
|
|
68
|
+
* - **Landmarks:** give each pane a named `<section>` with `render` and add `role="main"` to the one
|
|
69
|
+
* that is the `pane`, as in the example: there is always exactly one visible `main` (on a phone,
|
|
70
|
+
* whichever pane is on screen), and the `NavigationSuite`, a `<nav>`, stays outside it. Change the
|
|
71
|
+
* `role`, not the `render` element: a different element would mount the pane again and lose its
|
|
72
|
+
* state and scroll position. A fixed `render={<main />}` on the detail leaves a phone showing the
|
|
73
|
+
* list with no visible `main`. A pane that is always the only one (a single-pane screen) can be a
|
|
74
|
+
* `<main>`.
|
|
63
75
|
* - **Widths:** the secondary pane is 360 (412 from 1200), the detail or main pane takes the rest, 24
|
|
64
76
|
* between panes; if they do not fit, all shrink equally (Compose's split).
|
|
65
77
|
* - **Look (kit):** `surface` background. From a scaffold width of 600, panes with a surface (all but
|
|
@@ -94,10 +106,10 @@ export interface PaneProps extends LayoutElementProps {
|
|
|
94
106
|
children?: ReactNode;
|
|
95
107
|
}
|
|
96
108
|
/**
|
|
97
|
-
* A pane of the `PaneScaffold`: a `<div>` that scrolls on its own (or the `render` element
|
|
98
|
-
*
|
|
99
|
-
* It goes as a direct child of the scaffold, in start-to-end order
|
|
100
|
-
* also the reading and Tab order.
|
|
109
|
+
* A pane of the `PaneScaffold`: a `<div>` that scrolls on its own (or the `render` element, usually a
|
|
110
|
+
* named `<section aria-label="…" />`, with `role="main"` while it is the scaffold's `pane`: see
|
|
111
|
+
* Landmarks in `PaneScaffold`). It goes as a direct child of the scaffold, in start-to-end order
|
|
112
|
+
* (list, detail, extra), which is also the reading and Tab order.
|
|
101
113
|
*
|
|
102
114
|
* Its first child can be a `TopAppBar`: it sticks to the top of the pane and collapses as the pane
|
|
103
115
|
* scrolls. Native props, `ref` and `render` reach the element.
|
|
@@ -11,7 +11,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
// panel de `pane` en atributos (`data-variant`, `data-current`) y el nombre de cada panel
|
|
12
12
|
// (`data-pane`); así el HTML del servidor ya es el correcto y no hay salto al hidratar.
|
|
13
13
|
//
|
|
14
|
-
// Los paneles ocultos quedan montados (`
|
|
14
|
+
// Los paneles ocultos quedan montados (`visibility: hidden`): su estado de React y lo desplazado
|
|
15
15
|
// sobreviven al cambiar de ventana o de panel actual (comprobado en los tres motores, ADR-0030).
|
|
16
16
|
import { Children, Fragment, isValidElement } from 'react';
|
|
17
17
|
import { isDevelopment } from '../../internal/dev.js';
|
|
@@ -29,14 +29,17 @@ const PANES = {
|
|
|
29
29
|
* layout with its own sidebar, a 900 px window can show the rail and a single pane.
|
|
30
30
|
*
|
|
31
31
|
* ```tsx
|
|
32
|
-
*
|
|
32
|
+
* const pane = selected ? 'detail' : 'list'
|
|
33
|
+
* const main = (name: ListDetailPaneName) => (pane === name ? 'main' : undefined)
|
|
34
|
+
*
|
|
35
|
+
* <PaneScaffold pane={pane}>
|
|
33
36
|
* <NavigationSuite aria-label="Main">…</NavigationSuite>
|
|
34
|
-
* <Pane name="list" render={<
|
|
37
|
+
* <Pane name="list" render={<section aria-label="Inbox" />} role={main('list')}>
|
|
35
38
|
* <TopAppBar><TopAppBarTitle>Inbox</TopAppBarTitle></TopAppBar>
|
|
36
39
|
* <List>…</List>
|
|
37
40
|
* </Pane>
|
|
38
|
-
* <Pane name="detail" render={<
|
|
39
|
-
* <TopAppBar>…</TopAppBar>
|
|
41
|
+
* <Pane name="detail" render={<section aria-labelledby="subject" />} role={main('detail')}>
|
|
42
|
+
* <TopAppBar><TopAppBarTitle id="subject">…</TopAppBarTitle></TopAppBar>
|
|
40
43
|
* …
|
|
41
44
|
* </Pane>
|
|
42
45
|
* </PaneScaffold>
|
|
@@ -53,7 +56,16 @@ const PANES = {
|
|
|
53
56
|
* - **Which:** with one, the `pane`. With more, the `pane` and the higher-priority ones (Compose: the
|
|
54
57
|
* detail or the main pane, then the list or the supporting one, then the extra), from start to end:
|
|
55
58
|
* list, detail, extra; or main, supporting, extra. The rest stay mounted and hidden (also from
|
|
56
|
-
* accessibility): their state and scroll position are kept.
|
|
59
|
+
* accessibility): their state and scroll position are kept. Only the panes that exist take room: a
|
|
60
|
+
* scaffold with a single `Pane` (a screen with no supporting content) fills the width at any size,
|
|
61
|
+
* and the detail or main pane with the extra one and no list or supporting pane shows those two.
|
|
62
|
+
* - **Landmarks:** give each pane a named `<section>` with `render` and add `role="main"` to the one
|
|
63
|
+
* that is the `pane`, as in the example: there is always exactly one visible `main` (on a phone,
|
|
64
|
+
* whichever pane is on screen), and the `NavigationSuite`, a `<nav>`, stays outside it. Change the
|
|
65
|
+
* `role`, not the `render` element: a different element would mount the pane again and lose its
|
|
66
|
+
* state and scroll position. A fixed `render={<main />}` on the detail leaves a phone showing the
|
|
67
|
+
* list with no visible `main`. A pane that is always the only one (a single-pane screen) can be a
|
|
68
|
+
* `<main>`.
|
|
57
69
|
* - **Widths:** the secondary pane is 360 (412 from 1200), the detail or main pane takes the rest, 24
|
|
58
70
|
* between panes; if they do not fit, all shrink equally (Compose's split).
|
|
59
71
|
* - **Look (kit):** `surface` background. From a scaffold width of 600, panes with a surface (all but
|
|
@@ -79,10 +91,10 @@ export function PaneScaffold({ variant = 'list-detail', pane, className, style,
|
|
|
79
91
|
return layoutElement('PaneScaffold', cx('mk-pane-scaffold', className), style, { ...props, 'data-variant': variant, 'data-current': shown }, _jsx("div", { className: "mk-pane-scaffold-grid", children: children }));
|
|
80
92
|
}
|
|
81
93
|
/**
|
|
82
|
-
* A pane of the `PaneScaffold`: a `<div>` that scrolls on its own (or the `render` element
|
|
83
|
-
*
|
|
84
|
-
* It goes as a direct child of the scaffold, in start-to-end order
|
|
85
|
-
* also the reading and Tab order.
|
|
94
|
+
* A pane of the `PaneScaffold`: a `<div>` that scrolls on its own (or the `render` element, usually a
|
|
95
|
+
* named `<section aria-label="…" />`, with `role="main"` while it is the scaffold's `pane`: see
|
|
96
|
+
* Landmarks in `PaneScaffold`). It goes as a direct child of the scaffold, in start-to-end order
|
|
97
|
+
* (list, detail, extra), which is also the reading and Tab order.
|
|
86
98
|
*
|
|
87
99
|
* Its first child can be a `TopAppBar`: it sticks to the top of the pane and collapses as the pane
|
|
88
100
|
* scrolls. Native props, `ref` and `render` reach the element.
|
|
@@ -4,8 +4,10 @@ import type { AccessibleNameProps } from '../../internal/accessible-name.ts';
|
|
|
4
4
|
/** How the suggestions are shown: below the bar (`docked`) or in a modal view that fills the screen. */
|
|
5
5
|
export type SearchViewMode = 'docked' | 'full-screen';
|
|
6
6
|
/**
|
|
7
|
-
* Which view the search uses. `auto` (the default) chooses by the window
|
|
8
|
-
* compact
|
|
7
|
+
* Which view the search uses. `auto` (the default) chooses by the window size: full screen in a
|
|
8
|
+
* compact window (under 600 px wide, `WINDOW_WIDTH.medium`, or under 480 px tall,
|
|
9
|
+
* `WINDOW_HEIGHT.medium`, like a phone in landscape, where the on-screen keyboard leaves no room for a
|
|
10
|
+
* list below the bar) and docked otherwise; the same rule as `Dialog view="auto"` and `NavigationSuite`.
|
|
9
11
|
*/
|
|
10
12
|
export type SearchViewChoice = 'auto' | SearchViewMode;
|
|
11
13
|
/**
|
|
@@ -69,7 +71,11 @@ type ManagedInputProps = 'type' | 'value' | 'defaultValue' | 'children' | 'aria-
|
|
|
69
71
|
export type SearchBarProps = Omit<InputHTMLAttributes<HTMLInputElement>, ManagedInputProps> & AccessibleNameProps & {
|
|
70
72
|
/** Name of the clear button, shown while there is text. Defaults to "Clear search". */
|
|
71
73
|
clearLabel?: string | undefined;
|
|
72
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* The parts: `SearchBarLeading` and `SearchBarTrailing`, as direct children (or inside a fragment). In
|
|
76
|
+
* the DOM they go in the order they are seen (start, input, clear button, end), whatever order they
|
|
77
|
+
* are written in, so Tab reaches the field before a button at the end.
|
|
78
|
+
*/
|
|
73
79
|
children?: ReactNode;
|
|
74
80
|
/** Ref to the `<input>`. */
|
|
75
81
|
ref?: Ref<HTMLInputElement> | undefined;
|
|
@@ -110,11 +116,11 @@ export interface SearchViewProps extends HTMLAttributes<HTMLUListElement> {
|
|
|
110
116
|
* children. Native props and `ref` go to the `<ul role="listbox">`; `className` and `style`, to the
|
|
111
117
|
* layer that contains it.
|
|
112
118
|
*
|
|
113
|
-
* - **Docked** (medium or wider windows, or `view="docked"`): a top-layer popover anchored below
|
|
119
|
+
* - **Docked** (medium or wider windows that are at least 480 px tall, or `view="docked"`): a top-layer popover anchored below
|
|
114
120
|
* the bar, 2 px apart, as wide as the bar, Surface Container High with a 12 radius (kit). It opens
|
|
115
121
|
* on typing, on a click in the bar or with the arrows, and closes with Escape, on choosing, on
|
|
116
122
|
* searching or when focus leaves the search.
|
|
117
|
-
* - **Full screen** (compact windows, or `view="full-screen"`): a modal `<dialog>` with its own bar
|
|
123
|
+
* - **Full screen** (compact windows, narrow or short, or `view="full-screen"`): a modal `<dialog>` with its own bar
|
|
118
124
|
* (back, the field and clear) and the list below; focus is trapped, Escape and the back button
|
|
119
125
|
* close it, and focus returns to the bar.
|
|
120
126
|
*
|
|
@@ -19,7 +19,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
19
19
|
// Combobox (APG "Combobox" con listbox y autocompletado de lista): el foco se queda en el input;
|
|
20
20
|
// la sugerencia activa es `aria-activedescendant` (foco visual, no real). Las opciones se recorren
|
|
21
21
|
// en el orden del DOM del listbox; sus datos (valor, texto) se registran en un Map por id.
|
|
22
|
-
import { createContext, use, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, } from 'react';
|
|
22
|
+
import { Children, cloneElement, createContext, Fragment, isValidElement, use, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, } from 'react';
|
|
23
23
|
import { FocusRing } from '../../atoms/FocusRing/FocusRing.js';
|
|
24
24
|
import { StateLayer } from '../../atoms/StateLayer/StateLayer.js';
|
|
25
25
|
import { ArrowBackIcon, CloseIcon } from '../../icons/icons.js';
|
|
@@ -33,20 +33,24 @@ import { GroupLabel, useGroupLabel } from '../../internal/group-label.js';
|
|
|
33
33
|
import { mergeRefs } from '../../internal/merge-refs.js';
|
|
34
34
|
import { useModalDialog } from '../../internal/modal-dialog.js';
|
|
35
35
|
import { settleAnimations } from '../../internal/settle-animations.js';
|
|
36
|
-
import { WINDOW_WIDTH } from '../../tokens/breakpoints.js';
|
|
36
|
+
import { WINDOW_HEIGHT, WINDOW_WIDTH } from '../../tokens/breakpoints.js';
|
|
37
|
+
import { SearchBarTrailing } from './SearchSlots.js';
|
|
37
38
|
import { searchStrings } from './strings.js';
|
|
38
39
|
// Demora antes de anunciar la cantidad de sugerencias: no se repite en cada tecla.
|
|
39
40
|
const ANNOUNCE_DELAY_MS = 500;
|
|
40
41
|
// Tras `formatRemoved` ("Removed …"), el anuncio de la cantidad nueva se calla este tiempo (no lo pisa).
|
|
41
42
|
const REMOVAL_QUIET_MS = 1000;
|
|
42
|
-
// Ventana medium o más ancha: `min-width` en rem (base 16), como los demás cortes
|
|
43
|
-
|
|
43
|
+
// Ventana medium o más ancha y no baja: `min-width` y `min-height` en rem (base 16), como los demás cortes
|
|
44
|
+
// (ADR-0016). Es el mismo corte que Dialog `view="auto"` y NavigationSuite: un teléfono acostado (844 × 390)
|
|
45
|
+
// es ancho pero bajo, y con el teclado en pantalla la lista docked quedaba en una franja; ahí va a pantalla
|
|
46
|
+
// completa (M13, encontrado en Android con mk-mail, 2026-11-30).
|
|
47
|
+
const WIDE_WINDOW_QUERY = `(min-width: ${WINDOW_WIDTH.medium / 16}rem) and (min-height: ${WINDOW_HEIGHT.medium / 16}rem)`;
|
|
44
48
|
function subscribeWideWindow(onChange) {
|
|
45
49
|
const query = matchMedia(WIDE_WINDOW_QUERY);
|
|
46
50
|
query.addEventListener('change', onChange);
|
|
47
51
|
return () => query.removeEventListener('change', onChange);
|
|
48
52
|
}
|
|
49
|
-
// Si la ventana es medium o más ancha. En el servidor, sí (la vista docked no cambia el HTML de la barra).
|
|
53
|
+
// Si la ventana es medium o más ancha, y no baja. En el servidor, sí (la vista docked no cambia el HTML de la barra).
|
|
50
54
|
function useWideWindow() {
|
|
51
55
|
return useSyncExternalStore(subscribeWideWindow, () => matchMedia(WIDE_WINDOW_QUERY).matches, () => true);
|
|
52
56
|
}
|
|
@@ -161,7 +165,7 @@ export function Search({ value: valueProp, defaultValue, onValueChange, onSubmit
|
|
|
161
165
|
// Lo último de cada valor, para los manejadores (no cambian la identidad del contexto).
|
|
162
166
|
const latest = useRef({ value, open, expanded, activeId, mode, hasView, onValueChange, onSubmit, onSelect });
|
|
163
167
|
latest.current = { value, open, expanded, activeId, mode, hasView, onValueChange, onSubmit, onSelect };
|
|
164
|
-
// Cambiar de vista (la ventana cruzó los 600 px) cierra las sugerencias.
|
|
168
|
+
// Cambiar de vista (la ventana cruzó los 600 px de ancho o los 480 de alto) cierra las sugerencias.
|
|
165
169
|
useEffect(() => {
|
|
166
170
|
setOpen(false);
|
|
167
171
|
setActiveId(null);
|
|
@@ -442,9 +446,34 @@ export function SearchBar({ label, 'aria-label': ariaLabel, 'aria-labelledby': l
|
|
|
442
446
|
input.focus();
|
|
443
447
|
ctx.requestOpen();
|
|
444
448
|
};
|
|
445
|
-
|
|
449
|
+
const parts = splitBarParts(children);
|
|
450
|
+
return (_jsxs("div", { ref: barRef, className: cx('mk-search-bar', className), style: { ...style, anchorName: ctx.anchorName }, onClick: handlePillClick, children: [_jsx(StateLayer, {}), _jsx(FocusRing, {}), parts.before, _jsx("input", { enterKeyHint: "search", spellCheck: false, ...inputProps, ...combobox, ...name, ref: setInputRef, type: "search",
|
|
446
451
|
// Sin la lista de autocompletado del navegador, que taparía las sugerencias.
|
|
447
|
-
autoComplete: autoComplete ?? (ctx.hasView ? 'off' : undefined), className: "mk-search-input", value: ctx.value, placeholder: placeholder, onChange: handleChange, onKeyDown: handleKeyDown, onClick: handleClick, onBlur: handleBlur }), ctx.value !== '' && !inputProps.disabled && !inputProps.readOnly && (_jsx(ClearButton, { label: clearLabel, onClear: (e) => ctx.clear('bar', e) }))] }));
|
|
452
|
+
autoComplete: autoComplete ?? (ctx.hasView ? 'off' : undefined), className: "mk-search-input", value: ctx.value, placeholder: placeholder, onChange: handleChange, onKeyDown: handleKeyDown, onClick: handleClick, onBlur: handleBlur }), ctx.value !== '' && !inputProps.disabled && !inputProps.readOnly && (_jsx(ClearButton, { label: clearLabel, onClear: (e) => ctx.clear('bar', e) })), parts.after] }));
|
|
453
|
+
}
|
|
454
|
+
// Reparte los hijos de la barra (M1 del plan, WCAG 2.4.3): SearchBarTrailing va después del <input> (y
|
|
455
|
+
// del botón de borrar) y lo demás (SearchBarLeading) antes, para que el orden del DOM, el de Tab y el
|
|
456
|
+
// del lector sea el que se ve, escriba el uso las partes en el orden que las escriba. Entra en los
|
|
457
|
+
// fragmentos (`{cond && <>…</>}`); una parte envuelta en un componente propio no se reconoce y queda
|
|
458
|
+
// antes, como hasta la 0.1.0 (la grilla la ubica igual).
|
|
459
|
+
function splitBarParts(children, before = [], after = [], prefix = '') {
|
|
460
|
+
for (const child of Children.toArray(children)) {
|
|
461
|
+
if (!isValidElement(child)) {
|
|
462
|
+
before.push(child);
|
|
463
|
+
continue;
|
|
464
|
+
}
|
|
465
|
+
const keyed = prefix ? cloneElement(child, { key: `${prefix}${String(child.key)}` }) : child;
|
|
466
|
+
if (child.type === Fragment) {
|
|
467
|
+
splitBarParts(child.props.children, before, after, `${prefix}${String(child.key)}/`);
|
|
468
|
+
}
|
|
469
|
+
else if (child.type === SearchBarTrailing) {
|
|
470
|
+
after.push(keyed);
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
before.push(keyed);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return { before, after };
|
|
448
477
|
}
|
|
449
478
|
function ClearButton({ label, onClear }) {
|
|
450
479
|
return (_jsx("span", { className: "mk-search-bar-clear", children: _jsx(IconButton, { label: label, onClick: onClear, children: _jsx(CloseIcon, {}) }) }));
|
|
@@ -454,11 +483,11 @@ function ClearButton({ label, onClear }) {
|
|
|
454
483
|
* children. Native props and `ref` go to the `<ul role="listbox">`; `className` and `style`, to the
|
|
455
484
|
* layer that contains it.
|
|
456
485
|
*
|
|
457
|
-
* - **Docked** (medium or wider windows, or `view="docked"`): a top-layer popover anchored below
|
|
486
|
+
* - **Docked** (medium or wider windows that are at least 480 px tall, or `view="docked"`): a top-layer popover anchored below
|
|
458
487
|
* the bar, 2 px apart, as wide as the bar, Surface Container High with a 12 radius (kit). It opens
|
|
459
488
|
* on typing, on a click in the bar or with the arrows, and closes with Escape, on choosing, on
|
|
460
489
|
* searching or when focus leaves the search.
|
|
461
|
-
* - **Full screen** (compact windows, or `view="full-screen"`): a modal `<dialog>` with its own bar
|
|
490
|
+
* - **Full screen** (compact windows, narrow or short, or `view="full-screen"`): a modal `<dialog>` with its own bar
|
|
462
491
|
* (back, the field and clear) and the list below; focus is trapped, Escape and the back button
|
|
463
492
|
* close it, and focus returns to the bar.
|
|
464
493
|
*
|
|
@@ -11,6 +11,8 @@ export declare function SearchBarLeading({ className, ...props }: SearchBarPartP
|
|
|
11
11
|
/**
|
|
12
12
|
* The end of the bar: one or two `IconButton`s (voice, more options) or an avatar (a 30 round
|
|
13
13
|
* `<img>` in a 50 area, kit). On Surface Variant color. The bar adds the clear button by itself,
|
|
14
|
-
* before this part, while there is text.
|
|
14
|
+
* before this part, while there is text. Write it as a direct child of `SearchBar` (or inside a
|
|
15
|
+
* fragment): the bar renders it after the input in the DOM, so Tab and screen readers reach the
|
|
16
|
+
* field first. Wrapped in a component of your own it is not recognized and stays before the input.
|
|
15
17
|
*/
|
|
16
18
|
export declare function SearchBarTrailing({ className, ...props }: SearchBarPartProps): import("react").JSX.Element;
|
|
@@ -10,7 +10,9 @@ export function SearchBarLeading({ className, ...props }) {
|
|
|
10
10
|
/**
|
|
11
11
|
* The end of the bar: one or two `IconButton`s (voice, more options) or an avatar (a 30 round
|
|
12
12
|
* `<img>` in a 50 area, kit). On Surface Variant color. The bar adds the clear button by itself,
|
|
13
|
-
* before this part, while there is text.
|
|
13
|
+
* before this part, while there is text. Write it as a direct child of `SearchBar` (or inside a
|
|
14
|
+
* fragment): the bar renders it after the input in the DOM, so Tab and screen readers reach the
|
|
15
|
+
* field first. Wrapped in a component of your own it is not recognized and stays before the input.
|
|
14
16
|
*/
|
|
15
17
|
export function SearchBarTrailing({ className, ...props }) {
|
|
16
18
|
return _jsx("span", { ...props, className: cx('mk-search-bar-trailing', className) });
|
package/dist/styles-no-fonts.css
CHANGED
|
@@ -10396,9 +10396,19 @@
|
|
|
10396
10396
|
}
|
|
10397
10397
|
}
|
|
10398
10398
|
|
|
10399
|
-
/* ---
|
|
10400
|
-
|
|
10401
|
-
|
|
10399
|
+
/* --- Varios paneles (scaffold desde 840): solo con los paneles que hay ---
|
|
10400
|
+
Cada plantilla de dos o tres pistas pide con :has() que existan sus paneles (M2 del plan, hallado
|
|
10401
|
+
por mk-mail: con solo <Pane name="main"> en supporting, o un solo panel en list-detail, la grilla
|
|
10402
|
+
reservaba la pista del que falta y quedaba una franja vacía de 360, o 412 desde 1200). Sin el par
|
|
10403
|
+
que llena una plantilla, la grilla queda en una columna (--_panes por defecto). Lo que no depende
|
|
10404
|
+
del corte va en este bloque; lo de dos y de tres paneles, en los de abajo, que lo pisan. Con L la
|
|
10405
|
+
lista o el apoyo (Secondary), D el detalle o el principal (Primary) y E el extra (Tertiary):
|
|
10406
|
+
- L y D: los dos (desde 1200, más el E si lo hay).
|
|
10407
|
+
- D y E sin L: los dos (Compose: el actual y el de más prioridad que quede).
|
|
10408
|
+
- Uno solo de L o D, sin E: se ve aunque no sea el actual, como cuando entraban los dos.
|
|
10409
|
+
- L y E sin D: una columna, el actual (no hay plantilla lista y extra; sin uso conocido). */
|
|
10410
|
+
@container mk-pane-scaffold (width >= 52.5rem) {
|
|
10411
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='list']):has(> .mk-pane[data-pane='detail']) {
|
|
10402
10412
|
--_show-list: visible;
|
|
10403
10413
|
--_fade-list: 1;
|
|
10404
10414
|
--_hit-list: auto;
|
|
@@ -10407,14 +10417,26 @@
|
|
|
10407
10417
|
--_hit-detail: auto;
|
|
10408
10418
|
--_panes: var(--_list-detail);
|
|
10409
10419
|
}
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
--
|
|
10413
|
-
--
|
|
10414
|
-
--
|
|
10420
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:not(:has(> .mk-pane[data-pane='list'])):has(> .mk-pane[data-pane='detail']):has(> .mk-pane[data-pane='extra']) {
|
|
10421
|
+
--_show-detail: visible;
|
|
10422
|
+
--_fade-detail: 1;
|
|
10423
|
+
--_hit-detail: auto;
|
|
10424
|
+
--_show-extra: visible;
|
|
10425
|
+
--_fade-extra: 1;
|
|
10426
|
+
--_hit-extra: auto;
|
|
10415
10427
|
--_panes: var(--_detail-extra);
|
|
10416
10428
|
}
|
|
10417
|
-
.mk-pane-scaffold[data-variant='
|
|
10429
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='list']):not(:has(> .mk-pane:is([data-pane='detail'], [data-pane='extra']))) {
|
|
10430
|
+
--_show-list: visible;
|
|
10431
|
+
--_fade-list: 1;
|
|
10432
|
+
--_hit-list: auto;
|
|
10433
|
+
}
|
|
10434
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='detail']):not(:has(> .mk-pane:is([data-pane='list'], [data-pane='extra']))) {
|
|
10435
|
+
--_show-detail: visible;
|
|
10436
|
+
--_fade-detail: 1;
|
|
10437
|
+
--_hit-detail: auto;
|
|
10438
|
+
}
|
|
10439
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='main']):has(> .mk-pane[data-pane='supporting']) {
|
|
10418
10440
|
--_show-main: visible;
|
|
10419
10441
|
--_fade-main: 1;
|
|
10420
10442
|
--_hit-main: auto;
|
|
@@ -10423,7 +10445,37 @@
|
|
|
10423
10445
|
--_hit-supporting: auto;
|
|
10424
10446
|
--_panes: var(--_main-supporting);
|
|
10425
10447
|
}
|
|
10426
|
-
.mk-pane-scaffold[data-variant='supporting'][data-
|
|
10448
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:not(:has(> .mk-pane[data-pane='supporting'])):has(> .mk-pane[data-pane='main']):has(> .mk-pane[data-pane='extra']) {
|
|
10449
|
+
--_show-main: visible;
|
|
10450
|
+
--_fade-main: 1;
|
|
10451
|
+
--_hit-main: auto;
|
|
10452
|
+
--_show-extra: visible;
|
|
10453
|
+
--_fade-extra: 1;
|
|
10454
|
+
--_hit-extra: auto;
|
|
10455
|
+
--_panes: var(--_main-extra);
|
|
10456
|
+
}
|
|
10457
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='supporting']):not(:has(> .mk-pane:is([data-pane='main'], [data-pane='extra']))) {
|
|
10458
|
+
--_show-supporting: visible;
|
|
10459
|
+
--_fade-supporting: 1;
|
|
10460
|
+
--_hit-supporting: auto;
|
|
10461
|
+
}
|
|
10462
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='main']):not(:has(> .mk-pane:is([data-pane='supporting'], [data-pane='extra']))) {
|
|
10463
|
+
--_show-main: visible;
|
|
10464
|
+
--_fade-main: 1;
|
|
10465
|
+
--_hit-main: auto;
|
|
10466
|
+
}
|
|
10467
|
+
}
|
|
10468
|
+
|
|
10469
|
+
/* --- Dos paneles (scaffold de 840 a 1199): el actual y el de más prioridad que quede --- */
|
|
10470
|
+
@container mk-pane-scaffold (52.5rem <= width < 75rem) {
|
|
10471
|
+
/* El extra actual va con el detalle (prioridad 10); la lista (5) no entra. */
|
|
10472
|
+
.mk-pane-scaffold[data-variant='list-detail'][data-current='extra'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']):has(> .mk-pane[data-pane='detail']) {
|
|
10473
|
+
--_show-list: hidden;
|
|
10474
|
+
--_fade-list: 0;
|
|
10475
|
+
--_hit-list: none;
|
|
10476
|
+
--_panes: var(--_detail-extra);
|
|
10477
|
+
}
|
|
10478
|
+
.mk-pane-scaffold[data-variant='supporting'][data-current='extra'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']):has(> .mk-pane[data-pane='main']) {
|
|
10427
10479
|
--_show-supporting: hidden;
|
|
10428
10480
|
--_fade-supporting: 0;
|
|
10429
10481
|
--_hit-supporting: none;
|
|
@@ -10436,31 +10488,13 @@
|
|
|
10436
10488
|
.mk-pane-scaffold-grid {
|
|
10437
10489
|
--_pref: 412px;
|
|
10438
10490
|
}
|
|
10439
|
-
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid {
|
|
10440
|
-
--_show-list: visible;
|
|
10441
|
-
--_fade-list: 1;
|
|
10442
|
-
--_hit-list: auto;
|
|
10443
|
-
--_show-detail: visible;
|
|
10444
|
-
--_fade-detail: 1;
|
|
10445
|
-
--_hit-detail: auto;
|
|
10446
|
-
--_panes: var(--_list-detail);
|
|
10447
|
-
}
|
|
10448
|
-
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']) {
|
|
10491
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='list']):has(> .mk-pane[data-pane='detail']):has(> .mk-pane[data-pane='extra']) {
|
|
10449
10492
|
--_show-extra: visible;
|
|
10450
10493
|
--_fade-extra: 1;
|
|
10451
10494
|
--_hit-extra: auto;
|
|
10452
10495
|
--_panes: var(--_list-detail-extra);
|
|
10453
10496
|
}
|
|
10454
|
-
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid {
|
|
10455
|
-
--_show-main: visible;
|
|
10456
|
-
--_fade-main: 1;
|
|
10457
|
-
--_hit-main: auto;
|
|
10458
|
-
--_show-supporting: visible;
|
|
10459
|
-
--_fade-supporting: 1;
|
|
10460
|
-
--_hit-supporting: auto;
|
|
10461
|
-
--_panes: var(--_main-supporting);
|
|
10462
|
-
}
|
|
10463
|
-
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']) {
|
|
10497
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='main']):has(> .mk-pane[data-pane='supporting']):has(> .mk-pane[data-pane='extra']) {
|
|
10464
10498
|
--_show-extra: visible;
|
|
10465
10499
|
--_fade-extra: 1;
|
|
10466
10500
|
--_hit-extra: auto;
|
package/dist/styles.css
CHANGED
|
@@ -10494,9 +10494,19 @@
|
|
|
10494
10494
|
}
|
|
10495
10495
|
}
|
|
10496
10496
|
|
|
10497
|
-
/* ---
|
|
10498
|
-
|
|
10499
|
-
|
|
10497
|
+
/* --- Varios paneles (scaffold desde 840): solo con los paneles que hay ---
|
|
10498
|
+
Cada plantilla de dos o tres pistas pide con :has() que existan sus paneles (M2 del plan, hallado
|
|
10499
|
+
por mk-mail: con solo <Pane name="main"> en supporting, o un solo panel en list-detail, la grilla
|
|
10500
|
+
reservaba la pista del que falta y quedaba una franja vacía de 360, o 412 desde 1200). Sin el par
|
|
10501
|
+
que llena una plantilla, la grilla queda en una columna (--_panes por defecto). Lo que no depende
|
|
10502
|
+
del corte va en este bloque; lo de dos y de tres paneles, en los de abajo, que lo pisan. Con L la
|
|
10503
|
+
lista o el apoyo (Secondary), D el detalle o el principal (Primary) y E el extra (Tertiary):
|
|
10504
|
+
- L y D: los dos (desde 1200, más el E si lo hay).
|
|
10505
|
+
- D y E sin L: los dos (Compose: el actual y el de más prioridad que quede).
|
|
10506
|
+
- Uno solo de L o D, sin E: se ve aunque no sea el actual, como cuando entraban los dos.
|
|
10507
|
+
- L y E sin D: una columna, el actual (no hay plantilla lista y extra; sin uso conocido). */
|
|
10508
|
+
@container mk-pane-scaffold (width >= 52.5rem) {
|
|
10509
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='list']):has(> .mk-pane[data-pane='detail']) {
|
|
10500
10510
|
--_show-list: visible;
|
|
10501
10511
|
--_fade-list: 1;
|
|
10502
10512
|
--_hit-list: auto;
|
|
@@ -10505,14 +10515,26 @@
|
|
|
10505
10515
|
--_hit-detail: auto;
|
|
10506
10516
|
--_panes: var(--_list-detail);
|
|
10507
10517
|
}
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
--
|
|
10511
|
-
--
|
|
10512
|
-
--
|
|
10518
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:not(:has(> .mk-pane[data-pane='list'])):has(> .mk-pane[data-pane='detail']):has(> .mk-pane[data-pane='extra']) {
|
|
10519
|
+
--_show-detail: visible;
|
|
10520
|
+
--_fade-detail: 1;
|
|
10521
|
+
--_hit-detail: auto;
|
|
10522
|
+
--_show-extra: visible;
|
|
10523
|
+
--_fade-extra: 1;
|
|
10524
|
+
--_hit-extra: auto;
|
|
10513
10525
|
--_panes: var(--_detail-extra);
|
|
10514
10526
|
}
|
|
10515
|
-
.mk-pane-scaffold[data-variant='
|
|
10527
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='list']):not(:has(> .mk-pane:is([data-pane='detail'], [data-pane='extra']))) {
|
|
10528
|
+
--_show-list: visible;
|
|
10529
|
+
--_fade-list: 1;
|
|
10530
|
+
--_hit-list: auto;
|
|
10531
|
+
}
|
|
10532
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='detail']):not(:has(> .mk-pane:is([data-pane='list'], [data-pane='extra']))) {
|
|
10533
|
+
--_show-detail: visible;
|
|
10534
|
+
--_fade-detail: 1;
|
|
10535
|
+
--_hit-detail: auto;
|
|
10536
|
+
}
|
|
10537
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='main']):has(> .mk-pane[data-pane='supporting']) {
|
|
10516
10538
|
--_show-main: visible;
|
|
10517
10539
|
--_fade-main: 1;
|
|
10518
10540
|
--_hit-main: auto;
|
|
@@ -10521,7 +10543,37 @@
|
|
|
10521
10543
|
--_hit-supporting: auto;
|
|
10522
10544
|
--_panes: var(--_main-supporting);
|
|
10523
10545
|
}
|
|
10524
|
-
.mk-pane-scaffold[data-variant='supporting'][data-
|
|
10546
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:not(:has(> .mk-pane[data-pane='supporting'])):has(> .mk-pane[data-pane='main']):has(> .mk-pane[data-pane='extra']) {
|
|
10547
|
+
--_show-main: visible;
|
|
10548
|
+
--_fade-main: 1;
|
|
10549
|
+
--_hit-main: auto;
|
|
10550
|
+
--_show-extra: visible;
|
|
10551
|
+
--_fade-extra: 1;
|
|
10552
|
+
--_hit-extra: auto;
|
|
10553
|
+
--_panes: var(--_main-extra);
|
|
10554
|
+
}
|
|
10555
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='supporting']):not(:has(> .mk-pane:is([data-pane='main'], [data-pane='extra']))) {
|
|
10556
|
+
--_show-supporting: visible;
|
|
10557
|
+
--_fade-supporting: 1;
|
|
10558
|
+
--_hit-supporting: auto;
|
|
10559
|
+
}
|
|
10560
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='main']):not(:has(> .mk-pane:is([data-pane='supporting'], [data-pane='extra']))) {
|
|
10561
|
+
--_show-main: visible;
|
|
10562
|
+
--_fade-main: 1;
|
|
10563
|
+
--_hit-main: auto;
|
|
10564
|
+
}
|
|
10565
|
+
}
|
|
10566
|
+
|
|
10567
|
+
/* --- Dos paneles (scaffold de 840 a 1199): el actual y el de más prioridad que quede --- */
|
|
10568
|
+
@container mk-pane-scaffold (52.5rem <= width < 75rem) {
|
|
10569
|
+
/* El extra actual va con el detalle (prioridad 10); la lista (5) no entra. */
|
|
10570
|
+
.mk-pane-scaffold[data-variant='list-detail'][data-current='extra'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']):has(> .mk-pane[data-pane='detail']) {
|
|
10571
|
+
--_show-list: hidden;
|
|
10572
|
+
--_fade-list: 0;
|
|
10573
|
+
--_hit-list: none;
|
|
10574
|
+
--_panes: var(--_detail-extra);
|
|
10575
|
+
}
|
|
10576
|
+
.mk-pane-scaffold[data-variant='supporting'][data-current='extra'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']):has(> .mk-pane[data-pane='main']) {
|
|
10525
10577
|
--_show-supporting: hidden;
|
|
10526
10578
|
--_fade-supporting: 0;
|
|
10527
10579
|
--_hit-supporting: none;
|
|
@@ -10534,31 +10586,13 @@
|
|
|
10534
10586
|
.mk-pane-scaffold-grid {
|
|
10535
10587
|
--_pref: 412px;
|
|
10536
10588
|
}
|
|
10537
|
-
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid {
|
|
10538
|
-
--_show-list: visible;
|
|
10539
|
-
--_fade-list: 1;
|
|
10540
|
-
--_hit-list: auto;
|
|
10541
|
-
--_show-detail: visible;
|
|
10542
|
-
--_fade-detail: 1;
|
|
10543
|
-
--_hit-detail: auto;
|
|
10544
|
-
--_panes: var(--_list-detail);
|
|
10545
|
-
}
|
|
10546
|
-
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']) {
|
|
10589
|
+
.mk-pane-scaffold[data-variant='list-detail'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='list']):has(> .mk-pane[data-pane='detail']):has(> .mk-pane[data-pane='extra']) {
|
|
10547
10590
|
--_show-extra: visible;
|
|
10548
10591
|
--_fade-extra: 1;
|
|
10549
10592
|
--_hit-extra: auto;
|
|
10550
10593
|
--_panes: var(--_list-detail-extra);
|
|
10551
10594
|
}
|
|
10552
|
-
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid {
|
|
10553
|
-
--_show-main: visible;
|
|
10554
|
-
--_fade-main: 1;
|
|
10555
|
-
--_hit-main: auto;
|
|
10556
|
-
--_show-supporting: visible;
|
|
10557
|
-
--_fade-supporting: 1;
|
|
10558
|
-
--_hit-supporting: auto;
|
|
10559
|
-
--_panes: var(--_main-supporting);
|
|
10560
|
-
}
|
|
10561
|
-
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='extra']) {
|
|
10595
|
+
.mk-pane-scaffold[data-variant='supporting'] > .mk-pane-scaffold-grid:has(> .mk-pane[data-pane='main']):has(> .mk-pane[data-pane='supporting']):has(> .mk-pane[data-pane='extra']) {
|
|
10562
10596
|
--_show-extra: visible;
|
|
10563
10597
|
--_fade-extra: 1;
|
|
10564
10598
|
--_hit-extra: auto;
|