@studiolxd/brand 48.0.0 → 48.1.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/CHANGELOG.md +33 -0
- package/dist/_shared/tokens.js +0 -1
- package/dist/_types/molecules/FilterBar/FilterBar.d.ts +4 -3
- package/dist/_types/molecules/Pagination/Pagination.d.ts +16 -2
- package/dist/brand.css +2 -4
- package/dist/filter-bar.css +1 -1
- package/dist/pagination.js +12 -12
- package/dist/tokens.css +2 -4
- package/package.json +1 -1
- package/src/tokens/molecules/filter-bar.css +1 -2
- package/src/tokens/scss/molecules/_filter-bar.scss +1 -2
- package/src/tokens/surface-public.css +0 -1
- package/src/tokens/tokens.json +0 -1
package/dist/filter-bar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-bar{gap:var(--filter-bar-gap);flex-direction:column;display:flex}.filter-bar__search{inline-size:100%}.filter-bar__row{column-gap:var(--filter-bar-column-gap);row-gap:var(--filter-bar-row-gap);grid-template-columns:1fr;display:grid}.filter-bar__filters{display:contents}.filter-bar__filter{min-inline-size:0}.filter-bar__actions{align-items:stretch;gap:var(--filter-bar-actions-gap);flex-direction:column;min-inline-size:0;display:flex}.filter-bar__actions>*{inline-size:100%}@media (width>=768px){.filter-bar__row{grid-template-columns:repeat(auto-
|
|
1
|
+
.filter-bar{gap:var(--filter-bar-gap);flex-direction:column;display:flex}.filter-bar__search{inline-size:100%}.filter-bar__row{column-gap:var(--filter-bar-column-gap);row-gap:var(--filter-bar-row-gap);grid-template-columns:1fr;display:grid}.filter-bar__filters{display:contents}.filter-bar__filter{min-inline-size:0}.filter-bar__actions{align-items:stretch;gap:var(--filter-bar-actions-gap);flex-direction:column;min-inline-size:0;display:flex}.filter-bar__actions>*{inline-size:100%}@media (width>=768px){.filter-bar__row{grid-template-columns:repeat(auto-fit, minmax(calc((100% - var(--filter-bar-column-gap)) / 2), 1fr))}.filter-bar__actions{flex-flow:wrap;align-items:center}.filter-bar__actions>*{inline-size:auto}:is(.filter-bar__row:has(.label:not(.visually-hidden)) .filter-bar__filter:not(:has(.label:not(.visually-hidden))),.filter-bar__row:has(.label:not(.visually-hidden))>.filter-bar__actions){align-self:start;padding-block-start:var(--filter-bar-label-offset)}.filter-bar__row:has(.label:not(.visually-hidden)) .filter-bar__filter:not(:has(.label:not(.visually-hidden))){block-size:calc(var(--filter-bar-label-offset) + var(--filter-bar-control-block-size));flex-direction:column;justify-content:center;display:flex}.filter-bar__row:has(.label:not(.visually-hidden))>.filter-bar__actions{min-block-size:calc(var(--filter-bar-label-offset) + var(--filter-bar-control-block-size))}}@media (width>=1024px){.filter-bar__row{grid-template-columns:repeat(auto-fit, minmax(calc((100% - 3 * var(--filter-bar-column-gap)) / 4), 1fr))}}
|
package/dist/pagination.js
CHANGED
|
@@ -48,7 +48,7 @@ function o(e, t) {
|
|
|
48
48
|
"..."
|
|
49
49
|
];
|
|
50
50
|
}
|
|
51
|
-
function s({ mode: s = "pages", total: c
|
|
51
|
+
function s({ mode: s = "pages", total: c, pageCount: l, page: u = 1, pageSize: d = 10, hrefs: f, previousHref: p, nextHref: m, onPrevious: h, onNext: g, onPageChange: _, hrefBuilder: v, linkComponent: y, onPageSizeChange: b, pageSizeOptions: x, afterPageSize: S, showTotal: C = !1, size: w = "md", ariaLabel: T, pageLabel: E, previousLabel: D, nextLabel: O, pagesGroupLabel: k, pageSizeLabel: A, totalLabel: j, className: M }) {
|
|
52
52
|
let N = e("pagination"), P = v ?? (f ? (e) => f[e] : void 0), F = y ?? "a";
|
|
53
53
|
if (s === "cursor") {
|
|
54
54
|
let e = w === "sm" ? "xs" : w === "lg" ? "md" : "sm", n = (n) => {
|
|
@@ -86,9 +86,9 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
|
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
if (l ===
|
|
90
|
-
let I = l ?? (d === "all" ? 1 : Math.ceil(
|
|
91
|
-
function
|
|
89
|
+
if (c === 0 || l === 0 || c === void 0 && (l ?? 1) <= 1 && !S) return null;
|
|
90
|
+
let I = c ?? 0, L = l ?? (d === "all" ? 1 : Math.ceil(I / d)), R = L > 1 ? o(u, L) : [];
|
|
91
|
+
function z(e, t) {
|
|
92
92
|
if (e === "...") return /* @__PURE__ */ r("span", {
|
|
93
93
|
className: "pagination__ellipsis",
|
|
94
94
|
"aria-hidden": "true",
|
|
@@ -112,7 +112,7 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
|
|
|
112
112
|
children: e
|
|
113
113
|
}, e);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function B(e, n, i) {
|
|
116
116
|
let a = n === "prev" ? N("previous", D) : N("next", O), o = /* @__PURE__ */ r(t, {
|
|
117
117
|
name: "chevron",
|
|
118
118
|
size: w === "sm" ? "xs" : w === "lg" ? "md" : "sm",
|
|
@@ -135,7 +135,7 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
|
|
|
135
135
|
children: o
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
let
|
|
138
|
+
let V = C || !!b || !!S;
|
|
139
139
|
return /* @__PURE__ */ i("nav", {
|
|
140
140
|
className: [
|
|
141
141
|
"pagination",
|
|
@@ -143,12 +143,12 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
|
|
|
143
143
|
M
|
|
144
144
|
].filter(Boolean).join(" "),
|
|
145
145
|
"aria-label": N("label", T),
|
|
146
|
-
children: [
|
|
146
|
+
children: [V && /* @__PURE__ */ i("div", {
|
|
147
147
|
className: "pagination__meta",
|
|
148
148
|
children: [
|
|
149
149
|
C && /* @__PURE__ */ r("span", {
|
|
150
150
|
className: "pagination__summary",
|
|
151
|
-
children: N("total", j)(
|
|
151
|
+
children: N("total", j)(I)
|
|
152
152
|
}),
|
|
153
153
|
b && /* @__PURE__ */ r("div", {
|
|
154
154
|
className: "pagination__size-selector",
|
|
@@ -165,14 +165,14 @@ function s({ mode: s = "pages", total: c = 0, pageCount: l, page: u = 1, pageSiz
|
|
|
165
165
|
children: S
|
|
166
166
|
})
|
|
167
167
|
]
|
|
168
|
-
}),
|
|
168
|
+
}), L > 1 && /* @__PURE__ */ i("div", {
|
|
169
169
|
className: "pagination__controls",
|
|
170
170
|
role: "group",
|
|
171
171
|
"aria-label": N("pagesGroup", k),
|
|
172
172
|
children: [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
B(u - 1, "prev", u <= 1),
|
|
174
|
+
R.map((e, t) => z(e, t)),
|
|
175
|
+
B(u + 1, "next", u >= L)
|
|
176
176
|
]
|
|
177
177
|
})]
|
|
178
178
|
});
|