@dreamcommerce/aurora 3.1.29 → 3.1.31
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.
- package/README.md +0 -134
- package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js +5 -3
- package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js +5 -3
- package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +5 -3
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js +4 -3
- package/build/cjs/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js +4 -2
- package/build/cjs/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker.js +8 -4
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker_delete_button.js +3 -0
- package/build/cjs/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js +4 -3
- package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_container.js +42 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_container.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_handle.js +39 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_handle.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_pure.js +41 -0
- package/build/cjs/packages/aurora/src/components/resizable/components/resizable_pure.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable.js +79 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable_context.js +17 -0
- package/build/cjs/packages/aurora/src/components/resizable/hooks/use_resizable_context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable.js +44 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_container_constants.js +21 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_container_constants.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_context.js +14 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_context.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_utils.js +37 -0
- package/build/cjs/packages/aurora/src/components/resizable/resizable_utils.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/select/select.js +3 -2
- package/build/cjs/packages/aurora/src/components/select/select.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/values_syncer/values_syncer.js +5 -2
- package/build/cjs/packages/aurora/src/components/values_syncer/values_syncer.js.map +1 -1
- package/build/cjs/packages/aurora/src/index.js +2 -0
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.js +5 -3
- package/build/esm/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js +5 -3
- package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.d.ts +7 -2
- package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.d.ts +8 -2
- package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.d.ts +6 -2
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +5 -3
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.d.ts +7 -2
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js +4 -3
- package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.d.ts +8 -5
- package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js +4 -2
- package/build/esm/packages/aurora/src/components/controls/values_syncer_control/values_syncer_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/xhr_image_picker_control/xhr_image_picker_control.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/image_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/image_picker.js +8 -4
- package/build/esm/packages/aurora/src/components/image_picker/image_picker.js.map +1 -1
- package/build/esm/packages/aurora/src/components/image_picker/image_picker_delete_button.js +3 -0
- package/build/esm/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map +1 -1
- package/build/esm/packages/aurora/src/components/multiselect/multiselect.d.ts +4 -5
- package/build/esm/packages/aurora/src/components/multiselect/multiselect.js +4 -3
- package/build/esm/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.js +34 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.d.ts +8 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.js +31 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_handle.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.js +33 -0
- package/build/esm/packages/aurora/src/components/resizable/components/resizable_pure.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.d.ts +7 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.js +75 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.js +13 -0
- package/build/esm/packages/aurora/src/components/resizable/hooks/use_resizable_context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable.js +36 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.d.ts +11 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.js +14 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_context.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_context.js +10 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_context.js.map +1 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_utils.d.ts +5 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_utils.js +30 -0
- package/build/esm/packages/aurora/src/components/resizable/resizable_utils.js.map +1 -0
- package/build/esm/packages/aurora/src/components/select/select.d.ts +4 -5
- package/build/esm/packages/aurora/src/components/select/select.js +3 -2
- package/build/esm/packages/aurora/src/components/select/select.js.map +1 -1
- package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.js +5 -2
- package/build/esm/packages/aurora/src/components/values_syncer/values_syncer.js.map +1 -1
- package/build/esm/packages/aurora/src/components/xhr_image_picker/xhr_image_picker.d.ts +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +1 -0
- package/build/esm/packages/aurora/src/index.js +1 -0
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/build/index.css +1 -1
- package/package.json +1 -1
package/build/esm/packages/aurora/src/components/controls/text_area_control/text_area_control.js.map
CHANGED
|
@@ -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;"}
|
|
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;"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export declare const ValuesSyncerControl: React.ForwardRefExoticComponent<import("../../values_syncer/values_syncer_types").TValuesSyncerProps<unknown> & {
|
|
3
|
+
label?: React.ReactNode;
|
|
4
|
+
required?: boolean | undefined;
|
|
5
|
+
tooltip?: React.ReactNode;
|
|
6
|
+
helperText?: React.ReactNode;
|
|
7
|
+
errors?: string | string[] | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -6,7 +6,7 @@ import { HelperText } from '../../helper_text/helper_text.js';
|
|
|
6
6
|
import { Label } from '../../label/label.js';
|
|
7
7
|
import { ValuesSyncer } from '../../values_syncer/values_syncer.js';
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var ValuesSyncerControlInternal = function ValuesSyncerControlInternal(_ref, ref) {
|
|
10
10
|
var label = _ref.label,
|
|
11
11
|
_ref$required = _ref.required,
|
|
12
12
|
required = _ref$required === void 0 ? false : _ref$required,
|
|
@@ -37,13 +37,15 @@ var ValuesSyncerControl = function ValuesSyncerControl(_ref) {
|
|
|
37
37
|
onLock: onLock,
|
|
38
38
|
disableLockButton: disableLockButton,
|
|
39
39
|
onChange: onChange,
|
|
40
|
-
className: className
|
|
40
|
+
className: className,
|
|
41
|
+
ref: ref
|
|
41
42
|
}), helperText ? /*#__PURE__*/React__default.createElement(HelperText, {
|
|
42
43
|
color: disabled ? CSS_TEXT_COLOR_TOKENS.subtleLight : undefined
|
|
43
44
|
}, helperText) : null, errors ? /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
44
45
|
errors: errors
|
|
45
46
|
}) : null);
|
|
46
47
|
};
|
|
48
|
+
var ValuesSyncerControl = /*#__PURE__*/React__default.forwardRef(ValuesSyncerControlInternal);
|
|
47
49
|
ValuesSyncerControl.displayName = 'ValuesSyncerControl';
|
|
48
50
|
|
|
49
51
|
export { ValuesSyncerControl };
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IXhrImagePickerControl } from './xhr_image_picker_control_types';
|
|
3
|
-
export declare const XhrImagePickerControl: React.ForwardRefExoticComponent<IXhrImagePickerControl & React.RefAttributes<
|
|
3
|
+
export declare const XhrImagePickerControl: React.ForwardRefExoticComponent<IXhrImagePickerControl & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IImagePicker } from './image_picker_types';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare const ImagePicker: React.MemoExoticComponent<React.ForwardRefExoticComponent<IImagePicker & React.RefAttributes<
|
|
3
|
+
export declare const ImagePicker: React.MemoExoticComponent<React.ForwardRefExoticComponent<IImagePicker & React.RefAttributes<HTMLDivElement>>>;
|
|
@@ -111,7 +111,7 @@ var ImagePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
111
111
|
};
|
|
112
112
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
113
113
|
className: "aurora-mb-1"
|
|
114
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
114
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
115
115
|
className: cn('aurora-block aurora-w-full aurora-rounded-8 aurora-relative aurora-border-strong hover:aurora-border-extraStrong focus-visible:aurora-border-active focus-visible:aurora-outline-none', {
|
|
116
116
|
'aurora-border aurora-border-dashed': !(errors && errors.length > 0 && !isDragOver),
|
|
117
117
|
'aurora-border-2 aurora-border-danger aurora-border-solid hover:aurora-border-danger focus-visible:aurora-border-danger': errors && errors.length > 0,
|
|
@@ -121,8 +121,13 @@ var ImagePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
121
121
|
var _inputRef$current;
|
|
122
122
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
123
123
|
},
|
|
124
|
+
onKeyDown: function onKeyDown(e) {
|
|
125
|
+
var _inputRef$current2;
|
|
126
|
+
return e.key === 'Enter' && ((_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.click());
|
|
127
|
+
},
|
|
124
128
|
ref: ref,
|
|
125
|
-
|
|
129
|
+
role: 'button',
|
|
130
|
+
tabIndex: 0
|
|
126
131
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
127
132
|
onDragOver: onDragOver,
|
|
128
133
|
onDragLeave: onDragLeave
|
|
@@ -130,8 +135,7 @@ var ImagePicker = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
130
135
|
className: "aurora-p-1 aurora-relative"
|
|
131
136
|
}, /*#__PURE__*/React__default.createElement(ImagePickerPreviewContainer, {
|
|
132
137
|
classname: "aurora-relative aurora-flex aurora-flex-col"
|
|
133
|
-
}, topButtons && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, topButtons), /*#__PURE__*/React__default.createElement("
|
|
134
|
-
htmlFor: id,
|
|
138
|
+
}, topButtons && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, topButtons), /*#__PURE__*/React__default.createElement("div", {
|
|
135
139
|
className: "aurora-relative"
|
|
136
140
|
}, /*#__PURE__*/React__default.createElement(ImagePickerPreview, {
|
|
137
141
|
file: file,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,+BAA+B,iEAAqE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,+BAA+B,iEAAqE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -15,6 +15,9 @@ var ImagePickerDeleteButton = function ImagePickerDeleteButton(_ref) {
|
|
|
15
15
|
e.preventDefault();
|
|
16
16
|
onFileDelete();
|
|
17
17
|
},
|
|
18
|
+
onKeyDown: function onKeyDown(e) {
|
|
19
|
+
return e.stopPropagation();
|
|
20
|
+
},
|
|
18
21
|
className: "aurora-flex aurora-items-center aurora-gap-1 aurora-border aurora-border-danger aurora-rounded-full aurora-px-3 aurora-py-[6px]",
|
|
19
22
|
type: "button"
|
|
20
23
|
}, /*#__PURE__*/React__default.createElement(DeleteBinLineIcon, {
|
package/build/esm/packages/aurora/src/components/image_picker/image_picker_delete_button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,+BAA+B,iEAAqE;AACpG;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,+BAA+B,iEAAqE;AACpG;AACA;AACA;AACA;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,6 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TMultiSelectProps } from './multiselect_types';
|
|
3
|
-
export declare const MultiSelect: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
export declare const MultiSelect: React.ForwardRefExoticComponent<TMultiSelectProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,7 +7,7 @@ import { MultiSelectTrigger } from './components/multiselect_trigger.js';
|
|
|
7
7
|
import { useMultiSelectValue } from './hooks/use_multiselect_value.js';
|
|
8
8
|
|
|
9
9
|
var _excluded = ["id", "options", "placeholder", "disabled", "hasSearch", "searchPlaceholder", "onValueChange", "errors", "value", "searchNotFoundContent"];
|
|
10
|
-
var MultiSelect = function
|
|
10
|
+
var MultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
11
11
|
var id = _ref.id,
|
|
12
12
|
options = _ref.options,
|
|
13
13
|
placeholder = _ref.placeholder,
|
|
@@ -40,7 +40,8 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
40
40
|
return /*#__PURE__*/React__default.createElement(Root, _objectSpread2({}, props), /*#__PURE__*/React__default.createElement(MultiSelectTrigger, {
|
|
41
41
|
id: id,
|
|
42
42
|
disabled: disabled,
|
|
43
|
-
hasErrors: !!(errors !== null && errors !== void 0 && errors.length)
|
|
43
|
+
hasErrors: !!(errors !== null && errors !== void 0 && errors.length),
|
|
44
|
+
ref: ref
|
|
44
45
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
45
46
|
className: cn('aurora-pointer-events-none aurora-select-none', showPlaceholder && 'aurora-text-subtle')
|
|
46
47
|
}, !showPlaceholder ? selectedOptions.map(function (option) {
|
|
@@ -53,7 +54,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
53
54
|
searchPlaceholder: searchPlaceholder,
|
|
54
55
|
searchNotFoundContent: searchNotFoundContent
|
|
55
56
|
})));
|
|
56
|
-
};
|
|
57
|
+
});
|
|
57
58
|
MultiSelect.displayName = 'MultiSelect';
|
|
58
59
|
|
|
59
60
|
export { MultiSelect };
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { ResizableHandle } from './resizable_handle.js';
|
|
3
|
+
|
|
4
|
+
var ResizableContainer = function ResizableContainer(_ref) {
|
|
5
|
+
var className = _ref.className,
|
|
6
|
+
style = _ref.style,
|
|
7
|
+
variant = _ref.variant,
|
|
8
|
+
onResize = _ref.onResize,
|
|
9
|
+
children = _ref.children;
|
|
10
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
11
|
+
className: "aurora-flex aurora-relative ".concat(className),
|
|
12
|
+
style: style
|
|
13
|
+
}, variant === 'horizontal' ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ResizableHandle, {
|
|
14
|
+
position: "left",
|
|
15
|
+
onMouseDown: function onMouseDown(e) {
|
|
16
|
+
return onResize(e, 'left');
|
|
17
|
+
}
|
|
18
|
+
}), /*#__PURE__*/React__default.createElement(ResizableHandle, {
|
|
19
|
+
position: "right",
|
|
20
|
+
onMouseDown: function onMouseDown(e) {
|
|
21
|
+
return onResize(e, 'right');
|
|
22
|
+
}
|
|
23
|
+
}))) : (/*#__PURE__*/React__default.createElement(ResizableHandle, {
|
|
24
|
+
position: variant,
|
|
25
|
+
onMouseDown: function onMouseDown(e) {
|
|
26
|
+
return onResize(e, variant);
|
|
27
|
+
}
|
|
28
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
29
|
+
className: "aurora-flex-1"
|
|
30
|
+
}, children));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { ResizableContainer };
|
|
34
|
+
//# sourceMappingURL=resizable_container.js.map
|
package/build/esm/packages/aurora/src/components/resizable/components/resizable_container.js.map
ADDED
|
@@ -0,0 +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;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { cn } from '../../../utilities/cn.js';
|
|
3
|
+
import { RESIZABLE_CONTAINER_RESIZER_CLASS, HANDLE_HOVER_SPACE, RESIZE_HANDLE_VARIANTS } from '../resizable_container_constants.js';
|
|
4
|
+
import { useResizableContext } from '../hooks/use_resizable_context.js';
|
|
5
|
+
|
|
6
|
+
var ResizableHandle = function ResizableHandle(_ref) {
|
|
7
|
+
var position = _ref.position,
|
|
8
|
+
className = _ref.className,
|
|
9
|
+
onMouseDown = _ref.onMouseDown;
|
|
10
|
+
var _useResizableContext = useResizableContext(),
|
|
11
|
+
isResizing = _useResizableContext.isResizing;
|
|
12
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
13
|
+
className: cn("".concat(RESIZABLE_CONTAINER_RESIZER_CLASS, " ").concat(className, " aurora-absolute aurora-top-0 aurora-bottom-0 aurora-cursor-col-resize aurora-transition-opacity aurora-duration-200 aurora-z-[99999] aurora-opacity-0 hover:aurora-opacity-100"), {
|
|
14
|
+
'aurora-opacity-100': isResizing
|
|
15
|
+
}),
|
|
16
|
+
style: {
|
|
17
|
+
paddingLeft: "".concat(HANDLE_HOVER_SPACE, "px"),
|
|
18
|
+
paddingRight: "".concat(HANDLE_HOVER_SPACE, "px"),
|
|
19
|
+
left: position === RESIZE_HANDLE_VARIANTS.left ? "-".concat(HANDLE_HOVER_SPACE, "px") : '',
|
|
20
|
+
right: position === RESIZE_HANDLE_VARIANTS.right ? "-".concat(HANDLE_HOVER_SPACE, "px") : ''
|
|
21
|
+
},
|
|
22
|
+
onMouseDown: onMouseDown
|
|
23
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24
|
+
className: cn('aurora-w-[2px] aurora-h-full aurora-bg-primary', {
|
|
25
|
+
'aurora-bg-primary-hover': isResizing
|
|
26
|
+
})
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { ResizableHandle };
|
|
31
|
+
//# sourceMappingURL=resizable_handle.js.map
|
|
@@ -0,0 +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;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React__default, { useEffect } from 'react';
|
|
2
|
+
import { RESIZE_HANDLE_VARIANTS } from '../resizable_container_constants.js';
|
|
3
|
+
import { useResizableContext } from '../hooks/use_resizable_context.js';
|
|
4
|
+
import { ResizableContainer } from './resizable_container.js';
|
|
5
|
+
|
|
6
|
+
var ResizablePure = function ResizablePure(_ref) {
|
|
7
|
+
var children = _ref.children,
|
|
8
|
+
_ref$variant = _ref.variant,
|
|
9
|
+
variant = _ref$variant === void 0 ? RESIZE_HANDLE_VARIANTS.left : _ref$variant,
|
|
10
|
+
widthConfig = _ref.widthConfig,
|
|
11
|
+
onResize = _ref.onResize,
|
|
12
|
+
className = _ref.className;
|
|
13
|
+
var _useResizableContext = useResizableContext(),
|
|
14
|
+
currentWidth = _useResizableContext.currentWidth,
|
|
15
|
+
handleResizing = _useResizableContext.handleResizing,
|
|
16
|
+
isResizing = _useResizableContext.isResizing;
|
|
17
|
+
useEffect(function () {
|
|
18
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(currentWidth, isResizing);
|
|
19
|
+
}, [currentWidth, isResizing, onResize]);
|
|
20
|
+
return /*#__PURE__*/React__default.createElement(ResizableContainer, {
|
|
21
|
+
className: className || '',
|
|
22
|
+
style: {
|
|
23
|
+
width: currentWidth,
|
|
24
|
+
minWidth: widthConfig.min,
|
|
25
|
+
maxWidth: widthConfig.max
|
|
26
|
+
},
|
|
27
|
+
variant: variant,
|
|
28
|
+
onResize: handleResizing
|
|
29
|
+
}, children);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { ResizablePure };
|
|
33
|
+
//# sourceMappingURL=resizable_pure.js.map
|
|
@@ -0,0 +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;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TContainerWidthConfig, TResizerVariant, TResizingDirection } from '../resizable_container_types';
|
|
2
|
+
declare const useResizable: (name: string, variant: TResizerVariant, widthConfig: TContainerWidthConfig) => {
|
|
3
|
+
isResizing: boolean;
|
|
4
|
+
currentWidth: number;
|
|
5
|
+
handleResizing: (e: React.MouseEvent, direction: TResizingDirection) => void;
|
|
6
|
+
};
|
|
7
|
+
export default useResizable;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
2
|
+
import { slicedToArray as _slicedToArray } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { RESIZING_DIRECTIONS } from '../resizable_container_constants.js';
|
|
4
|
+
import { getInitialWidth, removeEventListeners, saveWidthToStorage, addEventListeners } from '../resizable_utils.js';
|
|
5
|
+
|
|
6
|
+
var useResizable = function useResizable(name, variant, widthConfig) {
|
|
7
|
+
var storageKey = "sve_resizable_".concat(name, "_width");
|
|
8
|
+
var _useState = useState(false),
|
|
9
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10
|
+
isResizing = _useState2[0],
|
|
11
|
+
setIsResizing = _useState2[1];
|
|
12
|
+
var isResizingRef = useRef(false);
|
|
13
|
+
var resizingDirection = useRef(RESIZING_DIRECTIONS.left);
|
|
14
|
+
var initialMouseX = useRef(0);
|
|
15
|
+
var initialWidth = useRef(0);
|
|
16
|
+
var _useState3 = useState(function () {
|
|
17
|
+
return getInitialWidth(storageKey, widthConfig);
|
|
18
|
+
}),
|
|
19
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
20
|
+
width = _useState4[0],
|
|
21
|
+
setWidth = _useState4[1];
|
|
22
|
+
var widthRef = useRef(width);
|
|
23
|
+
var handleMouseMove = useCallback(function (e) {
|
|
24
|
+
if (!isResizingRef.current) return;
|
|
25
|
+
var direction = variant === 'horizontal' ? resizingDirection.current : variant;
|
|
26
|
+
var newWidth = calculateNewWidth(e.clientX, direction, widthConfig, initialMouseX.current, initialWidth.current);
|
|
27
|
+
widthRef.current = newWidth;
|
|
28
|
+
setWidth(newWidth);
|
|
29
|
+
}, []);
|
|
30
|
+
var handleMouseUp = useCallback(function () {
|
|
31
|
+
if (!isResizingRef.current) return;
|
|
32
|
+
isResizingRef.current = false;
|
|
33
|
+
setIsResizing(false);
|
|
34
|
+
removeEventListeners({
|
|
35
|
+
mousemove: handleMouseMove,
|
|
36
|
+
mouseup: handleMouseUp
|
|
37
|
+
});
|
|
38
|
+
saveWidthToStorage(storageKey, widthRef.current);
|
|
39
|
+
}, []);
|
|
40
|
+
var handleResizing = useCallback(function (e, direction) {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
isResizingRef.current = true;
|
|
43
|
+
setIsResizing(true);
|
|
44
|
+
resizingDirection.current = direction;
|
|
45
|
+
initialMouseX.current = e.clientX;
|
|
46
|
+
initialWidth.current = widthRef.current;
|
|
47
|
+
addEventListeners({
|
|
48
|
+
mousemove: handleMouseMove,
|
|
49
|
+
mouseup: handleMouseUp
|
|
50
|
+
});
|
|
51
|
+
}, []);
|
|
52
|
+
var calculateNewWidth = function calculateNewWidth(clientX, direction, widthConfig, initialMouseX, initialWidth) {
|
|
53
|
+
var min = widthConfig.min,
|
|
54
|
+
max = widthConfig.max;
|
|
55
|
+
var mouseDelta = clientX - initialMouseX;
|
|
56
|
+
var newWidth = direction === RESIZING_DIRECTIONS.left ? initialWidth - mouseDelta : initialWidth + mouseDelta;
|
|
57
|
+
return Math.min(Math.max(newWidth, min), max);
|
|
58
|
+
};
|
|
59
|
+
useEffect(function () {
|
|
60
|
+
return function () {
|
|
61
|
+
removeEventListeners({
|
|
62
|
+
mousemove: handleMouseMove,
|
|
63
|
+
mouseup: handleMouseUp
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
}, []);
|
|
67
|
+
return {
|
|
68
|
+
isResizing: isResizing,
|
|
69
|
+
currentWidth: width,
|
|
70
|
+
handleResizing: handleResizing
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export default useResizable;
|
|
75
|
+
//# sourceMappingURL=use_resizable.js.map
|
|
@@ -0,0 +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;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { ResizableContext } from '../resizable_context.js';
|
|
3
|
+
|
|
4
|
+
function useResizableContext() {
|
|
5
|
+
var context = useContext(ResizableContext);
|
|
6
|
+
if (!context) {
|
|
7
|
+
throw new Error("Resizable component cannot be rendered outside the ResizableProvider component");
|
|
8
|
+
}
|
|
9
|
+
return context;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { useResizableContext };
|
|
13
|
+
//# sourceMappingURL=use_resizable_context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React__default, { useMemo } from 'react';
|
|
2
|
+
import useResizable from './hooks/use_resizable.js';
|
|
3
|
+
import { ResizableContext } from './resizable_context.js';
|
|
4
|
+
import { ResizablePure } from './components/resizable_pure.js';
|
|
5
|
+
|
|
6
|
+
var Resizable = function Resizable(_ref) {
|
|
7
|
+
var name = _ref.name,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
_ref$variant = _ref.variant,
|
|
10
|
+
variant = _ref$variant === void 0 ? 'left' : _ref$variant,
|
|
11
|
+
widthConfig = _ref.widthConfig,
|
|
12
|
+
onResize = _ref.onResize,
|
|
13
|
+
className = _ref.className;
|
|
14
|
+
var _useResizable = useResizable(name, variant, widthConfig),
|
|
15
|
+
isResizing = _useResizable.isResizing,
|
|
16
|
+
currentWidth = _useResizable.currentWidth,
|
|
17
|
+
handleResizing = _useResizable.handleResizing;
|
|
18
|
+
var contextVal = useMemo(function () {
|
|
19
|
+
return {
|
|
20
|
+
isResizing: isResizing,
|
|
21
|
+
currentWidth: currentWidth,
|
|
22
|
+
handleResizing: handleResizing
|
|
23
|
+
};
|
|
24
|
+
}, [isResizing, currentWidth, handleResizing]);
|
|
25
|
+
return /*#__PURE__*/React__default.createElement(ResizableContext.Provider, {
|
|
26
|
+
value: contextVal
|
|
27
|
+
}, /*#__PURE__*/React__default.createElement(ResizablePure, {
|
|
28
|
+
className: className || '',
|
|
29
|
+
variant: variant,
|
|
30
|
+
widthConfig: widthConfig,
|
|
31
|
+
onResize: onResize
|
|
32
|
+
}, children));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { Resizable };
|
|
36
|
+
//# sourceMappingURL=resizable.js.map
|
|
@@ -0,0 +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;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const RESIZE_HANDLE_VARIANTS: {
|
|
2
|
+
readonly left: "left";
|
|
3
|
+
readonly right: "right";
|
|
4
|
+
readonly horizontal: "horizontal";
|
|
5
|
+
};
|
|
6
|
+
export declare const RESIZING_DIRECTIONS: {
|
|
7
|
+
readonly left: "left";
|
|
8
|
+
readonly right: "right";
|
|
9
|
+
};
|
|
10
|
+
export declare const HANDLE_HOVER_SPACE = 8;
|
|
11
|
+
export declare const RESIZABLE_CONTAINER_RESIZER_CLASS = "js__resizable-container-resizer";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var RESIZE_HANDLE_VARIANTS = {
|
|
2
|
+
left: 'left',
|
|
3
|
+
right: 'right',
|
|
4
|
+
horizontal: 'horizontal'
|
|
5
|
+
};
|
|
6
|
+
var RESIZING_DIRECTIONS = {
|
|
7
|
+
left: 'left',
|
|
8
|
+
right: 'right'
|
|
9
|
+
};
|
|
10
|
+
var HANDLE_HOVER_SPACE = 8;
|
|
11
|
+
var RESIZABLE_CONTAINER_RESIZER_CLASS = 'js__resizable-container-resizer';
|
|
12
|
+
|
|
13
|
+
export { HANDLE_HOVER_SPACE, RESIZABLE_CONTAINER_RESIZER_CLASS, RESIZE_HANDLE_VARIANTS, RESIZING_DIRECTIONS };
|
|
14
|
+
//# sourceMappingURL=resizable_container_constants.js.map
|
package/build/esm/packages/aurora/src/components/resizable/resizable_container_constants.js.map
ADDED
|
@@ -0,0 +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;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
var ResizableContext = /*#__PURE__*/createContext({
|
|
4
|
+
isResizing: false,
|
|
5
|
+
currentWidth: 0,
|
|
6
|
+
handleResizing: function handleResizing() {}
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export { ResizableContext };
|
|
10
|
+
//# sourceMappingURL=resizable_context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TContainerWidthConfig } from './resizable_container_types';
|
|
2
|
+
export declare const getInitialWidth: (name: string, widthConfig: TContainerWidthConfig) => number;
|
|
3
|
+
export declare const saveWidthToStorage: (name: string, width: number) => void;
|
|
4
|
+
export declare const addEventListeners: (events: Record<string, EventListener>) => void;
|
|
5
|
+
export declare const removeEventListeners: (events: Record<string, EventListener>) => void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { slicedToArray as _slicedToArray } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
|
|
3
|
+
var getInitialWidth = function getInitialWidth(name, widthConfig) {
|
|
4
|
+
if (typeof window === 'undefined' || typeof localStorage === 'undefined') return widthConfig.default;
|
|
5
|
+
var saved = localStorage.getItem(name);
|
|
6
|
+
return saved ? Number(saved) : widthConfig.default;
|
|
7
|
+
};
|
|
8
|
+
var saveWidthToStorage = function saveWidthToStorage(name, width) {
|
|
9
|
+
if (typeof window === 'undefined' || typeof localStorage === 'undefined') return;
|
|
10
|
+
localStorage.setItem(name, width.toString());
|
|
11
|
+
};
|
|
12
|
+
var addEventListeners = function addEventListeners(events) {
|
|
13
|
+
Object.entries(events).forEach(function (_ref) {
|
|
14
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
15
|
+
eventType = _ref2[0],
|
|
16
|
+
handler = _ref2[1];
|
|
17
|
+
document.addEventListener(eventType, handler);
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
var removeEventListeners = function removeEventListeners(events) {
|
|
21
|
+
Object.entries(events).forEach(function (_ref3) {
|
|
22
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
23
|
+
eventType = _ref4[0],
|
|
24
|
+
handler = _ref4[1];
|
|
25
|
+
document.removeEventListener(eventType, handler);
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { addEventListeners, getInitialWidth, removeEventListeners, saveWidthToStorage };
|
|
30
|
+
//# sourceMappingURL=resizable_utils.js.map
|
|
@@ -0,0 +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;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TSelectProps } from './select_types';
|
|
3
|
-
export declare const Select: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
export declare const Select: React.ForwardRefExoticComponent<TSelectProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -8,7 +8,7 @@ import { SelectTrigger } from './components/select_trigger.js';
|
|
|
8
8
|
import { useSelectValue } from './hooks/use_select_value.js';
|
|
9
9
|
|
|
10
10
|
var _excluded = ["children", "id", "value", "options", "disabled", "placeholder", "hasSearch", "searchPlaceholder", "hasClearValueButton", "innerAdditionalContent", "enableLocalSearch", "localSearchNotFoundContent", "errors", "onValueChange", "onScroll", "onSearch", "onClose", "hasError"];
|
|
11
|
-
var Select = function
|
|
11
|
+
var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
12
12
|
var _selectedOption$value;
|
|
13
13
|
var children = _ref.children,
|
|
14
14
|
id = _ref.id,
|
|
@@ -66,6 +66,7 @@ var Select = function Select(_ref) {
|
|
|
66
66
|
}, /*#__PURE__*/React__default.createElement(SelectTrigger, {
|
|
67
67
|
id: id,
|
|
68
68
|
hasError: hasError || !!(errors !== null && errors !== void 0 && errors.length),
|
|
69
|
+
ref: ref,
|
|
69
70
|
clearValueButton: value && hasClearValueButton && onValueChange && (/*#__PURE__*/React__default.createElement("div", {
|
|
70
71
|
onPointerDown: function onPointerDown(e) {
|
|
71
72
|
return e.stopPropagation();
|
|
@@ -90,7 +91,7 @@ var Select = function Select(_ref) {
|
|
|
90
91
|
enableLocalSearch: enableLocalSearch,
|
|
91
92
|
localSearchNotFoundContent: localSearchNotFoundContent
|
|
92
93
|
}));
|
|
93
|
-
};
|
|
94
|
+
});
|
|
94
95
|
Select.displayName = Root.displayName;
|
|
95
96
|
|
|
96
97
|
export { Select };
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TValuesSyncerProps } from './values_syncer_types';
|
|
3
|
-
export declare const ValuesSyncer: <
|
|
3
|
+
export declare const ValuesSyncer: React.ForwardRefExoticComponent<TValuesSyncerProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|