@xipkg/button 1.0.0 → 1.0.3

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.
Files changed (2) hide show
  1. package/Button.tsx +10 -7
  2. package/package.json +7 -7
package/Button.tsx CHANGED
@@ -5,20 +5,23 @@ import { cva, type VariantProps } from 'class-variance-authority';
5
5
  import { cn } from '@xipkg/utils';
6
6
 
7
7
  export const buttonVariants = cva(
8
- 'inline-flex items-center w-fit justify-center ring-offset-gray-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
8
+ 'inline-flex items-start w-fit justify-center ring-offset-gray-100 duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
9
9
  {
10
10
  variants: {
11
11
  variant: {
12
- default: 'text-gray-0 dark:text-gray-100 bg-brand-80 hover:bg-brand-100 active:bg-brand-100 focus:bg-brand-100',
13
- secondary: 'bg-gray-0 text-gray-100 border-gray-30 border-2 hover:bg-gray-5 active:bg-gray-5 focus:bg-gray-5',
12
+ default:
13
+ 'text-gray-0 dark:text-gray-100 bg-brand-80 hover:bg-brand-100 active:bg-brand-100 focus:bg-brand-100',
14
+ secondary:
15
+ 'bg-gray-0 text-gray-100 border-gray-30 border-2 hover:bg-gray-5 active:bg-gray-5 focus:bg-gray-5',
14
16
  ghost: 'text-gray-100 bg-gray-0 border-0 hover:bg-gray-5 active:bg-gray-5 focus:bg-gray-5',
15
17
  error: 'bg-red-80 text-gray-0 hover:bg-red-100 active:bg-red-100 focus:bg-red-100',
16
- success: 'bg-green-80 text-gray-0 hover:bg-green-100 active:bg-green-100 focus:bg-green-100'
18
+ success:
19
+ 'bg-green-80 text-gray-0 hover:bg-green-100 active:bg-green-100 focus:bg-green-100',
17
20
  },
18
21
  size: {
19
- l: 'h-14 px-8 rounded-xl text-[20px]',
20
- m: 'h-12 px-6 rounded-lg text-[16px]',
21
- s: 'h-8 px-4 rounded-md text-[14px]',
22
+ l: 'h-14 px-8 py-3 rounded-xl text-xl',
23
+ m: 'h-12 px-6 py-3 rounded-lg text-base',
24
+ s: 'h-8 px-4 py-[5px] rounded-md text-sm',
22
25
  },
23
26
  },
24
27
  defaultVariants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xipkg/button",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
@@ -11,25 +11,25 @@
11
11
  "lint": "eslint \"**/*.ts*\""
12
12
  },
13
13
  "dependencies": {
14
- "class-variance-authority": "^0.7.0",
15
- "@xipkg/utils": "*",
16
14
  "@radix-ui/react-slot": "^1.0.2",
15
+ "@xipkg/utils": "^1.0.1",
16
+ "class-variance-authority": "^0.7.0",
17
17
  "react": "^18.2.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^17.0.12",
21
21
  "@types/react": "^18.2.14",
22
22
  "@types/react-dom": "^18.2.6",
23
- "@xipkg/eslint": "^0.0.3",
23
+ "@xipkg/eslint": "^0.0.4",
24
24
  "@xipkg/typescript": "^0.0.0",
25
25
  "eslint": "^7.32.0",
26
- "typescript": "^5.1.3",
27
- "tailwindcss": "^3.3.2"
26
+ "tailwindcss": "^3.3.2",
27
+ "typescript": "^5.1.3"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
32
  "author": "xi.effect",
33
33
  "description": "",
34
- "gitHead": "0ee562e7c7723699c85daf61b493d6a57b7c1f08"
34
+ "gitHead": "33022d3bd6e72a5ccc9097b187742f9139f7d905"
35
35
  }