@cloudwick/astral-ui 7.0.1 → 8.1.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.
Files changed (90) hide show
  1. package/README.md +3 -1
  2. package/dist/components/accordion/accordion.d.ts +5 -1
  3. package/dist/components/breadcrumbs/breadcrumbs.d.ts +5 -6
  4. package/dist/components/button/reloadButton.d.ts +20 -0
  5. package/dist/components/card/card.d.ts +7 -8
  6. package/dist/components/card/cardVariants.d.ts +3 -3
  7. package/dist/components/dropdown/dropdown.d.ts +17 -0
  8. package/dist/components/emptyState/emptyState.d.ts +1 -4
  9. package/dist/components/emptyState/emptyStateVariants.d.ts +3 -3
  10. package/dist/components/modal/modal.d.ts +6 -7
  11. package/dist/components/multiSelectTransfer/index.d.ts +3 -0
  12. package/dist/components/multiSelectTransfer/multiSelectTransfer.d.ts +7 -0
  13. package/dist/components/multiSelectTransfer/multiSelectTransferDropdown.d.ts +50 -0
  14. package/dist/components/multiSelectTransfer/multiSelectTransferModal.d.ts +46 -0
  15. package/dist/components/multiSelectTransfer/multiSelectTransferPill.d.ts +28 -0
  16. package/dist/components/multiSelectTransfer/multiSelectTransferTrigger.d.ts +26 -0
  17. package/dist/components/multiSelectTransfer/multiSelectTransferVariants.d.ts +202 -0
  18. package/dist/components/multiSelectTransfer/types.d.ts +138 -0
  19. package/dist/components/multiSelectTransfer/useMultiSelectTransferDraft.d.ts +24 -0
  20. package/dist/components/multiSelectTransfer/useMultiSelectTransferOptionSource.d.ts +56 -0
  21. package/dist/components/panel/panel.d.ts +1 -2
  22. package/dist/components/radioGroup/index.d.ts +1 -1
  23. package/dist/components/radioGroup/radioGroup.d.ts +76 -12
  24. package/dist/components/radioGroup/radioGroupVariants.d.ts +30 -9
  25. package/dist/components/scrollbar/scrollbar.d.ts +7 -0
  26. package/dist/components/select/index.d.ts +2 -2
  27. package/dist/components/select/select.d.ts +7 -46
  28. package/dist/components/select/selectComponents.d.ts +29 -0
  29. package/dist/components/select/selectMenu.d.ts +12 -0
  30. package/dist/components/select/selectVariants.d.ts +21 -0
  31. package/dist/components/select/types.d.ts +252 -1
  32. package/dist/components/select/useSelectOptionSource.d.ts +39 -0
  33. package/dist/components/select/useSelectOutsideClose.d.ts +16 -0
  34. package/dist/components/select/utils.d.ts +3 -0
  35. package/dist/components/tabs/tabs.d.ts +4 -5
  36. package/dist/components/tabs/tabsVariants.d.ts +12 -0
  37. package/dist/components/tooltip/tooltip.d.ts +17 -6
  38. package/dist/components/tooltip/tooltipVariants.d.ts +6 -6
  39. package/dist/components/transferList/index.d.ts +3 -0
  40. package/dist/components/transferList/transferList.d.ts +9 -0
  41. package/dist/components/transferList/transferListItem.d.ts +35 -0
  42. package/dist/components/transferList/transferListPanel.d.ts +64 -0
  43. package/dist/components/transferList/transferListPanelHeader.d.ts +29 -0
  44. package/dist/components/transferList/transferListVariants.d.ts +211 -0
  45. package/dist/components/transferList/types.d.ts +152 -0
  46. package/dist/components/transferList/useDragAutoScroll.d.ts +13 -0
  47. package/dist/components/transferList/useTransferList.d.ts +28 -0
  48. package/dist/components/transferList/useTransferListPanelKeys.d.ts +28 -0
  49. package/dist/components/transferList/useTransferListSource.d.ts +49 -0
  50. package/dist/css/fonts.min.css +1 -1
  51. package/dist/css/index.min.css +1 -1
  52. package/dist/fonts/NotoSans-Bold.woff2 +0 -0
  53. package/dist/fonts/NotoSans-BoldItalic.woff2 +0 -0
  54. package/dist/fonts/NotoSans-Italic.woff2 +0 -0
  55. package/dist/fonts/NotoSans-Medium.woff2 +0 -0
  56. package/dist/fonts/NotoSans-MediumItalic.woff2 +0 -0
  57. package/dist/fonts/NotoSans-Regular.woff2 +0 -0
  58. package/dist/fonts/NotoSans-SemiBold.woff2 +0 -0
  59. package/dist/fonts/NotoSans-SemiBoldItalic.woff2 +0 -0
  60. package/dist/hooks/index.d.ts +10 -0
  61. package/dist/hooks/useAsyncOptions.d.ts +85 -0
  62. package/dist/hooks/useAsyncOptionsReducer.d.ts +75 -0
  63. package/dist/hooks/useAvailableProjection.d.ts +20 -0
  64. package/dist/hooks/useDebouncedCallback.d.ts +10 -0
  65. package/dist/hooks/useFilterQuery.d.ts +28 -0
  66. package/dist/hooks/useIgnoredPropWarning.d.ts +5 -0
  67. package/dist/hooks/useInfiniteScroll.d.ts +33 -0
  68. package/dist/hooks/useIsTruncated.d.ts +25 -0
  69. package/dist/hooks/useListboxKeyboardNav.d.ts +47 -0
  70. package/dist/hooks/useOnValueChange.d.ts +6 -0
  71. package/dist/hooks/usePrefetchBaseline.d.ts +22 -0
  72. package/dist/index.cjs.js +5 -5
  73. package/dist/index.d.ts +3 -0
  74. package/dist/index.esm.js +5 -5
  75. package/dist/utils/devWarn.d.ts +5 -0
  76. package/dist/utils/elementUtils.d.ts +18 -0
  77. package/dist/utils/index.d.ts +7 -1
  78. package/dist/utils/matchesQuery.d.ts +13 -0
  79. package/dist/utils/mergeUnique.d.ts +6 -0
  80. package/dist/utils/resolveLoadErrors.d.ts +20 -0
  81. package/dist/utils/resolveReloadControls.d.ts +23 -0
  82. package/package.json +3 -3
  83. package/dist/fonts/Inter_18pt-Bold.ttf +0 -0
  84. package/dist/fonts/Inter_18pt-BoldItalic.ttf +0 -0
  85. package/dist/fonts/Inter_18pt-Italic.ttf +0 -0
  86. package/dist/fonts/Inter_18pt-Medium.ttf +0 -0
  87. package/dist/fonts/Inter_18pt-MediumItalic.ttf +0 -0
  88. package/dist/fonts/Inter_18pt-Regular.ttf +0 -0
  89. package/dist/fonts/Inter_18pt-SemiBold.ttf +0 -0
  90. package/dist/fonts/Inter_18pt-SemiBoldItalic.ttf +0 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  UI Library for Cloudwick
