@zvoove/unity-ui 2.44.0 → 2.45.1
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/bin/cli.mjs +13 -0
- package/dist/bin/generate-skills.mjs +11 -0
- package/dist/llms.txt +19 -0
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.d.ts +60 -0
- package/dist/unity-ui.es.js +177 -177
- package/package.json +1 -1
package/dist/unity-ui.d.ts
CHANGED
|
@@ -3207,6 +3207,66 @@ export declare type ScoreCardSize = 'large' | 'medium' | 'small';
|
|
|
3207
3207
|
|
|
3208
3208
|
export declare type ScoreCardVariant = 'negative' | 'active' | 'positive' | 'neutral' | 'ghost';
|
|
3209
3209
|
|
|
3210
|
+
export declare const ScrollableArea: ForwardRefExoticComponent<ScrollableAreaProps & RefAttributes<HTMLDivElement>>;
|
|
3211
|
+
|
|
3212
|
+
/**
|
|
3213
|
+
* Per-edge fade flags. `block` maps to top and bottom, `inline` to left and
|
|
3214
|
+
* right. Explicit sides override the matching axis.
|
|
3215
|
+
*/
|
|
3216
|
+
export declare type ScrollableAreaFade = {
|
|
3217
|
+
top?: boolean;
|
|
3218
|
+
right?: boolean;
|
|
3219
|
+
bottom?: boolean;
|
|
3220
|
+
left?: boolean;
|
|
3221
|
+
block?: boolean;
|
|
3222
|
+
inline?: boolean;
|
|
3223
|
+
};
|
|
3224
|
+
|
|
3225
|
+
export declare type ScrollableAreaFadeProp = boolean | ScrollableAreaFade;
|
|
3226
|
+
|
|
3227
|
+
export declare interface ScrollableAreaProps {
|
|
3228
|
+
/**
|
|
3229
|
+
* Content rendered inside the scrollable area.
|
|
3230
|
+
*/
|
|
3231
|
+
children: ReactNode;
|
|
3232
|
+
/**
|
|
3233
|
+
* Height of the scrollable area. When omitted, the area fills its parent
|
|
3234
|
+
* (`size-full`, or `h-full` if only `width` is set).
|
|
3235
|
+
*/
|
|
3236
|
+
height?: ResponsiveType<number | string>;
|
|
3237
|
+
/**
|
|
3238
|
+
* Width of the scrollable area. When omitted, the area fills its parent
|
|
3239
|
+
* (`size-full`, or `w-full` if only `height` is set).
|
|
3240
|
+
*/
|
|
3241
|
+
width?: ResponsiveType<number | string>;
|
|
3242
|
+
/**
|
|
3243
|
+
* Hide the scrollbar entirely. Takes precedence over `useDefaultScrollbar`.
|
|
3244
|
+
* @default false
|
|
3245
|
+
*/
|
|
3246
|
+
hideScrollbar?: boolean;
|
|
3247
|
+
/**
|
|
3248
|
+
* Use the browser native scrollbar instead of the overlay (Apple-like) style.
|
|
3249
|
+
* @default false
|
|
3250
|
+
*/
|
|
3251
|
+
useDefaultScrollbar?: boolean;
|
|
3252
|
+
/**
|
|
3253
|
+
* Show edge fades while there is remaining overflow in that direction.
|
|
3254
|
+
* Fades disappear when the corresponding edge of the container is reached.
|
|
3255
|
+
* Pass `true` for all edges, or an object to enable specific sides.
|
|
3256
|
+
* `block` maps to top and bottom, `inline` to left and right. Explicit sides
|
|
3257
|
+
* override the matching axis.
|
|
3258
|
+
* @default false
|
|
3259
|
+
*/
|
|
3260
|
+
addFade?: ScrollableAreaFadeProp;
|
|
3261
|
+
/**
|
|
3262
|
+
* Background color of the area. Also used as the fade gradient source when
|
|
3263
|
+
* `addFade` is enabled. Pass the same token as the surrounding surface so the
|
|
3264
|
+
* fade blends into the page.
|
|
3265
|
+
* @default 'surface'
|
|
3266
|
+
*/
|
|
3267
|
+
bgColor?: BackgroundColors;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3210
3270
|
export declare const SegmentButton: <T extends React.ElementType = "button", V = string>({ label, active, matchSiblings, icon, value, as, linkComponent, ...props }: SegmentButtonProps<T, V>) => JSX.Element;
|
|
3211
3271
|
|
|
3212
3272
|
export declare type SegmentButtonProps<T extends React.ElementType, V = string> = React.ComponentPropsWithoutRef<T> & {
|