@chrysb/alphaclaw 0.1.19 → 0.1.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.
@@ -249,9 +249,7 @@ export const WelcomeFormStep = ({
249
249
  <button
250
250
  onclick=${goNext}
251
251
  disabled=${!currentGroupValid}
252
- class="w-full text-sm font-medium px-4 py-2 rounded-xl transition-all ${currentGroupValid
253
- ? "bg-white text-black hover:opacity-85"
254
- : "bg-gray-800 text-gray-500 cursor-not-allowed"}"
252
+ class="w-full text-sm font-medium px-4 py-2 rounded-xl transition-all ac-btn-cyan"
255
253
  >
256
254
  Next
257
255
  </button>
@@ -268,10 +266,7 @@ export const WelcomeFormStep = ({
268
266
  <button
269
267
  onclick=${handleSubmit}
270
268
  disabled=${!allValid || loading}
271
- class="w-full text-sm font-medium px-4 py-2 rounded-xl transition-all ${allValid &&
272
- !loading
273
- ? "bg-white text-black hover:opacity-85"
274
- : "bg-gray-800 text-gray-500 cursor-not-allowed"}"
269
+ class="w-full text-sm font-medium px-4 py-2 rounded-xl transition-all ac-btn-cyan"
275
270
  >
276
271
  ${loading ? "Starting..." : "Complete Setup"}
277
272
  </button>
@@ -60,9 +60,9 @@
60
60
  id="submit-btn"
61
61
  type="submit"
62
62
  disabled
63
- class="w-full text-sm font-medium px-4 py-2 rounded-lg bg-gray-800 text-gray-500 cursor-not-allowed"
63
+ class="w-full text-sm font-medium px-4 py-2 rounded-lg ac-btn-cyan"
64
64
  >
65
- Continue
65
+ Enter
66
66
  </button>
67
67
  </form>
68
68
  </div>
@@ -71,22 +71,9 @@
71
71
  const passwordEl = document.getElementById("password");
72
72
  const submitButtonEl = document.getElementById("submit-btn");
73
73
 
74
- const kEnabledClasses = ["bg-white", "text-black", "hover:opacity-85"];
75
- const kDisabledClasses = [
76
- "bg-gray-800",
77
- "text-gray-500",
78
- "cursor-not-allowed",
79
- ];
80
-
81
74
  const syncButtonState = () => {
82
75
  const hasValue = passwordEl.value.length > 0;
83
76
  submitButtonEl.disabled = !hasValue;
84
- kEnabledClasses.forEach((c) =>
85
- submitButtonEl.classList.toggle(c, hasValue),
86
- );
87
- kDisabledClasses.forEach((c) =>
88
- submitButtonEl.classList.toggle(c, !hasValue),
89
- );
90
77
  };
91
78
 
92
79
  passwordEl.addEventListener("input", syncButtonState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrysb/alphaclaw",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },