@ceed/ads 1.2.9 → 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 +25 -4
- package/dist/index.js +25 -4
- package/framer/index.js +56 -41
- package/package.json +4 -2
|
@@ -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
|
@@ -4759,6 +4759,7 @@ var import_joy42 = require("@mui/joy");
|
|
|
4759
4759
|
var import_react31 = __toESM(require("react"));
|
|
4760
4760
|
var import_joy43 = require("@mui/joy");
|
|
4761
4761
|
var import_joy44 = require("@mui/joy");
|
|
4762
|
+
var import_remark_gfm = __toESM(require("remark-gfm"));
|
|
4762
4763
|
var LazyReactMarkdown = (0, import_react31.lazy)(() => import("react-markdown"));
|
|
4763
4764
|
var Markdown = (props) => {
|
|
4764
4765
|
const [rehypeAccent2, setRehypeAccent] = (0, import_react31.useState)(null);
|
|
@@ -4804,6 +4805,7 @@ var Markdown = (props) => {
|
|
|
4804
4805
|
...markdownOptions,
|
|
4805
4806
|
children: content,
|
|
4806
4807
|
rehypePlugins: [[rehypeAccent2, { accentColor }]],
|
|
4808
|
+
remarkPlugins: [import_remark_gfm.default],
|
|
4807
4809
|
components: {
|
|
4808
4810
|
h1: ({ children }) => /* @__PURE__ */ import_react31.default.createElement(Typography, { color, textColor, level: "h1" }, children),
|
|
4809
4811
|
h2: ({ children }) => /* @__PURE__ */ import_react31.default.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
@@ -5886,17 +5888,36 @@ var Switch = (props) => {
|
|
|
5886
5888
|
Switch.displayName = "Switch";
|
|
5887
5889
|
|
|
5888
5890
|
// src/components/Tabs/Tabs.tsx
|
|
5891
|
+
var import_react43 = __toESM(require("react"));
|
|
5889
5892
|
var import_joy55 = require("@mui/joy");
|
|
5890
5893
|
var import_framer_motion29 = require("framer-motion");
|
|
5891
|
-
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
|
+
}));
|
|
5892
5897
|
var Tabs = MotionTabs;
|
|
5893
5898
|
Tabs.displayName = "Tabs";
|
|
5894
5899
|
var MotionTab = (0, import_joy55.styled)((0, import_framer_motion29.motion)(import_joy55.Tab))(({ theme }) => ({
|
|
5895
5900
|
[`&:not(.${import_joy55.tabClasses.selected})`]: {
|
|
5901
|
+
"&:hover": {
|
|
5902
|
+
backgroundColor: theme.palette.neutral.plainHoverBg
|
|
5903
|
+
},
|
|
5904
|
+
"&:active": {
|
|
5905
|
+
backgroundColor: theme.palette.neutral.plainActiveBg
|
|
5906
|
+
},
|
|
5896
5907
|
color: theme.palette.neutral[700]
|
|
5908
|
+
},
|
|
5909
|
+
[`&.${import_joy55.tabClasses.variantPlain}`]: {
|
|
5910
|
+
backgroundColor: theme.palette.background.body
|
|
5897
5911
|
}
|
|
5898
5912
|
}));
|
|
5899
|
-
|
|
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
|
+
}
|
|
5900
5921
|
Tab.displayName = "Tab";
|
|
5901
5922
|
var MotionTabList = (0, import_framer_motion29.motion)(import_joy55.TabList);
|
|
5902
5923
|
var TabList = MotionTabList;
|
|
@@ -5906,7 +5927,7 @@ var TabPanel = MotionTabPanel;
|
|
|
5906
5927
|
TabPanel.displayName = "TabPanel";
|
|
5907
5928
|
|
|
5908
5929
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
5909
|
-
var
|
|
5930
|
+
var import_react44 = __toESM(require("react"));
|
|
5910
5931
|
var import_joy56 = require("@mui/joy");
|
|
5911
5932
|
var colorScheme = {
|
|
5912
5933
|
palette: {
|
|
@@ -6170,6 +6191,6 @@ var defaultTheme = (0, import_joy56.extendTheme)({
|
|
|
6170
6191
|
});
|
|
6171
6192
|
function ThemeProvider(props) {
|
|
6172
6193
|
const theme = props.theme || defaultTheme;
|
|
6173
|
-
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));
|
|
6174
6195
|
}
|
|
6175
6196
|
ThemeProvider.displayName = "ThemeProvider";
|
package/dist/index.js
CHANGED
|
@@ -4729,6 +4729,7 @@ import { Grid } from "@mui/joy";
|
|
|
4729
4729
|
import React29, { lazy, Suspense, useEffect as useEffect8, useState as useState9 } from "react";
|
|
4730
4730
|
import { Skeleton } from "@mui/joy";
|
|
4731
4731
|
import { Link as Link2 } from "@mui/joy";
|
|
4732
|
+
import remarkGfm from "remark-gfm";
|
|
4732
4733
|
var LazyReactMarkdown = lazy(() => import("react-markdown"));
|
|
4733
4734
|
var Markdown = (props) => {
|
|
4734
4735
|
const [rehypeAccent2, setRehypeAccent] = useState9(null);
|
|
@@ -4774,6 +4775,7 @@ var Markdown = (props) => {
|
|
|
4774
4775
|
...markdownOptions,
|
|
4775
4776
|
children: content,
|
|
4776
4777
|
rehypePlugins: [[rehypeAccent2, { accentColor }]],
|
|
4778
|
+
remarkPlugins: [remarkGfm],
|
|
4777
4779
|
components: {
|
|
4778
4780
|
h1: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h1" }, children),
|
|
4779
4781
|
h2: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
@@ -5904,6 +5906,7 @@ var Switch = (props) => {
|
|
|
5904
5906
|
Switch.displayName = "Switch";
|
|
5905
5907
|
|
|
5906
5908
|
// src/components/Tabs/Tabs.tsx
|
|
5909
|
+
import React41 from "react";
|
|
5907
5910
|
import {
|
|
5908
5911
|
Tabs as JoyTabs,
|
|
5909
5912
|
Tab as JoyTab,
|
|
@@ -5913,15 +5916,33 @@ import {
|
|
|
5913
5916
|
tabClasses
|
|
5914
5917
|
} from "@mui/joy";
|
|
5915
5918
|
import { motion as motion29 } from "framer-motion";
|
|
5916
|
-
var MotionTabs = motion29(JoyTabs)
|
|
5919
|
+
var MotionTabs = styled28(motion29(JoyTabs))(({ theme }) => ({
|
|
5920
|
+
backgroundColor: theme.palette.background.body
|
|
5921
|
+
}));
|
|
5917
5922
|
var Tabs = MotionTabs;
|
|
5918
5923
|
Tabs.displayName = "Tabs";
|
|
5919
5924
|
var MotionTab = styled28(motion29(JoyTab))(({ theme }) => ({
|
|
5920
5925
|
[`&:not(.${tabClasses.selected})`]: {
|
|
5926
|
+
"&:hover": {
|
|
5927
|
+
backgroundColor: theme.palette.neutral.plainHoverBg
|
|
5928
|
+
},
|
|
5929
|
+
"&:active": {
|
|
5930
|
+
backgroundColor: theme.palette.neutral.plainActiveBg
|
|
5931
|
+
},
|
|
5921
5932
|
color: theme.palette.neutral[700]
|
|
5933
|
+
},
|
|
5934
|
+
[`&.${tabClasses.variantPlain}`]: {
|
|
5935
|
+
backgroundColor: theme.palette.background.body
|
|
5922
5936
|
}
|
|
5923
5937
|
}));
|
|
5924
|
-
|
|
5938
|
+
function Tab({
|
|
5939
|
+
startDecorator,
|
|
5940
|
+
endDecorator,
|
|
5941
|
+
children,
|
|
5942
|
+
...props
|
|
5943
|
+
}) {
|
|
5944
|
+
return /* @__PURE__ */ React41.createElement(MotionTab, { ...props }, startDecorator, children, endDecorator);
|
|
5945
|
+
}
|
|
5925
5946
|
Tab.displayName = "Tab";
|
|
5926
5947
|
var MotionTabList = motion29(JoyTabList);
|
|
5927
5948
|
var TabList = MotionTabList;
|
|
@@ -5931,7 +5952,7 @@ var TabPanel = MotionTabPanel;
|
|
|
5931
5952
|
TabPanel.displayName = "TabPanel";
|
|
5932
5953
|
|
|
5933
5954
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
5934
|
-
import
|
|
5955
|
+
import React42 from "react";
|
|
5935
5956
|
import {
|
|
5936
5957
|
CssBaseline,
|
|
5937
5958
|
CssVarsProvider,
|
|
@@ -6201,7 +6222,7 @@ var defaultTheme = extendTheme({
|
|
|
6201
6222
|
});
|
|
6202
6223
|
function ThemeProvider(props) {
|
|
6203
6224
|
const theme = props.theme || defaultTheme;
|
|
6204
|
-
return /* @__PURE__ */
|
|
6225
|
+
return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React42.createElement(CssBaseline, null), props.children));
|
|
6205
6226
|
}
|
|
6206
6227
|
ThemeProvider.displayName = "ThemeProvider";
|
|
6207
6228
|
export {
|