@ceed/ads 0.0.78 → 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.
|
@@ -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;
|
|
@@ -6,7 +6,7 @@ declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mu
|
|
|
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 = [];
|
|
@@ -1527,7 +1559,7 @@ function DataTable(props) {
|
|
|
1527
1559
|
justifyContent: "space-between",
|
|
1528
1560
|
alignItems: "center"
|
|
1529
1561
|
},
|
|
1530
|
-
/* @__PURE__ */ React13.createElement(Stack_default, { direction: "row", spacing: 1 }, !isAllSelected && /* @__PURE__ */ React13.createElement(Typography_default, { level: "body-xs" }, numberFormatter(selectionModel?.length || 0), " items selected"), isAllSelected && !isTotalSelected && /* @__PURE__ */ React13.createElement(Stack_default, { direction: "row", spacing: 1, alignItems: "center" }, /* @__PURE__ */ React13.createElement(Typography_default, { level: "body-xs" }, "All ", numberFormatter(selectionModel?.length || 0), " items on this page are selected."), /* @__PURE__ */ React13.createElement(Button_default, { size: "sm", variant: "plain", onClick: onTotalSelect }, "Select all ", numberFormatter(rowCount ?? rows.length), " items")), isTotalSelected && /* @__PURE__ */ React13.createElement(Stack_default, { direction: "row", spacing: 1, alignItems: "center" }, /* @__PURE__ */ React13.createElement(Typography_default, { level: "body-xs" }, "All ", numberFormatter(rowCount ?? rows.length), " items are selected."), /* @__PURE__ */ React13.createElement(
|
|
1562
|
+
!!checkboxSelection && /* @__PURE__ */ React13.createElement(Stack_default, { direction: "row", spacing: 1 }, !isAllSelected && /* @__PURE__ */ React13.createElement(Typography_default, { level: "body-xs" }, numberFormatter(selectionModel?.length || 0), " items selected"), isAllSelected && !isTotalSelected && /* @__PURE__ */ React13.createElement(Stack_default, { direction: "row", spacing: 1, alignItems: "center" }, /* @__PURE__ */ React13.createElement(Typography_default, { level: "body-xs" }, "All ", numberFormatter(selectionModel?.length || 0), " items on this page are selected."), /* @__PURE__ */ React13.createElement(Button_default, { size: "sm", variant: "plain", onClick: onTotalSelect }, "Select all ", numberFormatter(rowCount ?? rows.length), " items")), isTotalSelected && /* @__PURE__ */ React13.createElement(Stack_default, { direction: "row", spacing: 1, alignItems: "center" }, /* @__PURE__ */ React13.createElement(Typography_default, { level: "body-xs" }, "All ", numberFormatter(rowCount ?? rows.length), " items are selected."), /* @__PURE__ */ React13.createElement(
|
|
1531
1563
|
Button_default,
|
|
1532
1564
|
{
|
|
1533
1565
|
size: "sm",
|
|
@@ -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",
|
package/framer/index.js
CHANGED
|
@@ -1279,6 +1279,10 @@ var require_react_is3 = __commonJS({
|
|
|
1279
1279
|
}
|
|
1280
1280
|
});
|
|
1281
1281
|
|
|
1282
|
+
// src/framer-entrypoint.ts
|
|
1283
|
+
import { ControlType as ControlType28 } from "framer";
|
|
1284
|
+
import React181 from "react";
|
|
1285
|
+
|
|
1282
1286
|
// ../../node_modules/@mui/joy/colors/colors.js
|
|
1283
1287
|
var colors = {
|
|
1284
1288
|
grey: {
|
|
@@ -34726,28 +34730,73 @@ Dropdown2.displayName = "Dropdown";
|
|
|
34726
34730
|
// src/components/Dropdown/index.ts
|
|
34727
34731
|
var Dropdown_default = Dropdown2;
|
|
34728
34732
|
|
|
34733
|
+
// src/components/Typography/Typography.tsx
|
|
34734
|
+
import { motion as motion8 } from "framer-motion";
|
|
34735
|
+
var MotionTypography = motion8(Typography_default);
|
|
34736
|
+
var Typography3 = (props) => {
|
|
34737
|
+
return /* @__PURE__ */ jsx2(MotionTypography, __spreadValues({}, props));
|
|
34738
|
+
};
|
|
34739
|
+
Typography3.displayName = "Typography";
|
|
34740
|
+
|
|
34741
|
+
// src/components/Typography/index.ts
|
|
34742
|
+
var Typography_default2 = Typography3;
|
|
34743
|
+
|
|
34729
34744
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
34730
|
-
var MAX_CRUMBS = 4;
|
|
34731
34745
|
function Breadcrumbs3(props) {
|
|
34732
|
-
const _a = props, {
|
|
34733
|
-
|
|
34734
|
-
|
|
34735
|
-
|
|
34736
|
-
|
|
34737
|
-
|
|
34738
|
-
|
|
34739
|
-
|
|
34740
|
-
|
|
34741
|
-
|
|
34742
|
-
|
|
34743
|
-
|
|
34746
|
+
const _a = props, {
|
|
34747
|
+
crumbs,
|
|
34748
|
+
size,
|
|
34749
|
+
frontCrumbCounts = 1,
|
|
34750
|
+
backCrumbCounts = 3,
|
|
34751
|
+
slots: _b = { link: Link_default }
|
|
34752
|
+
} = _a, _c = _b, { link: Link3 } = _c, restSlots = __objRest(_c, ["link"]), _d = _a, {
|
|
34753
|
+
slotProps: _e = {
|
|
34754
|
+
link: { color: "neutral" }
|
|
34755
|
+
}
|
|
34756
|
+
} = _d, _f = _e, { link: linkProps } = _f, restSlotProps = __objRest(_f, ["link"]), innerProps = __objRest(_d, [
|
|
34757
|
+
"crumbs",
|
|
34758
|
+
"size",
|
|
34759
|
+
"frontCrumbCounts",
|
|
34760
|
+
"backCrumbCounts",
|
|
34761
|
+
"slots",
|
|
34762
|
+
"slotProps"
|
|
34763
|
+
]);
|
|
34764
|
+
const _backCrumbCounts = Math.max(1, backCrumbCounts);
|
|
34765
|
+
const Crumb = (props2) => {
|
|
34766
|
+
if (props2.type === "link" && Link3) {
|
|
34767
|
+
return /* @__PURE__ */ jsx2(Link3, __spreadProps(__spreadValues({ to: props2.linkHref, href: props2.linkHref }, linkProps), { children: props2.label }));
|
|
34768
|
+
} else {
|
|
34769
|
+
return /* @__PURE__ */ jsx2(Typography_default2, { children: props2.label });
|
|
34770
|
+
}
|
|
34771
|
+
};
|
|
34772
|
+
const frontCrumbs = crumbs.slice(0, frontCrumbCounts).map((crumb) => /* @__PURE__ */ jsx2(Crumb, __spreadValues({}, crumb)));
|
|
34773
|
+
const backCrumbs = (frontCrumbCounts + _backCrumbCounts > crumbs.length ? crumbs.slice(frontCrumbCounts) : crumbs.slice(-_backCrumbCounts)).map((crumb) => /* @__PURE__ */ jsx2(Crumb, __spreadValues({}, crumb)));
|
|
34774
|
+
const collapsedCrumbs = crumbs.slice(frontCrumbCounts, -_backCrumbCounts).map((crumb) => /* @__PURE__ */ jsx2(MenuItem3, { children: /* @__PURE__ */ jsx2(Crumb, __spreadValues({}, crumb)) }));
|
|
34775
|
+
console.log(collapsedCrumbs);
|
|
34776
|
+
return /* @__PURE__ */ jsxs2(
|
|
34777
|
+
Breadcrumbs_default,
|
|
34778
|
+
__spreadProps(__spreadValues({
|
|
34779
|
+
size,
|
|
34780
|
+
slots: restSlots,
|
|
34781
|
+
slotProps: restSlotProps
|
|
34782
|
+
}, innerProps), {
|
|
34783
|
+
children: [
|
|
34784
|
+
frontCrumbs,
|
|
34785
|
+
collapsedCrumbs.length && /* @__PURE__ */ jsxs2(Dropdown_default, { children: [
|
|
34786
|
+
/* @__PURE__ */ jsx2(MenuButton3, { variant: "plain", children: "..." }),
|
|
34787
|
+
/* @__PURE__ */ jsx2(Menu_default2, { children: collapsedCrumbs })
|
|
34788
|
+
] }),
|
|
34789
|
+
backCrumbs
|
|
34790
|
+
]
|
|
34791
|
+
})
|
|
34792
|
+
);
|
|
34744
34793
|
}
|
|
34745
34794
|
Breadcrumbs3.displayName = "Breadcrumbs";
|
|
34746
34795
|
|
|
34747
34796
|
// src/components/Button/Button.tsx
|
|
34748
34797
|
import { forwardRef as forwardRef79 } from "react";
|
|
34749
|
-
import { motion as
|
|
34750
|
-
var MotionButton =
|
|
34798
|
+
import { motion as motion9 } from "framer-motion";
|
|
34799
|
+
var MotionButton = motion9(Button_default);
|
|
34751
34800
|
var Button3 = forwardRef79(
|
|
34752
34801
|
(props, ref) => {
|
|
34753
34802
|
return /* @__PURE__ */ jsx2(
|
|
@@ -35713,17 +35762,6 @@ var ChevronRight_default = createSvgIcon2(/* @__PURE__ */ _jsx105("path", {
|
|
|
35713
35762
|
// src/components/Calendar/Calendar.tsx
|
|
35714
35763
|
import { AnimatePresence, motion as motion11 } from "framer-motion";
|
|
35715
35764
|
|
|
35716
|
-
// src/components/Typography/Typography.tsx
|
|
35717
|
-
import { motion as motion9 } from "framer-motion";
|
|
35718
|
-
var MotionTypography = motion9(Typography_default);
|
|
35719
|
-
var Typography3 = (props) => {
|
|
35720
|
-
return /* @__PURE__ */ jsx2(MotionTypography, __spreadValues({}, props));
|
|
35721
|
-
};
|
|
35722
|
-
Typography3.displayName = "Typography";
|
|
35723
|
-
|
|
35724
|
-
// src/components/Typography/index.ts
|
|
35725
|
-
var Typography_default2 = Typography3;
|
|
35726
|
-
|
|
35727
35765
|
// src/components/Calendar/utils/index.ts
|
|
35728
35766
|
var getCalendarDates = (date) => {
|
|
35729
35767
|
const dates = [];
|
|
@@ -37010,7 +37048,7 @@ function DataTable(props) {
|
|
|
37010
37048
|
justifyContent: "space-between",
|
|
37011
37049
|
alignItems: "center",
|
|
37012
37050
|
children: [
|
|
37013
|
-
/* @__PURE__ */ jsxs2(Stack_default2, { direction: "row", spacing: 1, children: [
|
|
37051
|
+
!!checkboxSelection && /* @__PURE__ */ jsxs2(Stack_default2, { direction: "row", spacing: 1, children: [
|
|
37014
37052
|
!isAllSelected && /* @__PURE__ */ jsxs2(Typography_default2, { level: "body-xs", children: [
|
|
37015
37053
|
numberFormatter((selectionModel == null ? void 0 : selectionModel.length) || 0),
|
|
37016
37054
|
" items selected"
|
|
@@ -40970,6 +41008,7 @@ var DatePicker = forwardRef84(
|
|
|
40970
41008
|
}
|
|
40971
41009
|
}
|
|
40972
41010
|
],
|
|
41011
|
+
disablePortal: true,
|
|
40973
41012
|
children: /* @__PURE__ */ jsx2(FocusTrap, { open: true, children: /* @__PURE__ */ jsxs2(CalendarSheet, { tabIndex: -1, role: "presentation", children: [
|
|
40974
41013
|
/* @__PURE__ */ jsx2(
|
|
40975
41014
|
Calendar_default,
|
|
@@ -41195,6 +41234,7 @@ var DateRangePicker = forwardRef85(
|
|
|
41195
41234
|
}
|
|
41196
41235
|
}
|
|
41197
41236
|
],
|
|
41237
|
+
disablePortal: true,
|
|
41198
41238
|
children: /* @__PURE__ */ jsx2(FocusTrap, { open: true, children: /* @__PURE__ */ jsxs2(CalendarSheet2, { tabIndex: -1, role: "presentation", children: [
|
|
41199
41239
|
/* @__PURE__ */ jsx2(
|
|
41200
41240
|
Calendar_default,
|
|
@@ -41275,7 +41315,10 @@ var MotionModal = motion19(Modal_default);
|
|
|
41275
41315
|
var Modal3 = MotionModal;
|
|
41276
41316
|
Modal3.displayName = "Modal";
|
|
41277
41317
|
var MotionModalDialog = motion19(ModalDialog_default);
|
|
41278
|
-
var
|
|
41318
|
+
var StyledModalDialog = styled_default2(MotionModalDialog)({
|
|
41319
|
+
padding: 0
|
|
41320
|
+
});
|
|
41321
|
+
var ModalDialog3 = StyledModalDialog;
|
|
41279
41322
|
ModalDialog3.displayName = "ModalDialog";
|
|
41280
41323
|
var MotionModalClose = motion19(ModalClose_default);
|
|
41281
41324
|
var ModalClose3 = MotionModalClose;
|
|
@@ -41285,7 +41328,7 @@ var ModalOverflow3 = MotionModalOverflow;
|
|
|
41285
41328
|
ModalOverflow3.displayName = "ModalOverflow";
|
|
41286
41329
|
function ModalFrame(props) {
|
|
41287
41330
|
const _a = props, { title, children } = _a, innerProps = __objRest(_a, ["title", "children"]);
|
|
41288
|
-
return /* @__PURE__ */ jsxs2(
|
|
41331
|
+
return /* @__PURE__ */ jsxs2(StyledModalDialog, __spreadProps(__spreadValues({}, innerProps), { children: [
|
|
41289
41332
|
/* @__PURE__ */ jsx2(ModalClose3, {}),
|
|
41290
41333
|
/* @__PURE__ */ jsx2(DialogTitle_default2, { children: title }),
|
|
41291
41334
|
/* @__PURE__ */ jsx2(DialogContent_default2, { children })
|
|
@@ -41492,6 +41535,7 @@ var MonthRangePicker = forwardRef86(
|
|
|
41492
41535
|
}
|
|
41493
41536
|
}
|
|
41494
41537
|
],
|
|
41538
|
+
disablePortal: true,
|
|
41495
41539
|
children: /* @__PURE__ */ jsx2(FocusTrap, { open: true, children: /* @__PURE__ */ jsxs2(CalendarSheet3, { tabIndex: -1, role: "presentation", children: [
|
|
41496
41540
|
/* @__PURE__ */ jsx2(
|
|
41497
41541
|
Calendar_default,
|
|
@@ -42986,6 +43030,43 @@ var typographyPropertyControls = {
|
|
|
42986
43030
|
type: ControlType27.ComponentInstance
|
|
42987
43031
|
}
|
|
42988
43032
|
};
|
|
43033
|
+
|
|
43034
|
+
// src/framer-entrypoint.ts
|
|
43035
|
+
var commonPropertyControls = {
|
|
43036
|
+
useNumbering: {
|
|
43037
|
+
title: "\u{1F4AB} Numbering",
|
|
43038
|
+
type: ControlType28.Boolean,
|
|
43039
|
+
defaultValue: false
|
|
43040
|
+
},
|
|
43041
|
+
numbering: {
|
|
43042
|
+
title: " ",
|
|
43043
|
+
type: ControlType28.Number,
|
|
43044
|
+
defaultValue: 1,
|
|
43045
|
+
hidden: ({ useNumbering }) => !useNumbering
|
|
43046
|
+
}
|
|
43047
|
+
};
|
|
43048
|
+
var withCommonControls = (Component) => {
|
|
43049
|
+
return (_a) => {
|
|
43050
|
+
var _b = _a, { useNumbering, numbering } = _b, props = __objRest(_b, ["useNumbering", "numbering"]);
|
|
43051
|
+
const components = [{ Component, props }];
|
|
43052
|
+
if (useNumbering) {
|
|
43053
|
+
components.push({
|
|
43054
|
+
Component: Badge_default,
|
|
43055
|
+
props: {
|
|
43056
|
+
color: "neutral",
|
|
43057
|
+
badgeContent: numbering,
|
|
43058
|
+
anchorOrigin: {
|
|
43059
|
+
vertical: "top",
|
|
43060
|
+
horizontal: "left"
|
|
43061
|
+
}
|
|
43062
|
+
}
|
|
43063
|
+
});
|
|
43064
|
+
}
|
|
43065
|
+
return components.reduce((acc, { Component: Component2, props: props2 }) => {
|
|
43066
|
+
return [React181.createElement(Component2, props2, ...acc)];
|
|
43067
|
+
}, []);
|
|
43068
|
+
};
|
|
43069
|
+
};
|
|
42989
43070
|
export {
|
|
42990
43071
|
Accordion3 as Accordion,
|
|
42991
43072
|
AccordionDetails3 as AccordionDetails,
|
|
@@ -43102,6 +43183,7 @@ export {
|
|
|
43102
43183
|
chipClasses_default as chipClasses,
|
|
43103
43184
|
chipPropertyControls,
|
|
43104
43185
|
circularProgressClasses_default as circularProgressClasses,
|
|
43186
|
+
commonPropertyControls,
|
|
43105
43187
|
dataTablePropertyControls,
|
|
43106
43188
|
datePickerPropertyControls,
|
|
43107
43189
|
dateRangePickerPropertyControls,
|
|
@@ -43165,7 +43247,8 @@ export {
|
|
|
43165
43247
|
textareaPropertyControls,
|
|
43166
43248
|
tooltipClasses_default as tooltipClasses,
|
|
43167
43249
|
typographyClasses_default as typographyClasses,
|
|
43168
|
-
typographyPropertyControls
|
|
43250
|
+
typographyPropertyControls,
|
|
43251
|
+
withCommonControls
|
|
43169
43252
|
};
|
|
43170
43253
|
/*! Bundled license information:
|
|
43171
43254
|
|