@zvoove/unity-ui 2.35.0 → 2.35.2
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.
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.d.ts +30 -6
- package/dist/unity-ui.es.js +805 -803
- package/package.json +9 -9
package/dist/unity-ui.d.ts
CHANGED
|
@@ -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?:
|
|
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;
|
|
@@ -1120,7 +1130,7 @@ export declare const DEFAULT_LABELS: UploaderLabels;
|
|
|
1120
1130
|
|
|
1121
1131
|
export declare type Density = 'default' | '-2' | '-4';
|
|
1122
1132
|
|
|
1123
|
-
export declare const Dialog: ({ open, onClose, children, closeOnBackdropClick, closeOnEsc, padding, size, zIndex, }: DialogProps) =>
|
|
1133
|
+
export declare const Dialog: ({ open, onClose, children, closeOnBackdropClick, closeOnEsc, padding, size, zIndex, }: DialogProps) => JSX.Element;
|
|
1124
1134
|
|
|
1125
1135
|
/**
|
|
1126
1136
|
* Global manager for Dialog components to track open dialogs.
|
|
@@ -1450,7 +1460,7 @@ export declare type FlexResponsiveStylesKeys<Attr extends string> = GenerateSimp
|
|
|
1450
1460
|
export declare type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
1451
1461
|
|
|
1452
1462
|
export declare const FloatSearch: {
|
|
1453
|
-
<T extends React.ElementType = "button">({ open, onClose, items, onSearch, onSelect, value, placeholder, translations: translationsProp, zIndex, loading, linkComponent: ItemComponent, }: FloatSearchProps<T>):
|
|
1463
|
+
<T extends React.ElementType = "button">({ open, onClose, items, onSearch, onSelect, value, placeholder, translations: translationsProp, zIndex, loading, linkComponent: ItemComponent, }: FloatSearchProps<T>): JSX.Element;
|
|
1454
1464
|
displayName: string;
|
|
1455
1465
|
};
|
|
1456
1466
|
|
|
@@ -2882,6 +2892,8 @@ export declare interface PopUpMenuProps extends Omit<React.HTMLAttributes<HTMLDi
|
|
|
2882
2892
|
|
|
2883
2893
|
export declare type PopUpMenuSelectionType = string | string[] | undefined;
|
|
2884
2894
|
|
|
2895
|
+
declare type PortalContainer = HTMLElement | ShadowRoot;
|
|
2896
|
+
|
|
2885
2897
|
export declare type ProductIconNames = keyof typeof productIconsMap;
|
|
2886
2898
|
|
|
2887
2899
|
/**
|
|
@@ -3235,7 +3247,7 @@ export declare type SelectProps = Union & {
|
|
|
3235
3247
|
} & Pick<PopUpMenuProps, 'allowClearAll' | 'allowSelectAll' | 'selectAllLabel' | 'clearAllLabel' | 'noResultsFoundMessage' | 'onScrollEnd' | 'isLoadingMore'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
3236
3248
|
|
|
3237
3249
|
export declare const Sheet: {
|
|
3238
|
-
({ open, onClose, children, title, subTitle, closeOnBackdropClick, closeOnEsc, padding, showHandle, size, placement, headerActions, footerActions, stickyFooter, stickyHeader, showCloseButton, showBackArrow, resizable, width, minWidth, maxWidth, onResizeEnd, }: SheetProps):
|
|
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;
|
|
3239
3251
|
displayName: string;
|
|
3240
3252
|
};
|
|
3241
3253
|
|
|
@@ -4828,6 +4840,18 @@ export declare interface UseBreakpointReturn {
|
|
|
4828
4840
|
|
|
4829
4841
|
export declare const useClickOutside: <T extends Node = HTMLElement>(refs: RefType<T> | RefType<T>[] | RefType<Node>[], callback: () => void, isOpen?: boolean) => void;
|
|
4830
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
|
+
|
|
4831
4855
|
export declare const UserArea: ForwardRefExoticComponent<UserAreaProps & RefAttributes<HTMLDivElement>>;
|
|
4832
4856
|
|
|
4833
4857
|
export declare interface UserAreaProps {
|