@novie/ui 0.1.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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -0
  3. package/dist/components/ui/alert.d.ts +13 -0
  4. package/dist/components/ui/alert.d.ts.map +1 -0
  5. package/dist/components/ui/avatar.d.ts +14 -0
  6. package/dist/components/ui/avatar.d.ts.map +1 -0
  7. package/dist/components/ui/badge.d.ts +16 -0
  8. package/dist/components/ui/badge.d.ts.map +1 -0
  9. package/dist/components/ui/button.d.ts +12 -0
  10. package/dist/components/ui/button.d.ts.map +1 -0
  11. package/dist/components/ui/card.d.ts +11 -0
  12. package/dist/components/ui/card.d.ts.map +1 -0
  13. package/dist/components/ui/checkbox.d.ts +9 -0
  14. package/dist/components/ui/checkbox.d.ts.map +1 -0
  15. package/dist/components/ui/dialog.d.ts +12 -0
  16. package/dist/components/ui/dialog.d.ts.map +1 -0
  17. package/dist/components/ui/icon-button.d.ts +12 -0
  18. package/dist/components/ui/icon-button.d.ts.map +1 -0
  19. package/dist/components/ui/input-field.d.ts +15 -0
  20. package/dist/components/ui/input-field.d.ts.map +1 -0
  21. package/dist/components/ui/input.d.ts +3 -0
  22. package/dist/components/ui/input.d.ts.map +1 -0
  23. package/dist/components/ui/label.d.ts +3 -0
  24. package/dist/components/ui/label.d.ts.map +1 -0
  25. package/dist/components/ui/progress.d.ts +20 -0
  26. package/dist/components/ui/progress.d.ts.map +1 -0
  27. package/dist/components/ui/radio-group.d.ts +10 -0
  28. package/dist/components/ui/radio-group.d.ts.map +1 -0
  29. package/dist/components/ui/search-input.d.ts +9 -0
  30. package/dist/components/ui/search-input.d.ts.map +1 -0
  31. package/dist/components/ui/separator.d.ts +10 -0
  32. package/dist/components/ui/separator.d.ts.map +1 -0
  33. package/dist/components/ui/stepper.d.ts +28 -0
  34. package/dist/components/ui/stepper.d.ts.map +1 -0
  35. package/dist/components/ui/switch.d.ts +14 -0
  36. package/dist/components/ui/switch.d.ts.map +1 -0
  37. package/dist/components/ui/table.d.ts +11 -0
  38. package/dist/components/ui/table.d.ts.map +1 -0
  39. package/dist/components/ui/tag.d.ts +13 -0
  40. package/dist/components/ui/tag.d.ts.map +1 -0
  41. package/dist/components/ui/toast.d.ts +19 -0
  42. package/dist/components/ui/toast.d.ts.map +1 -0
  43. package/dist/components/ui/tooltip.d.ts +11 -0
  44. package/dist/components/ui/tooltip.d.ts.map +1 -0
  45. package/dist/index.css +2 -0
  46. package/dist/index.d.ts +30 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +6824 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/lib/utils.d.ts +3 -0
  51. package/dist/lib/utils.d.ts.map +1 -0
  52. package/package.json +84 -0
  53. package/src/index.css +986 -0
  54. package/tailwind.config.ts +149 -0
