@inkandswitch/patchwork-pkg-base 0.0.102 → 0.0.103

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.
@@ -1 +1 @@
1
- automerge:4AYNaXGBhQ2VWRRE6fgggjNULL8o
1
+ automerge:2xqDXSFJN2sgoBiuiZpFfdhfnZZ6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkandswitch/patchwork-pkg-base",
3
- "version": "0.0.102",
3
+ "version": "0.0.103",
4
4
  "type": "module",
5
5
  "description": "Base packages for the Patchwork system",
6
6
  "repository": {
@@ -6425,7 +6425,7 @@ var TooltipTrigger2 = Tooltip.Trigger;
6425
6425
  var TooltipContent2 = Tooltip.Content;
6426
6426
 
6427
6427
  // src/picker/AccountPicker.tsx
6428
- var _tmpl$9 = /* @__PURE__ */ _$template7(`<div class=field-group>`);
6428
+ var _tmpl$9 = /* @__PURE__ */ _$template7(`<form class=field-group>`);
6429
6429
  var _tmpl$24 = /* @__PURE__ */ _$template7(`<div>Not a valid account token, try copy-pasting again.`);
6430
6430
  var _tmpl$33 = /* @__PURE__ */ _$template7(`<div class=loading-text>Looking up account...`);
6431
6431
  var _tmpl$42 = /* @__PURE__ */ _$template7(`<div>Account not found`);
@@ -6613,6 +6613,7 @@ var AccountPicker = (props) => {
6613
6613
  },
6614
6614
  get children() {
6615
6615
  return _$createComponent3(Tabs2, {
6616
+ "class": "auth",
6616
6617
  defaultValue: "signUp",
6617
6618
  onChange: (tab) => setActiveTab(tab),
6618
6619
  get value() {
@@ -6637,6 +6638,10 @@ var AccountPicker = (props) => {
6637
6638
  "class": "tabs-content",
6638
6639
  get children() {
6639
6640
  var _el$2 = _tmpl$9();
6641
+ _el$2.addEventListener("submit", (e) => {
6642
+ e.preventDefault();
6643
+ if (canSignUp()) onSignUp();
6644
+ });
6640
6645
  _$insert6(_el$2, _$createComponent3(Label, {
6641
6646
  "for": "name",
6642
6647
  children: "Name"
@@ -6651,7 +6656,6 @@ var AccountPicker = (props) => {
6651
6656
  }), null);
6652
6657
  _$insert6(_el$2, _$createComponent3(Button, {
6653
6658
  type: "submit",
6654
- onClick: onSignUp,
6655
6659
  get disabled() {
6656
6660
  return !canSignUp();
6657
6661
  },
@@ -7005,4 +7009,4 @@ export {
7005
7009
  AccountPicker,
7006
7010
  AccountPickerTool
7007
7011
  };
7008
- //# sourceMappingURL=AccountPicker-A2PAS5CG.js.map
7012
+ //# sourceMappingURL=AccountPicker-DCX77HQI.js.map