plume-ui-react 0.6.0 → 0.8.0

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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-3JUN2GK7.mjs +1 -0
  3. package/dist/chunk-DNENE4UC.mjs +1 -0
  4. package/dist/chunk-SMKRX752.mjs +1 -0
  5. package/dist/components/form/input/input-reveal.mjs +1 -0
  6. package/dist/components/form/input/input.mjs +2 -2
  7. package/dist/components/form/numberinput/index.mjs +1 -0
  8. package/dist/components/form/numberinput/number-format.mjs +1 -0
  9. package/dist/components/form/numberinput/numberinput-stepper.mjs +1 -0
  10. package/dist/components/form/numberinput/numberinput.mjs +1 -0
  11. package/dist/components/form/numberinput/use-hold-repeat.mjs +1 -0
  12. package/dist/components/form/numberinput/use-number-input.mjs +1 -0
  13. package/dist/components/form/pininput/index.mjs +1 -0
  14. package/dist/components/form/pininput/pin-utils.mjs +1 -0
  15. package/dist/components/form/pininput/pininput.mjs +1 -0
  16. package/dist/components/form/pininput/use-pin-input.mjs +1 -0
  17. package/dist/components/form/rating/index.mjs +1 -0
  18. package/dist/components/form/rating/rating-icons.mjs +1 -0
  19. package/dist/components/form/rating/rating-item.mjs +1 -0
  20. package/dist/components/form/rating/rating.mjs +1 -0
  21. package/dist/components/form/rating/use-rating.mjs +1 -0
  22. package/dist/components/form/select/select.mjs +1 -1
  23. package/dist/components/navigation/accordion/accordion-content.mjs +1 -0
  24. package/dist/components/navigation/accordion/accordion-context.mjs +1 -0
  25. package/dist/components/navigation/accordion/accordion-item.mjs +1 -0
  26. package/dist/components/navigation/accordion/accordion-trigger.mjs +1 -0
  27. package/dist/components/navigation/accordion/accordion.mjs +1 -0
  28. package/dist/components/navigation/accordion/index.mjs +1 -0
  29. package/dist/components/utility/progressbar/index.mjs +1 -0
  30. package/dist/components/utility/progressbar/progressbar.mjs +1 -0
  31. package/dist/components/utility/skeleton/index.mjs +1 -0
  32. package/dist/components/utility/skeleton/skeleton.mjs +1 -0
  33. package/dist/index.d.mts +167 -2
  34. package/dist/index.d.ts +167 -2
  35. package/dist/index.js +5 -5
  36. package/dist/index.mjs +1 -1
  37. package/dist/overlay/icons.mjs +1 -1
  38. package/dist/overlay/use-controllable-state.mjs +1 -0
  39. package/dist/overlay/use-selection-state.mjs +1 -0
  40. package/dist/styles.css +1 -1
  41. package/package.json +1 -1
  42. package/dist/components/form/select/use-select-value.mjs +0 -1
package/dist/index.d.ts CHANGED
@@ -232,6 +232,57 @@ declare function lazyLoadContent(content: ReactNode): LazyExoticComponent<() =>
232
232
  */
233
233
  declare function deepMerge<T>(target: T, ...sources: (Partial<T> | undefined)[]): T;
234
234
 
