@zvoove/unity-ui 2.45.0 → 2.46.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/dist/llms.txt +35 -4
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.d.ts +22 -5
- package/dist/unity-ui.es.js +132 -131
- package/package.json +1 -1
package/dist/unity-ui.d.ts
CHANGED
|
@@ -263,7 +263,7 @@ declare const BREAKPOINTS: {
|
|
|
263
263
|
};
|
|
264
264
|
|
|
265
265
|
export declare const Button: {
|
|
266
|
-
<T extends React.ElementType = "button">({ children, variant, hideLabel, as, icon, linkComponent, size, isLoading, ...props }: ButtonProps<T> & {
|
|
266
|
+
<T extends React.ElementType = "button">({ children, variant, hideLabel, as, icon, linkComponent, size, isLoading, contrast, ...props }: ButtonProps<T> & {
|
|
267
267
|
ref?: ForwardedRef<T>;
|
|
268
268
|
}): JSX.Element;
|
|
269
269
|
displayName: string;
|
|
@@ -295,7 +295,18 @@ export declare type ButtonProps<T extends React.ElementType = 'button'> = UnionA
|
|
|
295
295
|
* The variant is used
|
|
296
296
|
* to change the visual communication.
|
|
297
297
|
*/
|
|
298
|
-
variant?: ResponsiveType<'text' | 'textSecondary' | 'filled' | 'outlined' | 'elevated' | 'tonal' | 'linkPrimary' | 'linkSecondary' | 'positive' | 'negative'>;
|
|
298
|
+
variant?: ResponsiveType<'text' | 'textSecondary' | 'filled' | 'outlined' | 'elevated' | 'tonal' | 'linkPrimary' | 'linkSecondary' | 'positive' | 'negative' | 'warning' | 'neutral' | 'white' | 'subtle' | 'outlinedPositive' | 'outlinedNegative' | 'outlinedWarning' | 'outlinedNeutral' | 'outlinedSubtle' | 'linkPositive' | 'linkNegative' | 'linkWarning' | 'linkWhite' | 'textPositive' | 'textNegative' | 'textWarning' | 'textWhite' | 'textSubtle'>;
|
|
299
|
+
/**
|
|
300
|
+
* Uses the container-tier color of the status `variant` instead of the
|
|
301
|
+
* vivid one — lighter in light mode, darker in dark mode. Use this to keep
|
|
302
|
+
* the button legible when it sits on a background from the same color
|
|
303
|
+
* family (e.g. an action button inside a matching colored `InfoBox`). <br />
|
|
304
|
+
* Only affects the status variants (`positive`, `negative`, `warning`,
|
|
305
|
+
* `neutral`, `subtle` and their `outlined*`/`link*`/`text*` counterparts) —
|
|
306
|
+
* ignored otherwise.
|
|
307
|
+
* @default false
|
|
308
|
+
*/
|
|
309
|
+
contrast?: boolean;
|
|
299
310
|
/**
|
|
300
311
|
* The component to render the button as. <br />
|
|
301
312
|
* This is useful if you want to use a different component for the button like a `Link` component from **Next.js** or **React Router**.
|
|
@@ -2249,7 +2260,7 @@ export declare interface ImageVisualizerProps {
|
|
|
2249
2260
|
}
|
|
2250
2261
|
|
|
2251
2262
|
export declare const InfoBox: {
|
|
2252
|
-
({ message, title, variant, icon, elevated, borderRadius, actions, showCloseButton, onClose, }: InfoBoxProps): JSX.Element;
|
|
2263
|
+
({ message, title, variant, icon, elevated, borderRadius, leftBorder, actions, showCloseButton, onClose, }: InfoBoxProps): JSX.Element;
|
|
2253
2264
|
displayName: string;
|
|
2254
2265
|
};
|
|
2255
2266
|
|
|
@@ -2299,9 +2310,15 @@ export declare interface InfoBoxProps {
|
|
|
2299
2310
|
elevated?: boolean;
|
|
2300
2311
|
/**
|
|
2301
2312
|
* The border radius of the InfoBox.
|
|
2302
|
-
* @default '
|
|
2313
|
+
* @default 'rounded'
|
|
2303
2314
|
*/
|
|
2304
|
-
borderRadius?: 'none' | '
|
|
2315
|
+
borderRadius?: 'none' | 'rounded';
|
|
2316
|
+
/**
|
|
2317
|
+
* Whether to display a 4px left border. The border color follows the
|
|
2318
|
+
* `variant`.
|
|
2319
|
+
* @default false
|
|
2320
|
+
*/
|
|
2321
|
+
leftBorder?: boolean;
|
|
2305
2322
|
/**
|
|
2306
2323
|
* Optional action buttons displayed beside the message when they fit in this
|
|
2307
2324
|
* container, or on the next line when they do not.
|