@tree-ia/design-system 2.2.1 → 2.3.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/README.md +0 -0
- package/dist/index.d.mts +574 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2639 -514
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +12 -11
package/README.md
CHANGED
|
File without changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react from "react";
|
|
2
|
+
import React, { ReactNode, Ref, SVGProps } from "react";
|
|
2
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import * as lucide_react0 from "lucide-react";
|
|
3
5
|
import { ColumnDef, ColumnFiltersState, PaginationState, Row, RowSelectionState, SortingState, createColumnHelper } from "@tanstack/react-table";
|
|
4
6
|
|
|
5
7
|
//#region src/components/Button/index.d.ts
|
|
@@ -521,6 +523,8 @@ interface HeaderProps {
|
|
|
521
523
|
logoutLabel?: string;
|
|
522
524
|
/** Label do botao de menu mobile */
|
|
523
525
|
menuLabel?: string;
|
|
526
|
+
/** Abre dropdowns de navegacao no hover em layouts desktop. Default: true */
|
|
527
|
+
openDropdownOnHover?: boolean;
|
|
524
528
|
/** Offset lateral no desktop quando existe sidebar fixa */
|
|
525
529
|
desktopOffsetLeft?: number | string;
|
|
526
530
|
className?: string;
|
|
@@ -539,6 +543,7 @@ declare function Header({
|
|
|
539
543
|
onLogout,
|
|
540
544
|
logoutLabel,
|
|
541
545
|
menuLabel,
|
|
546
|
+
openDropdownOnHover,
|
|
542
547
|
desktopOffsetLeft,
|
|
543
548
|
className
|
|
544
549
|
}: HeaderProps): react_jsx_runtime0.JSX.Element;
|
|
@@ -585,6 +590,8 @@ declare function KPICard({
|
|
|
585
590
|
//#endregion
|
|
586
591
|
//#region src/components/PageLayout/index.d.ts
|
|
587
592
|
interface PageLayoutProps {
|
|
593
|
+
/** Texto curto acima do titulo principal */
|
|
594
|
+
eyebrow?: string;
|
|
588
595
|
/** Titulo principal da pagina */
|
|
589
596
|
title: string;
|
|
590
597
|
/** Descricao opcional da pagina (aparece abaixo do titulo) */
|
|
@@ -597,6 +604,10 @@ interface PageLayoutProps {
|
|
|
597
604
|
children: ReactNode;
|
|
598
605
|
/** Se true, aplica padding no conteudo. Default: true */
|
|
599
606
|
contentPadding?: boolean;
|
|
607
|
+
/** Classes extras aplicadas no wrapper do conteudo */
|
|
608
|
+
contentClassName?: string;
|
|
609
|
+
/** Faz o conteudo ocupar a altura util da viewport, com scroll interno no filho */
|
|
610
|
+
contentFillViewport?: boolean;
|
|
600
611
|
/** Componente de sidebar a ser renderizado */
|
|
601
612
|
sidebar?: ReactNode;
|
|
602
613
|
/** Se a sidebar esta recolhida */
|
|
@@ -608,12 +619,15 @@ interface PageLayoutProps {
|
|
|
608
619
|
className?: string;
|
|
609
620
|
}
|
|
610
621
|
declare function PageLayout({
|
|
622
|
+
eyebrow,
|
|
611
623
|
title,
|
|
612
624
|
description,
|
|
613
625
|
headerActions,
|
|
614
626
|
appHeader,
|
|
615
627
|
children,
|
|
616
628
|
contentPadding,
|
|
629
|
+
contentClassName,
|
|
630
|
+
contentFillViewport,
|
|
617
631
|
sidebar,
|
|
618
632
|
sidebarCollapsed,
|
|
619
633
|
sidebarWidth,
|
|
@@ -1518,6 +1532,117 @@ declare function StatusBadge({
|
|
|
1518
1532
|
className
|
|
1519
1533
|
}: StatusBadgeProps): react_jsx_runtime0.JSX.Element;
|
|
1520
1534
|
//#endregion
|
|
1535
|
+
//#region src/components/IPhoneMockup/index.d.ts
|
|
1536
|
+
type ColorValue = React.CSSProperties["color"];
|
|
1537
|
+
interface IPhoneMockupProps {
|
|
1538
|
+
screenWidth: number;
|
|
1539
|
+
screenType?: "legacy" | "notch" | "island";
|
|
1540
|
+
isLandscape?: boolean;
|
|
1541
|
+
className?: string;
|
|
1542
|
+
containerStyle?: React.CSSProperties;
|
|
1543
|
+
containerStlye?: React.CSSProperties;
|
|
1544
|
+
frameColor?: ColorValue;
|
|
1545
|
+
frameOnly?: boolean;
|
|
1546
|
+
statusbarColor?: ColorValue;
|
|
1547
|
+
hideStatusBar?: boolean;
|
|
1548
|
+
transparentNavBar?: boolean;
|
|
1549
|
+
hideNavBar?: boolean;
|
|
1550
|
+
children?: React.ReactNode;
|
|
1551
|
+
}
|
|
1552
|
+
declare function IPhoneMockup({
|
|
1553
|
+
screenWidth,
|
|
1554
|
+
screenType,
|
|
1555
|
+
isLandscape,
|
|
1556
|
+
frameColor,
|
|
1557
|
+
frameOnly,
|
|
1558
|
+
statusbarColor,
|
|
1559
|
+
hideStatusBar,
|
|
1560
|
+
transparentNavBar,
|
|
1561
|
+
hideNavBar,
|
|
1562
|
+
className,
|
|
1563
|
+
containerStyle,
|
|
1564
|
+
containerStlye,
|
|
1565
|
+
children
|
|
1566
|
+
}: IPhoneMockupProps): react_jsx_runtime0.JSX.Element;
|
|
1567
|
+
//#endregion
|
|
1568
|
+
//#region src/components/WhatsAppMockup/index.d.ts
|
|
1569
|
+
type WhatsAppProfileType = "business" | "personal";
|
|
1570
|
+
type WhatsAppMessageDirection = "incoming" | "outgoing";
|
|
1571
|
+
type WhatsAppMessageType = "text" | "audio" | "custom";
|
|
1572
|
+
type WhatsAppMockupTheme = "dark" | "light";
|
|
1573
|
+
interface WhatsAppMockupMessage {
|
|
1574
|
+
id?: string;
|
|
1575
|
+
direction?: WhatsAppMessageDirection;
|
|
1576
|
+
type?: WhatsAppMessageType;
|
|
1577
|
+
text?: string;
|
|
1578
|
+
time: string;
|
|
1579
|
+
read?: boolean;
|
|
1580
|
+
duration?: string;
|
|
1581
|
+
waveform?: readonly number[];
|
|
1582
|
+
hideMeta?: boolean;
|
|
1583
|
+
children?: React.ReactNode;
|
|
1584
|
+
className?: string;
|
|
1585
|
+
contentClassName?: string;
|
|
1586
|
+
style?: React.CSSProperties;
|
|
1587
|
+
}
|
|
1588
|
+
interface WhatsAppMockupProps extends Pick<IPhoneMockupProps, "frameColor" | "statusbarColor" | "containerStyle" | "frameOnly" | "hideStatusBar"> {
|
|
1589
|
+
screenWidth?: IPhoneMockupProps["screenWidth"];
|
|
1590
|
+
contactName: string;
|
|
1591
|
+
profilePhoto?: string;
|
|
1592
|
+
profilePhotoAlt?: string;
|
|
1593
|
+
profileAvatar?: React.ReactNode;
|
|
1594
|
+
profileType?: WhatsAppProfileType;
|
|
1595
|
+
contactSubtitle?: string | null;
|
|
1596
|
+
theme?: WhatsAppMockupTheme;
|
|
1597
|
+
headerBackgroundColor?: React.CSSProperties["backgroundColor"];
|
|
1598
|
+
profileAvatarBackgroundColor?: React.CSSProperties["backgroundColor"];
|
|
1599
|
+
messages?: readonly WhatsAppMockupMessage[];
|
|
1600
|
+
statusTime?: string;
|
|
1601
|
+
dateLabel?: string | false;
|
|
1602
|
+
encryptionNotice?: string | false;
|
|
1603
|
+
composerPlaceholder?: string;
|
|
1604
|
+
composer?: React.ReactNode;
|
|
1605
|
+
showComposer?: boolean;
|
|
1606
|
+
showHeaderActions?: boolean;
|
|
1607
|
+
showWallpaper?: boolean;
|
|
1608
|
+
className?: string;
|
|
1609
|
+
phoneClassName?: string;
|
|
1610
|
+
screenClassName?: string;
|
|
1611
|
+
messagesClassName?: string;
|
|
1612
|
+
"aria-label"?: string;
|
|
1613
|
+
}
|
|
1614
|
+
declare function WhatsAppMockup({
|
|
1615
|
+
contactName,
|
|
1616
|
+
profilePhoto,
|
|
1617
|
+
profilePhotoAlt,
|
|
1618
|
+
profileAvatar,
|
|
1619
|
+
profileType,
|
|
1620
|
+
contactSubtitle,
|
|
1621
|
+
theme,
|
|
1622
|
+
headerBackgroundColor,
|
|
1623
|
+
profileAvatarBackgroundColor,
|
|
1624
|
+
messages,
|
|
1625
|
+
statusTime,
|
|
1626
|
+
dateLabel,
|
|
1627
|
+
encryptionNotice,
|
|
1628
|
+
composerPlaceholder,
|
|
1629
|
+
composer,
|
|
1630
|
+
showComposer,
|
|
1631
|
+
showHeaderActions,
|
|
1632
|
+
showWallpaper,
|
|
1633
|
+
screenWidth,
|
|
1634
|
+
frameColor,
|
|
1635
|
+
statusbarColor,
|
|
1636
|
+
containerStyle,
|
|
1637
|
+
frameOnly,
|
|
1638
|
+
hideStatusBar,
|
|
1639
|
+
className,
|
|
1640
|
+
phoneClassName,
|
|
1641
|
+
screenClassName,
|
|
1642
|
+
messagesClassName,
|
|
1643
|
+
"aria-label": ariaLabel
|
|
1644
|
+
}: WhatsAppMockupProps): react_jsx_runtime0.JSX.Element;
|
|
1645
|
+
//#endregion
|
|
1521
1646
|
//#region src/components/TableOfContents/index.d.ts
|
|
1522
1647
|
interface TocItem {
|
|
1523
1648
|
/** Hash URL — must start with '#'. The id (after the hash) must match an element id in the DOM. */
|
|
@@ -1584,6 +1709,453 @@ declare function TableOfContents({
|
|
|
1584
1709
|
onActiveChange
|
|
1585
1710
|
}: TableOfContentsProps): React.JSX.Element;
|
|
1586
1711
|
//#endregion
|
|
1712
|
+
//#region src/components/SocialIcon/index.d.ts
|
|
1713
|
+
declare const socialIconNames: readonly ["whatsapp", "instagram", "linkedin", "github", "youtube"];
|
|
1714
|
+
type SocialIconName = (typeof socialIconNames)[number];
|
|
1715
|
+
interface SocialIconDefinition {
|
|
1716
|
+
viewBox: string;
|
|
1717
|
+
path: string;
|
|
1718
|
+
}
|
|
1719
|
+
declare const socialIconPaths: Record<SocialIconName, SocialIconDefinition>;
|
|
1720
|
+
interface SocialIconProps extends Omit<SVGProps<SVGSVGElement>, "children" | "name"> {
|
|
1721
|
+
/** Social network glyph to render. */
|
|
1722
|
+
name: SocialIconName;
|
|
1723
|
+
/** Width and height in pixels. Default: 24. */
|
|
1724
|
+
size?: number | string;
|
|
1725
|
+
/** Accessible label. When omitted, the SVG is hidden from assistive tech. */
|
|
1726
|
+
title?: string;
|
|
1727
|
+
}
|
|
1728
|
+
declare function SocialIcon({
|
|
1729
|
+
name,
|
|
1730
|
+
size,
|
|
1731
|
+
title,
|
|
1732
|
+
fill,
|
|
1733
|
+
...props
|
|
1734
|
+
}: SocialIconProps): react_jsx_runtime0.JSX.Element;
|
|
1735
|
+
type SocialIconShortcutProps = Omit<SocialIconProps, "name">;
|
|
1736
|
+
declare function WhatsappIcon(props: SocialIconShortcutProps): react_jsx_runtime0.JSX.Element;
|
|
1737
|
+
declare function InstagramIcon(props: SocialIconShortcutProps): react_jsx_runtime0.JSX.Element;
|
|
1738
|
+
declare function LinkedinIcon(props: SocialIconShortcutProps): react_jsx_runtime0.JSX.Element;
|
|
1739
|
+
declare function GithubIcon(props: SocialIconShortcutProps): react_jsx_runtime0.JSX.Element;
|
|
1740
|
+
declare function YoutubeIcon(props: SocialIconShortcutProps): react_jsx_runtime0.JSX.Element;
|
|
1741
|
+
//#endregion
|
|
1742
|
+
//#region src/components/ConversationPanel/types.d.ts
|
|
1743
|
+
type ConversationSupportStatus = "none" | "requested" | "active";
|
|
1744
|
+
type ConversationMessageDirection = "inbound" | "outbound" | "system";
|
|
1745
|
+
type ConversationPreviewVariant = "list" | "card" | "compact";
|
|
1746
|
+
type ConversationMessageKind = "text" | "image" | "audio" | "video" | "file" | "interactive" | "event" | "loading-media";
|
|
1747
|
+
interface ConversationParticipant {
|
|
1748
|
+
id: string;
|
|
1749
|
+
name: string;
|
|
1750
|
+
subtitle?: string;
|
|
1751
|
+
phone?: string | null;
|
|
1752
|
+
email?: string | null;
|
|
1753
|
+
avatarUrl?: string | null;
|
|
1754
|
+
initials?: string;
|
|
1755
|
+
}
|
|
1756
|
+
interface ConversationListItemData {
|
|
1757
|
+
id: string;
|
|
1758
|
+
participant: ConversationParticipant;
|
|
1759
|
+
lastMessage?: string | null;
|
|
1760
|
+
lastMessageAt?: string | Date | null;
|
|
1761
|
+
lastMessageLabel?: string;
|
|
1762
|
+
messageCount?: number;
|
|
1763
|
+
unreadCount?: number;
|
|
1764
|
+
supportStatus?: ConversationSupportStatus;
|
|
1765
|
+
supportLabel?: string;
|
|
1766
|
+
selected?: boolean;
|
|
1767
|
+
disabled?: boolean;
|
|
1768
|
+
meta?: ReactNode;
|
|
1769
|
+
}
|
|
1770
|
+
interface ConversationStats {
|
|
1771
|
+
total?: number;
|
|
1772
|
+
inbound?: number;
|
|
1773
|
+
outbound?: number;
|
|
1774
|
+
}
|
|
1775
|
+
interface ConversationMessageMedia {
|
|
1776
|
+
url?: string;
|
|
1777
|
+
fileName?: string;
|
|
1778
|
+
mimeType?: string;
|
|
1779
|
+
alt?: string;
|
|
1780
|
+
}
|
|
1781
|
+
interface ConversationMessageData {
|
|
1782
|
+
id: string;
|
|
1783
|
+
direction: ConversationMessageDirection;
|
|
1784
|
+
kind?: ConversationMessageKind;
|
|
1785
|
+
authorLabel?: string;
|
|
1786
|
+
content?: ReactNode;
|
|
1787
|
+
createdAt?: string | Date | null;
|
|
1788
|
+
timestampLabel?: string;
|
|
1789
|
+
media?: ConversationMessageMedia;
|
|
1790
|
+
interactiveLabel?: string;
|
|
1791
|
+
interactiveTitle?: string;
|
|
1792
|
+
eventLabel?: string;
|
|
1793
|
+
eventDescription?: string;
|
|
1794
|
+
pendingLabel?: string;
|
|
1795
|
+
}
|
|
1796
|
+
interface ConversationAvatarProps {
|
|
1797
|
+
participant: ConversationParticipant;
|
|
1798
|
+
size?: "sm" | "md" | "lg";
|
|
1799
|
+
className?: string;
|
|
1800
|
+
}
|
|
1801
|
+
interface ConversationSupportBadgeProps {
|
|
1802
|
+
status?: ConversationSupportStatus;
|
|
1803
|
+
label?: string;
|
|
1804
|
+
className?: string;
|
|
1805
|
+
}
|
|
1806
|
+
interface ConversationSearchProps {
|
|
1807
|
+
value?: string;
|
|
1808
|
+
placeholder?: string;
|
|
1809
|
+
onChange?: (value: string) => void;
|
|
1810
|
+
onClear?: () => void;
|
|
1811
|
+
className?: string;
|
|
1812
|
+
}
|
|
1813
|
+
interface ConversationListItemProps {
|
|
1814
|
+
item: ConversationListItemData;
|
|
1815
|
+
selected?: boolean;
|
|
1816
|
+
onSelect?: (item: ConversationListItemData) => void;
|
|
1817
|
+
formatDate?: (value: string | Date) => string;
|
|
1818
|
+
className?: string;
|
|
1819
|
+
}
|
|
1820
|
+
interface ConversationPreviewCardProps extends ConversationListItemProps {
|
|
1821
|
+
variant?: ConversationPreviewVariant;
|
|
1822
|
+
showContact?: boolean;
|
|
1823
|
+
showMeta?: boolean;
|
|
1824
|
+
showSupportBadge?: boolean;
|
|
1825
|
+
showUnreadBadge?: boolean;
|
|
1826
|
+
contentClassName?: string;
|
|
1827
|
+
}
|
|
1828
|
+
interface ConversationListProps {
|
|
1829
|
+
items: ConversationListItemData[];
|
|
1830
|
+
selectedId?: string | null;
|
|
1831
|
+
searchValue?: string;
|
|
1832
|
+
searchPlaceholder?: string;
|
|
1833
|
+
onSearchChange?: (value: string) => void;
|
|
1834
|
+
onClearSearch?: () => void;
|
|
1835
|
+
onSelect?: (item: ConversationListItemData) => void;
|
|
1836
|
+
loading?: boolean;
|
|
1837
|
+
emptyTitle?: string;
|
|
1838
|
+
emptyDescription?: string;
|
|
1839
|
+
formatDate?: (value: string | Date) => string;
|
|
1840
|
+
className?: string;
|
|
1841
|
+
}
|
|
1842
|
+
interface ConversationSupportActionsProps {
|
|
1843
|
+
status?: ConversationSupportStatus;
|
|
1844
|
+
stats?: ConversationStats;
|
|
1845
|
+
reason?: ReactNode;
|
|
1846
|
+
startLabel?: ReactNode;
|
|
1847
|
+
endLabel?: ReactNode;
|
|
1848
|
+
endSilentLabel?: ReactNode;
|
|
1849
|
+
onStart?: () => void;
|
|
1850
|
+
onEnd?: () => void;
|
|
1851
|
+
onEndSilent?: () => void;
|
|
1852
|
+
startDisabled?: boolean;
|
|
1853
|
+
endDisabled?: boolean;
|
|
1854
|
+
endSilentDisabled?: boolean;
|
|
1855
|
+
activeActions?: ReactNode;
|
|
1856
|
+
inactiveActions?: ReactNode;
|
|
1857
|
+
className?: string;
|
|
1858
|
+
}
|
|
1859
|
+
interface ConversationThreadHeaderProps {
|
|
1860
|
+
participant: ConversationParticipant;
|
|
1861
|
+
stats?: ConversationStats;
|
|
1862
|
+
subtitle?: string;
|
|
1863
|
+
supportStatus?: ConversationSupportStatus;
|
|
1864
|
+
supportLabel?: string;
|
|
1865
|
+
onBack?: () => void;
|
|
1866
|
+
onSettingsClick?: () => void;
|
|
1867
|
+
actions?: ReactNode;
|
|
1868
|
+
className?: string;
|
|
1869
|
+
}
|
|
1870
|
+
interface ConversationEventSeparatorProps {
|
|
1871
|
+
label?: ReactNode;
|
|
1872
|
+
description?: ReactNode;
|
|
1873
|
+
className?: string;
|
|
1874
|
+
}
|
|
1875
|
+
interface ConversationMediaPreviewProps {
|
|
1876
|
+
message: ConversationMessageData;
|
|
1877
|
+
onMediaOpen?: (message: ConversationMessageData) => void;
|
|
1878
|
+
className?: string;
|
|
1879
|
+
}
|
|
1880
|
+
interface ConversationMessageBubbleProps {
|
|
1881
|
+
message: ConversationMessageData;
|
|
1882
|
+
onMediaOpen?: (message: ConversationMessageData) => void;
|
|
1883
|
+
formatTime?: (value: string | Date) => string;
|
|
1884
|
+
className?: string;
|
|
1885
|
+
}
|
|
1886
|
+
interface ConversationUnreadMarkerProps {
|
|
1887
|
+
label?: string;
|
|
1888
|
+
className?: string;
|
|
1889
|
+
}
|
|
1890
|
+
interface ConversationComposerProps {
|
|
1891
|
+
value?: string;
|
|
1892
|
+
onChange?: (value: string) => void;
|
|
1893
|
+
onSend?: () => void;
|
|
1894
|
+
onAttachClick?: () => void;
|
|
1895
|
+
onFileSelect?: (file: File) => void | Promise<void>;
|
|
1896
|
+
acceptedFileTypes?: string;
|
|
1897
|
+
placeholder?: string;
|
|
1898
|
+
disabled?: boolean;
|
|
1899
|
+
sending?: boolean;
|
|
1900
|
+
uploading?: boolean;
|
|
1901
|
+
status?: "active" | "ai" | "expired" | "disabled";
|
|
1902
|
+
inactiveLabel?: string;
|
|
1903
|
+
expiredLabel?: string;
|
|
1904
|
+
attachLabel?: string;
|
|
1905
|
+
sendLabel?: string;
|
|
1906
|
+
className?: string;
|
|
1907
|
+
}
|
|
1908
|
+
interface ConversationThreadProps {
|
|
1909
|
+
participant?: ConversationParticipant | null;
|
|
1910
|
+
messages?: ConversationMessageData[];
|
|
1911
|
+
stats?: ConversationStats;
|
|
1912
|
+
loading?: boolean;
|
|
1913
|
+
loadingLabel?: string;
|
|
1914
|
+
emptyTitle?: string;
|
|
1915
|
+
emptyDescription?: string;
|
|
1916
|
+
unreadMessageId?: string | null;
|
|
1917
|
+
unreadLabel?: string;
|
|
1918
|
+
headerActions?: ReactNode;
|
|
1919
|
+
composer?: ReactNode;
|
|
1920
|
+
supportStatus?: ConversationSupportStatus;
|
|
1921
|
+
supportLabel?: string;
|
|
1922
|
+
onBack?: () => void;
|
|
1923
|
+
onSettingsClick?: () => void;
|
|
1924
|
+
onMediaOpen?: (message: ConversationMessageData) => void;
|
|
1925
|
+
formatTime?: (value: string | Date) => string;
|
|
1926
|
+
messagesContainerRef?: Ref<HTMLDivElement>;
|
|
1927
|
+
className?: string;
|
|
1928
|
+
}
|
|
1929
|
+
interface ConversationPanelProps {
|
|
1930
|
+
title?: string;
|
|
1931
|
+
subtitle?: string;
|
|
1932
|
+
/** Oculta a faixa superior interna quando o layout ja possui titulo fora do painel. */
|
|
1933
|
+
hideHeader?: boolean;
|
|
1934
|
+
connected?: boolean;
|
|
1935
|
+
conversations: ConversationListItemData[];
|
|
1936
|
+
selectedId?: string | null;
|
|
1937
|
+
selectedParticipant?: ConversationParticipant | null;
|
|
1938
|
+
messages?: ConversationMessageData[];
|
|
1939
|
+
stats?: ConversationStats;
|
|
1940
|
+
searchValue?: string;
|
|
1941
|
+
onSearchChange?: (value: string) => void;
|
|
1942
|
+
onClearSearch?: () => void;
|
|
1943
|
+
onSelectConversation?: (item: ConversationListItemData) => void;
|
|
1944
|
+
listLoading?: boolean;
|
|
1945
|
+
threadLoading?: boolean;
|
|
1946
|
+
threadActions?: ReactNode;
|
|
1947
|
+
composer?: ReactNode;
|
|
1948
|
+
supportStatus?: ConversationSupportStatus;
|
|
1949
|
+
supportLabel?: string;
|
|
1950
|
+
unreadMessageId?: string | null;
|
|
1951
|
+
unreadLabel?: string;
|
|
1952
|
+
onBack?: () => void;
|
|
1953
|
+
onSettingsClick?: () => void;
|
|
1954
|
+
onMediaOpen?: (message: ConversationMessageData) => void;
|
|
1955
|
+
formatListDate?: (value: string | Date) => string;
|
|
1956
|
+
formatMessageTime?: (value: string | Date) => string;
|
|
1957
|
+
className?: string;
|
|
1958
|
+
}
|
|
1959
|
+
type ConversationLayoutProps = ConversationPanelProps;
|
|
1960
|
+
//#endregion
|
|
1961
|
+
//#region src/components/ConversationPanel/ConversationAvatar.d.ts
|
|
1962
|
+
declare function ConversationAvatar({
|
|
1963
|
+
participant,
|
|
1964
|
+
size,
|
|
1965
|
+
className
|
|
1966
|
+
}: ConversationAvatarProps): react_jsx_runtime0.JSX.Element;
|
|
1967
|
+
//#endregion
|
|
1968
|
+
//#region src/components/ConversationPanel/ConversationComposer.d.ts
|
|
1969
|
+
declare function ConversationComposer({
|
|
1970
|
+
value,
|
|
1971
|
+
onChange,
|
|
1972
|
+
onSend,
|
|
1973
|
+
onAttachClick,
|
|
1974
|
+
onFileSelect,
|
|
1975
|
+
acceptedFileTypes,
|
|
1976
|
+
placeholder,
|
|
1977
|
+
disabled,
|
|
1978
|
+
sending,
|
|
1979
|
+
uploading,
|
|
1980
|
+
status,
|
|
1981
|
+
inactiveLabel,
|
|
1982
|
+
expiredLabel,
|
|
1983
|
+
attachLabel,
|
|
1984
|
+
sendLabel,
|
|
1985
|
+
className
|
|
1986
|
+
}: ConversationComposerProps): react_jsx_runtime0.JSX.Element;
|
|
1987
|
+
//#endregion
|
|
1988
|
+
//#region src/components/ConversationPanel/ConversationEventSeparator.d.ts
|
|
1989
|
+
declare function ConversationEventSeparator({
|
|
1990
|
+
label,
|
|
1991
|
+
description,
|
|
1992
|
+
className
|
|
1993
|
+
}: ConversationEventSeparatorProps): react_jsx_runtime0.JSX.Element;
|
|
1994
|
+
//#endregion
|
|
1995
|
+
//#region src/components/ConversationPanel/ConversationLayout.d.ts
|
|
1996
|
+
declare function ConversationLayout({
|
|
1997
|
+
title,
|
|
1998
|
+
subtitle,
|
|
1999
|
+
hideHeader,
|
|
2000
|
+
connected,
|
|
2001
|
+
conversations,
|
|
2002
|
+
selectedId,
|
|
2003
|
+
selectedParticipant,
|
|
2004
|
+
messages,
|
|
2005
|
+
stats,
|
|
2006
|
+
searchValue,
|
|
2007
|
+
onSearchChange,
|
|
2008
|
+
onClearSearch,
|
|
2009
|
+
onSelectConversation,
|
|
2010
|
+
listLoading,
|
|
2011
|
+
threadLoading,
|
|
2012
|
+
threadActions,
|
|
2013
|
+
composer,
|
|
2014
|
+
supportStatus,
|
|
2015
|
+
supportLabel,
|
|
2016
|
+
unreadMessageId,
|
|
2017
|
+
unreadLabel,
|
|
2018
|
+
onBack,
|
|
2019
|
+
onSettingsClick,
|
|
2020
|
+
onMediaOpen,
|
|
2021
|
+
formatListDate,
|
|
2022
|
+
formatMessageTime,
|
|
2023
|
+
className
|
|
2024
|
+
}: ConversationLayoutProps): react_jsx_runtime0.JSX.Element;
|
|
2025
|
+
declare function ConversationPanel(props: ConversationPanelProps): react_jsx_runtime0.JSX.Element;
|
|
2026
|
+
//#endregion
|
|
2027
|
+
//#region src/components/ConversationPanel/ConversationList.d.ts
|
|
2028
|
+
declare function ConversationList({
|
|
2029
|
+
items,
|
|
2030
|
+
selectedId,
|
|
2031
|
+
searchValue,
|
|
2032
|
+
searchPlaceholder,
|
|
2033
|
+
onSearchChange,
|
|
2034
|
+
onClearSearch,
|
|
2035
|
+
onSelect,
|
|
2036
|
+
loading,
|
|
2037
|
+
emptyTitle,
|
|
2038
|
+
emptyDescription,
|
|
2039
|
+
formatDate,
|
|
2040
|
+
className
|
|
2041
|
+
}: ConversationListProps): react_jsx_runtime0.JSX.Element;
|
|
2042
|
+
//#endregion
|
|
2043
|
+
//#region src/components/ConversationPanel/ConversationPreviewCard.d.ts
|
|
2044
|
+
declare function ConversationPreviewCard({
|
|
2045
|
+
item,
|
|
2046
|
+
selected,
|
|
2047
|
+
onSelect,
|
|
2048
|
+
formatDate,
|
|
2049
|
+
variant,
|
|
2050
|
+
showContact,
|
|
2051
|
+
showMeta,
|
|
2052
|
+
showSupportBadge,
|
|
2053
|
+
showUnreadBadge,
|
|
2054
|
+
contentClassName,
|
|
2055
|
+
className
|
|
2056
|
+
}: ConversationPreviewCardProps): react_jsx_runtime0.JSX.Element;
|
|
2057
|
+
declare function ConversationListItem(props: ConversationListItemProps): react_jsx_runtime0.JSX.Element;
|
|
2058
|
+
//#endregion
|
|
2059
|
+
//#region src/components/ConversationPanel/ConversationMediaPreview.d.ts
|
|
2060
|
+
declare function ConversationMediaPreview({
|
|
2061
|
+
message,
|
|
2062
|
+
onMediaOpen,
|
|
2063
|
+
className
|
|
2064
|
+
}: ConversationMediaPreviewProps): react_jsx_runtime0.JSX.Element | null;
|
|
2065
|
+
//#endregion
|
|
2066
|
+
//#region src/components/ConversationPanel/ConversationMessageBubble.d.ts
|
|
2067
|
+
declare function ConversationMessageBubble({
|
|
2068
|
+
message,
|
|
2069
|
+
onMediaOpen,
|
|
2070
|
+
formatTime,
|
|
2071
|
+
className
|
|
2072
|
+
}: ConversationMessageBubbleProps): react_jsx_runtime0.JSX.Element;
|
|
2073
|
+
//#endregion
|
|
2074
|
+
//#region src/components/ConversationPanel/ConversationSearch.d.ts
|
|
2075
|
+
declare function ConversationSearch({
|
|
2076
|
+
value,
|
|
2077
|
+
placeholder,
|
|
2078
|
+
onChange,
|
|
2079
|
+
onClear,
|
|
2080
|
+
className
|
|
2081
|
+
}: ConversationSearchProps): react_jsx_runtime0.JSX.Element;
|
|
2082
|
+
//#endregion
|
|
2083
|
+
//#region src/components/ConversationPanel/ConversationSupportActions.d.ts
|
|
2084
|
+
declare function ConversationSupportActions({
|
|
2085
|
+
status,
|
|
2086
|
+
stats,
|
|
2087
|
+
reason,
|
|
2088
|
+
startLabel,
|
|
2089
|
+
endLabel,
|
|
2090
|
+
endSilentLabel,
|
|
2091
|
+
onStart,
|
|
2092
|
+
onEnd,
|
|
2093
|
+
onEndSilent,
|
|
2094
|
+
startDisabled,
|
|
2095
|
+
endDisabled,
|
|
2096
|
+
endSilentDisabled,
|
|
2097
|
+
activeActions,
|
|
2098
|
+
inactiveActions,
|
|
2099
|
+
className
|
|
2100
|
+
}: ConversationSupportActionsProps): react_jsx_runtime0.JSX.Element;
|
|
2101
|
+
//#endregion
|
|
2102
|
+
//#region src/components/ConversationPanel/ConversationSupportBadge.d.ts
|
|
2103
|
+
declare function ConversationSupportBadge({
|
|
2104
|
+
status,
|
|
2105
|
+
label,
|
|
2106
|
+
className
|
|
2107
|
+
}: ConversationSupportBadgeProps): react_jsx_runtime0.JSX.Element | null;
|
|
2108
|
+
//#endregion
|
|
2109
|
+
//#region src/components/ConversationPanel/ConversationThread.d.ts
|
|
2110
|
+
declare function ConversationThread({
|
|
2111
|
+
participant,
|
|
2112
|
+
messages,
|
|
2113
|
+
stats,
|
|
2114
|
+
loading,
|
|
2115
|
+
loadingLabel,
|
|
2116
|
+
emptyTitle,
|
|
2117
|
+
emptyDescription,
|
|
2118
|
+
unreadMessageId,
|
|
2119
|
+
unreadLabel,
|
|
2120
|
+
headerActions,
|
|
2121
|
+
composer,
|
|
2122
|
+
supportStatus,
|
|
2123
|
+
supportLabel,
|
|
2124
|
+
onBack,
|
|
2125
|
+
onSettingsClick,
|
|
2126
|
+
onMediaOpen,
|
|
2127
|
+
formatTime,
|
|
2128
|
+
messagesContainerRef,
|
|
2129
|
+
className
|
|
2130
|
+
}: ConversationThreadProps): react_jsx_runtime0.JSX.Element;
|
|
2131
|
+
//#endregion
|
|
2132
|
+
//#region src/components/ConversationPanel/ConversationThreadHeader.d.ts
|
|
2133
|
+
declare function ConversationThreadHeader({
|
|
2134
|
+
participant,
|
|
2135
|
+
stats,
|
|
2136
|
+
subtitle,
|
|
2137
|
+
supportStatus,
|
|
2138
|
+
supportLabel,
|
|
2139
|
+
onBack,
|
|
2140
|
+
onSettingsClick,
|
|
2141
|
+
actions,
|
|
2142
|
+
className
|
|
2143
|
+
}: ConversationThreadHeaderProps): react_jsx_runtime0.JSX.Element;
|
|
2144
|
+
//#endregion
|
|
2145
|
+
//#region src/components/ConversationPanel/ConversationUnreadMarker.d.ts
|
|
2146
|
+
declare function ConversationUnreadMarker({
|
|
2147
|
+
label,
|
|
2148
|
+
className
|
|
2149
|
+
}: ConversationUnreadMarkerProps): react_jsx_runtime0.JSX.Element;
|
|
2150
|
+
//#endregion
|
|
2151
|
+
//#region src/components/ConversationPanel/index.d.ts
|
|
2152
|
+
declare const conversationMessageIcons: {
|
|
2153
|
+
image: react.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
2154
|
+
audio: react.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
2155
|
+
video: react.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
2156
|
+
file: react.ForwardRefExoticComponent<Omit<lucide_react0.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
2157
|
+
};
|
|
2158
|
+
//#endregion
|
|
1587
2159
|
//#region src/config/types.d.ts
|
|
1588
2160
|
interface ThemeColors {
|
|
1589
2161
|
primary: string;
|
|
@@ -1735,5 +2307,5 @@ declare const badgeSizes: Record<ComponentSize, BadgeSizeToken>;
|
|
|
1735
2307
|
type ModalSize = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
1736
2308
|
declare const modalSizes: Record<ModalSize, string>;
|
|
1737
2309
|
//#endregion
|
|
1738
|
-
export { Alert, type AlertProps, type AuthBackground, type AuthBranding, type AuthCardStyle, type AuthCheckbox, type AuthField, type AuthHeadline, AuthLayout, type AuthLayoutProps, type AuthLink, type BadgeSizeToken, BadgeStatus, type BadgeStatusProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Callout, type CalloutProps, Card, type CardProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, CodeInput, type CodeInputProps, Combobox, type ComboboxOption, type ComboboxProps, ComparisonLineChart, type ComparisonLineChartProps, type ComponentSize, type ComponentsConfig, type DashboardConfig, DashboardProvider, DataGrid, type ColumnDef as DataGridColumn, type DataGridProps, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DoughnutChart, type DoughnutChartItem, type DoughnutChartProps, Dropdown, type DropdownOption, type DropdownProps, EmptyState, type EmptyStateProps, FileUpload, type FileUploadProps, FilterBar, type FilterBarProps, FormField, type FormFieldProps, Header, type HeaderEstablishment, type HeaderMenuChild, type HeaderMenuGroup, type HeaderMenuItem, type HeaderProps, type HeaderUser, HorizontalBarChart, type HorizontalBarChartProps, type HorizontalBarChartTab, InfoTooltip, type InfoTooltipProps, Input, type InputProps, KPICard, type KPICardProps, type KPIValueFormat, Loading, type LoadingContextType, type LoadingProps, LoadingProvider, MetricPanel, type MetricPanelChartData, type MetricPanelMetric, type MetricPanelProps, type MetricPanelTooltipConfig, Modal, type ModalProps, type ModalSize, type Notification, type NotificationsContextType, NotificationsProvider, PageLayout, type PageLayoutProps, Pagination, type PaginationProps, ProgressBarList, type ProgressBarListItem, type ProgressBarListProps, Sidebar, type SidebarMenuItem, type SidebarProps, type SidebarUser, type SizeToken, Skeleton, type SkeletonProps, StatusBadge, type StatusBadgeProps, type Step, Stepper, type StepperProps, TOCProvider, type TOCProviderProps, type Tab, Table, TableBody, type TableColumn, TableEmpty, TableHeader, TableOfContents, type TableOfContentsProps, type TableProps, TableSkeleton, Tabs, type TabsProps, type Theme, type ThemeColors, type ThemeContextType, ThemeProvider, ThemeSwitcher, type ThemeSwitcherProps, Title, type TitleProps, Toast, type ToastProps, type TocItem, ToggleSwitch, type ToggleSwitchProps, Tooltip, type TooltipProps, type TreeNode, TreeView, type TreeViewProps, type UploadedFile, VerticalBarChart, type VerticalBarChartProps, badgeSizes, componentSizes, createColumnHelper, createConfig, defaultConfig, modalSizes, useActiveAnchor, useActiveAnchors, useConfig, useLoading, useNotifications, useTOCItems, useTheme };
|
|
2310
|
+
export { Alert, type AlertProps, type AuthBackground, type AuthBranding, type AuthCardStyle, type AuthCheckbox, type AuthField, type AuthHeadline, AuthLayout, type AuthLayoutProps, type AuthLink, type BadgeSizeToken, BadgeStatus, type BadgeStatusProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Callout, type CalloutProps, Card, type CardProps, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, CodeInput, type CodeInputProps, Combobox, type ComboboxOption, type ComboboxProps, ComparisonLineChart, type ComparisonLineChartProps, type ComponentSize, type ComponentsConfig, ConversationAvatar, type ConversationAvatarProps, ConversationComposer, type ConversationComposerProps, ConversationEventSeparator, type ConversationEventSeparatorProps, ConversationLayout, type ConversationLayoutProps, ConversationList, ConversationListItem, type ConversationListItemData, type ConversationListItemProps, type ConversationListProps, ConversationMediaPreview, type ConversationMediaPreviewProps, ConversationMessageBubble, type ConversationMessageBubbleProps, type ConversationMessageData, type ConversationMessageDirection, type ConversationMessageKind, type ConversationMessageMedia, ConversationPanel, type ConversationPanelProps, type ConversationParticipant, ConversationPreviewCard, type ConversationPreviewCardProps, type ConversationPreviewVariant, ConversationSearch, type ConversationSearchProps, type ConversationStats, ConversationSupportActions, type ConversationSupportActionsProps, ConversationSupportBadge, type ConversationSupportBadgeProps, type ConversationSupportStatus, ConversationThread, ConversationThreadHeader, type ConversationThreadHeaderProps, type ConversationThreadProps, ConversationUnreadMarker, type ConversationUnreadMarkerProps, type DashboardConfig, DashboardProvider, DataGrid, type ColumnDef as DataGridColumn, type DataGridProps, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DoughnutChart, type DoughnutChartItem, type DoughnutChartProps, Dropdown, type DropdownOption, type DropdownProps, EmptyState, type EmptyStateProps, FileUpload, type FileUploadProps, FilterBar, type FilterBarProps, FormField, type FormFieldProps, GithubIcon, Header, type HeaderEstablishment, type HeaderMenuChild, type HeaderMenuGroup, type HeaderMenuItem, type HeaderProps, type HeaderUser, HorizontalBarChart, type HorizontalBarChartProps, type HorizontalBarChartTab, IPhoneMockup, type IPhoneMockupProps, InfoTooltip, type InfoTooltipProps, Input, type InputProps, InstagramIcon, KPICard, type KPICardProps, type KPIValueFormat, LinkedinIcon, Loading, type LoadingContextType, type LoadingProps, LoadingProvider, MetricPanel, type MetricPanelChartData, type MetricPanelMetric, type MetricPanelProps, type MetricPanelTooltipConfig, Modal, type ModalProps, type ModalSize, type Notification, type NotificationsContextType, NotificationsProvider, PageLayout, type PageLayoutProps, Pagination, type PaginationProps, ProgressBarList, type ProgressBarListItem, type ProgressBarListProps, Sidebar, type SidebarMenuItem, type SidebarProps, type SidebarUser, type SizeToken, Skeleton, type SkeletonProps, SocialIcon, type SocialIconName, type SocialIconProps, type SocialIconShortcutProps, StatusBadge, type StatusBadgeProps, type Step, Stepper, type StepperProps, TOCProvider, type TOCProviderProps, type Tab, Table, TableBody, type TableColumn, TableEmpty, TableHeader, TableOfContents, type TableOfContentsProps, type TableProps, TableSkeleton, Tabs, type TabsProps, type Theme, type ThemeColors, type ThemeContextType, ThemeProvider, ThemeSwitcher, type ThemeSwitcherProps, Title, type TitleProps, Toast, type ToastProps, type TocItem, ToggleSwitch, type ToggleSwitchProps, Tooltip, type TooltipProps, type TreeNode, TreeView, type TreeViewProps, type UploadedFile, VerticalBarChart, type VerticalBarChartProps, type WhatsAppMessageDirection, type WhatsAppMessageType, WhatsAppMockup, type WhatsAppMockupMessage, type WhatsAppMockupProps, type WhatsAppProfileType, WhatsappIcon, YoutubeIcon, badgeSizes, componentSizes, conversationMessageIcons, createColumnHelper, createConfig, defaultConfig, modalSizes, socialIconNames, socialIconPaths, useActiveAnchor, useActiveAnchors, useConfig, useLoading, useNotifications, useTOCItems, useTheme };
|
|
1739
2311
|
//# sourceMappingURL=index.d.mts.map
|