@appkit/dek-lib 0.2.8 → 0.3.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.
Files changed (34) hide show
  1. package/dist/components/Background/Background.d.ts +1 -5
  2. package/dist/components/CommandGroup/CommandGroup.styled.d.ts +4 -2
  3. package/dist/components/Header/Header.styled.d.ts +3 -3
  4. package/dist/components/Router/Router.styled.d.ts +1 -1
  5. package/dist/components/Zone/Zone.d.ts +2 -0
  6. package/dist/index.es.js +28251 -25083
  7. package/dist/index.umd.js +28274 -25106
  8. package/dist/lib/globals.d.ts +3 -1
  9. package/dist/lib/registry.d.ts +15 -0
  10. package/dist/plugins/base/components/Greeting/Greeting.styled.d.ts +2 -2
  11. package/dist/plugins/base/components/backgrounds/BlobBackground/BlobBackground.d.ts +7 -0
  12. package/dist/plugins/base/components/backgrounds/BlobBackground/BlobBackground.styled.d.ts +11 -0
  13. package/dist/plugins/base/components/backgrounds/BlurredLightsBackground/BlurredLightsBackground.d.ts +7 -0
  14. package/dist/plugins/base/components/backgrounds/BlurredLightsBackground/BlurredLightsBackground.styled.d.ts +5187 -0
  15. package/dist/plugins/base/components/backgrounds/GradientBackground/GradientBackground.d.ts +7 -0
  16. package/dist/plugins/base/components/backgrounds/GradientBackground/GradientBackground.styled.d.ts +8 -0
  17. package/dist/plugins/base/components/backgrounds/ImageBackground/ImageBackground.d.ts +6 -0
  18. package/dist/plugins/base/components/backgrounds/ImageBackground/ImageBackground.styled.d.ts +10 -0
  19. package/dist/plugins/base/plugin.d.ts +4 -3
  20. package/dist/plugins/base/screens/BackgroundsScreen.d.ts +2 -0
  21. package/dist/plugins/base/screens/SettingsScreen/About.d.ts +2 -0
  22. package/dist/plugins/base/screens/SettingsScreen/Backgrounds.d.ts +2 -0
  23. package/dist/plugins/base/screens/SettingsScreen/Boards.d.ts +2 -0
  24. package/dist/plugins/base/screens/SettingsScreen/Messages.d.ts +2 -0
  25. package/dist/plugins/base/screens/SettingsScreen/PluginDev.d.ts +2 -0
  26. package/dist/plugins/base/screens/SettingsScreen/SettingsScreen.d.ts +5 -0
  27. package/dist/plugins/calendar/CalendarTiles/CalendarTiles.styled.d.ts +3 -3
  28. package/dist/plugins/calendar/plugin.d.ts +2 -2
  29. package/dist/plugins/calendar/screens/EventScreen/EventScreen.styled.d.ts +1 -1
  30. package/dist/plugins/home-assistant/MediaView/MediaView.styled.d.ts +7 -5
  31. package/dist/plugins/home-assistant/plugin.d.ts +2 -2
  32. package/dist/plugins/weather/WeatherComponent/WeatherComponent.styled.d.ts +3 -3
  33. package/dist/plugins/weather/WeatherDisplay/WeatherDisplay.styled.d.ts +3 -3
  34. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ colorStart?: string;
