@wavy/react-ui 0.0.50 → 0.0.52
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 +33 -7
- package/dist/main.js +8 -8
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { NoUndefinedField, SafeOmit, FileDetails, Prettify, AddPrefix, TaskResul
|
|
|
6
6
|
import { IconType } from 'react-icons';
|
|
7
7
|
import * as CSS from 'csstype';
|
|
8
8
|
import CSS__default from 'csstype';
|
|
9
|
-
import { AvatarGroupProps as AvatarGroupProps$1, SpinnerProps as SpinnerProps$1, Drawer as Drawer$1, FileUpload, InputProps, InputAddonProps, InputElementProps, AvatarRootProps, FloatProps, CloseButtonProps, Dialog as Dialog$1, MenuRootProps, SegmentGroupRootProps, Steps, Tooltip as Tooltip$1, SeparatorProps as SeparatorProps$1 } from '@chakra-ui/react';
|
|
9
|
+
import { SwitchRootProps, AvatarGroupProps as AvatarGroupProps$1, SpinnerProps as SpinnerProps$1, Drawer as Drawer$1, FileUpload, InputProps, InputAddonProps, InputElementProps, AvatarRootProps, FloatProps, CloseButtonProps, Dialog as Dialog$1, MenuRootProps, SegmentGroupRootProps, Steps, Tooltip as Tooltip$1, SeparatorProps as SeparatorProps$1 } from '@chakra-ui/react';
|
|
10
10
|
export { MenuRootProps, UseStepsProps, useSteps } from '@chakra-ui/react';
|
|
11
11
|
import { JSX as JSX$1 } from '@emotion/react/jsx-runtime';
|
|
12
12
|
import { StepsVariant } from 'node_modules/@chakra-ui/react/dist/types/styled-system/generated/recipes.gen';
|
|
@@ -1478,6 +1478,27 @@ interface BasicOptionProps extends Partial<Record<"leadingEl" | "trailingEl", Re
|
|
|
1478
1478
|
}
|
|
1479
1479
|
declare function BasicOption(props: BasicOptionProps): react_jsx_runtime.JSX.Element;
|
|
1480
1480
|
|
|
1481
|
+
type Style = SafeOmit<CSS.Properties, "backgroundColor" | "color" | "borderColor" | "fontSize"> & {
|
|
1482
|
+
backgroundColor?: BasicColor$1;
|
|
1483
|
+
color?: BasicColor$1;
|
|
1484
|
+
borderColor?: BasicColor$1;
|
|
1485
|
+
fontSize?: keyof typeof FontSize | (string & {});
|
|
1486
|
+
};
|
|
1487
|
+
interface SwitchProps extends Partial<Record<`${"track" | "thumb"}Indicator`, Partial<Record<"on" | "off", React__default.ReactNode>>>>, Partial<Record<`${"thumb" | "track"}Style`,
|
|
1488
|
+
/** Apply conditional styles based on the `checked` state. */
|
|
1489
|
+
(checked: boolean) => Style>> {
|
|
1490
|
+
defaultChecked?: boolean;
|
|
1491
|
+
checked?: boolean;
|
|
1492
|
+
label?: string | ((checked: boolean) => string);
|
|
1493
|
+
labelStyle?: (checked: boolean) => Style;
|
|
1494
|
+
disabled?: boolean;
|
|
1495
|
+
size?: SwitchRootProps["size"];
|
|
1496
|
+
/**@default "solid" */
|
|
1497
|
+
variant?: SwitchRootProps["variant"];
|
|
1498
|
+
onChange?: (checked: boolean) => void;
|
|
1499
|
+
}
|
|
1500
|
+
declare function Switch(props: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
1501
|
+
|
|
1481
1502
|
interface DebounceProps {
|
|
1482
1503
|
/**@default 300 */
|
|
1483
1504
|
delay?: number;
|
|
@@ -3292,10 +3313,12 @@ declare function usePostRenderEffect(effect: React__default.EffectCallback, deps
|
|
|
3292
3313
|
interface ComputedStyleProps extends SafeOmit<BasicStyleProps, "className"> {
|
|
3293
3314
|
children?: React__default.ReactNode;
|
|
3294
3315
|
}
|
|
3295
|
-
declare function useComputedStyle(
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3316
|
+
declare function useComputedStyle(options: {
|
|
3317
|
+
/**@default "div" */
|
|
3318
|
+
tag?: keyof HTMLElementTagNameMap;
|
|
3319
|
+
style: ComputedStyleProps;
|
|
3320
|
+
inject?: () => CSS.Properties;
|
|
3321
|
+
}): {
|
|
3299
3322
|
style: {
|
|
3300
3323
|
[key: string]: string;
|
|
3301
3324
|
};
|
|
@@ -3309,6 +3332,7 @@ declare function useStore<T extends NonFunction<any>>(options: {
|
|
|
3309
3332
|
* @warning Attempting to store a function will throw an error.
|
|
3310
3333
|
*/
|
|
3311
3334
|
defaultValue: CastFn<T>;
|
|
3335
|
+
readOnly?: boolean;
|
|
3312
3336
|
/**Re-renders the component when the value is changed
|
|
3313
3337
|
* @default false
|
|
3314
3338
|
*/
|
|
@@ -3350,6 +3374,7 @@ declare function useStore<T extends NonFunction<any>>(options: {
|
|
|
3350
3374
|
skipRender: boolean;
|
|
3351
3375
|
/** Skips the validate callback */
|
|
3352
3376
|
skipValidation: boolean;
|
|
3377
|
+
bypassReadOnly: boolean;
|
|
3353
3378
|
}>) => void;
|
|
3354
3379
|
read: () => T;
|
|
3355
3380
|
/** Completely removes all the stored data (including persisted data) */
|
|
@@ -3384,6 +3409,7 @@ declare function useRerender(): {
|
|
|
3384
3409
|
triggerRerender: () => void;
|
|
3385
3410
|
};
|
|
3386
3411
|
|
|
3412
|
+
/**@deprecated Migrate to useStore (set the reactive option to true, and configure the persist option) */
|
|
3387
3413
|
declare function useSessionStorage<Value extends NonFunction<any>>(key: string, initialValue: Value): readonly [Value, (update: Value | ((previousValue: Value) => Value)) => void, () => void];
|
|
3388
3414
|
|
|
3389
3415
|
declare function useEvent<EventMapper extends Record<string, any>>(options?: Partial<{
|
|
@@ -3401,7 +3427,7 @@ declare function useEvent<EventMapper extends Record<string, any>>(options?: Par
|
|
|
3401
3427
|
dettach: (key: keyof EventMapper) => boolean;
|
|
3402
3428
|
};
|
|
3403
3429
|
|
|
3404
|
-
|
|
3430
|
+
/**@deprecated Migrate to useStore */
|
|
3405
3431
|
declare function useSmartState<T>(value?: CastFn<T>): readonly [T, (value: T | ((previousValue: T) => T), options?: {
|
|
3406
3432
|
skipRender: boolean;
|
|
3407
3433
|
}) => void];
|
|
@@ -3470,4 +3496,4 @@ declare function remAsPx(rem: number): string;
|
|
|
3470
3496
|
declare function isOverflown(element: HTMLElement): boolean;
|
|
3471
3497
|
declare function computedCssVariable(cssVariable: string): string;
|
|
3472
3498
|
|
|
3473
|
-
export { AttachmentsButton, AttachmentsDialog, Avatar, AvatarGroup, type AvatarGroupProps, 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, Debounce, type DebounceProps, DeleteButton, Dialog, DialogProps, Disclaimer, type DisclaimerProps, DownloadButton, Drawer, DrawerProps, EditButton, Editable, type EditableProps, EmailComposer, EmptyState, EmptyStateProps, ErrorTooltip, EventContainer, type EventContainerProps, 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, PageIndicator, type PageIndicatorProps, PageSlider, type PageSliderProps, Paper, type PaperProps, PasteButton, PaymentOptionsButton, PaymentOptionsDialog, PictureUploader, Popover, type PopoverProps, PositiveButton, PreviousButton, ProfileCard, ProfileCardProps, ProgressBar, type ProgressBarProps, ReceiptCard, SaveButton, SearchTextField, SegmentedControls, type SegmentedControlsProps, SendButton, Separator, type SeparatorProps, SignInWidget, SimpleFormDialog, type SimpleFormDialogProps, Spinner, type SpinnerProps, 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 UseModalControlsReturn, type UsePageSliderControllerReturn, UserProfile, VerifyButton, VerifyTextField, UiProvider as WavyUi, YesButton, YesNoButtonGroup, YesOrNoForm, applyBasicStyle, bankTransferPaymentOption, borderRadius, buildCSS, computedCssVariable, convertHexUnitTo256, cssTransition, definePaymentOption, disabledBorderRadius, dragElement, ellipsis, flexCenter, getFileIcon, getPaperDim, getScrollParent, hexToRgba, inAppPaymentOption, isOverflown, isSpanMultiLine, isValidHex, nativeEllipsis, noSpaceStyle, paperStyle, remAsPx, remToPx, resolveBasicColor, restrictLineCount, rgbToRgba, screenHasMaxWidth, screenHasMinWidth, solidBorder, stripHtml, tiledBackground, useAsyncEffect, useComputedStyle, useEvent, useModalControls, usePageSliderController, usePopoverContext, usePostRenderEffect, useRerender, useSessionStorage, useSmartState, useStore };
|
|
3499
|
+
export { AttachmentsButton, AttachmentsDialog, Avatar, AvatarGroup, type AvatarGroupProps, 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, Debounce, type DebounceProps, DeleteButton, Dialog, DialogProps, Disclaimer, type DisclaimerProps, DownloadButton, Drawer, DrawerProps, EditButton, Editable, type EditableProps, EmailComposer, EmptyState, EmptyStateProps, ErrorTooltip, EventContainer, type EventContainerProps, 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, PageIndicator, type PageIndicatorProps, PageSlider, type PageSliderProps, Paper, type PaperProps, PasteButton, PaymentOptionsButton, PaymentOptionsDialog, PictureUploader, Popover, type PopoverProps, PositiveButton, PreviousButton, ProfileCard, ProfileCardProps, ProgressBar, type ProgressBarProps, ReceiptCard, SaveButton, SearchTextField, SegmentedControls, type SegmentedControlsProps, SendButton, Separator, type SeparatorProps, SignInWidget, SimpleFormDialog, type SimpleFormDialogProps, Spinner, type SpinnerProps, Status, type StatusProps, Stepper, type StepperProps, SubmitButton, Switch, type SwitchProps, Tag, type TagProps, TaskLogger, TaskResultDialog, Terminal, TextField, type TextFieldProps, Timeline, TimelineProps, Tooltip, type TooltipPlacement, type TooltipProps, UploadButton, UploadReceiptButton, type UseModalControlsReturn, type UsePageSliderControllerReturn, UserProfile, VerifyButton, VerifyTextField, UiProvider as WavyUi, YesButton, YesNoButtonGroup, YesOrNoForm, applyBasicStyle, bankTransferPaymentOption, borderRadius, buildCSS, computedCssVariable, convertHexUnitTo256, cssTransition, definePaymentOption, disabledBorderRadius, dragElement, ellipsis, flexCenter, getFileIcon, getPaperDim, getScrollParent, hexToRgba, inAppPaymentOption, isOverflown, isSpanMultiLine, isValidHex, nativeEllipsis, noSpaceStyle, paperStyle, remAsPx, remToPx, resolveBasicColor, restrictLineCount, rgbToRgba, screenHasMaxWidth, screenHasMinWidth, solidBorder, stripHtml, tiledBackground, useAsyncEffect, useComputedStyle, useEvent, useModalControls, usePageSliderController, usePopoverContext, usePostRenderEffect, useRerender, useSessionStorage, useSmartState, useStore };
|