@cocso-ui/react 0.1.13 → 0.2.0

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.
@@ -82,8 +82,8 @@ const Button = /*#__PURE__*/react.forwardRef(({
82
82
  });
83
83
  });
84
84
  const getSizeStyles = size => {
85
- const height = tsPattern.match(size).with('xl', () => 56).with('lg', () => 48).with('md', () => 40).with('sm', () => 32).with('xs', () => 24).exhaustive();
86
- const inlinePadding = tsPattern.match(size).with('xl', () => 16).with('lg', () => 14).with('md', () => 10).with('sm', () => 6).with('xs', () => 0).exhaustive();
85
+ const height = tsPattern.match(size).with('xl', () => 56).with('lg', () => 48).with('md', () => 40).with('sm', () => 32).with('xs', () => 28).exhaustive();
86
+ const inlinePadding = tsPattern.match(size).with('xl', () => 16).with('lg', () => 14).with('md', () => 10).with('sm', () => 6).with('xs', () => 2).exhaustive();
87
87
  const fontSize = tsPattern.match(size).with('xl', () => 16).with('lg', () => 16).with('xs', () => 12).otherwise(() => 14);
88
88
  return {
89
89
  '--cocso-button-height': `${height}px`,
@@ -77,6 +77,9 @@ declare const colors: {
77
77
  success800: string;
78
78
  success900: string;
79
79
  success950: string;
80
+ textPrimary: string;
81
+ textSecondary: string;
82
+ textTertiary: string;
80
83
  };
81
84
 
82
85
  export { colors };
@@ -78,7 +78,10 @@ const colors = {
78
78
  success700: 'var(--ds-color-success-700)',
79
79
  success800: 'var(--ds-color-success-800)',
80
80
  success900: 'var(--ds-color-success-900)',
81
- success950: 'var(--ds-color-success-950)'
81
+ success950: 'var(--ds-color-success-950)',
82
+ textPrimary: 'var(--ds-color-text-primary)',
83
+ textSecondary: 'var(--ds-color-text-secondary)',
84
+ textTertiary: 'var(--ds-color-text-tertiary)'
82
85
  };
83
86
 
84
87
  exports.colors = colors;
@@ -80,8 +80,8 @@ const Button = /*#__PURE__*/forwardRef(({
80
80
  });
81
81
  });
82
82
  const getSizeStyles = size => {
83
- const height = match(size).with('xl', () => 56).with('lg', () => 48).with('md', () => 40).with('sm', () => 32).with('xs', () => 24).exhaustive();
84
- const inlinePadding = match(size).with('xl', () => 16).with('lg', () => 14).with('md', () => 10).with('sm', () => 6).with('xs', () => 0).exhaustive();
83
+ const height = match(size).with('xl', () => 56).with('lg', () => 48).with('md', () => 40).with('sm', () => 32).with('xs', () => 28).exhaustive();
84
+ const inlinePadding = match(size).with('xl', () => 16).with('lg', () => 14).with('md', () => 10).with('sm', () => 6).with('xs', () => 2).exhaustive();
85
85
  const fontSize = match(size).with('xl', () => 16).with('lg', () => 16).with('xs', () => 12).otherwise(() => 14);
86
86
  return {
87
87
  '--cocso-button-height': `${height}px`,
@@ -77,6 +77,9 @@ declare const colors: {
77
77
  success800: string;
78
78
  success900: string;
79
79
  success950: string;
80
+ textPrimary: string;
81
+ textSecondary: string;
82
+ textTertiary: string;
80
83
  };
81
84
 
82
85
  export { colors };
@@ -76,7 +76,10 @@ const colors = {
76
76
  success700: 'var(--ds-color-success-700)',
77
77
  success800: 'var(--ds-color-success-800)',
78
78
  success900: 'var(--ds-color-success-900)',
79
- success950: 'var(--ds-color-success-950)'
79
+ success950: 'var(--ds-color-success-950)',
80
+ textPrimary: 'var(--ds-color-text-primary)',
81
+ textSecondary: 'var(--ds-color-text-secondary)',
82
+ textTertiary: 'var(--ds-color-text-tertiary)'
80
83
  };
81
84
 
82
85
  export { colors };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocso-ui/react",
3
- "version": "0.1.13",
3
+ "version": "0.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cocso/cocso-ui.git",
@@ -39,7 +39,7 @@
39
39
  "clsx": "^2.1.1",
40
40
  "sonner": "^2.0.7",
41
41
  "ts-pattern": "^5.8.0",
42
- "@cocso-ui/react-icons": "^0.0.16"
42
+ "@cocso-ui/react-icons": "^0.1.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/preset-react": "^7.27.1",