@wavy/react-ui 0.0.4 → 0.0.6
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/main.d.ts +61 -62
- package/dist/main.js +4 -4
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { PropsWithChildren, JSX } from 'react';
|
|
4
4
|
import { NoUndefinedField, SafeOmit, LocalFile, Prettify, AddPrefix, TaskResult, SanitizeFile, TaskResultStatus, Email, KnownFileTypeAlias, SuccessMessage, AuthProvider, TaskLog, UnsubscribeFunction, ErrorMessage, NonFunction } from '@wavy/types';
|
|
5
|
-
export { KnownFileTypeAlias } from '@wavy/types';
|
|
6
5
|
import { IconType } from 'react-icons';
|
|
7
6
|
import * as CSS from 'csstype';
|
|
8
7
|
import CSS__default from 'csstype';
|
|
@@ -1090,12 +1089,12 @@ declare const CLOCKWISE_SIDES: readonly ["top", "right", "bottom", "left"];
|
|
|
1090
1089
|
type BasicHtmlElementPosition = 0 | string;
|
|
1091
1090
|
type ElementSide = (typeof CLOCKWISE_SIDES)[number];
|
|
1092
1091
|
type BorderStyle = (typeof BORDER_STYLES)[number];
|
|
1093
|
-
type
|
|
1094
|
-
type Size$1 = 0 | "full" | `${"max" | "min" | "fit"}-content` | "auto" |
|
|
1092
|
+
type ElementDim = `${number}${"rem" | "px" | "%" | "vh" | "vw" | "em"}`;
|
|
1093
|
+
type Size$1 = 0 | "full" | `${"max" | "min" | "fit"}-content` | "auto" | ElementDim;
|
|
1095
1094
|
type Append5<range extends number> = range | `${range}${5}`;
|
|
1096
1095
|
type BasicColor$1 = CSS.Properties["color"] | keyof typeof CssColors | keyof typeof ColorResources | `${keyof typeof ColorResources}[0.${Append5<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9>}]` | (string & {}) | undefined;
|
|
1097
1096
|
type ElementCorners = `top${"Left" | "Right"}` | `bottom${"Left" | "Right"}`;
|
|
1098
|
-
interface
|
|
1097
|
+
interface BasicStyleProps extends Partial<Record<"spill", "visible" | "hidden" | "clip" | "scroll" | "auto" | Partial<Record<"x" | "y", "visible" | "hidden" | "clip" | "scroll" | "auto">> | undefined>>, Partial<Record<`${"min" | "max"}${"Height" | "Width"}`, Size$1 | undefined>> {
|
|
1099
1098
|
className?: string | undefined;
|
|
1100
1099
|
top?: BasicHtmlElementPosition | undefined;
|
|
1101
1100
|
bottom?: BasicHtmlElementPosition | undefined;
|
|
@@ -1106,17 +1105,17 @@ interface BasicHtmlElementStyleProps extends Partial<Record<"spill", "visible" |
|
|
|
1106
1105
|
allowTextSelection?: boolean | undefined;
|
|
1107
1106
|
disableSelection?: boolean | undefined;
|
|
1108
1107
|
pos?: "absolute" | "relative" | "sticky" | undefined;
|
|
1109
|
-
padding?: 0 | keyof typeof CssSpacing |
|
|
1110
|
-
padding: keyof typeof CssSpacing |
|
|
1108
|
+
padding?: 0 | keyof typeof CssSpacing | ElementDim | [
|
|
1109
|
+
padding: keyof typeof CssSpacing | ElementDim,
|
|
1111
1110
|
sides: ElementSide | "all" | ElementSide[]
|
|
1112
|
-
] | Partial<Record<ElementSide, keyof typeof CssSpacing |
|
|
1111
|
+
] | Partial<Record<ElementSide, keyof typeof CssSpacing | ElementDim>> | undefined;
|
|
1113
1112
|
translate?: Partial<{
|
|
1114
1113
|
x: string;
|
|
1115
1114
|
y: string;
|
|
1116
1115
|
}> | undefined;
|
|
1117
1116
|
fontSize?: keyof typeof FontSize | (string & {}) | undefined;
|
|
1118
1117
|
centerContent?: boolean | undefined;
|
|
1119
|
-
flex?:
|
|
1118
|
+
flex?: CSS.Properties["flex"] | undefined;
|
|
1120
1119
|
hide?: boolean | undefined;
|
|
1121
1120
|
row?: boolean | undefined;
|
|
1122
1121
|
fontWeight?: "bold" | "bolder" | "lighter" | "normal" | `${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}${"00" | "25" | "50"}` | undefined;
|
|
@@ -1128,28 +1127,28 @@ interface BasicHtmlElementStyleProps extends Partial<Record<"spill", "visible" |
|
|
|
1128
1127
|
backgroundColor?: BasicColor$1;
|
|
1129
1128
|
border?: string | undefined;
|
|
1130
1129
|
borderColor?: BasicColor$1 | [color: BasicColor$1, sides: ElementSide | "all" | ElementSide[]] | Partial<Record<ElementSide, BasicColor$1>> | undefined;
|
|
1131
|
-
borderWidth?:
|
|
1130
|
+
borderWidth?: ElementDim | [width: ElementDim, sides: ElementSide | "all" | ElementSide[]] | Partial<Record<ElementSide, ElementDim>> | undefined;
|
|
1132
1131
|
borderStyle?: BorderStyle | [style: BorderStyle, sides: ElementSide | "all" | ElementSide[]] | Partial<Record<ElementSide, BorderStyle>> | undefined;
|
|
1133
1132
|
blur?: string | undefined;
|
|
1134
1133
|
backdropBlur?: string | undefined;
|
|
1135
|
-
gap?: 0 | keyof typeof CssSpacing |
|
|
1134
|
+
gap?: 0 | keyof typeof CssSpacing | ElementDim | undefined;
|
|
1136
1135
|
cursor?: CSS.Properties["cursor"] | undefined;
|
|
1137
1136
|
scrollbarBackgroundColor?: BasicColor$1 | undefined;
|
|
1138
1137
|
scrollbarThumbColor?: BasicColor$1 | undefined;
|
|
1139
|
-
corners?: 0 |
|
|
1138
|
+
corners?: 0 | ElementDim | keyof typeof CssShapes | Partial<Record<ElementCorners, keyof typeof CssShapes | ElementDim | 0> & Record<"top" | "bottom", never>> | Partial<Record<ElementCorners, never> & Record<"top" | "bottom", keyof typeof CssShapes | ElementDim | 0>> | undefined;
|
|
1140
1139
|
align?: "start" | "center" | "end" | "stretch" | undefined;
|
|
1141
1140
|
justify?: "center" | "end" | "stretch" | "space-evenly" | "space-between" | undefined;
|
|
1142
1141
|
fade?: `0.${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}` | number;
|
|
1143
1142
|
debug?: boolean;
|
|
1144
1143
|
style?: CSS.Properties | undefined;
|
|
1145
1144
|
}
|
|
1146
|
-
declare const applyBasicStyle: (props: NoUndefinedField<
|
|
1145
|
+
declare const applyBasicStyle: (props: NoUndefinedField<BasicStyleProps>, log?: boolean) => NoUndefinedField<CSS.Properties>;
|
|
1147
1146
|
|
|
1148
1147
|
type CssProperties = SafeOmit<CSS.Properties, "backgroundColor" | "color"> & Partial<Record<"backgroundColor" | "color", BasicColor$1>>;
|
|
1149
1148
|
type CssPseudos = Partial<Record<CSS.Pseudos | `@media${" only " | " "}screen` | `${CSS.Pseudos | "@media"} ${string}`, CssProperties>>;
|
|
1150
1149
|
type InlineCss = CssPseudos & CssProperties;
|
|
1151
1150
|
|
|
1152
|
-
interface BasicDivProps extends
|
|
1151
|
+
interface BasicDivProps extends BasicStyleProps, BasicHtmlElementCoreProps<HTMLDivElement> {
|
|
1153
1152
|
flexWrap?: boolean | undefined;
|
|
1154
1153
|
grid?: boolean | undefined;
|
|
1155
1154
|
gridCols?: string | undefined;
|
|
@@ -1178,10 +1177,10 @@ interface BaseProps$2 extends SafeOmit<BasicDivProps, "css" | "row" | "size" | "
|
|
|
1178
1177
|
/**
|
|
1179
1178
|
* @default "md"
|
|
1180
1179
|
*/
|
|
1181
|
-
size?: (typeof BUTTON_PRESET_SIZES)[number] |
|
|
1180
|
+
size?: (typeof BUTTON_PRESET_SIZES)[number] | ElementDim;
|
|
1182
1181
|
variant?: "outline" | "standard";
|
|
1183
1182
|
borderColor?: BasicColor$1;
|
|
1184
|
-
iconSize?: (typeof ICON_PRESET_SIZES)[number] |
|
|
1183
|
+
iconSize?: (typeof ICON_PRESET_SIZES)[number] | ElementDim;
|
|
1185
1184
|
onMouseDown?: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
1186
1185
|
}
|
|
1187
1186
|
type OptionalProps$2 = {
|
|
@@ -1198,7 +1197,7 @@ type OptionalProps$2 = {
|
|
|
1198
1197
|
type BasicButtonProps = BaseProps$2 & OptionalProps$2 & {};
|
|
1199
1198
|
declare function BasicButton(props: BasicButtonProps): react_jsx_runtime.JSX.Element;
|
|
1200
1199
|
|
|
1201
|
-
interface BasicImgProps extends
|
|
1200
|
+
interface BasicImgProps extends BasicStyleProps, BasicHtmlElementCoreProps<HTMLImageElement> {
|
|
1202
1201
|
src: string;
|
|
1203
1202
|
alt?: string;
|
|
1204
1203
|
fill?: boolean;
|
|
@@ -1238,7 +1237,7 @@ interface ListItemStyleProps {
|
|
|
1238
1237
|
|
|
1239
1238
|
type TextAlign = "left" | "right" | "center" | "justify" | "match-parent";
|
|
1240
1239
|
|
|
1241
|
-
interface BasicSpanProps extends
|
|
1240
|
+
interface BasicSpanProps extends BasicStyleProps, BasicHtmlElementCoreProps<HTMLSpanElement> {
|
|
1242
1241
|
text?: string;
|
|
1243
1242
|
link?: boolean;
|
|
1244
1243
|
fakeHyperlink?: boolean;
|
|
@@ -1247,10 +1246,9 @@ interface BasicSpanProps extends BasicHtmlElementStyleProps, BasicHtmlElementCor
|
|
|
1247
1246
|
italic?: boolean;
|
|
1248
1247
|
strikeThrough?: boolean;
|
|
1249
1248
|
underline?: boolean;
|
|
1250
|
-
clickable?: boolean;
|
|
1251
1249
|
textAlign?: TextAlign;
|
|
1252
1250
|
ellipsis?: boolean;
|
|
1253
|
-
|
|
1251
|
+
clickable?: boolean;
|
|
1254
1252
|
sx?: InlineCss;
|
|
1255
1253
|
children?: React.ReactNode;
|
|
1256
1254
|
}
|
|
@@ -1266,15 +1264,15 @@ type TableColumnConfig<T extends string = string> = {
|
|
|
1266
1264
|
};
|
|
1267
1265
|
|
|
1268
1266
|
type RootStyles = {
|
|
1269
|
-
gap?:
|
|
1270
|
-
rowGap?:
|
|
1267
|
+
gap?: BasicStyleProps["gap"];
|
|
1268
|
+
rowGap?: BasicStyleProps["gap"];
|
|
1271
1269
|
/**@default "onSurface[0.25]" */
|
|
1272
1270
|
separatorColor?: BasicColor$1;
|
|
1273
1271
|
/**@default "lg" */
|
|
1274
|
-
columnGap?:
|
|
1272
|
+
columnGap?: BasicStyleProps["gap"];
|
|
1275
1273
|
textAlign?: "left" | "center" | "right";
|
|
1276
1274
|
/**@default "sm" */
|
|
1277
|
-
padding?:
|
|
1275
|
+
padding?: BasicStyleProps["padding"];
|
|
1278
1276
|
corners?: BasicDivProps["corners"];
|
|
1279
1277
|
spill?: BasicDivProps["spill"];
|
|
1280
1278
|
fontSize?: BasicDivProps["fontSize"];
|
|
@@ -1298,7 +1296,7 @@ declare const BasicTable: {
|
|
|
1298
1296
|
Body: typeof Body;
|
|
1299
1297
|
};
|
|
1300
1298
|
declare namespace BasicTableProps {
|
|
1301
|
-
interface RootProps<T extends string> extends RootStyles, Partial<Record<"width" | "height" | `${"min" | "max"}${"Height" | "Width"}`,
|
|
1299
|
+
interface RootProps<T extends string> extends RootStyles, Partial<Record<"width" | "height" | `${"min" | "max"}${"Height" | "Width"}`, BasicStyleProps["width"]>> {
|
|
1302
1300
|
selectable?: boolean;
|
|
1303
1301
|
columns: (T | TableColumnConfig<T>)[];
|
|
1304
1302
|
backgroundColor?: BasicColor$1;
|
|
@@ -1508,7 +1506,7 @@ interface TextFieldProps extends AdditionalElements {
|
|
|
1508
1506
|
maxChars?: number;
|
|
1509
1507
|
showCharCounter?: boolean;
|
|
1510
1508
|
helperText?: string;
|
|
1511
|
-
indent?:
|
|
1509
|
+
indent?: ElementDim | Partial<Record<"left" | "right", ElementDim>>;
|
|
1512
1510
|
onPasteClick?: (text: string) => void;
|
|
1513
1511
|
width?: BasicDivProps["width"];
|
|
1514
1512
|
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -1641,7 +1639,7 @@ declare namespace EmptyStateProps {
|
|
|
1641
1639
|
}
|
|
1642
1640
|
interface IndicatorProps {
|
|
1643
1641
|
/**@default "4rem" */
|
|
1644
|
-
size?:
|
|
1642
|
+
size?: ElementDim;
|
|
1645
1643
|
element: JSX$1.Element;
|
|
1646
1644
|
disableFade?: boolean;
|
|
1647
1645
|
}
|
|
@@ -1680,7 +1678,7 @@ interface BadgeProps {
|
|
|
1680
1678
|
placement?: FloatProps["placement"];
|
|
1681
1679
|
circleChild?: boolean;
|
|
1682
1680
|
asChild?: boolean;
|
|
1683
|
-
offset?:
|
|
1681
|
+
offset?: ElementDim;
|
|
1684
1682
|
}
|
|
1685
1683
|
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
1686
1684
|
|
|
@@ -2155,7 +2153,7 @@ interface ItemInfoProps {
|
|
|
2155
2153
|
declare function ItemInfo(props: ItemInfoProps): react_jsx_runtime.JSX.Element;
|
|
2156
2154
|
|
|
2157
2155
|
type MenuPlacement = MenuRootProps["positioning"]["placement"];
|
|
2158
|
-
interface MenuProps<Item extends string> extends Partial<Record<`${"max" | "min"}${"Height" | "Width"}` | "height" | "width",
|
|
2156
|
+
interface MenuProps<Item extends string> extends Partial<Record<`${"max" | "min"}${"Height" | "Width"}` | "height" | "width", ElementDim | 0>> {
|
|
2159
2157
|
inDialog?: boolean;
|
|
2160
2158
|
/**
|
|
2161
2159
|
* @default "right-start"
|
|
@@ -2203,24 +2201,6 @@ type MenuItems<Key extends string = string> = Record<Key, ({
|
|
|
2203
2201
|
disabled?: boolean;
|
|
2204
2202
|
}>;
|
|
2205
2203
|
|
|
2206
|
-
declare function usePageSliderController<T = void>(defaultPage?: number): UsePageSliderControllerReturn<T>;
|
|
2207
|
-
type UsePageSliderControllerReturn<T = void> = {
|
|
2208
|
-
defaultPage: number;
|
|
2209
|
-
goTo: (pageIndex: number, options?: Partial<{
|
|
2210
|
-
/**@default false */
|
|
2211
|
-
ignoreOutOfBoundsCheck: boolean;
|
|
2212
|
-
/**@default "smooth" */
|
|
2213
|
-
transition: "instant" | "smooth";
|
|
2214
|
-
/**The duration of a `smooth` transition in milliseconds.
|
|
2215
|
-
* @default 200 */
|
|
2216
|
-
transitionDuration: number;
|
|
2217
|
-
}>) => void;
|
|
2218
|
-
echo: (message?: string) => T;
|
|
2219
|
-
getActivePage: () => number;
|
|
2220
|
-
isPageActive: (pageIndex: number) => boolean;
|
|
2221
|
-
onPageChange: (callback: (from: number, to: number) => void) => void;
|
|
2222
|
-
};
|
|
2223
|
-
|
|
2224
2204
|
interface PageSliderProps<T> {
|
|
2225
2205
|
controller?: UsePageSliderControllerReturn<T>;
|
|
2226
2206
|
spill?: BasicDivProps["spill"];
|
|
@@ -2290,7 +2270,7 @@ declare function Paper(props: PaperProps): react_jsx_runtime.JSX.Element;
|
|
|
2290
2270
|
|
|
2291
2271
|
interface StatusProps {
|
|
2292
2272
|
status: TaskResultStatus;
|
|
2293
|
-
indicatorSize?:
|
|
2273
|
+
indicatorSize?: ElementDim;
|
|
2294
2274
|
indicatorOnly?: boolean;
|
|
2295
2275
|
}
|
|
2296
2276
|
declare function Status(props: StatusProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2359,7 +2339,7 @@ declare const Timeline: {
|
|
|
2359
2339
|
declare namespace TimelineProps {
|
|
2360
2340
|
interface RootProps {
|
|
2361
2341
|
/**@default "fit-content" */
|
|
2362
|
-
width?:
|
|
2342
|
+
width?: BasicStyleProps["width"];
|
|
2363
2343
|
/**@default "onSurface[0.5]" */
|
|
2364
2344
|
lineSeparatorColor?: BasicColor$1;
|
|
2365
2345
|
rowGap?: string;
|
|
@@ -2374,12 +2354,12 @@ declare namespace TimelineProps {
|
|
|
2374
2354
|
/**The node that should be placed `after` (to the right of) the separator */
|
|
2375
2355
|
after?: React.ReactNode;
|
|
2376
2356
|
disabled?: boolean;
|
|
2377
|
-
styles?: Partial<Record<"before" | "after",
|
|
2378
|
-
indicator: Partial<
|
|
2357
|
+
styles?: Partial<Record<"before" | "after", BasicStyleProps> & {
|
|
2358
|
+
indicator: Partial<BasicStyleProps & {
|
|
2379
2359
|
/**@default ".6rem" */
|
|
2380
|
-
size:
|
|
2360
|
+
size: BasicStyleProps["size"];
|
|
2381
2361
|
/**@default "circle" */
|
|
2382
|
-
corners:
|
|
2362
|
+
corners: BasicStyleProps["corners"];
|
|
2383
2363
|
/**@default "onSurface" */
|
|
2384
2364
|
backgroundColor: BasicColor$1;
|
|
2385
2365
|
}>;
|
|
@@ -2405,7 +2385,7 @@ type OptionalProps$1 = {
|
|
|
2405
2385
|
type SeparatorProps = BaseProps$1 & OptionalProps$1;
|
|
2406
2386
|
declare function Separator(props: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
2407
2387
|
|
|
2408
|
-
interface DisclaimerProps extends Partial<Record<"top" | "left" | "bottom" | "right",
|
|
2388
|
+
interface DisclaimerProps extends Partial<Record<"top" | "left" | "bottom" | "right", ElementDim | 0>> {
|
|
2409
2389
|
severity: "warning" | "error" | "info";
|
|
2410
2390
|
message: string;
|
|
2411
2391
|
pos?: BasicDivProps["pos"];
|
|
@@ -2418,7 +2398,7 @@ interface DisclaimerProps extends Partial<Record<"top" | "left" | "bottom" | "ri
|
|
|
2418
2398
|
/**
|
|
2419
2399
|
* @default "1rem"
|
|
2420
2400
|
*/
|
|
2421
|
-
iconSize?:
|
|
2401
|
+
iconSize?: ElementDim;
|
|
2422
2402
|
/**
|
|
2423
2403
|
* @default "md"
|
|
2424
2404
|
*/
|
|
@@ -2970,18 +2950,18 @@ declare const CopyButton: (props: {
|
|
|
2970
2950
|
}) => react_jsx_runtime.JSX.Element;
|
|
2971
2951
|
|
|
2972
2952
|
interface Props {
|
|
2973
|
-
size?:
|
|
2953
|
+
size?: ElementDim;
|
|
2974
2954
|
disabled?: boolean;
|
|
2975
2955
|
backgroundColor?: BasicColor$1;
|
|
2976
2956
|
color?: BasicColor$1;
|
|
2977
|
-
iconSize?:
|
|
2957
|
+
iconSize?: ElementDim;
|
|
2978
2958
|
padding?: BasicDivProps["padding"];
|
|
2979
2959
|
onClick?: () => void;
|
|
2980
2960
|
}
|
|
2981
2961
|
declare const PositiveButton: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
2982
2962
|
declare const NegativeButton: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
2983
2963
|
|
|
2984
|
-
interface BasicFileInputProps extends
|
|
2964
|
+
interface BasicFileInputProps extends BasicStyleProps {
|
|
2985
2965
|
allowDrop?: boolean;
|
|
2986
2966
|
fileClass?: string;
|
|
2987
2967
|
/**
|
|
@@ -3000,7 +2980,7 @@ interface BasicFileInputProps extends BasicHtmlElementStyleProps {
|
|
|
3000
2980
|
onReject?: (files: File[], localFiles: LocalFile[]) => void;
|
|
3001
2981
|
}
|
|
3002
2982
|
|
|
3003
|
-
interface UploadFileButtonProps extends SafeOmit<BasicFileInputProps, "children" | keyof
|
|
2983
|
+
interface UploadFileButtonProps extends SafeOmit<BasicFileInputProps, "children" | keyof BasicStyleProps | "allowDrop"> {
|
|
3004
2984
|
fileClass?: string;
|
|
3005
2985
|
fontSize?: BasicDivProps["fontSize"];
|
|
3006
2986
|
width?: BasicDivProps["width"];
|
|
@@ -3064,13 +3044,14 @@ declare function useAsyncEffect(asyncEffect: () => Promise<unknown>, deps: React
|
|
|
3064
3044
|
* @param effect — Imperative function that can return a cleanup function
|
|
3065
3045
|
* @param deps — If present, effect will only activate if the values in the list change.
|
|
3066
3046
|
*/
|
|
3067
|
-
declare function
|
|
3047
|
+
declare function usePostRenderEffect(effect: React__default.EffectCallback, deps: React__default.DependencyList): void;
|
|
3068
3048
|
|
|
3069
|
-
interface ComputedStyleProps extends SafeOmit<
|
|
3049
|
+
interface ComputedStyleProps extends SafeOmit<BasicStyleProps, "className"> {
|
|
3070
3050
|
children?: React__default.ReactNode;
|
|
3071
3051
|
}
|
|
3072
3052
|
declare function useComputedStyle(elementTag: keyof HTMLElementTagNameMap, props: ComputedStyleProps, options?: Partial<{
|
|
3073
|
-
|
|
3053
|
+
debug: boolean;
|
|
3054
|
+
inject: () => CSS.Properties;
|
|
3074
3055
|
}>): {
|
|
3075
3056
|
style: {
|
|
3076
3057
|
[key: string]: string;
|
|
@@ -3093,6 +3074,24 @@ declare function useManagedRef<T extends NonFunction<unknown>>(initialValue: T):
|
|
|
3093
3074
|
delete: () => void;
|
|
3094
3075
|
};
|
|
3095
3076
|
|
|
3077
|
+
declare function usePageSliderController<T = void>(defaultPage?: number): UsePageSliderControllerReturn<T>;
|
|
3078
|
+
type UsePageSliderControllerReturn<T = void> = {
|
|
3079
|
+
defaultPage: number;
|
|
3080
|
+
goTo: (pageIndex: number, options?: Partial<{
|
|
3081
|
+
/**@default false */
|
|
3082
|
+
ignoreOutOfBoundsCheck: boolean;
|
|
3083
|
+
/**@default "smooth" */
|
|
3084
|
+
transition: "instant" | "smooth";
|
|
3085
|
+
/**The duration of a `smooth` transition in milliseconds.
|
|
3086
|
+
* @default 200 */
|
|
3087
|
+
transitionDuration: number;
|
|
3088
|
+
}>) => void;
|
|
3089
|
+
echo: (message?: string) => T;
|
|
3090
|
+
getActivePage: () => number;
|
|
3091
|
+
isPageActive: (pageIndex: number) => boolean;
|
|
3092
|
+
onPageChange: (callback: (from: number, to: number) => void) => void;
|
|
3093
|
+
};
|
|
3094
|
+
|
|
3096
3095
|
declare function usePopoverContext(): {
|
|
3097
3096
|
open: () => void;
|
|
3098
3097
|
close: () => void;
|
|
@@ -3168,4 +3167,4 @@ declare function remAsPx(rem: number): string;
|
|
|
3168
3167
|
declare function isOverflown(element: HTMLElement): boolean;
|
|
3169
3168
|
declare function computedCssVariable(cssVariable: string): string;
|
|
3170
3169
|
|
|
3171
|
-
export { AttachmentsButton, AttachmentsDialog, Avatar, type AvatarProps, Badge, type BadgeProps, BasicButton, type BasicColor$1 as BasicColor, BasicDiv,
|
|
3170
|
+
export { AttachmentsButton, AttachmentsDialog, Avatar, type AvatarProps, Badge, type BadgeProps, BasicButton, type BasicColor$1 as BasicColor, BasicDiv, BasicImg, BasicOl, BasicOption, BasicSelect, BasicSpan, type BasicStyleProps, BasicTable, BasicTableProps, _default as Calendar, CalendarDialog, CancelButton, Card, CardProps, Checkbox, type CheckboxProps, ColorResources, type ComputedStyleProps, ConfirmationDialog, type ConfirmationDialogProps, CopyButton, CssColors, type CssProperties, CssShapes, CssSpacing, DeleteButton, Dialog, DialogProps, Disclaimer, type DisclaimerProps, DownloadButton, EditButton, Editable, type EditableProps, EmailComposer, EmptyState, EmptyStateProps, ErrorTooltip, ExpandableButton, FancyFormDialog, type FancyFormDialogProps, FileDropzone, type FileDropzoneProps, FileViewer, FileViewerProps, FontSize, Indicator, type IndicatorProps, type InlineCss, ItemInfo, type ItemInfoProps, JsonViewer, type JwtVerificationStatus, JwtVerifier, type JwtVerifierProps, MediaCard, MediaCardProps, Menu, type MenuPlacement, MoneyDisplayCard, NegativeButton, NextButton, NoButton, OpenButton, OptionsButton, PageSlider, type PageSliderProps, Paper, type PaperProps, PasteButton, PaymentOptionsButton, PaymentOptionsDialog, PictureUploader, Popover, type PopoverProps, PositiveButton, PreviousButton, ProfileCard, ProfileCardProps, ReceiptCard, SaveButton, SearchTextField, SegmentedControls, type SegmentedControlsProps, SendButton, Separator, type SeparatorProps, SignInWidget, SimpleFormDialog, type SimpleFormDialogProps, Status, type StatusProps, Stepper, type StepperProps, SubmitButton, Tag, type TagProps, TaskLogger, TaskResultDialog, Terminal, TextField, type TextFieldProps, Timeline, TimelineProps, Tooltip, type TooltipPlacement, type TooltipProps, UploadButton, UploadReceiptButton, type UseDialogControllerReturn, type UsePageSliderControllerReturn, UserProfile, VerifyButton, VerifyTextField, UiProvider as WavyUi, YesButton, YesNoButtonGroup, YesOrNoForm, applyBasicStyle, bankTransferPaymentOption, borderRadius, buildCSS, computedCssVariable, convertHexUnitTo256, cssTransition, definePaymentOption, disabledBorderRadius, dragElement, ellipsis, flexCenter, getFileIcon, getScrollParent, hexToRgba, inAppPaymentOption, isOverflown, isSpanMultiLine, isValidHex, nativeEllipsis, noSpaceStyle, remAsPx, remToPx, resolveBasicColor, restrictLineCount, rgbToRgba, screenHasMaxWidth, screenHasMinWidth, solidBorder, tiledBackground, useAsyncEffect, useComputedStyle, useDialogController, useEventEmitter, useManagedRef, usePageSliderController, usePopoverContext, usePostRenderEffect, useRerender, useSessionStorage };
|