@jirawatpyk/aura-react 5.7.0 → 5.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/styles.css +8 -3
- package/dist/styles.layer.css +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -186,6 +186,10 @@ DataTable with sort and page in the URL (4.17): `onStateChange={({ sort, page })
|
|
|
186
186
|
- **Time zone**: `timeZone` on AuraProvider, DatePicker, DateRangePicker and Calendar decides "today" (the marker, `min`/`max="today"`, the first month shown); or pass `today` as an ISO date. `todayIn('Asia/Bangkok')` is exported from the root and `/server`.
|
|
187
187
|
- **Toasts** queue past three instead of dropping: six in a row all show, in order, three at a time.
|
|
188
188
|
|
|
189
|
+
## 5.7.1 — SideNav labels wrap
|
|
190
|
+
|
|
191
|
+
- **SideNav** (item 63): a long label wraps to a second line instead of ending in an ellipsis, so Thai and Swedish names read in full in the 240px nav and the phone drawer. One-line rows stay 36px (44px on touch); a two-line row grows to 44px with its icon centred. Past two lines the label clamps; the accessible name is always complete. The collapsed rail is unchanged.
|
|
192
|
+
|
|
189
193
|
## 5.7 — Chamber-OS addendum 5 (shell details)
|
|
190
194
|
|
|
191
195
|
- **DropdownMenu `header`**: content above the items, e.g. name, email and role in an account menu. It sits outside `role="menu"` (arrow keys, Home/End skip it; clicking it keeps focus on the item) and is the menu's accessible description (`aria-describedby`). Screen readers differ in whether they speak a menu's description on open; keep the essentials (who is signed in) in the trigger's name too if they must be heard. With a header, the menu's `ref` and `.aura-menu` are the outer box and `role="menu"` is `.aura-menu__list` inside it.
|
package/dist/styles.css
CHANGED
|
@@ -641,7 +641,7 @@ a.aura-tab { text-decoration: none; }
|
|
|
641
641
|
.aura-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
642
642
|
.aura-nav__item {
|
|
643
643
|
box-sizing: border-box; display: flex; align-items: center; gap: var(--aura-space-3); width: 100%;
|
|
644
|
-
height: 36px; padding:
|
|
644
|
+
min-height: 36px; padding: var(--aura-space-1) var(--aura-space-3); border: 0; border-radius: var(--aura-radius-sm);
|
|
645
645
|
background: transparent; color: var(--aura-fg-secondary); font: inherit; font-size: 13px; font-weight: 500;
|
|
646
646
|
text-decoration: none; text-align: left; cursor: pointer;
|
|
647
647
|
transition: background var(--aura-duration-fast) var(--aura-ease), color var(--aura-duration-fast) var(--aura-ease);
|
|
@@ -651,8 +651,13 @@ a.aura-tab { text-decoration: none; }
|
|
|
651
651
|
.aura-nav__item.is-active .aura-icon { color: var(--aura-fg-accent); }
|
|
652
652
|
.aura-nav__item:focus-visible { outline: var(--aura-focus-ring-width) solid var(--aura-focus-ring); outline-offset: -2px; }
|
|
653
653
|
/* Touch (5.7): rows are 44px on coarse pointers (AppShell's phone drawer); desktop keeps 36px. */
|
|
654
|
-
@media (pointer: coarse) { .aura-nav__item {
|
|
655
|
-
.
|
|
654
|
+
@media (pointer: coarse) { .aura-nav__item { min-height: var(--aura-touch-target); } }
|
|
655
|
+
/* 5.7.1: a long label wraps to a second line (the row grows; one-line rows stay 36px) instead of an ellipsis with no
|
|
656
|
+
* way to read the rest — Thai and Swedish names in a 240px nav or the phone drawer. Beyond two lines it clamps. */
|
|
657
|
+
.aura-nav__label {
|
|
658
|
+
flex: 1; min-width: 0; line-height: 18px; overflow: hidden; overflow-wrap: anywhere;
|
|
659
|
+
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
|
|
660
|
+
}
|
|
656
661
|
.aura-nav__count { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--aura-fg-secondary); }
|
|
657
662
|
.aura-nav__badge { display: inline-flex; align-items: center; flex: none; }
|
|
658
663
|
/* Groups: a disclosure button, its items indented one step per level. */
|
package/dist/styles.layer.css
CHANGED
|
@@ -643,7 +643,7 @@ a.aura-tab { text-decoration: none; }
|
|
|
643
643
|
.aura-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
644
644
|
.aura-nav__item {
|
|
645
645
|
box-sizing: border-box; display: flex; align-items: center; gap: var(--aura-space-3); width: 100%;
|
|
646
|
-
height: 36px; padding:
|
|
646
|
+
min-height: 36px; padding: var(--aura-space-1) var(--aura-space-3); border: 0; border-radius: var(--aura-radius-sm);
|
|
647
647
|
background: transparent; color: var(--aura-fg-secondary); font: inherit; font-size: 13px; font-weight: 500;
|
|
648
648
|
text-decoration: none; text-align: left; cursor: pointer;
|
|
649
649
|
transition: background var(--aura-duration-fast) var(--aura-ease), color var(--aura-duration-fast) var(--aura-ease);
|
|
@@ -653,8 +653,13 @@ a.aura-tab { text-decoration: none; }
|
|
|
653
653
|
.aura-nav__item.is-active .aura-icon { color: var(--aura-fg-accent); }
|
|
654
654
|
.aura-nav__item:focus-visible { outline: var(--aura-focus-ring-width) solid var(--aura-focus-ring); outline-offset: -2px; }
|
|
655
655
|
/* Touch (5.7): rows are 44px on coarse pointers (AppShell's phone drawer); desktop keeps 36px. */
|
|
656
|
-
@media (pointer: coarse) { .aura-nav__item {
|
|
657
|
-
.
|
|
656
|
+
@media (pointer: coarse) { .aura-nav__item { min-height: var(--aura-touch-target); } }
|
|
657
|
+
/* 5.7.1: a long label wraps to a second line (the row grows; one-line rows stay 36px) instead of an ellipsis with no
|
|
658
|
+
* way to read the rest — Thai and Swedish names in a 240px nav or the phone drawer. Beyond two lines it clamps. */
|
|
659
|
+
.aura-nav__label {
|
|
660
|
+
flex: 1; min-width: 0; line-height: 18px; overflow: hidden; overflow-wrap: anywhere;
|
|
661
|
+
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
|
|
662
|
+
}
|
|
658
663
|
.aura-nav__count { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--aura-fg-secondary); }
|
|
659
664
|
.aura-nav__badge { display: inline-flex; align-items: center; flex: none; }
|
|
660
665
|
/* Groups: a disclosure button, its items indented one step per level. */
|
package/package.json
CHANGED