cecomponent 1.0.99 → 1.0.101

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.
@@ -6,7 +6,7 @@ interface CEButtonProps {
6
6
  variant?: ButtonVariant;
7
7
  size?: Size;
8
8
  onClick: () => void;
9
- children: React.ReactNode;
9
+ children?: React.ReactNode;
10
10
  className?: string;
11
11
  sx?: React.CSSProperties;
12
12
  color?: string;
@@ -0,0 +1,15 @@
1
+ declare const radialData: {
2
+ name: string;
3
+ value: number;
4
+ className: string;
5
+ }[];
6
+ interface CEActivityGaugeProps {
7
+ size?: "xs" | "sm" | "md" | "lg";
8
+ title?: string;
9
+ subtitle?: string;
10
+ data?: typeof radialData;
11
+ className?: string;
12
+ showLegend?: boolean;
13
+ }
14
+ export declare const CEActivityGauge: ({ size, title, subtitle, data, className, showLegend, }: CEActivityGaugeProps) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,26 @@
1
+ declare const barData: {
2
+ month: Date;
3
+ A: number;
4
+ B: number;
5
+ C: number;
6
+ }[];
7
+ interface CEBarChartProps {
8
+ data?: typeof barData;
9
+ className?: string;
10
+ colors?: Record<string, string>;
11
+ showLegend?: boolean;
12
+ showGrid?: boolean;
13
+ }
14
+ export declare const CEBarChart: ({ data, className, colors, showLegend, showGrid, }: CEBarChartProps) => import("react/jsx-runtime").JSX.Element;
15
+ interface CEBarChart02Props {
16
+ data?: Array<{
17
+ A: number;
18
+ B: number;
19
+ date: string;
20
+ }>;
21
+ className?: string;
22
+ colors?: Record<string, string>;
23
+ showGrid?: boolean;
24
+ }
25
+ export declare const CEBarChart02: ({ data, className, colors, showGrid, }: CEBarChart02Props) => import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1 @@
1
+ export declare const CEChartsDemo: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ declare const lineData: {
2
+ date: Date;
3
+ A: number;
4
+ B: number;
5
+ C: number;
6
+ }[];
7
+ interface CELineChartProps {
8
+ data?: typeof lineData;
9
+ height?: number;
10
+ className?: string;
11
+ colors?: Record<string, string>;
12
+ showLegend?: boolean;
13
+ showGrid?: boolean;
14
+ }
15
+ export declare const CELineChart: ({ data, className, colors, showLegend, showGrid, }: Omit<CELineChartProps, "height">) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const CELineChart02: ({ data, className, colors, showLegend, showGrid, }: Omit<CELineChartProps, "height">) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,15 @@
1
+ declare const lineData: {
2
+ date: Date;
3
+ A: number;
4
+ B: number;
5
+ C: number;
6
+ }[];
7
+ interface CELineChart03Props {
8
+ data?: typeof lineData;
9
+ className?: string;
10
+ colors?: Record<string, string>;
11
+ showLegend?: boolean;
12
+ showGrid?: boolean;
13
+ }
14
+ export declare const CELineChart03: ({ data, className, colors, showLegend, showGrid, }: CELineChart03Props) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,15 @@
1
+ declare const lineData: {
2
+ date: Date;
3
+ A: number;
4
+ B: number;
5
+ C: number;
6
+ }[];
7
+ interface CELineChart04Props {
8
+ data?: typeof lineData;
9
+ className?: string;
10
+ colors?: Record<string, string>;
11
+ showLegend?: boolean;
12
+ showGrid?: boolean;
13
+ }
14
+ export declare const CELineChart04: ({ data, className, colors, showLegend, showGrid, }: CELineChart04Props) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,17 @@
1
+ declare const pieChartData: {
2
+ name: string;
3
+ value: number;
4
+ className: string;
5
+ }[];
6
+ interface CEPieChartProps {
7
+ data?: typeof pieChartData;
8
+ size?: "xxs" | "xs" | "sm" | "md" | "lg";
9
+ className?: string;
10
+ showLegend?: boolean;
11
+ }
12
+ export declare const CEPieChart: ({ data, size, className, showLegend, }: CEPieChartProps) => import("react/jsx-runtime").JSX.Element;
13
+ interface CEDonutChartProps extends CEPieChartProps {
14
+ donut?: boolean;
15
+ }
16
+ export declare const CEDonutChart: ({ data, size, className, showLegend, donut, }: CEDonutChartProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,10 @@
1
+ interface CEProgressCircleProps {
2
+ size?: "xs" | "sm" | "md" | "lg";
3
+ title?: string;
4
+ subtitle?: string;
5
+ value?: number;
6
+ maxValue?: number;
7
+ className?: string;
8
+ }
9
+ export declare const CEProgressCircle: ({ size, title, subtitle, value, maxValue, className, }: CEProgressCircleProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,15 @@
1
+ declare const radarData: {
2
+ subject: string;
3
+ A: number;
4
+ B: number;
5
+ C: number;
6
+ }[];
7
+ interface CERadarChartProps {
8
+ data?: typeof radarData;
9
+ className?: string;
10
+ colors?: Record<string, string>;
11
+ showLegend?: boolean;
12
+ showGrid?: boolean;
13
+ }
14
+ export declare const CERadarChart: ({ data, className, colors, showLegend, showGrid, }: CERadarChartProps) => import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,35 @@
1
+ import { TooltipProps } from 'recharts';
2
+ import { Props as LegendContentProps } from 'recharts/types/component/DefaultLegendContent';
3
+ import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
4
+ import { Props as DotProps } from 'recharts/types/shape/Dot';
5
+ /**
6
+ * Selects evenly spaced items from an array. Used for rendering
7
+ * certain number of x-axis labels.
8
+ * @param dataArray - The array of items to select from.
9
+ * @param count - The number of items to select.
10
+ * @returns The selected items.
11
+ */
12
+ export declare const selectEvenlySpacedItems: <T extends readonly unknown[]>(dataArray: T, count: number) => Array<T[number]>;
13
+ interface ChartLegendContentProps extends LegendContentProps {
14
+ reversed?: boolean;
15
+ className?: string;
16
+ align?: "left" | "center" | "right";
17
+ }
18
+ export declare const ChartLegendContent: ({ payload, verticalAlign, reversed, className, align, }: ChartLegendContentProps) => import("react/jsx-runtime").JSX.Element | null;
19
+ interface ChartTooltipContentProps extends TooltipProps<ValueType, NameType> {
20
+ isRadialChart?: boolean;
21
+ isPieChart?: boolean;
22
+ formatter?: (value: ValueType, name: NameType, props: any, index: number, payload: any) => [string | number | (string | number)[], string?];
23
+ labelFormatter?: (label: any, payload: any) => string;
24
+ }
25
+ export declare const ChartTooltipContent: ({ active, payload, label, isRadialChart, isPieChart, formatter, labelFormatter, }: ChartTooltipContentProps) => import("react/jsx-runtime").JSX.Element | null;
26
+ interface ChartActiveDotProps extends DotProps {
27
+ cx?: number;
28
+ cy?: number;
29
+ }
30
+ export declare const ChartActiveDot: ({ cx, cy }: ChartActiveDotProps) => import("react/jsx-runtime").JSX.Element;
31
+ /**
32
+ * Hook to detect breakpoints (simplified version)
33
+ */
34
+ export declare const useBreakpoint: (size: "sm" | "md" | "lg" | "xl") => boolean;
35
+ export {};
@@ -13,8 +13,11 @@ interface CEFileUploadProps {
13
13
  accept?: string[];
14
14
  initialFiles?: UploadedFile[];
15
15
  showPathColumn?: boolean;
16
+ showType?: boolean;
16
17
  onDelete?: (file: UploadedFile) => void;
17
18
  onDownload?: (file: UploadedFile) => void;
19
+ showPagination?: boolean;
20
+ pageSizeOptions?: Array<number>;
18
21
  }
19
22
  declare const CEFileUploadDocument: React.FC<CEFileUploadProps>;
20
23
  export default CEFileUploadDocument;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ type ToggleYesNoProps = {
3
+ value: string | null;
4
+ onChange: (val: string) => void;
5
+ label?: string;
6
+ };
7
+ declare const CEToggleYesNo: React.FC<ToggleYesNoProps>;
8
+ export default CEToggleYesNo;
@@ -6,6 +6,7 @@ interface ColumnConfig {
6
6
  shouldDisplay?: boolean;
7
7
  shouldVisible?: boolean;
8
8
  width?: string;
9
+ elementType?: "inputtext" | "autosuggestion" | "text";
9
10
  }
10
11
  interface CEDataGridDynamicTableProps {
11
12
  title?: React.ReactNode;
@@ -59,6 +60,7 @@ interface CEDataGridDynamicTableProps {
59
60
  showPagination?: boolean;
60
61
  shouldResetSearchOnDataChange?: boolean;
61
62
  pageSizeOptions?: Array<number>;
63
+ newRowInfo?: any;
62
64
  }
63
65
  declare const CEDataGridDynamicTable: React.FC<CEDataGridDynamicTableProps>;
64
66
  export default CEDataGridDynamicTable;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ type OperatingDaysSelectorProps = {
3
+ selectedDays: string[];
4
+ onChange: (days: string[]) => void;
5
+ };
6
+ declare const CEOperatingDaysSelector: React.FC<OperatingDaysSelectorProps>;
7
+ export default CEOperatingDaysSelector;
package/dist/index.d.ts CHANGED
@@ -49,3 +49,5 @@ export { default as CEChatbox } from './components/Common/CEChatbox/CEChatbox';
49
49
  export { default as CEStatusDropdown } from './components/Common/StatusDropDown/CEStatusDropdown';
50
50
  export { default as CETruncatedTextWithTooltip } from './components/Common/DataGrid/CETruncatedTextWithTooltip';
51
51
  export { default as CESkeletonTable } from './components/Common/DataGrid/CESkeletonTable';
52
+ export { default as CEToggleYesNo } from './components/Common/CEToggleGroup/CEToggleYesNo';
53
+ export { default as CEOperatingDaysSelector } from './components/Common/OperatingDaysSelector/CEOperatingDaysSelector';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "1.0.99",
4
+ "version": "1.0.101",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",