@youngonesworks/ui 0.1.123 → 0.1.125

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.
@@ -1,6 +1,6 @@
1
1
  interface IBadgeProps {
2
- styleVariant?: 'green-light' | 'red' | 'accent-blue' | 'warning' | 'gray' | 'black' | 'dark-gray' | 'purple' | 'pink' | 'pink-light' | 'gray' | 'white';
3
- color?: 'dark' | 'gray' | 'red' | 'pink' | 'grape' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'green' | 'lime' | 'yellow' | 'orange' | 'teal';
2
+ styleVariant?: 'green-light' | 'red' | 'accent-blue' | 'warning' | 'gray' | 'black' | 'dark-gray' | 'purple' | 'secondary' | 'secondary-light' | 'gray' | 'white';
3
+ color?: 'dark' | 'gray' | 'red' | 'secondary' | 'grape' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'green' | 'lime' | 'yellow' | 'orange' | 'teal';
4
4
  favorite?: boolean;
5
5
  children?: React.ReactNode;
6
6
  className?: string;
@@ -5,4 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof ThemeIcon>;
6
6
  export declare const Default: Story;
7
7
  export declare const Warning: Story;
8
- export declare const PinkHeart: Story;
8
+ export declare const SecondaryHeart: Story;
@@ -1,6 +1,6 @@
1
1
  import { type HTMLAttributes } from 'react';
2
2
  export interface IThemeIcon extends Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
3
- styleVariant?: 'black' | 'gray' | 'pink' | 'pink-with-background' | 'turquoise' | 'accent-blue' | 'check' | 'warning' | 'error';
3
+ styleVariant?: 'black' | 'gray' | 'secondary' | 'secondary-with-background' | 'turquoise' | 'accent-blue' | 'check' | 'warning' | 'error';
4
4
  icon: React.ReactNode;
5
5
  className?: string;
6
6
  adjustedSize?: string | number;
package/dist/index.cjs CHANGED
@@ -233,7 +233,7 @@ let ACTION_ICON_STYLE_VARIANT = /* @__PURE__ */ function(ACTION_ICON_STYLE_VARIA
233
233
  return ACTION_ICON_STYLE_VARIANT$1;
234
234
  }({});
235
235
  let THEME_ICON_STYLE_VARIANT = /* @__PURE__ */ function(THEME_ICON_STYLE_VARIANT$1) {
236
- THEME_ICON_STYLE_VARIANT$1["PINK_WITH_BACKGROUND"] = "pink-with-background";
236
+ THEME_ICON_STYLE_VARIANT$1["SECONDARY_WITH_BACKGROUND"] = "secondary-with-background";
237
237
  return THEME_ICON_STYLE_VARIANT$1;
238
238
  }({});
239
239
  let COLOR = /* @__PURE__ */ function(COLOR$1) {
@@ -244,8 +244,8 @@ let COLOR = /* @__PURE__ */ function(COLOR$1) {
244
244
  COLOR$1["LIGHT_BLUE_DISABLED"] = "light-blue-disabled";
245
245
  COLOR$1["GREEN"] = "green";
246
246
  COLOR$1["GREEN_LIGHT"] = "green-light";
247
- COLOR$1["PINK"] = "pink";
248
- COLOR$1["PINK_LIGHT"] = "pink-light";
247
+ COLOR$1["SECONDARY"] = "secondary";
248
+ COLOR$1["SECONDARY_LIGHT"] = "secondary-light";
249
249
  COLOR$1["ORANGE"] = "orange";
250
250
  COLOR$1["ORANGE_LIGHT"] = "orange-light";
251
251
  COLOR$1["ACCENT_BLUE"] = "accent-blue";
@@ -379,7 +379,7 @@ const Alert = ({ show, title, description, type = "warning", button, plain = fal
379
379
  "data-testid": "alert-icon",
380
380
  "aria-hidden": "true"
381
381
  })), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
382
- className: "text-base font-medium",
382
+ className: "text-base font-semibold",
383
383
  children: title
384
384
  })]
385
385
  }),
@@ -786,8 +786,8 @@ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, children
786
786
  "bg-gray-50 text-black": styleVariant === COLOR.DARK_GRAY,
787
787
  "bg-black text-white": styleVariant === COLOR.BLACK,
