@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.cjs CHANGED
@@ -70,12 +70,12 @@ const AccordionItem = ({ controlContent, panelContent, style = "light", border =
70
70
  }, [active]);
71
71
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
72
72
  "data-testid": "accordion-item",
73
- className: cn("rounded-md hover:bg-gray-50", {
74
- "bg-light-blue hover:bg-light-blue/50": style === "dark",
73
+ className: cn("rounded-md hover:bg-ultra-light-blue-gray", {
74
+ "bg-light-blue hover:bg-ultra-light-blue-gray": style === "dark",
75
75
  "rounded-none border-b border-gray-200": border,
76
76
  "bg-ultra-light-blue border border-gray-200 hover:bg-transparent": style === "onboarding",
77
77
  "bg-white": style === "onboarding" && isActive,
78
- "hover:bg-ultra-light-blue cursor-not-allowed opacity-50": disabled
78
+ "hover:bg-ultra-light-blue-gray cursor-not-allowed opacity-50": disabled
79
79
  }, className),
80
80
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(UnstyledButton, {
81
81
  className: cn("relative flex w-full flex-row items-center justify-between gap-2 px-4 py-3", { "flex-row-reverse": chevronPosition === "right" }),
@@ -286,7 +286,7 @@ const ActionIcon = ({ ref, title, disabled = false, styleVariant = "default", ic
286
286
  "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,
287
287
  "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,
288
288
  "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,
289
- "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
289
+ "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
290
290
  });
291
291
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
292
292
  size: "sm",
@@ -806,7 +806,7 @@ const buttonVariants = {
806
806
  primary: (0, clsx.default)(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"),
807
807
  secondary: (0, clsx.default)(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"),
808
808
  danger: (0, clsx.default)(defaultButtonStyling, "border-transparent bg-red-500 text-white hover:bg-red-700 disabled:bg-red-100 disabled:hover:bg-red-100"),
809
- link: (0, clsx.default)(defaultButtonStyling, "border-transparent bg-transparent text-accent-blue hover:bg-gray-50 disabled:bg-transparent disabled:text-gray-800 disabled:hover:bg-transparent"),
809
+ link: (0, clsx.default)(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"),
810
810
  outline: (0, clsx.default)(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"),
811
811
  search: (0, clsx.default)(defaultButtonStyling, "absolute top-0 right-0 h-full w-[50px] border-0 bg-transparent bg-no-repeat"),
812
812
  icon__primary: (0, clsx.default)(defaultButtonStyling, "flex! items-center justify-center"),
@@ -1850,7 +1850,7 @@ const NavButtons = ({ onNext, onPrev }) => /* @__PURE__ */ (0, react_jsx_runtime
1850
1850
  children: [
1851
1851
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1852
1852
  "data-testid": "chevron-left",
1853
- className: `flex ${onPrev ? "cursor-pointer hover:bg-gray-50" : "cursor-not-allowed"} h-full items-center px-2`,
1853
+ className: `flex ${onPrev ? "cursor-pointer hover:bg-ultra-light-blue-gray" : "cursor-not-allowed"} h-full items-center px-2`,
1854
1854
  onClick: onPrev,
1855
1855
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tabler_icons_react.IconChevronLeft, {
1856
1856
  size: 20,
@@ -1860,7 +1860,7 @@ const NavButtons = ({ onNext, onPrev }) => /* @__PURE__ */ (0, react_jsx_runtime
1860
1860
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "h-6 w-[0.8px] bg-gray-200" }),
1861
1861
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1862
1862
  "data-testid": "chevron-right",
1863
- className: `flex ${onNext ? "cursor-pointer hover:bg-gray-50" : "cursor-not-allowed"} h-full items-center px-2 hover:bg-gray-50`,
1863
+ 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`,
1864
1864
  onClick: onNext,
1865
1865
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tabler_icons_react.IconChevronRight, {
1866
1866
  size: 20,
@@ -2752,7 +2752,7 @@ function TableRow({ children, className, header, ...props }) {
2752
2752
  const Tab = (0, react.forwardRef)(({ tabId, activeTab, tabContent, clickFnc, rightSection }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
2753
2753
  ref,
2754
2754
  "data-testid": `tab-${tabId}`,
2755
- 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`,
2755
+ 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`,
2756
2756
  onClick: () => clickFnc(tabId),
2757
2757
  children: [tabContent, rightSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
2758
2758
  className: "ml-2 inline-flex",
@@ -3441,28 +3441,28 @@ const WysiwygEditor = (0, react.forwardRef)(({ id, content, className, placehold
3441
3441
  type: "button",
3442
3442
  "data-testid": "bold-button",
3443
3443
  onClick: () => editor.chain().focus().toggleBold().run(),
3444
- 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`,
3444
+ 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`,
3445
3445
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BoldIcon, {})
3446
3446
  }),
3447
3447
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
3448
3448
  type: "button",
3449
3449
  "data-testid": "italic-button",
3450
3450
  onClick: () => editor.chain().focus().toggleItalic().run(),
3451
- 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`,
3451
+ 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`,
3452
3452
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItalicIcon, {})
3453
3453
  }),
3454
3454
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
3455
3455
  type: "button",
3456
3456
  "data-testid": "underline-button",
3457
3457
  onClick: () => editor.chain().focus().toggleUnderline().run(),
3458
- 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`,
3458
+ 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`,
3459
3459
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnderlineIcon, {})
3460
3460
  }),
3461
3461
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
3462
3462
  type: "button",
3463
3463
  "data-testid": "clear-formatting-button",
3464
3464
  onClick: () => editor.chain().focus().clearNodes().unsetAllMarks().run(),
3465
- 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",
3465
+ 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",
3466
3466
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClearFormattingIcon, {})
3467
3467
  })
3468
3468
  ]
@@ -3472,13 +3472,13 @@ const WysiwygEditor = (0, react.forwardRef)(({ id, content, className, placehold
3472
3472
  type: "button",
3473
3473
  "data-testid": "bullet-list-button",
3474
3474
  onClick: () => editor.chain().focus().toggleBulletList().run(),
3475
- 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`,
3475
+ 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`,
3476
3476
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListIcon, {})
3477
3477
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
3478
3478
  type: "button",
3479
3479
  "data-testid": "ordered-list-button",
3480
3480
  onClick: () => editor.chain().focus().toggleOrderedList().run(),
3481
- 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`,
3481
+ 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`,
3482
3482
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListNumbersIcon, {})
3483
3483
  })]
3484
3484
  })]