@deckai/deck-ui 0.0.7 → 0.0.9
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/AboutCard.cjs +14 -0
- package/dist/components/AboutCard.cjs.map +1 -0
- package/dist/components/AboutCard.d.cts +12 -0
- package/dist/components/AboutCard.d.ts +12 -0
- package/dist/components/AboutCard.js +14 -0
- package/dist/components/AboutCard.js.map +1 -0
- package/dist/components/Avatar.cjs +2 -0
- package/dist/components/Avatar.cjs.map +1 -0
- package/dist/components/Avatar.d.cts +10 -0
- package/dist/components/Avatar.d.ts +10 -0
- package/dist/components/Avatar.js +2 -0
- package/dist/components/Avatar.js.map +1 -0
- package/dist/components/Badge.cjs +2 -0
- package/dist/components/Badge.cjs.map +1 -0
- package/dist/components/Badge.d.cts +13 -0
- package/dist/components/Badge.d.ts +13 -0
- package/dist/components/Badge.js +2 -0
- package/dist/components/Badge.js.map +1 -0
- package/dist/components/Breadcrumbs.cjs +2 -0
- package/dist/components/Breadcrumbs.cjs.map +1 -0
- package/dist/components/Breadcrumbs.d.cts +15 -0
- package/dist/components/Breadcrumbs.d.ts +15 -0
- package/dist/components/Breadcrumbs.js +2 -0
- package/dist/components/Breadcrumbs.js.map +1 -0
- package/dist/components/Button.cjs +14 -0
- package/dist/components/Button.cjs.map +1 -0
- package/dist/components/Button.d.cts +28 -0
- package/dist/components/Button.d.ts +28 -0
- package/dist/components/Button.js +14 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Combobox.cjs +2 -0
- package/dist/components/Combobox.cjs.map +1 -0
- package/dist/components/Combobox.d.cts +14 -0
- package/dist/components/Combobox.d.ts +14 -0
- package/dist/components/Combobox.js +2 -0
- package/dist/components/Combobox.js.map +1 -0
- package/dist/components/ContactItem.cjs +2 -0
- package/dist/components/ContactItem.cjs.map +1 -0
- package/dist/components/ContactItem.d.cts +11 -0
- package/dist/components/ContactItem.d.ts +11 -0
- package/dist/components/ContactItem.js +2 -0
- package/dist/components/ContactItem.js.map +1 -0
- package/dist/components/Icon.cjs +2 -0
- package/dist/components/Icon.cjs.map +1 -0
- package/dist/components/Icon.d.cts +18 -0
- package/dist/components/Icon.d.ts +18 -0
- package/dist/components/Icon.js +2 -0
- package/dist/components/Icon.js.map +1 -0
- package/dist/components/Input.cjs +2 -0
- package/dist/components/Input.cjs.map +1 -0
- package/dist/components/Input.d.cts +14 -0
- package/dist/components/Input.d.ts +14 -0
- package/dist/components/Input.js +2 -0
- package/dist/components/Input.js.map +1 -0
- package/dist/components/Link.cjs +2 -0
- package/dist/components/Link.cjs.map +1 -0
- package/dist/components/Link.d.cts +13 -0
- package/dist/components/Link.d.ts +13 -0
- package/dist/components/Link.js +2 -0
- package/dist/components/Link.js.map +1 -0
- package/dist/components/Logo.cjs +3 -0
- package/dist/components/Logo.cjs.map +1 -0
- package/dist/components/Logo.d.cts +11 -0
- package/dist/components/Logo.d.ts +11 -0
- package/dist/components/Logo.js +3 -0
- package/dist/components/Logo.js.map +1 -0
- package/dist/components/Navbar.cjs +3 -0
- package/dist/components/Navbar.cjs.map +1 -0
- package/dist/components/Navbar.d.cts +19 -0
- package/dist/components/Navbar.d.ts +19 -0
- package/dist/components/Navbar.js +3 -0
- package/dist/components/Navbar.js.map +1 -0
- package/dist/components/NavbarItem.cjs +2 -0
- package/dist/components/NavbarItem.cjs.map +1 -0
- package/dist/components/NavbarItem.d.cts +13 -0
- package/dist/components/NavbarItem.d.ts +13 -0
- package/dist/components/NavbarItem.js +2 -0
- package/dist/components/NavbarItem.js.map +1 -0
- package/dist/components/Option.cjs +2 -0
- package/dist/components/Option.cjs.map +1 -0
- package/dist/components/Option.d.cts +11 -0
- package/dist/components/Option.d.ts +11 -0
- package/dist/components/Option.js +2 -0
- package/dist/components/Option.js.map +1 -0
- package/dist/components/Pressable.cjs +2 -0
- package/dist/components/Pressable.cjs.map +1 -0
- package/dist/components/Pressable.d.cts +6 -0
- package/dist/components/Pressable.d.ts +6 -0
- package/dist/components/Pressable.js +2 -0
- package/dist/components/Pressable.js.map +1 -0
- package/dist/components/ProfileCard.cjs +14 -0
- package/dist/components/ProfileCard.cjs.map +1 -0
- package/dist/components/ProfileCard.d.cts +15 -0
- package/dist/components/ProfileCard.d.ts +15 -0
- package/dist/components/ProfileCard.js +14 -0
- package/dist/components/ProfileCard.js.map +1 -0
- package/dist/components/SocialCard.cjs +2 -0
- package/dist/components/SocialCard.cjs.map +1 -0
- package/dist/components/SocialCard.d.cts +12 -0
- package/dist/components/SocialCard.d.ts +12 -0
- package/dist/components/SocialCard.js +2 -0
- package/dist/components/SocialCard.js.map +1 -0
- package/dist/components/Switch.cjs +2 -0
- package/dist/components/Switch.cjs.map +1 -0
- package/dist/components/Switch.d.cts +13 -0
- package/dist/components/Switch.d.ts +13 -0
- package/dist/components/Switch.js +2 -0
- package/dist/components/Switch.js.map +1 -0
- package/dist/components/Tabs.cjs +2 -0
- package/dist/components/Tabs.cjs.map +1 -0
- package/dist/components/Tabs.d.cts +16 -0
- package/dist/components/Tabs.d.ts +16 -0
- package/dist/components/Tabs.js +2 -0
- package/dist/components/Tabs.js.map +1 -0
- package/dist/components/Tag.cjs +2 -0
- package/dist/components/Tag.cjs.map +1 -0
- package/dist/components/Tag.d.cts +10 -0
- package/dist/components/Tag.d.ts +10 -0
- package/dist/components/Tag.js +2 -0
- package/dist/components/Tag.js.map +1 -0
- package/dist/components/Text.cjs +2 -0
- package/dist/components/Text.cjs.map +1 -0
- package/dist/components/Text.d.cts +46 -0
- package/dist/components/Text.d.ts +46 -0
- package/dist/components/Text.js +2 -0
- package/dist/components/Text.js.map +1 -0
- package/dist/components/Tooltip.cjs +2 -0
- package/dist/components/Tooltip.cjs.map +1 -0
- package/dist/components/Tooltip.d.cts +13 -0
- package/dist/components/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip.js +2 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/WorkCard.cjs +2 -0
- package/dist/components/WorkCard.cjs.map +1 -0
- package/dist/components/WorkCard.d.cts +13 -0
- package/dist/components/WorkCard.d.ts +13 -0
- package/dist/components/WorkCard.js +2 -0
- package/dist/components/WorkCard.js.map +1 -0
- package/dist/index.cjs +5 -1005
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -288
- package/dist/index.d.ts +29 -288
- package/dist/index.js +5 -954
- package/dist/index.js.map +1 -1
- package/dist/styles/fonts.css +1 -29
- package/dist/styles/fonts.css.map +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/styles/styles.css.map +1 -1
- package/dist/tailwind-DJFscIlV.d.cts +35 -0
- package/dist/tailwind-DJFscIlV.d.ts +35 -0
- package/package.json +10 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type ColorShade = "5" | "10" | "15" | "20" | "25" | "30" | "50" | "100" | "200" | "300" | "400" | "500" | "600" | "DEFAULT";
|
|
2
|
+
type TextColorVariant = "primary" | "secondary" | "white" | "primary-blue";
|
|
3
|
+
type BackgroundShades = Pick<Record<ColorShade, string>, "50" | "100">;
|
|
4
|
+
type PrimaryShades = Pick<Record<ColorShade, string>, "50" | "100">;
|
|
5
|
+
type SecondaryShades = Pick<Record<ColorShade, string>, "50" | "100" | "200" | "300" | "400" | "500" | "600">;
|
|
6
|
+
type TertiaryShades = Pick<Record<ColorShade, string>, "5" | "10" | "15" | "20" | "25" | "30">;
|
|
7
|
+
type StrokeShades = Pick<Record<ColorShade, string>, "DEFAULT">;
|
|
8
|
+
type TextShades = Record<TextColorVariant, string>;
|
|
9
|
+
type Colors = {
|
|
10
|
+
background: BackgroundShades;
|
|
11
|
+
primary: PrimaryShades;
|
|
12
|
+
secondary: SecondaryShades;
|
|
13
|
+
tertiary: TertiaryShades;
|
|
14
|
+
stroke: StrokeShades | string;
|
|
15
|
+
text: TextShades;
|
|
16
|
+
overlay: string;
|
|
17
|
+
};
|
|
18
|
+
type HeadingSize = "xl" | "lg" | "md" | "sm" | "xs";
|
|
19
|
+
type BodySize = "lg" | "lg-semibold" | "md" | "default" | "default-medium" | "default-semibold" | "default-bold" | "xs" | "xs-medium" | "xxs" | "xxs-medium" | "xxs-semibold";
|
|
20
|
+
type LabelSize = "default";
|
|
21
|
+
type Typography = {
|
|
22
|
+
heading: Record<HeadingSize, TypographyConfig>;
|
|
23
|
+
body: Record<BodySize, TypographyConfig>;
|
|
24
|
+
label: Record<LabelSize, TypographyConfig>;
|
|
25
|
+
};
|
|
26
|
+
type TypographyConfig = {
|
|
27
|
+
fontSize: string;
|
|
28
|
+
lineHeight?: string;
|
|
29
|
+
letterSpacing?: string;
|
|
30
|
+
fontWeight: string;
|
|
31
|
+
textTransform?: string;
|
|
32
|
+
};
|
|
33
|
+
type IconColors = "primary" | "secondary" | "white" | "primaryBlue";
|
|
34
|
+
|
|
35
|
+
export type { Colors as C, IconColors as I, PrimaryShades as P, SecondaryShades as S, TextColorVariant as T, TertiaryShades as a, Typography as b };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type ColorShade = "5" | "10" | "15" | "20" | "25" | "30" | "50" | "100" | "200" | "300" | "400" | "500" | "600" | "DEFAULT";
|
|
2
|
+
type TextColorVariant = "primary" | "secondary" | "white" | "primary-blue";
|
|
3
|
+
type BackgroundShades = Pick<Record<ColorShade, string>, "50" | "100">;
|
|
4
|
+
type PrimaryShades = Pick<Record<ColorShade, string>, "50" | "100">;
|
|
5
|
+
type SecondaryShades = Pick<Record<ColorShade, string>, "50" | "100" | "200" | "300" | "400" | "500" | "600">;
|
|
6
|
+
type TertiaryShades = Pick<Record<ColorShade, string>, "5" | "10" | "15" | "20" | "25" | "30">;
|
|
7
|
+
type StrokeShades = Pick<Record<ColorShade, string>, "DEFAULT">;
|
|
8
|
+
type TextShades = Record<TextColorVariant, string>;
|
|
9
|
+
type Colors = {
|
|
10
|
+
background: BackgroundShades;
|
|
11
|
+
primary: PrimaryShades;
|
|
12
|
+
secondary: SecondaryShades;
|
|
13
|
+
tertiary: TertiaryShades;
|
|
14
|
+
stroke: StrokeShades | string;
|
|
15
|
+
text: TextShades;
|
|
16
|
+
overlay: string;
|
|
17
|
+
};
|
|
18
|
+
type HeadingSize = "xl" | "lg" | "md" | "sm" | "xs";
|
|
19
|
+
type BodySize = "lg" | "lg-semibold" | "md" | "default" | "default-medium" | "default-semibold" | "default-bold" | "xs" | "xs-medium" | "xxs" | "xxs-medium" | "xxs-semibold";
|
|
20
|
+
type LabelSize = "default";
|
|
21
|
+
type Typography = {
|
|
22
|
+
heading: Record<HeadingSize, TypographyConfig>;
|
|
23
|
+
body: Record<BodySize, TypographyConfig>;
|
|
24
|
+
label: Record<LabelSize, TypographyConfig>;
|
|
25
|
+
};
|
|
26
|
+
type TypographyConfig = {
|
|
27
|
+
fontSize: string;
|
|
28
|
+
lineHeight?: string;
|
|
29
|
+
letterSpacing?: string;
|
|
30
|
+
fontWeight: string;
|
|
31
|
+
textTransform?: string;
|
|
32
|
+
};
|
|
33
|
+
type IconColors = "primary" | "secondary" | "white" | "primaryBlue";
|
|
34
|
+
|
|
35
|
+
export type { Colors as C, IconColors as I, PrimaryShades as P, SecondaryShades as S, TextColorVariant as T, TertiaryShades as a, Typography as b };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deckai/deck-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public",
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"types": "./dist/tailwind.config.d.ts",
|
|
31
31
|
"require": "./dist/tailwind.config.js",
|
|
32
32
|
"import": "./dist/tailwind.config.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./components/*": {
|
|
35
|
+
"types": "./dist/components/*.d.ts",
|
|
36
|
+
"import": "./dist/components/*.mjs",
|
|
37
|
+
"require": "./dist/components/*.js"
|
|
33
38
|
}
|
|
34
39
|
},
|
|
35
40
|
"files": [
|
|
@@ -39,7 +44,9 @@
|
|
|
39
44
|
"build:css": "tailwindcss -i ./src/styles/styles.css -o ./dist/styles/styles.css",
|
|
40
45
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
41
46
|
"generate:index": "bun run scripts/generate-index.ts",
|
|
42
|
-
"
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"prebuild": "bun run typecheck",
|
|
49
|
+
"build": "NODE_ENV=production bun run generate:index && tsup",
|
|
43
50
|
"dev": "tsup --watch",
|
|
44
51
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
45
52
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
@@ -59,7 +66,7 @@
|
|
|
59
66
|
"react-dom": "^18.3.1"
|
|
60
67
|
},
|
|
61
68
|
"dependencies": {
|
|
62
|
-
"@deckai/icons": "
|
|
69
|
+
"@deckai/icons": "^0.0.3",
|
|
63
70
|
"@radix-ui/react-popover": "^1.1.2",
|
|
64
71
|
"@radix-ui/react-switch": "^1.1.1",
|
|
65
72
|
"@radix-ui/react-tabs": "^1.1.1",
|