@zvoove/unity-ui 2.38.0 → 2.39.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.
- package/dist/llms.txt +18 -4
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.d.ts +61 -6
- package/dist/unity-ui.es.js +172 -171
- package/package.json +13 -13
package/dist/unity-ui.d.ts
CHANGED
|
@@ -11,13 +11,14 @@ import { IconWeight } from '@phosphor-icons/react';
|
|
|
11
11
|
import { JSX } from 'react/jsx-runtime';
|
|
12
12
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
13
13
|
import { PropsWithChildren } from 'react';
|
|
14
|
+
import { ReactElement } from 'react';
|
|
14
15
|
import { ReactNode } from 'react';
|
|
15
16
|
import { RefAttributes } from 'react';
|
|
16
17
|
import { RefObject } from 'react';
|
|
17
18
|
import { SetStateAction } from 'react';
|
|
18
19
|
|
|
19
20
|
export declare const Accordion: {
|
|
20
|
-
<T extends readonly AccordionItem[]>({ items, onToggle, openItems, allowMultipleOpenItems, }: AccordionProps<T>): JSX.Element;
|
|
21
|
+
<T extends readonly AccordionItem[]>({ items, onToggle, openItems, allowMultipleOpenItems, highlightOpenItems, }: AccordionProps<T>): JSX.Element;
|
|
21
22
|
displayName: string;
|
|
22
23
|
};
|
|
23
24
|
|
|
@@ -26,6 +27,13 @@ export declare interface AccordionItem {
|
|
|
26
27
|
title: string;
|
|
27
28
|
supportingText?: string;
|
|
28
29
|
children: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* An optional Tag rendered in the header, before the chevron.
|
|
32
|
+
*
|
|
33
|
+
* Only a Tag element is rendered; invalid values are ignored and warn in
|
|
34
|
+
* non-production builds.
|
|
35
|
+
*/
|
|
36
|
+
tag?: ReactElement<TagProps>;
|
|
29
37
|
isOpen?: boolean;
|
|
30
38
|
disabled?: boolean;
|
|
31
39
|
}
|
|
@@ -54,6 +62,11 @@ export declare interface AccordionProps<T extends readonly AccordionItem[] = rea
|
|
|
54
62
|
* @default false
|
|
55
63
|
*/
|
|
56
64
|
allowMultipleOpenItems?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Whether open item headers use the primary highlight background.
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
highlightOpenItems?: boolean;
|
|
57
70
|
}
|
|
58
71
|
|
|
59
72
|
export declare const ActionCard: {
|
|
@@ -1020,8 +1033,11 @@ export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange'
|
|
|
1020
1033
|
label: string;
|
|
1021
1034
|
/**
|
|
1022
1035
|
* The value of the date picker. <br />
|
|
1023
|
-
* For `mode="month"`,
|
|
1024
|
-
*
|
|
1036
|
+
* For `mode="month"`, use ISO format: `YYYY-MM` or `YYYY-MM-DD`
|
|
1037
|
+
* (e.g. `"2022-05"`) — the day, if present, is ignored. <br />
|
|
1038
|
+
* For `mode="week"`, use ISO week format `YYYY-Www` (preferred, e.g.
|
|
1039
|
+
* `"2026-W24"`) or any calendar day in the week as `YYYY-MM-DD`
|
|
1040
|
+
* (e.g. `"2026-06-10"`).
|
|
1025
1041
|
*/
|
|
1026
1042
|
value?: string;
|
|
1027
1043
|
/**
|
|
@@ -2229,16 +2245,40 @@ export declare interface ImageVisualizerProps {
|
|
|
2229
2245
|
}
|
|
2230
2246
|
|
|
2231
2247
|
export declare const InfoBox: {
|
|
2232
|
-
({ message, variant, icon, elevated, borderRadius, }: InfoBoxProps): JSX.Element;
|
|
2248
|
+
({ message, title, variant, icon, elevated, borderRadius, actions, showCloseButton, onClose, }: InfoBoxProps): JSX.Element;
|
|
2233
2249
|
displayName: string;
|
|
2234
2250
|
};
|
|
2235
2251
|
|
|
2252
|
+
export declare interface InfoBoxAction {
|
|
2253
|
+
/**
|
|
2254
|
+
* The label shown in the action button.
|
|
2255
|
+
*/
|
|
2256
|
+
label: string;
|
|
2257
|
+
/**
|
|
2258
|
+
* The callback fired when the action button is clicked.
|
|
2259
|
+
*/
|
|
2260
|
+
onClick?: () => void;
|
|
2261
|
+
/**
|
|
2262
|
+
* The Button visual variant.
|
|
2263
|
+
* @default 'text' for all actions except the last, which defaults to 'filled'
|
|
2264
|
+
*/
|
|
2265
|
+
variant?: InfoBoxActionVariant;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
export declare type InfoBoxActionVariant = NonNullable<ButtonProps['variant']>;
|
|
2269
|
+
|
|
2236
2270
|
export declare interface InfoBoxProps {
|
|
2237
2271
|
/**
|
|
2238
2272
|
* The content to display in the InfoBox. Accepts a plain string or any
|
|
2239
|
-
* React node
|
|
2273
|
+
* React node.
|
|
2240
2274
|
*/
|
|
2241
2275
|
message: ReactNode;
|
|
2276
|
+
/**
|
|
2277
|
+
* Optional title displayed above the message. When present, the InfoBox uses
|
|
2278
|
+
* a stacked title/message structure; actions still sit beside the message
|
|
2279
|
+
* when there is enough width.
|
|
2280
|
+
*/
|
|
2281
|
+
title?: ReactNode;
|
|
2242
2282
|
/**
|
|
2243
2283
|
* The semantic variant of the InfoBox
|
|
2244
2284
|
* @default 'default'
|
|
@@ -2258,6 +2298,21 @@ export declare interface InfoBoxProps {
|
|
|
2258
2298
|
* @default 'sm'
|
|
2259
2299
|
*/
|
|
2260
2300
|
borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2301
|
+
/**
|
|
2302
|
+
* Optional action buttons displayed alongside the message or below it when
|
|
2303
|
+
* the InfoBox is too narrow for the inline layout.
|
|
2304
|
+
*/
|
|
2305
|
+
actions?: InfoBoxAction[];
|
|
2306
|
+
/**
|
|
2307
|
+
* Whether to display a close button.
|
|
2308
|
+
* @default false
|
|
2309
|
+
*/
|
|
2310
|
+
showCloseButton?: boolean;
|
|
2311
|
+
/**
|
|
2312
|
+
* Callback fired when the close button is clicked. The InfoBox remains
|
|
2313
|
+
* mounted; the consumer controls whether it should be removed.
|
|
2314
|
+
*/
|
|
2315
|
+
onClose?: () => void;
|
|
2261
2316
|
}
|
|
2262
2317
|
|
|
2263
2318
|
export declare type InfoBoxVariant = 'default' | 'positive' | 'warning' | 'error' | 'subtle' | 'neutral' | 'outlined';
|
|
@@ -3228,7 +3283,7 @@ export declare interface SegmentGroupProps<T extends React.ElementType = 'button
|
|
|
3228
3283
|
|
|
3229
3284
|
export declare type SegmentValue<T = string> = T | T[];
|
|
3230
3285
|
|
|
3231
|
-
export declare const Select: ({ value, multiple, options, onChange, error, errorMessage, disabled, label, hideLabel, name, id, searchable, allowClearAll, allowSelectAll, selectAllLabel, clearAllLabel, noResultsFoundMessage, onScrollEnd, isLoadingMore, density, ...props }: SelectProps) => JSX.Element;
|
|
3286
|
+
export declare const Select: ({ value, multiple, options, onChange, error, errorMessage, disabled, label, hideLabel, name, id, searchable, allowClearAll, allowSelectAll, selectAllLabel, clearAllLabel, noResultsFoundMessage, onScrollEnd, isLoadingMore, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, density, ...props }: SelectProps) => JSX.Element;
|
|
3232
3287
|
|
|
3233
3288
|
export declare type SelectOption = Omit<PopUpMenuItem, 'id' | 'onClick' | 'disabled' | 'linkComponent' | 'as'> & {
|
|
3234
3289
|
/**
|