@apptify-labs/ui 1.0.0
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/.storybook/main.ts +27 -0
- package/.storybook/preview.tsx +15 -0
- package/.turbo/turbo-build.log +19 -0
- package/README.md +107 -0
- package/STORYBOOK.md +112 -0
- package/dist/index.d.mts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +182 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +136 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +63 -0
- package/postcss.config.js +6 -0
- package/src/components/card/card.stories.tsx +38 -0
- package/src/components/card/card.tsx +75 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.stories.tsx +40 -0
- package/src/components/input/input.tsx +24 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.stories.tsx +22 -0
- package/src/components/label/label.tsx +23 -0
- package/src/components/separator/index.ts +1 -0
- package/src/components/separator/separator.stories.tsx +36 -0
- package/src/components/separator/separator.tsx +28 -0
- package/src/index.ts +5 -0
- package/src/styles.css +69 -0
- package/src/utils/cn.ts +14 -0
- package/src/utils/index.ts +1 -0
- package/storybook-static/assets/Color-YHDXOIA2-kSxZo1Vy.js +1 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-DsDoVbDP.js +575 -0
- package/storybook-static/assets/card.stories-1IXkTbkW.js +20 -0
- package/storybook-static/assets/chunk-XP5HYGXS-rhzvizV_.js +1 -0
- package/storybook-static/assets/client-CN6oaCdP.js +33 -0
- package/storybook-static/assets/entry-preview-Ct7_9bu-.js +2 -0
- package/storybook-static/assets/entry-preview-docs-pv-Qwe_M.js +46 -0
- package/storybook-static/assets/iframe-CbRAOl5a.js +211 -0
- package/storybook-static/assets/index-B3ijS-tw.js +11 -0
- package/storybook-static/assets/index-DH-M5T-F.js +240 -0
- package/storybook-static/assets/index-DHO77v_d.js +1 -0
- package/storybook-static/assets/index-DrFu-skq.js +6 -0
- package/storybook-static/assets/index-DzGJhHoF.js +9 -0
- package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +9 -0
- package/storybook-static/assets/preview-B8lJiyuQ.js +34 -0
- package/storybook-static/assets/preview-BBWR9nbA.js +1 -0
- package/storybook-static/assets/preview-BIuR4HGU.js +240 -0
- package/storybook-static/assets/preview-BWzBA1C2.js +396 -0
- package/storybook-static/assets/preview-B_o1KE33.css +1 -0
- package/storybook-static/assets/preview-CM32KvaH.js +1 -0
- package/storybook-static/assets/preview-CvbIS5ZJ.js +1 -0
- package/storybook-static/assets/preview-Cy3uZJAu.js +2 -0
- package/storybook-static/assets/preview-DD_OYowb.js +1 -0
- package/storybook-static/assets/preview-DGUiP6tS.js +7 -0
- package/storybook-static/assets/preview-DHQbi4pV.js +1 -0
- package/storybook-static/assets/react-18-BeIp0fAf.js +1 -0
- package/storybook-static/assets/test-utils-BxnH6twK.js +9 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +666 -0
- package/storybook-static/index.html +177 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +405 -0
- package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +245 -0
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +222 -0
- package/storybook-static/sb-addons/links-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +1052 -0
- package/storybook-static/sb-manager/globals-runtime.js +41775 -0
- package/storybook-static/sb-manager/globals.js +48 -0
- package/storybook-static/sb-manager/runtime.js +12048 -0
- package/tailwind.config.js +103 -0
- package/tsconfig.json +21 -0
- package/tsup.config.ts +12 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const { colors, radius, shadows, fontFamilies } = require("@apptify-labs/tokens");
|
|
2
|
+
|
|
3
|
+
/** @type {import('tailwindcss').Config} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
darkMode: "class",
|
|
6
|
+
content: ["./src/**/*.{ts,tsx}"],
|
|
7
|
+
theme: {
|
|
8
|
+
extend: {
|
|
9
|
+
colors: {
|
|
10
|
+
border: "hsl(var(--border))",
|
|
11
|
+
input: "hsl(var(--input))",
|
|
12
|
+
ring: "hsl(var(--ring))",
|
|
13
|
+
background: "hsl(var(--background))",
|
|
14
|
+
foreground: "hsl(var(--foreground))",
|
|
15
|
+
primary: {
|
|
16
|
+
DEFAULT: "hsl(var(--primary))",
|
|
17
|
+
foreground: "hsl(var(--primary-foreground))",
|
|
18
|
+
},
|
|
19
|
+
secondary: {
|
|
20
|
+
DEFAULT: "hsl(var(--secondary))",
|
|
21
|
+
foreground: "hsl(var(--secondary-foreground))",
|
|
22
|
+
},
|
|
23
|
+
destructive: {
|
|
24
|
+
DEFAULT: "hsl(var(--destructive))",
|
|
25
|
+
foreground: "hsl(var(--destructive-foreground))",
|
|
26
|
+
},
|
|
27
|
+
muted: {
|
|
28
|
+
DEFAULT: "hsl(var(--muted))",
|
|
29
|
+
foreground: "hsl(var(--muted-foreground))",
|
|
30
|
+
},
|
|
31
|
+
accent: {
|
|
32
|
+
DEFAULT: "hsl(var(--accent))",
|
|
33
|
+
foreground: "hsl(var(--accent-foreground))",
|
|
34
|
+
},
|
|
35
|
+
popover: {
|
|
36
|
+
DEFAULT: "hsl(var(--popover))",
|
|
37
|
+
foreground: "hsl(var(--popover-foreground))",
|
|
38
|
+
},
|
|
39
|
+
card: {
|
|
40
|
+
DEFAULT: "hsl(var(--card))",
|
|
41
|
+
foreground: "hsl(var(--card-foreground))",
|
|
42
|
+
},
|
|
43
|
+
success: {
|
|
44
|
+
DEFAULT: colors.success[500],
|
|
45
|
+
foreground: "#ffffff",
|
|
46
|
+
},
|
|
47
|
+
warning: {
|
|
48
|
+
DEFAULT: colors.warning[500],
|
|
49
|
+
foreground: "#ffffff",
|
|
50
|
+
},
|
|
51
|
+
info: {
|
|
52
|
+
DEFAULT: colors.info[500],
|
|
53
|
+
foreground: "#ffffff",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
borderRadius: {
|
|
57
|
+
lg: "var(--radius)",
|
|
58
|
+
md: "calc(var(--radius) - 2px)",
|
|
59
|
+
sm: "calc(var(--radius) - 4px)",
|
|
60
|
+
},
|
|
61
|
+
fontFamily: {
|
|
62
|
+
sans: [fontFamilies.sans],
|
|
63
|
+
mono: [fontFamilies.mono],
|
|
64
|
+
},
|
|
65
|
+
boxShadow: shadows,
|
|
66
|
+
keyframes: {
|
|
67
|
+
"accordion-down": {
|
|
68
|
+
from: { height: "0" },
|
|
69
|
+
to: { height: "var(--radix-accordion-content-height)" },
|
|
70
|
+
},
|
|
71
|
+
"accordion-up": {
|
|
72
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
73
|
+
to: { height: "0" },
|
|
74
|
+
},
|
|
75
|
+
"fade-in": {
|
|
76
|
+
from: { opacity: "0" },
|
|
77
|
+
to: { opacity: "1" },
|
|
78
|
+
},
|
|
79
|
+
"fade-out": {
|
|
80
|
+
from: { opacity: "1" },
|
|
81
|
+
to: { opacity: "0" },
|
|
82
|
+
},
|
|
83
|
+
"slide-in-from-top": {
|
|
84
|
+
from: { transform: "translateY(-100%)" },
|
|
85
|
+
to: { transform: "translateY(0)" },
|
|
86
|
+
},
|
|
87
|
+
"slide-in-from-bottom": {
|
|
88
|
+
from: { transform: "translateY(100%)" },
|
|
89
|
+
to: { transform: "translateY(0)" },
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
animation: {
|
|
93
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
94
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
95
|
+
"fade-in": "fade-in 0.2s ease-out",
|
|
96
|
+
"fade-out": "fade-out 0.2s ease-out",
|
|
97
|
+
"slide-in-from-top": "slide-in-from-top 0.3s ease-out",
|
|
98
|
+
"slide-in-from-bottom": "slide-in-from-bottom 0.3s ease-out",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
plugins: [],
|
|
103
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"outDir": "./dist",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"jsx": "react-jsx",
|
|
14
|
+
"lib": ["dom", "dom.iterable", "es2022"],
|
|
15
|
+
"paths": {
|
|
16
|
+
"@/*": ["./src/*"]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"include": ["src/**/*"],
|
|
20
|
+
"exclude": ["node_modules", "dist"]
|
|
21
|
+
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineConfig } from "tsup";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
entry: ["src/index.ts"],
|
|
5
|
+
format: ["cjs", "esm"],
|
|
6
|
+
dts: true,
|
|
7
|
+
splitting: false,
|
|
8
|
+
sourcemap: true,
|
|
9
|
+
clean: true,
|
|
10
|
+
external: ["react", "react-dom"],
|
|
11
|
+
injectStyle: false,
|
|
12
|
+
});
|