burne-ui 1.7.9 → 1.8.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/components/composite/Accordion/accordionTypes.d.ts +2 -1
- package/dist/components/core/Button/buttonAnimations.d.ts +1 -0
- package/dist/components/core/Button/buttonStyles.d.ts +12 -6
- package/dist/components/core/Button/buttonTypes.d.ts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +5096 -5087
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/{themeRuntimeContext-BSRr0qLF.js → themeRuntimeContext-BYM_xa2F.js} +786 -764
- package/dist/{themeRuntimeContext-DV880giO.cjs → themeRuntimeContext-CnA3HVpr.cjs} +6 -6
- package/dist/ui.css +4 -6
- package/package.json +1 -1
|
@@ -52,7 +52,8 @@ export type AccordionBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
|
52
52
|
export type AccordionContextValue = {
|
|
53
53
|
value: string | null;
|
|
54
54
|
setValue: (value: string | null) => void;
|
|
55
|
-
|
|
55
|
+
/** Stable auto-id for an Item without explicit `value` (call once per Item mount). */
|
|
56
|
+
allocateAutoItemId: () => string;
|
|
56
57
|
size: ExpandableSize;
|
|
57
58
|
};
|
|
58
59
|
export type AccordionClassNamesProviderProps = {
|
|
@@ -16,4 +16,5 @@ export declare function useButtonAnimations({ variant, asyncState, isControlled,
|
|
|
16
16
|
handleKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
|
|
17
17
|
createAsyncClickHandler: (onClick: ((e: MouseEvent<HTMLButtonElement>) => void) | undefined, onAsyncClick: ((e: MouseEvent<HTMLButtonElement>) => Promise<boolean>) | undefined, isControlledArg: boolean, internalAsync: ButtonAsyncState, setUncontrolledAsync: (next: ButtonAsyncState) => void, scheduleAsyncIdleReset: () => void) => (e: MouseEvent<HTMLButtonElement>) => void;
|
|
18
18
|
asyncInFlight: import('react').RefObject<boolean>;
|
|
19
|
+
asyncMotionReady: boolean;
|
|
19
20
|
};
|
|
@@ -24,8 +24,12 @@ export declare const BUTTON_LABEL_LAYER_CLASS = "col-start-1 row-start-1 inline-
|
|
|
24
24
|
export declare const BUTTON_LEFT_ICON_SLOT_CLASS = "inline-flex shrink-0 items-center justify-center";
|
|
25
25
|
export declare const BUTTON_LABEL_TEXT_CLASS = "min-w-0 shrink";
|
|
26
26
|
export declare const BUTTON_ASYNC_GRID_LAYER_CLASS = "col-start-1 row-start-1 flex items-center justify-center";
|
|
27
|
-
/**
|
|
28
|
-
|
|
27
|
+
/**
|
|
28
|
+
* First paint / pre-motion: hide inactive async layers via Tailwind.
|
|
29
|
+
* After `asyncMotionReady`, GSAP owns visibility (inline autoAlpha) — do not keep this class
|
|
30
|
+
* on inactive layers or crossfade will snap.
|
|
31
|
+
*/
|
|
32
|
+
export declare const BUTTON_ASYNC_LAYER_INACTIVE_CLASS = "invisible opacity-0 pointer-events-none";
|
|
29
33
|
export declare const BUTTON_SUCCESS_LAYER_CLASS = "text-success";
|
|
30
34
|
export declare const BUTTON_ERROR_LAYER_CLASS = "text-danger";
|
|
31
35
|
export declare const BUTTON_SPINNER_MOTION_CLASS = "animate-spin motion-reduce:animate-none";
|
|
@@ -49,16 +53,18 @@ export declare function buttonContentClass({ groupSegment, slotClass, className,
|
|
|
49
53
|
slotClass?: string;
|
|
50
54
|
className?: string;
|
|
51
55
|
}): string;
|
|
52
|
-
export declare function buttonLabelClass({ slotClass, className, layoutClass, }: {
|
|
56
|
+
export declare function buttonLabelClass({ slotClass, className, layoutClass, cssHidden, }: {
|
|
53
57
|
slotClass?: string;
|
|
54
58
|
className?: string;
|
|
55
59
|
layoutClass?: string;
|
|
60
|
+
/** Pre-motion hide when label is not the active async layer. */
|
|
61
|
+
cssHidden?: boolean;
|
|
56
62
|
}): string;
|
|
57
63
|
export declare function buttonIconClass(size: ComponentSize, slotClass?: string): string;
|
|
58
64
|
export declare function buttonTextClass(slotClass?: string, className?: string): string;
|
|
59
|
-
export declare function buttonLoaderLayerClass(loaderTextClass: string, slotClass?: string): string;
|
|
60
|
-
export declare function buttonSuccessLayerClass(slotClass?: string): string;
|
|
61
|
-
export declare function buttonErrorLayerClass(slotClass?: string): string;
|
|
65
|
+
export declare function buttonLoaderLayerClass(loaderTextClass: string, slotClass?: string, cssHidden?: boolean): string;
|
|
66
|
+
export declare function buttonSuccessLayerClass(slotClass?: string, cssHidden?: boolean): string;
|
|
67
|
+
export declare function buttonErrorLayerClass(slotClass?: string, cssHidden?: boolean): string;
|
|
62
68
|
export declare function buttonIconSvgClass(): string;
|
|
63
69
|
export declare function buttonRippleTone(variant: ButtonVariant, status?: ButtonStatus): string;
|
|
64
70
|
/**
|
|
@@ -28,6 +28,11 @@ export type ButtonContextValue = {
|
|
|
28
28
|
variant: ButtonVariant;
|
|
29
29
|
status: ButtonStatus;
|
|
30
30
|
asyncState: ButtonAsyncState;
|
|
31
|
+
/**
|
|
32
|
+
* After first GSAP sync, motion owns layer visibility (inline autoAlpha).
|
|
33
|
+
* Before that, parts hide inactive layers via Tailwind for SSR / first paint.
|
|
34
|
+
*/
|
|
35
|
+
asyncMotionReady: boolean;
|
|
31
36
|
groupSegment: ButtonGroupSegment | undefined;
|
|
32
37
|
loaderTextClass: string;
|
|
33
38
|
bindLabelRef: (node: HTMLSpanElement | null) => void;
|