@rokt/dcui-orchestrator 0.0.2-rc.6 → 0.0.2-rc.8

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,48 @@
1
+ import { LayoutSchemaModel, CopyToClipboardButtonModel, WhenPredicate } from '@rokt/dcui-layout-schema';
2
+ export interface CopyToClipboardButtonProps {
3
+ /**
4
+ * - `a11yLabel`: the aria-label for the button
5
+ * - `value`: the text to be copied to the clipboard
6
+ * - `customStateKey`: the name of the custom state that should be updated.
7
+ * - `children`: it can accept below nodes,
8
+ * * `Row`
9
+ * * `FlowRow`
10
+ * * `Column`
11
+ * * `ZStack`
12
+ * * `BasicText`
13
+ * * `StaticImage`
14
+ * * `StaticIcon`
15
+ * * `DataImage` -> When present in Layout Variant
16
+ * * `DataIcon` -> When present in Layout Variant
17
+ * * `When`
18
+ * * `InlineContainer`
19
+ * - `styles`:
20
+ * * `elements`:
21
+ * * `own`:
22
+ * - `container`
23
+ * - `background`
24
+ * - `border`
25
+ * - `dimension`
26
+ * - `flexChild`
27
+ * - `spacing`
28
+ * * `transitions`:
29
+ * - `type`: 'Conditional'
30
+ * - `transition`:
31
+ * * `predicates`: WhenPredicate[]
32
+ * * `duration`: number
33
+ * * `value`:
34
+ * * `own`:
35
+ * - `container`
36
+ * - `background`
37
+ * - `border`
38
+ * - `dimension`
39
+ * - `flexChild`
40
+ * - `spacing`
41
+ */
42
+ schema: CopyToClipboardButtonModel<LayoutSchemaModel, WhenPredicate>;
43
+ testId?: string;
44
+ }
45
+ /**The CopyToClipboardButton is a button that copies a text to the clipboard on click.<br>
46
+ * *Where can we use this: __outer layout__, __layout variant__ & __child layout__*
47
+ * */
48
+ export declare function CopyToClipboardButton(props: CopyToClipboardButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
2
+ export declare function tryMakeCopyToClipboardButton(schema: LayoutSchemaModel, testId?: string): JSX.Element | void;
@@ -0,0 +1,2 @@
1
+ export * from './copy-to-clipboard-button';
2
+ export * from './factory';
@@ -24,3 +24,4 @@ export * from './escape-hatch';
24
24
  export * from './catalog-quantity-option';
25
25
  export * from './catalog-stacked-collection';
26
26
  export * from './child-layout-handler';
27
+ export * from './copy-to-clipboard-button';
@@ -3,7 +3,6 @@ import { BottomSheetProps } from './types';
3
3
  type BottomSheetContainerProps = {
4
4
  children?: React.ReactNode;
5
5
  schema: BottomSheetProps['schema'];
6
- ref: React.RefObject<HTMLDivElement>;
7
6
  testId?: string;
8
7
  };
9
8
  /**The BottomSheet is a display node that is pinned to the bottom of the viewport.
@@ -12,6 +11,6 @@ type BottomSheetContainerProps = {
12
11
  * *Where can we use this: __outer layout__*
13
12
  */
14
13
  export declare function BottomSheet(props: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
15
- export declare const BottomSheetContainer: React.ForwardRefExoticComponent<Omit<BottomSheetContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const BottomSheetContainer: React.ForwardRefExoticComponent<BottomSheetContainerProps & React.RefAttributes<HTMLDivElement>>;
16
15
  export declare function handleBottomSheetTransition<RefElement extends HTMLElement>(element: RefElement): () => void;
17
16
  export {};
@@ -3,7 +3,6 @@ import { OverlayProps } from './types';
3
3
  type OverlayContainerProps = {
4
4
  children?: React.ReactNode;
5
5
  schema: OverlayProps['schema'];
6
- ref: React.RefObject<HTMLDivElement>;
7
6
  testId?: string;
8
7
  };
9
8
  /**The Overlay is a display node that suits various purposes,
@@ -15,5 +14,5 @@ type OverlayContainerProps = {
15
14
  * *Where can we use this: __outer layout__*
16
15
  */
17
16
  export declare function Overlay(props: OverlayProps): import("react/jsx-runtime").JSX.Element;
18
- export declare const OverlayContainer: React.ForwardRefExoticComponent<Omit<OverlayContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ export declare const OverlayContainer: React.ForwardRefExoticComponent<OverlayContainerProps & React.RefAttributes<HTMLDivElement>>;
19
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/dcui-orchestrator",
3
- "version": "0.0.2-rc.6",
3
+ "version": "0.0.2-rc.8",
4
4
  "description": "Rokt's DCUI rendering process",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",