burne-ui 1.6.8 → 1.7.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/README.md +5 -2
- package/cli/init.js +2 -2
- package/dist/components/composite/AlertDialog/alertDialogAPI.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +1 -0
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +0 -1
- package/dist/components/composite/AlertDialog/index.d.ts +0 -1
- package/dist/components/core/Alert/alertStyles.d.ts +3 -1
- package/dist/components/core/Button/Button.d.ts +0 -1
- package/dist/components/core/Button/buttonAnimations.d.ts +3 -4
- package/dist/components/core/Button/buttonParts.d.ts +2 -2
- package/dist/components/core/Button/buttonStyles.d.ts +2 -1
- package/dist/components/core/Button/buttonTypes.d.ts +4 -5
- package/dist/components/core/Button/index.d.ts +0 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +1 -2
- package/dist/components/core/Calendar/calendarAnimations.d.ts +10 -11
- package/dist/components/core/Calendar/calendarStyles.d.ts +1 -1
- package/dist/components/core/Card/Card.d.ts +0 -1
- package/dist/components/core/Card/cardAnimations.d.ts +1 -1
- package/dist/components/core/Card/cardTypes.d.ts +0 -7
- package/dist/components/core/Card/index.d.ts +0 -1
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +5 -4
- package/dist/components/core/CloseButton/CloseButton.d.ts +0 -1
- package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +1 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +0 -2
- package/dist/components/core/CloseButton/useCloseButtonRootState.d.ts +1 -2
- package/dist/components/core/ComboBox/comboBoxStyles.d.ts +2 -2
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +0 -9
- package/dist/components/core/Dialog/dialogAnimations.d.ts +2 -2
- package/dist/components/core/Dialog/dialogParts.d.ts +0 -1
- package/dist/components/core/Dialog/index.d.ts +0 -1
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +1 -1
- package/dist/components/core/Drawer/drawerAnimations.d.ts +1 -2
- package/dist/components/core/Drawer/drawerParts.d.ts +0 -1
- package/dist/components/core/Drawer/index.d.ts +0 -1
- package/dist/components/core/Dropdown/dropdownItemParts.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +1 -1
- package/dist/components/core/Dropdown/index.d.ts +1 -1
- package/dist/components/core/Dropdown/useDropdownItemState.d.ts +6 -1
- package/dist/components/core/Expandable/expandableStyles.d.ts +2 -2
- package/dist/components/core/Input/inputStyles.d.ts +3 -11
- package/dist/components/core/ListBox/ListBox.d.ts +1 -1
- package/dist/components/core/ListBox/index.d.ts +3 -3
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +11 -1
- package/dist/components/core/ListBox/listBoxContext.d.ts +6 -0
- package/dist/components/core/ListBox/listBoxParts.d.ts +1 -1
- package/dist/components/core/ListBox/listBoxStyles.d.ts +2 -3
- package/dist/components/core/ListBox/listBoxTypes.d.ts +0 -1
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +0 -1
- package/dist/components/core/ListBox/useListBoxRootState.d.ts +1 -0
- package/dist/components/core/Pagination/paginationAnimations.d.ts +16 -4
- package/dist/components/core/Pagination/paginationStyles.d.ts +1 -1
- package/dist/components/core/Popover/popoverStyles.d.ts +1 -1
- package/dist/components/core/ProgressBar/progressBarAPI.d.ts +0 -2
- package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +1 -1
- package/dist/components/core/ProgressBar/progressBarStyles.d.ts +1 -5
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +3 -2
- package/dist/components/core/ProgressBar/useProgressBarTrackState.d.ts +1 -1
- package/dist/components/core/Radio/radioStyles.d.ts +5 -4
- package/dist/components/core/Ripple/Ripple.d.ts +4 -0
- package/dist/components/core/Select/selectStyles.d.ts +2 -2
- package/dist/components/core/Select/selectTypes.d.ts +0 -8
- package/dist/components/core/Slider/sliderStyles.d.ts +2 -1
- package/dist/components/core/Switch/switchStyles.d.ts +5 -5
- package/dist/components/core/Table/index.d.ts +2 -2
- package/dist/components/core/Table/tableAPI.d.ts +1 -0
- package/dist/components/core/Table/tableContext.d.ts +4 -0
- package/dist/components/core/Table/tableParts.d.ts +2 -2
- package/dist/components/core/Table/tableTypes.d.ts +13 -4
- package/dist/components/core/TextArea/textAreaStyles.d.ts +2 -4
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +3 -6
- package/dist/components/core/Toast/toastAPI.d.ts +5 -0
- package/dist/components/core/Toast/toastStyles.d.ts +4 -4
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +0 -1
- package/dist/components/core/ToggleButton/index.d.ts +0 -1
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +1 -1
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +1 -3
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -2
- package/dist/components/core/Tooltip/tooltipStyles.d.ts +11 -8
- package/dist/components/core/utils/fieldShellVariant.d.ts +7 -3
- package/dist/components/core/utils/glossInteractiveMotion.d.ts +1 -1
- package/dist/components/core/utils/gsapMotion.d.ts +17 -3
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +2 -3
- package/dist/components/core/utils/hoverVariant.d.ts +1 -1
- package/dist/components/core/utils/modalSurfaceMotion.d.ts +1 -0
- package/dist/components/core/utils/motionConfig.d.ts +70 -2
- package/dist/components/core/utils/optionListItemStyles.d.ts +1 -1
- package/dist/components/core/utils/pressRipple.d.ts +2 -2
- package/dist/components/core/utils/reducedMotion.d.ts +11 -0
- package/dist/components/core/utils/runOpenAfterSqueeze.d.ts +19 -5
- package/dist/components/core/utils/useCollapsibleHeight.d.ts +1 -1
- package/dist/components/core/utils/useContainerPointerHoverHandlers.d.ts +20 -0
- package/dist/components/core/utils/useFieldShellHoverLift.d.ts +20 -6
- package/dist/components/core/utils/useFirstLevelInteractiveMotion.d.ts +1 -5
- package/dist/components/core/utils/useModalMotion.d.ts +45 -0
- package/dist/components/core/utils/usePressableElementTextMotion.d.ts +15 -7
- package/dist/components/core/utils/useShadowMotion.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12305 -12143
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +4 -2
- package/dist/internal.js +55 -52
- package/dist/theme/themeConfig.d.ts +1 -1
- package/dist/theme/themeDefaults.d.ts +25 -1
- package/dist/theme/themeScript.d.ts +2 -1
- package/dist/themeRuntimeContext-BGPGJ9Al.cjs +14 -0
- package/dist/themeRuntimeContext-D_BFeuKg.js +5691 -0
- package/dist/tokens/config.d.ts +4 -0
- package/dist/tokens/index.d.ts +1 -1
- package/dist/ui.css +253 -100
- package/package.json +4 -4
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +0 -5
- package/dist/components/core/Select/selectAnimations.d.ts +0 -5
- package/dist/themeRuntimeContext-CE8HsqSx.js +0 -7742
- package/dist/themeRuntimeContext-zhfbKb8L.cjs +0 -50
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ React-компоненты с Tailwind CSS v4, анимациями на **GSAP*
|
|
|
5
5
|
## Установка
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install burne-ui
|
|
8
|
+
npm install burne-ui react-icons gsap
|
|
9
9
|
# или: pnpm / yarn / bun
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -31,10 +31,11 @@ npx burne-ui@latest init
|
|
|
31
31
|
|
|
32
32
|
- `react`, `react-dom` (18 или 19)
|
|
33
33
|
- `react-icons` (^5)
|
|
34
|
+
- `gsap` (^3.12)
|
|
34
35
|
|
|
35
36
|
## Стили
|
|
36
37
|
|
|
37
|
-
Подключите
|
|
38
|
+
Стили **не** идут вместе с JS-импортом. Подключите CSS пакета **один раз** в точке входа (или в корневом layout):
|
|
38
39
|
|
|
39
40
|
```ts
|
|
40
41
|
import "burne-ui/styles.css";
|
|
@@ -82,6 +83,8 @@ import "burne-ui/styles.css";
|
|
|
82
83
|
|
|
83
84
|
### BurneUIProvider (рекомендуется)
|
|
84
85
|
|
|
86
|
+
Entry `burne-ui` поставляется с `"use client";` (Next.js App Router). Client-файл провайдера нужен, если рядом вызываете хуки / `configureMotion`:
|
|
87
|
+
|
|
85
88
|
```tsx
|
|
86
89
|
"use client";
|
|
87
90
|
|
package/cli/init.js
CHANGED
|
@@ -276,7 +276,7 @@ function runCommand(pmBin, args, cwd) {
|
|
|
276
276
|
* @param {string} cwd
|
|
277
277
|
*/
|
|
278
278
|
async function installDeps(pm, cwd) {
|
|
279
|
-
const pkgs = ["burne-ui", "react-icons"];
|
|
279
|
+
const pkgs = ["burne-ui", "react-icons", "gsap"];
|
|
280
280
|
if (pm === "npm") await runCommand("npm", ["install", ...pkgs], cwd);
|
|
281
281
|
else if (pm === "pnpm") await runCommand("pnpm", ["add", ...pkgs], cwd);
|
|
282
282
|
else if (pm === "bun") await runCommand("bun", ["add", ...pkgs], cwd);
|
|
@@ -416,7 +416,7 @@ export async function runInit(argv, cliVersion) {
|
|
|
416
416
|
const provider = resolveProviderPath(cwd, fw);
|
|
417
417
|
|
|
418
418
|
if (!args.skipInstall) {
|
|
419
|
-
console.log(`\nInstalling burne-ui + react-icons with ${pm}…\n`);
|
|
419
|
+
console.log(`\nInstalling burne-ui + react-icons + gsap with ${pm}…\n`);
|
|
420
420
|
await installDeps(pm, cwd);
|
|
421
421
|
}
|
|
422
422
|
|
|
@@ -13,5 +13,5 @@ export declare function alertDialogHasClose(children: ReactNode): boolean;
|
|
|
13
13
|
export declare function alertDialogShowsDefaultHeaderIcon(variant: AlertVariant, status: AlertStatus): boolean;
|
|
14
14
|
export declare function alertDialogDefaultHeaderIcon(variant: AlertVariant, status: AlertStatus): import('react-icons').IconType | null;
|
|
15
15
|
export declare function alertDialogShowsIndicator(variant: AlertVariant, status: AlertStatus, icon: ReactNode | null | undefined, compoundHasIndicator: boolean): boolean;
|
|
16
|
-
export declare function resolveAlertDialogHeaderGridSlots(variant: AlertVariant, status: AlertStatus, icon: ReactNode | null | undefined, showClose: boolean, children: ReactNode): MessageBannerGridSlots;
|
|
16
|
+
export declare function resolveAlertDialogHeaderGridSlots(variant: AlertVariant, status: AlertStatus, icon: ReactNode | null | undefined, showClose: boolean, children: ReactNode, compoundHasIndicator?: boolean, compoundHasClose?: boolean): MessageBannerGridSlots;
|
|
17
17
|
export declare function injectFooterButtonSize(children: ReactNode, buttonSize: ButtonSize): ReactNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UseAlertDialogModalMotionProps } from './alertDialogTypes';
|
|
2
2
|
export declare function useAlertDialogModalMotion({ open, variant, contained, }: UseAlertDialogModalMotionProps): {
|
|
3
3
|
mounted: boolean;
|
|
4
|
+
showPortal: boolean;
|
|
4
5
|
dialogRef: import('react').RefObject<HTMLDialogElement | null>;
|
|
5
6
|
overlayRef: import('react').RefObject<HTMLDivElement | null>;
|
|
6
7
|
panelRef: import('react').RefObject<HTMLDivElement | null>;
|
|
@@ -6,7 +6,6 @@ export declare namespace AlertDialogContent {
|
|
|
6
6
|
export declare const AlertDialogClose: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
7
7
|
variant?: import('../../core/CloseButton').CloseButtonVariant;
|
|
8
8
|
size?: import('../../core/CloseButton').CloseButtonSize;
|
|
9
|
-
animated?: boolean;
|
|
10
9
|
ripple?: boolean;
|
|
11
10
|
classNames?: import('../../core/CloseButton').CloseButtonClassNames;
|
|
12
11
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -16,7 +16,6 @@ export declare const AlertDialog: typeof AlertDialogRoot & {
|
|
|
16
16
|
Close: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
17
17
|
variant?: import('../../..').CloseButtonVariant;
|
|
18
18
|
size?: import('../../..').CloseButtonSize;
|
|
19
|
-
animated?: boolean;
|
|
20
19
|
ripple?: boolean;
|
|
21
20
|
classNames?: import('../../..').CloseButtonClassNames;
|
|
22
21
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AlertStatus, AlertVariant } from './alertTypes';
|
|
2
2
|
export declare const ALERT_VARIANT_SURFACE: Record<Exclude<AlertVariant, "gloss">, string>;
|
|
3
|
-
|
|
3
|
+
/** Panel surface follows variant only; status colors the indicator (and AlertDialog mirrors this). */
|
|
4
|
+
export declare function alertSurfaceClass(variant: AlertVariant, _status?: AlertStatus): string;
|
|
4
5
|
export declare function alertIndicatorWrapperTextClass(status: AlertStatus): string;
|
|
5
6
|
export declare const ALERT_INDICATOR_BASE_CLASS = "inline-flex shrink-0 items-center justify-center";
|
|
6
7
|
export declare function alertIndicatorClass(status: AlertStatus, iconSvgClass: string): string;
|
|
7
8
|
/** Compound slots (`Alert.Content`, `Alert.Message`) — pass-through grid children. */
|
|
8
9
|
export declare const ALERT_COMPOUND_CONTENTS_CLASS = "contents";
|
|
9
10
|
export declare const ALERT_TITLE_CLASS = "font-w-mid";
|
|
11
|
+
export declare function alertTitleClass(status: AlertStatus): string;
|
|
10
12
|
export declare const ALERT_DESCRIPTION_CLASS = "text-muted";
|
|
@@ -8,7 +8,6 @@ export declare const ButtonRoot: import('react').ForwardRefExoticComponent<impor
|
|
|
8
8
|
status?: import('./buttonTypes').ButtonStatus;
|
|
9
9
|
size?: import('./buttonTypes').ButtonSize;
|
|
10
10
|
iconOnly?: boolean;
|
|
11
|
-
animated?: boolean;
|
|
12
11
|
asyncState?: import('./buttonTypes').ButtonAsyncState;
|
|
13
12
|
onAsyncStateChange?: (state: import('./buttonTypes').ButtonAsyncState) => void;
|
|
14
13
|
onAsyncClick?: (event: MouseEvent<HTMLButtonElement>) => Promise<boolean>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
-
import { ButtonAsyncLayerKind, ButtonAsyncState,
|
|
2
|
+
import { ButtonAsyncLayerKind, ButtonAsyncState, ButtonExpandRippleHandle, UseButtonAnimationsProps } from './buttonTypes';
|
|
3
3
|
export declare function createButtonAsyncLayerRefCallback(ref: React.RefObject<HTMLElement | null>, initialState: ButtonAsyncState, layer: ButtonAsyncLayerKind): (node: HTMLElement | null) => void;
|
|
4
|
-
export declare function useButtonAnimations({ variant,
|
|
4
|
+
export declare function useButtonAnimations({ variant, asyncState, isControlled, blocked, groupSegment, forwardedRef, onPointerEnter, onPointerLeave, onPointerDown, }: UseButtonAnimationsProps): {
|
|
5
5
|
setRefs: (node: HTMLButtonElement | null) => void;
|
|
6
6
|
contentMotionRef: import('react').RefObject<HTMLSpanElement | null>;
|
|
7
7
|
bindLabelRef: (node: HTMLElement | null) => void;
|
|
8
8
|
bindLoaderRef: (node: HTMLElement | null) => void;
|
|
9
9
|
bindSuccessRef: (node: HTMLElement | null) => void;
|
|
10
10
|
bindErrorRef: (node: HTMLElement | null) => void;
|
|
11
|
-
|
|
12
|
-
dismissExpand: (id: number) => void;
|
|
11
|
+
expandRippleLayerRef: import('react').RefObject<ButtonExpandRippleHandle | null>;
|
|
13
12
|
pushExpandRipple: (tone: "success" | "error") => void;
|
|
14
13
|
handlePointerEnter: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
15
14
|
handlePointerLeave: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonContentProps, ButtonErrorProps, ButtonExpandRippleLayerProps, ButtonFeedbackExpandRippleProps, ButtonIconCheckProps, ButtonIconCrossProps, ButtonIconProps, ButtonLabelProps, ButtonLoaderProps, ButtonSpinnerProps, ButtonSuccessProps, ButtonTextProps } from './buttonTypes';
|
|
1
|
+
import { ButtonContentProps, ButtonErrorProps, ButtonExpandRippleHandle, ButtonExpandRippleLayerProps, ButtonFeedbackExpandRippleProps, ButtonIconCheckProps, ButtonIconCrossProps, ButtonIconProps, ButtonLabelProps, ButtonLoaderProps, ButtonSpinnerProps, ButtonSuccessProps, ButtonTextProps } from './buttonTypes';
|
|
2
2
|
export declare function ButtonSpinner({ className }: ButtonSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare function ButtonIconCheck({ className }: ButtonIconCheckProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function ButtonIconCross({ className }: ButtonIconCrossProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,4 +16,4 @@ export declare namespace ButtonText {
|
|
|
16
16
|
export declare const ButtonLoader: import('react').ForwardRefExoticComponent<ButtonLoaderProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
17
17
|
export declare const ButtonSuccess: import('react').ForwardRefExoticComponent<ButtonSuccessProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
18
18
|
export declare const ButtonError: import('react').ForwardRefExoticComponent<ButtonErrorProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
19
|
-
export declare
|
|
19
|
+
export declare const ButtonExpandRippleLayer: import('react').NamedExoticComponent<ButtonExpandRippleLayerProps & import('react').RefAttributes<ButtonExpandRippleHandle>>;
|
|
@@ -10,6 +10,7 @@ import { ButtonSize, ButtonStatus, ButtonVariant } from './buttonTypes';
|
|
|
10
10
|
export declare const INTERACTIVE_VARIANT_ROOT: Record<ButtonVariant, string>;
|
|
11
11
|
export declare const BUTTON_VARIANT_HAS_HOVER_SHADOW: Set<ButtonVariant>;
|
|
12
12
|
export declare const BUTTON_GLOSS_STATUS: Record<ButtonStatus, string>;
|
|
13
|
+
/** Retarget `--color-focus-ring` for `focus-ring` (status soft tokens). */
|
|
13
14
|
export declare const BUTTON_STATUS_FOCUS_OUTLINE: Record<ButtonStatus, string>;
|
|
14
15
|
export declare const BUTTON_STATUS_RIPPLE: Record<ButtonStatus, string>;
|
|
15
16
|
export declare const BUTTON_PRIMARY_STATUS_RIPPLE: Record<SemanticSurfaceStatus, string>;
|
|
@@ -18,7 +19,7 @@ export declare const BUTTON_SIZE_TEXT_VARIANT: Record<ButtonSize, TextVariant>;
|
|
|
18
19
|
export declare const BUTTON_BASE_INTERACTIVE_CLASS = "relative overflow-hidden inline-flex items-center justify-center outline-none focus-ring disabled:pointer-events-none";
|
|
19
20
|
export declare const BUTTON_CLIP_LAYER_CLASS = "pointer-events-none absolute inset-0 z-0 overflow-hidden";
|
|
20
21
|
export declare const BUTTON_CONTENT_MOTION_CLASS = "relative z-[1] grid w-full min-w-0 place-items-center";
|
|
21
|
-
export declare const BUTTON_CONTENT_MOTION_GROUP_CLASS = "origin-center
|
|
22
|
+
export declare const BUTTON_CONTENT_MOTION_GROUP_CLASS = "origin-center";
|
|
22
23
|
export declare const BUTTON_LABEL_LAYER_CLASS = "col-start-1 row-start-1 inline-flex w-full min-w-0 items-center justify-center gap-xsmall";
|
|
23
24
|
export declare const BUTTON_LEFT_ICON_SLOT_CLASS = "inline-flex shrink-0 items-center justify-center";
|
|
24
25
|
export declare const BUTTON_LABEL_TEXT_CLASS = "min-w-0 shrink";
|
|
@@ -42,7 +42,6 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
42
42
|
status?: ButtonStatus;
|
|
43
43
|
size?: ButtonSize;
|
|
44
44
|
iconOnly?: boolean;
|
|
45
|
-
animated?: boolean;
|
|
46
45
|
asyncState?: ButtonAsyncState;
|
|
47
46
|
onAsyncStateChange?: (state: ButtonAsyncState) => void;
|
|
48
47
|
onAsyncClick?: (event: MouseEvent<HTMLButtonElement>) => Promise<boolean>;
|
|
@@ -73,17 +72,17 @@ export type ButtonSimpleContentProps = {
|
|
|
73
72
|
iconPosition?: IconPosition;
|
|
74
73
|
children?: ReactNode;
|
|
75
74
|
};
|
|
75
|
+
export type ButtonExpandRippleHandle = {
|
|
76
|
+
push: (tone: "success" | "error", size: number) => void;
|
|
77
|
+
};
|
|
76
78
|
export type ButtonExpandRippleLayerProps = {
|
|
77
79
|
clipClass: string;
|
|
78
|
-
expandRipples: ExpandRipple[];
|
|
79
|
-
onDismiss: (id: number) => void;
|
|
80
80
|
};
|
|
81
|
-
export type UseButtonRootStateProps = Pick<ButtonProps, "variant" | "status" | "size" | "iconOnly" | "groupSegment" | "asyncState" | "onAsyncStateChange" | "onAsyncClick" | "asyncFeedbackMs" | "disabled" | "className" | "classNames" | "
|
|
81
|
+
export type UseButtonRootStateProps = Pick<ButtonProps, "variant" | "status" | "size" | "iconOnly" | "groupSegment" | "asyncState" | "onAsyncStateChange" | "onAsyncClick" | "asyncFeedbackMs" | "disabled" | "className" | "classNames" | "ripple" | "icon" | "iconPosition" | "children" | "onClick" | "type">;
|
|
82
82
|
export type UseButtonAnimationsProps = {
|
|
83
83
|
variant: ButtonVariant;
|
|
84
84
|
status: ButtonStatus;
|
|
85
85
|
size: ButtonSize;
|
|
86
|
-
animated: boolean;
|
|
87
86
|
asyncState: ButtonAsyncState;
|
|
88
87
|
isControlled: boolean;
|
|
89
88
|
blocked: boolean;
|
|
@@ -6,7 +6,6 @@ export declare const Button: import('react').ForwardRefExoticComponent<import('r
|
|
|
6
6
|
status?: import('./buttonTypes').ButtonStatus;
|
|
7
7
|
size?: import('./buttonTypes').ButtonSize;
|
|
8
8
|
iconOnly?: boolean;
|
|
9
|
-
animated?: boolean;
|
|
10
9
|
asyncState?: import('./buttonTypes').ButtonAsyncState;
|
|
11
10
|
onAsyncStateChange?: (state: import('./buttonTypes').ButtonAsyncState) => void;
|
|
12
11
|
onAsyncClick?: (event: import('react').MouseEvent<HTMLButtonElement>) => Promise<boolean>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ButtonAsyncState, UseButtonRootStateProps } from './buttonTypes';
|
|
2
|
-
export declare function useButtonRootState({ variant: variantProp, status, size: sizeProp, type,
|
|
2
|
+
export declare function useButtonRootState({ variant: variantProp, status, size: sizeProp, type, asyncState: asyncStateProp, onAsyncStateChange, onAsyncClick, asyncFeedbackMs, disabled: disabledProp, icon, iconPosition, ripple, iconOnly, groupSegment: groupSegmentProp, className, classNames, children, onClick, }: UseButtonRootStateProps): {
|
|
3
3
|
type: "button" | "submit" | "reset";
|
|
4
4
|
size: import('../utils/sizeLayout').ComponentSize;
|
|
5
5
|
variant: import('./buttonTypes').ButtonVariant;
|
|
6
6
|
status: import('./buttonTypes').ButtonStatus;
|
|
7
|
-
animated: boolean;
|
|
8
7
|
ripple: boolean;
|
|
9
8
|
blocked: boolean;
|
|
10
9
|
busy: boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
handlePointerDown: (e: React.PointerEvent<HTMLButtonElement>) => void;
|
|
1
|
+
/**
|
|
2
|
+
* Hover lift + press squeeze for Calendar nav buttons and day/month/year cells.
|
|
3
|
+
* Adaptive lift (element size), shared via `usePressableElementTextMotion`
|
|
4
|
+
* (includes `killMotion` cleanup on unmount).
|
|
5
|
+
*/
|
|
6
|
+
export declare function useCalendarPressableAnimations(disabled?: boolean): {
|
|
7
|
+
buttonRef: import('react').RefObject<HTMLButtonElement | null>;
|
|
8
|
+
handlePointerEnter: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
9
|
+
handlePointerLeave: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
10
|
+
handlePointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
12
11
|
};
|
|
@@ -29,7 +29,7 @@ export declare const CALENDAR_MONTHS_GRID_CLASS = "grid grid-cols-3";
|
|
|
29
29
|
export declare const CALENDAR_YEARS_GRID_CLASS = "grid grid-cols-4";
|
|
30
30
|
export declare const CALENDAR_FOOTER_CLASS = "flex items-center justify-between border-t-token pt-small";
|
|
31
31
|
export declare const CALENDAR_NAV_BUTTON_CLASS: string;
|
|
32
|
-
export declare const CALENDAR_CELL_BUTTON_CLASS = "group/calendar-cell relative inline-flex origin-center items-center justify-center overflow-hidden outline-none
|
|
32
|
+
export declare const CALENDAR_CELL_BUTTON_CLASS = "group/calendar-cell relative inline-flex origin-center items-center justify-center overflow-hidden outline-none focus-ring rounded-mid";
|
|
33
33
|
export declare const CALENDAR_CELL_FILL_CLASS: string;
|
|
34
34
|
export declare const CALENDAR_HEADER_TITLE_BASE_CLASS: string;
|
|
35
35
|
export declare const CALENDAR_CELL_TEXT_CLASS = "relative z-[1] min-w-0 shrink-0 leading-none";
|
|
@@ -9,6 +9,5 @@ export declare const CardRoot: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
9
9
|
onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
|
|
10
10
|
onKeyDown?: import('react').HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
11
11
|
classNames?: import('./cardTypes').CardClassNames;
|
|
12
|
-
animated?: boolean;
|
|
13
12
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
14
13
|
export { CardHeader, CardHeadingBlock, CardBody, CardTitle, CardDescription, CardFooter, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent, PointerEvent } from 'react';
|
|
2
2
|
import { UseCardAnimationsProps } from './cardTypes';
|
|
3
|
-
export declare function useCardAnimations({ pressable, isGloss,
|
|
3
|
+
export declare function useCardAnimations({ pressable, isGloss, onPress, onClick: onClickProp, onKeyDown: onKeyDownProp, onPointerDown: onPointerDownProp, onPointerOver: onPointerOverProp, onPointerOut: onPointerOutProp, forwardedRef, }: UseCardAnimationsProps): {
|
|
4
4
|
setRootRef: (node: HTMLElement | null) => void;
|
|
5
5
|
pressableLiftMotionClass: string;
|
|
6
6
|
handlePointerDown: (e: PointerEvent<HTMLElement>) => void;
|
|
@@ -29,12 +29,6 @@ export type CardProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "onKeyDown
|
|
|
29
29
|
onClick?: HTMLAttributes<HTMLElement>["onClick"];
|
|
30
30
|
onKeyDown?: HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
31
31
|
classNames?: CardClassNames;
|
|
32
|
-
/**
|
|
33
|
-
* Enable GSAP interactions (hover lift, press squeeze).
|
|
34
|
-
* Set to `false` to disable all motion while keeping `pressable` semantics (accessible activation still works).
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
animated?: boolean;
|
|
38
32
|
};
|
|
39
33
|
export type CardHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
40
34
|
export type CardHeadingBlockProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -51,7 +45,6 @@ export type UseCardRootStateProps = Pick<CardProps, "variant" | "size" | "pressa
|
|
|
51
45
|
export type UseCardAnimationsProps = {
|
|
52
46
|
pressable: boolean;
|
|
53
47
|
isGloss: boolean;
|
|
54
|
-
animated: boolean;
|
|
55
48
|
onPress?: (event: CardPressEvent) => void;
|
|
56
49
|
onClick?: HTMLAttributes<HTMLElement>["onClick"];
|
|
57
50
|
onKeyDown?: HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
@@ -7,7 +7,6 @@ export declare const Card: import('react').ForwardRefExoticComponent<Omit<import
|
|
|
7
7
|
onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
|
|
8
8
|
onKeyDown?: import('react').HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
9
9
|
classNames?: import('./cardTypes').CardClassNames;
|
|
10
|
-
animated?: boolean;
|
|
11
10
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
12
11
|
Header: typeof CardHeader;
|
|
13
12
|
HeadingBlock: typeof CardHeadingBlock;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
import { CheckboxSize } from './checkboxTypes';
|
|
1
2
|
export declare const CHECKBOX_SIZE_LAYOUT: Record<import('../utils/sizeLayout').ComponentSize, import('../utils/sizeLayout').OptionControlSizeLayout>;
|
|
2
3
|
export declare const CHECKBOX_INPUT_VISUALLY_HIDDEN_CLASS = "absolute m-[-1px] h-px w-px overflow-hidden border-0 p-0 opacity-0 [clip:rect(0,0,0,0)]";
|
|
3
4
|
export declare const CHECKBOX_INPUT_TRACK_OVERLAY_CLASS = "absolute inset-0 z-[2] m-0 h-full w-full cursor-pointer opacity-0";
|
|
4
5
|
export declare const CHECKBOX_CONTROL_CLASS = "relative inline-flex shrink-0 items-center justify-center";
|
|
5
|
-
export declare const CHECKBOX_CONTROL_TRACK_CLASS = "relative inline-flex items-center justify-center";
|
|
6
|
+
export declare const CHECKBOX_CONTROL_TRACK_CLASS = "relative inline-flex items-center justify-center has-focus-ring";
|
|
7
|
+
export declare function checkboxControlTrackClass(size: CheckboxSize): string;
|
|
6
8
|
export declare const CHECKBOX_CONTENT_COMPOUND_CLASS = "min-w-0";
|
|
7
9
|
export declare const CHECKBOX_CONTENT_POINTER_CLASS = "cursor-pointer";
|
|
8
10
|
export declare const CHECKBOX_LABEL_CLASS = "inline-flex flex-wrap items-center gap-x-xsmall gap-y-0 font-w-mid";
|
|
9
11
|
export declare const CHECKBOX_LABEL_COMPOUND_SECONDARY_CLASS = "min-w-0";
|
|
10
|
-
export declare const CHECKBOX_LABEL_MOTION_CLASS = "origin-center
|
|
12
|
+
export declare const CHECKBOX_LABEL_MOTION_CLASS = "origin-center";
|
|
11
13
|
export declare const CHECKBOX_LABEL_TEXT_DISABLED_CLASS = "text-muted";
|
|
12
14
|
export declare const CHECKBOX_LABEL_TEXT_DANGER_CLASS = "text-danger";
|
|
13
15
|
export declare const CHECKBOX_REQUIRED_MARK_CLASS = "text-danger";
|
|
14
16
|
export declare const CHECKBOX_HINT_DISABLED_CLASS = "text-muted";
|
|
15
17
|
export declare const CHECKBOX_ERROR_DISABLED_CLASS = "text-muted";
|
|
16
|
-
export declare const CHECKBOX_SIMPLE_LABEL_WRAP_CLASS = "origin-center
|
|
18
|
+
export declare const CHECKBOX_SIMPLE_LABEL_WRAP_CLASS = "origin-center";
|
|
17
19
|
export declare const CHECKBOX_SIMPLE_LABEL_TEXT_CLASS = "min-w-0 font-w-mid";
|
|
18
20
|
export declare const CHECKBOX_ROOT_BASE_CLASS = "relative cursor-pointer select-none rounded-small text-left";
|
|
19
21
|
export declare const CHECKBOX_ROOT_DISABLED_CLASS = "cursor-not-allowed";
|
|
20
|
-
export declare const CHECKBOX_ROOT_FOCUS_CLASS = "has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-primary";
|
|
21
22
|
export declare const CHECKBOX_COMPOUND_FIELDSET_CLASS = "m-0 min-w-0 border-0 p-0";
|
|
22
23
|
export declare const CHECKBOX_CONTENT_PASS_THROUGH_CLASS = "contents";
|
|
23
24
|
export declare function checkboxControlCellClass(): string;
|
|
@@ -2,7 +2,6 @@ export type { CloseButtonProps, CloseButtonSize, CloseButtonVariant, CloseButton
|
|
|
2
2
|
export declare const CloseButton: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
3
3
|
variant?: import('./closeButtonTypes').CloseButtonVariant;
|
|
4
4
|
size?: import('./closeButtonTypes').CloseButtonSize;
|
|
5
|
-
animated?: boolean;
|
|
6
5
|
ripple?: boolean;
|
|
7
6
|
classNames?: import('./closeButtonTypes').CloseButtonClassNames;
|
|
8
7
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseCloseButtonAnimationsProps } from './closeButtonTypes';
|
|
2
|
-
export declare function useCloseButtonAnimations({ variant,
|
|
2
|
+
export declare function useCloseButtonAnimations({ variant, disabled, forwardedRef, onPointerDown, onPointerEnter, onPointerLeave, }: UseCloseButtonAnimationsProps): {
|
|
3
3
|
setRefs: (node: HTMLButtonElement | null) => void;
|
|
4
4
|
handlePointerEnter: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
5
5
|
handlePointerLeave: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
@@ -10,7 +10,6 @@ export type CloseButtonClassNames = {
|
|
|
10
10
|
export type CloseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
11
11
|
variant?: CloseButtonVariant;
|
|
12
12
|
size?: CloseButtonSize;
|
|
13
|
-
animated?: boolean;
|
|
14
13
|
ripple?: boolean;
|
|
15
14
|
classNames?: CloseButtonClassNames;
|
|
16
15
|
};
|
|
@@ -21,7 +20,6 @@ export type CloseButtonClassNamesProviderProps = {
|
|
|
21
20
|
export type UseCloseButtonRootStateProps = Omit<CloseButtonProps, "onPointerDown" | "onPointerEnter" | "onPointerLeave">;
|
|
22
21
|
export type UseCloseButtonAnimationsProps = {
|
|
23
22
|
variant: CloseButtonVariant;
|
|
24
|
-
animated: boolean;
|
|
25
23
|
disabled: boolean;
|
|
26
24
|
forwardedRef: React.ForwardedRef<HTMLButtonElement>;
|
|
27
25
|
onPointerDown?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseCloseButtonRootStateProps } from './closeButtonTypes';
|
|
2
|
-
export declare function useCloseButtonRootState({ variant, size,
|
|
2
|
+
export declare function useCloseButtonRootState({ variant, size, ripple, className, disabled, type, "aria-label": ariaLabel, classNames, }: UseCloseButtonRootStateProps): {
|
|
3
3
|
variant: import('./closeButtonTypes').CloseButtonVariant;
|
|
4
4
|
size: import('../utils/sizeLayout').ComponentSize;
|
|
5
|
-
animated: boolean;
|
|
6
5
|
ripple: boolean;
|
|
7
6
|
disabled: boolean;
|
|
8
7
|
type: "button" | "submit" | "reset";
|
|
@@ -12,9 +12,9 @@ export declare const COMBOBOX_POPOVER_BODY_CLASS = "gap-0 p-base";
|
|
|
12
12
|
export declare const COMBOBOX_LISTBOX_CLASS = "overflow-y-auto overflow-x-hidden";
|
|
13
13
|
export declare const COMBOBOX_INPUT_GROUP_DISABLED_CLASS = "cursor-not-allowed opacity-55 shadow-token-base";
|
|
14
14
|
export declare const COMBOBOX_INPUT_GROUP_ENABLED_CLASS = "cursor-pointer";
|
|
15
|
-
export declare function comboBoxShellSurface({ variant,
|
|
15
|
+
export declare function comboBoxShellSurface({ variant, }: {
|
|
16
16
|
variant: InputVariant;
|
|
17
|
-
status
|
|
17
|
+
status?: InputStatus;
|
|
18
18
|
}): string;
|
|
19
19
|
export declare function comboBoxGroupShellClass(groupSegment?: ButtonGroupSegment): string;
|
|
20
20
|
export declare function comboBoxInputGroupClass({ variant, status, disabled, groupSegment, shellHoverMotionClass, className, slotClass, }: {
|
|
@@ -119,12 +119,3 @@ export type ComboBoxErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
|
119
119
|
children?: ReactNode;
|
|
120
120
|
};
|
|
121
121
|
export type UseComboBoxRootStateProps = ComboBoxProps;
|
|
122
|
-
export type RunComboBoxOpenAfterSqueezeOptions = {
|
|
123
|
-
anchorRef: React.RefObject<HTMLDivElement | null>;
|
|
124
|
-
disabled: boolean;
|
|
125
|
-
isGloss: boolean;
|
|
126
|
-
groupSegment?: ButtonGroupSegment;
|
|
127
|
-
setOpen: (open: boolean) => void;
|
|
128
|
-
onOpened?: () => void;
|
|
129
|
-
preferStandardSqueeze?: boolean;
|
|
130
|
-
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
1
|
import { UseDialogModalMotionProps } from './dialogTypes';
|
|
3
2
|
export declare function useDialogModalMotion({ open, onOpenChange, variant, dismissOnBackdrop, contained, }: UseDialogModalMotionProps): {
|
|
4
3
|
mounted: boolean;
|
|
4
|
+
showPortal: boolean;
|
|
5
5
|
dialogRef: import('react').RefObject<HTMLDialogElement | null>;
|
|
6
6
|
overlayRef: import('react').RefObject<HTMLDivElement | null>;
|
|
7
7
|
panelRef: import('react').RefObject<HTMLDivElement | null>;
|
|
8
8
|
bindGlossPanelRef: (node: HTMLElement | null) => void;
|
|
9
|
-
handleBackdropPointerDown: (e: MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
handleBackdropPointerDown: (e: import('react').MouseEvent<HTMLDivElement>) => void;
|
|
10
10
|
};
|
|
@@ -10,7 +10,6 @@ export declare namespace DialogHeadingBlock {
|
|
|
10
10
|
export declare const DialogClose: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
11
11
|
variant?: import('../CloseButton').CloseButtonVariant;
|
|
12
12
|
size?: import('../CloseButton').CloseButtonSize;
|
|
13
|
-
animated?: boolean;
|
|
14
13
|
ripple?: boolean;
|
|
15
14
|
classNames?: import('../CloseButton').CloseButtonClassNames;
|
|
16
15
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -18,7 +18,6 @@ export declare const Dialog: typeof DialogRoot & {
|
|
|
18
18
|
Close: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
19
19
|
variant?: import('../CloseButton').CloseButtonVariant;
|
|
20
20
|
size?: import('../CloseButton').CloseButtonSize;
|
|
21
|
-
animated?: boolean;
|
|
22
21
|
ripple?: boolean;
|
|
23
22
|
classNames?: import('../CloseButton').CloseButtonClassNames;
|
|
24
23
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,7 +3,7 @@ import { DisclosureGroupContextValue, DisclosureSize, DisclosureVariant } from '
|
|
|
3
3
|
export declare const DISCLOSURE_TRIGGER_BASE_CLASS = "flex w-full select-none items-center gap-small text-left outline-none focus-ring";
|
|
4
4
|
export declare const DISCLOSURE_TRIGGER_DISABLED_CLASS = "cursor-not-allowed opacity-48";
|
|
5
5
|
export declare const DISCLOSURE_TRIGGER_ENABLED_CLASS = "cursor-pointer";
|
|
6
|
-
export declare const DISCLOSURE_TRIGGER_TITLE_LIFT_CLASS = "min-w-0 flex-1 origin-center
|
|
6
|
+
export declare const DISCLOSURE_TRIGGER_TITLE_LIFT_CLASS = "min-w-0 flex-1 origin-center";
|
|
7
7
|
export declare const DISCLOSURE_TRIGGER_TITLE_CLASS = "block";
|
|
8
8
|
export declare const DISCLOSURE_TRIGGER_CHEVRON_BASE_CLASS = "inline-flex shrink-0 origin-center items-center justify-center text-muted";
|
|
9
9
|
export declare const DISCLOSURE_TRIGGER_CHEVRON_ICON_CLASS = "size-full";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
1
|
import { UseDrawerModalMotionProps } from './drawerTypes';
|
|
3
2
|
export declare function useDrawerModalMotion({ open, onOpenChange, variant, placement, backdropIsDismissable, contained, }: UseDrawerModalMotionProps): {
|
|
4
3
|
showPortal: boolean;
|
|
@@ -8,5 +7,5 @@ export declare function useDrawerModalMotion({ open, onOpenChange, variant, plac
|
|
|
8
7
|
panelRef: import('react').RefObject<HTMLDivElement | null>;
|
|
9
8
|
skipCloseAnimRef: import('react').RefObject<boolean>;
|
|
10
9
|
bindGlossPanelRef: (node: HTMLElement | null) => void;
|
|
11
|
-
handleBackdropMouseDown: (e: MouseEvent<HTMLDivElement>) => void;
|
|
10
|
+
handleBackdropMouseDown: (e: import('react').MouseEvent<HTMLDivElement>) => void;
|
|
12
11
|
};
|
|
@@ -21,7 +21,6 @@ export declare namespace DrawerDescription {
|
|
|
21
21
|
export declare const DrawerClose: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
22
22
|
variant?: import('../CloseButton').CloseButtonVariant;
|
|
23
23
|
size?: import('../CloseButton').CloseButtonSize;
|
|
24
|
-
animated?: boolean;
|
|
25
24
|
ripple?: boolean;
|
|
26
25
|
classNames?: import('../CloseButton').CloseButtonClassNames;
|
|
27
26
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -20,7 +20,6 @@ export declare const Drawer: typeof DrawerRoot & {
|
|
|
20
20
|
Close: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
21
21
|
variant?: import('../CloseButton').CloseButtonVariant;
|
|
22
22
|
size?: import('../CloseButton').CloseButtonSize;
|
|
23
|
-
animated?: boolean;
|
|
24
23
|
ripple?: boolean;
|
|
25
24
|
classNames?: import('../CloseButton').CloseButtonClassNames;
|
|
26
25
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -16,7 +16,7 @@ export declare function DropdownItemIndicator({ variant, size, check, children,
|
|
|
16
16
|
export declare namespace DropdownItemIndicator {
|
|
17
17
|
var displayName: string;
|
|
18
18
|
}
|
|
19
|
-
export declare const DropdownItem: import('react').
|
|
19
|
+
export declare const DropdownItem: import('react').NamedExoticComponent<Omit<HTMLAttributes<HTMLElement>, "value"> & {
|
|
20
20
|
value?: string;
|
|
21
21
|
href?: string;
|
|
22
22
|
disabled?: boolean;
|
|
@@ -11,7 +11,7 @@ export declare const DROPDOWN_SUB_CLASS = "relative min-w-0";
|
|
|
11
11
|
export declare const DROPDOWN_SUB_TRIGGER_CLASS = "flex w-full min-w-0 cursor-pointer items-center gap-base rounded-mid px-base py-small text-left outline-none text-base text-foreground focus-ring";
|
|
12
12
|
export declare const DROPDOWN_SUB_TRIGGER_LABEL_WRAP_CLASS = "min-w-0 flex-1";
|
|
13
13
|
export declare const DROPDOWN_SUB_TRIGGER_CHEVRON_CLASS = "shrink-0 text-muted icon-base";
|
|
14
|
-
export declare const DROPDOWN_SUB_CONTENT_BASE_CLASS = "fixed z-dropdown-sub outline-none
|
|
14
|
+
export declare const DROPDOWN_SUB_CONTENT_BASE_CLASS = "fixed z-dropdown-sub outline-none";
|
|
15
15
|
export declare const DROPDOWN_SUB_CONTENT_SURFACE_CLASS = "flex max-h-[min(22rem,65vh)] flex-col overflow-y-auto overflow-x-hidden rounded-mid border-token bg-surface p-base text-left shadow-token-mid";
|
|
16
16
|
export declare const DROPDOWN_SUB_CONTENT_GLOSS_PANEL_CLASS = "gloss-panel gloss-deep flex max-h-[min(22rem,65vh)] min-w-0 origin-center flex-col overflow-hidden rounded-mid text-foreground";
|
|
17
17
|
export declare const DROPDOWN_SUB_CONTENT_GLOSS_CONTENT_CLASS = "gloss-content flex min-h-0 flex-col overflow-y-auto overflow-x-hidden p-base text-left";
|
|
@@ -17,7 +17,7 @@ export declare const Dropdown: typeof DropdownRoot & {
|
|
|
17
17
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
18
|
Label: import('react').ForwardRefExoticComponent<import('./dropdownTypes').DropdownLabelProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
19
19
|
Separator: typeof DropdownSeparator;
|
|
20
|
-
Item: import('react').
|
|
20
|
+
Item: import('react').NamedExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "value"> & {
|
|
21
21
|
value?: string;
|
|
22
22
|
href?: string;
|
|
23
23
|
disabled?: boolean;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { OptionListItemContextValue } from '../utils/optionListItemContext';
|
|
3
|
+
import { DropdownItemStatus } from './dropdownTypes';
|
|
4
|
+
export declare function useDropdownItemState({ children, href, selection, value, disabled, status, }: {
|
|
3
5
|
children: ReactNode;
|
|
4
6
|
href?: string;
|
|
5
7
|
selection?: boolean;
|
|
6
8
|
value?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
status?: DropdownItemStatus;
|
|
7
11
|
}): {
|
|
8
12
|
parts: import('../utils/optionListItemChildren').OptionListItemParts;
|
|
9
13
|
selectItem: (value: string) => void;
|
|
@@ -17,4 +21,5 @@ export declare function useDropdownItemState({ children, href, selection, value,
|
|
|
17
21
|
showIndicatorSlot: boolean;
|
|
18
22
|
itemRole: string;
|
|
19
23
|
isSelected: boolean;
|
|
24
|
+
itemCtx: OptionListItemContextValue;
|
|
20
25
|
};
|
|
@@ -4,10 +4,10 @@ export declare const EXPANDABLE_ROOT_BASE_CLASS = "rounded-mid text-left text-fo
|
|
|
4
4
|
export declare const EXPANDABLE_ROOT_SURFACE_CLASS = "border-token bg-surface shadow-token-base";
|
|
5
5
|
export declare const EXPANDABLE_ROOT_GLOSS_CLASS = "gloss-panel gloss-deep border-0";
|
|
6
6
|
export declare const EXPANDABLE_GLOSS_CONTENT_CLASS = "gloss-content flex min-w-0 flex-col";
|
|
7
|
-
export declare const EXPANDABLE_TRIGGER_BASE_CLASS = "relative w-full overflow-hidden text-left outline-none focus-
|
|
7
|
+
export declare const EXPANDABLE_TRIGGER_BASE_CLASS = "relative w-full overflow-hidden rounded-[inherit] text-left outline-none focus-ring";
|
|
8
8
|
export declare const EXPANDABLE_TRIGGER_DISABLED_CLASS = "cursor-not-allowed opacity-50";
|
|
9
9
|
export declare const EXPANDABLE_TRIGGER_ENABLED_CLASS = "cursor-pointer";
|
|
10
|
-
export declare const EXPANDABLE_TRIGGER_LIFT_BASE_CLASS = "relative z-[1] w-full min-w-0 origin-center
|
|
10
|
+
export declare const EXPANDABLE_TRIGGER_LIFT_BASE_CLASS = "relative z-[1] w-full min-w-0 origin-center";
|
|
11
11
|
/** Compound slots (`Expandable.Content`, `Expandable.Message`) — pass-through grid children. */
|
|
12
12
|
export declare const EXPANDABLE_COMPOUND_CONTENTS_CLASS = "contents";
|
|
13
13
|
export declare const EXPANDABLE_TRIGGER_CHEVRON_WRAP_CLASS = "relative z-[1] flex shrink-0 origin-center self-center";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
2
2
|
import { InputSize, InputStatus, InputVariant } from './inputTypes';
|
|
3
|
-
export declare const INPUT_STATUS_TINT_SHELL_CLASS: Record<Exclude<InputStatus, "default">, string>;
|
|
4
|
-
export declare const INPUT_STATUS_TINT_AFFIX_CLASS: Record<Exclude<InputStatus, "default">, string>;
|
|
5
3
|
export declare const INPUT_AFFIX_SURFACE_CLASS = "bg-primary-tint";
|
|
6
4
|
export declare const INPUT_SHELL_BASE_CLASS = "flex items-stretch overflow-hidden";
|
|
7
5
|
export declare const INPUT_SHELL_GLOSS_CLASS = "relative";
|
|
@@ -27,22 +25,16 @@ export declare const INPUT_PASSWORD_TOGGLE_CONTROL: Record<InputSize, {
|
|
|
27
25
|
icon: string;
|
|
28
26
|
pad: string;
|
|
29
27
|
}>;
|
|
30
|
-
export declare function inputAffixSurfaceClass(
|
|
28
|
+
export declare function inputAffixSurfaceClass(_status?: InputStatus): string;
|
|
31
29
|
export declare function inputAffixSlotClass({ side, status, size, slotClass, }: {
|
|
32
30
|
side: "prefix" | "suffix";
|
|
33
31
|
status: InputStatus;
|
|
34
32
|
size: InputSize;
|
|
35
33
|
slotClass?: string;
|
|
36
34
|
}): string;
|
|
37
|
-
export declare function inputShellSurfaceClass({ variant,
|
|
35
|
+
export declare function inputShellSurfaceClass({ variant, }: {
|
|
38
36
|
variant: InputVariant;
|
|
39
|
-
status
|
|
40
|
-
statusTinted: boolean;
|
|
41
|
-
}): string;
|
|
42
|
-
export declare function inputFileEmptyShellSurfaceClass({ variant, status, statusTinted, }: {
|
|
43
|
-
variant: InputVariant;
|
|
44
|
-
status: InputStatus;
|
|
45
|
-
statusTinted: boolean;
|
|
37
|
+
status?: InputStatus;
|
|
46
38
|
}): string;
|
|
47
39
|
export declare function inputShellRoundingClass(groupSegment: ButtonGroupSegment | null | undefined): string;
|
|
48
40
|
export declare function inputShellClass({ variant, status, blocked, groupSegment, fileListEmpty, shellSurface, shellFileEmptySurface, shellHoverMotionClass, className, slotClass, }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ListBoxProps } from './listBoxTypes';
|
|
2
2
|
export type { ListBoxProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, } from './listBoxTypes';
|
|
3
3
|
export { ListBoxRootShell, ListBoxSection, ListBoxHeader, ListBoxSeparator, ListBoxEmpty, ListBoxItem, ListBoxLabel, ListBoxHint, ListBoxIcon, ListBoxItemIndicator, } from './listBoxParts';
|
|
4
|
-
export { useListBox } from './listBoxContext';
|
|
4
|
+
export { useListBox, useListBoxActiveValue } from './listBoxContext';
|
|
5
5
|
export declare function ListBoxRoot({ classNames, children, className, size, variant, multiple, value, defaultValue, onValueChange, selectionIndicator, disabled, activeValue, onActiveValueChange, listId: listIdProp, "aria-label": ariaLabelProp, "aria-labelledby": ariaLabelledByProp, ...rest }: ListBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace ListBoxRoot {
|
|
7
7
|
var displayName: string;
|