phx-react 1.3.865 → 1.3.866
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.
|
@@ -8,11 +8,11 @@ var icon_1 = require("./assets/icon");
|
|
|
8
8
|
function PHXBadge(_a) {
|
|
9
9
|
var text = _a.text, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, removeButton = _a.removeButton, onClick = _a.onClick;
|
|
10
10
|
var typeClassName = (0, types_1.classNames)(type === 'default' && 'bg-neutral-100 text-neutral-700', type === 'success' && 'bg-green-100 text-green-700', type === 'informational' && 'bg-blue-100 text-blue-700', type === 'attention' && 'bg-yellow-100 text-yellow-700', type === 'warning' && 'bg-orange-100 text-orange-700 ', type === 'danger' && 'bg-red-100 text-red-700');
|
|
11
|
-
return (react_1["default"].createElement("div", { className: "rounded-xl items-center py-0.5 text-
|
|
11
|
+
return (react_1["default"].createElement("div", { className: "rounded-xl items-center py-0.5 text-xxs font-normal flex leading-4 w-fit gap-1 px-2 ".concat(typeClassName, " ").concat(className) },
|
|
12
12
|
react_1["default"].createElement("img", { alt: 'icon', className: (0, types_1.classNames)('h-[12px] w-[12px] text-gray-950'), height: 100,
|
|
13
13
|
// @ts-ignore
|
|
14
14
|
src: icon_1.Icons[type.toUpperCase()], width: 100 }),
|
|
15
|
-
react_1["default"].createElement("p",
|
|
15
|
+
react_1["default"].createElement("p", { className: 'font-medium' }, text),
|
|
16
16
|
removeButton && (react_1["default"].createElement("button", { onClick: onClick, className: 'pl-0.5 py-0.5 rounded-lg hover:bg-gray-300' },
|
|
17
17
|
react_1["default"].createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', strokeWidth: '1.5', stroke: 'currentColor', className: 'w-3 h-3' },
|
|
18
18
|
react_1["default"].createElement("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6 18L18 6M6 6l12 12' }))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,kCAAqC;AACrC,sCAAqC;AAUrC,SAAgB,QAAQ,CAAC,EAAwE;QAAtE,IAAI,UAAA,EAAE,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA,EAAE,SAAS,eAAA,EAAE,YAAY,kBAAA,EAAE,OAAO,aAAA;IACjF,IAAM,aAAa,GAAG,IAAA,kBAAU,EAC9B,IAAI,KAAK,SAAS,IAAI,iCAAiC,EACvD,IAAI,KAAK,SAAS,IAAI,6BAA6B,EACnD,IAAI,KAAK,eAAe,IAAI,2BAA2B,EACvD,IAAI,KAAK,WAAW,IAAI,+BAA+B,EACvD,IAAI,KAAK,SAAS,IAAI,gCAAgC,EACtD,IAAI,KAAK,QAAQ,IAAI,yBAAyB,CAC/C,CAAA;IACD,OAAO,CACL,0CACE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,kCAAqC;AACrC,sCAAqC;AAUrC,SAAgB,QAAQ,CAAC,EAAwE;QAAtE,IAAI,UAAA,EAAE,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA,EAAE,SAAS,eAAA,EAAE,YAAY,kBAAA,EAAE,OAAO,aAAA;IACjF,IAAM,aAAa,GAAG,IAAA,kBAAU,EAC9B,IAAI,KAAK,SAAS,IAAI,iCAAiC,EACvD,IAAI,KAAK,SAAS,IAAI,6BAA6B,EACnD,IAAI,KAAK,eAAe,IAAI,2BAA2B,EACvD,IAAI,KAAK,WAAW,IAAI,+BAA+B,EACvD,IAAI,KAAK,SAAS,IAAI,gCAAgC,EACtD,IAAI,KAAK,QAAQ,IAAI,yBAAyB,CAC/C,CAAA;IACD,OAAO,CACL,0CACE,SAAS,EAAE,gGAAyF,aAAa,cAAI,SAAS,CAAE;QAEhI,0CACE,GAAG,EAAC,MAAM,EACV,SAAS,EAAE,IAAA,kBAAU,EAAC,iCAAiC,CAAC,EACxD,MAAM,EAAE,GAAG;YACX,aAAa;YACb,GAAG,EAAE,YAAK,CAAC,IAAI,CAAC,WAAW,EAAwB,CAAC,EACpD,KAAK,EAAE,GAAG,GACV;QACF,wCAAG,SAAS,EAAC,aAAa,IAAE,IAAI,CAAK;QACpC,YAAY,IAAI,CACf,6CAAQ,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,6CAA6C;YAC/E,0CACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAC,KAAK,EACjB,MAAM,EAAC,cAAc,EACrB,SAAS,EAAC,SAAS;gBAEnB,2CAAM,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,CAAC,EAAC,sBAAsB,GAAG,CAC1E,CACC,CACV,CACG,CACP,CAAA;AACH,CAAC;AAtCD,4BAsCC"}
|
|
@@ -4,11 +4,11 @@ import { Icons } from './assets/icon';
|
|
|
4
4
|
export function PHXBadge(_a) {
|
|
5
5
|
var text = _a.text, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, removeButton = _a.removeButton, onClick = _a.onClick;
|
|
6
6
|
var typeClassName = classNames(type === 'default' && 'bg-neutral-100 text-neutral-700', type === 'success' && 'bg-green-100 text-green-700', type === 'informational' && 'bg-blue-100 text-blue-700', type === 'attention' && 'bg-yellow-100 text-yellow-700', type === 'warning' && 'bg-orange-100 text-orange-700 ', type === 'danger' && 'bg-red-100 text-red-700');
|
|
7
|
-
return (React.createElement("div", { className: "rounded-xl items-center py-0.5 text-
|
|
7
|
+
return (React.createElement("div", { className: "rounded-xl items-center py-0.5 text-xxs font-normal flex leading-4 w-fit gap-1 px-2 ".concat(typeClassName, " ").concat(className) },
|
|
8
8
|
React.createElement("img", { alt: 'icon', className: classNames('h-[12px] w-[12px] text-gray-950'), height: 100,
|
|
9
9
|
// @ts-ignore
|
|
10
10
|
src: Icons[type.toUpperCase()], width: 100 }),
|
|
11
|
-
React.createElement("p",
|
|
11
|
+
React.createElement("p", { className: 'font-medium' }, text),
|
|
12
12
|
removeButton && (React.createElement("button", { onClick: onClick, className: 'pl-0.5 py-0.5 rounded-lg hover:bg-gray-300' },
|
|
13
13
|
React.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', strokeWidth: '1.5', stroke: 'currentColor', className: 'w-3 h-3' },
|
|
14
14
|
React.createElement("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6 18L18 6M6 6l12 12' }))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAUrC,MAAM,UAAU,QAAQ,CAAC,EAAwE;QAAtE,IAAI,UAAA,EAAE,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA,EAAE,SAAS,eAAA,EAAE,YAAY,kBAAA,EAAE,OAAO,aAAA;IACjF,IAAM,aAAa,GAAG,UAAU,CAC9B,IAAI,KAAK,SAAS,IAAI,iCAAiC,EACvD,IAAI,KAAK,SAAS,IAAI,6BAA6B,EACnD,IAAI,KAAK,eAAe,IAAI,2BAA2B,EACvD,IAAI,KAAK,WAAW,IAAI,+BAA+B,EACvD,IAAI,KAAK,SAAS,IAAI,gCAAgC,EACtD,IAAI,KAAK,QAAQ,IAAI,yBAAyB,CAC/C,CAAA;IACD,OAAO,CACL,6BACE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM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