@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.
@@ -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-fill, minmax(min(var(--filter-bar-column-min-inline-size), 100%), 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))}}
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))}}
@@ -48,7 +48,7 @@ function o(e, t) {
48
48
  "..."
49
49
  ];
50
50
  }
51
- function s({ mode: s = "pages", total: c = 0, 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 }) {
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 === void 0 && c === 0 && !S) return null;
90
- let I = l ?? (d === "all" ? 1 : Math.ceil(c / d)), L = I > 1 ? o(u, I) : [];
91
- function R(e, t) {
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 z(e, n, i) {
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 B = C || !!b || !!S;
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: [B && /* @__PURE__ */ i("div", {
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)(c)
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
- }), I > 1 && /* @__PURE__ */ i("div", {
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
- z(u - 1, "prev", u <= 1),
174
- L.map((e, t) => R(e, t)),
175
- z(u + 1, "next", u >= I)
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
  });