@loadsmart/miranda-react 2.14.1 → 2.14.2

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.
@@ -1,9 +1,6 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import type { EventName, WebComponentProps } from '@lit/react';
3
3
  import { Drawer as WCDrawer } from '@loadsmart/miranda-wc';
4
- import { DrawerActionPrimary } from './DrawerActionPrimary';
5
- import { DrawerActionSecondary } from './DrawerActionSecondary';
6
- import { DrawerActionTertiary } from './DrawerActionTertiary';
7
4
  declare global {
8
5
  namespace JSX {
9
6
  interface IntrinsicElements {
@@ -18,9 +15,9 @@ export declare const Drawer: import("@lit/react").ReactWebComponent<WCDrawer, {
18
15
  onClosing: EventName<CustomEvent<any>>;
19
16
  onClosed: EventName<CustomEvent<any>>;
20
17
  }> & {
21
- ActionPrimary: typeof DrawerActionPrimary;
22
- ActionSecondary: typeof DrawerActionSecondary;
23
- ActionTertiary: typeof DrawerActionTertiary;
18
+ ActionPrimary: import("react").ForwardRefExoticComponent<Omit<import("./DrawerActionPrimary").DrawerActionPrimaryProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").DrawerActionPrimary>>;
19
+ ActionSecondary: import("react").ForwardRefExoticComponent<Omit<import("./DrawerActionSecondary").DrawerActionSecondaryProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").DrawerActionSecondary>>;
20
+ ActionTertiary: import("react").ForwardRefExoticComponent<Omit<import("./DrawerActionTertiary").DrawerActionTertiaryProps, "ref"> & import("react").RefAttributes<import("@loadsmart/miranda-wc").DrawerActionTertiary>>;
24
21
  Actions: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DrawerActions, {}>;
25
22
  Body: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DrawerBody, {}>;
26
23
  Close: import("@lit/react").ReactWebComponent<import("@loadsmart/miranda-wc").DrawerClose, {
@@ -13,5 +13,5 @@ export interface DrawerActionPrimaryProps extends ComponentProps<typeof WiredDra
13
13
  leading?: ReactNode;
14
14
  trailing?: ReactNode;
15
15
  }
16
- export declare function DrawerActionPrimary(props: DrawerActionPrimaryProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare const DrawerActionPrimary: import("react").ForwardRefExoticComponent<Omit<DrawerActionPrimaryProps, "ref"> & import("react").RefAttributes<WCDrawerActionPrimary>>;
17
17
  export {};
@@ -13,5 +13,5 @@ export interface DrawerActionSecondaryProps extends ComponentProps<typeof WiredD
13
13
  leading?: ReactNode;
14
14
  trailing?: ReactNode;
15
15
  }
16
- export declare function DrawerActionSecondary(props: DrawerActionSecondaryProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare const DrawerActionSecondary: import("react").ForwardRefExoticComponent<Omit<DrawerActionSecondaryProps, "ref"> & import("react").RefAttributes<WCDrawerActionSecondary>>;
17
17
  export {};
@@ -13,5 +13,5 @@ export interface DrawerActionTertiaryProps extends ComponentProps<typeof WiredDr
13
13
  leading?: ReactNode;
14
14
  trailing?: ReactNode;
15
15
  }
16
- export declare function DrawerActionTertiary(props: DrawerActionTertiaryProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare const DrawerActionTertiary: import("react").ForwardRefExoticComponent<Omit<DrawerActionTertiaryProps, "ref"> & import("react").RefAttributes<WCDrawerActionTertiary>>;
17
17
  export {};
package/dist/index.js CHANGED
@@ -419,30 +419,30 @@ const WiredDrawerActionPrimary = createComponent({
419
419
  elementClass: DrawerActionPrimary$1,
420
420
  displayName: 'DrawerActionPrimary',
421
421
  });
422
- function DrawerActionPrimary(props) {
422
+ const DrawerActionPrimary = forwardRef(function DrawerActionPrimary(props, ref) {
423
423
  const { leading, trailing, children, ...rest } = props;
424
- return (jsxs(WiredDrawerActionPrimary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
425
- }
424
+ return (jsxs(WiredDrawerActionPrimary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
425
+ });
426
426
 
427
427
  const WiredDrawerActionSecondary = createComponent({
428
428
  tagName: 'm-drawer-action-secondary',
429
429
  elementClass: DrawerActionSecondary$1,
430
430
  displayName: 'DrawerActionSecondary',
431
431
  });
432
- function DrawerActionSecondary(props) {
432
+ const DrawerActionSecondary = forwardRef(function DrawerActionSecondary(props, ref) {
433
433
  const { leading, trailing, children, ...rest } = props;
434
- return (jsxs(WiredDrawerActionSecondary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
435
- }
434
+ return (jsxs(WiredDrawerActionSecondary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
435
+ });
436
436
 
437
437
  const WiredDrawerActionTertiary = createComponent({
438
438
  tagName: 'm-drawer-action-tertiary',
439
439
  elementClass: DrawerActionTertiary$1,
440
440
  displayName: 'DrawerActionTertiary',
441
441
  });
442
- function DrawerActionTertiary(props) {
442
+ const DrawerActionTertiary = forwardRef(function DrawerActionTertiary(props, ref) {
443
443
  const { leading, trailing, children, ...rest } = props;
444
- return (jsxs(WiredDrawerActionTertiary, { ...rest, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
445
- }
444
+ return (jsxs(WiredDrawerActionTertiary, { ...rest, ref: ref, children: [leading != null && jsx("span", { slot: "leading", children: leading }), children, trailing != null && jsx("span", { slot: "trailing", children: trailing })] }));
445
+ });
446
446
 
447
447
  const DrawerActions = createComponent({
448
448
  tagName: 'm-drawer-actions',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadsmart/miranda-react",
3
- "version": "2.14.1",
3
+ "version": "2.14.2",
4
4
  "description": "React component library based on Miranda Web Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,8 +40,8 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@loadsmart/miranda-tokens": "3.14.2",
44
- "@loadsmart/miranda-wc": "2.14.1",
43
+ "@loadsmart/miranda-tokens": "3.14.3",
44
+ "@loadsmart/miranda-wc": "2.14.2",
45
45
  "@lit/react": "^1.0.5"
46
46
  },
47
47
  "directories": {