4
4
 
5
- Version - 7.0.1
5
+ Version - 8.1.0
6
6
 
7
7
  ## Installation
8
8
 
@@ -45,6 +45,7 @@ Astral UI provides the following components:
45
45
  - FileUpload
46
46
  - Loader
47
47
  - Modal
48
+ - MultiSelectTransfer
48
49
  - OtpInput
49
50
  - Pagination
50
51
  - Panel
@@ -62,6 +63,7 @@ Astral UI provides the following components:
62
63
  - Toast
63
64
  - Toggle
64
65
  - Tooltip
66
+ - TransferList
65
67
  - Truncate
66
68
 
67
69
  ## Tailwind CSS Configuration
@@ -15,6 +15,10 @@ export interface IAccordionBodyProps {
15
15
  * Overwrite the styles for AccordionBody by passing space separated class names
16
16
  */
17
17
  className?: string;
18
+ /**
19
+ * Optional aria label for the accordion body
20
+ */
21
+ "aria-label"?: string;
18
22
  }
19
23
  declare const AccordionBody: React.ForwardRefExoticComponent<IAccordionBodyProps & React.RefAttributes<HTMLDivElement>>;
20
24
  export interface IAccordionProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -37,7 +41,7 @@ export interface IAccordionProps extends React.HTMLAttributes<HTMLDivElement> {
37
41
  */
38
42
  className?: string;
39
43
  }
