@veevarts/design-system 2.1.0-beta.17 → 2.1.0-beta.18

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.
@@ -0,0 +1,14 @@
1
+ import { JSX } from 'react';
2
+ import { SessionExpiredCardProps } from './type';
3
+ /**
4
+ * What a Salesforce Canvas widget shows once its session is gone. There is no
5
+ * reload button: the Canvas frame is loaded by a POST, so the reload has to
6
+ * come from the Salesforce tab, not from inside the frame.
7
+ * The card is `role="alert"` so the change is announced, and `min-h-52` (208px)
8
+ * keeps it tall enough to be the first height the Salesforce wrapper reveals
9
+ * (its threshold is 200px). Copy comes in as props; the caller owns i18n.
10
+ */
11
+ export declare function SessionExpiredCard({ testId, title, description }: Readonly<SessionExpiredCardProps>): JSX.Element;
12
+ export declare namespace SessionExpiredCard {
13
+ var displayName: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export { SessionExpiredCard } from './SessionExpiredCard';
2
+ export type * from './type';
@@ -0,0 +1,6 @@
1
+ export type SessionExpiredCardProps = {
2
+ /** Stable selector for the state this card stands in for (`…-state`). */
3
+ testId: string;
4
+ title: string;
5
+ description: string;
6
+ };
@@ -168,3 +168,5 @@ export { RecordTotals } from './RecordTotals';
168
168
  export type { RecordTotalsProps, RecordTotalsRow } from './RecordTotals';
169
169
  export { CellText, ChipStack } from './CellText';
170
170
  export type { CellTextProps, CellTextVariant, ChipStackProps } from './CellText';
171
+ export { SessionExpiredCard } from './SessionExpiredCard';
172
+ export type { SessionExpiredCardProps } from './SessionExpiredCard';
@@ -9,6 +9,11 @@ interface HeroUIProviderProps {
9
9
  * outer provider's. With none anywhere, HeroUI's own button is rendered untouched.
10
10
  */
11
11
  closeLabel?: string;
12
+ /**
13
+ * BCP 47 locale for the React Aria strings HeroUI renders, e.g. `"fr-FR"`: the hidden "Dismiss"
14
+ * buttons of overlays, date and number formatting. Without it HeroUI uses `"en-US"`.
15
+ */
16
+ locale?: string;
12
17
  }
13
- export declare function HeroUIProvider({ children, closeLabel }: HeroUIProviderProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function HeroUIProvider({ children, closeLabel, locale }: HeroUIProviderProps): import("react/jsx-runtime").JSX.Element;
14
19
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "2.1.0-beta.17",
4
+ "version": "2.1.0-beta.18",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",