@rokt/dcui-orchestrator 1.2.1-rc.0 → 1.2.1-rc.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './qr-code';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, SpacingStylingProperties, StatelessStylingBlock, TextStylingProperties, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
3
|
+
interface QrCodeStyles {
|
|
4
|
+
background?: null | BackgroundStylingProperties;
|
|
5
|
+
border?: null | BorderStylingProperties;
|
|
6
|
+
dimension?: null | DimensionStylingProperties;
|
|
7
|
+
flexChild?: null | FlexChildStylingProperties;
|
|
8
|
+
spacing?: null | SpacingStylingProperties;
|
|
9
|
+
}
|
|
10
|
+
interface QrCodeModuleStyles {
|
|
11
|
+
text?: null | TextStylingProperties;
|
|
12
|
+
}
|
|
13
|
+
interface QrCodeElements {
|
|
14
|
+
own: BasicStateStylingBlock<QrCodeStyles>[];
|
|
15
|
+
module?: null | StatelessStylingBlock<QrCodeModuleStyles>[];
|
|
16
|
+
}
|
|
17
|
+
interface QrCodeTransitions {
|
|
18
|
+
own?: null | QrCodeStyles;
|
|
19
|
+
}
|
|
20
|
+
export type QrCodeErrorCorrectionLevel = 'low' | 'medium' | 'quartile' | 'high';
|
|
21
|
+
export interface QrCodeSchema {
|
|
22
|
+
value: string;
|
|
23
|
+
a11yLabel?: string;
|
|
24
|
+
responseKey?: string;
|
|
25
|
+
errorCorrectionLevel?: QrCodeErrorCorrectionLevel;
|
|
26
|
+
styles?: LayoutStyle<QrCodeElements, ConditionalStyleTransition<QrCodeTransitions, WhenPredicate>>;
|
|
27
|
+
}
|
|
28
|
+
export interface QrCodeProps {
|
|
29
|
+
schema: QrCodeSchema;
|
|
30
|
+
}
|
|
31
|
+
export declare function QrCode(props: QrCodeProps): JSX.Element | null;
|
|
32
|
+
export {};
|