@sikka/hawa 0.0.101 → 0.0.102
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/styles.css +3 -0
- package/es/elements/DraggableCard.d.ts +2 -2
- package/es/elements/HawaCheckbox.d.ts +4 -4
- package/es/elements/HawaChip.d.ts +3 -3
- package/es/elements/HawaColorPicker.d.ts +1 -1
- package/es/elements/HawaCopyrights.d.ts +4 -2
- package/es/elements/HawaDrawer.d.ts +18 -8
- package/es/elements/HawaMenu.d.ts +19 -13
- package/es/elements/HawaModal.d.ts +6 -7
- package/es/elements/HawaRange.d.ts +2 -0
- package/es/elements/HawaSettingsRow.d.ts +14 -1
- package/es/index.es.js +1 -1
- package/lib/elements/DraggableCard.d.ts +2 -2
- package/lib/elements/HawaCheckbox.d.ts +4 -4
- package/lib/elements/HawaChip.d.ts +3 -3
- package/lib/elements/HawaColorPicker.d.ts +1 -1
- package/lib/elements/HawaCopyrights.d.ts +4 -2
- package/lib/elements/HawaDrawer.d.ts +18 -8
- package/lib/elements/HawaMenu.d.ts +19 -13
- package/lib/elements/HawaModal.d.ts +6 -7
- package/lib/elements/HawaRange.d.ts +2 -0
- package/lib/elements/HawaSettingsRow.d.ts +14 -1
- package/lib/index.js +1 -1
- package/package.json +3 -2
- package/rollup.config.js +4 -0
- package/src/elements/DraggableCard.tsx +2 -2
- package/src/elements/HawaCheckbox.tsx +11 -6
- package/src/elements/HawaChip.tsx +3 -3
- package/src/elements/HawaColorPicker.tsx +2 -2
- package/src/elements/HawaCopyrights.tsx +8 -15
- package/src/elements/HawaDrawer.tsx +42 -23
- package/src/elements/HawaMenu.tsx +24 -17
- package/src/elements/HawaModal.tsx +20 -21
- package/src/elements/HawaRange.tsx +2 -0
- package/src/elements/HawaSettingsRow.tsx +29 -38
- package/src/elements/HawaTabs.tsx +1 -1
- package/src/styles.css +3 -0
- package/storybook-static/{733.8d2de9f8.iframe.bundle.js → 209.3141149a.iframe.bundle.js} +2 -2
- package/storybook-static/{733.8d2de9f8.iframe.bundle.js.LICENSE.txt → 209.3141149a.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.2fac3c3c.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/main.71507dcb.iframe.bundle.js +0 -1
package/dist/styles.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
type
|
|
3
|
-
centered?:
|
|
2
|
+
type TCheckBoxTypes = {
|
|
3
|
+
centered?: boolean;
|
|
4
4
|
label?: any;
|
|
5
5
|
helperText?: any;
|
|
6
|
-
onChange?:
|
|
6
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const HawaCheckbox: React.FunctionComponent<
|
|
8
|
+
export declare const HawaCheckbox: React.FunctionComponent<TCheckBoxTypes>;
|
|
9
9
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type CopyRightsTypes = {
|
|
3
|
-
withLogo:
|
|
3
|
+
withLogo: boolean;
|
|
4
4
|
lang: any;
|
|
5
|
-
version:
|
|
5
|
+
version: string;
|
|
6
|
+
credits: string;
|
|
7
|
+
logoURL: string;
|
|
6
8
|
};
|
|
7
9
|
export declare const HawaCopyrights: React.FunctionComponent<CopyRightsTypes>;
|
|
8
10
|
export {};
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type
|
|
3
|
-
open:
|
|
1
|
+
import React, { FC, ReactElement, ReactNode } from "react";
|
|
2
|
+
type TDrawerTypes = {
|
|
3
|
+
open: boolean;
|
|
4
4
|
setOpen: any;
|
|
5
5
|
position: any;
|
|
6
6
|
heading: any;
|
|
7
|
-
children
|
|
7
|
+
children?: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export declare const HawaDrawer: React.FunctionComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export declare const HawaDrawer: React.FunctionComponent<TDrawerTypes>;
|
|
10
|
+
type TDrawerHeader = {
|
|
11
|
+
setOpen: any;
|
|
12
|
+
children: ReactElement;
|
|
13
|
+
};
|
|
14
|
+
export declare const DrawerHeader: FC<TDrawerHeader>;
|
|
15
|
+
type TDrawerBody = {
|
|
16
|
+
children: ReactElement;
|
|
17
|
+
};
|
|
18
|
+
export declare const DrawerBody: (props: TDrawerBody) => JSX.Element;
|
|
19
|
+
type TDrawerFooter = {
|
|
20
|
+
children: ReactElement;
|
|
21
|
+
};
|
|
22
|
+
export declare const DrawerFooter: (props: TDrawerFooter) => JSX.Element;
|
|
13
23
|
export {};
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface TMenuTypes {
|
|
3
3
|
popMenuID: any;
|
|
4
|
-
menuItems:
|
|
5
|
-
withHeader
|
|
6
|
-
withIcons
|
|
7
|
-
headerTitle
|
|
8
|
-
headerSubtitle
|
|
9
|
-
open:
|
|
10
|
-
handleClose:
|
|
11
|
-
anchor
|
|
12
|
-
children
|
|
13
|
-
buttonPosition
|
|
4
|
+
menuItems: MenuItems[][];
|
|
5
|
+
withHeader?: boolean;
|
|
6
|
+
withIcons?: boolean;
|
|
7
|
+
headerTitle?: string;
|
|
8
|
+
headerSubtitle?: string;
|
|
9
|
+
open: boolean;
|
|
10
|
+
handleClose: (e: boolean) => void;
|
|
11
|
+
anchor?: any;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
buttonPosition?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
14
|
+
}
|
|
15
|
+
type MenuItems = {
|
|
16
|
+
icon?: JSX.Element;
|
|
17
|
+
label: string;
|
|
18
|
+
action?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, item: string) => void;
|
|
19
|
+
isButton?: boolean;
|
|
14
20
|
};
|
|
15
|
-
export declare const HawaMenu: React.FunctionComponent<
|
|
21
|
+
export declare const HawaMenu: React.FunctionComponent<TMenuTypes>;
|
|
16
22
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
type ModalTypes = {
|
|
3
|
-
open:
|
|
4
|
-
title:
|
|
5
|
-
onClose:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
children: any;
|
|
3
|
+
open: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
modalID?: string;
|
|
7
|
+
children: ReactElement;
|
|
9
8
|
actions: any;
|
|
10
9
|
};
|
|
11
10
|
export declare const HawaModal: React.FunctionComponent<ModalTypes>;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type SettingsRowTypes = {
|
|
3
3
|
settingsLabel: any;
|
|
4
|
-
settingsType:
|
|
4
|
+
settingsType: "checkbox" | "text" | "radio" | "boolean" | "color" | "range";
|
|
5
|
+
radioProps: {
|
|
6
|
+
defaultValue: any;
|
|
7
|
+
onChangeTab: any;
|
|
8
|
+
options: any;
|
|
9
|
+
};
|
|
10
|
+
colorProps: {
|
|
11
|
+
color?: any;
|
|
12
|
+
handleChange?: any;
|
|
13
|
+
};
|
|
14
|
+
rangeProps: {
|
|
15
|
+
min?: any;
|
|
16
|
+
max?: any;
|
|
17
|
+
};
|
|
5
18
|
};
|
|
6
19
|
export declare const HawaSettingsRow: React.FunctionComponent<SettingsRowTypes>;
|
|
7
20
|
export {};
|