@@ -0,0 +1,149 @@
1
+ import type { Config } from "tailwindcss"
2
+
3
+ const config: Config = {
4
+ darkMode: "class",
5
+ content: ["./src/**/*.{ts,tsx}"],
6
+ safelist: [
7
+ { pattern: /^bg-(success|warning|error|info|foreground|destructive)/ },
8
+ { pattern: /^text-(success|warning|error|info)-foreground/ },
9
+ { pattern: /^border-(success|warning|error|info)/ },
10
+ ],
11
+ theme: {
12
+ extend: {
13
+ colors: {
14
+ border: "hsl(var(--border))",
15
+ input: "hsl(var(--input))",
16
+ ring: "hsl(var(--ring))",
17
+ background: "hsl(var(--background))",
18
+ foreground: "hsl(var(--foreground))",
19
+ primary: {
20
+ DEFAULT: "hsl(var(--primary))",
21
+ foreground: "hsl(var(--primary-foreground))",
22
+ },
23
+ secondary: {
24
+ DEFAULT: "hsl(var(--secondary))",
25
+ foreground: "hsl(var(--secondary-foreground))",
26
+ },
27
+ destructive: {
28
+ DEFAULT: "hsl(var(--destructive))",
29
+ foreground: "hsl(var(--destructive-foreground))",
30
+ },
31
+ muted: {
32
+ DEFAULT: "hsl(var(--muted))",
33
+ foreground: "hsl(var(--muted-foreground))",
34
+ },
35
+ accent: {
36
+ DEFAULT: "hsl(var(--accent))",
37
+ foreground: "hsl(var(--accent-foreground))",
38
+ },
39
+ popover: {
40
+ DEFAULT: "hsl(var(--popover))",
41
+ foreground: "hsl(var(--popover-foreground))",
42
+ },
43
+ card: {
44
+ DEFAULT: "hsl(var(--card))",
45
+ foreground: "hsl(var(--card-foreground))",
46
+ },
47
+ success: {
48
+ DEFAULT: "hsl(var(--success))",
49
+ foreground: "hsl(var(--success-foreground))",
50
+ secondary: "hsl(var(--success-secondary))",
51
+ tertiary: "hsl(var(--success-tertiary))",
52
+ },
53
+ warning: {
54
+ DEFAULT: "hsl(var(--warning))",
55
+ foreground: "hsl(var(--warning-foreground))",
56
+ secondary: "hsl(var(--warning-secondary))",
57
+ tertiary: "hsl(var(--warning-tertiary))",
58
+ },
59
+ info: {
60
+ DEFAULT: "hsl(var(--info))",
61
+ foreground: "hsl(var(--info-foreground))",
62
+ secondary: "hsl(var(--info-secondary))",
63
+ tertiary: "hsl(var(--info-tertiary))",
64
+ },
65
+ error: {
66
+ DEFAULT: "hsl(var(--error))",
67
+ foreground: "hsl(var(--error-foreground))",
68
+ secondary: "hsl(var(--error-secondary))",
69
+ tertiary: "hsl(var(--error-tertiary))",
70
+ },
71
+ page: {
72
+ DEFAULT: "hsl(var(--page))",
73
+ secondary: "hsl(var(--page-secondary))",
74
+ },
75
+ "surface-inset": "hsl(var(--surface-inset))",
76
+ },
77
+ keyframes: {
78
+ "progress-indeterminate": {
79
+ "0%": { transform: "translateX(-100%)" },
80
+ "100%": { transform: "translateX(200%)" },
81
+ },
82
+ },
83
+ animation: {
84
+ "progress-indeterminate":
85
+ "progress-indeterminate 1.5s ease-in-out infinite",
86
+ },
87
+ spacing: {
88
+ "13": "3.25rem", // 52px
89
+ "15": "3.75rem", // 60px
90
+ "17": "4.25rem", // 68px
91
+ "18": "4.5rem", // 72px
92
+ "19": "4.75rem", // 76px
93
+ },
94
+ fontFamily: {
95
+ sans: [
96
+ "var(--font-sans, 'Google Sans Flex Variable')",
97
+ "ui-sans-serif",
98
+ "system-ui",
99
+ "-apple-system",
100
+ "sans-serif",
101
+ ],
102
+ },
103
+ fontSize: {
104
+ /* Headings */
105
+ display: ["80px", { lineHeight: "100%", fontWeight: "700" }],
106
+ oversized: ["48px", { lineHeight: "100%", fontWeight: "700" }],
107
+ h1: ["36px", { lineHeight: "44px", fontWeight: "700", letterSpacing: "-0.5px" }],
108
+ h2: ["32px", { lineHeight: "36px", fontWeight: "600", letterSpacing: "-0.3px" }],
109
+ h3: ["28px", { lineHeight: "32px", fontWeight: "600" }],
110
+ h4: ["22px", { lineHeight: "26px", fontWeight: "600" }],
111
+ /* Body */
112
+ "body-lg": ["18px", { lineHeight: "28px", fontWeight: "400" }],
113
+ "body-lg-light": ["18px", { lineHeight: "28px", fontWeight: "300" }],
114
+ body: ["16px", { lineHeight: "24px", fontWeight: "400" }],
115
+ "body-sm": ["14px", { lineHeight: "20px", fontWeight: "400" }],
116
+ caption: ["12px", { lineHeight: "16px", fontWeight: "400" }],
117
+ overline: ["12px", { lineHeight: "16px", fontWeight: "500" }],
118
+ /* UI — Navigation & Links */
119
+ "main-nav": ["14px", { lineHeight: "100%", fontWeight: "700" }],
120
+ "link-paragraph": ["14px", { lineHeight: "100%", fontWeight: "400" }],
121
+ "link-sm": ["12px", { lineHeight: "100%", fontWeight: "400" }],
122
+ /* UI — Buttons */
123
+ "button-lg": ["16px", { lineHeight: "100%", fontWeight: "500" }],
124
+ button: ["14px", { lineHeight: "100%", fontWeight: "500" }],
125
+ "button-sm": ["12px", { lineHeight: "100%", fontWeight: "500" }],
126
+ /* UI — Form & Data */
127
+ "select-item": ["13px", { lineHeight: "100%", fontWeight: "400" }],
128
+ "search-filter-item": ["13px", { lineHeight: "100%", fontWeight: "600" }],
129
+ "notification-message": ["13px", { lineHeight: "100%", fontWeight: "500" }],
130
+ "report-code": ["11px", { lineHeight: "100%", fontWeight: "700" }],
131
+ label: ["16px", { lineHeight: "24px", fontWeight: "500" }],
132
+ "label-sm": ["14px", { lineHeight: "100%", fontWeight: "500" }],
133
+ "input-text-bold": ["14px", { lineHeight: "20px", fontWeight: "600" }],
134
+ "input-text": ["14px", { lineHeight: "20px", fontWeight: "400" }],
135
+ "help-text": ["10px", { lineHeight: "16px", fontWeight: "400" }],
136
+ tab: ["14px", { lineHeight: "100%", fontWeight: "600" }],
137
+ "table-header": ["14px", { lineHeight: "20px", fontWeight: "500" }],
138
+ },
139
+ borderRadius: {
140
+ lg: "var(--radius)",
141
+ md: "calc(var(--radius) - 2px)",
142
+ sm: "calc(var(--radius) - 4px)",
143
+ },
144
+ },
145
+ },
146
+ plugins: [],
147
+ }
148
+
149
+ export default config