788
788
  "bg-gray-50 text-gray-800": styleVariant === COLOR.GRAY,
789
- "bg-pink-light text-pink": styleVariant === COLOR.PINK_LIGHT,
790
- "bg-pink text-white": styleVariant === COLOR.PINK,
789
+ "bg-secondary-light text-secondary": styleVariant === COLOR.SECONDARY_LIGHT,
790
+ "bg-secondary text-white": styleVariant === COLOR.SECONDARY,
791
791
  "bg-white text-black": styleVariant === COLOR.WHITE
792
792
  }, className),
793
793
  ...props,
@@ -1287,7 +1287,7 @@ const Divider = ({ className,...props }) => /* @__PURE__ */ (0, react_jsx_runtim
1287
1287
  //#endregion
1288
1288
  //#region src/components/favouriteButton/index.tsx
1289
1289
  const FavouriteButton = (0, react.forwardRef)((props, ref) => {
1290
- const { onClick, favourite, iconFilled, iconOutline, favouriteTitle, iconColorSelected = "text-pink", iconColor = "text-gray-800", iconSize, className = "", styleVariant = "transparent", children,...rest } = props;
1290
+ const { onClick, favourite, iconFilled, iconOutline, favouriteTitle, iconColorSelected = "text-secondary", iconColor = "text-gray-800", iconSize, className = "", styleVariant = "transparent", children,...rest } = props;
1291
1291
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ActionIcon, {
1292
1292
  onClick,
1293
1293
  "data-component": "favouriteButton",
@@ -1889,7 +1889,7 @@ const Modal = ({ title, children, withCloseButton = true, opened, additionalClas
1889
1889
  gradient && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hr", {
1890
1890
  "data-testid": "modal-gradient",
1891
1891
  className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
1892
- style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-pink) 100%)" }
1892
+ style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-secondary) 100%)" }
1893
1893
  })
1894
1894
  ]
1895
1895
  })
@@ -2852,7 +2852,7 @@ const TabsBadge = ({ children }) => {
2852
2852
  const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
2853
2853
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2854
2854
  "data-testid": "tabs-badge",
2855
- className: (0, clsx.default)("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
2855
+ className: (0, clsx.default)("bg-secondary h-5 rounded-full text-xs leading-5 font-medium text-white", {
2856
2856
  "w-5 text-center": isCircular,
2857
2857
  "px-2": !isCircular
2858
2858
  }),
@@ -2955,8 +2955,8 @@ function ThemeIcon({ styleVariant = "black", className, icon, adjustedSize, titl
2955
2955
  const classNames = cn("bg-transparent h-9 w-9 rounded-[5px] grid place-content-center", {
2956
2956
  "text-black": styleVariant === COLOR.BLACK,
2957
2957
  "text-gray-500": styleVariant === COLOR.GRAY,
2958
- "text-pink": styleVariant === COLOR.PINK,
2959
- "bg-gray-50 text-pink": styleVariant === THEME_ICON_STYLE_VARIANT.PINK_WITH_BACKGROUND,
2958
+ "text-secondary": styleVariant === COLOR.SECONDARY,
2959
+ "bg-gray-50 text-secondary": styleVariant === THEME_ICON_STYLE_VARIANT.SECONDARY_WITH_BACKGROUND,
2960
2960
  "text-primary": styleVariant === COLOR.TURQUOISE,
2961
2961
  "text-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
2962
2962
  "text-check": styleVariant === COLOR.CHECK,
@@ -3046,7 +3046,7 @@ const TruncatedText = ({ text, limit = 20 }) => {
3046
3046
  }), text.length > limit && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
3047
3047
  content: text,
3048
3048
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
3049
- className: "text-pink",
3049
+ className: "text-secondary",
3050
3050
  "data-testid": "truncated-text-icon",
3051
3051
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconMessageDots, { stroke: 1 })
3052
3052
  })
@@ -3630,7 +3630,7 @@ const CSS_VARIABLE_KEYS = [
3630
3630
  "--color-ultra-light-blue",
3631
3631
  "--color-green",
3632
3632
  "--color-green-light",
3633
- "--color-pink",
3633
+ "--color-secondary",
3634
3634
  "--color-purple",
3635
3635
  "--color-orange",
3636
3636
  "--color-warning",