@ceed/ads 0.0.8 → 0.0.9
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/Container/Container.d.ts +5 -0
- package/dist/components/Container/Container.js +47 -0
- package/dist/components/Container/index.d.ts +3 -0
- package/dist/components/Container/index.js +3 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +13 -0
- package/dist/components/ThemeProvider/ThemeProvider.js +8 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/framer/index.js +49 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const Container: React.ForwardRefExoticComponent<Omit<import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme> & {
|
|
3
|
+
maxWidth?: "tablet" | "laptop" | "desktop" | undefined;
|
|
4
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { Container };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { styled } from "@mui/joy";
|
|
13
|
+
import React, { forwardRef } from "react";
|
|
14
|
+
var ContainerRoot = styled("div", {
|
|
15
|
+
name: "Container",
|
|
16
|
+
slot: "root",
|
|
17
|
+
shouldForwardProp: function (prop) { return prop !== "maxWidth"; },
|
|
18
|
+
})(function (_a) {
|
|
19
|
+
var _b, _c, _d;
|
|
20
|
+
var theme = _a.theme, _e = _a.maxWidth, maxWidth = _e === void 0 ? "desktop" : _e;
|
|
21
|
+
return (__assign(__assign(__assign({ width: "100%", marginLeft: "auto", boxSizing: "border-box", marginRight: "auto", display: "block", paddingLeft: theme.spacing(2), paddingRight: theme.spacing(2) }, (maxWidth === "tablet" && (_b = {},
|
|
22
|
+
_b[theme.breakpoints.up("mobile")] = {
|
|
23
|
+
maxWidth: theme.breakpoints.values.tablet,
|
|
24
|
+
},
|
|
25
|
+
_b))), (maxWidth === "laptop" && (_c = {},
|
|
26
|
+
_c[theme.breakpoints.up("tablet")] = {
|
|
27
|
+
maxWidth: theme.breakpoints.values.laptop,
|
|
28
|
+
},
|
|
29
|
+
_c))), (maxWidth === "desktop" && (_d = {},
|
|
30
|
+
_d[theme.breakpoints.up("laptop")] = {
|
|
31
|
+
maxWidth: theme.breakpoints.values.desktop,
|
|
32
|
+
},
|
|
33
|
+
_d))));
|
|
34
|
+
});
|
|
35
|
+
var Container = forwardRef(function Container(props, ref) {
|
|
36
|
+
// prop destruction
|
|
37
|
+
// lib hooks
|
|
38
|
+
// state, ref, querystring hooks
|
|
39
|
+
// form hooks
|
|
40
|
+
// query hooks
|
|
41
|
+
// calculated values
|
|
42
|
+
// effects
|
|
43
|
+
// handlers
|
|
44
|
+
return React.createElement(ContainerRoot, __assign({ ref: ref }, props));
|
|
45
|
+
});
|
|
46
|
+
export { Container };
|
|
47
|
+
Container.displayName = "Container";
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
declare module "@mui/joy/styles" {
|
|
3
|
+
interface BreakpointOverrides {
|
|
4
|
+
xs: false;
|
|
5
|
+
sm: false;
|
|
6
|
+
md: false;
|
|
7
|
+
lg: false;
|
|
8
|
+
xl: false;
|
|
9
|
+
mobile: true;
|
|
10
|
+
tablet: true;
|
|
11
|
+
laptop: true;
|
|
12
|
+
desktop: true;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
2
15
|
declare function ThemeProvider(props: {
|
|
3
16
|
children?: React.ReactNode;
|
|
4
17
|
}): React.JSX.Element;
|
|
@@ -2,6 +2,14 @@ import React from "react";
|
|
|
2
2
|
import { CssBaseline, CssVarsProvider, checkboxClasses, extendTheme, } from "@mui/joy";
|
|
3
3
|
var defaultTheme = extendTheme({
|
|
4
4
|
cssVarPrefix: "ceed",
|
|
5
|
+
breakpoints: {
|
|
6
|
+
values: {
|
|
7
|
+
mobile: 0,
|
|
8
|
+
tablet: 768,
|
|
9
|
+
laptop: 1024,
|
|
10
|
+
desktop: 1280,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
5
13
|
components: {
|
|
6
14
|
JoyTable: {
|
|
7
15
|
defaultProps: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Box } from "./Box";
|
|
2
2
|
export { Button } from "./Button";
|
|
3
3
|
export { Checkbox } from "./Checkbox";
|
|
4
|
+
export { Container } from "./Container";
|
|
4
5
|
export { DialogActions } from "./DialogActions";
|
|
5
6
|
export { DialogContent } from "./DialogContent";
|
|
6
7
|
export { DialogTitle } from "./DialogTitle";
|
|
@@ -12,7 +13,7 @@ export { FormLabel } from "./FormLabel";
|
|
|
12
13
|
export { Grid } from "./Grid";
|
|
13
14
|
export { IconButton } from "./IconButton";
|
|
14
15
|
export { Input } from "./Input";
|
|
15
|
-
export { Menu } from "./Menu";
|
|
16
|
+
export { Menu, MenuButton, MenuItem } from "./Menu";
|
|
16
17
|
export { Modal, ModalClose, ModalDialog, ModalOverflow } from "./Modal";
|
|
17
18
|
export { Radio, RadioGroup } from "./Radio";
|
|
18
19
|
export { Select, Option } from "./Select";
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Box } from "./Box";
|
|
2
2
|
export { Button } from "./Button";
|
|
3
3
|
export { Checkbox } from "./Checkbox";
|
|
4
|
+
export { Container } from "./Container";
|
|
4
5
|
export { DialogActions } from "./DialogActions";
|
|
5
6
|
export { DialogContent } from "./DialogContent";
|
|
6
7
|
export { DialogTitle } from "./DialogTitle";
|
|
@@ -12,7 +13,7 @@ export { FormLabel } from "./FormLabel";
|
|
|
12
13
|
export { Grid } from "./Grid";
|
|
13
14
|
export { IconButton } from "./IconButton";
|
|
14
15
|
export { Input } from "./Input";
|
|
15
|
-
export { Menu } from "./Menu";
|
|
16
|
+
export { Menu, MenuButton, MenuItem } from "./Menu";
|
|
16
17
|
export { Modal, ModalClose, ModalDialog, ModalOverflow } from "./Modal";
|
|
17
18
|
export { Radio, RadioGroup } from "./Radio";
|
|
18
19
|
export { Select, Option } from "./Select";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { boxClasses, buttonClasses, checkboxClasses, dividerClasses, iconButtonClasses, inputClasses, menuClasses, menuButtonClasses, menuItemClasses, optionClasses, radioClasses, radioGroupClasses, selectClasses, switchClasses, tableClasses, textareaClasses, typographyClasses, formControlClasses, formLabelClasses, formHelperTextClasses, gridClasses, stackClasses, sheetClasses, modalClasses, modalCloseClasses, modalDialogClasses, modalOverflowClasses, dialogTitleClasses, dialogContentClasses, dialogActionsClasses, tooltipClasses, Avatar, avatarClasses, AvatarGroup, avatarGroupClasses, Chip, chipClasses, } from "@mui/joy";
|
|
2
|
-
export { Box, Button, Checkbox, DialogActions, DialogContent, DialogTitle, Divider, Dropdown, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, Modal, ModalClose, ModalDialog, ModalOverflow, Radio, RadioGroup, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
|
|
2
|
+
export { Box, Button, Checkbox, Container, DialogActions, DialogContent, DialogTitle, Divider, Dropdown, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, Radio, RadioGroup, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
|
package/dist/index.js
CHANGED
|
@@ -3,4 +3,4 @@ export {
|
|
|
3
3
|
boxClasses, buttonClasses, checkboxClasses, dividerClasses, iconButtonClasses, inputClasses, menuClasses, menuButtonClasses, menuItemClasses, optionClasses, radioClasses, radioGroupClasses, selectClasses, switchClasses, tableClasses, textareaClasses, typographyClasses, formControlClasses, formLabelClasses, formHelperTextClasses, gridClasses, stackClasses, sheetClasses, modalClasses, modalCloseClasses, modalDialogClasses, modalOverflowClasses, dialogTitleClasses, dialogContentClasses, dialogActionsClasses, tooltipClasses,
|
|
4
4
|
// Pure JoyUI
|
|
5
5
|
Avatar, avatarClasses, AvatarGroup, avatarGroupClasses, Chip, chipClasses, } from "@mui/joy";
|
|
6
|
-
export { Box, Button, Checkbox, DialogActions, DialogContent, DialogTitle, Divider, Dropdown, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, Modal, ModalClose, ModalDialog, ModalOverflow, Radio, RadioGroup, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
|
|
6
|
+
export { Box, Button, Checkbox, Container, DialogActions, DialogContent, DialogTitle, Divider, Dropdown, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, Radio, RadioGroup, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
|
package/framer/index.js
CHANGED
|
@@ -24375,6 +24375,44 @@ Checkbox3.displayName = "Checkbox";
|
|
|
24375
24375
|
// src/components/Checkbox/index.ts
|
|
24376
24376
|
var Checkbox_default2 = Checkbox3;
|
|
24377
24377
|
|
|
24378
|
+
// src/components/Container/Container.tsx
|
|
24379
|
+
import { forwardRef as forwardRef48 } from "react";
|
|
24380
|
+
var ContainerRoot = styled_default2("div", {
|
|
24381
|
+
name: "Container",
|
|
24382
|
+
slot: "root",
|
|
24383
|
+
shouldForwardProp: (prop) => prop !== "maxWidth"
|
|
24384
|
+
})(
|
|
24385
|
+
({ theme, maxWidth: maxWidth2 = "desktop" }) => ({
|
|
24386
|
+
width: "100%",
|
|
24387
|
+
marginLeft: "auto",
|
|
24388
|
+
boxSizing: "border-box",
|
|
24389
|
+
marginRight: "auto",
|
|
24390
|
+
display: "block",
|
|
24391
|
+
// Fix IE11 layout when used with main.
|
|
24392
|
+
paddingLeft: theme.spacing(2),
|
|
24393
|
+
paddingRight: theme.spacing(2),
|
|
24394
|
+
...maxWidth2 === "tablet" && {
|
|
24395
|
+
[theme.breakpoints.up("mobile")]: {
|
|
24396
|
+
maxWidth: theme.breakpoints.values.tablet
|
|
24397
|
+
}
|
|
24398
|
+
},
|
|
24399
|
+
...maxWidth2 === "laptop" && {
|
|
24400
|
+
[theme.breakpoints.up("tablet")]: {
|
|
24401
|
+
maxWidth: theme.breakpoints.values.laptop
|
|
24402
|
+
}
|
|
24403
|
+
},
|
|
24404
|
+
...maxWidth2 === "desktop" && {
|
|
24405
|
+
[theme.breakpoints.up("laptop")]: {
|
|
24406
|
+
maxWidth: theme.breakpoints.values.desktop
|
|
24407
|
+
}
|
|
24408
|
+
}
|
|
24409
|
+
})
|
|
24410
|
+
);
|
|
24411
|
+
var Container = forwardRef48(function Container2(props, ref) {
|
|
24412
|
+
return /* @__PURE__ */ jsx2(ContainerRoot, { ref, ...props });
|
|
24413
|
+
});
|
|
24414
|
+
Container.displayName = "Container";
|
|
24415
|
+
|
|
24378
24416
|
// src/components/DialogActions/DialogActions.tsx
|
|
24379
24417
|
import { motion as motion4 } from "framer-motion";
|
|
24380
24418
|
var MotionDialogActions = motion4(DialogActions_default);
|
|
@@ -24641,6 +24679,14 @@ Textarea3.displayName = "Textarea";
|
|
|
24641
24679
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
24642
24680
|
var defaultTheme4 = extendTheme({
|
|
24643
24681
|
cssVarPrefix: "ceed",
|
|
24682
|
+
breakpoints: {
|
|
24683
|
+
values: {
|
|
24684
|
+
mobile: 0,
|
|
24685
|
+
tablet: 768,
|
|
24686
|
+
laptop: 1024,
|
|
24687
|
+
desktop: 1280
|
|
24688
|
+
}
|
|
24689
|
+
},
|
|
24644
24690
|
components: {
|
|
24645
24691
|
JoyTable: {
|
|
24646
24692
|
defaultProps: {
|
|
@@ -24688,6 +24734,7 @@ export {
|
|
|
24688
24734
|
Button3 as Button,
|
|
24689
24735
|
Checkbox3 as Checkbox,
|
|
24690
24736
|
Chip_default as Chip,
|
|
24737
|
+
Container,
|
|
24691
24738
|
DialogActions3 as DialogActions,
|
|
24692
24739
|
DialogContent3 as DialogContent,
|
|
24693
24740
|
DialogTitle3 as DialogTitle,
|
|
@@ -24700,6 +24747,8 @@ export {
|
|
|
24700
24747
|
IconButton3 as IconButton,
|
|
24701
24748
|
Input3 as Input,
|
|
24702
24749
|
Menu3 as Menu,
|
|
24750
|
+
MenuButton3 as MenuButton,
|
|
24751
|
+
MenuItem3 as MenuItem,
|
|
24703
24752
|
Modal3 as Modal,
|
|
24704
24753
|
ModalClose3 as ModalClose,
|
|
24705
24754
|
ModalDialog3 as ModalDialog,
|