@dreamcommerce/aurora 3.0.0-97 → 3.0.0-98

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.
@@ -81,7 +81,7 @@ var useImagePicker = function useImagePicker(_ref) {
81
81
  setErrors([]);
82
82
  return isValid;
83
83
  }
84
- setErrors([].concat(_rollupPluginBabelHelpers.toConsumableArray(errors), [i18n.i18n.t(image_picker_constants.IMAGE_PICKER_ERROR.invalidFileFormat)]));
84
+ setErrors([].concat(_rollupPluginBabelHelpers.toConsumableArray(errors), [i18n['default'].t(image_picker_constants.IMAGE_PICKER_ERROR.invalidFileFormat)]));
85
85
  onError === null || onError === void 0 ? void 0 : onError(errors);
86
86
  return isValid;
87
87
  };
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
 
17
- var _excluded = ["children", "id", "cssClassNames", "ContentComponent", "LabelComponent", "disabled", "isDragging"];
17
+ var _excluded = ["children", "id", "cssClassNames", "ContentComponent", "LabelComponent", "disabled", "hasDisabledHover"];
18
18
  var TreeNode = function TreeNode(_ref) {
19
19
  var children = _ref.children,
20
20
  id = _ref.id,
@@ -22,7 +22,7 @@ var TreeNode = function TreeNode(_ref) {
22
22
  ContentComponent = _ref.ContentComponent,
23
23
  LabelComponent = _ref.LabelComponent,
24
24
  disabled = _ref.disabled,
25
- isDragging = _ref.isDragging,
25
+ hasDisabledHover = _ref.hasDisabledHover,
26
26
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
27
27
  var treeApi = tree_hook.useTree();
28
28
  var node = tree_node_hook.useTreeNode(id, rest);
@@ -34,7 +34,7 @@ var TreeNode = function TreeNode(_ref) {
34
34
  };
35
35
  var Label = LabelComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
36
36
  className: cn.cn('aurora-w-full aurora-px-2 aurora-rounded-4 hover:aurora-bg-hover', {
37
- 'hover:aurora-bg-transparent': isDragging
37
+ 'hover:aurora-bg-transparent': hasDisabledHover
38
38
  })
39
39
  }, LabelComponent === null || LabelComponent === void 0 ? void 0 : LabelComponent({
40
40
  node: node,
@@ -42,7 +42,7 @@ var TreeNode = function TreeNode(_ref) {
42
42
  }))) : (/*#__PURE__*/React__default['default'].createElement("div", {
43
43
  tabIndex: !children ? 0 : -1,
44
44
  className: cn.cn('aurora-w-full aurora-px-2 aurora-rounded-4 hover:aurora-bg-hover', {
45
- 'hover:aurora-bg-transparent': isDragging
45
+ 'hover:aurora-bg-transparent': hasDisabledHover
46
46
  })
47
47
  }, node.label ? node.label : node.id));
