@clickpalm/react 1.0.0 → 1.1.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/index.d.ts +56 -33
- package/dist/index.js +522 -249
- package/dist/index.mjs +456 -186
- package/package.json +6 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import * as _stitches_react_types_styled_component from '@stitches/react/types/s
|
|
|
4
4
|
import * as _stitches_react_types_stitches from '@stitches/react/types/stitches';
|
|
5
5
|
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
|
|
6
6
|
import * as react from 'react';
|
|
7
|
-
import react__default, { ComponentProps, ComponentPropsWithoutRef,
|
|
7
|
+
import react__default, { ComponentProps, ComponentPropsWithoutRef, ElementType, ReactNode, InputHTMLAttributes, SVGProps, CSSProperties } from 'react';
|
|
8
8
|
import * as _stitches_react_types_util from '@stitches/react/types/util';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
10
|
import * as Avatar$1 from '@radix-ui/react-avatar';
|
|
11
11
|
import * as Checkbox$1 from '@radix-ui/react-checkbox';
|
|
12
|
-
import * as Progress from '@radix-ui/react-progress';
|
|
13
12
|
import { VariantProps, CSS } from '@stitches/react';
|
|
13
|
+
import * as Progress from '@radix-ui/react-progress';
|
|
14
14
|
import * as CustomSelect from '@radix-ui/react-select';
|
|
15
15
|
import * as OneTimePasswordField from '@radix-ui/react-one-time-password-field';
|
|
16
16
|
|
|
@@ -2304,10 +2304,7 @@ interface CheckboxProps extends ComponentProps<typeof CheckboxContainer> {
|
|
|
2304
2304
|
onCheckedChange: (checked: boolean | 'indeterminate') => void;
|
|
2305
2305
|
errorMessage?: string;
|
|
2306
2306
|
}
|
|
2307
|
-
declare
|
|
2308
|
-
declare namespace Checkbox {
|
|
2309
|
-
var displayName: string;
|
|
2310
|
-
}
|
|
2307
|
+
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
2311
2308
|
|
|
2312
2309
|
interface DatePickerInputProps {
|
|
2313
2310
|
label: string;
|
|
@@ -2316,7 +2313,7 @@ interface DatePickerInputProps {
|
|
|
2316
2313
|
}
|
|
2317
2314
|
declare const Datepicker: ({ label, value, onChange }: DatePickerInputProps) => react_jsx_runtime.JSX.Element;
|
|
2318
2315
|
|
|
2319
|
-
declare const
|
|
2316
|
+
declare const StyledHr: _stitches_react_types_styled_component.StyledComponent<"hr", {
|
|
2320
2317
|
variant?: "gray" | "purple" | undefined;
|
|
2321
2318
|
}, {
|
|
2322
2319
|
sm: "(min-width: 375px)";
|
|
@@ -2536,7 +2533,15 @@ declare const Hr: _stitches_react_types_styled_component.StyledComponent<"hr", {
|
|
|
2536
2533
|
textShadow: "shadows";
|
|
2537
2534
|
transition: "transitions";
|
|
2538
2535
|
zIndex: "zIndices";
|
|
2539
|
-
}, {}>>;
|
|
2536
|
+
}, {}>>;
|
|
2537
|
+
type CustomCSS$4 = CSS<typeof config>;
|
|
2538
|
+
interface HrProps extends ComponentPropsWithoutRef<'hr'>, VariantProps<typeof StyledHr> {
|
|
2539
|
+
as?: ElementType;
|
|
2540
|
+
css?: CustomCSS$4;
|
|
2541
|
+
children?: React.ReactNode;
|
|
2542
|
+
variant?: 'gray' | 'purple';
|
|
2543
|
+
}
|
|
2544
|
+
declare const Hr: react.ForwardRefExoticComponent<HrProps & react.RefAttributes<HTMLHRElement>>;
|
|
2540
2545
|
|
|
2541
2546
|
interface ModalProps {
|
|
2542
2547
|
open: boolean;
|
|
@@ -3064,6 +3069,27 @@ declare const Tooltip: {
|
|
|
3064
3069
|
displayName: string;
|
|
3065
3070
|
};
|
|
3066
3071
|
|
|
3072
|
+
interface LoadingSpinnerProps {
|
|
3073
|
+
show: boolean;
|
|
3074
|
+
fullscreen?: boolean;
|
|
3075
|
+
}
|
|
3076
|
+
declare const Loader: React.FC<LoadingSpinnerProps>;
|
|
3077
|
+
|
|
3078
|
+
interface TextInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3079
|
+
label: string;
|
|
3080
|
+
prefix?: string;
|
|
3081
|
+
suffix?: react__default.ReactNode;
|
|
3082
|
+
noMargin?: boolean;
|
|
3083
|
+
errorMessage?: string;
|
|
3084
|
+
}
|
|
3085
|
+
declare const Input: react__default.ForwardRefExoticComponent<TextInputProps & react__default.RefAttributes<HTMLInputElement>>;
|
|
3086
|
+
|
|
3087
|
+
type MaskType = 'cellPhone' | 'homePhone' | 'cep' | 'cpf' | 'cnpj' | 'date';
|
|
3088
|
+
interface MaskedInputProps extends TextInputProps {
|
|
3089
|
+
maskType: MaskType;
|
|
3090
|
+
}
|
|
3091
|
+
declare const MaskedInput: react__default.ForwardRefExoticComponent<MaskedInputProps & react__default.RefAttributes<HTMLInputElement>>;
|
|
3092
|
+
|
|
3067
3093
|
declare const StyledButton: _stitches_react_types_styled_component.StyledComponent<"button", {
|
|
3068
3094
|
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
3069
3095
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
@@ -3288,10 +3314,10 @@ declare const StyledButton: _stitches_react_types_styled_component.StyledCompone
|
|
|
3288
3314
|
transition: "transitions";
|
|
3289
3315
|
zIndex: "zIndices";
|
|
3290
3316
|
}, {}>>;
|
|
3291
|
-
type CustomCSS$
|
|
3317
|
+
type CustomCSS$3 = CSS<typeof config>;
|
|
3292
3318
|
interface ButtonProps extends ComponentPropsWithoutRef<'button'>, VariantProps<typeof StyledButton> {
|
|
3293
3319
|
as?: ElementType;
|
|
3294
|
-
css?: CustomCSS$
|
|
3320
|
+
css?: CustomCSS$3;
|
|
3295
3321
|
children?: React.ReactNode;
|
|
3296
3322
|
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
3297
3323
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -3300,10 +3326,10 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'>, VariantProps<t
|
|
|
3300
3326
|
}
|
|
3301
3327
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3302
3328
|
|
|
3303
|
-
type CustomCSS$
|
|
3329
|
+
type CustomCSS$2 = CSS<typeof config>;
|
|
3304
3330
|
interface BoxProps extends ComponentPropsWithoutRef<'div'>, VariantProps<typeof Box> {
|
|
3305
3331
|
as?: ElementType;
|
|
3306
|
-
css?: CustomCSS$
|
|
3332
|
+
css?: CustomCSS$2;
|
|
3307
3333
|
variant?: 'gray' | 'white';
|
|
3308
3334
|
children?: React.ReactNode;
|
|
3309
3335
|
}
|
|
@@ -3312,20 +3338,20 @@ declare const Box: {
|
|
|
3312
3338
|
displayName: string;
|
|
3313
3339
|
};
|
|
3314
3340
|
|
|
3315
|
-
type CustomCSS = CSS<typeof config>;
|
|
3316
|
-
interface
|
|
3341
|
+
type CustomCSS$1 = CSS<typeof config>;
|
|
3342
|
+
interface ParagraphProps extends ComponentPropsWithoutRef<'p'>, VariantProps<typeof Paragraph> {
|
|
3317
3343
|
as?: ElementType;
|
|
3318
|
-
css?: CustomCSS;
|
|
3344
|
+
css?: CustomCSS$1;
|
|
3319
3345
|
size?: "sm" | "md" | "lg" | "xxs" | "xs" | "xl" | "2xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
3320
3346
|
wheight?: "regular" | "medium" | "bold";
|
|
3321
3347
|
lineHeight?: "regular" | "shorter" | "short" | "base" | "tall";
|
|
3322
3348
|
}
|
|
3323
|
-
declare const
|
|
3324
|
-
(props:
|
|
3349
|
+
declare const Paragraph: {
|
|
3350
|
+
(props: ParagraphProps): react_jsx_runtime.JSX.Element;
|
|
3325
3351
|
displayName: string;
|
|
3326
3352
|
};
|
|
3327
3353
|
|
|
3328
|
-
declare const
|
|
3354
|
+
declare const StyledHeading: _stitches_react_types_styled_component.StyledComponent<"h2", {
|
|
3329
3355
|
size?: "sm" | "md" | "lg" | "2xl" | "4xl" | "5xl" | "6xl" | "3xl" | undefined;
|
|
3330
3356
|
}, {
|
|
3331
3357
|
sm: "(min-width: 375px)";
|
|
@@ -3546,18 +3572,14 @@ declare const Heading: _stitches_react_types_styled_component.StyledComponent<"h
|
|
|
3546
3572
|
transition: "transitions";
|
|
3547
3573
|
zIndex: "zIndices";
|
|
3548
3574
|
}, {}>>;
|
|
3549
|
-
|
|
3575
|
+
type CustomCSS = CSS<typeof config>;
|
|
3576
|
+
interface HeadingProps extends ComponentPropsWithoutRef<'h2'>, VariantProps<typeof StyledHeading> {
|
|
3550
3577
|
as?: ElementType;
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
label: string;
|
|
3555
|
-
prefix?: string;
|
|
3556
|
-
suffix?: react__default.ReactNode;
|
|
3557
|
-
noMargin?: boolean;
|
|
3558
|
-
errorMessage?: string;
|
|
3578
|
+
css?: CustomCSS;
|
|
3579
|
+
children?: React.ReactNode;
|
|
3580
|
+
size?: 'sm' | 'md' | 'lg' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
3559
3581
|
}
|
|
3560
|
-
declare const
|
|
3582
|
+
declare const Heading: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
3561
3583
|
|
|
3562
3584
|
interface SelectItem {
|
|
3563
3585
|
value: string;
|
|
@@ -3610,19 +3632,20 @@ interface OneTimePasswordProps extends ComponentPropsWithoutRef<typeof OneTimePa
|
|
|
3610
3632
|
label: string;
|
|
3611
3633
|
length: number;
|
|
3612
3634
|
value: string;
|
|
3635
|
+
errorMessage?: string;
|
|
3613
3636
|
onValueChange: (value: string) => void;
|
|
3614
3637
|
}
|
|
3615
3638
|
declare const OneTimePassword: {
|
|
3616
|
-
({ label, length, value, onValueChange, ...rootProps }: OneTimePasswordProps): react_jsx_runtime.JSX.Element;
|
|
3639
|
+
({ label, length, value, errorMessage, onValueChange, ...rootProps }: OneTimePasswordProps): react_jsx_runtime.JSX.Element;
|
|
3617
3640
|
displayName: string;
|
|
3618
3641
|
};
|
|
3619
3642
|
|
|
3620
3643
|
declare const Toast: react.FC;
|
|
3621
3644
|
|
|
3622
3645
|
declare const toast: {
|
|
3623
|
-
success: (title: string, description
|
|
3624
|
-
warning: (title: string, description
|
|
3625
|
-
error: (title: string, description
|
|
3646
|
+
success: (title: string, description?: string) => void;
|
|
3647
|
+
warning: (title: string, description?: string) => void;
|
|
3648
|
+
error: (title: string, description?: string) => void;
|
|
3626
3649
|
};
|
|
3627
3650
|
|
|
3628
3651
|
type Orientation = 'horizontal' | 'vertical';
|
|
@@ -3653,4 +3676,4 @@ interface CarouselItemProps {
|
|
|
3653
3676
|
type PasswordInputProps = Omit<TextInputProps, 'type' | 'suffix'>;
|
|
3654
3677
|
declare const PasswordInput: react.ForwardRefExoticComponent<PasswordInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
3655
3678
|
|
|
3656
|
-
export { Avatar, AvatarProps, AvatarSize, AvatarStatus, Box, BoxProps, Button, ButtonProps, Calendar, Carousel, CarouselProps, Checkbox, CheckboxProps, Datepicker, Heading, HeadingProps, Hr, Icon, IconProps, Input, LabelledValue, LabelledValueProps, Modal, MultiStep, MultiStepProps, OneTimePassword, OneTimePasswordProps, PasswordInput, PasswordInputProps, ProgressBar, ProgressBarProps, Radio, RadioProps, Select, SelectProps, Spacing, Span, Switch, SwitchProps, Tabs,
|
|
3679
|
+
export { Avatar, AvatarProps, AvatarSize, AvatarStatus, Box, BoxProps, Button, ButtonProps, Calendar, Carousel, CarouselProps, Checkbox, CheckboxProps, Datepicker, Heading, HeadingProps, Hr, HrProps, Icon, IconProps, Input, LabelledValue, LabelledValueProps, Loader, MaskType, MaskedInput, MaskedInputProps, Modal, MultiStep, MultiStepProps, OneTimePassword, OneTimePasswordProps, Paragraph, ParagraphProps, PasswordInput, PasswordInputProps, ProgressBar, ProgressBarProps, Radio, RadioProps, Select, SelectProps, Spacing, Span, StyledHr, Switch, SwitchProps, Tabs, TextArea, TextAreaElement, TextAreaProps, TextInputProps, Toast, Tooltip, TooltipProps, config, createTheme, css, getCssText, globalCss, keyframes, styled, theme, toast };
|