@dreamcommerce/aurora 3.0.0-98 → 3.0.0-99

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.
Files changed (96) hide show
  1. package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js +4 -2
  2. package/build/cjs/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
  3. package/build/cjs/packages/aurora/src/components/color_picker/components/color_label_input.js +3 -1
  4. package/build/cjs/packages/aurora/src/components/color_picker/components/color_label_input.js.map +1 -1
  5. package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js +6 -3
  6. package/build/cjs/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
  7. package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js +3 -1
  8. package/build/cjs/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map +1 -1
  9. package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -2
  10. package/build/cjs/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
  11. package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +1 -3
  12. package/build/cjs/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
  13. package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +0 -1
  14. package/build/cjs/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
  15. package/build/cjs/packages/aurora/src/components/image_picker/use_image_picker.js +1 -1
  16. package/build/cjs/packages/aurora/src/components/label/label.js +1 -1
  17. package/build/cjs/packages/aurora/src/components/multiselect/components/multiselect_content.js +14 -30
  18. package/build/cjs/packages/aurora/src/components/multiselect/components/multiselect_content.js.map +1 -1
  19. package/build/cjs/packages/aurora/src/components/multiselect/components/multiselect_item.js +6 -3
  20. package/build/cjs/packages/aurora/src/components/multiselect/components/multiselect_item.js.map +1 -1
  21. package/build/cjs/packages/aurora/src/components/multiselect/components/multiselect_trigger.js +1 -1
  22. package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js +1 -4
  23. package/build/cjs/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
  24. package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.js +3 -2
  25. package/build/cjs/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -1
  26. package/build/cjs/packages/aurora/src/components/select/components/select_content.js +10 -5
  27. package/build/cjs/packages/aurora/src/components/select/components/select_content.js.map +1 -1
  28. package/build/cjs/packages/aurora/src/components/select/components/select_group_label.js +40 -0
  29. package/build/cjs/packages/aurora/src/components/select/components/select_item.js +5 -2
  30. package/build/cjs/packages/aurora/src/components/select/components/select_item.js.map +1 -1
  31. package/build/cjs/packages/aurora/src/components/select/select.js +7 -4
  32. package/build/cjs/packages/aurora/src/components/select/select.js.map +1 -1
  33. package/build/cjs/packages/aurora/src/components/tree/components/tree_node.js +2 -3
  34. package/build/cjs/packages/aurora/src/components/tree/components/tree_node.js.map +1 -1
  35. package/build/cjs/packages/aurora/src/i18n.js +1 -1
  36. package/build/cjs/packages/aurora/src/index.js +6 -0
  37. package/build/cjs/packages/aurora/src/index.js.map +1 -1
  38. package/build/esm/packages/aurora/src/components/color_picker/color_picker.d.ts +1 -1
  39. package/build/esm/packages/aurora/src/components/color_picker/color_picker.js +4 -2
  40. package/build/esm/packages/aurora/src/components/color_picker/color_picker.js.map +1 -1
  41. package/build/esm/packages/aurora/src/components/color_picker/color_picker_types.d.ts +2 -0
  42. package/build/esm/packages/aurora/src/components/color_picker/components/color_label_input.d.ts +1 -0
  43. package/build/esm/packages/aurora/src/components/color_picker/components/color_label_input.js +3 -1
  44. package/build/esm/packages/aurora/src/components/color_picker/components/color_label_input.js.map +1 -1
  45. package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js +6 -3
  46. package/build/esm/packages/aurora/src/components/color_picker/components/pure_color_picker.js.map +1 -1
  47. package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js +3 -1
  48. package/build/esm/packages/aurora/src/components/controls/checkbox_control/checkbox_control.js.map +1 -1
  49. package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js +4 -2
  50. package/build/esm/packages/aurora/src/components/controls/color_picker_control/color_picker_control.js.map +1 -1
  51. package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js +1 -3
  52. package/build/esm/packages/aurora/src/components/controls/multiselect_control/multiselect_control.js.map +1 -1
  53. package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js +0 -1
  54. package/build/esm/packages/aurora/src/components/controls/radio_group_control/radio_group_control.js.map +1 -1
  55. package/build/esm/packages/aurora/src/components/controls/select_control/select_control_types.d.ts +2 -8
  56. package/build/esm/packages/aurora/src/components/controls/select_control/select_control_types.js.map +1 -1
  57. package/build/esm/packages/aurora/src/components/image_picker/use_image_picker.js +1 -1
  58. package/build/esm/packages/aurora/src/components/label/label.js +1 -1
  59. package/build/esm/packages/aurora/src/components/multiselect/components/multiselect_content.js +14 -30
  60. package/build/esm/packages/aurora/src/components/multiselect/components/multiselect_content.js.map +1 -1
  61. package/build/esm/packages/aurora/src/components/multiselect/components/multiselect_item.js +6 -3
  62. package/build/esm/packages/aurora/src/components/multiselect/components/multiselect_item.js.map +1 -1
  63. package/build/esm/packages/aurora/src/components/multiselect/components/multiselect_trigger.js +1 -1
  64. package/build/esm/packages/aurora/src/components/multiselect/multiselect.d.ts +1 -1
  65. package/build/esm/packages/aurora/src/components/multiselect/multiselect.js +1 -4
  66. package/build/esm/packages/aurora/src/components/multiselect/multiselect.js.map +1 -1
  67. package/build/esm/packages/aurora/src/components/multiselect/multiselect_types.d.ts +9 -14
  68. package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js +3 -2
  69. package/build/esm/packages/aurora/src/components/radio_group/components/radio_group_item.js.map +1 -1
  70. package/build/esm/packages/aurora/src/components/select/components/select_content.d.ts +1 -1
  71. package/build/esm/packages/aurora/src/components/select/components/select_content.js +10 -5
  72. package/build/esm/packages/aurora/src/components/select/components/select_content.js.map +1 -1
  73. package/build/esm/packages/aurora/src/components/select/components/select_group_label.d.ts +6 -0
  74. package/build/esm/packages/aurora/src/components/select/components/select_group_label.js +32 -0
  75. package/build/esm/packages/aurora/src/components/select/components/select_item.d.ts +2 -2
  76. package/build/esm/packages/aurora/src/components/select/components/select_item.js +5 -2
  77. package/build/esm/packages/aurora/src/components/select/components/select_item.js.map +1 -1
  78. package/build/esm/packages/aurora/src/components/select/select.d.ts +1 -1
  79. package/build/esm/packages/aurora/src/components/select/select.js +7 -4
  80. package/build/esm/packages/aurora/src/components/select/select.js.map +1 -1
  81. package/build/esm/packages/aurora/src/components/select/select_types.d.ts +14 -6
  82. package/build/esm/packages/aurora/src/components/tree/components/tree_node.js +2 -3
  83. package/build/esm/packages/aurora/src/components/tree/components/tree_node.js.map +1 -1
  84. package/build/esm/packages/aurora/src/i18n.d.ts +1 -2
  85. package/build/esm/packages/aurora/src/i18n.js +1 -1
  86. package/build/esm/packages/aurora/src/index.d.ts +4 -2
  87. package/build/esm/packages/aurora/src/index.js +3 -0
  88. package/build/esm/packages/aurora/src/index.js.map +1 -1
  89. package/build/esm/packages/aurora/src/utilities/translation/with_translation.js +1 -1
  90. package/build/esm/packages/aurora/src/utilities/translation/with_translation.js.map +1 -1
  91. package/package.json +1 -1
  92. package/build/cjs/packages/aurora/src/components/multiselect/components/multiselect_group.js +0 -40
  93. package/build/esm/packages/aurora/src/components/multiselect/components/multiselect_group.d.ts +0 -3
  94. package/build/esm/packages/aurora/src/components/multiselect/components/multiselect_group.js +0 -32
  95. /package/build/cjs/packages/aurora/src/components/{multiselect/components/multiselect_group.js.map → select/components/select_group_label.js.map} +0 -0
  96. /package/build/esm/packages/aurora/src/components/{multiselect/components/multiselect_group.js.map → select/components/select_group_label.js.map} +0 -0
