cc-ui-library 1.0.3 → 1.0.5
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/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 +17 -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 +3 -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 +68 -0
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.d.ts +3 -0
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +6 -0
- package/lib/components/AllProjectsDropdown/index.d.ts +1 -0
- package/lib/components/AppHeader/AppHeader.d.ts +4 -0
- package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
- package/lib/components/AppHeader/index.d.ts +1 -0
- package/lib/components/AppHeader/types.d.ts +26 -0
- package/lib/components/Button/Button.d.ts +2 -4
- package/lib/components/Button/Button.stories.d.ts +5 -3
- package/lib/components/Button/types.d.ts +2 -9
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.d.ts +5 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
- package/lib/components/Charts/DashboardDonutChart/index.d.ts +1 -0
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +21 -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/PieChart/PieChart.d.ts +5 -0
- package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
- package/lib/components/Charts/PieChart/index.d.ts +1 -0
- package/lib/components/Charts/PieChart/types.d.ts +27 -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/DatePicker/DatePicker.d.ts +5 -0
- package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
- package/lib/components/DatePicker/Timepicker.d.ts +4 -0
- package/lib/components/DatePicker/index.d.ts +1 -0
- package/lib/components/DatePicker/types.d.ts +81 -0
- package/lib/components/DragAndDrop/DragAndDrop.d.ts +9 -0
- package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
- package/lib/components/DragAndDrop/DragAndDropList.d.ts +20 -0
- package/lib/components/DragAndDrop/index.d.ts +1 -0
- package/lib/components/Drawer/Drawer.d.ts +5 -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/FF_Captcha/Recaptcha.d.ts +5 -0
- package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
- package/lib/components/FF_Captcha/types.d.ts +20 -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/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 +74 -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/IconButton/IconButton.d.ts +5 -0
- package/lib/components/IconButton/IconButton.stories.d.ts +6 -0
- package/lib/components/IconButton/index.d.ts +1 -0
- package/lib/components/IconButton/types.d.ts +5 -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 +9 -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/Modal/Modal.d.ts +5 -0
- package/lib/components/Modal/Modal.stories.d.ts +7 -0
- package/lib/components/Modal/index.d.ts +1 -0
- package/lib/components/Modal/types.d.ts +28 -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 +10 -0
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +23 -0
- package/lib/components/MultiSelect/dropdownTypes.d.ts +17 -0
- package/lib/components/MultiSelect/index.d.ts +1 -0
- package/lib/components/NLPInput/NlpInput.d.ts +4 -0
- package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.d.ts +19 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.d.ts +4 -0
- package/lib/components/NLPInput/index.d.ts +1 -0
- package/lib/components/NLPInput/type.d.ts +70 -0
- package/lib/components/Paper/Paper.d.ts +4 -0
- package/lib/components/Paper/Paper.stories.d.ts +11 -0
- package/lib/components/Paper/index.d.ts +1 -0
- package/lib/components/Paper/types.d.ts +15 -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 +72 -0
- package/lib/components/StateDropdown/StateDropdown.d.ts +3 -0
- package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
- package/lib/components/StateDropdown/StateDropdownTypes.d.ts +11 -0
- package/lib/components/StateDropdown/index.d.ts +1 -0
- package/lib/components/StatusButton/StatusButton.d.ts +4 -0
- package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
- package/lib/components/StatusButton/index.d.ts +1 -0
- package/lib/components/StatusButton/types.d.ts +35 -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 +9 -0
- package/lib/components/Tabs/index.d.ts +1 -0
- package/lib/components/Tabs/types.d.ts +44 -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.stories.d.ts +3 -0
- package/lib/components/Toggle/types.d.ts +28 -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/components/VariableInput/VariableInput.d.ts +4 -0
- package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
- package/lib/components/VariableInput/index.d.ts +1 -0
- package/lib/components/VariableInput/types.d.ts +53 -0
- package/lib/hooks/keyboardevents/useEscKeyEvent.d.ts +2 -0
- package/lib/hooks/useClickOutside.d.ts +1 -1
- 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.d.ts +1538 -18
- package/lib/index.esm.js +23875 -172
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +23921 -171
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/TableCell/TableCell.d.ts +1 -0
- package/lib/utils/compareArrays/compareArrays.d.ts +11 -0
- package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
- package/lib/utils/compareObjects/compareObjects.d.ts +2 -0
- package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
- package/lib/utils/debounce/debounce.d.ts +6 -0
- package/lib/utils/debounce/debounce.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/find/findAndInsert.d.ts +7 -0
- package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
- package/lib/utils/getEncryptedData/getEncryptedData.d.ts +2 -0
- package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
- package/lib/utils/getExtension/getExtension.d.ts +4 -0
- package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
- package/lib/utils/throttle/throttle.d.ts +6 -0
- package/lib/utils/throttle/throttle.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 +38 -23
- package/src/StyleGuide/ColorPalette/ColorPalette.scss +62 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.stories.tsx +16 -0
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +68 -0
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +172 -0
- package/src/StyleGuide/ColorPalette/index.ts +1 -0
- package/src/StyleGuide/ColorPalette/types.ts +19 -0
- package/src/StyleGuide/Typography/Typography.scss +99 -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 +173 -0
- package/src/assets/Themes/DarkTheme.scss +182 -0
- package/src/assets/Themes/Theme.scss +16 -0
- package/src/assets/icons/Arrow.svg +5 -0
- package/src/assets/icons/accordion_header_icon.svg +10 -0
- package/src/assets/icons/active_license_icon.svg +3 -0
- package/src/assets/icons/add_variable_icon.svg +5 -0
- package/src/assets/icons/all_projects.svg +3 -0
- package/src/assets/icons/android_icon.svg +6 -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/calendar_icon.svg +9 -0
- package/src/assets/icons/check_mark.svg +3 -0
- package/src/assets/icons/clock_icon.svg +11 -0
- package/src/assets/icons/close_pill.svg +3 -0
- package/src/assets/icons/collapse-icon.svg +6 -0
- package/src/assets/icons/copy-icon.svg +3 -0
- package/src/assets/icons/delete.svg +3 -0
- package/src/assets/icons/delete_info.svg +17 -0
- package/src/assets/icons/details.svg +3 -0
- package/src/assets/icons/download-icon.svg +3 -0
- package/src/assets/icons/download_icon.svg +4 -0
- package/src/assets/icons/dropzone_icon.svg +18 -0
- package/src/assets/icons/edit_icon.svg +5 -0
- package/src/assets/icons/error.svg +17 -0
- package/src/assets/icons/expand-icon.svg +6 -0
- package/src/assets/icons/export_collection_icon.svg +13 -0
- package/src/assets/icons/file.svg +12 -0
- package/src/assets/icons/filter.svg +5 -0
- package/src/assets/icons/fireflink_icon.svg +4 -0
- package/src/assets/icons/fireflink_logo.svg +13 -0
- package/src/assets/icons/hide_icon.svg +9 -0
- package/src/assets/icons/impactList.svg +6 -0
- package/src/assets/icons/info.svg +17 -0
- package/src/assets/icons/info_icon.svg +4 -0
- package/src/assets/icons/left_arrow_icon.svg +3 -0
- package/src/assets/icons/license_info.svg +28 -0
- package/src/assets/icons/license_warning.svg +10 -0
- package/src/assets/icons/manage_apps.svg +3 -0
- package/src/assets/icons/mobile_icon.svg +3 -0
- package/src/assets/icons/moon_stars.svg +10 -0
- package/src/assets/icons/more.svg +11 -0
- package/src/assets/icons/ms_dynamic.svg +4 -0
- package/src/assets/icons/plus_icon.svg +11 -0
- package/src/assets/icons/refresh-icon.svg +4 -0
- package/src/assets/icons/remove.svg +12 -0
- package/src/assets/icons/replace.svg +12 -0
- package/src/assets/icons/right_arrow_icon.svg +4 -0
- package/src/assets/icons/run_icon.svg +26 -0
- package/src/assets/icons/sales_force.svg +7 -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/switch_license_icon.svg +123 -0
- package/src/assets/icons/tick_icon.svg +5 -0
- package/src/assets/icons/toast_close.svg +3 -0
- package/src/assets/icons/vertical_separator.svg +3 -0
- package/src/assets/icons/view_icon.svg +3 -0
- package/src/assets/icons/warning.svg +17 -0
- package/src/assets/icons/web&mobile_icon.svg +3 -0
- package/src/assets/icons/web_icon.svg +3 -0
- package/src/assets/icons/wrong_mark.svg +3 -0
- package/src/assets/icons/wswb_delete_icon.svg +4 -0
- package/src/assets/icons/wswb_plus_icon.svg +5 -0
- package/src/assets/styles/_colors.scss +141 -16
- package/src/assets/styles/_fonts.scss +68 -0
- package/src/assets/styles/_mixins.scss +21 -0
- package/src/assets/utils/functionUtils.ts +37 -0
- package/src/components/Accordion/Accordion.scss +44 -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 +92 -0
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +70 -0
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +21 -0
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +148 -0
- package/src/components/AllProjectsDropdown/index.ts +1 -0
- package/src/components/AppHeader/AppHeader.scss +67 -0
- package/src/components/AppHeader/AppHeader.stories.tsx +156 -0
- package/src/components/AppHeader/AppHeader.tsx +124 -0
- package/src/components/AppHeader/index.ts +1 -0
- package/src/components/AppHeader/types.ts +27 -0
- package/src/components/Button/Button.scss +145 -2
- package/src/components/Button/Button.stories.tsx +28 -10
- package/src/components/Button/Button.tsx +62 -34
- package/src/components/Button/types.ts +3 -9
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +145 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +52 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +335 -0
- package/src/components/Charts/DashboardDonutChart/index.ts +1 -0
- package/src/components/Charts/DashboardDonutChart/types.ts +33 -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/PieChart/PieChart.scss +39 -0
- package/src/components/Charts/PieChart/PieChart.stories.tsx +46 -0
- package/src/components/Charts/PieChart/PieChart.tsx +193 -0
- package/src/components/Charts/PieChart/index.ts +1 -0
- package/src/components/Charts/PieChart/types.ts +28 -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/DatePicker/DatePicker.scss +387 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +161 -0
- package/src/components/DatePicker/DatePicker.tsx +438 -0
- package/src/components/DatePicker/Timepicker.tsx +372 -0
- package/src/components/DatePicker/index.ts +1 -0
- package/src/components/DatePicker/types.ts +100 -0
- package/src/components/DragAndDrop/DragAndDrop.d.ts +5 -0
- package/src/components/DragAndDrop/DragAndDrop.stories.tsx +25 -0
- package/src/components/DragAndDrop/DragAndDrop.ts +7 -0
- package/src/components/DragAndDrop/DragAndDropList.scss +69 -0
- package/src/components/DragAndDrop/DragAndDropList.tsx +150 -0
- package/src/components/DragAndDrop/index.ts +1 -0
- package/src/components/Drawer/Drawer.scss +119 -0
- package/src/components/Drawer/Drawer.stories.tsx +88 -0
- package/src/components/Drawer/Drawer.tsx +171 -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/FF_Captcha/Recaptcha.scss +11 -0
- package/src/components/FF_Captcha/Recaptcha.tsx +41 -0
- package/src/components/FF_Captcha/captcha.stories.tsx +40 -0
- package/src/components/FF_Captcha/index.ts +0 -0
- package/src/components/FF_Captcha/types.ts +22 -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/GridLayout/GridLayout.scss +71 -0
- package/src/components/GridLayout/GridLayout.stories.tsx +90 -0
- package/src/components/GridLayout/GridLayout.tsx +32 -0
- package/src/components/GridLayout/GridLayoutStory.scss +25 -0
- package/src/components/GridLayout/index.ts +1 -0
- package/src/components/GridLayout/types.ts +84 -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.tsx +3 -2
- package/src/components/Icon/Icons.scss +6 -6
- package/src/components/Icon/iconList.ts +132 -0
- package/src/components/IconButton/IconButton.scss +43 -0
- package/src/components/IconButton/IconButton.stories.tsx +25 -0
- package/src/components/IconButton/IconButton.tsx +28 -0
- package/src/components/IconButton/index.ts +1 -0
- package/src/components/IconButton/types.ts +5 -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 +168 -0
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +90 -0
- package/src/components/InputWithDropdown/index.ts +1 -0
- package/src/components/InputWithDropdown/types.ts +109 -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/Modal/Modal.stories.tsx +67 -0
- package/src/components/Modal/Modal.tsx +75 -0
- package/src/components/Modal/index.tsx +1 -0
- package/src/components/Modal/modal.scss +39 -0
- package/src/components/Modal/types.ts +39 -0
- package/src/components/MultiSelect/Dropdown.scss +77 -0
- package/src/components/MultiSelect/Dropdown.tsx +100 -0
- package/src/components/MultiSelect/MultiSelect.scss +197 -0
- package/src/components/MultiSelect/MultiSelect.stories.tsx +114 -0
- package/src/components/MultiSelect/MultiSelect.tsx +332 -0
- package/src/components/MultiSelect/MultiSelectTypes.ts +24 -0
- package/src/components/MultiSelect/dropdownTypes.ts +17 -0
- package/src/components/MultiSelect/index.ts +1 -0
- package/src/components/NLPInput/NLPInput.scss +246 -0
- package/src/components/NLPInput/NlpInput.stories.tsx +136 -0
- package/src/components/NLPInput/NlpInput.tsx +374 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropDownType.ts +60 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.scss +83 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.tsx +180 -0
- package/src/components/NLPInput/index.ts +1 -0
- package/src/components/NLPInput/type.tsx +124 -0
- package/src/components/Paper/Paper.scss +13 -0
- package/src/components/Paper/Paper.stories.tsx +77 -0
- package/src/components/Paper/Paper.tsx +14 -0
- package/src/components/Paper/index.ts +1 -0
- package/src/components/Paper/types.ts +19 -0
- package/src/components/RadioButton/RadioButton.scss +98 -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 +85 -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 +372 -0
- package/src/components/Select/components/Dropdown/Dropdown.scss +70 -0
- package/src/components/Select/components/Dropdown/Dropdown.tsx +93 -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 +126 -0
- package/src/components/StateDropdown/StateDropdown.stories.tsx +99 -0
- package/src/components/StateDropdown/StateDropdown.tsx +218 -0
- package/src/components/StateDropdown/StateDropdownTypes.tsx +21 -0
- package/src/components/StateDropdown/index.ts +1 -0
- package/src/components/StatusButton/StatusButton.scss +90 -0
- package/src/components/StatusButton/StatusButton.stories.tsx +91 -0
- package/src/components/StatusButton/StatusButton.tsx +40 -0
- package/src/components/StatusButton/index.ts +1 -0
- package/src/components/StatusButton/types.ts +45 -0
- package/src/components/Table/Table.scss +106 -0
- package/src/components/Table/Table.stories.tsx +357 -0
- package/src/components/Table/Table.tsx +139 -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 +220 -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 +79 -0
- package/src/components/Tabs/Tabs.stories.tsx +135 -0
- package/src/components/Tabs/Tabs.tsx +69 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tabs/types.ts +42 -0
- package/src/components/TextArea/Textarea.scss +144 -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 +27 -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 +66 -86
- package/src/components/Toggle/Toggle.stories.tsx +79 -2
- package/src/components/Toggle/Toggle.tsx +52 -11
- package/src/components/Toggle/types.ts +21 -0
- package/src/components/Tooltip/Tooltip.scss +26 -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/components/VariableInput/VariableInput.scss +128 -0
- package/src/components/VariableInput/VariableInput.stories.tsx +32 -0
- package/src/components/VariableInput/VariableInput.tsx +352 -0
- package/src/components/VariableInput/index.ts +1 -0
- package/src/components/VariableInput/types.ts +56 -0
- package/src/hooks/keyboardevents/useEscKeyEvent.tsx +31 -0
- package/src/hooks/useClickOutside.tsx +12 -3
- 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 +97 -0
- package/src/utils/TableCell/TableCell.ts +16 -0
- package/src/utils/checkEmpty/checkEmpty.stories.tsx +1 -1
- package/src/utils/checkEmpty/checkEmpty.ts +21 -7
- package/src/utils/compareArrays/compareArrays.stories.tsx +62 -0
- package/src/utils/compareArrays/compareArrays.ts +31 -0
- package/src/utils/compareObjects/compareObjects.stories.tsx +51 -0
- package/src/utils/compareObjects/compareObjects.ts +53 -0
- package/src/utils/debounce/debounce.stories.tsx +81 -0
- package/src/utils/debounce/debounce.ts +28 -0
- package/src/utils/ffID/ffID.stories.tsx +35 -0
- package/src/utils/ffID/ffid.ts +9 -0
- package/src/utils/find/findAndInsert.stories.tsx +119 -0
- package/src/utils/find/findAndInsert.ts +49 -0
- package/src/utils/getEncryptedData/getEncryptedData.stories.tsx +55 -0
- package/src/utils/getEncryptedData/getEncryptedData.ts +10 -0
- package/src/utils/getExtension/getExtension.stories.tsx +23 -0
- package/src/utils/getExtension/getExtension.ts +28 -0
- package/src/utils/throttle/throttle.stories.tsx +100 -0
- package/src/utils/throttle/throttle.ts +33 -0
- package/src/utils/truncateText/truncateText.stories.tsx +37 -0
- package/src/utils/truncateText/truncateText.ts +4 -0
- package/src/assets/styles/_rsfonts.scss +0 -228
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ColorPalette';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ColorBoxProps {
|
|
2
|
+
name: string;
|
|
3
|
+
colorCode: string;
|
|
4
|
+
opacity?: number;
|
|
5
|
+
dropShadow?: string;
|
|
6
|
+
border?: string;
|
|
7
|
+
variable?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Color {
|
|
10
|
+
name: string;
|
|
11
|
+
colorCode: string;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
dropShadow?: string;
|
|
14
|
+
border?: string;
|
|
15
|
+
variable?: string;
|
|
16
|
+
}
|
|
17
|
+
export type ColorPaletteType = Color[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './Accordion.scss';
|
|
2
|
+
import '../../../index.scss';
|
|
3
|
+
import { AccordionProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Accordion UI component
|
|
6
|
+
*/
|
|
7
|
+
declare const Accordion: ({ headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Accordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Accordion';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface AccordionProps {
|
|
3
|
+
/**
|
|
4
|
+
* Accordion Header Title
|
|
5
|
+
*/
|
|
6
|
+
headerTitle: string | JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* Content that to be shown while Accordion is expanded
|
|
9
|
+
*/
|
|
10
|
+
accordionContent: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Custom color for the Accordion header
|
|
13
|
+
*/
|
|
14
|
+
color?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Minimum height for the Accordion
|
|
17
|
+
*/
|
|
18
|
+
minHeight?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Property to disable accordion
|
|
21
|
+
*/
|
|
22
|
+
disable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Info message to user for disabling accordion
|
|
25
|
+
*/
|
|
26
|
+
disableInfoMessage?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import AddButton from './AddButton';
|
|
3
|
+
declare const meta: Meta<typeof AddButton>;
|
|
4
|
+
type Story = StoryObj<typeof AddButton>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const TwoArrowsButtons: Story;
|
|
7
|
+
export declare const ThreeArrowsButton: Story;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './ArrowsButton.scss';
|
|
2
|
+
import { DirectionalArrowButtonProps } from '../type';
|
|
3
|
+
declare const ArrowsButton: ({ direction, menuOptions, onArrowClick, }: DirectionalArrowButtonProps & {
|
|
4
|
+
isActive: boolean;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ArrowsButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AddButton';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the directional arrow used in the Add Resource Button component.
|
|
3
|
+
* The arrow specifies its direction (top, right, down) and associated menu options.
|
|
4
|
+
*
|
|
5
|
+
* @property {('top' | 'right' | 'down')} direction - Specifies the direction of the arrow.
|
|
6
|
+
* @property {(Object | null)[]} menuOptions - The list of menu options displayed when the arrow button is active.
|
|
7
|
+
* If null, no menu options will be shown.
|
|
8
|
+
*/
|
|
9
|
+
export interface DirectionalArrow {
|
|
10
|
+
direction: string | 'top' | 'right' | 'down';
|
|
11
|
+
menuOptions: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string | string[];
|
|
14
|
+
icon: string;
|
|
15
|
+
disable?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Props for the Add Resource Button component.
|
|
20
|
+
*
|
|
21
|
+
* @property {string} [id] - An optional unique identifier for the Add Resource Button.
|
|
22
|
+
* @property {('primary' | 'secondary')} [variant] - Optional button style variant.
|
|
23
|
+
* @property {DirectionalArrow[]} directionalArrow - An array of directional arrows, each specifying the direction and associated menu options. Default values will be provided if not passed.
|
|
24
|
+
* @property {number} [zIndex] - An optional z-index value for positioning, defaults to 99.
|
|
25
|
+
*/
|
|
26
|
+
export interface AddResourceButtonProps {
|
|
27
|
+
id?: string;
|
|
28
|
+
variant?: 'primary' | 'secondary';
|
|
29
|
+
directionalArrow: {
|
|
30
|
+
/**
|
|
31
|
+
* direction option: 'top' | 'right' | 'down'
|
|
32
|
+
*/
|
|
33
|
+
direction: string | 'top' | 'right' | 'down';
|
|
34
|
+
menuOptions: {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string | string[];
|
|
37
|
+
icon: string;
|
|
38
|
+
disable?: boolean;
|
|
39
|
+
}[];
|
|
40
|
+
}[];
|
|
41
|
+
zIndex?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Props for individual directional arrow buttons.
|
|
45
|
+
*
|
|
46
|
+
* @property {('top' | 'right' | 'down')} direction - The direction of the arrow button (top, right, or down).
|
|
47
|
+
* @property {(Object | any)} menuOptions - The list of menu options or a generic value for dynamic content.
|
|
48
|
+
* @property {() => void} onArrowClick - Callback function triggered when the arrow button is clicked.
|
|
49
|
+
* @property {boolean} isActive - Specifies if the button is in an active state (highlighted when selected).
|
|
50
|
+
*/
|
|
51
|
+
export interface DirectionalArrowButtonProps {
|
|
52
|
+
direction: string | 'top' | 'right' | 'down';
|
|
53
|
+
menuOptions: {
|
|
54
|
+
label: string;
|
|
55
|
+
value: string | string[];
|
|
56
|
+
icon: string;
|
|
57
|
+
disable?: boolean;
|
|
58
|
+
}[];
|
|
59
|
+
onArrowClick: () => void;
|
|
60
|
+
isActive: boolean;
|
|
61
|
+
variant?: 'primary' | 'secondary';
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Utility function to validate an array of directional arrows.
|
|
65
|
+
* Ensures there is at least one valid arrow in the array.
|
|
66
|
+
* If the array is empty, it returns a default arrow object.
|
|
67
|
+
*/
|
|
68
|
+
export declare const validateArrows: (arrows: DirectionalArrow[]) => DirectionalArrow[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import AllProjectsDropdown from './AllProjectsDropdown';
|
|
3
|
+
declare const meta: Meta<typeof AllProjectsDropdown>;
|
|
4
|
+
type Story = StoryObj<typeof AllProjectsDropdown>;
|
|
5
|
+
export declare const PrimaryIconButton: Story;
|
|
6
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AllProjectsDropdown';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import AppHeader from './AppHeader';
|
|
3
|
+
declare const meta: Meta<typeof AppHeader>;
|
|
4
|
+
type Story = StoryObj<typeof AppHeader>;
|
|
5
|
+
export declare const SampleAppHeader: Story;
|
|
6
|
+
export declare const Controlled: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./AppHeader";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface AppHeaderProps {
|
|
3
|
+
logoIconName: string;
|
|
4
|
+
rightContent: ReactNode;
|
|
5
|
+
projectsList: string[];
|
|
6
|
+
appHeaderMenuItems: appHeaderMenuItemProps[];
|
|
7
|
+
appHeaderHiddenMenuItems: string[];
|
|
8
|
+
selectedMenu: string;
|
|
9
|
+
selectedSubMenu: string;
|
|
10
|
+
selectedQuickMenu: string;
|
|
11
|
+
onMenuClick?: (text: any) => void;
|
|
12
|
+
onSubMenuClick?: (text: any) => void;
|
|
13
|
+
onQuickMenuClick?: (text: any) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface appHeaderMenuItemProps {
|
|
16
|
+
menuName: string;
|
|
17
|
+
subMenuItems: appHeaderSubMenuItemProps[];
|
|
18
|
+
}
|
|
19
|
+
export interface appHeaderSubMenuItemProps {
|
|
20
|
+
subMenuName: string;
|
|
21
|
+
quickMenuItems: appHeaderQuickMenuItemProps[];
|
|
22
|
+
}
|
|
23
|
+
export interface appHeaderQuickMenuItemProps {
|
|
24
|
+
quickMenuName: string;
|
|
25
|
+
quickMenuIconName: string;
|
|
26
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import './Button.scss';
|
|
2
|
+
import '../../assets/styles/_colors.scss';
|
|
2
3
|
import { ButtonProps } from './types';
|
|
3
|
-
|
|
4
|
-
* Primary UI component for user interaction
|
|
5
|
-
*/
|
|
6
|
-
declare const Button: ({ variant, backgroundColor, size, onClick, label, disabled, children, type, className, style, transparentBackground, withIcon, iconName, iconPosition, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
5
|
export default Button;
|
|
@@ -4,7 +4,9 @@ declare const meta: Meta<typeof Button>;
|
|
|
4
4
|
type Story = StoryObj<typeof Button>;
|
|
5
5
|
export declare const Primary: Story;
|
|
6
6
|
export declare const Secondary: Story;
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const Tertiary: Story;
|
|
8
|
+
export declare const Delete: Story;
|
|
9
|
+
export declare const PrimaryWithIcon: Story;
|
|
10
|
+
export declare const SecondaryWithIcon: Story;
|
|
11
|
+
export declare const TertiaryWithIcon: Story;
|
|
10
12
|
export default meta;
|
|
@@ -3,7 +3,7 @@ export interface ButtonProps {
|
|
|
3
3
|
/**
|
|
4
4
|
* Variant of the button
|
|
5
5
|
*/
|
|
6
|
-
variant: 'primary' | 'secondary' | '
|
|
6
|
+
variant: 'primary' | 'secondary' | 'tertiary' | 'delete';
|
|
7
7
|
/**
|
|
8
8
|
* What background color to use
|
|
9
9
|
*/
|
|
@@ -49,14 +49,6 @@ export interface ButtonProps {
|
|
|
49
49
|
* Additional styles for the button
|
|
50
50
|
*/
|
|
51
51
|
style?: React.CSSProperties;
|
|
52
|
-
/**
|
|
53
|
-
* Pass true for transparentBackground button
|
|
54
|
-
*/
|
|
55
|
-
transparentBackground?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Pass true if button should be with icon
|
|
58
|
-
*/
|
|
59
|
-
withIcon?: boolean;
|
|
60
52
|
/**
|
|
61
53
|
* Give icon name availble in storybook that to be on left side of button
|
|
62
54
|
*/
|
|
@@ -65,4 +57,5 @@ export interface ButtonProps {
|
|
|
65
57
|
* Give icon name availble in storybook that to be on left side of button
|
|
66
58
|
*/
|
|
67
59
|
iconPosition?: 'left' | 'right';
|
|
60
|
+
transparentBackground?: boolean;
|
|
68
61
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import DashboardDonutChart from './DashboardDonutChart';
|
|
3
|
+
declare const meta: Meta<typeof DashboardDonutChart>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DashboardDonutChart>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const MemoryLegend: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DashboardDonutChart';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type Status = 'passed' | 'failed' | 'warning' | 'skipped' | 'Passed' | 'Failed' | 'Skipped' | 'Warning';
|
|
2
|
+
export type StatusValue = {
|
|
3
|
+
status: Status;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export type ChartItem = {
|
|
7
|
+
key: string;
|
|
8
|
+
value: number;
|
|
9
|
+
color?: string;
|
|
10
|
+
};
|
|
11
|
+
export type LegendType = 'numberLegend' | 'pillLegend' | 'memoryLegend' | 'tableLegend';
|
|
12
|
+
export type DashboardDonutChartProps = {
|
|
13
|
+
radius: number;
|
|
14
|
+
lineWidth: number;
|
|
15
|
+
statusValues: ChartItem[];
|
|
16
|
+
legendDetailsType: string;
|
|
17
|
+
isLegendDetails: boolean;
|
|
18
|
+
gapAngle?: number;
|
|
19
|
+
legendType: LegendType;
|
|
20
|
+
showOnlyLabel: boolean;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DonutChart';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type Status = 'passed' | 'failed' | 'warning' | 'skipped' | 'Passed' | 'Failed' | 'Skipped' | 'Warning';
|
|
2
|
+
export type StatusValue = {
|
|
3
|
+
status: Status;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export type DonutChartProps = {
|
|
7
|
+
radius: number;
|
|
8
|
+
lineWidth: number;
|
|
9
|
+
statusValues: StatusValue[];
|
|
10
|
+
legendDetailsType: string;
|
|
11
|
+
isLegendDetails: boolean;
|
|
12
|
+
gapAngle?: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import PieChart from './PieChart';
|
|
3
|
+
declare const meta: Meta<typeof PieChart>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PieChart>;
|
|
6
|
+
export declare const PieChartDashBoard: Story;
|
|
7
|
+
export declare const PieChartDashBoardWithBorder: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PieChart';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type Status = {
|
|
2
|
+
status: 'Passed';
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
export interface PieChartProps {
|
|
6
|
+
radius: number;
|
|
7
|
+
data: Array<{
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
}>;
|
|
11
|
+
colors: string[];
|
|
12
|
+
chartBorder: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type ArcParams = {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
radius: number;
|
|
18
|
+
startAngle: number;
|
|
19
|
+
endAngle: number;
|
|
20
|
+
};
|
|
21
|
+
export type ArcResult = string;
|
|
22
|
+
export type ArcAnglesResult = {
|
|
23
|
+
endAngle: number;
|
|
24
|
+
backgroundArcPath: string;
|
|
25
|
+
foregroundArcPath: string;
|
|
26
|
+
percentage: number;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './RadialChart';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type Status = {
|
|
2
|
+
status: 'Passed' | 'Failed' | 'Warning' | 'Skipped' | 'passed' | 'failed' | 'warning' | 'skipped';
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
export interface RadialChartProps {
|
|
6
|
+
radius: number;
|
|
7
|
+
lineWidth: number;
|
|
8
|
+
statusValues: Status[];
|
|
9
|
+
onClick?: (status: Status) => void;
|
|
10
|
+
fontSize: number;
|
|
11
|
+
}
|
|
12
|
+
export type ArcParams = {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
radius: number;
|
|
16
|
+
startAngle: number;
|
|
17
|
+
endAngle: number;
|
|
18
|
+
};
|
|
19
|
+
export type ArcResult = string;
|
|
20
|
+
export type ArcAnglesResult = {
|
|
21
|
+
endAngle: number;
|
|
22
|
+
backgroundArcPath: string;
|
|
23
|
+
foregroundArcPath: string;
|
|
24
|
+
percentage: number;
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Checkbox from './Checkbox';
|
|
3
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Partial: Story;
|
|
8
|
+
export declare const Controlled: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Checkbox';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
/**
|
|
3
|
+
* Unique ID for the checkbox input
|
|
4
|
+
*/
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name attribute for the checkbox input
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional side label
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional disable attribute
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Optional checked attribute to prefill
|
|
20
|
+
*/
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Optional onChange function
|
|
24
|
+
*/
|
|
25
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* For partially checked checkbox
|
|
28
|
+
*/
|
|
29
|
+
partial?: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Chip from './Chip';
|
|
3
|
+
import '../../assets/styles/_colors.scss';
|
|
4
|
+
import './Chip.scss';
|
|
5
|
+
declare const meta: Meta<typeof Chip>;
|
|
6
|
+
type Story = StoryObj<typeof Chip>;
|
|
7
|
+
export declare const Primary: Story;
|
|
8
|
+
export declare const withoutExpand: Story;
|
|
9
|
+
export declare const Group: Story;
|
|
10
|
+
export declare const CustomChip: Story;
|
|
11
|
+
export declare const Success: Story;
|
|
12
|
+
export declare const Errors: Story;
|
|
13
|
+
export declare const Warning: Story;
|
|
14
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Chip';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ChipsProps {
|
|
2
|
+
/**
|
|
3
|
+
* The text to be displayed on the Chip.
|
|
4
|
+
*/
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* The text to be displayed on hover.
|
|
8
|
+
*/
|
|
9
|
+
fullText?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The variant of the Chip.
|
|
12
|
+
*/
|
|
13
|
+
variant?: 'primary' | 'success' | 'error' | 'warning' | 'custom';
|
|
14
|
+
/**
|
|
15
|
+
* The callback function to be executed when the Chip is clicked.
|
|
16
|
+
*/
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import CustomDatePicker from './DatePicker';
|
|
3
|
+
declare const meta: Meta<typeof CustomDatePicker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CustomDatePicker>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const StartDateFilter: Story;
|
|
8
|
+
export declare const EndDateInput: Story;
|
|
9
|
+
export declare const ScheduleDateInput: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DatePicker';
|