@appkit/dek-lib 0.26.0 → 0.28.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/index.es.js +629 -299
- package/dist/index.umd.js +629 -299
- package/dist/plugins/base/components/backgrounds/SlantBackground/SlantBackground.d.ts +7 -0
- package/dist/plugins/base/components/backgrounds/SlantBackground/SlantBackground.styled.d.ts +15 -0
- package/dist/plugins/base/components/backgrounds/WaveBackground/WaveBackground.d.ts +8 -0
- package/dist/plugins/base/components/backgrounds/WaveBackground/WaveBackground.styled.d.ts +16 -0
- package/dist/plugins/home-assistant/EntityButton/EntityButton.d.ts +2 -1
- package/dist/plugins/home-assistant/MediaButton/MediaButton.d.ts +2 -1
- package/dist/plugins/home-assistant/SensorCard/SensorCard.d.ts +9 -0
- package/dist/plugins/home-assistant/plugin.d.ts +4 -0
- package/dist/plugins/home-assistant/screens/EntitiesScreen/EntitiesScreen.d.ts +2 -0
- package/package.json +1 -1
- package/dist/plugins/homekit/HomekitButton.d.ts +0 -8
- package/dist/plugins/homekit/api/accessories.d.ts +0 -6
- package/dist/plugins/homekit/constants.d.ts +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type ContainerProps = {
|
|
3
|
+
$colorStart: string;
|
|
4
|
+
$colorEnd: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
|
|
7
|
+
export type SlantProps = {
|
|
8
|
+
$speed: number;
|
|
9
|
+
$colorStart: string;
|
|
10
|
+
$colorEnd: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Slant1: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SlantProps>>;
|
|
13
|
+
export declare const Slant2: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SlantProps>>;
|
|
14
|
+
export declare const Slant3: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SlantProps>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type ContainerProps = {
|
|
3
|
+
$colorStart: string;
|
|
4
|
+
$colorEnd: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
|
|
7
|
+
export type OceanProps = {
|
|
8
|
+
$height: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const Ocean: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, OceanProps>>;
|
|
11
|
+
export type WaveProps = {
|
|
12
|
+
$speed: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const Wave1: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WaveProps>>;
|
|
15
|
+
export declare const Wave2: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WaveProps>>;
|
|
16
|
+
export {};
|
|
@@ -4,6 +4,7 @@ type Props = {
|
|
|
4
4
|
entityId: string;
|
|
5
5
|
iconName?: string;
|
|
6
6
|
variant?: ButtonVariant;
|
|
7
|
+
square?: boolean;
|
|
7
8
|
};
|
|
8
|
-
declare const EntityButton: ({ title, entityId, iconName, variant, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const EntityButton: ({ title, entityId, iconName, variant, square, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default EntityButton;
|
|
@@ -3,6 +3,7 @@ type Props = {
|
|
|
3
3
|
entityId: string;
|
|
4
4
|
title?: string;
|
|
5
5
|
variant?: ButtonVariant;
|
|
6
|
+
square?: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare const MediaButton: ({ entityId, title, variant }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const MediaButton: ({ entityId, title, variant, square, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default MediaButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
entityId: string;
|
|
4
|
+
iconName?: string;
|
|
5
|
+
clear?: boolean;
|
|
6
|
+
square?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const SensorCard: ({ title, entityId, iconName, clear, square, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SensorCard;
|
|
@@ -8,5 +8,9 @@ declare class Plugin implements DekPlugin {
|
|
|
8
8
|
key: string;
|
|
9
9
|
element: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
}[];
|
|
11
|
+
get screens(): {
|
|
12
|
+
path: string;
|
|
13
|
+
element: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
}[];
|
|
11
15
|
}
|
|
12
16
|
export default Plugin;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type AccessoryState = 0 | 1;
|
|
2
|
-
export type Accessory = {
|
|
3
|
-
state: AccessoryState;
|
|
4
|
-
};
|
|
5
|
-
export declare const getAccessory: (uuid: string) => Promise<Accessory>;
|
|
6
|
-
export declare const setAccessoryState: (uuid: string, state: AccessoryState) => Promise<Accessory>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const serverUri = "https://connect.daveweaver.net";
|