@@ -20,7 +20,8 @@ var ColorPicker = function ColorPicker(_ref) {
20
20
  onChange = _ref.onChange,
21
21
  onCancel = _ref.onCancel,
22
22
  onSave = _ref.onSave,
23
- isWithGradient = _ref.withGradient;
23
+ isWithGradient = _ref.withGradient,
24
+ disabled = _ref.disabled;
24
25
  var _useSetupColorPicker = setup_color_piceker['default']({
25
26
  colorVariables: colorVariables,
26
27
  initialColor: initialColor,
@@ -84,7 +85,8 @@ var ColorPicker = function ColorPicker(_ref) {
84
85
  id: id,
85
86
  name: name,
86
87
  colorVariables: colorVariables,
87
- errors: errors
88
+ errors: errors,
89
+ disabled: disabled
88
90
  }));
89
91
  };
90
92
 
@@ -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;"}
@@ -16,7 +16,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
  var ColorPickerInput = function ColorPickerInput(_ref) {
17
17
  var id = _ref.id,
18
18
  name = _ref.name,
19
- errors = _ref.errors;
19
+ errors = _ref.errors,
20
+ disabled = _ref.disabled;
20
21
  var _useColorPicker = use_color_picker.useColorPicker(),
21
22
  hex = _useColorPicker.hex,
22
23
  color = _useColorPicker.color,
@@ -33,6 +34,7 @@ var ColorPickerInput = function ColorPickerInput(_ref) {
33
34
  name: name,
34
35
  value: colorName,
35
36
  errors: errors,
37
+ disabled: disabled,
36
38
  readOnly: true
37
39
  });
