@dreamcommerce/aurora 3.0.0-66 → 3.0.0-67
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/external/@radix-ui/react-radio-group/dist/index.mjs.js +4 -0
- package/build/cjs/external/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -1
- package/build/cjs/packages/aurora/src/assets/icons/circle_icon.js +10 -0
- package/build/cjs/packages/aurora/src/assets/icons/circle_icon.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js +59 -0
- package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +71 -0
- package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js +63 -0
- package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.js +53 -0
- package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -0
- package/build/cjs/packages/aurora/src/index.js +6 -0
- package/build/cjs/packages/aurora/src/index.js.map +1 -1
- package/build/esm/external/@radix-ui/react-radio-group/dist/index.mjs.js +3 -1
- package/build/esm/external/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -1
- package/build/esm/packages/aurora/src/assets/icons/circle_icon.js +5 -2
- package/build/esm/packages/aurora/src/assets/icons/circle_icon.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js +51 -15
- package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +63 -17
- 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.js +54 -14
- package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js.map +1 -1
- package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js +48 -20
- package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -1
- package/build/esm/packages/aurora/src/index.d.ts +3 -0
- package/build/esm/packages/aurora/src/index.js +3 -0
- package/build/esm/packages/aurora/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -275,7 +275,11 @@ var RadioGroupIndicator = /*#__PURE__*/React.forwardRef(function (props, forward
|
|
|
275
275
|
});
|
|
276
276
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
277
277
|
var Root2 = RadioGroup;
|
|
278
|
+
var Item2 = RadioGroupItem;
|
|
279
|
+
var Indicator = RadioGroupIndicator;
|
|
278
280
|
|
|
281
|
+
exports.Indicator = Indicator;
|
|
282
|
+
exports.Item = Item2;
|
|
279
283
|
exports.RadioGroup = RadioGroup;
|
|
280
284
|
exports.RadioGroupIndicator = RadioGroupIndicator;
|
|
281
285
|
exports.RadioGroupItem = RadioGroupItem;
|
|
@@ -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,sBAAsB,mDAAuD;AAC7E,sBAAsB,4DAAgE;AACtF,sBAAsB,yDAA6D;AACnF,sBAAsB,4DAAgE;AACtF,sBAAsB,wDAA4D;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,sBAAsB,mDAAuD;AAC7E,sBAAsB,4DAAgE;AACtF,sBAAsB,yDAA6D;AACnF,sBAAsB,4DAAgE;AACtF,sBAAsB,wDAA4D;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var label = require('../../label/label.js');
|
|
8
|
+
var helper_text = require('../../helper_text/helper_text.js');
|
|
9
|
+
var error_list = require('../../error_list/error_list.js');
|
|
10
|
+
var control = require('../../control/control.js');
|
|
11
|
+
var checkbox = require('../../checkbox/checkbox.js');
|
|
12
|
+
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
+
|
|
17
|
+
var _excluded = ["id", "name", "label", "value", "tooltip", "helperText", "errors", "checked", "disabled", "required", "onCheckedChange"];
|
|
18
|
+
var CheckboxControl = function CheckboxControl(_ref) {
|
|
19
|
+
var id = _ref.id,
|
|
20
|
+
name = _ref.name,
|
|
21
|
+
label$1 = _ref.label,
|
|
22
|
+
value = _ref.value,
|
|
23
|
+
tooltip = _ref.tooltip,
|
|
24
|
+
helperText = _ref.helperText,
|
|
25
|
+
errors = _ref.errors,
|
|
26
|
+
_ref$checked = _ref.checked,
|
|
27
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
28
|
+
_ref$disabled = _ref.disabled,
|
|
29
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
30
|
+
_ref$required = _ref.required,
|
|
31
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
32
|
+
onCheckedChange = _ref.onCheckedChange,
|
|
33
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
return /*#__PURE__*/React__default['default'].createElement(control.Control, null, /*#__PURE__*/React__default['default'].createElement(checkbox.Checkbox, _rollupPluginBabelHelpers.objectSpread2({
|
|
35
|
+
id: id,
|
|
36
|
+
name: name,
|
|
37
|
+
value: value,
|
|
38
|
+
checked: checked,
|
|
39
|
+
onCheckedChange: onCheckedChange,
|
|
40
|
+
required: required,
|
|
41
|
+
disabled: disabled,
|
|
42
|
+
errors: errors
|
|
43
|
+
}, rest)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
44
|
+
className: "aurora-ml-2 aurora-flex aurora-flex-col aurora-gap-1"
|
|
45
|
+
}, label$1 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
46
|
+
className: "aurora-mb-1"
|
|
47
|
+
}, /*#__PURE__*/React__default['default'].createElement(label.Label, {
|
|
48
|
+
htmlFor: id,
|
|
49
|
+
required: required,
|
|
50
|
+
disabled: disabled,
|
|
51
|
+
tooltip: tooltip,
|
|
52
|
+
className: "aurora-text"
|
|
53
|
+
}, label$1))), helperText && /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, null, helperText), errors && /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
54
|
+
errors: errors
|
|
55
|
+
})));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports.CheckboxControl = CheckboxControl;
|
|
59
|
+
//# sourceMappingURL=checkbox_control.js.map
|
package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var label = require('../../label/label.js');
|
|
8
|
+
var helper_text = require('../../helper_text/helper_text.js');
|
|
9
|
+
var error_list = require('../../error_list/error_list.js');
|
|
10
|
+
var control = require('../../control/control.js');
|
|
11
|
+
var radio_group = require('../../radio_group/radio_group.js');
|
|
12
|
+
var radio_group_item = require('../../radio_group/components/radio_group_item.js');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
+
|
|
16
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
|
+
|
|
18
|
+
var _excluded = ["id", "name", "items", "label", "value", "defaultValue", "tooltip", "helperText", "errors", "disabled", "required", "onValueChange"];
|
|
19
|
+
var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
20
|
+
var id = _ref.id,
|
|
21
|
+
name = _ref.name,
|
|
22
|
+
items = _ref.items,
|
|
23
|
+
label$1 = _ref.label,
|
|
24
|
+
value = _ref.value,
|
|
25
|
+
defaultValue = _ref.defaultValue,
|
|
26
|
+
tooltip = _ref.tooltip,
|
|
27
|
+
helperText = _ref.helperText,
|
|
28
|
+
errors = _ref.errors,
|
|
29
|
+
_ref$disabled = _ref.disabled,
|
|
30
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
31
|
+
_ref$required = _ref.required,
|
|
32
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
33
|
+
onValueChange = _ref.onValueChange,
|
|
34
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
35
|
+
return /*#__PURE__*/React__default['default'].createElement(control.Control, {
|
|
36
|
+
classname: "aurora-flex-col"
|
|
37
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38
|
+
className: "aurora-flex aurora-flex-col aurora-gap-2 aurora-mb-2"
|
|
39
|
+
}, label$1 && (/*#__PURE__*/React__default['default'].createElement(label.Label, {
|
|
40
|
+
htmlFor: id,
|
|
41
|
+
required: required,
|
|
42
|
+
disabled: disabled,
|
|
43
|
+
tooltip: tooltip,
|
|
44
|
+
className: "aurora-text"
|
|
45
|
+
}, label$1)), helperText && /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, null, helperText)), /*#__PURE__*/React__default['default'].createElement(radio_group.RadioGroup, _rollupPluginBabelHelpers.objectSpread2({
|
|
46
|
+
id: id,
|
|
47
|
+
name: name,
|
|
48
|
+
value: value,
|
|
49
|
+
defaultValue: defaultValue,
|
|
50
|
+
disabled: disabled,
|
|
51
|
+
required: required,
|
|
52
|
+
onValueChange: onValueChange
|
|
53
|
+
}, rest), items.map(function (item) {
|
|
54
|
+
return /*#__PURE__*/React__default['default'].createElement(radio_group_item.RadioGroupItem, {
|
|
55
|
+
key: "radio-button-".concat(value),
|
|
56
|
+
value: item.value,
|
|
57
|
+
id: item.id,
|
|
58
|
+
errors: !!errors,
|
|
59
|
+
required: required,
|
|
60
|
+
disabled: disabled,
|
|
61
|
+
label: item.label,
|
|
62
|
+
helperText: item.helperText,
|
|
63
|
+
tooltip: item.tooltip
|
|
64
|
+
});
|
|
65
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, errors && /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
66
|
+
errors: errors
|
|
67
|
+
})));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports.RadioGroupControl = RadioGroupControl;
|
|
71
|
+
//# sourceMappingURL=radio_group_control.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;"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var label = require('../../label/label.js');
|
|
8
|
+
var helper_text = require('../../helper_text/helper_text.js');
|
|
9
|
+
var error_list = require('../../error_list/error_list.js');
|
|
10
|
+
var control = require('../../control/control.js');
|
|
11
|
+
var select = require('../../select/select.js');
|
|
12
|
+
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
+
|
|
17
|
+
var _excluded = ["options", "id", "name", "label", "helperText", "tooltip", "placeholder", "searchPlaceholder", "hasSearch", "hasClearValueButton", "errors", "disabled", "defaultValue", "onValueChange", "innerAdditionalContent"];
|
|
18
|
+
var SelectControl = function SelectControl(_ref) {
|
|
19
|
+
var options = _ref.options,
|
|
20
|
+
id = _ref.id,
|
|
21
|
+
name = _ref.name,
|
|
22
|
+
label$1 = _ref.label,
|
|
23
|
+
helperText = _ref.helperText,
|
|
24
|
+
tooltip = _ref.tooltip,
|
|
25
|
+
placeholder = _ref.placeholder,
|
|
26
|
+
searchPlaceholder = _ref.searchPlaceholder,
|
|
27
|
+
hasSearch = _ref.hasSearch,
|
|
28
|
+
hasClearValueButton = _ref.hasClearValueButton,
|
|
29
|
+
errors = _ref.errors,
|
|
30
|
+
disabled = _ref.disabled,
|
|
31
|
+
defaultValue = _ref.defaultValue,
|
|
32
|
+
onValueChange = _ref.onValueChange,
|
|
33
|
+
innerAdditionalContent = _ref.innerAdditionalContent,
|
|
34
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
35
|
+
return /*#__PURE__*/React__default['default'].createElement(control.Control, {
|
|
36
|
+
classname: "aurora-flex-col"
|
|
37
|
+
}, label$1 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38
|
+
className: "aurora-mb-1"
|
|
39
|
+
}, /*#__PURE__*/React__default['default'].createElement(label.Label, {
|
|
40
|
+
htmlFor: id,
|
|
41
|
+
tooltip: tooltip,
|
|
42
|
+
className: "aurora-text"
|
|
43
|
+
}, label$1))), /*#__PURE__*/React__default['default'].createElement(select.Select, _rollupPluginBabelHelpers.objectSpread2({
|
|
44
|
+
id: id,
|
|
45
|
+
name: name,
|
|
46
|
+
defaultValue: defaultValue,
|
|
47
|
+
options: options,
|
|
48
|
+
disabled: disabled,
|
|
49
|
+
placeholder: placeholder,
|
|
50
|
+
hasSearch: hasSearch,
|
|
51
|
+
searchPlaceholder: searchPlaceholder,
|
|
52
|
+
innerAdditionalContent: innerAdditionalContent,
|
|
53
|
+
hasClearValueButton: hasClearValueButton,
|
|
54
|
+
hasError: !!errors,
|
|
55
|
+
onValueChange: onValueChange
|
|
56
|
+
}, props)), helperText && /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, null, helperText), errors && /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
|
|
57
|
+
errors: errors
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
SelectControl.displayName = 'SelectControl';
|
|
61
|
+
|
|
62
|
+
exports.SelectControl = SelectControl;
|
|
63
|
+
//# sourceMappingURL=select_control.js.map
|
package/build/cjs/packages/aurora/src/components/controls/select_control/select_control.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;AACA;AACA;AACA;AACA;AACA;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,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
|
+
var cn = require('../../../utilities/cn.js');
|
|
8
|
+
var label = require('../../label/label.js');
|
|
9
|
+
var helper_text = require('../../helper_text/helper_text.js');
|
|
10
|
+
var index = require('../../../../../../external/@radix-ui/react-radio-group/dist/index.mjs.js');
|
|
11
|
+
var circle_icon = require('../../../assets/icons/circle_icon.js');
|
|
12
|
+
|
|
13
|
+
var _excluded = ["id", "value", "label", "tooltip", "helperText", "disabled", "required", "errors", "className"];
|
|
14
|
+
var RadioGroupItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15
|
+
var id = _ref.id,
|
|
16
|
+
value = _ref.value,
|
|
17
|
+
label$1 = _ref.label,
|
|
18
|
+
tooltip = _ref.tooltip,
|
|
19
|
+
helperText = _ref.helperText,
|
|
20
|
+
disabled = _ref.disabled,
|
|
21
|
+
required = _ref.required,
|
|
22
|
+
errors = _ref.errors,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: "aurora-flex aurora-gap-2"
|
|
27
|
+
}, /*#__PURE__*/React.createElement(index.Item, _rollupPluginBabelHelpers.objectSpread2({
|
|
28
|
+
id: id,
|
|
29
|
+
ref: ref,
|
|
30
|
+
value: value,
|
|
31
|
+
disabled: disabled,
|
|
32
|
+
required: required,
|
|
33
|
+
className: cn.cn('aurora-h-5 aurora-w-5 aurora-rounded-full aurora-border focus data-[state=checked]:aurora-bg-primary', {
|
|
34
|
+
'!aurora-bg-active aurora-cursor-not-allowed': disabled,
|
|
35
|
+
'!aurora-bg-neutral-0 aurora-border-danger aurora-border-2': errors
|
|
36
|
+
}, className)
|
|
37
|
+
}, props), /*#__PURE__*/React.createElement(index.Indicator, {
|
|
38
|
+
className: "aurora-flex aurora-items-center aurora-justify-center"
|
|
39
|
+
}, /*#__PURE__*/React.createElement(circle_icon.CircleFillIcon, {
|
|
40
|
+
className: "aurora-h-2.5 aurora-w-2.5 aurora-fill-inverse"
|
|
41
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: "aurora-flex aurora-flex-col aurora-gap-1"
|
|
43
|
+
}, label$1 && (/*#__PURE__*/React.createElement(label.Label, {
|
|
44
|
+
htmlFor: id,
|
|
45
|
+
disabled: disabled,
|
|
46
|
+
tooltip: tooltip,
|
|
47
|
+
className: "aurora-text"
|
|
48
|
+
}, label$1)), helperText && /*#__PURE__*/React.createElement(helper_text.HelperText, null, helperText)));
|
|
49
|
+
});
|
|
50
|
+
RadioGroupItem.displayName = index.Item.displayName;
|
|
51
|
+
|
|
52
|
+
exports.RadioGroupItem = RadioGroupItem;
|
|
53
|
+
//# sourceMappingURL=radio_group_item.js.map
|
package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.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,oBAAoB,0EAA8E;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -91,8 +91,11 @@ var input_control = require('./components/controls/input_control/input_control.j
|
|
|
91
91
|
var color_picker = require('./components/color_picker/color_picker.js');
|
|
92
92
|
var color_picker_control = require('./components/controls/color_picker_control/color_picker_control.js');
|
|
93
93
|
var checkbox = require('./components/checkbox/checkbox.js');
|
|
94
|
+
var checkbox_control = require('./components/controls/checkbox_control/checkbox_control.js');
|
|
94
95
|
var select = require('./components/select/select.js');
|
|
96
|
+
var select_control = require('./components/controls/select_control/select_control.js');
|
|
95
97
|
var radio_group = require('./components/radio_group/radio_group.js');
|
|
98
|
+
var radio_group_control = require('./components/controls/radio_group_control/radio_group_control.js');
|
|
96
99
|
|
|
97
100
|
|
|
98
101
|
|
|
@@ -203,6 +206,9 @@ exports.InputControl = input_control.InputControl;
|
|
|
203
206
|
exports.ColorPickerWithContext = color_picker.ColorPickerWithContext;
|
|
204
207
|
exports.ColorPickerControl = color_picker_control.ColorPickerControl;
|
|
205
208
|
exports.Checkbox = checkbox.Checkbox;
|
|
209
|
+
exports.CheckboxControl = checkbox_control.CheckboxControl;
|
|
206
210
|
exports.Select = select.Select;
|
|
211
|
+
exports.SelectControl = select_control.SelectControl;
|
|
207
212
|
exports.RadioGroup = radio_group.RadioGroup;
|
|
213
|
+
exports.RadioGroupControl = radio_group_control.RadioGroupControl;
|
|
208
214
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -271,6 +271,8 @@ var RadioGroupIndicator = /*#__PURE__*/forwardRef(function (props, forwardedRef)
|
|
|
271
271
|
});
|
|
272
272
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
273
273
|
var Root2 = RadioGroup;
|
|
274
|
+
var Item2 = RadioGroupItem;
|
|
275
|
+
var Indicator = RadioGroupIndicator;
|
|
274
276
|
|
|
275
|
-
export { RadioGroup, RadioGroupIndicator, RadioGroupItem, Root2 as Root, createRadioGroupScope };
|
|
277
|
+
export { Indicator, Item2 as Item, RadioGroup, RadioGroupIndicator, RadioGroupItem, Root2 as Root, createRadioGroupScope };
|
|
276
278
|
//# sourceMappingURL=index.mjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,mDAAuD;AAC5F,gCAAgC,4DAAgE;AAChG,0BAA0B,yDAA6D;AACvF,wDAAwD,4DAAgE;AACxH,yBAAyB,wDAA4D;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qCAAqC,mDAAuD;AAC5F,gCAAgC,4DAAgE;AAChG,0BAA0B,yDAA6D;AACvF,wDAAwD,4DAAgE;AACxH,yBAAyB,wDAA4D;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js
CHANGED
|
@@ -1,15 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { HelperText } from '
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { Label } from '../../label/label.js';
|
|
4
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
5
|
+
import { ErrorList } from '../../error_list/error_list.js';
|
|
6
|
+
import { Control } from '../../control/control.js';
|
|
7
|
+
import { Checkbox } from '../../checkbox/checkbox.js';
|
|
8
|
+
|
|
9
|
+
var _excluded = ["id", "name", "label", "value", "tooltip", "helperText", "errors", "checked", "disabled", "required", "onCheckedChange"];
|
|
10
|
+
var CheckboxControl = function CheckboxControl(_ref) {
|
|
11
|
+
var id = _ref.id,
|
|
12
|
+
name = _ref.name,
|
|
13
|
+
label = _ref.label,
|
|
14
|
+
value = _ref.value,
|
|
15
|
+
tooltip = _ref.tooltip,
|
|
16
|
+
helperText = _ref.helperText,
|
|
17
|
+
errors = _ref.errors,
|
|
18
|
+
_ref$checked = _ref.checked,
|
|
19
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
20
|
+
_ref$disabled = _ref.disabled,
|
|
21
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
22
|
+
_ref$required = _ref.required,
|
|
23
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
24
|
+
onCheckedChange = _ref.onCheckedChange,
|
|
25
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
return /*#__PURE__*/React__default.createElement(Control, null, /*#__PURE__*/React__default.createElement(Checkbox, _objectSpread2({
|
|
27
|
+
id: id,
|
|
28
|
+
name: name,
|
|
29
|
+
value: value,
|
|
30
|
+
checked: checked,
|
|
31
|
+
onCheckedChange: onCheckedChange,
|
|
32
|
+
required: required,
|
|
33
|
+
disabled: disabled,
|
|
34
|
+
errors: errors
|
|
35
|
+
}, rest)), /*#__PURE__*/React__default.createElement("div", {
|
|
36
|
+
className: "aurora-ml-2 aurora-flex aurora-flex-col aurora-gap-1"
|
|
37
|
+
}, label && (/*#__PURE__*/React__default.createElement("div", {
|
|
38
|
+
className: "aurora-mb-1"
|
|
39
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
40
|
+
htmlFor: id,
|
|
41
|
+
required: required,
|
|
42
|
+
disabled: disabled,
|
|
43
|
+
tooltip: tooltip,
|
|
44
|
+
className: "aurora-text"
|
|
45
|
+
}, label))), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText), errors && /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
46
|
+
errors: errors
|
|
47
|
+
})));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { CheckboxControl };
|
|
51
|
+
//# sourceMappingURL=checkbox_control.js.map
|
package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
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;"}
|
package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js
CHANGED
|
@@ -1,17 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import '
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { Label } from '../../label/label.js';
|
|
4
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
5
|
+
import { ErrorList } from '../../error_list/error_list.js';
|
|
6
|
+
import { Control } from '../../control/control.js';
|
|
7
|
+
import { RadioGroup } from '../../radio_group/radio_group.js';
|
|
8
|
+
import { RadioGroupItem } from '../../radio_group/components/radio_group_item.js';
|
|
9
|
+
|
|
10
|
+
var _excluded = ["id", "name", "items", "label", "value", "defaultValue", "tooltip", "helperText", "errors", "disabled", "required", "onValueChange"];
|
|
11
|
+
var RadioGroupControl = function RadioGroupControl(_ref) {
|
|
12
|
+
var id = _ref.id,
|
|
13
|
+
name = _ref.name,
|
|
14
|
+
items = _ref.items,
|
|
15
|
+
label = _ref.label,
|
|
16
|
+
value = _ref.value,
|
|
17
|
+
defaultValue = _ref.defaultValue,
|
|
18
|
+
tooltip = _ref.tooltip,
|
|
19
|
+
helperText = _ref.helperText,
|
|
20
|
+
errors = _ref.errors,
|
|
21
|
+
_ref$disabled = _ref.disabled,
|
|
22
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
23
|
+
_ref$required = _ref.required,
|
|
24
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
25
|
+
onValueChange = _ref.onValueChange,
|
|
26
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
return /*#__PURE__*/React__default.createElement(Control, {
|
|
28
|
+
classname: "aurora-flex-col"
|
|
29
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
30
|
+
className: "aurora-flex aurora-flex-col aurora-gap-2 aurora-mb-2"
|
|
31
|
+
}, label && (/*#__PURE__*/React__default.createElement(Label, {
|
|
32
|
+
htmlFor: id,
|
|
33
|
+
required: required,
|
|
34
|
+
disabled: disabled,
|
|
35
|
+
tooltip: tooltip,
|
|
36
|
+
className: "aurora-text"
|
|
37
|
+
}, label)), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText)), /*#__PURE__*/React__default.createElement(RadioGroup, _objectSpread2({
|
|
38
|
+
id: id,
|
|
39
|
+
name: name,
|
|
40
|
+
value: value,
|
|
41
|
+
defaultValue: defaultValue,
|
|
42
|
+
disabled: disabled,
|
|
43
|
+
required: required,
|
|
44
|
+
onValueChange: onValueChange
|
|
45
|
+
}, rest), items.map(function (item) {
|
|
46
|
+
return /*#__PURE__*/React__default.createElement(RadioGroupItem, {
|
|
47
|
+
key: "radio-button-".concat(value),
|
|
48
|
+
value: item.value,
|
|
49
|
+
id: item.id,
|
|
50
|
+
errors: !!errors,
|
|
51
|
+
required: required,
|
|
52
|
+
disabled: disabled,
|
|
53
|
+
label: item.label,
|
|
54
|
+
helperText: item.helperText,
|
|
55
|
+
tooltip: item.tooltip
|
|
56
|
+
});
|
|
57
|
+
})), /*#__PURE__*/React__default.createElement("div", null, errors && /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
58
|
+
errors: errors
|
|
59
|
+
})));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { RadioGroupControl };
|
|
63
|
+
//# sourceMappingURL=radio_group_control.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
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;"}
|
|
@@ -1,15 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { Label } from '../../label/label.js';
|
|
4
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
5
|
+
import { ErrorList } from '../../error_list/error_list.js';
|
|
6
|
+
import { Control } from '../../control/control.js';
|
|
7
|
+
import { Select } from '../../select/select.js';
|
|
8
|
+
|
|
9
|
+
var _excluded = ["options", "id", "name", "label", "helperText", "tooltip", "placeholder", "searchPlaceholder", "hasSearch", "hasClearValueButton", "errors", "disabled", "defaultValue", "onValueChange", "innerAdditionalContent"];
|
|
10
|
+
var SelectControl = function SelectControl(_ref) {
|
|
11
|
+
var options = _ref.options,
|
|
12
|
+
id = _ref.id,
|
|
13
|
+
name = _ref.name,
|
|
14
|
+
label = _ref.label,
|
|
15
|
+
helperText = _ref.helperText,
|
|
16
|
+
tooltip = _ref.tooltip,
|
|
17
|
+
placeholder = _ref.placeholder,
|
|
18
|
+
searchPlaceholder = _ref.searchPlaceholder,
|
|
19
|
+
hasSearch = _ref.hasSearch,
|
|
20
|
+
hasClearValueButton = _ref.hasClearValueButton,
|
|
21
|
+
errors = _ref.errors,
|
|
22
|
+
disabled = _ref.disabled,
|
|
23
|
+
defaultValue = _ref.defaultValue,
|
|
24
|
+
onValueChange = _ref.onValueChange,
|
|
25
|
+
innerAdditionalContent = _ref.innerAdditionalContent,
|
|
26
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
return /*#__PURE__*/React__default.createElement(Control, {
|
|
28
|
+
classname: "aurora-flex-col"
|
|
29
|
+
}, label && (/*#__PURE__*/React__default.createElement("div", {
|
|
30
|
+
className: "aurora-mb-1"
|
|
31
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
32
|
+
htmlFor: id,
|
|
33
|
+
tooltip: tooltip,
|
|
34
|
+
className: "aurora-text"
|
|
35
|
+
}, label))), /*#__PURE__*/React__default.createElement(Select, _objectSpread2({
|
|
36
|
+
id: id,
|
|
37
|
+
name: name,
|
|
38
|
+
defaultValue: defaultValue,
|
|
39
|
+
options: options,
|
|
40
|
+
disabled: disabled,
|
|
41
|
+
placeholder: placeholder,
|
|
42
|
+
hasSearch: hasSearch,
|
|
43
|
+
searchPlaceholder: searchPlaceholder,
|
|
44
|
+
innerAdditionalContent: innerAdditionalContent,
|
|
45
|
+
hasClearValueButton: hasClearValueButton,
|
|
46
|
+
hasError: !!errors,
|
|
47
|
+
onValueChange: onValueChange
|
|
48
|
+
}, props)), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText), errors && /*#__PURE__*/React__default.createElement(ErrorList, {
|
|
49
|
+
errors: errors
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
14
52
|
SelectControl.displayName = 'SelectControl';
|
|
15
|
-
|
|
53
|
+
|
|
54
|
+
export { SelectControl };
|
|
55
|
+
//# sourceMappingURL=select_control.js.map
|
package/build/esm/packages/aurora/src/components/controls/select_control/select_control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
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;"}
|
|
@@ -1,21 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import '
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
|
+
import { cn } from '../../../utilities/cn.js';
|
|
4
|
+
import { Label } from '../../label/label.js';
|
|
5
|
+
import { HelperText } from '../../helper_text/helper_text.js';
|
|
6
|
+
import { Item as Item2, Indicator } from '../../../../../../external/@radix-ui/react-radio-group/dist/index.mjs.js';
|
|
7
|
+
import { CircleFillIcon } from '../../../assets/icons/circle_icon.js';
|
|
8
|
+
|
|
9
|
+
var _excluded = ["id", "value", "label", "tooltip", "helperText", "disabled", "required", "errors", "className"];
|
|
10
|
+
var RadioGroupItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
|
+
var id = _ref.id,
|
|
12
|
+
value = _ref.value,
|
|
13
|
+
label = _ref.label,
|
|
14
|
+
tooltip = _ref.tooltip,
|
|
15
|
+
helperText = _ref.helperText,
|
|
16
|
+
disabled = _ref.disabled,
|
|
17
|
+
required = _ref.required,
|
|
18
|
+
errors = _ref.errors,
|
|
19
|
+
className = _ref.className,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return /*#__PURE__*/createElement("div", {
|
|
22
|
+
className: "aurora-flex aurora-gap-2"
|
|
23
|
+
}, /*#__PURE__*/createElement(Item2, _objectSpread2({
|
|
24
|
+
id: id,
|
|
25
|
+
ref: ref,
|
|
26
|
+
value: value,
|
|
27
|
+
disabled: disabled,
|
|
28
|
+
required: required,
|
|
29
|
+
className: cn('aurora-h-5 aurora-w-5 aurora-rounded-full aurora-border focus data-[state=checked]:aurora-bg-primary', {
|
|
30
|
+
'!aurora-bg-active aurora-cursor-not-allowed': disabled,
|
|
31
|
+
'!aurora-bg-neutral-0 aurora-border-danger aurora-border-2': errors
|
|
32
|
+
}, className)
|
|
33
|
+
}, props), /*#__PURE__*/createElement(Indicator, {
|
|
34
|
+
className: "aurora-flex aurora-items-center aurora-justify-center"
|
|
35
|
+
}, /*#__PURE__*/createElement(CircleFillIcon, {
|
|
36
|
+
className: "aurora-h-2.5 aurora-w-2.5 aurora-fill-inverse"
|
|
37
|
+
}))), /*#__PURE__*/createElement("div", {
|
|
38
|
+
className: "aurora-flex aurora-flex-col aurora-gap-1"
|
|
39
|
+
}, label && (/*#__PURE__*/createElement(Label, {
|
|
40
|
+
htmlFor: id,
|
|
41
|
+
disabled: disabled,
|
|
42
|
+
tooltip: tooltip,
|
|
43
|
+
className: "aurora-text"
|
|
44
|
+
}, label)), helperText && /*#__PURE__*/createElement(HelperText, null, helperText)));
|
|
19
45
|
});
|
|
20
|
-
RadioGroupItem.displayName =
|
|
21
|
-
|
|
46
|
+
RadioGroupItem.displayName = Item2.displayName;
|
|
47
|
+
|
|
48
|
+
export { RadioGroupItem };
|
|
49
|
+
//# sourceMappingURL=radio_group_item.js.map
|
package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,yCAAyC,0EAA8E;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -90,5 +90,8 @@ export { InputControl } from './components/controls/input_control/input_control'
|
|
|
90
90
|
export { ColorPickerWithContext } from "./components/color_picker/color_picker";
|
|
91
91
|
export { ColorPickerControl } from './components/controls/color_picker_control/color_picker_control';
|
|
92
92
|
export { Checkbox } from "./components/checkbox/checkbox";
|
|
93
|
+
export { CheckboxControl } from './components/controls/checkbox_control/checkbox_control';
|
|
93
94
|
export { Select } from "./components/select/select";
|
|
95
|
+
export { SelectControl } from './components/controls/select_control/select_control';
|
|
94
96
|
export { RadioGroup } from "./components/radio_group/radio_group";
|
|
97
|
+
export { RadioGroupControl } from "./components/controls/radio_group_control/radio_group_control";
|
|
@@ -87,6 +87,9 @@ export { InputControl } from './components/controls/input_control/input_control.
|
|
|
87
87
|
export { ColorPickerWithContext } from './components/color_picker/color_picker.js';
|
|
88
88
|
export { ColorPickerControl } from './components/controls/color_picker_control/color_picker_control.js';
|
|
89
89
|
export { Checkbox } from './components/checkbox/checkbox.js';
|
|
90
|
+
export { CheckboxControl } from './components/controls/checkbox_control/checkbox_control.js';
|
|
90
91
|
export { Select } from './components/select/select.js';
|
|
92
|
+
export { SelectControl } from './components/controls/select_control/select_control.js';
|
|
91
93
|
export { RadioGroup } from './components/radio_group/radio_group.js';
|
|
94
|
+
export { RadioGroupControl } from './components/controls/radio_group_control/radio_group_control.js';
|
|
92
95
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;"}
|