@ceed/ads 0.0.19 → 0.0.21

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,25 @@
1
1
  import React from "react";
2
- import { ButtonProps } from "@mui/joy";
3
2
  import { MotionProps } from "framer-motion";
4
- declare const Button: {
5
- (props: ButtonProps & MotionProps): React.JSX.Element;
6
- displayName: string;
7
- };
3
+ declare const Button: React.ForwardRefExoticComponent<Omit<{
4
+ component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
5
+ } & import("@mui/joy").ButtonSlotsAndSlotProps & {
6
+ action?: React.Ref<{
7
+ focusVisible(): void;
8
+ }> | undefined;
9
+ color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ButtonPropsColorOverrides> | undefined;
10
+ disabled?: boolean | undefined;
11
+ endDecorator?: React.ReactNode;
12
+ focusVisibleClassName?: string | undefined;
13
+ fullWidth?: boolean | undefined;
14
+ size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").ButtonPropsSizeOverrides> | undefined;
15
+ startDecorator?: React.ReactNode;
16
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
17
+ tabIndex?: number | undefined;
18
+ variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ButtonPropsVariantOverrides> | undefined;
19
+ loading?: boolean | undefined;
20
+ loadingIndicator?: React.ReactNode;
21
+ loadingPosition?: "center" | "end" | "start" | undefined;
22
+ } & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
23
+ ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
24
+ }, "color" | "tabIndex" | "variant" | "sx" | "disabled" | "size" | "component" | keyof import("@mui/joy").ButtonSlotsAndSlotProps | "action" | "endDecorator" | "focusVisibleClassName" | "fullWidth" | "startDecorator" | "loading" | "loadingIndicator" | "loadingPosition"> & MotionProps, "ref"> & React.RefAttributes<unknown>>;
8
25
  export { Button };
@@ -9,11 +9,11 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import React from "react";
12
+ import React, { forwardRef } from "react";
13
13
  import { Button as JoyButton } from "@mui/joy";
14
14
  import { motion } from "framer-motion";
15
15
  var MotionButton = motion(JoyButton);