38
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,oEAAwE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,6BAA6B,oEAAwE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -19,7 +19,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
19
19
  var ColorPickerPure = function ColorPickerPure(_ref) {
20
20
  var id = _ref.id,
21
21
  name = _ref.name,
22
- errors = _ref.errors;
22
+ errors = _ref.errors,
23
+ disabled = _ref.disabled;
23
24
  var _useColorPicker = use_color_picker.useColorPicker(),
24
25
  color = _useColorPicker.color,
25
26
  handleCancel = _useColorPicker.handleCancel,
@@ -39,7 +40,8 @@ var ColorPickerPure = function ColorPickerPure(_ref) {
39
40
  }, /*#__PURE__*/React__default['default'].createElement(popover_trigger.PopoverTrigger, {
40
41
  onClick: function onClick() {
41
42
  return setIsColorPickerOpened(true);
42
- }
43
+ },
44
+ disabled: disabled
43
45
  }, /*#__PURE__*/React__default['default'].createElement("div", {
44
46
  className: "color-picker__input-container aurora-relative"
45
47
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -51,7 +53,8 @@ var ColorPickerPure = function ColorPickerPure(_ref) {
51
53
  })), /*#__PURE__*/React__default['default'].createElement(color_label_input.ColorPickerInput, {
52
54
  id: id,
53
55
  name: name,
54
- errors: errors
56
+ errors: errors,
57
+ disabled: disabled
55
58
  }))), /*#__PURE__*/React__default['default'].createElement(popover_content.PopoverContent, {
56
59
  className: "aurora-mt-2 aurora-rounded-16 aurora-overflow-hidden"
57
60
  }, /*#__PURE__*/React__default['default'].createElement(color_picker_content.ColorPickerContent, null))));
