@dreamcommerce/aurora 3.1.56-4 → 3.1.56-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ var AccordionItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14
14
  props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
15
15
  return /*#__PURE__*/React.createElement(index.Item, _rollupPluginBabelHelpers.objectSpread2({
16
16
  ref: ref,
17
- className: cn.cn('aurora-border-t last:aurora-border-b data-[state=open]:aurora-border-b-0 aurora-border-subtle', _rollupPluginBabelHelpers.defineProperty({}, "aurora-border-".concat(borderStyle), !!borderStyle), className)
17
+ className: cn.cn('aurora-border-t last:aurora-border-b data-[state=open]:aurora-border-b-0', _rollupPluginBabelHelpers.defineProperty({}, "aurora-border-".concat(borderStyle), !!borderStyle), className)
18
18
  }, props));
19
19
  });
20
20
  AccordionItem.displayName = 'AccordionItem';
@@ -24,12 +24,12 @@ var AccordionTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
24
24
  className: cn.cn('aurora-text-s aurora-font-semibold aurora-tracking', _rollupPluginBabelHelpers.defineProperty({}, "aurora-bg-".concat(backgroundColor), !!backgroundColor))
25
25
  }, /*#__PURE__*/React.createElement(index.Trigger, _rollupPluginBabelHelpers.objectSpread2({
26
26
  ref: ref,
27
- className: cn.cn('aurora-flex aurora-items-center aurora-justify-between aurora-w-full aurora-gap-2 aurora-py-2 aurora-pl-1.5 aurora-pr-4 aurora-text-base aurora-font-semibold aurora-transition-all [&[data-state=open]>svg]:aurora-rotate-90', _rollupPluginBabelHelpers.defineProperty({}, 'aurora-bg', !backgroundColor), className)
28
- }, props), children, icon ? icon : (/*#__PURE__*/React.createElement(arrow_right.ArrowRightIcon, {
29
- color: css_icon_color_tokens.CSS_ICON_COLOR_TOKENS_VALUES.inverseDisabled,
27
+ className: cn.cn('aurora-flex aurora-items-center aurora-w-full aurora-gap-2 aurora-py-2 aurora-pl-1.5 aurora-pr-4 aurora-text-subtle aurora-font-semibold aurora-transition-all [&[data-state=open]>svg]:aurora-rotate-90', _rollupPluginBabelHelpers.defineProperty({}, 'aurora-bg', !backgroundColor), className)
28
+ }, props), icon ? icon : (/*#__PURE__*/React.createElement(arrow_right.ArrowRightIcon, {
29
+ color: css_icon_color_tokens.CSS_ICON_COLOR_TOKENS_VALUES.subtle,
30
30
  size: accordionContext.size === accordion_constants.ACCORDION_SIZES.default ? 24 : 20,
31
31
  className: cn.cn('aurora-shrink-0 aurora-text-muted-foreground aurora-transition-transform aurora-duration-200')
32
- }))));
32
+ })), children));
33
33
  });
34
34
  AccordionTrigger.displayName = index.Trigger.displayName;
35
35
 
@@ -52,7 +52,7 @@ var DateTimePicker = function DateTimePicker(_ref) {
52
52
  var formattedValue = date_time_picker_utils.DateTimePickerUtils.formatDateTimeToString(date, time);
53
53
  isInternalChangeRef.current = true;
54
54
  onChange === null || onChange === void 0 ? void 0 : onChange(formattedValue);
55
- } else {
55
+ } else if (!date && !time) {
56
56
  isInternalChangeRef.current = true;
57
57
  onChange === null || onChange === void 0 ? void 0 : onChange('');
58
58
  }
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
11
11
 
12
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
13
 
14
- var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "height", "onChange", "onKeyDown", "onKeyUp"];
14
+ var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "onChange", "onKeyDown", "onKeyUp"];
15
15
  var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
16
16
  var preElement = _ref.preElement,
17
17
  postElement = _ref.postElement,
@@ -27,7 +27,6 @@ var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, re
27
27
  readOnly = _ref.readOnly,
28
28
  type = _ref.type,
29
29
  hasCursorPointer = _ref.hasCursorPointer,
30
- height = _ref.height,
31
30
  onChange = _ref.onChange,
32
31
  onKeyDown = _ref.onKeyDown,
33
32
  onKeyUp = _ref.onKeyUp,
@@ -53,9 +52,9 @@ var Input = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, re
53
52
  onKeyDown: onKeyDown,
54
53
  onKeyUp: onKeyUp,
55
54
  type: type,
56
- className: cn.cn('aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
55
+ className: cn.cn('aurora-h-[40px] aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
57
56
  'aurora-cursor-pointer': hasCursorPointer
58
- }, height ? "aurora-h-[".concat(height, "px]") : 'aurora-h-[40px]')
57
+ })
59
58
  })), postElement && /*#__PURE__*/React__default['default'].createElement("div", {
60
59
  className: "aurora-flex aurora-h-full aurora-right-0 aurora-pr-2 aurora-items-center"
61
60
  }, postElement));
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -10,7 +10,7 @@ var AccordionItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
10
10
  props = _objectWithoutProperties(_ref, _excluded);
