@clickpalm/react 1.1.0 → 1.1.2

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 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, ReactNode, InputHTMLAttributes, ElementType, SVGProps, CSSProperties } from 'react';
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
 
@@ -2300,14 +2300,11 @@ declare const CheckboxContainer: _stitches_react_types_styled_component.StyledCo
2300
2300
 
2301
2301
  interface CheckboxProps extends ComponentProps<typeof CheckboxContainer> {
2302
2302
  label: string;
2303
- checked: boolean | 'indeterminate';
2304
- onCheckedChange: (checked: boolean | 'indeterminate') => void;
2303
+ checked: boolean;
2304
+ onCheckedChange: (checked: boolean) => void;
2305
2305
  errorMessage?: string;
2306
2306
  }
2307
- declare function Checkbox({ label, checked, onCheckedChange, errorMessage, ...rest }: CheckboxProps): react_jsx_runtime.JSX.Element;
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 Hr: _stitches_react_types_styled_component.StyledComponent<"hr", {
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;
@@ -3309,10 +3314,10 @@ declare const StyledButton: _stitches_react_types_styled_component.StyledCompone
3309
3314
  transition: "transitions";
3310
3315
  zIndex: "zIndices";
3311
3316
  }, {}>>;
3312
- type CustomCSS$2 = CSS<typeof config>;
3317
+ type CustomCSS$3 = CSS<typeof config>;
3313
3318
  interface ButtonProps extends ComponentPropsWithoutRef<'button'>, VariantProps<typeof StyledButton> {
3314
3319
  as?: ElementType;
3315
- css?: CustomCSS$2;
3320
+ css?: CustomCSS$3;
3316
3321
  children?: React.ReactNode;
3317
3322
  variant?: 'primary' | 'secondary' | 'tertiary';
3318
3323
  size?: 'xs' | 'sm' | 'md' | 'lg';
@@ -3321,10 +3326,10 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'>, VariantProps<t
3321
3326
  }
3322
3327
  declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
3323
3328
 
3324
- type CustomCSS$1 = CSS<typeof config>;
3329
+ type CustomCSS$2 = CSS<typeof config>;
3325
3330
  interface BoxProps extends ComponentPropsWithoutRef<'div'>, VariantProps<typeof Box> {
3326
3331
  as?: ElementType;
3327
- css?: CustomCSS$1;
3332
+ css?: CustomCSS$2;
3328
3333
  variant?: 'gray' | 'white';
3329
3334
  children?: React.ReactNode;
3330
3335
  }
@@ -3333,20 +3338,20 @@ declare const Box: {
3333
3338
  displayName: string;
3334
3339
  };
3335
3340
 
3336
- type CustomCSS = CSS<typeof config>;
3337
- interface TextProps extends ComponentPropsWithoutRef<'p'>, VariantProps<typeof Text> {
3341
+ type CustomCSS$1 = CSS<typeof config>;
3342
+ interface ParagraphProps extends ComponentPropsWithoutRef<'p'>, VariantProps<typeof Paragraph> {
3338
3343
  as?: ElementType;
3339
- css?: CustomCSS;
3344
+ css?: CustomCSS$1;
3340
3345
  size?: "sm" | "md" | "lg" | "xxs" | "xs" | "xl" | "2xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
3341
3346
  wheight?: "regular" | "medium" | "bold";
3342
3347
  lineHeight?: "regular" | "shorter" | "short" | "base" | "tall";
3343
3348
  }
3344
- declare const Text: {
3345
- (props: TextProps): react_jsx_runtime.JSX.Element;
3349
+ declare const Paragraph: {
3350
+ (props: ParagraphProps): react_jsx_runtime.JSX.Element;
3346
3351
  displayName: string;
3347
3352
  };
3348
3353
 
3349
- declare const Heading: _stitches_react_types_styled_component.StyledComponent<"h2", {
3354
+ declare const StyledHeading: _stitches_react_types_styled_component.StyledComponent<"h2", {
3350
3355
  size?: "sm" | "md" | "lg" | "2xl" | "4xl" | "5xl" | "6xl" | "3xl" | undefined;
3351
3356
  }, {
3352
3357
  sm: "(min-width: 375px)";
@@ -3567,9 +3572,14 @@ declare const Heading: _stitches_react_types_styled_component.StyledComponent<"h
3567
3572
  transition: "transitions";
3568
3573
  zIndex: "zIndices";
3569
3574
  }, {}>>;
3570
- interface HeadingProps extends VariantProps<typeof Heading> {
3575
+ type CustomCSS = CSS<typeof config>;
3576
+ interface HeadingProps extends ComponentPropsWithoutRef<'h2'>, VariantProps<typeof StyledHeading> {
3571
3577
  as?: ElementType;
3572
- }
3578
+ css?: CustomCSS;
3579
+ children?: React.ReactNode;
3580
+ size?: 'sm' | 'md' | 'lg' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
3581
+ }
3582
+ declare const Heading: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
3573
3583
 
3574
3584
  interface SelectItem {
3575
3585
  value: string;
@@ -3622,19 +3632,20 @@ interface OneTimePasswordProps extends ComponentPropsWithoutRef<typeof OneTimePa
3622
3632
  label: string;
3623
3633
  length: number;
3624
3634
  value: string;
3635
+ errorMessage?: string;
3625
3636
  onValueChange: (value: string) => void;
3626
3637
  }
3627
3638
  declare const OneTimePassword: {
3628
- ({ label, length, value, onValueChange, ...rootProps }: OneTimePasswordProps): react_jsx_runtime.JSX.Element;
3639
+ ({ label, length, value, errorMessage, onValueChange, ...rootProps }: OneTimePasswordProps): react_jsx_runtime.JSX.Element;
3629
3640
  displayName: string;
3630
3641
  };
3631
3642
 
3632
3643
  declare const Toast: react.FC;
3633
3644
 
3634
3645
  declare const toast: {
3635
- success: (title: string, description: string) => void;
3636
- warning: (title: string, description: string) => void;
3637
- error: (title: string, description: string) => void;
3646
+ success: (title: string, description?: string) => void;
3647
+ warning: (title: string, description?: string) => void;
3648
+ error: (title: string, description?: string) => void;
3638
3649
  };
3639
3650
 
3640
3651
  type Orientation = 'horizontal' | 'vertical';
@@ -3665,4 +3676,4 @@ interface CarouselItemProps {
3665
3676
  type PasswordInputProps = Omit<TextInputProps, 'type' | 'suffix'>;
3666
3677
  declare const PasswordInput: react.ForwardRefExoticComponent<PasswordInputProps & react.RefAttributes<HTMLInputElement>>;
3667
3678
 
3668
- export { Avatar, AvatarProps, AvatarSize, AvatarStatus, Box, BoxProps, Button, ButtonProps, Calendar, Carousel, CarouselProps, Checkbox, CheckboxProps, Datepicker, Heading, HeadingProps, Hr, Icon, IconProps, Input, LabelledValue, LabelledValueProps, Loader, MaskType, MaskedInput, MaskedInputProps, Modal, MultiStep, MultiStepProps, OneTimePassword, OneTimePasswordProps, PasswordInput, PasswordInputProps, ProgressBar, ProgressBarProps, Radio, RadioProps, Select, SelectProps, Spacing, Span, Switch, SwitchProps, Tabs, Text, TextArea, TextAreaElement, TextAreaProps, TextInputProps, TextProps, Toast, Tooltip, TooltipProps, config, createTheme, css, getCssText, globalCss, keyframes, styled, theme, toast };
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 };