ag-common 0.0.540 → 0.0.541

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,5 +1,6 @@
1
1
  import React from 'react';
2
- export declare const CheckboxEdit: ({ defaultValue, onSubmit, noGrow, allowUndo, rightSpan, }: {
2
+ export declare const CheckboxEdit: ({ defaultValue, onSubmit, noGrow, allowUndo, rightSpan, className, }: {
3
+ className?: string | undefined;
3
4
  defaultValue: boolean;
4
5
  onSubmit: (val: boolean) => void;
5
6
  noGrow?: boolean | undefined;
@@ -43,7 +43,7 @@ const Icons = (0, styled_1.default)(FlexRow_1.FlexRow) `
43
43
  `;
44
44
  const CheckboxEdit = ({ defaultValue, onSubmit, noGrow = false,
45
45
  /** default allowUndo=true */
46
- allowUndo = true, rightSpan, }) => {
46
+ allowUndo = true, rightSpan, className, }) => {
47
47
  const ref = (0, react_1.useRef)(null);
48
48
  const [value, setValue] = (0, react_1.useState)(defaultValue);
49
49
  (0, react_1.useEffect)(() => {
@@ -55,7 +55,7 @@ allowUndo = true, rightSpan, }) => {
55
55
  onSubmit(value);
56
56
  }
57
57
  });
58
- return (react_1.default.createElement(common_2.ValueBox, Object.assign({}, common_1.noDrag, { style: { cursor: 'pointer' }, ref: ref, "data-nogrow": noGrow, onClick: (e) => {
58
+ return (react_1.default.createElement(common_2.ValueBox, Object.assign({}, common_1.noDrag, { className: className, style: { cursor: 'pointer' }, ref: ref, "data-nogrow": noGrow, onClick: (e) => {
59
59
  if (allowUndo) {
60
60
  setValue(!value);
61
61
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.540",
2
+ "version": "0.0.541",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",