@inploi/plugin-feedback 6.2.0 → 6.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.
- package/cdn/index.js +12 -13
- package/dist/index.d.cts +182 -0
- package/dist/index.d.ts +182 -2
- package/dist/plugin-feedback.cjs +374 -530
- package/dist/plugin-feedback.js +374 -530
- package/package.json +16 -11
- package/dist/components/feedback-widget.d.ts +0 -13
- package/dist/components/feedback-widget.test.d.ts +0 -1
- package/dist/components/icon.d.ts +0 -19
- package/dist/feedback.constants.d.ts +0 -1
- package/dist/feedback.d.ts +0 -82
- package/dist/feedback.dev.d.ts +0 -1
- package/dist/i18n.d.ts +0 -97
- package/dist/index.cdn.d.ts +0 -9
- package/dist/mocks/browser.d.ts +0 -1
- package/dist/mocks/handlers.d.ts +0 -1
- package/dist/style/theme.d.ts +0 -7
- package/dist/style/tokens.d.ts +0 -102
- package/dist/style/tokens.test.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-feedback",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-feedback.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,9 +10,14 @@
|
|
|
10
10
|
],
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/plugin-feedback.js"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./dist/index.d.cts",
|
|
19
|
+
"default": "./dist/plugin-feedback.cjs"
|
|
20
|
+
}
|
|
16
21
|
}
|
|
17
22
|
},
|
|
18
23
|
"peerDependencies": {
|
|
@@ -21,7 +26,7 @@
|
|
|
21
26
|
"devDependencies": {
|
|
22
27
|
"@faker-js/faker": "^8.4.0",
|
|
23
28
|
"@happy-dom/global-registrator": "14.3.6",
|
|
24
|
-
"@preact/preset-vite": "
|
|
29
|
+
"@preact/preset-vite": "2.10.2",
|
|
25
30
|
"@preact/signals": "^1.2.2",
|
|
26
31
|
"@total-typescript/ts-reset": "^0.5.1",
|
|
27
32
|
"@types/bun": "^1.2.5",
|
|
@@ -43,22 +48,22 @@
|
|
|
43
48
|
"preact-render-to-string": "^6.3.1",
|
|
44
49
|
"react": "npm:@preact/compat",
|
|
45
50
|
"react-dom": "npm:@preact/compat",
|
|
46
|
-
"rollup-plugin-visualizer": "
|
|
51
|
+
"rollup-plugin-visualizer": "6.0.3",
|
|
47
52
|
"swr": "^2.2.4",
|
|
48
53
|
"tailwindcss": "^3.3.5",
|
|
49
54
|
"tailwindcss-touch": "^1.0.1",
|
|
50
55
|
"type-testing": "^0.2.0",
|
|
51
56
|
"valibot": "1.1.0",
|
|
52
|
-
"vite": "
|
|
53
|
-
"vite-plugin-dts": "
|
|
54
|
-
"vite-tsconfig-paths": "
|
|
57
|
+
"vite": "7.1.4",
|
|
58
|
+
"vite-plugin-dts": "4.5.4",
|
|
59
|
+
"vite-tsconfig-paths": "5.1.4",
|
|
55
60
|
"@radix-ui/react-popover": "1.0.7",
|
|
56
61
|
"clsx": "^2.0.0",
|
|
57
62
|
"zustand": "^4.5.2",
|
|
58
63
|
"zustand-context": "^1.0.0",
|
|
59
|
-
"@inploi/core": "1.
|
|
64
|
+
"@inploi/core": "1.23.0",
|
|
60
65
|
"@inploi/design-tokens": "0.2.1",
|
|
61
|
-
"@inploi/sdk": "2.
|
|
66
|
+
"@inploi/sdk": "2.8.0",
|
|
62
67
|
"eslint-config-custom": "0.1.0",
|
|
63
68
|
"@inploi/i18n": "0.1.5"
|
|
64
69
|
},
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AnalyticsService, ApiClient, Logger } from '@inploi/sdk';
|
|
2
|
-
import { KeyboardEventHandler } from 'preact/compat';
|
|
3
|
-
import { FeedbackPluginRenderParams } from '../feedback';
|
|
4
|
-
|
|
5
|
-
interface FeedbackWidgetProps {
|
|
6
|
-
apiClient: ApiClient;
|
|
7
|
-
logger: Logger;
|
|
8
|
-
analytics: AnalyticsService;
|
|
9
|
-
params: FeedbackPluginRenderParams;
|
|
10
|
-
}
|
|
11
|
-
export declare const submitWithMetaEnter: KeyboardEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
12
|
-
export declare const FeedbackWidget: ({ analytics, params, logger }: FeedbackWidgetProps) => import("preact").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'preact';
|
|
2
|
-
import { FeedbackPluginParams } from '..';
|
|
3
|
-
|
|
4
|
-
declare const icons: {
|
|
5
|
-
warning: import("preact").JSX.Element;
|
|
6
|
-
x: import("preact").JSX.Element;
|
|
7
|
-
'chevron-up-down': import("preact").JSX.Element;
|
|
8
|
-
happy: import("preact").JSX.Element;
|
|
9
|
-
neutral: import("preact").JSX.Element;
|
|
10
|
-
sad: import("preact").JSX.Element;
|
|
11
|
-
};
|
|
12
|
-
export type IconName = keyof typeof icons;
|
|
13
|
-
export declare const IconSpritesheet: ({ theme }: {
|
|
14
|
-
theme: FeedbackPluginParams["theme"];
|
|
15
|
-
}) => import("preact").JSX.Element;
|
|
16
|
-
export declare const Icon: ({ name, ...props }: {
|
|
17
|
-
name: IconName;
|
|
18
|
-
} & ComponentProps<"svg">) => import("preact").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FEEDBACK_WIDGET_ID = "inploi-feedback";
|
package/dist/feedback.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Logger } from '@inploi/sdk';
|
|
2
|
-
import { FeedbackTranslationTerms } from './i18n';
|
|
3
|
-
|
|
4
|
-
type PaletteParams = {
|
|
5
|
-
/** Number between 0 and 360. Number above or below range will loop. */
|
|
6
|
-
hue: number;
|
|
7
|
-
/** Float between 0 and 2. Acts as a multiplier to the original generated palette. */
|
|
8
|
-
chroma: number;
|
|
9
|
-
};
|
|
10
|
-
export type FeedbackPluginParams = {
|
|
11
|
-
/**
|
|
12
|
-
* A unique identifier for this feedback widget.
|
|
13
|
-
* It’s up to you to ensure there is a valid feedback widget element with the property data-key="[key]"
|
|
14
|
-
*/
|
|
15
|
-
key: string;
|
|
16
|
-
theme: {
|
|
17
|
-
mode: 'light' | 'dark';
|
|
18
|
-
corners: 'rounded' | 'soft' | 'sharp';
|
|
19
|
-
highlights: 'stroke' | 'fill';
|
|
20
|
-
accent: PaletteParams;
|
|
21
|
-
/**
|
|
22
|
-
* Paint the solid accent fill (the submit button) in this exact CSS colour, with `text` on it, instead of the
|
|
23
|
-
* palette shade generated from `accent`. Text and focus rings keep the palette's shades; `accent` still tints the
|
|
24
|
-
* neutrals. Both values must each be a single CSS colour (as `getComputedStyle` returns for a custom property).
|
|
25
|
-
*/
|
|
26
|
-
exactAccent?: {
|
|
27
|
-
color: string;
|
|
28
|
-
text: string;
|
|
29
|
-
};
|
|
30
|
-
positive: PaletteParams;
|
|
31
|
-
negative: PaletteParams;
|
|
32
|
-
};
|
|
33
|
-
terms: Partial<FeedbackTranslationTerms>;
|
|
34
|
-
locale?: string;
|
|
35
|
-
size: 'sm' | 'md' | 'lg';
|
|
36
|
-
/**
|
|
37
|
-
* The rating to show, for a host that draws the same key's ratings in more than one place: each follows the one
|
|
38
|
-
* rating (pass back what `onScore` reports). Absent, the widget keeps its own.
|
|
39
|
-
*/
|
|
40
|
-
score?: 0 | 1 | -1;
|
|
41
|
-
onLeaveComment?: () => void;
|
|
42
|
-
/** A rating, once it has been logged. */
|
|
43
|
-
onRate?: (rate: 0 | 1 | -1) => void;
|
|
44
|
-
/** The rating as it's pressed (1 or -1), or cleared (0: pressed again, which logs nothing, or its log failed). */
|
|
45
|
-
onScore?: (score: 0 | 1 | -1) => void;
|
|
46
|
-
};
|
|
47
|
-
export interface FeedbackPluginRenderParams extends FeedbackPluginParams {
|
|
48
|
-
host?: HTMLElement;
|
|
49
|
-
/** Explicit render target for widgets that share the same analytics key. */
|
|
50
|
-
target?: HTMLElement;
|
|
51
|
-
}
|
|
52
|
-
export declare const createFeedbackDomManager: (logger: Logger) => {
|
|
53
|
-
getRenderTargetElement: (key: string) => Element;
|
|
54
|
-
};
|
|
55
|
-
export type FeedbackDomManager = ReturnType<typeof createFeedbackDomManager>;
|
|
56
|
-
/** Visual theme for the Feedback widget. */
|
|
57
|
-
export type FeedbackTheme = FeedbackPluginParams['theme'];
|
|
58
|
-
export declare const feedbackPlugin: () => ({ apiClient, logger, analytics }: {
|
|
59
|
-
apiClient: import('@inploi/sdk').ApiClient;
|
|
60
|
-
rpcClient: import('@inploi/sdk').InploiRpcClient;
|
|
61
|
-
logger: Logger;
|
|
62
|
-
analytics: import('@inploi/sdk').AnalyticsService;
|
|
63
|
-
publishableKey?: string;
|
|
64
|
-
env?: import('@inploi/sdk').InploiSdkEnvironment;
|
|
65
|
-
}) => {
|
|
66
|
-
/** Returns a string with the initial rendering state of the UI.
|
|
67
|
-
* Useful when server-side rendering to avoid CLS.
|
|
68
|
-
*/
|
|
69
|
-
prerender: (params: FeedbackPluginParams) => Promise<{
|
|
70
|
-
html: string;
|
|
71
|
-
}>;
|
|
72
|
-
/** Renders the Job Alerts Plugin inside the container element. */
|
|
73
|
-
render: (params: FeedbackPluginRenderParams) => Promise<void>;
|
|
74
|
-
/** Release one target's widget (and its portals), leaving any other target's. */
|
|
75
|
-
unmount: (target: HTMLElement) => void;
|
|
76
|
-
/** Release components, portals and document listeners when an owning widget unmounts. */
|
|
77
|
-
destroy: () => void;
|
|
78
|
-
'~brand': "@inploi/plugin-feedback";
|
|
79
|
-
};
|
|
80
|
-
export type FeedbackPlugin = ReturnType<typeof feedbackPlugin>;
|
|
81
|
-
export type Feedback = ReturnType<FeedbackPlugin>;
|
|
82
|
-
export {};
|
package/dist/feedback.dev.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/i18n.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
export declare const TranslationProvider: (props: {
|
|
2
|
-
terms?: Partial<import('@inploi/i18n/translation').TranslationDict<{
|
|
3
|
-
readonly a11y_label: "How was your experience?";
|
|
4
|
-
readonly positive_label: "Good";
|
|
5
|
-
readonly negative_label: "Bad";
|
|
6
|
-
readonly positive_heading: "Thanks!";
|
|
7
|
-
readonly negative_heading: "We’re sorry to hear that";
|
|
8
|
-
readonly positive_text: "Would you like to tell us more about your experience?";
|
|
9
|
-
readonly negative_text: "Would you like to tell us more about your experience?";
|
|
10
|
-
readonly submit: "Send feedback";
|
|
11
|
-
readonly submitting: "Sending feedback...";
|
|
12
|
-
readonly skip: "No, thanks";
|
|
13
|
-
readonly submitted_heading: "Thank you!";
|
|
14
|
-
readonly submitted_text: "Your feedback has been sent and will be used to improve our products.";
|
|
15
|
-
readonly comment_minimum: "Please type more characters in the comment box";
|
|
16
|
-
}>> | undefined;
|
|
17
|
-
locale: string | undefined;
|
|
18
|
-
children?: import('preact').ComponentChildren;
|
|
19
|
-
}) => import("preact").JSX.Element, createTFunction: <T extends {
|
|
20
|
-
readonly a11y_label: "How was your experience?";
|
|
21
|
-
readonly positive_label: "Good";
|
|
22
|
-
readonly negative_label: "Bad";
|
|
23
|
-
readonly positive_heading: "Thanks!";
|
|
24
|
-
readonly negative_heading: "We’re sorry to hear that";
|
|
25
|
-
readonly positive_text: "Would you like to tell us more about your experience?";
|
|
26
|
-
readonly negative_text: "Would you like to tell us more about your experience?";
|
|
27
|
-
readonly submit: "Send feedback";
|
|
28
|
-
readonly submitting: "Sending feedback...";
|
|
29
|
-
readonly skip: "No, thanks";
|
|
30
|
-
readonly submitted_heading: "Thank you!";
|
|
31
|
-
readonly submitted_text: "Your feedback has been sent and will be used to improve our products.";
|
|
32
|
-
readonly comment_minimum: "Please type more characters in the comment box";
|
|
33
|
-
} = {
|
|
34
|
-
readonly a11y_label: "How was your experience?";
|
|
35
|
-
readonly positive_label: "Good";
|
|
36
|
-
readonly negative_label: "Bad";
|
|
37
|
-
readonly positive_heading: "Thanks!";
|
|
38
|
-
readonly negative_heading: "We’re sorry to hear that";
|
|
39
|
-
readonly positive_text: "Would you like to tell us more about your experience?";
|
|
40
|
-
readonly negative_text: "Would you like to tell us more about your experience?";
|
|
41
|
-
readonly submit: "Send feedback";
|
|
42
|
-
readonly submitting: "Sending feedback...";
|
|
43
|
-
readonly skip: "No, thanks";
|
|
44
|
-
readonly submitted_heading: "Thank you!";
|
|
45
|
-
readonly submitted_text: "Your feedback has been sent and will be used to improve our products.";
|
|
46
|
-
readonly comment_minimum: "Please type more characters in the comment box";
|
|
47
|
-
}>(options: {
|
|
48
|
-
overrides: Partial<import('@inploi/i18n/translation').TranslationDict<{
|
|
49
|
-
readonly a11y_label: "How was your experience?";
|
|
50
|
-
readonly positive_label: "Good";
|
|
51
|
-
readonly negative_label: "Bad";
|
|
52
|
-
readonly positive_heading: "Thanks!";
|
|
53
|
-
readonly negative_heading: "We’re sorry to hear that";
|
|
54
|
-
readonly positive_text: "Would you like to tell us more about your experience?";
|
|
55
|
-
readonly negative_text: "Would you like to tell us more about your experience?";
|
|
56
|
-
readonly submit: "Send feedback";
|
|
57
|
-
readonly submitting: "Sending feedback...";
|
|
58
|
-
readonly skip: "No, thanks";
|
|
59
|
-
readonly submitted_heading: "Thank you!";
|
|
60
|
-
readonly submitted_text: "Your feedback has been sent and will be used to improve our products.";
|
|
61
|
-
readonly comment_minimum: "Please type more characters in the comment box";
|
|
62
|
-
}>>;
|
|
63
|
-
locale: string | undefined;
|
|
64
|
-
}) => import('@inploi/i18n/translation').TFn<T>, useTranslation: <T extends {
|
|
65
|
-
readonly a11y_label: "How was your experience?";
|
|
66
|
-
readonly positive_label: "Good";
|
|
67
|
-
readonly negative_label: "Bad";
|
|
68
|
-
readonly positive_heading: "Thanks!";
|
|
69
|
-
readonly negative_heading: "We’re sorry to hear that";
|
|
70
|
-
readonly positive_text: "Would you like to tell us more about your experience?";
|
|
71
|
-
readonly negative_text: "Would you like to tell us more about your experience?";
|
|
72
|
-
readonly submit: "Send feedback";
|
|
73
|
-
readonly submitting: "Sending feedback...";
|
|
74
|
-
readonly skip: "No, thanks";
|
|
75
|
-
readonly submitted_heading: "Thank you!";
|
|
76
|
-
readonly submitted_text: "Your feedback has been sent and will be used to improve our products.";
|
|
77
|
-
readonly comment_minimum: "Please type more characters in the comment box";
|
|
78
|
-
} = {
|
|
79
|
-
readonly a11y_label: "How was your experience?";
|
|
80
|
-
readonly positive_label: "Good";
|
|
81
|
-
readonly negative_label: "Bad";
|
|
82
|
-
readonly positive_heading: "Thanks!";
|
|
83
|
-
readonly negative_heading: "We’re sorry to hear that";
|
|
84
|
-
readonly positive_text: "Would you like to tell us more about your experience?";
|
|
85
|
-
readonly negative_text: "Would you like to tell us more about your experience?";
|
|
86
|
-
readonly submit: "Send feedback";
|
|
87
|
-
readonly submitting: "Sending feedback...";
|
|
88
|
-
readonly skip: "No, thanks";
|
|
89
|
-
readonly submitted_heading: "Thank you!";
|
|
90
|
-
readonly submitted_text: "Your feedback has been sent and will be used to improve our products.";
|
|
91
|
-
readonly comment_minimum: "Please type more characters in the comment box";
|
|
92
|
-
}>() => {
|
|
93
|
-
t: import('@inploi/i18n/translation').TFn<T>;
|
|
94
|
-
locale: string | undefined;
|
|
95
|
-
};
|
|
96
|
-
export type TFunction = ReturnType<typeof useTranslation>['t'];
|
|
97
|
-
export type FeedbackTranslationTerms = Parameters<typeof TranslationProvider>[0]['terms'];
|
package/dist/index.cdn.d.ts
DELETED
package/dist/mocks/browser.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const worker: import('msw/browser').SetupWorker;
|
package/dist/mocks/handlers.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const browserHandlers: never[];
|
package/dist/style/theme.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FeedbackPluginParams } from '..';
|
|
2
|
-
|
|
3
|
-
export declare const generateColorThemeCss: (params: FeedbackPluginParams) => string;
|
|
4
|
-
type CustomMediaProperties = Pick<FeedbackPluginParams['theme'], 'corners' | 'highlights' | 'mode'>;
|
|
5
|
-
export type ThemeVariantMedia = CustomMediaProperties[keyof CustomMediaProperties];
|
|
6
|
-
export declare const getThemeVariants: (theme: FeedbackPluginParams["theme"]) => ThemeVariantMedia[];
|
|
7
|
-
export {};
|
package/dist/style/tokens.d.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
export declare const tokens: {
|
|
2
|
-
from: <TGetToken extends import('@inploi/design-tokens/tokens').GetTokenFn>(config: {
|
|
3
|
-
theme: {
|
|
4
|
-
mode: "light" | "dark";
|
|
5
|
-
corners: "rounded" | "soft" | "sharp";
|
|
6
|
-
highlights: "stroke" | "fill";
|
|
7
|
-
accent: {
|
|
8
|
-
hue: number;
|
|
9
|
-
chroma: number;
|
|
10
|
-
};
|
|
11
|
-
exactAccent?: {
|
|
12
|
-
color: string;
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
positive: {
|
|
16
|
-
hue: number;
|
|
17
|
-
chroma: number;
|
|
18
|
-
};
|
|
19
|
-
negative: {
|
|
20
|
-
hue: number;
|
|
21
|
-
chroma: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
getToken: TGetToken;
|
|
25
|
-
}) => {
|
|
26
|
-
values: {
|
|
27
|
-
"color.transparent": unknown;
|
|
28
|
-
"color.black": unknown;
|
|
29
|
-
"color.white": unknown;
|
|
30
|
-
"color.lowest": unknown;
|
|
31
|
-
"color.highest": unknown;
|
|
32
|
-
"color.a-1": unknown;
|
|
33
|
-
"color.a-2": unknown;
|
|
34
|
-
"color.a-3": unknown;
|
|
35
|
-
"color.a-4": unknown;
|
|
36
|
-
"color.a-5": unknown;
|
|
37
|
-
"color.a-6": unknown;
|
|
38
|
-
"color.a-7": unknown;
|
|
39
|
-
"color.a-8": unknown;
|
|
40
|
-
"color.a-9": unknown;
|
|
41
|
-
"color.a-10": unknown;
|
|
42
|
-
"color.a-11": unknown;
|
|
43
|
-
"color.a-12": unknown;
|
|
44
|
-
"color.a-solid": unknown;
|
|
45
|
-
"color.a-solid-pressed": unknown;
|
|
46
|
-
"color.on-a": unknown;
|
|
47
|
-
"color.n-1": unknown;
|
|
48
|
-
"color.n-2": unknown;
|
|
49
|
-
"color.n-3": unknown;
|
|
50
|
-
"color.n-4": unknown;
|
|
51
|
-
"color.n-5": unknown;
|
|
52
|
-
"color.n-6": unknown;
|
|
53
|
-
"color.n-7": unknown;
|
|
54
|
-
"color.n-8": unknown;
|
|
55
|
-
"color.n-9": unknown;
|
|
56
|
-
"color.n-10": unknown;
|
|
57
|
-
"color.n-11": unknown;
|
|
58
|
-
"color.n-12": unknown;
|
|
59
|
-
"color.p-1": unknown;
|
|
60
|
-
"color.p-2": unknown;
|
|
61
|
-
"color.p-3": unknown;
|
|
62
|
-
"color.p-4": unknown;
|
|
63
|
-
"color.p-5": unknown;
|
|
64
|
-
"color.p-6": unknown;
|
|
65
|
-
"color.p-7": unknown;
|
|
66
|
-
"color.p-8": unknown;
|
|
67
|
-
"color.p-9": unknown;
|
|
68
|
-
"color.p-10": unknown;
|
|
69
|
-
"color.p-11": unknown;
|
|
70
|
-
"color.p-12": unknown;
|
|
71
|
-
"color.e-1": unknown;
|
|
72
|
-
"color.e-2": unknown;
|
|
73
|
-
"color.e-3": unknown;
|
|
74
|
-
"color.e-4": unknown;
|
|
75
|
-
"color.e-5": unknown;
|
|
76
|
-
"color.e-6": unknown;
|
|
77
|
-
"color.e-7": unknown;
|
|
78
|
-
"color.e-8": unknown;
|
|
79
|
-
"color.e-9": unknown;
|
|
80
|
-
"color.e-10": unknown;
|
|
81
|
-
"color.e-11": unknown;
|
|
82
|
-
"color.e-12": unknown;
|
|
83
|
-
"radius.base": unknown;
|
|
84
|
-
"radius.multiplier": unknown;
|
|
85
|
-
"radius.sm": unknown;
|
|
86
|
-
"radius.md": unknown;
|
|
87
|
-
"radius.lg": unknown;
|
|
88
|
-
"radius.xl": unknown;
|
|
89
|
-
"duration.snappy": unknown;
|
|
90
|
-
"duration.medium": unknown;
|
|
91
|
-
"duration.slow": unknown;
|
|
92
|
-
};
|
|
93
|
-
declarations: {
|
|
94
|
-
[k: string]: string;
|
|
95
|
-
};
|
|
96
|
-
ref: (path: "color.transparent" | "color.black" | "color.white" | "color.lowest" | "color.highest" | "color.a-1" | "color.a-2" | "color.a-3" | "color.a-4" | "color.a-5" | "color.a-6" | "color.a-7" | "color.a-8" | "color.a-9" | "color.a-10" | "color.a-11" | "color.a-12" | "color.a-solid" | "color.a-solid-pressed" | "color.on-a" | "color.n-1" | "color.n-2" | "color.n-3" | "color.n-4" | "color.n-5" | "color.n-6" | "color.n-7" | "color.n-8" | "color.n-9" | "color.n-10" | "color.n-11" | "color.n-12" | "color.p-1" | "color.p-2" | "color.p-3" | "color.p-4" | "color.p-5" | "color.p-6" | "color.p-7" | "color.p-8" | "color.p-9" | "color.p-10" | "color.p-11" | "color.p-12" | "color.e-1" | "color.e-2" | "color.e-3" | "color.e-4" | "color.e-5" | "color.e-6" | "color.e-7" | "color.e-8" | "color.e-9" | "color.e-10" | "color.e-11" | "color.e-12" | "radius.base" | "radius.multiplier" | "duration.snappy" | "duration.medium" | "duration.slow" | "radius.sm" | "radius.md" | "radius.lg" | "radius.xl") => string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
export declare const asInploiVar: {
|
|
100
|
-
<const TPath extends PropertyKey>(target: "declaration", path: TPath): `--i-${TPath & string extends infer T ? T extends TPath & string ? T extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${/*elided*/ any}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : T : never : never}`;
|
|
101
|
-
<const TPath extends PropertyKey>(target: "reference", path: TPath): `var(--i-${TPath & string extends infer T ? T extends TPath & string ? T extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${/*elided*/ any}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : T : never : never})`;
|
|
102
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|