@ayseaistudio/ui-components 3.11.1 → 3.11.2
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/ProfileButton/style.css +0 -8
- package/dist/Tags/Tags.d.ts +3 -1
- package/dist/Tags/Tags.js +3 -2
- package/dist/Tags/style.css +4 -0
- package/package.json +1 -1
|
@@ -140,18 +140,10 @@
|
|
|
140
140
|
line-height: var(--b2-black-line-height);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.profile-button.size-0-x-small .frame {
|
|
144
|
-
height: 24px;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
143
|
.profile-button.size-0-large .frame {
|
|
148
144
|
gap: 6px;
|
|
149
145
|
}
|
|
150
146
|
|
|
151
|
-
.profile-button.size-0-small .frame {
|
|
152
|
-
height: 28px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
147
|
.profile-button.size-0-x-small .text {
|
|
156
148
|
-webkit-line-clamp: 0;
|
|
157
149
|
font-family: var(--b2-bold-font-family);
|
package/dist/Tags/Tags.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ interface Props {
|
|
|
9
9
|
disabled?: "off" | "on";
|
|
10
10
|
className?: any;
|
|
11
11
|
icon?: React.JSX.Element;
|
|
12
|
+
bold?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const Tags: {
|
|
14
|
-
({ text, size, colors, version, disabled, className, icon, }: Props): React.JSX.Element;
|
|
15
|
+
({ text, size, colors, version, disabled, className, icon, bold, }: Props): React.JSX.Element;
|
|
15
16
|
propTypes: {
|
|
16
17
|
text: PropTypes.Requireable<string>;
|
|
17
18
|
withText: PropTypes.Requireable<boolean>;
|
|
@@ -20,6 +21,7 @@ export declare const Tags: {
|
|
|
20
21
|
colors: PropTypes.Requireable<string>;
|
|
21
22
|
version: PropTypes.Requireable<string>;
|
|
22
23
|
disabled: PropTypes.Requireable<string>;
|
|
24
|
+
bold: PropTypes.Requireable<boolean>;
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
export {};
|
package/dist/Tags/Tags.js
CHANGED
|
@@ -21,11 +21,11 @@ const getIconColor = (colors, disabled) => {
|
|
|
21
21
|
}
|
|
22
22
|
return undefined;
|
|
23
23
|
};
|
|
24
|
-
export const Tags = ({ text, size, colors, version, disabled, className, icon, }) => {
|
|
24
|
+
export const Tags = ({ text, size, colors, version, disabled, className, icon, bold, }) => {
|
|
25
25
|
return (_jsxs("div", { className: `tags ${colors} ${size} ${version} ${className}`, children: [icon && (React.cloneElement(icon, {
|
|
26
26
|
className: `${["small", "x-small"].includes(size) ? "class" : "class-2"}`,
|
|
27
27
|
color: getIconColor(colors, disabled)
|
|
28
|
-
})), text && (_jsx("div", { className: `text size-${size} ${disabled} version-${version} colors-${colors}`, children: text }))] }));
|
|
28
|
+
})), text && (_jsx("div", { className: `text size-${size} ${disabled} version-${version} colors-${colors} ${bold ? "bold" : ""}`, children: text }))] }));
|
|
29
29
|
};
|
|
30
30
|
Tags.propTypes = {
|
|
31
31
|
text: PropTypes.string,
|
|
@@ -44,4 +44,5 @@ Tags.propTypes = {
|
|
|
44
44
|
]),
|
|
45
45
|
version: PropTypes.oneOf(["vertical", "horizontal"]),
|
|
46
46
|
disabled: PropTypes.oneOf(["off", "on"]),
|
|
47
|
+
bold: PropTypes.bool,
|
|
47
48
|
};
|
package/dist/Tags/style.css
CHANGED