@workokay/atom 0.2.15 → 0.2.17
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/dist/atom.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +698 -509
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/dist/src/components/button/Button.d.ts +0 -15
- package/dist/src/components/button/index.d.ts +0 -1
- package/dist/src/components/form/Input.d.ts +0 -18
- package/dist/src/components/form/index.d.ts +0 -1
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/lib/cn.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workokay/atom",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"sideEffects": [
|
|
20
|
-
"*.css"
|
|
21
|
-
"dist/atom.css"
|
|
20
|
+
"*.css"
|
|
22
21
|
],
|
|
23
22
|
"peerDependencies": {
|
|
24
23
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -29,8 +28,8 @@
|
|
|
29
28
|
},
|
|
30
29
|
"scripts": {
|
|
31
30
|
"dev": "vite",
|
|
32
|
-
"build": "tsc -
|
|
33
|
-
"prepare": "
|
|
31
|
+
"build": "tsc -p tsconfig.lib.json && vite build",
|
|
32
|
+
"prepare": "npm run build",
|
|
34
33
|
"lint": "eslint . --ext .ts,.tsx",
|
|
35
34
|
"format": "prettier --write",
|
|
36
35
|
"preview": "vite preview",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export type ButtonVariant = "primary" | "ghost" | "success" | "danger" | "warning" | "info" | "icon" | "iconGhost" | "iconSquare" | "iconSquareGhost" | "secondary";
|
|
3
|
-
export type ButtonSize = "sm" | "md" | "lg";
|
|
4
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
/** Render as child element via Radix Slot (e.g. <a>, <Link>) */
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
/** Enable/disable ripple ink (true by default) */
|
|
8
|
-
ripple?: boolean;
|
|
9
|
-
/** Optional toggle state hint for styling */
|
|
10
|
-
"data-pressed"?: "on" | "off" | boolean;
|
|
11
|
-
variant?: ButtonVariant;
|
|
12
|
-
size?: ButtonSize;
|
|
13
|
-
fullWidth?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Button';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const inputVariants: (props?: ({
|
|
4
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5
|
-
tone?: "default" | "success" | "invalid" | null | undefined;
|
|
6
|
-
hasLeft?: boolean | null | undefined;
|
|
7
|
-
hasRight?: boolean | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
10
|
-
leftIcon?: React.ReactNode;
|
|
11
|
-
rightIcon?: React.ReactNode;
|
|
12
|
-
hint?: string;
|
|
13
|
-
errorText?: string;
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
id?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Input';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/src/index.d.ts
DELETED
package/dist/src/lib/cn.d.ts
DELETED