@@ -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;"}
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;"}
@@ -31,7 +31,9 @@ var CheckboxControl = function CheckboxControl(_ref) {
31
31
  required = _ref$required === void 0 ? false : _ref$required,
32
32
  onCheckedChange = _ref.onCheckedChange,
33
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({
34
+ return /*#__PURE__*/React__default['default'].createElement(control.Control, {
35
+ classname: "aurora-items-center"
36
+ }, /*#__PURE__*/React__default['default'].createElement(checkbox.Checkbox, _rollupPluginBabelHelpers.objectSpread2({
35
37
  id: id,
36
38
  name: name,
37
39
  value: value,
@@ -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;"}
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;"}
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
 
17
- var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "initialColor", "colorVariables", "onChange", "onCancel", "onSave", "withGradient", "helperText"];
17
+ var _excluded = ["label", "tooltip", "required", "id", "name", "errors", "initialColor", "colorVariables", "onChange", "onCancel", "onSave", "withGradient", "helperText", "disabled"];
18
18
  var ColorPickerControl = function ColorPickerControl(_ref) {
19
19
  var label$1 = _ref.label,
20
20
  tooltip = _ref.tooltip,
@@ -30,6 +30,7 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
30
30
  onSave = _ref.onSave,
31
31
  withGradient = _ref.withGradient,
32
32
  helperText = _ref.helperText,
33
+ disabled = _ref.disabled,
33
34
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
34
35
  return /*#__PURE__*/React__default['default'].createElement(control.Control, {
35
36
  classname: "aurora-flex-col"
@@ -47,7 +48,8 @@ var ColorPickerControl = function ColorPickerControl(_ref) {
47
48
  onChange: onChange,
48
49
  onCancel: onCancel,
49
50
  onSave: onSave,
50
- withGradient: withGradient
51
+ withGradient: withGradient,
52
+ disabled: disabled
51
53
  }, rest)), helperText && /*#__PURE__*/React__default['default'].createElement(helper_text.HelperText, null, helperText), errors && /*#__PURE__*/React__default['default'].createElement(error_list.ErrorList, {
52
54
  errors: errors
53
55
  }));
@@ -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;AACA;AACA;"}
@@ -14,11 +14,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
 
17
- var _excluded = ["id", "options", "isGrouped", "placeholder", "disabled", "label", "helperText", "tooltip", "errors", "onValueChange", "required"];
17
+ var _excluded = ["id", "options", "placeholder", "disabled", "label", "helperText", "tooltip", "errors", "onValueChange", "required"];
18
18
  var MultiSelectControl = function MultiSelectControl(_ref) {
19
19
  var id = _ref.id,
20
20
  options = _ref.options,
21
- isGrouped = _ref.isGrouped,
22
21
  placeholder = _ref.placeholder,
23
22
  disabled = _ref.disabled,
24
23
  label$1 = _ref.label,
@@ -38,7 +37,6 @@ var MultiSelectControl = function MultiSelectControl(_ref) {
38
37
  }, label$1)), /*#__PURE__*/React__default['default'].createElement(multiselect.MultiSelect, _rollupPluginBabelHelpers.objectSpread2({
39
38
  id: id,
40
39
  options: options,
41
- isGrouped: isGrouped,
42
40
  placeholder: placeholder,
43
41
  disabled: disabled,
44
42
  onValueChange: onValueChange
@@ -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;"}
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;"}
@@ -56,7 +56,6 @@ var RadioGroupControl = function RadioGroupControl(_ref) {
56
56
  value: item.value,
57
57
  id: item.id,
58
58
  errors: !!errors,
59
- required: required,
60
59
  disabled: disabled,
61
60
  label: item.label,
62
61
  helperText: item.helperText,
@@ -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;"}
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;"}
@@ -81,7 +81,7 @@ var useImagePicker = function useImagePicker(_ref) {
81
81
  setErrors([]);
82
82
  return isValid;
83
83
  }
84
- setErrors([].concat(_rollupPluginBabelHelpers.toConsumableArray(errors), [i18n['default'].t(image_picker_constants.IMAGE_PICKER_ERROR.invalidFileFormat)]));
84
+ setErrors([].concat(_rollupPluginBabelHelpers.toConsumableArray(errors), [i18n.i18n.t(image_picker_constants.IMAGE_PICKER_ERROR.invalidFileFormat)]));
85
85
  onError === null || onError === void 0 ? void 0 : onError(errors);
86
86
  return isValid;
87
87
  };
@@ -23,7 +23,7 @@ var Label = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
23
23
  children = _ref.children,
24
24
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
25
25
  var content = /*#__PURE__*/React.createElement(stack.Stack, {
26
- align: "center",
26
+ align: "baseline",
27
27
  spacing: "0.5",
28
28
  inline: true,
29
29
  className: cn.cn(label_variants.labelVariants(), "".concat(disabled ? 'aurora-cursor-not-allowed aurora-text-subtle-light' : '', " ").concat(className))
@@ -8,17 +8,16 @@ var cn = require('../../../utilities/cn.js');
8
8
  var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
9
9
  var input = require('../../input/input.js');
10
10
  var search_icon = require('../../../assets/icons/search_icon.js');
11
+ var multiselect_group_label = require('./multiselect_group_label.js');
11
12
  var multiselect_item = require('./multiselect_item.js');
12
- var multiselect_group = require('./multiselect_group.js');
13
13
 
14
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
15
 
16
16
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
17
 
18
- var _excluded = ["options", "isGrouped", "selectedOptions", "toggleOption", "triggerWidth", "hasSearch", "searchPlaceholder", "className"];
18
+ var _excluded = ["options", "selectedOptions", "toggleOption", "triggerWidth", "hasSearch", "searchPlaceholder", "className"];
19
19
  var MultiSelectContent = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
20
20
  var options = _ref.options,
21
- isGrouped = _ref.isGrouped,
22
21
  selectedOptions = _ref.selectedOptions,
23
22
  toggleOption = _ref.toggleOption,
24
23
  triggerWidth = _ref.triggerWidth,
@@ -30,22 +29,10 @@ var MultiSelectContent = /*#__PURE__*/React__default['default'].forwardRef(funct
30
29
  _React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
31
30
  searchTerm = _React$useState2[0],
32
31
  setSearchTerm = _React$useState2[1];
33
- var filteredOptions = React__default['default'].useMemo(function () {
34
- var lowercasedSearchTerm = searchTerm.toLowerCase();
35
- if (isGrouped) {
36
- return options.map(function (group) {
37
- return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, group), {}, {
38
- options: group.options.filter(function (option) {
39
- return option.label.toLowerCase().includes(lowercasedSearchTerm);
40
- })
41
- });
42
- });
43
- } else {
44
- return options.filter(function (option) {
45
- return option.label.toLowerCase().includes(lowercasedSearchTerm);
46
- });
47
- }
48
- }, [options, searchTerm, isGrouped]);
32
+ var filteredOptions = options.filter(function (option) {
33
+ var _searchTerm$toLowerCa;
34
+ return option.text.toLowerCase().includes((_searchTerm$toLowerCa = searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.toLowerCase()) !== null && _searchTerm$toLowerCa !== void 0 ? _searchTerm$toLowerCa : '');
35
+ });
49
36
  return /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Content, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
50
37
  className: cn.cn("aurora-z-50 aurora-bg aurora-flex aurora-flex-col aurora-gap-1 aurora-mt-1 aurora-overflow-hidden aurora-rounded-8 aurora-border aurora-p-3 aurora-shadow-m data-[state=open]:aurora-animate-in data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 data-[state=open]:aurora-fade-in-0 data-[state=closed]:aurora-zoom-out-95 data-[state=open]:aurora-zoom-in-95 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", className)
51
38
  }, props), {}, {
@@ -70,22 +57,19 @@ var MultiSelectContent = /*#__PURE__*/React__default['default'].forwardRef(funct
70
57
  e.stopPropagation();
71
58
  },
72
59
  placeholder: searchPlaceholder
73
- }))), isGrouped ? filteredOptions.map(function (group) {
74
- return /*#__PURE__*/React__default['default'].createElement(multiselect_group.MultiSelectGroup, {
75
- key: group.label,
76
- group: group,
77
- selectedOptions: selectedOptions,
78
- toggleOption: toggleOption
79
- });
80
- }) : filteredOptions.map(function (option) {
81
- return /*#__PURE__*/React__default['default'].createElement(multiselect_item.MultiSelectItem, {
82
- key: option.value,
60
+ }))), filteredOptions === null || filteredOptions === void 0 ? void 0 : filteredOptions.map(function (option) {
61
+ return option.isHeader ? (/*#__PURE__*/React__default['default'].createElement(multiselect_group_label.MultiSelectGroupLabel, {
62
+ key: option.text
63
+ }, option.text)) : (/*#__PURE__*/React__default['default'].createElement(multiselect_item.MultiSelectItem, {
64
+ key: "select-item-".concat(option.value),
83
65
  option: option,
66
+ isDisabled: option.isDisabled,
67
+ isReadonly: option.isReadonly,
84
68
  isSelected: selectedOptions.some(function (selected) {
85
69
  return selected.value === option.value;
86
70
  }),
87
71
  toggleOption: toggleOption
88
- });
72
+ }, option.text));
89
73
  }));
90
74
  });
