@cgi-learning-hub/ui 1.5.1-dev.1745933597 → 1.5.1-dev.1746006454

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,2 +1,3 @@
1
1
  export * from './ColorPicker';
2
2
  export { default as ColorPicker } from './ColorPicker';
3
+ export * from './types';
@@ -2,18 +2,18 @@ import { ClickAwayListenerProps } from '@mui/material';
2
2
  import { SVGAttributes } from 'react';
3
3
  import { CirclePickerProps } from 'react-color';
4
4
  export type HexaColor = `#${string}`;
5
- export type CirclePickerSlotProps = {
6
- clickAwayListener?: Omit<ClickAwayListenerProps, 'onClickAway' | 'children'>;
7
- circlePicker?: Omit<CirclePickerProps, 'colors' | 'color' | 'onChange'>;
5
+ export type ColorPickerSlotProps = {
6
+ clickAwayListener?: Omit<ClickAwayListenerProps, "onClickAway" | "children">;
7
+ circlePicker?: Omit<CirclePickerProps, "colors" | "color" | "onChange">;
8
8
  };
9
9
  export type ColorPickerProps = {
10
+ value: HexaColor;
10
11
  disabled?: boolean;
11
12
  options?: string[];
12
- value: string;
13
- onChange: (newColor: HexaColor) => void;
14
- slotProps?: CirclePickerSlotProps;
13
+ slotProps?: ColorPickerSlotProps;
14
+ onChange: (value: HexaColor) => void;
15
15
  };
16
16
  export type PickerBackGroundBoxProps = {
17
- disabled: boolean | undefined;
17
+ disabled?: boolean;
18
18
  };
19
19
  export type CustomSVGProps = SVGAttributes<SVGSVGElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.5.1-dev.1745933597",
3
+ "version": "1.5.1-dev.1746006454",
4
4
  "private": false,
5
5
  "author": "CGI Learning-hub Team",
6
6
  "description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",