nucleus-core-ts 0.10.196 → 0.10.198

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.
package/dist/.build-ok CHANGED
@@ -1 +1 @@
1
- 0.10.196
1
+ 0.10.198
@@ -439,6 +439,7 @@ export function runMigrations(opts: any): Promise<{
439
439
  skipped: never[];
440
440
  alreadyApplied: never[];
441
441
  unknown: never[];
442
+ retired: never[];
442
443
  }>;
443
444
  export function rulesOf(document2: any): any;
444
445
  export function ruleFailure(rule: any, fields: any, context: any): {
@@ -24,6 +24,15 @@ import { InputMessage } from './InputMessage';
24
24
  }, theme), 'cursor-text', wrapperClassName),
25
25
  onMouseEnter: onMouseEnter,
26
26
  onMouseLeave: onMouseLeave,
27
+ onMouseDown: (event)=>{
28
+ // A press on the frame (its padding, the floating label, a unit) focuses the input at once. The frame is a label, which
29
+ // only focuses its input on click (mouse up): until then focus sits on the page and a fast first keystroke is lost. A
30
+ // press on the input itself or on a control inside the frame (the password toggle) keeps its own behaviour.
31
+ const target = event.target;
32
+ if (disabled || !(target instanceof Element) || target.closest('input, textarea, select, button, a, [role="button"]')) return;
33
+ event.preventDefault();
34
+ inputRef.current?.focus();
35
+ },
27
36
  children: [
28
37
  leadingIcon && /*#__PURE__*/ _jsx(InputAdornment, {
29
38
  side: "left",