@compill/admin 1.0.56 → 1.0.57

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/index.cjs.js CHANGED
@@ -179,7 +179,7 @@ function ButtonBar(_a) {
179
179
  children: children
180
180
  }));
181
181
  }
182
- function ButtonBarButton(_a) {
182
+ const ButtonBarButton = /*#__PURE__*/React__default["default"].forwardRef(function (_a, ref) {
183
183
  var {
184
184
  icon,
185
185
  children
@@ -196,11 +196,12 @@ function ButtonBarButton(_a) {
196
196
  corners: "square",
197
197
  gap: "2"
198
198
  }, props, {
199
+ ref: ref,
199
200
  children: [icon && jsxRuntime.jsx(ui.Icon, {
200
201
  path: icon
201
202
  }), children]
202
203
  }));
203
- }
204
+ });
204
205
  function ButtonBarDialogButton(_a) {
205
206
  var {
206
207
  icon,
package/index.esm.js CHANGED
@@ -170,7 +170,7 @@ function ButtonBar(_a) {
170
170
  children: children
171
171
  }));
172
172
  }
173
- function ButtonBarButton(_a) {
173
+ const ButtonBarButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
174
174
  var {
175
175
  icon,
176
176
  children
@@ -187,11 +187,12 @@ function ButtonBarButton(_a) {
187
187
  corners: "square",
188
188
  gap: "2"
189
189
  }, props, {
190
+ ref: ref,
190
191
  children: [icon && jsx(Icon, {
191
192
  path: icon
192
193
  }), children]
193
194
  }));
194
- }
195
+ });
195
196
  function ButtonBarDialogButton(_a) {
196
197
  var {
197
198
  icon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "module": "./index.esm.js",
5
5
  "main": "./index.cjs.js"
6
6
  }
@@ -1,12 +1,14 @@
1
- /// <reference types="react" />
2
1
  import { DialogButtonProps } from "../buttons/DialogButton";
3
2
  import { ParentComponent, SoperioComponent } from "@soperio/react";
4
3
  import { ButtonProps } from "@valerya/ui";
4
+ import React from "react";
5
5
  export declare function ButtonBar({ children, ...props }: ParentComponent & SoperioComponent): JSX.Element;
6
6
  export type ButtonBarButtonProps = {
7
7
  icon?: string;
8
8
  } & ButtonProps;
9
- export declare function ButtonBarButton({ icon, children, ...props }: ButtonBarButtonProps): JSX.Element;
9
+ export declare const ButtonBarButton: React.ForwardRefExoticComponent<{
10
+ icon?: string | undefined;
11
+ } & ButtonProps & React.RefAttributes<HTMLDivElement>>;
10
12
  export type ButtonBarDialogButtonProps = {
11
13
  icon?: string;
12
14
  } & DialogButtonProps;