@youngonesworks/ui 1.0.6 → 1.0.8

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",
@@ -722,19 +722,20 @@ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, children
722
722
  "bg-accent-blue-light text-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
723
723
  "bg-green-light text-green": styleVariant === COLOR.GREEN_LIGHT,
724
724
  "bg-red-50 text-red-500": styleVariant === COLOR.RED,
725
- "bg-purple-light text-purple": styleVariant === COLOR.PURPLE,
725
+ "bg-purple-light text-black border border-purple": styleVariant === COLOR.PURPLE,
726
726
  "bg-warning-light text-warning": styleVariant === COLOR.WARNING,
727
727
  "bg-gray-50 text-black": styleVariant === COLOR.DARK_GRAY,
728
728
  "bg-black text-white": styleVariant === COLOR.BLACK,
729
729
  "bg-gray-50 text-gray-800": styleVariant === COLOR.GRAY,
730
730
  "bg-secondary-light text-secondary": styleVariant === COLOR.SECONDARY_LIGHT,
731
731
  "bg-secondary text-white": styleVariant === COLOR.SECONDARY,
732
- "bg-white text-black": styleVariant === COLOR.WHITE
732
+ "bg-white text-black": styleVariant === COLOR.WHITE,
733
+ "bg-turquoise-50 text-black border border-primary": styleVariant === COLOR.PRIMARY
733
734
  }, className),
734
735
  ...props,
735
736
  children: /* @__PURE__ */ jsx("span", {
736
737
  "data-testid": "badge-content",
737
- className: cn("block h-5 overflow-hidden text-ellipsis whitespace-nowrap text-inherit", { "flex items-center": favorite }),
738
+ className: cn("block h-[22px] overflow-hidden text-ellipsis whitespace-nowrap text-inherit", { "flex items-center": favorite }),
738
739
  children
739
740
  })
740
741
  });
@@ -776,7 +777,7 @@ const buttonVariants = {
776
777
  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
778
  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
779
  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"),
780
+ 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
781
  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
782
  search: clsx(defaultButtonStyling, "absolute top-0 right-0 h-full w-[50px] border-0 bg-transparent bg-no-repeat"),
782
783
  icon__primary: clsx(defaultButtonStyling, "flex! items-center justify-center"),
@@ -1819,7 +1820,7 @@ const NavButtons = ({ onNext, onPrev }) => /* @__PURE__ */ jsxs("div", {
1819
1820
  children: [
1820
1821
  /* @__PURE__ */ jsx("div", {
1821
1822
  "data-testid": "chevron-left",
1822
- className: `flex ${onPrev ? "cursor-pointer hover:bg-gray-50" : "cursor-not-allowed"} h-full items-center px-2`,
1823
+ className: `flex ${onPrev ? "cursor-pointer hover:bg-ultra-light-blue-gray" : "cursor-not-allowed"} h-full items-center px-2`,
1823
1824
  onClick: onPrev,
1824
1825
  children: /* @__PURE__ */ jsx(IconChevronLeft, {
1825
1826
  size: 20,
@@ -1829,7 +1830,7 @@ const NavButtons = ({ onNext, onPrev }) => /* @__PURE__ */ jsxs("div", {
1829
1830
  /* @__PURE__ */ jsx("div", { className: "h-6 w-[0.8px] bg-gray-200" }),
1830
1831
  /* @__PURE__ */ jsx("div", {
1831
1832
  "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`,
1833
+ 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
1834
  onClick: onNext,
1834
1835
  children: /* @__PURE__ */ jsx(IconChevronRight, {
1835
1836
  size: 20,
@@ -2718,7 +2719,7 @@ function TableRow({ children, className, header, ...props }) {
2718
2719
  const Tab = forwardRef(({ tabId, activeTab, tabContent, clickFnc, rightSection }, ref) => /* @__PURE__ */ jsxs("button", {
2719
2720
  ref,
2720
2721
  "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`,
2722
+ 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
2723
  onClick: () => clickFnc(tabId),
2723
2724
  children: [tabContent, rightSection && /* @__PURE__ */ jsx("span", {
2724
2725
  className: "ml-2 inline-flex",
@@ -3404,28 +3405,28 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
3404
3405
  type: "button",
3405
3406
  "data-testid": "bold-button",
3406
3407
  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`,
3408
+ 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
3409
  children: /* @__PURE__ */ jsx(BoldIcon, {})
3409
3410
  }),
3410
3411
  /* @__PURE__ */ jsx("button", {
3411
3412
  type: "button",
3412
3413
  "data-testid": "italic-button",
3413
3414
  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`,
3415
+ 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
3416
  children: /* @__PURE__ */ jsx(ItalicIcon, {})
3416
3417
  }),
3417
3418
  /* @__PURE__ */ jsx("button", {
3418
3419
  type: "button",
3419
3420
  "data-testid": "underline-button",
3420
3421
  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`,
3422
+ 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
3423
  children: /* @__PURE__ */ jsx(UnderlineIcon, {})
3423
3424
  }),
3424
3425
  /* @__PURE__ */ jsx("button", {
3425
3426
  type: "button",
3426
3427
  "data-testid": "clear-formatting-button",
3427
3428
  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",
3429
+ 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
3430
  children: /* @__PURE__ */ jsx(ClearFormattingIcon, {})
3430
3431
  })
3431
3432
  ]
@@ -3435,13 +3436,13 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
3435
3436
  type: "button",
3436
3437
  "data-testid": "bullet-list-button",
3437
3438
  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`,
3439
+ 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
3440
  children: /* @__PURE__ */ jsx(ListIcon, {})
3440
3441
  }), /* @__PURE__ */ jsx("button", {
3441
3442
  type: "button",
3442
3443
  "data-testid": "ordered-list-button",
3443
3444
  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`,
3445
+ 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
3446
  children: /* @__PURE__ */ jsx(ListNumbersIcon, {})
3446
3447
  })]
3447
3448
  })]