frst-components 0.22.8 → 0.22.10
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.js +38 -8
- package/dist/src/components/DS/dropdown-Multiselect/styles/multiselectStyles.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/index.d.ts.map +1 -1
- package/dist/src/components/DS/scroll-container-v2/ButtonControl/useLongPress.d.ts.map +1 -1
- package/dist/src/components/DS/select/styles/StylesSelect.d.ts.map +1 -1
- package/dist/src/components/FI/ThreadComments/utilitiesComponents/commentaryBoxReply/index.d.ts.map +1 -1
- package/dist/src/components/FI/ThreadComments/utilitiesComponents/inputReply/index.d.ts.map +1 -1
- package/dist/src/components/FI/ThreadComments/utilitiesComponents/inputReply/inputReply.styles.d.ts.map +1 -1
- package/dist/src/components/IJ/learningCycleCard/components/menu/index.d.ts.map +1 -1
- package/dist/src/components/IJ/learningCycleCard/components/menu/menuStyle.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/errorIcon.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/successIcon.d.ts.map +1 -1
- package/dist/src/components/cardLT/MessageBox/icons/warningIcon.d.ts.map +1 -1
- package/dist/src/components/global-menu/components/customMenu/index.d.ts.map +1 -1
- package/dist/src/components/input-comment/index.d.ts.map +1 -1
- package/dist/src/components/input-comment/mentionsStyle.d.ts.map +1 -1
- package/dist/src/components/input-comment/useInputHook.d.ts +0 -1
- package/dist/src/components/input-comment/useInputHook.d.ts.map +1 -1
- package/dist/src/components/modal/modalBase/index.d.ts +17 -0
- package/dist/src/components/modal/modalBase/index.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3564,6 +3564,7 @@ const useInputHook = ({ limit, placeholder, onSendMentions, onContentFormat, onC
|
|
|
3564
3564
|
const clearDivContent = () => {
|
|
3565
3565
|
if (!divInputRef.current)
|
|
3566
3566
|
return;
|
|
3567
|
+
console.log('focus is', focus);
|
|
3567
3568
|
if ((divInputRef.current.childNodes.length === 0 && !focus)) {
|
|
3568
3569
|
// create a textnode with the placeholder
|
|
3569
3570
|
divInputRef.current.innerText = placeholder;
|
|
@@ -3627,22 +3628,51 @@ const useInputHook = ({ limit, placeholder, onSendMentions, onContentFormat, onC
|
|
|
3627
3628
|
React.useEffect(() => {
|
|
3628
3629
|
if (!divInputRef.current)
|
|
3629
3630
|
return;
|
|
3631
|
+
clearDivContent();
|
|
3632
|
+
}, [focus]);
|
|
3633
|
+
React.useEffect(() => {
|
|
3634
|
+
setStyleLimitExceeded(textLength > limit);
|
|
3635
|
+
}, [textLength]);
|
|
3636
|
+
React.useEffect(() => {
|
|
3637
|
+
if (!divInputRef.current)
|
|
3638
|
+
return;
|
|
3639
|
+
divInputRef.current.addEventListener('mousedown', () => {
|
|
3640
|
+
setFocus(true);
|
|
3641
|
+
});
|
|
3642
|
+
divInputRef.current.addEventListener('focus', () => {
|
|
3643
|
+
setFocus(true);
|
|
3644
|
+
});
|
|
3645
|
+
divInputRef.current.addEventListener('blur', () => {
|
|
3646
|
+
setFocus(false);
|
|
3647
|
+
});
|
|
3630
3648
|
//capture the cursor position on arrow up and down or left and right and check if it´s close to the @ key
|
|
3631
3649
|
divInputRef.current.addEventListener('keyup', (event) => {
|
|
3632
3650
|
if (event.key === 'ArrowUp' || event.key === 'ArrowDown' || event.key === 'ArrowLeft' || event.key === 'ArrowRight' || event.key === 'Enter') {
|
|
3633
3651
|
setShowMention(false);
|
|
3634
3652
|
}
|
|
3635
3653
|
});
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3654
|
+
return () => {
|
|
3655
|
+
divInputRef.current?.removeEventListener('mousedown', () => {
|
|
3656
|
+
setFocus(true);
|
|
3657
|
+
});
|
|
3658
|
+
divInputRef.current?.removeEventListener('focus', () => {
|
|
3659
|
+
setFocus(true);
|
|
3660
|
+
});
|
|
3661
|
+
divInputRef.current?.removeEventListener('blur', () => {
|
|
3662
|
+
setFocus(false);
|
|
3663
|
+
});
|
|
3664
|
+
//capture the cursor position on arrow up and down or left and right and check if it´s close to the @ key
|
|
3665
|
+
divInputRef.current.removeEventListener('keyup', (event) => {
|
|
3666
|
+
if (event.key === 'ArrowUp' || event.key === 'ArrowDown' || event.key === 'ArrowLeft' || event.key === 'ArrowRight' || event.key === 'Enter') {
|
|
3667
|
+
setShowMention(false);
|
|
3668
|
+
}
|
|
3669
|
+
});
|
|
3670
|
+
};
|
|
3671
|
+
}, []);
|
|
3641
3672
|
return {
|
|
3642
3673
|
handleInput,
|
|
3643
3674
|
clearDivContent,
|
|
3644
3675
|
focus,
|
|
3645
|
-
setFocus,
|
|
3646
3676
|
showMention,
|
|
3647
3677
|
setShowMention,
|
|
3648
3678
|
inputSearch,
|
|
@@ -3832,9 +3862,9 @@ const Mentions = (mention) => {
|
|
|
3832
3862
|
};
|
|
3833
3863
|
|
|
3834
3864
|
function InputComment$1({ placeholder, onChange, limit, users, showCharacterCounter, styles, onSendMentions, onContentFormat, onContentUnformat, disabled, className, value, replyMentionedUser, group_uuid, limitMessageExceeded }) {
|
|
3835
|
-
const { handleInput, isPlaceholder, focus,
|
|
3865
|
+
const { handleInput, isPlaceholder, focus, divInputRef, handleMentionUser, mentionTopPosition, setShowMention, showMention, textLength, styleLimitExceeded } = useInputHook({ limit, placeholder, onContentFormat, onContentUnformat, onSendMentions, onChange, value, replyMentionedUser });
|
|
3836
3866
|
const showMentions = showMention && ['b1005836-b0a6-4a50-8147-537ebdc64a75', '413c2f36-9195-4fef-86fe-572c49049007'].includes(group_uuid);
|
|
3837
|
-
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { minHeight: '48px', ...styles }, tabIndex: 0, children: [jsxRuntime.jsxs(InputWrapper$2, { focus: focus, tabIndex: 1, isPlaceholder: isPlaceholder, isInputLimit: styleLimitExceeded, children: [jsxRuntime.jsx(InputText$4, { tabIndex: 2, contentEditable: true, ref: divInputRef,
|
|
3867
|
+
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs("div", { style: { minHeight: '48px', ...styles }, tabIndex: 0, children: [jsxRuntime.jsxs(InputWrapper$2, { focus: focus, tabIndex: 1, isPlaceholder: isPlaceholder, isInputLimit: styleLimitExceeded, children: [jsxRuntime.jsx(InputText$4, { tabIndex: 2, contentEditable: true, ref: divInputRef, onKeyUpCapture: (event) => {
|
|
3838
3868
|
handleInput(event);
|
|
3839
3869
|
}, "data-text": "enter", isPlaceholder: isPlaceholder, suppressContentEditableWarning: true, children: jsxRuntime.jsx("p", { children: jsxRuntime.jsx("br", {}) }) }), showMentions && users && users.length > 0 && jsxRuntime.jsx(Mentions, { users: users, top: mentionTopPosition, onSelect: (user) => {
|
|
3840
3870
|
setShowMention(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiselectStyles.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"multiselectStyles.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/dropdown-Multiselect/styles/multiselectStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,oEAiB3B,CAAA;AAED,eAAO,MAAM,YAAY,oEAgBxB,CAAA;AAED,eAAO,MAAM,YAAY,oEA0CxB,CAAA;AAED,eAAO,MAAM,eAAe,oEAI3B,CAAA;AAED,eAAO,MAAM,UAAU,oEAStB,CAAA;AAED,eAAO,MAAM,SAAS,oEAuBrB,CAAA;AAED,eAAO,MAAM,YAAY,oEAmBxB,CAAA;AAED,eAAO,MAAM,cAAc,oEAc1B,CAAA;AAED,eAAO,MAAM,WAAW,oEASvB,CAAA;AAED,eAAO,MAAM,YAAY,oEAkBxB,CAAA;AAED,eAAO,MAAM,UAAU,oEAMtB,CAAA;AAED,eAAO,MAAM,SAAS,oEAMrB,CAAA;AAED,eAAO,MAAM,eAAe,oEAM3B,CAAA;AAED,eAAO,MAAM,UAAU,oEAItB,CAAA"}
|
package/dist/src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonControlStyles.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"buttonControlStyles.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAGD,eAAO,MAAM,oBAAoB,gFAmChC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/scroll-container-v2/ButtonControl/index.tsx"],"names":[],"mappings":";AAMA,wBAAgB,cAAc,CAAC,EACvB,OAAO,EACP,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,WAAW,EACX,UAAU,EACV,MAAM,EACT;;;;;;;;CAAA,eAuBF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLongPress.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"useLongPress.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/scroll-container-v2/ButtonControl/useLongPress.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,QAAQ,aAAW,EAAE,EAAE,SAAO;;;;;;EAsB1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StylesSelect.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"StylesSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/DS/select/styles/StylesSelect.tsx"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,iBAAiB,6EAa7B,CAAA;AACD,eAAO,MAAM,YAAY,oEASxB,CAAA;AACD,eAAO,MAAM,cAAc,6EA4B1B,CAAA;AACD,eAAO,MAAM,qBAAqB,oEAAkB,CAAA;AAEpD,eAAO,MAAM,YAAY,mEAgBxB,CAAA;AACD,eAAO,MAAM,kBAAkB;UAAyB,OAAO;SAa9D,CAAA;AACD,eAAO,MAAM,cAAc,kEAO1B,CAAA"}
|
package/dist/src/components/FI/ThreadComments/utilitiesComponents/commentaryBoxReply/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FI/ThreadComments/utilitiesComponents/commentaryBoxReply/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,yBAAyB,EAAC,MAAM,4BAA4B,CAAC;AAGrE,eAAO,MAAM,kBAAkB,+JAC5B,yBAAyB,gBAkB3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FI/ThreadComments/utilitiesComponents/inputReply/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,UAAU,oMAapB,WAAW,gBAkGb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputReply.styles.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"inputReply.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/FI/ThreadComments/utilitiesComponents/inputReply/inputReply.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,oEAI1B,CAAA;AAED,eAAO,MAAM,SAAS,oEAGrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/IJ/learningCycleCard/components/menu/index.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE;;;CAAA,eAiFnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menuStyle.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"menuStyle.d.ts","sourceRoot":"","sources":["../../../../../src/components/IJ/learningCycleCard/components/menu/menuStyle.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,oEAuBxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorIcon.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"errorIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/cardLT/MessageBox/icons/errorIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,gBAUhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"successIcon.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"successIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/cardLT/MessageBox/icons/successIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACF,MAAM,CAAC,OAAO,UAAU,WAAW,gBASnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warningIcon.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"warningIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/cardLT/MessageBox/icons/warningIcon.tsx"],"names":[],"mappings":";AAIE;;;GAGG;AACF,MAAM,CAAC,OAAO,UAAU,WAAW,gBAWnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/global-menu/components/customMenu/index.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU,SAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/index.tsx"],"names":[],"mappings":";AACA,OAAO,yBAAyB,CAAA;AAGhC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAOvC,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/index.tsx"],"names":[],"mappings":";AACA,OAAO,yBAAyB,CAAA;AAGhC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAOvC,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,aAAa,eAwD9P"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mentionsStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/mentionsStyle.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;UAAsB,OAAO;SAAO,MAAM;YAAU,MAAM;aAAW,MAAM;
|
|
1
|
+
{"version":3,"file":"mentionsStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/mentionsStyle.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;UAAsB,OAAO;SAAO,MAAM;YAAU,MAAM;aAAW,MAAM;SAkChG,CAAA;AAED,eAAO,MAAM,YAAY,sEAAiB,CAAA;AAE1C,eAAO,MAAM,WAAW,oEAKvB,CAAA;AAED,eAAO,MAAM,WAAW;aAAyB,OAAO;SAkBvD,CAAA;AAGD,eAAO,MAAM,aAAa,oEAIzB,CAAA;AAED,eAAO,MAAM,aAAa,oEAIzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAQhC,CAAA;AAED,eAAO,MAAM,eAAe,qEAI3B,CAAA;AAED,eAAO,MAAM,wBAAwB,oEAOpC,CAAA;AAED,eAAO,MAAM,mBAAmB,qEAM/B,CAAA;AACD,eAAO,MAAM,MAAM,oEAQlB,CAAA;AACD,eAAO,MAAM,WAAW,qEAYvB,CAAA"}
|
|
@@ -14,7 +14,6 @@ export declare const useInputHook: ({ limit, placeholder, onSendMentions, onCont
|
|
|
14
14
|
handleInput: (event: React.KeyboardEvent) => void;
|
|
15
15
|
clearDivContent: () => void;
|
|
16
16
|
focus: boolean;
|
|
17
|
-
setFocus: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
17
|
showMention: boolean;
|
|
19
18
|
setShowMention: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
19
|
inputSearch: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInputHook.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/useInputHook.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,UAAU,UAAU;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC5C,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,CAAC,EAAE,IAAI,CAAA;CAC5B;AAED,eAAO,MAAM,YAAY,oHAAqH,UAAU;yBA2HxH,mBAAmB
|
|
1
|
+
{"version":3,"file":"useInputHook.d.ts","sourceRoot":"","sources":["../../../../src/components/input-comment/useInputHook.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,UAAU,UAAU;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC5C,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kBAAkB,CAAC,EAAE,IAAI,CAAA;CAC5B;AAED,eAAO,MAAM,YAAY,oHAAqH,UAAU;yBA2HxH,mBAAmB;;;;;;;;;8BA/Ed,IAAI;;;;CA6RxC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactChildren } from 'react';
|
|
2
|
+
interface ModalBaseProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
recommendationId?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
timeBegin: number;
|
|
7
|
+
language?: 'pt-BR' | 'pt-PT' | 'en-US' | 'es';
|
|
8
|
+
handleClose?: () => void;
|
|
9
|
+
handleChangeRating?: (recommendationId: string, rating: number) => void;
|
|
10
|
+
showRating?: boolean;
|
|
11
|
+
rating?: number;
|
|
12
|
+
ratingDescription?: string;
|
|
13
|
+
children: ReactChildren;
|
|
14
|
+
}
|
|
15
|
+
export default function ModalBase(props: ModalBaseProps): JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/modal/modalBase/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAuB,MAAM,OAAO,CAAA;AAE1D,UAAU,cAAc;IACtB,IAAI,EAAE,OAAO,CAAA;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAA;IAC7C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,kBAAkB,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACvE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,eA4EtD"}
|