@ayseaistudio/ui-components 3.11.0 → 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.
@@ -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);
@@ -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
  };
@@ -171,3 +171,7 @@
171
171
  .tags .colors-lime.off {
172
172
  color: #567c0f;
173
173
  }
174
+
175
+ .tags .text.bold {
176
+ font-weight: bold;
177
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayseaistudio/ui-components",
3
- "version": "3.11.0",
3
+ "version": "3.11.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",