pixel-react 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierrc.js +13 -0
- package/.storybook/main.ts +26 -0
- package/.storybook/preview.ts +26 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/README.md +25 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.scss +0 -0
- package/lib/StyleGuide/ColorPalette/ColorPalette.d.ts +3 -0
- package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +6 -0
- package/lib/StyleGuide/ColorPalette/colorPaletteList.d.ts +3 -0
- package/lib/StyleGuide/ColorPalette/index.d.ts +1 -0
- package/lib/StyleGuide/ColorPalette/types.d.ts +15 -0
- package/lib/StyleGuide/Typography/Typography.d.ts +3 -0
- package/lib/StyleGuide/Typography/Typography.stories.d.ts +6 -0
- package/lib/StyleGuide/Typography/TypographyList.d.ts +5 -0
- package/lib/StyleGuide/Typography/types.d.ts +8 -0
- package/lib/assets/utils/functionUtils.d.ts +1 -0
- package/lib/components/Accordion/Accordion.d.ts +8 -0
- package/lib/components/Accordion/Accordion.stories.d.ts +6 -0
- package/lib/components/Accordion/index.d.ts +1 -0
- package/lib/components/Accordion/types.d.ts +27 -0
- package/lib/components/AddResourceButton/AddButton.d.ts +4 -0
- package/lib/components/AddResourceButton/AddButton.stories.d.ts +8 -0
- package/lib/components/AddResourceButton/ArrowsButton/ArrowsButton.d.ts +6 -0
- package/lib/components/AddResourceButton/index.d.ts +1 -0
- package/lib/components/AddResourceButton/type.d.ts +65 -0
- package/lib/components/Button/Button.d.ts +5 -0
- package/lib/components/Button/Button.stories.d.ts +12 -0
- package/lib/components/Button/index.d.ts +1 -0
- package/lib/components/Button/types.d.ts +61 -0
- package/lib/components/Charts/DonutChart/DonutChart.d.ts +5 -0
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
- package/lib/components/Charts/DonutChart/index.d.ts +1 -0
- package/lib/components/Charts/DonutChart/type.d.ts +13 -0
- package/lib/components/Charts/RadialChart/RadialChart.d.ts +5 -0
- package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
- package/lib/components/Charts/RadialChart/index.d.ts +1 -0
- package/lib/components/Charts/RadialChart/types.d.ts +25 -0
- package/lib/components/Checkbox/Checkbox.d.ts +6 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/lib/components/Checkbox/index.d.ts +1 -0
- package/lib/components/Checkbox/types.d.ts +30 -0
- package/lib/components/Chip/Chip.d.ts +4 -0
- package/lib/components/Chip/Chip.stories.d.ts +14 -0
- package/lib/components/Chip/index.d.ts +1 -0
- package/lib/components/Chip/types.d.ts +18 -0
- package/lib/components/Drawer/Drawer.d.ts +4 -0
- package/lib/components/Drawer/Drawer.stories.d.ts +7 -0
- package/lib/components/Drawer/Types.d.ts +85 -0
- package/lib/components/Drawer/index.d.ts +1 -0
- package/lib/components/ExpandableMenu/ExpandableMenu.d.ts +5 -0
- package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
- package/lib/components/ExpandableMenu/index.d.ts +1 -0
- package/lib/components/ExpandableMenu/types.d.ts +34 -0
- package/lib/components/FileDropzone/Dropzone.d.ts +5 -0
- package/lib/components/FileDropzone/FileDropzone.d.ts +4 -0
- package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
- package/lib/components/FileDropzone/FilePreview.d.ts +4 -0
- package/lib/components/FileDropzone/index.d.ts +1 -0
- package/lib/components/FileDropzone/types.d.ts +103 -0
- package/lib/components/Form/Form.d.ts +16 -0
- package/lib/components/Form/Form.stories.d.ts +6 -0
- package/lib/components/Form/index.d.ts +1 -0
- package/lib/components/Form/types.d.ts +1 -0
- package/lib/components/GridLayout/GridLayout.d.ts +6 -0
- package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
- package/lib/components/GridLayout/index.d.ts +2 -0
- package/lib/components/GridLayout/types.d.ts +57 -0
- package/lib/components/HighlightText/HighlightText.d.ts +4 -0
- package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
- package/lib/components/HighlightText/index.d.ts +1 -0
- package/lib/components/HighlightText/types.d.ts +4 -0
- package/lib/components/Icon/Icon.d.ts +4 -0
- package/lib/components/Icon/Icon.stories.d.ts +7 -0
- package/lib/components/Icon/iconList.d.ts +2 -0
- package/lib/components/Icon/index.d.ts +1 -0
- package/lib/components/Icon/types.d.ts +10 -0
- package/lib/components/Input/Input.d.ts +4 -0
- package/lib/components/Input/Input.stories.d.ts +9 -0
- package/lib/components/Input/index.d.ts +1 -0
- package/lib/components/Input/types.d.ts +74 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +4 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +8 -0
- package/lib/components/InputWithDropdown/index.d.ts +1 -0
- package/lib/components/InputWithDropdown/types.d.ts +88 -0
- package/lib/components/LazyLoad/LazyLoad.d.ts +2 -0
- package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
- package/lib/components/LazyLoad/LazyLoading.d.ts +2 -0
- package/lib/components/LazyLoad/index.d.ts +1 -0
- package/lib/components/MenuOption/MenuOption.d.ts +4 -0
- package/lib/components/MenuOption/MenuOption.stories.d.ts +15 -0
- package/lib/components/MenuOption/index.d.ts +1 -0
- package/lib/components/MenuOption/types.d.ts +134 -0
- package/lib/components/MiniModal/MiniModal.d.ts +4 -0
- package/lib/components/MiniModal/MiniModal.stories.d.ts +9 -0
- package/lib/components/MiniModal/index.d.ts +1 -0
- package/lib/components/MiniModal/types.d.ts +89 -0
- package/lib/components/MultiSelect/Dropdown.d.ts +4 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +4 -0
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +9 -0
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +18 -0
- package/lib/components/MultiSelect/dropdownTypes.d.ts +15 -0
- package/lib/components/MultiSelect/index.d.ts +1 -0
- package/lib/components/RadioButton/RadioButton.d.ts +4 -0
- package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
- package/lib/components/RadioButton/index.d.ts +1 -0
- package/lib/components/RadioButton/radioButtonTypes.d.ts +35 -0
- package/lib/components/RadioGroup/RadioGroup.d.ts +4 -0
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +8 -0
- package/lib/components/RadioGroup/index.d.ts +1 -0
- package/lib/components/RadioGroup/radioGroupTypes.d.ts +47 -0
- package/lib/components/Search/Search.d.ts +4 -0
- package/lib/components/Search/Search.stories.d.ts +6 -0
- package/lib/components/Search/index.d.ts +1 -0
- package/lib/components/Search/types.d.ts +15 -0
- package/lib/components/Select/Select.d.ts +4 -0
- package/lib/components/Select/Select.stories.d.ts +13 -0
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +15 -0
- package/lib/components/Select/index.d.ts +1 -0
- package/lib/components/Select/types.d.ts +68 -0
- package/lib/components/Table/Table.d.ts +4 -0
- package/lib/components/Table/Table.stories.d.ts +11 -0
- package/lib/components/Table/Types.d.ts +98 -0
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/components/TableTree/TableTree.d.ts +21 -0
- package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
- package/lib/components/TableTree/data.d.ts +313 -0
- package/lib/components/TableTree/index.d.ts +1 -0
- package/lib/components/Tabs/Tabs.d.ts +5 -0
- package/lib/components/Tabs/Tabs.stories.d.ts +8 -0
- package/lib/components/Tabs/index.d.ts +1 -0
- package/lib/components/Tabs/types.d.ts +40 -0
- package/lib/components/TextArea/Textarea.d.ts +4 -0
- package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
- package/lib/components/TextArea/Types.d.ts +78 -0
- package/lib/components/TextArea/index.d.ts +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +7 -0
- package/lib/components/ThemeProvider/index.d.ts +1 -0
- package/lib/components/ThemeProvider/types.d.ts +11 -0
- package/lib/components/Toast/Toast.d.ts +5 -0
- package/lib/components/Toast/Toast.stories.d.ts +6 -0
- package/lib/components/Toast/index.d.ts +1 -0
- package/lib/components/Toast/types.d.ts +20 -0
- package/lib/components/Toggle/Toggle.d.ts +5 -0
- package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
- package/lib/components/Toggle/index.d.ts +1 -0
- package/lib/components/Toggle/types.d.ts +50 -0
- package/lib/components/Tooltip/Tooltip.d.ts +5 -0
- package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/types.d.ts +37 -0
- package/lib/components/Typography/Typography.d.ts +5 -0
- package/lib/components/Typography/Typography.stories.d.ts +10 -0
- package/lib/components/Typography/index.d.ts +1 -0
- package/lib/components/Typography/types.d.ts +47 -0
- package/lib/hooks/keyboardevents/useEscKeyEvent.d.ts +2 -0
- package/lib/hooks/useClickOutside.d.ts +2 -0
- package/lib/hooks/useFileDropzone.d.ts +3 -0
- package/lib/hooks/usePortalPosition.d.ts +9 -0
- package/lib/hooks/useTheme.d.ts +3 -0
- package/lib/index.css +404 -0
- package/lib/index.d.ts +1286 -0
- package/lib/index.esm.css +404 -0
- package/lib/index.esm.js +9317 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +9376 -0
- package/lib/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/utils/TableCell/TableCell.d.ts +1 -0
- package/lib/utils/checkEmpty/checkEmpty.d.ts +3 -0
- package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
- package/lib/utils/ffID/ffID.stories.d.ts +6 -0
- package/lib/utils/ffID/ffid.d.ts +2 -0
- package/lib/utils/getExtension/getExtension.d.ts +4 -0
- package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
- package/lib/utils/truncateText/truncateText.d.ts +1 -0
- package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
- package/package.json +62 -0
- package/rollup.config.mjs +57 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.scss +58 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.stories.tsx +16 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +61 -0
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +97 -0
- package/src/StyleGuide/ColorPalette/index.ts +1 -0
- package/src/StyleGuide/ColorPalette/types.ts +17 -0
- package/src/StyleGuide/Typography/Typography.scss +100 -0
- package/src/StyleGuide/Typography/Typography.stories.tsx +16 -0
- package/src/StyleGuide/Typography/Typography.tsx +60 -0
- package/src/StyleGuide/Typography/TypographyList.ts +3 -0
- package/src/StyleGuide/Typography/types.ts +9 -0
- package/src/assets/Themes/BaseTheme.scss +130 -0
- package/src/assets/Themes/DarkTheme.scss +131 -0
- package/src/assets/Themes/Theme.scss +200 -0
- package/src/assets/icons/Arrow.svg +5 -0
- package/src/assets/icons/accordion_header_icon.svg +10 -0
- package/src/assets/icons/arrow_down.svg +3 -0
- package/src/assets/icons/arrow_right.svg +5 -0
- package/src/assets/icons/arrow_up.svg +3 -0
- package/src/assets/icons/arrows_down_icon.svg +3 -0
- package/src/assets/icons/arrows_right_icon.svg +10 -0
- package/src/assets/icons/arrows_top_icon.svg +3 -0
- package/src/assets/icons/check_mark.svg +3 -0
- package/src/assets/icons/close_pill.svg +3 -0
- package/src/assets/icons/delete.svg +17 -0
- package/src/assets/icons/dropzone_icon.svg +18 -0
- package/src/assets/icons/error.svg +17 -0
- package/src/assets/icons/file.svg +12 -0
- package/src/assets/icons/info.svg +17 -0
- package/src/assets/icons/logo.svg +18 -0
- package/src/assets/icons/manage_apps.svg +3 -0
- package/src/assets/icons/moon_stars.svg +10 -0
- package/src/assets/icons/more.svg +11 -0
- package/src/assets/icons/plus_icon.svg +11 -0
- package/src/assets/icons/remove.svg +12 -0
- package/src/assets/icons/replace.svg +12 -0
- package/src/assets/icons/search.svg +3 -0
- package/src/assets/icons/success.svg +13 -0
- package/src/assets/icons/sun_icon.svg +10 -0
- package/src/assets/icons/tick_icon.svg +5 -0
- package/src/assets/icons/toast_close.svg +3 -0
- package/src/assets/icons/warning.svg +17 -0
- package/src/assets/icons/wrong_mark.svg +3 -0
- package/src/assets/styles/_colors.scss +145 -0
- package/src/assets/styles/_fonts.scss +68 -0
- package/src/assets/styles/_mixins.scss +20 -0
- package/src/assets/utils/functionUtils.ts +5 -0
- package/src/components/Accordion/Accordion.scss +45 -0
- package/src/components/Accordion/Accordion.stories.tsx +31 -0
- package/src/components/Accordion/Accordion.tsx +62 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/Accordion/types.ts +28 -0
- package/src/components/AddResourceButton/AddButton.scss +36 -0
- package/src/components/AddResourceButton/AddButton.stories.tsx +126 -0
- package/src/components/AddResourceButton/AddButton.tsx +121 -0
- package/src/components/AddResourceButton/ArrowsButton/ArrowsButton.scss +160 -0
- package/src/components/AddResourceButton/ArrowsButton/ArrowsButton.tsx +38 -0
- package/src/components/AddResourceButton/index.ts +1 -0
- package/src/components/AddResourceButton/type.ts +60 -0
- package/src/components/Button/Button.scss +148 -0
- package/src/components/Button/Button.stories.tsx +74 -0
- package/src/components/Button/Button.tsx +66 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/types.ts +65 -0
- package/src/components/Charts/DonutChart/DonutChart.scss +76 -0
- package/src/components/Charts/DonutChart/DonutChart.stories.tsx +30 -0
- package/src/components/Charts/DonutChart/DonutChart.tsx +241 -0
- package/src/components/Charts/DonutChart/index.ts +1 -0
- package/src/components/Charts/DonutChart/type.ts +23 -0
- package/src/components/Charts/RadialChart/RadialChart.scss +12 -0
- package/src/components/Charts/RadialChart/RadialChart.stories.tsx +36 -0
- package/src/components/Charts/RadialChart/RadialChart.tsx +174 -0
- package/src/components/Charts/RadialChart/index.ts +1 -0
- package/src/components/Charts/RadialChart/types.ts +32 -0
- package/src/components/Checkbox/Checkbox.scss +89 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +47 -0
- package/src/components/Checkbox/Checkbox.tsx +61 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Checkbox/types.ts +30 -0
- package/src/components/Chip/Chip.scss +70 -0
- package/src/components/Chip/Chip.stories.tsx +88 -0
- package/src/components/Chip/Chip.tsx +35 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/Chip/types.ts +19 -0
- package/src/components/Drawer/Drawer.scss +121 -0
- package/src/components/Drawer/Drawer.stories.tsx +88 -0
- package/src/components/Drawer/Drawer.tsx +179 -0
- package/src/components/Drawer/Types.ts +88 -0
- package/src/components/Drawer/index.ts +1 -0
- package/src/components/ExpandableMenu/ExpandableMenu.scss +110 -0
- package/src/components/ExpandableMenu/ExpandableMenu.stories.tsx +67 -0
- package/src/components/ExpandableMenu/ExpandableMenu.tsx +101 -0
- package/src/components/ExpandableMenu/index.ts +1 -0
- package/src/components/ExpandableMenu/types.ts +34 -0
- package/src/components/FileDropzone/Dropzone.tsx +55 -0
- package/src/components/FileDropzone/FileDropzone.scss +134 -0
- package/src/components/FileDropzone/FileDropzone.stories.tsx +83 -0
- package/src/components/FileDropzone/FileDropzone.tsx +98 -0
- package/src/components/FileDropzone/FilePreview.tsx +75 -0
- package/src/components/FileDropzone/index.ts +1 -0
- package/src/components/FileDropzone/types.ts +113 -0
- package/src/components/Form/Form.scss +98 -0
- package/src/components/Form/Form.stories.tsx +177 -0
- package/src/components/Form/Form.tsx +57 -0
- package/src/components/Form/index.ts +1 -0
- package/src/components/Form/types.ts +1 -0
- package/src/components/Form/validation.json +29 -0
- package/src/components/GridLayout/GridLayout.scss +71 -0
- package/src/components/GridLayout/GridLayout.stories.tsx +128 -0
- package/src/components/GridLayout/GridLayout.tsx +30 -0
- package/src/components/GridLayout/GridLayoutStory.scss +25 -0
- package/src/components/GridLayout/index.ts +1 -0
- package/src/components/GridLayout/types.ts +64 -0
- package/src/components/HighlightText/HighlightText.scss +3 -0
- package/src/components/HighlightText/HighlightText.stories.tsx +22 -0
- package/src/components/HighlightText/HighlightText.tsx +33 -0
- package/src/components/HighlightText/index.ts +1 -0
- package/src/components/HighlightText/types.ts +4 -0
- package/src/components/Icon/Icon.stories.tsx +37 -0
- package/src/components/Icon/Icon.tsx +43 -0
- package/src/components/Icon/Icons.scss +34 -0
- package/src/components/Icon/iconList.ts +62 -0
- package/src/components/Icon/index.ts +1 -0
- package/src/components/Icon/types.ts +10 -0
- package/src/components/Input/Input.scss +150 -0
- package/src/components/Input/Input.stories.tsx +96 -0
- package/src/components/Input/Input.tsx +93 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/Input/types.ts +77 -0
- package/src/components/InputWithDropdown/InputWithDropdown.scss +185 -0
- package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +114 -0
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +85 -0
- package/src/components/InputWithDropdown/index.ts +1 -0
- package/src/components/InputWithDropdown/types.ts +110 -0
- package/src/components/LazyLoad/LazyLoad.d.ts +3 -0
- package/src/components/LazyLoad/LazyLoad.stories.tsx +33 -0
- package/src/components/LazyLoad/LazyLoad.ts +2 -0
- package/src/components/LazyLoad/LazyLoading.tsx +19 -0
- package/src/components/LazyLoad/index.ts +1 -0
- package/src/components/MenuOption/MenuOption.scss +69 -0
- package/src/components/MenuOption/MenuOption.stories.tsx +259 -0
- package/src/components/MenuOption/MenuOption.tsx +126 -0
- package/src/components/MenuOption/index.ts +1 -0
- package/src/components/MenuOption/types.ts +161 -0
- package/src/components/MiniModal/MiniModal.scss +139 -0
- package/src/components/MiniModal/MiniModal.stories.tsx +475 -0
- package/src/components/MiniModal/MiniModal.tsx +218 -0
- package/src/components/MiniModal/index.ts +1 -0
- package/src/components/MiniModal/types.ts +88 -0
- package/src/components/MultiSelect/Dropdown.scss +66 -0
- package/src/components/MultiSelect/Dropdown.tsx +77 -0
- package/src/components/MultiSelect/MultiSelect.scss +190 -0
- package/src/components/MultiSelect/MultiSelect.stories.tsx +85 -0
- package/src/components/MultiSelect/MultiSelect.tsx +260 -0
- package/src/components/MultiSelect/MultiSelectTypes.ts +19 -0
- package/src/components/MultiSelect/dropdownTypes.ts +15 -0
- package/src/components/MultiSelect/index.ts +1 -0
- package/src/components/RadioButton/RadioButton.scss +99 -0
- package/src/components/RadioButton/RadioButton.stories.tsx +43 -0
- package/src/components/RadioButton/RadioButton.tsx +32 -0
- package/src/components/RadioButton/index.ts +1 -0
- package/src/components/RadioButton/radioButtonTypes.tsx +40 -0
- package/src/components/RadioGroup/RadioGroup.scss +5 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +81 -0
- package/src/components/RadioGroup/RadioGroup.tsx +30 -0
- package/src/components/RadioGroup/index.ts +1 -0
- package/src/components/RadioGroup/radioGroupTypes.tsx +54 -0
- package/src/components/Search/Search.scss +87 -0
- package/src/components/Search/Search.stories.tsx +26 -0
- package/src/components/Search/Search.tsx +103 -0
- package/src/components/Search/index.ts +1 -0
- package/src/components/Search/types.ts +15 -0
- package/src/components/Select/Select.scss +247 -0
- package/src/components/Select/Select.stories.tsx +156 -0
- package/src/components/Select/Select.tsx +368 -0
- package/src/components/Select/components/Dropdown/Dropdown.scss +70 -0
- package/src/components/Select/components/Dropdown/Dropdown.tsx +89 -0
- package/src/components/Select/components/Dropdown/dropdownTypes.ts +19 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/types.ts +122 -0
- package/src/components/Table/Table.scss +101 -0
- package/src/components/Table/Table.stories.tsx +345 -0
- package/src/components/Table/Table.tsx +128 -0
- package/src/components/Table/Types.ts +100 -0
- package/src/components/Table/index.ts +1 -0
- package/src/components/TableTree/TableTree.scss +142 -0
- package/src/components/TableTree/TableTree.stories.tsx +121 -0
- package/src/components/TableTree/TableTree.tsx +216 -0
- package/src/components/TableTree/TableTreeStories.scss +22 -0
- package/src/components/TableTree/data.ts +573 -0
- package/src/components/TableTree/index.ts +1 -0
- package/src/components/Tabs/Tabs.scss +76 -0
- package/src/components/Tabs/Tabs.stories.tsx +104 -0
- package/src/components/Tabs/Tabs.tsx +64 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tabs/types.ts +38 -0
- package/src/components/TextArea/Textarea.scss +145 -0
- package/src/components/TextArea/Textarea.stories.tsx +92 -0
- package/src/components/TextArea/Textarea.tsx +84 -0
- package/src/components/TextArea/Types.ts +82 -0
- package/src/components/TextArea/index.tsx +1 -0
- package/src/components/ThemeProvider/ThemeProvider.tsx +24 -0
- package/src/components/ThemeProvider/index.ts +1 -0
- package/src/components/ThemeProvider/types.ts +14 -0
- package/src/components/Toast/Toast.scss +121 -0
- package/src/components/Toast/Toast.stories.tsx +180 -0
- package/src/components/Toast/Toast.tsx +116 -0
- package/src/components/Toast/index.ts +1 -0
- package/src/components/Toast/types.ts +27 -0
- package/src/components/Toggle/Toggle.scss +132 -0
- package/src/components/Toggle/Toggle.stories.tsx +132 -0
- package/src/components/Toggle/Toggle.tsx +96 -0
- package/src/components/Toggle/index.ts +1 -0
- package/src/components/Toggle/types.ts +43 -0
- package/src/components/Tooltip/Tooltip.scss +27 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +97 -0
- package/src/components/Tooltip/Tooltip.tsx +194 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/types.ts +60 -0
- package/src/components/Typography/Typography.scss +49 -0
- package/src/components/Typography/Typography.stories.tsx +57 -0
- package/src/components/Typography/Typography.tsx +39 -0
- package/src/components/Typography/index.ts +1 -0
- package/src/components/Typography/types.ts +56 -0
- package/src/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
- package/src/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/src/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Black.ttf +0 -0
- package/src/fonts/Poppins/Poppins-BlackItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Bold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-BoldItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraBoldItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraLight.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ExtraLightItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Italic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Light.ttf +0 -0
- package/src/fonts/Poppins/Poppins-LightItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Medium.ttf +0 -0
- package/src/fonts/Poppins/Poppins-MediumItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Regular.ttf +0 -0
- package/src/fonts/Poppins/Poppins-SemiBold.ttf +0 -0
- package/src/fonts/Poppins/Poppins-SemiBoldItalic.ttf +0 -0
- package/src/fonts/Poppins/Poppins-Thin.ttf +0 -0
- package/src/fonts/Poppins/Poppins-ThinItalic.ttf +0 -0
- package/src/hooks/keyboardevents/useEscKeyEvent.tsx +31 -0
- package/src/hooks/useClickOutside.tsx +30 -0
- package/src/hooks/useFileDropzone.tsx +273 -0
- package/src/hooks/usePortalPosition.tsx +53 -0
- package/src/hooks/useTheme.tsx +13 -0
- package/src/index.ts +91 -0
- package/src/utils/TableCell/TableCell.ts +16 -0
- package/src/utils/checkEmpty/checkEmpty.stories.tsx +34 -0
- package/src/utils/checkEmpty/checkEmpty.ts +10 -0
- package/src/utils/ffID/ffID.stories.tsx +35 -0
- package/src/utils/ffID/ffid.ts +9 -0
- package/src/utils/getExtension/getExtension.stories.tsx +23 -0
- package/src/utils/getExtension/getExtension.ts +28 -0
- package/src/utils/truncateText/truncateText.stories.tsx +37 -0
- package/src/utils/truncateText/truncateText.ts +4 -0
- package/tsconfig.json +55 -0
- package/ui-library.zip +0 -0
- package/vite.config.js +30 -0
package/lib/index.d.ts
ADDED
@@ -0,0 +1,1286 @@
|
|
1
|
+
import * as LazyLoad from 'react-window';
|
2
|
+
export { LazyLoad };
|
3
|
+
import * as React$1 from 'react';
|
4
|
+
import React__default, { ReactNode, RefObject } from 'react';
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
6
|
+
import { FieldValues, UseFormProps, SubmitHandler, FieldPath, FieldErrors } from 'react-hook-form';
|
7
|
+
|
8
|
+
interface ButtonProps$1 {
|
9
|
+
/**
|
10
|
+
* Variant of the button
|
11
|
+
*/
|
12
|
+
variant: 'primary' | 'secondary' | 'tertiary' | 'delete';
|
13
|
+
/**
|
14
|
+
* What background color to use
|
15
|
+
*/
|
16
|
+
backgroundColor?: string;
|
17
|
+
/**
|
18
|
+
* How large should the button be?
|
19
|
+
*/
|
20
|
+
size?: 'small' | 'medium' | 'large';
|
21
|
+
/**
|
22
|
+
* Button contents
|
23
|
+
*/
|
24
|
+
label?: string;
|
25
|
+
/**
|
26
|
+
* Type of the button
|
27
|
+
*/
|
28
|
+
type?: 'button' | 'submit';
|
29
|
+
disabled?: boolean;
|
30
|
+
/**
|
31
|
+
* Optional click handler
|
32
|
+
*/
|
33
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
34
|
+
/**
|
35
|
+
* Button content
|
36
|
+
*/
|
37
|
+
children?: ReactNode;
|
38
|
+
/**
|
39
|
+
* Button id
|
40
|
+
*/
|
41
|
+
id?: string;
|
42
|
+
/**
|
43
|
+
* onSubmit function handler
|
44
|
+
*/
|
45
|
+
onSubmit?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
46
|
+
/**
|
47
|
+
* react ref for the button
|
48
|
+
*/
|
49
|
+
ref?: any;
|
50
|
+
/**
|
51
|
+
* Classname for the button
|
52
|
+
*/
|
53
|
+
className?: string;
|
54
|
+
/**
|
55
|
+
* Additional styles for the button
|
56
|
+
*/
|
57
|
+
style?: React.CSSProperties;
|
58
|
+
/**
|
59
|
+
* Give icon name availble in storybook that to be on left side of button
|
60
|
+
*/
|
61
|
+
iconName?: string;
|
62
|
+
/**
|
63
|
+
* Give icon name availble in storybook that to be on left side of button
|
64
|
+
*/
|
65
|
+
iconPosition?: 'left' | 'right';
|
66
|
+
transparentBackground?: boolean;
|
67
|
+
}
|
68
|
+
|
69
|
+
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps$1, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
70
|
+
|
71
|
+
interface BtnPropsCommon {
|
72
|
+
/**
|
73
|
+
* Label for the button
|
74
|
+
*/
|
75
|
+
label?: string;
|
76
|
+
/**
|
77
|
+
* Boolean value to disable the button
|
78
|
+
*/
|
79
|
+
disabled?: boolean;
|
80
|
+
/**
|
81
|
+
* Onclick function for button
|
82
|
+
*/
|
83
|
+
onClick?: () => void;
|
84
|
+
}
|
85
|
+
interface DrawerProps {
|
86
|
+
/**
|
87
|
+
* To Open the Drawer
|
88
|
+
*/
|
89
|
+
isOpen: boolean;
|
90
|
+
/**
|
91
|
+
* To Expand the Drawer
|
92
|
+
*/
|
93
|
+
_isExpanded?: boolean;
|
94
|
+
/**
|
95
|
+
* To show and hide the back button of the Drawer
|
96
|
+
*/
|
97
|
+
isBackButtonVisible?: boolean;
|
98
|
+
/**
|
99
|
+
* To show and hide the close button of the Drawer
|
100
|
+
*/
|
101
|
+
_isCloseModalButtonVisible?: boolean;
|
102
|
+
/**
|
103
|
+
* Function to close the drawer
|
104
|
+
*/
|
105
|
+
onClose?: () => void;
|
106
|
+
/**
|
107
|
+
* Size of the drawer medium = 550px large = 850px
|
108
|
+
*/
|
109
|
+
size?: 'small' | 'medium' | 'large' | 'x-large';
|
110
|
+
/**
|
111
|
+
* Body Content of the drawer
|
112
|
+
*/
|
113
|
+
children: ReactNode;
|
114
|
+
/**
|
115
|
+
* Header title for the drawer
|
116
|
+
*/
|
117
|
+
title: string | ReactNode;
|
118
|
+
/**
|
119
|
+
* To show the edit button on the header
|
120
|
+
*/
|
121
|
+
showEditButton?: boolean;
|
122
|
+
/**
|
123
|
+
* Primary | Success button props
|
124
|
+
*/
|
125
|
+
primaryButtonProps?: BtnPropsCommon;
|
126
|
+
/**
|
127
|
+
* Secondary | Cancel button props
|
128
|
+
*/
|
129
|
+
secondaryButtonProps?: BtnPropsCommon;
|
130
|
+
/**
|
131
|
+
* Left side Primary Button | Cancel button props
|
132
|
+
*/
|
133
|
+
leftPrimaryButtonProps?: BtnPropsCommon;
|
134
|
+
/**
|
135
|
+
* Left side Secondary | Cancel button props
|
136
|
+
*/
|
137
|
+
leftSecondaryButtonProps?: BtnPropsCommon;
|
138
|
+
/**
|
139
|
+
* Onclick function for edit button
|
140
|
+
*/
|
141
|
+
onEdit?: () => void;
|
142
|
+
/**
|
143
|
+
* Background overlay for the drawer
|
144
|
+
*/
|
145
|
+
overlay?: boolean;
|
146
|
+
/**
|
147
|
+
* displays footer if its true, default true
|
148
|
+
*/
|
149
|
+
isFooterRequired?: boolean;
|
150
|
+
/**
|
151
|
+
* footer Content
|
152
|
+
*/
|
153
|
+
footerContent?: ReactNode;
|
154
|
+
}
|
155
|
+
|
156
|
+
declare const Drawer: ({ isOpen, children, onClose, title, primaryButtonProps, secondaryButtonProps, leftPrimaryButtonProps, leftSecondaryButtonProps, showEditButton, onEdit, overlay, isFooterRequired, footerContent, size, _isExpanded, isBackButtonVisible, _isCloseModalButtonVisible, }: DrawerProps) => React$1.ReactPortal;
|
157
|
+
|
158
|
+
interface IconProps {
|
159
|
+
name: string;
|
160
|
+
className?: string;
|
161
|
+
height?: number;
|
162
|
+
width?: number;
|
163
|
+
color?: string;
|
164
|
+
onClick?: (data?: any) => void;
|
165
|
+
hoverEffect?: boolean;
|
166
|
+
disabled?: boolean;
|
167
|
+
}
|
168
|
+
|
169
|
+
declare const Icon: ({ name, height, width, onClick, color, hoverEffect, className, disabled, ...props }: IconProps) => react_jsx_runtime.JSX.Element | null;
|
170
|
+
|
171
|
+
interface AccordionProps {
|
172
|
+
/**
|
173
|
+
* Accordion Header Title
|
174
|
+
*/
|
175
|
+
headerTitle: string | JSX.Element;
|
176
|
+
/**
|
177
|
+
* Content that to be shown while Accordion is expanded
|
178
|
+
*/
|
179
|
+
accordionContent: ReactNode;
|
180
|
+
/**
|
181
|
+
* Custom color for the Accordion header
|
182
|
+
*/
|
183
|
+
color?: string;
|
184
|
+
/**
|
185
|
+
* Minimum height for the Accordion
|
186
|
+
*/
|
187
|
+
minHeight?: string;
|
188
|
+
/**
|
189
|
+
* Property to disable accordion
|
190
|
+
*/
|
191
|
+
disable?: boolean;
|
192
|
+
/**
|
193
|
+
* Info message to user for disabling accordion
|
194
|
+
*/
|
195
|
+
disableInfoMessage?: string;
|
196
|
+
}
|
197
|
+
|
198
|
+
/**
|
199
|
+
* Accordion UI component
|
200
|
+
*/
|
201
|
+
declare const Accordion: ({ headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
202
|
+
|
203
|
+
interface Option$2 {
|
204
|
+
label?: string;
|
205
|
+
value?: string;
|
206
|
+
accessor?: string;
|
207
|
+
isChecked?: boolean;
|
208
|
+
}
|
209
|
+
interface MultiSelectProps {
|
210
|
+
options: Option$2[];
|
211
|
+
label: string;
|
212
|
+
selectedOptions?: Option$2[];
|
213
|
+
disabled?: boolean;
|
214
|
+
onSearch?: (searchedKeyword: string) => void;
|
215
|
+
onChange?: (selectedOptions: Option$2[]) => void;
|
216
|
+
zIndex?: number;
|
217
|
+
required?: boolean;
|
218
|
+
errorMessage?: string;
|
219
|
+
}
|
220
|
+
|
221
|
+
declare const MultiSelect: ({ options, selectedOptions, onChange, zIndex, label, onSearch, required, disabled, errorMessage, }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
|
222
|
+
|
223
|
+
interface ToasterProps {
|
224
|
+
/**Boolean value to handle state of toaster. */
|
225
|
+
isOpen: boolean;
|
226
|
+
/**Variant for different type of toast message. */
|
227
|
+
variant: 'success' | 'warning' | 'danger' | 'info' | 'confirm';
|
228
|
+
/**Title of the toaster */
|
229
|
+
toastTitle: string;
|
230
|
+
/**Message for the toaster. */
|
231
|
+
toastMessage?: string;
|
232
|
+
/**Function to call upon clicking the close icon or cancel button. */
|
233
|
+
onCancelClick?: () => void;
|
234
|
+
/**Function to call when confirmation the prompt. */
|
235
|
+
onConfirmation?: () => void;
|
236
|
+
/**Duration in ms for which toaster will stay on the screen */
|
237
|
+
displayDuration?: number;
|
238
|
+
/**Confirmation text for variant confirm. */
|
239
|
+
confirmationText?: string;
|
240
|
+
/**z-index value */
|
241
|
+
zIndex?: number;
|
242
|
+
}
|
243
|
+
|
244
|
+
declare const Toaster: React__default.FC<ToasterProps>;
|
245
|
+
|
246
|
+
interface ContainerProps {
|
247
|
+
/**
|
248
|
+
* The content to be displayed inside the container.
|
249
|
+
* Typically consists of rows and columns.
|
250
|
+
*
|
251
|
+
* @type {ReactNode}
|
252
|
+
*/
|
253
|
+
children: ReactNode;
|
254
|
+
/**
|
255
|
+
* Determines if the container should be fluid (expand to 100% width) or fixed width.
|
256
|
+
*
|
257
|
+
* @default false
|
258
|
+
* @type {boolean}
|
259
|
+
*/
|
260
|
+
fluid?: boolean;
|
261
|
+
/**
|
262
|
+
* Defines the gap (spacing) between the rows and columns inside the container.
|
263
|
+
* Accepts any valid CSS size value (e.g., '10px', '1rem', etc.).
|
264
|
+
*
|
265
|
+
* @default '0px'
|
266
|
+
* @type {string}
|
267
|
+
*/
|
268
|
+
gap?: string;
|
269
|
+
}
|
270
|
+
interface RowProps {
|
271
|
+
/**
|
272
|
+
* The content to be displayed inside the row, usually consisting of columns (`<Col />`).
|
273
|
+
*
|
274
|
+
* @type {ReactNode}
|
275
|
+
*/
|
276
|
+
children: ReactNode;
|
277
|
+
/**
|
278
|
+
* The gap (spacing) between columns within the row.
|
279
|
+
* Accepts any valid CSS size value.
|
280
|
+
*
|
281
|
+
* @default '0px'
|
282
|
+
* @type {string}
|
283
|
+
*/
|
284
|
+
gap?: string;
|
285
|
+
}
|
286
|
+
interface ColProps {
|
287
|
+
/**
|
288
|
+
* The content to be displayed inside the column.
|
289
|
+
*
|
290
|
+
* @type {ReactNode}
|
291
|
+
*/
|
292
|
+
children: ReactNode;
|
293
|
+
/**
|
294
|
+
* Defines the width of the column as a fraction of 12 (for a 12-column grid system).
|
295
|
+
* For example, `size={6}` would make the column take up half the width of the row.
|
296
|
+
*
|
297
|
+
* @default 12
|
298
|
+
* @type {number}
|
299
|
+
*/
|
300
|
+
size?: number;
|
301
|
+
}
|
302
|
+
|
303
|
+
declare const Container: React__default.FC<ContainerProps>;
|
304
|
+
declare const Row: React__default.FC<RowProps>;
|
305
|
+
declare const Col: React__default.FC<ColProps>;
|
306
|
+
|
307
|
+
interface ToggleProps {
|
308
|
+
/**
|
309
|
+
* Optional onChange handler
|
310
|
+
*/
|
311
|
+
onChange?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
312
|
+
/**
|
313
|
+
* Optional disabled state
|
314
|
+
*/
|
315
|
+
disabled?: boolean;
|
316
|
+
/**
|
317
|
+
* Optional checked state
|
318
|
+
*/
|
319
|
+
checked?: boolean;
|
320
|
+
/**
|
321
|
+
* Optional id
|
322
|
+
*/
|
323
|
+
id?: string;
|
324
|
+
/**
|
325
|
+
* What background color to occur upon toggled
|
326
|
+
*/
|
327
|
+
variant?: 'primary' | 'secondary';
|
328
|
+
/**
|
329
|
+
* Defines the size of the toggle
|
330
|
+
*/
|
331
|
+
size?: 'small' | 'medium' | 'large';
|
332
|
+
/**
|
333
|
+
* Optional icon configuration for the toggle. This allows for custom icons to be used for both the checked and unchecked states.
|
334
|
+
*
|
335
|
+
* @property checked - Icon configuration for the checked state.
|
336
|
+
* @property unchecked - Icon configuration for the unchecked state.
|
337
|
+
*
|
338
|
+
* @example
|
339
|
+
* {
|
340
|
+
* checked: { name: 'checked-icon', width: 24, height: 24 },
|
341
|
+
* unchecked: { name: 'unchecked-icon', width: 24, height: 24 }
|
342
|
+
* }
|
343
|
+
*/
|
344
|
+
icon?: {
|
345
|
+
checked?: {
|
346
|
+
name: string;
|
347
|
+
width: number;
|
348
|
+
height: number;
|
349
|
+
};
|
350
|
+
unchecked?: {
|
351
|
+
name: string;
|
352
|
+
width: number;
|
353
|
+
height: number;
|
354
|
+
};
|
355
|
+
};
|
356
|
+
}
|
357
|
+
|
358
|
+
declare const Toggle: React__default.FC<ToggleProps>;
|
359
|
+
|
360
|
+
interface ChipsProps {
|
361
|
+
/**
|
362
|
+
* The text to be displayed on the Chip.
|
363
|
+
*/
|
364
|
+
label: string;
|
365
|
+
/**
|
366
|
+
* The text to be displayed on hover.
|
367
|
+
*/
|
368
|
+
fullText?: string;
|
369
|
+
/**
|
370
|
+
* The variant of the Chip.
|
371
|
+
*/
|
372
|
+
variant?: 'primary' | 'success' | 'error' | 'warning' | 'custom';
|
373
|
+
/**
|
374
|
+
* The callback function to be executed when the Chip is clicked.
|
375
|
+
*/
|
376
|
+
onClick?: () => void;
|
377
|
+
}
|
378
|
+
|
379
|
+
declare const Chip: ({ label, fullText, variant, onClick, }: ChipsProps) => react_jsx_runtime.JSX.Element;
|
380
|
+
|
381
|
+
interface TooltipProps {
|
382
|
+
/**
|
383
|
+
* The text or content to be displayed inside the tooltip.
|
384
|
+
* This can be a string or any React node.
|
385
|
+
*/
|
386
|
+
title?: string | React.ReactNode;
|
387
|
+
/**
|
388
|
+
* The children over which the tooltip will be displayed.
|
389
|
+
* Typically a button or any other interactive element.
|
390
|
+
*/
|
391
|
+
children: React.ReactNode;
|
392
|
+
/**
|
393
|
+
* The placement of the tooltip relative to the children.
|
394
|
+
* Defines where the tooltip appears: top, bottom, left, right, etc.
|
395
|
+
*
|
396
|
+
* @default 'bottom'
|
397
|
+
*/
|
398
|
+
placement?: 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
399
|
+
/**
|
400
|
+
* Whether the tooltip is disabled.
|
401
|
+
* If true, the tooltip will not be displayed.
|
402
|
+
*
|
403
|
+
* @default false
|
404
|
+
*/
|
405
|
+
disabled?: boolean;
|
406
|
+
}
|
407
|
+
|
408
|
+
declare const Tooltip: React__default.FC<TooltipProps>;
|
409
|
+
|
410
|
+
interface InputProps {
|
411
|
+
/**
|
412
|
+
* Name | name of the input field
|
413
|
+
*/
|
414
|
+
name: string;
|
415
|
+
/**
|
416
|
+
* Label | field label to be displayed
|
417
|
+
*/
|
418
|
+
label: string;
|
419
|
+
/**
|
420
|
+
* value | input field value
|
421
|
+
*/
|
422
|
+
value: string | number;
|
423
|
+
/**
|
424
|
+
* variants to set color/style of the input field
|
425
|
+
*/
|
426
|
+
variant?: 'default' | 'primary';
|
427
|
+
/**
|
428
|
+
* type to set color/style of the input field
|
429
|
+
*/
|
430
|
+
type: 'text' | 'password' | 'number' | 'email' | 'url' | 'time';
|
431
|
+
/**
|
432
|
+
* error | If true, error message will be displayed
|
433
|
+
*/
|
434
|
+
error?: boolean;
|
435
|
+
/**
|
436
|
+
* helperText | error, success, warning message to be shown
|
437
|
+
*/
|
438
|
+
helperText?: string;
|
439
|
+
/**
|
440
|
+
* to disable the input field
|
441
|
+
*/
|
442
|
+
disabled?: boolean;
|
443
|
+
/**
|
444
|
+
* if true, input field will be mandatory
|
445
|
+
*/
|
446
|
+
required?: boolean;
|
447
|
+
/**
|
448
|
+
* placeholder for the input field
|
449
|
+
*/
|
450
|
+
placeholder?: string;
|
451
|
+
/**
|
452
|
+
* classnames to style the input field
|
453
|
+
*/
|
454
|
+
className?: string;
|
455
|
+
/**
|
456
|
+
* noBorder prop 'true' removes border of input
|
457
|
+
*/
|
458
|
+
noBorder?: boolean;
|
459
|
+
/**
|
460
|
+
* onChange, onKeyDown, onBlur, onFocus actions
|
461
|
+
*/
|
462
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
463
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
464
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
465
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
466
|
+
/**
|
467
|
+
* id to select the input field uniquely
|
468
|
+
*/
|
469
|
+
id?: string;
|
470
|
+
/**
|
471
|
+
* if on, suggestion popup will be displayed
|
472
|
+
*/
|
473
|
+
autoComplete?: 'on' | 'off';
|
474
|
+
/**
|
475
|
+
* minimum and maximum values for the number type input field and their functions
|
476
|
+
*/
|
477
|
+
minValue?: number;
|
478
|
+
maxValue?: number;
|
479
|
+
/**
|
480
|
+
* background of the input field prop
|
481
|
+
*/
|
482
|
+
transparentBackground?: boolean;
|
483
|
+
}
|
484
|
+
|
485
|
+
declare const Input: ({ type, variant, name, label, disabled, required, placeholder, value, helperText, error, noBorder, className, onChange, onBlur, onFocus, autoComplete, minValue, maxValue, transparentBackground, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
486
|
+
|
487
|
+
type Status$1 = {
|
488
|
+
status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'passed' | 'failed' | 'warning' | 'skipped';
|
489
|
+
value: number;
|
490
|
+
};
|
491
|
+
interface RadialChartProps {
|
492
|
+
radius: number;
|
493
|
+
lineWidth: number;
|
494
|
+
statusValues: Status$1[];
|
495
|
+
onClick?: (status: Status$1) => void;
|
496
|
+
fontSize: number;
|
497
|
+
}
|
498
|
+
|
499
|
+
declare const RadialChart: React__default.FC<RadialChartProps>;
|
500
|
+
|
501
|
+
interface ExpandableMenuProps {
|
502
|
+
/**
|
503
|
+
* mandatory | label for the expandable menu
|
504
|
+
*/
|
505
|
+
label: string;
|
506
|
+
/**
|
507
|
+
* optional | Icon to describe direction of expansion
|
508
|
+
*/
|
509
|
+
icon?: React.ReactNode;
|
510
|
+
/**
|
511
|
+
* optional | variant of the menu
|
512
|
+
*/
|
513
|
+
variant?: 'primary';
|
514
|
+
/**
|
515
|
+
* optional | size of the expandable menu
|
516
|
+
*/
|
517
|
+
size?: 'medium';
|
518
|
+
/**
|
519
|
+
* optional | disable to disable the menu and prevent click events but not hover event
|
520
|
+
*/
|
521
|
+
disable?: boolean;
|
522
|
+
/**
|
523
|
+
* Mandatory | sub menus to be shown inside expandable menu
|
524
|
+
*/
|
525
|
+
subMenus: string[];
|
526
|
+
/**
|
527
|
+
* optional | selected sub menu of the expandable menu
|
528
|
+
*/
|
529
|
+
selectedMenu?: string;
|
530
|
+
/**
|
531
|
+
* optional | onSubMenuClick event to perform action on click of sub menu
|
532
|
+
*/
|
533
|
+
onSubMenuClick?: (subChip: any) => void;
|
534
|
+
}
|
535
|
+
|
536
|
+
declare const ExpandableMenu: React.FC<ExpandableMenuProps>;
|
537
|
+
|
538
|
+
interface SelectProps {
|
539
|
+
label?: string;
|
540
|
+
showLabel?: boolean;
|
541
|
+
optionsList: Option$1[];
|
542
|
+
selectedOption?: Option$1;
|
543
|
+
onChange: (option: Option$1) => void;
|
544
|
+
errorMsg?: string;
|
545
|
+
className?: string;
|
546
|
+
optionZIndex?: number;
|
547
|
+
disabled?: boolean;
|
548
|
+
borderRadius?: boolean;
|
549
|
+
showBorder?: boolean;
|
550
|
+
required?: boolean;
|
551
|
+
}
|
552
|
+
interface Option$1 {
|
553
|
+
label: string | ReactNode;
|
554
|
+
value: string;
|
555
|
+
disabled?: boolean;
|
556
|
+
}
|
557
|
+
|
558
|
+
declare const Select: ({ label, showLabel, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, }: SelectProps) => react_jsx_runtime.JSX.Element;
|
559
|
+
|
560
|
+
interface TextareaProps {
|
561
|
+
/**
|
562
|
+
* Name | name of the textarea field
|
563
|
+
*/
|
564
|
+
name: string;
|
565
|
+
/**
|
566
|
+
* Label | field label to be displayed
|
567
|
+
*/
|
568
|
+
label: string;
|
569
|
+
/**
|
570
|
+
* value | textarea field value
|
571
|
+
*/
|
572
|
+
value: string;
|
573
|
+
/**
|
574
|
+
* variants to set color/style of the textarea field
|
575
|
+
*/
|
576
|
+
variant?: 'default' | 'primary';
|
577
|
+
/**
|
578
|
+
* error | If true, error message will be displayed
|
579
|
+
*/
|
580
|
+
error?: boolean;
|
581
|
+
/**
|
582
|
+
* helperText | error, success, warning message to be shown
|
583
|
+
*/
|
584
|
+
helperText?: string;
|
585
|
+
/**
|
586
|
+
* to disable the textarea field
|
587
|
+
*/
|
588
|
+
disabled?: boolean;
|
589
|
+
/**
|
590
|
+
* if true, textarea field will be mandatory
|
591
|
+
*/
|
592
|
+
required?: boolean;
|
593
|
+
/**
|
594
|
+
* placeholder for the textarea field
|
595
|
+
*/
|
596
|
+
placeholder?: string;
|
597
|
+
/**
|
598
|
+
* classnames to style the textarea field
|
599
|
+
*/
|
600
|
+
className?: string;
|
601
|
+
/**
|
602
|
+
* onChange, onKeyDown, onBlur, onFocus actions
|
603
|
+
*/
|
604
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
605
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
606
|
+
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
607
|
+
onFocus?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
608
|
+
/**
|
609
|
+
* id to select the textarea field uniquely
|
610
|
+
*/
|
611
|
+
id?: string;
|
612
|
+
/**
|
613
|
+
* if on, suggestion popup will be displayed
|
614
|
+
*/
|
615
|
+
autoComplete?: 'on' | 'off';
|
616
|
+
/**
|
617
|
+
* background of the textarea field prop
|
618
|
+
*/
|
619
|
+
/**
|
620
|
+
* capacity | Maximum number of characters allowed in the textarea.
|
621
|
+
*/
|
622
|
+
capacity?: number;
|
623
|
+
/**
|
624
|
+
* rows | Number of visible text lines in the textarea.
|
625
|
+
* Used to control the height of the textarea.
|
626
|
+
*/
|
627
|
+
rows?: number;
|
628
|
+
/**
|
629
|
+
* cols | Number of visible character widths in the textarea.
|
630
|
+
* Used to control the width of the textarea.
|
631
|
+
*/
|
632
|
+
cols?: number;
|
633
|
+
/**
|
634
|
+
* for resizing purpose
|
635
|
+
*/
|
636
|
+
resize?: boolean;
|
637
|
+
}
|
638
|
+
|
639
|
+
declare const Textarea: ({ capacity, name, label, value, variant, error, helperText, disabled, required, placeholder, className, onChange, onBlur, onFocus, rows, cols, resize, ...props }: TextareaProps) => react_jsx_runtime.JSX.Element;
|
640
|
+
|
641
|
+
interface OptionClick {
|
642
|
+
/**
|
643
|
+
* The label displayed for the option.
|
644
|
+
* @type {string}
|
645
|
+
* @required
|
646
|
+
*/
|
647
|
+
label: string;
|
648
|
+
/**
|
649
|
+
* The value(s) associated with the option, which can be a single string or an array of strings.
|
650
|
+
* @type {Array<string> | string}
|
651
|
+
* @required
|
652
|
+
*/
|
653
|
+
value: Array<string> | string;
|
654
|
+
}
|
655
|
+
interface OptionType extends OptionClick {
|
656
|
+
/**
|
657
|
+
* The name of the icon associated with the option.
|
658
|
+
* @type {string}
|
659
|
+
* @required
|
660
|
+
*/
|
661
|
+
icon: string;
|
662
|
+
/**
|
663
|
+
* Indicates whether the option is disabled.
|
664
|
+
* @type {boolean}
|
665
|
+
* @optional
|
666
|
+
*/
|
667
|
+
disable?: boolean;
|
668
|
+
}
|
669
|
+
interface MenuOptionProps {
|
670
|
+
/**
|
671
|
+
* The name of the label displayed next to the icon.
|
672
|
+
* @type {string}
|
673
|
+
* @optional
|
674
|
+
*/
|
675
|
+
labelName?: string;
|
676
|
+
/**
|
677
|
+
* The name of the icon to be displayed.
|
678
|
+
* @type {string}
|
679
|
+
* @required
|
680
|
+
*/
|
681
|
+
iconName: string;
|
682
|
+
/**
|
683
|
+
* The list of options available in the dropdown.
|
684
|
+
* @type {Array<OptionType>}
|
685
|
+
* @required
|
686
|
+
*/
|
687
|
+
options: Array<OptionType>;
|
688
|
+
/**
|
689
|
+
* The title displayed in the tooltip when hovering over the icon.
|
690
|
+
* @type {string}
|
691
|
+
* @optional
|
692
|
+
*/
|
693
|
+
tooltipTitle?: string;
|
694
|
+
/**
|
695
|
+
* The placement of the tooltip relative to the icon.
|
696
|
+
* @type {'bottom' | 'left' | 'right' | 'top' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'}
|
697
|
+
* @optional
|
698
|
+
*/
|
699
|
+
tooltipPlacement?: 'bottom' | 'left' | 'right' | 'top' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
700
|
+
/**
|
701
|
+
* The placement of the dropdown menu relative to the icon.
|
702
|
+
* @type {'top' | 'left' | 'right' | 'bottom'}
|
703
|
+
* @optional
|
704
|
+
*/
|
705
|
+
dropdownPlacement?: 'top' | 'left' | 'right' | 'down';
|
706
|
+
/**
|
707
|
+
* Callback function triggered when the icon is clicked.
|
708
|
+
* @type {function}
|
709
|
+
* @optional
|
710
|
+
*/
|
711
|
+
onClick?: () => void;
|
712
|
+
/**
|
713
|
+
* Callback function triggered when an option is clicked.
|
714
|
+
* @param {OptionClick} option - The option that was clicked.
|
715
|
+
* @type {function}
|
716
|
+
* @optional
|
717
|
+
*/
|
718
|
+
onOptionClick?: (option: OptionClick) => void;
|
719
|
+
/**
|
720
|
+
* The size of the icon button.
|
721
|
+
* @type {number}
|
722
|
+
* @default 20
|
723
|
+
*/
|
724
|
+
iconButtonSize?: number;
|
725
|
+
/**
|
726
|
+
* The size of the icon.
|
727
|
+
* @type {number}
|
728
|
+
* @default 16
|
729
|
+
*/
|
730
|
+
iconSize?: number;
|
731
|
+
/**
|
732
|
+
* The border radius of the icon.
|
733
|
+
* @type {number}
|
734
|
+
* @default 7
|
735
|
+
*/
|
736
|
+
iconButtonBorderRadius?: number;
|
737
|
+
}
|
738
|
+
|
739
|
+
declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, dropdownPlacement, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, }: MenuOptionProps) => react_jsx_runtime.JSX.Element;
|
740
|
+
|
741
|
+
interface DataProps {
|
742
|
+
/**
|
743
|
+
* data for each row
|
744
|
+
*/
|
745
|
+
[key: string]: any;
|
746
|
+
}
|
747
|
+
interface SelectedItemProps {
|
748
|
+
/**
|
749
|
+
* selected row object | All selected flag
|
750
|
+
*/
|
751
|
+
[key: string]: string | number | boolean;
|
752
|
+
}
|
753
|
+
interface TableProps {
|
754
|
+
/**
|
755
|
+
* Data for table
|
756
|
+
*/
|
757
|
+
data: Array<number | string | DataProps>;
|
758
|
+
/**
|
759
|
+
* Column details for table
|
760
|
+
*/
|
761
|
+
columns: Array<any>;
|
762
|
+
/**
|
763
|
+
* Header type to have different background color
|
764
|
+
*/
|
765
|
+
headerType: 'default' | 'primary' | 'secondary';
|
766
|
+
/**
|
767
|
+
* withFixedHeader prop to have non-scrollable fixed table header
|
768
|
+
*/
|
769
|
+
withFixedHeader?: boolean;
|
770
|
+
/**
|
771
|
+
* borderWithRadius prop to have table with border 1px and borderRadius 5px
|
772
|
+
*/
|
773
|
+
borderWithRadius?: boolean;
|
774
|
+
/**
|
775
|
+
* Check box feature to select the row
|
776
|
+
*/
|
777
|
+
withCheckbox?: boolean;
|
778
|
+
/**
|
779
|
+
* Event for checkbox onClick
|
780
|
+
*/
|
781
|
+
onSelect?: (e: object, arg: SelectedItemProps) => void;
|
782
|
+
/**
|
783
|
+
* Check box feature to select the row
|
784
|
+
*/
|
785
|
+
allSelected?: boolean;
|
786
|
+
/**
|
787
|
+
* send true to show partial checkbox in the header
|
788
|
+
*/
|
789
|
+
partialSelected?: boolean;
|
790
|
+
/**
|
791
|
+
* send true to disable the checkbox in the header
|
792
|
+
*/
|
793
|
+
headerCheckboxDisabled?: boolean;
|
794
|
+
/**
|
795
|
+
* The content that to be displayed if no data not found
|
796
|
+
*/
|
797
|
+
noDataContent: string | ReactNode;
|
798
|
+
/**
|
799
|
+
* Image that to be displayed if you don't have data
|
800
|
+
*/
|
801
|
+
noDataImage?: string;
|
802
|
+
/**
|
803
|
+
* Size of the image that to be displayed if you don't have data
|
804
|
+
*/
|
805
|
+
noDataImageSize?: 'x-large' | 'large' | 'medium' | 'small' | 'x-small';
|
806
|
+
/**
|
807
|
+
* Height of the table in string
|
808
|
+
*/
|
809
|
+
height?: string;
|
810
|
+
/**
|
811
|
+
* classNames for the table container
|
812
|
+
*/
|
813
|
+
className?: string;
|
814
|
+
}
|
815
|
+
|
816
|
+
declare const Table: ({ data, columns, headerType, withFixedHeader, borderWithRadius, height, className, }: TableProps) => react_jsx_runtime.JSX.Element | null;
|
817
|
+
|
818
|
+
/**a
|
819
|
+
* Props for the Add Resource Button component.
|
820
|
+
*
|
821
|
+
* @property {string} [id] - An optional unique identifier for the Add Resource Button.
|
822
|
+
* @property {('primary' | 'secondary')} [variant] - Optional button style variant.
|
823
|
+
* @property {DirectionalArrow[]} directionalArrow - An array of directional arrows, each specifying the direction and associated menu options. Default values will be provided if not passed.
|
824
|
+
* @property {number} [zIndex] - An optional z-index value for positioning, defaults to 99.
|
825
|
+
*/
|
826
|
+
interface AddResourceButtonProps {
|
827
|
+
id?: string;
|
828
|
+
variant?: 'primary' | 'secondary';
|
829
|
+
directionalArrow: {
|
830
|
+
direction: 'top' | 'right' | 'down';
|
831
|
+
menuOptions: ({
|
832
|
+
label: string;
|
833
|
+
value: string | string[];
|
834
|
+
icon: string;
|
835
|
+
disable?: boolean;
|
836
|
+
})[];
|
837
|
+
}[];
|
838
|
+
zIndex?: number;
|
839
|
+
}
|
840
|
+
|
841
|
+
declare const AddButton: ({ id, variant, directionalArrow, zIndex, }: AddResourceButtonProps) => react_jsx_runtime.JSX.Element;
|
842
|
+
|
843
|
+
type Status = 'passed' | 'failed' | 'warning' | 'skipped' | 'Passed' | 'Failed' | 'Skipped' | 'Warning';
|
844
|
+
type StatusValue = {
|
845
|
+
status: Status;
|
846
|
+
value: number;
|
847
|
+
};
|
848
|
+
type DonutChartProps = {
|
849
|
+
radius: number;
|
850
|
+
lineWidth: number;
|
851
|
+
statusValues: StatusValue[];
|
852
|
+
legendDetailsType: string;
|
853
|
+
isLegendDetails: boolean;
|
854
|
+
gapAngle?: number;
|
855
|
+
};
|
856
|
+
|
857
|
+
declare const DonutChart: React__default.FC<DonutChartProps>;
|
858
|
+
|
859
|
+
interface FileDropzoneProps {
|
860
|
+
/**
|
861
|
+
* Icon to be displayed in the dropzone.
|
862
|
+
**/
|
863
|
+
icon?: ReactNode;
|
864
|
+
/**
|
865
|
+
* Primary label to be shown in dropzone area
|
866
|
+
**/
|
867
|
+
primaryLabel?: string;
|
868
|
+
/**
|
869
|
+
* Secondary label to be shown
|
870
|
+
**/
|
871
|
+
secondaryLabel?: string;
|
872
|
+
/**
|
873
|
+
* Label to be shown in choose file/input button.
|
874
|
+
**/
|
875
|
+
buttonLabel?: string;
|
876
|
+
/**
|
877
|
+
* . extension needs to be passed to allow the type of file to add or MIME type to be validate MIME type
|
878
|
+
**/
|
879
|
+
accept: string[];
|
880
|
+
/**
|
881
|
+
* To allow multiple selection or drop of files.
|
882
|
+
**/
|
883
|
+
multiple?: boolean;
|
884
|
+
/**
|
885
|
+
* Maximum files to be dropped or selected at once.
|
886
|
+
**/
|
887
|
+
maxFiles?: number;
|
888
|
+
/**
|
889
|
+
* Maximum size of the file in numbers.
|
890
|
+
**/
|
891
|
+
maxSize?: number;
|
892
|
+
/**
|
893
|
+
* Function with state to get the boolean value when the maxFiles is less than dropped files.
|
894
|
+
**/
|
895
|
+
onMaxFilesError?: () => void;
|
896
|
+
/**
|
897
|
+
* To show error message if file size exceeds the max size
|
898
|
+
**/
|
899
|
+
maxSizeErrorMessage?: string;
|
900
|
+
/**
|
901
|
+
* To show error message if file is not of accepted file type
|
902
|
+
**/
|
903
|
+
invalidFileMessage?: string;
|
904
|
+
/**
|
905
|
+
* To show error message if file already exist with same name and type
|
906
|
+
**/
|
907
|
+
fileExistMessage?: string;
|
908
|
+
/**
|
909
|
+
* To validate file type based on MIME type but mandatorily need to pass MIME type in accept props
|
910
|
+
**/
|
911
|
+
validateMIMEType?: boolean;
|
912
|
+
}
|
913
|
+
|
914
|
+
declare const FileDropzone: React.FC<FileDropzoneProps>;
|
915
|
+
|
916
|
+
type Theme = 'ff-light-theme' | 'ff-dark-theme' | 'ff-grey-theme';
|
917
|
+
interface ThemeContextType {
|
918
|
+
currentTheme: Theme;
|
919
|
+
setCurrentTheme: React.Dispatch<React.SetStateAction<Theme>>;
|
920
|
+
applyTheme: (newTheme: Theme) => void;
|
921
|
+
}
|
922
|
+
interface ThemeProviderProps {
|
923
|
+
children?: ReactNode;
|
924
|
+
theme?: Theme;
|
925
|
+
}
|
926
|
+
|
927
|
+
declare const ThemeProvider: React__default.FC<ThemeProviderProps>;
|
928
|
+
|
929
|
+
interface TypographyProps {
|
930
|
+
/**
|
931
|
+
* Font Weight
|
932
|
+
*/
|
933
|
+
fontWeight?: 'regular' | 'medium' | 'semi-bold' | 'bold';
|
934
|
+
/**
|
935
|
+
* Font Size
|
936
|
+
*/
|
937
|
+
fontSize?: number | string;
|
938
|
+
/**
|
939
|
+
* Line height
|
940
|
+
*/
|
941
|
+
lineHeight?: string;
|
942
|
+
/**
|
943
|
+
* Color
|
944
|
+
*/
|
945
|
+
color?: string;
|
946
|
+
/**
|
947
|
+
* Text alignment
|
948
|
+
*/
|
949
|
+
textAlign?: 'left' | 'right' | 'center' | 'justify';
|
950
|
+
/**
|
951
|
+
* For JSX elements
|
952
|
+
*/
|
953
|
+
as?: keyof JSX.IntrinsicElements;
|
954
|
+
/**
|
955
|
+
* htmlFor attribute for element=label,
|
956
|
+
*/
|
957
|
+
htmlFor?: string;
|
958
|
+
/**
|
959
|
+
* The content to display within the Typography component
|
960
|
+
*/
|
961
|
+
children: React__default.ReactNode;
|
962
|
+
/**
|
963
|
+
* To add styles in Typography
|
964
|
+
*/
|
965
|
+
className?: string;
|
966
|
+
/**
|
967
|
+
* To add letter spacing in Typography
|
968
|
+
*/
|
969
|
+
letterSpacing?: string;
|
970
|
+
/**
|
971
|
+
* To add onClick function
|
972
|
+
*/
|
973
|
+
onClick?: () => void;
|
974
|
+
}
|
975
|
+
|
976
|
+
declare const Typography: React__default.FC<TypographyProps>;
|
977
|
+
|
978
|
+
declare const useTheme: () => ThemeContextType;
|
979
|
+
|
980
|
+
interface FormProps<T extends FieldValues> extends UseFormProps<T> {
|
981
|
+
onSubmit: SubmitHandler<T>;
|
982
|
+
children: (props: {
|
983
|
+
register: (name: FieldPath<T>, options?: any) => any;
|
984
|
+
errors: FieldErrors<T>;
|
985
|
+
handleBlur: (field: FieldPath<T>) => void;
|
986
|
+
getValues: () => T;
|
987
|
+
watch: (field?: FieldPath<T>) => any;
|
988
|
+
setValue: (field: FieldPath<T>, value: any, options?: object) => void;
|
989
|
+
}) => React__default.ReactNode;
|
990
|
+
}
|
991
|
+
declare const Form: <T extends FieldValues>({ onSubmit, children, ...rest }: FormProps<T>) => react_jsx_runtime.JSX.Element;
|
992
|
+
|
993
|
+
interface Option {
|
994
|
+
label: string | ReactNode;
|
995
|
+
value: string;
|
996
|
+
}
|
997
|
+
interface InputWithDropdownProps {
|
998
|
+
/**
|
999
|
+
* Name | name of the input field
|
1000
|
+
*/
|
1001
|
+
name: string;
|
1002
|
+
/**
|
1003
|
+
* Label | field label to be displayed
|
1004
|
+
*/
|
1005
|
+
label: string;
|
1006
|
+
/**
|
1007
|
+
* value | input field value
|
1008
|
+
*/
|
1009
|
+
value: string | number;
|
1010
|
+
/**
|
1011
|
+
* variants to set color/style of the input field
|
1012
|
+
*/
|
1013
|
+
variant?: 'default' | 'primary';
|
1014
|
+
/**
|
1015
|
+
* type to set the input field type
|
1016
|
+
*/
|
1017
|
+
type: 'text' | 'password' | 'number' | 'time';
|
1018
|
+
/**
|
1019
|
+
* error | If true, error message will be displayed
|
1020
|
+
*/
|
1021
|
+
error?: boolean;
|
1022
|
+
/**
|
1023
|
+
* helperText | error, success, warning message to be shown
|
1024
|
+
*/
|
1025
|
+
helperText?: string;
|
1026
|
+
/**
|
1027
|
+
* to disable the input field
|
1028
|
+
*/
|
1029
|
+
disabled?: boolean;
|
1030
|
+
/**
|
1031
|
+
* if true, input field will be mandatory
|
1032
|
+
*/
|
1033
|
+
required?: boolean;
|
1034
|
+
/**
|
1035
|
+
* placeholder for the input field
|
1036
|
+
*/
|
1037
|
+
placeholder?: string;
|
1038
|
+
/**
|
1039
|
+
* classnames to style the input field
|
1040
|
+
*/
|
1041
|
+
className?: string;
|
1042
|
+
/**
|
1043
|
+
* Options for the select dropdown
|
1044
|
+
*/
|
1045
|
+
optionsList: Option[];
|
1046
|
+
/**
|
1047
|
+
* Selected option for the select dropdown
|
1048
|
+
*/
|
1049
|
+
selectedOption?: Option;
|
1050
|
+
/**
|
1051
|
+
* onChange handler for input changes
|
1052
|
+
*/
|
1053
|
+
onInputChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
1054
|
+
/**
|
1055
|
+
* onChange handler for dropdown changes
|
1056
|
+
*/
|
1057
|
+
onDropdownChangeHandler?: (option: Option) => void;
|
1058
|
+
/**
|
1059
|
+
* onFocus action for input field
|
1060
|
+
*/
|
1061
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
1062
|
+
/**
|
1063
|
+
* id to select the input field uniquely
|
1064
|
+
*/
|
1065
|
+
id?: string;
|
1066
|
+
/**
|
1067
|
+
* if on, suggestion popup will be displayed
|
1068
|
+
*/
|
1069
|
+
autoComplete?: 'on' | 'off';
|
1070
|
+
/**
|
1071
|
+
* minimum and maximum values for the number type input field
|
1072
|
+
*/
|
1073
|
+
minValue?: number;
|
1074
|
+
maxValue?: number;
|
1075
|
+
/**
|
1076
|
+
* background of the input field prop
|
1077
|
+
*/
|
1078
|
+
isBackgroundTransparent?: boolean;
|
1079
|
+
}
|
1080
|
+
|
1081
|
+
declare const InputWithDropdown: ({ name, label, value, type, disabled, required, placeholder, error, helperText, optionsList, selectedOption, onDropdownChangeHandler, onInputChangeHandler, }: InputWithDropdownProps) => react_jsx_runtime.JSX.Element;
|
1082
|
+
|
1083
|
+
declare const RadioButton: React__default.FC<RadioButtonProps>;
|
1084
|
+
|
1085
|
+
declare const RadioGroup: React__default.FC<RadioGroupProps>;
|
1086
|
+
|
1087
|
+
interface ButtonProps {
|
1088
|
+
text: string;
|
1089
|
+
onClick: () => void;
|
1090
|
+
}
|
1091
|
+
interface ModalDimensions {
|
1092
|
+
width?: number;
|
1093
|
+
height?: number;
|
1094
|
+
}
|
1095
|
+
interface MiniEditModalProps {
|
1096
|
+
/**
|
1097
|
+
* A reference to the button element that triggers the modal.
|
1098
|
+
*/
|
1099
|
+
anchorRef: RefObject<HTMLButtonElement>;
|
1100
|
+
/**
|
1101
|
+
* Optional properties for configuring the modal header.
|
1102
|
+
*/
|
1103
|
+
headerProps?: ReactNode;
|
1104
|
+
/**
|
1105
|
+
* The main content to be displayed inside the modal
|
1106
|
+
*/
|
1107
|
+
childContent: ReactNode;
|
1108
|
+
/**
|
1109
|
+
* Props for the cancel button inside the modal
|
1110
|
+
*/
|
1111
|
+
cancelButtonProps: ButtonProps;
|
1112
|
+
/**
|
1113
|
+
* Props for the proceed button inside the modal.
|
1114
|
+
*/
|
1115
|
+
proceedButtonProps: ButtonProps;
|
1116
|
+
/**
|
1117
|
+
* Optional content for the footer of the modal.
|
1118
|
+
*/
|
1119
|
+
footerContent?: ReactNode;
|
1120
|
+
/**
|
1121
|
+
* Determines if the modal should be wrapped inside a container element.
|
1122
|
+
*/
|
1123
|
+
isWrapped?: boolean;
|
1124
|
+
/**
|
1125
|
+
* Determines if the modal should have an animation when displayed.
|
1126
|
+
*/
|
1127
|
+
isAnimated?: boolean;
|
1128
|
+
/**
|
1129
|
+
* Specifies if the modal should behave as a popover with an arrow.
|
1130
|
+
*/
|
1131
|
+
isPopOver?: boolean;
|
1132
|
+
/**
|
1133
|
+
* Sets the position of the modal relative to its anchor.
|
1134
|
+
* bottom: The modal appears below the anchor.
|
1135
|
+
* right: The modal appears to the right of the anchor.
|
1136
|
+
*/
|
1137
|
+
modalPosition?: 'bottom' | 'right' | 'top' | 'left';
|
1138
|
+
/**
|
1139
|
+
* Adds a top-left aligned arrow to the modal when its position is set to `'right'`.
|
1140
|
+
*/
|
1141
|
+
leftTopArrow?: boolean;
|
1142
|
+
/**
|
1143
|
+
* A reference to an additional anchor element for positioning the modal.
|
1144
|
+
*/
|
1145
|
+
firstAnchorRef?: RefObject<HTMLButtonElement>;
|
1146
|
+
/**
|
1147
|
+
* A numeric value representing the left position of the anchor element, used to calculate the modal's left position.
|
1148
|
+
*/
|
1149
|
+
anchorRefLeftNum?: number;
|
1150
|
+
/**
|
1151
|
+
* Optional properties for configuring the modal's dimensions.
|
1152
|
+
* width: The width of the modal.
|
1153
|
+
* height: The height of the modal.
|
1154
|
+
*/
|
1155
|
+
modalProperties?: ModalDimensions;
|
1156
|
+
/**distance for the wrapper model from align alignments */
|
1157
|
+
anchorLeftDistanceForWrapper?: number;
|
1158
|
+
/**extra top space added from anchor */
|
1159
|
+
extraTopSpace?: {
|
1160
|
+
wrappedModal?: number;
|
1161
|
+
normalModal?: number;
|
1162
|
+
};
|
1163
|
+
/**extra right space added from anchor */
|
1164
|
+
extraRightSpace?: {
|
1165
|
+
leftTopArrow?: number;
|
1166
|
+
middleLeftArrow?: number;
|
1167
|
+
};
|
1168
|
+
/**extra left space added from anchor */
|
1169
|
+
extraLeftSpace?: {
|
1170
|
+
normal?: number;
|
1171
|
+
rightAlignModal?: number;
|
1172
|
+
};
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
declare const MiniModal: React$1.ForwardRefExoticComponent<MiniEditModalProps & React$1.RefAttributes<HTMLDivElement>>;
|
1176
|
+
|
1177
|
+
interface ColumnDataProps {
|
1178
|
+
name: string;
|
1179
|
+
accessor: string;
|
1180
|
+
width: string;
|
1181
|
+
isClickable?: boolean;
|
1182
|
+
minWidth?: string;
|
1183
|
+
cell?: (e: any) => JSX.Element | string | ReactNode;
|
1184
|
+
}
|
1185
|
+
interface ObjectProps {
|
1186
|
+
[key: string]: any;
|
1187
|
+
}
|
1188
|
+
interface TableTreeProps {
|
1189
|
+
withCheckBox: boolean;
|
1190
|
+
columnsData: Array<ColumnDataProps>;
|
1191
|
+
treeData: Array<ObjectProps>;
|
1192
|
+
onClick?: (event: React__default.MouseEvent<HTMLDivElement, MouseEvent>, data: any) => void;
|
1193
|
+
}
|
1194
|
+
declare const TableTree: ({ columnsData, treeData, onClick, }: TableTreeProps) => react_jsx_runtime.JSX.Element;
|
1195
|
+
|
1196
|
+
interface TabsProps {
|
1197
|
+
/**
|
1198
|
+
* An array of tab objects containing label, component, and optional disabled status.
|
1199
|
+
*/
|
1200
|
+
tabsData: {
|
1201
|
+
label: string;
|
1202
|
+
component: JSX.Element;
|
1203
|
+
disabled?: boolean;
|
1204
|
+
}[];
|
1205
|
+
/**
|
1206
|
+
* Defines the styling variant of the tabs.
|
1207
|
+
*/
|
1208
|
+
variant?: 'default' | 'capsule';
|
1209
|
+
/**
|
1210
|
+
* activeTabId : The ID of the currently active tab.
|
1211
|
+
*/
|
1212
|
+
activeTabId: string;
|
1213
|
+
/**
|
1214
|
+
* onTabClick : function updates the active tab state when a user interacts with the tabs,
|
1215
|
+
*/
|
1216
|
+
onTabClick: (id: string) => void;
|
1217
|
+
}
|
1218
|
+
|
1219
|
+
declare const Tabs: ({ variant, tabsData, activeTabId, onTabClick, }: TabsProps) => react_jsx_runtime.JSX.Element;
|
1220
|
+
|
1221
|
+
interface HighlightTextProps {
|
1222
|
+
text?: string;
|
1223
|
+
highlight?: String;
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
declare const HighlightText: React.FC<HighlightTextProps>;
|
1227
|
+
|
1228
|
+
interface CheckboxProps {
|
1229
|
+
/**
|
1230
|
+
* Unique ID for the checkbox input
|
1231
|
+
*/
|
1232
|
+
id?: string;
|
1233
|
+
/**
|
1234
|
+
* Name attribute for the checkbox input
|
1235
|
+
*/
|
1236
|
+
name?: string;
|
1237
|
+
/**
|
1238
|
+
* Optional side label
|
1239
|
+
*/
|
1240
|
+
label?: string;
|
1241
|
+
/**
|
1242
|
+
* Optional disable attribute
|
1243
|
+
*/
|
1244
|
+
disabled?: boolean;
|
1245
|
+
/**
|
1246
|
+
* Optional checked attribute to prefill
|
1247
|
+
*/
|
1248
|
+
checked?: boolean;
|
1249
|
+
/**
|
1250
|
+
* Optional onChange function
|
1251
|
+
*/
|
1252
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
1253
|
+
/**
|
1254
|
+
* For partially checked checkbox
|
1255
|
+
*/
|
1256
|
+
partial?: boolean;
|
1257
|
+
}
|
1258
|
+
|
1259
|
+
declare const Checkbox: React__default.FC<CheckboxProps>;
|
1260
|
+
|
1261
|
+
interface SearchProps {
|
1262
|
+
/**
|
1263
|
+
* Placeholder for the input field
|
1264
|
+
*/
|
1265
|
+
placeholder?: string;
|
1266
|
+
/**
|
1267
|
+
* Callback function to be called when the search button is clicked or enter key is pressed
|
1268
|
+
*/
|
1269
|
+
onSearch: (query: string) => void;
|
1270
|
+
/**
|
1271
|
+
* Additional styles for the button
|
1272
|
+
*/
|
1273
|
+
disabled?: boolean;
|
1274
|
+
width?: number;
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
declare const Search: ({ placeholder, onSearch, disabled, width, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
1278
|
+
|
1279
|
+
type valueType$1 = any;
|
1280
|
+
declare const checkEmpty: (value: valueType$1) => boolean;
|
1281
|
+
|
1282
|
+
type valueType = File | string;
|
1283
|
+
declare const getExtension: (value: valueType) => string | undefined;
|
1284
|
+
declare const getExtensionWithPeriod: (value: valueType) => string;
|
1285
|
+
|
1286
|
+
export { Accordion, AddButton as AddResourceButton, Button, Checkbox, Chip, Col, Container, DonutChart, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, Input, InputWithDropdown, MenuOption, MiniModal, MultiSelect, RadialChart, RadioButton, RadioGroup, Row, Search, Select, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, checkEmpty, getExtension, getExtensionWithPeriod, useTheme };
|