cecomponent 1.0.12 → 1.0.15
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/dist/App.d.ts +2 -0
- package/dist/ce-component-lib.js +48 -0
- package/dist/{cecomponent.es.js → ce-component-lib.mjs} +2212 -2540
- package/dist/components/Api/ApiConfig.d.ts +9 -0
- package/dist/components/Common/Animations/error.json.d.ts +3 -0
- package/dist/components/Common/Animations/info.json.d.ts +3 -0
- package/dist/components/Common/Animations/success.json.d.ts +3 -0
- package/dist/components/Common/Breadcrumb/CEBreadcrumbs.d.ts +13 -0
- package/dist/components/Common/Breadcrumb/CEDynamicBreadcrumbPage.d.ts +6 -0
- package/dist/components/Common/Button/CEButton.d.ts +10 -0
- package/dist/components/Common/CEDrawer/CEDrawer.d.ts +12 -0
- package/dist/components/Common/CESnackBar/CESnackBar.d.ts +14 -0
- package/dist/components/Common/CESnackBar/CESnackBarProvider.d.ts +10 -0
- package/dist/components/Common/CEStepper/CEStepper.d.ts +18 -0
- package/dist/components/Common/CEStepper/CEstepForm.d.ts +14 -0
- package/dist/components/Common/CheckBox/CECheckBox.d.ts +9 -0
- package/dist/components/Common/ChipInput/CEChipInput.d.ts +7 -0
- package/dist/components/Common/Confirmation/CEMessagePopUp.d.ts +12 -0
- package/dist/components/Common/Dailog/CEDialogBox.d.ts +31 -0
- package/dist/components/Common/DataGrid/CEDataGridDynamicsTable.d.ts +6 -0
- package/dist/components/Common/DataGrid/CEDataGridStyleTable.d.ts +3 -0
- package/dist/components/Common/DataGrid/CEDataTable.d.ts +18 -0
- package/dist/components/Common/DatePicker/CEDateInput.d.ts +13 -0
- package/dist/components/Common/DatePicker/CEDatePicker.d.ts +7 -0
- package/dist/components/Common/Edit/Edit.d.ts +2 -0
- package/dist/components/Common/Footer/CEFooter.d.ts +3 -0
- package/dist/components/Common/FormInput.d.ts +8 -0
- package/dist/components/Common/GridLayout/CEGridLayout.d.ts +16 -0
- package/dist/components/Common/Header/AvatarMenu.d.ts +3 -0
- package/dist/components/Common/Header/CEHeader.d.ts +20 -0
- package/dist/components/Common/Header/GridMenuButton.d.ts +3 -0
- package/dist/components/Common/Header/HamburgerButton.d.ts +6 -0
- package/dist/components/Common/Header/HelpButton.d.ts +3 -0
- package/dist/components/Common/Header/Logo.d.ts +8 -0
- package/dist/components/Common/Header/NotificationButton.d.ts +3 -0
- package/dist/components/Common/Header/SearchBar.d.ts +8 -0
- package/dist/components/Common/Header/SearchButton.d.ts +6 -0
- package/dist/components/Common/Header/UserInfo.d.ts +7 -0
- package/dist/components/Common/InputBox/CEInputTextBox.d.ts +18 -0
- package/dist/components/Common/InputDropDown/InputDropDown.d.ts +12 -0
- package/dist/components/Common/LinearProgressBar/LinearBar.d.ts +9 -0
- package/dist/components/Common/Login/CELogin.d.ts +3 -0
- package/dist/components/Common/Menu/CEMenuBar.d.ts +14 -0
- package/dist/components/Common/NewStepper/CEStepper.d.ts +18 -0
- package/dist/components/Common/NewStepper/CEstepForm.d.ts +14 -0
- package/dist/components/Common/Pagination/CEPagination.d.ts +8 -0
- package/dist/components/Common/RadioButton/CERadioButton.d.ts +9 -0
- package/dist/components/Common/RadioButton/CERadioButtonGroup.d.ts +13 -0
- package/dist/components/Common/RichTextBox/CERichText.d.ts +14 -0
- package/dist/components/Common/TabView/CETabView.d.ts +7 -0
- package/dist/components/Common/Template/CETemplate.d.ts +22 -0
- package/dist/components/Common/Timepicker/CETimePicker.d.ts +8 -0
- package/dist/components/Common/TransferListNew/CETransferButton.d.ts +8 -0
- package/dist/components/Common/TransferListNew/CETransferItem.d.ts +8 -0
- package/dist/components/Common/TransferListNew/CETransferList.d.ts +14 -0
- package/dist/components/Common/useEscapeKey.d.ts +3 -0
- package/dist/index.d.ts +34 -0
- package/dist/main.d.ts +0 -0
- package/dist/stories/Button.d.ts +7 -0
- package/dist/stories/DataTable.d.ts +19 -0
- package/dist/stories/DataTableUtils.d.ts +2 -0
- package/dist/stories/Dropdown.d.ts +11 -0
- package/dist/stories/theme.d.ts +2 -0
- package/package.json +12 -35
- package/dist/cecomponent.cjs.js +0 -56
- package/dist/cecomponent.umd.js +0 -56
- /package/dist/{cecomponent.css → ce-component-lib.css} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Item {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface TransferListProps {
|
|
7
|
+
dataUrl: string;
|
|
8
|
+
onTransfer: (chosen: Item[], available: Item[]) => void;
|
|
9
|
+
containerClass?: string;
|
|
10
|
+
boxClass?: string;
|
|
11
|
+
buttonClass?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const TransferList: React.FC<TransferListProps>;
|
|
14
|
+
export default TransferList;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { default as CEBreadcrumbs } from './components/Common/Breadcrumb/CEBreadcrumbs';
|
|
2
|
+
export { default as CEButton } from './components/Common/Button/CEButton';
|
|
3
|
+
export { default as CEDrawer } from './components/Common/CEDrawer/CEDrawer';
|
|
4
|
+
export { default as CESnackBar } from './components/Common/CESnackBar/CESnackBar';
|
|
5
|
+
export { default as CEStepper } from './components/Common/CEStepper/CEStepper';
|
|
6
|
+
export { default as CECheckbox } from './components/Common/CheckBox/CECheckBox';
|
|
7
|
+
export { default as CEChipInput } from './components/Common/ChipInput/CEChipInput';
|
|
8
|
+
export { default as CEMessageModal } from './components/Common/Confirmation/CEMessagePopUp';
|
|
9
|
+
export { default as CEDialogBox } from './components/Common/Dailog/CEDialogBox';
|
|
10
|
+
export { default as CEDataGridDynamicTable } from './components/Common/DataGrid/CEDataGridDynamicsTable';
|
|
11
|
+
export { default as CEDatePicker } from './components/Common/DatePicker/CEDatePicker';
|
|
12
|
+
export { default as CEFooter } from './components/Common/Footer/CEFooter';
|
|
13
|
+
export { CEGridLayout } from './components/Common/GridLayout/CEGridLayout';
|
|
14
|
+
export { default as CEHeader } from './components/Common/Header/CEHeader';
|
|
15
|
+
export { default as CEAvatarMenu } from './components/Common/Header/AvatarMenu';
|
|
16
|
+
export { default as CEGridMenuButton } from './components/Common/Header/GridMenuButton';
|
|
17
|
+
export { default as CEHamburgerButton } from './components/Common/Header/HamburgerButton';
|
|
18
|
+
export { default as CELogo } from './components/Common/Header/Logo';
|
|
19
|
+
export { default as CENotificationButton } from './components/Common/Header/NotificationButton';
|
|
20
|
+
export { default as CESearchBar } from './components/Common/Header/SearchBar';
|
|
21
|
+
export { default as CESearchButton } from './components/Common/Header/SearchButton';
|
|
22
|
+
export { default as CEUserInfo } from './components/Common/Header/UserInfo';
|
|
23
|
+
export { default as CEInputBox } from './components/Common/InputBox/CEInputTextBox';
|
|
24
|
+
export { default as CEInputDropDown } from './components/Common/InputDropDown/InputDropDown';
|
|
25
|
+
export { default as CELinearProgressBar } from './components/Common/LinearProgressBar/LinearBar';
|
|
26
|
+
export { default as CEMenuBar } from './components/Common/Menu/CEMenuBar';
|
|
27
|
+
export { default as CEPagination } from './components/Common/Pagination/CEPagination';
|
|
28
|
+
export { default as CERadioGroup } from './components/Common/RadioButton/CERadioButtonGroup';
|
|
29
|
+
export { default as CERadioButton } from './components/Common/RadioButton/CERadioButton';
|
|
30
|
+
export { CERichTextEditor } from './components/Common/RichTextBox/CERichText';
|
|
31
|
+
export { default as CETabView } from './components/Common/TabView/CETabView';
|
|
32
|
+
export { default as CETimePicker } from './components/Common/Timepicker/CETimePicker';
|
|
33
|
+
export { default as TransferList } from './components/Common/TransferListNew/CETransferList';
|
|
34
|
+
export { default as CETransferButton } from './components/Common/TransferListNew/CETransferButton';
|
package/dist/main.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface Data {
|
|
2
|
+
id: number;
|
|
3
|
+
movieName: string;
|
|
4
|
+
director: string;
|
|
5
|
+
year: number;
|
|
6
|
+
rating: number;
|
|
7
|
+
}
|
|
8
|
+
export interface HeadCell {
|
|
9
|
+
id: keyof Data;
|
|
10
|
+
label: string;
|
|
11
|
+
numeric: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface TableProps {
|
|
14
|
+
rows: Data[];
|
|
15
|
+
header: HeadCell[];
|
|
16
|
+
zebraStripped?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const DataTable: (props: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectProps as MuiSelectProps } from '@mui/material';
|
|
2
|
+
type SelectBaseProps = Omit<MuiSelectProps, "">;
|
|
3
|
+
export interface SelectProps extends SelectBaseProps {
|
|
4
|
+
label: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Dropdown: {
|
|
8
|
+
({ label, children, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
defaultProps: {};
|
|
10
|
+
};
|
|
11
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cecomponent",
|
|
3
3
|
"description": "A React component library for building modern UIs for Cleanearth",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"module": "dist/
|
|
4
|
+
"version": "1.0.15",
|
|
5
|
+
"main": "dist/ce-component-lib.js",
|
|
6
|
+
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/cecomponent.es.js",
|
|
11
|
-
"require": "./dist/cecomponent.cjs.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
8
|
"scripts": {
|
|
15
9
|
"dev": "vite",
|
|
16
|
-
"
|
|
17
|
-
"build": "tsc --project tsconfig.build.json && vite build",
|
|
10
|
+
"build": "vite build",
|
|
18
11
|
"lint": "eslint .",
|
|
19
12
|
"preview": "vite preview",
|
|
20
13
|
"storybook": "storybook dev -p 6006",
|
|
21
14
|
"build-storybook": "storybook build"
|
|
22
15
|
},
|
|
23
|
-
|
|
24
16
|
"files": [
|
|
25
17
|
"dist"
|
|
26
18
|
],
|
|
@@ -36,52 +28,37 @@
|
|
|
36
28
|
"@mui/material": "^6.4.8",
|
|
37
29
|
"@mui/styled-engine-sc": "^6.4.0",
|
|
38
30
|
"@mui/x-date-pickers": "^7.24.0",
|
|
39
|
-
"@storybook/addon-links": "^8.5.1",
|
|
40
|
-
"@storybook/addon-themes": "^8.5.0",
|
|
41
31
|
"axios": "^1.7.9",
|
|
42
32
|
"lottie-react": "^2.4.1",
|
|
43
33
|
"lucide-react": "^0.476.0",
|
|
44
34
|
"material-react-table": "^3.1.0",
|
|
45
|
-
"
|
|
35
|
+
"path": "^0.12.7",
|
|
46
36
|
"react-bootstrap-icons": "^1.11.5",
|
|
47
|
-
"react-dom": "^18.3.1",
|
|
48
37
|
"react-icons": "^5.5.0",
|
|
49
38
|
"react-ripples": "^2.2.1",
|
|
50
39
|
"react-router-dom": "^7.3.0",
|
|
51
40
|
"recharts": "^2.15.1",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
41
|
+
"styled-components": "^6.1.14",
|
|
42
|
+
"url": "^0.11.4",
|
|
43
|
+
"vite-plugin-dts": "^4.5.4"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": "^19.1.0",
|
|
47
|
+
"react-dom": "^19.1.0"
|
|
54
48
|
},
|
|
55
49
|
"devDependencies": {
|
|
56
|
-
"@chromatic-com/storybook": "^3.2.4",
|
|
57
50
|
"@eslint/js": "^9.17.0",
|
|
58
|
-
"@storybook/addon-essentials": "^8.5.0",
|
|
59
|
-
"@storybook/addon-interactions": "^8.5.0",
|
|
60
|
-
"@storybook/addon-onboarding": "^8.5.0",
|
|
61
|
-
"@storybook/blocks": "^8.5.0",
|
|
62
|
-
"@storybook/react": "^8.5.0",
|
|
63
|
-
"@storybook/react-vite": "^8.5.0",
|
|
64
|
-
"@storybook/test": "^8.5.0",
|
|
65
|
-
"@types/node": "^22.15.29",
|
|
66
51
|
"@types/react": "^18.3.20",
|
|
67
52
|
"@types/react-dom": "^18.3.6",
|
|
68
53
|
"@types/recharts": "^1.8.29",
|
|
69
|
-
"@vitejs/plugin-react": "^4.5.1",
|
|
70
54
|
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
71
55
|
"eslint": "^9.17.0",
|
|
72
56
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
73
57
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
74
|
-
"eslint-plugin-storybook": "^0.11.2",
|
|
75
58
|
"globals": "^15.14.0",
|
|
76
59
|
"prettier": "3.4.2",
|
|
77
|
-
"storybook": "^8.5.0",
|
|
78
60
|
"typescript": "~5.6.2",
|
|
79
61
|
"typescript-eslint": "^8.18.2",
|
|
80
62
|
"vite": "^6.0.5"
|
|
81
|
-
},
|
|
82
|
-
"eslintConfig": {
|
|
83
|
-
"extends": [
|
|
84
|
-
"plugin:storybook/recommended"
|
|
85
|
-
]
|
|
86
63
|
}
|
|
87
64
|
}
|