@zvoove/unity-ui 2.24.0 → 2.26.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.
@@ -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];
@@ -789,6 +804,7 @@ export declare const commonIconsMap: {
789
804
  readonly robot: Icon_2;
790
805
  readonly save: Icon_2;
791
806
  readonly search: Icon_2;
807
+ readonly 'search-plus': Icon_2;
792
808
  readonly 'send-message': Icon_2;
793
809
  readonly settings: Icon_2;
794
810
  readonly 'setup-time': Icon_2;
@@ -1395,7 +1411,7 @@ export declare interface FloatSearchTranslations {
1395
1411
  close?: string;
1396
1412
  }
1397
1413
 
1398
- 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';
1399
1415
 
1400
1416
  export declare const FormLabel: ({ value, required, htmlFor, ...props }: FormLabelProps) => JSX.Element;
1401
1417
 
@@ -1527,6 +1543,10 @@ export declare interface GridProps extends React.HTMLAttributes<HTMLDivElement>
1527
1543
  margin?: ResponsiveType<Margin>;
1528
1544
  }
1529
1545
 
1546
+ export declare type HighlightStyle = {
1547
+ [key: string]: CSSProperties;
1548
+ };
1549
+
1530
1550
  export declare const Icon: ({ name, size, weight, color, type, featured, ...props }: IconProps) => JSX.Element;
1531
1551
 
1532
1552
  declare const iconMap: {
@@ -1710,6 +1730,7 @@ declare const iconMap: {
1710
1730
  readonly robot: Icon_2;
1711
1731
  readonly save: Icon_2;
1712
1732
  readonly search: Icon_2;
1733
+ readonly 'search-plus': Icon_2;
1713
1734
  readonly 'send-message': Icon_2;
1714
1735
  readonly settings: Icon_2;
1715
1736
  readonly 'setup-time': Icon_2;
@@ -1856,6 +1877,57 @@ declare const iconTypes: {
1856
1877
  readonly gray: "gray";
1857
1878
  };
1858
1879
 
1880
+ export declare const ImageVisualizer: {
1881
+ ({ src, alt, width, height, maxWidth, maxHeight, minWidth, minHeight, borderRadius, objectFit, }: ImageVisualizerProps): JSX.Element;
1882
+ displayName: string;
1883
+ };
1884
+
1885
+ export declare interface ImageVisualizerProps {
1886
+ /**
1887
+ * The source URL of the image.
1888
+ */
1889
+ src: string;
1890
+ /**
1891
+ * The alt text of the image.
1892
+ * @default ''
1893
+ */
1894
+ alt?: string;
1895
+ /**
1896
+ * The width of the image container.
1897
+ */
1898
+ width?: ResponsiveType<number | string>;
1899
+ /**
1900
+ * The height of the image container.
1901
+ */
1902
+ height?: ResponsiveType<number | string>;
1903
+ /**
1904
+ * The minimum width of the image container.
1905
+ */
1906
+ minWidth?: ResponsiveType<number | string>;
1907
+ /**
1908
+ * The minimum height of the image container.
1909
+ */
1910
+ minHeight?: ResponsiveType<number | string>;
1911
+ /**
1912
+ * The maximum width of the image container.
1913
+ */
1914
+ maxWidth?: ResponsiveType<number | string>;
1915
+ /**
1916
+ * The maximum height of the image container.
1917
+ */
1918
+ maxHeight?: ResponsiveType<number | string>;
1919
+ /**
1920
+ * The border radius of the image container.
1921
+ * @default 'sm'
1922
+ */
1923
+ borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
1924
+ /**
1925
+ * The CSS object-fit of the image inside the container.
1926
+ * @default 'cover'
1927
+ */
1928
+ objectFit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
1929
+ }
1930
+
1859
1931
  export declare const InfoBox: {
1860
1932
  ({ message, variant, icon, elevated, }: InfoBoxProps): JSX.Element;
1861
1933
  displayName: string;