16
- var Button = function (props) {
16
+ var Button = forwardRef(function (props) {
17
17
  // prop destruction
18
18
  // lib hooks
19
19
  // state, ref, querystring hooks
@@ -23,6 +23,6 @@ var Button = function (props) {
23
23
  // effects
24
24
  // handlers
25
25
  return (React.createElement(MotionButton, __assign({}, props)));
26
- };
26
+ });
27
27
  export { Button };
28
28
  Button.displayName = "Button";
@@ -20,7 +20,10 @@ type DataTableProps<T extends Record<string, unknown>> = {
20
20
  page: number;
21
21
  pageSize: number;
22
22
  };
23
- onPaginationModelChange?: (newPage: number) => void;
23
+ onPaginationModelChange?: (model: {
24
+ page: number;
25
+ pageSize: number;
26
+ }) => void;
24
27
  /**
25
28
  * Rows의 총 갯수를 직접 지정 할 수 있다.
26
29
  * 기본적으로는 rows.length를 사용하지만, 이 값을 지정하면 rows.length를 사용하지 않는다.
@@ -87,7 +87,7 @@ function useDataTableRenderer(_a) {
87
87
  var isTotalSelected = useMemo(function () { return rowCount > 0 && selectionModel.length === rowCount; }, [selectionModel, rowCount]);
88
88
  var handlePageChange = useCallback(function (newPage) {
89
89
  setPage(newPage);
90
- onPaginationModelChange === null || onPaginationModelChange === void 0 ? void 0 : onPaginationModelChange(newPage);
90
+ onPaginationModelChange === null || onPaginationModelChange === void 0 ? void 0 : onPaginationModelChange({ page: newPage, pageSize: pageSize });
91
91
  }, [onPaginationModelChange]);
92
92
  useEffect(function () {
93
93
  handlePageChange(1);
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { ModalDialog } from "../Modal";
3
+ declare function DialogFrame(props: {
4
+ title: React.ReactNode;
5
+ children: React.ReactNode;
6
+ actions: React.ReactNode;
7
+ } & React.ComponentProps<typeof ModalDialog>): React.JSX.Element;
8
+ declare namespace DialogFrame {
9
+ var displayName: string;
10
+ }
11
+ export { DialogFrame };
@@ -0,0 +1,44 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from "react";
24
+ import DialogTitle from "../DialogTitle";
25
+ import DialogContent from "../DialogContent";
26
+ import { ModalDialog } from "../Modal";
27
+ import DialogActions from "../DialogActions";
28
+ function DialogFrame(props) {
29
+ // prop destruction
30
+ var title = props.title, children = props.children, actions = props.actions, innerProps = __rest(props, ["title", "children", "actions"]);
31
+ // lib hooks
32
+ // state, ref, querystring hooks
33
+ // form hooks
34
+ // query hooks
35
+ // calculated values
36
+ // effects
37
+ // handlers
38
+ return (React.createElement(ModalDialog, __assign({}, innerProps),
39
+ React.createElement(DialogTitle, null, title),
40
+ React.createElement(DialogContent, null, children),
41
+ React.createElement(DialogActions, null, actions)));
42
+ }
43
+ export { DialogFrame };
44
+ DialogFrame.displayName = "DialogFrame";
@@ -0,0 +1,3 @@
1
+ import { DialogFrame } from "./DialogFrame";
2
+ export * from "./DialogFrame";
3
+ export default DialogFrame;
@@ -0,0 +1,3 @@
1
+ import { DialogFrame } from "./DialogFrame";
2
+ export * from "./DialogFrame";
3
+ export default DialogFrame;
@@ -7,6 +7,7 @@ export { DataTable } from "./DataTable";
7
7
  export { DialogActions } from "./DialogActions";
8
8
  export { DialogContent } from "./DialogContent";
9
9
  export { DialogTitle } from "./DialogTitle";
10
+ export { DialogFrame } from "./DialogFrame";
10
11
  export { Divider } from "./Divider";
11
12
  export { InsetDrawer } from "./InsetDrawer";
12
13
  export { Dropdown } from "./Dropdown";
@@ -7,6 +7,7 @@ export { DataTable } from "./DataTable";
7
7
  export { DialogActions } from "./DialogActions";
8
8
  export { DialogContent } from "./DialogContent";
9
9
  export { DialogTitle } from "./DialogTitle";
10
+ export { DialogFrame } from "./DialogFrame";
10
11
  export { Divider } from "./Divider";
11
12
  export { InsetDrawer } from "./InsetDrawer";
12
13
  export { Dropdown } from "./Dropdown";
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, tabsClasses, tabListClasses, tabPanelClasses, accordionClasses, accordionDetailsClasses, accordionGroupClasses as accordionsClasses, accordionSummaryClasses, Avatar, avatarClasses, AvatarGroup, avatarGroupClasses, AspectRatio, aspectRatioClasses, Badge, badgeClasses, Breadcrumbs, breadcrumbsClasses, Card, cardClasses, CardActions, cardActionsClasses, CardContent, cardContentClasses, CardCover, cardCoverClasses, CardOverflow, cardOverflowClasses, Chip, chipClasses, CircularProgress, circularProgressClasses, Drawer, drawerClasses, LinearProgress, linearProgressClasses, List, listClasses, ListDivider, listDividerClasses, ListItem, listItemClasses, ListItemButton, listItemButtonClasses, ListItemContent, listItemContentClasses, ListItemDecorator, listItemDecoratorClasses, ListSubheader, listSubheaderClasses, Link, linkClasses, Slider, sliderClasses, Step, stepClasses, StepButton, stepButtonClasses, StepIndicator, Stepper, stepperClasses, Skeleton, skeletonClasses, } from "@mui/joy";
2
- export { Accordion, Accordions, AccordionDetails, AccordionSummary, Box, Button, Checkbox, Container, DataTable, DialogActions, DialogContent, DialogTitle, Divider, Dropdown, InsetDrawer, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
2
+ export { Accordion, Accordions, AccordionDetails, AccordionSummary, Box, Button, Checkbox, Container, DataTable, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, InsetDrawer, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, 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, tabsClasses, tabListClasses, tabPanelClasses,
4
4
  // Pure JoyUI
5
5
  accordionClasses, accordionDetailsClasses, accordionGroupClasses as accordionsClasses, accordionSummaryClasses, Avatar, avatarClasses, AvatarGroup, avatarGroupClasses, AspectRatio, aspectRatioClasses, Badge, badgeClasses, Breadcrumbs, breadcrumbsClasses, Card, cardClasses, CardActions, cardActionsClasses, CardContent, cardContentClasses, CardCover, cardCoverClasses, CardOverflow, cardOverflowClasses, Chip, chipClasses, CircularProgress, circularProgressClasses, Drawer, drawerClasses, LinearProgress, linearProgressClasses, List, listClasses, ListDivider, listDividerClasses, ListItem, listItemClasses, ListItemButton, listItemButtonClasses, ListItemContent, listItemContentClasses, ListItemDecorator, listItemDecoratorClasses, ListSubheader, listSubheaderClasses, Link, linkClasses, Slider, sliderClasses, Step, stepClasses, StepButton, stepButtonClasses, StepIndicator, Stepper, stepperClasses, Skeleton, skeletonClasses, } from "@mui/joy";
6
- export { Accordion, Accordions, AccordionDetails, AccordionSummary, Box, Button, Checkbox, Container, DataTable, DialogActions, DialogContent, DialogTitle, Divider, Dropdown, InsetDrawer, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
6
+ export { Accordion, Accordions, AccordionDetails, AccordionSummary, Box, Button, Checkbox, Container, DataTable, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, InsetDrawer, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
package/framer/index.js CHANGED
@@ -31912,16 +31912,17 @@ Box2.displayName = "Box";
31912
31912
  var Box_default2 = Box2;
31913
31913
 
31914
31914
  // src/components/Button/Button.tsx
31915
+ import { forwardRef as forwardRef75 } from "react";
31915
31916
  import { motion as motion3 } from "framer-motion";
31916
31917
  var MotionButton = motion3(Button_default);
31917
- var Button3 = (props) => {
31918
+ var Button3 = forwardRef75((props) => {
31918
31919
  return /* @__PURE__ */ jsx2(
31919
31920
  MotionButton,
31920
31921
  {
31921
31922
  ...props
31922
31923
  }
31923
31924
  );
31924
- };
31925
+ });
31925
31926
  Button3.displayName = "Button";
31926
31927
 
31927
31928
  // src/components/Button/index.ts
@@ -31939,7 +31940,7 @@ Checkbox3.displayName = "Checkbox";
31939
31940
  var Checkbox_default2 = Checkbox3;
