@texturehq/edges 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.manifest.json +3 -3
- package/dist/generated/tailwind-tokens-dark.css +3 -3
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -6
- package/dist/index.d.ts +39 -6
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/styles/utilities.css +19 -0
- package/dist/styles.css +28 -46
- package/dist/utilities.manifest.json +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -934,6 +934,28 @@ interface DialogProps extends Omit<DialogHeaderConfig, "onClose">, DialogFooterC
|
|
|
934
934
|
* @default "400px"
|
|
935
935
|
*/
|
|
936
936
|
minWidth?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Maximum height of the dialog on desktop
|
|
939
|
+
* @default "85vh"
|
|
940
|
+
*/
|
|
941
|
+
maxHeight?: string;
|
|
942
|
+
/**
|
|
943
|
+
* Explicit height of the dialog on desktop (overrides maxHeight if set)
|
|
944
|
+
* Content will scroll within this fixed height
|
|
945
|
+
* @default undefined
|
|
946
|
+
*/
|
|
947
|
+
height?: string;
|
|
948
|
+
/**
|
|
949
|
+
* Maximum height of the dialog on mobile (tray version)
|
|
950
|
+
* @default "90vh"
|
|
951
|
+
*/
|
|
952
|
+
mobileMaxHeight?: string;
|
|
953
|
+
/**
|
|
954
|
+
* Explicit height of the dialog on mobile (overrides mobileMaxHeight if set)
|
|
955
|
+
* Content will scroll within this fixed height
|
|
956
|
+
* @default undefined
|
|
957
|
+
*/
|
|
958
|
+
mobileHeight?: string;
|
|
937
959
|
/**
|
|
938
960
|
* Whether to include padding inside the content area
|
|
939
961
|
* @default true
|
|
@@ -950,7 +972,7 @@ interface DialogProps extends Omit<DialogHeaderConfig, "onClose">, DialogFooterC
|
|
|
950
972
|
* Responsive modal dialog component with backdrop.
|
|
951
973
|
*
|
|
952
974
|
* **Desktop (≥768px):** Centered modal with scale and fade animation
|
|
953
|
-
* **Mobile (<768px):**
|
|
975
|
+
* **Mobile (<768px):** Uses Tray component for native bottom sheet experience with drag handle
|
|
954
976
|
*
|
|
955
977
|
* Includes optional header with title/back button and footer with action buttons.
|
|
956
978
|
*
|
|
@@ -977,7 +999,7 @@ interface DialogProps extends Omit<DialogHeaderConfig, "onClose">, DialogFooterC
|
|
|
977
999
|
* </Dialog>
|
|
978
1000
|
* ```
|
|
979
1001
|
*/
|
|
980
|
-
declare function Dialog({ isOpen, onClose, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, children, primaryAction, secondaryAction, footerContent, transparentOverlay, maxWidth, minWidth, contentPadding, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
1002
|
+
declare function Dialog({ isOpen, onClose, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, children, primaryAction, secondaryAction, footerContent, transparentOverlay, maxWidth, minWidth, maxHeight, height, mobileMaxHeight, mobileHeight, contentPadding, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
981
1003
|
|
|
982
1004
|
interface AlertProps {
|
|
983
1005
|
/**
|
|
@@ -2135,8 +2157,8 @@ interface EmptyStateAction {
|
|
|
2135
2157
|
isDisabled?: boolean;
|
|
2136
2158
|
}
|
|
2137
2159
|
interface EmptyStateProps {
|
|
2138
|
-
/**
|
|
2139
|
-
icon?:
|
|
2160
|
+
/** Icon name from Icon component to show at the top of the empty state. */
|
|
2161
|
+
icon?: IconName$2;
|
|
2140
2162
|
/** Primary title describing the state. */
|
|
2141
2163
|
title: ReactNode;
|
|
2142
2164
|
/** Optional description providing more context. */
|
|
@@ -3658,6 +3680,11 @@ type TabsProps = TabsProps$2 & {
|
|
|
3658
3680
|
};
|
|
3659
3681
|
type TabListProps<T extends object> = TabListProps$1<T> & {
|
|
3660
3682
|
variant?: TabVariant;
|
|
3683
|
+
/**
|
|
3684
|
+
* Makes the tab list sticky at the top of its scroll container
|
|
3685
|
+
* @default false
|
|
3686
|
+
*/
|
|
3687
|
+
sticky?: boolean;
|
|
3661
3688
|
};
|
|
3662
3689
|
/**
|
|
3663
3690
|
* Tabs
|
|
@@ -3669,7 +3696,7 @@ declare function Tabs({ variant, ...props }: TabsProps): react_jsx_runtime.JSX.E
|
|
|
3669
3696
|
/**
|
|
3670
3697
|
* TabList container.
|
|
3671
3698
|
*/
|
|
3672
|
-
declare function TabList<T extends object>({ variant, ...props }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
3699
|
+
declare function TabList<T extends object>({ variant, sticky, ...props }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
3673
3700
|
/**
|
|
3674
3701
|
* Tab trigger element.
|
|
3675
3702
|
*/
|
|
@@ -3845,6 +3872,12 @@ interface TrayProps extends DialogHeaderConfig, DialogFooterConfig {
|
|
|
3845
3872
|
* @default "80vh"
|
|
3846
3873
|
*/
|
|
3847
3874
|
maxHeight?: string;
|
|
3875
|
+
/**
|
|
3876
|
+
* Explicit height for the tray (overrides maxHeight if set)
|
|
3877
|
+
* Content will scroll within this fixed height
|
|
3878
|
+
* @default undefined
|
|
3879
|
+
*/
|
|
3880
|
+
height?: string;
|
|
3848
3881
|
/**
|
|
3849
3882
|
* Maximum width of the tray
|
|
3850
3883
|
* @default "640px"
|
|
@@ -3877,7 +3910,7 @@ interface TrayProps extends DialogHeaderConfig, DialogFooterConfig {
|
|
|
3877
3910
|
* Bottom anchored overlay optimized for mobile experiences.
|
|
3878
3911
|
* Provides optional header/footer slots that align with Dialog & Drawer APIs.
|
|
3879
3912
|
*/
|
|
3880
|
-
declare function Tray({ children, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, isOpen, onClose, isDismissable, transparentOverlay, primaryAction, secondaryAction, footerContent, maxHeight, maxWidth, contentPadding, showHandle, animationVariant, className, }: TrayProps): react_jsx_runtime.JSX.Element | null;
|
|
3913
|
+
declare function Tray({ children, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, isOpen, onClose, isDismissable, transparentOverlay, primaryAction, secondaryAction, footerContent, maxHeight, height, maxWidth, contentPadding, showHandle, animationVariant, className, }: TrayProps): react_jsx_runtime.JSX.Element | null;
|
|
3881
3914
|
declare namespace Tray {
|
|
3882
3915
|
var displayName: string;
|
|
3883
3916
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -934,6 +934,28 @@ interface DialogProps extends Omit<DialogHeaderConfig, "onClose">, DialogFooterC
|
|
|
934
934
|
* @default "400px"
|
|
935
935
|
*/
|
|
936
936
|
minWidth?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Maximum height of the dialog on desktop
|
|
939
|
+
* @default "85vh"
|
|
940
|
+
*/
|
|
941
|
+
maxHeight?: string;
|
|
942
|
+
/**
|
|
943
|
+
* Explicit height of the dialog on desktop (overrides maxHeight if set)
|
|
944
|
+
* Content will scroll within this fixed height
|
|
945
|
+
* @default undefined
|
|
946
|
+
*/
|
|
947
|
+
height?: string;
|
|
948
|
+
/**
|
|
949
|
+
* Maximum height of the dialog on mobile (tray version)
|
|
950
|
+
* @default "90vh"
|
|
951
|
+
*/
|
|
952
|
+
mobileMaxHeight?: string;
|
|
953
|
+
/**
|
|
954
|
+
* Explicit height of the dialog on mobile (overrides mobileMaxHeight if set)
|
|
955
|
+
* Content will scroll within this fixed height
|
|
956
|
+
* @default undefined
|
|
957
|
+
*/
|
|
958
|
+
mobileHeight?: string;
|
|
937
959
|
/**
|
|
938
960
|
* Whether to include padding inside the content area
|
|
939
961
|
* @default true
|
|
@@ -950,7 +972,7 @@ interface DialogProps extends Omit<DialogHeaderConfig, "onClose">, DialogFooterC
|
|
|
950
972
|
* Responsive modal dialog component with backdrop.
|
|
951
973
|
*
|
|
952
974
|
* **Desktop (≥768px):** Centered modal with scale and fade animation
|
|
953
|
-
* **Mobile (<768px):**
|
|
975
|
+
* **Mobile (<768px):** Uses Tray component for native bottom sheet experience with drag handle
|
|
954
976
|
*
|
|
955
977
|
* Includes optional header with title/back button and footer with action buttons.
|
|
956
978
|
*
|
|
@@ -977,7 +999,7 @@ interface DialogProps extends Omit<DialogHeaderConfig, "onClose">, DialogFooterC
|
|
|
977
999
|
* </Dialog>
|
|
978
1000
|
* ```
|
|
979
1001
|
*/
|
|
980
|
-
declare function Dialog({ isOpen, onClose, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, children, primaryAction, secondaryAction, footerContent, transparentOverlay, maxWidth, minWidth, contentPadding, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
1002
|
+
declare function Dialog({ isOpen, onClose, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, children, primaryAction, secondaryAction, footerContent, transparentOverlay, maxWidth, minWidth, maxHeight, height, mobileMaxHeight, mobileHeight, contentPadding, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
|
|
981
1003
|
|
|
982
1004
|
interface AlertProps {
|
|
983
1005
|
/**
|
|
@@ -2135,8 +2157,8 @@ interface EmptyStateAction {
|
|
|
2135
2157
|
isDisabled?: boolean;
|
|
2136
2158
|
}
|
|
2137
2159
|
interface EmptyStateProps {
|
|
2138
|
-
/**
|
|
2139
|
-
icon?:
|
|
2160
|
+
/** Icon name from Icon component to show at the top of the empty state. */
|
|
2161
|
+
icon?: IconName$2;
|
|
2140
2162
|
/** Primary title describing the state. */
|
|
2141
2163
|
title: ReactNode;
|
|
2142
2164
|
/** Optional description providing more context. */
|
|
@@ -3658,6 +3680,11 @@ type TabsProps = TabsProps$2 & {
|
|
|
3658
3680
|
};
|
|
3659
3681
|
type TabListProps<T extends object> = TabListProps$1<T> & {
|
|
3660
3682
|
variant?: TabVariant;
|
|
3683
|
+
/**
|
|
3684
|
+
* Makes the tab list sticky at the top of its scroll container
|
|
3685
|
+
* @default false
|
|
3686
|
+
*/
|
|
3687
|
+
sticky?: boolean;
|
|
3661
3688
|
};
|
|
3662
3689
|
/**
|
|
3663
3690
|
* Tabs
|
|
@@ -3669,7 +3696,7 @@ declare function Tabs({ variant, ...props }: TabsProps): react_jsx_runtime.JSX.E
|
|
|
3669
3696
|
/**
|
|
3670
3697
|
* TabList container.
|
|
3671
3698
|
*/
|
|
3672
|
-
declare function TabList<T extends object>({ variant, ...props }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
3699
|
+
declare function TabList<T extends object>({ variant, sticky, ...props }: TabListProps<T>): react_jsx_runtime.JSX.Element;
|
|
3673
3700
|
/**
|
|
3674
3701
|
* Tab trigger element.
|
|
3675
3702
|
*/
|
|
@@ -3845,6 +3872,12 @@ interface TrayProps extends DialogHeaderConfig, DialogFooterConfig {
|
|
|
3845
3872
|
* @default "80vh"
|
|
3846
3873
|
*/
|
|
3847
3874
|
maxHeight?: string;
|
|
3875
|
+
/**
|
|
3876
|
+
* Explicit height for the tray (overrides maxHeight if set)
|
|
3877
|
+
* Content will scroll within this fixed height
|
|
3878
|
+
* @default undefined
|
|
3879
|
+
*/
|
|
3880
|
+
height?: string;
|
|
3848
3881
|
/**
|
|
3849
3882
|
* Maximum width of the tray
|
|
3850
3883
|
* @default "640px"
|
|
@@ -3877,7 +3910,7 @@ interface TrayProps extends DialogHeaderConfig, DialogFooterConfig {
|
|
|
3877
3910
|
* Bottom anchored overlay optimized for mobile experiences.
|
|
3878
3911
|
* Provides optional header/footer slots that align with Dialog & Drawer APIs.
|
|
3879
3912
|
*/
|
|
3880
|
-
declare function Tray({ children, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, isOpen, onClose, isDismissable, transparentOverlay, primaryAction, secondaryAction, footerContent, maxHeight, maxWidth, contentPadding, showHandle, animationVariant, className, }: TrayProps): react_jsx_runtime.JSX.Element | null;
|
|
3913
|
+
declare function Tray({ children, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, isOpen, onClose, isDismissable, transparentOverlay, primaryAction, secondaryAction, footerContent, maxHeight, height, maxWidth, contentPadding, showHandle, animationVariant, className, }: TrayProps): react_jsx_runtime.JSX.Element | null;
|
|
3881
3914
|
declare namespace Tray {
|
|
3882
3915
|
var displayName: string;
|
|
3883
3916
|
}
|