@qualcomm-ui/react 1.12.0 → 1.13.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.
|
@@ -6,29 +6,7 @@ import { type AlertBannerDescriptionProps } from "./alert-banner-description";
|
|
|
6
6
|
import { type AlertBannerHeadingProps } from "./alert-banner-heading";
|
|
7
7
|
import { type AlertBannerIconProps } from "./alert-banner-icon";
|
|
8
8
|
import { type AlertBannerRootProps } from "./alert-banner-root";
|
|
9
|
-
interface
|
|
10
|
-
/**
|
|
11
|
-
* When `true`, renders a close button that calls `onClose` when clicked.
|
|
12
|
-
*/
|
|
13
|
-
dismissable: true;
|
|
14
|
-
/**
|
|
15
|
-
* Callback fired when the close button is clicked.
|
|
16
|
-
*/
|
|
17
|
-
onClose: NonNullable<AlertBannerRootProps["onClose"]>;
|
|
18
|
-
}
|
|
19
|
-
interface NonDismissableAlertBannerProps {
|
|
20
|
-
/**
|
|
21
|
-
* When `true`, renders a close button that calls `onClose` when clicked.
|
|
22
|
-
*
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
dismissable?: false;
|
|
26
|
-
/**
|
|
27
|
-
* Callback fired when the close button is clicked.
|
|
28
|
-
*/
|
|
29
|
-
onClose?: AlertBannerRootProps["onClose"];
|
|
30
|
-
}
|
|
31
|
-
interface AlertBannerSharedProps {
|
|
9
|
+
export interface AlertBannerProps extends Omit<AlertBannerRootProps, "children"> {
|
|
32
10
|
/**
|
|
33
11
|
* The component used for the content of the action element.
|
|
34
12
|
*/
|
|
@@ -56,6 +34,10 @@ interface AlertBannerSharedProps {
|
|
|
56
34
|
* @inheritDoc
|
|
57
35
|
*/
|
|
58
36
|
descriptionProps?: AlertBannerDescriptionProps;
|
|
37
|
+
/**
|
|
38
|
+
* When `true`, renders a close button that calls `onClose` when clicked.
|
|
39
|
+
*/
|
|
40
|
+
dismissable?: boolean;
|
|
59
41
|
/**
|
|
60
42
|
* Optional heading text for the banner.
|
|
61
43
|
*/
|
|
@@ -76,7 +58,5 @@ interface AlertBannerSharedProps {
|
|
|
76
58
|
*/
|
|
77
59
|
iconProps?: AlertBannerIconProps;
|
|
78
60
|
}
|
|
79
|
-
export type AlertBannerProps = Omit<AlertBannerRootProps, "children" | "onClose"> & AlertBannerSharedProps & (DismissableAlertBannerProps | NonDismissableAlertBannerProps);
|
|
80
61
|
export declare function AlertBanner({ action, actionProps, closeButtonProps, description, descriptionProps, dismissable, heading, headingProps, icon, iconProps, ...props }: AlertBannerProps): ReactElement;
|
|
81
|
-
export {};
|
|
82
62
|
//# sourceMappingURL=alert-banner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-banner.d.ts","sourceRoot":"","sources":["../../src/alert-banner/alert-banner.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gCAAgC,CAAA;AAEpE,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAkB,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAkB,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAE9E,
|
|
1
|
+
{"version":3,"file":"alert-banner.d.ts","sourceRoot":"","sources":["../../src/alert-banner/alert-banner.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,gCAAgC,CAAA;AAEpE,OAAO,EAEL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{ type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type AvatarApiProps } from "@qualcomm-ui/core/avatar";
|
|
3
|
-
import { type QdsAvatarApiProps
|
|
3
|
+
import { type QdsAvatarApiProps } from "@qualcomm-ui/qds-core/avatar";
|
|
4
4
|
import { type ElementRenderProp, type IdProp } from "@qualcomm-ui/react-core/system";
|
|
5
|
-
export interface AvatarRootProps extends AvatarApiProps,
|
|
5
|
+
export interface AvatarRootProps extends AvatarApiProps, QdsAvatarApiProps, IdProp, Omit<ElementRenderProp<"div">, "dir"> {
|
|
6
6
|
/**
|
|
7
7
|
* React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
|
|
8
8
|
*/
|
|
9
9
|
children?: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated use {@link emphasis} instead
|
|
12
|
-
*/
|
|
13
|
-
variant?: QdsAvatarVariant;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Displays a user's profile picture, initials, or fallback icon. Renders a `<span>`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-root.d.ts","sourceRoot":"","sources":["../../src/avatar/avatar-root.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,YAAY,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAEhE,OAAO,EAAC,KAAK,cAAc,EAAmB,MAAM,0BAA0B,CAAA;AAC9E,OAAO,EAEL,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"avatar-root.d.ts","sourceRoot":"","sources":["../../src/avatar/avatar-root.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,YAAY,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAEhE,OAAO,EAAC,KAAK,cAAc,EAAmB,MAAM,0BAA0B,CAAA;AAC9E,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAA;AAIrC,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,MAAM,EAEZ,MAAM,gCAAgC,CAAA;AAKvC,MAAM,WAAW,eACf,SAAQ,cAAc,EACpB,iBAAiB,EACjB,MAAM,EACN,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,IAAI,EACJ,MAAM,EACN,OAAO,EACP,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,YAAY,CAsBhC"}
|