@qtalo/qt-ui-library 0.3.0 → 0.3.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/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +33 -2
- package/dist/index.js +453 -410
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -592,6 +592,16 @@ export declare type EmailDetail = {
|
|
|
592
592
|
|
|
593
593
|
export declare function EmptyBoxIcon({ pathProps, ...props }: IconProps): JSX.Element;
|
|
594
594
|
|
|
595
|
+
declare type ErrorToastProps = ErrorToastTemplateProps & {
|
|
596
|
+
options?: Omit<ShowToastOptions, "content">;
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
declare type ErrorToastTemplateProps = {
|
|
600
|
+
title: string;
|
|
601
|
+
description?: string;
|
|
602
|
+
onClose: (close: () => void) => void;
|
|
603
|
+
};
|
|
604
|
+
|
|
595
605
|
/** @deprecated Use `EVENT_SUMMARY_CARD_HEIGHT_SIZE` from `@ui-types/sizes` instead. */
|
|
596
606
|
export declare const EVENT_CARD_HEIGHT_SIZE: {
|
|
597
607
|
normal: {
|
|
@@ -1583,7 +1593,7 @@ export declare type ShowToastOptions = {
|
|
|
1583
1593
|
dismissPrevious?: boolean;
|
|
1584
1594
|
};
|
|
1585
1595
|
|
|
1586
|
-
export declare function SignalCard({ title, clientName, requesterName, explanation, severity, status, slaLabel, slaStatusLabel, sourceTypes, sourceLink, patternContext, variant, selected, onClick, className, }: SignalCardProps): JSX.Element;
|
|
1596
|
+
export declare function SignalCard({ title, clientName, requesterName, explanation, severity, status, slaLabel, slaStatusLabel, sourceTypes, sourceLink, onOpenSource, sourceTooltip, patternContext, variant, selected, onClick, className, }: SignalCardProps): JSX.Element;
|
|
1587
1597
|
|
|
1588
1598
|
export declare type SignalCardProps = {
|
|
1589
1599
|
title: string;
|
|
@@ -1596,6 +1606,14 @@ export declare type SignalCardProps = {
|
|
|
1596
1606
|
slaStatusLabel: string;
|
|
1597
1607
|
sourceTypes: Array<"gmail" | "slack">;
|
|
1598
1608
|
sourceLink?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* When provided, called instead of navigating directly on sourceLink so the
|
|
1611
|
+
* consumer can validate the link (e.g. Slack access/existence) before
|
|
1612
|
+
* opening it, or show a failure state instead of navigating.
|
|
1613
|
+
*/
|
|
1614
|
+
onOpenSource?: (link: string) => void;
|
|
1615
|
+
/** Optional hint shown on hover, e.g. naming the Slack workspace a link opens. */
|
|
1616
|
+
sourceTooltip?: string;
|
|
1599
1617
|
patternContext?: string;
|
|
1600
1618
|
variant?: "home" | "row";
|
|
1601
1619
|
selected?: boolean;
|
|
@@ -1642,7 +1660,7 @@ export declare type SignalDetailDismissOption = {
|
|
|
1642
1660
|
label: string;
|
|
1643
1661
|
};
|
|
1644
1662
|
|
|
1645
|
-
export declare function SignalDetailPanel({ title, severity, slaDurationLabel, slaStatusLabel, statusLabel, statusTone, sourceType, sourceLink, clientCompany, contactName, teamCompanyName, recipientLabel, sla, claim, sameThreadGuardrail, evidenceItems, nextStep, actionRationale, rankingRationale, attentionRationale, dismissOptions, onClose, onResolve, onDismiss, className, ...props }: SignalDetailPanelProps): JSX.Element;
|
|
1663
|
+
export declare function SignalDetailPanel({ title, severity, slaDurationLabel, slaStatusLabel, statusLabel, statusTone, sourceType, sourceLink, onOpenSource, sourceTooltip, clientCompany, contactName, teamCompanyName, recipientLabel, sla, claim, sameThreadGuardrail, evidenceItems, nextStep, actionRationale, rankingRationale, attentionRationale, dismissOptions, onClose, onResolve, onDismiss, className, ...props }: SignalDetailPanelProps): JSX.Element;
|
|
1646
1664
|
|
|
1647
1665
|
export declare type SignalDetailPanelProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
1648
1666
|
title: string;
|
|
@@ -1653,6 +1671,14 @@ export declare type SignalDetailPanelProps = Omit<React.HTMLAttributes<HTMLDivEl
|
|
|
1653
1671
|
statusTone: SignalDetailStatusTone;
|
|
1654
1672
|
sourceType: "gmail" | "slack";
|
|
1655
1673
|
sourceLink?: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* When provided, called instead of navigating directly on sourceLink so the
|
|
1676
|
+
* consumer can validate the link (e.g. Slack access/existence) before
|
|
1677
|
+
* opening it, or show a failure state instead of navigating.
|
|
1678
|
+
*/
|
|
1679
|
+
onOpenSource?: (link: string) => void;
|
|
1680
|
+
/** Optional hint shown on hover, e.g. naming the Slack workspace a link opens. */
|
|
1681
|
+
sourceTooltip?: string;
|
|
1656
1682
|
clientCompany?: string;
|
|
1657
1683
|
contactName?: string;
|
|
1658
1684
|
teamCompanyName?: string;
|
|
@@ -1828,6 +1854,11 @@ export declare const toast: typeof toast_2 & {
|
|
|
1828
1854
|
dismiss: () => void;
|
|
1829
1855
|
deduplicated: boolean;
|
|
1830
1856
|
};
|
|
1857
|
+
error: (options: ErrorToastProps) => {
|
|
1858
|
+
id: string;
|
|
1859
|
+
dismiss: () => void;
|
|
1860
|
+
deduplicated: boolean;
|
|
1861
|
+
};
|
|
1831
1862
|
};
|
|
1832
1863
|
|
|
1833
1864
|
declare function toast_2(content: ReactNode | ToastRenderFn | ShowToastOptions, options?: Omit<ShowToastOptions, "content">): {
|