hazo_ui 2.2.3 → 2.2.6

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,174 @@
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
- }
53
- }
54
-
55
- @layer base {
56
- * {
57
- border-color: hsl(var(--border));
58
- }
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;
29
+ }
30
+
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%;
51
+ }
52
+
53
+ /* Rich text editor content styles */
54
+ .cls_editor_content .ProseMirror h1 {
55
+ font-size: 2em;
56
+ font-weight: 700;
57
+ line-height: 1.2;
58
+ margin-top: 0.5em;
59
+ margin-bottom: 0.5em;
60
+ }
61
+
62
+ .cls_editor_content .ProseMirror h2 {
63
+ font-size: 1.5em;
64
+ font-weight: 600;
65
+ line-height: 1.3;
66
+ margin-top: 0.5em;
67
+ margin-bottom: 0.5em;
68
+ }
69
+
70
+ .cls_editor_content .ProseMirror h3 {
71
+ font-size: 1.25em;
72
+ font-weight: 600;
73
+ line-height: 1.4;
74
+ margin-top: 0.5em;
75
+ margin-bottom: 0.5em;
76
+ }
77
+
78
+ /* Unordered lists (bullet lists) */
79
+ .cls_editor_content .ProseMirror ul {
80
+ list-style-type: disc;
81
+ padding-left: 1.5em;
82
+ margin-top: 0.5em;
83
+ margin-bottom: 0.5em;
84
+ }
85
+
86
+ .cls_editor_content .ProseMirror ul ul {
87
+ list-style-type: circle;
88
+ }
89
+
90
+ .cls_editor_content .ProseMirror ul ul ul {
91
+ list-style-type: square;
92
+ }
93
+
94
+ /* Ordered lists (numbered lists) */
95
+ .cls_editor_content .ProseMirror ol {
96
+ list-style-type: decimal;
97
+ padding-left: 1.5em;
98
+ margin-top: 0.5em;
99
+ margin-bottom: 0.5em;
100
+ }
101
+
102
+ .cls_editor_content .ProseMirror ol ol {
103
+ list-style-type: lower-alpha;
104
+ }
105
+
106
+ .cls_editor_content .ProseMirror ol ol ol {
107
+ list-style-type: lower-roman;
108
+ }
109
+
110
+ /* List items */
111
+ .cls_editor_content .ProseMirror li {
112
+ margin-top: 0.25em;
113
+ margin-bottom: 0.25em;
114
+ }
115
+
116
+ .cls_editor_content .ProseMirror li p {
117
+ margin: 0;
118
+ }
119
+
120
+ /* Blockquote */
121
+ .cls_editor_content .ProseMirror blockquote {
122
+ border-left: 4px solid hsl(var(--border));
123
+ padding-left: 1em;
124
+ margin-left: 0;
125
+ margin-right: 0;
126
+ font-style: italic;
127
+ color: hsl(var(--muted-foreground));
128
+ }
129
+
130
+ /* Code blocks */
131
+ .cls_editor_content .ProseMirror pre {
132
+ background-color: hsl(var(--muted));
133
+ border-radius: 0.375rem;
134
+ padding: 0.75em 1em;
135
+ overflow-x: auto;
136
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
137
+ font-size: 0.875em;
138
+ }
139
+
140
+ .cls_editor_content .ProseMirror code {
141
+ background-color: hsl(var(--muted));
142
+ padding: 0.2em 0.4em;
143
+ border-radius: 0.25rem;
144
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
145
+ font-size: 0.875em;
146
+ }
147
+
148
+ .cls_editor_content .ProseMirror pre code {
149
+ background: none;
150
+ padding: 0;
151
+ }
152
+
153
+ /* Paragraphs */
154
+ .cls_editor_content .ProseMirror p {
155
+ margin-top: 0.5em;
156
+ margin-bottom: 0.5em;
157
+ }
158
+
159
+ /* First child no top margin */
160
+ .cls_editor_content .ProseMirror > :first-child {
161
+ margin-top: 0;
162
+ }
163
+
164
+ /* Task lists */
165
+ .cls_editor_content .ProseMirror ul[data-type="taskList"] {
166
+ list-style-type: none;
167
+ padding-left: 0;
168
+ }
169
+
170
+ .cls_editor_content .ProseMirror ul[data-type="taskList"] li {
171
+ display: flex;
172
+ align-items: flex-start;
173
+ gap: 0.5em;
174
+ }
175
+
176
+ .cls_editor_content .ProseMirror ul[data-type="taskList"] li input[type="checkbox"] {
177
+ margin-top: 0.25em;
59
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_ui",
3
- "version": "2.2.3",
3
+ "version": "2.2.6",
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",
@@ -14,8 +14,12 @@
14
14
  },
