pixel-react 1.8.9 → 1.9.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/lib/components/Comment/Comments.d.ts +1 -1
- package/lib/components/Comment/type.d.ts +3 -3
- package/lib/components/MobileSkin/types.d.ts +1 -1
- package/lib/components/Tabs/types.d.ts +1 -0
- package/lib/index.d.ts +9 -22
- package/lib/index.esm.js +4510 -905
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4511 -904
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/indexDBStore/indexDB.d.ts +2 -0
- package/package.json +2 -1
- package/src/assets/icons/clear_cache.svg +5 -0
- package/src/components/Comment/Comments.scss +0 -1
- package/src/components/Comment/Comments.stories.tsx +22 -4
- package/src/components/Comment/Comments.tsx +20 -1
- package/src/components/Comment/type.ts +3 -3
- package/src/components/Icon/iconList.ts +2 -0
- package/src/components/MobileSkin/MobileSkin.scss +44 -44
- package/src/components/MobileSkin/MobileSkin.tsx +15 -14
- package/src/components/MobileSkin/types.ts +1 -1
- package/src/components/Tabs/Tabs.scss +19 -0
- package/src/components/Tabs/Tabs.tsx +9 -0
- package/src/components/Tabs/types.ts +1 -0
- package/src/index.ts +3 -0
- package/src/utils/indexDBStore/indexDB.ts +37 -0
@@ -1,4 +1,4 @@
|
|
1
1
|
import './Comments.scss';
|
2
2
|
import { CommentsProps } from './type';
|
3
|
-
declare const Comments: ({ commentsData, onCommentsDataChange, }: CommentsProps) => import("react/jsx-runtime").JSX.Element;
|
3
|
+
declare const Comments: ({ commentsData, handleAddComment, handleEditComment, handleDeleteComment, onCommentsDataChange, }: CommentsProps) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default Comments;
|
@@ -18,8 +18,8 @@ export type HandleDeleteComment = (commentId: string) => void;
|
|
18
18
|
export type HandleNodeFunction = (commentId: string, value: string) => void;
|
19
19
|
export interface CommentsProps {
|
20
20
|
commentsData: any;
|
21
|
-
handleAddComment:
|
22
|
-
handleEditComment:
|
23
|
-
handleDeleteComment:
|
21
|
+
handleAddComment: any;
|
22
|
+
handleEditComment: any;
|
23
|
+
handleDeleteComment: any;
|
24
24
|
onCommentsDataChange: (data: any) => void;
|
25
25
|
}
|
package/lib/index.d.ts
CHANGED
@@ -1744,6 +1744,7 @@ interface TabsProps {
|
|
1744
1744
|
component?: JSX.Element;
|
1745
1745
|
disabled?: boolean;
|
1746
1746
|
count?: number | string;
|
1747
|
+
status?: 'success' | 'error' | 'transparent';
|
1747
1748
|
}[];
|
1748
1749
|
/**
|
1749
1750
|
* Defines the styling variant of the tabs.
|
@@ -3076,32 +3077,15 @@ declare const saveFileFromBlob: (blob: Blob, filename: string) => void;
|
|
3076
3077
|
|
3077
3078
|
declare const capitalize: (text: string) => string;
|
3078
3079
|
|
3079
|
-
interface CommentType {
|
3080
|
-
id?: string | number;
|
3081
|
-
description?: string;
|
3082
|
-
createdBy?: string;
|
3083
|
-
modifiedBy?: string;
|
3084
|
-
createdByUname?: string;
|
3085
|
-
modifiedByUname?: string;
|
3086
|
-
createdOn?: string;
|
3087
|
-
modifiedOn?: string;
|
3088
|
-
name?: string;
|
3089
|
-
emailId?: string[];
|
3090
|
-
commentParentId?: string;
|
3091
|
-
comments: CommentType[];
|
3092
|
-
}
|
3093
|
-
type HandleAddComment = (newComment: CommentType, parentCommentId?: string) => void;
|
3094
|
-
type HandleEditComment = (commentId: string, updatedDescription: string) => void;
|
3095
|
-
type HandleDeleteComment = (commentId: string) => void;
|
3096
3080
|
interface CommentsProps {
|
3097
3081
|
commentsData: any;
|
3098
|
-
handleAddComment:
|
3099
|
-
handleEditComment:
|
3100
|
-
handleDeleteComment:
|
3082
|
+
handleAddComment: any;
|
3083
|
+
handleEditComment: any;
|
3084
|
+
handleDeleteComment: any;
|
3101
3085
|
onCommentsDataChange: (data: any) => void;
|
3102
3086
|
}
|
3103
3087
|
|
3104
|
-
declare const Comments: ({ commentsData, onCommentsDataChange, }: CommentsProps) => react_jsx_runtime.JSX.Element;
|
3088
|
+
declare const Comments: ({ commentsData, handleAddComment, handleEditComment, handleDeleteComment, onCommentsDataChange, }: CommentsProps) => react_jsx_runtime.JSX.Element;
|
3105
3089
|
|
3106
3090
|
declare const useFileDropzone: (options: DropzoneOptions) => DropzoneState;
|
3107
3091
|
|
@@ -3342,4 +3326,7 @@ declare const ELEMENTS_TRAILING_SPACE_REGEX: RegExp;
|
|
3342
3326
|
declare const ELEMENTS_WHITE_SPACE_REGEX: RegExp;
|
3343
3327
|
declare const PARAMETER_ALPHANUMERIC_REGEX: RegExp;
|
3344
3328
|
|
3345
|
-
|
3329
|
+
declare const saveToIndexedDB: (key: string, value: string) => Promise<void>;
|
3330
|
+
declare const getFromIndexedDB: (key: string) => Promise<string | null>;
|
3331
|
+
|
3332
|
+
export { AADHAAR_REGEX, ALPHABET_ONLY_REGEX, ALPHANUMERIC_REGEX, ALPHANUMERIC_WITH_ROUND_BRACES_REGEX, Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BASE64_REGEX, BINARY_NUMBER_REGEX, BarChart, Button, CREDIT_CARD_REGEX, CURRENCY_GENERIC_REGEX, Checkbox, Chip, ChooseFile, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, CreateVariableSlider, DATE_REGEX, DECIMAL_NUMBER_REGEX, DRIVING_LICENSE_REGEX, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, ELEMENTS_TRAILING_SPACE_REGEX, ELEMENTS_WHITE_SPACE_REGEX, EMAIL_REGEX, EditTextField, Editor, ExcelFile as Excel, ExpandableMenu, FILE_EXTENSION_REGEX, FILE_NAME_REGEX, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, GSTIN_REGEX, HEXADECIMAL_NUMBER_REGEX, HEX_COLOR_REGEX, HSL_COLOR_REGEX, HTML_ATTRIBUTE_REGEX, HTML_TAG_REGEX, HighlightText, INDIAN_CURRENCY_REGEX, INDIAN_PASSPORT_REGEX, INDIAN_PHONE_REGEX, INDIAN_PIN_CODE_REGEX, INTERNATIONAL_PHONE_REGEX, IPV4_REGEX, IPV6_REGEX, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, LINKEDIN_PROFILE_REGEX, LabelEditTextField, LineChart, MAC_ADDRESS_REGEX, MEMORY_VALIDATION_REGEX, MachineInputField, MenuOption, MiniModal, MobileSkin, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, NLP_DESCRIPTION_REGEX, NUMBERS_ONLY_REGEX, NUMBER_REGEX, PAN_CARD_REGEX, PARAMETER_ALPHANUMERIC_REGEX, PASSWORD_COMPLEX_REGEX, PASSWORD_SIMPLE_REGEX, PHONE_REGEX, POSTAL_CODE_REGEX, Paper, PhoneInputField, PieChart, PopUpModal, ProgressBar, RGB_COLOR_REGEX, ROMAN_NUMERALS_REGEX, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, SSN_REGEX, STEP_GROUP_NAME_REGEX, ScriptSwitchButton, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, StatusCard, TIME_REGEX, TWITTER_HANDLE_REGEX, Table, _default as TableTree, TableWithAccordion, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, Typography, UNIT_REGEX, URL_REGEX, USERNAME_REGEX, USERNAME_SPECIAL_REGEX, US_ZIP_CODE_REGEX, UUID_REGEX, VEHICLE_REGISTRATION_REGEX, VariableDropdown, VariableInput, WHITESPACE_REGEX, capitalize, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getFromIndexedDB, getSequentialPayload, hasDuplicateFile, saveFileFromBlob, saveToIndexedDB, throttle, toast, truncateText, useClickOutside, useFileDropzone, useKeyboardActions, useTheme };
|