@dexterai/connect 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.
@@ -43,6 +43,13 @@ var BUTTON_CSS = `
43
43
  }
44
44
  .dx-btn--danger:focus-visible{ box-shadow:0 0 0 3px color-mix(in srgb,var(--dx-danger,#b3261e) 38%,transparent); }
45
45
  .dx-btn--block{ width:100%; }
46
+ .dx-btn--sm{
47
+ padding:7px 14px; gap:7px; font-size:.66rem; letter-spacing:.1em;
48
+ box-shadow:0 8px 16px color-mix(in srgb,var(--dx-ember,#f26c18) 18%,transparent);
49
+ }
50
+ .dx-btn--sm:hover{ box-shadow:0 12px 22px color-mix(in srgb,var(--dx-ember,#f26c18) 26%,transparent); }
51
+ .dx-btn--sm .dx-btn__mark{ width:14px; height:14px; }
52
+ .dx-btn--sm .dx-btn__spin{ width:12px; height:12px; }
46
53
  .dx-btn__mark{ flex-shrink:0; }
47
54
  .dx-btn__spin{ width:15px; height:15px; flex-shrink:0; border-radius:50%;
48
55
  border:2px solid color-mix(in srgb,currentColor 30%,transparent); border-top-color:currentColor;
@@ -93,6 +100,7 @@ function DexterButton(props) {
93
100
  loadingLabel = "Connecting\u2026",
94
101
  variant = "primary",
95
102
  block = false,
103
+ size = "md",
96
104
  withMark = true,
97
105
  onClick,
98
106
  disabled = false,
@@ -110,6 +118,7 @@ function DexterButton(props) {
110
118
  variant === "secondary" && "dx-btn--secondary",
111
119
  variant === "danger" && "dx-btn--danger",
112
120
  block && "dx-btn--block",
121
+ size === "sm" && "dx-btn--sm",
113
122
  className
114
123
  ),
115
124
  onClick,
package/dist/react.d.ts CHANGED
@@ -84,6 +84,8 @@ interface SignInWithDexterProps extends UseSignInWithDexterConfig {
84
84
  variant?: 'primary' | 'secondary';
85
85
  /** Full-width button. */
86
86
  block?: boolean;
87
+ /** 'md' (default) or 'sm' — the mini header variant of the button. */
88
+ size?: 'md' | 'sm';
87
89
  /** Extra className composed after the brand classes. Prefer overriding the
88
90
  * `--dx-*` CSS variables for theming. */
89
91
  className?: string;
@@ -113,6 +115,10 @@ interface DexterButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>
113
115
  variant?: 'primary' | 'secondary' | 'danger';
114
116
  /** Full-width (fills its container). */
115
117
  block?: boolean;
118
+ /** 'md' (default) = the standard CTA. 'sm' = the mini header/chip-row
119
+ * variant: tighter padding, smaller type and mark. Same states, same
120
+ * theming — never hand-shrink the md button with a className. */
121
+ size?: 'md' | 'sm';
116
122
  /** Render the Dexter mark before the children. Default true. */
117
123
  withMark?: boolean;
118
124
  onClick?: () => void;
package/dist/react.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  DexterMark,
24
24
  cx,
25
25
  ensureDexterButtonStyles
26
- } from "./chunk-EVDIZIHH.js";
26
+ } from "./chunk-PW33ZOCP.js";
27
27
 
28
28
  // src/useSignInWithDexter.ts
29
29
  import { useCallback, useEffect, useMemo, useState } from "react";
@@ -183,6 +183,7 @@ function SignInWithDexter(props) {
183
183
  label = "Sign in with Dexter",
184
184
  variant = "primary",
185
185
  block = false,
186
+ size = "md",
186
187
  className,
187
188
  showConnectedChip = true,
188
189
  ...config
@@ -220,6 +221,7 @@ function SignInWithDexter(props) {
220
221
  loadingLabel: c.phase ? ceremonyPhaseLabel(c.phase) : "Connecting\u2026",
221
222
  variant,
222
223
  block,
224
+ size,
223
225
  className,
224
226
  onClick: handleClick,
225
227
  children: label
package/dist/worldid.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DexterButton,
3
3
  ensureDexterButtonStyles
4
- } from "./chunk-EVDIZIHH.js";
4
+ } from "./chunk-PW33ZOCP.js";
5
5
 
6
6
  // src/worldid.tsx
7
7
  import { useEffect, useState } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexterai/connect",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "Sign in with Dexter — passkey connector. Composes @dexterai/vault.",
5
5
  "type": "module",
6
6
  "exports": {