@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.
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/themeIcon/ThemeIcon.stories.d.ts +1 -1
- package/dist/components/themeIcon/index.d.ts +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/styles/variables.css +7 -7
- package/dist/theme/variables.d.ts +1 -1
- package/dist/utils/enums.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -211,7 +211,7 @@ let ACTION_ICON_STYLE_VARIANT = /* @__PURE__ */ function(ACTION_ICON_STYLE_VARIA
|
|
|
211
211
|
return ACTION_ICON_STYLE_VARIANT$1;
|
|
212
212
|
}({});
|
|
213
213
|
let THEME_ICON_STYLE_VARIANT = /* @__PURE__ */ function(THEME_ICON_STYLE_VARIANT$1) {
|
|
214
|
-
THEME_ICON_STYLE_VARIANT$1["
|
|
214
|
+
THEME_ICON_STYLE_VARIANT$1["SECONDARY_WITH_BACKGROUND"] = "secondary-with-background";
|
|
215
215
|
return THEME_ICON_STYLE_VARIANT$1;
|
|
216
216
|
}({});
|
|
217
217
|
let COLOR = /* @__PURE__ */ function(COLOR$1) {
|
|
@@ -222,8 +222,8 @@ let COLOR = /* @__PURE__ */ function(COLOR$1) {
|
|
|
222
222
|
COLOR$1["LIGHT_BLUE_DISABLED"] = "light-blue-disabled";
|
|
223
223
|
COLOR$1["GREEN"] = "green";
|
|
224
224
|
COLOR$1["GREEN_LIGHT"] = "green-light";
|
|
225
|
-
COLOR$1["
|
|
226
|
-
COLOR$1["
|
|
225
|
+
COLOR$1["SECONDARY"] = "secondary";
|
|
226
|
+
COLOR$1["SECONDARY_LIGHT"] = "secondary-light";
|
|
227
227
|
COLOR$1["ORANGE"] = "orange";
|
|
228
228
|
COLOR$1["ORANGE_LIGHT"] = "orange-light";
|
|
229
229
|
COLOR$1["ACCENT_BLUE"] = "accent-blue";
|
|
@@ -357,7 +357,7 @@ const Alert = ({ show, title, description, type = "warning", button, plain = fal
|
|
|
357
357
|
"data-testid": "alert-icon",
|
|
358
358
|
"aria-hidden": "true"
|
|
359
359
|
})), /* @__PURE__ */ jsx("span", {
|
|
360
|
-
className: "text-base font-
|
|
360
|
+
className: "text-base font-semibold",
|
|
361
361
|
children: title
|
|
362
362
|
})]
|
|
363
363
|
}),
|
|
@@ -764,8 +764,8 @@ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, children
|
|
|
764
764
|
"bg-gray-50 text-black": styleVariant === COLOR.DARK_GRAY,
|
|
765
765
|
"bg-black text-white": styleVariant === COLOR.BLACK,
|
|
766
766
|
"bg-gray-50 text-gray-800": styleVariant === COLOR.GRAY,
|
|
767
|
-
"bg-
|
|
768
|
-
"bg-
|
|
767
|
+
"bg-secondary-light text-secondary": styleVariant === COLOR.SECONDARY_LIGHT,
|
|
768
|
+
"bg-secondary text-white": styleVariant === COLOR.SECONDARY,
|
|
769
769
|
"bg-white text-black": styleVariant === COLOR.WHITE
|
|
770
770
|
}, className),
|
|
771
771
|
...props,
|
|
@@ -1265,7 +1265,7 @@ const Divider = ({ className,...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
1265
1265
|
//#endregion
|
|
1266
1266
|
//#region src/components/favouriteButton/index.tsx
|
|
1267
1267
|
const FavouriteButton = forwardRef((props, ref) => {
|
|
1268
|
-
const { onClick, favourite, iconFilled, iconOutline, favouriteTitle, iconColorSelected = "text-
|
|
1268
|
+
const { onClick, favourite, iconFilled, iconOutline, favouriteTitle, iconColorSelected = "text-secondary", iconColor = "text-gray-800", iconSize, className = "", styleVariant = "transparent", children,...rest } = props;
|
|
1269
1269
|
return /* @__PURE__ */ jsx(ActionIcon, {
|
|
1270
1270
|
onClick,
|
|
1271
1271
|
"data-component": "favouriteButton",
|
|
@@ -1867,7 +1867,7 @@ const Modal = ({ title, children, withCloseButton = true, opened, additionalClas
|
|
|
1867
1867
|
gradient && /* @__PURE__ */ jsx("hr", {
|
|
1868
1868
|
"data-testid": "modal-gradient",
|
|
1869
1869
|
className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
|
|
1870
|
-
style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-
|
|
1870
|
+
style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-secondary) 100%)" }
|
|
1871
1871
|
})
|
|
1872
1872
|
]
|
|
1873
1873
|
})
|
|
@@ -2830,7 +2830,7 @@ const TabsBadge = ({ children }) => {
|
|
|
2830
2830
|
const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
|
|
2831
2831
|
return /* @__PURE__ */ jsx("div", {
|
|
2832
2832
|
"data-testid": "tabs-badge",
|
|
2833
|
-
className: clsx("bg-
|
|
2833
|
+
className: clsx("bg-secondary h-5 rounded-full text-xs leading-5 font-medium text-white", {
|
|
2834
2834
|
"w-5 text-center": isCircular,
|
|
2835
2835
|
"px-2": !isCircular
|
|
2836
2836
|
}),
|
|
@@ -2933,8 +2933,8 @@ function ThemeIcon({ styleVariant = "black", className, icon, adjustedSize, titl
|
|
|
2933
2933
|
const classNames = cn("bg-transparent h-9 w-9 rounded-[5px] grid place-content-center", {
|
|
2934
2934
|
"text-black": styleVariant === COLOR.BLACK,
|
|
2935
2935
|
"text-gray-500": styleVariant === COLOR.GRAY,
|
|
2936
|
-
"text-
|
|
2937
|
-
"bg-gray-50 text-
|
|
2936
|
+
"text-secondary": styleVariant === COLOR.SECONDARY,
|
|
2937
|
+
"bg-gray-50 text-secondary": styleVariant === THEME_ICON_STYLE_VARIANT.SECONDARY_WITH_BACKGROUND,
|
|
2938
2938
|
"text-primary": styleVariant === COLOR.TURQUOISE,
|
|
2939
2939
|
"text-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
2940
2940
|
"text-check": styleVariant === COLOR.CHECK,
|
|
@@ -3024,7 +3024,7 @@ const TruncatedText = ({ text, limit = 20 }) => {
|
|
|
3024
3024
|
}), text.length > limit && /* @__PURE__ */ jsx(Tooltip, {
|
|
3025
3025
|
content: text,
|
|
3026
3026
|
children: /* @__PURE__ */ jsx("span", {
|
|
3027
|
-
className: "text-
|
|
3027
|
+
className: "text-secondary",
|
|
3028
3028
|
"data-testid": "truncated-text-icon",
|
|
3029
3029
|
children: /* @__PURE__ */ jsx(IconMessageDots, { stroke: 1 })
|
|
3030
3030
|
})
|
|
@@ -3608,7 +3608,7 @@ const CSS_VARIABLE_KEYS = [
|
|
|
3608
3608
|
"--color-ultra-light-blue",
|
|
3609
3609
|
"--color-green",
|
|
3610
3610
|
"--color-green-light",
|
|
3611
|
-
"--color-
|
|
3611
|
+
"--color-secondary",
|
|
3612
3612
|
"--color-purple",
|
|
3613
3613
|
"--color-orange",
|
|
3614
3614
|
"--color-warning",
|