@bitbaum/accountkit 0.23.0 → 0.23.1

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
- {"version":3,"file":"unbroken.d.ts","sourceRoot":"","sources":["../../src/auth/unbroken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAYhD"}
1
+ {"version":3,"file":"unbroken.d.ts","sourceRoot":"","sources":["../../src/auth/unbroken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAgBvC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAgBhD"}
@@ -4,12 +4,18 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  * split across two lines: a browser may break after any hyphen, and a button
5
5
  * at 390px read "per E- / Mail schicken". Each such word is kept whole in a
6
6
  * nowrap span, inline so it holds without the stylesheet. Spaces still wrap.
7
+ *
8
+ * The parts go inside ONE span. A button styled `display: flex` (AccountKit's
9
+ * own stylesheet, and evig's) lays each child text node and span out as its
10
+ * own flex item, side by side: evig's label read "Stattdessen einen /
11
+ * Anmeldelink per | E-Mail | schicken" in three columns. One child is one
12
+ * flex item, and the sentence wraps as a sentence.
7
13
  */
8
14
  const HYPHENATED = /(\S*\p{L}-\p{L}\S*)/u;
9
15
  export function unbroken(text) {
10
16
  const parts = text.split(HYPHENATED);
11
17
  if (parts.length === 1)
12
18
  return text;
13
- return parts.map((part, i) => i % 2 === 1 ? (_jsx("span", { style: { whiteSpace: "nowrap" }, children: part }, i)) : (part));
19
+ return (_jsx("span", { children: parts.map((part, i) => i % 2 === 1 ? (_jsx("span", { style: { whiteSpace: "nowrap" }, children: part }, i)) : (part)) }));
14
20
  }
15
21
  //# sourceMappingURL=unbroken.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unbroken.js","sourceRoot":"","sources":["../../src/auth/unbroken.tsx"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAE1C,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAC3B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACZ,eAAc,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,YAC1C,IAAI,IADI,CAAC,CAEL,CACR,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"unbroken.js","sourceRoot":"","sources":["../../src/auth/unbroken.tsx"],"names":[],"mappings":";AAEA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAE1C,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACrC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,OAAO,CACL,yBACG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CACrB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACZ,eAAc,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,YAC1C,IAAI,IADI,CAAC,CAEL,CACR,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CACF,GACI,CACR,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbaum/accountkit",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "One account for every bitbaum product: the account menu, accounts themselves (better-auth: password, magic link, passkeys, 2FA, OIDC) and Sign in with OrangeCat. Styled from @bitbaum/design-tokens.",
5
5
  "license": "MIT",
6
6
  "author": "Cato",