@zvoove/unity-ui 2.43.0 → 2.45.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.
@@ -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> & {
@@ -4141,7 +4201,7 @@ export declare interface TableSectionRow {
4141
4201
  }
4142
4202
 
4143
4203
  export declare const Tabs: {
4144
- <T extends React.ElementType = "button">({ items, activeItem, onChange, hideBorder, itemsAlignment, isSticky, panels, linkComponent: LinkComponent, }: TabsProps<T>): JSX.Element;
4204
+ <T extends React.ElementType = "button">({ items, activeItem, onChange, hideBorder, itemsAlignment, isSticky, panels, panelPadding, linkComponent: LinkComponent, }: TabsProps<T>): JSX.Element;
4145
4205
  displayName: string;
4146
4206
  };
4147
4207
 
@@ -4178,6 +4238,11 @@ export declare interface TabsProps<T extends React.ElementType = 'button'> {
4178
4238
  * The alignment of the tabs.
4179
4239
  */
4180
4240
  itemsAlignment?: 'left' | 'center' | 'right' | 'between' | 'around' | 'evenly';
4241
+ /**
4242
+ * Padding applied to each panel.
4243
+ * @default 'md'
4244
+ */
4245
+ panelPadding?: SpacingKeys;
4181
4246
  }
4182
4247
 
4183
4248
  export declare const TabStepper: {
@@ -4491,7 +4556,7 @@ export declare interface TopBarProps {
4491
4556
  density?: 'default' | '-2' | '-4';
4492
4557
  }
4493
4558
 
4494
- export declare const Typography: ({ children, variant, size, as: AsComponent, color, textAlign, truncate, truncatedBy, textTransform, hyphenate, wrap, ...props }: TypographyProps) => JSX.Element;
4559
+ export declare const Typography: ({ children, variant, size, as: AsComponent, color, textAlign, truncate, truncatedBy, textTransform, hyphenate, wrap, className, ...props }: TypographyProps) => JSX.Element;
4495
4560
 
4496
4561
  declare type TypographyElements = 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4497
4562
 
@@ -4544,8 +4609,9 @@ export declare type TypographyProps<T extends TypographyElements = 'p'> = Omit<R
4544
4609
  */
4545
4610
  truncate?: number;
4546
4611
  /**
4547
- * Whether overflowing text is truncated at word boundaries or individual letters.
4548
- * Use with `truncate`. The `letter` value applies `word-break: break-all`.
4612
+ * Controls whether text wraps at word boundaries or individual letters.
4613
+ * Can be used with or without `truncate`. The `letter` value applies
4614
+ * `word-break: break-all`.
4549
4615
  * @default 'word'
4550
4616
  */
4551
4617
  truncatedBy?: 'word' | 'letter';