91
75
  MultiSelectContent.displayName = 'MultiSelectContent';
@@ -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;"}
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;"}
@@ -14,10 +14,12 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
 
17
- var _excluded = ["option", "isSelected", "toggleOption", "className"];
17
+ var _excluded = ["option", "isSelected", "isDisabled", "isReadonly", "toggleOption", "className"];
18
18
  var MultiSelectItem = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
19
19
  var option = _ref.option,
20
20
  isSelected = _ref.isSelected,
21
+ isDisabled = _ref.isDisabled,
22
+ isReadonly = _ref.isReadonly,
21
23
  toggleOption = _ref.toggleOption,
22
24
  className = _ref.className,
23
25
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
@@ -29,7 +31,8 @@ var MultiSelectItem = /*#__PURE__*/React__default['default'].forwardRef(function
29
31
  onSelect: handleSelect,
30
32
  className: cn.cn('aurora-relative aurora-flex aurora-w-full aurora-select-none aurora-rounded-sm aurora-p-2 aurora-outline-none focus:aurora-bg-accent data-[disabled]:aurora-pointer-events-none data-[disabled]:aurora-opacity-50 data-[state=checked]:aurora-font-semibold data-[highlighted]:aurora-font-semibold data-[highlighted]:aurora-bg-hover aurora-cursor-pointer aurora-rounded-6', {
31
33
  'aurora-bg-hover': isSelected
32
- }, className)
34
+ }, className),
35
+ disabled: isDisabled || isReadonly
33
36
  }, props), {}, {
34
37
  ref: ref
35
38
  }), /*#__PURE__*/React__default['default'].createElement(box.Box, {
@@ -41,7 +44,7 @@ var MultiSelectItem = /*#__PURE__*/React__default['default'].forwardRef(function
41
44
  }), /*#__PURE__*/React__default['default'].createElement(typography.Typography, {
42
45
  size: "s",
43
46
  weight: "medium"
44
- }, option.label)));
47
+ }, option.text)));
45
48
  });
46
49
  MultiSelectItem.displayName = 'MultiSelectItem';
47
50
 
@@ -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;"}
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;"}
@@ -27,7 +27,7 @@ var MultiSelectTrigger = /*#__PURE__*/React__default['default'].forwardRef(funct
27
27
  '!aurora-border-danger aurora-border-2': hasErrors
28
28
  }, className)
29
29
  }, selectedOptions.length > 0 ? selectedOptions.map(function (option) {
30
- return option.label;
30
+ return option.text;
31
31
  }).join(', ') : placeholder !== null && placeholder !== void 0 ? placeholder : ''));
32
32
  });
33
33
  MultiSelectTrigger.displayName = 'MultiSelectTrigger';
@@ -12,12 +12,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
 
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
 
