@bbki.ng/components 1.5.26 → 1.5.27

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.d.ts CHANGED
@@ -264,7 +264,7 @@ interface GalleryProps extends Omit<RandomRowsLayoutProps, "classNames" | "cells
264
264
  declare const Gallery: (props: GalleryProps) => JSX.Element;
265
265
 
266
266
  interface ISettings {
267
- canvas: HTMLCanvasElement;
267
+ canvas?: HTMLCanvasElement;
268
268
  step?: number;
269
269
  }
270
270
 
@@ -278,6 +278,6 @@ interface IOpt {
278
278
  interface LoadingSpiralProps extends IOpt, ISettings {
279
279
  className?: "string";
280
280
  }
281
- declare const LoadingSpiral: (props: LoadingSpiralProps) => JSX.Element;
281
+ declare const LoadingSpiral: (props?: LoadingSpiralProps | undefined) => JSX.Element;
282
282
 
283
283
  export { Article, ArticleProps, ArticleSkeleton, ArticleSkeletonProps, BLinkDotProps, BlinkDot, Breadcrumb, BreadcrumbProps, Button, ButtonProps, ButtonType, DropImage, Error, ErrorBoundary, Gallery, GalleryProps, ImageDropProps, ImagePreviewerProps, ImageRenderer, Img, Link, LinkColor, LinkList, LinkListProps, LinkListSkeleton, LinkListSkeletonProps, LinkProps, List, LoadingSpiral, LoadingSpiralProps, Logo, LogoProps, Nav, NavProps, NoiseCover, NoiseCoverProps, NotFound, Page, Panel, PanelProps, PathObj, PopConfirm, PopConfirmProps, Skeleton, SkeletonColor, SkeletonProps, Table, TableProps, Tag, TagProps, Tags, ThreeColLayout, TitledList, TitledListProps, listProps, threeColLayoutProps };
package/dist/index.js CHANGED
@@ -1171,7 +1171,7 @@ var useResizedCanvasRef = () => {
1171
1171
  // src/loading-spiral/LoadingSpiral.tsx
1172
1172
  var LoadingSpiral = (props) => {
1173
1173
  const { canvasRef, containerRef } = useResizedCanvasRef();
1174
- const _a = props, { className, canvas, step } = _a, rest = __objRest(_a, ["className", "canvas", "step"]);
1174
+ const _a = props || {}, { className, canvas, step } = _a, rest = __objRest(_a, ["className", "canvas", "step"]);
1175
1175
  (0, import_react23.useEffect)(() => {
1176
1176
  if (!canvasRef.current) {
1177
1177
  return;
package/dist/index.mjs CHANGED
@@ -1113,7 +1113,7 @@ var useResizedCanvasRef = () => {
1113
1113
  // src/loading-spiral/LoadingSpiral.tsx
1114
1114
  var LoadingSpiral = (props) => {
1115
1115
  const { canvasRef, containerRef } = useResizedCanvasRef();
1116
- const _a = props, { className, canvas, step } = _a, rest = __objRest(_a, ["className", "canvas", "step"]);
1116
+ const _a = props || {}, { className, canvas, step } = _a, rest = __objRest(_a, ["className", "canvas", "step"]);
1117
1117
  useEffect4(() => {
1118
1118
  if (!canvasRef.current) {
1119
1119
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/components",
3
- "version": "1.5.26",
3
+ "version": "1.5.27",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",