@youngonesworks/ui 1.0.6 → 1.0.7

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.
package/dist/index.js CHANGED
@@ -44,12 +44,12 @@ const AccordionItem = ({ controlContent, panelContent, style = "light", border =
44
44
  }, [active]);
45
45
  return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", {
46
46
  "data-testid": "accordion-item",
47
- className: cn("rounded-md hover:bg-gray-50", {
48
- "bg-light-blue hover:bg-light-blue/50": style === "dark",
47
+ className: cn("rounded-md hover:bg-ultra-light-blue-gray", {
48
+ "bg-light-blue hover:bg-ultra-light-blue-gray": style === "dark",
49
49
  "rounded-none border-b border-gray-200": border,
50
50
  "bg-ultra-light-blue border border-gray-200 hover:bg-transparent": style === "onboarding",
51
51
  "bg-white": style === "onboarding" && isActive,
52
- "hover:bg-ultra-light-blue cursor-not-allowed opacity-50": disabled
52
+ "hover:bg-ultra-light-blue-gray cursor-not-allowed opacity-50": disabled
53
53
  }, className),
54
54
  children: [/* @__PURE__ */ jsxs(UnstyledButton, {
55
55
  className: cn("relative flex w-full flex-row items-center justify-between gap-2 px-4 py-3", { "flex-row-reverse": chevronPosition === "right" }),
@@ -256,7 +256,7 @@ const ActionIcon = ({ ref, title, disabled = false, styleVariant = "default", ic
256
256
  "active:translate-y-[1px] content-center flex items-center justify-center rounded-[4px] border border-gray-200 hover:border-black text-black child:p-10 w-[36px] h-[36px] disabled:text-gray-500": styleVariant === ACTION_ICON_STYLE_VARIANT.DEFAULT,
257
257
  "active:translate-y-[1px] border-none content-center flex items-center justify-center rounded-[4px] border text-black child:p-10 w-[36px] h-[36px] disabled:text-gray-500": styleVariant === ACTION_ICON_STYLE_VARIANT.TRANSPARENT,
258
258
  "active:translate-y-[1px] content-center flex items-center justify-center rounded-[4px] child:p-10 w-[37px] h-[37px] text-black rounded-full bg-primary hover:bg-turquoise-700 disabled:turquoise-50 disabled:text-gray-800": styleVariant === ACTION_ICON_STYLE_VARIANT.ROUND,
259
- "w-7 h-7 active:translate-y-[1px] content-center flex items-center justify-center rounded-[4px] border border-gray-200 hover:border-black text-black hover:bg-gray-50 disabled:text-gray-500": styleVariant === ACTION_ICON_STYLE_VARIANT.SMALL
259
+ "w-7 h-7 active:translate-y-[1px] content-center flex items-center justify-center rounded-[4px] border border-gray-200 hover:border-black text-black hover:bg-ultra-light-blue-gray disabled:text-gray-500": styleVariant === ACTION_ICON_STYLE_VARIANT.SMALL
260
260
  });
261
261
  return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Tooltip, {
262
262
  size: "sm",
@@ -776,7 +776,7 @@ const buttonVariants = {
776
776
  primary: clsx(defaultButtonStyling, "border-transparent bg-primary text-black hover:bg-turquoise-700 hover:fill-white disabled:bg-turquoise-100 disabled:text-gray-800 disabled:hover:bg-turquoise-100"),
777
777
  secondary: clsx(defaultButtonStyling, "border-solid border-gray-200 bg-white text-black hover:border-gray-800 hover:bg-gray-50 hover:fill-white disabled:text-gray-800 disabled:hover:border-gray-200 disabled:hover:bg-white"),
778
778
  danger: clsx(defaultButtonStyling, "border-transparent bg-red-500 text-white hover:bg-red-700 disabled:bg-red-100 disabled:hover:bg-red-100"),
779
- link: clsx(defaultButtonStyling, "border-transparent bg-transparent text-accent-blue hover:bg-gray-50 disabled:bg-transparent disabled:text-gray-800 disabled:hover:bg-transparent"),
779
+ link: clsx(defaultButtonStyling, "border-transparent bg-transparent text-accent-blue hover:bg-ultra-light-blue-gray disabled:bg-transparent disabled:text-gray-800 disabled:hover:bg-transparent"),
780
780
  outline: clsx(defaultButtonStyling, "border-solid border-gray-200 bg-transparent hover:border-gray-800 hover:bg-[rgba(255,255,255,0.1)] disabled:text-gray-800 disabled:hover:border-gray-200 disabled:hover:bg-white"),
781
781
  search: clsx(defaultButtonStyling, "absolute top-0 right-0 h-full w-[50px] border-0 bg-transparent bg-no-repeat"),
782
782
  icon__primary: clsx(defaultButtonStyling, "flex! items-center justify-center"),
@@ -1819,7 +1819,7 @@ const NavButtons = ({ onNext, onPrev }) => /* @__PURE__ */ jsxs("div", {
1819
1819
  children: [
1820
1820
  /* @__PURE__ */ jsx("div", {
1821
1821
  "data-testid": "chevron-left",
1822
- className: `flex ${onPrev ? "cursor-pointer hover:bg-gray-50" : "cursor-not-allowed"} h-full items-center px-2`,
1822
+ className: `flex ${onPrev ? "cursor-pointer hover:bg-ultra-light-blue-gray" : "cursor-not-allowed"} h-full items-center px-2`,
1823
1823
  onClick: onPrev,
1824
1824
  children: /* @__PURE__ */ jsx(IconChevronLeft, {
1825
1825
  size: 20,
@@ -1829,7 +1829,7 @@ const NavButtons = ({ onNext, onPrev }) => /* @__PURE__ */ jsxs("div", {
1829
1829
  /* @__PURE__ */ jsx("div", { className: "h-6 w-[0.8px] bg-gray-200" }),
1830
1830
  /* @__PURE__ */ jsx("div", {
1831
1831
  "data-testid": "chevron-right",
1832
- className: `flex ${onNext ? "cursor-pointer hover:bg-gray-50" : "cursor-not-allowed"} h-full items-center px-2 hover:bg-gray-50`,
1832
+ className: `flex ${onNext ? "cursor-pointer hover:bg-ultra-light-blue-gray" : "cursor-not-allowed"} h-full items-center px-2 hover:bg-ultra-light-blue-gray`,
1833
1833
  onClick: onNext,
1834
1834
  children: /* @__PURE__ */ jsx(IconChevronRight, {
1835
1835
  size: 20,
@@ -2718,7 +2718,7 @@ function TableRow({ children, className, header, ...props }) {
2718
2718
  const Tab = forwardRef(({ tabId, activeTab, tabContent, clickFnc, rightSection }, ref) => /* @__PURE__ */ jsxs("button", {
2719
2719
  ref,
2720
2720
  "data-testid": `tab-${tabId}`,
2721
- className: `${activeTab && "text-light-blue bg-[#F0F0F6]"} bg-ultra-light-blue px-5 py-[10px] yo-text-caption whitespace-nowrap text-black transition-colors duration-100 hover:border-black hover:bg-[#F0F0F6] data-active:border-black data-active:bg-[#F0F0F6] data-active:font-medium data-active:text-black`,
2721
+ className: `${activeTab && "text-light-blue bg-accent-blue-grey font-semibold"} bg-ultra-light-blue px-5 py-[10px] yo-text-caption whitespace-nowrap transition-colors duration-100 hover:border-black hover:bg-accent-blue-grey`,
2722
2722
  onClick: () => clickFnc(tabId),
2723
2723
  children: [tabContent, rightSection && /* @__PURE__ */ jsx("span", {
2724
2724
  className: "ml-2 inline-flex",
@@ -3404,28 +3404,28 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
3404
3404
  type: "button",
3405
3405
  "data-testid": "bold-button",
3406
3406
  onClick: () => editor.chain().focus().toggleBold().run(),
3407
- className: `${editor.isActive("bold") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center rounded-l-md border-gray-400 yo-text-small hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3407
+ className: `${editor.isActive("bold") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center rounded-l-md border-gray-400 yo-text-small hover:bg-accent-blue-grey focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3408
3408
  children: /* @__PURE__ */ jsx(BoldIcon, {})
3409
3409
  }),
3410
3410
  /* @__PURE__ */ jsx("button", {
3411
3411
  type: "button",
3412
3412
  "data-testid": "italic-button",
3413
3413
  onClick: () => editor.chain().focus().toggleItalic().run(),
3414
- className: `${editor.isActive("italic") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center border-gray-400 yo-text-small hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3414
+ className: `${editor.isActive("italic") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center border-gray-400 yo-text-small hover:bg-accent-blue-grey focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3415
3415
  children: /* @__PURE__ */ jsx(ItalicIcon, {})
3416
3416
  }),
3417
3417
  /* @__PURE__ */ jsx("button", {
3418
3418
  type: "button",
3419
3419
  "data-testid": "underline-button",
3420
3420
  onClick: () => editor.chain().focus().toggleUnderline().run(),
3421
- className: `${editor.isActive("underline") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center border-gray-400 yo-text-small hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3421
+ className: `${editor.isActive("underline") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center border-gray-400 yo-text-small hover:bg-accent-blue-grey focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3422
3422
  children: /* @__PURE__ */ jsx(UnderlineIcon, {})
3423
3423
  }),
3424
3424
  /* @__PURE__ */ jsx("button", {
3425
3425
  type: "button",
3426
3426
  "data-testid": "clear-formatting-button",
3427
3427
  onClick: () => editor.chain().focus().clearNodes().unsetAllMarks().run(),
3428
- className: "flex size-[26px] items-center justify-center rounded-r-md border-gray-400 bg-white yo-text-small hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden",
3428
+ className: "flex size-[26px] items-center justify-center rounded-r-md border-gray-400 bg-white yo-text-small hover:bg-accent-blue-grey focus:ring-2 focus:ring-teal-500 focus:outline-hidden",
3429
3429
  children: /* @__PURE__ */ jsx(ClearFormattingIcon, {})
3430
3430
  })
3431
3431
  ]
@@ -3435,13 +3435,13 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
3435
3435
  type: "button",
3436
3436
  "data-testid": "bullet-list-button",
3437
3437
  onClick: () => editor.chain().focus().toggleBulletList().run(),
3438
- className: `${editor.isActive("bulletList") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center rounded-l-md border-gray-400 yo-text-small hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3438
+ className: `${editor.isActive("bulletList") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center rounded-l-md border-gray-400 yo-text-small hover:bg-accent-blue-grey focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3439
3439
  children: /* @__PURE__ */ jsx(ListIcon, {})
3440
3440
  }), /* @__PURE__ */ jsx("button", {
3441
3441
  type: "button",
3442
3442
  "data-testid": "ordered-list-button",
3443
3443
  onClick: () => editor.chain().focus().toggleOrderedList().run(),
3444
- className: `${editor.isActive("orderedList") ? "bg-primary/20 text-primary" : "bg-white"} flex size-[26px] items-center justify-center rounded-r-md border-gray-400 yo-text-small hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3444
+ className: `${editor.isActive("orderedList") ? "bg-primary/20 text-primary" : "bg-white"} flex size-[26px] items-center justify-center rounded-r-md border-gray-400 yo-text-small hover:bg-accent-blue-grey focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
3445
3445
  children: /* @__PURE__ */ jsx(ListNumbersIcon, {})
3446
3446
  })]
3447
3447
  })]