@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;
|
package/build/index.d.ts
CHANGED
|
@@ -574,11 +574,11 @@ type AccordionProps = {
|
|
|
574
574
|
/** The background color of Item drawers */
|
|
575
575
|
innerBackground?: string;
|
|
576
576
|
/** The width of the Accordion */
|
|
577
|
-
width?: number;
|
|
577
|
+
width?: number | string;
|
|
578
578
|
/** The maxHeight of the Accordion. Drawers will scroll to accommodate */
|
|
579
|
-
maxHeight?: number;
|
|
579
|
+
maxHeight?: number | string;
|
|
580
580
|
/** The height of the Accordion. Drawers will scroll to accommodate */
|
|
581
|
-
height?: number;
|
|
581
|
+
height?: number | string;
|
|
582
582
|
} & Margin;
|
|
583
583
|
declare const Accordion: {
|
|
584
584
|
({ children, defaultItem, preventCollapse, triggers, spaced, background, innerBackground, width, maxHeight, height, ...rest }: AccordionProps): JSX.Element;
|
|
@@ -996,6 +996,8 @@ type ButtonBaseProps = {
|
|
|
996
996
|
icon?: IconNames;
|
|
997
997
|
/** Positions the icon to the left or right of the button text */
|
|
998
998
|
iconPosition?: 'left' | 'right';
|
|
999
|
+
/** Sets the icon's color independently of the button's color */
|
|
1000
|
+
iconColor?: string;
|
|
999
1001
|
/** Defines the size of the button */
|
|
1000
1002
|
size?: 'small' | 'medium' | 'large';
|
|
1001
1003
|
/** Reduces the size of the button */
|
|
@@ -2378,7 +2380,7 @@ type Props = {
|
|
|
2378
2380
|
inputValue?: string;
|
|
2379
2381
|
negative?: boolean;
|
|
2380
2382
|
};
|
|
2381
|
-
declare const useConfirm: ({ header, text, cancelText, confirmText, negative, input, inputLabel, inputPlaceholder, inputValue, }
|
|
2383
|
+
declare const useConfirm: ({ header, text, cancelText, confirmText, negative, input, inputLabel, inputPlaceholder, inputValue, }?: Props) => readonly [() => Promise<boolean | string>, () => JSX.Element];
|
|
2382
2384
|
|
|
2383
2385
|
/**
|
|
2384
2386
|
* A React hook that fires a callback whenever ResizeObserver detects a change to its size
|