opus-toolkit-components 0.7.2 → 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
  });
@@ -3570,14 +3571,14 @@ function Button(_ref) {
3570
3571
  // Define styles for button ranks
3571
3572
  const rankStyles = {
3572
3573
  primary: 'bg-[--color-primary-btn] hover:bg-[--color-primary-btn-hover] text-greyBaseLight',
3573
- secondary: 'bg-greyBaseDark900 hover:bg-brandPink700 text-greyBaseLight',
3574
- outline: 'bg-greyLight50 border-solid border-2 border-[--color-outline-btn] hover:border-[--color-outline-btn-hover] text-[--color-text-strong]',
3574
+ secondary: 'bg-transparent hover:bg-brandPink700 text-greyBaseLight',
3575
+ outline: 'bg-[--color-input-bg] border-solid border-2 border-[--color-outline-btn] hover:border-[--color-outline-btn-hover] text-[--color-text-strong]',
3575
3576
  neutral: 'bg-greyLight50 hover:bg-greyLight100 text-greyLight700',
3576
3577
  destructive: 'bg-utilRed1000 hover:bg-utilRed800 text-greyBaseLight'
3577
3578
  };
3578
3579
 
3579
3580
  // Disabled styles for button
3580
- const disabledStyles = 'bg-greyLight100 text-greyLight500 cursor-not-allowed';
3581
+ const disabledStyles = 'bg-[--color-input-bg] text-[--color-text-weak] cursor-not-allowed';
3581
3582
 
3582
3583
  // Icon animation style (if applicable)
3583
3584
  const iconClassNames = "inline-block \n transition-transform \n ease-in-out \n duration-200\n h-5 w-5\n ".concat(iconPosition === 'right' ? 'ml-2' : 'mr-2', "\n ").concat(isIconAnimated && !isSaving ? 'group-hover:translate-x-1' : '', "\n ").concat(isSaving ? 'animate-spin' : '', " // Add spinning animation\n ");
@@ -3952,13 +3953,13 @@ function Table(_ref) {
3952
3953
  className: "bg-[--color-table-head-bg] ".concat(headRowClassName)
3953
3954
  }, data.map(column => /*#__PURE__*/external_react_default().createElement("th", {
3954
3955
  key: column.key,
3955
- className: "border-b border-gray-300 py-2 px-4 text-sm font-normal text-greyDark1000 ".concat(headCellClassName)
3956
+ className: "border-b border-[--color-stroke] py-2 px-4 text-sm font-normal text-[--color-text-strong] ".concat(headCellClassName)
3956
3957
  }, column.header)))), /*#__PURE__*/external_react_default().createElement("tbody", null, rows.map((row, index) => /*#__PURE__*/external_react_default().createElement("tr", {
3957
3958
  key: rowKeyExtractor(row, index),
3958
- className: "".concat(index % 2 === 0 ? "bg-greyLight100" : "bg-greyLight50", " hover:bg-greyLight500 ").concat(rowClassName)
3959
+ className: "".concat(index % 2 === 0 ? "bg-[--color-table-row-bg-even]" : "bg-[--color-table-row-bg-odd]", " hover:bg-[--color-table-row-bg-hover] ").concat(rowClassName)
3959
3960
  }, data.map(column => /*#__PURE__*/external_react_default().createElement("td", {
3960
3961
  key: column.key,
3961
- className: "p-4 text-sm text-greyLight700 ".concat(cellClassName)
3962
+ className: "p-4 text-sm text-[--color-text-weak] ".concat(cellClassName)
3962
3963
  }, column.render ? column.render(row) : row[column.key]))))));
3963
3964
  }
3964
3965
  ;// ./node_modules/@react-aria/utils/dist/platform.mjs
@@ -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.35bcd6f8c80839a980a8.js.map
12456
+ //# sourceMappingURL=main.eaa73c32b68eb30f0fde.js.map