@vibes.diy/use-vibes-base 0.18.16-dev → 0.18.18-dev
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/components/BrutalistCard/BrutalistCard.d.ts +0 -1
- package/components/BrutalistCard/BrutalistCard.js +13 -4
- package/components/BrutalistCard/BrutalistCard.js.map +1 -1
- package/components/BrutalistCard/BrutalistCard.styles.js +4 -4
- package/components/BrutalistCard/BrutalistCard.styles.js.map +1 -1
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.styles.js +2 -28
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.styles.js.map +1 -1
- package/components/ImgGen.css +675 -0
- package/components/ImgGen.js.map +1 -1
- package/components/VibesButton/VibesButton.d.ts +2 -10
- package/components/VibesButton/VibesButton.js +24 -34
- package/components/VibesButton/VibesButton.js.map +1 -1
- package/components/VibesButton/VibesButton.styles.d.ts +6 -7
- package/components/VibesButton/VibesButton.styles.js +9 -75
- package/components/VibesButton/VibesButton.styles.js.map +1 -1
- package/components/{VibesPanel.d.ts → VibesPanel/VibesPanel.d.ts} +0 -1
- package/components/VibesPanel/VibesPanel.js +119 -0
- package/components/VibesPanel/VibesPanel.js.map +1 -0
- package/components/VibesPanel/index.d.ts +1 -0
- package/components/VibesPanel/index.js +2 -0
- package/components/VibesPanel/index.js.map +1 -0
- package/components/VibesSwitch/VibesSwitch.d.ts +1 -4
- package/components/VibesSwitch/VibesSwitch.js +3 -17
- package/components/VibesSwitch/VibesSwitch.js.map +1 -1
- package/components/VibesSwitch/VibesSwitch.styles.js +2 -2
- package/components/VibesSwitch/VibesSwitch.styles.js.map +1 -1
- package/constants.d.ts +3 -0
- package/constants.js +3 -0
- package/constants.js.map +1 -1
- package/events.d.ts +7 -0
- package/events.js +4 -0
- package/events.js.map +1 -0
- package/hooks/image-gen/use-image-gen.js +1 -0
- package/hooks/image-gen/use-image-gen.js.map +1 -1
- package/hooks/use-image-gen.d.ts +1 -0
- package/hooks/use-image-gen.js +2 -0
- package/hooks/use-image-gen.js.map +1 -0
- package/hooks/vibes-gen/use-vibes.js +2 -0
- package/hooks/vibes-gen/use-vibes.js.map +1 -1
- package/index.d.ts +2 -6
- package/index.js +109 -12
- package/index.js.map +1 -1
- package/package.json +26 -12
- package/tsconfig.json +0 -2
- package/utils/vibe-control-styles.js +11 -52
- package/utils/vibe-control-styles.js.map +1 -1
- package/vibe-app-mount.js +1 -1
- package/vibe-app-mount.js.map +1 -1
- package/components/LabelContainer/LabelContainer.d.ts +0 -9
- package/components/LabelContainer/LabelContainer.js +0 -10
- package/components/LabelContainer/LabelContainer.js.map +0 -1
- package/components/LabelContainer/LabelContainer.styles.d.ts +0 -7
- package/components/LabelContainer/LabelContainer.styles.js +0 -159
- package/components/LabelContainer/LabelContainer.styles.js.map +0 -1
- package/components/LabelContainer/index.d.ts +0 -2
- package/components/LabelContainer/index.js +0 -2
- package/components/LabelContainer/index.js.map +0 -1
- package/components/VibesButton/index.d.ts +0 -1
- package/components/VibesButton/index.js +0 -2
- package/components/VibesButton/index.js.map +0 -1
- package/components/VibesPanel.js +0 -97
- package/components/VibesPanel.js.map +0 -1
- package/components/VibesPanel.styles.d.ts +0 -14
- package/components/VibesPanel.styles.js +0 -137
- package/components/VibesPanel.styles.js.map +0 -1
- package/components/icons/BackIcon.d.ts +0 -9
- package/components/icons/BackIcon.js +0 -7
- package/components/icons/BackIcon.js.map +0 -1
- package/components/icons/InviteIcon.d.ts +0 -9
- package/components/icons/InviteIcon.js +0 -7
- package/components/icons/InviteIcon.js.map +0 -1
- package/components/icons/LoginIcon.d.ts +0 -9
- package/components/icons/LoginIcon.js +0 -7
- package/components/icons/LoginIcon.js.map +0 -1
- package/components/icons/RemixIcon.d.ts +0 -9
- package/components/icons/RemixIcon.js +0 -7
- package/components/icons/RemixIcon.js.map +0 -1
- package/components/icons/SettingsIcon.d.ts +0 -9
- package/components/icons/SettingsIcon.js +0 -7
- package/components/icons/SettingsIcon.js.map +0 -1
- package/components/icons/index.d.ts +0 -5
- package/components/icons/index.js +0 -6
- package/components/icons/index.js.map +0 -1
- package/hooks/useMobile.d.ts +0 -1
- package/hooks/useMobile.js +0 -20
- package/hooks/useMobile.js.map +0 -1
- package/hooks/useThemeDetection.d.ts +0 -1
- package/hooks/useThemeDetection.js +0 -15
- package/hooks/useThemeDetection.js.map +0 -1
- package/styles/colors.css +0 -198
package/hooks/useMobile.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
export function useMobile() {
|
|
3
|
-
const [isMobile, setIsMobile] = useState(() => {
|
|
4
|
-
if (typeof window === 'undefined')
|
|
5
|
-
return false;
|
|
6
|
-
return window.matchMedia('(max-width: 768px)').matches;
|
|
7
|
-
});
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
if (typeof window === 'undefined')
|
|
10
|
-
return;
|
|
11
|
-
const mediaQuery = window.matchMedia('(max-width: 768px)');
|
|
12
|
-
const handleChange = (e) => {
|
|
13
|
-
setIsMobile(e.matches);
|
|
14
|
-
};
|
|
15
|
-
mediaQuery.addEventListener('change', handleChange);
|
|
16
|
-
return () => mediaQuery.removeEventListener('change', handleChange);
|
|
17
|
-
}, []);
|
|
18
|
-
return isMobile;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=useMobile.js.map
|
package/hooks/useMobile.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMobile.js","sourceRoot":"","sources":["../../jsr/hooks/useMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU5C,MAAM,UAAU,SAAS,GAAY;IACnC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC;QAC7C,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO,KAAK,CAAC;QAChD,OAAO,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;IAAA,CACxD,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE,CAAC;QACd,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO;QAE1C,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;QAE3D,MAAM,YAAY,GAAG,CAAC,CAAsB,EAAE,EAAE,CAAC;YAC/C,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAAA,CACxB,CAAC;QAEF,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QACpD,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAAA,CACrE,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,QAAQ,CAAC;AAAA,CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useThemeDetection(): boolean;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
export function useThemeDetection() {
|
|
3
|
-
const [isDark, setIsDark] = useState(false);
|
|
4
|
-
useEffect(() => {
|
|
5
|
-
const checkDarkMode = () => {
|
|
6
|
-
setIsDark(window.matchMedia('(prefers-color-scheme: dark)').matches);
|
|
7
|
-
};
|
|
8
|
-
checkDarkMode();
|
|
9
|
-
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
10
|
-
mediaQuery.addEventListener('change', checkDarkMode);
|
|
11
|
-
return () => mediaQuery.removeEventListener('change', checkDarkMode);
|
|
12
|
-
}, []);
|
|
13
|
-
return isDark;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=useThemeDetection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeDetection.js","sourceRoot":"","sources":["../../jsr/hooks/useThemeDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAM5C,MAAM,UAAU,iBAAiB,GAAY;IAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,SAAS,CAAC,GAAG,EAAE,CAAC;QACd,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC;YAC1B,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,OAAO,CAAC,CAAC;QAAA,CACtE,CAAC;QAEF,aAAa,EAAE,CAAC;QAChB,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;QACrE,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;QAErD,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAAA,CACtE,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,MAAM,CAAC;AAAA,CACf"}
|
package/styles/colors.css
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vibes Design System - Color Tokens
|
|
3
|
-
*
|
|
4
|
-
* Structure:
|
|
5
|
-
* 1. Base Colors - Static colors that never change with theme
|
|
6
|
-
* 2. Semantic Colors - Theme-aware colors that adapt to light/dark mode
|
|
7
|
-
* 3. Component-Specific Tokens - Colors for specific component needs
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
/* ============================================
|
|
12
|
-
BASE COLORS - These never change with theme
|
|
13
|
-
Use these when you want consistent colors regardless of dark mode
|
|
14
|
-
============================================ */
|
|
15
|
-
|
|
16
|
-
/* Primary Palette */
|
|
17
|
-
--vibes-blue: #3b82f6;
|
|
18
|
-
--vibes-blue-accent: #0066cc;
|
|
19
|
-
--vibes-blue-bright: #0074d9;
|
|
20
|
-
--vibes-blue-dark: #357abd;
|
|
21
|
-
--vibes-blue-darker: #4a90e2;
|
|
22
|
-
|
|
23
|
-
--vibes-red: #ef4444;
|
|
24
|
-
--vibes-red-accent: #da291c;
|
|
25
|
-
--vibes-red-dark: #b91c1c;
|
|
26
|
-
--vibes-red-bright: #dc2626;
|
|
27
|
-
--vibes-red-light: #ff6666;
|
|
28
|
-
--vibes-red-delete: #ff3333;
|
|
29
|
-
|
|
30
|
-
--vibes-yellow: #eab308;
|
|
31
|
-
--vibes-yellow-accent: #fedd00;
|
|
32
|
-
--vibes-yellow-bright: #fe0;
|
|
33
|
-
|
|
34
|
-
--vibes-gray: #6b7280;
|
|
35
|
-
--vibes-green: #51cf66;
|
|
36
|
-
|
|
37
|
-
/* Neon/Phosphorescent colors for dark mode */
|
|
38
|
-
--vibes-purple-neon: #c084fc;
|
|
39
|
-
--vibes-magenta-neon: #e879f9;
|
|
40
|
-
--vibes-pink-neon: #f472b6;
|
|
41
|
-
--vibes-cyan-neon: #22d3ee;
|
|
42
|
-
--vibes-lime-neon: #a3e635;
|
|
43
|
-
--vibes-orange-neon: #fb923c;
|
|
44
|
-
|
|
45
|
-
/* Neutrals */
|
|
46
|
-
--vibes-black: #000000;
|
|
47
|
-
--vibes-near-black: #1a1a1a;
|
|
48
|
-
--vibes-dark-gray: #222222;
|
|
49
|
-
--vibes-gray-dark: #333333;
|
|
50
|
-
--vibes-gray-mid: #555555;
|
|
51
|
-
--vibes-gray-medium: #666666;
|
|
52
|
-
--vibes-gray-light: #aaaaaa;
|
|
53
|
-
--vibes-gray-lighter: #cccccc;
|
|
54
|
-
--vibes-gray-lightest: #d4d4d4;
|
|
55
|
-
--vibes-gray-ultralight: #e0e0e0;
|
|
56
|
-
--vibes-gray-pale: #e5e5e5;
|
|
57
|
-
--vibes-gray-offwhite: #eeeeee;
|
|
58
|
-
--vibes-gray-ghost: #f0f0f0;
|
|
59
|
-
--vibes-gray-whisper: #f5f5f5;
|
|
60
|
-
--vibes-gray-mist: #fafafa;
|
|
61
|
-
|
|
62
|
-
--vibes-white: #ffffff;
|
|
63
|
-
--vibes-cream: #fffff0;
|
|
64
|
-
|
|
65
|
-
/* ============================================
|
|
66
|
-
SEMANTIC COLORS - Theme-aware (change with light/dark mode)
|
|
67
|
-
Use these for most UI elements that should adapt to theme
|
|
68
|
-
============================================ */
|
|
69
|
-
|
|
70
|
-
/* Backgrounds */
|
|
71
|
-
--vibes-bg-primary: var(--vibes-white);
|
|
72
|
-
--vibes-bg-secondary: var(--vibes-gray-whisper);
|
|
73
|
-
--vibes-bg-tertiary: var(--vibes-gray-pale);
|
|
74
|
-
--vibes-bg-overlay: rgba(255, 255, 255, 0.5);
|
|
75
|
-
--vibes-bg-input: var(--vibes-white);
|
|
76
|
-
--vibes-bg-dropzone: var(--vibes-gray-mist);
|
|
77
|
-
--vibes-bg-dropzone-active: #f0f8ff;
|
|
78
|
-
--vibes-bg-light: var(--vibes-gray-ghost);
|
|
79
|
-
|
|
80
|
-
/* Text */
|
|
81
|
-
--vibes-text-primary: var(--vibes-gray-dark);
|
|
82
|
-
--vibes-text-secondary: var(--vibes-gray-medium);
|
|
83
|
-
--vibes-text-muted: var(--vibes-gray-light);
|
|
84
|
-
--vibes-text-inverse: var(--vibes-white);
|
|
85
|
-
|
|
86
|
-
/* Borders */
|
|
87
|
-
--vibes-border-primary: var(--vibes-near-black);
|
|
88
|
-
--vibes-border-secondary: var(--vibes-gray-lighter);
|
|
89
|
-
--vibes-border-light: #dddddd;
|
|
90
|
-
--vibes-border-input: var(--vibes-gray-lighter);
|
|
91
|
-
|
|
92
|
-
/* Shadows */
|
|
93
|
-
--vibes-shadow-color: var(--vibes-near-black);
|
|
94
|
-
--vibes-shadow-sm: rgba(0, 0, 0, 0.15);
|
|
95
|
-
--vibes-shadow-md: rgba(0, 0, 0, 0.3);
|
|
96
|
-
--vibes-shadow-lg: rgba(0, 0, 0, 0.5);
|
|
97
|
-
--vibes-shadow-backdrop: rgba(0, 0, 0, 0.9);
|
|
98
|
-
|
|
99
|
-
/* Component-Specific Semantic Colors */
|
|
100
|
-
/* Button - Light mode (cream/light by default) */
|
|
101
|
-
--vibes-button-bg: var(--vibes-cream);
|
|
102
|
-
--vibes-button-text: var(--vibes-near-black);
|
|
103
|
-
--vibes-button-border: var(--vibes-near-black);
|
|
104
|
-
--vibes-button-icon-bg: #2a2a2a;
|
|
105
|
-
--vibes-button-icon-fill: var(--vibes-white);
|
|
106
|
-
|
|
107
|
-
/* Button - Dark mode aware variants (for when ignoreDarkMode=false) */
|
|
108
|
-
--vibes-button-bg-dark-aware: var(--vibes-cream);
|
|
109
|
-
--vibes-button-text-dark-aware: var(--vibes-near-black);
|
|
110
|
-
--vibes-button-border-dark-aware: var(--vibes-near-black);
|
|
111
|
-
--vibes-button-icon-bg-dark-aware: var(--vibes-white);
|
|
112
|
-
|
|
113
|
-
/* Button variant colors - Light mode */
|
|
114
|
-
--vibes-variant-blue: var(--vibes-blue);
|
|
115
|
-
--vibes-variant-red: var(--vibes-red);
|
|
116
|
-
--vibes-variant-yellow: var(--vibes-yellow);
|
|
117
|
-
--vibes-variant-gray: var(--vibes-gray);
|
|
118
|
-
|
|
119
|
-
--vibes-card-bg: var(--vibes-gray-pale);
|
|
120
|
-
--vibes-card-text: var(--vibes-near-black);
|
|
121
|
-
--vibes-card-border: var(--vibes-near-black);
|
|
122
|
-
|
|
123
|
-
/* Error States */
|
|
124
|
-
--vibes-error-bg: rgba(0, 0, 0, 0.7);
|
|
125
|
-
--vibes-error-border: var(--vibes-red-light);
|
|
126
|
-
--vibes-error-text: var(--vibes-red-light);
|
|
127
|
-
--vibes-error-text-body: var(--vibes-white);
|
|
128
|
-
|
|
129
|
-
/* ImgGen specific */
|
|
130
|
-
--imggen-accent: var(--vibes-blue-accent);
|
|
131
|
-
--imggen-flash: var(--vibes-yellow-bright);
|
|
132
|
-
--imggen-button-bg: rgba(255, 255, 255, 0.7);
|
|
133
|
-
--imggen-delete-hover: var(--vibes-red-delete);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/* ============================================
|
|
137
|
-
DARK MODE - Theme-aware colors adapt here
|
|
138
|
-
Base colors remain unchanged
|
|
139
|
-
============================================ */
|
|
140
|
-
@media (prefers-color-scheme: dark) {
|
|
141
|
-
:root {
|
|
142
|
-
/* Backgrounds */
|
|
143
|
-
--vibes-bg-primary: var(--vibes-near-black);
|
|
144
|
-
--vibes-bg-secondary: #2a2a2a;
|
|
145
|
-
--vibes-bg-tertiary: #404040;
|
|
146
|
-
--vibes-bg-overlay: rgba(0, 0, 0, 0.5);
|
|
147
|
-
--vibes-bg-input: #2a2a2a;
|
|
148
|
-
--vibes-bg-dropzone: #2a2a2a;
|
|
149
|
-
--vibes-bg-dropzone-active: #1a3a4a;
|
|
150
|
-
--vibes-bg-light: #404040;
|
|
151
|
-
|
|
152
|
-
/* Text */
|
|
153
|
-
--vibes-text-primary: var(--vibes-gray-ultralight);
|
|
154
|
-
--vibes-text-secondary: var(--vibes-gray-light);
|
|
155
|
-
--vibes-text-muted: var(--vibes-gray-medium);
|
|
156
|
-
--vibes-text-inverse: var(--vibes-near-black);
|
|
157
|
-
|
|
158
|
-
/* Borders */
|
|
159
|
-
--vibes-border-primary: var(--vibes-gray-mid);
|
|
160
|
-
--vibes-border-secondary: var(--vibes-gray-mid);
|
|
161
|
-
--vibes-border-light: var(--vibes-gray-mid);
|
|
162
|
-
--vibes-border-input: var(--vibes-gray-mid);
|
|
163
|
-
|
|
164
|
-
/* Shadows */
|
|
165
|
-
--vibes-shadow-color: var(--vibes-near-black);
|
|
166
|
-
--vibes-shadow-sm: rgba(255, 255, 255, 0.1);
|
|
167
|
-
--vibes-shadow-md: rgba(255, 255, 255, 0.1);
|
|
168
|
-
--vibes-shadow-lg: rgba(0, 0, 0, 0.5);
|
|
169
|
-
--vibes-shadow-backdrop: rgba(0, 0, 0, 0.9);
|
|
170
|
-
|
|
171
|
-
/* Component-Specific Dark Mode Adjustments */
|
|
172
|
-
--vibes-card-bg: var(--vibes-near-black);
|
|
173
|
-
--vibes-card-text: var(--vibes-white);
|
|
174
|
-
--vibes-card-border: var(--vibes-gray-mid);
|
|
175
|
-
|
|
176
|
-
/* Note: Default button colors remain cream/light in dark mode for contrast */
|
|
177
|
-
/* --vibes-button-bg: var(--vibes-cream); (unchanged) */
|
|
178
|
-
/* --vibes-button-text: var(--vibes-near-black); (unchanged) */
|
|
179
|
-
/* --vibes-button-border: var(--vibes-near-black); (unchanged) */
|
|
180
|
-
--vibes-button-icon-bg: var(--vibes-white);
|
|
181
|
-
--vibes-button-icon-fill: #2a2a2a;
|
|
182
|
-
|
|
183
|
-
/* Dark mode aware buttons - darker background with light text */
|
|
184
|
-
--vibes-button-bg-dark-aware: #2a2a2a;
|
|
185
|
-
--vibes-button-text-dark-aware: var(--vibes-gray-ultralight);
|
|
186
|
-
--vibes-button-border-dark-aware: var(--vibes-gray-mid);
|
|
187
|
-
--vibes-button-icon-bg-dark-aware: #404040;
|
|
188
|
-
|
|
189
|
-
/* Button variant colors - Dark mode (neon/phosphorescent) */
|
|
190
|
-
--vibes-variant-blue: var(--vibes-purple-neon);
|
|
191
|
-
--vibes-variant-red: var(--vibes-pink-neon);
|
|
192
|
-
--vibes-variant-yellow: var(--vibes-orange-neon);
|
|
193
|
-
--vibes-variant-gray: var(--vibes-cyan-neon);
|
|
194
|
-
|
|
195
|
-
/* ImgGen dark mode adjustments */
|
|
196
|
-
--imggen-button-bg: rgba(0, 0, 0, 0.7);
|
|
197
|
-
}
|
|
198
|
-
}
|