@openlv/modal 0.1.1 → 0.1.3
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/Header.d.ts +1 -1
- package/dist/components/ModalRoot.d.ts +1 -1
- package/dist/components/UnknownState.d.ts +1 -1
- package/dist/components/settings/connection/index.d.ts +1 -1
- package/dist/components/settings/index.d.ts +3 -3
- package/dist/context.d.ts +2 -2
- package/dist/element.d.ts +2 -2
- package/dist/flow/ConnectionFlow.d.ts +2 -2
- package/dist/flow/ErrorScreen.d.ts +1 -1
- package/dist/flow/disconnected/Disconnected.d.ts +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +1080 -1080
- package/dist/index.es.js.map +1 -1
- package/dist/theme/index.d.ts +2 -2
- package/dist/ui/Button.d.ts +1 -1
- package/dist/ui/InfoTooltip.d.ts +1 -1
- package/dist/ui/Input.d.ts +6 -6
- package/dist/ui/Select.d.ts +1 -1
- package/dist/ui/Toggle.d.ts +1 -1
- package/dist/ui/TransitionContainer.d.ts +1 -1
- package/dist/ui/menu/MenuGroup.d.ts +1 -1
- package/dist/ui/menu/MenuItem.d.ts +1 -1
- package/dist/ui/menu/MenuLink.d.ts +1 -1
- package/dist/utils/i18n.d.ts +1 -1
- package/package.json +9 -9
package/dist/theme/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ThemeConfig, ThemeMode, UserThemePreference } from './types.js';
|
|
|
2
2
|
export type { PredefinedThemeName, ThemeConfig, ThemeMode, ThemeTokensMap, UserThemePreference, } from './types.js';
|
|
3
3
|
type Primitive = string | number | boolean | null | undefined;
|
|
4
4
|
type Leaf = Primitive;
|
|
5
|
-
type
|
|
6
|
-
export declare const flattenToCssVars: <T extends Record<string, unknown>>(
|
|
5
|
+
type FlatCssVariables = Record<`--${string}`, Leaf>;
|
|
6
|
+
export declare const flattenToCssVars: <T extends Record<string, unknown>>(object: T, prefix?: readonly string[], out?: FlatCssVariables) => FlatCssVariables;
|
|
7
7
|
export declare const resolveMode: (appThemeMode?: ThemeMode, userTheme?: UserThemePreference) => "light" | "dark";
|
|
8
8
|
export declare const buildTheme: (config: ThemeConfig, userTheme?: UserThemePreference) => Promise<string>;
|
package/dist/ui/Button.d.ts
CHANGED
|
@@ -61,5 +61,5 @@ export type ButtonProps = {
|
|
|
61
61
|
} & ButtonLinkProps) | ({
|
|
62
62
|
href?: undefined;
|
|
63
63
|
} & ButtonButtonProps));
|
|
64
|
-
export declare const Button: (
|
|
64
|
+
export declare const Button: (rawProperties: ButtonProps) => JSX.Element;
|
|
65
65
|
export {};
|
package/dist/ui/InfoTooltip.d.ts
CHANGED
|
@@ -74,5 +74,5 @@ declare const styles: import('tailwind-variants/lite').TVReturnType<{
|
|
|
74
74
|
icon: string;
|
|
75
75
|
}, undefined, unknown, unknown, undefined>>;
|
|
76
76
|
export type InfoTooltipProps = VariantProps<typeof styles>;
|
|
77
|
-
export declare const InfoTooltip: (
|
|
77
|
+
export declare const InfoTooltip: (rawProperties: ParentProps<InfoTooltipProps>) => import("solid-js").JSX.Element;
|
|
78
78
|
export {};
|
package/dist/ui/Input.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
type
|
|
1
|
+
type LabelProperties = {
|
|
2
2
|
htmlFor?: string;
|
|
3
3
|
children: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const Label: (
|
|
6
|
-
type
|
|
5
|
+
export declare const Label: (properties: LabelProperties) => import("solid-js").JSX.Element;
|
|
6
|
+
type InputProperties = {
|
|
7
7
|
id?: string;
|
|
8
8
|
value: string;
|
|
9
9
|
placeholder?: string;
|
|
@@ -11,12 +11,12 @@ type InputProps = {
|
|
|
11
11
|
readOnly?: boolean;
|
|
12
12
|
onChange?: (value: string) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const Input: (
|
|
15
|
-
type
|
|
14
|
+
export declare const Input: (properties: InputProperties) => import("solid-js").JSX.Element;
|
|
15
|
+
type InputGroupProperties = {
|
|
16
16
|
label: string;
|
|
17
17
|
values: readonly string[];
|
|
18
18
|
placeholder?: string;
|
|
19
19
|
inputIdPrefix?: string;
|
|
20
20
|
};
|
|
21
|
-
export declare const InputGroup: (
|
|
21
|
+
export declare const InputGroup: (properties: InputGroupProperties) => import("solid-js").JSX.Element;
|
|
22
22
|
export {};
|
package/dist/ui/Select.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export type SelectProps = {
|
|
|
4
4
|
onChange: (value: string) => void;
|
|
5
5
|
dropdownThreshold?: number;
|
|
6
6
|
};
|
|
7
|
-
export declare const Select: (
|
|
7
|
+
export declare const Select: (properties: SelectProps) => import("solid-js").JSX.Element;
|
package/dist/ui/Toggle.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export type TransitionContainerProps<T> = {
|
|
|
6
6
|
render: (value: T) => JSX.Element;
|
|
7
7
|
class?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const TransitionContainer: <T = unknown>(
|
|
9
|
+
export declare const TransitionContainer: <T = unknown>(properties: TransitionContainerProps<T>) => JSX.Element;
|
package/dist/utils/i18n.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const LANGUAGES: LanguageInfo[];
|
|
|
10
10
|
export declare const isRtlLanguage: (tag: LanguageTag) => boolean;
|
|
11
11
|
export declare const detectBrowserLanguage: () => LanguageTag;
|
|
12
12
|
export declare const getLanguageScore: (tag: string) => number;
|
|
13
|
-
export type Translate = (key: string,
|
|
13
|
+
export type Translate = (key: string, parameters?: Readonly<Record<string, string | number>>) => string | JSX.Element;
|
|
14
14
|
export type Translations = Record<string, unknown>;
|
|
15
15
|
export declare const resolveTranslation: (parameters: {
|
|
16
16
|
primary: Translations | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openlv/modal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "SolidJS-based modal custom element for Open Lavatory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"open-lavatory",
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
"solid-js",
|
|
9
9
|
"web-component"
|
|
10
10
|
],
|
|
11
|
-
"homepage": "https://github.com/
|
|
11
|
+
"homepage": "https://github.com/open-lavatory/open-lavatory",
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/open-lavatory/open-lavatory/issues"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/
|
|
17
|
+
"url": "git+https://github.com/open-lavatory/open-lavatory.git",
|
|
18
18
|
"directory": "packages/modal"
|
|
19
19
|
},
|
|
20
20
|
"license": "LGPL-3.0-only",
|
|
21
21
|
"author": {
|
|
22
22
|
"name": "Open-Lavatory",
|
|
23
|
-
"url": "https://github.com/
|
|
23
|
+
"url": "https://github.com/open-lavatory/open-lavatory"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"type": "module",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"solid-icons": "^1.2.0",
|
|
50
50
|
"solid-js": "^1.9.9",
|
|
51
51
|
"tailwind-variants": "^3.1.1",
|
|
52
|
-
"@openlv/core": "0.1.
|
|
53
|
-
"@openlv/provider": "0.1.
|
|
54
|
-
"@openlv/session": "0.1.
|
|
55
|
-
"@openlv/signaling": "0.1.
|
|
52
|
+
"@openlv/core": "0.1.2",
|
|
53
|
+
"@openlv/provider": "0.1.3",
|
|
54
|
+
"@openlv/session": "0.1.3",
|
|
55
|
+
"@openlv/signaling": "0.1.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@tailwindcss/vite": "^4.1.17",
|