bianic-ui 2.4.0 → 2.5.1-beta.0
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 +21 -8
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Notification/index.d.ts +8 -0
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +21 -9
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Notification/index.d.ts +8 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +8 -1
- package/package.json +7 -3
package/dist/cjs/index.js
CHANGED
|
@@ -1552,10 +1552,10 @@ var ContextualButton = React.forwardRef(function (_a, ref) {
|
|
|
1552
1552
|
: 'text-primary-white'
|
|
1553
1553
|
: textColorConfig[variant];
|
|
1554
1554
|
var stateColor = stateColorConfig[isSelected ? 'selected' : 'default'];
|
|
1555
|
-
return (React.createElement("button", __assign({ ref: ref, className: "bianic-contextual-button box-border flex flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
|
|
1555
|
+
return (React.createElement("button", __assign({ ref: ref, className: "bianic-contextual-button box-border flex min-h-[22px] flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
|
|
1556
1556
|
icon,
|
|
1557
|
-
label && (React.createElement("div", { className: "label flex max-h-[46px] items-center px-[5px] text-[12px] leading-none" },
|
|
1558
|
-
React.createElement("span",
|
|
1557
|
+
label && (React.createElement("div", { className: "label flex max-h-[46px] items-center gap-x-0.5 px-[5px] text-[12px] leading-none" },
|
|
1558
|
+
React.createElement("span", null, label),
|
|
1559
1559
|
actionElement))));
|
|
1560
1560
|
});
|
|
1561
1561
|
|
|
@@ -2240,7 +2240,7 @@ var styleConfig = {
|
|
|
2240
2240
|
iconStyle: '',
|
|
2241
2241
|
},
|
|
2242
2242
|
text: {
|
|
2243
|
-
fieldStyle: '
|
|
2243
|
+
fieldStyle: '',
|
|
2244
2244
|
iconStyle: 'pointer-events-none',
|
|
2245
2245
|
},
|
|
2246
2246
|
number: {
|
|
@@ -2301,9 +2301,13 @@ var TextInput = React.forwardRef(function (_a, ref) {
|
|
|
2301
2301
|
return (React.createElement("div", { className: "bianic-text-input-container bianic-fgc-container group/form flex w-full flex-col gap-y-2 text-bia-black" },
|
|
2302
2302
|
label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
|
|
2303
2303
|
React.createElement("div", { className: "relative w-full ".concat(disabledClass) },
|
|
2304
|
-
React.createElement("input", __assign({ className: "bianic-text-input bianic-fgc-target w-full rounded read-only:pointer-events-none read-only:border-bia-grey-light-50 hover:rounded-b-none focus:rounded-b-none focus-visible:outline-none disabled:cursor-not-allowed disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active ".concat(extendedInputClassName), disabled: disabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); }, maxLength: maxLength, autoComplete: autoComplete, ref: ref, style: {
|
|
2305
|
-
|
|
2306
|
-
|
|
2304
|
+
React.createElement("input", __assign({ className: "bianic-text-input bianic-fgc-target w-full rounded read-only:pointer-events-none read-only:border-bia-grey-light-50 hover:rounded-b-none focus:rounded-b-none focus-visible:outline-none disabled:cursor-not-allowed disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active ".concat(extendedInputClassName), disabled: disabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); }, maxLength: maxLength, autoComplete: autoComplete, ref: ref, style: {
|
|
2305
|
+
paddingRight: iconElement
|
|
2306
|
+
? "".concat(10 + Number(iconSize), "px")
|
|
2307
|
+
: undefined,
|
|
2308
|
+
} }, props)),
|
|
2309
|
+
iconElement && (React.createElement("div", { className: "absolute inset-y-0 flex items-center pl-3 ".concat(actionElement ? '' : iconStyle, " ").concat(iconPosition, " ").concat(iconSizing) }, iconElement))),
|
|
2310
|
+
(descText || maxLength) && (React.createElement("div", { className: "bianic-text-input-desc flex justify-between gap-1 text-xs ".concat(descColor) },
|
|
2307
2311
|
React.createElement("span", null, descText),
|
|
2308
2312
|
maxLength && (React.createElement("span", null,
|
|
2309
2313
|
remainWords,
|
|
@@ -3692,7 +3696,7 @@ function Modal(_a) {
|
|
|
3692
3696
|
if (open) {
|
|
3693
3697
|
return (
|
|
3694
3698
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
|
|
3695
|
-
reactDom.createPortal(React.createElement("div", { className: "bianic-modal-wrapper fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: { zIndex: !zIndex && isNaN(zIndex) ? 'auto' : zIndex }, id: "wrapper",
|
|
3699
|
+
reactDom.createPortal(React.createElement("div", { className: "bianic-modal-wrapper fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: { zIndex: !zIndex && isNaN(zIndex) ? 'auto' : zIndex }, id: "wrapper", onPointerDown: handleClose },
|
|
3696
3700
|
React.createElement("div", { className: "bianic-modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize), onClick: onClick },
|
|
3697
3701
|
React.createElement("div", { className: "bianic-modal-header flex justify-between" },
|
|
3698
3702
|
React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
|
|
@@ -3702,6 +3706,14 @@ function Modal(_a) {
|
|
|
3702
3706
|
return null;
|
|
3703
3707
|
}
|
|
3704
3708
|
|
|
3709
|
+
var Notification = function (props) {
|
|
3710
|
+
var children = props.children, _a = props.color, color = _a === void 0 ? 'red' : _a, _b = props.isVisible, isVisible = _b === void 0 ? true : _b;
|
|
3711
|
+
var bgColor = color === 'red' ? 'bg-bia-red' : 'bg-bia-white';
|
|
3712
|
+
return (React.createElement("div", { className: "relative" },
|
|
3713
|
+
React.createElement("div", { className: "absolute -right-[3px] -top-[3px] h-1.5 w-1.5 rounded-radius-full ".concat(bgColor), style: { display: isVisible ? 'block' : 'none' } }),
|
|
3714
|
+
children));
|
|
3715
|
+
};
|
|
3716
|
+
|
|
3705
3717
|
var sizeConfig$2 = {
|
|
3706
3718
|
md: 'min-w-[38px] h-[40px] text-[14px] font-semibold',
|
|
3707
3719
|
sm: 'min-w-[29px] h-[30px] text-[12px] font-normal',
|
|
@@ -4509,6 +4521,7 @@ exports.LiveSearch = LiveSearch;
|
|
|
4509
4521
|
exports.MenuContainer = MenuContainer;
|
|
4510
4522
|
exports.MenuItem = MenuItem;
|
|
4511
4523
|
exports.Modal = Modal;
|
|
4524
|
+
exports.Notification = Notification;
|
|
4512
4525
|
exports.P = P;
|
|
4513
4526
|
exports.PaginationBar = PaginationBar;
|
|
4514
4527
|
exports.PickerCalendar = PickerCalendar;
|