11
11
  return /*#__PURE__*/createElement(Item, _objectSpread2({
12
12
  ref: ref,
13
- className: cn('aurora-border-t last:aurora-border-b data-[state=open]:aurora-border-b-0 aurora-border-subtle', _defineProperty({}, "aurora-border-".concat(borderStyle), !!borderStyle), className)
13
+ className: cn('aurora-border-t last:aurora-border-b data-[state=open]:aurora-border-b-0', _defineProperty({}, "aurora-border-".concat(borderStyle), !!borderStyle), className)
14
14
  }, props));
15
15
  });
16
16
  AccordionItem.displayName = 'AccordionItem';
@@ -20,12 +20,12 @@ var AccordionTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
20
20
  className: cn('aurora-text-s aurora-font-semibold aurora-tracking', _defineProperty({}, "aurora-bg-".concat(backgroundColor), !!backgroundColor))
21
21
  }, /*#__PURE__*/createElement(Trigger2, _objectSpread2({
22
22
  ref: ref,
23
- className: cn('aurora-flex aurora-items-center aurora-justify-between aurora-w-full aurora-gap-2 aurora-py-2 aurora-pl-1.5 aurora-pr-4 aurora-text-base aurora-font-semibold aurora-transition-all [&[data-state=open]>svg]:aurora-rotate-90', _defineProperty({}, 'aurora-bg', !backgroundColor), className)
24
- }, props), children, icon ? icon : (/*#__PURE__*/createElement(ArrowRightIcon, {
25
- color: CSS_ICON_COLOR_TOKENS_VALUES.inverseDisabled,
23
+ className: cn('aurora-flex aurora-items-center aurora-w-full aurora-gap-2 aurora-py-2 aurora-pl-1.5 aurora-pr-4 aurora-text-subtle aurora-font-semibold aurora-transition-all [&[data-state=open]>svg]:aurora-rotate-90', _defineProperty({}, 'aurora-bg', !backgroundColor), className)
24
+ }, props), icon ? icon : (/*#__PURE__*/createElement(ArrowRightIcon, {
25
+ color: CSS_ICON_COLOR_TOKENS_VALUES.subtle,
26
26
  size: accordionContext.size === ACCORDION_SIZES.default ? 24 : 20,
27
27
  className: cn('aurora-shrink-0 aurora-text-muted-foreground aurora-transition-transform aurora-duration-200')
28
- }))));
28
+ })), children));
29
29
  });
30
30
  AccordionTrigger.displayName = Trigger2.displayName;
31
31
 
@@ -44,7 +44,7 @@ var DateTimePicker = function DateTimePicker(_ref) {
44
44
  var formattedValue = DateTimePickerUtils.formatDateTimeToString(date, time);
45
45
  isInternalChangeRef.current = true;
46
46
  onChange === null || onChange === void 0 ? void 0 : onChange(formattedValue);
47
- } else {
47
+ } else if (!date && !time) {
48
48
  isInternalChangeRef.current = true;
49
49
  onChange === null || onChange === void 0 ? void 0 : onChange('');
50
50
  }
@@ -3,7 +3,7 @@ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _
3
3
  import { cn } from '../../utilities/cn.js';
4
4
  import { inputVariants } from './input_variants.js';
5
5
 
6
- var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "height", "onChange", "onKeyDown", "onKeyUp"];
6
+ var _excluded = ["preElement", "postElement", "errors", "className", "id", "name", "value", "defaultValue", "placeholder", "disabled", "readOnly", "type", "hasCursorPointer", "onChange", "onKeyDown", "onKeyUp"];
7
7
  var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
8
8
  var preElement = _ref.preElement,
9
9
  postElement = _ref.postElement,
@@ -19,7 +19,6 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
19
19
  readOnly = _ref.readOnly,
20
20
  type = _ref.type,
21
21
  hasCursorPointer = _ref.hasCursorPointer,
22
- height = _ref.height,
23
22
  onChange = _ref.onChange,
24
23
  onKeyDown = _ref.onKeyDown,
25
24
  onKeyUp = _ref.onKeyUp,
@@ -45,9 +44,9 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
45
44
  onKeyDown: onKeyDown,
46
45
  onKeyUp: onKeyUp,
47
46
  type: type,
48
- className: cn('aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
47
+ className: cn('aurora-h-[40px] aurora-w-full focus:aurora-outline-none focus:aurora-shadow-none aurora-px-2 aurora-rounded-6', {
49
48
  'aurora-cursor-pointer': hasCursorPointer
50
- }, height ? "aurora-h-[".concat(height, "px]") : 'aurora-h-[40px]')
49
+ })
51
50
  })), postElement && /*#__PURE__*/React__default.createElement("div", {
52
51
  className: "aurora-flex aurora-h-full aurora-right-0 aurora-pr-2 aurora-items-center"
53
52
  }, postElement));
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -8,5 +8,4 @@ export interface TInputProps extends React.InputHTMLAttributes<HTMLInputElement>
8
8
  hasCursorPointer?: boolean;
9
9
  colorName?: string;
10
10
  primary?: boolean;
11
- height?: number;
12
11
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "3.1.56-4",
5
+ "version": "3.1.56-6",
6
6
  "description": "aurora",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",