@flipova/foundation 2.1.1 → 2.2.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/CHANGELOG.md +8 -0
- package/README.md +42 -3
- package/components/ui/gluestack-ui-provider/index.tsx +45 -25
- package/design/documentation.xml +60 -3
- package/design/tools/design.js +6 -1
- package/design/tools/npm.js +104 -3
- package/dist/{chunk-WNVU3BM2.mjs → chunk-HF2IPXOT.mjs} +25 -22
- package/dist/chunk-HF2IPXOT.mjs.map +1 -0
- package/dist/{chunk-LV4UIEQN.js → chunk-TDW7UKG6.js} +25 -21
- package/dist/chunk-TDW7UKG6.js.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +292 -288
- package/dist/index.mjs +1 -1
- package/dist/ui/index.d.mts +18 -3
- package/dist/ui/index.d.ts +18 -3
- package/dist/ui/index.js +292 -288
- package/dist/ui/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-LV4UIEQN.js.map +0 -1
- package/dist/chunk-WNVU3BM2.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, DateTimePickerTrigger, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, GluestackUIProvider, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, Icon, Image, ImageBackground, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, ImageViewerTrigger, InfoIcon, Input, InputAccessoryView, InputField, InputIcon, InputSlot, KeyboardAvoidingView, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable, Progress, ProgressFilledTrack, FlatList2 as RNFlatList, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RefreshControl, RemoveIcon, Repeat1Icon, RepeatIcon, SafeAreaView, ScrollView, SearchIcon, SectionList, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, StatusBar, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, View, VirtualizedList, createIconUI as createIcon, isGlassEffectAPIAvailable, isLiquidGlassAvailable, useCalendarTheme, useGluestackColors, useToast } from './chunk-
|
|
1
|
+
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, DateTimePickerTrigger, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, GluestackUIProvider, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, Icon, Image, ImageBackground, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, ImageViewerTrigger, InfoIcon, Input, InputAccessoryView, InputField, InputIcon, InputSlot, KeyboardAvoidingView, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable, Progress, ProgressFilledTrack, FlatList2 as RNFlatList, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RefreshControl, RemoveIcon, Repeat1Icon, RepeatIcon, SafeAreaView, ScrollView, SearchIcon, SectionList, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, StatusBar, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, View, VirtualizedList, createGluestackUIProvider, createIconUI as createIcon, isGlassEffectAPIAvailable, isLiquidGlassAvailable, useCalendarTheme, useGluestackColors, useToast } from './chunk-HF2IPXOT.mjs';
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -2397,14 +2397,29 @@ declare function useCalendarTheme$1(): Record<string, string>;
|
|
|
2397
2397
|
type GluestackColors = ReturnType<typeof useGluestackColors$1>;
|
|
2398
2398
|
|
|
2399
2399
|
type ModeType = 'light' | 'dark' | 'system';
|
|
2400
|
+
/**
|
|
2401
|
+
* The theme a provider is built from: the same shape `config.ts` generates, so
|
|
2402
|
+
* the file an app regenerates from its own registries is accepted as it is.
|
|
2403
|
+
*/
|
|
2404
|
+
type GluestackThemeConfig = Record<string, Record<string, string>>;
|
|
2400
2405
|
declare const useGluestackColors: typeof useGluestackColors$1;
|
|
2401
2406
|
declare const useCalendarTheme: typeof useCalendarTheme$1;
|
|
2402
2407
|
|
|
2403
|
-
|
|
2408
|
+
interface GluestackUIProviderProps {
|
|
2404
2409
|
mode?: ModeType;
|
|
2405
2410
|
children?: React.ReactNode;
|
|
2406
2411
|
style?: ViewProps['style'];
|
|
2407
|
-
}
|
|
2412
|
+
}
|
|
2413
|
+
/**
|
|
2414
|
+
* Build a provider around a theme.
|
|
2415
|
+
*
|
|
2416
|
+
* This is what lets an app own its design system: it copies the registries with
|
|
2417
|
+
* `flipova-design adopt`, edits them, regenerates `theme/config.ts`, and mounts
|
|
2418
|
+
* the result here. The exported `GluestackUIProvider` is this factory applied to
|
|
2419
|
+
* the package's own theme, so nothing changes for an app that did not adopt.
|
|
2420
|
+
*/
|
|
2421
|
+
declare function createGluestackUIProvider(theme: GluestackThemeConfig): ({ mode, ...props }: GluestackUIProviderProps) => React.JSX.Element;
|
|
2422
|
+
declare const GluestackUIProvider: ({ mode, ...props }: GluestackUIProviderProps) => React.JSX.Element;
|
|
2408
2423
|
|
|
2409
2424
|
declare const Grid: React.ForwardRefExoticComponent<ViewProps & VariantProps<_gluestack_ui_utils_nativewind_utils.TVReturnType<{} | {} | {}, undefined, "w-full grid grid-cols-12" | "w-full box-border flex-row flex-wrap justify-start", TVConfig<V, EV>, {} | {}, undefined, _gluestack_ui_utils_nativewind_utils.TVReturnType<unknown, undefined, "w-full grid grid-cols-12" | "w-full box-border flex-row flex-wrap justify-start", TVConfig<V, EV>, unknown, unknown, undefined>>> & {
|
|
2410
2425
|
gap?: number;
|
|
@@ -6997,4 +7012,4 @@ declare const VStack: React.ForwardRefExoticComponent<react_native.ViewProps & V
|
|
|
6997
7012
|
};
|
|
6998
7013
|
}, undefined, "flex-col " | "flex-col flex flex-col relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none", TVConfig<V, EV>, unknown, unknown, undefined>>> & React.RefAttributes<View>>;
|
|
6999
7014
|
|
|
7000
|
-
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, type BottomSheetRef, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, type CalendarMarker, type CalendarMarkers, type CalendarMode, type CalendarProps, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, type DateTimePickerMode, type DateTimePickerProps, DateTimePickerTrigger, type DayState, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, type GluestackColors, GluestackUIProvider, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, type ICalendarProps, Icon, Image, ImageBackground, type ImageItem, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, type ImageViewerProps, ImageViewerTrigger, type ImageViewerTriggerProps, InfoIcon, Input, InputField, InputIcon, InputSlot, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, type ModeType, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable, Progress, ProgressFilledTrack, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RemoveIcon, Repeat1Icon, RepeatIcon, SearchIcon, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, createIconUI as createIcon, useCalendarTheme, useGluestackColors, useToast };
|
|
7015
|
+
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, type BottomSheetRef, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, type CalendarMarker, type CalendarMarkers, type CalendarMode, type CalendarProps, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, type DateTimePickerMode, type DateTimePickerProps, DateTimePickerTrigger, type DayState, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, type GluestackColors, type GluestackThemeConfig, GluestackUIProvider, type GluestackUIProviderProps, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, type ICalendarProps, Icon, Image, ImageBackground, type ImageItem, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, type ImageViewerProps, ImageViewerTrigger, type ImageViewerTriggerProps, InfoIcon, Input, InputField, InputIcon, InputSlot, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, type ModeType, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable, Progress, ProgressFilledTrack, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RemoveIcon, Repeat1Icon, RepeatIcon, SearchIcon, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, createGluestackUIProvider, createIconUI as createIcon, useCalendarTheme, useGluestackColors, useToast };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -2397,14 +2397,29 @@ declare function useCalendarTheme$1(): Record<string, string>;
|
|
|
2397
2397
|
type GluestackColors = ReturnType<typeof useGluestackColors$1>;
|
|
2398
2398
|
|
|
2399
2399
|
type ModeType = 'light' | 'dark' | 'system';
|
|
2400
|
+
/**
|
|
2401
|
+
* The theme a provider is built from: the same shape `config.ts` generates, so
|
|
2402
|
+
* the file an app regenerates from its own registries is accepted as it is.
|
|
2403
|
+
*/
|
|
2404
|
+
type GluestackThemeConfig = Record<string, Record<string, string>>;
|
|
2400
2405
|
declare const useGluestackColors: typeof useGluestackColors$1;
|
|
2401
2406
|
declare const useCalendarTheme: typeof useCalendarTheme$1;
|
|
2402
2407
|
|
|
2403
|
-
|
|
2408
|
+
interface GluestackUIProviderProps {
|
|
2404
2409
|
mode?: ModeType;
|
|
2405
2410
|
children?: React.ReactNode;
|
|
2406
2411
|
style?: ViewProps['style'];
|
|
2407
|
-
}
|
|
2412
|
+
}
|
|
2413
|
+
/**
|
|
2414
|
+
* Build a provider around a theme.
|
|
2415
|
+
*
|
|
2416
|
+
* This is what lets an app own its design system: it copies the registries with
|
|
2417
|
+
* `flipova-design adopt`, edits them, regenerates `theme/config.ts`, and mounts
|
|
2418
|
+
* the result here. The exported `GluestackUIProvider` is this factory applied to
|
|
2419
|
+
* the package's own theme, so nothing changes for an app that did not adopt.
|
|
2420
|
+
*/
|
|
2421
|
+
declare function createGluestackUIProvider(theme: GluestackThemeConfig): ({ mode, ...props }: GluestackUIProviderProps) => React.JSX.Element;
|
|
2422
|
+
declare const GluestackUIProvider: ({ mode, ...props }: GluestackUIProviderProps) => React.JSX.Element;
|
|
2408
2423
|
|
|
2409
2424
|
declare const Grid: React.ForwardRefExoticComponent<ViewProps & VariantProps<_gluestack_ui_utils_nativewind_utils.TVReturnType<{} | {} | {}, undefined, "w-full grid grid-cols-12" | "w-full box-border flex-row flex-wrap justify-start", TVConfig<V, EV>, {} | {}, undefined, _gluestack_ui_utils_nativewind_utils.TVReturnType<unknown, undefined, "w-full grid grid-cols-12" | "w-full box-border flex-row flex-wrap justify-start", TVConfig<V, EV>, unknown, unknown, undefined>>> & {
|
|
2410
2425
|
gap?: number;
|
|
@@ -6997,4 +7012,4 @@ declare const VStack: React.ForwardRefExoticComponent<react_native.ViewProps & V
|
|
|
6997
7012
|
};
|
|
6998
7013
|
}, undefined, "flex-col " | "flex-col flex flex-col relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none", TVConfig<V, EV>, unknown, unknown, undefined>>> & React.RefAttributes<View>>;
|
|
6999
7014
|
|
|
7000
|
-
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, type BottomSheetRef, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, type CalendarMarker, type CalendarMarkers, type CalendarMode, type CalendarProps, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, type DateTimePickerMode, type DateTimePickerProps, DateTimePickerTrigger, type DayState, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, type GluestackColors, GluestackUIProvider, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, type ICalendarProps, Icon, Image, ImageBackground, type ImageItem, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, type ImageViewerProps, ImageViewerTrigger, type ImageViewerTriggerProps, InfoIcon, Input, InputField, InputIcon, InputSlot, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, type ModeType, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable, Progress, ProgressFilledTrack, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RemoveIcon, Repeat1Icon, RepeatIcon, SearchIcon, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, createIconUI as createIcon, useCalendarTheme, useGluestackColors, useToast };
|
|
7015
|
+
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, type BottomSheetRef, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, type CalendarMarker, type CalendarMarkers, type CalendarMode, type CalendarProps, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, type DateTimePickerMode, type DateTimePickerProps, DateTimePickerTrigger, type DayState, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, type GluestackColors, type GluestackThemeConfig, GluestackUIProvider, type GluestackUIProviderProps, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, type ICalendarProps, Icon, Image, ImageBackground, type ImageItem, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, type ImageViewerProps, ImageViewerTrigger, type ImageViewerTriggerProps, InfoIcon, Input, InputField, InputIcon, InputSlot, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, type ModeType, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable, Progress, ProgressFilledTrack, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RemoveIcon, Repeat1Icon, RepeatIcon, SearchIcon, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, createGluestackUIProvider, createIconUI as createIcon, useCalendarTheme, useGluestackColors, useToast };
|