15
- var _excluded = ["id", "options", "isGrouped", "placeholder", "disabled", "hasSearch", "searchPlaceholder", "hasErrors", "onValueChange"];
15
+ var _excluded = ["id", "options", "placeholder", "disabled", "hasSearch", "searchPlaceholder", "hasErrors", "onValueChange"];
16
16
  var MultiSelect = function MultiSelect(_ref) {
17
17
  var id = _ref.id,
18
18
  options = _ref.options,
19
- _ref$isGrouped = _ref.isGrouped,
20
- isGrouped = _ref$isGrouped === void 0 ? false : _ref$isGrouped,
21
19
  placeholder = _ref.placeholder,
22
20
  disabled = _ref.disabled,
23
21
  hasSearch = _ref.hasSearch,
@@ -67,7 +65,6 @@ var MultiSelect = function MultiSelect(_ref) {
67
65
  hasErrors: hasErrors
68
66
  }), /*#__PURE__*/React__default['default'].createElement(DropdownMenuPrimitive.Portal, null, /*#__PURE__*/React__default['default'].createElement(multiselect_content.MultiSelectContent, {
69
67
  options: options,
70
- isGrouped: isGrouped,
71
68
  selectedOptions: selectedOptions,
72
69
  toggleOption: toggleOption,
73
70
  triggerWidth: triggerWidth,
@@ -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;"}
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;"}
@@ -23,14 +23,14 @@ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
23
23
  className = _ref.className,
24
24
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
25
25
  return /*#__PURE__*/React.createElement("div", {
26
- className: "aurora-flex aurora-gap-2"
26
+ className: "aurora-flex aurora-items-center aurora-gap-2"
27
27
  }, /*#__PURE__*/React.createElement(RadioGroupPrimitive.Item, _rollupPluginBabelHelpers.objectSpread2({
28
28
  id: id,
29
29
  ref: ref,
30
30
  value: value,
31
31
  disabled: disabled,
32
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', {
33
+ className: cn.cn('aurora-shrink-0 aurora-h-5 aurora-w-5 aurora-rounded-full aurora-border focus data-[state=checked]:aurora-bg-primary', {
34
34
  '!aurora-bg-active aurora-cursor-not-allowed': disabled,
35
35
  '!aurora-bg-neutral-0 aurora-border-danger aurora-border-2': errors
36
36
  }, className)
@@ -44,6 +44,7 @@ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
44
44
  htmlFor: id,
45
45
  disabled: disabled,
46
46
  tooltip: tooltip,
47
+ required: required,
47
48
  className: "aurora-text"
48
49
  }, label$1)), helperText && /*#__PURE__*/React.createElement(helper_text.HelperText, null, helperText)));
49
50
  });
@@ -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;"}
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;"}
@@ -8,6 +8,7 @@ var cn = require('../../../utilities/cn.js');
8
8
  var input = require('../../input/input.js');
9
9
  var SelectPrimitive = require('@radix-ui/react-select');
10
10
  var search_icon = require('../../../assets/icons/search_icon.js');
11
+ var select_group_label = require('./select_group_label.js');
11
12
  var select_item = require('./select_item.js');
12
13
 
13
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -29,7 +30,7 @@ var SelectContent = /*#__PURE__*/React__default['default'].forwardRef(function (
29
30
  var inputRef = React.useRef(null);
30
31
  var filteredOptions = options.filter(function (option) {
31
32
  var _filterTerm$toLowerCa;
32
- return option.label.toLowerCase().includes((_filterTerm$toLowerCa = filterTerm === null || filterTerm === void 0 ? void 0 : filterTerm.toLowerCase()) !== null && _filterTerm$toLowerCa !== void 0 ? _filterTerm$toLowerCa : '');
33
+ return option.text.toLowerCase().includes((_filterTerm$toLowerCa = filterTerm === null || filterTerm === void 0 ? void 0 : filterTerm.toLowerCase()) !== null && _filterTerm$toLowerCa !== void 0 ? _filterTerm$toLowerCa : '');
33
34
  });
34
35
  React.useEffect(function () {
35
36
  requestAnimationFrame(function () {
@@ -63,11 +64,15 @@ var SelectContent = /*#__PURE__*/React__default['default'].forwardRef(function (
63
64
  },
64
65
  placeholder: searchPlaceholder,
65
66
  ref: inputRef
66
- }))), filteredOptions.map(function (option) {
67
- return /*#__PURE__*/React__default['default'].createElement(select_item.SelectItem, {
67
+ }))), filteredOptions === null || filteredOptions === void 0 ? void 0 : filteredOptions.map(function (option, index) {
68
+ return option.isHeader ? (/*#__PURE__*/React__default['default'].createElement(select_group_label.SelectGroupLabel, {
69
+ key: option.text
70
+ }, option.text)) : (/*#__PURE__*/React__default['default'].createElement(select_item.SelectItem, {
68
71
  key: "select-item-".concat(option.value),
69
- value: option.value
70
- }, option.label);
72
+ value: option.value,
73
+ isDisabled: option.isDisabled,
74
+ isReadonly: option.isReadonly
75
+ }, option.text));
71
76
  }))));
