@infra-cryptomate/react-components 0.0.1 → 0.0.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/components.es.js +1048 -1033
- package/dist/components.umd.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/{components → src/components}/atoms/button/button.d.ts +1 -2
- package/dist/{components → src/components}/atoms/button/button.enums.d.ts +3 -1
- package/dist/{components → src/components}/atoms/button/button.types.d.ts +1 -1
- package/dist/{components → src/components}/atoms/button/button.variants.d.ts +2 -0
- package/dist/{components → src/components}/atoms/checkbox/checkbox.d.ts +0 -1
- package/dist/{components → src/components}/atoms/heading/heading.d.ts +0 -1
- package/dist/{components → src/components}/atoms/input/input.d.ts +0 -1
- package/dist/{components → src/components}/atoms/label/label.d.ts +0 -1
- package/dist/{components → src/components}/atoms/paragraph/paragraph.d.ts +0 -1
- package/dist/{components → src/components}/atoms/spinner/spinner.d.ts +0 -1
- package/dist/{components → src/components}/atoms/text-area/text-area.d.ts +0 -1
- package/dist/src/components/molecules/card/card.d.ts +8 -0
- package/dist/{components → src/components}/molecules/checkbox-container/checkbox-container.d.ts +1 -2
- package/dist/{components → src/components}/molecules/checkbox-container/checkbox-container.types.d.ts +3 -3
- package/dist/{components → src/components}/molecules/select/select.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +43 -9
- package/dist/test/button.test.d.ts +1 -0
- package/dist/test/card.test.d.ts +1 -0
- package/dist/test/checkbox.test.d.ts +1 -0
- package/dist/test/dropdown.test.d.ts +1 -0
- package/dist/test/input.test.d.ts +1 -0
- package/dist/test/select.test.d.ts +1 -0
- package/dist/test/spinner.test.d.ts +1 -0
- package/dist/test/text-area.test.d.ts +1 -0
- package/dist/test/toast.test.d.ts +3 -0
- package/package.json +15 -5
- package/dist/components/molecules/card/card.d.ts +0 -20
- /package/dist/{components → src/components}/atoms/heading/heading.enums.d.ts +0 -0
- /package/dist/{components → src/components}/atoms/heading/heading.types.d.ts +0 -0
- /package/dist/{components → src/components}/atoms/heading/heading.variants.d.ts +0 -0
- /package/dist/{components → src/components}/atoms/index.d.ts +0 -0
- /package/dist/{components → src/components}/atoms/spinner/spinner.enums.d.ts +0 -0
- /package/dist/{components → src/components}/atoms/spinner/spinner.types.d.ts +0 -0
- /package/dist/{components → src/components}/atoms/spinner/spinner.variants.d.ts +0 -0
- /package/dist/{components → src/components}/index.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/checkbox-container/checkbox-container.enums.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/checkbox-container/checkbox-container.variants.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/dropdown/dropdown.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/index.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/radio/radio.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/toast/index.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/toast/toast.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/toast/toast.enum.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/toast/toast.types.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/toast/toast.variants.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/toast/toaster.d.ts +0 -0
- /package/dist/{components → src/components}/molecules/toast/use-toast.d.ts +0 -0
- /package/dist/{components → src/components}/utils.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './src/index'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { StylesVariants, SizesVariants } from './button.types';
|
|
1
|
+
import { type StylesVariants, type SizesVariants } from './button.types';
|
|
3
2
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
3
|
variant?: StylesVariants;
|
|
5
4
|
size?: SizesVariants;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
package/dist/{components → src/components}/molecules/checkbox-container/checkbox-container.d.ts
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Label as LabelType } from './checkbox-container.types';
|
|
1
|
+
import { type Label as LabelType } from './checkbox-container.types';
|
|
3
2
|
interface CheckboxContainerProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
3
|
label?: LabelType;
|
|
5
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { STYLES_VARIANTS } from './checkbox-container.variants';
|
|
1
|
+
import { type STYLES_VARIANTS } from './checkbox-container.variants';
|
|
2
2
|
export type StylesVariants = keyof typeof STYLES_VARIANTS;
|
|
3
|
-
export
|
|
3
|
+
export interface Label {
|
|
4
4
|
value: string;
|
|
5
5
|
className: string;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
@@ -8,4 +8,4 @@ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
8
8
|
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator
|
|
11
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/dist/style.css
CHANGED
|
@@ -698,18 +698,22 @@ video {
|
|
|
698
698
|
.rounded-full {
|
|
699
699
|
border-radius: 9999px;
|
|
700
700
|
}
|
|
701
|
+
.rounded-lg {
|
|
702
|
+
border-radius: 0.5rem;
|
|
703
|
+
}
|
|
701
704
|
.rounded-md {
|
|
702
705
|
border-radius: 0.375rem;
|
|
703
706
|
}
|
|
704
707
|
.rounded-sm {
|
|
705
708
|
border-radius: 0.125rem;
|
|
706
709
|
}
|
|
707
|
-
.rounded-xl {
|
|
708
|
-
border-radius: 0.75rem;
|
|
709
|
-
}
|
|
710
710
|
.border {
|
|
711
711
|
border-width: 1px;
|
|
712
712
|
}
|
|
713
|
+
.border-neutral-200 {
|
|
714
|
+
--tw-border-opacity: 1;
|
|
715
|
+
border-color: rgb(229 229 229 / var(--tw-border-opacity));
|
|
716
|
+
}
|
|
713
717
|
.border-red-500 {
|
|
714
718
|
--tw-border-opacity: 1;
|
|
715
719
|
border-color: rgb(239 68 68 / var(--tw-border-opacity));
|
|
@@ -858,6 +862,14 @@ video {
|
|
|
858
862
|
--tw-text-opacity: 1;
|
|
859
863
|
color: rgb(6 95 70 / var(--tw-text-opacity));
|
|
860
864
|
}
|
|
865
|
+
.text-neutral-500 {
|
|
866
|
+
--tw-text-opacity: 1;
|
|
867
|
+
color: rgb(115 115 115 / var(--tw-text-opacity));
|
|
868
|
+
}
|
|
869
|
+
.text-neutral-950 {
|
|
870
|
+
--tw-text-opacity: 1;
|
|
871
|
+
color: rgb(10 10 10 / var(--tw-text-opacity));
|
|
872
|
+
}
|
|
861
873
|
.text-red-800 {
|
|
862
874
|
--tw-text-opacity: 1;
|
|
863
875
|
color: rgb(153 27 27 / var(--tw-text-opacity));
|
|
@@ -877,6 +889,9 @@ video {
|
|
|
877
889
|
--tw-text-opacity: 1;
|
|
878
890
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
879
891
|
}
|
|
892
|
+
.underline-offset-4 {
|
|
893
|
+
text-underline-offset: 4px;
|
|
894
|
+
}
|
|
880
895
|
.opacity-0 {
|
|
881
896
|
opacity: 0;
|
|
882
897
|
}
|
|
@@ -889,11 +904,6 @@ video {
|
|
|
889
904
|
.opacity-90 {
|
|
890
905
|
opacity: 0.9;
|
|
891
906
|
}
|
|
892
|
-
.shadow {
|
|
893
|
-
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
894
|
-
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
895
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
896
|
-
}
|
|
897
907
|
.shadow-lg {
|
|
898
908
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
899
909
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
@@ -904,6 +914,11 @@ video {
|
|
|
904
914
|
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
|
905
915
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
906
916
|
}
|
|
917
|
+
.shadow-sm {
|
|
918
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
919
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
920
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
921
|
+
}
|
|
907
922
|
.outline-none {
|
|
908
923
|
outline: 2px solid transparent;
|
|
909
924
|
outline-offset: 2px;
|
|
@@ -976,6 +991,9 @@ video {
|
|
|
976
991
|
--tw-text-opacity: 1;
|
|
977
992
|
color: rgb(2 6 23 / var(--tw-text-opacity));
|
|
978
993
|
}
|
|
994
|
+
.hover\:underline:hover {
|
|
995
|
+
text-decoration-line: underline;
|
|
996
|
+
}
|
|
979
997
|
.focus\:opacity-100:focus {
|
|
980
998
|
opacity: 1;
|
|
981
999
|
}
|
|
@@ -1155,6 +1173,10 @@ video {
|
|
|
1155
1173
|
.data-\[state\=open\]\:slide-in-from-top-full[data-state=open] {
|
|
1156
1174
|
--tw-enter-translate-y: -100%;
|
|
1157
1175
|
}
|
|
1176
|
+
:is(.dark .dark\:border-neutral-800) {
|
|
1177
|
+
--tw-border-opacity: 1;
|
|
1178
|
+
border-color: rgb(38 38 38 / var(--tw-border-opacity));
|
|
1179
|
+
}
|
|
1158
1180
|
:is(.dark .dark\:border-red-900) {
|
|
1159
1181
|
--tw-border-opacity: 1;
|
|
1160
1182
|
border-color: rgb(127 29 29 / var(--tw-border-opacity));
|
|
@@ -1163,6 +1185,10 @@ video {
|
|
|
1163
1185
|
--tw-border-opacity: 1;
|
|
1164
1186
|
border-color: rgb(30 41 59 / var(--tw-border-opacity));
|
|
1165
1187
|
}
|
|
1188
|
+
:is(.dark .dark\:bg-neutral-950) {
|
|
1189
|
+
--tw-bg-opacity: 1;
|
|
1190
|
+
background-color: rgb(10 10 10 / var(--tw-bg-opacity));
|
|
1191
|
+
}
|
|
1166
1192
|
:is(.dark .dark\:bg-red-900) {
|
|
1167
1193
|
--tw-bg-opacity: 1;
|
|
1168
1194
|
background-color: rgb(127 29 29 / var(--tw-bg-opacity));
|
|
@@ -1171,6 +1197,14 @@ video {
|
|
|
1171
1197
|
--tw-bg-opacity: 1;
|
|
1172
1198
|
background-color: rgb(2 6 23 / var(--tw-bg-opacity));
|
|
1173
1199
|
}
|
|
1200
|
+
:is(.dark .dark\:text-neutral-400) {
|
|
1201
|
+
--tw-text-opacity: 1;
|
|
1202
|
+
color: rgb(163 163 163 / var(--tw-text-opacity));
|
|
1203
|
+
}
|
|
1204
|
+
:is(.dark .dark\:text-neutral-50) {
|
|
1205
|
+
--tw-text-opacity: 1;
|
|
1206
|
+
color: rgb(250 250 250 / var(--tw-text-opacity));
|
|
1207
|
+
}
|
|
1174
1208
|
:is(.dark .dark\:text-slate-50) {
|
|
1175
1209
|
--tw-text-opacity: 1;
|
|
1176
1210
|
color: rgb(248 250 252 / var(--tw-text-opacity));
|
|
@@ -1238,4 +1272,4 @@ video {
|
|
|
1238
1272
|
.md\:max-w-\[420px\] {
|
|
1239
1273
|
max-width: 420px;
|
|
1240
1274
|
}
|
|
1241
|
-
}
|
|
1275
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infra-cryptomate/react-components",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components.umd.js",
|
|
7
7
|
"module": "./dist/components.es.js",
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"build": "tsc && vite build && npm run build:styles",
|
|
23
23
|
"build:styles": "postcss ./src/tailwind/theme.css -o ./dist/style.css",
|
|
24
24
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
25
|
-
"preview": "vite preview"
|
|
25
|
+
"preview": "vite preview",
|
|
26
|
+
"test": "vitest",
|
|
27
|
+
"coverage": "vitest run --coverage"
|
|
26
28
|
},
|
|
27
29
|
"peerDependencies": {
|
|
28
30
|
"@types/react": "*",
|
|
@@ -37,7 +39,9 @@
|
|
|
37
39
|
"@radix-ui/react-toast": "1.1.4",
|
|
38
40
|
"@types/uuid": "9.0.3",
|
|
39
41
|
"autoprefixer": "10.4.15",
|
|
42
|
+
"clsx": "2.0.0",
|
|
40
43
|
"lucide-react": "0.274.0",
|
|
44
|
+
"postcss": "8.4.29",
|
|
41
45
|
"tailwind-merge": "1.14.0",
|
|
42
46
|
"tailwindcss": "3.3.3",
|
|
43
47
|
"tailwindcss-animate": "1.0.7",
|
|
@@ -45,16 +49,22 @@
|
|
|
45
49
|
"vite-plugin-dts": "3.5.3"
|
|
46
50
|
},
|
|
47
51
|
"devDependencies": {
|
|
52
|
+
"@testing-library/react": "14.0.0",
|
|
48
53
|
"@types/react": "18.2.15",
|
|
49
54
|
"@types/react-dom": "18.2.7",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "6.7.0",
|
|
51
56
|
"@typescript-eslint/parser": "6.0.0",
|
|
52
57
|
"@vitejs/plugin-react": "4.0.4",
|
|
53
58
|
"@vitejs/plugin-react-swc": "3.3.2",
|
|
54
|
-
"eslint": "8.
|
|
59
|
+
"eslint": "8.49.0",
|
|
60
|
+
"eslint-config-standard-with-typescript": "39.0.0",
|
|
61
|
+
"eslint-plugin-import": "2.28.1",
|
|
62
|
+
"eslint-plugin-n": "16.1.0",
|
|
63
|
+
"eslint-plugin-promise": "6.1.1",
|
|
64
|
+
"eslint-plugin-react": "7.33.2",
|
|
55
65
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
56
66
|
"eslint-plugin-react-refresh": "0.4.3",
|
|
57
|
-
"
|
|
67
|
+
"jsdom": "22.1.0",
|
|
58
68
|
"postcss-cli": "10.1.0",
|
|
59
69
|
"typescript": "5.0.2",
|
|
60
70
|
"vite": "4.4.5",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
}
|
|
4
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
}
|
|
7
|
-
declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
9
|
-
}
|
|
10
|
-
declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
11
|
-
interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
12
|
-
}
|
|
13
|
-
declare const CardDescription: React.ForwardRefExoticComponent<CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
14
|
-
interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
-
}
|
|
16
|
-
declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
|
-
}
|
|
19
|
-
declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|