@cloudwick/astral-ui 8.2.0 → 8.3.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.
- package/README.md +1 -1
- package/dist/components/card/card.d.ts +20 -1
- package/dist/components/card/cardVariants.d.ts +28 -22
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/ctaGroup/ctaGroup.d.ts +16 -10
- package/dist/components/ctaGroup/ctaGroupVariants.d.ts +6 -6
- package/dist/components/ctaGroup/index.d.ts +1 -1
- package/dist/components/dataTable/DataTableColumnSettings.d.ts +2 -1
- package/dist/components/fileUpload/fileUpload.d.ts +2 -2
- package/dist/components/fileUpload/fileUploadVariants.d.ts +3 -0
- package/dist/components/modal/modal.d.ts +21 -0
- package/dist/components/multiSelectTransfer/multiSelectTransferDropdown.d.ts +5 -1
- package/dist/components/multiSelectTransfer/multiSelectTransferOptionRow.d.ts +8 -2
- package/dist/components/multiSelectTransfer/multiSelectTransferPill.d.ts +9 -2
- package/dist/components/multiSelectTransfer/multiSelectTransferTrigger.d.ts +8 -0
- package/dist/components/multiSelectTransfer/multiSelectTransferVariants.d.ts +36 -0
- package/dist/components/otp/input.d.ts +4 -0
- package/dist/components/pagination/paginationUtils.d.ts +17 -0
- package/dist/components/pagination/usePaginationCollapse.d.ts +22 -0
- package/dist/components/scrollbar/scrollbar.d.ts +7 -0
- package/dist/components/select/selectKeyboard.d.ts +11 -5
- package/dist/components/select/types.d.ts +9 -0
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabsVariants.d.ts +3 -3
- package/dist/components/toast/toastVariants.d.ts +3 -3
- package/dist/components/toggle/toggle.d.ts +7 -3
- package/dist/components/toggle/toggleVariants.d.ts +3 -3
- package/dist/components/tooltip/tooltip.d.ts +16 -0
- package/dist/components/transferList/transferListItem.d.ts +6 -1
- package/dist/components/transferList/transferListPanel.d.ts +3 -1
- package/dist/components/transferList/transferListVariants.d.ts +3 -0
- package/dist/components/transferList/useTransferListSource.d.ts +2 -0
- package/dist/css/index.min.css +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useLabelPeekDismissal.d.ts +11 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.esm.js +5 -5
- package/dist/utils/fieldHelperText.d.ts +23 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/stringUtils/index.d.ts +2 -0
- package/dist/utils/stringUtils/joinIds.d.ts +10 -0
- package/dist/utils/stringUtils/resultsAvailable.d.ts +9 -0
- package/dist/utils/truncatedLabelReveal.d.ts +7 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { type TIconType } from "../adpIcon";
|
|
|
4
4
|
/**
|
|
5
5
|
* Toggle component props
|
|
6
6
|
*/
|
|
7
|
-
export interface IToggleProps extends Omit<React.HTMLProps<HTMLInputElement>, "label" | "size"> {
|
|
7
|
+
export interface IToggleProps extends Omit<React.HTMLProps<HTMLInputElement>, "label" | "size" | "checked" | "defaultChecked"> {
|
|
8
8
|
/**
|
|
9
9
|
* id for the Toggle
|
|
10
10
|
*/
|
|
@@ -23,10 +23,14 @@ export interface IToggleProps extends Omit<React.HTMLProps<HTMLInputElement>, "l
|
|
|
23
23
|
*/
|
|
24
24
|
label?: React.ReactNode;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @default false
|
|
26
|
+
* Controlled toggled state. Omit it to let the Toggle manage its own state.
|
|
28
27
|
*/
|
|
29
28
|
toggled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Initial toggled state when `toggled` is omitted.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
defaultToggled?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Provide an optional icon for the toggled state of the component.
|
|
32
36
|
*/
|
|
@@ -28,7 +28,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
28
28
|
};
|
|
29
29
|
}, {
|
|
30
30
|
wrapper: string;
|
|
31
|
-
container: string;
|
|
31
|
+
container: string[];
|
|
32
32
|
button: string;
|
|
33
33
|
icon: string;
|
|
34
34
|
label: string;
|
|
@@ -62,7 +62,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
62
62
|
};
|
|
63
63
|
}, {
|
|
64
64
|
wrapper: string;
|
|
65
|
-
container: string;
|
|
65
|
+
container: string[];
|
|
66
66
|
button: string;
|
|
67
67
|
icon: string;
|
|
68
68
|
label: string;
|
|
@@ -96,7 +96,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
96
96
|
};
|
|
97
97
|
}, {
|
|
98
98
|
wrapper: string;
|
|
99
|
-
container: string;
|
|
99
|
+
container: string[];
|
|
100
100
|
button: string;
|
|
101
101
|
icon: string;
|
|
102
102
|
label: string;
|
|
@@ -37,6 +37,22 @@ export interface ITooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
37
37
|
* Gate it on a condition, e.g. `canOpen={isTruncated}`. @default true
|
|
38
38
|
*/
|
|
39
39
|
canOpen?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the synthesized wrapper of a non-interactive trigger is a tab stop. Pass `false` for a
|
|
42
|
+
* trigger nested inside another control whose accessible name already carries the tooltip text: the
|
|
43
|
+
* wrapper then has no `tabIndex` at all, so it adds no focusable descendant, and the tooltip opens on
|
|
44
|
+
* hover only. @default true
|
|
45
|
+
*/
|
|
46
|
+
focusable?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the trigger is linked to the tooltip via `aria-describedby`, so screen readers announce
|
|
49
|
+
* the tooltip text as the trigger's description. When omitted, the link is skipped automatically if
|
|
50
|
+
* the tooltip text only repeats the trigger's accessible name (its `aria-label` or text content),
|
|
51
|
+
* so the text is not read twice. Pass `true`/`false` to force either behavior, e.g. `false` when the
|
|
52
|
+
* trigger's name comes from content Tooltip cannot inspect. A non-clickable tooltip that does not
|
|
53
|
+
* describe its trigger is also hidden from assistive technology and stays a purely visual hint.
|
|
54
|
+
*/
|
|
55
|
+
describeTrigger?: boolean;
|
|
40
56
|
}
|
|
41
57
|
export declare const Tooltip: React.ForwardRefExoticComponent<ITooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
58
|
export {};
|
|
@@ -4,6 +4,8 @@ interface ITransferListItemProps {
|
|
|
4
4
|
item: ITransferListItem;
|
|
5
5
|
panel: TTransferPanel;
|
|
6
6
|
index: number;
|
|
7
|
+
/** Number of rows in the panel's list, exposed as aria-setsize alongside the row's position. */
|
|
8
|
+
setSize: number;
|
|
7
9
|
/** Row element id, referenced by the panel listbox's aria-activedescendant. */
|
|
8
10
|
id: string;
|
|
9
11
|
checked: boolean;
|
|
@@ -15,6 +17,8 @@ interface ITransferListItemProps {
|
|
|
15
17
|
isLast: boolean;
|
|
16
18
|
showTopIndicator: boolean;
|
|
17
19
|
showBottomIndicator: boolean;
|
|
20
|
+
/** Escape has hidden the full-text reveal of a truncated label; it returns on the next hover or move. */
|
|
21
|
+
isPeekDismissed: boolean;
|
|
18
22
|
onToggle: () => void;
|
|
19
23
|
onRemove?: () => void;
|
|
20
24
|
onMoveUp?: () => void;
|
|
@@ -23,12 +27,13 @@ interface ITransferListItemProps {
|
|
|
23
27
|
onDragEnd: () => void;
|
|
24
28
|
onDragOver: (e: React.DragEvent) => void;
|
|
25
29
|
onDrop: (e: React.DragEvent) => void;
|
|
30
|
+
onMouseEnter: () => void;
|
|
26
31
|
}
|
|
27
32
|
/**
|
|
28
33
|
* A single transfer list row: drag handle + position badge (selected, reorderable
|
|
29
34
|
* only), checkbox, label, and remove / reorder controls.
|
|
30
35
|
*/
|
|
31
|
-
export declare function TransferListItem({ item, panel, index, id, checked, active, reorderable, disabled, isFirst, isLast, showTopIndicator, showBottomIndicator, onToggle, onRemove, onMoveUp, onMoveDown, onDragStart, onDragEnd, onDragOver, onDrop }: ITransferListItemProps): React.ReactElement;
|
|
36
|
+
export declare function TransferListItem({ item, panel, index, setSize, id, checked, active, reorderable, disabled, isFirst, isLast, showTopIndicator, showBottomIndicator, isPeekDismissed, onToggle, onRemove, onMoveUp, onMoveDown, onDragStart, onDragEnd, onDragOver, onDrop, onMouseEnter }: ITransferListItemProps): React.ReactElement;
|
|
32
37
|
export declare namespace TransferListItem {
|
|
33
38
|
var displayName: string;
|
|
34
39
|
}
|
|
@@ -20,6 +20,8 @@ interface ITransferListPanelProps {
|
|
|
20
20
|
isLoadingMore?: boolean;
|
|
21
21
|
/** Loader REPLACES the rows (a search/refresh fetch, not a page append). */
|
|
22
22
|
isLoading?: boolean;
|
|
23
|
+
/** The search has a query its rows do not answer yet, so the result count is not announced. */
|
|
24
|
+
isSearchPending?: boolean;
|
|
23
25
|
/** Replaces the rows when set: the panel's source failed to load. */
|
|
24
26
|
loadError?: React.ReactNode;
|
|
25
27
|
/** Shown under the loaded rows when a page append failed; renders a retry button. */
|
|
@@ -57,7 +59,7 @@ interface ITransferListPanelProps {
|
|
|
57
59
|
* One panel of the transfer list: header (title, count, optional reload),
|
|
58
60
|
* optional search + header slot, and a scrollable list of rows or an empty state.
|
|
59
61
|
*/
|
|
60
|
-
export declare function TransferListPanel({ panel, title, items, reorderable, disabled, emptyText, searchable, searchValue, searchPlaceholder, onSearchChange, headerSlot, reloadTooltip, onReload, isReloading, hasMore, onLoadMore, isLoadingMore, isLoading, loadError, loadMoreError, onRetryLoadMore, retryLabel, totalCount, selectAllChecked, selectAllIndeterminate, selectAllCount, onToggleSelectAll, moveLabel, moveCount, moveDisabled, moveIconSide, onMove, isChecked, onToggle, onRemove, onMoveUp, onMoveDown, dropIndex, showDropOverlay, onItemDragStart, onItemDragEnd, onItemDragOver, onListDragOver, onListDrop }: ITransferListPanelProps): React.ReactElement;
|
|
62
|
+
export declare function TransferListPanel({ panel, title, items, reorderable, disabled, emptyText, searchable, searchValue, searchPlaceholder, onSearchChange, headerSlot, reloadTooltip, onReload, isReloading, hasMore, onLoadMore, isLoadingMore, isLoading, isSearchPending, loadError, loadMoreError, onRetryLoadMore, retryLabel, totalCount, selectAllChecked, selectAllIndeterminate, selectAllCount, onToggleSelectAll, moveLabel, moveCount, moveDisabled, moveIconSide, onMove, isChecked, onToggle, onRemove, onMoveUp, onMoveDown, dropIndex, showDropOverlay, onItemDragStart, onItemDragEnd, onItemDragOver, onListDragOver, onListDrop }: ITransferListPanelProps): React.ReactElement;
|
|
61
63
|
export declare namespace TransferListPanel {
|
|
62
64
|
var displayName: string;
|
|
63
65
|
}
|
|
@@ -47,6 +47,7 @@ export declare const transferListVariants: import("tailwind-variants").TVReturnT
|
|
|
47
47
|
headerSlot: string;
|
|
48
48
|
selectAllRow: string;
|
|
49
49
|
listRegion: string;
|
|
50
|
+
listbox: string;
|
|
50
51
|
listWrap: string;
|
|
51
52
|
list: string;
|
|
52
53
|
virtualScroll: string;
|
|
@@ -117,6 +118,7 @@ export declare const transferListVariants: import("tailwind-variants").TVReturnT
|
|
|
117
118
|
headerSlot: string;
|
|
118
119
|
selectAllRow: string;
|
|
119
120
|
listRegion: string;
|
|
121
|
+
listbox: string;
|
|
120
122
|
listWrap: string;
|
|
121
123
|
list: string;
|
|
122
124
|
virtualScroll: string;
|
|
@@ -187,6 +189,7 @@ export declare const transferListVariants: import("tailwind-variants").TVReturnT
|
|
|
187
189
|
headerSlot: string;
|
|
188
190
|
selectAllRow: string;
|
|
189
191
|
listRegion: string;
|
|
192
|
+
listbox: string;
|
|
190
193
|
listWrap: string;
|
|
191
194
|
list: string;
|
|
192
195
|
virtualScroll: string;
|
|
@@ -35,6 +35,8 @@ interface ITransferListSource {
|
|
|
35
35
|
availableLoadMoreError?: ReactNode;
|
|
36
36
|
onRetryLoadMoreAvailable?: () => void;
|
|
37
37
|
availableTotalCount?: number;
|
|
38
|
+
/** A typed query has not yet been handed to the async source (still debouncing), so the rows are the last query's. */
|
|
39
|
+
isAvailableSearchPending: boolean;
|
|
38
40
|
/** In async mode these make the panel's search controlled and server-driven. */
|
|
39
41
|
availableSearchTerm?: string;
|
|
40
42
|
onAvailableSearchChange?: (query: string) => void;
|