@dito-uai/components 5.1.0-alpha.5 → 5.1.0-alpha.51
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/LICENSE +21 -0
- package/README.md +45 -1
- package/dist/global.css +1 -1
- package/dist/index.cjs +78 -42
- package/dist/index.d.cts +1133 -858
- package/dist/index.d.ts +60 -2240
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -14
- package/dist/ui/alert.d.ts +22 -32
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +4 -124
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/badge.d.ts +4 -148
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/button.d.ts +166 -316
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/card.d.ts +2 -66
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/chips.d.ts +24 -280
- package/dist/ui/chips.d.ts.map +1 -1
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +131 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/indicator.d.ts +15 -15
- package/dist/ui/indicator.d.ts.map +1 -1
- package/dist/ui/input-description.d.ts +2 -26
- package/dist/ui/input-description.d.ts.map +1 -1
- package/dist/ui/input.d.ts +129 -255
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/internal/dropdown-content.d.ts.map +1 -1
- package/dist/ui/label.d.ts +2 -18
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/loading.d.ts +9 -0
- package/dist/ui/loading.d.ts.map +1 -0
- package/dist/ui/message.d.ts +56 -0
- package/dist/ui/message.d.ts.map +1 -0
- package/dist/ui/popover.d.ts +7 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/progress-bar.d.ts +1 -1
- package/dist/ui/progress-bar.d.ts.map +1 -1
- package/dist/ui/progress.d.ts +9 -27
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/radio.d.ts +98 -4
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/scope.d.ts +4 -108
- package/dist/ui/scope.d.ts.map +1 -1
- package/dist/ui/search.d.ts +60 -124
- package/dist/ui/search.d.ts.map +1 -1
- package/dist/ui/sheets.d.ts +2 -2
- package/dist/ui/sheets.d.ts.map +1 -1
- package/dist/ui/skeleton.d.ts +42 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/status.d.ts +7 -38
- package/dist/ui/status.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +15 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/tabs.d.ts +4 -5
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/text.d.ts +3 -63
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/tip-card.d.ts +77 -0
- package/dist/ui/tip-card.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +11 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +48 -12
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/tooltip.d.ts +10 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/package.json +99 -40
- package/tailwind-preset.ts +275 -0
- package/tailwind.config.ts +12 -262
- package/dist/ui/form-item.d.ts +0 -16
- package/dist/ui/form-item.d.ts.map +0 -1
- package/dist/ui/form.d.ts +0 -1
- package/dist/ui/form.d.ts.map +0 -1
package/dist/ui/toggle.d.ts
CHANGED
|
@@ -1,13 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} &
|
|
12
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
12
|
+
variant: {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
19
|
+
variant: {
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
size: {
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", unknown, unknown, undefined>>;
|
|
26
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
27
|
+
variant: {
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
34
|
+
variant: {
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
41
|
+
variant: {
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", unknown, unknown, undefined>>> & React.RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
export { Toggle, toggleVariants };
|
|
13
49
|
//# sourceMappingURL=toggle.d.ts.map
|
package/dist/ui/toggle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/ui/toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAI1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;icAelB,CAAC;AAEH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;4eAUV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
export declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
+
export type TooltipProps = {
|
|
5
|
+
title: string | React.ReactNode;
|
|
6
|
+
maxWidth?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const Tooltip: (props: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAG5D,eAAO,MAAM,eAAe,iDAA4B,CAAC;AAoBzD,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,YAAY,4CAW1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,92 +1,128 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dito-uai/components",
|
|
3
|
-
"version": "5.1.0-alpha.
|
|
4
|
-
"
|
|
3
|
+
"version": "5.1.0-alpha.51",
|
|
4
|
+
"description": "Dito's design system component library, made in TSX",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": "git+https://github.com/ditointernet/dito-uai.git",
|
|
7
|
+
"homepage": "https://github.com/ditointernet/dito-uai#readme",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/ditointernet/dito-uai/issues"
|
|
10
|
+
},
|
|
6
11
|
"publishConfig": {
|
|
7
12
|
"access": "public"
|
|
8
13
|
},
|
|
9
14
|
"type": "module",
|
|
10
|
-
"main": "dist/index.js",
|
|
11
|
-
"module": "dist/index.mjs",
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
15
|
"sideEffects": false,
|
|
14
16
|
"files": [
|
|
15
17
|
"dist/",
|
|
16
18
|
"./tailwind.config.ts",
|
|
19
|
+
"./tailwind-preset.ts",
|
|
17
20
|
"./lib/colors-utils.ts"
|
|
18
21
|
],
|
|
22
|
+
"main": "dist/index.js",
|
|
23
|
+
"module": "dist/index.mjs",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
19
25
|
"exports": {
|
|
20
26
|
".": {
|
|
21
|
-
"import":
|
|
22
|
-
|
|
23
|
-
"default": "./dist/index.js"
|
|
24
|
-
},
|
|
25
|
-
"require": {
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"default": "./dist/index.mjs"
|
|
28
|
-
}
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"require": "./dist/index.mjs"
|
|
29
29
|
},
|
|
30
30
|
"./global.css": "./dist/global.css",
|
|
31
31
|
"./tailwind.config": {
|
|
32
|
-
"import":
|
|
33
|
-
|
|
34
|
-
"default": "./tailwind.config.ts"
|
|
35
|
-
},
|
|
36
|
-
"require": {
|
|
37
|
-
"types": "./tailwind.config.ts",
|
|
38
|
-
"default": "./tailwind.config.ts"
|
|
39
|
-
}
|
|
32
|
+
"import": "./tailwind-preset.ts",
|
|
33
|
+
"require": "./tailwind-preset.ts"
|
|
40
34
|
}
|
|
41
35
|
},
|
|
42
36
|
"scripts": {
|
|
43
|
-
"dev": "
|
|
44
|
-
"
|
|
45
|
-
"build": "yarn
|
|
46
|
-
"bundle": "yarn build:js & yarn build:types & yarn build:css",
|
|
37
|
+
"dev": "INCLUDE_STORYBOOK=true storybook dev -p 6006 --config-dir ./src/storybook/.storybook",
|
|
38
|
+
"build:storybook": "INCLUDE_STORYBOOK=true storybook build --config-dir ./src/storybook/.storybook --output-dir ./src/storybook/storybook-static",
|
|
39
|
+
"build:uai": "yarn build:js && yarn build:types && yarn build:css",
|
|
47
40
|
"build:js": "tsup",
|
|
48
|
-
"build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
|
|
49
|
-
"build:css": "tailwindcss -i ./src/global.css -o ./dist/global.css --minify -v"
|
|
41
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist --project tsconfig.build.json",
|
|
42
|
+
"build:css": "tailwindcss -i ./src/global.css -o ./dist/global.css --minify -v",
|
|
43
|
+
"publish:uai": "semantic-release",
|
|
44
|
+
"format:ts": "prettier",
|
|
45
|
+
"format:ts:all": "yarn format:ts --check \"src/**/*.{ts,tsx}\"",
|
|
46
|
+
"format": "yarn format:ts:all",
|
|
47
|
+
"lint:ts": "eslint --cache",
|
|
48
|
+
"lint:ts:all": "yarn lint:ts \"src/**/*.{ts,tsx}\"",
|
|
49
|
+
"lint": "yarn lint:ts:all --fix",
|
|
50
|
+
"cz": "cz"
|
|
50
51
|
},
|
|
51
|
-
"packageManager": "yarn@4.1.1",
|
|
52
52
|
"devDependencies": {
|
|
53
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
54
|
+
"@commitlint/cli": "^19.3.0",
|
|
55
|
+
"@commitlint/config-conventional": "13.1.0",
|
|
56
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
57
|
+
"@eslint/js": "^9.8.0",
|
|
53
58
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
54
59
|
"@semantic-release/exec": "6.0.3",
|
|
55
60
|
"@semantic-release/git": "9.0.0",
|
|
56
61
|
"@semantic-release/github": "^10.1.3",
|
|
57
62
|
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
63
|
+
"@storybook/addon-docs": "10.0.8",
|
|
64
|
+
"@storybook/addon-onboarding": "10.0.8",
|
|
65
|
+
"@storybook/react-vite": "10.0.8",
|
|
66
|
+
"@types/eslint__js": "^8.42.3",
|
|
67
|
+
"@types/postcss-flexbugs-fixes": "^5",
|
|
68
|
+
"@types/prop-types": "^15.7.12",
|
|
58
69
|
"@types/react": "^18.3.3",
|
|
70
|
+
"@types/react-dom": "^18.3.0",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
72
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
73
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
59
74
|
"autoprefixer": "^10.4.19",
|
|
60
|
-
"
|
|
75
|
+
"chromatic": "^11.7.0",
|
|
76
|
+
"commitizen": "^4.3.0",
|
|
77
|
+
"commitlint": "^19.3.0",
|
|
78
|
+
"cz-conventional-changelog": "3.3.0",
|
|
79
|
+
"cz-customizable": "6.9.2",
|
|
80
|
+
"dotenv-cli": "^7.4.2",
|
|
81
|
+
"esbuild": "^0.12.15",
|
|
61
82
|
"esbuild-plugin-svgr": "^2.1.0",
|
|
62
83
|
"esbuild-plugin-tsc": "^0.4.0",
|
|
63
84
|
"esbuild-ts-paths": "^1.1.3",
|
|
85
|
+
"eslint": "^9.8.0",
|
|
86
|
+
"eslint-config-prettier": "^9.1.0",
|
|
87
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
88
|
+
"eslint-plugin-storybook": "10.0.8",
|
|
89
|
+
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
90
|
+
"firebase-tools": "13.14.2",
|
|
91
|
+
"husky": "7.0.1",
|
|
92
|
+
"lint-staged": "15.2.7",
|
|
64
93
|
"postcss": "^8.4.38",
|
|
65
|
-
"
|
|
94
|
+
"prettier": "^3.3.3",
|
|
95
|
+
"prop-types": "^15.8.1",
|
|
96
|
+
"semantic-release": "^17",
|
|
97
|
+
"storybook": "10.0.8",
|
|
66
98
|
"supports-color": "^9.4.0",
|
|
67
|
-
"tailwind-variants": "^0.2.1",
|
|
68
99
|
"tailwindcss": "^3.4.13",
|
|
69
100
|
"tsup": "^8.2.3",
|
|
70
101
|
"typescript": "^5.5.4",
|
|
71
|
-
"
|
|
102
|
+
"typescript-eslint": "^8.0.0",
|
|
103
|
+
"vite": "^5.3.5",
|
|
104
|
+
"vite-plugin-checker": "^0.11.0",
|
|
105
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
72
106
|
},
|
|
73
107
|
"dependencies": {
|
|
74
|
-
"@dito-uai/icons": "^1.
|
|
108
|
+
"@dito-uai/icons": "^1.12.0",
|
|
75
109
|
"@hookform/resolvers": "^3.9.0",
|
|
76
110
|
"@radix-ui/react-accordion": "^1.2.0",
|
|
77
111
|
"@radix-ui/react-avatar": "^1.0.4",
|
|
78
112
|
"@radix-ui/react-checkbox": "^1.0.4",
|
|
79
113
|
"@radix-ui/react-collapsible": "^1.1.1",
|
|
80
114
|
"@radix-ui/react-dialog": "^1.0.5",
|
|
81
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
115
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
116
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
82
117
|
"@radix-ui/react-progress": "^1.1.0",
|
|
83
118
|
"@radix-ui/react-radio-group": "^1.2.0",
|
|
84
119
|
"@radix-ui/react-slot": "^1.1.0",
|
|
85
120
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
86
|
-
"@radix-ui/react-toggle
|
|
121
|
+
"@radix-ui/react-toggle": "^1.1.10",
|
|
122
|
+
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
123
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
87
124
|
"@tailwindcss/forms": "^0.5.9",
|
|
88
125
|
"@tailwindcss/typography": "^0.5.15",
|
|
89
|
-
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.15",
|
|
90
126
|
"class-variance-authority": "^0.7.0",
|
|
91
127
|
"clsx": "^2.1.1",
|
|
92
128
|
"lucide-react": "^0.418.0",
|
|
@@ -95,8 +131,9 @@
|
|
|
95
131
|
"postcss-nested": "^6.2.0",
|
|
96
132
|
"react": "^18.3.1",
|
|
97
133
|
"react-dom": "^18.3.1",
|
|
98
|
-
"react-
|
|
99
|
-
"tailwind-merge": "^
|
|
134
|
+
"react-toastify": "9.1.3",
|
|
135
|
+
"tailwind-merge": "^3.4.0",
|
|
136
|
+
"tailwind-variants": "^3.1.1",
|
|
100
137
|
"tailwindcss-animate": "^1.0.7",
|
|
101
138
|
"zod": "^3.23.8"
|
|
102
139
|
},
|
|
@@ -105,8 +142,30 @@
|
|
|
105
142
|
"lucide-react": "^0.377.0",
|
|
106
143
|
"react": "^18.3.1",
|
|
107
144
|
"react-dom": "^18.3.1",
|
|
108
|
-
"react-hook-form": "^7.52.1",
|
|
109
145
|
"zod": "^3.23.8"
|
|
110
146
|
},
|
|
111
|
-
"
|
|
147
|
+
"engines": {
|
|
148
|
+
"node": ">= 20"
|
|
149
|
+
},
|
|
150
|
+
"config": {
|
|
151
|
+
"commitizen": {
|
|
152
|
+
"path": "cz-customizable",
|
|
153
|
+
"defaultType": "fix",
|
|
154
|
+
"defaultScope": "components"
|
|
155
|
+
},
|
|
156
|
+
"cz-customizable": {
|
|
157
|
+
"config": ".cz-config.cjs"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"husky": {
|
|
161
|
+
"hooks": {
|
|
162
|
+
"prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"resolutions": {
|
|
166
|
+
"underscore.string": "npm:underscore.string@*",
|
|
167
|
+
"eslint": "npm:eslint@9.8.0",
|
|
168
|
+
"typescript-eslint": "npm:typescript-eslint@8.0.0"
|
|
169
|
+
},
|
|
170
|
+
"packageManager": "yarn@4.3.1"
|
|
112
171
|
}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import TailwindsForms from '@tailwindcss/forms';
|
|
2
|
+
import TailwindsTypography from '@tailwindcss/typography';
|
|
3
|
+
import TailwindsAnimate from 'tailwindcss-animate';
|
|
4
|
+
|
|
5
|
+
export const COLORS = {
|
|
6
|
+
neutral: {
|
|
7
|
+
white: '#ffffff',
|
|
8
|
+
black: '#000000',
|
|
9
|
+
neutral_900: '#21242b',
|
|
10
|
+
neutral_700: '#343841',
|
|
11
|
+
neutral_600: '#484d59',
|
|
12
|
+
neutral_500: '#6a7486',
|
|
13
|
+
neutral_400: '#8d95a7',
|
|
14
|
+
neutral_300: '#bdc2cc',
|
|
15
|
+
neutral_200: '#d7dae0',
|
|
16
|
+
neutral_100: '#eff0f2',
|
|
17
|
+
},
|
|
18
|
+
brand: {
|
|
19
|
+
navy_900: '#223154',
|
|
20
|
+
navy_600: '#364b74',
|
|
21
|
+
navy_100: '#e6e8ed',
|
|
22
|
+
green_900: '#006a31',
|
|
23
|
+
green_600: '#00bd6a',
|
|
24
|
+
green_100: '#e5f7ed',
|
|
25
|
+
},
|
|
26
|
+
secondary: {
|
|
27
|
+
indigo_900: '#353877',
|
|
28
|
+
indigo_600: '#4b5398',
|
|
29
|
+
indigo_100: '#e8eaf2',
|
|
30
|
+
purple_900: '#541f8e',
|
|
31
|
+
purple_600: '#852ca5',
|
|
32
|
+
purple_100: '#f7e7fc',
|
|
33
|
+
blue_900: '#4a58d5',
|
|
34
|
+
blue_600: '#549eff',
|
|
35
|
+
blue_100: '#e4f1ff',
|
|
36
|
+
pink_900: '#a50a54',
|
|
37
|
+
pink_600: '#f1167f',
|
|
38
|
+
pink_100: '#fee6f1',
|
|
39
|
+
green_900: '#127a6e',
|
|
40
|
+
green_600: '#06c5ae',
|
|
41
|
+
green_100: '#e6f9f7',
|
|
42
|
+
platform_background: '#f3f4f8',
|
|
43
|
+
},
|
|
44
|
+
chart: {
|
|
45
|
+
midnight_blue_900: '#0a0259',
|
|
46
|
+
midnight_blue_600: '#271bae',
|
|
47
|
+
midnight_blue_100: '#ebf0ff',
|
|
48
|
+
green_900: '#005b42',
|
|
49
|
+
green_600: '#0bcc96',
|
|
50
|
+
green_100: '#e5fff4',
|
|
51
|
+
purple_900: '#4c178e',
|
|
52
|
+
purple_600: '#8929ff',
|
|
53
|
+
purple_100: '#f6eeff',
|
|
54
|
+
pink_900: '#b91d70',
|
|
55
|
+
pink_600: '#ff00b8',
|
|
56
|
+
pink_100: '#fff1fb',
|
|
57
|
+
light_blue_900: '#094170',
|
|
58
|
+
light_blue_600: '#00beff',
|
|
59
|
+
light_blue_100: '#ebf9ff',
|
|
60
|
+
orange_900: '#b84300',
|
|
61
|
+
orange_600: '#ff7a00',
|
|
62
|
+
orange_100: '#fff0df',
|
|
63
|
+
red_900: '#8b0c23',
|
|
64
|
+
red_600: '#db0028',
|
|
65
|
+
red_100: '#ffecef',
|
|
66
|
+
blue_900: '#09006d',
|
|
67
|
+
blue_600: '#1456ff',
|
|
68
|
+
blue_100: '#e6f2ff',
|
|
69
|
+
yellow_900: '#9d670b',
|
|
70
|
+
yellow_600: '#f1c40f',
|
|
71
|
+
yellow_100: '#fff9e7',
|
|
72
|
+
},
|
|
73
|
+
notification: {
|
|
74
|
+
critical_900: '#9e0505',
|
|
75
|
+
critical_600: '#d31d26',
|
|
76
|
+
critical_300: '#ffadb0',
|
|
77
|
+
critical_100: '#ffebeb',
|
|
78
|
+
warning_900: '#8a4900',
|
|
79
|
+
warning_600: '#ffca42',
|
|
80
|
+
warning_300: '#ffe8a9',
|
|
81
|
+
warning_100: '#fff6ce',
|
|
82
|
+
success_900: '#074a1b',
|
|
83
|
+
success_600: '#228000',
|
|
84
|
+
success_300: '#80e09c',
|
|
85
|
+
success_100: '#defce7',
|
|
86
|
+
information_900: '#1e4664',
|
|
87
|
+
information_600: '#0d74a0',
|
|
88
|
+
information_300: '#b0e7ff',
|
|
89
|
+
information_100: '#e0f8ff',
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @type {import('tailwindcss').Config} */
|
|
94
|
+
export default {
|
|
95
|
+
theme: {
|
|
96
|
+
screens: {
|
|
97
|
+
sm: '480px',
|
|
98
|
+
md: '768px',
|
|
99
|
+
lg: '976px',
|
|
100
|
+
xl: '1440px',
|
|
101
|
+
},
|
|
102
|
+
fontFamily: {
|
|
103
|
+
sans: ['Poppins', 'sans-serif'],
|
|
104
|
+
},
|
|
105
|
+
extend: {
|
|
106
|
+
backgroundImage: {
|
|
107
|
+
'gradient-radial': 'radial-gradient(var(--gradient-color-stops))',
|
|
108
|
+
},
|
|
109
|
+
colors: () => ({
|
|
110
|
+
primary: COLORS.brand.green_600,
|
|
111
|
+
'primary-foreground': '#ffffff',
|
|
112
|
+
accent: COLORS.brand.navy_600,
|
|
113
|
+
'accent-foreground': '#ffffff',
|
|
114
|
+
'neutral-100': COLORS.neutral.neutral_100,
|
|
115
|
+
'neutral-200': COLORS.neutral.neutral_200,
|
|
116
|
+
'neutral-300': COLORS.neutral.neutral_300,
|
|
117
|
+
'neutral-400': COLORS.neutral.neutral_400,
|
|
118
|
+
'neutral-500': COLORS.neutral.neutral_500,
|
|
119
|
+
'neutral-600': COLORS.neutral.neutral_600,
|
|
120
|
+
'neutral-700': COLORS.neutral.neutral_700,
|
|
121
|
+
'neutral-900': COLORS.neutral.neutral_900,
|
|
122
|
+
'midnight-blue-900': COLORS.chart.midnight_blue_900,
|
|
123
|
+
'midnight-blue-600': COLORS.chart.midnight_blue_600,
|
|
124
|
+
'midnight-blue-100': COLORS.chart.midnight_blue_100,
|
|
125
|
+
'red-100': COLORS.chart.red_100,
|
|
126
|
+
'red-600': COLORS.chart.red_600,
|
|
127
|
+
'red-900': COLORS.chart.red_900,
|
|
128
|
+
'orange-100': COLORS.chart.orange_100,
|
|
129
|
+
'orange-600': COLORS.chart.orange_600,
|
|
130
|
+
'orange-900': COLORS.chart.orange_900,
|
|
131
|
+
'yellow-100': COLORS.chart.yellow_100,
|
|
132
|
+
'yellow-600': COLORS.chart.yellow_600,
|
|
133
|
+
'yellow-900': COLORS.chart.yellow_900,
|
|
134
|
+
'green-100': COLORS.brand.green_100,
|
|
135
|
+
'green-600': COLORS.brand.green_600,
|
|
136
|
+
'green-900': COLORS.brand.green_900,
|
|
137
|
+
'blue-100': COLORS.secondary.blue_100,
|
|
138
|
+
'blue-600': COLORS.secondary.blue_600,
|
|
139
|
+
'blue-900': COLORS.secondary.blue_900,
|
|
140
|
+
'light-blue-100': COLORS.chart.light_blue_100,
|
|
141
|
+
'light-blue-600': COLORS.chart.light_blue_600,
|
|
142
|
+
'light-blue-900': COLORS.chart.light_blue_900,
|
|
143
|
+
'indigo-100': COLORS.secondary.indigo_100,
|
|
144
|
+
'indigo-600': COLORS.secondary.indigo_600,
|
|
145
|
+
'indigo-900': COLORS.secondary.indigo_900,
|
|
146
|
+
'navy-100': COLORS.brand.navy_100,
|
|
147
|
+
'navy-600': COLORS.brand.navy_600,
|
|
148
|
+
'navy-900': COLORS.brand.navy_900,
|
|
149
|
+
'purple-100': COLORS.chart.purple_100,
|
|
150
|
+
'purple-600': COLORS.chart.purple_600,
|
|
151
|
+
'purple-900': COLORS.chart.purple_900,
|
|
152
|
+
'pink-100': COLORS.chart.pink_100,
|
|
153
|
+
'pink-600': COLORS.chart.pink_600,
|
|
154
|
+
'pink-900': COLORS.chart.pink_900,
|
|
155
|
+
notification: {
|
|
156
|
+
'critical-100': COLORS.notification.critical_100,
|
|
157
|
+
'critical-300': COLORS.notification.critical_300,
|
|
158
|
+
'critical-600': COLORS.notification.critical_600,
|
|
159
|
+
'critical-900': COLORS.notification.critical_900,
|
|
160
|
+
'warning-100': COLORS.notification.warning_100,
|
|
161
|
+
'warning-300': COLORS.notification.warning_300,
|
|
162
|
+
'warning-600': COLORS.notification.warning_600,
|
|
163
|
+
'warning-900': COLORS.notification.warning_900,
|
|
164
|
+
'success-100': COLORS.notification.success_100,
|
|
165
|
+
'success-300': COLORS.notification.success_300,
|
|
166
|
+
'success-600': COLORS.notification.success_600,
|
|
167
|
+
'success-900': COLORS.notification.success_900,
|
|
168
|
+
'information-100': COLORS.notification.information_100,
|
|
169
|
+
'information-300': COLORS.notification.information_300,
|
|
170
|
+
'information-600': COLORS.notification.information_600,
|
|
171
|
+
'information-900': COLORS.notification.information_900,
|
|
172
|
+
},
|
|
173
|
+
secondary: {
|
|
174
|
+
'indigo-100': COLORS.secondary.indigo_100,
|
|
175
|
+
'indigo-600': COLORS.secondary.indigo_600,
|
|
176
|
+
'indigo-900': COLORS.secondary.indigo_900,
|
|
177
|
+
},
|
|
178
|
+
}),
|
|
179
|
+
height: {
|
|
180
|
+
1: '8px',
|
|
181
|
+
2: '16px',
|
|
182
|
+
3: '24px',
|
|
183
|
+
4: '32px',
|
|
184
|
+
5: '40px',
|
|
185
|
+
6: '48px',
|
|
186
|
+
7: '56px',
|
|
187
|
+
},
|
|
188
|
+
gap: {
|
|
189
|
+
1: '8px',
|
|
190
|
+
2: '16px',
|
|
191
|
+
3: '32px',
|
|
192
|
+
4: '48px',
|
|
193
|
+
},
|
|
194
|
+
spacing: {
|
|
195
|
+
0.25: '2px',
|
|
196
|
+
0.5: '4px',
|
|
197
|
+
0.75: '6px',
|
|
198
|
+
1: '8px',
|
|
199
|
+
2: '16px',
|
|
200
|
+
3: '24px',
|
|
201
|
+
4: '32px',
|
|
202
|
+
5: '40px',
|
|
203
|
+
6: '48px',
|
|
204
|
+
7: '56px',
|
|
205
|
+
8: '64px',
|
|
206
|
+
9: '72px',
|
|
207
|
+
10: '128px',
|
|
208
|
+
},
|
|
209
|
+
maxWidth: {
|
|
210
|
+
'1/4': '25%',
|
|
211
|
+
'1/2': '50%',
|
|
212
|
+
'3/4': '75%',
|
|
213
|
+
},
|
|
214
|
+
borderRadius: {
|
|
215
|
+
sm: '4px',
|
|
216
|
+
m: '8px',
|
|
217
|
+
x: '16px',
|
|
218
|
+
xl: '32px',
|
|
219
|
+
},
|
|
220
|
+
boxShadow: {
|
|
221
|
+
down: '0px 4px 8px 0px #00000014',
|
|
222
|
+
},
|
|
223
|
+
fontSize: {
|
|
224
|
+
xs: ['10px', { lineHeight: '16px' }],
|
|
225
|
+
sm: ['12px', { lineHeight: '18px' }],
|
|
226
|
+
base: ['14px', { lineHeight: '20px' }],
|
|
227
|
+
lg: ['16px', { lineHeight: '24px' }],
|
|
228
|
+
xl: ['22px', { lineHeight: '32px' }],
|
|
229
|
+
'2xl': ['28px', { lineHeight: '40px' }],
|
|
230
|
+
'3xl': ['30px', { lineHeight: '44px' }],
|
|
231
|
+
},
|
|
232
|
+
keyframes: {
|
|
233
|
+
'accordion-down': {
|
|
234
|
+
from: { height: '0' },
|
|
235
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
|
236
|
+
},
|
|
237
|
+
'accordion-up': {
|
|
238
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
239
|
+
to: { height: '0' },
|
|
240
|
+
},
|
|
241
|
+
rotate: {
|
|
242
|
+
'100%': { transform: 'rotate(360deg)' },
|
|
243
|
+
},
|
|
244
|
+
dash: {
|
|
245
|
+
'0%': {
|
|
246
|
+
'stroke-dasharray': '1, 200',
|
|
247
|
+
'stroke-dashoffset': '0',
|
|
248
|
+
},
|
|
249
|
+
'50%': {
|
|
250
|
+
'stroke-dasharray': '90, 200',
|
|
251
|
+
'stroke-dashoffset': '-35px',
|
|
252
|
+
},
|
|
253
|
+
'100%': {
|
|
254
|
+
'stroke-dashoffset': '-125px',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
border: {
|
|
258
|
+
to: { '--border-angle': '360deg' },
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
animation: {
|
|
262
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
263
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
264
|
+
rotate: 'rotate 2s linear infinite',
|
|
265
|
+
border: 'border 2s linear infinite',
|
|
266
|
+
dash: 'dash 1.5s ease-in-out infinite',
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
plugins: [
|
|
271
|
+
TailwindsAnimate,
|
|
272
|
+
TailwindsTypography,
|
|
273
|
+
TailwindsForms({ strategy: 'class' }),
|
|
274
|
+
],
|
|
275
|
+
};
|