hazo_ui 4.10.0 → 6.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_ui",
3
- "version": "4.10.0",
3
+ "version": "6.0.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",
@@ -12,12 +12,6 @@
12
12
  "import": "./dist/index.js",
13
13
  "require": "./dist/index.cjs"
14
14
  },
15
- "./styles.css": "./dist/styles.css",
16
- "./tailwind-preset": {
17
- "types": "./tailwind.preset.d.ts",
18
- "import": "./tailwind.preset.js",
19
- "require": "./tailwind.preset.js"
20
- },
21
15
  "./test-harness": {
22
16
  "types": "./dist/test-harness/index.d.ts",
23
17
  "import": "./dist/test-harness/index.js",
@@ -32,8 +26,6 @@
32
26
  },
33
27
  "files": [
34
28
  "dist",
35
- "tailwind.preset.js",
36
- "tailwind.preset.d.ts",
37
29
  "README.md",
38
30
  "CHANGE_LOG.md",
39
31
  "SETUP_CHECKLIST.md"
@@ -53,12 +45,7 @@
53
45
  "react-dom": "^18.0.0 || ^19.0.0",
54
46
  "hazo_core": "^1.2.1",
55
47
  "hazo_state": "^0.1.2",
56
- "hazo_theme": "^0.2.0"
57
- },
58
- "peerDependenciesMeta": {
59
- "hazo_theme": {
60
- "optional": true
61
- }
48
+ "hazo_theme": "^1.0.0"
62
49
  },
