phx-react 1.3.816 → 1.3.817
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.
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
exports.__esModule = true;
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
var outline_1 = require("@heroicons/react/24/outline");
|
|
5
6
|
var Icon = function (_a) {
|
|
6
7
|
var type = _a.type;
|
|
7
8
|
return (react_1["default"].createElement(react_1["default"].Fragment, null,
|
|
8
|
-
type === 'informational' &&
|
|
9
|
-
|
|
10
|
-
type === '
|
|
11
|
-
|
|
12
|
-
type === 'warning' && (react_1["default"].createElement("svg", { className: 'mr-2 h-4 w-4', fill: 'none', stroke: 'currentColor', strokeWidth: '2', viewBox: '0 0 22 22', xmlns: 'http://www.w3.org/2000/svg' },
|
|
13
|
-
react_1["default"].createElement("path", { d: 'M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z', strokeLinecap: 'round', strokeLinejoin: 'round' }))),
|
|
14
|
-
type === 'danger' && (react_1["default"].createElement("svg", { className: 'mr-2 h-4 w-4', fill: 'none', stroke: 'currentColor', strokeWidth: '2', viewBox: '0 0 22 22', xmlns: 'http://www.w3.org/2000/svg' },
|
|
15
|
-
react_1["default"].createElement("path", { d: 'M12 9v3.75m0-10.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.249-8.25-3.286zm0 13.036h.008v.008H12v-.008z', strokeLinecap: 'round', strokeLinejoin: 'round' })))));
|
|
9
|
+
type === 'informational' && react_1["default"].createElement(outline_1.InformationCircleIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' }),
|
|
10
|
+
type === 'success' && react_1["default"].createElement(outline_1.CheckIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' }),
|
|
11
|
+
type === 'warning' && react_1["default"].createElement(outline_1.ExclamationTriangleIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' }),
|
|
12
|
+
type === 'danger' && react_1["default"].createElement(outline_1.ExclamationCircleIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' })));
|
|
16
13
|
};
|
|
17
14
|
exports["default"] = Icon;
|
|
18
15
|
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/BannerWithCard/Icon.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/BannerWithCard/Icon.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AAEzB,uDAKoC;AAKpC,IAAM,IAAI,GAAkB,UAAC,EAAQ;QAAN,IAAI,UAAA;IAAO,OAAA,CACxC;QACG,IAAI,KAAK,eAAe,IAAI,iCAAC,+BAAqB,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG;QAC3G,IAAI,KAAK,SAAS,IAAI,iCAAC,mBAAS,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG;QACzF,IAAI,KAAK,SAAS,IAAI,iCAAC,iCAAuB,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG;QACvG,IAAI,KAAK,QAAQ,IAAI,iCAAC,+BAAqB,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG,CACpG,CACJ;AAPyC,CAOzC,CAAA;AACD,qBAAe,IAAI,CAAA"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { InformationCircleIcon, CheckIcon, ExclamationTriangleIcon, ExclamationCircleIcon, } from '@heroicons/react/24/outline';
|
|
2
3
|
var Icon = function (_a) {
|
|
3
4
|
var type = _a.type;
|
|
4
5
|
return (React.createElement(React.Fragment, null,
|
|
5
|
-
type === 'informational' &&
|
|
6
|
-
|
|
7
|
-
type === '
|
|
8
|
-
|
|
9
|
-
type === 'warning' && (React.createElement("svg", { className: 'mr-2 h-4 w-4', fill: 'none', stroke: 'currentColor', strokeWidth: '2', viewBox: '0 0 22 22', xmlns: 'http://www.w3.org/2000/svg' },
|
|
10
|
-
React.createElement("path", { d: 'M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z', strokeLinecap: 'round', strokeLinejoin: 'round' }))),
|
|
11
|
-
type === 'danger' && (React.createElement("svg", { className: 'mr-2 h-4 w-4', fill: 'none', stroke: 'currentColor', strokeWidth: '2', viewBox: '0 0 22 22', xmlns: 'http://www.w3.org/2000/svg' },
|
|
12
|
-
React.createElement("path", { d: 'M12 9v3.75m0-10.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.75c0 5.592 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.57-.598-3.75h-.152c-3.196 0-6.1-1.249-8.25-3.286zm0 13.036h.008v.008H12v-.008z', strokeLinecap: 'round', strokeLinejoin: 'round' })))));
|
|
6
|
+
type === 'informational' && React.createElement(InformationCircleIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' }),
|
|
7
|
+
type === 'success' && React.createElement(CheckIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' }),
|
|
8
|
+
type === 'warning' && React.createElement(ExclamationTriangleIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' }),
|
|
9
|
+
type === 'danger' && React.createElement(ExclamationCircleIcon, { className: 'mr-2 h-[18px] w-[18px]', "aria-hidden": 'true' })));
|
|
13
10
|
};
|
|
14
11
|
export default Icon;
|
|
15
12
|
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/BannerWithCard/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/BannerWithCard/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,6BAA6B,CAAA;AAKpC,IAAM,IAAI,GAAkB,UAAC,EAAQ;QAAN,IAAI,UAAA;IAAO,OAAA,CACxC;QACG,IAAI,KAAK,eAAe,IAAI,oBAAC,qBAAqB,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG;QAC3G,IAAI,KAAK,SAAS,IAAI,oBAAC,SAAS,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG;QACzF,IAAI,KAAK,SAAS,IAAI,oBAAC,uBAAuB,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG;QACvG,IAAI,KAAK,QAAQ,IAAI,oBAAC,qBAAqB,IAAC,SAAS,EAAC,wBAAwB,iBAAa,MAAM,GAAG,CACpG,CACJ;AAPyC,CAOzC,CAAA;AACD,eAAe,IAAI,CAAA"}
|