hazo_ui 2.2.3 → 2.3.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/dist/styles.css CHANGED
@@ -5,55 +5,47 @@
5
5
  * import 'hazo_ui/styles.css';
6
6
  */
7
7
 
8
- @layer base {
9
- :root {
10
- --background: 0 0% 100%;
11
- --foreground: 222.2 84% 4.9%;
12
- --card: 0 0% 100%;
13
- --card-foreground: 222.2 84% 4.9%;
14
- --popover: 0 0% 100%;
15
- --popover-foreground: 222.2 84% 4.9%;
16
- --primary: 222.2 47.4% 11.2%;
17
- --primary-foreground: 210 40% 98%;
18
- --secondary: 210 40% 96.1%;
19
- --secondary-foreground: 222.2 47.4% 11.2%;
20
- --muted: 210 40% 96.1%;
21
- --muted-foreground: 215.4 16.3% 46.9%;
22
- --accent: 210 40% 96.1%;
23
- --accent-foreground: 222.2 47.4% 11.2%;
24
- --destructive: 0 84.2% 60.2%;
25
- --destructive-foreground: 210 40% 98%;
26
- --border: 214.3 31.8% 91.4%;
27
- --input: 214.3 31.8% 91.4%;
28
- --ring: 222.2 84% 4.9%;
29
- --radius: 0.5rem;
30
- }
31
-
32
- .dark {
33
- --background: 222.2 84% 4.9%;
34
- --foreground: 210 40% 98%;
35
- --card: 222.2 84% 4.9%;
36
- --card-foreground: 210 40% 98%;
37
- --popover: 222.2 84% 4.9%;
38
- --popover-foreground: 210 40% 98%;
39
- --primary: 210 40% 98%;
40
- --primary-foreground: 222.2 47.4% 11.2%;
41
- --secondary: 217.2 32.6% 17.5%;
42
- --secondary-foreground: 210 40% 98%;
43
- --muted: 217.2 32.6% 17.5%;
44
- --muted-foreground: 215 20.2% 65.1%;
45
- --accent: 217.2 32.6% 17.5%;
46
- --accent-foreground: 210 40% 98%;
47
- --destructive: 0 62.8% 30.6%;
48
- --destructive-foreground: 210 40% 98%;
49
- --border: 217.2 32.6% 17.5%;
50
- --input: 217.2 32.6% 17.5%;
51
- --ring: 212.7 26.8% 83.9%;
52
- }
8
+ :root {
9
+ --background: 0 0% 100%;
10
+ --foreground: 222.2 84% 4.9%;
11
+ --card: 0 0% 100%;
12
+ --card-foreground: 222.2 84% 4.9%;
13
+ --popover: 0 0% 100%;
14
+ --popover-foreground: 222.2 84% 4.9%;
15
+ --primary: 222.2 47.4% 11.2%;
16
+ --primary-foreground: 210 40% 98%;
17
+ --secondary: 210 40% 96.1%;
18
+ --secondary-foreground: 222.2 47.4% 11.2%;
19
+ --muted: 210 40% 96.1%;
20
+ --muted-foreground: 215.4 16.3% 46.9%;
21
+ --accent: 210 40% 96.1%;
22
+ --accent-foreground: 222.2 47.4% 11.2%;
23
+ --destructive: 0 84.2% 60.2%;
24
+ --destructive-foreground: 210 40% 98%;
25
+ --border: 214.3 31.8% 91.4%;
26
+ --input: 214.3 31.8% 91.4%;
27
+ --ring: 222.2 84% 4.9%;
28
+ --radius: 0.5rem;
53
29
  }
54
30
 
55
- @layer base {
56
- * {
57
- border-color: hsl(var(--border));
58
- }
31
+ .dark {
32
+ --background: 222.2 84% 4.9%;
33
+ --foreground: 210 40% 98%;
34
+ --card: 222.2 84% 4.9%;
35
+ --card-foreground: 210 40% 98%;
36
+ --popover: 222.2 84% 4.9%;
37
+ --popover-foreground: 210 40% 98%;
38
+ --primary: 210 40% 98%;
39
+ --primary-foreground: 222.2 47.4% 11.2%;
40
+ --secondary: 217.2 32.6% 17.5%;
41
+ --secondary-foreground: 210 40% 98%;
42
+ --muted: 217.2 32.6% 17.5%;
43
+ --muted-foreground: 215 20.2% 65.1%;
44
+ --accent: 217.2 32.6% 17.5%;
45
+ --accent-foreground: 210 40% 98%;
46
+ --destructive: 0 62.8% 30.6%;
47
+ --destructive-foreground: 210 40% 98%;
48
+ --border: 217.2 32.6% 17.5%;
49
+ --input: 217.2 32.6% 17.5%;
50
+ --ring: 212.7 26.8% 83.9%;
59
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_ui",
3
- "version": "2.2.3",
3
+ "version": "2.3.0",
4
4
  "description": "Set of UI components for common interaction elements in a SaaS app",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -47,7 +47,32 @@
47
47
  "@radix-ui/react-select": "^2.1.1",
48
48
  "@radix-ui/react-slot": "^1.1.0",
49
49
  "@radix-ui/react-switch": "^1.1.0",
50
+ "@radix-ui/react-tabs": "^1.1.13",
50
51
  "@radix-ui/react-tooltip": "^1.1.1",
52
+ "@tiptap/core": "^3.14.0",
53
+ "@tiptap/extension-color": "^3.14.0",
54
+ "@tiptap/extension-font-family": "^3.14.0",
55
+ "@tiptap/extension-highlight": "^3.14.0",
56
+ "@tiptap/extension-horizontal-rule": "^3.14.0",
57
+ "@tiptap/extension-image": "^3.14.0",
58
+ "@tiptap/extension-link": "^3.14.0",
59
+ "@tiptap/extension-placeholder": "^3.14.0",
60
+ "@tiptap/extension-subscript": "^3.14.0",
61
+ "@tiptap/extension-superscript": "^3.14.0",
62
+ "@tiptap/extension-table": "^3.14.0",
63
+ "@tiptap/extension-table-cell": "^3.14.0",
64
+ "@tiptap/extension-table-header": "^3.14.0",
65
+ "@tiptap/extension-table-row": "^3.14.0",
66
+ "@tiptap/extension-task-item": "^3.14.0",
67
+ "@tiptap/extension-task-list": "^3.14.0",
68
+ "@tiptap/extension-text-align": "^3.14.0",
69
+ "@tiptap/extension-text-style": "^3.14.0",
70
+ "@tiptap/extension-underline": "^3.14.0",
71
+ "@tiptap/pm": "^3.14.0",
72
+ "@tiptap/react": "^3.14.0",
73
+ "@tiptap/starter-kit": "^3.14.0",
74
+ "@tiptap/suggestion": "^3.14.0",
75
+ "@uiw/react-color": "^2.9.2",
51
76
  "class-variance-authority": "^0.7.0",
52
77
  "clsx": "^2.1.0",
53
78
  "date-fns": "^3.3.1",
@@ -81,10 +106,11 @@
81
106
  "keywords": [
82
107
  "UI",
83
108
  "React",
84
- "UI",
85
109
  "library",
86
110
  "SaaS",
87
- "components"
111
+ "components",
112
+ "rich-text-editor",
113
+ "tiptap"
88
114
  ],
89
115
  "author": "Pubs Abayasiri",
90
116
  "license": "MIT",
@@ -14,8 +14,10 @@
14
14
  * };
15
15
  */
16
16
 
17
+ import tailwindcssAnimate from 'tailwindcss-animate';
18
+
17
19
  /** @type {import('tailwindcss').Config} */
18
- module.exports = {
20
+ const hazoUiPreset = {
19
21
  darkMode: ['class'],
20
22
  theme: {
21
23
  container: {
@@ -82,5 +84,7 @@ module.exports = {
82
84
  },
83
85
  },
84
86
  },
85
- plugins: [require('tailwindcss-animate')],
87
+ plugins: [tailwindcssAnimate],
86
88
  };
89
+
90
+ export default hazoUiPreset;