bianic-ui 1.12.0 → 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 +9 -14
- 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 +9 -14
- 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) {
|
|
@@ -3218,7 +3213,7 @@ function Modal(_a) {
|
|
|
3218
3213
|
React.createElement("div", { className: "bianic-modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize), onClick: onClick },
|
|
3219
3214
|
React.createElement("div", { className: "bianic-modal-header flex justify-between" },
|
|
3220
3215
|
React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
|
|
3221
|
-
React.createElement(Button, { variant: "subtle", radius: "full-rounded", iconLeft: React.createElement(TbX,
|
|
3216
|
+
React.createElement(Button, { variant: "subtle", radius: "full-rounded", iconLeft: React.createElement(TbX, { size: 14 }), size: "tn", onClick: function () { return onClose(); } })),
|
|
3222
3217
|
React.createElement("div", { className: "bianic-modal-content flex w-full flex-col items-start gap-[20px]" }, rest.children))));
|
|
3223
3218
|
}
|
|
3224
3219
|
return null;
|