@rufous/ui 0.1.63 → 0.2.0-beta.1
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/README.md +4 -0
- package/dist/Buttons/addButton.js +1 -0
- package/dist/Buttons/cancelButton.js +1 -0
- package/dist/Buttons/index.cjs +2 -2
- package/dist/Buttons/index.js +3 -2
- package/dist/Buttons/stdButton.js +1 -0
- package/dist/Buttons/submitButton.cjs +2 -2
- package/dist/Buttons/submitButton.js +3 -2
- package/dist/CheckBoxes/CheckBox.cjs +2 -2
- package/dist/CheckBoxes/CheckBox.js +4 -25
- package/dist/Contexts/rufousThemeProvider.cjs +132 -100
- package/dist/Contexts/rufousThemeProvider.js +3 -2
- package/dist/DataGrid/DataGrid.cjs +418 -0
- package/dist/DataGrid/DataGrid.d.cts +8 -0
- package/dist/DataGrid/DataGrid.d.ts +8 -0
- package/dist/DataGrid/DataGrid.js +9 -0
- package/dist/DataGrid/index.cjs +418 -0
- package/dist/DataGrid/index.d.cts +3 -0
- package/dist/DataGrid/index.d.ts +3 -0
- package/dist/DataGrid/index.js +8 -0
- package/dist/{TextFields/FloatingInput.d.cjs → DataGrid/types.cjs} +3 -3
- package/dist/DataGrid/types.d.cts +31 -0
- package/dist/DataGrid/types.d.ts +31 -0
- package/dist/Dialogs/BaseDialog.cjs +18 -10
- package/dist/Dialogs/BaseDialog.css +8355 -162
- package/dist/Dialogs/BaseDialog.d.cts +1 -0
- package/dist/Dialogs/BaseDialog.d.ts +1 -0
- package/dist/Dialogs/BaseDialog.js +33 -25
- package/dist/Dialogs/index.cjs +18 -10
- package/dist/Dialogs/index.css +8355 -162
- package/dist/Dialogs/index.js +33 -25
- package/dist/Editors/RichTextEditor.cjs +29477 -0
- package/dist/Editors/RichTextEditor.css +7179 -0
- package/dist/Editors/RichTextEditor.d.cts +57 -0
- package/dist/Editors/RichTextEditor.d.ts +57 -0
- package/dist/Editors/RichTextEditor.js +9 -0
- package/dist/Editors/index.cjs +29477 -0
- package/dist/Editors/index.css +7179 -0
- package/dist/Editors/index.d.cts +2 -0
- package/dist/Editors/index.d.ts +2 -0
- package/dist/Editors/index.js +8 -0
- package/dist/Progress/circularProgress.cjs +2 -2
- package/dist/Progress/circularProgress.d.cts +3 -3
- package/dist/Progress/circularProgress.d.ts +3 -3
- package/dist/Progress/circularProgress.js +2 -1
- package/dist/TextFields/AddressLookup.cjs +390 -0
- package/dist/TextFields/AddressLookup.d.cts +49 -0
- package/dist/TextFields/AddressLookup.d.ts +49 -0
- package/dist/TextFields/AddressLookup.js +11 -0
- package/dist/TextFields/FloatingInput.cjs +6 -4
- package/dist/TextFields/FloatingInput.d.cts +13 -19
- package/dist/TextFields/FloatingInput.d.ts +13 -19
- package/dist/TextFields/FloatingInput.js +4 -28
- package/dist/{chunk-AQXTOTWY.js → chunk-5DAOQ2V5.js} +19 -11
- package/dist/chunk-5QEWUCKT.js +303 -0
- package/dist/chunk-66HHM7VI.js +468 -0
- package/dist/chunk-7KRG7VNW.js +0 -0
- package/dist/{chunk-YRFUVQDN.js → chunk-CTBYVXFP.js} +2 -2
- package/dist/chunk-GJGRMMAQ.js +0 -0
- package/dist/chunk-HMG3FW2Q.js +97 -0
- package/dist/chunk-J6E3UO2W.js +402 -0
- package/dist/chunk-LI4N7JWK.js +39 -0
- package/dist/chunk-NEGQXBQV.js +29 -0
- package/dist/chunk-UPCMMCPQ.js +34 -0
- package/dist/{chunk-7YKG3WYS.js → chunk-YRLN3TBF.js} +1 -1
- package/dist/chunk-YXPBXCY5.js +89 -0
- package/dist/esm-5T53WHPT.js +27362 -0
- package/dist/icons/activateUserIcon.js +1 -0
- package/dist/icons/archivedIcon.js +1 -0
- package/dist/icons/assignGroupIcon.js +1 -0
- package/dist/icons/closeIcon.js +1 -0
- package/dist/icons/copyIcon.js +1 -0
- package/dist/icons/difficultyAllIcon.js +1 -0
- package/dist/icons/difficultyEasyIcon.js +1 -0
- package/dist/icons/difficultyHardIcon.js +1 -0
- package/dist/icons/difficultyMediumIcon.js +1 -0
- package/dist/icons/dollarIcon.js +1 -0
- package/dist/icons/downloadIcon.js +1 -0
- package/dist/icons/downloadPdfIcon.js +1 -0
- package/dist/icons/editChatIcon.js +1 -0
- package/dist/icons/editIcon.js +1 -0
- package/dist/icons/engagementIcon.js +1 -0
- package/dist/icons/functionIcon.js +1 -0
- package/dist/icons/helpOutlinedIcon.js +1 -0
- package/dist/icons/hierarchyIcon.js +1 -0
- package/dist/icons/inactiveGroupIcon.js +1 -0
- package/dist/icons/index.js +48 -47
- package/dist/icons/industryIcon.js +1 -0
- package/dist/icons/invoiceIcon.js +1 -0
- package/dist/icons/locationPinIcon.js +1 -0
- package/dist/icons/logsIcon.js +1 -0
- package/dist/icons/minExperienceIcon.js +1 -0
- package/dist/icons/nineDotMenuIcon.js +1 -0
- package/dist/icons/notificationIcon.js +1 -0
- package/dist/icons/projectIcon.js +1 -0
- package/dist/icons/qualificationsIcon.js +1 -0
- package/dist/icons/questionStatusAllIcon.js +1 -0
- package/dist/icons/questionStatusPrivateIcon.js +1 -0
- package/dist/icons/questionStatusPublicIcon.js +1 -0
- package/dist/icons/questionTypeAllIcon.js +1 -0
- package/dist/icons/questionTypeCodingIcon.js +1 -0
- package/dist/icons/questionTypeDescriptiveIcon.js +1 -0
- package/dist/icons/questionTypeMultipleIcon.js +1 -0
- package/dist/icons/questionTypeSingleIcon.js +1 -0
- package/dist/icons/refreshIcon.js +1 -0
- package/dist/icons/resendInviteIcon.js +1 -0
- package/dist/icons/rolesIcon.js +1 -0
- package/dist/icons/rufousAiIcon.js +1 -0
- package/dist/icons/rufousBirdIcon.js +1 -0
- package/dist/icons/rufousLauncherBird.js +1 -0
- package/dist/icons/sidebarIcon.js +1 -0
- package/dist/icons/softSkillsIcon.js +1 -0
- package/dist/icons/subscribeIcon.js +1 -0
- package/dist/icons/suspendUserIcon.js +1 -0
- package/dist/icons/technicalSkillsIcon.js +1 -0
- package/dist/icons/tickIcon.js +1 -0
- package/dist/icons/timerIcon.js +1 -0
- package/dist/icons/trashIcon.js +1 -0
- package/dist/icons/unArchivedIcon.js +1 -0
- package/dist/icons/unsubscribeIcon.js +1 -0
- package/dist/icons/uploadIcon.js +1 -0
- package/dist/icons/userAssignIcon.js +1 -0
- package/dist/icons/viewIcon.js +1 -0
- package/dist/icons/workItemIcon.js +1 -0
- package/dist/main.cjs +30440 -222
- package/dist/main.css +8355 -162
- package/dist/main.d.cts +7 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.js +82 -56
- package/dist/style.css +1068 -163
- package/dist/styles/address-lookup.css +107 -0
- package/dist/styles/address-lookup.d.cts +2 -0
- package/dist/styles/address-lookup.d.ts +2 -0
- package/dist/styles/button.css +82 -110
- package/dist/styles/checkbox.css +60 -0
- package/dist/styles/checkbox.d.cts +2 -0
- package/dist/styles/checkbox.d.ts +2 -0
- package/dist/styles/datagrid.css +531 -0
- package/dist/styles/datagrid.d.cts +2 -0
- package/dist/styles/datagrid.d.ts +2 -0
- package/dist/styles/dialog.css +78 -51
- package/dist/styles/editor.css +211 -0
- package/dist/styles/editor.d.cts +2 -0
- package/dist/styles/editor.d.ts +2 -0
- package/dist/utils/constants.cjs +75 -69
- package/dist/utils/constants.d.cts +54 -56
- package/dist/utils/constants.d.ts +54 -56
- package/dist/utils/constants.js +2 -1
- package/package.json +13 -2
- package/dist/TextFields/FloatingInput.d.d.cts +0 -23
- package/dist/TextFields/FloatingInput.d.d.ts +0 -23
- package/dist/chunk-2FHTGYR4.js +0 -83
- package/dist/chunk-BCGCLMKA.js +0 -71
- /package/dist/{TextFields/FloatingInput.d.js → DataGrid/types.js} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface MentionItem {
|
|
4
|
+
id: string;
|
|
5
|
+
userId?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
link?: string;
|
|
8
|
+
}
|
|
9
|
+
interface RichTextEditorProps {
|
|
10
|
+
/** Current HTML value */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** Called whenever content changes */
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
/** Called when editor loses focus */
|
|
15
|
+
onBlur?: (value: string) => void;
|
|
16
|
+
/** Called when an error occurs (e.g. image upload failure) */
|
|
17
|
+
onError?: (message: string) => void;
|
|
18
|
+
/** Called when the optional close button is clicked */
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
/** Called after a successful image upload, with the resulting URL */
|
|
21
|
+
onImageUploadSuccess?: (url: string) => void;
|
|
22
|
+
/** Editor height (CSS value) */
|
|
23
|
+
height?: string;
|
|
24
|
+
/** Editor width (CSS value) */
|
|
25
|
+
width?: string;
|
|
26
|
+
/** Placeholder text */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/** Disable editing */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** Allow the user to drag-resize the editor height */
|
|
31
|
+
allowResizeY?: boolean;
|
|
32
|
+
/** Add fullsize toggle to toolbar */
|
|
33
|
+
fullSize?: boolean;
|
|
34
|
+
/** Enable Jodit Pro AI assistant (requires licenseKey) */
|
|
35
|
+
aiSupport?: boolean;
|
|
36
|
+
/** Jodit Pro license key — enables Pro features when provided */
|
|
37
|
+
licenseKey?: string;
|
|
38
|
+
/** Google Translate API key */
|
|
39
|
+
translationKey?: string;
|
|
40
|
+
/** Bearer token for image upload requests */
|
|
41
|
+
token?: string;
|
|
42
|
+
/** API endpoint for image uploads */
|
|
43
|
+
uploadUrl?: string;
|
|
44
|
+
/** @mention data */
|
|
45
|
+
mentions?: {
|
|
46
|
+
arr: MentionItem[];
|
|
47
|
+
};
|
|
48
|
+
/** Validation error message shown below the editor */
|
|
49
|
+
error?: string | null;
|
|
50
|
+
/** Extra CSS class on the root wrapper */
|
|
51
|
+
className?: string;
|
|
52
|
+
/** Extra inline styles on the root wrapper */
|
|
53
|
+
style?: React__default.CSSProperties;
|
|
54
|
+
}
|
|
55
|
+
declare function RichTextEditor({ value, onChange, onBlur, onError, onClose, onImageUploadSuccess, height, width, placeholder, disabled, allowResizeY, fullSize, aiSupport, licenseKey, translationKey, token, uploadUrl, mentions, error, className, style, }: RichTextEditorProps): React__default.JSX.Element;
|
|
56
|
+
|
|
57
|
+
export { type MentionItem, RichTextEditor, type RichTextEditorProps, RichTextEditor as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
interface MentionItem {
|
|
4
|
+
id: string;
|
|
5
|
+
userId?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
link?: string;
|
|
8
|
+
}
|
|
9
|
+
interface RichTextEditorProps {
|
|
10
|
+
/** Current HTML value */
|
|
11
|
+
value?: string;
|
|
12
|
+
/** Called whenever content changes */
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
/** Called when editor loses focus */
|
|
15
|
+
onBlur?: (value: string) => void;
|
|
16
|
+
/** Called when an error occurs (e.g. image upload failure) */
|
|
17
|
+
onError?: (message: string) => void;
|
|
18
|
+
/** Called when the optional close button is clicked */
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
/** Called after a successful image upload, with the resulting URL */
|
|
21
|
+
onImageUploadSuccess?: (url: string) => void;
|
|
22
|
+
/** Editor height (CSS value) */
|
|
23
|
+
height?: string;
|
|
24
|
+
/** Editor width (CSS value) */
|
|
25
|
+
width?: string;
|
|
26
|
+
/** Placeholder text */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/** Disable editing */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** Allow the user to drag-resize the editor height */
|
|
31
|
+
allowResizeY?: boolean;
|
|
32
|
+
/** Add fullsize toggle to toolbar */
|
|
33
|
+
fullSize?: boolean;
|
|
34
|
+
/** Enable Jodit Pro AI assistant (requires licenseKey) */
|
|
35
|
+
aiSupport?: boolean;
|
|
36
|
+
/** Jodit Pro license key — enables Pro features when provided */
|
|
37
|
+
licenseKey?: string;
|
|
38
|
+
/** Google Translate API key */
|
|
39
|
+
translationKey?: string;
|
|
40
|
+
/** Bearer token for image upload requests */
|
|
41
|
+
token?: string;
|
|
42
|
+
/** API endpoint for image uploads */
|
|
43
|
+
uploadUrl?: string;
|
|
44
|
+
/** @mention data */
|
|
45
|
+
mentions?: {
|
|
46
|
+
arr: MentionItem[];
|
|
47
|
+
};
|
|
48
|
+
/** Validation error message shown below the editor */
|
|
49
|
+
error?: string | null;
|
|
50
|
+
/** Extra CSS class on the root wrapper */
|
|
51
|
+
className?: string;
|
|
52
|
+
/** Extra inline styles on the root wrapper */
|
|
53
|
+
style?: React__default.CSSProperties;
|
|
54
|
+
}
|
|
55
|
+
declare function RichTextEditor({ value, onChange, onBlur, onError, onClose, onImageUploadSuccess, height, width, placeholder, disabled, allowResizeY, fullSize, aiSupport, licenseKey, translationKey, token, uploadUrl, mentions, error, className, style, }: RichTextEditorProps): React__default.JSX.Element;
|
|
56
|
+
|
|
57
|
+
export { type MentionItem, RichTextEditor, type RichTextEditorProps, RichTextEditor as default };
|