@jirawatpyk/aura-react 5.42.0 → 5.43.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/README.md +4 -0
- package/dist/aura.bundle.js +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/FilterBar.js +1 -1
- package/dist/styles.css +2 -0
- package/dist/styles.layer.css +2 -0
- 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.43 — Chamber-OS addendum 50 (#148)
|
|
190
|
+
|
|
191
|
+
- **FilterBar `collapseBelow` with no search** (#148): below the breakpoint the Filters button fills the row it would otherwise sit at the end of, its label centred (an activity timeline with filters and no search). With a search it stays beside it, as in 5.42. From the breakpoint up nothing changes. Remove a stand-in such as `[&_.aura-filterbar__more]:flex-1`.
|
|
192
|
+
|
|
189
193
|
## 5.42 — Chamber-OS addendum 49 (#146–147)
|
|
190
194
|
|
|
191
195
|
- **Fields no longer widen a phone at a large default font** (#147, a 5.40 regression): an `<input>`'s 20-character size grew with the browser's font size, so at a 32px default FilterBar's search measured ~450px and a 390px page scrolled sideways; so did a TextField, Combobox, DatePicker or NumberField in a grid cell or flex row without `min-width: 0`. The text box now never asks for more than the room it gets (`.aura-input` has `min-width: 0` and its control a percentage width, so its smallest size is zero) while its natural width is unchanged. At the 16px default a page lays out as in 5.41 unless a field was already wider than its room: we compared every Storybook story at 390 and 1280px pixel for pixel, and the only differences are fields that used to stick out of their grid cell or row, which now fit (a touch-height Combobox in a 390px FilterBar, a time-zone field in a two-column grid). A row of nowrap Buttons or a SegmentedControl can still be wider than a phone at 32px; give such rows `wrap` (Stack) or `fullWidth`.
|
package/dist/aura.bundle.js
CHANGED
|
@@ -5421,7 +5421,7 @@ window.Aura = (() => {
|
|
|
5421
5421
|
/* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__row" }, collapse ? (
|
|
5422
5422
|
/* 5.42: the search and the Filters button share a row of their own below the breakpoint (count and actions
|
|
5423
5423
|
* wrap under them); from the breakpoint up this box is display: contents and the bar is as before. */
|
|
5424
|
-
/* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__lead" }, searchBox, more)
|
|
5424
|
+
/* @__PURE__ */ React31.createElement("div", { className: cx("aura-filterbar__lead", !hasSearch && "is-alone") }, searchBox, more)
|
|
5425
5425
|
) : searchBox, hasChildren && !open ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__controls" }, props.children) : null, /* @__PURE__ */ React31.createElement("span", { className: "aura-filterbar__spacer" }), count != null ? /* @__PURE__ */ React31.createElement("span", { className: "aura-filterbar__count", "aria-live": "polite" }, count) : null, props.actions ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__actions" }, props.actions) : null),
|
|
5426
5426
|
filters.length || props.onClearAll && anything ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__chips" }, filters.map(function(f) {
|
|
5427
5427
|
return /* @__PURE__ */ React31.createElement(Tag, { key: f.id, onRemove: f.onRemove }, f.label);
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -5403,7 +5403,7 @@ var FilterBar = React31.forwardRef(function FilterBar2(props, ref) {
|
|
|
5403
5403
|
/* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__row" }, collapse ? (
|
|
5404
5404
|
/* 5.42: the search and the Filters button share a row of their own below the breakpoint (count and actions
|
|
5405
5405
|
* wrap under them); from the breakpoint up this box is display: contents and the bar is as before. */
|
|
5406
|
-
/* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__lead" }, searchBox, more)
|
|
5406
|
+
/* @__PURE__ */ React31.createElement("div", { className: cx("aura-filterbar__lead", !hasSearch && "is-alone") }, searchBox, more)
|
|
5407
5407
|
) : searchBox, hasChildren && !open ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__controls" }, props.children) : null, /* @__PURE__ */ React31.createElement("span", { className: "aura-filterbar__spacer" }), count != null ? /* @__PURE__ */ React31.createElement("span", { className: "aura-filterbar__count", "aria-live": "polite" }, count) : null, props.actions ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__actions" }, props.actions) : null),
|
|
5408
5408
|
filters.length || props.onClearAll && anything ? /* @__PURE__ */ React31.createElement("div", { className: "aura-filterbar__chips" }, filters.map(function(f) {
|
|
5409
5409
|
return /* @__PURE__ */ React31.createElement(Tag, { key: f.id, onRemove: f.onRemove }, f.label);
|
package/dist/esm/FilterBar.js
CHANGED
|
@@ -168,7 +168,7 @@ const FilterBar = React.forwardRef(function FilterBar2(props, ref) {
|
|
|
168
168
|
/* @__PURE__ */ React.createElement("div", { className: "aura-filterbar__row" }, collapse ? (
|
|
169
169
|
/* 5.42: the search and the Filters button share a row of their own below the breakpoint (count and actions
|
|
170
170
|
* wrap under them); from the breakpoint up this box is display: contents and the bar is as before. */
|
|
171
|
-
/* @__PURE__ */ React.createElement("div", { className: "aura-filterbar__lead" }, searchBox, more)
|
|
171
|
+
/* @__PURE__ */ React.createElement("div", { className: cx("aura-filterbar__lead", !hasSearch && "is-alone") }, searchBox, more)
|
|
172
172
|
) : searchBox, hasChildren && !open ? /* @__PURE__ */ React.createElement("div", { className: "aura-filterbar__controls" }, props.children) : null, /* @__PURE__ */ React.createElement("span", { className: "aura-filterbar__spacer" }), count != null ? /* @__PURE__ */ React.createElement("span", { className: "aura-filterbar__count", "aria-live": "polite" }, count) : null, props.actions ? /* @__PURE__ */ React.createElement("div", { className: "aura-filterbar__actions" }, props.actions) : null),
|
|
173
173
|
filters.length || props.onClearAll && anything ? /* @__PURE__ */ React.createElement("div", { className: "aura-filterbar__chips" }, filters.map(function(f) {
|
|
174
174
|
return /* @__PURE__ */ React.createElement(Tag, { key: f.id, onRemove: f.onRemove }, f.label);
|
package/dist/styles.css
CHANGED
|
@@ -1814,12 +1814,14 @@ button.aura-stepper__step:hover .aura-stepper__label { text-decoration: underlin
|
|
|
1814
1814
|
.aura-filterbar--collapse-sm > .aura-filterbar__row > .aura-filterbar__controls { display: none; }
|
|
1815
1815
|
.aura-filterbar--collapse-sm .aura-filterbar__lead { display: flex; flex: 1 1 100%; min-width: 0; align-items: center; justify-content: flex-end; gap: var(--aura-space-2); }
|
|
1816
1816
|
.aura-filterbar--collapse-sm .aura-filterbar__more { display: inline-flex; }
|
|
1817
|
+
.aura-filterbar--collapse-sm .aura-filterbar__lead.is-alone > .aura-filterbar__more { flex: 1 1 auto; } /* 5.43 (Chamber-OS 148): no search, the button takes the row */
|
|
1817
1818
|
.aura-filterbar--collapse-sm .aura-filterbar__search { flex: 1 1 0; min-width: 0; max-width: none; }
|
|
1818
1819
|
}
|
|
1819
1820
|
@media (max-width: 767.98px) {
|
|
1820
1821
|
.aura-filterbar--collapse-md > .aura-filterbar__row > .aura-filterbar__controls { display: none; }
|
|
1821
1822
|
.aura-filterbar--collapse-md .aura-filterbar__lead { display: flex; flex: 1 1 100%; min-width: 0; align-items: center; justify-content: flex-end; gap: var(--aura-space-2); }
|
|
1822
1823
|
.aura-filterbar--collapse-md .aura-filterbar__more { display: inline-flex; }
|
|
1824
|
+
.aura-filterbar--collapse-md .aura-filterbar__lead.is-alone > .aura-filterbar__more { flex: 1 1 auto; }
|
|
1823
1825
|
.aura-filterbar--collapse-md .aura-filterbar__search { flex: 1 1 0; min-width: 0; max-width: none; }
|
|
1824
1826
|
}
|
|
1825
1827
|
/* The sheet: one control per row at full width, labels showing; a toggle Tag or a Button keeps its own width. */
|
package/dist/styles.layer.css
CHANGED
|
@@ -1816,12 +1816,14 @@ button.aura-stepper__step:hover .aura-stepper__label { text-decoration: underlin
|
|
|
1816
1816
|
.aura-filterbar--collapse-sm > .aura-filterbar__row > .aura-filterbar__controls { display: none; }
|
|
1817
1817
|
.aura-filterbar--collapse-sm .aura-filterbar__lead { display: flex; flex: 1 1 100%; min-width: 0; align-items: center; justify-content: flex-end; gap: var(--aura-space-2); }
|
|
1818
1818
|
.aura-filterbar--collapse-sm .aura-filterbar__more { display: inline-flex; }
|
|
1819
|
+
.aura-filterbar--collapse-sm .aura-filterbar__lead.is-alone > .aura-filterbar__more { flex: 1 1 auto; } /* 5.43 (Chamber-OS 148): no search, the button takes the row */
|
|
1819
1820
|
.aura-filterbar--collapse-sm .aura-filterbar__search { flex: 1 1 0; min-width: 0; max-width: none; }
|
|
1820
1821
|
}
|
|
1821
1822
|
@media (max-width: 767.98px) {
|
|
1822
1823
|
.aura-filterbar--collapse-md > .aura-filterbar__row > .aura-filterbar__controls { display: none; }
|
|
1823
1824
|
.aura-filterbar--collapse-md .aura-filterbar__lead { display: flex; flex: 1 1 100%; min-width: 0; align-items: center; justify-content: flex-end; gap: var(--aura-space-2); }
|
|
1824
1825
|
.aura-filterbar--collapse-md .aura-filterbar__more { display: inline-flex; }
|
|
1826
|
+
.aura-filterbar--collapse-md .aura-filterbar__lead.is-alone > .aura-filterbar__more { flex: 1 1 auto; }
|
|
1825
1827
|
.aura-filterbar--collapse-md .aura-filterbar__search { flex: 1 1 0; min-width: 0; max-width: none; }
|
|
1826
1828
|
}
|
|
1827
1829
|
/* The sheet: one control per row at full width, labels showing; a toggle Tag or a Button keeps its own width. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jirawatpyk/aura-react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.43.0",
|
|
4
4
|
"description": "AURA Design System — React components (Enterprise Standard, Human Creative). Thai-first: Buddhist-era dates, Thai collation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|