1mpacto-react-ui 2.0.26 → 2.0.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/assets/_mixins.scss +6 -1
- package/dist/assets/_typography.scss +7 -3
- package/dist/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.config.cjs +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.config.mjs +4 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.mjs +33 -33
- package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -1
- package/dist/components/Breadcrumbs/style.module.scss.mjs +13 -10
- package/dist/components/Button/Button.config.cjs +1 -1
- package/dist/components/Button/Button.config.mjs +10 -2
- package/dist/components/Button/style.module.scss.cjs +1 -1
- package/dist/components/Button/style.module.scss.mjs +64 -60
- package/dist/components/ButtonIcon/ButtonIcon.config.cjs +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.config.mjs +58 -47
- package/dist/components/ButtonIcon/style.module.scss.cjs +1 -1
- package/dist/components/ButtonIcon/style.module.scss.mjs +53 -46
- package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -1
- package/dist/components/Input/InputInnerLabel.module.scss.mjs +19 -19
- package/dist/components/Modal/ModalDialog.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.mjs +11 -7
- package/dist/components/Modal/ModalDialog.mjs +24 -23
- package/dist/components/Modal/style.module.scss.cjs +1 -1
- package/dist/components/Modal/style.module.scss.mjs +13 -11
- package/dist/components/Popover/Popover.cjs +1 -1
- package/dist/components/Popover/Popover.config.cjs +1 -0
- package/dist/components/Popover/Popover.config.mjs +10 -0
- package/dist/components/Popover/Popover.mjs +42 -40
- package/dist/components/Popover/style.module.scss.cjs +1 -1
- package/dist/components/Popover/style.module.scss.mjs +7 -4
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.module.scss.mjs +25 -25
- package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/itemSidebar.module.scss.mjs +25 -25
- package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -5
- package/dist/components/Textarea/TextareaFloatingInner.config.cjs +1 -1
- package/dist/components/Textarea/TextareaFloatingInner.config.mjs +6 -2
- package/dist/components/Textarea/TextareaFloatingInner.mjs +38 -36
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.cjs +1 -1
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.mjs +14 -12
- package/dist/config/tailwind/typography.cjs +1 -1
- package/dist/config/tailwind/typography.mjs +11 -3
- 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/Breadcrumbs/Breadcrumbs.config.d.ts +1 -0
- package/dist/src/components/Button/Button.config.d.ts +8 -0
- package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +11 -0
- package/dist/src/components/Modal/ModalDialog.config.d.ts +4 -0
- package/dist/src/components/Modal/ModalDialog.d.ts +1 -1
- package/dist/src/components/Modal/ModalDialog.stories.d.ts +1 -1
- package/dist/src/components/Popover/Popover.config.d.ts +7 -0
- package/dist/src/components/Textarea/TextareaFloatingInner.config.d.ts +5 -0
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
- package/dist/src/interfaces/components/Modal/index.d.ts +5 -0
- package/dist/src/interfaces/components/Popover/index.d.ts +5 -0
- package/dist/src/interfaces/components/Textarea/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),n=require("react"),e=require("./TextareaFloatingInner.module.scss.cjs"),
|
|
2
|
-
${
|
|
3
|
-
${
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),n=require("react"),e=require("./TextareaFloatingInner.module.scss.cjs"),P=require("../../hooks/useMergeRefs.cjs"),k=require("../../hooks/useCombinedResizeObserver.cjs"),v=require("./TextareaFloatingInner.config.cjs"),p=n.forwardRef((l,R)=>{const{isRequired:y,classNameContainer:N,className:T,classNameLabel:I,classNameLabelError:F,name:c,id:f,label:d,error:i,height:j,minHeight:g=94,maxHeight:q=150,style:H,sizeInput:L="medium",translateLabel:S=20,autoTranslateLabel:w=!1,variant:E="laba-white",...u}=l,t=n.useRef(null),M=P.useMergeRefs(t,R),h=n.useRef(null),V={...H??{},maxHeight:q,height:j??g,minHeight:g},[m,x]=n.useState(!1),[Y,b]=n.useState(!1),[_,z]=n.useState(S),$=()=>{["",void 0,null].includes(u.value)||["",void 0,null].includes(t.current?.value)?(b(!1),w&&setTimeout(()=>{const a=t.current?.offsetHeight??0,r=h.current?.offsetHeight??0,O=(a-r)/2;z(O)},100)):b(!0)},B=function(a){x(!0),$(),l.onFocus?.(a)},C=function(a){x(!1),l.onBlur?.(a)},o=function(a){$();const r=a?.target??t.current;r.style.height="0px",r.style.height=r.scrollHeight+"px"};return k.useIsomorphicLayoutEffect(()=>(m&&t.current?t.current.addEventListener("input",o):o(),()=>{t.current?.removeEventListener("input",o)}),[m]),s.jsxs("div",{className:`${e.default.container}
|
|
2
|
+
${v.configTextareaFloatingInner.size[L]}
|
|
3
|
+
${v.configTextareaFloatingInner.variants[E]}
|
|
4
|
+
${N??""}`,children:[s.jsxs("div",{className:`${e.default["container-textarea"]}`,children:[s.jsx("textarea",{id:f??c,className:`${Y?"":e.default["placeholder-shown"]} ${i?e.default.error:""}
|
|
4
5
|
${e.default.textarea}
|
|
5
|
-
${
|
|
6
|
-
${u.disabled?e.default.disabled:""} ${
|
|
6
|
+
${T??""}`,ref:M,style:V,...u,onFocus:B,onBlur:C}),d&&s.jsxs("label",{htmlFor:f??c,ref:h,style:{transform:`translateY(${_}px)`},className:`${e.default.label} ${I??""}`,children:[d," ",y&&s.jsx("span",{className:"iru-text-laba-red-08",children:"*"})]})]}),i&&s.jsx("label",{className:`${e.default["label-error"]}
|
|
7
|
+
${u.disabled?e.default.disabled:""} ${F??""}`,children:i})]})});p.displayName="TextareaFloatingInner";exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextareaFloatingInner.module.scss.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextareaFloatingInner.module.scss.cjs"),a={size:{medium:e.default["size-medium"]},variants:{"laba-white":e.default["laba-white"],"fin-blue-gray-50":e.default["fin-blue-gray-50"]}};exports.configTextareaFloatingInner=a;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import e from "./TextareaFloatingInner.module.scss.mjs";
|
|
2
|
-
const
|
|
2
|
+
const a = {
|
|
3
3
|
size: {
|
|
4
4
|
medium: e["size-medium"]
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
"laba-white": e["laba-white"],
|
|
8
|
+
"fin-blue-gray-50": e["fin-blue-gray-50"]
|
|
5
9
|
}
|
|
6
10
|
};
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
a as configTextareaFloatingInner
|
|
9
13
|
};
|
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
import { jsxs as c, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
3
|
import e from "./TextareaFloatingInner.module.scss.mjs";
|
|
4
|
-
import { useMergeRefs as
|
|
5
|
-
import { useIsomorphicLayoutEffect as
|
|
6
|
-
import { configTextareaFloatingInner as
|
|
7
|
-
const
|
|
4
|
+
import { useMergeRefs as A } from "../../hooks/useMergeRefs.mjs";
|
|
5
|
+
import { useIsomorphicLayoutEffect as D } from "../../hooks/useCombinedResizeObserver.mjs";
|
|
6
|
+
import { configTextareaFloatingInner as y } from "./TextareaFloatingInner.config.mjs";
|
|
7
|
+
const G = s.forwardRef((n, v) => {
|
|
8
8
|
const {
|
|
9
9
|
isRequired: N,
|
|
10
10
|
classNameContainer: R,
|
|
11
|
-
className:
|
|
12
|
-
classNameLabel:
|
|
13
|
-
classNameLabelError:
|
|
11
|
+
className: H,
|
|
12
|
+
classNameLabel: I,
|
|
13
|
+
classNameLabelError: L,
|
|
14
14
|
name: f,
|
|
15
15
|
id: m,
|
|
16
16
|
label: d,
|
|
17
17
|
error: l,
|
|
18
|
-
height:
|
|
18
|
+
height: T,
|
|
19
19
|
minHeight: h = 94,
|
|
20
|
-
maxHeight:
|
|
21
|
-
style:
|
|
22
|
-
sizeInput:
|
|
23
|
-
translateLabel:
|
|
24
|
-
autoTranslateLabel:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
maxHeight: F = 150,
|
|
21
|
+
style: w,
|
|
22
|
+
sizeInput: E = "medium",
|
|
23
|
+
translateLabel: S = 20,
|
|
24
|
+
autoTranslateLabel: V = !1,
|
|
25
|
+
variant: Y = "laba-white",
|
|
26
|
+
...i
|
|
27
|
+
} = n, t = s.useRef(null), j = A(t, v), g = s.useRef(null), z = { ...w ?? {}, maxHeight: F, height: T ?? h, minHeight: h }, [p, x] = s.useState(!1), [B, b] = s.useState(!1), [k, q] = s.useState(S), $ = () => {
|
|
28
|
+
["", void 0, null].includes(i.value) || ["", void 0, null].includes(t.current?.value) ? (b(!1), V && setTimeout(() => {
|
|
29
|
+
const a = t.current?.offsetHeight ?? 0, r = g.current?.offsetHeight ?? 0, P = (a - r) / 2;
|
|
30
|
+
q(P);
|
|
30
31
|
}, 100)) : b(!0);
|
|
31
|
-
},
|
|
32
|
+
}, C = function(a) {
|
|
32
33
|
x(!0), $(), n.onFocus?.(a);
|
|
33
|
-
},
|
|
34
|
+
}, M = function(a) {
|
|
34
35
|
x(!1), n.onBlur?.(a);
|
|
35
|
-
},
|
|
36
|
+
}, o = function(a) {
|
|
36
37
|
$();
|
|
37
38
|
const r = a?.target ?? t.current;
|
|
38
39
|
r.style.height = "0px", r.style.height = r.scrollHeight + "px";
|
|
39
40
|
};
|
|
40
|
-
return
|
|
41
|
-
t.current?.removeEventListener("input",
|
|
41
|
+
return D(() => (p && t.current ? t.current.addEventListener("input", o) : o(), () => {
|
|
42
|
+
t.current?.removeEventListener("input", o);
|
|
42
43
|
}), [p]), /* @__PURE__ */ c(
|
|
43
44
|
"div",
|
|
44
45
|
{
|
|
45
46
|
className: `${e.container}
|
|
46
|
-
${
|
|
47
|
+
${y.size[E]}
|
|
48
|
+
${y.variants[Y]}
|
|
47
49
|
${R ?? ""}`,
|
|
48
50
|
children: [
|
|
49
51
|
/* @__PURE__ */ c("div", { className: `${e["container-textarea"]}`, children: [
|
|
@@ -51,14 +53,14 @@ const D = s.forwardRef((n, y) => {
|
|
|
51
53
|
"textarea",
|
|
52
54
|
{
|
|
53
55
|
id: m ?? f,
|
|
54
|
-
className: `${
|
|
56
|
+
className: `${B ? "" : e["placeholder-shown"]} ${l ? e.error : ""}
|
|
55
57
|
${e.textarea}
|
|
56
|
-
${
|
|
57
|
-
ref:
|
|
58
|
-
style:
|
|
59
|
-
...
|
|
60
|
-
onFocus:
|
|
61
|
-
onBlur:
|
|
58
|
+
${H ?? ""}`,
|
|
59
|
+
ref: j,
|
|
60
|
+
style: z,
|
|
61
|
+
...i,
|
|
62
|
+
onFocus: C,
|
|
63
|
+
onBlur: M
|
|
62
64
|
}
|
|
63
65
|
),
|
|
64
66
|
d && /* @__PURE__ */ c(
|
|
@@ -67,9 +69,9 @@ const D = s.forwardRef((n, y) => {
|
|
|
67
69
|
htmlFor: m ?? f,
|
|
68
70
|
ref: g,
|
|
69
71
|
style: {
|
|
70
|
-
transform: `translateY(${
|
|
72
|
+
transform: `translateY(${k}px)`
|
|
71
73
|
},
|
|
72
|
-
className: `${e.label} ${
|
|
74
|
+
className: `${e.label} ${I ?? ""}`,
|
|
73
75
|
children: [
|
|
74
76
|
d,
|
|
75
77
|
" ",
|
|
@@ -82,7 +84,7 @@ const D = s.forwardRef((n, y) => {
|
|
|
82
84
|
"label",
|
|
83
85
|
{
|
|
84
86
|
className: `${e["label-error"]}
|
|
85
|
-
${
|
|
87
|
+
${i.disabled ? e.disabled : ""} ${L ?? ""}`,
|
|
86
88
|
children: l
|
|
87
89
|
}
|
|
88
90
|
)
|
|
@@ -90,7 +92,7 @@ const D = s.forwardRef((n, y) => {
|
|
|
90
92
|
}
|
|
91
93
|
);
|
|
92
94
|
});
|
|
93
|
-
|
|
95
|
+
G.displayName = "TextareaFloatingInner";
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
G as default
|
|
96
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_ml8mj_1",r="_textarea_ml8mj_12",l="_label_ml8mj_58",a="_error_ml8mj_67",t={container:e,"size-medium":"_size-medium_ml8mj_1","container-textarea":"_container-textarea_ml8mj_6",textarea:r,"placeholder-shown":"_placeholder-shown_ml8mj_43",label:l,error:a,"label-error":"_label-error_ml8mj_99","laba-white":"_laba-white_ml8mj_111","fin-blue-gray-50":"_fin-blue-gray-50_ml8mj_147"};exports.container=e;exports.default=t;exports.error=a;exports.label=l;exports.textarea=r;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_container_ml8mj_1", a = "_textarea_ml8mj_12", l = "_label_ml8mj_58", r = "_error_ml8mj_67", _ = {
|
|
2
2
|
container: e,
|
|
3
|
-
"size-medium": "_size-
|
|
4
|
-
"container-textarea": "_container-
|
|
5
|
-
textarea:
|
|
6
|
-
"placeholder-shown": "_placeholder-
|
|
7
|
-
label:
|
|
8
|
-
error:
|
|
9
|
-
"label-error": "_label-
|
|
3
|
+
"size-medium": "_size-medium_ml8mj_1",
|
|
4
|
+
"container-textarea": "_container-textarea_ml8mj_6",
|
|
5
|
+
textarea: a,
|
|
6
|
+
"placeholder-shown": "_placeholder-shown_ml8mj_43",
|
|
7
|
+
label: l,
|
|
8
|
+
error: r,
|
|
9
|
+
"label-error": "_label-error_ml8mj_99",
|
|
10
|
+
"laba-white": "_laba-white_ml8mj_111",
|
|
11
|
+
"fin-blue-gray-50": "_fin-blue-gray-50_ml8mj_147"
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
14
|
e as container,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
_ as default,
|
|
16
|
+
r as error,
|
|
17
|
+
l as label,
|
|
18
|
+
a as textarea
|
|
17
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-label-sb":["15px",{lineHeight:"26px",fontWeight:600}],"payhere-label-b":["15px",{lineHeight:"26px",fontWeight:700}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-smb":["14px",{lineHeight:"22px",fontWeight:600}],"payhere-body-sb":["14px",{lineHeight:"22px",fontWeight:700}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}],"payhere-body-esmb":["12px",{lineHeight:"20px",fontWeight:600}],"payhere-body-esb":["12px",{lineHeight:"20px",fontWeight:700}]},i={"laba-title-lb":["36px",{lineHeight:"44px",fontWeight:700}],"laba-title-ls":["36px",{lineHeight:"44px",fontWeight:600}],"laba-title-lr":["36px",{lineHeight:"44px",fontWeight:400}],"laba-title-mb":["32px",{lineHeight:"40px",fontWeight:700}],"laba-title-ms":["32px",{lineHeight:"40px",fontWeight:600}],"laba-title-mr":["32px",{lineHeight:"40px",fontWeight:400}],"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-b":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-sb":["24px",{lineHeight:"30px",fontWeight:600}],"laba-h1-r":["24px",{lineHeight:"30px",fontWeight:400}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-b":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-sb":["18px",{lineHeight:"26px",fontWeight:600}],"laba-h2-r":["18px",{lineHeight:"26px",fontWeight:400}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},t={"bill-h1":["60px",{lineHeight:"72px",fontWeight:700}],"bill-h2":["48px",{lineHeight:"58px",fontWeight:700}],"bill-h3":["40px",{lineHeight:"48px",fontWeight:700}],"bill-h4":["30px",{lineHeight:"38px",fontWeight:700}],"bill-h5":["28px",{lineHeight:"40px",fontWeight:600}],"bill-h6":["24px",{lineHeight:"30px",fontWeight:600}],"bill-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"bill-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"bill-body-lsm":["18px",{lineHeight:"26px",fontWeight:600}],"bill-body-blb":["18px",{lineHeight:"26px",fontWeight:700}],"bill-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"bill-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"bill-body-msm":["16px",{lineHeight:"24px",fontWeight:600}],"bill-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"bill-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"bill-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"bill-label-sm":["15px",{lineHeight:"26px",fontWeight:600}],"bill-label-b":["15px",{lineHeight:"26px",fontWeight:700}],"bill-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"bill-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"bill-body-ssm":["14px",{lineHeight:"22px",fontWeight:600}],"bill-body-sb":["14px",{lineHeight:"22px",fontWeight:700}],"bill-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"bill-body-ems":["12px",{lineHeight:"20px",fontWeight:500}],"bill-body-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-label-sb":["15px",{lineHeight:"26px",fontWeight:600}],"payhere-label-b":["15px",{lineHeight:"26px",fontWeight:700}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-smb":["14px",{lineHeight:"22px",fontWeight:600}],"payhere-body-sb":["14px",{lineHeight:"22px",fontWeight:700}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}],"payhere-body-esmb":["12px",{lineHeight:"20px",fontWeight:600}],"payhere-body-esb":["12px",{lineHeight:"20px",fontWeight:700}]},i={"laba-title-lb":["36px",{lineHeight:"44px",fontWeight:700}],"laba-title-ls":["36px",{lineHeight:"44px",fontWeight:600}],"laba-title-lr":["36px",{lineHeight:"44px",fontWeight:400}],"laba-title-mb":["32px",{lineHeight:"40px",fontWeight:700}],"laba-title-ms":["32px",{lineHeight:"40px",fontWeight:600}],"laba-title-mr":["32px",{lineHeight:"40px",fontWeight:400}],"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-b":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-sb":["24px",{lineHeight:"30px",fontWeight:600}],"laba-h1-r":["24px",{lineHeight:"30px",fontWeight:400}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-b":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-sb":["18px",{lineHeight:"26px",fontWeight:600}],"laba-h2-r":["18px",{lineHeight:"26px",fontWeight:400}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},t={"bill-h1":["60px",{lineHeight:"72px",fontWeight:700}],"bill-h2":["48px",{lineHeight:"58px",fontWeight:700}],"bill-h3":["40px",{lineHeight:"48px",fontWeight:700}],"bill-h4":["30px",{lineHeight:"38px",fontWeight:700}],"bill-h5":["28px",{lineHeight:"40px",fontWeight:600}],"bill-h6":["24px",{lineHeight:"30px",fontWeight:600}],"bill-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"bill-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"bill-body-lsm":["18px",{lineHeight:"26px",fontWeight:600}],"bill-body-blb":["18px",{lineHeight:"26px",fontWeight:700}],"bill-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"bill-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"bill-body-msm":["16px",{lineHeight:"24px",fontWeight:600}],"bill-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"bill-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"bill-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"bill-label-sm":["15px",{lineHeight:"26px",fontWeight:600}],"bill-label-b":["15px",{lineHeight:"26px",fontWeight:700}],"bill-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"bill-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"bill-body-ssm":["14px",{lineHeight:"22px",fontWeight:600}],"bill-body-sb":["14px",{lineHeight:"22px",fontWeight:700}],"bill-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"bill-body-ems":["12px",{lineHeight:"20px",fontWeight:500}],"bill-body-essb":["12px",{lineHeight:"20px",fontWeight:600}],"bill-body-esb":["12px",{lineHeight:"20px",fontWeight:700}]},h={"fin-h1":["60px",{lineHeight:"72px",fontWeight:700}],"fin-h2":["48px",{lineHeight:"58px",fontWeight:700}],"fin-h3":["40px",{lineHeight:"48px",fontWeight:700}],"fin-h4":["30px",{lineHeight:"38px",fontWeight:700}],"fin-h5":["28px",{lineHeight:"40px",fontWeight:600}],"fin-h6":["24px",{lineHeight:"30px",fontWeight:600}],"fin-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"fin-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"fin-body-lsm":["18px",{lineHeight:"26px",fontWeight:600}],"fin-body-blb":["18px",{lineHeight:"26px",fontWeight:700}],"fin-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"fin-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"fin-body-msm":["16px",{lineHeight:"24px",fontWeight:600}],"fin-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"fin-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"fin-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"fin-label-sm":["15px",{lineHeight:"26px",fontWeight:600}],"fin-label-b":["15px",{lineHeight:"26px",fontWeight:700}],"fin-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"fin-body-sr-lh_24":["14px",{lineHeight:"24px",fontWeight:400}],"fin-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"fin-body-sm-lh_24":["14px",{lineHeight:"24px",fontWeight:500}],"fin-body-ssm":["14px",{lineHeight:"22px",fontWeight:600}],"fin-body-ssm-lh_24":["14px",{lineHeight:"22px",fontWeight:600}],"fin-body-sb":["14px",{lineHeight:"22px",fontWeight:700}],"fin-body-sb-lh_24":["14px",{lineHeight:"24px",fontWeight:700}],"fin-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"fin-body-ems":["12px",{lineHeight:"20px",fontWeight:500}],"fin-body-essb":["12px",{lineHeight:"20px",fontWeight:600}],"fin-body-esb":["12px",{lineHeight:"20px",fontWeight:700}],"fin-tiny-r":["10px",{lineHeight:"20px",fontWeight:400}],"fin-tiny-m":["10px",{lineHeight:"20px",fontWeight:500}],"fin-tiny-sm":["10px",{lineHeight:"20px",fontWeight:600}],"fin-tiny-b":["10px",{lineHeight:"20px",fontWeight:700}]},n={...e,...i,...t,...h};exports.configTypographyBillId=t;exports.configTypographyFinAgent=h;exports.configTypographyLabaBisnis=i;exports.configTypographyPayhere=e;exports.default=n;
|
|
@@ -145,7 +145,7 @@ const e = {
|
|
|
145
145
|
// Body Extra Small Regular
|
|
146
146
|
"bill-body-ems": ["12px", { lineHeight: "20px", fontWeight: 500 }],
|
|
147
147
|
// Body Extra Small Medium
|
|
148
|
-
"bill-body-
|
|
148
|
+
"bill-body-essb": ["12px", { lineHeight: "20px", fontWeight: 600 }],
|
|
149
149
|
// Body Extra Small SemiBold
|
|
150
150
|
"bill-body-esb": ["12px", { lineHeight: "20px", fontWeight: 700 }]
|
|
151
151
|
// Body Extra Small Bold
|
|
@@ -206,10 +206,18 @@ const e = {
|
|
|
206
206
|
// Body Extra Small Regular
|
|
207
207
|
"fin-body-ems": ["12px", { lineHeight: "20px", fontWeight: 500 }],
|
|
208
208
|
// Body Extra Small Medium
|
|
209
|
-
"fin-body-
|
|
209
|
+
"fin-body-essb": ["12px", { lineHeight: "20px", fontWeight: 600 }],
|
|
210
210
|
// Body Extra Small SemiBold
|
|
211
|
-
"fin-body-esb": ["12px", { lineHeight: "20px", fontWeight: 700 }]
|
|
211
|
+
"fin-body-esb": ["12px", { lineHeight: "20px", fontWeight: 700 }],
|
|
212
212
|
// Body Extra Small Bold
|
|
213
|
+
"fin-tiny-r": ["10px", { lineHeight: "20px", fontWeight: 400 }],
|
|
214
|
+
// Label Regular
|
|
215
|
+
"fin-tiny-m": ["10px", { lineHeight: "20px", fontWeight: 500 }],
|
|
216
|
+
// Label Medium
|
|
217
|
+
"fin-tiny-sm": ["10px", { lineHeight: "20px", fontWeight: 600 }],
|
|
218
|
+
// Label SemiBold
|
|
219
|
+
"fin-tiny-b": ["10px", { lineHeight: "20px", fontWeight: 700 }]
|
|
220
|
+
// Label Bold
|
|
213
221
|
}, n = {
|
|
214
222
|
...e,
|
|
215
223
|
...i,
|
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.27",o={version:e};exports.default=o;exports.version=e;
|
package/dist/package.json.d.ts
CHANGED
package/dist/package.json.mjs
CHANGED
|
@@ -13,6 +13,10 @@ export declare const configButton: {
|
|
|
13
13
|
'bill-s': string;
|
|
14
14
|
'bill-xs': string;
|
|
15
15
|
'bill-xxs': string;
|
|
16
|
+
'fin-l': string;
|
|
17
|
+
'fin-m': string;
|
|
18
|
+
'fin-s': string;
|
|
19
|
+
'fin-xs': string;
|
|
16
20
|
};
|
|
17
21
|
loadingSize: {
|
|
18
22
|
large: string;
|
|
@@ -28,6 +32,10 @@ export declare const configButton: {
|
|
|
28
32
|
'bill-s': string;
|
|
29
33
|
'bill-xs': string;
|
|
30
34
|
'bill-xxs': string;
|
|
35
|
+
'fin-l': string;
|
|
36
|
+
'fin-m': string;
|
|
37
|
+
'fin-s': string;
|
|
38
|
+
'fin-xs': string;
|
|
31
39
|
};
|
|
32
40
|
variants: {
|
|
33
41
|
'primary-laba-blue-10': string;
|
|
@@ -13,6 +13,10 @@ export declare const configButton: {
|
|
|
13
13
|
'bill-s': string;
|
|
14
14
|
'bill-xs': string;
|
|
15
15
|
'bill-xxs': string;
|
|
16
|
+
'fin-l': string;
|
|
17
|
+
'fin-m': string;
|
|
18
|
+
'fin-s': string;
|
|
19
|
+
'fin-xs': string;
|
|
16
20
|
};
|
|
17
21
|
loadingSize: {
|
|
18
22
|
large: string;
|
|
@@ -28,6 +32,10 @@ export declare const configButton: {
|
|
|
28
32
|
'bill-s': string;
|
|
29
33
|
'bill-xs': string;
|
|
30
34
|
'bill-xxs': string;
|
|
35
|
+
'fin-l': string;
|
|
36
|
+
'fin-m': string;
|
|
37
|
+
'fin-s': string;
|
|
38
|
+
'fin-xs': string;
|
|
31
39
|
};
|
|
32
40
|
variants: {
|
|
33
41
|
'primary-laba-blue-10': string;
|
|
@@ -60,6 +68,9 @@ export declare const configButton: {
|
|
|
60
68
|
'secondary-bill-secondary-800': string;
|
|
61
69
|
'tertiary-bill-secondary-800': string;
|
|
62
70
|
'primary-bill-red-700': string;
|
|
71
|
+
'primary-fin-primary-500': string;
|
|
72
|
+
'secondary-fin-primary-500': string;
|
|
73
|
+
'tertiary-fin-primary-500': string;
|
|
63
74
|
};
|
|
64
75
|
};
|
|
65
76
|
export declare const keysConfigButtonVariant: 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, className, classNameContainer, onClose, ...props }: IModalDialog<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ModalDialog: <T extends ElementType = "div">({ as, children, id, idModal, withOverlay, show, size, className, classNameContainer, onClose, brand, ...props }: IModalDialog<T>) => import("react/jsx-runtime").JSX.Element;
|
|
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, className, classNameContainer, onClose, ...props }: import('../../interfaces/components/Modal').IModalDialog<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: <T extends import('react').ElementType = "div">({ as, children, id, idModal, withOverlay, show, size, className, classNameContainer, onClose, brand, ...props }: import('../../interfaces/components/Modal').IModalDialog<T>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -2,5 +2,10 @@ export declare const configTextareaFloatingInner: {
|
|
|
2
2
|
size: {
|
|
3
3
|
medium: string;
|
|
4
4
|
};
|
|
5
|
+
variants: {
|
|
6
|
+
'laba-white': string;
|
|
7
|
+
'fin-blue-gray-50': string;
|
|
8
|
+
};
|
|
5
9
|
};
|
|
6
10
|
export declare const keysConfigTextareaFloatingInnerSize: string[];
|
|
11
|
+
export declare const keysConfigTextareaFloatingInnerVariant: string[];
|
|
@@ -21,7 +21,7 @@ export interface IBreadcrumbs<T extends ElementType> extends HTMLAttributes<HTML
|
|
|
21
21
|
* [ID] : Varian gaya breadcrumbs (opsional).
|
|
22
22
|
* [EN] : Breadcrumbs style variant (optional).
|
|
23
23
|
*/
|
|
24
|
-
variants?: 'laba-blue-10' | 'blue-700' | 'bill-secondary-800';
|
|
24
|
+
variants?: 'laba-blue-10' | 'blue-700' | 'bill-secondary-800' | 'fin-blue-gray-500';
|
|
25
25
|
/**
|
|
26
26
|
* [ID] : Daftar URL untuk setiap breadcrumb.
|
|
27
27
|
* [EN] : List of URLs for each breadcrumb.
|
|
@@ -8,7 +8,7 @@ export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba
|
|
|
8
8
|
* [ID] : Tipe ukuran tombol.
|
|
9
9
|
* [EN] : Button size type.
|
|
10
10
|
*/
|
|
11
|
-
export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs' | 'bill-xxs';
|
|
11
|
+
export type TButtonSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs' | 'bill-xxs' | 'fin-l' | 'fin-m' | 'fin-s' | 'fin-xs';
|
|
12
12
|
/**
|
|
13
13
|
* [ID] : Interface untuk komponen Button.
|
|
14
14
|
* [EN] : Interface for Button component.
|
|
@@ -3,12 +3,12 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
* [ID] : Tipe varian tombol ikon.
|
|
4
4
|
* [EN] : Button icon variant types.
|
|
5
5
|
*/
|
|
6
|
-
export type TButtonIconVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700-dsb_laba-grey-06' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'secondary-red-700' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
|
|
6
|
+
export type TButtonIconVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700-dsb_laba-grey-06' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-05' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500' | 'secondary-red-700' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700' | 'primary-fin-primary-500' | 'secondary-fin-primary-500' | 'tertiary-fin-primary-500';
|
|
7
7
|
/**
|
|
8
8
|
* [ID] : Tipe ukuran tombol ikon.
|
|
9
9
|
* [EN] : Button icon size type.
|
|
10
10
|
*/
|
|
11
|
-
export type TButtonIconSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs' | 'bill-xxs';
|
|
11
|
+
export type TButtonIconSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs' | 'bill-xxs' | 'fin-l' | 'fin-m' | 'fin-s' | 'fin-xs';
|
|
12
12
|
/**
|
|
13
13
|
* [ID] : Interface untuk komponen ButtonIcon.
|
|
14
14
|
* [EN] : Interface for ButtonIcon component.
|
|
@@ -50,6 +50,11 @@ export interface IModalDialog<T extends ElementType> {
|
|
|
50
50
|
* [EN] : Show overlay (optional).
|
|
51
51
|
*/
|
|
52
52
|
withOverlay?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* [ID] : Merek (opsional).
|
|
55
|
+
* [EN] : Brand (optional).
|
|
56
|
+
*/
|
|
57
|
+
brand?: 'fin' | '';
|
|
53
58
|
/**
|
|
54
59
|
* [ID] : Handler saat modal ditutup (opsional).
|
|
55
60
|
* [EN] : Handler when modal is closed (optional).
|
|
@@ -90,6 +90,11 @@ export interface IPopover extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
90
90
|
* [EN] : Dismiss properties (optional).
|
|
91
91
|
*/
|
|
92
92
|
useDismissProps?: UseDismissProps;
|
|
93
|
+
/**
|
|
94
|
+
* [ID] : Varian gaya (opsional).
|
|
95
|
+
* [EN] : Style variant (optional).
|
|
96
|
+
*/
|
|
97
|
+
variant?: 'white' | 'blue-gray-50';
|
|
93
98
|
}
|
|
94
99
|
/**
|
|
95
100
|
* [ID] : Interface untuk referensi Popover.
|
|
@@ -135,6 +135,11 @@ export interface ITextareaFloatingInner extends React.InputHTMLAttributes<HTMLTe
|
|
|
135
135
|
* [EN] : Auto translate label (optional).
|
|
136
136
|
*/
|
|
137
137
|
autoTranslateLabel?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* [ID] : Varian gaya (opsional).
|
|
140
|
+
* [EN] : Style variant (optional).
|
|
141
|
+
*/
|
|
142
|
+
variant?: 'laba-white' | 'fin-blue-gray-50';
|
|
138
143
|
}
|
|
139
144
|
/**
|
|
140
145
|
* [ID] : Interface untuk textarea dengan label di dalam.
|