@dreamcommerce/aurora 3.0.0-170 → 3.0.0-171

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.
@@ -25,7 +25,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
25
25
  id: id,
26
26
  name: name,
27
27
  ref: ref,
28
- className: cn.cn('aurora-peer aurora-rounded-4 aurora-h-[20px] aurora-w-[20px] aurora-transition-all aurora-bg hover:aurora-border-strong focus data-[state=unchecked]:aurora-border data-[state=checked]:aurora-bg-primary not-disabled:data-[state=checked]:aurora-border-primary', {
28
+ className: cn.cn('aurora-shrink-0 aurora-rounded-4 aurora-h-[20px] aurora-w-[20px] aurora-transition-all aurora-bg hover:aurora-border-strong focus data-[state=unchecked]:aurora-border data-[state=checked]:aurora-bg-primary not-disabled:data-[state=checked]:aurora-border-primary', {
29
29
  'aurora-border-danger aurora-border-2': !!(errors !== null && errors !== void 0 && errors.length),
30
30
  'disabled:aurora-cursor-not-allowed': disabled,
31
31
  '!aurora-bg-active': disabled && checked
@@ -8,7 +8,7 @@ var link_constants = require('./link_constants.js');
8
8
 
9
9
  var linkVariants = index.cva('aurora-cursor-pointer aurora-transition-all aurora-duration-200', {
10
10
  variants: {
11
- variant: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, link_constants.LINK_VARIANT_TYPES.basic, 'aurora-text-interactive hover:aurora-text-interactive-hover active:aurora-text-interactive-active'), link_constants.LINK_VARIANT_TYPES.monochromatic, 'aurora-text'),
11
+ variant: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, link_constants.LINK_VARIANT_TYPES.basic, 'aurora-text-interactive hover:aurora-text-interactive-hover active:aurora-text-interactive-active'), link_constants.LINK_VARIANT_TYPES.monochromatic, 'aurora-text hover:aurora-text hover:aurora-no-underline'),
12
12
  decoration: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, link_constants.LINK_DECORATION_TYPES.noUnderline, 'aurora-no-underline'), link_constants.LINK_DECORATION_TYPES.underline, 'aurora-underline'),
13
13
  size: _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, link_constants.LINK_SIZE_TYPES.basic, 'aurora-text-s'), link_constants.LINK_SIZE_TYPES.s, 'aurora-text-xs')
14
14
  },
@@ -12,7 +12,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
 
13
13
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
14
 
15
- var MessageBox = function MessageBox(_ref) {
15
+ var MessageBox = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
16
16
  var _ref$variant = _ref.variant,
17
17
  variant = _ref$variant === void 0 ? message_box_constants.MESSAGE_BOX_VARIANTS.info : _ref$variant,
18
18
  header = _ref.header,
@@ -26,6 +26,7 @@ var MessageBox = function MessageBox(_ref) {
26
26
  var Icon = message_box_constants.MESSAGE_BOX_ICONS[variant];
27
27
  var iconColor = message_box_constants.MESSAGE_BOX_ICON_COLORS[variant];
28
28
  return /*#__PURE__*/React__default['default'].createElement("div", {
29
+ ref: ref,
29
30
  className: cn.cn(cn.cn({
30
31
  'aurora-w-full aurora-border-none': fullWidth,
31
32
  'aurora-w-[272px] aurora-border aurora-rounded-4': !fullWidth,
@@ -49,7 +50,8 @@ var MessageBox = function MessageBox(_ref) {
49
50
  className: "aurora-w-full",
50
51
  size: "xs"
51
52
  }, children))));
52
- };
53
+ });
54
+ MessageBox.displayName = 'MessageBox';
53
55
 
54
56
  exports.MessageBox = MessageBox;
55
57
  //# sourceMappingURL=message_box.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;"}
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;"}
@@ -21,7 +21,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
21
21
  id: id,
22
22
  name: name,
23
23
  ref: ref,