40
- export interface IAccordionType extends React.ForwardRefExoticComponent<IAccordionProps & React.RefAttributes<HTMLDivElement>> {
44
+ export interface IAccordionType extends React.ForwardRefExoticComponent<React.PropsWithoutRef<IAccordionProps> & React.RefAttributes<HTMLDivElement>> {
41
45
  Header: typeof AccordionHeader;
42
46
  Body: typeof AccordionBody;
43
47
  }
@@ -20,12 +20,11 @@ export interface IBreadcrumbsProps extends React.HTMLAttributes<HTMLElement> {
20
20
  */
21
21
  separatorType?: "arrow" | "dot";
22
22
  }
23
+ type TBreadcrumbsCompoundComponent = React.ForwardRefExoticComponent<React.PropsWithoutRef<IBreadcrumbsProps> & React.RefAttributes<HTMLElement>> & {
24
+ Item: typeof BreadcrumbItem;
25
+ };
23
26
  /**
24
27
  * Breadcrumbs component for navigation
25
28
  */
26
- declare const BreadcrumbsComponent: React.ForwardRefExoticComponent<IBreadcrumbsProps & React.RefAttributes<HTMLElement>>;
27
- type TBreadcrumbsCompoundComponent = typeof BreadcrumbsComponent & {
28
- Item: typeof BreadcrumbItem;
29
- };
30
- declare const Breadcrumbs: TBreadcrumbsCompoundComponent;
31
- export { Breadcrumbs, BreadcrumbItem };
29
+ export declare const Breadcrumbs: TBreadcrumbsCompoundComponent;
30
+ export { BreadcrumbItem };
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ export interface IReloadButtonProps {
3
+ /** Absent means the surface has no reload affordance, and nothing renders. */
4
+ onReload?: () => void;
5
+ /** Spins the icon and blocks a second click while the refetch is in flight. */
6
+ isReloading?: boolean;
7
+ /** OR-ed with `isReloading` — a disabled surface has nothing to reload. */
8
+ disabled?: boolean;
9
+ /** Doubles as the accessible name; the button is icon-only. */
10
+ tooltip?: string;
11
+ className?: string;
12
+ }
13
+ /**
14
+ * The icon-only refetch affordance for any surface backed by an async option source. One component
15
+ * so the icon, the in-flight disable and the tooltip/aria-label pairing cannot drift between them.
16
+ */
17
+ export declare function ReloadButton({ onReload, isReloading, disabled, tooltip, className }: IReloadButtonProps): React.ReactElement | null;
18
+ export declare namespace ReloadButton {
19
+ var displayName: string;
20
+ }
@@ -4,6 +4,11 @@ import { type ICTAGroupProps } from "../ctaGroup";
4
4
  * Card component for displaying content in a container with optional header and footer
5
5
  */
6
6
  export type TCardProps = React.HTMLAttributes<HTMLDivElement>;
7
+ type TCardCompoundComponent = React.ForwardRefExoticComponent<React.PropsWithoutRef<TCardProps> & React.RefAttributes<HTMLDivElement>> & {
8
+ Header: typeof CardHeader;
9
+ Body: typeof CardBody;
10
+ Footer: typeof CardFooter;
11
+ };
7
12
  /**
8
13
  * Card component with optional header, body, and footer
9
14
  *
@@ -16,7 +21,7 @@ export type TCardProps = React.HTMLAttributes<HTMLDivElement>;
16
21
  * </Card>
17
22
  * ```
18
23
  */
19
- declare const CardComponent: React.ForwardRefExoticComponent<TCardProps & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const Card: TCardCompoundComponent;
20
25
  /**
21
26
  * Card header props
22
27
  */
@@ -65,10 +70,4 @@ export type TCardFooterProps = React.HTMLAttributes<HTMLDivElement>;
65
70
  * ```
66
71
  */
67
72
  declare const CardFooter: React.ForwardRefExoticComponent<TCardFooterProps & React.RefAttributes<HTMLDivElement>>;
68
- type TCardCompoundComponent = typeof CardComponent & {
69
- Header: typeof CardHeader;
70
- Body: typeof CardBody;
71
- Footer: typeof CardFooter;
72
- };
73
- declare const Card: TCardCompoundComponent;
74
- export { Card, CardHeader, CardBody, CardFooter };
73
+ export { CardHeader, CardBody, CardFooter };
@@ -2,18 +2,18 @@ export declare const cardVariants: import("tailwind-variants").TVReturnType<{
2
2
  [key: string]: {
3
3
  [key: string]: import("tailwind-merge").ClassNameValue | {
4
4
  base?: import("tailwind-merge").ClassNameValue;
5
- header?: import("tailwind-merge").ClassNameValue;
6
5
  body?: import("tailwind-merge").ClassNameValue;
7
6
  footer?: import("tailwind-merge").ClassNameValue;
7
+ header?: import("tailwind-merge").ClassNameValue;
8
8
  };
9
9
  };
10
10
  } | {
11
11
  [x: string]: {
12
12
  [x: string]: import("tailwind-merge").ClassNameValue | {
13
13
  base?: import("tailwind-merge").ClassNameValue;
14
- header?: import("tailwind-merge").ClassNameValue;
15
14
  body?: import("tailwind-merge").ClassNameValue;
16
15
  footer?: import("tailwind-merge").ClassNameValue;
16
+ header?: import("tailwind-merge").ClassNameValue;
17
17
  };
18
18
  };
19
19
  } | {}, {
@@ -25,9 +25,9 @@ export declare const cardVariants: import("tailwind-variants").TVReturnType<{
25
25
  [key: string]: {
26
26
  [key: string]: import("tailwind-merge").ClassNameValue | {
27
27
  base?: import("tailwind-merge").ClassNameValue;
28
- header?: import("tailwind-merge").ClassNameValue;
29
28
  body?: import("tailwind-merge").ClassNameValue;
30
29
  footer?: import("tailwind-merge").ClassNameValue;
30
+ header?: import("tailwind-merge").ClassNameValue;
31
31
  };
32
32
  };
33
33
  } | {}, {
@@ -25,6 +25,23 @@ export interface IDropdownProps extends React.HTMLAttributes<HTMLDivElement> {
25
25
  * Pass space separated class names to style the CTA
26
26
  */
27
27
  ctaClassName?: string;
28
+ /**
29
+ * Accessible name for the dropdown toggle button. Required when the CTA is
30
+ * icon-only (no visible text); omit it when the CTA already has a visible
31
+ * text label so the toggle isn't given a conflicting accessible name.
32
+ */
33
+ ctaAriaLabel?: string;
34
+ /**
35
+ * Opt a custom CTA into the "interactive" path. Native interactive elements
36
+ * (`button`, `a`, `summary`, `input`, `select`, `textarea`) are detected
37
+ * automatically, but a custom component (e.g. this library's `Button`) cannot
38
+ * be introspected. Set this when the CTA is a custom component that renders a
39
+ * real interactive element and forwards its `ref` and DOM props (`onClick`,
40
+ * `aria-*`, `className`, `disabled`) to it. When true the toggle props are
41
+ * merged directly onto the CTA instead of wrapping it in a `DropdownToggle`
42
+ * button. @default false
43
+ */
44
+ interactiveTrigger?: boolean;
28
45
  /**
29
46
  * Determines whether the CTA should be disabled or not
30
47
  */
@@ -17,10 +17,7 @@ declare const lightSvgs: {
17
17
  favorite: string;
18
18
  login: string;
19
19
  "file-upload": string;
20
- "empty-data": string;
21
- "empty-data-2": string;
22
- "empty-data-3": string;
23
- "empty-data-4": string;
20
+ "no-data": string;
24
21
  datapipeline: string;
25
22
  };
26
23
  export interface IEmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,9 +1,9 @@
1
1
  export declare const emptyStateVariants: import("tailwind-variants").TVReturnType<{
2
2
  [key: string]: {
3
3
  [key: string]: import("tailwind-merge").ClassNameValue | {
4
+ base?: import("tailwind-merge").ClassNameValue;
4
5
  title?: import("tailwind-merge").ClassNameValue;
5
6
  content?: import("tailwind-merge").ClassNameValue;
6
- base?: import("tailwind-merge").ClassNameValue;
7
7
  cta?: import("tailwind-merge").ClassNameValue;
8
8
  contentWrapper?: import("tailwind-merge").ClassNameValue;
9
9
  };
@@ -11,9 +11,9 @@ export declare const emptyStateVariants: import("tailwind-variants").TVReturnTyp
11
11
  } | {
12
12
  [x: string]: {
13
13
  [x: string]: import("tailwind-merge").ClassNameValue | {
14
+ base?: import("tailwind-merge").ClassNameValue;
14
15
  title?: import("tailwind-merge").ClassNameValue;
15
16
  content?: import("tailwind-merge").ClassNameValue;
16
- base?: import("tailwind-merge").ClassNameValue;
17
17
  cta?: import("tailwind-merge").ClassNameValue;
18
18
  contentWrapper?: import("tailwind-merge").ClassNameValue;
19
19
  };
@@ -27,9 +27,9 @@ export declare const emptyStateVariants: import("tailwind-variants").TVReturnTyp
27
27
  }, undefined, {
28
28
  [key: string]: {
29
29
  [key: string]: import("tailwind-merge").ClassNameValue | {
30
+ base?: import("tailwind-merge").ClassNameValue;
30
31
  title?: import("tailwind-merge").ClassNameValue;
31
32
  content?: import("tailwind-merge").ClassNameValue;
32
- base?: import("tailwind-merge").ClassNameValue;
33
33
  cta?: import("tailwind-merge").ClassNameValue;
34
34
  contentWrapper?: import("tailwind-merge").ClassNameValue;
35
35
  };
@@ -60,6 +60,10 @@ export interface IModalBodyProps {
60
60
  */
61
61
  className?: string;
62
62
  }
63
+ type TModalCompoundComponent = React.ForwardRefExoticComponent<React.PropsWithoutRef<IModalProps> & React.RefAttributes<HTMLDivElement>> & {
64
+ Header: typeof ModalHeader;
65
+ Body: typeof ModalBody;
66
+ };
63
67
  /**
64
68
  * Modal component for displaying content in an overlay with optional header and close button.
65
69
  *
@@ -71,7 +75,7 @@ export interface IModalBodyProps {
71
75
  * </Modal>
72
76
  * ```
73
77
  */
74
- declare const ModalComponent: React.ForwardRefExoticComponent<IModalProps & React.RefAttributes<HTMLDivElement>>;
78
+ export declare const Modal: TModalCompoundComponent;
75
79
  /**
76
80
  * Modal header component for rendering the title in the Modal.
77
81
  *
@@ -90,9 +94,4 @@ declare const ModalHeader: React.ForwardRefExoticComponent<IModalHeaderProps & R
90
94
  * ```
91
95
  */
92
96
  declare const ModalBody: React.ForwardRefExoticComponent<IModalBodyProps & React.RefAttributes<HTMLDivElement>>;
93
- type TModalCompoundComponent = typeof ModalComponent & {
94
- Header: typeof ModalHeader;
95
- Body: typeof ModalBody;
96
- };
97
- declare const Modal: TModalCompoundComponent;
98
- export { Modal, ModalHeader, ModalBody };
97
+ export { ModalHeader, ModalBody };
@@ -0,0 +1,3 @@
1
+ export { MultiSelectTransfer } from "./multiSelectTransfer";
2
+ export { multiSelectTransferVariants } from "./multiSelectTransferVariants";
3
+ export type { IMultiSelectTransferProps, TMultiSelectTransferOption, TMultiSelectTransferSize, TMultiSelectTransferLoadOptions } from "./types";
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { type IMultiSelectTransferProps } from "./types";
3
+ /**
4
+ * A pill trigger over a dropdown option list, with a two-panel transfer-list modal as its second
5
+ * surface. The forwarded ref lands on the wrapper `<div>`.
6
+ */
7
+ export declare const MultiSelectTransfer: React.ForwardRefExoticComponent<IMultiSelectTransferProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,50 @@
1
+ import * as React from "react";
2
+ import { type TSentinelRef } from "@hooks";
3
+ import type { TTransferListValue } from "../transferList/types";
4
+ import type { TMultiSelectTransferOption, TMultiSelectTransferSize } from "./types";
5
+ interface IMultiSelectTransferDropdownProps {
6
+ error?: boolean;
7
+ size: TMultiSelectTransferSize;
8
+ disabled?: boolean;
9
+ filterQuery: string;
10
+ onFilterInput: (e: React.ChangeEvent<HTMLInputElement>) => void;
11
+ onFilterKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
12
+ onFilterKeyUp: (e: React.KeyboardEvent<HTMLInputElement>) => void;
13
+ onFilterBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
14
+ searchPlaceholder: string;
15
+ /** Readonly so the option source's pool can be passed through without a defensive copy. */
16
+ options: readonly TMultiSelectTransferOption[];
17
+ selectedValues: Set<TTransferListValue>;
18
+ onOptionToggle: (option: TMultiSelectTransferOption) => void;
19
+ hasSelectAll: boolean;
20
+ areAllSelected: boolean;
21
+ onSelectAll: () => void;
22
+ /** Any load in flight; renders the loader row below the list. */
23
+ isLoading?: boolean;
24
+ /**
25
+ * Loader (or error) takes the rows' place rather than appending below them. Required, and supplied
26
+ * by the option source rather than re-derived here, so the hook is the single source of this
27
+ * predicate — two components deriving it differently is how they drifted.
28
+ */
29
+ isSearchFetch: boolean;
30
+ sentinelRef: TSentinelRef;
31
+ /** Replaces the rows when set: the whole list failed to load. */
32
+ loadError?: React.ReactNode;
33
+ /** Shown below the loaded rows when a page append failed. */
34
+ loadMoreError?: React.ReactNode;
35
+ /** Fired by the retry button beside `loadMoreError`. */
36
+ onRetryLoadMore?: () => void;
37
+ retryLabel?: string;
38
+ reloadTooltip?: string;
39
+ onReload?: () => void;
40
+ isReloading?: boolean;
41
+ }
42
+ /**
43
+ * The open-state dropdown for MultiSelectTransfer: a search input, an optional "Select All"
44
+ * row, the (draft-checked) option list, and the infinite-scroll sentinel.
45
+ */
46
+ export declare function MultiSelectTransferDropdown({ error, size, disabled, filterQuery, onFilterInput, onFilterKeyDown, onFilterKeyUp, onFilterBlur, searchPlaceholder, options, selectedValues, onOptionToggle, hasSelectAll, areAllSelected, onSelectAll, isLoading, isSearchFetch, sentinelRef, loadError, loadMoreError, onRetryLoadMore, retryLabel, reloadTooltip, onReload, isReloading }: IMultiSelectTransferDropdownProps): React.ReactElement;
47
+ export declare namespace MultiSelectTransferDropdown {
48
+ var displayName: string;
49
+ }
50
+ export {};
@@ -0,0 +1,46 @@
1
+ import * as React from "react";
2
+ import type { TMultiSelectTransferOption } from "./types";
3
+ interface IMultiSelectTransferModalProps {
4
+ showModal: boolean;
5
+ availableItems: TMultiSelectTransferOption[];
6
+ selectedItems: TMultiSelectTransferOption[];
7
+ onChange: (availableItems: TMultiSelectTransferOption[], selectedItems: TMultiSelectTransferOption[]) => void;
8
+ onCancel: () => void;
9
+ onDone: () => void;
10
+ header?: React.ReactNode;
11
+ title?: React.ReactNode;
12
+ subtitle?: React.ReactNode;
13
+ reorderable?: boolean;
14
+ reloadTooltip?: string;
15
+ onReload?: () => void;
16
+ isReloading?: boolean;
17
+ searchPlaceholder?: string;
18
+ availablePanelHeaderSlot?: React.ReactNode;
19
+ selectedPanelHeaderSlot?: React.ReactNode;
20
+ hasMoreAvailable?: boolean;
21
+ onLoadMoreAvailable?: () => void;
22
+ /** Loader (or error) REPLACES the available rows rather than appending below them. */
23
+ isLoadingAvailable?: boolean;
24
+ /** Loader appends below the available rows (a page fetch). */
25
+ isLoadingMoreAvailable: boolean;
26
+ availableLoadError?: React.ReactNode;
27
+ availableLoadMoreError?: React.ReactNode;
28
+ onRetryLoadMoreAvailable?: () => void;
29
+ retryLabel?: string;
30
+ /** Server-side total for the available panel. */
31
+ availableTotalCount?: number;
32
+ /** Set (async mode only) to drive the available panel's search server-side. */
33
+ availableSearchTerm?: string;
34
+ onAvailableSearchChange?: (query: string) => void;
35
+ cancelLabel: React.ReactNode;
36
+ doneLabel: React.ReactNode;
37
+ }
38
+ /**
39
+ * The transfer-list modal surface for MultiSelectTransfer: full-screen on mobile, a widened
40
+ * centered dialog from sm up. Hosts the two-panel TransferList plus a pinned footer bar.
41
+ */
42
+ export declare function MultiSelectTransferModal({ showModal, availableItems, selectedItems, onChange, onCancel, onDone, header, title, subtitle, reorderable, reloadTooltip, onReload, isReloading, searchPlaceholder, availablePanelHeaderSlot, selectedPanelHeaderSlot, hasMoreAvailable, onLoadMoreAvailable, isLoadingAvailable, isLoadingMoreAvailable, availableLoadError, availableLoadMoreError, onRetryLoadMoreAvailable, retryLabel, availableTotalCount, availableSearchTerm, onAvailableSearchChange, cancelLabel, doneLabel }: IMultiSelectTransferModalProps): React.ReactElement;
43
+ export declare namespace MultiSelectTransferModal {
44
+ var displayName: string;
45
+ }
46
+ export {};
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ import { type TMultiSelectTransferOption } from "./types";
3
+ interface IMultiSelectTransferPillProps {
4
+ option: TMultiSelectTransferOption;
5
+ /** tv() class for the pill container (doubles as the truncation observer root). */
6
+ pillClass: string;
7
+ /** tv() class for the (truncating) label. */
8
+ pillLabelClass: string;
9
+ /** tv() class for the dismiss button. */
10
+ pillDismissClass: string;
11
+ onRemove: (option: TMultiSelectTransferOption, e: React.MouseEvent) => void;
12
+ }
13
+ /**
14
+ * A single selected pill in the trigger. Its own component (not inlined in the map) so it can run
15
+ * {@link useIsTruncated} per pill: the full label is surfaced in a Tooltip only when the label is
16
+ * actually clipped, instead of on every pill hover.
17
+ *
18
+ * The Tooltip always wraps the label (gated via its `canOpen` prop) rather than being swapped in
19
+ * and out - that keeps the measured label element mounted so the truncation observer never loses
20
+ * its target. `triggerElementClassName` makes the Tooltip's trigger span a shrinkable flex box so
21
+ * the nested label still truncates against the pill's max-width. Non-string (ReactNode) labels
22
+ * have no text to show, so they render plainly.
23
+ */
24
+ export declare function MultiSelectTransferPill({ option, pillClass, pillLabelClass, pillDismissClass, onRemove }: IMultiSelectTransferPillProps): React.ReactElement;
25
+ export declare namespace MultiSelectTransferPill {
26
+ var displayName: string;
27
+ }
28
+ export {};
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import type { TMultiSelectTransferOption, TMultiSelectTransferSize } from "./types";
3
+ interface IMultiSelectTransferTriggerProps {
4
+ id: string;
5
+ error?: boolean;
6
+ size: TMultiSelectTransferSize;
7
+ disabled: boolean;
8
+ isOpen: boolean;
9
+ /** The committed selection — the trigger shows pills for this, never for the in-progress draft. */
10
+ value: TMultiSelectTransferOption[];
11
+ placeholder: string;
12
+ maxVisiblePills: number;
13
+ onClick: () => void;
14
+ onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
15
+ onRemovePill: (option: TMultiSelectTransferOption, e: React.MouseEvent) => void;
16
+ onOpenTransferList: (e: React.MouseEvent) => void;
17
+ }
18
+ /**
19
+ * The read-only control for MultiSelectTransfer: committed pills (capped by `maxVisiblePills` with a
20
+ * "+N More" overflow), the transfer-list CTA and the open/close chevron. It owns no state.
21
+ *
22
+ * The trigger comes back through `forwardRef`, not a `triggerRef` prop: a ref taken as an ordinary
23
+ * prop cannot be merged with a caller's own, and is invisible to anything composing over `ref`.
24
+ */
25
+ export declare const MultiSelectTransferTrigger: React.ForwardRefExoticComponent<IMultiSelectTransferTriggerProps & React.RefAttributes<HTMLDivElement>>;
26
+ export {};
@@ -0,0 +1,202 @@
1
+ export declare const multiSelectTransferVariants: import("tailwind-variants").TVReturnType<{
2
+ error: {
3
+ true: {
4
+ helperText: string;
5
+ trigger: string;
6
+ };
7
+ false: {
8
+ helperText: string;
9
+ trigger: string;
10
+ };
11
+ };
12
+ size: {
13
+ md: {
14
+ trigger: string;
15
+ filterInput: string;
16
+ pill: string;
17
+ pillMore: string;
18
+ placeholder: string;
19
+ optionLabel: string;
20
+ noOptionsMessage: string;
21
+ };
22
+ lg: {
23
+ trigger: string;
24
+ filterInput: string;
25
+ pill: string;
26
+ pillMore: string;
27
+ placeholder: string;
28
+ optionLabel: string;
29
+ noOptionsMessage: string;
30
+ };
31
+ };
32
+ disabled: {
33
+ true: {
34
+ trigger: string;
35
+ };
36
+ false: {};
37
+ };
38
+ checked: {
39
+ true: {
40
+ optionItem: string;
41
+ };
42
+ false: {};
43
+ };
44
+ }, {
45
+ base: string;
46
+ label: string;
47
+ helperText: string;
48
+ trigger: string;
49
+ dropdownContainer: string;
50
+ dropdownHeader: string;
51
+ filterInput: string;
52
+ optionsList: string;
53
+ noOptionsMessage: string;
54
+ loaderRow: string;
55
+ errorMessage: string;
56
+ loadMoreErrorRow: string;
57
+ optionItem: string;
58
+ optionLabelWrap: string;
59
+ optionLabel: string;
60
+ pillsArea: string;
61
+ pill: string;
62
+ pillLabel: string;
63
+ pillDismiss: string;
64
+ pillMore: string;
65
+ ctaArea: string;
66
+ ctaButton: string;
67
+ placeholder: string;
68
+ }, undefined, {
69
+ error: {
70
+ true: {
71
+ helperText: string;
72
+ trigger: string;
73
+ };
74
+ false: {
75
+ helperText: string;
76
+ trigger: string;
77
+ };
78
+ };
79
+ size: {
80
+ md: {
81
+ trigger: string;
82
+ filterInput: string;
83
+ pill: string;
84
+ pillMore: string;
85
+ placeholder: string;
86
+ optionLabel: string;
87
+ noOptionsMessage: string;
88
+ };
89
+ lg: {
90
+ trigger: string;
91
+ filterInput: string;
92
+ pill: string;
93
+ pillMore: string;
94
+ placeholder: string;
95
+ optionLabel: string;
96
+ noOptionsMessage: string;
97
+ };
98
+ };
99
+ disabled: {
100
+ true: {
101
+ trigger: string;
102
+ };
103
+ false: {};
104
+ };
105
+ checked: {
106
+ true: {
107
+ optionItem: string;
108
+ };
109
+ false: {};
110
+ };
111
+ }, {
112
+ base: string;
113
+ label: string;
114
+ helperText: string;
115
+ trigger: string;
116
+ dropdownContainer: string;
117
+ dropdownHeader: string;
118
+ filterInput: string;
119
+ optionsList: string;
120
+ noOptionsMessage: string;
121
+ loaderRow: string;
122
+ errorMessage: string;
123
+ loadMoreErrorRow: string;
124
+ optionItem: string;
125
+ optionLabelWrap: string;
126
+ optionLabel: string;
127
+ pillsArea: string;
128
+ pill: string;
129
+ pillLabel: string;
130
+ pillDismiss: string;
131
+ pillMore: string;
132
+ ctaArea: string;
133
+ ctaButton: string;
134
+ placeholder: string;
135
+ }, import("tailwind-variants").TVReturnType<{
136
+ error: {
137
+ true: {
138
+ helperText: string;
139
+ trigger: string;
140
+ };
141
+ false: {
142
+ helperText: string;
143
+ trigger: string;
144
+ };
145
+ };
146
+ size: {
147
+ md: {
148
+ trigger: string;
149
+ filterInput: string;
150
+ pill: string;
151
+ pillMore: string;
152
+ placeholder: string;
153
+ optionLabel: string;
154
+ noOptionsMessage: string;
155
+ };
156
+ lg: {
157
+ trigger: string;
158
+ filterInput: string;
159
+ pill: string;
160
+ pillMore: string;
161
+ placeholder: string;
162
+ optionLabel: string;
163
+ noOptionsMessage: string;
164
+ };
165
+ };
166
+ disabled: {
167
+ true: {
168
+ trigger: string;
169
+ };
170
+ false: {};
171
+ };
172
+ checked: {
173
+ true: {
174
+ optionItem: string;
175
+ };
176
+ false: {};
177
+ };
178
+ }, {
179
+ base: string;
180
+ label: string;
181
+ helperText: string;
182
+ trigger: string;
183
+ dropdownContainer: string;
184
+ dropdownHeader: string;
185
+ filterInput: string;
186
+ optionsList: string;
187
+ noOptionsMessage: string;
188
+ loaderRow: string;
189
+ errorMessage: string;
190
+ loadMoreErrorRow: string;
191
+ optionItem: string;
192
+ optionLabelWrap: string;
193
+ optionLabel: string;
194
+ pillsArea: string;
195
+ pill: string;
196
+ pillLabel: string;
197
+ pillDismiss: string;
198
+ pillMore: string;
199
+ ctaArea: string;
200
+ ctaButton: string;
201
+ placeholder: string;
202
+ }, undefined, unknown, unknown, undefined>>;