@baishuyun/ai-design 2.0.53 → 2.0.55

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,23 @@
1
1
  # @baishuyun/ai-design
2
2
 
3
+ ## 2.0.55
4
+
5
+ ### Patch Changes
6
+
7
+ - 移动端样式更新
8
+ - Updated dependencies
9
+ - @baishuyun/ai-feat-utils@2.0.50
10
+ - @baishuyun/types@3.0.46
11
+
12
+ ## 2.0.54
13
+
14
+ ### Patch Changes
15
+
16
+ - bugfix
17
+ - Updated dependencies
18
+ - @baishuyun/ai-feat-utils@2.0.49
19
+ - @baishuyun/types@3.0.45
20
+
3
21
  ## 2.0.53
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ai-design",
3
- "version": "2.0.53",
3
+ "version": "2.0.55",
4
4
  "description": "AI 功能 UI 组件库 - 所有 AI 功能的 UI 表现唯一真相来源",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -60,8 +60,8 @@
60
60
  "tw-animate-css": "^1.4.0",
61
61
  "vaul": "^1.1.2",
62
62
  "zod": "^4.1.13",
63
- "@baishuyun/ai-feat-utils": "2.0.48",
64
- "@baishuyun/types": "3.0.44"
63
+ "@baishuyun/ai-feat-utils": "2.0.50",
64
+ "@baishuyun/types": "3.0.46"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "react": "^19.0.0",
@@ -84,7 +84,7 @@
84
84
  "vite": "^5.1.4",
85
85
  "vite-plugin-dts": "^4.5.4",
86
86
  "@baishuyun/tailwind-config": "3.0.9",
87
- "@baishuyun/types": "3.0.44",
87
+ "@baishuyun/types": "3.0.46",
88
88
  "@baishuyun/typescript-config": "2.0.9"
89
89
  },
90
90
  "keywords": [],
@@ -1,6 +1,7 @@
1
1
  import { useState } from 'react';
2
2
  import { cn } from '../lib/utils';
3
3
  import { CheckerInBoxIcon } from './bs-icons';
4
+ import classNames from 'classnames';
4
5
 
5
6
  export interface CircleCheckerProps {
6
7
  defaultChecked?: boolean;
@@ -9,6 +10,7 @@ export interface CircleCheckerProps {
9
10
  children?: React.ReactNode;
10
11
  disabled?: boolean;
11
12
  className?: string;
13
+ isMobile?: boolean;
12
14
  }
13
15
 
14
16
  export const CircleChecker = ({
@@ -17,6 +19,7 @@ export const CircleChecker = ({
17
19
  onCheckedChange,
18
20
  children,
19
21
  disabled = false,
22
+ isMobile,
20
23
  className,
21
24
  }: CircleCheckerProps) => {
22
25
  const [internalChecked, setInternalChecked] = useState(defaultChecked);
@@ -34,6 +37,16 @@ export const CircleChecker = ({
34
37
  onCheckedChange?.(newChecked);
35
38
  };
36
39
 
40
+ const sizeCls = classNames({
41
+ 'w-4 h-4': !isMobile,
42
+ 'w-[20px] h-[20px]': isMobile
43
+ })
44
+
45
+ const fontCls = classNames({
46
+ 'text-[14px]': !isMobile,
47
+ 'text-[16px]': isMobile,
48
+ })
49
+
37
50
  return (
38
51
  <button
39
52
  type="button"
@@ -43,14 +56,16 @@ export const CircleChecker = ({
43
56
  onClick={handleClick}
44
57
  className={cn(
45
58
  'inline-flex items-center gap-[6px] cursor-pointer select-none',
46
- 'text-[#121111] text-[14px]',
59
+ 'text-[#121111]',
60
+ fontCls,
47
61
  disabled && 'cursor-not-allowed opacity-50',
48
62
  className
49
63
  )}
50
64
  >
51
65
  <span
52
66
  className={cn(
53
- 'inline-flex items-center justify-center w-4 h-4 rounded-full transition-colors duration-200 box-border border',
67
+ 'inline-flex items-center justify-center rounded-full transition-colors duration-200 box-border border',
68
+ sizeCls,
54
69
  isChecked ? 'bg-[#2E60FF] border-transparent' : 'bg-white border-[#e0e0e0]'
55
70
  )}
56
71
  >
@@ -60,7 +75,7 @@ export const CircleChecker = ({
60
75
  </span>
61
76
  )}
62
77
  </span>
63
- {children && <span className="text-sm">{children}</span>}
78
+ {children && <span className="">{children}</span>}
64
79
  </button>
65
80
  );
66
81
  };
@@ -11,8 +11,8 @@ export const WarningMessage = ({
11
11
  className,
12
12
  }: WarningMessageProps) => {
13
13
  return (
14
- <div className={cn('flex flex-col items-center gap-[10px]', className)}>
15
- <div className="relative" style={{ width: 120, height: 77 }}>
14
+ <div className={cn('flex flex-col items-center gap-[10px] mt-[40px]', className)}>
15
+ <div className="relative" style={{ width: 120, height: 58 }}>
16
16
  <div
17
17
  className="bg-no-repeat"
18
18
  style={{
@@ -38,7 +38,7 @@ export const WarningMessage = ({
38
38
  }}
39
39
  />
40
40
  </div>
41
- <p className="text-[14px] text-[#999] leading-normal">{message}</p>
41
+ <p className="text-[#999] leading-normal">{message}</p>
42
42
  </div>
43
43
  );
44
44
  };