24
- className: cn('aurora-peer aurora-rounded-4 aurora-h-[20px] aurora-w-[20px] aurora-transition-all aurora-bg hover:aurora-border-strong focus data-[state=unchecked]:aurora-border data-[state=checked]:aurora-bg-primary not-disabled:data-[state=checked]:aurora-border-primary', {
24
+ className: cn('aurora-shrink-0 aurora-rounded-4 aurora-h-[20px] aurora-w-[20px] aurora-transition-all aurora-bg hover:aurora-border-strong focus data-[state=unchecked]:aurora-border data-[state=checked]:aurora-bg-primary not-disabled:data-[state=checked]:aurora-border-primary', {
25
25
  'aurora-border-danger aurora-border-2': !!(errors !== null && errors !== void 0 && errors.length),
26
26
  'disabled:aurora-cursor-not-allowed': disabled,
27
27
  '!aurora-bg-active': disabled && checked
@@ -4,7 +4,7 @@ import { LINK_VARIANT_TYPES, LINK_DECORATION_TYPES, LINK_SIZE_TYPES } from './li
4
4
 
5
5
  var linkVariants = cva('aurora-cursor-pointer aurora-transition-all aurora-duration-200', {
6
6
  variants: {
7
- variant: _defineProperty(_defineProperty({}, LINK_VARIANT_TYPES.basic, 'aurora-text-interactive hover:aurora-text-interactive-hover active:aurora-text-interactive-active'), LINK_VARIANT_TYPES.monochromatic, 'aurora-text'),
7
+ variant: _defineProperty(_defineProperty({}, LINK_VARIANT_TYPES.basic, 'aurora-text-interactive hover:aurora-text-interactive-hover active:aurora-text-interactive-active'), LINK_VARIANT_TYPES.monochromatic, 'aurora-text hover:aurora-text hover:aurora-no-underline'),
8
8
  decoration: _defineProperty(_defineProperty({}, LINK_DECORATION_TYPES.noUnderline, 'aurora-no-underline'), LINK_DECORATION_TYPES.underline, 'aurora-underline'),
9
9
  size: _defineProperty(_defineProperty({}, LINK_SIZE_TYPES.basic, 'aurora-text-s'), LINK_SIZE_TYPES.s, 'aurora-text-xs')
10
10
  },
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { TMessageBoxProps } from './message_box_types';
3
- export declare const MessageBox: ({ variant, header, children, fullWidth, className, shadow, showIcon }: TMessageBoxProps) => React.JSX.Element;
3
+ export declare const MessageBox: React.ForwardRefExoticComponent<TMessageBoxProps & React.RefAttributes<HTMLDivElement>>;
@@ -4,7 +4,7 @@ import { Typography } from '../typography/typography.js';
4
4
  import { MESSAGE_BOX_ICONS, MESSAGE_BOX_ICON_COLORS, MESSAGE_BOX_VARIANTS } from './message_box_constants.js';
5
5
  import { messageBoxVariants } from './message_box_variants.js';
6
6
 
7
- var MessageBox = function MessageBox(_ref) {
7
+ var MessageBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8
8
  var _ref$variant = _ref.variant,
9
9
  variant = _ref$variant === void 0 ? MESSAGE_BOX_VARIANTS.info : _ref$variant,
10
10
  header = _ref.header,
@@ -18,6 +18,7 @@ var MessageBox = function MessageBox(_ref) {
18
18
  var Icon = MESSAGE_BOX_ICONS[variant];
19
19
  var iconColor = MESSAGE_BOX_ICON_COLORS[variant];
20
20
  return /*#__PURE__*/React.createElement("div", {
21
+ ref: ref,
21
22
  className: cn(cn({
22
23
  'aurora-w-full aurora-border-none': fullWidth,
23
24
  'aurora-w-[272px] aurora-border aurora-rounded-4': !fullWidth,
@@ -41,7 +42,8 @@ var MessageBox = function MessageBox(_ref) {
41
42
  className: "aurora-w-full",
42
43
  size: "xs"
43
44
  }, children))));
44
- };
45
+ });
46
+ MessageBox.displayName = 'MessageBox';
45
47
 
46
48
  export { MessageBox };
47
49
  //# sourceMappingURL=message_box.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;"}
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;"}