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.
@@ -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: HandleAddComment;
22
- handleEditComment: HandleEditComment;
23
- handleDeleteComment: HandleDeleteComment;
21
+ handleAddComment: any;
22
+ handleEditComment: any;
23
+ handleDeleteComment: any;
24
24
  onCommentsDataChange: (data: any) => void;
25
25
  }
@@ -12,7 +12,7 @@ export interface MobileSkinProps {
12
12
  /**
13
13
  * Portrait or landScape View of the Mobile
14
14
  */
15
- orientation: string;
15
+ orientation: "portrait" | "landscape";
16
16
  /**
17
17
  * type either it will be ios or android
18
18
  */
@@ -26,6 +26,7 @@ export interface TabsProps {
26
26
  component?: JSX.Element;
27
27
  disabled?: boolean;
28
28
  count?: number | string;
29
+ status?: 'success' | 'error' | 'transparent';
29
30
  }[];
30
31
  /**
31
32
  * Defines the styling variant of the tabs.
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: HandleAddComment;
3099
- handleEditComment: HandleEditComment;
3100
- handleDeleteComment: 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
- 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, getSequentialPayload, hasDuplicateFile, saveFileFromBlob, throttle, toast, truncateText, useClickOutside, useFileDropzone, useKeyboardActions, useTheme };
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 };