@zentrades-ui/components 0.1.6 → 0.1.7
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/components.d.ts +2372 -18
- package/dist/components.js +2 -0
- package/dist/components.js.map +1 -1
- package/dist/icons.d.ts +3 -3
- package/dist/index.d.ts +44 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/icons.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
type IconSize = "12" | "16" | "20" | "24" | "32" | "40" | "48";
|
|
5
5
|
type IconOwnProps = {
|
|
@@ -14,8 +14,8 @@ type IconOwnProps = {
|
|
|
14
14
|
/** Additional class name */
|
|
15
15
|
className?: string;
|
|
16
16
|
};
|
|
17
|
-
type IconProps = IconOwnProps & Omit<
|
|
18
|
-
declare const Icon:
|
|
17
|
+
type IconProps = IconOwnProps & Omit<React.SVGProps<SVGSVGElement>, keyof IconOwnProps>;
|
|
18
|
+
declare const Icon: React.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
19
19
|
declare function ChevronLeftIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
20
20
|
declare function ChevronRightIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
21
21
|
declare function ChevronDownIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { AlertCircleIcon, ArrowLeftIcon, ArrowRightIcon, CalendarIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClockIcon, CloseIcon, CopyIcon, EditIcon, ExternalLinkIcon, FilterIcon, Icon, IconOwnProps, IconProps, IconSize, InfoIcon, MinusIcon, MoreHorizontalIcon, MoreVerticalIcon, PlusIcon, SearchIcon, SettingsIcon, SortIcon, TrashIcon, UploadCloudIcon, UserIcon } from './icons.js';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import React__default, { ElementType, JSX, ComponentPropsWithRef, ReactElement, CSSProperties, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, ComponentPropsWithoutRef } from 'react';
|
|
4
3
|
import { SpacingToken, SemanticSpacing } from '@zentrades-ui/tokens';
|
|
@@ -2135,6 +2134,49 @@ type FileUploadProps = {
|
|
|
2135
2134
|
};
|
|
2136
2135
|
declare function FileUpload({ variant, title, description, dragLabel, compactDragLabel, supportedText, maxSizeLabel, helperText, buttonLabel, chooseFileLabel, files, accept, multiple, disabled, onSelectFiles, onRemoveFile, className, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
2137
2136
|
|
|
2137
|
+
type IconSize = "12" | "16" | "20" | "24" | "32" | "40" | "48";
|
|
2138
|
+
type IconOwnProps = {
|
|
2139
|
+
/** Accessible title for the icon */
|
|
2140
|
+
title?: string;
|
|
2141
|
+
/** Icon content (SVG paths) */
|
|
2142
|
+
children?: ReactNode;
|
|
2143
|
+
/** Icon size in pixels */
|
|
2144
|
+
size?: IconSize;
|
|
2145
|
+
/** SVG viewBox attribute */
|
|
2146
|
+
viewBox?: string;
|
|
2147
|
+
/** Additional class name */
|
|
2148
|
+
className?: string;
|
|
2149
|
+
};
|
|
2150
|
+
type IconProps = IconOwnProps & Omit<React__default.SVGProps<SVGSVGElement>, keyof IconOwnProps>;
|
|
2151
|
+
declare const Icon: React__default.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
|
|
2152
|
+
declare function ChevronLeftIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2153
|
+
declare function ChevronRightIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2154
|
+
declare function ChevronDownIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2155
|
+
declare function ChevronUpIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2156
|
+
declare function CloseIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2157
|
+
declare function CheckIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2158
|
+
declare function PlusIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2159
|
+
declare function MinusIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2160
|
+
declare function SearchIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2161
|
+
declare function CalendarIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2162
|
+
declare function ClockIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2163
|
+
declare function UploadCloudIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2164
|
+
declare function MoreVerticalIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2165
|
+
declare function MoreHorizontalIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2166
|
+
declare function ArrowLeftIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2167
|
+
declare function ArrowRightIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2168
|
+
declare function InfoIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2169
|
+
declare function AlertCircleIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2170
|
+
declare function CheckCircleIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2171
|
+
declare function TrashIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2172
|
+
declare function EditIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2173
|
+
declare function CopyIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2174
|
+
declare function ExternalLinkIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2175
|
+
declare function FilterIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2176
|
+
declare function SortIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2177
|
+
declare function SettingsIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2178
|
+
declare function UserIcon(props: IconProps): react_jsx_runtime.JSX.Element;
|
|
2179
|
+
|
|
2138
2180
|
type DayInfo = {
|
|
2139
2181
|
date: Date;
|
|
2140
2182
|
day: number;
|
|
@@ -2327,4 +2369,4 @@ interface DateTimeInputProps {
|
|
|
2327
2369
|
}
|
|
2328
2370
|
declare const DateTimeInput: React__default.ForwardRefExoticComponent<DateTimeInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2329
2371
|
|
|
2330
|
-
export { AVATAR_COLORS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionRoot, type AccordionRootProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, type AlertDialogLayout, type AlertDialogProps, Avatar, type AvatarColor, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, Body, Box, type BoxOwnProps, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbRoot, type BreadcrumbRootProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarArrowButton, type CalendarArrowButtonProps, CalendarDateButton, type CalendarDateButtonProps, CalendarGrid, type CalendarGridProps, type CalendarProps, Caption, Checkbox, type CheckboxProps, Chip, type ChipOutline, type ChipOwnProps, type ChipProps, type ChipVariant, Code, ContentSplitter, type ContentSplitterProps, type DateRange, DateTimeInput, type DateTimeInputMode, type DateTimeInputProps, type DateTimeValue, type DayInfo, Dialog, DialogBody, type DialogBodyProps, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogRoot, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerCompound, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, type DrawerOverlayProps, DrawerPortal, type DrawerProps, DrawerRoot, DrawerSection, type DrawerSectionProps, type DrawerSide, type DrawerSize, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type ExtendableProps, FileUpload, type FileUploadProps, Grid, GridItem, type GridItemProps, type GridProps, Heading, type HeadingOwnProps, type HeadingVariant, IconButton, type IconButtonProps, type IconPosition, Image, type ImageFit, type ImageLoading, type ImageProps, type InheritableElementProps, Inline, type InlineOwnProps, type InlineProps, Input, type InputProps, Label, type LabelVariant, MONTH_NAMES, MONTH_NAMES_SHORT, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuLabelProps, type MenuProps, MenuRoot, type MenuRootProps, MenuSeparator, type MenuSeparatorProps, MenuSub, type MenuSubProps, MenuTrigger, type MenuTriggerProps, Pagination, PaginationEllipsis, type PaginationEllipsisProps, PaginationInfo, PaginationInfoComplete, type PaginationInfoCompleteProps, PaginationInfoLabel, type PaginationInfoLabelProps, PaginationInfoRange, type PaginationInfoRangeProps, PaginationInfoRoot, type PaginationInfoRootProps, PaginationNext, type PaginationNextProps, PaginationPage, type PaginationPageProps, PaginationPrevious, type PaginationPreviousProps, PaginationRoot, type PaginationRootProps, type PolymorphicForwardRefExoticComponent, type PolymorphicProps, type PolymorphicPropsWithRef, type PolymorphicPropsWithoutRef, type PolymorphicRef, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverClose, PopoverCompound, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverRoot, type PopoverSize, PopoverTrigger, type PopoverTriggerProps, type PropsOf, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectRoot, type SelectRootProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, type SimplePopoverProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, type SpinnerSize, Stack, type StackOwnProps, type StackProps, Switch, type SwitchProps, type SwitchSize, type TBorderPropertyTypes, type TBoxStyles, type TColorPropertyTypes, type TMarginPaddingPropertyTypes, type TShadowStyles, type TSizeStyles, type TTextStyles, type TTransformStyles, type T_SVGColorPropertyTypes, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, TabsRoot, type TabsRootProps, TabsTrigger, type TabsTriggerProps, type TabsVariant, Text, TextArea, type TextAreaProps, type TextOwnProps, type TextVariant, type TimeFormat$1 as TimeFormat, type TimePeriod, TimePicker, type TimePickerProps, type TimeValue, Toast, type ToastData, type ToastProps, ToastProvider, type ToastVariant, ToastViewport, type ToastViewportPosition, type ToastViewportProps, Tooltip, type TooltipProps, TooltipProvider, type UploadFileItem, WEEKDAYS, applyHeadingVariantStyles, applyTextVariantStyles, borderStyles, boxStyles, cn, colorStyles, formatDate, formatInputDate, getColorFromString, getDefaultMaxDate, getDefaultMinDate, getInitials, isDateBetween, isSameDay, isWithinBounds, marginPaddingStyles, parseInputDate, shadowStyles, sizeStyles, svgColorStyles, textStyles, transformStyles, useCalendarDays, useToast };
|
|
2372
|
+
export { AVATAR_COLORS, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionRoot, type AccordionRootProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertCircleIcon, AlertDialog, type AlertDialogLayout, type AlertDialogProps, ArrowLeftIcon, ArrowRightIcon, Avatar, type AvatarColor, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, Body, Box, type BoxOwnProps, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbRoot, type BreadcrumbRootProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, CalendarArrowButton, type CalendarArrowButtonProps, CalendarDateButton, type CalendarDateButtonProps, CalendarGrid, type CalendarGridProps, CalendarIcon, type CalendarProps, Caption, CheckCircleIcon, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, type ChipOutline, type ChipOwnProps, type ChipProps, type ChipVariant, ClockIcon, CloseIcon, Code, ContentSplitter, type ContentSplitterProps, CopyIcon, type DateRange, DateTimeInput, type DateTimeInputMode, type DateTimeInputProps, type DateTimeValue, type DayInfo, Dialog, DialogBody, type DialogBodyProps, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogRoot, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, DrawerCompound, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, type DrawerOverlayProps, DrawerPortal, type DrawerProps, DrawerRoot, DrawerSection, type DrawerSectionProps, type DrawerSide, type DrawerSize, DrawerTitle, type DrawerTitleProps, DrawerTrigger, EditIcon, type ExtendableProps, ExternalLinkIcon, FileUpload, type FileUploadProps, FilterIcon, Grid, GridItem, type GridItemProps, type GridProps, Heading, type HeadingOwnProps, type HeadingVariant, Icon, IconButton, type IconButtonProps, type IconOwnProps, type IconPosition, type IconProps, type IconSize, Image, type ImageFit, type ImageLoading, type ImageProps, InfoIcon, type InheritableElementProps, Inline, type InlineOwnProps, type InlineProps, Input, type InputProps, Label, type LabelVariant, MONTH_NAMES, MONTH_NAMES_SHORT, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuLabelProps, type MenuProps, MenuRoot, type MenuRootProps, MenuSeparator, type MenuSeparatorProps, MenuSub, type MenuSubProps, MenuTrigger, type MenuTriggerProps, MinusIcon, MoreHorizontalIcon, MoreVerticalIcon, Pagination, PaginationEllipsis, type PaginationEllipsisProps, PaginationInfo, PaginationInfoComplete, type PaginationInfoCompleteProps, PaginationInfoLabel, type PaginationInfoLabelProps, PaginationInfoRange, type PaginationInfoRangeProps, PaginationInfoRoot, type PaginationInfoRootProps, PaginationNext, type PaginationNextProps, PaginationPage, type PaginationPageProps, PaginationPrevious, type PaginationPreviousProps, PaginationRoot, type PaginationRootProps, PlusIcon, type PolymorphicForwardRefExoticComponent, type PolymorphicProps, type PolymorphicPropsWithRef, type PolymorphicPropsWithoutRef, type PolymorphicRef, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverClose, PopoverCompound, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverRoot, type PopoverSize, PopoverTrigger, type PopoverTriggerProps, type PropsOf, SearchIcon, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectRoot, type SelectRootProps, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SettingsIcon, type SimplePopoverProps, Skeleton, type SkeletonProps, SortIcon, Spinner, type SpinnerProps, type SpinnerSize, Stack, type StackOwnProps, type StackProps, Switch, type SwitchProps, type SwitchSize, type TBorderPropertyTypes, type TBoxStyles, type TColorPropertyTypes, type TMarginPaddingPropertyTypes, type TShadowStyles, type TSizeStyles, type TTextStyles, type TTransformStyles, type T_SVGColorPropertyTypes, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, TabsRoot, type TabsRootProps, TabsTrigger, type TabsTriggerProps, type TabsVariant, Text, TextArea, type TextAreaProps, type TextOwnProps, type TextVariant, type TimeFormat$1 as TimeFormat, type TimePeriod, TimePicker, type TimePickerProps, type TimeValue, Toast, type ToastData, type ToastProps, ToastProvider, type ToastVariant, ToastViewport, type ToastViewportPosition, type ToastViewportProps, Tooltip, type TooltipProps, TooltipProvider, TrashIcon, UploadCloudIcon, type UploadFileItem, UserIcon, WEEKDAYS, applyHeadingVariantStyles, applyTextVariantStyles, borderStyles, boxStyles, cn, colorStyles, formatDate, formatInputDate, getColorFromString, getDefaultMaxDate, getDefaultMinDate, getInitials, isDateBetween, isSameDay, isWithinBounds, marginPaddingStyles, parseInputDate, shadowStyles, sizeStyles, svgColorStyles, textStyles, transformStyles, useCalendarDays, useToast };
|