@farmzone/fz-react-ui 1.0.2 → 1.0.3

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.cts CHANGED
@@ -50,6 +50,7 @@ interface TooltipProps {
50
50
  arrowClassName?: string;
51
51
  contentClassName?: string;
52
52
  contentStyle?: CSSProperties;
53
+ containerStyle?: CSSProperties;
53
54
  offsetX?: number;
54
55
  offsetY?: number;
55
56
  delayDuration?: number;
@@ -1024,12 +1025,15 @@ declare const useMultiTabStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Mult
1024
1025
  };
1025
1026
  }>;
1026
1027
 
1028
+ type MultiTabVariant = "light" | "dark" | "system-light" | "system-dark";
1027
1029
  interface MultiTabBarProps {
1028
1030
  tabs: Array<MultiTab>;
1029
1031
  activeTabId: string | null;
1030
1032
  onTabClick: (tabId: string) => void;
1031
1033
  onTabClose: (tabId: string) => void;
1032
1034
  onTabAdd?: () => void;
1035
+ variant?: MultiTabVariant;
1036
+ primaryColor?: string;
1033
1037
  }
1034
1038
  declare function MultiTabBar(props: MultiTabBarProps): react.JSX.Element | null;
1035
1039
 
@@ -1120,13 +1124,15 @@ interface MenuSection {
1120
1124
  title?: string;
1121
1125
  items: Array<MenuItem>;
1122
1126
  }
1127
+ type SidebarVariant = "light" | "dark" | "system-dark" | "system-light";
1123
1128
  interface SidebarProps {
1124
- isOpen: boolean;
1125
- onClose: () => void;
1126
1129
  menuSections: Array<MenuSection>;
1127
1130
  header?: ReactNode;
1128
1131
  className?: string;
1129
1132
  showCollapseButton?: boolean;
1133
+ onClose?: () => void;
1134
+ variant?: SidebarVariant;
1135
+ primaryColor?: string;
1130
1136
  }
1131
1137
  declare function Sidebar(props: SidebarProps): react.JSX.Element;
1132
1138
 
@@ -1355,6 +1361,7 @@ declare const Z_INDEX: {
1355
1361
  readonly MODAL_OVERLAY: 54;
1356
1362
  readonly MODAL: 55;
1357
1363
  readonly CALENDAR_PORTAL: 60;
1364
+ readonly TOOLTIP: 70;
1358
1365
  readonly SELECT_CONTENT: 100;
1359
1366
  readonly TOP: 9999;
1360
1367
  readonly MODAL_Z_STEP: 10;
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ interface TooltipProps {
50
50
  arrowClassName?: string;
51
51
  contentClassName?: string;
52
52
  contentStyle?: CSSProperties;
53
+ containerStyle?: CSSProperties;
53
54
  offsetX?: number;
54
55
  offsetY?: number;
55
56
  delayDuration?: number;
@@ -1024,12 +1025,15 @@ declare const useMultiTabStore: zustand.UseBoundStore<Omit<zustand.StoreApi<Mult
1024
1025
  };
1025
1026
  }>;
1026
1027
 
1028
+ type MultiTabVariant = "light" | "dark" | "system-light" | "system-dark";
1027
1029
  interface MultiTabBarProps {
1028
1030
  tabs: Array<MultiTab>;
1029
1031
  activeTabId: string | null;
1030
1032
  onTabClick: (tabId: string) => void;
1031
1033
  onTabClose: (tabId: string) => void;
1032
1034
  onTabAdd?: () => void;
1035
+ variant?: MultiTabVariant;
1036
+ primaryColor?: string;
1033
1037
  }
1034
1038
  declare function MultiTabBar(props: MultiTabBarProps): react.JSX.Element | null;
1035
1039
 
@@ -1120,13 +1124,15 @@ interface MenuSection {
1120
1124
  title?: string;
1121
1125
  items: Array<MenuItem>;
1122
1126
  }
1127
+ type SidebarVariant = "light" | "dark" | "system-dark" | "system-light";
1123
1128
  interface SidebarProps {
1124
- isOpen: boolean;
1125
- onClose: () => void;
1126
1129
  menuSections: Array<MenuSection>;
1127
1130
  header?: ReactNode;
1128
1131
  className?: string;
1129
1132
  showCollapseButton?: boolean;
1133
+ onClose?: () => void;
1134
+ variant?: SidebarVariant;
1135
+ primaryColor?: string;
1130
1136
  }
1131
1137
  declare function Sidebar(props: SidebarProps): react.JSX.Element;
1132
1138
 
@@ -1355,6 +1361,7 @@ declare const Z_INDEX: {
1355
1361
  readonly MODAL_OVERLAY: 54;
1356
1362
  readonly MODAL: 55;
1357
1363
  readonly CALENDAR_PORTAL: 60;
1364
+ readonly TOOLTIP: 70;
1358
1365
  readonly SELECT_CONTENT: 100;
1359
1366
  readonly TOP: 9999;
1360
1367
  readonly MODAL_Z_STEP: 10;