@gntik-ai/blocks 0.7.0 → 0.8.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.
@@ -0,0 +1,30 @@
1
+ import {
2
+ CredentialDisclosureDialog,
3
+ type CredentialDisclosureDialogProps,
4
+ } from '../forms/CredentialDisclosureDialog/CredentialDisclosureDialog';
5
+ import { storedDisclosure } from '../forms/CredentialDisclosureDialog/fixtures';
6
+
7
+ /** Compile-only consumer fixture for every pre-amendment prop. */
8
+ export function LegacyCredentialDisclosure() {
9
+ const props: CredentialDisclosureDialogProps = {
10
+ disclosure: storedDisclosure,
11
+ onClose: () => {},
12
+ resolveReturnFocus: () => null,
13
+ fallbackFocus: () => null,
14
+ title: 'Credential',
15
+ description: 'Keep this value safe.',
16
+ credentialIdLabel: 'Identifier',
17
+ expiryLabel: 'Expiry',
18
+ secretLabel: 'Secret',
19
+ showLabel: 'Show',
20
+ hideLabel: 'Hide',
21
+ copyLabel: 'Copy',
22
+ copiedLabel: 'Copied',
23
+ successAnnouncement: 'Copied safely',
24
+ failureAnnouncement: 'Copy manually',
25
+ warningTitle: 'Save this value',
26
+ warningText: 'Shown once',
27
+ closeLabel: 'Close',
28
+ };
29
+ return <CredentialDisclosureDialog {...props} />;
30
+ }