@dreamcommerce/aurora 3.0.0-72 → 3.0.0-73

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.
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
7
7
  var label = require('../../label/label.js');
8
+ var helper_text = require('../../helper_text/helper_text.js');
8
9
  var error_list = require('../../error_list/error_list.js');
9
10
  var control = require('../../control/control.js');
10
11
  var color_picker = require('../../color_picker/color_picker.js');
@@ -13,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
14
 
14
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
16
 
16
- var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "initialColor", "colorVariables", "onChange", "onCancel", "onSave", "withGradient"];
17
+ var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "initialColor", "colorVariables", "onChange", "onCancel", "onSave", "withGradient", "helperText"];
17
18
  var ColorPickerControl = function ColorPickerControl(_ref) {
18
19
  var label$1 = _ref.label,
19
20
  tooltip = _ref.tooltip,
@@ -28,6 +29,7 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
28
29
  onCancel = _ref.onCancel,
29
30
  onSave = _ref.onSave,
30
31
  withGradient = _ref.withGradient,
32
+ helperText = _ref.helperText,
31
33
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
32
34
  return /*#__PURE__*/React__default['default'].createElement(control.Control, {
33
35
  classname: "aurora-flex-col"
@@ -46,7 +48,7 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
46
48
  onCancel: onCancel,
47
49
  onSave: onSave,
48
50
  withGradient: withGradient
49
- }, rest)), errors && /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
51
+ }, rest)), helperText && /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, null, helperText), errors && /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
50
52
  errors: errors
51
53
  }));
52
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
3
  import { Label } from '../../label/label.js';
4
+ import { HelperText } from '../../helper_text/helper_text.js';
4
5
  import { ErrorList } from '../../error_list/error_list.js';
5
6
  import { Control } from '../../control/control.js';
6
7
  import { ColorPicker } from '../../color_picker/color_picker.js';
7
8
 
8
- var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "initialColor", "colorVariables", "onChange", "onCancel", "onSave", "withGradient"];
9
+ var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "initialColor", "colorVariables", "onChange", "onCancel", "onSave", "withGradient", "helperText"];
9
10
  var ColorPickerControl = function ColorPickerControl(_ref) {
10
11
  var label = _ref.label,
11
12
  tooltip = _ref.tooltip,
@@ -20,6 +21,7 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
20
21
  onCancel = _ref.onCancel,
21
22
  onSave = _ref.onSave,
22
23
  withGradient = _ref.withGradient,
24
+ helperText = _ref.helperText,
23
25
  rest = _objectWithoutProperties(_ref, _excluded);
24
26
  return /*#__PURE__*/React.createElement(Control, {
25
27
  classname: "aurora-flex-col"
@@ -38,7 +40,7 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
38
40
  onCancel: onCancel,
39
41
  onSave: onSave,
40
42
  withGradient: withGradient
41
- }, rest)), errors && /*#__PURE__*/React.createElement(ErrorList, {
43
+ }, rest)), helperText && /*#__PURE__*/React.createElement(HelperText, null, helperText), errors && /*#__PURE__*/React.createElement(ErrorList, {
42
44
  errors: errors
43
45
  }));
44
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -2,6 +2,8 @@ import { IColorPickerProps } from "../../color_picker/color_picker_types";
2
2
  import React from 'react';
3
3
  export declare type TColorPickerControlProps = IColorPickerProps & {
4
4
  label?: string | React.ReactNode;
5
+ helperText?: string | React.ReactNode;
5
6
  tooltip?: string | React.ReactNode;
7
+ errors?: string | string[];
6
8
  required?: boolean;
7
9
  };
@@ -89,6 +89,7 @@ export { Input } from "./components/input/input";
89
89
  export { InputControl } from './components/controls/input_control/input_control';
90
90
  export { ColorPicker } from "./components/color_picker/color_picker";
91
91
  export { ColorPickerControl } from './components/controls/color_picker_control/color_picker_control';
92
+ export { IColorPickerColor } from "./components/color_picker/color_picker_types";
92
93
  export { Checkbox } from "./components/checkbox/checkbox";
93
94
  export { CheckboxControl } from './components/controls/checkbox_control/checkbox_control';
94
95
  export { Select } from "./components/select/select";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "3.0.0-72",
5
+ "version": "3.0.0-73",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",