@zvoove/unity-ui 2.25.0 → 2.26.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.
@@ -1,4 +1,5 @@
1
1
  import { ChangeEventHandler } from 'react';
2
+ import { CSSProperties } from 'react';
2
3
  import { default as default_2 } from 'react';
3
4
  import { Dispatch } from 'react';
4
5
  import { ElementType } from 'react';
@@ -180,7 +181,7 @@ declare type AvatarSize = (typeof AVATAR_SIZES)[keyof typeof AVATAR_SIZES];
180
181
 
181
182
  declare type AxisVariant = 'X' | 'Y';
182
183
 
183
- export declare type BackgroundColors = 'background' | 'outline' | 'outline-variant' | 'outline-low' | 'primary' | 'primary-hover' | 'primary-active' | 'secondary' | 'tertiary' | 'primary-container' | 'secondary-container' | 'tertiary-container' | 'tertiary-container-hover' | 'tertiary-container-active' | 'primary-fixed' | 'primary-fixed-dim' | 'secondary-fixed' | 'secondary-fixed-dim' | 'tertiary-fixed' | 'tertiary-fixed-dim' | 'surface' | 'surface-bright' | 'surface-dim' | 'surface-variant' | 'surface-container-lowest' | 'surface-container-low' | 'surface-container' | 'surface-container-high' | 'surface-container-highest' | 'error' | 'error-container' | 'inverse-surface' | 'inverse-on-surface' | 'inverse-primary' | 'scrim' | 'yellow' | 'dark-yellow' | 'yellow-container' | 'green' | 'dark-green' | 'green-container' | 'pink' | 'dark-pink' | 'pink-container' | 'steel-blue' | 'dark-steel-blue' | 'steel-blue-container' | 'container-neutral' | 'container-neutral-hover';
184
+ export declare type BackgroundColors = 'background' | 'outline' | 'outline-variant' | 'outline-low' | 'primary' | 'primary-hover' | 'primary-active' | 'secondary' | 'tertiary' | 'primary-container' | 'secondary-container' | 'tertiary-container' | 'tertiary-container-hover' | 'tertiary-container-active' | 'primary-fixed' | 'primary-fixed-dim' | 'secondary-fixed' | 'secondary-fixed-dim' | 'tertiary-fixed' | 'tertiary-fixed-dim' | 'surface' | 'surface-bright' | 'surface-dim' | 'surface-variant' | 'surface-container-lowest' | 'surface-container-low' | 'surface-container' | 'surface-container-high' | 'surface-container-highest' | 'error' | 'error-container' | 'inverse-surface' | 'inverse-on-surface' | 'inverse-primary' | 'scrim' | 'yellow' | 'dark-yellow' | 'yellow-container' | 'green' | 'dark-green' | 'green-container' | 'pink' | 'dark-pink' | 'pink-container' | 'steel-blue' | 'dark-steel-blue' | 'steel-blue-container' | 'container-neutral' | 'container-neutral-hover' | 'code-surface' | 'code-surface-variant';
184
185
 
185
186
  export declare const Badge: ({ children, variant, content, dot, }: BadgeProps) => JSX.Element;
186
187
 
@@ -588,7 +589,7 @@ declare type ChipPropsTypeIcon = {
588
589
  };
589
590
 
590
591
  export declare const CodeBlock: {
591
- ({ code, filename, ...props }: CodeBlockProps): JSX.Element;
592
+ ({ code, filename, language, variant, ...props }: CodeBlockProps): JSX.Element;
592
593
  displayName: string;
593
594
  };
594
595
 
@@ -598,9 +599,23 @@ export declare interface CodeBlockProps extends React.HTMLAttributes<HTMLPreElem
598
599
  */
599
600
  code: string;
600
601
  /**
601
- * Optional filename shown in the header bar.
602
+ * Optional filename shown in the header bar (block variant only).
602
603
  */
603
604
  filename?: string;
