plume-ui-react 0.7.0 → 0.9.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.
- package/README.md +1 -1
- package/dist/chunk-3JUN2GK7.mjs +1 -0
- package/dist/chunk-4RTWLIQ6.mjs +1 -0
- package/dist/chunk-H4KFRPQR.mjs +1 -0
- package/dist/chunk-OQEOAZF3.mjs +1 -0
- package/dist/chunk-SMKRX752.mjs +1 -0
- package/dist/chunk-TLZRYQKI.mjs +1 -0
- package/dist/chunk-YXXQZOHK.mjs +1 -0
- package/dist/components/form/datepicker/calendar.mjs +1 -1
- package/dist/components/form/datepicker/datepicker-input.mjs +1 -1
- package/dist/components/form/datepicker/datepicker.mjs +2 -2
- package/dist/components/form/input/input-reveal.mjs +1 -0
- package/dist/components/form/input/input.mjs +2 -2
- package/dist/components/form/numberinput/index.mjs +1 -0
- package/dist/components/form/numberinput/number-format.mjs +1 -0
- package/dist/components/form/numberinput/numberinput-stepper.mjs +1 -0
- package/dist/components/form/numberinput/numberinput.mjs +1 -0
- package/dist/components/form/numberinput/use-hold-repeat.mjs +1 -0
- package/dist/components/form/numberinput/use-number-input.mjs +1 -0
- package/dist/components/form/pininput/index.mjs +1 -0
- package/dist/components/form/pininput/pin-utils.mjs +1 -0
- package/dist/components/form/pininput/pininput.mjs +1 -0
- package/dist/components/form/pininput/use-pin-input.mjs +1 -0
- package/dist/components/form/rating/index.mjs +1 -0
- package/dist/components/form/rating/rating-icons.mjs +1 -0
- package/dist/components/form/rating/rating-item.mjs +1 -0
- package/dist/components/form/rating/rating.mjs +1 -0
- package/dist/components/form/rating/use-rating.mjs +1 -0
- package/dist/components/form/select/select-content.mjs +1 -1
- package/dist/components/form/select/select-group.mjs +1 -1
- package/dist/components/form/select/select-option.mjs +1 -1
- package/dist/components/form/select/select-trigger.mjs +1 -1
- package/dist/components/form/select/select-value.mjs +1 -1
- package/dist/components/form/textarea/textarea-counter.mjs +1 -0
- package/dist/components/form/textarea/textarea.mjs +1 -1
- package/dist/components/interaction/dropdown/dropdown-item.mjs +1 -1
- package/dist/components/interaction/dropdown/dropdown-label.mjs +1 -1
- package/dist/components/interaction/dropdown/dropdown-menu.mjs +1 -1
- package/dist/components/interaction/dropdown/dropdown-separator.mjs +1 -1
- package/dist/components/overlay/popover/popover-close.mjs +1 -1
- package/dist/components/overlay/popover/popover-content.mjs +1 -1
- package/dist/components/presentation/chip/chip.mjs +1 -1
- package/dist/index.d.mts +90 -3
- package/dist/index.d.ts +90 -3
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/dist/overlay/icons.mjs +1 -1
- package/dist/overlay/position.mjs +1 -1
- package/dist/overlay/use-controllable-state.mjs +1 -0
- package/dist/overlay/use-position.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-JMACSFO3.mjs +0 -1
- package/dist/chunk-LFT6MZ6P.mjs +0 -1
- package/dist/chunk-MREJ5C76.mjs +0 -1
- package/dist/chunk-V7QXMR67.mjs +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -495,11 +495,14 @@ interface InputOwnProps {
|
|
|
495
495
|
elementAfter?: ReactNode;
|
|
496
496
|
colorScheme?: ColorScheme;
|
|
497
497
|
mask?: string;
|
|
498
|
+
revealClassName?: string;
|
|
499
|
+
revealLabel?: string;
|
|
500
|
+
revealable?: boolean;
|
|
498
501
|
shape?: Shape;
|
|
499
502
|
size?: Size;
|
|
500
503
|
variant?: InputVariant;
|
|
501
504
|
}
|
|
502
|
-
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'>;
|
|
503
506
|
type InputVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
|
|
504
507
|
type InputProps = ComponentProps & InputRootAttributes & InputOwnProps;
|
|
505
508
|
declare const Input: react.ForwardRefExoticComponent<ComponentProps & InputRootAttributes & InputOwnProps & react.RefAttributes<HTMLInputElement>>;
|
|
@@ -604,6 +607,59 @@ interface ModalTriggerProps {
|
|
|
604
607
|
}
|
|
605
608
|
declare const ModalTrigger: react.ForwardRefExoticComponent<ModalTriggerProps & react.RefAttributes<HTMLElement>>;
|
|
606
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
|
+
|
|
607
663
|
type PopoverVariant = 'elevated' | 'outline' | 'unstyled';
|
|
608
664
|
|
|
609
665
|
interface PopoverProps {
|
|
@@ -683,6 +739,33 @@ type RadioGroupRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'aria-descr
|
|
|
683
739
|
type RadioGroupProps = Omit<ComponentProps, 'index'> & RadioGroupRootAttributes & RadioGroupOwnProps;
|
|
684
740
|
declare const RadioGroup: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & RadioGroupRootAttributes & RadioGroupOwnProps & react.RefAttributes<HTMLDivElement>>;
|
|
685
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
|
+
|
|
686
769
|
type SelectVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
|
|
687
770
|
interface SelectedOption {
|
|
688
771
|
icon?: ReactNode;
|
|
@@ -748,7 +831,7 @@ interface SelectGroupOwnProps {
|
|
|
748
831
|
type SelectGroupProps = Omit<ComponentProps, 'index'> & SelectGroupOwnProps;
|
|
749
832
|
declare const SelectGroup: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & SelectGroupOwnProps & react.RefAttributes<HTMLDivElement>>;
|
|
750
833
|
|
|
751
|
-
type SelectOptionPart = 'check' | '
|
|
834
|
+
type SelectOptionPart = 'check' | 'description' | 'icon';
|
|
752
835
|
interface SelectOptionOwnProps {
|
|
753
836
|
children?: ReactNode;
|
|
754
837
|
classNames?: Partial<Record<SelectOptionPart, string>>;
|
|
@@ -846,8 +929,12 @@ declare const TabPanel: react.ForwardRefExoticComponent<Pick<HTMLAttributes<HTML
|
|
|
846
929
|
|
|
847
930
|
interface TextareaOwnProps {
|
|
848
931
|
colorScheme?: ColorScheme;
|
|
932
|
+
countClassName?: string;
|
|
933
|
+
formatCount?: (count: number, max: number | undefined) => string;
|
|
934
|
+
formatRemaining?: (remaining: number) => string;
|
|
849
935
|
resize?: TextareaResize;
|
|
850
936
|
shape?: Shape;
|
|
937
|
+
showCount?: boolean;
|
|
851
938
|
size?: Size;
|
|
852
939
|
variant?: TextareaVariant;
|
|
853
940
|
}
|
|
@@ -938,4 +1025,4 @@ interface TooltipProps {
|
|
|
938
1025
|
type TooltipVariant = 'solid' | 'outline' | 'unstyled';
|
|
939
1026
|
declare function Tooltip({ children, className, closeDelay, content, defaultOpen, disabled, offset, onOpenChange, open: openProp, openDelay, placement, size, style, variant, }: Readonly<TooltipProps>): ReactNode;
|
|
940
1027
|
|
|
941
|
-
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, 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, 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 };
|
|
1028
|
+
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 };
|