@apliteni/apliteni-ui 0.118.0 → 0.119.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/package.json +1 -1
- package/react/dist/index.js +4 -3
- package/src/components/shell.js +4 -4
package/package.json
CHANGED
package/react/dist/index.js
CHANGED
|
@@ -2008,15 +2008,16 @@ function DatePicker({
|
|
|
2008
2008
|
// `open` on the root whichever form the panel takes, so the trigger's
|
|
2009
2009
|
// chevron flips for the sheet as it does for the popover. The panel rules
|
|
2010
2010
|
// it also switches on have no panel to find while the sheet is up.
|
|
2011
|
-
/* @__PURE__ */ jsxs15("div", { className: cx5("ui-dropdown", "ui-datepicker", open && "open"),
|
|
2011
|
+
/* @__PURE__ */ jsxs15("div", { className: cx5("ui-dropdown", "ui-datepicker", open && "open"), ref: root, children: [
|
|
2012
2012
|
/* @__PURE__ */ jsxs15(
|
|
2013
2013
|
"button",
|
|
2014
2014
|
{
|
|
2015
2015
|
type: "button",
|
|
2016
2016
|
className: "ui-dropdown__trigger ui-datepicker__trigger",
|
|
2017
|
+
id,
|
|
2017
2018
|
"aria-haspopup": "dialog",
|
|
2018
2019
|
"aria-expanded": open,
|
|
2019
|
-
"aria-label": ariaLabel ||
|
|
2020
|
+
"aria-label": ariaLabel || void 0,
|
|
2020
2021
|
disabled,
|
|
2021
2022
|
ref: trigger,
|
|
2022
2023
|
onClick: (e) => {
|
|
@@ -3726,7 +3727,7 @@ function AppShell({
|
|
|
3726
3727
|
/* @__PURE__ */ jsx34("span", { children: word })
|
|
3727
3728
|
] });
|
|
3728
3729
|
return /* @__PURE__ */ jsxs29("div", { className: `ui-app ui-app--topbar ui-react-app${collapsed ? " is-collapsed" : ""}`, children: [
|
|
3729
|
-
navigable && /* @__PURE__ */ jsxs29("div", { className: "ui-app__rail", children: [
|
|
3730
|
+
navigable && /* @__PURE__ */ jsxs29("div", { className: "ui-app__rail", role: "region", "aria-label": "Sidebar", children: [
|
|
3730
3731
|
/* @__PURE__ */ jsx34("div", { className: "ui-app__head", children: lockup }),
|
|
3731
3732
|
sidebar(sections, "Sections"),
|
|
3732
3733
|
/* @__PURE__ */ jsx34("div", { className: "ui-app__foot", children: /* @__PURE__ */ jsx34("div", { className: "ui-app__fold-row", children: /* @__PURE__ */ jsxs29("button", { type: "button", className: "ui-nav__item ui-app__fold", "aria-expanded": !collapsed, "aria-label": foldLabel, onClick: fold, children: [
|
package/src/components/shell.js
CHANGED
|
@@ -309,9 +309,9 @@ export function appShell(options = {}) {
|
|
|
309
309
|
// the product's mark. why: docs/components.md#the-page-shell
|
|
310
310
|
const brand = compat ? '' : `<a class="ui-app__brand" href="${esc(safeUrl(brandHref))}" aria-label="${esc(word)}">`
|
|
311
311
|
+ `${prism(`appb-${++_shellUid}`, 24)}<span>${esc(word)}</span></a>`;
|
|
312
|
-
//
|
|
313
|
-
//
|
|
314
|
-
//
|
|
312
|
+
// The named region covers the brand and fold as well as the navigation.
|
|
313
|
+
// The primary navigation keeps its own landmark inside the region.
|
|
314
|
+
// The rail holds primary navigation, so it is not a complementary landmark.
|
|
315
315
|
// A fold needs the toggle that undoes it. `data-rail="auto"` marks a shell whose
|
|
316
316
|
// caller left the choice to the reader; wireShell() applies the stored one there.
|
|
317
317
|
const folded = collapsible && collapsed === true;
|
|
@@ -342,7 +342,7 @@ export function appShell(options = {}) {
|
|
|
342
342
|
? `<div class="ui-app__well">${shellBar(search, account, signOutHref)}${main}</div>`
|
|
343
343
|
: main;
|
|
344
344
|
const grid = `<div class="ui-app${banded ? ' ui-app--topbar' : ''}${folded ? ' is-collapsed' : ''}"${auto}>
|
|
345
|
-
<div class="ui-app__rail">
|
|
345
|
+
<div class="ui-app__rail" role="region" aria-label="Sidebar">
|
|
346
346
|
${head}
|
|
347
347
|
${rail}
|
|
348
348
|
${foot}
|