@fe-free/core 4.1.8 → 4.1.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @fe-free/core
2
2
 
3
+ ## 4.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: ai
8
+ - @fe-free/icons@4.1.10
9
+ - @fe-free/tool@4.1.10
10
+
11
+ ## 4.1.9
12
+
13
+ ### Patch Changes
14
+
15
+ - @fe-free/icons@4.1.9
16
+ - @fe-free/tool@4.1.9
17
+
3
18
  ## 4.1.8
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/core",
3
- "version": "4.1.8",
3
+ "version": "4.1.10",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -50,8 +50,8 @@
50
50
  "i18next-icu": "^2.4.1",
51
51
  "react": "^19.2.0",
52
52
  "react-i18next": "^16.4.0",
53
- "@fe-free/icons": "4.1.8",
54
- "@fe-free/tool": "4.1.8"
53
+ "@fe-free/icons": "4.1.10",
54
+ "@fe-free/tool": "4.1.10"
55
55
  },
56
56
  "scripts": {
57
57
  "i18n-extract": "rm -rf ./src/locales/zh-CN && npx i18next-cli extract"
@@ -13,10 +13,11 @@ interface CopyProps {
13
13
  children?: React.ReactNode;
14
14
  /** 复制成功后的回调 */
15
15
  onCopied?: () => void;
16
+ className?: string;
16
17
  }
17
18
 
18
19
  function Copy(props: CopyProps) {
19
- const { value, showIcon, hoverIcon, children, onCopied } = props;
20
+ const { value, showIcon, hoverIcon, children, onCopied, className } = props;
20
21
 
21
22
  const handleCopy = useCallback(async () => {
22
23
  await copyToClipboard(value);
@@ -26,13 +27,17 @@ function Copy(props: CopyProps) {
26
27
  if (showIcon || hoverIcon) {
27
28
  return (
28
29
  <div
29
- className={classNames('flex gap-1', {
30
- group: hoverIcon,
31
- })}
30
+ className={classNames(
31
+ 'flex gap-1',
32
+ {
33
+ group: hoverIcon,
34
+ },
35
+ className,
36
+ )}
32
37
  >
33
38
  {children}
34
39
  <div
35
- className={classNames('cursor-pointer text-primary', {
40
+ className={classNames('cursor-pointer', {
36
41
  hidden: hoverIcon,
37
42
  'group-hover:block': hoverIcon,
38
43
  })}