72
77
  });
73
78
  SelectContent.displayName = SelectPrimitive.Content.displayName;
@@ -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;"}
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;"}
@@ -0,0 +1,40 @@
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 stack = require('../../stack/stack.js');
8
+ var box = require('../../box/box.js');
9
+ var typography = require('../../typography/typography.js');
10
+ var divider = require('../../divider/divider.js');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
+
16
+ var _excluded = ["children"];
17
+ var SelectGroupLabel = function SelectGroupLabel(_ref) {
18
+ var children = _ref.children,
19
+ props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
20
+ return /*#__PURE__*/React__default['default'].createElement(box.Box, {
21
+ paddings: {
22
+ pl: '2',
23
+ pt: '2',
24
+ pb: '2',
25
+ pr: '0'
26
+ }
27
+ }, /*#__PURE__*/React__default['default'].createElement(stack.Stack, {
28
+ align: "center",
29
+ spacing: "2.5"
30
+ }, /*#__PURE__*/React__default['default'].createElement(typography.Typography, {
31
+ className: "aurora-whitespace-nowrap",
32
+ size: "s",
33
+ color: "subtle",
34
+ weight: "bold"
35
+ }, children), /*#__PURE__*/React__default['default'].createElement(divider.Divider, _rollupPluginBabelHelpers.objectSpread2({}, props))));
36
+ };
37
+ SelectGroupLabel.displayName = 'SelectGroupLabel';
38
+
39
+ exports.SelectGroupLabel = SelectGroupLabel;
40
+ //# sourceMappingURL=select_group_label.js.map
@@ -12,13 +12,16 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
 
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
 
15
- var _excluded = ["children", "className"];
15
+ var _excluded = ["children", "className", "isDisabled", "isReadonly"];
16
16
  var SelectItem = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
17
17
  var children = _ref.children,
18
18
  className = _ref.className,
19
+ isDisabled = _ref.isDisabled,
20
+ isReadonly = _ref.isReadonly,
19
21
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
20
22
  return /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.Item, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
