bianic-ui 2.4.0 → 2.5.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 +10 -1
- 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 +10 -2
- 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
|
@@ -17,6 +17,7 @@ export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle,
|
|
|
17
17
|
export * from './Icons';
|
|
18
18
|
export { default as InfoPanel } from './InfoPanel';
|
|
19
19
|
export { default as Modal } from './Modal/Modal';
|
|
20
|
+
export { default as Notification } from './Notification';
|
|
20
21
|
export { default as PaginationBar } from './PaginationBar/PaginationBar';
|
|
21
22
|
export { default as Pills } from './Pills/Pills';
|
|
22
23
|
export { default as Popover } from './Popover';
|
package/dist/esm/index.js
CHANGED
|
@@ -3690,7 +3690,7 @@ function Modal(_a) {
|
|
|
3690
3690
|
if (open) {
|
|
3691
3691
|
return (
|
|
3692
3692
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
|
|
3693
|
-
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",
|
|
3693
|
+
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 },
|
|
3694
3694
|
React.createElement("div", { className: "bianic-modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize), onClick: onClick },
|
|
3695
3695
|
React.createElement("div", { className: "bianic-modal-header flex justify-between" },
|
|
3696
3696
|
React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
|
|
@@ -3700,6 +3700,14 @@ function Modal(_a) {
|
|
|
3700
3700
|
return null;
|
|
3701
3701
|
}
|
|
3702
3702
|
|
|
3703
|
+
var Notification = function (props) {
|
|
3704
|
+
var children = props.children, _a = props.color, color = _a === void 0 ? 'red' : _a, _b = props.isVisible, isVisible = _b === void 0 ? true : _b;
|
|
3705
|
+
var bgColor = color === 'red' ? 'bg-bia-red' : 'bg-bia-white';
|
|
3706
|
+
return (React.createElement("div", { className: "relative" },
|
|
3707
|
+
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' } }),
|
|
3708
|
+
children));
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3703
3711
|
var sizeConfig$2 = {
|
|
3704
3712
|
md: 'min-w-[38px] h-[40px] text-[14px] font-semibold',
|
|
3705
3713
|
sm: 'min-w-[29px] h-[30px] text-[12px] font-normal',
|
|
@@ -4455,4 +4463,4 @@ function getRelativeTime(date) {
|
|
|
4455
4463
|
return "".concat(Math.floor(diffMs / year), " years ago");
|
|
4456
4464
|
}
|
|
4457
4465
|
|
|
4458
|
-
export { Accordions, Alert, Avatar, AlertRoundedSquare as BCAlertRoundedSquare, CubeHeader as BCCubeHeader, Discrepancy as BCDiscrepancy, ExposedPort as BCExposedPort, FQAnalytical as BCFQAnalytical, FQGetaway as BCFQGetaway, FQModeler as BCFQModeler, FQOperation as BCFQOperation, FQWelldone as BCFQWelldone, Flowqount as BCFlowqount, Inlet as BCInlet, Legend as BCLegend, ModalBalance as BCModalBalance, Neutral as BCNeutral, Node as BCNode, Outlet as BCOutlet, Port as BCPort, SelectAllAdd as BCSelectAllAdd, SelectAllRemove as BCSelectAllRemove, Spinner$1 as BCSpinner, Stack as BCStack, VirtualPort as BCVirtualPort, Badge, Banner, Brand, Breadcrumb, Button, ButtonApp, Card, Checkbox, Color, ContextualButton, DatePicker, Display, Divider, DropdownContainer, DropdownItem, FileTree, FormGroup, FormGroupButton, FormGroupLabel, FormLabel, Heading, InfoPanel, Link, LiveSearch, MenuContainer, MenuItem, Modal, P, PaginationBar, PickerCalendar, Pills, Popover, ProgressBar, ProgressCircle, Radio, ResizeableDiv, SegmentButtonGroup, SegmentButtonItem, SelectInput, Slider, Spinner, Tab, TabMenu, TableCell, TagLabel, Text, TextArea, TextInput, Toaster, Toggle, Tooltip, TreeItem, Window, getRelativeTime, useFileTree };
|
|
4466
|
+
export { Accordions, Alert, Avatar, AlertRoundedSquare as BCAlertRoundedSquare, CubeHeader as BCCubeHeader, Discrepancy as BCDiscrepancy, ExposedPort as BCExposedPort, FQAnalytical as BCFQAnalytical, FQGetaway as BCFQGetaway, FQModeler as BCFQModeler, FQOperation as BCFQOperation, FQWelldone as BCFQWelldone, Flowqount as BCFlowqount, Inlet as BCInlet, Legend as BCLegend, ModalBalance as BCModalBalance, Neutral as BCNeutral, Node as BCNode, Outlet as BCOutlet, Port as BCPort, SelectAllAdd as BCSelectAllAdd, SelectAllRemove as BCSelectAllRemove, Spinner$1 as BCSpinner, Stack as BCStack, VirtualPort as BCVirtualPort, Badge, Banner, Brand, Breadcrumb, Button, ButtonApp, Card, Checkbox, Color, ContextualButton, DatePicker, Display, Divider, DropdownContainer, DropdownItem, FileTree, FormGroup, FormGroupButton, FormGroupLabel, FormLabel, Heading, InfoPanel, Link, LiveSearch, MenuContainer, MenuItem, Modal, Notification, P, PaginationBar, PickerCalendar, Pills, Popover, ProgressBar, ProgressCircle, Radio, ResizeableDiv, SegmentButtonGroup, SegmentButtonItem, SelectInput, Slider, Spinner, Tab, TabMenu, TableCell, TagLabel, Text, TextArea, TextInput, Toaster, Toggle, Tooltip, TreeItem, Window, getRelativeTime, useFileTree };
|