@alfadocs/ui-kit-debug 1.33.0 → 1.34.0
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/{appointment-card-D-oj_ugh.js → appointment-card-D6mk39NB.js} +3 -3
- package/dist/_chunks/{appointment-card-D-oj_ugh.js.map → appointment-card-D6mk39NB.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-CymGHyIP.js → appointment-timeline-D-V97Bhc.js} +2 -2
- package/dist/_chunks/{appointment-timeline-CymGHyIP.js.map → appointment-timeline-D-V97Bhc.js.map} +1 -1
- package/dist/_chunks/{appointment-tray-DCk8gHod.js → appointment-tray-6rg071CL.js} +2 -2
- package/dist/_chunks/{appointment-tray-DCk8gHod.js.map → appointment-tray-6rg071CL.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-BX-zDyVR.js → calendar-workspace-4NH1Z47_.js} +7 -7
- package/dist/_chunks/{calendar-workspace-BX-zDyVR.js.map → calendar-workspace-4NH1Z47_.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-D2WTV2CO.js → clinical-note-card-CTRzmqvv.js} +83 -81
- package/dist/_chunks/clinical-note-card-CTRzmqvv.js.map +1 -0
- package/dist/_chunks/{contact-profile-card-BZqi8Hck.js → contact-profile-card-DSI9uumA.js} +17 -16
- package/dist/_chunks/{contact-profile-card-BZqi8Hck.js.map → contact-profile-card-DSI9uumA.js.map} +1 -1
- package/dist/_chunks/{control-room-rail-iO_BCaq1.js → control-room-rail-5MbhjsxN.js} +2 -2
- package/dist/_chunks/{control-room-rail-iO_BCaq1.js.map → control-room-rail-5MbhjsxN.js.map} +1 -1
- package/dist/_chunks/format-price-BkMEbeW3.js +47 -0
- package/dist/_chunks/format-price-BkMEbeW3.js.map +1 -0
- package/dist/_chunks/{format-price-DNqXPa_q.js → languages-CZqBaPwI.js} +8 -38
- package/dist/_chunks/languages-CZqBaPwI.js.map +1 -0
- package/dist/_chunks/money.agent-Dw55UxUA.js +116 -0
- package/dist/_chunks/money.agent-Dw55UxUA.js.map +1 -0
- package/dist/_chunks/notes-panel-BjLt-kiP.js +469 -0
- package/dist/_chunks/notes-panel-BjLt-kiP.js.map +1 -0
- package/dist/_chunks/{practice-results-DjEzPgAK.js → practice-results-kayDEorM.js} +15 -14
- package/dist/_chunks/{practice-results-DjEzPgAK.js.map → practice-results-kayDEorM.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CQ7yZdG3.js → rich-text-editor-CCI-Y3DN.js} +3 -5
- package/dist/_chunks/rich-text-editor-CCI-Y3DN.js.map +1 -0
- package/dist/_chunks/{task-card-BUgK6yZT.js → task-card-BalrLkSz.js} +41 -40
- package/dist/_chunks/task-card-BalrLkSz.js.map +1 -0
- package/dist/_chunks/{task-tray-CYG6rj2s.js → task-tray-COo-RlDv.js} +2 -2
- package/dist/_chunks/{task-tray-CYG6rj2s.js.map → task-tray-COo-RlDv.js.map} +1 -1
- package/dist/_chunks/tasks-panel-DLKpSNoE.js +844 -0
- package/dist/_chunks/tasks-panel-DLKpSNoE.js.map +1 -0
- package/dist/_chunks/tool-rail-ONaV-Nzz.js +588 -0
- package/dist/_chunks/tool-rail-ONaV-Nzz.js.map +1 -0
- package/dist/_chunks/use-check-animation--I3cS00X.js +28 -0
- package/dist/_chunks/use-check-animation--I3cS00X.js.map +1 -0
- package/dist/_chunks/use-list-reflow-Cw43nxw5.js +100 -0
- package/dist/_chunks/use-list-reflow-Cw43nxw5.js.map +1 -0
- package/dist/agent-catalog.json +15 -1
- package/dist/components/_shared/format-price.d.ts +15 -0
- package/dist/components/_shared/format-price.d.ts.map +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts.map +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +8 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts.map +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -7
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/money/index.d.ts +4 -0
- package/dist/components/money/index.d.ts.map +1 -0
- package/dist/components/money/index.js +6 -0
- package/dist/components/money/index.js.map +1 -0
- package/dist/components/money/money.agent.d.ts +3 -0
- package/dist/components/money/money.agent.d.ts.map +1 -0
- package/dist/components/money/money.d.ts +38 -0
- package/dist/components/money/money.d.ts.map +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +16 -1
- package/dist/components/notes-panel/notes-panel.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +11 -3
- package/dist/components/task-card/task-card.d.ts.map +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tasks-panel/tasks-panel.d.ts +1 -1
- package/dist/components/tasks-panel/tasks-panel.d.ts.map +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +43 -37
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-check-animation.d.ts +53 -0
- package/dist/hooks/use-check-animation.d.ts.map +1 -0
- package/dist/hooks/use-exit-transition.d.ts +48 -0
- package/dist/hooks/use-exit-transition.d.ts.map +1 -0
- package/dist/hooks/use-list-reflow.d.ts +47 -0
- package/dist/hooks/use-list-reflow.d.ts.map +1 -0
- package/dist/host-compat.css +8 -2
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +6 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +6 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +6 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +6 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +6 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +6 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +6 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +6 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +6 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +6 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +6 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +6 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +6 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +6 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +6 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +6 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +6 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +6 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +919 -916
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +6 -1
- package/dist/locales/de.json +6 -1
- package/dist/locales/el.json +6 -1
- package/dist/locales/en.json +6 -1
- package/dist/locales/es.json +6 -1
- package/dist/locales/fr.json +6 -1
- package/dist/locales/hi.json +6 -1
- package/dist/locales/it.json +6 -1
- package/dist/locales/ja.json +6 -1
- package/dist/locales/nl.json +6 -1
- package/dist/locales/pl.json +6 -1
- package/dist/locales/pt.json +6 -1
- package/dist/locales/ro.json +6 -1
- package/dist/locales/ru.json +6 -1
- package/dist/locales/sq.json +6 -1
- package/dist/locales/sv.json +6 -1
- package/dist/locales/tr.json +6 -1
- package/dist/locales/zh.json +6 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +2 -1
- package/package.json +5 -1
- package/dist/_chunks/clinical-note-card-D2WTV2CO.js.map +0 -1
- package/dist/_chunks/format-price-DNqXPa_q.js.map +0 -1
- package/dist/_chunks/notes-panel-C4G-mhZ9.js +0 -380
- package/dist/_chunks/notes-panel-C4G-mhZ9.js.map +0 -1
- package/dist/_chunks/rich-text-editor-CQ7yZdG3.js.map +0 -1
- package/dist/_chunks/task-card-BUgK6yZT.js.map +0 -1
- package/dist/_chunks/tasks-panel-DQuaVvl5.js +0 -757
- package/dist/_chunks/tasks-panel-DQuaVvl5.js.map +0 -1
- package/dist/_chunks/tool-rail-8Scslq3X.js +0 -524
- package/dist/_chunks/tool-rail-8Scslq3X.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"money.agent.d.ts","sourceRoot":"","sources":["../../../src/components/money/money.agent.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,UAAU,EAAE,YAYxB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const moneyVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5
|
+
tone?: "default" | "muted" | "positive" | "negative" | null | undefined;
|
|
6
|
+
strikethrough?: boolean | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export type MoneyDecimals = 'full' | 'muted' | 'hideWhenZero';
|
|
9
|
+
export interface MoneyProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'>, Omit<VariantProps<typeof moneyVariants>, 'tone'> {
|
|
10
|
+
/**
|
|
11
|
+
* Amount in the SMALLEST currency unit (cents), the kit's price
|
|
12
|
+
* convention — never a pre-formatted string. Zero-decimal currencies
|
|
13
|
+
* (JPY, KRW …) take the major amount, as `formatPrice` expects.
|
|
14
|
+
*/
|
|
15
|
+
value: number;
|
|
16
|
+
/** ISO-4217 code. Defaults to EUR, the practice currency. */
|
|
17
|
+
currency?: string;
|
|
18
|
+
/** BCP 47 locale. Defaults to the active i18n language. */
|
|
19
|
+
locale?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Colour. `auto` follows the sign — a negative amount reads destructive,
|
|
22
|
+
* everything else inherits the default. Explicit tones always win.
|
|
23
|
+
*/
|
|
24
|
+
tone?: 'default' | 'muted' | 'positive' | 'negative' | 'auto';
|
|
25
|
+
/**
|
|
26
|
+
* What to do with the fraction:
|
|
27
|
+
* `full` (default) leaves it alone;
|
|
28
|
+
* `muted` de-emphasises it so the whole units read first;
|
|
29
|
+
* `hideWhenZero` drops it ONLY when it is all zeros, so a price is
|
|
30
|
+
* never rounded away in the display.
|
|
31
|
+
*/
|
|
32
|
+
decimals?: MoneyDecimals;
|
|
33
|
+
/** Force a leading `+` on positive amounts (a credit, a movement). */
|
|
34
|
+
signDisplay?: 'auto' | 'always';
|
|
35
|
+
}
|
|
36
|
+
export declare const Money: import("react").ForwardRefExoticComponent<MoneyProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=money.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../../src/components/money/money.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAUlE,QAAA,MAAM,aAAa;;;;8EA2BlB,CAAC;AAMF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,CAAC;AAE9D,MAAM,WAAW,UACf,SACE,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,EACjD,IAAI,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,EAAE,MAAM,CAAC;IAClD;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IAC9D;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CACjC;AAMD,eAAO,MAAM,KAAK,wGAyGjB,CAAC"}
|
|
@@ -142,11 +142,26 @@ export interface NotesPanelProps extends Omit<HTMLAttributes<HTMLElement>, 'titl
|
|
|
142
142
|
/** Toggle a note's flagged state — renders an inline flag button per note. */
|
|
143
143
|
onToggleFlag?: (id: string) => void;
|
|
144
144
|
/**
|
|
145
|
-
* Host-owned actions
|
|
145
|
+
* Host-owned actions for each note (edit, delete, share…), rendered by
|
|
146
|
+
* the note card beside its pin and flag,
|
|
146
147
|
* aligned to the inline end. The host supplies labelled controls and owns
|
|
147
148
|
* what they do — the panel stays a timeline and never edits a note itself.
|
|
148
149
|
*/
|
|
149
150
|
noteActions?: (note: NotesPanelNote) => ReactNode;
|
|
151
|
+
/**
|
|
152
|
+
* Request the host to delete a note. When provided, the panel holds the
|
|
153
|
+
* row on screen long enough to fade it out before calling this, so the
|
|
154
|
+
* removal reads as a removal rather than a vanish. Omit to let the host
|
|
155
|
+
* own the timing entirely (the reflow animation still closes the gap).
|
|
156
|
+
*/
|
|
157
|
+
onDeleteNote?: (id: string) => void;
|
|
158
|
+
/**
|
|
159
|
+
* Show a confirmation dialog before calling `onDeleteNote`. When `true`
|
|
160
|
+
* (the default when `onDeleteNote` is provided), the built-in delete
|
|
161
|
+
* button opens an alert dialog first; the exit fade only starts after
|
|
162
|
+
* the user confirms. Pass `false` to delete immediately on click.
|
|
163
|
+
*/
|
|
164
|
+
confirmDelete?: boolean;
|
|
150
165
|
/** Panel heading. Defaults to the localised "Notes". */
|
|
151
166
|
title?: string;
|
|
152
167
|
/** Composer placeholder. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notes-panel.d.ts","sourceRoot":"","sources":["../../../src/components/notes-panel/notes-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAEV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"notes-panel.d.ts","sourceRoot":"","sources":["../../../src/components/notes-panel/notes-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EAEV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AA2B7B;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,qBAAqB,EACnB,IAAI,GACJ,SAAS,GACT,cAAc,GACd,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,SAAS,GACT,eAAe,GACf,QAAQ,GACR,SAAS,GACT,YA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AA4E;IAC5E,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,8EAA8E;IAC9E,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,SAAS,CAAC;IAClD;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAuCD,eAAO,MAAM,UAAU,yGA8btB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-me-write-overlay.d.ts","sourceRoot":"","sources":["../../../src/components/rich-text-editor/help-me-write-overlay.tsx"],"names":[],"mappings":"AAeA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,EAAE,CAAC,GAAG,EAAE;QACtB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,WAAW,CAAC;KACrB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kEAAkE;IAClE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE;QAChB,MAAM,EAAE,WAAW,CAAC;QACpB,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;QAC5C,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;KAC3C,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB;AAyCD,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,aAAoB,EACpB,aAAa,EACb,SAAS,GACV,EAAE,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"help-me-write-overlay.d.ts","sourceRoot":"","sources":["../../../src/components/rich-text-editor/help-me-write-overlay.tsx"],"names":[],"mappings":"AAeA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,EAAE,CAAC,GAAG,EAAE;QACtB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,WAAW,CAAC;KACrB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kEAAkE;IAClE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE;QAChB,MAAM,EAAE,WAAW,CAAC;QACpB,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;QAC5C,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;KAC3C,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB;AAyCD,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,aAAoB,EACpB,aAAa,EACb,SAAS,GACV,EAAE,uBAAuB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+P7C"}
|
|
@@ -23,7 +23,7 @@ export interface RichTextEditorProps {
|
|
|
23
23
|
/** Accessible name for the editing region. */
|
|
24
24
|
ariaLabel?: string;
|
|
25
25
|
/** Size variant for the minimum block-size of the editing region. */
|
|
26
|
-
minHeight?: 'sm' | 'md' | 'lg';
|
|
26
|
+
minHeight?: 'sm' | 'md' | 'lg' | 'fill';
|
|
27
27
|
/** Show a right-aligned editor-extensions affordance (visual placeholder). */
|
|
28
28
|
showExtensions?: boolean;
|
|
29
29
|
/** Extra class names on the wrapper. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text-editor.d.ts","sourceRoot":"","sources":["../../../src/components/rich-text-editor/rich-text-editor.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,OAAO,gDAAgD,CAAC;AAmFxD,MAAM,MAAM,eAAe,GAAG,CAC5B,QAAQ,EAAE,MAAM,GAAG,WAAW,EAC9B,OAAO,CAAC,EAAE,OAAO,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC;AAgBb,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAClC,kFAAkF;IAClF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EA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AAE,WAAW,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9E,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,WAAW,CAAC;KACrB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACvB;AAED,oEAAoE;AACpE,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,QAAQ,GACR,eAAe,GACf,cAAc,GACd,cAAc,GACd,SAAS,GACT,OAAO,GACP,WAAW,CAAC;AAchB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,wDAAwD;IACxD,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,wEAAwE;IACxE,WAAW,EAAE,MAAM,MAAM,CAAC;IAC1B,4DAA4D;IAC5D,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;;OAKG;IACH,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IACvE,sEAAsE;IACtE,WAAW,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAmBD,QAAA,MAAM,eAAe,oFAEpB,CAAC;AA6CF,eAAO,MAAM,cAAc,sHAmwC1B,CAAC;AAIF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -46,11 +46,19 @@ export interface TaskCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onC
|
|
|
46
46
|
/** Fires when the row is activated (click / Enter / Space). */
|
|
47
47
|
onActivate?: (item: TaskItem) => void;
|
|
48
48
|
/**
|
|
49
|
-
* Trailing per-row action toolbar (icon buttons:
|
|
50
|
-
*
|
|
51
|
-
*
|
|
49
|
+
* Trailing per-row action toolbar (icon buttons: schedule, edit, …).
|
|
50
|
+
* Rendered above the stretched-link overlay so the controls stay
|
|
51
|
+
* clickable inside an interactive row.
|
|
52
52
|
*/
|
|
53
53
|
actions?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Replaces the leading status glyph. Pass a control (the done checkbox)
|
|
56
|
+
* when the row can be completed in place: the glyph alone only reports
|
|
57
|
+
* status, and rendering both a glyph and a matching toggle elsewhere in
|
|
58
|
+
* the row shows the same mark twice, of which only one does anything.
|
|
59
|
+
* Rendered above the stretched-link overlay so it stays clickable.
|
|
60
|
+
*/
|
|
61
|
+
leading?: ReactNode;
|
|
54
62
|
}
|
|
55
63
|
declare const taskCardVariants: (props?: ({
|
|
56
64
|
size?: "sm" | "md" | "xs" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-card.d.ts","sourceRoot":"","sources":["../../../src/components/task-card/task-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAiBlE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,aAAa,GAAG,MAAM,CAAC;AACzD,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAErD,6GAA6G;AAC7G,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAS9D,MAAM,WAAW,QAAQ;IACvB,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACr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|
|
70
70
|
/** Panel heading. Defaults to the localised "Tasks". */
|
|
71
71
|
title?: string;
|
|
72
|
-
/** Visual density forwarded to each TaskCard. Defaults to `
|
|
72
|
+
/** Visual density forwarded to each TaskCard. Defaults to `sm`, matching the note and appointment rows. */
|
|
73
73
|
size?: 'xs' | 'sm' | 'md';
|
|
74
74
|
/** Fires when a row is activated. */
|
|
75
75
|
onOpenTask?: (item: TasksPanelItem) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks-panel.d.ts","sourceRoot":"","sources":["../../../src/components/tasks-panel/tasks-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"tasks-panel.d.ts","sourceRoot":"","sources":["../../../src/components/tasks-panel/tasks-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAqBlE,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAqCvD,0EAA0E;AAC1E,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,MAAM,CAAC;AAEjD,iFAAiF;AACjF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;IACf,mIAAmI;IACnI,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,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],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-rail.d.ts","sourceRoot":"","sources":["../../../src/components/tool-rail/tool-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAYlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuCtD,MAAM,WAAW,YAAY;IAC3B;0CACsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX;6DACyD;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,IAAI,EAAE,SAAS,CAAC;IAChB;2EACuE;IACvE,KAAK,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;IAChC;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,sEAAsE;IACtE,eAAe,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACrC,oEAAoE;IACpE,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,+CAA+C;IAC/C,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3B,+CAA+C;IAC/C,KAAK,EAAE,MAAM,IAA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C;IACf;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAcD,eAAO,MAAM,QAAQ,0GAspBpB,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -24,4 +24,7 @@ export { useEdgeResize, type UseEdgeResizeOptions, type UseEdgeResizeReturn, typ
|
|
|
24
24
|
export { useSigningSession, type SigningField, type SigningFieldBase, type UseSigningSessionReturn, } from './use-signing-session';
|
|
25
25
|
export { useZoomDrilldown, ZOOM_DRILLDOWN_TRANSITION_CLASS, type UseZoomDrilldownOptions, type UseZoomDrilldownReturn, } from './use-zoom-drilldown';
|
|
26
26
|
export { useCountdown, type UseCountdownOptions, type UseCountdownReturn, } from './use-countdown';
|
|
27
|
+
export { useCheckAnimation, type UseCheckAnimationOptions, type UseCheckAnimationReturn, } from './use-check-animation';
|
|
28
|
+
export { useExitTransition, type UseExitTransitionOptions, type UseExitTransitionReturn, } from './use-exit-transition';
|
|
29
|
+
export { useListReflow, REFLOW_ROW_CLASS, type UseListReflowOptions, type UseListReflowReturn, } from './use-list-reflow';
|
|
27
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gB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,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { u as
|
|
3
|
-
import { Z as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { A as M, T as V, a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
1
|
+
import { u as y } from "../_chunks/use-prefers-reduced-motion-BMwIQRjB.js";
|
|
2
|
+
import { u as v } from "../_chunks/use-media-query-CcAx5SMM.js";
|
|
3
|
+
import { Z as R, u as _, a as w, b as F } from "../_chunks/use-zoom-drilldown-qCX34w9I.js";
|
|
4
|
+
import { u as g } from "../_chunks/use-count-up-BLLetaZ8.js";
|
|
5
|
+
import { u as P } from "../_chunks/use-locale-BkCIHujH.js";
|
|
6
|
+
import { A as M, T as V, a as W, r as H, t as N, u as Y } from "../_chunks/use-theme-CAuo6EYT.js";
|
|
7
|
+
import { u as q } from "../_chunks/use-controllable-state-BiY4xTzM.js";
|
|
8
|
+
import { u as G } from "../_chunks/use-copy-to-clipboard-Cyfc_dlv.js";
|
|
9
9
|
import { u as j } from "../_chunks/use-debounced-callback-BisrB-Fq.js";
|
|
10
|
-
import { useState as
|
|
10
|
+
import { useState as b, useRef as x, useEffect as E } from "react";
|
|
11
11
|
import { u as Q, a as J } from "../_chunks/use-direction-Dp8h70PP.js";
|
|
12
12
|
import { u as $ } from "../_chunks/use-persistent-state-nZwZAnE9.js";
|
|
13
13
|
import { u as te } from "../_chunks/use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
14
14
|
import { u as oe } from "../_chunks/use-overflow-collapse-BIOzKbni.js";
|
|
15
15
|
import { c as se, u as ne } from "../_chunks/use-priority-overflow-c9SjxZkZ.js";
|
|
16
16
|
import { u as ie } from "../_chunks/use-web-otp-D_utzp6S.js";
|
|
17
|
-
import { u as
|
|
17
|
+
import { u as fe } from "../_chunks/use-visual-viewport-pin-ChurOsHM.js";
|
|
18
18
|
import { u as me } from "../_chunks/use-edge-resize-ZnGG7gyO.js";
|
|
19
19
|
import { u as pe } from "../_chunks/use-countdown-Yd6ts0_a.js";
|
|
20
|
+
import { u as Ee } from "../_chunks/use-check-animation--I3cS00X.js";
|
|
21
|
+
import { R as Se, u as Te, a as Ce } from "../_chunks/use-list-reflow-Cw43nxw5.js";
|
|
20
22
|
function C(e, o) {
|
|
21
|
-
const [t, i] =
|
|
22
|
-
return
|
|
23
|
+
const [t, i] = b(e), u = x(null);
|
|
24
|
+
return E(() => {
|
|
23
25
|
if (o <= 0) {
|
|
24
26
|
u.current !== null && (clearTimeout(u.current), u.current = null), i(e);
|
|
25
27
|
return;
|
|
@@ -30,7 +32,7 @@ function C(e, o) {
|
|
|
30
32
|
return u.current = n, () => clearTimeout(n);
|
|
31
33
|
}, [e, o]), t;
|
|
32
34
|
}
|
|
33
|
-
const
|
|
35
|
+
const S = [
|
|
34
36
|
"a[href]",
|
|
35
37
|
"button:not([disabled])",
|
|
36
38
|
'input:not([disabled]):not([type="hidden"])',
|
|
@@ -43,7 +45,7 @@ const T = [
|
|
|
43
45
|
].join(",");
|
|
44
46
|
function p(e) {
|
|
45
47
|
return Array.from(
|
|
46
|
-
e.querySelectorAll(
|
|
48
|
+
e.querySelectorAll(S)
|
|
47
49
|
).filter((o) => {
|
|
48
50
|
if (o.hidden) return !1;
|
|
49
51
|
let t = o;
|
|
@@ -54,9 +56,9 @@ function p(e) {
|
|
|
54
56
|
return !0;
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
|
-
function
|
|
58
|
-
const { enabled: t = !0, autoFocus: i = !0, restoreFocus: u = !0 } = o, n =
|
|
59
|
-
|
|
59
|
+
function L(e, o = {}) {
|
|
60
|
+
const { enabled: t = !0, autoFocus: i = !0, restoreFocus: u = !0 } = o, n = x(null);
|
|
61
|
+
E(() => {
|
|
60
62
|
if (!t) return;
|
|
61
63
|
const a = e.current;
|
|
62
64
|
if (!a) return;
|
|
@@ -64,7 +66,7 @@ function y(e, o = {}) {
|
|
|
64
66
|
const s = p(a)[0] ?? (a.tabIndex >= -1 ? a : null);
|
|
65
67
|
s == null || s.focus();
|
|
66
68
|
}
|
|
67
|
-
function
|
|
69
|
+
function l(r) {
|
|
68
70
|
if (r.key !== "Tab") return;
|
|
69
71
|
const s = e.current;
|
|
70
72
|
if (!s) return;
|
|
@@ -73,11 +75,11 @@ function y(e, o = {}) {
|
|
|
73
75
|
r.preventDefault();
|
|
74
76
|
return;
|
|
75
77
|
}
|
|
76
|
-
const m = c[0], d = c[c.length - 1],
|
|
77
|
-
r.shiftKey ? (
|
|
78
|
+
const m = c[0], d = c[c.length - 1], f = document.activeElement;
|
|
79
|
+
r.shiftKey ? (f === m || !s.contains(f)) && (r.preventDefault(), d.focus()) : (f === d || !s.contains(f)) && (r.preventDefault(), m.focus());
|
|
78
80
|
}
|
|
79
|
-
return a.addEventListener("keydown",
|
|
80
|
-
if (a.removeEventListener("keydown",
|
|
81
|
+
return a.addEventListener("keydown", l), () => {
|
|
82
|
+
if (a.removeEventListener("keydown", l), u && n.current) {
|
|
81
83
|
const r = n.current;
|
|
82
84
|
requestAnimationFrame(() => {
|
|
83
85
|
r.isConnected && r.focus();
|
|
@@ -88,34 +90,38 @@ function y(e, o = {}) {
|
|
|
88
90
|
}
|
|
89
91
|
export {
|
|
90
92
|
M as ACCESSIBILITY_STORAGE_KEY,
|
|
93
|
+
Se as REFLOW_ROW_CLASS,
|
|
91
94
|
V as THEME_CLASS,
|
|
92
|
-
|
|
93
|
-
|
|
95
|
+
W as THEME_STORAGE_KEY,
|
|
96
|
+
R as ZOOM_DRILLDOWN_TRANSITION_CLASS,
|
|
94
97
|
se as computePriorityLayout,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
H as resolveTheme,
|
|
99
|
+
N as themeClassList,
|
|
100
|
+
Ee as useCheckAnimation,
|
|
101
|
+
q as useControllableState,
|
|
102
|
+
G as useCopyToClipboard,
|
|
103
|
+
g as useCountUp,
|
|
100
104
|
pe as useCountdown,
|
|
101
105
|
j as useDebouncedCallback,
|
|
102
106
|
C as useDebouncedValue,
|
|
103
107
|
Q as useDirection,
|
|
104
108
|
J as useDocumentDirection,
|
|
105
109
|
me as useEdgeResize,
|
|
106
|
-
|
|
110
|
+
Te as useExitTransition,
|
|
111
|
+
L as useFocusTrap,
|
|
107
112
|
te as useIsomorphicLayoutEffect,
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
Ce as useListReflow,
|
|
114
|
+
P as useLocale,
|
|
115
|
+
v as useMediaQuery,
|
|
110
116
|
oe as useOverflowCollapse,
|
|
111
117
|
$ as usePersistentState,
|
|
112
|
-
|
|
118
|
+
y as usePrefersReducedMotion,
|
|
113
119
|
ne as usePriorityOverflow,
|
|
114
120
|
_ as useScrollToFirstError,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
w as useSigningSession,
|
|
122
|
+
Y as useTheme,
|
|
123
|
+
fe as useVisualViewportPin,
|
|
118
124
|
ie as useWebOtp,
|
|
119
|
-
|
|
125
|
+
F as useZoomDrilldown
|
|
120
126
|
};
|
|
121
127
|
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/hooks/use-debounced-value.ts","../../src/hooks/use-focus-trap.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\n/**\n * Returns a value that lags `input` by `delayMs`. Each new `input`\n * resets the timer; the returned value updates once `input` has been\n * stable for `delayMs` ms.\n *\n * Companion to `useDebouncedCallback` — use this when you want the\n * debounced *value* (to drive a derived effect, query, or render),\n * and use the callback hook when you want the debounced *action*.\n *\n * @example\n * const [query, setQuery] = useState('');\n * const debouncedQuery = useDebouncedValue(query, 250);\n * useEffect(() => { void search(debouncedQuery); }, [debouncedQuery]);\n */\nexport function useDebouncedValue<T>(input: T, delayMs: number): T {\n const [value, setValue] = useState<T>(input);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(() => {\n if (delayMs <= 0) {\n // Flush any pending timer so a stale queued value can't land\n // after the synchronous update below.\n if (timerRef.current !== null) {\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }\n setValue(input);\n return;\n }\n const timer = setTimeout(() => {\n setValue(input);\n timerRef.current = null;\n }, delayMs);\n timerRef.current = timer;\n return () => clearTimeout(timer);\n }, [input, delayMs]);\n\n return value;\n}\n","import { useEffect, useRef, type RefObject } from 'react';\n\n/* -------------------------------------------------------------------- */\n/* Focus trap */\n/* */\n/* Lightweight focus-trap hook for components that compose a Radix */\n/* primitive without the overlay primitive (Dialog, AlertDialog, Sheet) */\n/* — those handle focus trapping for free via `@radix-ui/react-dialog`. */\n/* */\n/* This hook is intentionally NOT a Radix `<FocusScope>` re-export — it */\n/* is a hook so it composes inside `forwardRef` components without */\n/* nesting another wrapper element. If you need the full Radix */\n/* contract (return-focus management, loop, asChild), use */\n/* `@radix-ui/react-focus-scope` directly. */\n/* -------------------------------------------------------------------- */\n\nexport interface UseFocusTrapOptions {\n /** When `false` the trap is inert. Defaults to `true`. */\n enabled?: boolean;\n /**\n * When `true`, focus initial autofocus into the first focusable\n * descendant on mount / enable. @default true\n */\n autoFocus?: boolean;\n /**\n * When `true`, restores focus to the previously-focused element on\n * unmount / disable. @default true\n */\n restoreFocus?: boolean;\n}\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled]):not([type=\"hidden\"])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n '[contenteditable=\"true\"]',\n 'audio[controls]',\n 'video[controls]',\n].join(',');\n\nfunction getFocusable(container: HTMLElement): HTMLElement[] {\n return Array.from(\n container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR),\n ).filter((el) => {\n if (el.hidden) return false;\n // `inert` and `aria-hidden=\"true\"` block focus on the element AND\n // all its descendants — walk the chain to catch either ancestor.\n let node: HTMLElement | null = el;\n while (node) {\n if (node.hasAttribute('inert')) return false;\n if (node.getAttribute('aria-hidden') === 'true') return false;\n node = node.parentElement;\n }\n return true;\n });\n}\n\n/**\n * Constrain Tab navigation to descendants of `containerRef`. Wraps Tab\n * forward from the last focusable to the first, and Shift+Tab back from\n * the first to the last. Optionally autofocuses on enable and restores\n * focus on disable.\n *\n * Use this for inline modal patterns or focus zones that don't ship\n * with their own Radix overlay. Don't stack it inside Dialog / Sheet —\n * Radix already traps focus in those.\n *\n * @example\n * const ref = useRef<HTMLDivElement>(null);\n * useFocusTrap(ref, { enabled: open });\n * return <div ref={ref}>…</div>;\n */\nexport function useFocusTrap<T extends HTMLElement>(\n containerRef: RefObject<T | null>,\n options: UseFocusTrapOptions = {},\n): void {\n const { enabled = true, autoFocus = true, restoreFocus = true } = options;\n const previouslyFocused = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (!enabled) return;\n const container = containerRef.current;\n if (!container) return;\n\n previouslyFocused.current =\n typeof document !== 'undefined' &&\n document.activeElement instanceof HTMLElement\n ? document.activeElement\n : null;\n\n if (autoFocus) {\n const focusable = getFocusable(container);\n // Container itself is the fallback focus target — needs `tabIndex`\n // to receive focus, but `-1` is fine.\n const target =\n focusable[0] ?? (container.tabIndex >= -1 ? container : null);\n target?.focus();\n }\n\n function onKeyDown(event: KeyboardEvent) {\n if (event.key !== 'Tab') return;\n const root = containerRef.current;\n if (!root) return;\n const focusable = getFocusable(root);\n if (focusable.length === 0) {\n event.preventDefault();\n return;\n }\n const first = focusable[0];\n const last = focusable[focusable.length - 1];\n const active = document.activeElement;\n\n if (event.shiftKey) {\n if (active === first || !root.contains(active)) {\n event.preventDefault();\n last.focus();\n }\n } else {\n if (active === last || !root.contains(active)) {\n event.preventDefault();\n first.focus();\n }\n }\n }\n\n container.addEventListener('keydown', onKeyDown);\n\n return () => {\n container.removeEventListener('keydown', onKeyDown);\n if (restoreFocus && previouslyFocused.current) {\n // rAF lets parent unmounts settle before refocus — a microtask\n // fires too early and can throw on a detached node.\n const target = previouslyFocused.current;\n requestAnimationFrame(() => {\n if (target.isConnected) target.focus();\n });\n }\n };\n }, [enabled, autoFocus, restoreFocus, containerRef]);\n}\n"],"names":["useDebouncedValue","input","delayMs","value","setValue","useState","timerRef","useRef","useEffect","timer","FOCUSABLE_SELECTOR","getFocusable","container","el","node","useFocusTrap","containerRef","options","enabled","autoFocus","restoreFocus","previouslyFocused","target","onKeyDown","event","root","focusable","first","last","active"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/hooks/use-debounced-value.ts","../../src/hooks/use-focus-trap.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\n/**\n * Returns a value that lags `input` by `delayMs`. Each new `input`\n * resets the timer; the returned value updates once `input` has been\n * stable for `delayMs` ms.\n *\n * Companion to `useDebouncedCallback` — use this when you want the\n * debounced *value* (to drive a derived effect, query, or render),\n * and use the callback hook when you want the debounced *action*.\n *\n * @example\n * const [query, setQuery] = useState('');\n * const debouncedQuery = useDebouncedValue(query, 250);\n * useEffect(() => { void search(debouncedQuery); }, [debouncedQuery]);\n */\nexport function useDebouncedValue<T>(input: T, delayMs: number): T {\n const [value, setValue] = useState<T>(input);\n const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(() => {\n if (delayMs <= 0) {\n // Flush any pending timer so a stale queued value can't land\n // after the synchronous update below.\n if (timerRef.current !== null) {\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }\n setValue(input);\n return;\n }\n const timer = setTimeout(() => {\n setValue(input);\n timerRef.current = null;\n }, delayMs);\n timerRef.current = timer;\n return () => clearTimeout(timer);\n }, [input, delayMs]);\n\n return value;\n}\n","import { useEffect, useRef, type RefObject } from 'react';\n\n/* -------------------------------------------------------------------- */\n/* Focus trap */\n/* */\n/* Lightweight focus-trap hook for components that compose a Radix */\n/* primitive without the overlay primitive (Dialog, AlertDialog, Sheet) */\n/* — those handle focus trapping for free via `@radix-ui/react-dialog`. */\n/* */\n/* This hook is intentionally NOT a Radix `<FocusScope>` re-export — it */\n/* is a hook so it composes inside `forwardRef` components without */\n/* nesting another wrapper element. If you need the full Radix */\n/* contract (return-focus management, loop, asChild), use */\n/* `@radix-ui/react-focus-scope` directly. */\n/* -------------------------------------------------------------------- */\n\nexport interface UseFocusTrapOptions {\n /** When `false` the trap is inert. Defaults to `true`. */\n enabled?: boolean;\n /**\n * When `true`, focus initial autofocus into the first focusable\n * descendant on mount / enable. @default true\n */\n autoFocus?: boolean;\n /**\n * When `true`, restores focus to the previously-focused element on\n * unmount / disable. @default true\n */\n restoreFocus?: boolean;\n}\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled]):not([type=\"hidden\"])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n '[contenteditable=\"true\"]',\n 'audio[controls]',\n 'video[controls]',\n].join(',');\n\nfunction getFocusable(container: HTMLElement): HTMLElement[] {\n return Array.from(\n container.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR),\n ).filter((el) => {\n if (el.hidden) return false;\n // `inert` and `aria-hidden=\"true\"` block focus on the element AND\n // all its descendants — walk the chain to catch either ancestor.\n let node: HTMLElement | null = el;\n while (node) {\n if (node.hasAttribute('inert')) return false;\n if (node.getAttribute('aria-hidden') === 'true') return false;\n node = node.parentElement;\n }\n return true;\n });\n}\n\n/**\n * Constrain Tab navigation to descendants of `containerRef`. Wraps Tab\n * forward from the last focusable to the first, and Shift+Tab back from\n * the first to the last. Optionally autofocuses on enable and restores\n * focus on disable.\n *\n * Use this for inline modal patterns or focus zones that don't ship\n * with their own Radix overlay. Don't stack it inside Dialog / Sheet —\n * Radix already traps focus in those.\n *\n * @example\n * const ref = useRef<HTMLDivElement>(null);\n * useFocusTrap(ref, { enabled: open });\n * return <div ref={ref}>…</div>;\n */\nexport function useFocusTrap<T extends HTMLElement>(\n containerRef: RefObject<T | null>,\n options: UseFocusTrapOptions = {},\n): void {\n const { enabled = true, autoFocus = true, restoreFocus = true } = options;\n const previouslyFocused = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (!enabled) return;\n const container = containerRef.current;\n if (!container) return;\n\n previouslyFocused.current =\n typeof document !== 'undefined' &&\n document.activeElement instanceof HTMLElement\n ? document.activeElement\n : null;\n\n if (autoFocus) {\n const focusable = getFocusable(container);\n // Container itself is the fallback focus target — needs `tabIndex`\n // to receive focus, but `-1` is fine.\n const target =\n focusable[0] ?? (container.tabIndex >= -1 ? container : null);\n target?.focus();\n }\n\n function onKeyDown(event: KeyboardEvent) {\n if (event.key !== 'Tab') return;\n const root = containerRef.current;\n if (!root) return;\n const focusable = getFocusable(root);\n if (focusable.length === 0) {\n event.preventDefault();\n return;\n }\n const first = focusable[0];\n const last = focusable[focusable.length - 1];\n const active = document.activeElement;\n\n if (event.shiftKey) {\n if (active === first || !root.contains(active)) {\n event.preventDefault();\n last.focus();\n }\n } else {\n if (active === last || !root.contains(active)) {\n event.preventDefault();\n first.focus();\n }\n }\n }\n\n container.addEventListener('keydown', onKeyDown);\n\n return () => {\n container.removeEventListener('keydown', onKeyDown);\n if (restoreFocus && previouslyFocused.current) {\n // rAF lets parent unmounts settle before refocus — a microtask\n // fires too early and can throw on a detached node.\n const target = previouslyFocused.current;\n requestAnimationFrame(() => {\n if (target.isConnected) target.focus();\n });\n }\n };\n }, [enabled, autoFocus, restoreFocus, containerRef]);\n}\n"],"names":["useDebouncedValue","input","delayMs","value","setValue","useState","timerRef","useRef","useEffect","timer","FOCUSABLE_SELECTOR","getFocusable","container","el","node","useFocusTrap","containerRef","options","enabled","autoFocus","restoreFocus","previouslyFocused","target","onKeyDown","event","root","focusable","first","last","active"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAgBO,SAASA,EAAqBC,GAAUC,GAAoB;AACjE,QAAM,CAACC,GAAOC,CAAQ,IAAIC,EAAYJ,CAAK,GACrCK,IAAWC,EAA6C,IAAI;AAElE,SAAAC,EAAU,MAAM;AACd,QAAIN,KAAW,GAAG;AAGhB,MAAII,EAAS,YAAY,SACvB,aAAaA,EAAS,OAAO,GAC7BA,EAAS,UAAU,OAErBF,EAASH,CAAK;AACd;AAAA,IACF;AACA,UAAMQ,IAAQ,WAAW,MAAM;AAC7B,MAAAL,EAASH,CAAK,GACdK,EAAS,UAAU;AAAA,IACrB,GAAGJ,CAAO;AACV,WAAAI,EAAS,UAAUG,GACZ,MAAM,aAAaA,CAAK;AAAA,EACjC,GAAG,CAACR,GAAOC,CAAO,CAAC,GAEZC;AACT;ACTA,MAAMO,IAAqB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,GAAG;AAEV,SAASC,EAAaC,GAAuC;AAC3D,SAAO,MAAM;AAAA,IACXA,EAAU,iBAA8BF,CAAkB;AAAA,EAAA,EAC1D,OAAO,CAACG,MAAO;AACf,QAAIA,EAAG,OAAQ,QAAO;AAGtB,QAAIC,IAA2BD;AAC/B,WAAOC,KAAM;AAEX,UADIA,EAAK,aAAa,OAAO,KACzBA,EAAK,aAAa,aAAa,MAAM,OAAQ,QAAO;AACxD,MAAAA,IAAOA,EAAK;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AAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,GAAG,CAACJ,GAASC,GAAWC,GAAcJ,CAAY,CAAC;AACrD;"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface UseCheckAnimationOptions {
|
|
2
|
+
/**
|
|
3
|
+
* The committed state, as the host holds it. The hook shows an optimistic
|
|
4
|
+
* value while a toggle is in flight so the tick draws on the click rather
|
|
5
|
+
* than waiting for the host's re-render.
|
|
6
|
+
*/
|
|
7
|
+
checked: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* How long the tick takes to draw, in milliseconds. Keep it in step with
|
|
10
|
+
* the CSS transition the caller paints — `--duration-normal` (200ms) is
|
|
11
|
+
* the kit's default and the hook's too.
|
|
12
|
+
*/
|
|
13
|
+
durationMs?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Force the reduced-motion branch. Defaults to reading
|
|
16
|
+
* `prefers-reduced-motion: reduce`. Useful in tests and for callers that
|
|
17
|
+
* already track the preference upstream. When reduced, the tick lands
|
|
18
|
+
* immediately and `drawing` never turns true.
|
|
19
|
+
*/
|
|
20
|
+
reduceMotion?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface UseCheckAnimationReturn {
|
|
23
|
+
/** What to render: the optimistic value while a toggle is in flight. */
|
|
24
|
+
checked: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* True only while an unchecked → checked flip is drawing. Reflect it onto
|
|
27
|
+
* the element (e.g. `data-drawing`) to trigger the stroke animation;
|
|
28
|
+
* unticking is deliberately instant, since there is nothing to celebrate.
|
|
29
|
+
*/
|
|
30
|
+
drawing: boolean;
|
|
31
|
+
/** The effective duration — 0 under reduced motion. */
|
|
32
|
+
durationMs: number;
|
|
33
|
+
/**
|
|
34
|
+
* Flip the box. Returns the value it flipped to, so the caller can pass it
|
|
35
|
+
* straight to its own commit callback.
|
|
36
|
+
*/
|
|
37
|
+
toggle: () => boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Drives an animated tick for a checkbox whose state lives with the host.
|
|
41
|
+
*
|
|
42
|
+
* A checkbox backed by host state cannot animate on click: the tick would
|
|
43
|
+
* wait for the round trip, and when the row is about to leave the list the
|
|
44
|
+
* host may never send the new value back at all. This hook holds an
|
|
45
|
+
* optimistic value for the length of the animation so the tick draws
|
|
46
|
+
* immediately, then defers to the host once its value agrees.
|
|
47
|
+
*
|
|
48
|
+
* The hook owns the timing only. Paint the tick in CSS — a
|
|
49
|
+
* `stroke-dashoffset` transition keyed off `drawing` — so the animation
|
|
50
|
+
* honours the `--animation-duration` token in the accessible theme.
|
|
51
|
+
*/
|
|
52
|
+
export declare function useCheckAnimation({ checked, durationMs, reduceMotion, }: UseCheckAnimationOptions): UseCheckAnimationReturn;
|
|
53
|
+
//# sourceMappingURL=use-check-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-check-animation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-check-animation.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,EAAE,MAAM,OAAO,CAAC;CACvB;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,UAAgB,EAChB,YAAY,GACb,EAAE,wBAAwB,GAAG,uBAAuB,CAyCpD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface UseExitTransitionOptions {
|
|
2
|
+
/**
|
|
3
|
+
* How long the exit takes, in milliseconds. Keep it in step with the CSS
|
|
4
|
+
* transition the caller paints — `--duration-normal` (200ms) is the kit's
|
|
5
|
+
* default and the hook's too.
|
|
6
|
+
*/
|
|
7
|
+
durationMs?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Hold this long before the exit begins. The row is not reported as
|
|
10
|
+
* leaving until it elapses, so an animation already playing on the row (a
|
|
11
|
+
* tick drawing in) finishes before the fade starts rather than sharing it.
|
|
12
|
+
* Default 0.
|
|
13
|
+
*/
|
|
14
|
+
delayMs?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Force the reduced-motion branch. Defaults to reading
|
|
17
|
+
* `prefers-reduced-motion: reduce`. When reduced, `leave` commits
|
|
18
|
+
* synchronously and nothing is ever reported as leaving.
|
|
19
|
+
*/
|
|
20
|
+
reduceMotion?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface UseExitTransitionReturn {
|
|
23
|
+
/** Whether this id is mid-exit. Reflect it onto the row (e.g. `data-leaving`). */
|
|
24
|
+
isLeaving: (id: string) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Start `id` leaving, then run `commit` once the exit has played. Calling
|
|
27
|
+
* it twice for the same id is a no-op, so a double click cannot remove a
|
|
28
|
+
* row twice. Under reduced motion `commit` runs immediately.
|
|
29
|
+
*/
|
|
30
|
+
leave: (id: string, commit: () => void) => void;
|
|
31
|
+
/** The effective total delay + duration — 0 under reduced motion. */
|
|
32
|
+
durationMs: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Holds a row on screen long enough to fade out before the host removes it.
|
|
36
|
+
*
|
|
37
|
+
* A list that drops an item the instant it is actioned gives no sense of
|
|
38
|
+
* where the item went. This hook inverts the order: mark the row as leaving,
|
|
39
|
+
* let CSS fade it, and only then tell the host to drop it — so the removal
|
|
40
|
+
* the user sees and the state change agree.
|
|
41
|
+
*
|
|
42
|
+
* The hook owns the timing only. Paint the exit in CSS, keyed off
|
|
43
|
+
* `isLeaving`, so it honours the `--animation-duration` token in the
|
|
44
|
+
* accessible theme. Pending exits are cancelled on unmount, so a commit
|
|
45
|
+
* never fires against a list that has gone away.
|
|
46
|
+
*/
|
|
47
|
+
export declare function useExitTransition({ durationMs, delayMs, reduceMotion, }?: UseExitTransitionOptions): UseExitTransitionReturn;
|
|
48
|
+
//# sourceMappingURL=use-exit-transition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-exit-transition.d.ts","sourceRoot":"","sources":["../../src/hooks/use-exit-transition.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,kFAAkF;IAClF,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACnC;;;;OAIG;IACH,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAChD,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,UAAgB,EAChB,OAAW,EACX,YAAY,GACb,GAAE,wBAA6B,GAAG,uBAAuB,CAgEzD"}
|