21
- className: cn.cn('aurora-relative aurora-flex aurora-w-full aurora-rounded-6 aurora-cursor-default aurora-select-none aurora-items-center aurora-rounded-sm aurora-py-1.5 aurora-pl-9 aurora-pr-8 aurora-text-sm aurora-outline-none focus:aurora-bg-accent focus:aurora-text-accent-foreground data-[disabled]:aurora-pointer-events-none data-[disabled]:aurora-opacity-50 data-[state=checked]:aurora-font-semibold data-[highlighted]:aurora-font-semibold data-[highlighted]:aurora-bg-hover', className)
23
+ className: cn.cn('aurora-relative aurora-flex aurora-w-full aurora-rounded-6 aurora-cursor-default aurora-select-none aurora-items-center aurora-rounded-sm aurora-py-1.5 aurora-pl-9 aurora-pr-8 aurora-text-sm aurora-outline-none focus:aurora-bg-accent focus:aurora-text-accent-foreground data-[disabled]:aurora-pointer-events-none data-[disabled]:aurora-opacity-50 data-[state=checked]:aurora-font-semibold data-[highlighted]:aurora-font-semibold data-[highlighted]:aurora-bg-hover', className),
24
+ disabled: isDisabled || isReadonly
22
25
  }, props), {}, {
23
26
  ref: ref
24
27
  }), /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.ItemIndicator, {
@@ -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;"}
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;"}
@@ -16,7 +16,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
 
17
17
  var _excluded = ["children", "id", "defaultValue", "options", "disabled", "placeholder", "hasSearch", "searchPlaceholder", "hasClearValueButton", "innerAdditionalContent", "hasError", "onValueChange"];
18
18
  var Select = function Select(_ref) {
19
- var _options$find;
20
19
  var children = _ref.children,
21
20
  id = _ref.id,
22
21
  defaultValue = _ref.defaultValue,
@@ -44,6 +43,12 @@ var Select = function Select(_ref) {
44
43
  React.useEffect(function () {
45
44
  onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(selectedValue !== null && selectedValue !== void 0 ? selectedValue : '');
46
45
  }, [selectedValue]);
46
+ var getSelectedLabel = function getSelectedLabel(options, selectedValue) {
47
+ var _options$find;
48
+ return ((_options$find = options.find(function (opt) {
49
+ return opt.value === selectedValue;
50
+ })) === null || _options$find === void 0 ? void 0 : _options$find.text) || '';
51
+ };
47
52
  return /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.Root, _rollupPluginBabelHelpers.objectSpread2({
48
53
  value: selectedValue,
49
54
  defaultValue: defaultValue,
@@ -59,9 +64,7 @@ var Select = function Select(_ref) {
59
64
  hasError: hasError
60
65
  }, /*#__PURE__*/React__default['default'].createElement(select_value.SelectValue, {
61
66
  placeholder: placeholder
62
- }, selectedValue ? (_options$find = options.find(function (option) {
63
- return option.value === selectedValue;
64
- })) === null || _options$find === void 0 ? void 0 : _options$find.label : '')), selectedValue && hasClearValueButton && (/*#__PURE__*/React__default['default'].createElement("div", {
67
+ }, selectedValue ? getSelectedLabel(options, selectedValue) : placeholder !== null && placeholder !== void 0 ? placeholder : '')), selectedValue && hasClearValueButton && (/*#__PURE__*/React__default['default'].createElement("div", {
65
68
  className: "aurora-absolute aurora-top-3 aurora-right-8 aurora-z-10",
66
69
  onClick: function onClick() {
67
70
  return setSelectedValue('');
@@ -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;"}
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;"}
@@ -60,12 +60,11 @@ var TreeNode = function TreeNode(_ref) {
60
60
  className: "aurora-flex"
61
61
  }, /*#__PURE__*/React__default['default'].createElement(arrow_down_s_fill.ArrowDownSFillIcon, {
62
62
  className: cn.cn('aurora-h-4 aurora-w-4 aurora-text-inverse-subtle-light -aurora-rotate-90 tree-arrow-transition', {
63
- 'aurora-rotate-0': node.expanded,
64
- 'aurora-fill-disabled': disabled
63
+ 'aurora-rotate-0': node.expanded
65
64
  })
66
65
  }))), Label));
67
66
  return /*#__PURE__*/React__default['default'].createElement("li", {
68
- className: "aurora-flex aurora-flex-col aurora-gap-2",
67
+ className: cn.cn('aurora-flex aurora-flex-col aurora-gap-2', cssClassNames),
69
68
  role: "treeitem",
70
69
  "aria-expanded": node.expanded,
71
70
  "data-disabled": !!disabled
@@ -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;"}
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;"}
@@ -26,5 +26,5 @@ i18n.use(context.initReactI18next).init({
26
26
  }
27
27
  });
28
28
 
29
- exports.default = i18n;
29
+ exports.i18n = i18n;
30
30
  //# sourceMappingURL=i18n.js.map
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var i18n = require('./i18n.js');
5
6
  var accordion_constants = require('./components/accordion/accordion_constants.js');
6
7
  var css_background_tokens = require('./constants/css_tokens/css_background_tokens.js');
7
8
  var css_border_color_tokens = require('./constants/css_tokens/css_border_color_tokens.js');
@@ -90,6 +91,8 @@ var control = require('./components/control/control.js');
90
91
  var switch_control = require('./components/controls/switch_control/switch_control.js');
91
92
  var input = require('./components/input/input.js');
92
93
  var input_control = require('./components/controls/input_control/input_control.js');
94
+ var color_picker_constants = require('./components/color_picker/color_picker_constants.js');
95
+ var color_picker_utils = require('./components/color_picker/color_picker_utils.js');
93
96
  var color_picker = require('./components/color_picker/color_picker.js');
94
97
  var color_picker_control = require('./components/controls/color_picker_control/color_picker_control.js');
95
98
  var checkbox = require('./components/checkbox/checkbox.js');
@@ -115,6 +118,7 @@ var tree_node = require('./components/tree/components/tree_node.js');
115
118
 
116
119
 
117
120
 
121
+ exports.i18n = i18n.i18n;
118
122
  exports.ACCORDION_SIZES = accordion_constants.ACCORDION_SIZES;
119
123
  exports.CSS_BACKGROUND_TOKENS = css_background_tokens.CSS_BACKGROUND_TOKENS;
120
124
  exports.CSS_BORDER_COLOR_TOKENS = css_border_color_tokens.CSS_BORDER_COLOR_TOKENS;
@@ -221,6 +225,8 @@ exports.Control = control.Control;
221
225
  exports.SwitchControl = switch_control.SwitchControl;
222
226
  exports.Input = input.Input;
223
227
  exports.InputControl = input_control.InputControl;
228
+ exports.GRADIENT_TYPES = color_picker_constants.GRADIENT_TYPES;
229
+ exports.ColorPickerUtils = color_picker_utils.ColorPickerUtils;
224
230
  exports.ColorPicker = color_picker.ColorPicker;
225
231
  exports.ColorPickerControl = color_picker_control.ColorPickerControl;
226
232
  exports.Checkbox = checkbox.Checkbox;