15
15
  "./styles.css": "./dist/styles.css",
16
16
  "./tailwind-preset": "./tailwind.preset.js",
17
+ "./tailwind.preset.js": "./tailwind.preset.js",
17
18
  "./package.json": "./package.json"
18
19
  },
20
+ "sideEffects": [
21
+ "*.css"
22
+ ],
19
23
  "files": [
20
24
  "dist",
21
25
  "tailwind.preset.js",
@@ -29,13 +33,22 @@
29
33
  "dev:app": "cd dev-app && npm run dev",
30
34
  "test:build": "npm run build && cd dev-app && npm run build",
31
35
  "test:dev": "npm run build && npm run dev:app",
36
+ "test:e2e": "playwright test",
37
+ "test:e2e:ui": "playwright test --ui",
38
+ "test:e2e:headed": "playwright test --headed",
32
39
  "lint": "eslint src --ext ts,tsx",
33
40
  "type-check": "tsc --noEmit",
34
41
  "prepublishOnly": "npm run build && npm run type-check"
35
42
  },
36
43
  "peerDependencies": {
37
44
  "react": "^18.0.0 || ^19.0.0",
38
- "react-dom": "^18.0.0 || ^19.0.0"
45
+ "react-dom": "^18.0.0 || ^19.0.0",
46
+ "tailwindcss": "^3.0.0"
47
+ },
48
+ "peerDependenciesMeta": {
49
+ "tailwindcss": {
50
+ "optional": false
51
+ }
39
52
  },
40
53
  "dependencies": {
41
54
  "@dnd-kit/core": "^6.1.0",
@@ -44,20 +57,45 @@
44
57
  "@radix-ui/react-dialog": "^1.1.1",
45
58
  "@radix-ui/react-popover": "^1.1.1",
46
59
  "@radix-ui/react-radio-group": "^1.3.8",
60
+ "@radix-ui/react-scroll-area": "^1.2.10",
47
61
  "@radix-ui/react-select": "^2.1.1",
48
62
  "@radix-ui/react-slot": "^1.1.0",
49
63
  "@radix-ui/react-switch": "^1.1.0",
64
+ "@radix-ui/react-tabs": "^1.1.13",
50
65
  "@radix-ui/react-tooltip": "^1.1.1",
66
+ "@tiptap/extension-color": "^3.13.0",
67
+ "@tiptap/extension-font-family": "^3.13.0",
68
+ "@tiptap/extension-highlight": "^3.13.0",
69
+ "@tiptap/extension-image": "^3.13.0",
70
+ "@tiptap/extension-link": "^3.13.0",
71
+ "@tiptap/extension-placeholder": "^3.13.0",
72
+ "@tiptap/extension-subscript": "^3.13.0",
73
+ "@tiptap/extension-superscript": "^3.13.0",
74
+ "@tiptap/extension-table": "^3.13.0",
75
+ "@tiptap/extension-table-cell": "^3.13.0",
76
+ "@tiptap/extension-table-header": "^3.13.0",
77
+ "@tiptap/extension-table-row": "^3.13.0",
78
+ "@tiptap/extension-task-item": "^3.13.0",
79
+ "@tiptap/extension-task-list": "^3.13.0",
80
+ "@tiptap/extension-text-align": "^3.13.0",
81
+ "@tiptap/extension-text-style": "^3.13.0",
82
+ "@tiptap/extension-underline": "^3.13.0",
83
+ "@tiptap/extension-youtube": "^3.13.0",
84
+ "@tiptap/pm": "^3.13.0",
85
+ "@tiptap/react": "^3.13.0",
86
+ "@tiptap/starter-kit": "^3.13.0",
51
87
  "class-variance-authority": "^0.7.0",
52
88
  "clsx": "^2.1.0",
53
89
  "date-fns": "^3.3.1",
54
90
  "lucide-react": "^0.344.0",
91
+ "react-colorful": "^5.6.1",
55
92
  "react-day-picker": "^8.10.0",
56
93
  "react-icons": "^5.5.0",
57
94
  "tailwind-merge": "^2.2.1",
58
95
  "tailwindcss-animate": "^1.0.7"
59
96
  },
60
97
  "devDependencies": {
98
+ "@playwright/test": "^1.57.0",
61
99
  "@storybook/addon-docs": "^10.0.5",
62
100
  "@storybook/addon-links": "^10.0.5",
63
101
  "@storybook/react-vite": "^10.0.5",
@@ -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;