@dreamcommerce/aurora 3.0.0-147 → 3.0.0-149
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/controls/radio_group_control/radio_group_control.js +4 -13
- 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/radio_group/components/radio_group_item.js +2 -9
- package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/tooltip/components/tooltip_content.js +1 -1
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +6 -15
- 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/radio_group/components/radio_group_item.js +2 -9
- package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -1
- package/build/esm/packages/aurora/src/components/radio_group/radio_group_types.d.ts +0 -2
- package/build/esm/packages/aurora/src/components/tooltip/components/tooltip_content.js +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +0 -1
- package/build/index.css +1 -1
- package/package.json +2 -2
package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js
CHANGED
|
@@ -32,14 +32,6 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
32
32
|
required = _ref$required === void 0 ? false : _ref$required,
|
|
33
33
|
onValueChange = _ref.onValueChange,
|
|
34
34
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
var _useState = React.useState(defaultValue),
|
|
36
|
-
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
|
37
|
-
selectedValue = _useState2[0],
|
|
38
|
-
setSelectedValue = _useState2[1];
|
|
39
|
-
var handleValueChange = function handleValueChange(newValue) {
|
|
40
|
-
setSelectedValue(newValue);
|
|
41
|
-
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(newValue);
|
|
42
|
-
};
|
|
43
35
|
return /*#__PURE__*/React__default['default'].createElement(control.Control, {
|
|
44
36
|
classname: "aurora-flex-col"
|
|
45
37
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -53,11 +45,11 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
53
45
|
}, label$1)), helperText && /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, null, helperText)), /*#__PURE__*/React__default['default'].createElement(radio_group.RadioGroup, _rollupPluginBabelHelpers.objectSpread2({
|
|
54
46
|
id: id,
|
|
55
47
|
name: name,
|
|
56
|
-
value:
|
|
48
|
+
value: value,
|
|
57
49
|
defaultValue: defaultValue,
|
|
58
50
|
disabled: disabled,
|
|
59
51
|
required: required,
|
|
60
|
-
onValueChange:
|
|
52
|
+
onValueChange: onValueChange
|
|
61
53
|
}, rest), items.map(function (item) {
|
|
62
54
|
return /*#__PURE__*/React__default['default'].createElement(radio_group_item.RadioGroupItem, {
|
|
63
55
|
key: "radio-button-".concat(item.value),
|
|
@@ -67,9 +59,8 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
67
59
|
disabled: disabled,
|
|
68
60
|
label: item.label,
|
|
69
61
|
helperText: item.helperText,
|
|
70
|
-
tooltip: item.tooltip
|
|
71
|
-
|
|
72
|
-
}, item.children);
|
|
62
|
+
tooltip: item.tooltip
|
|
63
|
+
});
|
|
73
64
|
})), /*#__PURE__*/React__default['default'].createElement("div", null, errors && /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
74
65
|
errors: errors
|
|
75
66
|
})));
|
|
@@ -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;
|
|
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;"}
|
|
@@ -10,7 +10,7 @@ var helper_text = require('../../helper_text/helper_text.js');
|
|
|
10
10
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
11
11
|
var circle_icon = require('../../../assets/icons/circle_icon.js');
|
|
12
12
|
|
|
13
|
-
var _excluded = ["id", "value", "label", "tooltip", "helperText", "disabled", "required", "errors", "className"
|
|
13
|
+
var _excluded = ["id", "value", "label", "tooltip", "helperText", "disabled", "required", "errors", "className"];
|
|
14
14
|
var RadioGroupItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15
15
|
var id = _ref.id,
|
|
16
16
|
value = _ref.value,
|
|
@@ -21,13 +21,8 @@ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
21
21
|
required = _ref.required,
|
|
22
22
|
errors = _ref.errors,
|
|
23
23
|
className = _ref.className,
|
|
24
|
-
children = _ref.children,
|
|
25
|
-
selectedValue = _ref.selectedValue,
|
|
26
24
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
27
|
-
var isSelected = selectedValue === value;
|
|
28
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
-
className: "aurora-flex aurora-flex-col aurora-gap-2"
|
|
30
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
31
26
|
className: "aurora-flex aurora-items-center aurora-gap-2"
|
|
32
27
|
}, /*#__PURE__*/React.createElement(RadioGroupPrimitive.Item, _rollupPluginBabelHelpers.objectSpread2({
|
|
33
28
|
id: id,
|
|
@@ -51,9 +46,7 @@ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
51
46
|
tooltip: tooltip,
|
|
52
47
|
required: required,
|
|
53
48
|
className: "aurora-text"
|
|
54
|
-
}, label$1)), helperText && /*#__PURE__*/React.createElement(helper_text.HelperText, null, helperText)))
|
|
55
|
-
className: "aurora-ml-6 aurora-mt-2"
|
|
56
|
-
}, children));
|
|
49
|
+
}, label$1)), helperText && /*#__PURE__*/React.createElement(helper_text.HelperText, null, helperText)));
|
|
57
50
|
});
|
|
58
51
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
59
52
|
|
package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.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;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;"}
|
|
@@ -20,7 +20,7 @@ var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
20
20
|
return /*#__PURE__*/React.createElement(TooltipPrimitive.Portal, null, /*#__PURE__*/React.createElement(TooltipPrimitive.Content, _rollupPluginBabelHelpers.objectSpread2({
|
|
21
21
|
ref: ref,
|
|
22
22
|
sideOffset: sideOffset,
|
|
23
|
-
className: cn.cn('aurora-z-
|
|
23
|
+
className: cn.cn('aurora-z-[1000] aurora-shadow aurora-overflow-hidden aurora-border aurora-rounded-8 aurora-rounded-md aurora-px-3 aurora-py-2 aurora-text-xs aurora-animate-in aurora-fade-in-0 data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 data-[side=bottom]:aurora-slide-in-from-top-2 data-[side=left]:aurora-slide-in-from-right-2 data-[side=right]:aurora-slide-in-from-left-2 data-[side=top]:aurora-slide-in-from-bottom-2', tooltip_content_variants.tooltipContentVariants({
|
|
24
24
|
variant: variant
|
|
25
25
|
}), className)
|
|
26
26
|
}, props)));
|
package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { objectWithoutProperties as _objectWithoutProperties,
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Label } from '../../label/label.js';
|
|
4
4
|
import { HelperText } from '../../helper_text/helper_text.js';
|
|
5
5
|
import { ErrorList } from '../../error_list/error_list.js';
|
|
@@ -24,14 +24,6 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
24
24
|
required = _ref$required === void 0 ? false : _ref$required,
|
|
25
25
|
onValueChange = _ref.onValueChange,
|
|
26
26
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
-
var _useState = useState(defaultValue),
|
|
28
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
-
selectedValue = _useState2[0],
|
|
30
|
-
setSelectedValue = _useState2[1];
|
|
31
|
-
var handleValueChange = function handleValueChange(newValue) {
|
|
32
|
-
setSelectedValue(newValue);
|
|
33
|
-
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(newValue);
|
|
34
|
-
};
|
|
35
27
|
return /*#__PURE__*/React.createElement(Control, {
|
|
36
28
|
classname: "aurora-flex-col"
|
|
37
29
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -45,11 +37,11 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
45
37
|
}, label)), helperText && /*#__PURE__*/React.createElement(HelperText, null, helperText)), /*#__PURE__*/React.createElement(RadioGroup, _objectSpread2({
|
|
46
38
|
id: id,
|
|
47
39
|
name: name,
|
|
48
|
-
value:
|
|
40
|
+
value: value,
|
|
49
41
|
defaultValue: defaultValue,
|
|
50
42
|
disabled: disabled,
|
|
51
43
|
required: required,
|
|
52
|
-
onValueChange:
|
|
44
|
+
onValueChange: onValueChange
|
|
53
45
|
}, rest), items.map(function (item) {
|
|
54
46
|
return /*#__PURE__*/React.createElement(RadioGroupItem, {
|
|
55
47
|
key: "radio-button-".concat(item.value),
|
|
@@ -59,9 +51,8 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
|
59
51
|
disabled: disabled,
|
|
60
52
|
label: item.label,
|
|
61
53
|
helperText: item.helperText,
|
|
62
|
-
tooltip: item.tooltip
|
|
63
|
-
|
|
64
|
-
}, item.children);
|
|
54
|
+
tooltip: item.tooltip
|
|
55
|
+
});
|
|
65
56
|
})), /*#__PURE__*/React.createElement("div", null, errors && /*#__PURE__*/React.createElement(ErrorList, {
|
|
66
57
|
errors: errors
|
|
67
58
|
})));
|
|
@@ -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;
|
|
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;"}
|
|
@@ -6,7 +6,7 @@ import { HelperText } from '../../helper_text/helper_text.js';
|
|
|
6
6
|
import { Item, Indicator } from '@radix-ui/react-radio-group';
|
|
7
7
|
import { CircleFillIcon } from '../../../assets/icons/circle_icon.js';
|
|
8
8
|
|
|
9
|
-
var _excluded = ["id", "value", "label", "tooltip", "helperText", "disabled", "required", "errors", "className"
|
|
9
|
+
var _excluded = ["id", "value", "label", "tooltip", "helperText", "disabled", "required", "errors", "className"];
|
|
10
10
|
var RadioGroupItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
11
|
var id = _ref.id,
|
|
12
12
|
value = _ref.value,
|
|
@@ -17,13 +17,8 @@ var RadioGroupItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17
17
|
required = _ref.required,
|
|
18
18
|
errors = _ref.errors,
|
|
19
19
|
className = _ref.className,
|
|
20
|
-
children = _ref.children,
|
|
21
|
-
selectedValue = _ref.selectedValue,
|
|
22
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
-
var isSelected = selectedValue === value;
|
|
24
21
|
return /*#__PURE__*/createElement("div", {
|
|
25
|
-
className: "aurora-flex aurora-flex-col aurora-gap-2"
|
|
26
|
-
}, /*#__PURE__*/createElement("div", {
|
|
27
22
|
className: "aurora-flex aurora-items-center aurora-gap-2"
|
|
28
23
|
}, /*#__PURE__*/createElement(Item, _objectSpread2({
|
|
29
24
|
id: id,
|
|
@@ -47,9 +42,7 @@ var RadioGroupItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
47
42
|
tooltip: tooltip,
|
|
48
43
|
required: required,
|
|
49
44
|
className: "aurora-text"
|
|
50
|
-
}, label)), helperText && /*#__PURE__*/createElement(HelperText, null, helperText)))
|
|
51
|
-
className: "aurora-ml-6 aurora-mt-2"
|
|
52
|
-
}, children));
|
|
45
|
+
}, label)), helperText && /*#__PURE__*/createElement(HelperText, null, helperText)));
|
|
53
46
|
});
|
|
54
47
|
RadioGroupItem.displayName = Item.displayName;
|
|
55
48
|
|
package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.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;
|
|
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;"}
|
|
@@ -7,7 +7,5 @@ export interface TRadioGroupItemProps extends React.ComponentPropsWithoutRef<typ
|
|
|
7
7
|
label?: string | React.ReactNode;
|
|
8
8
|
tooltip?: string | React.ReactNode;
|
|
9
9
|
helperText?: string | React.ReactNode;
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
selectedValue?: string;
|
|
12
10
|
errors?: boolean;
|
|
13
11
|
}
|
|
@@ -16,7 +16,7 @@ var TooltipContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16
16
|
return /*#__PURE__*/createElement(Portal, null, /*#__PURE__*/createElement(Content, _objectSpread2({
|
|
17
17
|
ref: ref,
|
|
18
18
|
sideOffset: sideOffset,
|
|
19
|
-
className: cn('aurora-z-
|
|
19
|
+
className: cn('aurora-z-[1000] aurora-shadow aurora-overflow-hidden aurora-border aurora-rounded-8 aurora-rounded-md aurora-px-3 aurora-py-2 aurora-text-xs aurora-animate-in aurora-fade-in-0 data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 data-[side=bottom]:aurora-slide-in-from-top-2 data-[side=left]:aurora-slide-in-from-right-2 data-[side=right]:aurora-slide-in-from-left-2 data-[side=top]:aurora-slide-in-from-bottom-2', tooltipContentVariants({
|
|
20
20
|
variant: variant
|
|
21
21
|
}), className)
|
|
22
22
|
}, props)));
|
|
@@ -102,7 +102,6 @@ export { SelectControl } from './components/controls/select_control/select_contr
|
|
|
102
102
|
export { TSelectOption } from "./components/select/select_types";
|
|
103
103
|
export { RadioGroup } from "./components/radio_group/radio_group";
|
|
104
104
|
export { RadioGroupControl } from './components/controls/radio_group_control/radio_group_control';
|
|
105
|
-
export type { TRadioGroupControlProps } from './components/controls/radio_group_control/radio_group_control_types';
|
|
106
105
|
export { MultiSelect } from "./components/multiselect/multiselect";
|
|
107
106
|
export { MultiSelectControl } from './components/controls/multiselect_control/multiselect_control';
|
|
108
107
|
export { TextArea } from "./components/text_area/text_area";
|