@touchtech/baselayer-ui 5.0.0 → 5.2.0
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/dist/components/ColorSwatch/ColorSwatch.d.ts +3 -2
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/dist/components/Dropdown/Clickable.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.d.ts +0 -1
- package/dist/components/Numpad/Numpad.d.ts +7 -0
- package/dist/components/Numpad/Numpad.stories.d.ts +5 -0
- package/dist/components/Numpad/Numpad.test.d.ts +1 -0
- package/dist/components/Numpad/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -25
- package/dist/styles.css +47 -1
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
import { Color } from "../../types";
|
|
2
|
+
import { Color, Size } from "../../types";
|
|
3
3
|
declare type ColorSwatchProps = {
|
|
4
4
|
color: Color;
|
|
5
5
|
containerRef?: RefObject<HTMLButtonElement>;
|
|
6
6
|
isSelected?: boolean;
|
|
7
|
+
size?: Size;
|
|
7
8
|
onClick?: () => void;
|
|
8
9
|
};
|
|
9
|
-
declare function ColorSwatch({ color, containerRef,
|
|
10
|
+
declare function ColorSwatch({ color, containerRef, isSelected, size, onClick, }: ColorSwatchProps): JSX.Element;
|
|
10
11
|
export default ColorSwatch;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Item, RenderDisplayProps } from "./Dropdown";
|
|
3
|
-
export declare type ClickableProps<T extends Item> = Omit<RenderDisplayProps<T>, "toggleIsOpen"> & {
|
|
4
|
-
onClick:
|
|
3
|
+
export declare type ClickableProps<T extends Item> = Omit<RenderDisplayProps<T>, "selectedItem" | "toggleIsOpen"> & {
|
|
4
|
+
onClick: RenderDisplayProps<T>["toggleIsOpen"];
|
|
5
5
|
};
|
|
6
|
-
export declare function Clickable<T extends Item>({ display, isDisabled, onClick: handleClick,
|
|
6
|
+
export declare function Clickable<T extends Item>({ display, isDisabled, onClick: handleClick, }: ClickableProps<T>): JSX.Element;
|
|
@@ -21,4 +21,3 @@ export interface DropdownProps<T extends Item> {
|
|
|
21
21
|
selectedItem: T | null;
|
|
22
22
|
}
|
|
23
23
|
export declare function Dropdown<T extends Item>({ itemBodyRenderer, items, onSelect: handleSelect, display, renderClickable, selectedItem, }: DropdownProps<T>): JSX.Element;
|
|
24
|
-
export default Dropdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Numpad } from "./Numpad";
|
package/dist/index.d.ts
CHANGED