@ceed/ads 1.2.9-next.1 → 1.3.0-next.1
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/components/Tabs/Tabs.d.ts +10 -3
- package/dist/index.cjs +23 -4
- package/dist/index.js +23 -4
- package/framer/index.js +27 -27
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const Tabs: import("
|
|
2
|
+
declare const Tabs: import("@emotion/styled").StyledComponent<Omit<Omit<import("@mui/base").TabsOwnProps, "slots" | "slotProps"> & {
|
|
3
3
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabsPropsColorOverrides> | undefined;
|
|
4
4
|
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").TabsPropsSizeOverrides> | undefined;
|
|
5
5
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
6
6
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TabsPropsVariantOverrides> | undefined;
|
|
7
7
|
} & import("@mui/joy").TabsSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
}, "children" | "color" | "direction" | "defaultValue" | "className" | "onChange" | "variant" | "sx" | "size" | "orientation" | "value" | "selectionFollowsFocus" | keyof import("@mui/joy").TabsSlotsAndSlotProps
|
|
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
|
|
11
|
+
declare const MotionTab: import("@emotion/styled").StyledComponent<Omit<{
|
|
12
12
|
action?: React.Ref<{
|
|
13
13
|
focusVisible(): void;
|
|
14
14
|
}> | undefined;
|
|
@@ -25,6 +25,13 @@ declare const Tab: import("@emotion/styled").StyledComponent<Omit<{
|
|
|
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
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> & {
|
|
29
|
+
startDecorator?: React.ReactNode;
|
|
30
|
+
endDecorator?: React.ReactNode;
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
declare namespace Tab {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|
|
28
35
|
export { Tab };
|
|
29
36
|
declare const TabList: import("framer-motion").CustomDomComponent<{
|
|
30
37
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TabListPropsColorOverrides> | undefined;
|
package/dist/index.cjs
CHANGED
|
@@ -5888,17 +5888,36 @@ var Switch = (props) => {
|
|
|
5888
5888
|
Switch.displayName = "Switch";
|
|
5889
5889
|
|
|
5890
5890
|
// src/components/Tabs/Tabs.tsx
|
|
5891
|
+
var import_react43 = __toESM(require("react"));
|
|
5891
5892
|
var import_joy55 = require("@mui/joy");
|
|
5892
5893
|
var import_framer_motion29 = require("framer-motion");
|
|
5893
|
-
var MotionTabs = (0, import_framer_motion29.motion)(import_joy55.Tabs)
|
|
5894
|
+
var MotionTabs = (0, import_joy55.styled)((0, import_framer_motion29.motion)(import_joy55.Tabs))(({ theme }) => ({
|
|
5895
|
+
backgroundColor: theme.palette.background.body
|
|
5896
|
+
}));
|
|
5894
5897
|
var Tabs = MotionTabs;
|
|
5895
5898
|
Tabs.displayName = "Tabs";
|
|
5896
5899
|
var MotionTab = (0, import_joy55.styled)((0, import_framer_motion29.motion)(import_joy55.Tab))(({ theme }) => ({
|
|
5897
5900
|
[`&:not(.${import_joy55.tabClasses.selected})`]: {
|
|
5901
|
+
"&:hover": {
|
|
5902
|
+
backgroundColor: theme.palette.neutral.plainHoverBg
|
|
5903
|
+
},
|
|
5904
|
+
"&:active": {
|
|
5905
|
+
backgroundColor: theme.palette.neutral.plainActiveBg
|
|
5906
|
+
},
|
|
5898
5907
|
color: theme.palette.neutral[700]
|
|
5908
|
+
},
|
|
5909
|
+
[`&.${import_joy55.tabClasses.variantPlain}`]: {
|
|
5910
|
+
backgroundColor: theme.palette.background.body
|
|
5899
5911
|
}
|
|
5900
5912
|
}));
|
|
5901
|
-
|
|
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
|
+
}
|
|
5902
5921
|
Tab.displayName = "Tab";
|
|
5903
5922
|
var MotionTabList = (0, import_framer_motion29.motion)(import_joy55.TabList);
|
|
5904
5923
|
var TabList = MotionTabList;
|
|
@@ -5908,7 +5927,7 @@ var TabPanel = MotionTabPanel;
|
|
|
5908
5927
|
TabPanel.displayName = "TabPanel";
|
|
5909
5928
|
|
|
5910
5929
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
5911
|
-
var
|
|
5930
|
+
var import_react44 = __toESM(require("react"));
|
|
5912
5931
|
var import_joy56 = require("@mui/joy");
|
|
5913
5932
|
var colorScheme = {
|
|
5914
5933
|
palette: {
|
|
@@ -6172,6 +6191,6 @@ var defaultTheme = (0, import_joy56.extendTheme)({
|
|
|
6172
6191
|
});
|
|
6173
6192
|
function ThemeProvider(props) {
|
|
6174
6193
|
const theme = props.theme || defaultTheme;
|
|
6175
|
-
return /* @__PURE__ */
|
|
6194
|
+
return /* @__PURE__ */ import_react44.default.createElement(import_react44.default.Fragment, null, /* @__PURE__ */ import_react44.default.createElement(import_joy56.CssVarsProvider, { theme }, /* @__PURE__ */ import_react44.default.createElement(import_joy56.CssBaseline, null), props.children));
|
|
6176
6195
|
}
|
|
6177
6196
|
ThemeProvider.displayName = "ThemeProvider";
|
package/dist/index.js
CHANGED
|
@@ -5906,6 +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
5910
|
import {
|
|
5910
5911
|
Tabs as JoyTabs,
|
|
5911
5912
|
Tab as JoyTab,
|
|
@@ -5915,15 +5916,33 @@ import {
|
|
|
5915
5916
|
tabClasses
|
|
5916
5917
|
} from "@mui/joy";
|
|
5917
5918
|
import { motion as motion29 } from "framer-motion";
|
|
5918
|
-
var MotionTabs = motion29(JoyTabs)
|
|
5919
|
+
var MotionTabs = styled28(motion29(JoyTabs))(({ theme }) => ({
|
|
5920
|
+
backgroundColor: theme.palette.background.body
|
|
5921
|
+
}));
|
|
5919
5922
|
var Tabs = MotionTabs;
|
|
5920
5923
|
Tabs.displayName = "Tabs";
|
|
5921
5924
|
var MotionTab = styled28(motion29(JoyTab))(({ theme }) => ({
|
|
5922
5925
|
[`&:not(.${tabClasses.selected})`]: {
|
|
5926
|
+
"&:hover": {
|
|
5927
|
+
backgroundColor: theme.palette.neutral.plainHoverBg
|
|
5928
|
+
},
|
|
5929
|
+
"&:active": {
|
|
5930
|
+
backgroundColor: theme.palette.neutral.plainActiveBg
|
|
5931
|
+
},
|
|
5923
5932
|
color: theme.palette.neutral[700]
|
|
5933
|
+
},
|
|
5934
|
+
[`&.${tabClasses.variantPlain}`]: {
|
|
5935
|
+
backgroundColor: theme.palette.background.body
|
|
5924
5936
|
}
|
|
5925
5937
|
}));
|
|
5926
|
-
|
|
5938
|
+
function Tab({
|
|
5939
|
+
startDecorator,
|
|
5940
|
+
endDecorator,
|
|
5941
|
+
children,
|
|
5942
|
+
...props
|
|
5943
|
+
}) {
|
|
5944
|
+
return /* @__PURE__ */ React41.createElement(MotionTab, { ...props }, startDecorator, children, endDecorator);
|
|
5945
|
+
}
|
|
5927
5946
|
Tab.displayName = "Tab";
|
|
5928
5947
|
var MotionTabList = motion29(JoyTabList);
|
|
5929
5948
|
var TabList = MotionTabList;
|
|
@@ -5933,7 +5952,7 @@ var TabPanel = MotionTabPanel;
|
|
|
5933
5952
|
TabPanel.displayName = "TabPanel";
|
|
5934
5953
|
|
|
5935
5954
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
5936
|
-
import
|
|
5955
|
+
import React42 from "react";
|
|
5937
5956
|
import {
|
|
5938
5957
|
CssBaseline,
|
|
5939
5958
|
CssVarsProvider,
|
|
@@ -6203,7 +6222,7 @@ var defaultTheme = extendTheme({
|
|
|
6203
6222
|
});
|
|
6204
6223
|
function ThemeProvider(props) {
|
|
6205
6224
|
const theme = props.theme || defaultTheme;
|
|
6206
|
-
return /* @__PURE__ */
|
|
6225
|
+
return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React42.createElement(CssBaseline, null), props.children));
|
|
6207
6226
|
}
|
|
6208
6227
|
ThemeProvider.displayName = "ThemeProvider";
|
|
6209
6228
|
export {
|