opus-toolkit-components 0.7.1 → 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.
@@ -588,6 +588,7 @@ __webpack_require__.d(__webpack_exports__, {
588
588
  Accordion: () => (/* reexport */ Accordions_Accordion),
589
589
  Button: () => (/* reexport */ Button),
590
590
  Card: () => (/* reexport */ Card),
591
+ Checkbox: () => (/* reexport */ Checkbox),
591
592
  DatePicker: () => (/* reexport */ DatePicker),
592
593
  Dropdown: () => (/* reexport */ Dropdown),
593
594
  Input: () => (/* reexport */ Inputs_Input),
@@ -3569,14 +3570,14 @@ function Button(_ref) {
3569
3570
  // Define styles for button ranks
3570
3571
  const rankStyles = {
3571
3572
  primary: 'bg-[--color-primary-btn] hover:bg-[--color-primary-btn-hover] text-greyBaseLight',
3572
- secondary: 'bg-greyBaseDark900 hover:bg-brandPink700 text-greyBaseLight',
3573
- outline: 'bg-greyLight50 border-solid border-2 border-[--color-outline-btn] hover:border-[--color-outline-btn-hover] text-[--color-text-strong]',
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]',
3574
3575
  neutral: 'bg-greyLight50 hover:bg-greyLight100 text-greyLight700',
3575
3576
  destructive: 'bg-utilRed1000 hover:bg-utilRed800 text-greyBaseLight'
3576
3577
  };
3577
3578
 
3578
3579
  // Disabled styles for button
3579
- const disabledStyles = 'bg-greyLight100 text-greyLight500 cursor-not-allowed';
3580
+ const disabledStyles = 'bg-[--color-input-bg] text-[--color-text-weak] cursor-not-allowed';
3580
3581
 
3581
3582
  // Icon animation style (if applicable)
3582
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 ");
@@ -3873,6 +3874,33 @@ const RadioButton = _ref => {
3873
3874
  };
3874
3875
  RadioButton.displayName = 'RadioButton';
3875
3876
  /* harmony default export */ const Radios_RadioButton = (RadioButton);
3877
+ ;// ./src/components/Forms/Checkbox/Checkbox.jsx
3878
+
3879
+ function Checkbox(_ref) {
3880
+ let {
3881
+ label,
3882
+ name,
3883
+ onChange,
3884
+ value = false,
3885
+ isValid = true,
3886
+ errorMessage = "",
3887
+ disabled = false
3888
+ } = _ref;
3889
+ return /*#__PURE__*/external_react_default().createElement("div", {
3890
+ className: "flex flex-col mb-4"
3891
+ }, /*#__PURE__*/external_react_default().createElement("label", {
3892
+ className: "flex items-center text-[--color-text-weak]"
3893
+ }, /*#__PURE__*/external_react_default().createElement("input", {
3894
+ type: "checkbox",
3895
+ name: name,
3896
+ checked: value,
3897
+ onChange: onChange,
3898
+ disabled: disabled,
3899
+ className: "mr-2 cursor-pointer"
3900
+ }), label), !isValid && errorMessage && /*#__PURE__*/external_react_default().createElement("span", {
3901
+ className: "text-rose-500 text-sm mt-1"
3902
+ }, errorMessage));
3903
+ }
3876
3904
  // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/components/Tables/table.scss
3877
3905
  var table = __webpack_require__(705);
3878
3906
  ;// ./src/components/Tables/table.scss
@@ -3924,13 +3952,13 @@ function Table(_ref) {
3924
3952
  className: "bg-[--color-table-head-bg] ".concat(headRowClassName)
3925
3953
  }, data.map(column => /*#__PURE__*/external_react_default().createElement("th", {
3926
3954
  key: column.key,
3927
- className: "border-b border-gray-300 py-2 px-4 text-sm font-normal text-greyDark1000 ".concat(headCellClassName)
3955
+ className: "border-b border-[--color-stroke] py-2 px-4 text-sm font-normal text-[--color-text-strong] ".concat(headCellClassName)
3928
3956
  }, column.header)))), /*#__PURE__*/external_react_default().createElement("tbody", null, rows.map((row, index) => /*#__PURE__*/external_react_default().createElement("tr", {
3929
3957
  key: rowKeyExtractor(row, index),
3930
- className: "".concat(index % 2 === 0 ? "bg-greyLight100" : "bg-greyLight50", " hover:bg-greyLight500 ").concat(rowClassName)
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)
3931
3959
  }, data.map(column => /*#__PURE__*/external_react_default().createElement("td", {
3932
3960
  key: column.key,
3933
- className: "p-4 text-sm text-greyLight700 ".concat(cellClassName)
3961
+ className: "p-4 text-sm text-[--color-text-weak] ".concat(cellClassName)
3934
3962
  }, column.render ? column.render(row) : row[column.key]))))));
3935
3963
  }
3936
3964
  ;// ./node_modules/@react-aria/utils/dist/platform.mjs
@@ -12396,8 +12424,9 @@ function Loader(_ref) {
12396
12424
 
12397
12425
 
12398
12426
 
12427
+
12399
12428
  /******/ return __webpack_exports__;
12400
12429
  /******/ })()
12401
12430
  ;
12402
12431
  });
12403
- //# sourceMappingURL=main.9756d83ef5ec8bb54c1e.js.map
12432
+ //# sourceMappingURL=main.6710a9addb593f916cf3.js.map