@dreamcommerce/aurora 3.0.0-6 → 3.0.0-7
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/box/box.js +10 -2
- package/build/cjs/packages/aurora/src/components/box/box.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/sidebar/sidebar.js +2 -2
- package/build/esm/packages/aurora/src/components/box/box.d.ts +5 -1
- package/build/esm/packages/aurora/src/components/box/box.js +10 -2
- package/build/esm/packages/aurora/src/components/box/box.js.map +1 -1
- package/build/esm/packages/aurora/src/components/box/box_types.d.ts +4 -0
- package/build/esm/packages/aurora/src/components/sidebar/sidebar.js +2 -2
- package/build/esm/packages/aurora/src/components/sidebar/sidebar_types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -28,8 +28,12 @@ var Box = function Box(_ref) {
|
|
|
28
28
|
children = _ref.children,
|
|
29
29
|
_ref$width = _ref.width,
|
|
30
30
|
width = _ref$width === void 0 ? '100%' : _ref$width,
|
|
31
|
+
minWidth = _ref.minWidth,
|
|
32
|
+
maxWidth = _ref.maxWidth,
|
|
31
33
|
_ref$height = _ref.height,
|
|
32
|
-
height = _ref$height === void 0 ? 'auto' : _ref$height
|
|
34
|
+
height = _ref$height === void 0 ? 'auto' : _ref$height,
|
|
35
|
+
minHeight = _ref.minHeight,
|
|
36
|
+
maxHeight = _ref.maxHeight;
|
|
33
37
|
var borderWidthWithSides = borderWidth;
|
|
34
38
|
var borderRadiusWithSides = borderRadius;
|
|
35
39
|
return /*#__PURE__*/React__default['default'].createElement(as, {
|
|
@@ -37,7 +41,11 @@ var Box = function Box(_ref) {
|
|
|
37
41
|
style: {
|
|
38
42
|
zIndex: zIndex,
|
|
39
43
|
width: width,
|
|
40
|
-
|
|
44
|
+
minWidth: minWidth,
|
|
45
|
+
maxWidth: maxWidth,
|
|
46
|
+
height: height,
|
|
47
|
+
minHeight: minHeight,
|
|
48
|
+
maxHeight: maxHeight
|
|
41
49
|
}
|
|
42
50
|
}, children);
|
|
43
51
|
};
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -29,8 +29,8 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
29
29
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.objectSpread2({
|
|
30
30
|
ref: sidebarRef,
|
|
31
31
|
style: {
|
|
32
|
-
maxWidth: open ?
|
|
33
|
-
minWidth: open ?
|
|
32
|
+
maxWidth: open ? width : 0,
|
|
33
|
+
minWidth: open ? width : 0
|
|
34
34
|
},
|
|
35
35
|
className: cn.cn("aurora-relative aurora-transition-all aurora-duration-200 aurora-ease-linear aurora-h-svh")
|
|
36
36
|
}, props), TriggerButton ? /*#__PURE__*/React.createElement(TriggerButton, {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TBoxProps } from "./box_types";
|
|
3
3
|
import { PropsWithChildren } from 'react';
|
|
4
|
-
export declare const Box: ({ shadow, as, backgroundColor, color, borderColor, borderStyle, borderWidth, borderRadius, paddings, zIndex, position, children, width, height }: PropsWithChildren<TBoxProps>) => React.DetailedReactHTMLElement<{
|
|
4
|
+
export declare const Box: ({ shadow, as, backgroundColor, color, borderColor, borderStyle, borderWidth, borderRadius, paddings, zIndex, position, children, width, minWidth, maxWidth, height, minHeight, maxHeight }: PropsWithChildren<TBoxProps>) => React.DetailedReactHTMLElement<{
|
|
5
5
|
className: string;
|
|
6
6
|
style: {
|
|
7
7
|
zIndex: number | undefined;
|
|
8
8
|
width: string;
|
|
9
|
+
minWidth: string | undefined;
|
|
10
|
+
maxWidth: string | undefined;
|
|
9
11
|
height: string;
|
|
12
|
+
minHeight: string | undefined;
|
|
13
|
+
maxHeight: string | undefined;
|
|
10
14
|
};
|
|
11
15
|
}, HTMLElement>;
|
|
@@ -20,8 +20,12 @@ var Box = function Box(_ref) {
|
|
|
20
20
|
children = _ref.children,
|
|
21
21
|
_ref$width = _ref.width,
|
|
22
22
|
width = _ref$width === void 0 ? '100%' : _ref$width,
|
|
23
|
+
minWidth = _ref.minWidth,
|
|
24
|
+
maxWidth = _ref.maxWidth,
|
|
23
25
|
_ref$height = _ref.height,
|
|
24
|
-
height = _ref$height === void 0 ? 'auto' : _ref$height
|
|
26
|
+
height = _ref$height === void 0 ? 'auto' : _ref$height,
|
|
27
|
+
minHeight = _ref.minHeight,
|
|
28
|
+
maxHeight = _ref.maxHeight;
|
|
25
29
|
var borderWidthWithSides = borderWidth;
|
|
26
30
|
var borderRadiusWithSides = borderRadius;
|
|
27
31
|
return /*#__PURE__*/React.createElement(as, {
|
|
@@ -29,7 +33,11 @@ var Box = function Box(_ref) {
|
|
|
29
33
|
style: {
|
|
30
34
|
zIndex: zIndex,
|
|
31
35
|
width: width,
|
|
32
|
-
|
|
36
|
+
minWidth: minWidth,
|
|
37
|
+
maxWidth: maxWidth,
|
|
38
|
+
height: height,
|
|
39
|
+
minHeight: minHeight,
|
|
40
|
+
maxHeight: maxHeight
|
|
33
41
|
}
|
|
34
42
|
}, children);
|
|
35
43
|
};
|
|
@@ -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;AACA;AACA;AACA;"}
|
|
@@ -15,6 +15,10 @@ export declare type TBoxProps = {
|
|
|
15
15
|
position?: TCssPositionTokens;
|
|
16
16
|
zIndex?: number;
|
|
17
17
|
width?: string;
|
|
18
|
+
minWidth?: string;
|
|
19
|
+
maxWidth?: string;
|
|
18
20
|
height?: string;
|
|
21
|
+
minHeight?: string;
|
|
22
|
+
maxHeight?: string;
|
|
19
23
|
};
|
|
20
24
|
export declare type TBoxComponentTypes = Any.Keys<typeof BOX_COMPONENT_TYPES>;
|
|
@@ -25,8 +25,8 @@ var Sidebar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
25
25
|
return /*#__PURE__*/createElement("div", _objectSpread2({
|
|
26
26
|
ref: sidebarRef,
|
|
27
27
|
style: {
|
|
28
|
-
maxWidth: open ?
|
|
29
|
-
minWidth: open ?
|
|
28
|
+
maxWidth: open ? width : 0,
|
|
29
|
+
minWidth: open ? width : 0
|
|
30
30
|
},
|
|
31
31
|
className: cn("aurora-relative aurora-transition-all aurora-duration-200 aurora-ease-linear aurora-h-svh")
|
|
32
32
|
}, props), TriggerButton ? /*#__PURE__*/createElement(TriggerButton, {
|
|
@@ -11,7 +11,7 @@ export declare type TSidebarTriggerProps = {
|
|
|
11
11
|
export declare type TSidebarSide = Any.Keys<typeof SIDEBAR_SIDE>;
|
|
12
12
|
export declare type TSidebarProps = {
|
|
13
13
|
className?: string;
|
|
14
|
-
width:
|
|
14
|
+
width: string;
|
|
15
15
|
side?: TSidebarSide;
|
|
16
16
|
TriggerButton?: React.FC<any>;
|
|
17
17
|
};
|