@dreamcommerce/aurora 3.1.63-4 → 3.1.63-6
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/build/cjs/packages/aurora/src/components/input/input.js +5 -8
- package/build/cjs/packages/aurora/src/components/input/input.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/input/input_variants.js +2 -14
- package/build/cjs/packages/aurora/src/components/input/input_variants.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_content.js +2 -8
- package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_content.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/select/select.js +1 -1
- package/build/cjs/packages/aurora/src/components/select/select.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/slider/components/slider_input.js +0 -1
- package/build/cjs/packages/aurora/src/components/slider/components/slider_input.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/tooltip/components/tooltip_trigger.js +2 -8
- package/build/cjs/packages/aurora/src/components/tooltip/components/tooltip_trigger.js.map +1 -1
- package/build/esm/packages/aurora/src/components/input/input.js +5 -8
- package/build/esm/packages/aurora/src/components/input/input.js.map +1 -1
- package/build/esm/packages/aurora/src/components/input/input_types.d.ts +2 -2
- package/build/esm/packages/aurora/src/components/input/input_types.js +1 -1
- package/build/esm/packages/aurora/src/components/input/input_types.js.map +1 -1
- package/build/esm/packages/aurora/src/components/input/input_variants.d.ts +2 -4
- package/build/esm/packages/aurora/src/components/input/input_variants.js +2 -14
- package/build/esm/packages/aurora/src/components/input/input_variants.js.map +1 -1
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_content.js +2 -8
- package/build/esm/packages/aurora/src/components/modal/components/modal/modal_content.js.map +1 -1
- package/build/esm/packages/aurora/src/components/select/select.js +1 -1
- package/build/esm/packages/aurora/src/components/select/select.js.map +1 -1
- package/build/esm/packages/aurora/src/components/slider/components/slider_input.js +0 -1
- package/build/esm/packages/aurora/src/components/slider/components/slider_input.js.map +1 -1
- package/build/esm/packages/aurora/src/components/tooltip/components/tooltip_trigger.js +3 -9
- package/build/esm/packages/aurora/src/components/tooltip/components/tooltip_trigger.js.map +1 -1
- package/build/esm/packages/aurora/src/hooks/use_resize_observer.d.ts +1 -1
- package/package.json +3 -3
|
@@ -11,12 +11,13 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
|
-
var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "
|
|
14
|
+
var _excluded = ["preElement", "postElement", "errors", "className", "inputClassName", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "onChange", "onKeyDown", "onKeyUp"];
|
|
15
15
|
var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
16
16
|
var preElement = _ref.preElement,
|
|
17
17
|
postElement = _ref.postElement,
|
|
18
18
|
errors = _ref.errors,
|
|
19
19
|
className = _ref.className,
|
|
20
|
+
inputClassName = _ref.inputClassName,
|
|
20
21
|
id = _ref.id,
|
|
21
22
|
name = _ref.name,
|
|
22
23
|
value = _ref.value,
|
|
@@ -27,14 +28,12 @@ var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, re
|
|
|
27
28
|
readOnly = _ref.readOnly,
|
|
28
29
|
type = _ref.type,
|
|
29
30
|
hasCursorPointer = _ref.hasCursorPointer,
|
|
30
|
-
_ref$inputSize = _ref.inputSize,
|
|
31
|
-
inputSize = _ref$inputSize === void 0 ? 'md' : _ref$inputSize,
|
|
32
31
|
onChange = _ref.onChange,
|
|
33
32
|
onKeyDown = _ref.onKeyDown,
|
|
34
33
|
onKeyUp = _ref.onKeyUp,
|
|
35
34
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
36
35
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
37
|
-
className: cn.cn(input_variants.inputVariants
|
|
36
|
+
className: cn.cn(input_variants.inputVariants, {
|
|
38
37
|
'aurora-border-danger aurora-border-2': !!(errors !== null && errors !== void 0 && errors.length),
|
|
39
38
|
'aurora-bg-subtle aurora-text-subtle-light aurora-pointer-events-none aurora-cursor-not-allowed': disabled,
|
|
40
39
|
'aurora-appearance-none': type === 'number'
|
|
@@ -54,11 +53,9 @@ var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, re
|
|
|
54
53
|
onKeyDown: onKeyDown,
|
|
55
54
|
onKeyUp: onKeyUp,
|
|
56
55
|
type: type,
|
|
57
|
-
className: cn.cn(input_variants.inputElementVariants
|
|
58
|
-
inputSize: inputSize
|
|
59
|
-
}), {
|
|
56
|
+
className: cn.cn(input_variants.inputElementVariants, {
|
|
60
57
|
'aurora-cursor-pointer': hasCursorPointer
|
|
61
|
-
})
|
|
58
|
+
}, inputClassName)
|
|
62
59
|
})), postElement && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
63
60
|
className: "aurora-flex aurora-h-full aurora-right-0 aurora-pr-2 aurora-items-center"
|
|
64
61
|
}, postElement));
|
|
@@ -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;
|
|
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;"}
|
|
@@ -2,20 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
var inputVariants = index.cva('aurora-relative aurora-flex aurora-items-center aurora-rounded-6 focus aurora-border aurora-bg aurora-text-s aurora-placeholder-neutral-500 aurora-text aurora-border-strong hover:aurora-border-extraStrong active:aurora-border-active disabled:aurora-opacity-50 aurora-w-full');
|
|
8
|
-
var inputElementVariants = index.cva('aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
|
|
9
|
-
variants: {
|
|
10
|
-
inputSize: {
|
|
11
|
-
sm: 'aurora-h-6',
|
|
12
|
-
md: 'aurora-h-10'
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
inputSize: 'md'
|
|
17
|
-
}
|
|
18
|
-
});
|
|
5
|
+
var inputVariants = "aurora-relative aurora-flex aurora-items-center aurora-rounded-6 focus aurora-border aurora-bg aurora-text-s aurora-placeholder-neutral-500 aurora-text aurora-border-strong hover:aurora-border-extraStrong active:aurora-border-active disabled:aurora-opacity-50 aurora-w-full";
|
|
6
|
+
var inputElementVariants = "aurora-w-full aurora-h-10 focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6";
|
|
19
7
|
|
|
20
8
|
exports.inputElementVariants = inputElementVariants;
|
|
21
9
|
exports.inputVariants = inputVariants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var cn = require('../../../../utilities/cn.js');
|
|
7
|
-
var merge_refs = require('../../../../utilities/merge_refs.js');
|
|
8
7
|
var modal_constants = require('../../modal_constants.js');
|
|
9
8
|
var index = require('../../../../../../../external/@radix-ui/react-dialog/dist/index.mjs.js');
|
|
10
9
|
var modal_footer = require('./modal_footer.js');
|
|
@@ -17,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
16
|
|
|
18
17
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
18
|
|
|
20
|
-
var ModalContent = /*#__PURE__*/React__default['default'].forwardRef(function (_ref,
|
|
19
|
+
var ModalContent = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
21
20
|
var _header$hasCloseIcon;
|
|
22
21
|
var name = _ref.name,
|
|
23
22
|
_ref$width = _ref.width,
|
|
@@ -30,11 +29,6 @@ var ModalContent = /*#__PURE__*/React__default['default'].forwardRef(function (_
|
|
|
30
29
|
closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
|
|
31
30
|
_ref$closeOnEscButton = _ref.closeOnEscButton,
|
|
32
31
|
closeOnEscButton = _ref$closeOnEscButton === void 0 ? true : _ref$closeOnEscButton;
|
|
33
|
-
var latestRef = React__default['default'].useRef(forwardedRef);
|
|
34
|
-
latestRef.current = forwardedRef;
|
|
35
|
-
var stableRef = React__default['default'].useRef(function (node) {
|
|
36
|
-
merge_refs.assignRef(latestRef.current, node);
|
|
37
|
-
}).current;
|
|
38
32
|
var contentRef = React.useRef(null);
|
|
39
33
|
var _useScroll = use_scroll.useScroll(contentRef),
|
|
40
34
|
atBottom = _useScroll.atBottom,
|
|
@@ -54,7 +48,7 @@ var ModalContent = /*#__PURE__*/React__default['default'].forwardRef(function (_
|
|
|
54
48
|
className: cn.cn(modal_variants.modalVariants({
|
|
55
49
|
width: width
|
|
56
50
|
}), className),
|
|
57
|
-
ref:
|
|
51
|
+
ref: ref
|
|
58
52
|
}, header && (/*#__PURE__*/React__default['default'].createElement(modal_header.ModalHeader, {
|
|
59
53
|
hasCloseIcon: modal_utils.ModalUtils.isHeaderObject(header) ? (_header$hasCloseIcon = header.hasCloseIcon) !== null && _header$hasCloseIcon !== void 0 ? _header$hasCloseIcon : true : true
|
|
60
54
|
}, modal_utils.ModalUtils.isHeaderObject(header) ? header.content : header)), children && (/*#__PURE__*/React__default['default'].createElement("div", {
|
package/build/cjs/packages/aurora/src/components/modal/components/modal/modal_content.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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,oBAAoB,wEAA4E;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../utilities/cn.js');
|
|
8
|
-
var merge_refs = require('../../utilities/merge_refs.js');
|
|
9
8
|
var index = require('../../../../../external/@radix-ui/react-select/dist/index.mjs.js');
|
|
10
9
|
var close_circle_fill_icon = require('../../assets/icons/close_circle_fill_icon.js');
|
|
11
10
|
var select_content = require('./components/select_content.js');
|
|
12
11
|
var select_trigger = require('./components/select_trigger.js');
|
|
13
12
|
var use_select_value = require('./hooks/use_select_value.js');
|
|
13
|
+
var merge_refs = require('../../utilities/merge_refs.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;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,oBAAoB,kEAAsE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 +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;
|
|
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;"}
|
|
@@ -6,25 +6,19 @@ var React = require('react');
|
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var index = require('../../../../../../external/@radix-ui/react-tooltip/dist/index.mjs.js');
|
|
8
8
|
var question_icon = require('../../../assets/icons/question_icon.js');
|
|
9
|
-
var merge_refs = require('../../../utilities/merge_refs.js');
|
|
10
9
|
|
|
11
10
|
var _excluded = ["children", "as"];
|
|
12
|
-
var TooltipTrigger = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
11
|
+
var TooltipTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13
12
|
var children = _ref.children,
|
|
14
13
|
_ref$as = _ref.as,
|
|
15
14
|
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
16
15
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
var latestRef = React.useRef(forwardedRef);
|
|
18
|
-
latestRef.current = forwardedRef;
|
|
19
|
-
var stableRef = React.useRef(function (node) {
|
|
20
|
-
merge_refs.assignRef(latestRef.current, node);
|
|
21
|
-
}).current;
|
|
22
16
|
return /*#__PURE__*/React.createElement(index.Trigger, {
|
|
23
17
|
asChild: true
|
|
24
18
|
}, /*#__PURE__*/React.createElement(as, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
|
|
25
19
|
className: 'aurora-inline-block aurora-cursor-pointer'
|
|
26
20
|
}, props), {}, {
|
|
27
|
-
ref:
|
|
21
|
+
ref: ref
|
|
28
22
|
}), children ? children : /*#__PURE__*/React.createElement(question_icon.QuestionLineIcon, {
|
|
29
23
|
size: 16
|
|
30
24
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,sEAA0E;AAC9F;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,oBAAoB,sEAA0E;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -3,12 +3,13 @@ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _
|
|
|
3
3
|
import { cn } from '../../utilities/cn.js';
|
|
4
4
|
import { inputVariants, inputElementVariants } from './input_variants.js';
|
|
5
5
|
|
|
6
|
-
var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "
|
|
6
|
+
var _excluded = ["preElement", "postElement", "errors", "className", "inputClassName", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "onChange", "onKeyDown", "onKeyUp"];
|
|
7
7
|
var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
8
8
|
var preElement = _ref.preElement,
|
|
9
9
|
postElement = _ref.postElement,
|
|
10
10
|
errors = _ref.errors,
|
|
11
11
|
className = _ref.className,
|
|
12
|
+
inputClassName = _ref.inputClassName,
|
|
12
13
|
id = _ref.id,
|
|
13
14
|
name = _ref.name,
|
|
14
15
|
value = _ref.value,
|
|
@@ -19,14 +20,12 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
19
20
|
readOnly = _ref.readOnly,
|
|
20
21
|
type = _ref.type,
|
|
21
22
|
hasCursorPointer = _ref.hasCursorPointer,
|
|
22
|
-
_ref$inputSize = _ref.inputSize,
|
|
23
|
-
inputSize = _ref$inputSize === void 0 ? 'md' : _ref$inputSize,
|
|
24
23
|
onChange = _ref.onChange,
|
|
25
24
|
onKeyDown = _ref.onKeyDown,
|
|
26
25
|
onKeyUp = _ref.onKeyUp,
|
|
27
26
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
27
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29
|
-
className: cn(inputVariants
|
|
28
|
+
className: cn(inputVariants, {
|
|
30
29
|
'aurora-border-danger aurora-border-2': !!(errors !== null && errors !== void 0 && errors.length),
|
|
31
30
|
'aurora-bg-subtle aurora-text-subtle-light aurora-pointer-events-none aurora-cursor-not-allowed': disabled,
|
|
32
31
|
'aurora-appearance-none': type === 'number'
|
|
@@ -46,11 +45,9 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
46
45
|
onKeyDown: onKeyDown,
|
|
47
46
|
onKeyUp: onKeyUp,
|
|
48
47
|
type: type,
|
|
49
|
-
className: cn(inputElementVariants
|
|
50
|
-
inputSize: inputSize
|
|
51
|
-
}), {
|
|
48
|
+
className: cn(inputElementVariants, {
|
|
52
49
|
'aurora-cursor-pointer': hasCursorPointer
|
|
53
|
-
})
|
|
50
|
+
}, inputClassName)
|
|
54
51
|
})), postElement && /*#__PURE__*/React__default.createElement("div", {
|
|
55
52
|
className: "aurora-flex aurora-h-full aurora-right-0 aurora-pr-2 aurora-items-center"
|
|
56
53
|
}, postElement));
|
|
@@ -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;
|
|
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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface TInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
3
|
preElement?: React.ReactNode;
|
|
4
4
|
postElement?: React.ReactNode;
|
|
@@ -6,5 +6,5 @@ export interface TInputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
6
6
|
hasCursorPointer?: boolean;
|
|
7
7
|
colorName?: string;
|
|
8
8
|
primary?: boolean;
|
|
9
|
-
|
|
9
|
+
inputClassName?: string;
|
|
10
10
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import 'react';
|
|
2
2
|
//# sourceMappingURL=input_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input_types.js","sourceRoot":"","sources":["../../../../../../../src/components/input/input_types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"input_types.js","sourceRoot":"","sources":["../../../../../../../src/components/input/input_types.ts"],"names":[],"mappings":"AAAA,OAAkB,OAAO,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export declare const inputVariants
|
|
2
|
-
export declare const inputElementVariants:
|
|
3
|
-
inputSize?: "sm" | "md" | null | undefined;
|
|
4
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
1
|
+
export declare const inputVariants = "aurora-relative aurora-flex aurora-items-center aurora-rounded-6 focus aurora-border aurora-bg aurora-text-s aurora-placeholder-neutral-500 aurora-text aurora-border-strong hover:aurora-border-extraStrong active:aurora-border-active disabled:aurora-opacity-50 aurora-w-full";
|
|
2
|
+
export declare const inputElementVariants = "aurora-w-full aurora-h-10 focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6";
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var inputVariants = cva('aurora-relative aurora-flex aurora-items-center aurora-rounded-6 focus aurora-border aurora-bg aurora-text-s aurora-placeholder-neutral-500 aurora-text aurora-border-strong hover:aurora-border-extraStrong active:aurora-border-active disabled:aurora-opacity-50 aurora-w-full');
|
|
4
|
-
var inputElementVariants = cva('aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
|
|
5
|
-
variants: {
|
|
6
|
-
inputSize: {
|
|
7
|
-
sm: 'aurora-h-6',
|
|
8
|
-
md: 'aurora-h-10'
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
defaultVariants: {
|
|
12
|
-
inputSize: 'md'
|
|
13
|
-
}
|
|
14
|
-
});
|
|
1
|
+
var inputVariants = "aurora-relative aurora-flex aurora-items-center aurora-rounded-6 focus aurora-border aurora-bg aurora-text-s aurora-placeholder-neutral-500 aurora-text aurora-border-strong hover:aurora-border-extraStrong active:aurora-border-active disabled:aurora-opacity-50 aurora-w-full";
|
|
2
|
+
var inputElementVariants = "aurora-w-full aurora-h-10 focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6";
|
|
15
3
|
|
|
16
4
|
export { inputElementVariants, inputVariants };
|
|
17
5
|
//# sourceMappingURL=input_variants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React__default, { useRef } from 'react';
|
|
2
2
|
import { cn } from '../../../../utilities/cn.js';
|
|
3
|
-
import { assignRef } from '../../../../utilities/merge_refs.js';
|
|
4
3
|
import { MODAL_WIDTH_VARIANT } from '../../modal_constants.js';
|
|
5
4
|
import { Content } from '../../../../../../../external/@radix-ui/react-dialog/dist/index.mjs.js';
|
|
6
5
|
import { ModalFooter } from './modal_footer.js';
|
|
@@ -9,7 +8,7 @@ import { ModalUtils } from './modal_utils.js';
|
|
|
9
8
|
import { modalVariants } from '../../modal_variants.js';
|
|
10
9
|
import { useScroll } from '../../../../hooks/use_scroll.js';
|
|
11
10
|
|
|
12
|
-
var ModalContent = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
11
|
+
var ModalContent = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
13
12
|
var _header$hasCloseIcon;
|
|
14
13
|
var name = _ref.name,
|
|
15
14
|
_ref$width = _ref.width,
|
|
@@ -22,11 +21,6 @@ var ModalContent = /*#__PURE__*/React__default.forwardRef(function (_ref, forwar
|
|
|
22
21
|
closeOnOutsideClick = _ref$closeOnOutsideCl === void 0 ? true : _ref$closeOnOutsideCl,
|
|
23
22
|
_ref$closeOnEscButton = _ref.closeOnEscButton,
|
|
24
23
|
closeOnEscButton = _ref$closeOnEscButton === void 0 ? true : _ref$closeOnEscButton;
|
|
25
|
-
var latestRef = React__default.useRef(forwardedRef);
|
|
26
|
-
latestRef.current = forwardedRef;
|
|
27
|
-
var stableRef = React__default.useRef(function (node) {
|
|
28
|
-
assignRef(latestRef.current, node);
|
|
29
|
-
}).current;
|
|
30
24
|
var contentRef = useRef(null);
|
|
31
25
|
var _useScroll = useScroll(contentRef),
|
|
32
26
|
atBottom = _useScroll.atBottom,
|
|
@@ -46,7 +40,7 @@ var ModalContent = /*#__PURE__*/React__default.forwardRef(function (_ref, forwar
|
|
|
46
40
|
className: cn(modalVariants({
|
|
47
41
|
width: width
|
|
48
42
|
}), className),
|
|
49
|
-
ref:
|
|
43
|
+
ref: ref
|
|
50
44
|
}, header && (/*#__PURE__*/React__default.createElement(ModalHeader, {
|
|
51
45
|
hasCloseIcon: ModalUtils.isHeaderObject(header) ? (_header$hasCloseIcon = header.hasCloseIcon) !== null && _header$hasCloseIcon !== void 0 ? _header$hasCloseIcon : true : true
|
|
52
46
|
}, ModalUtils.isHeaderObject(header) ? header.content : header)), children && (/*#__PURE__*/React__default.createElement("div", {
|
package/build/esm/packages/aurora/src/components/modal/components/modal/modal_content.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA,wBAAwB,wEAA4E;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;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default, { useState, useRef } from 'react';
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { cn } from '../../utilities/cn.js';
|
|
4
|
-
import { mergeRefs } from '../../utilities/merge_refs.js';
|
|
5
4
|
import { Root as Root2 } from '../../../../../external/@radix-ui/react-select/dist/index.mjs.js';
|
|
6
5
|
import { CloseCircleFillIcon } from '../../assets/icons/close_circle_fill_icon.js';
|
|
7
6
|
import { SelectContent } from './components/select_content.js';
|
|
8
7
|
import { SelectTrigger } from './components/select_trigger.js';
|
|
9
8
|
import { useSelectValue } from './hooks/use_select_value.js';
|
|
9
|
+
import { mergeRefs } from '../../utilities/merge_refs.js';
|
|
10
10
|
|
|
11
11
|
var _excluded = ["children", "id", "value", "options", "disabled", "placeholder", "hasSearch", "searchPlaceholder", "hasClearValueButton", "innerAdditionalContent", "enableLocalSearch", "localSearchNotFoundContent", "errors", "onValueChange", "onScroll", "onSearch", "onClose", "hasError", "hasBorder", "hasMinDropdownWidth", "textSize", "height", "padding", "contentClassName", "className", "stopPropagation"];
|
|
12
12
|
var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA,8BAA8B,kEAAsE;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;"}
|
|
@@ -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;
|
|
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;"}
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import { forwardRef,
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Trigger } from '../../../../../../external/@radix-ui/react-tooltip/dist/index.mjs.js';
|
|
4
4
|
import { QuestionLineIcon } from '../../../assets/icons/question_icon.js';
|
|
5
|
-
import { assignRef } from '../../../utilities/merge_refs.js';
|
|
6
5
|
|
|
7
6
|
var _excluded = ["children", "as"];
|
|
8
|
-
var TooltipTrigger = /*#__PURE__*/forwardRef(function (_ref,
|
|
7
|
+
var TooltipTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
9
8
|
var children = _ref.children,
|
|
10
9
|
_ref$as = _ref.as,
|
|
11
10
|
as = _ref$as === void 0 ? 'span' : _ref$as,
|
|
12
11
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
-
var latestRef = useRef(forwardedRef);
|
|
14
|
-
latestRef.current = forwardedRef;
|
|
15
|
-
var stableRef = useRef(function (node) {
|
|
16
|
-
assignRef(latestRef.current, node);
|
|
17
|
-
}).current;
|
|
18
12
|
return /*#__PURE__*/createElement(Trigger, {
|
|
19
13
|
asChild: true
|
|
20
14
|
}, /*#__PURE__*/createElement(as, _objectSpread2(_objectSpread2({
|
|
21
15
|
className: 'aurora-inline-block aurora-cursor-pointer'
|
|
22
16
|
}, props), {}, {
|
|
23
|
-
ref:
|
|
17
|
+
ref: ref
|
|
24
18
|
}), children ? children : /*#__PURE__*/createElement(QuestionLineIcon, {
|
|
25
19
|
size: 16
|
|
26
20
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,wBAAwB,sEAA0E;AAClG;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,wBAAwB,sEAA0E;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -3,5 +3,5 @@ interface Size {
|
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
5
|
}
|
|
6
|
-
export declare const useResizeObserver: <T extends HTMLElement>(ref: import("react").RefObject<T
|
|
6
|
+
export declare const useResizeObserver: <T extends HTMLElement>(ref: import("react").RefObject<T>, callback?: ((size: Size) => void) | undefined) => Size | null;
|
|
7
7
|
export {};
|
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.1.63-
|
|
5
|
+
"version": "3.1.63-6",
|
|
6
6
|
"description": "aurora",
|
|
7
7
|
"author": "zefirek",
|
|
8
8
|
"license": "MIT",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"date-fns": "4.1.0",
|
|
23
23
|
"lodash": "4.17.15",
|
|
24
|
-
"react": "^18.0.0
|
|
24
|
+
"react": "^18.0.0",
|
|
25
25
|
"react-day-picker": "9.11.2",
|
|
26
|
-
"react-dom": "^18.0.0
|
|
26
|
+
"react-dom": "^18.0.0",
|
|
27
27
|
"react-scripts": "^5.0.0",
|
|
28
28
|
"react-transition-group": "4.3.0"
|
|
29
29
|
},
|