opus-toolkit-components 1.3.8 → 1.4.0

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.
@@ -251,7 +251,7 @@ exports.useSyncExternalStoreWithSelector = function (
251
251
 
252
252
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
253
253
  // Module
254
- ___CSS_LOADER_EXPORT___.push([module.id, `input[type=date]::-webkit-calendar-picker-indicator{display:none}`, "",{"version":3,"sources":["webpack://./src/components/Forms/Datepickers/datepicker.scss"],"names":[],"mappings":"AAAA,oDACI,YAAA","sourcesContent":["input[type=\"date\"]::-webkit-calendar-picker-indicator {\r\n display: none;\r\n}"],"sourceRoot":""}]);
254
+ ___CSS_LOADER_EXPORT___.push([module.id, `input[type=date]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}@-moz-document url-prefix(){.datepicker-icon-button{display:none}input[type=date]{padding-right:.75rem}}`, "",{"version":3,"sources":["webpack://./src/components/Forms/Datepickers/datepicker.scss"],"names":[],"mappings":"AACA,oDACE,YAAA,CACA,uBAAA,CAGF,4BACE,wBACE,YAAA,CAED,iBACC,oBAAA,CAAA","sourcesContent":["/* Chrome, Edge, Safari */\r\ninput[type='date']::-webkit-calendar-picker-indicator {\r\n display: none;\r\n -webkit-appearance: none;\r\n}\r\n\r\n@-moz-document url-prefix() {\r\n .datepicker-icon-button {\r\n display: none;\r\n }\r\n input[type='date'] {\r\n padding-right: 0.75rem; // reset padding so text goes to the end\r\n }\r\n}"],"sourceRoot":""}]);
255
255
  // Exports
256
256
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
257
257
 
@@ -901,7 +901,8 @@ const Accordion = _ref => {
901
901
  className: "accordion-item",
902
902
  key: index
903
903
  }, /*#__PURE__*/external_react_default().createElement("div", {
904
- className: "\n accordion-header\n flex \n justify-between \n items-center \n bg-[--color-accordion-header]\n rounded-t-lg\n ".concat(isActive || isPreview ? '' : 'rounded-b-lg', "\n ")
904
+ onClick: !isPreview && !isLocked ? toggle : null,
905
+ className: "\n accordion-header\n flex \n justify-between \n items-center \n bg-[--color-accordion-header]\n rounded-t-lg\n ".concat(isActive || isPreview ? '' : 'rounded-b-lg', "\n hover: ").concat(!isLocked ? 'cursor-pointer' : null, " \n ")
905
906
  }, /*#__PURE__*/external_react_default().createElement("div", {
906
907
  className: "flex items-center gap-2 justify-between"
907
908
  }, /*#__PURE__*/external_react_default().createElement(Text, {
@@ -3898,7 +3899,7 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
3898
3899
  // New disabled prop
3899
3900
  dataCy
3900
3901
  } = _ref;
3901
- const inputClasses = "".concat(className, " flex items-center rounded-md bg-[--color-input-bg] border ").concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " text-md font-normal text-[--color-text-weak] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '');
3902
+ const inputClasses = "".concat(className, " flex items-center rounded-md bg-[--color-input-bg] border ").concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " text-md font-normal text-[--color-text-strong] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '');
3902
3903
  const iconClasses = "h-5 w-5 ".concat(isAnimated ? 'transition-transform duration-200 group-focus-within:scale-125' : '', " text-[--color-text-weak]");
3903
3904
  return /*#__PURE__*/external_react_default().createElement("div", {
3904
3905
  className: "flex flex-col mb-4"
@@ -4095,11 +4096,11 @@ function DatePicker(_ref) {
4095
4096
  }),
4096
4097
  "aria-invalid": !isValid,
4097
4098
  "aria-describedby": !isValid ? "".concat(name, "-error") : undefined,
4098
- className: "w-full py-2 px-3 pr-10 rounded-md bg-[--color-input-bg] border ".concat(isValid ? 'border-[--color-stroke]' : 'border-[--color-util-red]', " text-md font-normal text-[--color-text-weak] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '', " ").concat(className)
4099
+ className: "w-full py-2 px-3 pr-10 rounded-md bg-[--color-input-bg] border ".concat(isValid ? 'border-[--color-stroke]' : 'border-[--color-util-red]', " text-md font-normal text-[--color-text-strong] ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '', " ").concat(className)
4099
4100
  }), /*#__PURE__*/external_react_default().createElement("button", {
4100
4101
  type: "button",
4101
4102
  onClick: handleIconClick,
4102
- className: "absolute top-1/2 mt-1 right-3 transform",
4103
+ className: "absolute top-1/2 mt-1 right-3 transform datepicker-icon-button",
4103
4104
  "aria-label": "Open date picker",
4104
4105
  disabled: disabled
4105
4106
  }, /*#__PURE__*/external_react_default().createElement(esm_CalendarIcon, {
@@ -4188,7 +4189,6 @@ const RadioButton = _ref => {
4188
4189
  value: option.value,
4189
4190
  dataCy
4190
4191
  }),
4191
- "aria-invalid": !isValid,
4192
4192
  "aria-describedby": !isValid ? "".concat(name, "-error") : undefined
4193
4193
  }), option.label);
4194
4194
  })), !isValid && /*#__PURE__*/external_react_default().createElement(Text, {
@@ -12886,7 +12886,7 @@ function Dropdown(_ref) {
12886
12886
  const newSelectedItem = items.find(item => item.value === value) || null;
12887
12887
  setSelectedItem(newSelectedItem);
12888
12888
  }, [value, items]);
12889
- const inputClasses = "inline-flex w-full justify-between items-center rounded-md bg-[--color-input-bg] text-md font-normal border p-2 text-[--color-text-weak] ".concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '');
12889
+ const inputClasses = "inline-flex w-full justify-between items-center rounded-md bg-[--color-input-bg] text-md font-normal border p-2 text-[--color-text-strong] ".concat(isValid ? 'border-[--color-stroke]' : 'border-utilRed1000', " ").concat(disabled ? 'opacity-50 cursor-not-allowed' : '');
12890
12890
  const handleSelect = item => {
12891
12891
  if (disabled) return;
12892
12892
  setSelectedItem(item);
@@ -12932,9 +12932,9 @@ function Dropdown(_ref) {
12932
12932
  className: "h-5 w-5 text-[--color-text-weak]"
12933
12933
  }), /*#__PURE__*/external_react_default().createElement("span", null, selectedItem ? selectedItem.label : placeholder)), /*#__PURE__*/external_react_default().createElement(solid_esm_ChevronDownIcon, {
12934
12934
  "aria-hidden": "true",
12935
- className: "-mr-1 h-5 w-5 text-[--color-text-weak] transition-transform duration-200 ".concat(open ? 'rotate-180' : 'rotate-0')
12935
+ className: "ml-1 mr-1 h-5 w-5 text-[--color-text-strong] bg-[--color-input-bg] transition-transform duration-200 ".concat(open ? 'rotate-180' : 'rotate-0')
12936
12936
  })), !disabled && /*#__PURE__*/external_react_default().createElement(Et, {
12937
- className: "\r absolute \r right-0 \r z-10 \r mt-2 \r w-56 \r origin-top-right \r rounded-md \r bg-[--color-primary-bg] \r shadow-lg \r ring-1 \r ring-[--color-stroke] \r ring-opacity-1 \r focus:outline-none \r max-h-48 \r overflow-y-auto\r "
12937
+ className: " absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-[--color-primary-bg] shadow-lg ring-1 ring-[--color-stroke] ring-opacity-1 focus:outline-none max-h-48 overflow-y-auto "
12938
12938
  }, /*#__PURE__*/external_react_default().createElement("div", {
12939
12939
  className: "py-1"
12940
12940
  }, items.map((item, index) => /*#__PURE__*/external_react_default().createElement(gt, {
@@ -12946,7 +12946,7 @@ function Dropdown(_ref) {
12946
12946
  return /*#__PURE__*/external_react_default().createElement("button", {
12947
12947
  type: "button",
12948
12948
  onClick: () => handleSelect(item),
12949
- className: "block w-full px-4 py-2 text-left text-sm text-[--color-text-weak] ".concat(active ? 'bg-[--color-input-bg]' : '')
12949
+ className: "block w-full px-4 py-2 text-left text-sm text-[--color-text-strong] ".concat(active ? 'bg-[--color-input-bg]' : '')
12950
12950
  }, item.label);
12951
12951
  })))));
12952
12952
  }), !isValid && /*#__PURE__*/external_react_default().createElement(Text, {