cecomponent 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,9 @@
1
1
  import { default as React } from 'react';
2
+ import { Size } from '../Tokens/CESizes';
3
+ type ButtonVariant = "primary" | "secondary" | "text" | "neutral" | "outlined" | "outlinedGreen" | "disabled";
2
4
  interface CEButtonProps {
3
- variant?: "primary" | "secondary" | "text" | "neutral" | "outlined" | "outlinedGreen" | "disabled";
5
+ variant?: ButtonVariant;
6
+ size?: Size;
4
7
  onClick: () => void;
5
8
  children: React.ReactNode;
6
9
  className?: string;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { Size } from '../Tokens/CESizes';
2
3
  interface AutoSuggestInputProps {
3
4
  label: string;
4
5
  placeholder?: string;
@@ -8,6 +9,7 @@ interface AutoSuggestInputProps {
8
9
  width?: string;
9
10
  height?: string;
10
11
  style?: React.CSSProperties;
12
+ size?: Size;
11
13
  }
12
14
  declare const CEAutoSuggestInput: React.FC<AutoSuggestInputProps>;
13
15
  export default CEAutoSuggestInput;
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { Size } from '../Tokens/CESizes';
2
3
  type CustomModalProps = {
3
4
  isOpen: boolean;
4
5
  onClose: () => void;
@@ -8,6 +9,7 @@ type CustomModalProps = {
8
9
  secondaryButtonText?: string;
9
10
  onPrimaryClick?: () => void;
10
11
  onSecondaryClick?: () => void;
12
+ size?: Size;
11
13
  };
12
- declare const CustomModal: React.FC<CustomModalProps>;
13
- export default CustomModal;
14
+ declare const CECustomModal: React.FC<CustomModalProps>;
15
+ export default CECustomModal;
@@ -1,11 +1,13 @@
1
1
  import { default as React } from 'react';
2
+ import { Size } from '../Tokens/CESizes';
2
3
  interface DateRange {
3
4
  startDate: string;
4
5
  endDate: string;
5
6
  }
6
- interface DateRangePickerProps {
7
+ interface CEDateRangePickerProps {
7
8
  label?: string;
8
9
  onChange?: (range: DateRange) => void;
10
+ size?: Size;
9
11
  }
10
- declare const DateRangePicker: React.FC<DateRangePickerProps>;
11
- export default DateRangePicker;
12
+ declare const CEDateRangePicker: React.FC<CEDateRangePickerProps>;
13
+ export default CEDateRangePicker;
@@ -0,0 +1,6 @@
1
+ export type Size = 'small' | 'medium' | 'large';
2
+ export declare const sizeTokens: Record<Size, {
3
+ fontSize: string;
4
+ padding: string;
5
+ }>;
6
+ export declare const getSizeStyle: (size: Size) => React.CSSProperties;
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.22",
4
+ "version": "1.0.23",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",