@rokt/dcui-orchestrator 0.0.4-rc.2 → 0.0.4-rc.4
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 +13 -13
- package/dist/index.js +9 -9
- package/dist/modules/instant-purchase/src/components/{drop-down/drop-down.d.ts → catalog-drop-down/catalog-drop-down.d.ts} +16 -17
- package/dist/modules/instant-purchase/src/components/color-swatch/color-swatch.d.ts +25 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, NonInteractableChildren, SpacingStylingProperties, TextStylingProperties, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
2
|
import { PluginCatalogItem } from '../../../../../libraries/domain/src/models';
|
|
3
|
-
export interface
|
|
3
|
+
export interface CatalogDropDownStyles {
|
|
4
4
|
container?: null | ContainerStylingProperties;
|
|
5
5
|
background?: null | BackgroundStylingProperties;
|
|
6
6
|
border?: null | BorderStylingProperties;
|
|
@@ -9,29 +9,28 @@ export interface DropDownStyles {
|
|
|
9
9
|
spacing?: null | SpacingStylingProperties;
|
|
10
10
|
text?: null | TextStylingProperties;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
13
|
-
own?: null |
|
|
12
|
+
export interface CatalogDropDownTransitions {
|
|
13
|
+
own?: null | CatalogDropDownStyles;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
16
|
-
own: BasicStateStylingBlock<
|
|
17
|
-
dropDownSelectedElement?: null | BasicStateStylingBlock<
|
|
18
|
-
dropDownListContainer?: null | BasicStateStylingBlock<
|
|
19
|
-
dropDownListElement?: null | BasicStateStylingBlock<
|
|
15
|
+
export interface CatalogDropDownElements {
|
|
16
|
+
own: BasicStateStylingBlock<CatalogDropDownStyles>[];
|
|
17
|
+
dropDownSelectedElement?: null | BasicStateStylingBlock<CatalogDropDownStyles>[];
|
|
18
|
+
dropDownListContainer?: null | BasicStateStylingBlock<CatalogDropDownStyles>[];
|
|
19
|
+
dropDownListElement?: null | BasicStateStylingBlock<CatalogDropDownStyles>[];
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface CatalogDropDownOptionData {
|
|
22
22
|
catalogItem: PluginCatalogItem;
|
|
23
23
|
index: number;
|
|
24
24
|
}
|
|
25
|
-
interface
|
|
26
|
-
styles?: null | LayoutStyle<
|
|
25
|
+
interface CatalogDropDownModel<NonInteractableChildren, Predicates> {
|
|
26
|
+
styles?: null | LayoutStyle<CatalogDropDownElements, ConditionalStyleTransition<CatalogDropDownTransitions, Predicates>>;
|
|
27
27
|
openTemplate: NonInteractableChildren;
|
|
28
28
|
closedTemplate: NonInteractableChildren;
|
|
29
|
-
|
|
30
|
-
options: DropDownOptionData[];
|
|
29
|
+
options: CatalogDropDownOptionData[];
|
|
31
30
|
}
|
|
32
|
-
export interface
|
|
31
|
+
export interface CatalogDropDownProps {
|
|
33
32
|
/**
|
|
34
|
-
* - `openTemplate`, `closedTemplate
|
|
33
|
+
* - `openTemplate`, `closedTemplate`: it can accept below nodes,
|
|
35
34
|
* * `Row`
|
|
36
35
|
* * `FlowRow
|
|
37
36
|
* * `Column`
|
|
@@ -68,8 +67,8 @@ export interface DropDownProps {
|
|
|
68
67
|
* - `spacing`
|
|
69
68
|
* - `text`
|
|
70
69
|
*/
|
|
71
|
-
schema:
|
|
70
|
+
schema: CatalogDropDownModel<NonInteractableChildren, WhenPredicate>;
|
|
72
71
|
testId?: string;
|
|
73
72
|
}
|
|
74
|
-
export declare function
|
|
73
|
+
export declare function CatalogDropDown(props: CatalogDropDownProps): import("react/jsx-runtime").JSX.Element;
|
|
75
74
|
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, SpacingStylingProperties, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
interface ColorSwatchStyles {
|
|
3
|
+
container?: null | ContainerStylingProperties;
|
|
4
|
+
background?: null | BackgroundStylingProperties;
|
|
5
|
+
border?: null | BorderStylingProperties;
|
|
6
|
+
dimension?: null | DimensionStylingProperties;
|
|
7
|
+
flexChild?: null | FlexChildStylingProperties;
|
|
8
|
+
spacing?: null | SpacingStylingProperties;
|
|
9
|
+
}
|
|
10
|
+
interface ColorSwatchElements {
|
|
11
|
+
own: BasicStateStylingBlock<ColorSwatchStyles>[];
|
|
12
|
+
}
|
|
13
|
+
interface ColorSwatchTransitions {
|
|
14
|
+
own: null | ColorSwatchStyles;
|
|
15
|
+
}
|
|
16
|
+
export interface ColorSwatchModel<Predicates> {
|
|
17
|
+
styles?: null | LayoutStyle<ColorSwatchElements, ConditionalStyleTransition<ColorSwatchTransitions, Predicates>>;
|
|
18
|
+
value: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ColorSwatchProps {
|
|
21
|
+
schema: ColorSwatchModel<WhenPredicate>;
|
|
22
|
+
testId?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function ColorSwatch(props: ColorSwatchProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export {};
|