@zvoove/unity-ui 2.42.0 → 2.43.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.
@@ -2279,8 +2279,8 @@ export declare interface InfoBoxProps {
2279
2279
  message: ReactNode;
2280
2280
  /**
2281
2281
  * Optional title displayed above the message. When present, the InfoBox uses
2282
- * a stacked title/message structure; actions still sit beside the message
2283
- * when there is enough width.
2282
+ * a stacked title/message structure; actions sit beside the message when
2283
+ * they fit in this container, otherwise they wrap below it.
2284
2284
  */
2285
2285
  title?: ReactNode;
2286
2286
  /**
@@ -2303,8 +2303,8 @@ export declare interface InfoBoxProps {
2303
2303
  */
2304
2304
  borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
2305
2305
  /**
2306
- * Optional action buttons displayed alongside the message or below it when
2307
- * the InfoBox is too narrow for the inline layout.
2306
+ * Optional action buttons displayed beside the message when they fit in this
2307
+ * container, or on the next line when they do not.
2308
2308
  */
2309
2309
  actions?: InfoBoxAction[];
2310
2310
  /**
@@ -4491,7 +4491,7 @@ export declare interface TopBarProps {
4491
4491
  density?: 'default' | '-2' | '-4';
4492
4492
  }
4493
4493
 
4494
- export declare const Typography: ({ children, variant, size, as: AsComponent, color, textAlign, truncate, textTransform, hyphenate, wrap, ...props }: TypographyProps) => JSX.Element;
4494
+ export declare const Typography: ({ children, variant, size, as: AsComponent, color, textAlign, truncate, truncatedBy, textTransform, hyphenate, wrap, ...props }: TypographyProps) => JSX.Element;
4495
4495
 
4496
4496
  declare type TypographyElements = 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4497
4497
 
@@ -4543,6 +4543,12 @@ export declare type TypographyProps<T extends TypographyElements = 'p'> = Omit<R
4543
4543
  * The text that doesn't fit the container will be hidden and replaced by ellipsis
4544
4544
  */
4545
4545
  truncate?: number;
4546
+ /**
4547
+ * Whether overflowing text is truncated at word boundaries or individual letters.
4548
+ * Use with `truncate`. The `letter` value applies `word-break: break-all`.
4549
+ * @default 'word'
4550
+ */
4551
+ truncatedBy?: 'word' | 'letter';
4546
4552
  /**
4547
4553
  * If true, the text will be wrapped.
4548
4554
  */