@ceed/ads 0.0.79 → 0.0.80
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/Breadcrumbs/Breadcrumbs.d.ts +13 -2
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/index.js +77 -38
- package/framer/index.js +7582 -8945
- package/package.json +1 -1
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BreadcrumbsProps } from "@mui/joy";
|
|
3
3
|
declare function Breadcrumbs(props: {
|
|
4
|
-
crumbs:
|
|
5
|
-
|
|
4
|
+
crumbs: {
|
|
5
|
+
type: "text" | "link";
|
|
6
|
+
label: string;
|
|
7
|
+
linkHref?: string;
|
|
8
|
+
}[];
|
|
9
|
+
frontCrumbCounts?: number;
|
|
10
|
+
backCrumbCounts?: number;
|
|
11
|
+
slots?: {
|
|
12
|
+
link?: React.ElementType;
|
|
13
|
+
} & BreadcrumbsProps["slots"];
|
|
14
|
+
slotProps?: {
|
|
15
|
+
link?: {};
|
|
16
|
+
} & BreadcrumbsProps["slotProps"];
|
|
6
17
|
} & BreadcrumbsProps): React.JSX.Element;
|
|
7
18
|
declare namespace Breadcrumbs {
|
|
8
19
|
var displayName: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
|
|
3
|
-
onClose?: ((event: {}, reason: "
|
|
3
|
+
onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined;
|
|
4
4
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
5
5
|
} & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7
7
|
}, "children" | "container" | "sx" | "onClose" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop" | keyof import("@mui/joy").ModalSlotsAndSlotProps>>;
|
|
8
8
|
export { Modal };
|
|
9
|
-
declare const ModalDialog: import("
|
|
9
|
+
declare const ModalDialog: import("@emotion/styled").StyledComponent<Omit<{
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalDialogPropsColorOverrides> | undefined;
|
|
12
12
|
invertedColors?: boolean | undefined;
|
|
@@ -19,7 +19,7 @@ declare const ModalDialog: import("framer-motion").CustomDomComponent<{
|
|
|
19
19
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalDialogPropsVariantOverrides> | undefined;
|
|
20
20
|
} & import("@mui/joy").ModalDialogSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
-
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "orientation" | "invertedColors" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps
|
|
22
|
+
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "orientation" | "invertedColors" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
23
23
|
export { ModalDialog };
|
|
24
24
|
declare const ModalClose: import("framer-motion").CustomDomComponent<{
|
|
25
25
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalClosePropsColorOverrides> | undefined;
|
|
@@ -8,5 +8,5 @@ declare const Stack: import("framer-motion").CustomDomComponent<{
|
|
|
8
8
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
9
9
|
} & import("@mui/joy").StackSlotsAndSlotProps & import("@mui/joy/styles/types").SystemProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
10
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
-
}, "children" | "direction" | "sx" | ("p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "
|
|
11
|
+
}, "children" | "direction" | "sx" | ("p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "divider" | "spacing" | "useFlexGap" | keyof import("@mui/joy").StackSlotsAndSlotProps>>;
|
|
12
12
|
export { Stack };
|
package/dist/index.js
CHANGED
|
@@ -222,8 +222,11 @@ Box.displayName = "Box";
|
|
|
222
222
|
var Box_default = Box;
|
|
223
223
|
|
|
224
224
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
225
|
-
import
|
|
226
|
-
import {
|
|
225
|
+
import React5 from "react";
|
|
226
|
+
import {
|
|
227
|
+
Breadcrumbs as JoyBreadcrumbs,
|
|
228
|
+
Link as JoyLink
|
|
229
|
+
} from "@mui/joy";
|
|
227
230
|
|
|
228
231
|
// src/components/Menu/Menu.tsx
|
|
229
232
|
import React3 from "react";
|
|
@@ -262,25 +265,67 @@ Dropdown.displayName = "Dropdown";
|
|
|
262
265
|
// src/components/Dropdown/index.ts
|
|
263
266
|
var Dropdown_default = Dropdown;
|
|
264
267
|
|
|
268
|
+
// src/components/Typography/Typography.tsx
|
|
269
|
+
import React4 from "react";
|
|
270
|
+
import { Typography as JoyTypography } from "@mui/joy";
|
|
271
|
+
import { motion as motion8 } from "framer-motion";
|
|
272
|
+
var MotionTypography = motion8(JoyTypography);
|
|
273
|
+
var Typography = (props) => {
|
|
274
|
+
return /* @__PURE__ */ React4.createElement(MotionTypography, { ...props });
|
|
275
|
+
};
|
|
276
|
+
Typography.displayName = "Typography";
|
|
277
|
+
|
|
278
|
+
// src/components/Typography/index.ts
|
|
279
|
+
var Typography_default = Typography;
|
|
280
|
+
|
|
265
281
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
266
|
-
var MAX_CRUMBS = 4;
|
|
267
282
|
function Breadcrumbs(props) {
|
|
268
|
-
const {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
283
|
+
const {
|
|
284
|
+
crumbs,
|
|
285
|
+
size,
|
|
286
|
+
frontCrumbCounts = 1,
|
|
287
|
+
backCrumbCounts = 3,
|
|
288
|
+
slots: { link: Link2, ...restSlots } = { link: JoyLink },
|
|
289
|
+
slotProps: { link: linkProps, ...restSlotProps } = {
|
|
290
|
+
link: { color: "neutral" }
|
|
291
|
+
},
|
|
292
|
+
...innerProps
|
|
293
|
+
} = props;
|
|
294
|
+
const _backCrumbCounts = Math.max(1, backCrumbCounts);
|
|
295
|
+
const Crumb = (props2) => {
|
|
296
|
+
if (props2.type === "link" && Link2) {
|
|
297
|
+
return /* @__PURE__ */ React5.createElement(Link2, { to: props2.linkHref, href: props2.linkHref, ...linkProps }, props2.label);
|
|
298
|
+
} else {
|
|
299
|
+
return /* @__PURE__ */ React5.createElement(Typography_default, null, props2.label);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
const frontCrumbs = crumbs.slice(0, frontCrumbCounts).map((crumb) => /* @__PURE__ */ React5.createElement(Crumb, { ...crumb }));
|
|
303
|
+
const backCrumbs = (frontCrumbCounts + _backCrumbCounts > crumbs.length ? crumbs.slice(frontCrumbCounts) : crumbs.slice(-_backCrumbCounts)).map((crumb) => /* @__PURE__ */ React5.createElement(Crumb, { ...crumb }));
|
|
304
|
+
const collapsedCrumbs = crumbs.slice(frontCrumbCounts, -_backCrumbCounts).map((crumb) => /* @__PURE__ */ React5.createElement(MenuItem, null, /* @__PURE__ */ React5.createElement(Crumb, { ...crumb })));
|
|
305
|
+
console.log(collapsedCrumbs);
|
|
306
|
+
return /* @__PURE__ */ React5.createElement(
|
|
307
|
+
JoyBreadcrumbs,
|
|
308
|
+
{
|
|
309
|
+
size,
|
|
310
|
+
slots: restSlots,
|
|
311
|
+
slotProps: restSlotProps,
|
|
312
|
+
...innerProps
|
|
313
|
+
},
|
|
314
|
+
frontCrumbs,
|
|
315
|
+
collapsedCrumbs.length && /* @__PURE__ */ React5.createElement(Dropdown_default, null, /* @__PURE__ */ React5.createElement(MenuButton, { variant: "plain" }, "..."), /* @__PURE__ */ React5.createElement(Menu_default, null, collapsedCrumbs)),
|
|
316
|
+
backCrumbs
|
|
317
|
+
);
|
|
273
318
|
}
|
|
274
319
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
275
320
|
|
|
276
321
|
// src/components/Button/Button.tsx
|
|
277
|
-
import
|
|
322
|
+
import React6, { forwardRef } from "react";
|
|
278
323
|
import { Button as JoyButton } from "@mui/joy";
|
|
279
|
-
import { motion as
|
|
280
|
-
var MotionButton =
|
|
324
|
+
import { motion as motion9 } from "framer-motion";
|
|
325
|
+
var MotionButton = motion9(JoyButton);
|
|
281
326
|
var Button = forwardRef(
|
|
282
327
|
(props, ref) => {
|
|
283
|
-
return /* @__PURE__ */
|
|
328
|
+
return /* @__PURE__ */ React6.createElement(
|
|
284
329
|
MotionButton,
|
|
285
330
|
{
|
|
286
331
|
ref,
|
|
@@ -301,19 +346,6 @@ import ChevronLeftIcon from "@mui/icons-material/esm/ChevronLeft.js";
|
|
|
301
346
|
import ChevronRightIcon from "@mui/icons-material/esm/ChevronRight.js";
|
|
302
347
|
import { AnimatePresence, motion as motion11 } from "framer-motion";
|
|
303
348
|
|
|
304
|
-
// src/components/Typography/Typography.tsx
|
|
305
|
-
import React6 from "react";
|
|
306
|
-
import { Typography as JoyTypography } from "@mui/joy";
|
|
307
|
-
import { motion as motion9 } from "framer-motion";
|
|
308
|
-
var MotionTypography = motion9(JoyTypography);
|
|
309
|
-
var Typography = (props) => {
|
|
310
|
-
return /* @__PURE__ */ React6.createElement(MotionTypography, { ...props });
|
|
311
|
-
};
|
|
312
|
-
Typography.displayName = "Typography";
|
|
313
|
-
|
|
314
|
-
// src/components/Typography/index.ts
|
|
315
|
-
var Typography_default = Typography;
|
|
316
|
-
|
|
317
349
|
// src/components/Calendar/utils/index.ts
|
|
318
350
|
var getCalendarDates = (date) => {
|
|
319
351
|
const dates = [];
|
|
@@ -1844,7 +1876,8 @@ var DatePicker = forwardRef4(
|
|
|
1844
1876
|
offset: [4, 4]
|
|
1845
1877
|
}
|
|
1846
1878
|
}
|
|
1847
|
-
]
|
|
1879
|
+
],
|
|
1880
|
+
disablePortal: true
|
|
1848
1881
|
},
|
|
1849
1882
|
/* @__PURE__ */ React15.createElement(FocusTrap, { open: true }, /* @__PURE__ */ React15.createElement(CalendarSheet, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React15.createElement(
|
|
1850
1883
|
Calendar_default,
|
|
@@ -2066,7 +2099,8 @@ var DateRangePicker = forwardRef5(
|
|
|
2066
2099
|
offset: [4, 4]
|
|
2067
2100
|
}
|
|
2068
2101
|
}
|
|
2069
|
-
]
|
|
2102
|
+
],
|
|
2103
|
+
disablePortal: true
|
|
2070
2104
|
},
|
|
2071
2105
|
/* @__PURE__ */ React16.createElement(FocusTrap2, { open: true }, /* @__PURE__ */ React16.createElement(CalendarSheet2, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React16.createElement(
|
|
2072
2106
|
Calendar_default,
|
|
@@ -2144,14 +2178,18 @@ import {
|
|
|
2144
2178
|
Modal as JoyModal,
|
|
2145
2179
|
ModalDialog as JoyModalDialog,
|
|
2146
2180
|
ModalClose as JoyModalClose,
|
|
2147
|
-
ModalOverflow as JoyModalOverflow
|
|
2181
|
+
ModalOverflow as JoyModalOverflow,
|
|
2182
|
+
styled as styled9
|
|
2148
2183
|
} from "@mui/joy";
|
|
2149
2184
|
import { motion as motion19 } from "framer-motion";
|
|
2150
2185
|
var MotionModal = motion19(JoyModal);
|
|
2151
2186
|
var Modal = MotionModal;
|
|
2152
2187
|
Modal.displayName = "Modal";
|
|
2153
2188
|
var MotionModalDialog = motion19(JoyModalDialog);
|
|
2154
|
-
var
|
|
2189
|
+
var StyledModalDialog = styled9(MotionModalDialog)({
|
|
2190
|
+
padding: 0
|
|
2191
|
+
});
|
|
2192
|
+
var ModalDialog = StyledModalDialog;
|
|
2155
2193
|
ModalDialog.displayName = "ModalDialog";
|
|
2156
2194
|
var MotionModalClose = motion19(JoyModalClose);
|
|
2157
2195
|
var ModalClose = MotionModalClose;
|
|
@@ -2161,13 +2199,13 @@ var ModalOverflow = MotionModalOverflow;
|
|
|
2161
2199
|
ModalOverflow.displayName = "ModalOverflow";
|
|
2162
2200
|
function ModalFrame(props) {
|
|
2163
2201
|
const { title, children, ...innerProps } = props;
|
|
2164
|
-
return /* @__PURE__ */ React17.createElement(
|
|
2202
|
+
return /* @__PURE__ */ React17.createElement(StyledModalDialog, { ...innerProps }, /* @__PURE__ */ React17.createElement(ModalClose, null), /* @__PURE__ */ React17.createElement(DialogTitle_default, null, title), /* @__PURE__ */ React17.createElement(DialogContent_default, null, children));
|
|
2165
2203
|
}
|
|
2166
2204
|
ModalFrame.displayName = "ModalFrame";
|
|
2167
2205
|
|
|
2168
2206
|
// src/components/DialogFrame/DialogFrame.tsx
|
|
2169
|
-
import { styled as
|
|
2170
|
-
var StyledDialogFrame =
|
|
2207
|
+
import { styled as styled10 } from "@mui/joy";
|
|
2208
|
+
var StyledDialogFrame = styled10(ModalDialog)(({ theme }) => ({
|
|
2171
2209
|
padding: 0
|
|
2172
2210
|
}));
|
|
2173
2211
|
function DialogFrame(props) {
|
|
@@ -2225,15 +2263,15 @@ Grid.displayName = "Grid";
|
|
|
2225
2263
|
import React21, { forwardRef as forwardRef6, useCallback as useCallback6, useMemo as useMemo5, useState as useState6 } from "react";
|
|
2226
2264
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
2227
2265
|
import CalendarTodayIcon3 from "@mui/icons-material/esm/CalendarToday.js";
|
|
2228
|
-
import { styled as
|
|
2266
|
+
import { styled as styled11 } from "@mui/joy";
|
|
2229
2267
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper3 } from "@mui/base";
|
|
2230
|
-
var StyledPopper3 =
|
|
2268
|
+
var StyledPopper3 = styled11(Popper3, {
|
|
2231
2269
|
name: "MonthRangePicker",
|
|
2232
2270
|
slot: "popper"
|
|
2233
2271
|
})(({ theme }) => ({
|
|
2234
2272
|
zIndex: theme.zIndex.popup
|
|
2235
2273
|
}));
|
|
2236
|
-
var CalendarSheet3 =
|
|
2274
|
+
var CalendarSheet3 = styled11(Sheet_default, {
|
|
2237
2275
|
name: "MonthRangePicker",
|
|
2238
2276
|
slot: "sheet",
|
|
2239
2277
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2370,7 +2408,8 @@ var MonthRangePicker = forwardRef6(
|
|
|
2370
2408
|
offset: [4, 4]
|
|
2371
2409
|
}
|
|
2372
2410
|
}
|
|
2373
|
-
]
|
|
2411
|
+
],
|
|
2412
|
+
disablePortal: true
|
|
2374
2413
|
},
|
|
2375
2414
|
/* @__PURE__ */ React21.createElement(FocusTrap3, { open: true }, /* @__PURE__ */ React21.createElement(CalendarSheet3, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React21.createElement(
|
|
2376
2415
|
Calendar_default,
|
|
@@ -2486,12 +2525,12 @@ Select.displayName = "Select";
|
|
|
2486
2525
|
import React24 from "react";
|
|
2487
2526
|
import {
|
|
2488
2527
|
Switch as JoySwitch,
|
|
2489
|
-
styled as
|
|
2528
|
+
styled as styled12,
|
|
2490
2529
|
switchClasses
|
|
2491
2530
|
} from "@mui/joy";
|
|
2492
2531
|
import { motion as motion25 } from "framer-motion";
|
|
2493
2532
|
var MotionSwitch = motion25(JoySwitch);
|
|
2494
|
-
var StyledThumb =
|
|
2533
|
+
var StyledThumb = styled12(motion25.div)({
|
|
2495
2534
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
2496
2535
|
display: "inline-flex",
|
|
2497
2536
|
justifyContent: "center",
|