bianic-ui 1.12.1 → 1.13.0-beta.1
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/dist/cjs/index.js +8 -13
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Divider/Divider.d.ts +5 -4
- package/dist/cjs/types/components/Divider/config.d.ts +2 -8
- package/dist/cjs/types/stories/Divider/Divider.stories.d.ts +9 -2
- package/dist/cjs/types/stories/Divider/DividerDemo.stories.d.ts +0 -1
- package/dist/esm/index.js +8 -13
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Divider/Divider.d.ts +5 -4
- package/dist/esm/types/components/Divider/config.d.ts +2 -8
- package/dist/esm/types/stories/Divider/Divider.stories.d.ts +9 -2
- package/dist/esm/types/stories/Divider/DividerDemo.stories.d.ts +0 -1
- package/dist/index.d.ts +5 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1635,24 +1635,19 @@ function Color() {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
1637
|
var DividerConfig = {
|
|
1638
|
-
horizontal:
|
|
1639
|
-
|
|
1640
|
-
lineClass: 'w-full border-t',
|
|
1641
|
-
},
|
|
1642
|
-
vertical: {
|
|
1643
|
-
containerClass: 'h-full w-px',
|
|
1644
|
-
lineClass: 'h-full border-r',
|
|
1645
|
-
},
|
|
1638
|
+
horizontal: 'h-px w-full',
|
|
1639
|
+
vertical: 'h-full w-px',
|
|
1646
1640
|
};
|
|
1647
1641
|
|
|
1648
1642
|
function Divider(_a) {
|
|
1649
|
-
var
|
|
1650
|
-
var
|
|
1651
|
-
|
|
1652
|
-
|
|
1643
|
+
var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, className = _a.className;
|
|
1644
|
+
var config = DividerConfig[orientation];
|
|
1645
|
+
var margin = orientation === 'horizontal' ? 'my-[7px]' : 'mx-[7px]';
|
|
1646
|
+
return (React.createElement("div", { className: "bianic-divider bg-bia-grey-light-50 ".concat(margin, " ").concat(config, " ").concat(className) }));
|
|
1653
1647
|
}
|
|
1654
1648
|
Divider.defaultProps = {
|
|
1655
|
-
|
|
1649
|
+
className: '',
|
|
1650
|
+
orientation: 'horizontal',
|
|
1656
1651
|
};
|
|
1657
1652
|
|
|
1658
1653
|
var FileTree = function (_a) {
|