@groupeactual/ui-kit 0.4.24 → 0.4.25
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/components/EmbbededNotification/EmbeddedNotification.d.ts +9 -0
- package/dist/cjs/components/EmbbededNotification/index.d.ts +1 -0
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/index.js +45 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/EmbbededNotification/EmbeddedNotification.d.ts +9 -0
- package/dist/esm/components/EmbbededNotification/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/index.js +45 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +28 -21
- package/package.json +3 -1
- package/src/components/EmbbededNotification/EmbeddedNotification.tsx +95 -0
- package/src/components/EmbbededNotification/index.ts +1 -0
- package/src/components/index.ts +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
interface Props extends BoxProps {
|
|
4
|
+
variant: 'warning' | 'error' | 'success' | 'infos';
|
|
5
|
+
title: string;
|
|
6
|
+
text?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const EmbeddedNotification: ({ title, text, variant, ...props }: Props) => JSX.Element;
|
|
9
|
+
export default EmbeddedNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './EmbeddedNotification';
|
|
@@ -7,3 +7,4 @@ export { default as Accordion } from './Accordion';
|
|
|
7
7
|
export { default as IconProvider } from './Icon/Icon';
|
|
8
8
|
export { default as Pagination } from './Pagination';
|
|
9
9
|
export { default as Chip } from './Chip/Chip';
|
|
10
|
+
export { default as EmbeddedNotification } from './EmbbededNotification/EmbeddedNotification';
|
package/dist/cjs/index.js
CHANGED
|
@@ -52341,6 +52341,50 @@ var Chip = function (props) {
|
|
|
52341
52341
|
return jsxRuntime.jsx(ChipMUI, __assign$1({}, props));
|
|
52342
52342
|
};
|
|
52343
52343
|
|
|
52344
|
+
var faCircleExclamation = {
|
|
52345
|
+
prefix: 'fas',
|
|
52346
|
+
iconName: 'circle-exclamation',
|
|
52347
|
+
icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]
|
|
52348
|
+
};
|
|
52349
|
+
var faCircleCheck = {
|
|
52350
|
+
prefix: 'fas',
|
|
52351
|
+
iconName: 'circle-check',
|
|
52352
|
+
icon: [512, 512, [61533, "check-circle"], "f058", "M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]
|
|
52353
|
+
};
|
|
52354
|
+
var faCircleInfo = {
|
|
52355
|
+
prefix: 'fas',
|
|
52356
|
+
iconName: 'circle-info',
|
|
52357
|
+
icon: [512, 512, ["info-circle"], "f05a", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]
|
|
52358
|
+
};
|
|
52359
|
+
var faCircleXmark = {
|
|
52360
|
+
prefix: 'fas',
|
|
52361
|
+
iconName: 'circle-xmark',
|
|
52362
|
+
icon: [512, 512, [61532, "times-circle", "xmark-circle"], "f057", "M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]
|
|
52363
|
+
};
|
|
52364
|
+
|
|
52365
|
+
var EmbeddedNotification = function (_a) {
|
|
52366
|
+
var title = _a.title, text = _a.text, _b = _a.variant, variant = _b === void 0 ? 'infos' : _b, props = __rest(_a, ["title", "text", "variant"]);
|
|
52367
|
+
var variantNotification = {
|
|
52368
|
+
warning: {
|
|
52369
|
+
color: 'orangeWarning',
|
|
52370
|
+
icon: faCircleExclamation
|
|
52371
|
+
},
|
|
52372
|
+
error: {
|
|
52373
|
+
color: 'redError',
|
|
52374
|
+
icon: faCircleXmark
|
|
52375
|
+
},
|
|
52376
|
+
success: {
|
|
52377
|
+
color: 'greenSuccess',
|
|
52378
|
+
icon: faCircleCheck
|
|
52379
|
+
},
|
|
52380
|
+
infos: {
|
|
52381
|
+
color: 'blueInfo',
|
|
52382
|
+
icon: faCircleInfo
|
|
52383
|
+
}
|
|
52384
|
+
};
|
|
52385
|
+
return (jsxRuntime.jsx(Box$1, __assign$1({ border: "1px solid", borderColor: variantNotification[variant].color, mt: "4px", p: "4px", borderRadius: "5px" }, props, { children: jsxRuntime.jsxs(Box$1, __assign$1({ display: "flex", alignItems: "center", pb: "2px" }, { children: [jsxRuntime.jsx(Box$1, __assign$1({ sx: { pl: '12px', pr: '16px', display: 'flex' } }, { children: jsxRuntime.jsx(Icon, { icon: variantNotification[variant].icon, color: variantNotification[variant].color }) })), jsxRuntime.jsxs(Box$1, { children: [jsxRuntime.jsx(Box$1, { children: jsxRuntime.jsx(Text, __assign$1({ align: "left", variant: "body1Bold", color: variantNotification[variant].color, display: "inline-block" }, { children: title })) }), text && (jsxRuntime.jsx(Box$1, { children: jsxRuntime.jsx(Text, __assign$1({ align: "left", variant: "body1Regular", color: "greyDark", display: "inline-block" }, { children: text })) }))] })] })) })));
|
|
52386
|
+
};
|
|
52387
|
+
|
|
52344
52388
|
/******************************************************************************
|
|
52345
52389
|
Copyright (c) Microsoft Corporation.
|
|
52346
52390
|
|
|
@@ -53262,6 +53306,7 @@ exports.Checkbox = Checkbox;
|
|
|
53262
53306
|
exports.Chip = Chip;
|
|
53263
53307
|
exports.DesignSystemContext = DesignSystemContext;
|
|
53264
53308
|
exports.DesignSystemProvider = DesignSystemProvider;
|
|
53309
|
+
exports.EmbeddedNotification = EmbeddedNotification;
|
|
53265
53310
|
exports.IconProvider = Icon;
|
|
53266
53311
|
exports.Link = Link;
|
|
53267
53312
|
exports.Pagination = Pagination;
|