@k3-tech/react-kit 0.0.74 → 0.0.75
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.js +22 -0
- package/dist/kit/components/loading-overlay/PageLoader.d.ts +8 -0
- package/dist/kit/components/loading-overlay/index.d.ts +1 -0
- package/dist/kit/themes/clean-slate.css +4 -0
- package/dist/kit/themes/default.css +8 -0
- package/dist/kit/themes/minimal-modern.css +4 -0
- package/dist/kit/themes/spotify.css +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50908,6 +50908,27 @@ function LoadingOverlay({ message: message2 = "Working…", variant = "panel" })
|
|
|
50908
50908
|
}
|
|
50909
50909
|
);
|
|
50910
50910
|
}
|
|
50911
|
+
function PageLoader({ message: message2 = "Loading…", className }) {
|
|
50912
|
+
return /* @__PURE__ */ jsxs(
|
|
50913
|
+
"div",
|
|
50914
|
+
{
|
|
50915
|
+
role: "status",
|
|
50916
|
+
"aria-live": "polite",
|
|
50917
|
+
"aria-busy": "true",
|
|
50918
|
+
className: cn$1("flex min-h-[60vh] flex-col items-center justify-center gap-4", className),
|
|
50919
|
+
children: [
|
|
50920
|
+
/* @__PURE__ */ jsx(
|
|
50921
|
+
"span",
|
|
50922
|
+
{
|
|
50923
|
+
"aria-hidden": "true",
|
|
50924
|
+
className: "size-[38px] shrink-0 animate-spin rounded-full border-[3.5px] border-border border-t-primary"
|
|
50925
|
+
}
|
|
50926
|
+
),
|
|
50927
|
+
message2 && /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold text-text-2", children: message2 })
|
|
50928
|
+
]
|
|
50929
|
+
}
|
|
50930
|
+
);
|
|
50931
|
+
}
|
|
50911
50932
|
const NUMBER_BUTTON_BASE_CLASSES = "rounded-xl border-2 border-teal-200 bg-white text-3xl font-semibold text-teal-600 hover:text-teal-900 transition-colors hover:bg-teal-50 h-auto";
|
|
50912
50933
|
const CLEAR_BUTTON_CLASSES = "rounded-xl border-2 border-teal-200 bg-white text-2xl font-semibold text-teal-600 hover:text-teal-900 transition-colors hover:bg-teal-50 h-auto";
|
|
50913
50934
|
const BACKSPACE_BUTTON_CLASSES$1 = "rounded-xl bg-red-600 text-white transition-colors hover:bg-red-700 h-auto";
|
|
@@ -71273,6 +71294,7 @@ export {
|
|
|
71273
71294
|
NavigationMenuViewport,
|
|
71274
71295
|
Numpad,
|
|
71275
71296
|
Page,
|
|
71297
|
+
PageLoader,
|
|
71276
71298
|
Pagination,
|
|
71277
71299
|
PaginationContent,
|
|
71278
71300
|
PaginationEllipsis,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface PageLoaderProps {
|
|
3
|
+
/** Short status, e.g. "Loading transfer order…". */
|
|
4
|
+
message?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function PageLoader({ message, className }: PageLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=PageLoader.d.ts.map
|
|
@@ -1227,6 +1227,10 @@
|
|
|
1227
1227
|
min-height: 60px;
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
|
+
.min-h-\[60vh\] {
|
|
1231
|
+
min-height: 60vh;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1230
1234
|
.min-h-dvh {
|
|
1231
1235
|
min-height: 100dvh;
|
|
1232
1236
|
}
|
|
@@ -3494,6 +3498,10 @@
|
|
|
3494
3498
|
color: var(--teal-fg);
|
|
3495
3499
|
}
|
|
3496
3500
|
|
|
3501
|
+
.text-text-2 {
|
|
3502
|
+
color: var(--text-2);
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3497
3505
|
.text-warning-fg {
|
|
3498
3506
|
color: var(--warning-fg);
|
|
3499
3507
|
}
|