kiva-protocol-ui-kit 1.0.51 → 1.0.55

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,7 +1,8 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent, MouseEventHandler } from "react";
2
2
  import "./Button.scss";
3
3
  export interface ButtonProps {
4
4
  title: string;
5
5
  style: string;
6
+ onClick?: MouseEventHandler<HTMLButtonElement>;
6
7
  }
7
8
  export declare const Button: FunctionComponent<ButtonProps>;
@@ -1,4 +1,4 @@
1
- import { FunctionComponent } from "react";
1
+ import { FunctionComponent, MouseEventHandler } from "react";
2
2
  import "./ConsentCard.scss";
3
3
  import "../typography.scss";
4
4
  import "../variables.scss";
@@ -7,7 +7,9 @@ export interface ConsentCardProps {
7
7
  title: string;
8
8
  agreement: string;
9
9
  pii: JSX.Element | null;
10
- back: string;
11
- accept: string;
10
+ backBtnHandler?: MouseEventHandler<HTMLButtonElement>;
11
+ backBtnContent?: string;
12
+ acceptBtnHandler: MouseEventHandler<HTMLButtonElement>;
13
+ acceptBtnContent: string;
12
14
  }
13
15
  export declare const ConsentCard: FunctionComponent<ConsentCardProps>;
@@ -48,7 +48,7 @@ var css_248z$7 = "button{background-color:#004fd4!important;border-radius:16px!i
48
48
  styleInject(css_248z$7);
49
49
 
50
50
  var Button = function (prop) {
51
- return (React.createElement("button", { type: "button", className: "btn btn-primary" }, prop.title));
51
+ return (React.createElement("button", { type: "button", className: "btn btn-primary", onClick: prop.onClick }, prop.title));
52
52
  };
53
53
 
54
54
  var css_248z$6 = ".alert{border-radius:20px;box-shadow:0 0 8px rgba(0,0,0,.08);padding:23.5px 50px}";
@@ -17317,13 +17317,11 @@ var ConsentCard = function (prop) {
17317
17317
  return (React.createElement("div", { className: "flex flex-col justify-center rounded-3xl jurne-card bg-white p-1.5" },
17318
17318
  React.createElement("div", { className: "flex flex-col max-w-md px-8 py-6 space-y-5" },
17319
17319
  React.createElement("span", { className: "consent-title items-center" }, prop.title),
17320
- React.createElement("span", { className: "consent-body items-center" }, prop.agreement),
17320
+ React.createElement("div", { className: "consent-body items-center" }, prop.agreement),
17321
17321
  React.createElement("ul", null, lodash.map(prop.pii, function (item) { return React.createElement("li", { className: "pii-list-item" }, item); }))),
17322
17322
  React.createElement("div", { className: "row col-flex" },
17323
17323
  React.createElement("div", { className: "col-sm text-center" },
17324
- React.createElement(Button, { title: prop.back, style: "secondary" })),
17325
- React.createElement("div", { className: "col-sm text-center" },
17326
- React.createElement(Button, { title: prop.accept, style: "primary" })))));
17324
+ React.createElement(Button, { title: prop.acceptBtnContent, style: "primary", onClick: prop.acceptBtnHandler })))));
17327
17325
  };
17328
17326
 
17329
17327
  export { ActionCard, Alert, Button, ConsentCard, FormInput, QrCode };