63
50
  "dependencies": {
64
51
  "@dnd-kit/core": "^6.1.0",
@@ -128,7 +115,7 @@
128
115
  "@types/react": "^18.3.3",
129
116
  "@types/react-dom": "^18.3.0",
130
117
  "hazo_core": "^1.2.1",
131
- "hazo_theme": "^0.2.0",
118
+ "hazo_theme": "^1.0.0",
132
119
  "postcss": "^8.4.49",
133
120
  "react": "^18.3.1",
134
121
  "react-dom": "^18.3.1",
package/dist/styles.css DELETED
@@ -1,156 +0,0 @@
1
- /**
2
- * hazo_ui CSS Variables and Base Styles
3
- *
4
- * Import this file in your app to get all required CSS variables:
5
- * import 'hazo_ui/styles.css';
6
- */
7
-
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
- /* HazoUiKanban primitives (v2.13.0) */
30
- --hazo-kanban-priority-p0: 0 84% 60%; /* red */
31
- --hazo-kanban-priority-p1: 45 93% 55%; /* yellow */
32
- --hazo-kanban-priority-p2: 217 91% 60%; /* blue */
33
- --hazo-kanban-priority-p3: 220 9% 64%; /* grey */
34
- --hazo-kanban-card-bg: var(--card);
35
- --hazo-kanban-card-border: var(--border);
36
- --hazo-kanban-column-gap: 0.75rem;
37
- }
38
-
39
- .dark {
40
- --background: 222.2 84% 4.9%;
41
- --foreground: 210 40% 98%;
42
- --card: 222.2 84% 4.9%;
43
- --card-foreground: 210 40% 98%;
44
- --popover: 222.2 84% 4.9%;
45
- --popover-foreground: 210 40% 98%;
46
- --primary: 210 40% 98%;
47
- --primary-foreground: 222.2 47.4% 11.2%;
48
- --secondary: 217.2 32.6% 17.5%;
49
- --secondary-foreground: 210 40% 98%;
50
- --muted: 217.2 32.6% 17.5%;
51
- --muted-foreground: 215 20.2% 65.1%;
52
- --accent: 217.2 32.6% 17.5%;
53
- --accent-foreground: 210 40% 98%;
54
- --destructive: 0 62.8% 30.6%;
55
- --destructive-foreground: 210 40% 98%;
56
- --border: 217.2 32.6% 17.5%;
57
- --input: 217.2 32.6% 17.5%;
58
- --ring: 212.7 26.8% 83.9%;
59
- }
60
-
61
- /* Command Dropdown/Popover Styles */
62
- /* These styles ensure proper backgrounds in command dropdowns regardless of CSS variable format */
63
- .cls_command_popover,
64
- .cls_command_dropdown,
65
- .cls_textarea_command_dropdown,
66
- .cls_edit_popover {
67
- background-color: #ffffff;
68
- background-color: var(--popover, #ffffff);
69
- color: var(--popover-foreground, #0f172a);
70
- border: 1px solid var(--border, #e2e8f0);
71
- border-radius: var(--radius, 0.5rem);
72
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
73
- }
74
-
75
- .dark .cls_command_popover,
76
- .dark .cls_command_dropdown,
77
- .dark .cls_textarea_command_dropdown,
78
- .dark .cls_edit_popover {
79
- background-color: #1e293b;
80
- background-color: var(--popover, #1e293b);
81
- color: var(--popover-foreground, #f8fafc);
82
- }
83
-
84
- /* Command items inherit background from parent */
85
- .cls_command_popover .cls_command_item,
86
- .cls_command_dropdown .cls_command_item {
87
- background-color: inherit;
88
- }
89
-
90
- /* Command item selected and hover states */
91
- .cls_command_popover .cls_command_item:hover,
92
- .cls_command_dropdown .cls_command_item:hover,
93
- .cls_command_popover .cls_command_item.bg-accent,
94
- .cls_command_dropdown .cls_command_item.bg-accent {
95
- background-color: var(--accent, #f1f5f9) !important;
96
- color: var(--accent-foreground, #0f172a) !important;
97
- }
98
-
99
- /* Ensure nested text elements are visible when parent is selected */
100
- .cls_command_popover .cls_command_item.bg-accent *,
101
- .cls_command_dropdown .cls_command_item.bg-accent * {
102
- color: inherit;
103
- }
104
-
105
- /* Description text in selected items - slightly muted but still visible */
106
- .cls_command_popover .cls_command_item.bg-accent .text-muted-foreground,
107
- .cls_command_dropdown .cls_command_item.bg-accent .text-muted-foreground {
108
- color: var(--accent-foreground, #0f172a);
109
- opacity: 0.7;
110
- }
111
-
112
- .dark .cls_command_popover .cls_command_item:hover,
113
- .dark .cls_command_dropdown .cls_command_item:hover,
114
- .dark .cls_command_popover .cls_command_item.bg-accent,
115
- .dark .cls_command_dropdown .cls_command_item.bg-accent {
116
- background-color: var(--accent, #334155) !important;
117
- color: var(--accent-foreground, #f8fafc) !important;
118
- }
119
-
120
- .dark .cls_command_popover .cls_command_item.bg-accent .text-muted-foreground,
121
- .dark .cls_command_dropdown .cls_command_item.bg-accent .text-muted-foreground {
122
- color: var(--accent-foreground, #f8fafc);
123
- opacity: 0.7;
124
- }
125
-
126
- /* ============================================================
127
- * State primitives: shimmer animation for Skeleton components
128
- * Used by .hazo-shimmer class. Falls back to static under
129
- * prefers-reduced-motion (handled in the JSX, not here).
130
- * ============================================================ */
131
- @keyframes hazo-shimmer {
132
- 0% {
133
- background-position: -200% 0;
134
- }
135
- 100% {
136
- background-position: 200% 0;
137
- }
138
- }
139
-
140
- .hazo-shimmer {
141
- background: linear-gradient(
142
- 90deg,
143
- hsl(var(--muted, 210 40% 96.1%)) 0%,
144
- hsl(var(--muted, 210 40% 96.1%) / 0.5) 50%,
145
- hsl(var(--muted, 210 40% 96.1%)) 100%
146
- );
147
- background-size: 200% 100%;
148
- animation: hazo-shimmer 1.2s ease-in-out infinite;
149
- }
150
-
151
- @media (prefers-reduced-motion: reduce) {
152
- .hazo-shimmer {
153
- animation: none;
154
- background: hsl(var(--muted, 210 40% 96.1%));
155
- }
156
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * hazo_ui Tailwind CSS Preset Type Declaration
3
- */
4
-
5
- import type { Config } from "tailwindcss";
6
-
7
- declare const hazoUiPreset: Partial<Config>;
8
- export default hazoUiPreset;
@@ -1,91 +0,0 @@
1
- /**
2
- * hazo_ui Tailwind CSS Preset (v4-compatible)
3
- *
4
- * Use this preset in your tailwind.config.js/ts:
5
- *
6
- * import hazoUiPreset from 'hazo_ui/tailwind-preset';
7
- *
8
- * export default {
9
- * presets: [hazoUiPreset],
10
- * content: [
11
- * './src/**\/*.{js,ts,jsx,tsx}',
12
- * './node_modules/hazo_ui/dist/**\/*.js',
13
- * ],
14
- * };
15
- *
16
- * NOTE: For accordion / collapse animations, add `@plugin "tw-animate-css";`
17
- * to your globals.css and install `tw-animate-css` as a dependency.
18
- */
19
-
20
- /** @type {import('tailwindcss').Config} */
21
- const hazoUiPreset = {
22
- darkMode: ['class'],
23
- theme: {
24
- container: {
25
- center: true,
26
- padding: '2rem',
27
- screens: {
28
- '2xl': '1400px',
29
- },
30
- },
31
- extend: {
32
- colors: {
33
- border: 'hsl(var(--border))',
34
- input: 'hsl(var(--input))',
35
- ring: 'hsl(var(--ring))',
36
- background: 'hsl(var(--background))',
37
- foreground: 'hsl(var(--foreground))',
38
- primary: {
39
- DEFAULT: 'hsl(var(--primary))',
40
- foreground: 'hsl(var(--primary-foreground))',
41
- },
42
- secondary: {
43
- DEFAULT: 'hsl(var(--secondary))',
44
- foreground: 'hsl(var(--secondary-foreground))',
45
- },
46
- destructive: {
47
- DEFAULT: 'hsl(var(--destructive))',
48
- foreground: 'hsl(var(--destructive-foreground))',
49
- },
50
- muted: {
51
- DEFAULT: 'hsl(var(--muted))',
52
- foreground: 'hsl(var(--muted-foreground))',
53
- },
54
- accent: {
55
- DEFAULT: 'hsl(var(--accent))',
56
- foreground: 'hsl(var(--accent-foreground))',
57
- },
58
- popover: {
59
- DEFAULT: 'hsl(var(--popover))',
60
- foreground: 'hsl(var(--popover-foreground))',
61
- },
62
- card: {
63
- DEFAULT: 'hsl(var(--card))',
64
- foreground: 'hsl(var(--card-foreground))',
65
- },
66
- },
67
- borderRadius: {
68
- lg: 'var(--radius)',
69
- md: 'calc(var(--radius) - 2px)',
70
- sm: 'calc(var(--radius) - 4px)',
71
- },
72
- keyframes: {
73
- 'accordion-down': {
74
- from: { height: '0' },
75
- to: { height: 'var(--radix-accordion-content-height)' },
76
- },
77
- 'accordion-up': {
78
- from: { height: 'var(--radix-accordion-content-height)' },
79
- to: { height: '0' },
80
- },
81
- },
82
- animation: {
83
- 'accordion-down': 'accordion-down 0.2s ease-out',
84
- 'accordion-up': 'accordion-up 0.2s ease-out',
85
- },
86
- },
87
- },
88
- plugins: [],
89
- };
90
-
91
- export default hazoUiPreset;