@hexdspace/react 0.0.18 → 0.0.20

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.
@@ -103,7 +103,6 @@
103
103
  }
104
104
 
105
105
  .chip {
106
- background: color-mix(in oklab, var(--surface-2), var(--surface-3) 40%);
107
106
  border-radius: var(--radius-chip);
108
107
  box-shadow: var(--shadow-none);
109
108
  color: var(--text-2);
@@ -32,16 +32,16 @@
32
32
  --ink-100: oklch(0.16 0.025 258);
33
33
 
34
34
  /* Accent */
35
- --accent-10: oklch(0.970 0.030 200);
36
- --accent-20: oklch(0.940 0.045 200);
37
- --accent-30: oklch(0.910 0.060 200);
38
- --accent-40: oklch(0.880 0.075 200);
39
- --accent-50: oklch(0.820 0.095 200);
40
- --accent-60: oklch(0.760 0.110 200);
41
- --accent-70: oklch(0.650 0.105 200);
42
- --accent-80: oklch(0.560 0.090 200);
43
- --accent-90: oklch(0.480 0.075 200);
44
- --accent-100: oklch(0.400 0.060 200);
35
+ --accent-10: oklch(0.900 0.020 120);
36
+ --accent-20: oklch(0.870 0.025 120);
37
+ --accent-30: oklch(0.855 0.028 120);
38
+ --accent-40: oklch(0.845 0.030 120);
39
+ --accent-50: oklch(0.8428 0.030 120);
40
+ --accent-60: oklch(0.780 0.045 120);
41
+ --accent-70: oklch(0.680 0.060 120);
42
+ --accent-80: oklch(0.580 0.070 120);
43
+ --accent-90: oklch(0.500 0.065 120);
44
+ --accent-100: oklch(0.430 0.055 120);
45
45
 
46
46
  /* Brand ramp */
47
47
  --brand-10: oklch(0.97 0.020 250);
@@ -88,8 +88,8 @@
88
88
  --border: var(--ink-40);
89
89
  --divider: color-mix(in oklab, var(--border), transparent 40%);
90
90
 
91
- --brand: var(--brand-70);
92
- --brand-strong: var(--brand-60);
91
+ --brand: var(--brand-50);
92
+ --brand-strong: var(--brand-40);
93
93
 
94
94
  --accent: var(--accent-70);
95
95
  --accent-strong: var(--accent-60);
@@ -99,10 +99,10 @@
99
99
  --focus: var(--brand);
100
100
  --focus-ring: 0 0 0 3px color-mix(in oklab, var(--focus), transparent 60%);
101
101
 
102
- --info: var(--info-70);
103
- --success: var(--success-70);
104
- --warning: var(--warning-70);
105
- --danger: var(--danger-70);
102
+ --info: var(--info-60);
103
+ --success: var(--success-60);
104
+ --warning: var(--warning-60);
105
+ --danger: var(--danger-60);
106
106
 
107
107
  --surface-hover: color-mix(in oklab, var(--surface-1), white 6%);
108
108
  --surface-active: color-mix(in oklab, var(--surface-1), white 8%);
package/dist/index.d.ts CHANGED
@@ -307,7 +307,7 @@ type AuthState = {
307
307
  declare function useAuth(): AuthState;
308
308
 
309
309
  declare function useAuthActions(): {
310
- login: (email: string, password: string) => void;
310
+ login: (email: string, password: string) => Promise<Result<Error, User>>;
311
311
  logout: () => void;
312
312
  register: (email: string, password: string) => Promise<Result<Error, {
313
313
  message: string;
package/dist/index.js CHANGED
@@ -835,11 +835,11 @@ function useAuthDispatch() {
835
835
  function useAuthActions() {
836
836
  const dispatch = useAuthDispatch();
837
837
  const authController2 = useAuthController();
838
- const login = useCallback2((email, password) => {
838
+ const login = useCallback2(async (email, password) => {
839
839
  dispatch({ type: "REQUEST" });
840
- authController2.login(email, password).then((res) => {
841
- dispatchLoginResult(res, dispatch);
842
- });
840
+ const res = await authController2.login(email, password);
841
+ dispatchLoginResult(res, dispatch);
842
+ return res;
843
843
  }, [dispatch, authController2]);
844
844
  const logout = useCallback2(() => {
845
845
  authController2.logout().then(() => dispatch({ type: "LOGOUT" }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexdspace/react",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",