@clickpalm/react 1.2.0 → 1.2.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,7 +4,7 @@ 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, ElementType, ReactNode, InputHTMLAttributes, SVGProps, CSSProperties } from 'react';
7
+ import react__default, { ComponentProps, ComponentPropsWithoutRef, ElementType, ReactNode, InputHTMLAttributes, CSSProperties, SVGProps } 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';
@@ -2535,10 +2535,10 @@ declare const StyledHr: _stitches_react_types_styled_component.StyledComponent<"
2535
2535
  transition: "transitions";
2536
2536
  zIndex: "zIndices";
2537
2537
  }, {}>>;
2538
- type CustomCSS$4 = CSS<typeof config>;
2538
+ type CustomCSS$5 = CSS<typeof config>;
2539
2539
  interface HrProps extends ComponentPropsWithoutRef<'hr'>, VariantProps<typeof StyledHr> {
2540
2540
  as?: ElementType;
2541
- css?: CustomCSS$4;
2541
+ css?: CustomCSS$5;
2542
2542
  children?: React.ReactNode;
2543
2543
  variant?: 'gray' | 'purple';
2544
2544
  }
@@ -2548,6 +2548,7 @@ interface ModalProps {
2548
2548
  open: boolean;
2549
2549
  onOpenChange: (open: boolean) => void;
2550
2550
  title: string;
2551
+ description?: string;
2551
2552
  children: react__default.ReactNode;
2552
2553
  }
2553
2554
  declare const Modal: react__default.FC<ModalProps>;
@@ -2570,7 +2571,7 @@ interface RadioProps {
2570
2571
  required?: boolean;
2571
2572
  errorMessage?: string;
2572
2573
  }
2573
- declare const Radio: ({ labels, value, onChange, disabled, required, errorMessage }: RadioProps) => react_jsx_runtime.JSX.Element;
2574
+ declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLDivElement>>;
2574
2575
 
2575
2576
  type SpacingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xlg' | 'xxlg' | 'xxxlg';
