@xsolla/xui-primitives-core 0.117.0 → 0.118.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/index.d.mts +31 -1
- package/index.d.ts +31 -1
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -184,5 +184,35 @@ interface TextAreaPrimitiveProps extends Omit<InputPrimitiveProps, "onKeyDown" |
|
|
|
184
184
|
rows?: number;
|
|
185
185
|
autoSize?: boolean;
|
|
186
186
|
}
|
|
187
|
+
interface LinearGradientProps {
|
|
188
|
+
/** Gradient color stops from start to end */
|
|
189
|
+
colors: string[];
|
|
190
|
+
/** Start point as {x, y} where 0,0 is top-left and 1,1 is bottom-right. Defaults to {x: 0, y: 0} */
|
|
191
|
+
start?: {
|
|
192
|
+
x: number;
|
|
193
|
+
y: number;
|
|
194
|
+
};
|
|
195
|
+
/** End point as {x, y} where 0,0 is top-left and 1,1 is bottom-right. Defaults to {x: 0, y: 1} */
|
|
196
|
+
end?: {
|
|
197
|
+
x: number;
|
|
198
|
+
y: number;
|
|
199
|
+
};
|
|
200
|
+
/** Optional stop positions (0-1) for each color. If omitted, colors are evenly distributed */
|
|
201
|
+
locations?: number[];
|
|
202
|
+
children?: React.ReactNode;
|
|
203
|
+
position?: "relative" | "absolute";
|
|
204
|
+
top?: number | string;
|
|
205
|
+
bottom?: number | string;
|
|
206
|
+
left?: number | string;
|
|
207
|
+
right?: number | string;
|
|
208
|
+
width?: number | string;
|
|
209
|
+
height?: number | string;
|
|
210
|
+
borderRadius?: number | string;
|
|
211
|
+
overflow?: "visible" | "hidden";
|
|
212
|
+
zIndex?: number;
|
|
213
|
+
style?: React.CSSProperties;
|
|
214
|
+
"data-testid"?: string;
|
|
215
|
+
testID?: string;
|
|
216
|
+
}
|
|
187
217
|
|
|
188
|
-
export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, SpinnerProps, TextAreaPrimitiveProps, TextProps };
|
|
218
|
+
export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, LinearGradientProps, SpinnerProps, TextAreaPrimitiveProps, TextProps };
|
package/index.d.ts
CHANGED
|
@@ -184,5 +184,35 @@ interface TextAreaPrimitiveProps extends Omit<InputPrimitiveProps, "onKeyDown" |
|
|
|
184
184
|
rows?: number;
|
|
185
185
|
autoSize?: boolean;
|
|
186
186
|
}
|
|
187
|
+
interface LinearGradientProps {
|
|
188
|
+
/** Gradient color stops from start to end */
|
|
189
|
+
colors: string[];
|
|
190
|
+
/** Start point as {x, y} where 0,0 is top-left and 1,1 is bottom-right. Defaults to {x: 0, y: 0} */
|
|
191
|
+
start?: {
|
|
192
|
+
x: number;
|
|
193
|
+
y: number;
|
|
194
|
+
};
|
|
195
|
+
/** End point as {x, y} where 0,0 is top-left and 1,1 is bottom-right. Defaults to {x: 0, y: 1} */
|
|
196
|
+
end?: {
|
|
197
|
+
x: number;
|
|
198
|
+
y: number;
|
|
199
|
+
};
|
|
200
|
+
/** Optional stop positions (0-1) for each color. If omitted, colors are evenly distributed */
|
|
201
|
+
locations?: number[];
|
|
202
|
+
children?: React.ReactNode;
|
|
203
|
+
position?: "relative" | "absolute";
|
|
204
|
+
top?: number | string;
|
|
205
|
+
bottom?: number | string;
|
|
206
|
+
left?: number | string;
|
|
207
|
+
right?: number | string;
|
|
208
|
+
width?: number | string;
|
|
209
|
+
height?: number | string;
|
|
210
|
+
borderRadius?: number | string;
|
|
211
|
+
overflow?: "visible" | "hidden";
|
|
212
|
+
zIndex?: number;
|
|
213
|
+
style?: React.CSSProperties;
|
|
214
|
+
"data-testid"?: string;
|
|
215
|
+
testID?: string;
|
|
216
|
+
}
|
|
187
217
|
|
|
188
|
-
export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, SpinnerProps, TextAreaPrimitiveProps, TextProps };
|
|
218
|
+
export type { BoxProps, DividerProps, IconProps, InputPrimitiveProps, LinearGradientProps, SpinnerProps, TextAreaPrimitiveProps, TextProps };
|