@dreamcommerce/aurora 0.3.4-182 → 0.3.4-183

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,10 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var context = require('../../../color_picker/context.js');
7
7
  var use_color_picker = require('../../../color_picker/use_color_picker.js');
8
- var index$3 = require('../../../color_picker/index.js');
9
- var index$1 = require('../../index.js');
10
- var index$2 = require('../../../hint/index.js');
11
- var index = require('../../../dropdown/index.js');
8
+ var with_translation = require('../../../../utilities/translation/with_translation.js');
9
+ var index$4 = require('../../../color_picker/index.js');
10
+ var index$2 = require('../../index.js');
11
+ var index$3 = require('../../../hint/index.js');
12
+ var index$1 = require('../../../dropdown/index.js');
12
13
  var label = require('../../../color_picker/components/label.js');
13
14
 
14
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -31,19 +32,20 @@ var ControlColorPicker = function (_a) {
31
32
  var _b = _a.initialColor, initialColor = _b === void 0 ? '#FFFFFF' : _b, name = _a.name, isRequired = _a.isRequired, label$1 = _a.label, id = _a.id, onChange = _a.onChange, hideChooseCancelButtons = _a.hideChooseCancelButtons, errors = _a.errors, hint = _a.hint;
32
33
  var colorPickerContext = use_color_picker.useColorPicker({ initialColorHex: initialColor, onChange: onChange });
33
34
  return (React__default['default'].createElement(context.ColorPickerContext.Provider, { value: colorPickerContext },
34
- React__default['default'].createElement(index['default'], null,
35
- React__default['default'].createElement(index['default'].CustomLabel, null,
36
- React__default['default'].createElement(index$1['default'], { errors: errors, name: name, id: id },
37
- (label$1 || hint) && (React__default['default'].createElement(index$1['default'].Label, { id: id, isRequired: isRequired },
35
+ React__default['default'].createElement(index$1['default'], null,
36
+ React__default['default'].createElement(index$1['default'].CustomLabel, null,
37
+ React__default['default'].createElement(index$2['default'], { errors: errors, name: name, id: id },
38
+ (label$1 || hint) && (React__default['default'].createElement(index$2['default'].Label, { id: id, isRequired: isRequired },
38
39
  label$1,
39
- hint && React__default['default'].createElement(index$2['default'], { spacingLeft: true, hint: hint }))),
40
- React__default['default'].createElement(index$1['default'].Content, null,
41
- React__default['default'].createElement(index$1['default'].Element, null,
40
+ hint && React__default['default'].createElement(index$3['default'], { spacingLeft: true, hint: hint }))),
41
+ React__default['default'].createElement(index$2['default'].Content, null,
42
+ React__default['default'].createElement(index$2['default'].Element, null,
42
43
  React__default['default'].createElement(label['default'], { name: name || '', isRequired: isRequired, id: id, label: label$1 }))),
43
- React__default['default'].createElement(index$1['default'].Errors, null))),
44
- React__default['default'].createElement(index['default'].Content, null,
45
- React__default['default'].createElement(index$3.PureColorPicker, { hideChooseCancelButtons: hideChooseCancelButtons })))));
46
- };
44
+ React__default['default'].createElement(index$2['default'].Errors, null))),
45
+ React__default['default'].createElement(index$1['default'].Content, null,
46
+ React__default['default'].createElement(index$4.PureColorPicker, { hideChooseCancelButtons: hideChooseCancelButtons })))));
47
+ };
48
+ var index = with_translation['default'](ControlColorPicker);
47
49
 
48
- exports.default = ControlColorPicker;
50
+ exports.default = index;
49
51
  //# sourceMappingURL=index.js.map
@@ -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;"}
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;"}
@@ -1,16 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IControlColorPickerProps } from "../../types";
3
- /**
4
- * @component
5
- * @example
6
- * return (
7
- * <ControlColorPicker
8
- * initialColor="#FF00FF"
9
- * name="Example color picker"
10
- * isRequired
11
- * label="Example color picker label"
12
- * />
13
- * )
14
- */
15
- declare const ControlColorPicker: React.FC<IControlColorPickerProps>;
16
- export default ControlColorPicker;
3
+ declare const _default: React.FC<IControlColorPickerProps>;
4
+ export default _default;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ColorPickerContext } from '../../../color_picker/context.js';
3
3
  import { useColorPicker } from '../../../color_picker/use_color_picker.js';
4
+ import withTranslation from '../../../../utilities/translation/with_translation.js';
4
5
  import { PureColorPicker } from '../../../color_picker/index.js';
5
6
  import Control from '../../index.js';
6
7
  import Hint from '../../../hint/index.js';
@@ -35,7 +36,8 @@ var ControlColorPicker = function (_a) {
35
36
  React.createElement(Control.Errors, null))),
36
37
  React.createElement(Dropdown.Content, null,
37
38
  React.createElement(PureColorPicker, { hideChooseCancelButtons: hideChooseCancelButtons })))));
38
- };
39
+ };
40
+ var index = withTranslation(ControlColorPicker);
39
41
 
40
- export default ControlColorPicker;
42
+ export default index;
41
43
  //# sourceMappingURL=index.js.map
@@ -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;"}
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;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.1.1",
4
4
  "sideEffects": false,
5
- "version": "0.3.4-182",
5
+ "version": "0.3.4-183",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",