@bbki.ng/components 1.5.37 → 1.5.38

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
@@ -1,4 +1,5 @@
1
- import React, { FunctionComponent, EventHandler, ReactElement, ReactNode, CSSProperties, Ref } from 'react';
1
+ import * as React from 'react';
2
+ import React__default, { FunctionComponent, EventHandler, ReactElement, ReactNode, CSSProperties, Ref } from 'react';
2
3
  import { LinkProps as LinkProps$1 } from 'react-router-dom';
3
4
 
4
5
  declare type ArticleProps = {
@@ -18,9 +19,9 @@ declare enum ButtonType {
18
19
  }
19
20
  interface ButtonProps {
20
21
  className?: string;
21
- children: React.ReactNode;
22
+ children: React__default.ReactNode;
22
23
  type?: ButtonType;
23
- onClick: EventHandler<React.MouseEvent<HTMLButtonElement>>;
24
+ onClick: EventHandler<React__default.MouseEvent<HTMLButtonElement>>;
24
25
  }
25
26
  declare function Button(props: ButtonProps): JSX.Element;
26
27
  declare namespace Button {
@@ -30,7 +31,7 @@ declare namespace Button {
30
31
  declare type LogoProps = {
31
32
  className?: string;
32
33
  };
33
- declare const Logo: (props: LogoProps) => JSX.Element;
34
+ declare const Logo: React.MemoExoticComponent<(props: LogoProps) => JSX.Element>;
34
35
 
35
36
  declare type PathObj = {
36
37
  path?: string;
@@ -91,7 +92,7 @@ declare const NotFound: (props: {
91
92
  declare const Error: (props: {
92
93
  error: Error;
93
94
  }) => JSX.Element;
94
- declare class ErrorBoundary extends React.Component<{
95
+ declare class ErrorBoundary extends React__default.Component<{
95
96
  children: any;
96
97
  }, {
97
98
  error?: Error;
@@ -108,8 +109,8 @@ declare class ErrorBoundary extends React.Component<{
108
109
  }
109
110
 
110
111
  declare type PopConfirmProps = {
111
- onOk?: EventHandler<React.MouseEvent<HTMLButtonElement>> | (() => Promise<void>);
112
- onCancel?: EventHandler<React.MouseEvent<HTMLButtonElement>>;
112
+ onOk?: EventHandler<React__default.MouseEvent<HTMLButtonElement>> | (() => Promise<void>);
113
+ onCancel?: EventHandler<React__default.MouseEvent<HTMLButtonElement>>;
113
114
  className?: string;
114
115
  content?: any;
115
116
  children?: any;
@@ -252,7 +253,7 @@ interface RandomRowsLayoutProps {
252
253
  classNames?: string;
253
254
  cellWrapperClsGenerator?: (colNum: number, randBoolean: boolean) => string;
254
255
  cellsCount: number;
255
- cellRenderer: (index: number, randomBool: boolean, col: number) => React.ReactNode;
256
+ cellRenderer: (index: number, randomBool: boolean, col: number) => React__default.ReactNode;
256
257
  }
257
258
 
258
259
  declare type ImageRenderer = (Img: ReactElement, index: number, col: number, randBool: boolean) => ReactNode;
package/dist/index.js CHANGED
@@ -134,7 +134,7 @@ Button.displayName = "Button";
134
134
 
135
135
  // src/logo/Logo.tsx
136
136
  var React3 = __toESM(require("react"));
137
- var Logo = (props) => /* @__PURE__ */ React3.createElement("svg", {
137
+ var Logo = React3.memo((props) => /* @__PURE__ */ React3.createElement("svg", {
138
138
  xmlns: "http://www.w3.org/2000/svg",
139
139
  width: "48",
140
140
  height: "48",
@@ -162,7 +162,9 @@ var Logo = (props) => /* @__PURE__ */ React3.createElement("svg", {
162
162
  }), /* @__PURE__ */ React3.createElement("path", {
163
163
  d: "M35.7842 15.9373C35.7842 16.6792 35.186 17.2806 34.4481 17.2806C33.7102 17.2806 33.112 16.6792 33.112 15.9373C33.112 15.1954 33.7102 14.594 34.4481 14.594C35.186 14.594 35.7842 15.1954 35.7842 15.9373Z",
164
164
  fill: "#9CA3AF"
165
- }));
165
+ })), () => {
166
+ return true;
167
+ });
166
168
 
167
169
  // src/nav/Nav.tsx
168
170
  var import_react6 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -73,7 +73,7 @@ Button.displayName = "Button";
73
73
 
74
74
  // src/logo/Logo.tsx
75
75
  import * as React3 from "react";
76
- var Logo = (props) => /* @__PURE__ */ React3.createElement("svg", {
76
+ var Logo = React3.memo((props) => /* @__PURE__ */ React3.createElement("svg", {
77
77
  xmlns: "http://www.w3.org/2000/svg",
78
78
  width: "48",
79
79
  height: "48",
@@ -101,7 +101,9 @@ var Logo = (props) => /* @__PURE__ */ React3.createElement("svg", {
101
101
  }), /* @__PURE__ */ React3.createElement("path", {
102
102
  d: "M35.7842 15.9373C35.7842 16.6792 35.186 17.2806 34.4481 17.2806C33.7102 17.2806 33.112 16.6792 33.112 15.9373C33.112 15.1954 33.7102 14.594 34.4481 14.594C35.186 14.594 35.7842 15.1954 35.7842 15.9373Z",
103
103
  fill: "#9CA3AF"
104
- }));
104
+ })), () => {
105
+ return true;
106
+ });
105
107
 
106
108
  // src/nav/Nav.tsx
107
109
  import React7 from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/components",
3
- "version": "1.5.37",
3
+ "version": "1.5.38",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",