@alfadocs/ui-kit-debug 0.6.1 → 0.7.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.
- package/dist/_chunks/{alert-B1sj8Ss0.js → alert-34A3K8y-.js} +79 -69
- package/dist/_chunks/alert-34A3K8y-.js.map +1 -0
- package/dist/_chunks/{audio-recorder-BdBbU-UK.js → audio-recorder-B60FLnUO.js} +2 -2
- package/dist/_chunks/{audio-recorder-BdBbU-UK.js.map → audio-recorder-B60FLnUO.js.map} +1 -1
- package/dist/_chunks/contact-card-DNyATxKv.js.map +1 -1
- package/dist/_chunks/{freemium-paywall-CrVefV0M.js → freemium-paywall-BA02zIOx.js} +2 -2
- package/dist/_chunks/{freemium-paywall-CrVefV0M.js.map → freemium-paywall-BA02zIOx.js.map} +1 -1
- package/dist/_chunks/{payment-form-B_BdHwjb.js → payment-form-BIk2K3i3.js} +2 -2
- package/dist/_chunks/{payment-form-B_BdHwjb.js.map → payment-form-BIk2K3i3.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-CZIfY08H.js → pdf-viewer-DuPrR5Ty.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CZIfY08H.js.map → pdf-viewer-DuPrR5Ty.js.map} +1 -1
- package/dist/_chunks/use-locale-C5rS3Xon.js +71 -0
- package/dist/_chunks/use-locale-C5rS3Xon.js.map +1 -0
- package/dist/_chunks/{warning-stack-VygGHSqC.js → warning-stack-CskQPAQ2.js} +2 -2
- package/dist/_chunks/{warning-stack-VygGHSqC.js.map → warning-stack-CskQPAQ2.js.map} +1 -1
- package/dist/_chunks/{workflow-map-Bi5liGzo.js → workflow-map-D6Vsc2nY.js} +2 -2
- package/dist/_chunks/{workflow-map-Bi5liGzo.js.map → workflow-map-D6Vsc2nY.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/contact-card/contact-card.d.ts.map +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/sheet/sheet.d.ts +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/theme-toggle/theme-toggle.d.ts +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -7
- package/dist/hooks/use-scroll-to-first-error.d.ts +64 -0
- package/dist/hooks/use-scroll-to-first-error.d.ts.map +1 -0
- package/dist/index.js +474 -473
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/alert-B1sj8Ss0.js.map +0 -1
- package/dist/_chunks/use-locale-BuXR_Zl9.js +0 -32
- package/dist/_chunks/use-locale-BuXR_Zl9.js.map +0 -1
package/dist/agent-catalog.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;8EAyDlB,CAAC;AA0CF,UAAU,eAAgB,SAAQ,cAAc,CAAC,kBAAkB,CAAC;IAClE,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC;CAC7D;AA2CD,MAAM,WAAW,UACf,SACE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAC5C,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAC;CACvC;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AA+GhC,eAAO,MAAM,KAAK;;;;CAIhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-card.d.ts","sourceRoot":"","sources":["../../../src/components/contact-card/contact-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf;;;;;;;;GAQG;AACH,iBAAS,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAI7C;AAMD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"contact-card.d.ts","sourceRoot":"","sources":["../../../src/components/contact-card/contact-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf;;;;;;;;GAQG;AACH,iBAAS,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAI7C;AAMD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC5C,cAAc,CAAC,WAAW,CAAC,EAC3B,OAAO,CACR;IACC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC9C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAoCD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAClD,cAAc,CAAC,WAAW,CAAC,EAC3B,UAAU,CACX;IACC;;;;;OAKG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACjD;AAkED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;AA0BrE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AA0BD,eAAO,MAAM,WAAW;;;;CAItB,CAAC;AAEH,OAAO,EAAE,YAAY,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { usePrefersReducedMotion, useMediaQuery, useLocale, useTheme, resolveTheme, themeClassList, THEME_CLASS, THEME_STORAGE_KEY, ACCESSIBILITY_STORAGE_KEY, } from '../hooks';
|
|
2
|
-
export type { LocaleDir, UseLocaleReturn, ThemePreference, AccessibilityPreference, ResolvedTheme, UseThemeReturn, } from '../hooks';
|
|
1
|
+
export { usePrefersReducedMotion, useMediaQuery, useScrollToFirstError, useLocale, useTheme, resolveTheme, themeClassList, THEME_CLASS, THEME_STORAGE_KEY, ACCESSIBILITY_STORAGE_KEY, } from '../hooks';
|
|
2
|
+
export type { LocaleDir, UseLocaleReturn, UseScrollToFirstErrorOptions, ThemePreference, AccessibilityPreference, ResolvedTheme, UseThemeReturn, } from '../hooks';
|
|
3
3
|
export * from './button';
|
|
4
4
|
export * from './button-group';
|
|
5
5
|
export * from './floating-action-button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,uBAAuB,EACvB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,SAAS,EACT,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,cAAc,GACf,MAAM,UAAU,CAAC;AAGlB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAO/C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAM1E,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAA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
|
|
11
11
|
vibe?: "ghost" | "terminal" | "clean" | "hologram" | "synthwave" | "oscilloscope" | null | undefined;
|
|
12
|
-
mask?: "
|
|
12
|
+
mask?: "center" | "none" | null | undefined;
|
|
13
13
|
maskRadius?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
type Tone = 'primary' | 'accent' | 'success' | 'error' | 'info';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-
|
|
1
|
+
import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-BIk2K3i3.js";
|
|
2
2
|
export {
|
|
3
3
|
r as PaymentForm,
|
|
4
4
|
s as formatPaymentAmount,
|
|
@@ -2,7 +2,7 @@ import { type ComponentPropsWithoutRef, type HTMLAttributes, type ReactNode } fr
|
|
|
2
2
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
4
|
declare const contentVariants: (props?: ({
|
|
5
|
-
side?: "
|
|
5
|
+
side?: "end" | "start" | "top" | "bottom" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface SheetHandle {
|
|
8
8
|
getIsOpen: () => boolean;
|
|
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
declare const statVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "compact" | "outlined" | "elevated" | null | undefined;
|
|
5
5
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
-
align?: "
|
|
6
|
+
align?: "center" | "end" | "start" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface StatProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof statVariants> {
|
|
9
9
|
/** Metric label rendered above the value. */
|
|
@@ -2,7 +2,7 @@ import { type HTMLAttributes } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { type AccessibilityPreference, type ThemePreference } from '../../hooks';
|
|
4
4
|
declare const wrapperVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "menu" | "split" | "compact" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type ThemeToggleVariant = 'menu' | 'compact' | 'split';
|
|
8
8
|
interface ThemeToggleBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof wrapperVariants> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-
|
|
1
|
+
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-D6Vsc2nY.js";
|
|
2
2
|
export {
|
|
3
3
|
r as CORE_PATIENT_FIELDS,
|
|
4
4
|
e as WorkflowCard,
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { usePrefersReducedMotion } from './use-prefers-reduced-motion';
|
|
2
2
|
export { useMediaQuery } from './use-media-query';
|
|
3
|
+
export { useScrollToFirstError } from './use-scroll-to-first-error';
|
|
4
|
+
export type { UseScrollToFirstErrorOptions } from './use-scroll-to-first-error';
|
|
3
5
|
export { useLocale } from './use-locale';
|
|
4
6
|
export type { LocaleDir, UseLocaleReturn } from './use-locale';
|
|
5
7
|
export { useTheme, resolveTheme, themeClassList, THEME_STORAGE_KEY, ACCESSIBILITY_STORAGE_KEY, THEME_CLASS, } from './use-theme';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,SAAS,EACT,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,cAAc,GACf,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,GACZ,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,SAAS,EACT,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,cAAc,GACf,MAAM,aAAa,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { u as o, a as u } from "../_chunks/use-locale-
|
|
3
|
-
import { A as
|
|
1
|
+
import { u as r } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
|
|
2
|
+
import { u as o, a as u, b as E } from "../_chunks/use-locale-C5rS3Xon.js";
|
|
3
|
+
import { A as t, T as S, a as m, r as l, t as A, u as _ } from "../_chunks/use-theme-B1cwAXJR.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
t as ACCESSIBILITY_STORAGE_KEY,
|
|
6
|
+
S as THEME_CLASS,
|
|
7
7
|
m as THEME_STORAGE_KEY,
|
|
8
|
-
|
|
8
|
+
l as resolveTheme,
|
|
9
9
|
A as themeClassList,
|
|
10
10
|
o as useLocale,
|
|
11
11
|
u as useMediaQuery,
|
|
12
|
-
|
|
12
|
+
r as usePrefersReducedMotion,
|
|
13
|
+
E as useScrollToFirstError,
|
|
13
14
|
_ as useTheme
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
export interface UseScrollToFirstErrorOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Limits the DOM query to this element. Useful when the page renders
|
|
5
|
+
* more than one form, or when an unrelated component happens to share
|
|
6
|
+
* a field name. Defaults to `document`.
|
|
7
|
+
*/
|
|
8
|
+
scope?: RefObject<HTMLElement | null>;
|
|
9
|
+
/**
|
|
10
|
+
* Forwarded to `scrollIntoView`. Defaults to
|
|
11
|
+
* `{ behavior: 'smooth', block: 'center' }`. Pass
|
|
12
|
+
* `{ behavior: 'auto' }` (or omit `behavior`) on consumers that
|
|
13
|
+
* respect `prefers-reduced-motion` upstream — the kit doesn't shadow
|
|
14
|
+
* the user's motion preference inside the hook, since some consumers
|
|
15
|
+
* deliberately keep a near-instant snap for power-user form flows.
|
|
16
|
+
*/
|
|
17
|
+
scrollOptions?: ScrollIntoViewOptions;
|
|
18
|
+
/**
|
|
19
|
+
* Move keyboard focus to the errored field after scrolling. Default
|
|
20
|
+
* `true`. The focus call uses `preventScroll: true` so the smooth
|
|
21
|
+
* scroll the hook just did isn't replaced by a snap.
|
|
22
|
+
*
|
|
23
|
+
* Setting this `false` defeats the keyboard-user side of WCAG 3.3.1
|
|
24
|
+
* — the viewport will scroll but the active element stays on the
|
|
25
|
+
* submit button, forcing a Shift+Tab back into the form. Only flip
|
|
26
|
+
* this off when an upstream concern (e.g. a custom error summary
|
|
27
|
+
* panel that owns its own focus) is taking responsibility.
|
|
28
|
+
*/
|
|
29
|
+
focus?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* On the very first render, do nothing even if `errors` already has
|
|
32
|
+
* entries. Default `true`. Without this the hook would yank the
|
|
33
|
+
* viewport whenever a form is hydrated with server-rendered errors
|
|
34
|
+
* from a no-JS fallback path — bad UX, since the user landed on the
|
|
35
|
+
* page and hasn't asked for any movement yet. Set `false` only when
|
|
36
|
+
* the consumer explicitly wants the initial-mount scroll (rare).
|
|
37
|
+
*/
|
|
38
|
+
skipInitialMount?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Scrolls the first errored field into view and (by default) focuses
|
|
42
|
+
* it, after `errors` changes. Backs the standard AlfaDocs rebrand
|
|
43
|
+
* validation-error UX: after a 422 with `{ errors: { field: message } }`
|
|
44
|
+
* is rendered inline, the user shouldn't be left staring at red labels
|
|
45
|
+
* they can't see. Implements WCAG 3.3.1 / 3.3.3.
|
|
46
|
+
*
|
|
47
|
+
* The hook is stateless and never mutates the DOM beyond the
|
|
48
|
+
* `scrollIntoView` + `focus` calls.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* const fieldOrder = ['firstName', 'email', 'fiscalCode'] as const;
|
|
52
|
+
* const [errors, setErrors] = useState<Record<string, string>>({});
|
|
53
|
+
* useScrollToFirstError(errors, fieldOrder);
|
|
54
|
+
*
|
|
55
|
+
* @example Radix-based field
|
|
56
|
+
* <Checkbox data-error-anchor="consent" name="consent" />
|
|
57
|
+
* // hook scrolls to the visible <button>, not Radix's hidden input.
|
|
58
|
+
*
|
|
59
|
+
* @example Scoped to one form
|
|
60
|
+
* const formRef = useRef<HTMLFormElement>(null);
|
|
61
|
+
* useScrollToFirstError(errors, fieldOrder, { scope: formRef });
|
|
62
|
+
*/
|
|
63
|
+
export declare function useScrollToFirstError(errors: Readonly<Record<string, string | undefined>>, fieldOrder: ReadonlyArray<string>, options?: UseScrollToFirstErrorOptions): void;
|
|
64
|
+
//# sourceMappingURL=use-scroll-to-first-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scroll-to-first-error.d.ts","sourceRoot":"","sources":["../../src/hooks/use-scroll-to-first-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM1D,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACtC;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAiED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EACpD,UAAU,EAAE,aAAa,CAAC,MAAM,CAAC,EACjC,OAAO,GAAE,4BAAiC,GACzC,IAAI,CAwEN"}
|