48
48
  var Content = ContentComponent ? ContentComponent === null || ContentComponent === void 0 ? void 0 : ContentComponent({
@@ -51,7 +51,7 @@ var TreeNode = function TreeNode(_ref) {
51
51
  isLeaf: !childrenCount
52
52
  }) : (/*#__PURE__*/React__default['default'].createElement("div", {
53
53
  className: cn.cn('aurora-flex aurora-items-center aurora-rounded-4 hover:aurora-bg-hover', {
54
- 'hover:aurora-bg-transparent': isDragging
54
+ 'hover:aurora-bg-transparent': hasDisabledHover
55
55
  })
56
56
  }, /*#__PURE__*/React__default['default'].createElement("button", {
57
57
  className: "aurora-flex aurora-items-center aurora-p-1 aurora-cursor-pointer",
@@ -26,5 +26,5 @@ i18n.use(context.initReactI18next).init({
26
26
  }
27
27
  });
28
28
 
29
- exports.i18n = i18n;
29
+ exports.default = i18n;
30
30
  //# sourceMappingURL=i18n.js.map
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var i18n = require('./i18n.js');
6
5
  var accordion_constants = require('./components/accordion/accordion_constants.js');
7
6
  var css_background_tokens = require('./constants/css_tokens/css_background_tokens.js');
8
7
  var css_border_color_tokens = require('./constants/css_tokens/css_border_color_tokens.js');
@@ -91,8 +90,6 @@ var control = require('./components/control/control.js');
91
90
  var switch_control = require('./components/controls/switch_control/switch_control.js');
92
91
  var input = require('./components/input/input.js');
93
92
  var input_control = require('./components/controls/input_control/input_control.js');
94
- var color_picker_constants = require('./components/color_picker/color_picker_constants.js');
95
- var color_picker_utils = require('./components/color_picker/color_picker_utils.js');
96
93
  var color_picker = require('./components/color_picker/color_picker.js');
97
94
  var color_picker_control = require('./components/controls/color_picker_control/color_picker_control.js');
98
95
  var checkbox = require('./components/checkbox/checkbox.js');
@@ -118,7 +115,6 @@ var tree_node = require('./components/tree/components/tree_node.js');
118
115
 
119
116
 
120
117
 
121
- exports.i18n = i18n.i18n;
122
118
  exports.ACCORDION_SIZES = accordion_constants.ACCORDION_SIZES;
123
119
  exports.CSS_BACKGROUND_TOKENS = css_background_tokens.CSS_BACKGROUND_TOKENS;
124
120
  exports.CSS_BORDER_COLOR_TOKENS = css_border_color_tokens.CSS_BORDER_COLOR_TOKENS;
@@ -225,8 +221,6 @@ exports.Control = control.Control;
225
221
  exports.SwitchControl = switch_control.SwitchControl;
226
222
  exports.Input = input.Input;
227
223
  exports.InputControl = input_control.InputControl;
228
- exports.GRADIENT_TYPES = color_picker_constants.GRADIENT_TYPES;
229
- exports.ColorPickerUtils = color_picker_utils.ColorPickerUtils;
230
224
  exports.ColorPicker = color_picker.ColorPicker;
231
225
  exports.ColorPickerControl = color_picker_control.ColorPickerControl;
232
226
  exports.Checkbox = checkbox.Checkbox;
@@ -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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,5 +1,5 @@
1
1
  import { useState, useRef, useEffect } from 'react';
2
- import { i18n } from '../../i18n.js';
2
+ import i18n from '../../i18n.js';
3
3
  import { slicedToArray as _slicedToArray, toConsumableArray as _toConsumableArray } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
4
4
  import { MIME_TYPE_TO_FILE_EXTENSIONS, IMAGE_PICKER_ERROR } from './image_picker_constants.js';
5
5
 
@@ -17,7 +17,7 @@ declare type TTreeNodeProps = TPropsWithChildren<ITreeNode & {
17
17
  expandIcon?: React.ReactNode;
18
18
  LabelComponent?: (props: TTreeLabelComponentProps) => React.ReactNode;
19
19
  ContentComponent?: (props: TTreeContentComponentProps) => React.ReactNode;
20
- isDragging?: boolean;
20
+ hasDisabledHover?: boolean;
21
21
  }>;
22
- export declare const TreeNode: ({ children, id, cssClassNames, ContentComponent, LabelComponent, disabled, isDragging, ...rest }: TTreeNodeProps) => React.JSX.Element | null;
22
+ export declare const TreeNode: ({ children, id, cssClassNames, ContentComponent, LabelComponent, disabled, hasDisabledHover, ...rest }: TTreeNodeProps) => React.JSX.Element | null;
23
23
  export default TreeNode;
@@ -6,7 +6,7 @@ import { CSSTransition } from 'react-transition-group';
6
6
  import { useTree } from '../hooks/tree_hook.js';
7
7
  import { useTreeNode } from '../hooks/tree_node_hook.js';
8
8
 
9
- var _excluded = ["children", "id", "cssClassNames", "ContentComponent", "LabelComponent", "disabled", "isDragging"];
9
+ var _excluded = ["children", "id", "cssClassNames", "ContentComponent", "LabelComponent", "disabled", "hasDisabledHover"];
10
10
  var TreeNode = function TreeNode(_ref) {
11
11
  var children = _ref.children,
12
12
  id = _ref.id,
@@ -14,7 +14,7 @@ var TreeNode = function TreeNode(_ref) {
14
14
  ContentComponent = _ref.ContentComponent,
15
15
  LabelComponent = _ref.LabelComponent,
16
16
  disabled = _ref.disabled,
17
- isDragging = _ref.isDragging,
17
+ hasDisabledHover = _ref.hasDisabledHover,
18
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
19
  var treeApi = useTree();
20
20
  var node = useTreeNode(id, rest);
@@ -26,7 +26,7 @@ var TreeNode = function TreeNode(_ref) {
26
26
  };
27
27
  var Label = LabelComponent ? (/*#__PURE__*/React.createElement("div", {
28
28
  className: cn('aurora-w-full aurora-px-2 aurora-rounded-4 hover:aurora-bg-hover', {
29
- 'hover:aurora-bg-transparent': isDragging
29
+ 'hover:aurora-bg-transparent': hasDisabledHover
30
30
  })
31
31
  }, LabelComponent === null || LabelComponent === void 0 ? void 0 : LabelComponent({
32
32
  node: node,
@@ -34,7 +34,7 @@ var TreeNode = function TreeNode(_ref) {
34
34
  }))) : (/*#__PURE__*/React.createElement("div", {
35
35
  tabIndex: !children ? 0 : -1,
36
36
  className: cn('aurora-w-full aurora-px-2 aurora-rounded-4 hover:aurora-bg-hover', {
37
- 'hover:aurora-bg-transparent': isDragging
37
+ 'hover:aurora-bg-transparent': hasDisabledHover
38
38
  })
39
39
  }, node.label ? node.label : node.id));
40
40
  var Content = ContentComponent ? ContentComponent === null || ContentComponent === void 0 ? void 0 : ContentComponent({
@@ -43,7 +43,7 @@ var TreeNode = function TreeNode(_ref) {
43
43
  isLeaf: !childrenCount
44
44
  }) : (/*#__PURE__*/React.createElement("div", {
45
45
  className: cn('aurora-flex aurora-items-center aurora-rounded-4 hover:aurora-bg-hover', {
46
- 'hover:aurora-bg-transparent': isDragging
46
+ 'hover:aurora-bg-transparent': hasDisabledHover
47
47
  })
48
48
  }, /*#__PURE__*/React.createElement("button", {
49
49
  className: "aurora-flex aurora-items-center aurora-p-1 aurora-cursor-pointer",
@@ -1 +1,2 @@
1
- export declare const i18n: import("i18next").i18n;
1
+ declare const i18n: import("i18next").i18n;
2
+ export default i18n;
@@ -22,5 +22,5 @@ i18n.use(initReactI18next).init({
22
22
  }
23
23
  });
24
24
 
25
- export { i18n };
25
+ export default i18n;
26
26
  //# sourceMappingURL=i18n.js.map
@@ -1,5 +1,5 @@
1
1
  import './i18n';
2
- export { i18n } from './i18n';
2
+ export * from './i18n';
3
3
  export { Accordion } from "./components/accordion/accordion";
4
4
  export { AccordionContent } from "./components/accordion/components/accordion_content";
5
5
  export { AccordionItem } from "./components/accordion/components/accordion_item";
@@ -90,8 +90,6 @@ 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
92
  export { IColorPickerColor } from "./components/color_picker/color_picker_types";
93
- export { GRADIENT_TYPES } from "./components/color_picker/color_picker_constants";
94
- export { ColorPickerUtils } from "./components/color_picker/color_picker_utils";
95
93
  export { Checkbox } from "./components/checkbox/checkbox";
96
94
  export { CheckboxControl } from './components/controls/checkbox_control/checkbox_control';
97
95
  export { Select } from "./components/select/select";
@@ -104,7 +102,7 @@ export { TextArea } from "./components/text_area/text_area";
104
102
  export { TextAreaControl } from "./components/controls/text_area_control/text_area_control";
105
103
  export { Control } from "./components/control/control";
106
104
  export { ControlsGroup } from "./components/controls/controls_group/controls_group";
107
- export { IImagePicker, TImageSize, TImagePickerExtension, TImagePickerFile } from "./components/image_picker/image_picker_types";
105
+ export { IImagePicker, TImageSize, TImagePickerExtension } from "./components/image_picker/image_picker_types";
108
106
  export { ImagePicker } from "./components/image_picker/image_picker";
109
107
  export { XhrImagePicker } from "./components/xhr_image_picker/xhr_image_picker";
110
108
  export { XhrImagePickerControl } from "./components/controls/xhr_image_picker_control/xhr_image_picker_control";
@@ -1,4 +1,3 @@
1
- export { i18n } from './i18n.js';
2
1
  export { ACCORDION_SIZES } from './components/accordion/accordion_constants.js';
3
2
  export { CSS_BACKGROUND_TOKENS } from './constants/css_tokens/css_background_tokens.js';
4
3
  export { CSS_BORDER_COLOR_TOKENS } from './constants/css_tokens/css_border_color_tokens.js';
@@ -87,8 +86,6 @@ export { Control } from './components/control/control.js';
87
86
  export { SwitchControl } from './components/controls/switch_control/switch_control.js';
88
87
  export { Input } from './components/input/input.js';
89
88
  export { InputControl } from './components/controls/input_control/input_control.js';
90
- export { GRADIENT_TYPES } from './components/color_picker/color_picker_constants.js';
91
- export { ColorPickerUtils } from './components/color_picker/color_picker_utils.js';
92
89
  export { ColorPicker } from './components/color_picker/color_picker.js';
93
90
  export { ColorPickerControl } from './components/controls/color_picker_control/color_picker_control.js';
94
91
  export { Checkbox } from './components/checkbox/checkbox.js';
@@ -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;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;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;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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { I18nextProvider } from 'react-i18next';
3
3
  import '@auroraUtilities/translation/translation_types';
4
- import { i18n } from '../../i18n';
4
+ import i18n from '../../i18n';
5
5
  export const withTranslation = (ChildComponent) => (props) => {
6
6
  return (
7
7
  // TOOD
@@ -1 +1 @@
1
- {"version":3,"file":"with_translation.js","sourceRoot":"","sources":["../../../../../../../src/utilities/translation/with_translation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAiC,gDAAgD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,CAAC,MAAM,eAAe,GAAqB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;IAC3E,OAAO;IACH,OAAO;IACP,YAAY;IACZ,oBAAC,eAAe,IAAC,IAAI,EAAE,IAAI;QACvB,oBAAC,cAAc,OAAK,KAAK,GAAI,CACf,CACrB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"with_translation.js","sourceRoot":"","sources":["../../../../../../../src/utilities/translation/with_translation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAiC,gDAAgD,CAAC;AAClF,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,MAAM,CAAC,MAAM,eAAe,GAAqB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE;IAC3E,OAAO;IACH,OAAO;IACP,YAAY;IACZ,oBAAC,eAAe,IAAC,IAAI,EAAE,IAAI;QACvB,oBAAC,cAAc,OAAK,KAAK,GAAI,CACf,CACrB,CAAC;AACN,CAAC,CAAC"}
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-97",
5
+ "version": "3.0.0-98",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",