@nice2dev/ui-mobile 1.0.28 → 1.1.5
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/index.cjs +7 -7
- package/dist/index.d.ts +14 -6
- package/dist/index.mjs +1908 -1900
- package/dist/style.css +1 -1
- package/dist/ui-mobile.css +1 -0
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -605,6 +605,14 @@ export declare interface NiceBottomSheetProps {
|
|
|
605
605
|
style?: CSSProperties;
|
|
606
606
|
/** Accessibility label */
|
|
607
607
|
ariaLabel?: string;
|
|
608
|
+
/** Sheet size (xs..xl) — scales the content font. */
|
|
609
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
610
|
+
/** Disabled: dims the content + blocks interaction. */
|
|
611
|
+
disabled?: boolean;
|
|
612
|
+
/** Loading: a spinner overlay + aria-busy. */
|
|
613
|
+
loading?: boolean;
|
|
614
|
+
/** Error message shown at the top of the sheet content. */
|
|
615
|
+
error?: string;
|
|
608
616
|
}
|
|
609
617
|
|
|
610
618
|
export declare interface NiceBottomSheetRef {
|
|
@@ -626,7 +634,7 @@ export declare interface NiceBottomSheetRef {
|
|
|
626
634
|
* </NiceBreakpointProvider>
|
|
627
635
|
* ```
|
|
628
636
|
*/
|
|
629
|
-
export declare function NiceBreakpointProvider({ breakpoints, debounceDelay, children, }: NiceBreakpointProviderProps): JSX.Element;
|
|
637
|
+
export declare function NiceBreakpointProvider({ breakpoints, debounceDelay, children, }: NiceBreakpointProviderProps): default_2.JSX.Element;
|
|
630
638
|
|
|
631
639
|
/**
|
|
632
640
|
* Provider props
|
|
@@ -800,7 +808,7 @@ export declare interface NiceGesturesProps extends Omit<HTMLAttributes<HTMLDivEl
|
|
|
800
808
|
* </NiceHapticsProvider>
|
|
801
809
|
* ```
|
|
802
810
|
*/
|
|
803
|
-
export declare function NiceHapticsProvider({ enabled, intensity, respectReducedMotion, customPatterns, children, }: NiceHapticsProviderProps): JSX.Element;
|
|
811
|
+
export declare function NiceHapticsProvider({ enabled, intensity, respectReducedMotion, customPatterns, children, }: NiceHapticsProviderProps): default_2.JSX.Element;
|
|
804
812
|
|
|
805
813
|
/**
|
|
806
814
|
* Provider props
|
|
@@ -1482,7 +1490,7 @@ export declare const NicePhoneKeyboard: default_2.ForwardRefExoticComponent<Omit
|
|
|
1482
1490
|
*/
|
|
1483
1491
|
export declare const NicePickerColumn: <T = string>(props: NicePickerColumnProps<T> & {
|
|
1484
1492
|
ref?: default_2.Ref<HTMLDivElement>;
|
|
1485
|
-
}) => JSX.Element;
|
|
1493
|
+
}) => default_2.JSX.Element;
|
|
1486
1494
|
|
|
1487
1495
|
/**
|
|
1488
1496
|
* Single column props
|
|
@@ -2973,7 +2981,7 @@ export declare interface UseCollapsingHeaderReturn {
|
|
|
2973
2981
|
/** Is header visible (for enterAlways mode) */
|
|
2974
2982
|
isVisible: boolean;
|
|
2975
2983
|
/** Ref to attach to scroll container */
|
|
2976
|
-
scrollRef: default_2.RefObject<HTMLElement>;
|
|
2984
|
+
scrollRef: default_2.RefObject<HTMLElement | null>;
|
|
2977
2985
|
/** Manual expand */
|
|
2978
2986
|
expand: () => void;
|
|
2979
2987
|
/** Manual collapse */
|
|
@@ -3337,7 +3345,7 @@ export declare interface UseVirtualListOptions {
|
|
|
3337
3345
|
itemCount: number;
|
|
3338
3346
|
itemHeight: number | ((index: number) => number);
|
|
3339
3347
|
overscan?: number;
|
|
3340
|
-
containerRef: default_2.RefObject<HTMLElement>;
|
|
3348
|
+
containerRef: default_2.RefObject<HTMLElement | null>;
|
|
3341
3349
|
}
|
|
3342
3350
|
|
|
3343
3351
|
export declare interface UseVirtualListResult {
|
|
@@ -3394,7 +3402,7 @@ export declare interface UseWheelPickerReturn<T = string> {
|
|
|
3394
3402
|
selectedIndex: number;
|
|
3395
3403
|
setSelectedIndex: (index: number) => void;
|
|
3396
3404
|
scrollToIndex: (index: number, animated?: boolean) => void;
|
|
3397
|
-
containerRef: default_2.RefObject<HTMLDivElement>;
|
|
3405
|
+
containerRef: default_2.RefObject<HTMLDivElement | null>;
|
|
3398
3406
|
}
|
|
3399
3407
|
|
|
3400
3408
|
/**
|