@ceed/ads 1.3.0-next.1 → 1.3.0-next.2

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.
@@ -8,7 +8,7 @@ declare const Tabs: import("@emotion/styled").StyledComponent<Omit<Omit<import("
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
9
9
  }, "children" | "color" | "direction" | "defaultValue" | "className" | "onChange" | "variant" | "sx" | "size" | "orientation" | "value" | "selectionFollowsFocus" | keyof import("@mui/joy").TabsSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
10
10
  export { Tabs };
11
- declare const MotionTab: import("@emotion/styled").StyledComponent<Omit<{
11
+ declare const Tab: React.ForwardRefExoticComponent<Omit<Omit<{
12
12
  action?: React.Ref<{
13
13
  focusVisible(): void;
14
14
  }> | undefined;
@@ -24,14 +24,10 @@ declare const MotionTab: import("@emotion/styled").StyledComponent<Omit<{
24
24
  variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TabPropsVariantOverrides> | undefined;
25
25
  } & import("@mui/joy").TabSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
26
26
  ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
27
- }, "color" | "onChange" | "variant" | "sx" | "disabled" | "orientation" | "value" | "action" | "disableIndicator" | "indicatorPlacement" | "indicatorInset" | keyof import("@mui/joy").TabSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
28
- declare function Tab({ startDecorator, endDecorator, children, ...props }: React.ComponentProps<typeof MotionTab> & {
27
+ }, "color" | "onChange" | "variant" | "sx" | "disabled" | "orientation" | "value" | "action" | "disableIndicator" | "indicatorPlacement" | "indicatorInset" | keyof import("@mui/joy").TabSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme> & {
29
28
  startDecorator?: React.ReactNode;
30
29
  endDecorator?: React.ReactNode;
31
- }): React.JSX.Element;
32
- declare namespace Tab {
33
- var displayName: string;
34
- }
30
+ }, "ref"> & React.RefAttributes<HTMLElement | SVGElement>>;
35
31
  export { Tab };
36
32
  declare const TabList: import("framer-motion").CustomDomComponent<{
37
33
  color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabListPropsColorOverrides> | undefined;
package/dist/index.cjs CHANGED
@@ -5910,14 +5910,9 @@ var MotionTab = (0, import_joy55.styled)((0, import_framer_motion29.motion)(impo
5910
5910
  backgroundColor: theme.palette.background.body
5911
5911
  }
5912
5912
  }));
5913
- function Tab({
5914
- startDecorator,
5915
- endDecorator,
5916
- children,
5917
- ...props
5918
- }) {
5919
- return /* @__PURE__ */ import_react43.default.createElement(MotionTab, { ...props }, startDecorator, children, endDecorator);
5920
- }
5913
+ var Tab = (0, import_react43.forwardRef)(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
5914
+ return /* @__PURE__ */ import_react43.default.createElement(MotionTab, { ...props, ref }, startDecorator, children, endDecorator);
5915
+ });
5921
5916
  Tab.displayName = "Tab";
5922
5917
  var MotionTabList = (0, import_framer_motion29.motion)(import_joy55.TabList);
5923
5918
  var TabList = MotionTabList;
package/dist/index.js CHANGED
@@ -5906,7 +5906,7 @@ var Switch = (props) => {
5906
5906
  Switch.displayName = "Switch";
5907
5907
 
5908
5908
  // src/components/Tabs/Tabs.tsx
5909
- import React41 from "react";
5909
+ import React41, { forwardRef as forwardRef11 } from "react";
5910
5910
  import {
5911
5911
  Tabs as JoyTabs,
5912
5912
  Tab as JoyTab,
@@ -5935,14 +5935,9 @@ var MotionTab = styled28(motion29(JoyTab))(({ theme }) => ({
5935
5935
  backgroundColor: theme.palette.background.body
5936
5936
  }
5937
5937
  }));
5938
- function Tab({
5939
- startDecorator,
5940
- endDecorator,
5941
- children,
5942
- ...props
5943
- }) {
5944
- return /* @__PURE__ */ React41.createElement(MotionTab, { ...props }, startDecorator, children, endDecorator);
5945
- }
5938
+ var Tab = forwardRef11(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
5939
+ return /* @__PURE__ */ React41.createElement(MotionTab, { ...props, ref }, startDecorator, children, endDecorator);
5940
+ });
5946
5941
  Tab.displayName = "Tab";
5947
5942
  var MotionTabList = motion29(JoyTabList);
5948
5943
  var TabList = MotionTabList;