opus-toolkit-components 1.3.9 → 1.4.1

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.
@@ -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, {
@@ -3808,7 +3809,7 @@ function Button(_ref) {
3808
3809
  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 ");
3809
3810
 
3810
3811
  // Main button class names
3811
- const classNames = " \n ".concat(state === 'disabled' || isSaving ? disabledStyles : rankStyles[rank] || rankStyles.primary, "\n group \n transition \n ease-in-out \n duration-700 \n rounded-lg\n hover:shadow-lg\n px-5 \n py-2 \n text-").concat(size, " \n flex \n items-center \n justify-center \n whitespace-nowrap // Prevents text wrapping\n ").concat(isFullWidth ? 'w-full' : '', "\n ").concat(className, "\n ");
3812
+ const classNames = " \n ".concat(state === 'disabled' || isSaving ? disabledStyles : rankStyles[rank] || rankStyles.primary, "\n group \n transition \n ease-in-out \n duration-700 \n rounded-md\n hover:shadow-lg\n px-5 \n py-1.5 \n text-").concat(size, " \n flex \n items-center \n justify-center \n whitespace-nowrap // Prevents text wrapping\n ").concat(isFullWidth ? 'w-full' : '', "\n ").concat(className, "\n ");
3812
3813
  return /*#__PURE__*/external_react_default().createElement("button", {
3813
3814
  type: type,
3814
3815
  title: title,
@@ -3920,7 +3921,7 @@ const Input = /*#__PURE__*/(0,external_react_.forwardRef)((_ref, ref) => {
3920
3921
  })), /*#__PURE__*/external_react_default().createElement("input", {
3921
3922
  id: name,
3922
3923
  ref: ref,
3923
- className: "w-full ".concat(Icon ? iconPosition === 'left' ? 'pl-10' : 'pr-10' : '', " bg-[--color-input-bg] border-none focus:ring-0 focus:outline-none rounded-md py-2 px-3"),
3924
+ className: "w-full h-[44px] ".concat(Icon ? iconPosition === 'left' ? 'pl-10' : 'pr-10' : '', " bg-[--color-input-bg] border-none focus:ring-0 focus:outline-none rounded-md py-2 px-3"),
3924
3925
  type: type,
3925
3926
  name: name,
3926
3927
  placeholder: placeholder,
@@ -13151,7 +13152,7 @@ const CookieBanner = _ref => {
13151
13152
  isVisible = true,
13152
13153
  onAccept = () => {},
13153
13154
  onLearnMore = () => {},
13154
- intent = 'brandSecondary' // ✅ Allow intent override
13155
+ intent = 'brandSecondary'
13155
13156
  } = _ref;
13156
13157
  const [show, setShow] = (0,external_react_.useState)(false);
13157
13158
  const [render, setRender] = (0,external_react_.useState)(isVisible);
@@ -13176,7 +13177,7 @@ const CookieBanner = _ref => {
13176
13177
  if (!render) return null;
13177
13178
  return /*#__PURE__*/external_react_default().createElement(Card, {
13178
13179
  intent: intent,
13179
- className: "md:flex items-center justify-between p-4 space-x-4 transition-all duration-300 ease-in-out ".concat(show ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-3')
13180
+ className: "\n md:flex \n items-center \n justify-between \n p-4 space-x-4 \n transition-all duration-300 ease-in-out \n ".concat(show ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-3', "\n ")
13180
13181
  }, /*#__PURE__*/external_react_default().createElement("div", {
13181
13182
  className: "md:flex items-center"
13182
13183
  }, /*#__PURE__*/external_react_default().createElement("div", {