@dreamcommerce/aurora 3.0.0-33 → 3.0.0-34
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/divider/divider.js +15 -3
- package/build/cjs/packages/aurora/src/components/divider/divider.js.map +1 -1
- package/build/esm/packages/aurora/src/components/divider/divider.js +15 -3
- package/build/esm/packages/aurora/src/components/divider/divider.js.map +1 -1
- package/build/esm/packages/aurora/src/components/divider/divider_types.d.ts +6 -2
- package/package.json +1 -1
|
@@ -13,14 +13,19 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
|
-
var _excluded = ["className", "orientation", "color", "thickness", "
|
|
16
|
+
var _excluded = ["className", "orientation", "color", "thickness", "height", "maxHeight", "minHeight", "width", "maxWidth", "minWidth", "variant", "decorative"];
|
|
17
17
|
var Divider = /*#__PURE__*/React__default['default'].forwardRef(function (_ref, ref) {
|
|
18
18
|
var className = _ref.className,
|
|
19
19
|
_ref$orientation = _ref.orientation,
|
|
20
20
|
orientation = _ref$orientation === void 0 ? divider_constants.DIVIDER_ORIENTATION.horizontal : _ref$orientation,
|
|
21
21
|
color = _ref.color,
|
|
22
22
|
thickness = _ref.thickness,
|
|
23
|
-
|
|
23
|
+
height = _ref.height,
|
|
24
|
+
maxHeight = _ref.maxHeight,
|
|
25
|
+
minHeight = _ref.minHeight,
|
|
26
|
+
width = _ref.width,
|
|
27
|
+
maxWidth = _ref.maxWidth,
|
|
28
|
+
minWidth = _ref.minWidth,
|
|
24
29
|
variant = _ref.variant,
|
|
25
30
|
_ref$decorative = _ref.decorative,
|
|
26
31
|
decorative = _ref$decorative === void 0 ? true : _ref$decorative,
|
|
@@ -34,7 +39,14 @@ var Divider = /*#__PURE__*/React__default['default'].forwardRef(function (_ref,
|
|
|
34
39
|
thickness: thickness,
|
|
35
40
|
orientation: orientation
|
|
36
41
|
}), className),
|
|
37
|
-
style:
|
|
42
|
+
style: {
|
|
43
|
+
height: height,
|
|
44
|
+
maxHeight: maxHeight,
|
|
45
|
+
minHeight: minHeight,
|
|
46
|
+
width: width,
|
|
47
|
+
maxWidth: maxWidth,
|
|
48
|
+
minWidth: minWidth
|
|
49
|
+
}
|
|
38
50
|
}, props));
|
|
39
51
|
});
|
|
40
52
|
Divider.displayName = 'Divider';
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -5,14 +5,19 @@ import { DIVIDER_ORIENTATION } from './divider_constants.js';
|
|
|
5
5
|
import { dividerVariants } from './divider_variants.js';
|
|
6
6
|
import { Root } from '@radix-ui/react-separator';
|
|
7
7
|
|
|
8
|
-
var _excluded = ["className", "orientation", "color", "thickness", "
|
|
8
|
+
var _excluded = ["className", "orientation", "color", "thickness", "height", "maxHeight", "minHeight", "width", "maxWidth", "minWidth", "variant", "decorative"];
|
|
9
9
|
var Divider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10
10
|
var className = _ref.className,
|
|
11
11
|
_ref$orientation = _ref.orientation,
|
|
12
12
|
orientation = _ref$orientation === void 0 ? DIVIDER_ORIENTATION.horizontal : _ref$orientation,
|
|
13
13
|
color = _ref.color,
|
|
14
14
|
thickness = _ref.thickness,
|
|
15
|
-
|
|
15
|
+
height = _ref.height,
|
|
16
|
+
maxHeight = _ref.maxHeight,
|
|
17
|
+
minHeight = _ref.minHeight,
|
|
18
|
+
width = _ref.width,
|
|
19
|
+
maxWidth = _ref.maxWidth,
|
|
20
|
+
minWidth = _ref.minWidth,
|
|
16
21
|
variant = _ref.variant,
|
|
17
22
|
_ref$decorative = _ref.decorative,
|
|
18
23
|
decorative = _ref$decorative === void 0 ? true : _ref$decorative,
|
|
@@ -26,7 +31,14 @@ var Divider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
26
31
|
thickness: thickness,
|
|
27
32
|
orientation: orientation
|
|
28
33
|
}), className),
|
|
29
|
-
style:
|
|
34
|
+
style: {
|
|
35
|
+
height: height,
|
|
36
|
+
maxHeight: maxHeight,
|
|
37
|
+
minHeight: minHeight,
|
|
38
|
+
width: width,
|
|
39
|
+
maxWidth: maxWidth,
|
|
40
|
+
minWidth: minWidth
|
|
41
|
+
}
|
|
30
42
|
}, props));
|
|
31
43
|
});
|
|
32
44
|
Divider.displayName = 'Divider';
|
|
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { VariantProps } from 'class-variance-authority';
|
|
3
2
|
import { dividerVariants } from "./divider_variants";
|
|
4
3
|
import { SeparatorProps } from '@radix-ui/react-separator';
|
|
@@ -6,5 +5,10 @@ import { DIVIDER_ORIENTATION } from "./divider_constants";
|
|
|
6
5
|
import { Any } from 'ts-toolbelt';
|
|
7
6
|
export interface TDividerProps extends Omit<SeparatorProps, 'orientation'>, VariantProps<typeof dividerVariants> {
|
|
8
7
|
orientation?: Any.Keys<typeof DIVIDER_ORIENTATION>;
|
|
9
|
-
|
|
8
|
+
height?: string;
|
|
9
|
+
maxHeight?: string;
|
|
10
|
+
minHeight?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
maxWidth?: string;
|
|
13
|
+
minWidth?: string;
|
|
10
14
|
}
|