plainframe-ui 0.1.39 → 0.1.42
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 +14 -10
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -342,7 +342,7 @@ declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
|
|
342
342
|
/** @jsxImportSource @emotion/react */
|
|
343
343
|
|
|
344
344
|
type Direction$5 = "horizontal" | "vertical";
|
|
345
|
-
type Size$
|
|
345
|
+
type Size$1 = "sm" | "md" | "lg";
|
|
346
346
|
type WithCssProp$4 = {
|
|
347
347
|
css?: Interpolation<Theme>;
|
|
348
348
|
};
|
|
@@ -356,7 +356,7 @@ declare const ButtonGroup: React.MemoExoticComponent<React.ForwardRefExoticCompo
|
|
|
356
356
|
direction?: Direction$5;
|
|
357
357
|
fullWidth?: boolean;
|
|
358
358
|
disabled?: boolean;
|
|
359
|
-
size?: Size$
|
|
359
|
+
size?: Size$1;
|
|
360
360
|
rounded?: boolean;
|
|
361
361
|
gap?: string | number;
|
|
362
362
|
width?: string | number;
|
|
@@ -720,14 +720,14 @@ declare const Image: React.ForwardRefExoticComponent<ImageProps & React.RefAttri
|
|
|
720
720
|
|
|
721
721
|
type Variant$7 = "fan" | "slide" | "domino" | "ladder";
|
|
722
722
|
type HoverEffect = "reveal" | "expand" | "none";
|
|
723
|
-
type Size
|
|
723
|
+
type Size = "sm" | "md" | "lg" | "xl";
|
|
724
724
|
type RadiusToken = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
725
725
|
type ImageStackProps = Omit<React.HTMLAttributes<HTMLDivElement>, "style"> & {
|
|
726
726
|
children: React.ReactNode;
|
|
727
727
|
variant?: Variant$7;
|
|
728
728
|
width?: number | string;
|
|
729
729
|
aspectRatio?: number | string;
|
|
730
|
-
size?: Size
|
|
730
|
+
size?: Size;
|
|
731
731
|
hoverEffect?: HoverEffect;
|
|
732
732
|
hovering?: boolean;
|
|
733
733
|
maxItems?: number;
|
|
@@ -884,7 +884,6 @@ declare const ModalContent: React.ForwardRefExoticComponent<ModalContentProps &
|
|
|
884
884
|
|
|
885
885
|
/** @jsxImportSource @emotion/react */
|
|
886
886
|
|
|
887
|
-
type Size = "xs" | "sm" | "md";
|
|
888
887
|
type Variant$6 = "subtle" | "outlined" | "ghost";
|
|
889
888
|
type PaginationProps = {
|
|
890
889
|
count: number;
|
|
@@ -896,7 +895,6 @@ type PaginationProps = {
|
|
|
896
895
|
disabled?: boolean;
|
|
897
896
|
showFirstLast?: boolean;
|
|
898
897
|
loop?: boolean;
|
|
899
|
-
size?: Size;
|
|
900
898
|
variant?: Variant$6;
|
|
901
899
|
gap?: number;
|
|
902
900
|
className?: string;
|
|
@@ -1540,6 +1538,12 @@ type PlainframeUITheme = {
|
|
|
1540
1538
|
onColors: Record<string, string>;
|
|
1541
1539
|
};
|
|
1542
1540
|
};
|
|
1541
|
+
/** Deep partial - makes all nested properties optional */
|
|
1542
|
+
type DeepPartial<T> = T extends object ? {
|
|
1543
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
1544
|
+
} : T;
|
|
1545
|
+
/** Partial theme for user customization - all values optional at any depth */
|
|
1546
|
+
type PartialTheme = DeepPartial<PlainframeUITheme>;
|
|
1543
1547
|
type Mode = "light" | "dark";
|
|
1544
1548
|
declare const surfaceFromNeutral: (mode: Mode, n: Scale) => {
|
|
1545
1549
|
appBg: string;
|
|
@@ -1571,12 +1575,12 @@ declare module "@emotion/react" {
|
|
|
1571
1575
|
|
|
1572
1576
|
/** @jsxImportSource @emotion/react */
|
|
1573
1577
|
|
|
1574
|
-
type ThemeProp =
|
|
1578
|
+
type ThemeProp = PartialTheme & {
|
|
1575
1579
|
primaryKey?: string;
|
|
1576
|
-
light?:
|
|
1580
|
+
light?: PartialTheme & {
|
|
1577
1581
|
primaryKey?: string;
|
|
1578
1582
|
};
|
|
1579
|
-
dark?:
|
|
1583
|
+
dark?: PartialTheme & {
|
|
1580
1584
|
primaryKey?: string;
|
|
1581
1585
|
};
|
|
1582
1586
|
};
|
|
@@ -1602,4 +1606,4 @@ declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
|
1602
1606
|
|
|
1603
1607
|
declare function CssBaseline(): _emotion_react_jsx_runtime.JSX.Element;
|
|
1604
1608
|
|
|
1605
|
-
export { Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionBar, Alert, AlertDescription, AlertTitle, Autocomplete, Avatar, AvatarGroup, Backdrop, Badge, BreadCrumbItem, BreadCrumbs, Button, ButtonGroup, type ButtonProps, Card, CardContent, CardDescription, CardEnd, CardGroup, CardStart, CardTitle, Checkbox, Chip, CodeField, Container, ContextZone, CssBaseline, Divider, Drawer, DropdownMenu, DropdownMenuContent, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Fade, Flex, Grow, Image, type ImageProps, ImageStack, Kbd, Menu, MenuCheckboxGroup, MenuCheckboxItem, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSwitchItem, MenuVariantCtx, Modal, ModalContent, type ModalProps, ModalTrigger, type Mode, Pagination, type PlainframeUITheme, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverContent, type PopoverContentProps, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps, Progress, Quote, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, Rotate, type Scale, Select, Skeleton, Slide, Slider, Step, Stepper, Switch, Tab, TabContent, Tabs, TextArea, TextField, type TextFieldProps, type ThemeProp, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipTrigger, Typography, defaultDarkTheme, defaultLightTheme, surfaceFromNeutral, textDark, textLight, toast, useColorMode, useDropdownMenuActiveIndex, usePlainframeUITheme, usePopoverContext, usePrimary, usePrimitives };
|
|
1609
|
+
export { Accordion, AccordionDetails, AccordionGroup, AccordionSummary, ActionBar, Alert, AlertDescription, AlertTitle, Autocomplete, Avatar, AvatarGroup, Backdrop, Badge, BreadCrumbItem, BreadCrumbs, Button, ButtonGroup, type ButtonProps, Card, CardContent, CardDescription, CardEnd, CardGroup, CardStart, CardTitle, Checkbox, Chip, CodeField, Container, ContextZone, CssBaseline, type DeepPartial, Divider, Drawer, DropdownMenu, DropdownMenuContent, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Fade, Flex, Grow, Image, type ImageProps, ImageStack, Kbd, Menu, MenuCheckboxGroup, MenuCheckboxItem, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSwitchItem, MenuVariantCtx, Modal, ModalContent, type ModalProps, ModalTrigger, type Mode, Pagination, type PartialTheme, type PlainframeUITheme, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverContent, type PopoverContentProps, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps, Progress, Quote, RadioGroup, type RadioGroupProps, RadioItem, type RadioItemProps, Rotate, type Scale, Select, Skeleton, Slide, Slider, Step, Stepper, Switch, Tab, TabContent, Tabs, TextArea, TextField, type TextFieldProps, type ThemeProp, ThemeProvider, type ThemeProviderProps, Tooltip, TooltipContent, TooltipTrigger, Typography, defaultDarkTheme, defaultLightTheme, surfaceFromNeutral, textDark, textLight, toast, useColorMode, useDropdownMenuActiveIndex, usePlainframeUITheme, usePopoverContext, usePrimary, usePrimitives };
|