@scbt-ecom/ui 0.34.1 → 0.34.3

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.
@@ -24,4 +24,5 @@ export * from './breadcrumbs';
24
24
  export * from './customLink';
25
25
  export * from './document';
26
26
  export * from './keyboardShortcuts';
27
+ export * from './slot';
27
28
  export * from './formElements';
@@ -0,0 +1,6 @@
1
+ export type SlotProps = React.HTMLAttributes<HTMLElement> & {
2
+ children?: React.ReactNode;
3
+ };
4
+ export declare const Slot: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLElement> & {
5
+ children?: React.ReactNode;
6
+ } & import('react').RefAttributes<HTMLElement>>;
@@ -0,0 +1 @@
1
+ export { Slot } from './Slot';
@@ -0,0 +1 @@
1
+ export declare const getElementRef: (element: React.ReactElement) => any;
@@ -0,0 +1,3 @@
1
+ export { isSlottable } from './isSlottable';
2
+ export { getElementRef } from './getElementRef';
3
+ export { mergeProps } from './mergeProps';
@@ -0,0 +1,2 @@
1
+ import { Slottable, SlottableProps } from '../ui';
2
+ export declare const isSlottable: (child: React.ReactNode) => child is React.ReactElement<SlottableProps, typeof Slottable>;
@@ -0,0 +1,5 @@
1
+ type AnyProps = Record<string, any>;
2
+ export declare const mergeProps: (slotProps: AnyProps, childProps: AnyProps) => {
3
+ [x: string]: any;
4
+ };
5
+ export {};
@@ -0,0 +1,4 @@
1
+ export type SlotCloneProps = {
2
+ children: React.ReactNode;
3
+ };
4
+ export declare const SlotClone: import('react').ForwardRefExoticComponent<SlotCloneProps & import('react').RefAttributes<any>>;
@@ -0,0 +1,4 @@
1
+ export type SlottableProps = {
2
+ children: React.ReactNode;
3
+ };
4
+ export declare const Slottable: ({ children }: SlottableProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Slottable, type SlottableProps } from './Slottable';
2
+ export { SlotClone, type SlotCloneProps } from './SlotClone';