opus-toolkit-components 0.7.2 → 0.7.3
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.
|
@@ -3570,14 +3570,14 @@ function Button(_ref) {
|
|
|
3570
3570
|
// Define styles for button ranks
|
|
3571
3571
|
const rankStyles = {
|
|
3572
3572
|
primary: 'bg-[--color-primary-btn] hover:bg-[--color-primary-btn-hover] text-greyBaseLight',
|
|
3573
|
-
secondary: 'bg-
|
|
3574
|
-
outline: 'bg-
|
|
3573
|
+
secondary: 'bg-transparent hover:bg-brandPink700 text-greyBaseLight',
|
|
3574
|
+
outline: 'bg-[--color-input-bg] border-solid border-2 border-[--color-outline-btn] hover:border-[--color-outline-btn-hover] text-[--color-text-strong]',
|
|
3575
3575
|
neutral: 'bg-greyLight50 hover:bg-greyLight100 text-greyLight700',
|
|
3576
3576
|
destructive: 'bg-utilRed1000 hover:bg-utilRed800 text-greyBaseLight'
|
|
3577
3577
|
};
|
|
3578
3578
|
|
|
3579
3579
|
// Disabled styles for button
|
|
3580
|
-
const disabledStyles = 'bg-
|
|
3580
|
+
const disabledStyles = 'bg-[--color-input-bg] text-[--color-text-weak] cursor-not-allowed';
|
|
3581
3581
|
|
|
3582
3582
|
// Icon animation style (if applicable)
|
|
3583
3583
|
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 +3952,13 @@ function Table(_ref) {
|
|
|
3952
3952
|
className: "bg-[--color-table-head-bg] ".concat(headRowClassName)
|
|
3953
3953
|
}, data.map(column => /*#__PURE__*/external_react_default().createElement("th", {
|
|
3954
3954
|
key: column.key,
|
|
3955
|
-
className: "border-b border-
|
|
3955
|
+
className: "border-b border-[--color-stroke] py-2 px-4 text-sm font-normal text-[--color-text-strong] ".concat(headCellClassName)
|
|
3956
3956
|
}, column.header)))), /*#__PURE__*/external_react_default().createElement("tbody", null, rows.map((row, index) => /*#__PURE__*/external_react_default().createElement("tr", {
|
|
3957
3957
|
key: rowKeyExtractor(row, index),
|
|
3958
|
-
className: "".concat(index % 2 === 0 ? "bg-
|
|
3958
|
+
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
3959
|
}, data.map(column => /*#__PURE__*/external_react_default().createElement("td", {
|
|
3960
3960
|
key: column.key,
|
|
3961
|
-
className: "p-4 text-sm text-
|
|
3961
|
+
className: "p-4 text-sm text-[--color-text-weak] ".concat(cellClassName)
|
|
3962
3962
|
}, column.render ? column.render(row) : row[column.key]))))));
|
|
3963
3963
|
}
|
|
3964
3964
|
;// ./node_modules/@react-aria/utils/dist/platform.mjs
|
|
@@ -12429,4 +12429,4 @@ function Loader(_ref) {
|
|
|
12429
12429
|
/******/ })()
|
|
12430
12430
|
;
|
|
12431
12431
|
});
|
|
12432
|
-
//# sourceMappingURL=main.
|
|
12432
|
+
//# sourceMappingURL=main.6710a9addb593f916cf3.js.map
|