@mediaradar/design-components 0.24.0 → 0.26.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/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -12
- package/dist/index.d.ts +23 -12
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/check-tailwind-coverage.mjs +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3302,9 +3302,9 @@ function pageWindow(current, total) {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
return out;
|
|
3304
3304
|
}
|
|
3305
|
-
function Pager({ page, totalPages, onPage, disabled = false }) {
|
|
3305
|
+
function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination" }) {
|
|
3306
3306
|
const btn = "flex h-8 min-w-8 items-center justify-center rounded-control px-2 text-[13px] transition-colors disabled:pointer-events-none disabled:opacity-30";
|
|
3307
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("
|
|
3307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("nav", { "aria-label": label, className: "flex items-center gap-1", children: [
|
|
3308
3308
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3309
3309
|
"button",
|
|
3310
3310
|
{
|
|
@@ -4148,7 +4148,10 @@ var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
|
4148
4148
|
var WIDTH = {
|
|
4149
4149
|
sm: "max-w-110",
|
|
4150
4150
|
md: "max-w-160",
|
|
4151
|
-
lg: "max-w-220"
|
|
4151
|
+
lg: "max-w-220",
|
|
4152
|
+
// A whole workspace in a dialog: a column picker, a detail view with its
|
|
4153
|
+
// own tabs, a grid of events. 880 squeezed their tables into scrolling.
|
|
4154
|
+
xl: "max-w-300"
|
|
4152
4155
|
};
|
|
4153
4156
|
var FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
4154
4157
|
function Modal({ open, onClose, title, description, size = "md", footer, children, className }) {
|