Skip to content

Commit

Permalink
feat: add theme exports to components
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo Gravity committed Sep 16, 2024
1 parent 38913e5 commit b0454ed
Show file tree
Hide file tree
Showing 46 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-crabs-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"flowbite-react": patch
---

Add theme exports to all components.
1 change: 1 addition & 0 deletions packages/ui/src/components/Accordion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export { AccordionPanel } from "./AccordionPanel";
export type { AccordionPanelProps } from "./AccordionPanel";
export { AccordionTitle } from "./AccordionTitle";
export type { AccordionTitleProps, FlowbiteAccordionTitleTheme } from "./AccordionTitle";
export { accordionTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Alert/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Alert } from "./Alert";
export type { AlertProps, FlowbiteAlertCloseButtonTheme, FlowbiteAlertTheme } from "./Alert";
export { alertTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Avatar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export { AvatarGroup } from "./AvatarGroup";
export type { AvatarGroupProps, FlowbiteAvatarGroupTheme } from "./AvatarGroup";
export { AvatarGroupCounter } from "./AvatarGroupCounter";
export type { AvatarGroupCounterProps, FlowbiteAvatarGroupCounterTheme } from "./AvatarGroupCounter";
export { avatarTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export type {
FlowbiteBadgeRootTheme,
FlowbiteBadgeTheme,
} from "./Badge";
export { badgeTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Banner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { Banner } from "./Banner";
export type { BannerComponentProps } from "./Banner";
export { BannerCollapseButton } from "./BannerCollapseButton";
export type { BannerCollapseButtonProps } from "./BannerCollapseButton";
export { bannerTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Blockquote/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Blockquote } from "./Blockquote";
export type { BlockquoteProps, FlowbiteBlockquoteRootTheme, FlowbiteBlockquoteTheme } from "./Blockquote";
export { blockquoteTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Breadcrumb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { Breadcrumb } from "./Breadcrumb";
export type { BreadcrumbComponentProps, FlowbiteBreadcrumbRootTheme, FlowbiteBreadcrumbTheme } from "./Breadcrumb";
export { BreadcrumbItem } from "./BreadcrumbItem";
export type { BreadcrumbItemProps, FlowbiteBreadcrumbItemTheme } from "./BreadcrumbItem";
export { breadcrumbTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export type {
} from "./Button";
export { ButtonGroup } from "./ButtonGroup";
export type { ButtonGroupProps, FlowbiteButtonGroupTheme, PositionInButtonGroup } from "./ButtonGroup";
export { buttonTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Card/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Card } from "./Card";
export type { CardProps, FlowbiteCardImageTheme, FlowbiteCardRootTheme, FlowbiteCardTheme } from "./Card";
export { cardTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Carousel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export type {
FlowbiteCarouselScrollContainer,
FlowbiteCarouselTheme,
} from "./Carousel";
export { carouselTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Checkbox/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Checkbox } from "./Checkbox";
export type { CheckboxProps, FlowbiteCheckboxRootTheme, FlowbiteCheckboxTheme } from "./Checkbox";
export { checkboxTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Clipboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export type { ClipboardWithIconProps, FlowbiteClipboardWithIconTheme } from "./C

export { ClipboardWithIconText } from "./ClipboardWithIconText";
export type { ClipboardWithIconTextProps, FlowbiteClipboardWithIconTextTheme } from "./ClipboardWithIconText";
export { clipboardTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/DarkThemeToggle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export type {
FlowbiteDarkThemeToggleRootTheme,
FlowbiteDarkThemeToggleTheme,
} from "./DarkThemeToggle";
export { darkThemeToggleTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Datepicker/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { Datepicker } from "./Datepicker";
export type { DatepickerProps, FlowbiteDatepickerPopupTheme, FlowbiteDatepickerTheme } from "./Datepicker";
export { WeekStart } from "./helpers";
export { datePickerTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export type { DrawerHeaderProps, FlowbiteDrawerHeaderTheme } from "./DrawerHeade

export { DrawerItems } from "./DrawerItems";
export type { DrawerItemsProps, FlowbiteDrawerItemsTheme } from "./DrawerItems";
export { drawerTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Dropdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export { DropdownHeader } from "./DropdownHeader";
export type { DropdownHeaderProps, FlowbiteDropdownHeaderTheme } from "./DropdownHeader";
export { DropdownItem } from "./DropdownItem";
export type { DropdownItemProps, FlowbiteDropdownItemTheme } from "./DropdownItem";
export { dropdownTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/FileInput/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export type {
FlowbiteFileInputRootTheme,
FlowbiteFileInputTheme,
} from "./FileInput";
export { fileInputTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/FloatingLabel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export type {
FloatingLabelVariant,
} from "./FloatingLabel";
export type { FlowbiteFloatingLabelTheme } from "./theme";
export { floatingLabelTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Footer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export { FooterLinkGroup } from "./FooterLinkGroup";
export type { FlowbiteFooterLinkGroupTheme, FooterLinkGroupProps } from "./FooterLinkGroup";
export { FooterTitle } from "./FooterTitle";
export type { FlowbiteFooterTitleTheme, FooterTitleProps } from "./FooterTitle";
export { footerTheme } from "./theme";
2 changes: 2 additions & 0 deletions packages/ui/src/components/HR/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ export type { FlowbiteHRTextTheme, HRTextProps } from "./HRText";

export { HRTrimmed } from "./HRTrimmed";
export type { FlowbiteHRTrimmedTheme, HRTrimmedProps } from "./HRTrimmed";

export { hrTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/HelperText/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { HelperText } from "./HelperText";
export type { FlowbiteHelperTextRootTheme, FlowbiteHelperTextTheme, HelperColors, HelperTextProps } from "./HelperText";
export { helperTextTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Kbd/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Kbd } from "./Kbd";
export type { FlowbiteKbdRootTheme, FlowbiteKbdTheme, KbdProps } from "./Kbd";
export { kbdTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Label/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Label } from "./Label";
export type { FlowbiteLabelRootTheme, FlowbiteLabelTheme, LabelColors, LabelProps } from "./Label";
export { labelTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/List/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { List } from "./List";
export type { FlowbiteListRootTheme, FlowbiteListTheme, ListProps } from "./List";
export { ListItem } from "./ListItem";
export type { FlowbiteListItemTheme, ListItemProps } from "./ListItem";
export { listTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/ListGroup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { ListGroup } from "./ListGroup";
export type { FlowbiteListGroupRootTheme, FlowbiteListGroupTheme, ListGroupProps } from "./ListGroup";
export { ListGroupItem } from "./ListGroupItem";
export type { FlowbiteListGroupItemTheme, ListGroupItemProps } from "./ListGroupItem";
export { listGroupTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/MegaMenu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export { MegaMenuDropdown } from "./MegaMenuDropdown";
export type { FlowbiteMegaMenuDropdownTheme, MegaMenuDropdownProps } from "./MegaMenuDropdown";
export { MegaMenuDropdownToggle } from "./MegaMenuDropdownToggle";
export type { FlowbiteMegaMenuDropdownToggleTheme, MegaMenuDropdownToggleProps } from "./MegaMenuDropdownToggle";
export { megaMenuTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ export { ModalFooter } from "./ModalFooter";
export type { FlowbiteModalFooterTheme, ModalFooterProps } from "./ModalFooter";
export { ModalHeader } from "./ModalHeader";
export type { FlowbiteModalHeaderTheme, ModalHeaderProps } from "./ModalHeader";
export { modalTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Navbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export { NavbarLink } from "./NavbarLink";
export type { FlowbiteNavbarLinkTheme, NavbarLinkProps } from "./NavbarLink";
export { NavbarToggle } from "./NavbarToggle";
export type { FlowbiteNavbarToggleTheme, NavbarToggleProps } from "./NavbarToggle";
export { navbarTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Pagination/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export type {
PaginationNavigation,
PaginationPrevButtonProps,
} from "./PaginationButton";
export { paginationTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Popover/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Popover } from "./Popover";
export type { FlowbitePopoverTheme, PopoverProps } from "./Popover";
export { popoverTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Progress/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Progress } from "./Progress";
export type { FlowbiteProgressTheme, ProgressColor, ProgressProps, ProgressSizes } from "./Progress";
export { progressTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Radio/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Radio } from "./Radio";
export type { FlowbiteRadioRootTheme, FlowbiteRadioTheme, RadioProps } from "./Radio";
export { radioTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/RangeSlider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export type {
FlowbiteRangeSliderTheme,
RangeSliderProps,
} from "./RangeSlider";
export { rangeSliderTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Rating/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export { RatingAdvanced } from "./RatingAdvanced";
export type { FlowbiteRatingAdvancedTheme, RatingAdvancedProps } from "./RatingAdvanced";
export { RatingStar } from "./RatingStar";
export type { FlowbiteRatingStarTheme, FlowbiteStarSizes, RatingStarProps } from "./RatingStar";
export { ratingTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Select/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Select } from "./Select";
export type { FlowbiteSelectTheme, SelectColors, SelectProps, SelectSizes } from "./Select";
export { selectTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Sidebar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export { SidebarItems } from "./SidebarItems";
export type { FlowbiteSidebarItemsTheme, SidebarItemsProps } from "./SidebarItems";
export { SidebarLogo } from "./SidebarLogo";
export type { FlowbiteSidebarLogoTheme, SidebarLogoProps } from "./SidebarLogo";
export { sidebarTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Spinner/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Spinner } from "./Spinner";
export type { FlowbiteSpinnerTheme, SpinnerColors, SpinnerProps, SpinnerSizes } from "./Spinner";
export { spinnerTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Table/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export { TableHeadCell } from "./TableHeadCell";
export type { FlowbiteTableHeadCellTheme, TableHeadCellProps } from "./TableHeadCell";
export { TableRow } from "./TableRow";
export type { FlowbiteTableRowTheme, TableRowProps } from "./TableRow";
export { tableTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export type {
TabsProps,
TabsRef,
} from "./Tabs";
export { tabTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/TextInput/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export type {
FlowbiteTextInputTheme,
TextInputProps,
} from "./TextInput";
export { textInputTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Textarea/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Textarea } from "./Textarea";
export type { FlowbiteTextareaTheme, TextareaColors, TextareaProps } from "./Textarea";
export { textareaTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Timeline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export { TimelineTime } from "./TimelineTime";
export type { FlowbiteTimelineTimeTheme, TimelineTimeProps } from "./TimelineTime";
export { TimelineTitle } from "./TimelineTitle";
export type { FlowbiteTimelineTitleTheme, TimelineTitleProps } from "./TimelineTitle";
export { timelineTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Toast/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { Toast } from "./Toast";
export type { FlowbiteToastTheme, ToastProps } from "./Toast";
export { ToastToggle } from "./ToastToggle";
export type { FlowbiteToastToggleTheme, ToastToggleProps } from "./ToastToggle";
export { toastTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/ToggleSwitch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export type {
FlowbiteToggleSwitchToggleTheme,
ToggleSwitchProps,
} from "./ToggleSwitch";
export { toggleSwitchTheme } from "./theme";
1 change: 1 addition & 0 deletions packages/ui/src/components/Tooltip/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Tooltip } from "./Tooltip";
export type { FlowbiteTooltipTheme, TooltipProps } from "./Tooltip";
export { tooltipTheme } from "./theme";

0 comments on commit b0454ed

Please sign in to comment.