plainframe-ui 0.1.48 → 0.1.50
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 +18 -3
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1036,6 +1036,21 @@ declare const Rotate: React.FC<RotateProps>;
|
|
|
1036
1036
|
|
|
1037
1037
|
type Align$1 = "left" | "center" | "right";
|
|
1038
1038
|
type Variant$4 = "subtle" | "outlined" | "ghost";
|
|
1039
|
+
/** DEAD SIMPLE OPTION */
|
|
1040
|
+
type SelectItemProps<T = unknown> = {
|
|
1041
|
+
value: T;
|
|
1042
|
+
startIcon?: React.ReactNode;
|
|
1043
|
+
endIcon?: React.ReactNode;
|
|
1044
|
+
children?: React.ReactNode;
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* Declarative option: Select reads these props and renders MenuItem internally.
|
|
1048
|
+
* This component itself renders nothing.
|
|
1049
|
+
*/
|
|
1050
|
+
declare const SelectItem: {
|
|
1051
|
+
<T>(props: SelectItemProps<T>): JSX.Element | null;
|
|
1052
|
+
displayName: string;
|
|
1053
|
+
};
|
|
1039
1054
|
type SelectProps<T = unknown> = {
|
|
1040
1055
|
value?: T | T[];
|
|
1041
1056
|
defaultValue?: T | T[];
|
|
@@ -1597,16 +1612,16 @@ type ThemeProviderProps = {
|
|
|
1597
1612
|
declare function usePlainframeUITheme(): PlainframeUITheme;
|
|
1598
1613
|
declare function useColorMode(): {
|
|
1599
1614
|
mode: Mode;
|
|
1600
|
-
setMode: (m: Mode) =>
|
|
1615
|
+
setMode: (m: Mode) => any;
|
|
1601
1616
|
toggleMode: () => void;
|
|
1602
1617
|
};
|
|
1603
1618
|
declare function usePrimary(): {
|
|
1604
1619
|
primary: string;
|
|
1605
|
-
setPrimary: (p: string) =>
|
|
1620
|
+
setPrimary: (p: string) => any;
|
|
1606
1621
|
};
|
|
1607
1622
|
declare function usePrimitives<T = PlainframeUITheme>(selector?: (t: PlainframeUITheme) => T): T;
|
|
1608
1623
|
declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
1609
1624
|
|
|
1610
1625
|
declare function CssBaseline(): _emotion_react_jsx_runtime.JSX.Element;
|
|
1611
1626
|
|
|
1612
|
-
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 };
|
|
1627
|
+
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, SelectItem, 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 };
|