@swan-admin/swan-web-component 1.0.10 → 1.0.12
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/index.d.mts +0 -73
- package/dist/index.d.ts +0 -73
package/package.json
CHANGED
package/dist/index.d.mts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface Step {
|
|
4
|
-
type: StepType;
|
|
5
|
-
value?: any;
|
|
6
|
-
order?: number;
|
|
7
|
-
isVisible?: boolean;
|
|
8
|
-
onStepComplete?: (value: any) => Promise<void> | void;
|
|
9
|
-
}
|
|
10
|
-
type StepType = "email" | "name" | "height" | "gender";
|
|
11
|
-
interface StyleConfig {
|
|
12
|
-
base?: {
|
|
13
|
-
brandColor?: string;
|
|
14
|
-
backgroundColor?: string;
|
|
15
|
-
primaryColor?: string;
|
|
16
|
-
secondaryColor?: string;
|
|
17
|
-
baseTextColor?: string;
|
|
18
|
-
baseFontSize?: string;
|
|
19
|
-
baseFontFamily?: string;
|
|
20
|
-
};
|
|
21
|
-
logo?: {
|
|
22
|
-
logoWidth?: string;
|
|
23
|
-
logoHeight?: string;
|
|
24
|
-
};
|
|
25
|
-
heading?: {
|
|
26
|
-
headingColor?: string;
|
|
27
|
-
headingFontSize?: string;
|
|
28
|
-
headingFontWeight?: string;
|
|
29
|
-
headingFontFamily?: string;
|
|
30
|
-
};
|
|
31
|
-
button?: {
|
|
32
|
-
buttonBackground?: string;
|
|
33
|
-
buttonDisabledBackground?: string;
|
|
34
|
-
buttonDisabledTextColor?: string;
|
|
35
|
-
buttonTextColor?: string;
|
|
36
|
-
buttonFontSize?: string;
|
|
37
|
-
buttonFontFamily?: string;
|
|
38
|
-
};
|
|
39
|
-
input?: {
|
|
40
|
-
inputBackgroundColor?: string;
|
|
41
|
-
inputTextColor?: string;
|
|
42
|
-
inputPlaceholderColor?: string;
|
|
43
|
-
inputBorderColor?: string;
|
|
44
|
-
inputFontSize?: string;
|
|
45
|
-
inputFontWeight?: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface OnboardingProps {
|
|
49
|
-
steps: Step[];
|
|
50
|
-
config?: Config;
|
|
51
|
-
onComplete?: (values: Record<string, any>) => void;
|
|
52
|
-
}
|
|
53
|
-
interface Config {
|
|
54
|
-
style?: StyleConfig;
|
|
55
|
-
logo?: string;
|
|
56
|
-
loader?: string;
|
|
57
|
-
}
|
|
58
|
-
interface FocalLengthOuput {
|
|
59
|
-
brandName: string;
|
|
60
|
-
modelName: string;
|
|
61
|
-
focalLength: number;
|
|
62
|
-
}
|
|
63
|
-
interface FocalLengthProps {
|
|
64
|
-
onComplete?: (value: FocalLengthOuput) => void;
|
|
65
|
-
initialValue?: any;
|
|
66
|
-
config?: Config;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
declare const Onboarding: React.FC<OnboardingProps>;
|
|
70
|
-
|
|
71
|
-
declare const FocalLength: React.FC<FocalLengthProps>;
|
|
72
|
-
|
|
73
|
-
export { FocalLength, type FocalLengthProps, Onboarding, type OnboardingProps };
|
package/dist/index.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface Step {
|
|
4
|
-
type: StepType;
|
|
5
|
-
value?: any;
|
|
6
|
-
order?: number;
|
|
7
|
-
isVisible?: boolean;
|
|
8
|
-
onStepComplete?: (value: any) => Promise<void> | void;
|
|
9
|
-
}
|
|
10
|
-
type StepType = "email" | "name" | "height" | "gender";
|
|
11
|
-
interface StyleConfig {
|
|
12
|
-
base?: {
|
|
13
|
-
brandColor?: string;
|
|
14
|
-
backgroundColor?: string;
|
|
15
|
-
primaryColor?: string;
|
|
16
|
-
secondaryColor?: string;
|
|
17
|
-
baseTextColor?: string;
|
|
18
|
-
baseFontSize?: string;
|
|
19
|
-
baseFontFamily?: string;
|
|
20
|
-
};
|
|
21
|
-
logo?: {
|
|
22
|
-
logoWidth?: string;
|
|
23
|
-
logoHeight?: string;
|
|
24
|
-
};
|
|
25
|
-
heading?: {
|
|
26
|
-
headingColor?: string;
|
|
27
|
-
headingFontSize?: string;
|
|
28
|
-
headingFontWeight?: string;
|
|
29
|
-
headingFontFamily?: string;
|
|
30
|
-
};
|
|
31
|
-
button?: {
|
|
32
|
-
buttonBackground?: string;
|
|
33
|
-
buttonDisabledBackground?: string;
|
|
34
|
-
buttonDisabledTextColor?: string;
|
|
35
|
-
buttonTextColor?: string;
|
|
36
|
-
buttonFontSize?: string;
|
|
37
|
-
buttonFontFamily?: string;
|
|
38
|
-
};
|
|
39
|
-
input?: {
|
|
40
|
-
inputBackgroundColor?: string;
|
|
41
|
-
inputTextColor?: string;
|
|
42
|
-
inputPlaceholderColor?: string;
|
|
43
|
-
inputBorderColor?: string;
|
|
44
|
-
inputFontSize?: string;
|
|
45
|
-
inputFontWeight?: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface OnboardingProps {
|
|
49
|
-
steps: Step[];
|
|
50
|
-
config?: Config;
|
|
51
|
-
onComplete?: (values: Record<string, any>) => void;
|
|
52
|
-
}
|
|
53
|
-
interface Config {
|
|
54
|
-
style?: StyleConfig;
|
|
55
|
-
logo?: string;
|
|
56
|
-
loader?: string;
|
|
57
|
-
}
|
|
58
|
-
interface FocalLengthOuput {
|
|
59
|
-
brandName: string;
|
|
60
|
-
modelName: string;
|
|
61
|
-
focalLength: number;
|
|
62
|
-
}
|
|
63
|
-
interface FocalLengthProps {
|
|
64
|
-
onComplete?: (value: FocalLengthOuput) => void;
|
|
65
|
-
initialValue?: any;
|
|
66
|
-
config?: Config;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
declare const Onboarding: React.FC<OnboardingProps>;
|
|
70
|
-
|
|
71
|
-
declare const FocalLength: React.FC<FocalLengthProps>;
|
|
72
|
-
|
|
73
|
-
export { FocalLength, type FocalLengthProps, Onboarding, type OnboardingProps };
|