3
+ colorEnd?: string;
4
+ speed?: number;
5
+ };
6
+ declare const GradientBackground: ({ colorStart, colorEnd, speed, }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export default GradientBackground;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ type ContainerProps = {
3
+ $colorStart: string;
4
+ $colorEnd: string;
5
+ $speed: number;
6
+ };
7
+ export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ itemKey: string;
3
+ opacity?: number;
4
+ };
5
+ declare const ImageBackground: ({ itemKey, opacity }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default ImageBackground;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ type ContainerProps = {
3
+ $imageUrl: string;
4
+ };
5
+ export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
6
+ type OverlayProps = {
7
+ $opacity: number;
8
+ };
9
+ export declare const Overlay: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, OverlayProps>>;
10
+ export {};
@@ -1,7 +1,8 @@
1
- import { DekPlugin, DekPluginConfig } from '@appkit/dek-plugin';
1
+ import { DekApi, DekPlugin, DekPluginConfig, DekRegistry } from '@appkit/dek-plugin';
2
2
  declare class Plugin implements DekPlugin {
3
- config: DekPluginConfig;
4
- load(config: DekPluginConfig): Promise<void>;
3
+ readonly config: DekPluginConfig;
4
+ constructor(config: DekPluginConfig, registry: DekRegistry);
5
+ load(api: DekApi): Promise<void>;
5
6
  unload(): Promise<void>;
6
7
  get screens(): {
7
8
  path: string;
@@ -0,0 +1,2 @@
1
+ declare const BackgroundsScreen: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BackgroundsScreen;
@@ -0,0 +1,2 @@
1
+ declare const About: () => import("react/jsx-runtime").JSX.Element;
2
+ export default About;
@@ -0,0 +1,2 @@
1
+ declare const Backgrounds: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Backgrounds;
@@ -0,0 +1,2 @@
1
+ declare const Boards: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Boards;
@@ -0,0 +1,2 @@
1
+ declare const Messages: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Messages;
@@ -0,0 +1,2 @@
1
+ declare const PluginDev: () => import("react/jsx-runtime").JSX.Element;
2
+ export default PluginDev;
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ isPluginDev?: boolean;
3
+ };
4
+ declare const SettingsScreen: ({ isPluginDev }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export default SettingsScreen;
@@ -84,7 +84,7 @@ export declare const MoreContainer: import("styled-components").IStyledComponent
84
84
  "aria-modal"?: (boolean | "false" | "true") | undefined;
85
85
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
86
86
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
87
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
87
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
88
88
  "aria-owns"?: string | undefined;
89
89
  "aria-placeholder"?: string | undefined;
90
90
  "aria-posinset"?: number | undefined;
@@ -356,7 +356,7 @@ export declare const MoreSpacer: import("styled-components").IStyledComponent<"w
356
356
  "aria-modal"?: (boolean | "false" | "true") | undefined;
357
357
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
358
358
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
359
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
359
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
360
360
  "aria-owns"?: string | undefined;
361
361
  "aria-placeholder"?: string | undefined;
362
362
  "aria-posinset"?: number | undefined;
@@ -628,7 +628,7 @@ export declare const More: import("styled-components").IStyledComponent<"web", {
628
628
  "aria-modal"?: (boolean | "false" | "true") | undefined;
629
629
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
630
630
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
631
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
631
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
632
632
  "aria-owns"?: string | undefined;
633
633
  "aria-placeholder"?: string | undefined;
634
634
  "aria-posinset"?: number | undefined;
@@ -1,4 +1,4 @@
1
- import { DekPlugin, DekPluginConfig } from '@appkit/dek-plugin';
1
+ import { DekApi, DekPlugin, DekPluginConfig } from '@appkit/dek-plugin';
2
2
  import { CalendarState } from './types';
3
3
  export declare const states: Record<string, CalendarState>;
4
4
  declare class Plugin implements DekPlugin {
@@ -8,7 +8,7 @@ declare class Plugin implements DekPlugin {
8
8
  private emitter;
9
9
  private state;
10
10
  constructor(config: DekPluginConfig);
11
- load(): Promise<void>;
11
+ load(api: DekApi): Promise<void>;
12
12
  unload(): Promise<void>;
13
13
  get screens(): {
14
14
  path: string;
@@ -84,7 +84,7 @@ export declare const Container: import("styled-components").IStyledComponent<"we
84
84
  "aria-modal"?: (boolean | "false" | "true") | undefined;
85
85
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
86
86
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
87
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
87
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
88
88
  "aria-owns"?: string | undefined;
89
89
  "aria-placeholder"?: string | undefined;
90
90
  "aria-posinset"?: number | undefined;
@@ -88,7 +88,7 @@ export declare const CoverArtContainer: import("styled-components").IStyledCompo
88
88
  "aria-modal"?: (boolean | "false" | "true") | undefined;
89
89
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
90
90
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
91
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
91
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
92
92
  "aria-owns"?: string | undefined;
93
93
  "aria-placeholder"?: string | undefined;
94
94
  "aria-posinset"?: number | undefined;
@@ -360,7 +360,7 @@ export declare const Content: import("styled-components").IStyledComponent<"web"
360
360
  "aria-modal"?: (boolean | "false" | "true") | undefined;
361
361
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
362
362
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
363
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
363
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
364
364
  "aria-owns"?: string | undefined;
365
365
  "aria-placeholder"?: string | undefined;
366
366
  "aria-posinset"?: number | undefined;
@@ -638,7 +638,7 @@ export declare const Controls: import("styled-components").IStyledComponent<"web
638
638
  "aria-modal"?: (boolean | "false" | "true") | undefined;
639
639
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
640
640
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
641
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
641
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
642
642
  "aria-owns"?: string | undefined;
643
643
  "aria-placeholder"?: string | undefined;
644
644
  "aria-posinset"?: number | undefined;
@@ -910,7 +910,7 @@ export declare const ControlSpacer: import("styled-components").IStyledComponent
910
910
  "aria-modal"?: (boolean | "false" | "true") | undefined;
911
911
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
912
912
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
913
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
913
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
914
914
  "aria-owns"?: string | undefined;
915
915
  "aria-placeholder"?: string | undefined;
916
916
  "aria-posinset"?: number | undefined;
@@ -1117,8 +1117,10 @@ export declare const Error: import("styled-components").IStyledComponent<"web",
1117
1117
  height?: string | number | undefined;
1118
1118
  fixed?: import("../../../../../ui/dist/components/View/View").ViewFixPosition | undefined;
1119
1119
  backColor?: string | undefined;
1120
+ backColorHover?: string | undefined;
1120
1121
  borderRadius?: number | undefined;
1122
+ className?: string | undefined;
1121
1123
  onClick?: (() => void) | undefined;
1122
1124
  children?: import("react").ReactNode;
1123
- }> & (({ label, direction, collapse, valign, halign, vscroll, hscroll, padding, paddingVert, paddingHorz, paddingRight, paddingLeft, paddingTop, paddingBottom, width, height, fixed, backColor, borderRadius, onClick, style, children, }: import("../../../../../ui/dist/components/View/View").ViewProps) => import("react/jsx-runtime").JSX.Element);
1125
+ }> & (({ label, direction, collapse, valign, halign, vscroll, hscroll, padding, paddingVert, paddingHorz, paddingRight, paddingLeft, paddingTop, paddingBottom, width, height, fixed, backColor, backColorHover, borderRadius, className, onClick, style, children, }: import("../../../../../ui/dist/components/View/View").ViewProps) => import("react/jsx-runtime").JSX.Element);
1124
1126
  export {};
@@ -1,8 +1,8 @@
1
- import { DekPlugin, DekPluginConfig } from '@appkit/dek-plugin';
1
+ import { DekApi, DekPlugin, DekPluginConfig } from '@appkit/dek-plugin';
2
2
  declare class Plugin implements DekPlugin {
3
3
  readonly config: DekPluginConfig;
4
4
  constructor(config: DekPluginConfig);
5
- load(config: DekPluginConfig): Promise<void>;
5
+ load(api: DekApi): Promise<void>;
6
6
  unload(): Promise<void>;
7
7
  get components(): {
8
8
  key: string;
@@ -84,7 +84,7 @@ export declare const Container: import("styled-components").IStyledComponent<"we
84
84
  "aria-modal"?: (boolean | "false" | "true") | undefined;
85
85
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
86
86
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
87
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
87
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
88
88
  "aria-owns"?: string | undefined;
89
89
  "aria-placeholder"?: string | undefined;
90
90
  "aria-posinset"?: number | undefined;
@@ -356,7 +356,7 @@ export declare const LoadingText: import("styled-components").IStyledComponent<"
356
356
  "aria-modal"?: (boolean | "false" | "true") | undefined;
357
357
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
358
358
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
359
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
359
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
360
360
  "aria-owns"?: string | undefined;
361
361
  "aria-placeholder"?: string | undefined;
362
362
  "aria-posinset"?: number | undefined;
@@ -628,7 +628,7 @@ export declare const ErrorText: import("styled-components").IStyledComponent<"we
628
628
  "aria-modal"?: (boolean | "false" | "true") | undefined;
629
629
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
630
630
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
631
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
631
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
632
632
  "aria-owns"?: string | undefined;
633
633
  "aria-placeholder"?: string | undefined;
634
634
  "aria-posinset"?: number | undefined;
@@ -84,7 +84,7 @@ export declare const Container: import("styled-components").IStyledComponent<"we
84
84
  "aria-modal"?: (boolean | "false" | "true") | undefined;
85
85
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
86
86
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
87
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
87
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
88
88
  "aria-owns"?: string | undefined;
89
89
  "aria-placeholder"?: string | undefined;
90
90
  "aria-posinset"?: number | undefined;
@@ -356,7 +356,7 @@ export declare const WeatherContainer: import("styled-components").IStyledCompon
356
356
  "aria-modal"?: (boolean | "false" | "true") | undefined;
357
357
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
358
358
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
359
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
359
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
360
360
  "aria-owns"?: string | undefined;
361
361
  "aria-placeholder"?: string | undefined;
362
362
  "aria-posinset"?: number | undefined;
@@ -628,7 +628,7 @@ export declare const TemperatureContainer: import("styled-components").IStyledCo
628
628
  "aria-modal"?: (boolean | "false" | "true") | undefined;
629
629
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
630
630
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
631
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
631
+ "aria-orientation"?: "vertical" | "horizontal" | undefined;
632
632
  "aria-owns"?: string | undefined;
633
633
  "aria-placeholder"?: string | undefined;
634
634
  "aria-posinset"?: number | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.2.8",
4
+ "version": "0.3.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsc && vite build",