@lijinmei-810/dev-inspector 0.1.0 → 0.1.2

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.d.ts CHANGED
@@ -46,7 +46,7 @@ type SpaceStep = {
46
46
  size: string;
47
47
  val: string;
48
48
  };
49
- type FontSizeOption = {
49
+ type TypographyStyleOption = {
50
50
  key: string;
51
51
  label: string;
52
52
  value: string;
@@ -55,10 +55,29 @@ type FontSizeOption = {
55
55
  colorVar: string;
56
56
  usage: string;
57
57
  };
58
+ type FontSizeOption = {
59
+ label: string;
60
+ value: string;
61
+ token?: string;
62
+ };
58
63
  type FontWeightOption = {
59
64
  label: string;
60
65
  value: string;
61
66
  };
67
+ type ContainerStyleOption = {
68
+ key: string;
69
+ label: string;
70
+ backgroundColor: string;
71
+ backgroundVar: string;
72
+ borderColor: string;
73
+ colorVar: string;
74
+ borderWidth: string;
75
+ borderStyle: string;
76
+ borderRadius: string;
77
+ radiusVar?: string;
78
+ usage: string;
79
+ };
80
+ type BorderStyleOption = ContainerStyleOption;
62
81
  type DevInspectorEndpoints = {
63
82
  applyCss: string;
64
83
  submitStyleIntent: string;
@@ -73,7 +92,10 @@ type DevInspectorTokenConfig = {
73
92
  radiusPresets: RadiusPreset[];
74
93
  spaceSteps: SpaceStep[];
75
94
  borderWidthSteps: string[];
76
- fontSizeOptions: FontSizeOption[];
95
+ containerStyles?: ContainerStyleOption[];
96
+ borderStyles?: BorderStyleOption[];
97
+ typographyStyles?: TypographyStyleOption[];
98
+ fontSizeOptions?: FontSizeOption[];
77
99
  fontWeightOptions: FontWeightOption[];
78
100
  shadowTokens: ShadowToken[];
79
101
  typographyTokens: TypographyToken[];
@@ -83,11 +105,12 @@ type DevInspectorConfig = {
83
105
  endpoints: DevInspectorEndpoints;
84
106
  tokens: DevInspectorTokenConfig;
85
107
  };
86
- declare const defaultDevInspectorConfig: DevInspectorConfig;
87
- declare function mergeDevInspectorConfig(overrides?: Partial<DevInspectorConfig> & {
108
+ type DevInspectorConfigOverrides = Omit<Partial<DevInspectorConfig>, 'endpoints' | 'tokens'> & {
88
109
  endpoints?: Partial<DevInspectorEndpoints>;
89
110
  tokens?: Partial<DevInspectorTokenConfig>;
90
- }): DevInspectorConfig;
111
+ };
112
+ declare const defaultDevInspectorConfig: DevInspectorConfig;
113
+ declare function mergeDevInspectorConfig(overrides?: DevInspectorConfigOverrides): DevInspectorConfig;
91
114
 
92
115
  declare function DevInspectorProvider({ children, config, }: {
93
116
  children: ReactNode;
@@ -98,8 +121,6 @@ declare function DevInspectorProvider({ children, config, }: {
98
121
  }): react_jsx_runtime.JSX.Element;
99
122
  declare function useDevInspectorConfig(): DevInspectorConfig;
100
123
 
101
- declare function mountDevInspector(config?: Partial<DevInspectorConfig> & {
102
- endpoints?: Partial<DevInspectorConfig['endpoints']>;
103
- }): HTMLElement;
124
+ declare function mountDevInspector(config?: DevInspectorConfigOverrides): HTMLElement;
104
125
 
105
- export { DevInspector, type DevInspectorConfig, type DevInspectorEndpoints, DevInspectorProvider, type DevInspectorTokenConfig, InspectorPanel, defaultDevInspectorConfig, mergeDevInspectorConfig, mountDevInspector, useDevInspectorConfig };
126
+ export { type BorderStyleOption, type ContainerStyleOption, DevInspector, type DevInspectorConfig, type DevInspectorConfigOverrides, type DevInspectorEndpoints, DevInspectorProvider, type DevInspectorTokenConfig, type FontSizeOption, InspectorPanel, type TypographyStyleOption, type TypographyToken, defaultDevInspectorConfig, mergeDevInspectorConfig, mountDevInspector, useDevInspectorConfig };