@dhasdk/simple-ui 1.0.54 → 1.0.55

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/CheckBox.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  import { default as React, InputHTMLAttributes, ReactNode } from 'react';
2
+ type CustomIconSrcMap = Partial<Record<StatusType, string>>;
2
3
  export interface CheckBoxGroupProps {
3
4
  children: ReactNode;
4
5
  bridgeParent?: boolean;
6
+ className?: string;
7
+ classNameSvg?: string;
8
+ classNameInput?: string;
9
+ classNameLabel?: string;
5
10
  fill?: boolean;
6
11
  icon?: boolean;
7
12
  marker?: boolean;
@@ -9,6 +14,7 @@ export interface CheckBoxGroupProps {
9
14
  onChange?: (status: StatusType, name?: string) => void;
10
15
  name?: string;
11
16
  testDataId?: string;
17
+ customIcons?: CustomIconSrcMap;
12
18
  }
13
19
  type StatusType = 'checked' | 'unchecked' | 'indeterminate';
14
20
  type IconType = 'sibling' | 'sibling-child' | 'child' | 'blank';
@@ -21,6 +27,7 @@ export interface CheckBoxProps extends Omit<InputHTMLAttributes<HTMLInputElement
21
27
  level?: number;
22
28
  classNameSvg?: string;
23
29
  classNameInput?: string;
30
+ classNameLabel?: string;
24
31
  iconType?: IconType[];
25
32
  children?: ReactNode;
26
33
  name?: string;
@@ -30,7 +37,8 @@ export interface CheckBoxProps extends Omit<InputHTMLAttributes<HTMLInputElement
30
37
  onChange?: (status: StatusType, name?: string) => void;
31
38
  setStatusUpdate?: (status: StatusType, index: number) => void;
32
39
  testDataId?: string;
40
+ customIcons?: CustomIconSrcMap;
33
41
  }
34
- export declare function CheckBoxGroup({ children, bridgeParent, fill, testDataId, icon, marker, showBranch, onChange }: CheckBoxGroupProps): import("react/jsx-runtime").JSX.Element;
42
+ export declare function CheckBoxGroup({ children, bridgeParent, fill, testDataId, icon, marker, showBranch, onChange, classNameLabel, classNameSvg, classNameInput, className, customIcons }: CheckBoxGroupProps): import("react/jsx-runtime").JSX.Element;
35
43
  export declare const CheckBox: React.ForwardRefExoticComponent<CheckBoxProps & React.RefAttributes<HTMLInputElement>>;
36
44
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhasdk/simple-ui",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "license": "MIT",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",