605
+ /**
606
+ * Programming language for syntax highlighting (e.g. `"typescript"`,
607
+ * `"python"`, `"bash"`). When provided the code is tokenized and
608
+ * coloured via react-syntax-highlighter / Prism.
609
+ * @default 'text'
610
+ */
611
+ language?: string;
612
+ /**
613
+ * Display variant. In `auto` mode the component renders inline for
614
+ * single-line code without a filename, and as a full block otherwise.
615
+ * Use `inline` or `block` to force a specific rendering.
616
+ * @default 'auto'
617
+ */
618
+ variant?: 'auto' | 'block' | 'inline';
604
619
  }
605
620
 
606
621
  export declare type ColumnAlign = (typeof align)[keyof typeof align];
@@ -1396,7 +1411,7 @@ export declare interface FloatSearchTranslations {
1396
1411
  close?: string;
1397
1412
  }
1398
1413
 
1399
- export declare type ForegroundColors = 'primary' | 'secondary' | 'tertiary' | 'yellow' | 'green' | 'pink' | 'steel-blue' | 'dark-yellow' | 'dark-green' | 'dark-pink' | 'dark-steel-blue' | 'inverse-on-surface' | 'on-primary' | 'on-secondary' | 'on-tertiary' | 'on-primary-container' | 'on-secondary-container' | 'on-tertiary-container' | 'on-primary-fixed' | 'on-primary-fixed-variant' | 'on-secondary-fixed' | 'on-secondary-fixed-variant' | 'on-tertiary-fixed' | 'on-tertiary-fixed-variant' | 'on-surface' | 'on-surface-variant' | 'on-surface-variant-lowest' | 'on-error' | 'on-error-container' | 'on-yellow' | 'on-dark-yellow' | 'on-yellow-container' | 'on-green' | 'on-dark-green' | 'on-green-container' | 'on-pink' | 'on-dark-pink' | 'on-pink-container' | 'on-steel-blue' | 'on-dark-steel-blue' | 'on-steel-blue-container' | 'error' | 'on-scrim' | 'on-container-neutral';
1414
+ export declare type ForegroundColors = 'primary' | 'secondary' | 'tertiary' | 'yellow' | 'green' | 'pink' | 'steel-blue' | 'dark-yellow' | 'dark-green' | 'dark-pink' | 'dark-steel-blue' | 'inverse-on-surface' | 'on-primary' | 'on-secondary' | 'on-tertiary' | 'on-primary-container' | 'on-secondary-container' | 'on-tertiary-container' | 'on-primary-fixed' | 'on-primary-fixed-variant' | 'on-secondary-fixed' | 'on-secondary-fixed-variant' | 'on-tertiary-fixed' | 'on-tertiary-fixed-variant' | 'on-surface' | 'on-surface-variant' | 'on-surface-variant-lowest' | 'on-error' | 'on-error-container' | 'on-yellow' | 'on-dark-yellow' | 'on-yellow-container' | 'on-green' | 'on-dark-green' | 'on-green-container' | 'on-pink' | 'on-dark-pink' | 'on-pink-container' | 'on-steel-blue' | 'on-dark-steel-blue' | 'on-steel-blue-container' | 'error' | 'on-scrim' | 'on-container-neutral' | 'code-on-surface';
1400
1415
 
1401
1416
  export declare const FormLabel: ({ value, required, htmlFor, ...props }: FormLabelProps) => JSX.Element;
1402
1417
 
@@ -1528,6 +1543,10 @@ export declare interface GridProps extends React.HTMLAttributes<HTMLDivElement>
1528
1543
  margin?: ResponsiveType<Margin>;
1529
1544
  }
1530
1545
 
1546
+ export declare type HighlightStyle = {
1547
+ [key: string]: CSSProperties;
1548
+ };
1549
+
1531
1550
  export declare const Icon: ({ name, size, weight, color, type, featured, ...props }: IconProps) => JSX.Element;
1532
1551
 
1533
1552
  declare const iconMap: {