@dreamcommerce/aurora 3.0.0-29 → 3.0.0-30
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/assets/icons/arrow_down_s_line_icon.js +2 -2
- package/build/cjs/packages/aurora/src/assets/icons/arrow_down_s_line_icon.js.map +1 -1
- package/build/cjs/packages/aurora/src/assets/icons/arrow_left_s_line_icon.js +2 -2
- package/build/cjs/packages/aurora/src/assets/icons/arrow_left_s_line_icon.js.map +1 -1
- package/build/cjs/packages/aurora/src/assets/icons/arrow_right_line_icon.js +2 -2
- package/build/cjs/packages/aurora/src/assets/icons/arrow_right_line_icon.js.map +1 -1
- package/build/cjs/packages/aurora/src/assets/icons/check_fill_icon.js +2 -2
- package/build/cjs/packages/aurora/src/assets/icons/check_fill_icon.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/accordion/accordion.js +3 -3
- package/build/cjs/packages/aurora/src/components/action_list/action_list.js +3 -3
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_content.js +4 -4
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_divider.js +3 -3
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_group.js +4 -4
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_item.js +4 -4
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_label.js +6 -6
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_radio_group.js +4 -4
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_radio_item.js +5 -5
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_sub_content.js +4 -4
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_sub_trigger.js +5 -5
- package/build/cjs/packages/aurora/src/components/action_list/components/action_list_trigger.js +4 -4
- package/build/cjs/packages/aurora/src/components/badge/badge.js +2 -2
- package/build/cjs/packages/aurora/src/components/box/box.js +4 -4
- package/build/cjs/packages/aurora/src/components/button/button.js +4 -4
- package/build/cjs/packages/aurora/src/components/divider/divider.js +3 -3
- package/build/cjs/packages/aurora/src/components/icon_button/icon_button.js +5 -5
- package/build/cjs/packages/aurora/src/components/link/link.js +4 -4
- package/build/cjs/packages/aurora/src/components/loader/loader.js +3 -3
- package/build/cjs/packages/aurora/src/components/segmented_control/components/segmented_control_item.js +5 -5
- package/build/cjs/packages/aurora/src/components/segmented_control/context/segmented_control_context.js +3 -3
- package/build/cjs/packages/aurora/src/components/segmented_control/segmented_control.js +5 -5
- package/build/cjs/packages/aurora/src/components/sidebar/components/sidebar_trigger.js +4 -4
- package/build/cjs/packages/aurora/src/components/sidebar/context/sidebar_context.js +3 -3
- package/build/cjs/packages/aurora/src/components/sidebar/context/sidebar_prvider.js +7 -7
- package/build/cjs/packages/aurora/src/components/sidebar/hooks/use_sidebar.js +3 -3
- package/build/cjs/packages/aurora/src/components/sidebar/sidebar.js +7 -7
- package/build/cjs/packages/aurora/src/components/stack/stack.js +7 -7
- package/build/cjs/packages/aurora/src/components/tabs/components/tabs_content.js +3 -3
- package/build/cjs/packages/aurora/src/components/tabs/components/tabs_list.js +3 -3
- package/build/cjs/packages/aurora/src/components/tabs/components/tabs_trigger.js +4 -4
- package/build/cjs/packages/aurora/src/components/tabs/context/tabs_context.js +3 -3
- package/build/cjs/packages/aurora/src/components/tabs/tabs.js +5 -5
- package/build/cjs/packages/aurora/src/components/tooltip/components/tooltip_content.js +3 -3
- package/build/cjs/packages/aurora/src/components/typography/typography.js +3 -3
- package/build/esm/packages/aurora/src/assets/icons/arrow_down_s_line_icon.js +2 -2
- package/build/esm/packages/aurora/src/assets/icons/arrow_down_s_line_icon.js.map +1 -1
- package/build/esm/packages/aurora/src/assets/icons/arrow_left_s_line_icon.js +2 -2
- package/build/esm/packages/aurora/src/assets/icons/arrow_left_s_line_icon.js.map +1 -1
- package/build/esm/packages/aurora/src/assets/icons/arrow_right_line_icon.js +2 -2
- package/build/esm/packages/aurora/src/assets/icons/arrow_right_line_icon.js.map +1 -1
- package/build/esm/packages/aurora/src/assets/icons/check_fill_icon.js +2 -2
- package/build/esm/packages/aurora/src/assets/icons/check_fill_icon.js.map +1 -1
- package/build/esm/packages/aurora/src/components/action_list/action_list.js +2 -2
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_content.js +3 -3
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_divider.js +2 -2
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_group.js +3 -3
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_item.js +3 -3
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_label.js +5 -5
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_radio_group.js +3 -3
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_radio_item.js +4 -4
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_sub_content.js +3 -3
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_sub_trigger.js +4 -4
- package/build/esm/packages/aurora/src/components/action_list/components/action_list_trigger.js +3 -3
- package/build/esm/packages/aurora/src/components/box/box.js +3 -3
- package/build/esm/packages/aurora/src/components/button/button.js +3 -3
- package/build/esm/packages/aurora/src/components/divider/divider.js +2 -2
- package/build/esm/packages/aurora/src/components/icon_button/icon_button.js +4 -4
- package/build/esm/packages/aurora/src/components/link/link.js +3 -3
- package/build/esm/packages/aurora/src/components/loader/loader.js +2 -2
- package/build/esm/packages/aurora/src/components/segmented_control/components/segmented_control_item.js +4 -4
- package/build/esm/packages/aurora/src/components/segmented_control/context/segmented_control_context.js +2 -2
- package/build/esm/packages/aurora/src/components/segmented_control/segmented_control.js +4 -4
- package/build/esm/packages/aurora/src/components/sidebar/components/sidebar_trigger.js +3 -3
- package/build/esm/packages/aurora/src/components/sidebar/context/sidebar_context.js +2 -2
- package/build/esm/packages/aurora/src/components/sidebar/hooks/use_sidebar.js +2 -2
- package/build/esm/packages/aurora/src/components/stack/stack.js +3 -3
- package/build/esm/packages/aurora/src/components/tabs/context/tabs_context.js +2 -2
- package/build/esm/packages/aurora/src/components/tabs/tabs.js +4 -4
- package/build/esm/packages/aurora/src/components/typography/typography.js +2 -2
- package/package.json +1 -1
- package/build/cjs/external/@remixicon/react/index.mjs.js +0 -20
- package/build/cjs/external/@remixicon/react/index.mjs.js.map +0 -1
- package/build/esm/external/@remixicon/react/index.mjs.js +0 -9
- package/build/esm/external/@remixicon/react/index.mjs.js.map +0 -1
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../utilities/cn.js');
|
|
8
8
|
var loader_variants = require('./loader_variants.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
14
|
var _excluded = ["className", "variant"];
|
|
15
15
|
var Loader = function Loader(_ref) {
|
|
16
16
|
var className = _ref.className,
|
|
17
17
|
variant = _ref.variant,
|
|
18
18
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/React__default['default'].createElement("div", _rollupPluginBabelHelpers.objectSpread2({
|
|
20
20
|
className: cn.cn(loader_variants.loaderVariants({
|
|
21
21
|
variant: variant
|
|
22
22
|
}), className)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../../utilities/cn.js');
|
|
8
8
|
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
@@ -11,18 +11,18 @@ var segmented_control_context = require('../context/segmented_control_context.js
|
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
16
|
var _excluded = ["className", "children", "size", "variant"];
|
|
17
|
-
var SegmentedControlItem = /*#__PURE__*/
|
|
17
|
+
var SegmentedControlItem = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
18
18
|
var _context$size, _context$variant;
|
|
19
19
|
var className = _ref.className,
|
|
20
20
|
children = _ref.children,
|
|
21
21
|
size = _ref.size,
|
|
22
22
|
variant = _ref.variant,
|
|
23
23
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
var context =
|
|
25
|
-
return /*#__PURE__*/
|
|
24
|
+
var context = React__default['default'].useContext(segmented_control_context.SegmentedControlContext);
|
|
25
|
+
return /*#__PURE__*/React__default['default'].createElement(ToggleGroupPrimitive.Item, _rollupPluginBabelHelpers.objectSpread2({
|
|
26
26
|
ref: ref,
|
|
27
27
|
className: cn.cn("[&:not(:last-child)]:after:aurora-content-[''] focus aurora-rounded-6 [&:not(:last-child)]:after:aurora-absolute [&:not(:last-child)]:after:aurora-block [&:not(:last-child)]:after:aurora-w-px [&:not(:last-child)]:after:aurora-bg-active [&:not(:last-child)]:after:aurora--right-px [&:not(:last-child)]:after:aurora-h-3/6\n aurora-relative aurora-flex aurora-item aurora-basis-full aurora-items-center aurora-justify-center aurora-gap-2 hover:aurora-bg-active aurora-cursor-pointer aurora-transition-all aurora-duration-300\n data-[state=on]:aurora-bg data-[state=on]:aurora-font-semibold\n data-[state=on]:before:aurora-content-[''] data-[state=on]:before:aurora-block data-[state=on]:before:aurora-absolute data-[state=on]:before:aurora--left-px data-[state=on]:before:aurora--right-px data-[state=on]:before:aurora--top-px data-[state=on]:before:aurora--bottom-px data-[state=on]:before:aurora-border-active data-[state=on]:before:aurora-border data-[state=on]:before:aurora-rounded-4 data-[state=on]:before:aurora-z-10", segmented_control_item_variants.segmentedControlItemVariants({
|
|
28
28
|
size: (_context$size = context.size) !== null && _context$size !== void 0 ? _context$size : size,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var segmented_control_constants = require('../segmented_control_constants.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
|
-
var SegmentedControlContext = /*#__PURE__*/
|
|
12
|
+
var SegmentedControlContext = /*#__PURE__*/React__default['default'].createContext({
|
|
13
13
|
size: segmented_control_constants.SEGMENTED_CONTROL_SIZE_TYPES.basic,
|
|
14
14
|
variant: segmented_control_constants.SEGMENTED_CONTROL_VARIANT_TYPES.basic
|
|
15
15
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../utilities/cn.js');
|
|
8
8
|
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
@@ -11,10 +11,10 @@ var segmented_control_context = require('./context/segmented_control_context.js'
|
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
16
|
var _excluded = ["className", "size", "variant", "children", "type"];
|
|
17
|
-
var SegmentedControl = /*#__PURE__*/
|
|
17
|
+
var SegmentedControl = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
18
18
|
var className = _ref.className,
|
|
19
19
|
size = _ref.size,
|
|
20
20
|
variant = _ref.variant,
|
|
@@ -22,11 +22,11 @@ var SegmentedControl = /*#__PURE__*/t__default['default'].forwardRef(function (_
|
|
|
22
22
|
_ref$type = _ref.type,
|
|
23
23
|
type = _ref$type === void 0 ? segmented_control_constants.SEGMENTED_CONTROL_TYPE.single : _ref$type,
|
|
24
24
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
25
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/React__default['default'].createElement(ToggleGroupPrimitive.Root, _rollupPluginBabelHelpers.objectSpread2({
|
|
26
26
|
ref: ref,
|
|
27
27
|
className: cn.cn('aurora-w-max aurora-flex aurora-items-center aurora-justify-center aurora-border aurora-rounded-6 aurora-bg-subtle', className),
|
|
28
28
|
type: type
|
|
29
|
-
}, props), /*#__PURE__*/
|
|
29
|
+
}, props), /*#__PURE__*/React__default['default'].createElement(segmented_control_context.SegmentedControlContext.Provider, {
|
|
30
30
|
value: {
|
|
31
31
|
size: size,
|
|
32
32
|
variant: variant,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../../utilities/cn.js');
|
|
8
8
|
var index = require('../../../../../../external/class-variance-authority/dist/index.mjs.js');
|
|
@@ -13,7 +13,7 @@ var arrow_left_s_line_icon = require('../../../assets/icons/arrow_left_s_line_ic
|
|
|
13
13
|
|
|
14
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
|
|
18
18
|
var triggerVariants = index.cva('aurora-border-solid aurora-border-subtle aurora-bg aurora-py-1 aurora-absolute aurora-top-11 ', {
|
|
19
19
|
variants: {
|
|
@@ -25,12 +25,12 @@ var SidebarTrigger = function SidebarTrigger(_ref) {
|
|
|
25
25
|
var _useSidebar = use_sidebar.useSidebar(),
|
|
26
26
|
toggleSidebar = _useSidebar.toggleSidebar,
|
|
27
27
|
open = _useSidebar.open;
|
|
28
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/React__default['default'].createElement("button", {
|
|
29
29
|
className: triggerVariants({
|
|
30
30
|
side: side
|
|
31
31
|
}),
|
|
32
32
|
onClick: toggleSidebar
|
|
33
|
-
}, /*#__PURE__*/
|
|
33
|
+
}, /*#__PURE__*/React__default['default'].createElement(arrow_left_s_line_icon.ArrowLeftSLineIcon, {
|
|
34
34
|
color: css_color_tokens_values.CSS_COLOR_TOKENS_VALUES.neutral900,
|
|
35
35
|
className: cn.cn('aurora-overflow-hidden aurora-pointer aurora-transition-transform aurora-duration-100 aurora-text hover:aurora-scale-125', {
|
|
36
36
|
'aurora-rotate-180': side === sidebar_constants.SIDEBAR_SIDE.right && open || side === sidebar_constants.SIDEBAR_SIDE.left && !open
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
10
|
|
|
11
|
-
var SidebarContext = /*#__PURE__*/
|
|
11
|
+
var SidebarContext = /*#__PURE__*/React__default['default'].createContext(null);
|
|
12
12
|
|
|
13
13
|
exports.SidebarContext = SidebarContext;
|
|
14
14
|
//# sourceMappingURL=sidebar_context.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var sidebar_context = require('./sidebar_context.js');
|
|
8
8
|
|
|
@@ -24,14 +24,14 @@ var SidebarProvider = function SidebarProvider(_ref) {
|
|
|
24
24
|
console.error('Failed to set persisted state', error);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
var _React$useState =
|
|
27
|
+
var _React$useState = React.useState(openProp),
|
|
28
28
|
_React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
|
|
29
29
|
_open = _React$useState2[0],
|
|
30
30
|
_setOpen = _React$useState2[1];
|
|
31
|
-
|
|
31
|
+
React.useEffect(function () {
|
|
32
32
|
if (openProp !== undefined && openProp !== _open) setOpen(openProp);
|
|
33
33
|
}, [openProp]);
|
|
34
|
-
|
|
34
|
+
React.useEffect(function () {
|
|
35
35
|
setPersistedState(_open);
|
|
36
36
|
}, []);
|
|
37
37
|
var setOpen = function setOpen(open) {
|
|
@@ -45,15 +45,15 @@ var SidebarProvider = function SidebarProvider(_ref) {
|
|
|
45
45
|
return !open;
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
var contextValue =
|
|
48
|
+
var contextValue = React.useMemo(function () {
|
|
49
49
|
return {
|
|
50
50
|
open: _open,
|
|
51
51
|
toggleSidebar: toggleSidebar
|
|
52
52
|
};
|
|
53
53
|
}, [open, toggleSidebar]);
|
|
54
|
-
return /*#__PURE__*/
|
|
54
|
+
return /*#__PURE__*/React.createElement(sidebar_context.SidebarContext.Provider, {
|
|
55
55
|
value: contextValue
|
|
56
|
-
}, /*#__PURE__*/
|
|
56
|
+
}, /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.objectSpread2({
|
|
57
57
|
style: style
|
|
58
58
|
}, props), children));
|
|
59
59
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var sidebar_context = require('../context/sidebar_context.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
12
|
var useSidebar = function useSidebar() {
|
|
13
|
-
var context =
|
|
13
|
+
var context = React__default['default'].useContext(sidebar_context.SidebarContext);
|
|
14
14
|
if (!context) {
|
|
15
15
|
throw new Error('useSidebar must be used within a SidebarProvider.');
|
|
16
16
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../utilities/cn.js');
|
|
8
8
|
var use_sidebar = require('./hooks/use_sidebar.js');
|
|
@@ -10,7 +10,7 @@ var sidebar_constants = require('./sidebar_constants.js');
|
|
|
10
10
|
var sidebar_trigger = require('./components/sidebar_trigger.js');
|
|
11
11
|
|
|
12
12
|
var _excluded = ["className", "children", "TriggerButton", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "side"];
|
|
13
|
-
var Sidebar = /*#__PURE__*/
|
|
13
|
+
var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14
14
|
var className = _ref.className,
|
|
15
15
|
children = _ref.children,
|
|
16
16
|
_ref$TriggerButton = _ref.TriggerButton,
|
|
@@ -27,11 +27,11 @@ var Sidebar = /*#__PURE__*/t.forwardRef(function (_ref, ref) {
|
|
|
27
27
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
28
28
|
var _useSidebar = use_sidebar.useSidebar(),
|
|
29
29
|
open = _useSidebar.open;
|
|
30
|
-
var sidebarRef =
|
|
31
|
-
|
|
30
|
+
var sidebarRef = React.useRef(null);
|
|
31
|
+
React.useImperativeHandle(ref, function () {
|
|
32
32
|
return sidebarRef.current;
|
|
33
33
|
});
|
|
34
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.objectSpread2({
|
|
35
35
|
"aria-expanded": open,
|
|
36
36
|
ref: sidebarRef,
|
|
37
37
|
className: cn.cn('aurora-relative aurora-transition-all aurora-duration-200', className),
|
|
@@ -43,9 +43,9 @@ var Sidebar = /*#__PURE__*/t.forwardRef(function (_ref, ref) {
|
|
|
43
43
|
minHeight: minHeight,
|
|
44
44
|
maxHeight: maxHeight
|
|
45
45
|
}
|
|
46
|
-
}, props), TriggerButton ? /*#__PURE__*/
|
|
46
|
+
}, props), TriggerButton ? /*#__PURE__*/React.createElement(TriggerButton, {
|
|
47
47
|
side: side
|
|
48
|
-
}) : null, /*#__PURE__*/
|
|
48
|
+
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
49
49
|
className: cn.cn('aurora-overflow-auto aurora-h-full aurora-w-full', {
|
|
50
50
|
'aurora-opacity-0': !open,
|
|
51
51
|
'aurora-opacity-100': open
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var stack_constants = require('./stack_constants.js');
|
|
8
8
|
var cn = require('../../utilities/cn.js');
|
|
@@ -10,7 +10,7 @@ var index = require('../../../../../external/class-variance-authority/dist/index
|
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
15
|
var _excluded = ["children", "spacing", "className", "direction", "justifyContent", "alignItems", "wrap", "as", "inline", "attributes", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "style"];
|
|
16
16
|
var stackVariants = index.cva('aurora-flex', {
|
|
@@ -24,7 +24,7 @@ var stackVariants = index.cva('aurora-flex', {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
var Stack = /*#__PURE__*/
|
|
27
|
+
var Stack = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
28
28
|
var children = _ref.children,
|
|
29
29
|
spacing = _ref.spacing,
|
|
30
30
|
className = _ref.className,
|
|
@@ -49,11 +49,11 @@ var Stack = /*#__PURE__*/t__default['default'].forwardRef(function (_ref, ref) {
|
|
|
49
49
|
maxHeight = _ref.maxHeight,
|
|
50
50
|
style = _ref.style,
|
|
51
51
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
52
|
-
var internalRef =
|
|
53
|
-
|
|
52
|
+
var internalRef = React.useRef(null);
|
|
53
|
+
React.useImperativeHandle(ref, function () {
|
|
54
54
|
return internalRef.current;
|
|
55
55
|
}, []);
|
|
56
|
-
|
|
56
|
+
React.useEffect(function () {
|
|
57
57
|
if (!internalRef.current || !attributes) return;
|
|
58
58
|
Object.entries(attributes).forEach(function (_ref2) {
|
|
59
59
|
var _internalRef$current;
|
|
@@ -64,7 +64,7 @@ var Stack = /*#__PURE__*/t__default['default'].forwardRef(function (_ref, ref) {
|
|
|
64
64
|
});
|
|
65
65
|
}, [attributes]);
|
|
66
66
|
var display = inline ? 'inline' : null;
|
|
67
|
-
return /*#__PURE__*/
|
|
67
|
+
return /*#__PURE__*/React__default['default'].createElement(as, _rollupPluginBabelHelpers.objectSpread2({
|
|
68
68
|
ref: internalRef,
|
|
69
69
|
className: cn.cn(stackVariants({
|
|
70
70
|
direction: direction,
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../../utilities/cn.js');
|
|
8
8
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
9
9
|
|
|
10
10
|
var _excluded = ["className"];
|
|
11
|
-
var TabsContent = /*#__PURE__*/
|
|
11
|
+
var TabsContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12
12
|
var className = _ref.className,
|
|
13
13
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
14
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/React.createElement(TabsPrimitive.Content, _rollupPluginBabelHelpers.objectSpread2({
|
|
15
15
|
ref: ref,
|
|
16
16
|
className: cn.cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className)
|
|
17
17
|
}, props));
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../../utilities/cn.js');
|
|
8
8
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
9
9
|
|
|
10
10
|
var _excluded = ["className", "defaultValue"];
|
|
11
|
-
var TabsList = /*#__PURE__*/
|
|
11
|
+
var TabsList = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12
12
|
var className = _ref.className,
|
|
13
13
|
defaultValue = _ref.defaultValue,
|
|
14
14
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
15
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/React.createElement(TabsPrimitive.List, _rollupPluginBabelHelpers.objectSpread2({
|
|
16
16
|
ref: ref,
|
|
17
17
|
defaultValue: defaultValue,
|
|
18
18
|
className: cn.cn('aurora-w-max aurora-flex aurora-items-center aurora-justify-center aurora-border aurora-rounded-6 aurora-bg-subtle')
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../../utilities/cn.js');
|
|
8
8
|
var tabs_variants = require('./tabs_variants.js');
|
|
@@ -10,15 +10,15 @@ var tabs_context = require('../context/tabs_context.js');
|
|
|
10
10
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
11
11
|
|
|
12
12
|
var _excluded = ["className", "value", "variant", "size"];
|
|
13
|
-
var TabsTrigger = /*#__PURE__*/
|
|
13
|
+
var TabsTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14
14
|
var _context$size, _context$variant;
|
|
15
15
|
var className = _ref.className,
|
|
16
16
|
value = _ref.value,
|
|
17
17
|
variant = _ref.variant,
|
|
18
18
|
size = _ref.size,
|
|
19
19
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
var context =
|
|
21
|
-
return /*#__PURE__*/
|
|
20
|
+
var context = React.useContext(tabs_context.TabsContext);
|
|
21
|
+
return /*#__PURE__*/React.createElement(TabsPrimitive.Trigger, _rollupPluginBabelHelpers.objectSpread2({
|
|
22
22
|
ref: ref,
|
|
23
23
|
className: cn.cn("[&:not(:last-child)]:after:aurora-content-[''] focus aurora-rounded-6 [&:not(:last-child)]:after:aurora-absolute [&:not(:last-child)]:after:aurora-block [&:not(:last-child)]:after:aurora-w-px [&:not(:last-child)]:after:aurora-bg-active [&:not(:last-child)]:after:aurora--right-px [&:not(:last-child)]:after:aurora-h-3/6\n aurora-relative aurora-flex aurora-item aurora-basis-full aurora-items-center aurora-justify-center aurora-gap-2 hover:aurora-bg-active aurora-cursor-pointer aurora-transition-all aurora-duration-300\n data-[state=active]:aurora-bg data-[state=active]:aurora-font-semibold\n data-[state=active]:before:aurora-content-[''] data-[state=active]:before:aurora-block data-[state=active]:before:aurora-absolute data-[state=active]:before:aurora--left-px data-[state=active]:before:aurora--right-px data-[state=active]:before:aurora--top-px data-[state=active]:before:aurora--bottom-px data-[state=active]:before:aurora-border-active data-[state=active]:before:aurora-border data-[state=active]:before:aurora-rounded-4 data-[state=active]:before:aurora-z-10", tabs_variants.tabsVariants({
|
|
24
24
|
size: (_context$size = context.size) !== null && _context$size !== void 0 ? _context$size : size,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var tabs_constants = require('../tabs_constants.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
|
-
var TabsContext = /*#__PURE__*/
|
|
12
|
+
var TabsContext = /*#__PURE__*/React__default['default'].createContext({
|
|
13
13
|
size: tabs_constants.TABS_SIZE_TYPES.basic,
|
|
14
14
|
variant: tabs_constants.TABS_VARIANT_TYPES.basic
|
|
15
15
|
});
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var tabs_context = require('./context/tabs_context.js');
|
|
8
8
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
14
|
var _excluded = ["className", "size", "variant", "children"];
|
|
15
|
-
var Tabs = /*#__PURE__*/
|
|
15
|
+
var Tabs = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
16
16
|
var className = _ref.className,
|
|
17
17
|
size = _ref.size,
|
|
18
18
|
variant = _ref.variant,
|
|
19
19
|
children = _ref.children,
|
|
20
20
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/React__default['default'].createElement(TabsPrimitive.Root, _rollupPluginBabelHelpers.objectSpread2({
|
|
22
22
|
ref: ref
|
|
23
|
-
}, props), /*#__PURE__*/
|
|
23
|
+
}, props), /*#__PURE__*/React__default['default'].createElement(tabs_context.TabsContext.Provider, {
|
|
24
24
|
value: {
|
|
25
25
|
size: size,
|
|
26
26
|
variant: variant
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../../utilities/cn.js');
|
|
8
8
|
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
@@ -10,14 +10,14 @@ var tooltip_constants = require('../tooltip_constants.js');
|
|
|
10
10
|
var tooltip_content_variants = require('./tooltip_content_variants.js');
|
|
11
11
|
|
|
12
12
|
var _excluded = ["className", "sideOffset", "variant"];
|
|
13
|
-
var TooltipContent = /*#__PURE__*/
|
|
13
|
+
var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14
14
|
var className = _ref.className,
|
|
15
15
|
_ref$sideOffset = _ref.sideOffset,
|
|
16
16
|
sideOffset = _ref$sideOffset === void 0 ? 8 : _ref$sideOffset,
|
|
17
17
|
_ref$variant = _ref.variant,
|
|
18
18
|
variant = _ref$variant === void 0 ? tooltip_constants.TOOLTIP_VARIANT_TYPES.light : _ref$variant,
|
|
19
19
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/React.createElement(TooltipPrimitive.Portal, null, /*#__PURE__*/React.createElement(TooltipPrimitive.Content, _rollupPluginBabelHelpers.objectSpread2({
|
|
21
21
|
ref: ref,
|
|
22
22
|
sideOffset: sideOffset,
|
|
23
23
|
className: cn.cn('aurora-z-50 aurora-shadow aurora-text-xs aurora-overflow-hidden aurora-border aurora-rounded-8 aurora-rounded-md aurora-px-3 aurora-py-2 aurora-text-sm aurora-animate-in aurora-fade-in-0 data-[state=closed]:aurora-animate-out data-[state=closed]:aurora-fade-out-0 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', tooltip_content_variants.tooltipContentVariants({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
|
7
7
|
var cn = require('../../utilities/cn.js');
|
|
8
8
|
var typography_variants = require('./typography_variants.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
14
|
var _excluded = ["variant", "as", "style", "color", "weight", "size", "lineHeight", "transform", "children", "className"];
|
|
15
15
|
var Typography = function Typography(_ref) {
|
|
@@ -25,7 +25,7 @@ var Typography = function Typography(_ref) {
|
|
|
25
25
|
children = _ref.children,
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
|
28
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/React__default['default'].createElement(as, _rollupPluginBabelHelpers.objectSpread2({
|
|
29
29
|
className: cn.cn(typography_variants.typographyVariants({
|
|
30
30
|
variant: variant,
|
|
31
31
|
transform: transform,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RiArrowDownSLine
|
|
1
|
+
import { RiArrowDownSLine } from '@remixicon/react';
|
|
2
2
|
|
|
3
|
-
var ArrowDownSLineIcon =
|
|
3
|
+
var ArrowDownSLineIcon = RiArrowDownSLine;
|
|
4
4
|
|
|
5
5
|
export { ArrowDownSLineIcon };
|
|
6
6
|
//# sourceMappingURL=arrow_down_s_line_icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RiArrowLeftSLine
|
|
1
|
+
import { RiArrowLeftSLine } from '@remixicon/react';
|
|
2
2
|
|
|
3
|
-
var ArrowLeftSLineIcon =
|
|
3
|
+
var ArrowLeftSLineIcon = RiArrowLeftSLine;
|
|
4
4
|
|
|
5
5
|
export { ArrowLeftSLineIcon };
|
|
6
6
|
//# sourceMappingURL=arrow_left_s_line_icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RiArrowRightLine
|
|
1
|
+
import { RiArrowRightLine } from '@remixicon/react';
|
|
2
2
|
|
|
3
|
-
var ArrowRightLineIcon =
|
|
3
|
+
var ArrowRightLineIcon = RiArrowRightLine;
|
|
4
4
|
|
|
5
5
|
export { ArrowRightLineIcon };
|
|
6
6
|
//# sourceMappingURL=arrow_right_line_icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RiCheckFill
|
|
1
|
+
import { RiCheckFill } from '@remixicon/react';
|
|
2
2
|
|
|
3
|
-
var CheckFillIcon =
|
|
3
|
+
var CheckFillIcon = RiCheckFill;
|
|
4
4
|
|
|
5
5
|
export { CheckFillIcon };
|
|
6
6
|
//# sourceMappingURL=check_fill_icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Root } from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ var ActionList = function ActionList(_ref) {
|
|
|
7
7
|
var children = _ref.children,
|
|
8
8
|
handleOpenChange = _ref.onOpenChange,
|
|
9
9
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/React.createElement(Root, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11
11
|
onOpenChange: function onOpenChange(isOpen) {
|
|
12
12
|
handleOpenChange === null || handleOpenChange === void 0 ? void 0 : handleOpenChange(isOpen);
|
|
13
13
|
}
|
package/build/esm/packages/aurora/src/components/action_list/components/action_list_content.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Portal, Content } from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import { cn } from '../../../utilities/cn.js';
|
|
5
5
|
|
|
6
6
|
var _excluded = ["className", "sideOffset"];
|
|
7
|
-
var ActionListContent = /*#__PURE__*/
|
|
7
|
+
var ActionListContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8
8
|
var className = _ref.className,
|
|
9
9
|
_ref$sideOffset = _ref.sideOffset,
|
|
10
10
|
sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
|
|
11
11
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
return /*#__PURE__*/
|
|
12
|
+
return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(Content, _objectSpread2({
|
|
13
13
|
ref: ref,
|
|
14
14
|
sideOffset: sideOffset,
|
|
15
15
|
className: cn('aurora-z-50 aurora-bg aurora-flex aurora-flex-col aurora-gap-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)
|
package/build/esm/packages/aurora/src/components/action_list/components/action_list_divider.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { objectSpread2 as _objectSpread2 } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
3
3
|
import { Divider } from '../../divider/divider.js';
|
|
4
4
|
|
|
5
5
|
var ActionListDivider = function ActionListDivider(props) {
|
|
6
|
-
return /*#__PURE__*/
|
|
6
|
+
return /*#__PURE__*/React.createElement(Divider, _objectSpread2({}, props));
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { ActionListDivider };
|