opus-toolkit-components 0.7.3 → 0.7.5

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.
@@ -595,6 +595,7 @@ __webpack_require__.d(__webpack_exports__, {
595
595
  Loader: () => (/* reexport */ Loader),
596
596
  Modal: () => (/* reexport */ Modals_Modal),
597
597
  Navbar: () => (/* reexport */ Navbar_Navbar),
598
+ Pill: () => (/* reexport */ Pills_Pill),
598
599
  RadioButton: () => (/* reexport */ Radios_RadioButton),
599
600
  Table: () => (/* reexport */ Table)
600
601
  });
@@ -12412,6 +12413,31 @@ function Loader(_ref) {
12412
12413
  className: "mt-4 text-greyBaseLight text-lg font-medium animate-pulse"
12413
12414
  }, loaderText));
12414
12415
  }
12416
+ ;// ./src/components/Pills/Pill.js
12417
+
12418
+ const statusClasses = {
12419
+ danger: "bg-[--color-util-red] text-[--color-white]",
12420
+ warning: "bg-[--color-util-amber] text-[--color-white]",
12421
+ success: "bg-[--color-util-green] text-[--color-white]",
12422
+ info: "bg-[--color-util-blue] text-[--color-white]",
12423
+ notice: "bg-[--color-util-yellow] text-[--color-black]"
12424
+ };
12425
+ const Pill = _ref => {
12426
+ let {
12427
+ text,
12428
+ status = "info",
12429
+ className = "",
12430
+ icon: Icon
12431
+ } = _ref;
12432
+ const baseClasses = "inline-flex items-center gap-1 text-xs font-medium px-3 py-1 rounded-full";
12433
+ const statusClass = statusClasses[status] || statusClasses.info;
12434
+ return /*#__PURE__*/external_react_default().createElement("span", {
12435
+ className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className)
12436
+ }, Icon && /*#__PURE__*/external_react_default().createElement(Icon, {
12437
+ className: "w-4 h-4"
12438
+ }), text);
12439
+ };
12440
+ /* harmony default export */ const Pills_Pill = (Pill);
12415
12441
  ;// ./src/index.js
12416
12442
 
12417
12443
 
@@ -12425,8 +12451,9 @@ function Loader(_ref) {
12425
12451
 
12426
12452
 
12427
12453
 
12454
+
12428
12455
  /******/ return __webpack_exports__;
12429
12456
  /******/ })()
12430
12457
  ;
12431
12458
  });
12432
- //# sourceMappingURL=main.6710a9addb593f916cf3.js.map
12459
+ //# sourceMappingURL=main.83ac8a97df068a0b0db7.js.map