@dreamcommerce/aurora 3.0.0-78 → 3.0.0-79
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/packages/aurora/src/components/accordion/components/accordion_content.js +1 -1
- package/build/cjs/packages/aurora/src/components/accordion/components/accordion_item.js +3 -2
- package/build/cjs/packages/aurora/src/components/accordion/components/accordion_item.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/accordion/components/accordion_trigger.js +6 -7
- package/build/cjs/packages/aurora/src/components/accordion/components/accordion_trigger.js.map +1 -1
- package/build/esm/packages/aurora/src/components/accordion/accordion_types.d.ts +3 -0
- package/build/esm/packages/aurora/src/components/accordion/components/accordion_content.js +1 -1
- package/build/esm/packages/aurora/src/components/accordion/components/accordion_item.d.ts +3 -1
- package/build/esm/packages/aurora/src/components/accordion/components/accordion_item.js +4 -3
- package/build/esm/packages/aurora/src/components/accordion/components/accordion_item.js.map +1 -1
- package/build/esm/packages/aurora/src/components/accordion/components/accordion_trigger.js +6 -7
- package/build/esm/packages/aurora/src/components/accordion/components/accordion_trigger.js.map +1 -1
- package/build/index.css +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ var AccordionContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13
13
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
14
14
|
return /*#__PURE__*/React.createElement(AccordionPrimitive.Content, _rollupPluginBabelHelpers.objectSpread2({
|
|
15
15
|
ref: ref,
|
|
16
|
-
className: "aurora-
|
|
16
|
+
className: "aurora-overflow-hidden data-[state=closed]:aurora-animate-accordion-up data-[state=open]:aurora-animate-accordion-down"
|
|
17
17
|
}, props), children);
|
|
18
18
|
});
|
|
19
19
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
@@ -7,13 +7,14 @@ var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPlugi
|
|
|
7
7
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
8
8
|
var cn = require('../../../utilities/cn.js');
|
|
9
9
|
|
|
10
|
-
var _excluded = ["className"];
|
|
10
|
+
var _excluded = ["className", "borderStyle"];
|
|
11
11
|
var AccordionItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12
12
|
var className = _ref.className,
|
|
13
|
+
borderStyle = _ref.borderStyle,
|
|
13
14
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
14
15
|
return /*#__PURE__*/React.createElement(AccordionPrimitive.Item, _rollupPluginBabelHelpers.objectSpread2({
|
|
15
16
|
ref: ref,
|
|
16
|
-
className: cn.cn(className)
|
|
17
|
+
className: cn.cn('aurora-border-t last:aurora-border-b', _rollupPluginBabelHelpers.defineProperty({}, "aurora-border-".concat(borderStyle), !!borderStyle), className)
|
|
17
18
|
}, props));
|
|
18
19
|
});
|
|
19
20
|
AccordionItem.displayName = 'AccordionItem';
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -11,25 +11,24 @@ var accordion_context = require('../context/accordion_context.js');
|
|
|
11
11
|
var cn = require('../../../utilities/cn.js');
|
|
12
12
|
var arrow_right = require('../../../assets/icons/arrow_right.js');
|
|
13
13
|
|
|
14
|
-
var _excluded = ["className", "children", "backgroundColor", "
|
|
14
|
+
var _excluded = ["className", "children", "backgroundColor", "icon", "iconColor"];
|
|
15
15
|
var AccordionTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16
16
|
var className = _ref.className,
|
|
17
17
|
children = _ref.children,
|
|
18
18
|
backgroundColor = _ref.backgroundColor,
|
|
19
|
-
borderStyle = _ref.borderStyle,
|
|
20
19
|
icon = _ref.icon,
|
|
21
20
|
_ref$iconColor = _ref.iconColor,
|
|
22
|
-
iconColor = _ref$iconColor === void 0 ? css_icon_color_tokens.CSS_ICON_COLOR_TOKENS_VALUES.base : _ref$iconColor,
|
|
23
21
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
24
22
|
var accordionContext = React.useContext(accordion_context.AccordionContext);
|
|
25
|
-
var hasBorderStyles = !!borderStyle;
|
|
26
23
|
return /*#__PURE__*/React.createElement(AccordionPrimitive.Header, {
|
|
27
|
-
className:
|
|
24
|
+
className:
|
|
25
|
+
// 'aurora-border-t last:aurora-border-b last:border-t-0 data-[state=open]:aurora-border-b-0 group-[&:not(:first-of-type)]:aurora-border-t-0',
|
|
26
|
+
cn.cn(_rollupPluginBabelHelpers.defineProperty({}, "aurora-bg-".concat(backgroundColor), !!backgroundColor))
|
|
28
27
|
}, /*#__PURE__*/React.createElement(AccordionPrimitive.Trigger, _rollupPluginBabelHelpers.objectSpread2({
|
|
29
28
|
ref: ref,
|
|
30
|
-
className: cn.cn('aurora-flex aurora-items-center aurora-gap-2 aurora-
|
|
29
|
+
className: cn.cn('aurora-flex aurora-items-center aurora-gap-2 aurora-py-2 aurora-pl-1.5 aurora-pr-4 aurora-text aurora-font-semibold aurora-transition-all [&[data-state=open]>svg]:aurora-rotate-90', _rollupPluginBabelHelpers.defineProperty({}, 'aurora-bg', !backgroundColor), className)
|
|
31
30
|
}, props), icon ? icon : (/*#__PURE__*/React.createElement(arrow_right.ArrowRightIcon, {
|
|
32
|
-
color: css_icon_color_tokens.CSS_ICON_COLOR_TOKENS_VALUES
|
|
31
|
+
color: css_icon_color_tokens.CSS_ICON_COLOR_TOKENS_VALUES.base,
|
|
33
32
|
size: accordionContext.size === accordion_constants.ACCORDION_SIZES.default ? 24 : 20,
|
|
34
33
|
className: cn.cn('aurora-shrink-0 aurora-text-muted-foreground aurora-transition-transform aurora-duration-200')
|
|
35
34
|
})), children));
|
package/build/cjs/packages/aurora/src/components/accordion/components/accordion_trigger.js.map
CHANGED
|
@@ -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;
|
|
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;"}
|
|
@@ -7,6 +7,9 @@ export declare type TAccordionSize = Any.Keys<typeof ACCORDION_SIZES>;
|
|
|
7
7
|
export declare type TAccordionContext = {
|
|
8
8
|
size: TAccordionSize;
|
|
9
9
|
};
|
|
10
|
+
export declare type TAccordionItemProps = {
|
|
11
|
+
borderStyle?: TCssBorderStyleTokens;
|
|
12
|
+
} & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;
|
|
10
13
|
export declare type TAccordionTriggerProps = {
|
|
11
14
|
backgroundColor?: TCssBackgroundTokens;
|
|
12
15
|
borderStyle?: TCssBorderStyleTokens;
|
|
@@ -9,7 +9,7 @@ var AccordionContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
9
9
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
10
|
return /*#__PURE__*/createElement(Content, _objectSpread2({
|
|
11
11
|
ref: ref,
|
|
12
|
-
className: "aurora-
|
|
12
|
+
className: "aurora-overflow-hidden data-[state=closed]:aurora-animate-accordion-up data-[state=open]:aurora-animate-accordion-down"
|
|
13
13
|
}, props), children);
|
|
14
14
|
});
|
|
15
15
|
AccordionContent.displayName = Content.displayName;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const AccordionItem: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const AccordionItem: React.ForwardRefExoticComponent<{
|
|
4
|
+
borderStyle?: "none" | "solid" | "dashed" | "dotted" | "double" | undefined;
|
|
5
|
+
} & Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { forwardRef, createElement } from 'react';
|
|
2
|
-
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, defineProperty as _defineProperty } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Item } from '@radix-ui/react-accordion';
|
|
4
4
|
import { cn } from '../../../utilities/cn.js';
|
|
5
5
|
|
|
6
|
-
var _excluded = ["className"];
|
|
6
|
+
var _excluded = ["className", "borderStyle"];
|
|
7
7
|
var AccordionItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8
8
|
var className = _ref.className,
|
|
9
|
+
borderStyle = _ref.borderStyle,
|
|
9
10
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
11
|
return /*#__PURE__*/createElement(Item, _objectSpread2({
|
|
11
12
|
ref: ref,
|
|
12
|
-
className: cn(className)
|
|
13
|
+
className: cn('aurora-border-t last:aurora-border-b', _defineProperty({}, "aurora-border-".concat(borderStyle), !!borderStyle), className)
|
|
13
14
|
}, props));
|
|
14
15
|
});
|
|
15
16
|
AccordionItem.displayName = 'AccordionItem';
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -7,25 +7,24 @@ import { AccordionContext } from '../context/accordion_context.js';
|
|
|
7
7
|
import { cn } from '../../../utilities/cn.js';
|
|
8
8
|
import { ArrowRightIcon } from '../../../assets/icons/arrow_right.js';
|
|
9
9
|
|
|
10
|
-
var _excluded = ["className", "children", "backgroundColor", "
|
|
10
|
+
var _excluded = ["className", "children", "backgroundColor", "icon", "iconColor"];
|
|
11
11
|
var AccordionTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12
12
|
var className = _ref.className,
|
|
13
13
|
children = _ref.children,
|
|
14
14
|
backgroundColor = _ref.backgroundColor,
|
|
15
|
-
borderStyle = _ref.borderStyle,
|
|
16
15
|
icon = _ref.icon,
|
|
17
16
|
_ref$iconColor = _ref.iconColor,
|
|
18
|
-
iconColor = _ref$iconColor === void 0 ? CSS_ICON_COLOR_TOKENS_VALUES.base : _ref$iconColor,
|
|
19
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
18
|
var accordionContext = useContext(AccordionContext);
|
|
21
|
-
var hasBorderStyles = !!borderStyle;
|
|
22
19
|
return /*#__PURE__*/createElement(Header, {
|
|
23
|
-
className:
|
|
20
|
+
className:
|
|
21
|
+
// 'aurora-border-t last:aurora-border-b last:border-t-0 data-[state=open]:aurora-border-b-0 group-[&:not(:first-of-type)]:aurora-border-t-0',
|
|
22
|
+
cn(_defineProperty({}, "aurora-bg-".concat(backgroundColor), !!backgroundColor))
|
|
24
23
|
}, /*#__PURE__*/createElement(Trigger, _objectSpread2({
|
|
25
24
|
ref: ref,
|
|
26
|
-
className: cn('aurora-flex aurora-items-center aurora-gap-2 aurora-
|
|
25
|
+
className: cn('aurora-flex aurora-items-center aurora-gap-2 aurora-py-2 aurora-pl-1.5 aurora-pr-4 aurora-text aurora-font-semibold aurora-transition-all [&[data-state=open]>svg]:aurora-rotate-90', _defineProperty({}, 'aurora-bg', !backgroundColor), className)
|
|
27
26
|
}, props), icon ? icon : (/*#__PURE__*/createElement(ArrowRightIcon, {
|
|
28
|
-
color: CSS_ICON_COLOR_TOKENS_VALUES
|
|
27
|
+
color: CSS_ICON_COLOR_TOKENS_VALUES.base,
|
|
29
28
|
size: accordionContext.size === ACCORDION_SIZES.default ? 24 : 20,
|
|
30
29
|
className: cn('aurora-shrink-0 aurora-text-muted-foreground aurora-transition-transform aurora-duration-200')
|
|
31
30
|
})), children));
|
package/build/esm/packages/aurora/src/components/accordion/components/accordion_trigger.js.map
CHANGED
|
@@ -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;
|
|
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;"}
|