@zvoove/unity-ui 2.34.0 → 2.35.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.
@@ -12,7 +12,6 @@ import { JSX } from 'react/jsx-runtime';
12
12
  import { MouseEvent as MouseEvent_2 } from 'react';
13
13
  import { PropsWithChildren } from 'react';
14
14
  import { ReactNode } from 'react';
15
- import { ReactPortal } from 'react';
16
15
  import { RefAttributes } from 'react';
17
16
  import { RefObject } from 'react';
18
17
  import { SetStateAction } from 'react';
@@ -601,9 +600,16 @@ export declare type ChipProps = ChipPropsTypeIcon & {
601
600
  */
602
601
  disabled?: boolean;
603
602
  /**
604
- * The size of the component
603
+ * The size of the component.
604
+ *
605
+ * @default 'md'
606
+ *
607
+ * @remarks
608
+ * The values `'medium' | 'large'` are **deprecated** and kept for backwards
609
+ * compatibility. They are mapped to `'md' | 'lg'` and will be removed in
610
+ * v3.0.0.
605
611
  */
606
- size?: 'medium' | 'large';
612
+ size?: ChipSize | ChipSizeLegacy;
607
613
  /**
608
614
  * The action to perform when the delete button is clicked.
609
615
  * This is used only for `input` type chips.
@@ -641,6 +647,10 @@ declare type ChipPropsTypeIcon = {
641
647
  icon?: never;
642
648
  };
643
649
 
650
+ export declare type ChipSize = 'md' | 'lg';
651
+
652
+ /* Excluded from this release type: ChipSizeLegacy */
653
+
644
654
  export declare const CodeBlock: {
645
655
  ({ code, filename, language, variant, ...props }: CodeBlockProps): JSX.Element;
646
656
  displayName: string;
@@ -803,7 +813,10 @@ export declare const commonIconsMap: {
803
813
  }) => JSX.Element;
804
814
  readonly folder: Icon_2;
805
815
  readonly 'folder-open': Icon_2;
816
+ readonly folders: Icon_2;
806
817
  readonly 'grid-view': Icon_2;
818
+ readonly 'hand-coins': Icon_2;
819
+ readonly handshake: Icon_2;
807
820
  readonly 'hard-hat': Icon_2;
808
821
  readonly 'head-circuit': Icon_2;
809
822
  readonly help: Icon_2;
@@ -830,6 +843,7 @@ export declare const commonIconsMap: {
830
843
  readonly code: Icon_2;
831
844
  readonly microphone: Icon_2;
832
845
  readonly minus: Icon_2;
846
+ readonly 'money-wavy': Icon_2;
833
847
  readonly 'more-horizontal': Icon_2;
834
848
  readonly 'more-vertical': Icon_2;
835
849
  readonly moped: Icon_2;
@@ -850,12 +864,14 @@ export declare const commonIconsMap: {
850
864
  readonly 'pin-slash': Icon_2;
851
865
  readonly 'piggy-bank': Icon_2;
852
866
  readonly plant: Icon_2;
867
+ readonly 'plugs-connected': Icon_2;
853
868
  readonly printer: Icon_2;
854
869
  readonly privacy: Icon_2;
855
870
  readonly 'qr-code': Icon_2;
856
871
  readonly refresh: Icon_2;
857
872
  readonly remark: Icon_2;
858
873
  readonly robot: Icon_2;
874
+ readonly 'rocket-launch': Icon_2;
859
875
  readonly save: Icon_2;
860
876
  readonly search: Icon_2;
861
877
  readonly 'search-plus': Icon_2;
@@ -870,6 +886,7 @@ export declare const commonIconsMap: {
870
886
  readonly 'skip-forward': Icon_2;
871
887
  readonly smartphone: Icon_2;
872
888
  readonly sparkle: Icon_2;
889
+ readonly 'squares-four': Icon_2;
873
890
  readonly star: Icon_2;
874
891
  readonly start: Icon_2;
875
892
  readonly stop: Icon_2;
@@ -1113,7 +1130,7 @@ export declare const DEFAULT_LABELS: UploaderLabels;
1113
1130
 
1114
1131
  export declare type Density = 'default' | '-2' | '-4';
1115
1132
 
1116
- export declare const Dialog: ({ open, onClose, children, closeOnBackdropClick, closeOnEsc, padding, size, zIndex, }: DialogProps) => ReactPortal | null;
1133
+ export declare const Dialog: ({ open, onClose, children, closeOnBackdropClick, closeOnEsc, padding, size, zIndex, }: DialogProps) => JSX.Element;
1117
1134
 
1118
1135
  /**
1119
1136
  * Global manager for Dialog components to track open dialogs.
@@ -1443,7 +1460,7 @@ export declare type FlexResponsiveStylesKeys<Attr extends string> = GenerateSimp
1443
1460
  export declare type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
1444
1461
 
1445
1462
  export declare const FloatSearch: {
1446
- <T extends React.ElementType = "button">({ open, onClose, items, onSearch, onSelect, value, placeholder, translations: translationsProp, zIndex, loading, linkComponent: ItemComponent, }: FloatSearchProps<T>): ReactPortal | null;
1463
+ <T extends React.ElementType = "button">({ open, onClose, items, onSearch, onSelect, value, placeholder, translations: translationsProp, zIndex, loading, linkComponent: ItemComponent, }: FloatSearchProps<T>): JSX.Element;
1447
1464
  displayName: string;
1448
1465
  };
1449
1466
 
@@ -1734,6 +1751,23 @@ export declare type HighlightStyle = {
1734
1751
  export declare const Icon: ({ name, size, weight, color, type, featured, ...props }: IconProps) => JSX.Element;
1735
1752
 
1736
1753
  declare const iconMap: {
1754
+ readonly 'prod-recruit': Icon_2;
1755
+ readonly 'prod-cockpit': Icon_2;
1756
+ readonly 'prod-insights': Icon_2;
1757
+ readonly 'prod-documents': Icon_2;
1758
+ readonly 'prod-zvoove-one-pdl': Icon_2;
1759
+ readonly 'prod-zvoove-one-payroll': Icon_2;
1760
+ readonly 'prod-connect': Icon_2;
1761
+ readonly 'prod-work-app': Icon_2;
1762
+ readonly 'prod-analytics': Icon_2;
1763
+ readonly 'prod-dms-plus': Icon_2;
1764
+ readonly 'prod-safety-manager': Icon_2;
1765
+ readonly 'prod-timesheets': Icon_2;
1766
+ readonly 'prod-managed-payroll': Icon_2;
1767
+ readonly 'prod-cashlink': Icon_2;
1768
+ readonly 'prod-professional-service': Icon_2;
1769
+ readonly 'prod-online-academy': Icon_2;
1770
+ readonly 'prod-knowledge-base': Icon_2;
1737
1771
  readonly zvoove: ({ size, color }: ZvooveLogoProps) => JSX.Element;
1738
1772
  readonly 'zvoove-one': ({ size, color }: {
1739
1773
  size?: number;
@@ -1904,7 +1938,10 @@ declare const iconMap: {
1904
1938
  }) => JSX.Element;
1905
1939
  readonly folder: Icon_2;
1906
1940
  readonly 'folder-open': Icon_2;
1941
+ readonly folders: Icon_2;
1907
1942
  readonly 'grid-view': Icon_2;
1943
+ readonly 'hand-coins': Icon_2;
1944
+ readonly handshake: Icon_2;
1908
1945
  readonly 'hard-hat': Icon_2;
1909
1946
  readonly 'head-circuit': Icon_2;
1910
1947
  readonly help: Icon_2;
@@ -1931,6 +1968,7 @@ declare const iconMap: {
1931
1968
  readonly code: Icon_2;
1932
1969
  readonly microphone: Icon_2;
1933
1970
  readonly minus: Icon_2;
1971
+ readonly 'money-wavy': Icon_2;
1934
1972
  readonly 'more-horizontal': Icon_2;
1935
1973
  readonly 'more-vertical': Icon_2;
1936
1974
  readonly moped: Icon_2;
@@ -1951,12 +1989,14 @@ declare const iconMap: {
1951
1989
  readonly 'pin-slash': Icon_2;
1952
1990
  readonly 'piggy-bank': Icon_2;
1953
1991
  readonly plant: Icon_2;
1992
+ readonly 'plugs-connected': Icon_2;
1954
1993
  readonly printer: Icon_2;
1955
1994
  readonly privacy: Icon_2;
1956
1995
  readonly 'qr-code': Icon_2;
1957
1996
  readonly refresh: Icon_2;
1958
1997
  readonly remark: Icon_2;
1959
1998
  readonly robot: Icon_2;
1999
+ readonly 'rocket-launch': Icon_2;
1960
2000
  readonly save: Icon_2;
1961
2001
  readonly search: Icon_2;
1962
2002
  readonly 'search-plus': Icon_2;
@@ -1971,6 +2011,7 @@ declare const iconMap: {
1971
2011
  readonly 'skip-forward': Icon_2;
1972
2012
  readonly smartphone: Icon_2;
1973
2013
  readonly sparkle: Icon_2;
2014
+ readonly 'squares-four': Icon_2;
1974
2015
  readonly star: Icon_2;
1975
2016
  readonly start: Icon_2;
1976
2017
  readonly stop: Icon_2;
@@ -2851,6 +2892,36 @@ export declare interface PopUpMenuProps extends Omit<React.HTMLAttributes<HTMLDi
2851
2892
 
2852
2893
  export declare type PopUpMenuSelectionType = string | string[] | undefined;
2853
2894
 
2895
+ declare type PortalContainer = HTMLElement | ShadowRoot;
2896
+
2897
+ export declare type ProductIconNames = keyof typeof productIconsMap;
2898
+
2899
+ /**
2900
+ * Product icons — semantic aliases that map a zvoove product to its
2901
+ * representative Phosphor icon. These reuse the same glyphs as the common
2902
+ * icons but are named after the product they represent (e.g. `prod-recruit`),
2903
+ * so they can be used directly in product/app lists.
2904
+ */
2905
+ export declare const productIconsMap: {
2906
+ readonly 'prod-recruit': Icon_2;
2907
+ readonly 'prod-cockpit': Icon_2;
2908
+ readonly 'prod-insights': Icon_2;
2909
+ readonly 'prod-documents': Icon_2;
2910
+ readonly 'prod-zvoove-one-pdl': Icon_2;
2911
+ readonly 'prod-zvoove-one-payroll': Icon_2;
2912
+ readonly 'prod-connect': Icon_2;
2913
+ readonly 'prod-work-app': Icon_2;
2914
+ readonly 'prod-analytics': Icon_2;
2915
+ readonly 'prod-dms-plus': Icon_2;
2916
+ readonly 'prod-safety-manager': Icon_2;
2917
+ readonly 'prod-timesheets': Icon_2;
2918
+ readonly 'prod-managed-payroll': Icon_2;
2919
+ readonly 'prod-cashlink': Icon_2;
2920
+ readonly 'prod-professional-service': Icon_2;
2921
+ readonly 'prod-online-academy': Icon_2;
2922
+ readonly 'prod-knowledge-base': Icon_2;
2923
+ };
2924
+
2854
2925
  export declare const ProgressIndicator: ({ value, indeterminate, variant, size, foregroundColor, backgroundColor, }: ProgressIndicatorProps) => JSX.Element;
2855
2926
 
2856
2927
  export declare interface ProgressIndicatorProps {
@@ -3176,7 +3247,7 @@ export declare type SelectProps = Union & {
3176
3247
  } & Pick<PopUpMenuProps, 'allowClearAll' | 'allowSelectAll' | 'selectAllLabel' | 'clearAllLabel' | 'noResultsFoundMessage' | 'onScrollEnd' | 'isLoadingMore'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>;
3177
3248
 
3178
3249
  export declare const Sheet: {
3179
- ({ open, onClose, children, title, subTitle, closeOnBackdropClick, closeOnEsc, padding, showHandle, size, placement, headerActions, footerActions, stickyFooter, stickyHeader, showCloseButton, showBackArrow, resizable, width, minWidth, maxWidth, onResizeEnd, }: SheetProps): ReactPortal | null;
3250
+ ({ open, onClose, children, title, subTitle, closeOnBackdropClick, closeOnEsc, padding, showHandle, size, placement, headerActions, footerActions, stickyFooter, stickyHeader, showCloseButton, showBackArrow, resizable, width, minWidth, maxWidth, onResizeEnd, }: SheetProps): JSX.Element;
3180
3251
  displayName: string;
3181
3252
  };
3182
3253
 
@@ -3724,7 +3795,7 @@ export declare interface SwitchProps extends Omit<React.InputHTMLAttributes<HTML
3724
3795
  id?: string;
3725
3796
  }
3726
3797
 
3727
- declare type TabItem<T extends React.ElementType = 'button'> = {
3798
+ export declare type TabItem<T extends React.ElementType = 'button'> = {
3728
3799
  label: string;
3729
3800
  icon?: CommonIconNames;
3730
3801
  iconPosition?: 'left' | 'top';
@@ -4769,6 +4840,18 @@ export declare interface UseBreakpointReturn {
4769
4840
 
4770
4841
  export declare const useClickOutside: <T extends Node = HTMLElement>(refs: RefType<T> | RefType<T>[] | RefType<Node>[], callback: () => void, isOpen?: boolean) => void;
4771
4842
 
4843
+ /**
4844
+ * Resolves the container a portal should mount into, based on where the
4845
+ * anchor node actually lives. Inside a shadow root (e.g. a micro frontend
4846
+ * rendered via web-fragments) this is the fragment's own root, so styles and
4847
+ * events keep working; everywhere else it is `document.body`.
4848
+ *
4849
+ * Returns `null` until resolved (first render / SSR) — use it as a render
4850
+ * gate for the portal. Pass `isActive` to defer resolution until the portal
4851
+ * is about to open.
4852
+ */
4853
+ export declare const usePortalContainer: <T extends Node>(anchorRef: RefObject<T | null>, isActive?: boolean) => PortalContainer | null;
4854
+
4772
4855
  export declare const UserArea: ForwardRefExoticComponent<UserAreaProps & RefAttributes<HTMLDivElement>>;
4773
4856
 
4774
4857
  export declare interface UserAreaProps {