opus-toolkit-components 0.7.3 → 0.7.4

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,28 @@ 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]" // better contrast
12424
+ };
12425
+ const Pill = _ref => {
12426
+ let {
12427
+ text,
12428
+ status = "info",
12429
+ className = ""
12430
+ } = _ref;
12431
+ const baseClasses = "inline-block text-xs font-medium px-3 py-1 rounded-full";
12432
+ const statusClass = statusClasses[status] || statusClasses.info;
12433
+ return /*#__PURE__*/external_react_default().createElement("span", {
12434
+ className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className)
12435
+ }, text);
12436
+ };
12437
+ /* harmony default export */ const Pills_Pill = (Pill);
12415
12438
  ;// ./src/index.js
12416
12439
 
12417
12440
 
@@ -12425,8 +12448,9 @@ function Loader(_ref) {
12425
12448
 
12426
12449
 
12427
12450
 
12451
+
12428
12452
  /******/ return __webpack_exports__;
12429
12453
  /******/ })()
12430
12454
  ;
12431
12455
  });
12432
- //# sourceMappingURL=main.6710a9addb593f916cf3.js.map
12456
+ //# sourceMappingURL=main.eaa73c32b68eb30f0fde.js.map