@wavv/ui 1.5.0 → 1.5.2
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/build/cjs/index.js +2 -2
- package/build/cjs/types/components/Accordion.d.ts +3 -3
- package/build/cjs/types/components/Button/ButtonTypes.d.ts +2 -0
- package/build/cjs/types/hooks/useConfirm.d.ts +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/types/components/Accordion.d.ts +3 -3
- package/build/esm/types/components/Button/ButtonTypes.d.ts +2 -0
- package/build/esm/types/hooks/useConfirm.d.ts +1 -1
- package/build/index.d.ts +6 -4
- package/package.json +1 -1
|
@@ -19,11 +19,11 @@ type AccordionProps = {
|
|
|
19
19
|
/** The background color of Item drawers */
|
|
20
20
|
innerBackground?: string;
|
|
21
21
|
/** The width of the Accordion */
|
|
22
|
-
width?: number;
|
|
22
|
+
width?: number | string;
|
|
23
23
|
/** The maxHeight of the Accordion. Drawers will scroll to accommodate */
|
|
24
|
-
maxHeight?: number;
|
|
24
|
+
maxHeight?: number | string;
|
|
25
25
|
/** The height of the Accordion. Drawers will scroll to accommodate */
|
|
26
|
-
height?: number;
|
|
26
|
+
height?: number | string;
|
|
27
27
|
} & Margin;
|
|
28
28
|
declare const Accordion: {
|
|
29
29
|
({ children, defaultItem, preventCollapse, triggers, spaced, background, innerBackground, width, maxHeight, height, ...rest }: AccordionProps): JSX.Element;
|
|
@@ -17,6 +17,8 @@ type ButtonBaseProps = {
|
|
|
17
17
|
icon?: IconNames;
|
|
18
18
|
/** Positions the icon to the left or right of the button text */
|
|
19
19
|
iconPosition?: 'left' | 'right';
|
|
20
|
+
/** Sets the icon's color independently of the button's color */
|
|
21
|
+
iconColor?: string;
|
|
20
22
|
/** Defines the size of the button */
|
|
21
23
|
size?: 'small' | 'medium' | 'large';
|
|
22
24
|
/** Reduces the size of the button */
|
|
@@ -10,5 +10,5 @@ type Props = {
|
|
|
10
10
|
inputValue?: string;
|
|
11
11
|
negative?: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const useConfirm: ({ header, text, cancelText, confirmText, negative, input, inputLabel, inputPlaceholder, inputValue, }
|
|
13
|
+
declare const useConfirm: ({ header, text, cancelText, confirmText, negative, input, inputLabel, inputPlaceholder, inputValue, }?: Props) => readonly [() => Promise<boolean | string>, () => JSX.Element];
|
|
14
14
|
export default useConfirm;
|