@dreamcommerce/aurora 3.0.0-246 → 3.0.0-247

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.
@@ -84,7 +84,8 @@ var SelectContent = /*#__PURE__*/React__default['default'].forwardRef(function (
84
84
  value: "".concat(option.value, "-").concat(index),
85
85
  isSelected: isSelected,
86
86
  isDisabled: option.isDisabled,
87
- isReadonly: option.isReadonly
87
+ isReadonly: option.isReadonly,
88
+ additionalInfo: option.additionalInfo
88
89
  }, option.text));
89
90
  }), innerAdditionalContent && /*#__PURE__*/React__default['default'].createElement("div", {
90
91
  className: "aurora-p-2"
@@ -1 +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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -12,16 +12,17 @@ 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", "isDisabled", "isReadonly", "isSelected"];
15
+ var _excluded = ["children", "className", "isDisabled", "isReadonly", "isSelected", "additionalInfo"];
16
16
  var SelectItem = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
17
17
  var children = _ref.children,
18
18
  className = _ref.className,
19
19
  isDisabled = _ref.isDisabled,
20
20
  isReadonly = _ref.isReadonly,
21
21
  isSelected = _ref.isSelected,
22
+ additionalInfo = _ref.additionalInfo,
22
23
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
23
24
  return /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.Item, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
24
- 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 active:aurora-bg-active focus:aurora-bg-accent focus:aurora-text-accent-foreground data-[disabled]:aurora-pointer-events-none data-[disabled]:aurora-opacity-50', {
25
+ 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 active:aurora-bg-active focus:aurora-bg-accent focus:aurora-text-accent-foreground data-[disabled]:aurora-pointer-events-none data-[disabled]:aurora-opacity-50 hover:aurora-bg-hover', {
25
26
  'aurora-cursor-pointer active:aurora-bg-active': !isDisabled && !isReadonly,
26
27
  'aurora-bg-hover aurora-font-semibold': isSelected
27
28
  }, className),
@@ -30,7 +31,11 @@ var SelectItem = /*#__PURE__*/React__default['default'].forwardRef(function (_re
30
31
  ref: ref
31
32
  }), isSelected && /*#__PURE__*/React__default['default'].createElement(check_icon.CheckLineIcon, {
32
33
  className: "aurora-h-5 aurora-w-5 -aurora-ml-7 aurora-mr-2"
33
- }), /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.ItemText, null, children));
34
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
35
+ className: "aurora-flex aurora-flex-col"
36
+ }, /*#__PURE__*/React__default['default'].createElement(SelectPrimitive.ItemText, null, children), !!additionalInfo && /*#__PURE__*/React__default['default'].createElement("p", {
37
+ className: "aurora-text-xs aurora-text-subtle-light"
38
+ }, additionalInfo)));
34
39
  });
35
40
  SelectItem.displayName = SelectPrimitive.Item.displayName;
36
41
 
@@ -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;"}
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;"}
@@ -76,7 +76,8 @@ var SelectContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
76
76
  value: "".concat(option.value, "-").concat(index),
77
77
  isSelected: isSelected,
78
78
  isDisabled: option.isDisabled,
79
- isReadonly: option.isReadonly
79
+ isReadonly: option.isReadonly,
80
+ additionalInfo: option.additionalInfo
80
81
  }, option.text));
81
82
  }), innerAdditionalContent && /*#__PURE__*/React.createElement("div", {
82
83
  className: "aurora-p-2"
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,+DAA+D,0EAA8E;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,+DAA+D,0EAA8E;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -4,16 +4,17 @@ import { cn } from '../../../utilities/cn.js';
4
4
  import { CheckLineIcon } from '../../../assets/icons/check_icon.js';
5
5
  import { Item, ItemText } from '@radix-ui/react-select';
6
6
 
7
- var _excluded = ["children", "className", "isDisabled", "isReadonly", "isSelected"];
7
+ var _excluded = ["children", "className", "isDisabled", "isReadonly", "isSelected", "additionalInfo"];
8
8
  var SelectItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
9
9
  var children = _ref.children,
10
10
  className = _ref.className,
11
11
  isDisabled = _ref.isDisabled,
12
12
  isReadonly = _ref.isReadonly,
13
13
  isSelected = _ref.isSelected,
14
+ additionalInfo = _ref.additionalInfo,
14
15
  props = _objectWithoutProperties(_ref, _excluded);
15
16
  return /*#__PURE__*/React.createElement(Item, _objectSpread2(_objectSpread2({
16
- className: 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 active:aurora-bg-active focus:aurora-bg-accent focus:aurora-text-accent-foreground data-[disabled]:aurora-pointer-events-none data-[disabled]:aurora-opacity-50', {
17
+ className: 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 active:aurora-bg-active focus:aurora-bg-accent focus:aurora-text-accent-foreground data-[disabled]:aurora-pointer-events-none data-[disabled]:aurora-opacity-50 hover:aurora-bg-hover', {
17
18
  'aurora-cursor-pointer active:aurora-bg-active': !isDisabled && !isReadonly,
18
19
  'aurora-bg-hover aurora-font-semibold': isSelected
19
20
  }, className),
@@ -22,7 +23,11 @@ var SelectItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
22
23
  ref: ref
23
24
  }), isSelected && /*#__PURE__*/React.createElement(CheckLineIcon, {
24
25
  className: "aurora-h-5 aurora-w-5 -aurora-ml-7 aurora-mr-2"
25
- }), /*#__PURE__*/React.createElement(ItemText, null, children));
26
+ }), /*#__PURE__*/React.createElement("div", {
27
+ className: "aurora-flex aurora-flex-col"
28
+ }, /*#__PURE__*/React.createElement(ItemText, null, children), !!additionalInfo && /*#__PURE__*/React.createElement("p", {
29
+ className: "aurora-text-xs aurora-text-subtle-light"
30
+ }, additionalInfo)));
26
31
  });
27
32
  SelectItem.displayName = Item.displayName;
28
33
 
@@ -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;"}
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;"}
@@ -25,6 +25,7 @@ export interface TSelectItemProps extends React.ComponentPropsWithoutRef<typeof
25
25
  isDisabled?: boolean;
26
26
  isReadonly?: boolean;
27
27
  isSelected?: boolean;
28
+ additionalInfo?: string;
28
29
  }
29
30
  export interface TSelectProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root> {
30
31
  id: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "3.0.0-246",
5
+ "version": "3.0.0-247",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",