235
+ type AccordionVariant = 'outline' | 'filled' | 'unstyled';
236
+
237
+ interface AccordionBaseProps {
238
+ collapsible?: boolean;
239
+ colorScheme?: ColorScheme;
240
+ disabled?: boolean;
241
+ size?: Size;
242
+ variant?: AccordionVariant;
243
+ }
244
+ interface AccordionSingleProps {
245
+ defaultValue?: string;
246
+ onValueChange?: (value: string) => void;
247
+ type?: 'single';
248
+ value?: string;
249
+ }
250
+ interface AccordionMultipleProps {
251
+ defaultValue?: string[];
252
+ onValueChange?: (value: string[]) => void;
253
+ type: 'multiple';
254
+ value?: string[];
255
+ }
256
+ type AccordionOwnProps = AccordionBaseProps & (AccordionMultipleProps | AccordionSingleProps);
257
+ type AccordionRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'aria-labelledby' | 'children' | 'hidden' | 'id' | 'title'>;
258
+ type AccordionProps = Omit<ComponentProps, 'index'> & AccordionRootAttributes & AccordionOwnProps;
259
+ declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
260
+
261
+ interface AccordionContentOwnProps {
262
+ bodyClassName?: string;
263
+ }
264
+ type AccordionContentRootAttributes = Pick<HTMLAttributes<HTMLElement>, 'children' | 'title'>;
265
+ type AccordionContentProps = Omit<ComponentProps, 'index'> & AccordionContentRootAttributes & AccordionContentOwnProps;
266
+ declare const AccordionContent: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & AccordionContentRootAttributes & AccordionContentOwnProps & react.RefAttributes<HTMLElement>>;
267
+
268
+ interface AccordionItemOwnProps {
269
+ disabled?: boolean;
270
+ value: string;
271
+ }
272
+ type AccordionItemRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'children' | 'hidden' | 'id' | 'title'>;
273
+ type AccordionItemProps = Omit<ComponentProps, 'index'> & AccordionItemRootAttributes & AccordionItemOwnProps;
274
+ declare const AccordionItem: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & AccordionItemRootAttributes & AccordionItemOwnProps & react.RefAttributes<HTMLDivElement>>;
275
+
276
+ type AccordionTriggerPart = 'heading' | 'icon';
277
+ interface AccordionTriggerOwnProps {
278
+ classNames?: Partial<Record<AccordionTriggerPart, string>>;
279
+ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
280
+ icon?: ReactNode;
281
+ }
282
+ type AccordionTriggerRootAttributes = Pick<HTMLAttributes<HTMLButtonElement>, 'children' | 'title'>;
283
+ type AccordionTriggerProps = Omit<ComponentProps, 'index'> & AccordionTriggerRootAttributes & AccordionTriggerOwnProps;
284
+ declare const AccordionTrigger: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & AccordionTriggerRootAttributes & AccordionTriggerOwnProps & react.RefAttributes<HTMLButtonElement>>;
285
+
235
286
  interface BadgeOwnProps {
236
287
  colorScheme?: ColorScheme;
237
288
  dot?: boolean;
@@ -444,11 +495,14 @@ interface InputOwnProps {
444
495
  elementAfter?: ReactNode;
445
496
  colorScheme?: ColorScheme;
446
497
  mask?: string;
498
+ revealClassName?: string;
499
+ revealLabel?: string;
500
+ revealable?: boolean;
447
501
  shape?: Shape;
448
502
  size?: Size;
449
503
  variant?: InputVariant;
450
504
  }
451
- type InputRootAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'aria-invalid' | 'defaultValue' | 'disabled' | 'id' | 'inputMode' | 'max' | 'maxLength' | 'min' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'pattern' | 'placeholder' | 'readOnly' | 'required' | 'type' | 'value'>;
505
+ type InputRootAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'aria-invalid' | 'autoComplete' | 'defaultValue' | 'disabled' | 'id' | 'inputMode' | 'max' | 'maxLength' | 'min' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'pattern' | 'placeholder' | 'readOnly' | 'required' | 'type' | 'value'>;
452
506
  type InputVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
453
507
  type InputProps = ComponentProps & InputRootAttributes & InputOwnProps;
454
508
  declare const Input: react.ForwardRefExoticComponent<ComponentProps & InputRootAttributes & InputOwnProps & react.RefAttributes<HTMLInputElement>>;
@@ -553,6 +607,59 @@ interface ModalTriggerProps {
553
607
  }
554
608
  declare const ModalTrigger: react.ForwardRefExoticComponent<ModalTriggerProps & react.RefAttributes<HTMLElement>>;
555
609
 
610
+ type NumberInputPart = 'decrement' | 'increment' | 'input';
611
+ type NumberInputVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
612
+ interface NumberInputOwnProps {
613
+ classNames?: Partial<Record<NumberInputPart, string>>;
614
+ colorScheme?: ColorScheme;
615
+ decrementLabel?: string;
616
+ defaultValue?: number | null;
617
+ format?: (value: number) => string;
618
+ incrementLabel?: string;
619
+ largeStep?: number;
620
+ max?: number;
621
+ min?: number;
622
+ name?: string;
623
+ onValueChange?: (value: number | null) => void;
624
+ parse?: (text: string) => number | null;
625
+ precision?: number;
626
+ shape?: Shape;
627
+ size?: Size;
628
+ step?: number;
629
+ steppers?: boolean;
630
+ value?: number | null;
631
+ variant?: NumberInputVariant;
632
+ }
633
+ type NumberInputRootAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'aria-invalid' | 'aria-label' | 'aria-labelledby' | 'disabled' | 'id' | 'onBlur' | 'onFocus' | 'placeholder' | 'readOnly' | 'required' | 'title'>;
634
+ type NumberInputProps = Omit<ComponentProps, 'index'> & NumberInputRootAttributes & NumberInputOwnProps;
635
+ declare const NumberInput: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & NumberInputRootAttributes & NumberInputOwnProps & react.RefAttributes<HTMLInputElement>>;
636
+
637
+ type PinInputType = 'numeric' | 'alphanumeric' | 'text';
638
+
639
+ type PinInputVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
640
+ interface PinInputOwnProps {
641
+ autoComplete?: string;
642
+ focusOnMount?: boolean;
643
+ colorScheme?: ColorScheme;
644
+ defaultValue?: string;
645
+ getInputLabel?: (index: number, length: number) => string;
646
+ inputClassName?: string;
647
+ length?: number;
648
+ mask?: boolean;
649
+ name?: string;
650
+ onComplete?: (value: string) => void;
651
+ onValueChange?: (value: string) => void;
652
+ placeholder?: string;
653
+ shape?: Shape;
654
+ size?: Size;
655
+ type?: PinInputType;
656
+ value?: string;
657
+ variant?: PinInputVariant;
658
+ }
659
+ type PinInputRootAttributes = Pick<InputHTMLAttributes<HTMLFieldSetElement>, 'aria-describedby' | 'aria-invalid' | 'aria-label' | 'aria-labelledby' | 'disabled' | 'hidden' | 'id' | 'readOnly' | 'required' | 'title'>;
660
+ type PinInputProps = Omit<ComponentProps, 'index'> & PinInputRootAttributes & PinInputOwnProps;
661
+ declare const PinInput: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & PinInputRootAttributes & PinInputOwnProps & react.RefAttributes<HTMLFieldSetElement>>;
662
+
556
663
  type PopoverVariant = 'elevated' | 'outline' | 'unstyled';
557
664
 
558
665
  interface PopoverProps {
@@ -582,6 +689,23 @@ interface PopoverTriggerProps {
582
689
  }
583
690
  declare const PopoverTrigger: react.ForwardRefExoticComponent<PopoverTriggerProps & react.RefAttributes<HTMLElement>>;
584
691
 
692
+ type ProgressBarVariant = 'solid' | 'striped' | 'unstyled';
693
+ interface ProgressBarOwnProps {
694
+ animated?: boolean;
695
+ colorScheme?: ColorScheme;
696
+ indeterminate?: boolean;
697
+ indicatorClassName?: string;
698
+ max?: number;
699
+ shape?: Shape;
700
+ size?: Size;
701
+ value?: number;
702
+ valueText?: string;
703
+ variant?: ProgressBarVariant;
704
+ }
705
+ type ProgressBarRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'aria-labelledby' | 'hidden' | 'id' | 'title'>;
706
+ type ProgressBarProps = Omit<ComponentProps, 'index'> & ProgressBarRootAttributes & ProgressBarOwnProps;
707
+ declare const ProgressBar: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ProgressBarRootAttributes & ProgressBarOwnProps & react.RefAttributes<HTMLDivElement>>;
708
+
585
709
  interface RadioOwnProps {
586
710
  inputClassName?: string;
587
711
  labelClassName?: string;
@@ -615,6 +739,33 @@ type RadioGroupRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'aria-descr
615
739
  type RadioGroupProps = Omit<ComponentProps, 'index'> & RadioGroupRootAttributes & RadioGroupOwnProps;
616
740
  declare const RadioGroup: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & RadioGroupRootAttributes & RadioGroupOwnProps & react.RefAttributes<HTMLDivElement>>;
617
741
 
742
+ type RatingPart = 'empty' | 'filled' | 'item';
743
+
744
+ type RatingVariant = 'solid' | 'unstyled';
745
+ interface RatingOwnProps {
746
+ allowHalf?: boolean;
747
+ classNames?: Partial<Record<RatingPart, string>>;
748
+ clearable?: boolean;
749
+ colorScheme?: ColorScheme;
750
+ defaultValue?: number;
751
+ disabled?: boolean;
752
+ emptyIcon?: ReactNode;
753
+ getItemLabel?: (value: number, max: number) => string;
754
+ icon?: ReactNode;
755
+ max?: number;
756
+ name?: string;
757
+ onValueChange?: (value: number) => void;
758
+ readOnly?: boolean;
759
+ readOnlyLabel?: (value: number, max: number) => string;
760
+ required?: boolean;
761
+ size?: Size;
762
+ value?: number;
763
+ variant?: RatingVariant;
764
+ }
765
+ type RatingRootAttributes = Pick<HTMLAttributes<HTMLElement>, 'aria-describedby' | 'aria-invalid' | 'aria-label' | 'aria-labelledby' | 'hidden' | 'id' | 'title'>;
766
+ type RatingProps = Omit<ComponentProps, 'index'> & RatingRootAttributes & RatingOwnProps;
767
+ declare const Rating: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & RatingRootAttributes & RatingOwnProps & react.RefAttributes<HTMLElement>>;
768
+
618
769
  type SelectVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
619
770
  interface SelectedOption {
620
771
  icon?: ReactNode;
@@ -714,6 +865,20 @@ interface SelectValueProps {
714
865
  }
715
866
  declare function SelectValue({ children, placeholder }: Readonly<SelectValueProps>): ReactNode;
716
867
 
868
+ type SkeletonShape = 'text' | 'rect' | 'circle';
869
+ type SkeletonVariant = 'pulse' | 'wave' | 'unstyled';
870
+ interface SkeletonOwnProps {
871
+ height?: number | string;
872
+ lineClassName?: string;
873
+ lines?: number;
874
+ shape?: SkeletonShape;
875
+ variant?: SkeletonVariant;
876
+ width?: number | string;
877
+ }
878
+ type SkeletonRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'hidden' | 'id'>;
879
+ type SkeletonProps = Omit<ComponentProps, 'index'> & SkeletonRootAttributes & SkeletonOwnProps;
880
+ declare const Skeleton: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & SkeletonRootAttributes & SkeletonOwnProps & react.RefAttributes<HTMLDivElement>>;
881
+
717
882
  interface SpinnerOwnProps {
718
883
  color?: ColorShade;
719
884
  size?: Size;
@@ -856,4 +1021,4 @@ interface TooltipProps {
856
1021
  type TooltipVariant = 'solid' | 'outline' | 'unstyled';
857
1022
  declare function Tooltip({ children, className, closeDelay, content, defaultOpen, disabled, offset, onOpenChange, open: openProp, openDelay, placement, size, style, variant, }: Readonly<TooltipProps>): ReactNode;
858
1023
 
859
- export { Badge, type BadgeProps, type Breakpoints, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, Chip, type ChipPart, type ChipProps, type ChipVariant, type ColorMode, type ColorModeSetting, type ColorPalette, type ColorScheme, type ColorShade, type ComponentProps, DatePicker, type DatePickerConfig, type DatePickerProps, type DateRange, type DeepPartial, Dropdown, DropdownItem, type DropdownItemProps, DropdownLabel, type DropdownLabelProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, Field, type FieldControlProps, type FieldOrientation, type FieldProps, type FontSizes, type FontWeights, Icon, type IconProps, Input, type InputProps, type LazyLoadedComponent, type LineHeights, List, ListDivider, type ListDividerProps, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, type MaskChangeHandler, Modal, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalContent, type ModalContentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTrigger, type ModalTriggerProps, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, type Radii, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentPart, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectOption, type SelectOptionPart, type SelectOptionProps, type SelectProps, SelectTrigger, type SelectTriggerPart, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, type SelectedOption, type SemanticColors, type Shade, type ShadeLevel, type Shadows, type Shape, type Size, type Sizes, type Spaces, Spinner, type SpinnerProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, type ToastAction, type ToastApi, type ToastContent, type ToastIcons, type ToastOptions, type ToastPart, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastStatus, type ToastVariant, Toggle, type ToggleProps, Tooltip, type TooltipProps, type Typography, type UseClickOutsideProps, type UseDebounceProps, type UseMaskProps, type UseMaskResult, type ZIndeces, applyMask, colorVar, deepMerge, defaultDarkTheme, defaultTheme, formatDate, getContrastColor, getContrastRatio, getDarkenColor, getDateFormatByLanguage, getDateFromDateString, getDateStringByLanguage, getDaysOfWeekByLanguage, getLightenColor, getMonthsByLanguage, lazyLoadContent, themeToCssVars, useClickOutside, useDebounce, useMask, useTheme, useToast, validateFormatDate };
1024
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionOwnProps, type AccordionProps, AccordionTrigger, type AccordionTriggerPart, type AccordionTriggerProps, type AccordionVariant, Badge, type BadgeProps, type Breakpoints, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, Chip, type ChipPart, type ChipProps, type ChipVariant, type ColorMode, type ColorModeSetting, type ColorPalette, type ColorScheme, type ColorShade, type ComponentProps, DatePicker, type DatePickerConfig, type DatePickerProps, type DateRange, type DeepPartial, Dropdown, DropdownItem, type DropdownItemProps, DropdownLabel, type DropdownLabelProps, DropdownMenu, type DropdownMenuProps, type DropdownProps, DropdownSeparator, type DropdownSeparatorProps, DropdownTrigger, type DropdownTriggerProps, Field, type FieldControlProps, type FieldOrientation, type FieldProps, type FontSizes, type FontWeights, Icon, type IconProps, Input, type InputProps, type LazyLoadedComponent, type LineHeights, List, ListDivider, type ListDividerProps, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, type MaskChangeHandler, Modal, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalContent, type ModalContentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTrigger, type ModalTriggerProps, NumberInput, type NumberInputPart, type NumberInputProps, type NumberInputVariant, PinInput, type PinInputProps, type PinInputType, type PinInputVariant, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, ProgressBar, type ProgressBarProps, type ProgressBarVariant, type Radii, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingPart, type RatingProps, type RatingVariant, Select, SelectContent, type SelectContentPart, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectOption, type SelectOptionPart, type SelectOptionProps, type SelectProps, SelectTrigger, type SelectTriggerPart, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, type SelectedOption, type SemanticColors, type Shade, type ShadeLevel, type Shadows, type Shape, type Size, type Sizes, Skeleton, type SkeletonProps, type SkeletonShape, type SkeletonVariant, type Spaces, Spinner, type SpinnerProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, type ToastAction, type ToastApi, type ToastContent, type ToastIcons, type ToastOptions, type ToastPart, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastStatus, type ToastVariant, Toggle, type ToggleProps, Tooltip, type TooltipProps, type Typography, type UseClickOutsideProps, type UseDebounceProps, type UseMaskProps, type UseMaskResult, type ZIndeces, applyMask, colorVar, deepMerge, defaultDarkTheme, defaultTheme, formatDate, getContrastColor, getContrastRatio, getDarkenColor, getDateFormatByLanguage, getDateFromDateString, getDateStringByLanguage, getDaysOfWeekByLanguage, getLightenColor, getMonthsByLanguage, lazyLoadContent, themeToCssVars, useClickOutside, useDebounce, useMask, useTheme, useToast, validateFormatDate };