2576
2577
  interface SpacingProps {
@@ -2589,7 +2590,7 @@ interface SwitchProps {
2589
2590
  id?: string;
2590
2591
  errorMessage?: string;
2591
2592
  }
2592
- declare const Switch: ({ label, checked, defaultChecked, onCheckedChange, disabled, required, id, errorMessage }: SwitchProps) => react_jsx_runtime.JSX.Element;
2593
+ declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLButtonElement>>;
2593
2594
 
2594
2595
  interface TabsProps {
2595
2596
  defaultValue?: string;
@@ -3051,10 +3052,7 @@ interface TextAreaProps extends ComponentPropsWithoutRef<'textarea'>, VariantPro
3051
3052
  htmlFor?: string;
3052
3053
  errorMessage?: string;
3053
3054
  }
3054
- declare const TextArea: {
3055
- ({ label, id, htmlFor, errorMessage, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
3056
- displayName: string;
3057
- };
3055
+ declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
3058
3056
 
3059
3057
  interface TooltipProps {
3060
3058
  content: ReactNode;
@@ -3094,11 +3092,12 @@ declare const MaskedInput: react__default.ForwardRefExoticComponent<MaskedInputP
3094
3092
  interface DropdownProps {
3095
3093
  children: react__default.ReactNode;
3096
3094
  }
3095
+ type DropdownItemProps = ComponentProps<typeof DropdownMenu.Item>;
3097
3096
  declare const Dropdown: {
3098
3097
  ({ children }: DropdownProps): react_jsx_runtime.JSX.Element;
3099
3098
  displayName: string;
3100
3099
  };
3101
- declare const DropdownItem: _stitches_react_types_styled_component.StyledComponent<react__default.ForwardRefExoticComponent<DropdownMenu.DropdownMenuItemProps & react__default.RefAttributes<HTMLDivElement>>, {}, {
3100
+ declare const DropdownSeparator: _stitches_react_types_styled_component.StyledComponent<react__default.ForwardRefExoticComponent<DropdownMenu.DropdownMenuSeparatorProps & react__default.RefAttributes<HTMLDivElement>>, {}, {
3102
3101
  sm: "(min-width: 375px)";
3103
3102
  md: "(min-width: 768px)";
3104
3103
  lg: "(min-width: 1024px)";
@@ -3317,7 +3316,14 @@ declare const DropdownItem: _stitches_react_types_styled_component.StyledCompone
3317
3316
  transition: "transitions";
3318
3317
  zIndex: "zIndices";
3319
3318
  }, {}>>;
3320
- declare const DropdownSeparator: _stitches_react_types_styled_component.StyledComponent<react__default.ForwardRefExoticComponent<DropdownMenu.DropdownMenuSeparatorProps & react__default.RefAttributes<HTMLDivElement>>, {}, {
3319
+ declare const DropdownItem: react__default.ForwardRefExoticComponent<Omit<DropdownMenu.DropdownMenuItemProps & react__default.RefAttributes<HTMLDivElement>, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
3320
+
3321
+ declare const StyledButton: _stitches_react_types_styled_component.StyledComponent<"button", {
3322
+ variant?: "primary" | "secondary" | "tertiary" | undefined;
3323
+ size?: "sm" | "md" | "lg" | "xs" | undefined;
3324
+ full?: boolean | "true" | undefined;
3325
+ round?: "md" | "lg" | "xlg" | undefined;
3326
+ }, {
3321
3327
  sm: "(min-width: 375px)";
3322
3328
  md: "(min-width: 768px)";
3323
3329
  lg: "(min-width: 1024px)";
@@ -3535,13 +3541,35 @@ declare const DropdownSeparator: _stitches_react_types_styled_component.StyledCo
3535
3541
  textShadow: "shadows";
3536
3542
  transition: "transitions";
3537
3543
  zIndex: "zIndices";
3538
- }, {}>>;
3544
+ }, {}>>;
3545
+ type CustomCSS$4 = CSS<typeof config>;
3546
+ interface ButtonProps extends ComponentPropsWithoutRef<'button'>, VariantProps<typeof StyledButton> {
3547
+ as?: ElementType;
3548
+ css?: CustomCSS$4;
3549
+ children?: React.ReactNode;
3550
+ variant?: 'primary' | 'secondary' | 'tertiary';
3551
+ size?: 'xs' | 'sm' | 'md' | 'lg';
3552
+ full?: boolean;
3553
+ round?: 'md' | 'lg' | 'xlg';
3554
+ }
3555
+ declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
3539
3556
 
3540
- declare const StyledButton: _stitches_react_types_styled_component.StyledComponent<"button", {
3541
- variant?: "primary" | "secondary" | "tertiary" | undefined;
3542
- size?: "sm" | "md" | "lg" | "xs" | undefined;
3543
- full?: boolean | "true" | undefined;
3544
- round?: "md" | "lg" | "xlg" | undefined;
3557
+ type CustomCSS$3 = CSS<typeof config>;
3558
+ interface BoxProps extends ComponentPropsWithoutRef<'div'>, VariantProps<typeof Box> {
3559
+ as?: ElementType;
3560
+ css?: CustomCSS$3;
3561
+ variant?: 'gray' | 'white';
3562
+ children?: React.ReactNode;
3563
+ }
3564
+ declare const Box: {
3565
+ (props: BoxProps): react_jsx_runtime.JSX.Element;
3566
+ displayName: string;
3567
+ };
3568
+
3569
+ declare const StyledParagraph: _stitches_react_types_styled_component.StyledComponent<"p", {
3570
+ size?: "sm" | "md" | "lg" | "xxs" | "xs" | "xl" | "2xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | undefined;
3571
+ wheight?: "regular" | "medium" | "bold" | undefined;
3572
+ lineHeight?: "regular" | "shorter" | "short" | "base" | "tall" | undefined;
3545
3573
  }, {
3546
3574
  sm: "(min-width: 375px)";
3547
3575
  md: "(min-width: 768px)";
@@ -3761,34 +3789,10 @@ declare const StyledButton: _stitches_react_types_styled_component.StyledCompone
3761
3789
  transition: "transitions";
3762
3790
  zIndex: "zIndices";
3763
3791
  }, {}>>;
3764
- type CustomCSS$3 = CSS<typeof config>;
3765
- interface ButtonProps extends ComponentPropsWithoutRef<'button'>, VariantProps<typeof StyledButton> {
3766
- as?: ElementType;
3767
- css?: CustomCSS$3;
3768
- children?: React.ReactNode;
3769
- variant?: 'primary' | 'secondary' | 'tertiary';
3770
- size?: 'xs' | 'sm' | 'md' | 'lg';
3771
- full?: boolean;
3772
- round?: 'md' | 'lg' | 'xlg';
3773
- }
3774
- declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
3775
-
3776
3792
  type CustomCSS$2 = CSS<typeof config>;
3777
- interface BoxProps extends ComponentPropsWithoutRef<'div'>, VariantProps<typeof Box> {
3793
+ interface ParagraphProps extends ComponentPropsWithoutRef<'p'>, VariantProps<typeof StyledParagraph> {
3778
3794
  as?: ElementType;
3779
3795
  css?: CustomCSS$2;
3780
- variant?: 'gray' | 'white';
3781
- children?: React.ReactNode;
3782
- }
3783
- declare const Box: {
3784
- (props: BoxProps): react_jsx_runtime.JSX.Element;
3785
- displayName: string;
3786
- };
3787
-
3788
- type CustomCSS$1 = CSS<typeof config>;
3789
- interface ParagraphProps extends ComponentPropsWithoutRef<'p'>, VariantProps<typeof Paragraph> {
3790
- as?: ElementType;
3791
- css?: CustomCSS$1;
3792
3796
  size?: "sm" | "md" | "lg" | "xxs" | "xs" | "xl" | "2xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
3793
3797
  wheight?: "regular" | "medium" | "bold";
3794
3798
  lineHeight?: "regular" | "shorter" | "short" | "base" | "tall";
@@ -4019,10 +4023,10 @@ declare const StyledHeading: _stitches_react_types_styled_component.StyledCompon
4019
4023
  transition: "transitions";
4020
4024
  zIndex: "zIndices";
4021
4025
  }, {}>>;
4022
- type CustomCSS = CSS<typeof config>;
4026
+ type CustomCSS$1 = CSS<typeof config>;
4023
4027
  interface HeadingProps extends ComponentPropsWithoutRef<'h2'>, VariantProps<typeof StyledHeading> {
4024
4028
  as?: ElementType;
4025
- css?: CustomCSS;
4029
+ css?: CustomCSS$1;
4026
4030
  children?: React.ReactNode;
4027
4031
  size?: 'sm' | 'md' | 'lg' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
4028
4032
  }
@@ -4032,16 +4036,17 @@ interface SelectItem {
4032
4036
  value: string;
4033
4037
  label: string;
4034
4038
  }
4039
+ type CustomCSS = CSS<typeof config>;
4035
4040
  interface SelectProps extends ComponentProps<typeof CustomSelect.Root> {
4036
4041
  items: SelectItem[];
4037
4042
  placeholder?: string;
4038
4043
  label?: string;
4039
4044
  errorMessage?: string;
4045
+ css?: CustomCSS;
4046
+ className?: string;
4047
+ style?: CSSProperties;
4040
4048
  }
4041
- declare function Select({ value, onValueChange, items, placeholder, label, errorMessage, ...rest }: SelectProps): react_jsx_runtime.JSX.Element;
4042
- declare namespace Select {
4043
- var displayName: string;
4044
- }
4049
+ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
4045
4050
 
4046
4051
  interface LabelledValueProps {
4047
4052
  position?: 'vertical' | 'horizontal';
@@ -4130,4 +4135,4 @@ interface AccordionProps {
4130
4135
  }
4131
4136
  declare const Accordion: react__default.ForwardRefExoticComponent<AccordionProps & react__default.RefAttributes<HTMLDivElement>>;
4132
4137
 
4133
- export { Accordion, Avatar, AvatarProps, AvatarSize, AvatarStatus, Box, BoxProps, Button, ButtonProps, Calendar, Carousel, CarouselProps, Checkbox, CheckboxProps, Datepicker, Dropdown, DropdownItem, DropdownSeparator, 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 };
4138
+ export { Accordion, Avatar, AvatarProps, AvatarSize, AvatarStatus, Box, BoxProps, Button, ButtonProps, Calendar, Carousel, CarouselProps, Checkbox, CheckboxProps, Datepicker, Dropdown, DropdownItem, DropdownItemProps, DropdownSeparator, 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 };