1mpacto-react-ui 2.0.29 → 2.0.31
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/assets/style.css +1 -1
- package/dist/components/Calendar/CalendarButton.cjs +1 -1
- package/dist/components/Calendar/CalendarButton.mjs +12 -11
- package/dist/components/Calendar/CalendarCell.cjs +1 -1
- package/dist/components/Calendar/CalendarCell.mjs +8 -8
- package/dist/components/Calendar/CalendarMonth.cjs +1 -1
- package/dist/components/Calendar/CalendarMonth.mjs +28 -28
- package/dist/components/Calendar/CalendarYear.cjs +2 -2
- package/dist/components/Calendar/CalendarYear.mjs +36 -36
- package/dist/components/Calendar/style.module.scss.cjs +1 -1
- package/dist/components/Calendar/style.module.scss.mjs +36 -34
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.mjs +45 -44
- package/dist/components/DatePicker/FilterDate.cjs +1 -1
- package/dist/components/DatePicker/FilterDate.mjs +54 -53
- package/dist/components/DatePicker/MonthYearPicker.cjs +1 -1
- package/dist/components/DatePicker/MonthYearPicker.mjs +27 -26
- package/dist/components/Modal/ModalDialog.cjs +9 -9
- package/dist/components/Modal/ModalDialog.config.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.mjs +4 -2
- package/dist/components/Modal/ModalDialog.mjs +25 -22
- package/dist/components/Modal/style.module.scss.cjs +1 -1
- package/dist/components/Modal/style.module.scss.mjs +19 -17
- package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.cjs +1 -1
- package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.mjs +21 -21
- package/dist/components/Tabs/style.module.scss.cjs +1 -1
- package/dist/components/Tabs/style.module.scss.mjs +29 -29
- package/dist/components/fin/Chat/BubbleChat.cjs +1 -1
- package/dist/components/fin/Chat/BubbleChat.mjs +17 -7
- package/dist/components/fin/Chat/BubbleChatOption.cjs +1 -1
- package/dist/components/fin/Chat/BubbleChatOption.mjs +20 -18
- package/dist/components/fin/Chat/BubbleChatUser.cjs +1 -1
- package/dist/components/fin/Chat/BubbleChatUser.mjs +11 -4
- package/dist/hooks/useCountdown.cjs +1 -1
- package/dist/hooks/useCountdown.mjs +21 -19
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.d.ts +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/components/Input/InputReguler.stories.d.ts +20 -0
- package/dist/src/components/Modal/ModalDialog.config.d.ts +14 -0
- package/dist/src/components/Modal/ModalDialog.d.ts +1 -1
- package/dist/src/components/Modal/ModalDialog.stories.d.ts +17 -1
- package/dist/src/components/Popover/Popover.stories.d.ts +16 -0
- package/dist/src/components/Textarea/TextareaFloatingInner.stories.d.ts +16 -0
- package/dist/src/components/Upload/UploadMultipleFile.stories.d.ts +13 -0
- package/dist/src/components/fin/Chat/BubbleChat.d.ts +1 -1
- package/dist/src/components/fin/Chat/BubbleChat.stories.d.ts +99 -0
- package/dist/src/components/fin/Chat/BubbleChatOption.d.ts +1 -1
- package/dist/src/components/fin/Chat/BubbleChatOption.stories.d.ts +152 -0
- package/dist/src/components/fin/Chat/BubbleChatUser.d.ts +1 -1
- package/dist/src/components/fin/Chat/BubbleChatUser.stories.d.ts +65 -0
- package/dist/src/components/index.d.ts +2 -2
- package/dist/src/interfaces/components/Input/index.d.ts +1 -1
- package/dist/src/interfaces/components/Modal/index.d.ts +4 -1
- package/dist/src/interfaces/components/fin/Chat/index.d.ts +128 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="_hidden_r9f1a_10",_="_ripple_r9f1a_177",r="_active_r9f1a_184",e={"disable-transition":"_disable-transition_r9f1a_1","tab-panel":"_tab-panel_r9f1a_5",hidden:a,"tabs-medium":"_tabs-medium_r9f1a_15","tabs-list":"_tabs-list_r9f1a_18","button-tabs":"_button-tabs_r9f1a_18","tabs-small":"_tabs-small_r9f1a_31","tabs-m":"_tabs-m_r9f1a_15","tabs-s":"_tabs-s_r9f1a_31","tabs-bill-m":"_tabs-bill-m_r9f1a_79","tabs-bill-s":"_tabs-bill-s_r9f1a_95","tabs-fin-m":"_tabs-fin-m_r9f1a_111","tabs-fin-s":"_tabs-fin-s_r9f1a_127","container-tabs":"_container-tabs_r9f1a_143","original-laba-blue-10":"_original-laba-blue-10_r9f1a_149",ripple:_,active:r,"tabs-slider":"_tabs-slider_r9f1a_192","original-payhere-primary-700":"_original-payhere-primary-700_r9f1a_200","original-bill-secondary-800":"_original-bill-secondary-800_r9f1a_251","original-fin-primary-100":"_original-fin-primary-100_r9f1a_302","container-payhere-brand-base":"_container-payhere-brand-base_r9f1a_370","container-payhere-brand-base-bg_white":"_container-payhere-brand-base-bg_white_r9f1a_408","container-laba-blue-10":"_container-laba-blue-10_r9f1a_446","container-laba-blue-10-bg_white":"_container-laba-blue-10-bg_white_r9f1a_484","container-laba-blue-10-bg_blue-01":"_container-laba-blue-10-bg_blue-01_r9f1a_522","container-bill-secondary-800":"_container-bill-secondary-800_r9f1a_560","container-fin-secondary-500":"_container-fin-secondary-500_r9f1a_598"};exports.active=r;exports.default=e;exports.hidden=a;exports.ripple=_;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
const a = "
|
|
2
|
-
"disable-transition": "_disable-
|
|
3
|
-
"tab-panel": "_tab-
|
|
1
|
+
const a = "_hidden_r9f1a_10", _ = "_ripple_r9f1a_177", r = "_active_r9f1a_184", i = {
|
|
2
|
+
"disable-transition": "_disable-transition_r9f1a_1",
|
|
3
|
+
"tab-panel": "_tab-panel_r9f1a_5",
|
|
4
4
|
hidden: a,
|
|
5
|
-
"tabs-medium": "_tabs-
|
|
6
|
-
"tabs-list": "_tabs-
|
|
7
|
-
"button-tabs": "_button-
|
|
8
|
-
"tabs-small": "_tabs-
|
|
9
|
-
"tabs-m": "_tabs-
|
|
10
|
-
"tabs-s": "_tabs-
|
|
11
|
-
"tabs-bill-m": "_tabs-bill-
|
|
12
|
-
"tabs-bill-s": "_tabs-bill-
|
|
13
|
-
"tabs-fin-m": "_tabs-fin-
|
|
14
|
-
"tabs-fin-s": "_tabs-fin-
|
|
15
|
-
"container-tabs": "_container-
|
|
16
|
-
"original-laba-blue-10": "_original-laba-blue-
|
|
5
|
+
"tabs-medium": "_tabs-medium_r9f1a_15",
|
|
6
|
+
"tabs-list": "_tabs-list_r9f1a_18",
|
|
7
|
+
"button-tabs": "_button-tabs_r9f1a_18",
|
|
8
|
+
"tabs-small": "_tabs-small_r9f1a_31",
|
|
9
|
+
"tabs-m": "_tabs-m_r9f1a_15",
|
|
10
|
+
"tabs-s": "_tabs-s_r9f1a_31",
|
|
11
|
+
"tabs-bill-m": "_tabs-bill-m_r9f1a_79",
|
|
12
|
+
"tabs-bill-s": "_tabs-bill-s_r9f1a_95",
|
|
13
|
+
"tabs-fin-m": "_tabs-fin-m_r9f1a_111",
|
|
14
|
+
"tabs-fin-s": "_tabs-fin-s_r9f1a_127",
|
|
15
|
+
"container-tabs": "_container-tabs_r9f1a_143",
|
|
16
|
+
"original-laba-blue-10": "_original-laba-blue-10_r9f1a_149",
|
|
17
17
|
ripple: _,
|
|
18
|
-
active:
|
|
19
|
-
"tabs-slider": "_tabs-
|
|
20
|
-
"original-payhere-primary-700": "_original-payhere-primary-
|
|
21
|
-
"original-bill-secondary-800": "_original-bill-secondary-
|
|
22
|
-
"original-fin-primary-100": "_original-fin-primary-
|
|
23
|
-
"container-payhere-brand-base": "_container-payhere-brand-
|
|
24
|
-
"container-payhere-brand-base-bg_white": "_container-payhere-brand-base-
|
|
25
|
-
"container-laba-blue-10": "_container-laba-blue-
|
|
26
|
-
"container-laba-blue-10-bg_white": "_container-laba-blue-10-
|
|
27
|
-
"container-laba-blue-10-bg_blue-01": "_container-laba-blue-10-bg_blue-
|
|
28
|
-
"container-bill-secondary-800": "_container-bill-secondary-
|
|
29
|
-
"container-fin-secondary-500": "_container-fin-secondary-
|
|
18
|
+
active: r,
|
|
19
|
+
"tabs-slider": "_tabs-slider_r9f1a_192",
|
|
20
|
+
"original-payhere-primary-700": "_original-payhere-primary-700_r9f1a_200",
|
|
21
|
+
"original-bill-secondary-800": "_original-bill-secondary-800_r9f1a_251",
|
|
22
|
+
"original-fin-primary-100": "_original-fin-primary-100_r9f1a_302",
|
|
23
|
+
"container-payhere-brand-base": "_container-payhere-brand-base_r9f1a_370",
|
|
24
|
+
"container-payhere-brand-base-bg_white": "_container-payhere-brand-base-bg_white_r9f1a_408",
|
|
25
|
+
"container-laba-blue-10": "_container-laba-blue-10_r9f1a_446",
|
|
26
|
+
"container-laba-blue-10-bg_white": "_container-laba-blue-10-bg_white_r9f1a_484",
|
|
27
|
+
"container-laba-blue-10-bg_blue-01": "_container-laba-blue-10-bg_blue-01_r9f1a_522",
|
|
28
|
+
"container-bill-secondary-800": "_container-bill-secondary-800_r9f1a_560",
|
|
29
|
+
"container-fin-secondary-500": "_container-fin-secondary-500_r9f1a_598"
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
r as active,
|
|
33
|
+
i as default,
|
|
34
34
|
a as hidden,
|
|
35
35
|
_ as ripple
|
|
36
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("react"),t=require("./style.module.scss.cjs"),l=require("./Icons.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("react"),t=require("./style.module.scss.cjs"),l=require("./Icons.cjs"),m=({id:s,icon:n,header:a,content:c,classNameContainer:o,onCopy:u,onDislike:d,onLike:r,onReply:j})=>e.jsxs("div",{id:s,className:`${t.default.container} ${o} ${t.default["position-start"]}`,children:[e.jsxs("div",{className:t.default["container-card"],children:[i.isValidElement(n)&&e.jsx("div",{className:t.default.icon,children:n}),i.isValidElement(a)&&a,i.isValidElement(c)&&c]}),e.jsxs("div",{className:t.default["container-action"],children:[e.jsx("button",{id:`${s}-like`,className:t.default["button-action"],onClick:r,children:e.jsx(l.LikeIcon,{})}),e.jsx("button",{id:`${s}-dislike`,className:t.default["button-action"],onClick:d,children:e.jsx(l.DislikeIcon,{})}),e.jsx("button",{id:`${s}-copy`,className:t.default["button-action"],onClick:u,children:e.jsx(l.CopyIcon,{})}),e.jsx("button",{id:`${s}-reply`,className:t.default["button-action"],onClick:j,children:e.jsx(l.ReplyIcon,{})})]})]});exports.default=m;
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { isValidElement as c } from "react";
|
|
3
3
|
import n from "./style.module.scss.mjs";
|
|
4
|
-
import { LikeIcon as
|
|
5
|
-
const
|
|
4
|
+
import { LikeIcon as b, DislikeIcon as p, CopyIcon as h, ReplyIcon as k } from "./Icons.mjs";
|
|
5
|
+
const y = ({
|
|
6
|
+
id: o,
|
|
7
|
+
icon: l,
|
|
8
|
+
header: a,
|
|
9
|
+
content: e,
|
|
10
|
+
classNameContainer: s,
|
|
11
|
+
onCopy: r,
|
|
12
|
+
onDislike: m,
|
|
13
|
+
onLike: d,
|
|
14
|
+
onReply: u
|
|
15
|
+
}) => /* @__PURE__ */ t("div", { id: o, className: `${n.container} ${s} ${n["position-start"]}`, children: [
|
|
6
16
|
/* @__PURE__ */ t("div", { className: n["container-card"], children: [
|
|
7
17
|
c(l) && /* @__PURE__ */ i("div", { className: n.icon, children: l }),
|
|
8
18
|
c(a) && a,
|
|
9
19
|
c(e) && e
|
|
10
20
|
] }),
|
|
11
21
|
/* @__PURE__ */ t("div", { className: n["container-action"], children: [
|
|
12
|
-
/* @__PURE__ */ i("button", { id: `${o}-like`, className: n["button-action"], onClick:
|
|
13
|
-
/* @__PURE__ */ i("button", { id: `${o}-dislike`, className: n["button-action"], onClick:
|
|
14
|
-
/* @__PURE__ */ i("button", { id: `${o}-copy`, className: n["button-action"], onClick:
|
|
15
|
-
/* @__PURE__ */ i("button", { id: `${o}-reply`, className: n["button-action"], onClick:
|
|
22
|
+
/* @__PURE__ */ i("button", { id: `${o}-like`, className: n["button-action"], onClick: d, children: /* @__PURE__ */ i(b, {}) }),
|
|
23
|
+
/* @__PURE__ */ i("button", { id: `${o}-dislike`, className: n["button-action"], onClick: m, children: /* @__PURE__ */ i(p, {}) }),
|
|
24
|
+
/* @__PURE__ */ i("button", { id: `${o}-copy`, className: n["button-action"], onClick: r, children: /* @__PURE__ */ i(h, {}) }),
|
|
25
|
+
/* @__PURE__ */ i("button", { id: `${o}-reply`, className: n["button-action"], onClick: u, children: /* @__PURE__ */ i(k, {}) })
|
|
16
26
|
] })
|
|
17
27
|
] });
|
|
18
28
|
export {
|
|
19
|
-
|
|
29
|
+
y as default
|
|
20
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("react"),i=require("./style.module.scss.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("react"),i=require("./style.module.scss.cjs"),p=require("../../Button/Button.cjs"),o=require("./Icons.cjs"),v=({id:n,icon:u,type:l,header:r,content:d,options:f,optionDirection:m,classNameContainer:x,onClick:c,onCopy:j,onDislike:h,onLike:b,onReply:N})=>e.jsxs("div",{id:n,className:`${i.default.container} ${x}`,children:[e.jsxs("div",{className:i.default["container-card"],children:[s.isValidElement(u)&&e.jsx("div",{className:i.default.icon,children:u}),s.isValidElement(r)&&r,s.isValidElement(d)&&d,e.jsxs("div",{className:m==="column"?i.default["option-column"]:i.default["option-row"],children:[(l==="action"||l==="suggestion")&&f?.map((t,a)=>e.jsxs("button",{id:t.id,className:i.default["button-option"],onClick:()=>{typeof c=="function"&&c(t)},children:[e.jsxs("div",{className:i.default["left-section"],children:[s.isValidElement(t?.iconLeft)&&t.iconLeft,e.jsxs("div",{className:i.default["option-content"],children:[e.jsx("p",{className:l==="action"?i.default["text-action"]:i.default["text-suggestion"],children:t.title}),t?.subtitle&&e.jsx("p",{className:i.default["text-subtitle"],children:t.subtitle})]})]}),s.isValidElement(t?.iconRight)&&e.jsx("div",{className:i.default["right-section"],children:e.jsx("div",{className:i.default["icon-right"],children:t.iconRight})})]},a)),l==="system"&&f?.map((t,a)=>s.createElement(p.default,{...t,variants:t?.variants||"primary-fin-primary-500",size:t?.size||"fin-s",id:t.id,key:a,onClick:()=>{typeof c=="function"&&c(t)}},t.title))]})]}),e.jsxs("div",{className:i.default["container-action"],children:[e.jsx("button",{id:`${n}-like`,className:i.default["button-action"],onClick:b,children:e.jsx(o.LikeIcon,{})}),e.jsx("button",{id:`${n}-dislike`,className:i.default["button-action"],onClick:h,children:e.jsx(o.DislikeIcon,{})}),e.jsx("button",{id:`${n}-copy`,className:i.default["button-action"],onClick:j,children:e.jsx(o.CopyIcon,{})}),e.jsx("button",{id:`${n}-reply`,className:i.default["button-action"],onClick:N,children:e.jsx(o.ReplyIcon,{})})]})]});exports.default=v;
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { isValidElement as c, createElement as
|
|
2
|
+
import { isValidElement as c, createElement as g } from "react";
|
|
3
3
|
import i from "./style.module.scss.mjs";
|
|
4
|
-
import
|
|
5
|
-
import { LikeIcon as
|
|
6
|
-
const
|
|
4
|
+
import k from "../../Button/Button.mjs";
|
|
5
|
+
import { LikeIcon as y, DislikeIcon as x, CopyIcon as $, ReplyIcon as C } from "./Icons.mjs";
|
|
6
|
+
const B = ({
|
|
7
7
|
id: o,
|
|
8
8
|
icon: m,
|
|
9
9
|
type: s,
|
|
10
10
|
header: a,
|
|
11
11
|
content: u,
|
|
12
12
|
options: h,
|
|
13
|
-
optionDirection:
|
|
13
|
+
optionDirection: d,
|
|
14
|
+
classNameContainer: p,
|
|
14
15
|
onClick: l,
|
|
15
|
-
onCopy:
|
|
16
|
-
onDislike:
|
|
17
|
-
onLike:
|
|
18
|
-
onReply:
|
|
19
|
-
}) => /* @__PURE__ */ e("div", { id: o, className: i.container
|
|
16
|
+
onCopy: f,
|
|
17
|
+
onDislike: N,
|
|
18
|
+
onLike: b,
|
|
19
|
+
onReply: v
|
|
20
|
+
}) => /* @__PURE__ */ e("div", { id: o, className: `${i.container} ${p}`, children: [
|
|
20
21
|
/* @__PURE__ */ e("div", { className: i["container-card"], children: [
|
|
21
22
|
c(m) && /* @__PURE__ */ t("div", { className: i.icon, children: m }),
|
|
22
23
|
c(a) && a,
|
|
23
24
|
c(u) && u,
|
|
24
|
-
/* @__PURE__ */ e("div", { className:
|
|
25
|
+
/* @__PURE__ */ e("div", { className: d === "column" ? i["option-column"] : i["option-row"], children: [
|
|
25
26
|
(s === "action" || s === "suggestion") && h?.map((n, r) => /* @__PURE__ */ e(
|
|
26
27
|
"button",
|
|
27
28
|
{
|
|
29
|
+
id: n.id,
|
|
28
30
|
className: i["button-option"],
|
|
29
31
|
onClick: () => {
|
|
30
32
|
typeof l == "function" && l(n);
|
|
@@ -42,8 +44,8 @@ const z = ({
|
|
|
42
44
|
},
|
|
43
45
|
r
|
|
44
46
|
)),
|
|
45
|
-
s === "system" && h?.map((n, r) => /* @__PURE__ */
|
|
46
|
-
|
|
47
|
+
s === "system" && h?.map((n, r) => /* @__PURE__ */ g(
|
|
48
|
+
k,
|
|
47
49
|
{
|
|
48
50
|
...n,
|
|
49
51
|
variants: n?.variants || "primary-fin-primary-500",
|
|
@@ -59,12 +61,12 @@ const z = ({
|
|
|
59
61
|
] })
|
|
60
62
|
] }),
|
|
61
63
|
/* @__PURE__ */ e("div", { className: i["container-action"], children: [
|
|
62
|
-
/* @__PURE__ */ t("button", { id: `${o}-like`, className: i["button-action"], onClick:
|
|
63
|
-
/* @__PURE__ */ t("button", { id: `${o}-dislike`, className: i["button-action"], onClick:
|
|
64
|
-
/* @__PURE__ */ t("button", { id: `${o}-copy`, className: i["button-action"], onClick:
|
|
65
|
-
/* @__PURE__ */ t("button", { id: `${o}-reply`, className: i["button-action"], onClick:
|
|
64
|
+
/* @__PURE__ */ t("button", { id: `${o}-like`, className: i["button-action"], onClick: b, children: /* @__PURE__ */ t(y, {}) }),
|
|
65
|
+
/* @__PURE__ */ t("button", { id: `${o}-dislike`, className: i["button-action"], onClick: N, children: /* @__PURE__ */ t(x, {}) }),
|
|
66
|
+
/* @__PURE__ */ t("button", { id: `${o}-copy`, className: i["button-action"], onClick: f, children: /* @__PURE__ */ t($, {}) }),
|
|
67
|
+
/* @__PURE__ */ t("button", { id: `${o}-reply`, className: i["button-action"], onClick: v, children: /* @__PURE__ */ t(C, {}) })
|
|
66
68
|
] })
|
|
67
69
|
] });
|
|
68
70
|
export {
|
|
69
|
-
|
|
71
|
+
B as default
|
|
70
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),a=require("react"),e=require("./style.module.scss.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),a=require("react"),e=require("./style.module.scss.cjs"),d=require("./Icons.cjs"),u=({id:t,content:i,otherContentTop:n,otherContentBottom:c,classNameContainer:l,onCopy:r})=>s.jsxs("div",{id:t,className:`${e.default.container} ${l} ${e.default["position-end"]}`,children:[s.jsxs("div",{className:e.default["container-card-user"],children:[a.isValidElement(n)&&s.jsx("div",{className:e.default["container-card-user-other-content"],children:n}),a.isValidElement(i)&&i,a.isValidElement(c)&&s.jsx("div",{className:e.default["container-card-user-other-content"],children:c})]}),s.jsx("div",{className:`${e.default["container-action"]} ${e.default["action-end"]}`,children:s.jsx("button",{id:`${t}-copy`,className:e.default["button-action"],onClick:r,children:s.jsx(d.CopyIcon,{})})})]});exports.default=u;
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { isValidElement as c } from "react";
|
|
3
3
|
import e from "./style.module.scss.mjs";
|
|
4
|
-
import { CopyIcon as
|
|
5
|
-
const
|
|
4
|
+
import { CopyIcon as l } from "./Icons.mjs";
|
|
5
|
+
const N = ({
|
|
6
|
+
id: i,
|
|
7
|
+
content: a,
|
|
8
|
+
otherContentTop: n,
|
|
9
|
+
otherContentBottom: s,
|
|
10
|
+
classNameContainer: t,
|
|
11
|
+
onCopy: d
|
|
12
|
+
}) => /* @__PURE__ */ o("div", { id: i, className: `${e.container} ${t} ${e["position-end"]}`, children: [
|
|
6
13
|
/* @__PURE__ */ o("div", { className: e["container-card-user"], children: [
|
|
7
14
|
c(n) && /* @__PURE__ */ r("div", { className: e["container-card-user-other-content"], children: n }),
|
|
8
15
|
c(a) && a,
|
|
9
16
|
c(s) && /* @__PURE__ */ r("div", { className: e["container-card-user-other-content"], children: s })
|
|
10
17
|
] }),
|
|
11
|
-
/* @__PURE__ */ r("div", { className: `${e["container-action"]} ${e["action-end"]}`, children: /* @__PURE__ */ r("button", { id: `${i}-copy`, className: e["button-action"], onClick:
|
|
18
|
+
/* @__PURE__ */ r("div", { className: `${e["container-action"]} ${e["action-end"]}`, children: /* @__PURE__ */ r("button", { id: `${i}-copy`, className: e["button-action"], onClick: d, children: /* @__PURE__ */ r(l, {}) }) })
|
|
12
19
|
] });
|
|
13
20
|
export {
|
|
14
|
-
|
|
21
|
+
N as default
|
|
15
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react"),f=t=>{const a=t.getTime()-Date.now(),u=Math.ceil(a/1e3);return u>0?u:0},m=t=>{const a=s.useMemo(()=>{const e=new Date(t.date);t.adjustTimesTime&&e.setHours(e.getHours()-t.adjustTimesTime);const n=e.getTime()-Date.now();return n>0?n:0},[t.date,t.adjustTimesTime]),u=s.useMemo(()=>new Date(Date.now()+a),[a]),[i,w]=s.useState(u),[r,d]=s.useState(()=>f(i)),[c,o]=s.useState(t.running??!1),[l,g]=s.useState(()=>t?.callbackDone);return s.useEffect(()=>{let e;return c&&r>0&&(e=setInterval(()=>{const n=f(i);d(n),n<=0&&(o(!1),e&&clearInterval(e),typeof l=="function"&&l())},t.intervalMs)),()=>{e&&clearInterval(e)}},[c,i,t.intervalMs,l,r]),{count:r,isRunning:c,startCountdown:()=>{!c&&r>0&&o(!0)},stopCountdown:()=>{o(!1)},resetCountdown:e=>{let n;e instanceof Date?n=e:typeof e=="number"?n=new Date(Date.now()+e*1e3):n=new Date(Date.now()+a),w(n);const D=f(n);D<=0?o(!1):o(!0),d(D)},setCallbackDone:e=>g(()=>e)}};exports.default=m;
|
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import a from "react";
|
|
2
2
|
const f = (t) => {
|
|
3
|
-
const
|
|
4
|
-
return
|
|
5
|
-
},
|
|
6
|
-
const
|
|
3
|
+
const s = t.getTime() - Date.now(), r = Math.ceil(s / 1e3);
|
|
4
|
+
return r > 0 ? r : 0;
|
|
5
|
+
}, S = (t) => {
|
|
6
|
+
const s = a.useMemo(() => {
|
|
7
7
|
const e = new Date(t.date);
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
t.adjustTimesTime && e.setHours(e.getHours() - t.adjustTimesTime);
|
|
9
|
+
const n = e.getTime() - Date.now();
|
|
10
|
+
return n > 0 ? n : 0;
|
|
11
|
+
}, [t.date, t.adjustTimesTime]), r = a.useMemo(() => new Date(Date.now() + s), [s]), [i, w] = a.useState(r), [u, d] = a.useState(() => f(i)), [c, o] = a.useState(t.running ?? !1), [l, m] = a.useState(() => t?.callbackDone);
|
|
10
12
|
return a.useEffect(() => {
|
|
11
13
|
let e;
|
|
12
|
-
return
|
|
13
|
-
const n = f(
|
|
14
|
-
|
|
14
|
+
return c && u > 0 && (e = setInterval(() => {
|
|
15
|
+
const n = f(i);
|
|
16
|
+
d(n), n <= 0 && (o(!1), e && clearInterval(e), typeof l == "function" && l());
|
|
15
17
|
}, t.intervalMs)), () => {
|
|
16
18
|
e && clearInterval(e);
|
|
17
19
|
};
|
|
18
|
-
}, [
|
|
19
|
-
count:
|
|
20
|
-
isRunning:
|
|
20
|
+
}, [c, i, t.intervalMs, l, u]), {
|
|
21
|
+
count: u,
|
|
22
|
+
isRunning: c,
|
|
21
23
|
startCountdown: () => {
|
|
22
|
-
!
|
|
24
|
+
!c && u > 0 && o(!0);
|
|
23
25
|
},
|
|
24
26
|
stopCountdown: () => {
|
|
25
|
-
|
|
27
|
+
o(!1);
|
|
26
28
|
},
|
|
27
29
|
resetCountdown: (e) => {
|
|
28
30
|
let n;
|
|
29
|
-
e instanceof Date ? n = e : typeof e == "number" ? n = new Date(Date.now() + e * 1e3) : n =
|
|
30
|
-
const
|
|
31
|
-
|
|
31
|
+
e instanceof Date ? n = e : typeof e == "number" ? n = new Date(Date.now() + e * 1e3) : n = new Date(Date.now() + s), w(n);
|
|
32
|
+
const D = f(n);
|
|
33
|
+
D <= 0 ? o(!1) : o(!0), d(D);
|
|
32
34
|
},
|
|
33
|
-
setCallbackDone: (e) =>
|
|
35
|
+
setCallbackDone: (e) => m(() => e)
|
|
34
36
|
};
|
|
35
37
|
};
|
|
36
38
|
export {
|
|
37
|
-
|
|
39
|
+
S as default
|
|
38
40
|
};
|
package/dist/package.json.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="2.0.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="2.0.31",o={version:e};exports.default=o;exports.version=e;
|
package/dist/package.json.d.ts
CHANGED
package/dist/package.json.mjs
CHANGED
|
@@ -17,6 +17,16 @@ declare const meta: {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
contentLabel: {
|
|
21
|
+
control: "object";
|
|
22
|
+
description: string;
|
|
23
|
+
table: {
|
|
24
|
+
category: string;
|
|
25
|
+
type: {
|
|
26
|
+
summary: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
20
30
|
startIcon: {
|
|
21
31
|
control: "object";
|
|
22
32
|
description: string;
|
|
@@ -83,6 +93,16 @@ declare const meta: {
|
|
|
83
93
|
};
|
|
84
94
|
};
|
|
85
95
|
};
|
|
96
|
+
classNameLabelContainer: {
|
|
97
|
+
control: "text";
|
|
98
|
+
description: string;
|
|
99
|
+
table: {
|
|
100
|
+
category: string;
|
|
101
|
+
type: {
|
|
102
|
+
summary: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
86
106
|
classNameLabelError: {
|
|
87
107
|
control: "text";
|
|
88
108
|
description: string;
|
|
@@ -11,11 +11,25 @@ export declare const configModal: {
|
|
|
11
11
|
};
|
|
12
12
|
position: {
|
|
13
13
|
center: string;
|
|
14
|
+
'center-top': string;
|
|
15
|
+
'center-bottom': string;
|
|
14
16
|
'right-top': string;
|
|
15
17
|
'right-bottom': string;
|
|
16
18
|
'left-top': string;
|
|
17
19
|
'left-bottom': string;
|
|
18
20
|
};
|
|
21
|
+
borderRadius: {
|
|
22
|
+
'0px': string;
|
|
23
|
+
'2px': string;
|
|
24
|
+
'4px': string;
|
|
25
|
+
'6px': string;
|
|
26
|
+
'8px': string;
|
|
27
|
+
'12px': string;
|
|
28
|
+
'16px': string;
|
|
29
|
+
'24px': string;
|
|
30
|
+
full: string;
|
|
31
|
+
};
|
|
19
32
|
};
|
|
20
33
|
export declare const keysConfigModalSize: string[];
|
|
21
34
|
export declare const keysConfigModalPosition: string[];
|
|
35
|
+
export declare const keysConfigModalBrand: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
2
|
import { IModalDialog } from '../../interfaces/components/Modal';
|
|
3
|
-
declare const ModalDialog: <T extends ElementType = "div">({ as, children, id, idModal, withOverlay, show, size, position, className, classNameContainer, onClose, brand, ...props }: IModalDialog<T>) => import('react').ReactPortal | null;
|
|
3
|
+
declare const ModalDialog: <T extends ElementType = "div">({ as, children, id, idModal, withOverlay, show, size, position, className, classNameContainer, onClose, brand, offset, borderRadius, ...props }: IModalDialog<T>) => import('react').ReactPortal | null;
|
|
4
4
|
export default ModalDialog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: <T extends import('react').ElementType = "div">({ as, children, id, idModal, withOverlay, show, size, position, className, classNameContainer, onClose, brand, ...props }: import('../../interfaces/components/Modal').IModalDialog<T>) => import('react').ReactPortal | null;
|
|
4
|
+
component: <T extends import('react').ElementType = "div">({ as, children, id, idModal, withOverlay, show, size, position, className, classNameContainer, onClose, brand, offset, borderRadius, ...props }: import('../../interfaces/components/Modal').IModalDialog<T>) => import('react').ReactPortal | null;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -56,6 +56,22 @@ declare const meta: {
|
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
brand: {
|
|
60
|
+
control: {
|
|
61
|
+
type: "select";
|
|
62
|
+
};
|
|
63
|
+
options: string[];
|
|
64
|
+
description: string;
|
|
65
|
+
table: {
|
|
66
|
+
category: string;
|
|
67
|
+
type: {
|
|
68
|
+
summary: string;
|
|
69
|
+
};
|
|
70
|
+
defaultValue: {
|
|
71
|
+
summary: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
59
75
|
size: {
|
|
60
76
|
control: {
|
|
61
77
|
type: "select";
|
|
@@ -18,6 +18,22 @@ declare const meta: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
variant: {
|
|
22
|
+
control: {
|
|
23
|
+
type: "select";
|
|
24
|
+
};
|
|
25
|
+
options: string[];
|
|
26
|
+
description: string;
|
|
27
|
+
table: {
|
|
28
|
+
category: string;
|
|
29
|
+
type: {
|
|
30
|
+
summary: string;
|
|
31
|
+
};
|
|
32
|
+
defaultValue: {
|
|
33
|
+
summary: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
21
37
|
className: {
|
|
22
38
|
control: "text";
|
|
23
39
|
description: string;
|
|
@@ -52,6 +52,22 @@ declare const meta: {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
variant: {
|
|
56
|
+
control: {
|
|
57
|
+
type: "select";
|
|
58
|
+
};
|
|
59
|
+
options: string[];
|
|
60
|
+
description: string;
|
|
61
|
+
table: {
|
|
62
|
+
category: string;
|
|
63
|
+
type: {
|
|
64
|
+
summary: string;
|
|
65
|
+
};
|
|
66
|
+
defaultValue: {
|
|
67
|
+
summary: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
55
71
|
label: {
|
|
56
72
|
control: "text";
|
|
57
73
|
description: string;
|
|
@@ -88,6 +88,19 @@ declare const meta: {
|
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
+
idItemAttachment: {
|
|
92
|
+
control: "text";
|
|
93
|
+
description: string;
|
|
94
|
+
table: {
|
|
95
|
+
category: string;
|
|
96
|
+
type: {
|
|
97
|
+
summary: string;
|
|
98
|
+
};
|
|
99
|
+
defaultValue: {
|
|
100
|
+
summary: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
91
104
|
classNameContainer: {
|
|
92
105
|
control: "text";
|
|
93
106
|
description: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IBubbleChat } from '../../../interfaces/components/fin/Chat';
|
|
2
|
-
declare const BubbleChat: ({ id, icon, header, content, onCopy, onDislike, onLike, onReply }: IBubbleChat) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const BubbleChat: ({ id, icon, header, content, classNameContainer, onCopy, onDislike, onLike, onReply, }: IBubbleChat) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BubbleChat;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ id, icon, header, content, classNameContainer, onCopy, onDislike, onLike, onReply, }: import('../..').IBubbleChat) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {
|
|
10
|
+
id: {
|
|
11
|
+
control: "text";
|
|
12
|
+
description: string;
|
|
13
|
+
table: {
|
|
14
|
+
category: string;
|
|
15
|
+
type: {
|
|
16
|
+
summary: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
content: {
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
category: string;
|
|
24
|
+
type: {
|
|
25
|
+
summary: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
header: {
|
|
30
|
+
description: string;
|
|
31
|
+
table: {
|
|
32
|
+
category: string;
|
|
33
|
+
type: {
|
|
34
|
+
summary: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
icon: {
|
|
39
|
+
control: false;
|
|
40
|
+
description: string;
|
|
41
|
+
table: {
|
|
42
|
+
category: string;
|
|
43
|
+
type: {
|
|
44
|
+
summary: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
onCopy: {
|
|
49
|
+
action: string;
|
|
50
|
+
description: string;
|
|
51
|
+
table: {
|
|
52
|
+
category: string;
|
|
53
|
+
type: {
|
|
54
|
+
summary: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
onLike: {
|
|
59
|
+
action: string;
|
|
60
|
+
description: string;
|
|
61
|
+
table: {
|
|
62
|
+
category: string;
|
|
63
|
+
type: {
|
|
64
|
+
summary: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
onDislike: {
|
|
69
|
+
action: string;
|
|
70
|
+
description: string;
|
|
71
|
+
table: {
|
|
72
|
+
category: string;
|
|
73
|
+
type: {
|
|
74
|
+
summary: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
onReply: {
|
|
79
|
+
action: string;
|
|
80
|
+
description: string;
|
|
81
|
+
table: {
|
|
82
|
+
category: string;
|
|
83
|
+
type: {
|
|
84
|
+
summary: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
args: {
|
|
90
|
+
onCopy: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
91
|
+
onLike: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
92
|
+
onDislike: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
93
|
+
onReply: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
94
|
+
};
|
|
95
|
+
render: (args: import('../..').IBubbleChat) => import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
};
|
|
97
|
+
export default meta;
|
|
98
|
+
type Story = StoryObj<typeof meta>;
|
|
99
|
+
export declare const Default: Story;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IBubbleChatOption } from '../../../interfaces/components/fin/Chat';
|
|
2
|
-
declare const BubbleChatOption: ({ id, icon, type, header, content, options, optionDirection, onClick, onCopy, onDislike, onLike, onReply, }: IBubbleChatOption) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const BubbleChatOption: ({ id, icon, type, header, content, options, optionDirection, classNameContainer, onClick, onCopy, onDislike, onLike, onReply, }: IBubbleChatOption) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BubbleChatOption;
|