31940
31941
 
31941
31942
  // src/components/Container/Container.tsx
31942
- import { forwardRef as forwardRef75 } from "react";
31943
+ import { forwardRef as forwardRef76 } from "react";
31943
31944
  var ContainerRoot = styled_default2("div", {
31944
31945
  name: "Container",
31945
31946
  slot: "root",
@@ -31971,7 +31972,7 @@ var ContainerRoot = styled_default2("div", {
31971
31972
  }
31972
31973
  })
31973
31974
  );
31974
- var Container = forwardRef75(function Container2(props, ref) {
31975
+ var Container = forwardRef76(function Container2(props, ref) {
31975
31976
  return /* @__PURE__ */ jsx2(ContainerRoot, { ref, ...props });
31976
31977
  });
31977
31978
  Container.displayName = "Container";
@@ -32244,7 +32245,7 @@ function useDataTableRenderer({
32244
32245
  const handlePageChange = useCallback23(
32245
32246
  (newPage) => {
32246
32247
  setPage(newPage);
32247
- onPaginationModelChange?.(newPage);
32248
+ onPaginationModelChange?.({ page: newPage, pageSize });
32248
32249
  },
32249
32250
  [onPaginationModelChange]
32250
32251
  );
@@ -32520,6 +32521,9 @@ var MotionDialogActions = motion8(DialogActions_default);
32520
32521
  var DialogActions3 = MotionDialogActions;
32521
32522
  DialogActions3.displayName = "DialogActions";
32522
32523
 
32524
+ // src/components/DialogActions/index.ts
32525
+ var DialogActions_default2 = DialogActions3;
32526
+
32523
32527
  // src/components/DialogContent/DialogContent.tsx
32524
32528
  import { motion as motion9 } from "framer-motion";
32525
32529
  var MotionDialogContent = motion9(DialogContent_default);
@@ -32538,17 +32542,52 @@ DialogTitle3.displayName = "DialogTitle";
32538
32542
  // src/components/DialogTitle/index.ts
32539
32543
  var DialogTitle_default2 = DialogTitle3;
32540
32544
 
32541
- // src/components/Divider/Divider.tsx
32545
+ // src/components/Modal/Modal.tsx
32542
32546
  import { motion as motion11 } from "framer-motion";
32543
- var MotionDivider = motion11(Divider_default);
32547
+ var MotionModal = motion11(Modal_default);
32548
+ var Modal3 = MotionModal;
32549
+ Modal3.displayName = "Modal";
32550
+ var MotionModalDialog = motion11(ModalDialog_default);
32551
+ var ModalDialog3 = MotionModalDialog;
32552
+ ModalDialog3.displayName = "ModalDialog";
32553
+ var MotionModalClose = motion11(ModalClose_default);
32554
+ var ModalClose3 = MotionModalClose;
32555
+ ModalClose3.displayName = "ModalClose";
32556
+ var MotionModalOverflow = motion11(ModalOverflow_default);
32557
+ var ModalOverflow3 = MotionModalOverflow;
32558
+ ModalOverflow3.displayName = "ModalOverflow";
32559
+ function ModalFrame(props) {
32560
+ const { title, children, ...innerProps } = props;
32561
+ return /* @__PURE__ */ jsxs2(ModalDialog3, { ...innerProps, children: [
32562
+ /* @__PURE__ */ jsx2(ModalClose3, {}),
32563
+ /* @__PURE__ */ jsx2(DialogTitle_default2, { children: title }),
32564
+ /* @__PURE__ */ jsx2(DialogContent_default2, { children })
32565
+ ] });
32566
+ }
32567
+ ModalFrame.displayName = "ModalFrame";
32568
+
32569
+ // src/components/DialogFrame/DialogFrame.tsx
32570
+ function DialogFrame(props) {
32571
+ const { title, children, actions, ...innerProps } = props;
32572
+ return /* @__PURE__ */ jsxs2(ModalDialog3, { ...innerProps, children: [
32573
+ /* @__PURE__ */ jsx2(DialogTitle_default2, { children: title }),
32574
+ /* @__PURE__ */ jsx2(DialogContent_default2, { children }),
32575
+ /* @__PURE__ */ jsx2(DialogActions_default2, { children: actions })
32576
+ ] });
32577
+ }
32578
+ DialogFrame.displayName = "DialogFrame";
32579
+
32580
+ // src/components/Divider/Divider.tsx
32581
+ import { motion as motion12 } from "framer-motion";
32582
+ var MotionDivider = motion12(Divider_default);
32544
32583
  var Divider3 = (props) => {
32545
32584
  return /* @__PURE__ */ jsx2(MotionDivider, { ...props });
32546
32585
  };
32547
32586
  Divider3.displayName = "Divider";
32548
32587
 
32549
32588
  // src/components/InsetDrawer/InsetDrawer.tsx
32550
- import { motion as motion12 } from "framer-motion";
32551
- var MotionDrawer = motion12(Drawer_default);
32589
+ import { motion as motion13 } from "framer-motion";
32590
+ var MotionDrawer = motion13(Drawer_default);
32552
32591
  var InsetDrawer = (props) => {
32553
32592
  const { children, ...innerProps } = props;
32554
32593
  return /* @__PURE__ */ jsx2(
@@ -32573,93 +32612,69 @@ var InsetDrawer = (props) => {
32573
32612
  InsetDrawer.displayName = "InsetDrawer";
32574
32613
 
32575
32614
  // src/components/Dropdown/Dropdown.tsx
32576
- import { motion as motion13 } from "framer-motion";
32577
- var MotionDropdown = motion13(Dropdown);
32615
+ import { motion as motion14 } from "framer-motion";
32616
+ var MotionDropdown = motion14(Dropdown);
32578
32617
  var Dropdown2 = MotionDropdown;
32579
32618
  Dropdown2.displayName = "Dropdown";
32580
32619
 
32581
32620
  // src/components/FormControl/FormControl.tsx
32582
- import { motion as motion14 } from "framer-motion";
32583
- var MotionFormControl = motion14(FormControl_default);
32621
+ import { motion as motion15 } from "framer-motion";
32622
+ var MotionFormControl = motion15(FormControl_default);
32584
32623
  var FormControl3 = MotionFormControl;
32585
32624
  FormControl3.displayName = "FormControl";
32586
32625
 
32587
32626
  // src/components/FormHelperText/FormHelperText.tsx
32588
- import { motion as motion15 } from "framer-motion";
32589
- var MotionFormHelperText = motion15(FormHelperText_default);
32627
+ import { motion as motion16 } from "framer-motion";
32628
+ var MotionFormHelperText = motion16(FormHelperText_default);
32590
32629
  var FormHelperText3 = MotionFormHelperText;
32591
32630
  FormHelperText3.displayName = "FormHelperText";
32592
32631
 
32593
32632
  // src/components/FormLabel/FormLabel.tsx
32594
- import { motion as motion16 } from "framer-motion";
32595
- var MotionFormLabel = motion16(FormLabel_default);
32633
+ import { motion as motion17 } from "framer-motion";
32634
+ var MotionFormLabel = motion17(FormLabel_default);
32596
32635
  var FormLabel3 = MotionFormLabel;
32597
32636
  FormLabel3.displayName = "FormLabel";
32598
32637
 
32599
32638
  // src/components/Grid/Grid.tsx
32600
- import { motion as motion17 } from "framer-motion";
32601
- var MotionGrid = motion17(Grid_default);
32639
+ import { motion as motion18 } from "framer-motion";
32640
+ var MotionGrid = motion18(Grid_default);
32602
32641
  var Grid2 = MotionGrid;
32603
32642
  Grid2.displayName = "Grid";
32604
32643
 
32605
32644
  // src/components/IconButton/IconButton.tsx
32606
- import { motion as motion18 } from "framer-motion";
32607
- var MotionIconButton = motion18(IconButton_default);
32645
+ import { motion as motion19 } from "framer-motion";
32646
+ var MotionIconButton = motion19(IconButton_default);
32608
32647
  var IconButton3 = (props) => {
32609
32648
  return /* @__PURE__ */ jsx2(MotionIconButton, { ...props });
32610
32649
  };
32611
32650
  IconButton3.displayName = "IconButton";
32612
32651
 
32613
32652
  // src/components/Input/Input.tsx
32614
- import { motion as motion19 } from "framer-motion";
32615
- var MotionInput = motion19(Input_default);
32653
+ import { motion as motion20 } from "framer-motion";
32654
+ var MotionInput = motion20(Input_default);
32616
32655
  var Input3 = (props) => {
32617
32656
  return /* @__PURE__ */ jsx2(MotionInput, { ...props });
32618
32657
  };
32619
32658
  Input3.displayName = "Input";
32620
32659
 
32621
32660
  // src/components/Menu/Menu.tsx
32622
- import { motion as motion20 } from "framer-motion";
32623
- var MotionMenu = motion20(Menu_default);
32661
+ import { motion as motion21 } from "framer-motion";
32662
+ var MotionMenu = motion21(Menu_default);
32624
32663
  var Menu3 = (props) => {
32625
32664
  return /* @__PURE__ */ jsx2(MotionMenu, { ...props });
32626
32665
  };
32627
32666
  Menu3.displayName = "Menu";
32628
- var MotionMenuButton = motion20(MenuButton_default);
32667
+ var MotionMenuButton = motion21(MenuButton_default);
32629
32668
  var MenuButton3 = (props) => {
32630
32669
  return /* @__PURE__ */ jsx2(MotionMenuButton, { ...props });
32631
32670
  };
32632
32671
  MenuButton3.displayName = "MenuButton";
32633
- var MotionMenuItem = motion20(MenuItem_default);
32672
+ var MotionMenuItem = motion21(MenuItem_default);
32634
32673
  var MenuItem3 = (props) => {
32635
32674
  return /* @__PURE__ */ jsx2(MotionMenuItem, { ...props });
32636
32675
  };
32637
32676
  MenuItem3.displayName = "MenuItem";
32638
32677
 
32639
- // src/components/Modal/Modal.tsx
32640
- import { motion as motion21 } from "framer-motion";
32641
- var MotionModal = motion21(Modal_default);
32642
- var Modal3 = MotionModal;
32643
- Modal3.displayName = "Modal";
32644
- var MotionModalDialog = motion21(ModalDialog_default);
32645
- var ModalDialog3 = MotionModalDialog;
32646
- ModalDialog3.displayName = "ModalDialog";
32647
- var MotionModalClose = motion21(ModalClose_default);
32648
- var ModalClose3 = MotionModalClose;
32649
- ModalClose3.displayName = "ModalClose";
32650
- var MotionModalOverflow = motion21(ModalOverflow_default);
32651
- var ModalOverflow3 = MotionModalOverflow;
32652
- ModalOverflow3.displayName = "ModalOverflow";
32653
- function ModalFrame(props) {
32654
- const { title, children, ...innerProps } = props;
32655
- return /* @__PURE__ */ jsxs2(ModalDialog3, { ...innerProps, children: [
32656
- /* @__PURE__ */ jsx2(ModalClose3, {}),
32657
- /* @__PURE__ */ jsx2(DialogTitle_default2, { children: title }),
32658
- /* @__PURE__ */ jsx2(DialogContent_default2, { children })
32659
- ] });
32660
- }
32661
- ModalFrame.displayName = "ModalFrame";
32662
-
32663
32678
  // src/components/Radio/Radio.tsx
32664
32679
  import { motion as motion22 } from "framer-motion";
32665
32680
  var MotionRadio = motion22(Radio_default);
@@ -33106,125 +33121,148 @@ var dataTablePropertyControls = {
33106
33121
  }
33107
33122
  };
33108
33123
 
33109
- // src/components/Divider/Divider.framer.ts
33124
+ // src/components/DialogFrame/DialogFrame.framer.ts
33110
33125
  import { ControlType as ControlType8 } from "framer";
33126
+ var dialogFramePropertyControls = {
33127
+ title: {
33128
+ type: ControlType8.String,
33129
+ defaultValue: "Title"
33130
+ },
33131
+ content: {
33132
+ title: "Content",
33133
+ type: ControlType8.ComponentInstance
33134
+ },
33135
+ actions: {
33136
+ title: "Actions",
33137
+ type: ControlType8.ComponentInstance
33138
+ },
33139
+ size: {
33140
+ title: "Size",
33141
+ type: ControlType8.Enum,
33142
+ options: ["sm", "md", "lg"],
33143
+ defaultValue: "md"
33144
+ }
33145
+ };
33146
+
33147
+ // src/components/Divider/Divider.framer.ts
33148
+ import { ControlType as ControlType9 } from "framer";
33111
33149
  var dividerPropertyControls = {
33112
33150
  text: {
33113
- type: ControlType8.String,
33151
+ type: ControlType9.String,
33114
33152
  defaultValue: void 0
33115
33153
  },
33116
33154
  orientation: {
33117
33155
  title: "Orientation",
33118
- type: ControlType8.Enum,
33156
+ type: ControlType9.Enum,
33119
33157
  options: ["horizontal", "vertical"]
33120
33158
  }
33121
33159
  };
33122
33160
 
33123
33161
  // src/components/IconButton/IconButton.framer.ts
33124
- import { ControlType as ControlType9 } from "framer";
33162
+ import { ControlType as ControlType10 } from "framer";
33125
33163
  var iconButtonPropertyControls = {
33126
33164
  icon: {
33127
33165
  title: "Icon",
33128
- type: ControlType9.ComponentInstance
33166
+ type: ControlType10.ComponentInstance
33129
33167
  },
33130
33168
  onClick: {
33131
33169
  title: "onClick",
33132
- type: ControlType9.EventHandler
33170
+ type: ControlType10.EventHandler
33133
33171
  },
33134
33172
  disabled: {
33135
33173
  title: "Disabled",
33136
- type: ControlType9.Boolean,
33174
+ type: ControlType10.Boolean,
33137
33175
  defaultValue: false
33138
33176
  },
33139
33177
  color: {
33140
33178
  title: "Color",
33141
- type: ControlType9.Enum,
33179
+ type: ControlType10.Enum,
33142
33180
  options: ["primary", "neutral", "danger", "success", "warning"],
33143
33181
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
33144
33182
  },
33145
33183
  variant: {
33146
33184
  title: "Variant",
33147
- type: ControlType9.Enum,
33185
+ type: ControlType10.Enum,
33148
33186
  options: ["solid", "outlined", "soft", "plain"]
33149
33187
  },
33150
33188
  size: {
33151
33189
  title: "Size",
33152
- type: ControlType9.Enum,
33190
+ type: ControlType10.Enum,
33153
33191
  options: ["sm", "md", "lg"],
33154
33192
  defaultValue: "md"
33155
33193
  }
33156
33194
  };
33157
33195
 
33158
33196
  // src/components/Input/Input.framer.ts
33159
- import { ControlType as ControlType10 } from "framer";
33197
+ import { ControlType as ControlType11 } from "framer";
33160
33198
  var inputPropertyControls = {
33161
33199
  onChange: {
33162
- type: ControlType10.EventHandler
33200
+ type: ControlType11.EventHandler
33163
33201
  },
33164
33202
  disabled: {
33165
33203
  title: "Disabled",
33166
- type: ControlType10.Boolean,
33204
+ type: ControlType11.Boolean,
33167
33205
  defaultValue: false
33168
33206
  },
33169
33207
  color: {
33170
33208
  title: "Color",
33171
- type: ControlType10.Enum,
33209
+ type: ControlType11.Enum,
33172
33210
  options: ["primary", "neutral", "danger", "success", "warning"],
33173
33211
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
33174
33212
  defaultValue: "neutral"
33175
33213
  },
33176
33214
  variant: {
33177
33215
  title: "Variant",
33178
- type: ControlType10.Enum,
33216
+ type: ControlType11.Enum,
33179
33217
  options: ["solid", "outlined", "soft", "plain"],
33180
33218
  defaultValue: "outlined"
33181
33219
  },
33182
33220
  defaultValue: {
33183
33221
  title: "Value",
33184
- type: ControlType10.String,
33222
+ type: ControlType11.String,
33185
33223
  defaultValue: ""
33186
33224
  },
33187
33225
  placeholder: {
33188
33226
  title: "Placeholder",
33189
- type: ControlType10.String,
33227
+ type: ControlType11.String,
33190
33228
  defaultValue: "Type in here..."
33191
33229
  },
33192
33230
  endDecorator: {
33193
33231
  title: "End Decorator",
33194
- type: ControlType10.ComponentInstance
33232
+ type: ControlType11.ComponentInstance
33195
33233
  },
33196
33234
  startDecorator: {
33197
33235
  title: "Start Decorator",
33198
- type: ControlType10.ComponentInstance
33236
+ type: ControlType11.ComponentInstance
33199
33237
  },
33200
33238
  size: {
33201
33239
  title: "Size",
33202
- type: ControlType10.Enum,
33240
+ type: ControlType11.Enum,
33203
33241
  options: ["sm", "md", "lg"],
33204
33242
  defaultValue: "md"
33205
33243
  }
33206
33244
  };
33207
33245
 
33208
33246
  // src/components/MenuButton/MenuButton.framer.ts
33209
- import { ControlType as ControlType11 } from "framer";
33247
+ import { ControlType as ControlType12 } from "framer";
33210
33248
  var menuButtonPropertyControls = {
33211
33249
  buttonText: {
33212
33250
  title: "Button Text",
33213
- type: ControlType11.String,
33251
+ type: ControlType12.String,
33214
33252
  defaultValue: "text"
33215
33253
  },
33216
33254
  showIcon: {
33217
- type: ControlType11.Boolean,
33255
+ type: ControlType12.Boolean,
33218
33256
  defaultValue: false
33219
33257
  },
33220
33258
  items: {
33221
33259
  title: "Items",
33222
- type: ControlType11.Array,
33260
+ type: ControlType12.Array,
33223
33261
  control: {
33224
- type: ControlType11.Object,
33262
+ type: ControlType12.Object,
33225
33263
  controls: {
33226
33264
  text: {
33227
- type: ControlType11.String
33265
+ type: ControlType12.String
33228
33266
  }
33229
33267
  }
33230
33268
  },
@@ -33233,52 +33271,52 @@ var menuButtonPropertyControls = {
33233
33271
  };
33234
33272
 
33235
33273
  // src/components/Modal/Modal.framer.ts
33236
- import { ControlType as ControlType12 } from "framer";
33274
+ import { ControlType as ControlType13 } from "framer";
33237
33275
  var modalFramePropertyControls = {
33238
33276
  title: {
33239
- type: ControlType12.String,
33277
+ type: ControlType13.String,
33240
33278
  defaultValue: "Title"
33241
33279
  },
33242
33280
  content: {
33243
33281
  title: "Content",
33244
- type: ControlType12.ComponentInstance
33282
+ type: ControlType13.ComponentInstance
33245
33283
  },
33246
33284
  size: {
33247
33285
  title: "Size",
33248
- type: ControlType12.Enum,
33286
+ type: ControlType13.Enum,
33249
33287
  options: ["sm", "md", "lg"],
33250
33288
  defaultValue: "md"
33251
33289
  }
33252
33290
  };
33253
33291
 
33254
33292
  // src/components/RadioList/RadioList.framer.ts
33255
- import { ControlType as ControlType13 } from "framer";
33293
+ import { ControlType as ControlType14 } from "framer";
33256
33294
  var radioListPropertyControls = {
33257
33295
  orientation: {
33258
33296
  title: "Orientation",
33259
- type: ControlType13.Enum,
33297
+ type: ControlType14.Enum,
33260
33298
  options: ["vertical", "horizontal"],
33261
33299
  defaultValue: "vertical"
33262
33300
  },
33263
33301
  defaultValue: {
33264
33302
  title: "Checked Value",
33265
- type: ControlType13.String,
33303
+ type: ControlType14.String,
33266
33304
  defaultValue: "value1"
33267
33305
  },
33268
33306
  items: {
33269
33307
  title: "Items",
33270
- type: ControlType13.Array,
33308
+ type: ControlType14.Array,
33271
33309
  control: {
33272
- type: ControlType13.Object,
33310
+ type: ControlType14.Object,
33273
33311
  controls: {
33274
33312
  displayName: {
33275
33313
  title: "Display Name",
33276
- type: ControlType13.String
33314
+ type: ControlType14.String
33277
33315
  },
33278
- value: { title: "Value", type: ControlType13.String },
33316
+ value: { title: "Value", type: ControlType14.String },
33279
33317
  color: {
33280
33318
  title: "Color",
33281
- type: ControlType13.Enum,
33319
+ type: ControlType14.Enum,
33282
33320
  options: ["primary", "neutral", "danger", "success", "warning"],
33283
33321
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
33284
33322
  }
@@ -33296,60 +33334,60 @@ var radioListPropertyControls = {
33296
33334
  };
33297
33335
 
33298
33336
  // src/components/Select/Select.framer.ts
33299
- import { ControlType as ControlType14 } from "framer";
33337
+ import { ControlType as ControlType15 } from "framer";
33300
33338
  var selectPropertyControls = {
33301
33339
  onChange: {
33302
33340
  title: "onChange",
33303
- type: ControlType14.EventHandler
33341
+ type: ControlType15.EventHandler
33304
33342
  },
33305
33343
  defaultListboxOpen: {
33306
33344
  title: "Opened",
33307
- type: ControlType14.Boolean,
33345
+ type: ControlType15.Boolean,
33308
33346
  defaultValue: false
33309
33347
  },
33310
33348
  defaultValue: {
33311
33349
  title: "Selected Option",
33312
- type: ControlType14.String
33350
+ type: ControlType15.String
33313
33351
  },
33314
33352
  disabled: {
33315
33353
  title: "Disabled",
33316
- type: ControlType14.Boolean,
33354
+ type: ControlType15.Boolean,
33317
33355
  defaultValue: false
33318
33356
  },
33319
33357
  placeholder: {
33320
33358
  title: "Placeholder",
33321
- type: ControlType14.String,
33359
+ type: ControlType15.String,
33322
33360
  defaultValue: "Choose one..."
33323
33361
  },
33324
33362
  color: {
33325
33363
  title: "Color",
33326
- type: ControlType14.Enum,
33364
+ type: ControlType15.Enum,
33327
33365
  options: ["primary", "neutral", "danger", "success", "warning"],
33328
33366
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
33329
33367
  },
33330
33368
  size: {
33331
33369
  title: "Size",
33332
- type: ControlType14.Enum,
33370
+ type: ControlType15.Enum,
33333
33371
  options: ["sm", "md", "lg"],
33334
33372
  defaultValue: "md"
33335
33373
  },
33336
33374
  variant: {
33337
33375
  title: "Variant",
33338
- type: ControlType14.Enum,
33376
+ type: ControlType15.Enum,
33339
33377
  options: ["outlined", "plain", "solid", "soft"],
33340
33378
  defaultValue: void 0
33341
33379
  },
33342
33380
  options: {
33343
33381
  title: "Options",
33344
- type: ControlType14.Array,
33382
+ type: ControlType15.Array,
33345
33383
  control: {
33346
- type: ControlType14.Object,
33384
+ type: ControlType15.Object,
33347
33385
  controls: {
33348
33386
  text: {
33349
33387
  title: "Text",
33350
- type: ControlType14.String
33388
+ type: ControlType15.String
33351
33389
  },
33352
- value: { title: "Value", type: ControlType14.String }
33390
+ value: { title: "Value", type: ControlType15.String }
33353
33391
  }
33354
33392
  },
33355
33393
  defaultValue: [
@@ -33360,101 +33398,101 @@ var selectPropertyControls = {
33360
33398
  };
33361
33399
 
33362
33400
  // src/components/Sheet/Sheet.framer.ts
33363
- import { ControlType as ControlType15 } from "framer";
33401
+ import { ControlType as ControlType16 } from "framer";
33364
33402
  var sheetPropertyControls = {
33365
33403
  color: {
33366
33404
  title: "Color",
33367
- type: ControlType15.Enum,
33405
+ type: ControlType16.Enum,
33368
33406
  options: ["primary", "neutral", "danger", "success", "warning"],
33369
33407
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
33370
33408
  },
33371
33409
  variant: {
33372
33410
  title: "Variant",
33373
- type: ControlType15.Enum,
33411
+ type: ControlType16.Enum,
33374
33412
  options: ["solid", "outlined", "soft", "plain"],
33375
33413
  defaultValue: "outlined"
33376
33414
  }
33377
33415
  };
33378
33416
 
33379
33417
  // src/components/Switch/Switch.framer.ts
33380
- import { ControlType as ControlType16 } from "framer";
33418
+ import { ControlType as ControlType17 } from "framer";
33381
33419
  var switchPropertyControls = {
33382
33420
  onChange: {
33383
33421
  title: "onChange",
33384
- type: ControlType16.EventHandler
33422
+ type: ControlType17.EventHandler
33385
33423
  },
33386
33424
  disabled: {
33387
33425
  title: "Disabled",
33388
- type: ControlType16.Boolean,
33426
+ type: ControlType17.Boolean,
33389
33427
  defaultValue: false
33390
33428
  },
33391
33429
  color: {
33392
33430
  title: "Color",
33393
- type: ControlType16.Enum,
33431
+ type: ControlType17.Enum,
33394
33432
  options: ["primary", "neutral", "danger", "success", "warning"],
33395
33433
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
33396
33434
  },
33397
33435
  variant: {
33398
33436
  title: "Variant",
33399
- type: ControlType16.Enum,
33437
+ type: ControlType17.Enum,
33400
33438
  options: ["solid", "outlined", "soft", "plain"],
33401
33439
  defaultValue: void 0
33402
33440
  },
33403
33441
  size: {
33404
33442
  title: "Size",
33405
- type: ControlType16.Enum,
33443
+ type: ControlType17.Enum,
33406
33444
  options: ["sm", "md", "lg"],
33407
33445
  defaultValue: "md"
33408
33446
  }
33409
33447
  };
33410
33448
 
33411
33449
  // src/components/Tabs/Tabs.framer.ts
33412
- import { ControlType as ControlType17 } from "framer";
33450
+ import { ControlType as ControlType18 } from "framer";
33413
33451
  var tabsPropertyControls = {
33414
33452
  color: {
33415
33453
  title: "Color",
33416
- type: ControlType17.Enum,
33454
+ type: ControlType18.Enum,
33417
33455
  options: ["primary", "neutral", "danger", "success", "warning"],
33418
33456
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
33419
33457
  },
33420
33458
  size: {
33421
33459
  title: "Size",
33422
- type: ControlType17.Enum,
33460
+ type: ControlType18.Enum,
33423
33461
  options: ["sm", "md", "lg"],
33424
33462
  defaultValue: "md"
33425
33463
  },
33426
33464
  variant: {
33427
33465
  title: "Variant",
33428
- type: ControlType17.Enum,
33466
+ type: ControlType18.Enum,
33429
33467
  options: ["outlined", "plain", "solid", "soft"],
33430
33468
  defaultValue: "plain"
33431
33469
  },
33432
33470
  orientation: {
33433
- type: ControlType17.Enum,
33471
+ type: ControlType18.Enum,
33434
33472
  options: ["horizontal", "vertical"]
33435
33473
  },
33436
33474
  disableUnderline: {
33437
- type: ControlType17.Boolean,
33475
+ type: ControlType18.Boolean,
33438
33476
  defaultValue: false
33439
33477
  },
33440
33478
  disableIndicator: {
33441
- type: ControlType17.Boolean,
33479
+ type: ControlType18.Boolean,
33442
33480
  defaultValue: false
33443
33481
  },
33444
33482
  indicatorInset: {
33445
- type: ControlType17.Boolean,
33483
+ type: ControlType18.Boolean,
33446
33484
  defaultValue: false
33447
33485
  },
33448
33486
  tabs: {
33449
- type: ControlType17.Array,
33487
+ type: ControlType18.Array,
33450
33488
  control: {
33451
- type: ControlType17.Object,
33489
+ type: ControlType18.Object,
33452
33490
  controls: {
33453
33491
  title: {
33454
- type: ControlType17.String
33492
+ type: ControlType18.String
33455
33493
  },
33456
33494
  disabled: {
33457
- type: ControlType17.Boolean,
33495
+ type: ControlType18.Boolean,
33458
33496
  defaultValue: false
33459
33497
  }
33460
33498
  }
@@ -33462,15 +33500,15 @@ var tabsPropertyControls = {
33462
33500
  },
33463
33501
  contents: {
33464
33502
  title: "Contents",
33465
- type: ControlType17.Array,
33503
+ type: ControlType18.Array,
33466
33504
  control: {
33467
- type: ControlType17.ComponentInstance
33505
+ type: ControlType18.ComponentInstance
33468
33506
  }
33469
33507
  }
33470
33508
  };
33471
33509
 
33472
33510
  // src/components/Typography/Typography.framer.ts
33473
- import { ControlType as ControlType18 } from "framer";
33511
+ import { ControlType as ControlType19 } from "framer";
33474
33512
  var typographyPropertyControls = {
33475
33513
  // color: {
33476
33514
  // title: "Color",
@@ -33480,7 +33518,7 @@ var typographyPropertyControls = {
33480
33518
  // },
33481
33519
  level: {
33482
33520
  title: "Level",
33483
- type: ControlType18.Enum,
33521
+ type: ControlType19.Enum,
33484
33522
  options: [
33485
33523
  "h1",
33486
33524
  "h2",
@@ -33499,23 +33537,23 @@ var typographyPropertyControls = {
33499
33537
  },
33500
33538
  textColor: {
33501
33539
  title: "Text Color",
33502
- type: ControlType18.Enum,
33540
+ type: ControlType19.Enum,
33503
33541
  options: ["text.tertiary", "inherit"],
33504
33542
  defaultValue: "inherit"
33505
33543
  },
33506
33544
  text: {
33507
33545
  title: "Text",
33508
- type: ControlType18.String,
33546
+ type: ControlType19.String,
33509
33547
  defaultValue: "Typography",
33510
33548
  displayTextArea: true
33511
33549
  },
33512
33550
  endDecorator: {
33513
33551
  title: "End Decorator",
33514
- type: ControlType18.ComponentInstance
33552
+ type: ControlType19.ComponentInstance
33515
33553
  },
33516
33554
  startDecorator: {
33517
33555
  title: "Start Decorator",
33518
- type: ControlType18.ComponentInstance
33556
+ type: ControlType19.ComponentInstance
33519
33557
  }
33520
33558
  };
33521
33559
  export {
@@ -33542,6 +33580,7 @@ export {
33542
33580
  DataTable,
33543
33581
  DialogActions3 as DialogActions,
33544
33582
  DialogContent3 as DialogContent,
33583
+ DialogFrame,
33545
33584
  DialogTitle3 as DialogTitle,
33546
33585
  Divider3 as Divider,
33547
33586
  Drawer_default as Drawer,
@@ -33623,6 +33662,7 @@ export {
33623
33662
  dataTablePropertyControls,
33624
33663
  dialogActionsClasses_default as dialogActionsClasses,
33625
33664
  dialogContentClasses_default as dialogContentClasses,
33665
+ dialogFramePropertyControls,
33626
33666
  dialogTitleClasses_default as dialogTitleClasses,
33627
33667
  dividerClasses_default as dividerClasses,
33628
33668
  dividerPropertyControls,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceed/ads",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "description": "UI tool for Ecube Labs front-end developers",