@scaleflex/ui-tw 0.0.71 → 0.0.72

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,4 +1,4 @@
1
1
  import type { ColorPickerProps } from '@scaleflex/ui-tw/color-picker/color-picker.types';
2
2
  import React from 'react';
3
- declare function ColorPicker({ title, value, placeholder, onChange, onCancel, onSelect, inputTriggerProps, className, inputClassName, cancelLabel, selectLabel, children, presetColors, displayAsInput, }: ColorPickerProps): React.JSX.Element;
3
+ declare function ColorPicker({ title, value, placeholder, onChange, onCancel, onSelect, inputTriggerProps, className, inputClassName, cancelLabel, selectLabel, children, presetColors, displayAsInput, overlayClassName, }: ColorPickerProps): React.JSX.Element;
4
4
  export { ColorPicker };
@@ -25,7 +25,8 @@ function ColorPicker(_ref) {
25
25
  children = _ref.children,
26
26
  presetColors = _ref.presetColors,
27
27
  _ref$displayAsInput = _ref.displayAsInput,
28
- displayAsInput = _ref$displayAsInput === void 0 ? false : _ref$displayAsInput;
28
+ displayAsInput = _ref$displayAsInput === void 0 ? false : _ref$displayAsInput,
29
+ overlayClassName = _ref.overlayClassName;
29
30
  var _useState = useState(value),
30
31
  _useState2 = _slicedToArray(_useState, 2),
31
32
  tempValue = _useState2[0],
@@ -70,7 +71,8 @@ function ColorPicker(_ref) {
70
71
  },
71
72
  "aria-label": "Open color picker"
72
73
  })), /*#__PURE__*/React.createElement(DialogFormContent, {
73
- className: cn('w-[316px]', className)
74
+ className: cn('w-[316px]', className),
75
+ overlayClassName: overlayClassName
74
76
  }, /*#__PURE__*/React.createElement(DialogFormHeader, null, /*#__PURE__*/React.createElement(DialogFormIcon, null, /*#__PURE__*/React.createElement(PaletteIcon, null)), /*#__PURE__*/React.createElement(DialogFormTitle, null, title || 'Pick color')), /*#__PURE__*/React.createElement(DialogFormBody, {
75
77
  className: "space-y-4"
76
78
  }, /*#__PURE__*/React.createElement(HexColorPicker, {
@@ -6,6 +6,7 @@ export type ColorPickerProps = {
6
6
  onCancel?: () => void;
7
7
  inputTriggerProps?: InputHTMLAttributes<HTMLInputElement>;
8
8
  className?: string;
9
+ overlayClassName?: string;
9
10
  title?: string | ReactElement;
10
11
  cancelLabel?: string | ReactElement;
11
12
  selectLabel?: string | ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/ui-tw",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "author": "scaleflex",
5
5
  "repository": "github:scaleflex/ui",
6
6
  "homepage": "https://github.com/scaleflex/ui/blob/master/README.md",
@@ -23,7 +23,7 @@
23
23
  "@radix-ui/react-slot": "^1.1.2",
24
24
  "@radix-ui/react-switch": "^1.0.1",
25
25
  "@radix-ui/react-tooltip": "^1.2.6",
26
- "@scaleflex/icons-tw": "^0.0.71",
26
+ "@scaleflex/icons-tw": "^0.0.72",
27
27
  "@tanstack/react-table": "^8.21.3",
28
28
  "@types/lodash.merge": "^4.6.9",
29
29
  "class-variance-authority": "^0.7.1",