@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.
Files changed (151) hide show
  1. package/dist/components/AboutCard.cjs +14 -0
  2. package/dist/components/AboutCard.cjs.map +1 -0
  3. package/dist/components/AboutCard.d.cts +12 -0
  4. package/dist/components/AboutCard.d.ts +12 -0
  5. package/dist/components/AboutCard.js +14 -0
  6. package/dist/components/AboutCard.js.map +1 -0
  7. package/dist/components/Avatar.cjs +2 -0
  8. package/dist/components/Avatar.cjs.map +1 -0
  9. package/dist/components/Avatar.d.cts +10 -0
  10. package/dist/components/Avatar.d.ts +10 -0
  11. package/dist/components/Avatar.js +2 -0
  12. package/dist/components/Avatar.js.map +1 -0
  13. package/dist/components/Badge.cjs +2 -0
  14. package/dist/components/Badge.cjs.map +1 -0
  15. package/dist/components/Badge.d.cts +13 -0
  16. package/dist/components/Badge.d.ts +13 -0
  17. package/dist/components/Badge.js +2 -0
  18. package/dist/components/Badge.js.map +1 -0
  19. package/dist/components/Breadcrumbs.cjs +2 -0
  20. package/dist/components/Breadcrumbs.cjs.map +1 -0
  21. package/dist/components/Breadcrumbs.d.cts +15 -0
  22. package/dist/components/Breadcrumbs.d.ts +15 -0
  23. package/dist/components/Breadcrumbs.js +2 -0
  24. package/dist/components/Breadcrumbs.js.map +1 -0
  25. package/dist/components/Button.cjs +14 -0
  26. package/dist/components/Button.cjs.map +1 -0
  27. package/dist/components/Button.d.cts +28 -0
  28. package/dist/components/Button.d.ts +28 -0
  29. package/dist/components/Button.js +14 -0
  30. package/dist/components/Button.js.map +1 -0
  31. package/dist/components/Combobox.cjs +2 -0
  32. package/dist/components/Combobox.cjs.map +1 -0
  33. package/dist/components/Combobox.d.cts +14 -0
  34. package/dist/components/Combobox.d.ts +14 -0
  35. package/dist/components/Combobox.js +2 -0
  36. package/dist/components/Combobox.js.map +1 -0
  37. package/dist/components/ContactItem.cjs +2 -0
  38. package/dist/components/ContactItem.cjs.map +1 -0
  39. package/dist/components/ContactItem.d.cts +11 -0
  40. package/dist/components/ContactItem.d.ts +11 -0
  41. package/dist/components/ContactItem.js +2 -0
  42. package/dist/components/ContactItem.js.map +1 -0
  43. package/dist/components/Icon.cjs +2 -0
  44. package/dist/components/Icon.cjs.map +1 -0
  45. package/dist/components/Icon.d.cts +18 -0
  46. package/dist/components/Icon.d.ts +18 -0
  47. package/dist/components/Icon.js +2 -0
  48. package/dist/components/Icon.js.map +1 -0
  49. package/dist/components/Input.cjs +2 -0
  50. package/dist/components/Input.cjs.map +1 -0
  51. package/dist/components/Input.d.cts +14 -0
  52. package/dist/components/Input.d.ts +14 -0
  53. package/dist/components/Input.js +2 -0
  54. package/dist/components/Input.js.map +1 -0
  55. package/dist/components/Link.cjs +2 -0
  56. package/dist/components/Link.cjs.map +1 -0
  57. package/dist/components/Link.d.cts +13 -0
  58. package/dist/components/Link.d.ts +13 -0
  59. package/dist/components/Link.js +2 -0
  60. package/dist/components/Link.js.map +1 -0
  61. package/dist/components/Logo.cjs +3 -0
  62. package/dist/components/Logo.cjs.map +1 -0
  63. package/dist/components/Logo.d.cts +11 -0
  64. package/dist/components/Logo.d.ts +11 -0
  65. package/dist/components/Logo.js +3 -0
  66. package/dist/components/Logo.js.map +1 -0
  67. package/dist/components/Navbar.cjs +3 -0
  68. package/dist/components/Navbar.cjs.map +1 -0
  69. package/dist/components/Navbar.d.cts +19 -0
  70. package/dist/components/Navbar.d.ts +19 -0
  71. package/dist/components/Navbar.js +3 -0
  72. package/dist/components/Navbar.js.map +1 -0
  73. package/dist/components/NavbarItem.cjs +2 -0
  74. package/dist/components/NavbarItem.cjs.map +1 -0
  75. package/dist/components/NavbarItem.d.cts +13 -0
  76. package/dist/components/NavbarItem.d.ts +13 -0
  77. package/dist/components/NavbarItem.js +2 -0
  78. package/dist/components/NavbarItem.js.map +1 -0
  79. package/dist/components/Option.cjs +2 -0
  80. package/dist/components/Option.cjs.map +1 -0
  81. package/dist/components/Option.d.cts +11 -0
  82. package/dist/components/Option.d.ts +11 -0
  83. package/dist/components/Option.js +2 -0
  84. package/dist/components/Option.js.map +1 -0
  85. package/dist/components/Pressable.cjs +2 -0
  86. package/dist/components/Pressable.cjs.map +1 -0
  87. package/dist/components/Pressable.d.cts +6 -0
  88. package/dist/components/Pressable.d.ts +6 -0
  89. package/dist/components/Pressable.js +2 -0
  90. package/dist/components/Pressable.js.map +1 -0
  91. package/dist/components/ProfileCard.cjs +14 -0
  92. package/dist/components/ProfileCard.cjs.map +1 -0
  93. package/dist/components/ProfileCard.d.cts +15 -0
  94. package/dist/components/ProfileCard.d.ts +15 -0
  95. package/dist/components/ProfileCard.js +14 -0
  96. package/dist/components/ProfileCard.js.map +1 -0
  97. package/dist/components/SocialCard.cjs +2 -0
  98. package/dist/components/SocialCard.cjs.map +1 -0
  99. package/dist/components/SocialCard.d.cts +12 -0
  100. package/dist/components/SocialCard.d.ts +12 -0
  101. package/dist/components/SocialCard.js +2 -0
  102. package/dist/components/SocialCard.js.map +1 -0
  103. package/dist/components/Switch.cjs +2 -0
  104. package/dist/components/Switch.cjs.map +1 -0
  105. package/dist/components/Switch.d.cts +13 -0
  106. package/dist/components/Switch.d.ts +13 -0
  107. package/dist/components/Switch.js +2 -0
  108. package/dist/components/Switch.js.map +1 -0
  109. package/dist/components/Tabs.cjs +2 -0
  110. package/dist/components/Tabs.cjs.map +1 -0
  111. package/dist/components/Tabs.d.cts +16 -0
  112. package/dist/components/Tabs.d.ts +16 -0
  113. package/dist/components/Tabs.js +2 -0
  114. package/dist/components/Tabs.js.map +1 -0
  115. package/dist/components/Tag.cjs +2 -0
  116. package/dist/components/Tag.cjs.map +1 -0
  117. package/dist/components/Tag.d.cts +10 -0
  118. package/dist/components/Tag.d.ts +10 -0
  119. package/dist/components/Tag.js +2 -0
  120. package/dist/components/Tag.js.map +1 -0
  121. package/dist/components/Text.cjs +2 -0
  122. package/dist/components/Text.cjs.map +1 -0
  123. package/dist/components/Text.d.cts +46 -0
  124. package/dist/components/Text.d.ts +46 -0
  125. package/dist/components/Text.js +2 -0
  126. package/dist/components/Text.js.map +1 -0
  127. package/dist/components/Tooltip.cjs +2 -0
  128. package/dist/components/Tooltip.cjs.map +1 -0
  129. package/dist/components/Tooltip.d.cts +13 -0
  130. package/dist/components/Tooltip.d.ts +13 -0
  131. package/dist/components/Tooltip.js +2 -0
  132. package/dist/components/Tooltip.js.map +1 -0
  133. package/dist/components/WorkCard.cjs +2 -0
  134. package/dist/components/WorkCard.cjs.map +1 -0
  135. package/dist/components/WorkCard.d.cts +13 -0
  136. package/dist/components/WorkCard.d.ts +13 -0
  137. package/dist/components/WorkCard.js +2 -0
  138. package/dist/components/WorkCard.js.map +1 -0
  139. package/dist/index.cjs +5 -1005
  140. package/dist/index.cjs.map +1 -1
  141. package/dist/index.d.cts +29 -288
  142. package/dist/index.d.ts +29 -288
  143. package/dist/index.js +5 -954
  144. package/dist/index.js.map +1 -1
  145. package/dist/styles/fonts.css +1 -29
  146. package/dist/styles/fonts.css.map +1 -1
  147. package/dist/styles/styles.css +1 -1
  148. package/dist/styles/styles.css.map +1 -1
  149. package/dist/tailwind-DJFscIlV.d.cts +35 -0
  150. package/dist/tailwind-DJFscIlV.d.ts +35 -0
  151. 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.7",
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
- "build": "bun run generate:index && tsup",
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": "workspace:*",
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",