@nation-a/ui 0.1.1 → 0.1.2
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/index.cjs.js +5 -4
- package/dist/index.es.js +2673 -1312
- package/dist/types/Text/Text.d.ts +10 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/ui/password-input.d.ts +21 -0
- package/dist/types/ui/tooltip.d.ts +1 -1
- package/package.json +10 -18
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextProps as ChakraTextProps } from '@chakra-ui/react';
|
|
3
|
+
interface TextProps extends Omit<ChakraTextProps, 'textStyle' | 'children'> {
|
|
4
|
+
variant?: string;
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export default function Text({ variant, as, children, style, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export * from './ThemeProvider/ThemeProvider';
|
|
2
|
+
export { AspectRatio, Bleed, Box, Center, Container, Flex, Float, Grid, Group, GridItem, SimpleGrid, Stack, HStack, VStack, Theme, Wrap, WrapItem, } from '@chakra-ui/react';
|
|
3
|
+
export { PasswordInput, PasswordStrengthMeter } from './ui/password-input';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GroupProps, InputProps, StackProps } from '@chakra-ui/react';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface PasswordVisibilityProps {
|
|
4
|
+
defaultVisible?: boolean;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
7
|
+
visibilityIcon?: {
|
|
8
|
+
on: React.ReactNode;
|
|
9
|
+
off: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
|
|
13
|
+
rootProps?: GroupProps;
|
|
14
|
+
}
|
|
15
|
+
export declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
16
|
+
interface PasswordStrengthMeterProps extends StackProps {
|
|
17
|
+
max?: number;
|
|
18
|
+
value: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const PasswordStrengthMeter: React.ForwardRefExoticComponent<PasswordStrengthMeterProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nation-a/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -13,16 +13,14 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@chakra-ui/react": "^3.13.0",
|
|
16
|
-
"@emotion/react": "^11.14.0",
|
|
17
|
-
"@emotion/styled": "^11.13.0",
|
|
18
|
-
"clear": "^0.1.0",
|
|
19
16
|
"next-themes": "^0.4.6",
|
|
20
17
|
"react-icons": "^5.5.0",
|
|
21
|
-
"@nation-a/tokens": "0.1.
|
|
18
|
+
"@nation-a/tokens": "0.1.1"
|
|
22
19
|
},
|
|
23
20
|
"devDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@types/react
|
|
21
|
+
"@chakra-ui/cli": "^3.13.0",
|
|
22
|
+
"@types/react": "^18.3",
|
|
23
|
+
"@types/react-dom": "^18.3",
|
|
26
24
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
27
25
|
"@typescript-eslint/parser": "^5.59.7",
|
|
28
26
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -33,22 +31,16 @@
|
|
|
33
31
|
"vite-tsconfig-paths": "^5.1.4"
|
|
34
32
|
},
|
|
35
33
|
"peerDependencies": {
|
|
36
|
-
"react": "
|
|
37
|
-
"react-dom": "
|
|
38
|
-
},
|
|
39
|
-
"peerDependenciesMeta": {
|
|
40
|
-
"react": {
|
|
41
|
-
"optional": true
|
|
42
|
-
},
|
|
43
|
-
"react-dom": {
|
|
44
|
-
"optional": true
|
|
45
|
-
}
|
|
34
|
+
"react": "^18",
|
|
35
|
+
"react-dom": "^18"
|
|
46
36
|
},
|
|
47
37
|
"scripts": {
|
|
48
38
|
"build": "vite build",
|
|
49
39
|
"dev": "vite",
|
|
50
40
|
"clean": "rm -rf dist",
|
|
51
41
|
"lint": "eslint src --ext ts,tsx",
|
|
52
|
-
"typecheck": "tsc --noEmit"
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"typegen": "chakra-ui typegen src/theme.ts",
|
|
44
|
+
"typegen:watch": "chakra-ui typegen src/theme.ts --watch"
|
|
53
45
|
}
|
|
54
46
|
}
|