@ceed/ads 0.0.74 → 0.0.76
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,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const DialogActions: import("
|
|
2
|
+
declare const DialogActions: import("@emotion/styled").StyledComponent<Omit<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
buttonFlex?: string | number | undefined;
|
|
5
5
|
orientation?: "horizontal" | "vertical" | "horizontal-reverse" | undefined;
|
|
6
6
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
7
7
|
} & import("@mui/joy").DialogActionsSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
}, "children" | "sx" | "orientation" | "buttonFlex" | keyof import("@mui/joy").DialogActionsSlotsAndSlotProps
|
|
9
|
+
}, "children" | "sx" | "orientation" | "buttonFlex" | keyof import("@mui/joy").DialogActionsSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
10
10
|
export { DialogActions };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const DialogContent: import("
|
|
2
|
+
declare const DialogContent: import("@emotion/styled").StyledComponent<Omit<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
5
5
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
6
6
|
} & import("@mui/joy").DialogContentSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
7
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
-
}, "children" | "sx" | "orientation" | keyof import("@mui/joy").DialogContentSlotsAndSlotProps
|
|
8
|
+
}, "children" | "sx" | "orientation" | keyof import("@mui/joy").DialogContentSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
9
9
|
export { DialogContent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const DialogTitle: import("
|
|
2
|
+
declare const DialogTitle: import("@emotion/styled").StyledComponent<Omit<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").DialogTitlePropsColorOverrides> | undefined;
|
|
5
5
|
level?: "inherit" | keyof import("@mui/joy").TypographySystem | undefined;
|
|
@@ -7,5 +7,5 @@ declare const DialogTitle: import("framer-motion").CustomDomComponent<{
|
|
|
7
7
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").DialogTitlePropsVariantOverrides> | undefined;
|
|
8
8
|
} & import("@mui/joy").DialogTitleSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "children" | "color" | "variant" | "sx" | "level" | keyof import("@mui/joy").DialogTitleSlotsAndSlotProps
|
|
10
|
+
}, "children" | "color" | "variant" | "sx" | "level" | keyof import("@mui/joy").DialogTitleSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
11
11
|
export { DialogTitle };
|
package/dist/index.js
CHANGED
|
@@ -173,11 +173,11 @@ var FormHelperText_default = FormHelperText;
|
|
|
173
173
|
|
|
174
174
|
// src/components/Autocomplete/Autocomplete.tsx
|
|
175
175
|
function Autocomplete(props) {
|
|
176
|
-
const { label, error, helperText, color, size, ...innerProps } = props;
|
|
176
|
+
const { label, error, helperText, color, size, disabled, ...innerProps } = props;
|
|
177
177
|
if (label) {
|
|
178
|
-
return /* @__PURE__ */ React2.createElement(FormControl_default, { color, size, error }, /* @__PURE__ */ React2.createElement(FormLabel_default, null, label), /* @__PURE__ */ React2.createElement(JoyAutocomplete, { ...innerProps }), helperText && /* @__PURE__ */ React2.createElement(FormHelperText_default, null, helperText));
|
|
178
|
+
return /* @__PURE__ */ React2.createElement(FormControl_default, { color, size, error, disabled }, /* @__PURE__ */ React2.createElement(FormLabel_default, null, label), /* @__PURE__ */ React2.createElement(JoyAutocomplete, { ...innerProps }), helperText && /* @__PURE__ */ React2.createElement(FormHelperText_default, null, helperText));
|
|
179
179
|
}
|
|
180
|
-
return /* @__PURE__ */ React2.createElement(JoyAutocomplete, { ...innerProps, color, size });
|
|
180
|
+
return /* @__PURE__ */ React2.createElement(JoyAutocomplete, { ...innerProps, color, size, disabled });
|
|
181
181
|
}
|
|
182
182
|
Autocomplete.displayName = "Autocomplete";
|
|
183
183
|
|
|
@@ -1614,7 +1614,7 @@ DataTable.displayName = "DataTable";
|
|
|
1614
1614
|
import React15, { forwardRef as forwardRef4, useCallback as useCallback4, useState as useState4 } from "react";
|
|
1615
1615
|
import { IMaskInput, IMask } from "react-imask";
|
|
1616
1616
|
import CalendarTodayIcon from "@mui/icons-material/esm/CalendarToday.js";
|
|
1617
|
-
import { styled as
|
|
1617
|
+
import { styled as styled5 } from "@mui/joy";
|
|
1618
1618
|
import { FocusTrap, ClickAwayListener, Popper } from "@mui/base";
|
|
1619
1619
|
|
|
1620
1620
|
// src/components/Input/Input.tsx
|
|
@@ -1623,11 +1623,11 @@ import { Input as JoyInput } from "@mui/joy";
|
|
|
1623
1623
|
import { motion as motion15 } from "framer-motion";
|
|
1624
1624
|
var MotionInput = motion15(JoyInput);
|
|
1625
1625
|
var Input = (props) => {
|
|
1626
|
-
const { label, helperText, error, style, size, color, ...innerProps } = props;
|
|
1626
|
+
const { label, helperText, error, style, size, color, disabled, ...innerProps } = props;
|
|
1627
1627
|
if (label) {
|
|
1628
|
-
return /* @__PURE__ */ React14.createElement(FormControl_default, { color, size, error }, /* @__PURE__ */ React14.createElement(FormLabel_default, null, label), /* @__PURE__ */ React14.createElement(MotionInput, { ...innerProps }), helperText && /* @__PURE__ */ React14.createElement(FormHelperText_default, null, helperText));
|
|
1628
|
+
return /* @__PURE__ */ React14.createElement(FormControl_default, { color, size, error, disabled }, /* @__PURE__ */ React14.createElement(FormLabel_default, null, label), /* @__PURE__ */ React14.createElement(MotionInput, { ...innerProps }), helperText && /* @__PURE__ */ React14.createElement(FormHelperText_default, null, helperText));
|
|
1629
1629
|
}
|
|
1630
|
-
return /* @__PURE__ */ React14.createElement(MotionInput, { color, size, ...innerProps });
|
|
1630
|
+
return /* @__PURE__ */ React14.createElement(MotionInput, { color, size, disabled, ...innerProps });
|
|
1631
1631
|
};
|
|
1632
1632
|
Input.displayName = "Input";
|
|
1633
1633
|
|
|
@@ -1635,23 +1635,29 @@ Input.displayName = "Input";
|
|
|
1635
1635
|
var Input_default = Input;
|
|
1636
1636
|
|
|
1637
1637
|
// src/components/DialogActions/DialogActions.tsx
|
|
1638
|
-
import { DialogActions as JoyDialogActions } from "@mui/joy";
|
|
1638
|
+
import { DialogActions as JoyDialogActions, styled as styled4 } from "@mui/joy";
|
|
1639
1639
|
import { motion as motion16 } from "framer-motion";
|
|
1640
1640
|
var MotionDialogActions = motion16(JoyDialogActions);
|
|
1641
|
-
var
|
|
1641
|
+
var StyledDialogActions = styled4(MotionDialogActions)(({ theme }) => ({
|
|
1642
|
+
padding: theme.spacing(1),
|
|
1643
|
+
gap: theme.spacing(1),
|
|
1644
|
+
flexDirection: "row",
|
|
1645
|
+
justifyContent: "flex-end"
|
|
1646
|
+
}));
|
|
1647
|
+
var DialogActions = StyledDialogActions;
|
|
1642
1648
|
DialogActions.displayName = "DialogActions";
|
|
1643
1649
|
|
|
1644
1650
|
// src/components/DialogActions/index.ts
|
|
1645
1651
|
var DialogActions_default = DialogActions;
|
|
1646
1652
|
|
|
1647
1653
|
// src/components/DatePicker/DatePicker.tsx
|
|
1648
|
-
var StyledPopper =
|
|
1654
|
+
var StyledPopper = styled5(Popper, {
|
|
1649
1655
|
name: "DatePicker",
|
|
1650
1656
|
slot: "popper"
|
|
1651
1657
|
})(({ theme }) => ({
|
|
1652
1658
|
zIndex: theme.zIndex.popup
|
|
1653
1659
|
}));
|
|
1654
|
-
var CalendarSheet =
|
|
1660
|
+
var CalendarSheet = styled5(Sheet_default, {
|
|
1655
1661
|
name: "DatePicker",
|
|
1656
1662
|
slot: "sheet",
|
|
1657
1663
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -1803,7 +1809,7 @@ var DatePicker = forwardRef4(
|
|
|
1803
1809
|
)))
|
|
1804
1810
|
)));
|
|
1805
1811
|
if (label) {
|
|
1806
|
-
return /* @__PURE__ */ React15.createElement(FormControl_default, { error, size: "sm" }, /* @__PURE__ */ React15.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React15.createElement(FormHelperText_default, null, helperText));
|
|
1812
|
+
return /* @__PURE__ */ React15.createElement(FormControl_default, { disabled, error, size: "sm" }, /* @__PURE__ */ React15.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React15.createElement(FormHelperText_default, null, helperText));
|
|
1807
1813
|
}
|
|
1808
1814
|
return picker;
|
|
1809
1815
|
}
|
|
@@ -1814,15 +1820,15 @@ DatePicker.displayName = "DatePicker";
|
|
|
1814
1820
|
import React16, { forwardRef as forwardRef5, useCallback as useCallback5, useMemo as useMemo4, useState as useState5 } from "react";
|
|
1815
1821
|
import { IMaskInput as IMaskInput2, IMask as IMask2 } from "react-imask";
|
|
1816
1822
|
import CalendarTodayIcon2 from "@mui/icons-material/esm/CalendarToday.js";
|
|
1817
|
-
import { styled as
|
|
1823
|
+
import { styled as styled6 } from "@mui/joy";
|
|
1818
1824
|
import { FocusTrap as FocusTrap2, ClickAwayListener as ClickAwayListener2, Popper as Popper2 } from "@mui/base";
|
|
1819
|
-
var StyledPopper2 =
|
|
1825
|
+
var StyledPopper2 = styled6(Popper2, {
|
|
1820
1826
|
name: "DateRangePicker",
|
|
1821
1827
|
slot: "popper"
|
|
1822
1828
|
})(({ theme }) => ({
|
|
1823
1829
|
zIndex: theme.zIndex.popup
|
|
1824
1830
|
}));
|
|
1825
|
-
var CalendarSheet2 =
|
|
1831
|
+
var CalendarSheet2 = styled6(Sheet_default, {
|
|
1826
1832
|
name: "DateRangePicker",
|
|
1827
1833
|
slot: "sheet",
|
|
1828
1834
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2000,7 +2006,7 @@ var DateRangePicker = forwardRef5(
|
|
|
2000
2006
|
)))
|
|
2001
2007
|
)));
|
|
2002
2008
|
if (label) {
|
|
2003
|
-
return /* @__PURE__ */ React16.createElement(FormControl_default, { error, size: "sm" }, /* @__PURE__ */ React16.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React16.createElement(FormHelperText_default, null, helperText));
|
|
2009
|
+
return /* @__PURE__ */ React16.createElement(FormControl_default, { disabled, error, size: "sm" }, /* @__PURE__ */ React16.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React16.createElement(FormHelperText_default, null, helperText));
|
|
2004
2010
|
}
|
|
2005
2011
|
return picker;
|
|
2006
2012
|
}
|
|
@@ -2008,20 +2014,26 @@ var DateRangePicker = forwardRef5(
|
|
|
2008
2014
|
DateRangePicker.displayName = "DateRangePicker";
|
|
2009
2015
|
|
|
2010
2016
|
// src/components/DialogContent/DialogContent.tsx
|
|
2011
|
-
import { DialogContent as JoyDialogContent } from "@mui/joy";
|
|
2017
|
+
import { DialogContent as JoyDialogContent, styled as styled7 } from "@mui/joy";
|
|
2012
2018
|
import { motion as motion17 } from "framer-motion";
|
|
2013
2019
|
var MotionDialogContent = motion17(JoyDialogContent);
|
|
2014
|
-
var
|
|
2020
|
+
var StyledDialogContent = styled7(MotionDialogContent)(({ theme }) => ({
|
|
2021
|
+
padding: theme.spacing(0, 3, 2.5)
|
|
2022
|
+
}));
|
|
2023
|
+
var DialogContent = StyledDialogContent;
|
|
2015
2024
|
DialogContent.displayName = "DialogContent";
|
|
2016
2025
|
|
|
2017
2026
|
// src/components/DialogContent/index.ts
|
|
2018
2027
|
var DialogContent_default = DialogContent;
|
|
2019
2028
|
|
|
2020
2029
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
2021
|
-
import { DialogTitle as JoyDialogTitle } from "@mui/joy";
|
|
2030
|
+
import { DialogTitle as JoyDialogTitle, styled as styled8 } from "@mui/joy";
|
|
2022
2031
|
import { motion as motion18 } from "framer-motion";
|
|
2023
2032
|
var MotionDialogTitle = motion18(JoyDialogTitle);
|
|
2024
|
-
var
|
|
2033
|
+
var StyledDialogTitle = styled8(MotionDialogTitle)(({ theme }) => ({
|
|
2034
|
+
padding: theme.spacing(2, 3)
|
|
2035
|
+
}));
|
|
2036
|
+
var DialogTitle = StyledDialogTitle;
|
|
2025
2037
|
DialogTitle.displayName = "DialogTitle";
|
|
2026
2038
|
|
|
2027
2039
|
// src/components/DialogTitle/index.ts
|
|
@@ -2058,9 +2070,13 @@ function ModalFrame(props) {
|
|
|
2058
2070
|
ModalFrame.displayName = "ModalFrame";
|
|
2059
2071
|
|
|
2060
2072
|
// src/components/DialogFrame/DialogFrame.tsx
|
|
2073
|
+
import { styled as styled9 } from "@mui/joy";
|
|
2074
|
+
var StyledDialogFrame = styled9(ModalDialog)(({ theme }) => ({
|
|
2075
|
+
padding: 0
|
|
2076
|
+
}));
|
|
2061
2077
|
function DialogFrame(props) {
|
|
2062
2078
|
const { title, children, actions, ...innerProps } = props;
|
|
2063
|
-
return /* @__PURE__ */ React18.createElement(
|
|
2079
|
+
return /* @__PURE__ */ React18.createElement(StyledDialogFrame, { ...innerProps }, /* @__PURE__ */ React18.createElement(DialogTitle_default, null, title), /* @__PURE__ */ React18.createElement(DialogContent_default, null, children), /* @__PURE__ */ React18.createElement(DialogActions_default, null, actions));
|
|
2064
2080
|
}
|
|
2065
2081
|
DialogFrame.displayName = "DialogFrame";
|
|
2066
2082
|
|
|
@@ -2113,15 +2129,15 @@ Grid.displayName = "Grid";
|
|
|
2113
2129
|
import React21, { forwardRef as forwardRef6, useCallback as useCallback6, useMemo as useMemo5, useState as useState6 } from "react";
|
|
2114
2130
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
2115
2131
|
import CalendarTodayIcon3 from "@mui/icons-material/esm/CalendarToday.js";
|
|
2116
|
-
import { styled as
|
|
2132
|
+
import { styled as styled10 } from "@mui/joy";
|
|
2117
2133
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper3 } from "@mui/base";
|
|
2118
|
-
var StyledPopper3 =
|
|
2134
|
+
var StyledPopper3 = styled10(Popper3, {
|
|
2119
2135
|
name: "MonthRangePicker",
|
|
2120
2136
|
slot: "popper"
|
|
2121
2137
|
})(({ theme }) => ({
|
|
2122
2138
|
zIndex: theme.zIndex.popup
|
|
2123
2139
|
}));
|
|
2124
|
-
var CalendarSheet3 =
|
|
2140
|
+
var CalendarSheet3 = styled10(Sheet_default, {
|
|
2125
2141
|
name: "MonthRangePicker",
|
|
2126
2142
|
slot: "sheet",
|
|
2127
2143
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2294,7 +2310,7 @@ var MonthRangePicker = forwardRef6(
|
|
|
2294
2310
|
)))
|
|
2295
2311
|
)));
|
|
2296
2312
|
if (label) {
|
|
2297
|
-
return /* @__PURE__ */ React21.createElement(FormControl_default, { error, size: "sm" }, /* @__PURE__ */ React21.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React21.createElement(FormHelperText_default, null, helperText));
|
|
2313
|
+
return /* @__PURE__ */ React21.createElement(FormControl_default, { disabled, error, size: "sm" }, /* @__PURE__ */ React21.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React21.createElement(FormHelperText_default, null, helperText));
|
|
2298
2314
|
}
|
|
2299
2315
|
return picker;
|
|
2300
2316
|
}
|
|
@@ -2330,16 +2346,16 @@ var MotionOption = motion24(JoyOption);
|
|
|
2330
2346
|
var Option = MotionOption;
|
|
2331
2347
|
Option.displayName = "Option";
|
|
2332
2348
|
function Select(props) {
|
|
2333
|
-
const { label, helperText, error, size, color, ...innerProps } = props;
|
|
2349
|
+
const { label, helperText, error, size, color, disabled, ...innerProps } = props;
|
|
2334
2350
|
if (label) {
|
|
2335
|
-
return /* @__PURE__ */ React23.createElement(FormControl_default, { size, color, error }, /* @__PURE__ */ React23.createElement(FormLabel_default, null, label), /* @__PURE__ */ React23.createElement(
|
|
2351
|
+
return /* @__PURE__ */ React23.createElement(FormControl_default, { disabled, size, color, error }, /* @__PURE__ */ React23.createElement(FormLabel_default, null, label), /* @__PURE__ */ React23.createElement(
|
|
2336
2352
|
JoySelect,
|
|
2337
2353
|
{
|
|
2338
2354
|
...innerProps
|
|
2339
2355
|
}
|
|
2340
2356
|
), helperText && /* @__PURE__ */ React23.createElement(FormHelperText_default, null, helperText));
|
|
2341
2357
|
}
|
|
2342
|
-
return /* @__PURE__ */ React23.createElement(JoySelect, { size, color, ...innerProps });
|
|
2358
|
+
return /* @__PURE__ */ React23.createElement(JoySelect, { disabled, size, color, ...innerProps });
|
|
2343
2359
|
}
|
|
2344
2360
|
Select.displayName = "Select";
|
|
2345
2361
|
|
|
@@ -2347,12 +2363,12 @@ Select.displayName = "Select";
|
|
|
2347
2363
|
import React24 from "react";
|
|
2348
2364
|
import {
|
|
2349
2365
|
Switch as JoySwitch,
|
|
2350
|
-
styled as
|
|
2366
|
+
styled as styled11,
|
|
2351
2367
|
switchClasses
|
|
2352
2368
|
} from "@mui/joy";
|
|
2353
2369
|
import { motion as motion25 } from "framer-motion";
|
|
2354
2370
|
var MotionSwitch = motion25(JoySwitch);
|
|
2355
|
-
var StyledThumb =
|
|
2371
|
+
var StyledThumb = styled11(motion25.div)({
|
|
2356
2372
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
2357
2373
|
display: "inline-flex",
|
|
2358
2374
|
justifyContent: "center",
|
|
@@ -2412,11 +2428,11 @@ import { Textarea as JoyTextarea } from "@mui/joy";
|
|
|
2412
2428
|
import { motion as motion27 } from "framer-motion";
|
|
2413
2429
|
var MotionTextarea = motion27(JoyTextarea);
|
|
2414
2430
|
var Textarea = (props) => {
|
|
2415
|
-
const { label, error, helperText, color, size, ...innerProps } = props;
|
|
2431
|
+
const { label, error, helperText, color, size, disabled, ...innerProps } = props;
|
|
2416
2432
|
if (label) {
|
|
2417
|
-
return /* @__PURE__ */ React25.createElement(FormControl_default, { color, size, error }, /* @__PURE__ */ React25.createElement(FormLabel_default, null, label), /* @__PURE__ */ React25.createElement(MotionTextarea, { ...innerProps }), helperText && /* @__PURE__ */ React25.createElement(FormHelperText_default, null, helperText));
|
|
2433
|
+
return /* @__PURE__ */ React25.createElement(FormControl_default, { disabled, color, size, error }, /* @__PURE__ */ React25.createElement(FormLabel_default, null, label), /* @__PURE__ */ React25.createElement(MotionTextarea, { ...innerProps }), helperText && /* @__PURE__ */ React25.createElement(FormHelperText_default, null, helperText));
|
|
2418
2434
|
}
|
|
2419
|
-
return /* @__PURE__ */ React25.createElement(MotionTextarea, { color, size, ...innerProps });
|
|
2435
|
+
return /* @__PURE__ */ React25.createElement(MotionTextarea, { disabled, color, size, ...innerProps });
|
|
2420
2436
|
};
|
|
2421
2437
|
Textarea.displayName = "Textarea";
|
|
2422
2438
|
|
package/framer/index.js
CHANGED
|
@@ -34641,15 +34641,15 @@ var FormHelperText_default2 = FormHelperText3;
|
|
|
34641
34641
|
|
|
34642
34642
|
// src/components/Autocomplete/Autocomplete.tsx
|
|
34643
34643
|
function Autocomplete3(props) {
|
|
34644
|
-
const _a = props, { label, error, helperText, color: color2, size } = _a, innerProps = __objRest(_a, ["label", "error", "helperText", "color", "size"]);
|
|
34644
|
+
const _a = props, { label, error, helperText, color: color2, size, disabled } = _a, innerProps = __objRest(_a, ["label", "error", "helperText", "color", "size", "disabled"]);
|
|
34645
34645
|
if (label) {
|
|
34646
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { color: color2, size, error, children: [
|
|
34646
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { color: color2, size, error, disabled, children: [
|
|
34647
34647
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
34648
34648
|
/* @__PURE__ */ jsx2(Autocomplete_default, __spreadValues({}, innerProps)),
|
|
34649
34649
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
34650
34650
|
] });
|
|
34651
34651
|
}
|
|
34652
|
-
return /* @__PURE__ */ jsx2(Autocomplete_default, __spreadProps(__spreadValues({}, innerProps), { color: color2, size }));
|
|
34652
|
+
return /* @__PURE__ */ jsx2(Autocomplete_default, __spreadProps(__spreadValues({}, innerProps), { color: color2, size, disabled }));
|
|
34653
34653
|
}
|
|
34654
34654
|
Autocomplete3.displayName = "Autocomplete";
|
|
34655
34655
|
|
|
@@ -40735,15 +40735,15 @@ var CalendarToday_default = createSvgIcon2(/* @__PURE__ */ _jsx106("path", {
|
|
|
40735
40735
|
import { motion as motion15 } from "framer-motion";
|
|
40736
40736
|
var MotionInput = motion15(Input_default);
|
|
40737
40737
|
var Input3 = (props) => {
|
|
40738
|
-
const _a = props, { label, helperText, error, style: style4, size, color: color2 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style", "size", "color"]);
|
|
40738
|
+
const _a = props, { label, helperText, error, style: style4, size, color: color2, disabled } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style", "size", "color", "disabled"]);
|
|
40739
40739
|
if (label) {
|
|
40740
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { color: color2, size, error, children: [
|
|
40740
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { color: color2, size, error, disabled, children: [
|
|
40741
40741
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40742
40742
|
/* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps)),
|
|
40743
40743
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40744
40744
|
] });
|
|
40745
40745
|
}
|
|
40746
|
-
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({ color: color2, size }, innerProps));
|
|
40746
|
+
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({ color: color2, size, disabled }, innerProps));
|
|
40747
40747
|
};
|
|
40748
40748
|
Input3.displayName = "Input";
|
|
40749
40749
|
|
|
@@ -40753,7 +40753,13 @@ var Input_default2 = Input3;
|
|
|
40753
40753
|
// src/components/DialogActions/DialogActions.tsx
|
|
40754
40754
|
import { motion as motion16 } from "framer-motion";
|
|
40755
40755
|
var MotionDialogActions = motion16(DialogActions_default);
|
|
40756
|
-
var
|
|
40756
|
+
var StyledDialogActions = styled_default2(MotionDialogActions)(({ theme }) => ({
|
|
40757
|
+
padding: theme.spacing(1),
|
|
40758
|
+
gap: theme.spacing(1),
|
|
40759
|
+
flexDirection: "row",
|
|
40760
|
+
justifyContent: "flex-end"
|
|
40761
|
+
}));
|
|
40762
|
+
var DialogActions3 = StyledDialogActions;
|
|
40757
40763
|
DialogActions3.displayName = "DialogActions";
|
|
40758
40764
|
|
|
40759
40765
|
// src/components/DialogActions/index.ts
|
|
@@ -40923,7 +40929,7 @@ var DatePicker = forwardRef84(
|
|
|
40923
40929
|
) })
|
|
40924
40930
|
] });
|
|
40925
40931
|
if (label) {
|
|
40926
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
40932
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { disabled, error, size: "sm", children: [
|
|
40927
40933
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40928
40934
|
picker,
|
|
40929
40935
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
@@ -41125,7 +41131,7 @@ var DateRangePicker = forwardRef85(
|
|
|
41125
41131
|
) })
|
|
41126
41132
|
] });
|
|
41127
41133
|
if (label) {
|
|
41128
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
41134
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { disabled, error, size: "sm", children: [
|
|
41129
41135
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41130
41136
|
picker,
|
|
41131
41137
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
@@ -41139,7 +41145,10 @@ DateRangePicker.displayName = "DateRangePicker";
|
|
|
41139
41145
|
// src/components/DialogContent/DialogContent.tsx
|
|
41140
41146
|
import { motion as motion17 } from "framer-motion";
|
|
41141
41147
|
var MotionDialogContent = motion17(DialogContent_default);
|
|
41142
|
-
var
|
|
41148
|
+
var StyledDialogContent = styled_default2(MotionDialogContent)(({ theme }) => ({
|
|
41149
|
+
padding: theme.spacing(0, 3, 2.5)
|
|
41150
|
+
}));
|
|
41151
|
+
var DialogContent3 = StyledDialogContent;
|
|
41143
41152
|
DialogContent3.displayName = "DialogContent";
|
|
41144
41153
|
|
|
41145
41154
|
// src/components/DialogContent/index.ts
|
|
@@ -41148,7 +41157,10 @@ var DialogContent_default2 = DialogContent3;
|
|
|
41148
41157
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
41149
41158
|
import { motion as motion18 } from "framer-motion";
|
|
41150
41159
|
var MotionDialogTitle = motion18(DialogTitle_default);
|
|
41151
|
-
var
|
|
41160
|
+
var StyledDialogTitle = styled_default2(MotionDialogTitle)(({ theme }) => ({
|
|
41161
|
+
padding: theme.spacing(2, 3)
|
|
41162
|
+
}));
|
|
41163
|
+
var DialogTitle3 = StyledDialogTitle;
|
|
41152
41164
|
DialogTitle3.displayName = "DialogTitle";
|
|
41153
41165
|
|
|
41154
41166
|
// src/components/DialogTitle/index.ts
|
|
@@ -41179,9 +41191,12 @@ function ModalFrame(props) {
|
|
|
41179
41191
|
ModalFrame.displayName = "ModalFrame";
|
|
41180
41192
|
|
|
41181
41193
|
// src/components/DialogFrame/DialogFrame.tsx
|
|
41194
|
+
var StyledDialogFrame = styled_default2(ModalDialog3)(({ theme }) => ({
|
|
41195
|
+
padding: 0
|
|
41196
|
+
}));
|
|
41182
41197
|
function DialogFrame(props) {
|
|
41183
41198
|
const _a = props, { title, children, actions } = _a, innerProps = __objRest(_a, ["title", "children", "actions"]);
|
|
41184
|
-
return /* @__PURE__ */ jsxs2(
|
|
41199
|
+
return /* @__PURE__ */ jsxs2(StyledDialogFrame, __spreadProps(__spreadValues({}, innerProps), { children: [
|
|
41185
41200
|
/* @__PURE__ */ jsx2(DialogTitle_default2, { children: title }),
|
|
41186
41201
|
/* @__PURE__ */ jsx2(DialogContent_default2, { children }),
|
|
41187
41202
|
/* @__PURE__ */ jsx2(DialogActions_default2, { children: actions })
|
|
@@ -41413,7 +41428,7 @@ var MonthRangePicker = forwardRef86(
|
|
|
41413
41428
|
) })
|
|
41414
41429
|
] });
|
|
41415
41430
|
if (label) {
|
|
41416
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
41431
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { disabled, error, size: "sm", children: [
|
|
41417
41432
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41418
41433
|
picker,
|
|
41419
41434
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
@@ -41446,9 +41461,9 @@ var MotionOption = motion24(Option_default);
|
|
|
41446
41461
|
var Option3 = MotionOption;
|
|
41447
41462
|
Option3.displayName = "Option";
|
|
41448
41463
|
function Select3(props) {
|
|
41449
|
-
const _a = props, { label, helperText, error, size, color: color2 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "size", "color"]);
|
|
41464
|
+
const _a = props, { label, helperText, error, size, color: color2, disabled } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "size", "color", "disabled"]);
|
|
41450
41465
|
if (label) {
|
|
41451
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { size, color: color2, error, children: [
|
|
41466
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { disabled, size, color: color2, error, children: [
|
|
41452
41467
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41453
41468
|
/* @__PURE__ */ jsx2(
|
|
41454
41469
|
Select_default,
|
|
@@ -41457,7 +41472,7 @@ function Select3(props) {
|
|
|
41457
41472
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
41458
41473
|
] });
|
|
41459
41474
|
}
|
|
41460
|
-
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({ size, color: color2 }, innerProps));
|
|
41475
|
+
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({ disabled, size, color: color2 }, innerProps));
|
|
41461
41476
|
}
|
|
41462
41477
|
Select3.displayName = "Select";
|
|
41463
41478
|
|
|
@@ -41519,15 +41534,15 @@ TabPanel3.displayName = "TabPanel";
|
|
|
41519
41534
|
import { motion as motion27 } from "framer-motion";
|
|
41520
41535
|
var MotionTextarea = motion27(Textarea_default);
|
|
41521
41536
|
var Textarea3 = (props) => {
|
|
41522
|
-
const _a = props, { label, error, helperText, color: color2, size } = _a, innerProps = __objRest(_a, ["label", "error", "helperText", "color", "size"]);
|
|
41537
|
+
const _a = props, { label, error, helperText, color: color2, size, disabled } = _a, innerProps = __objRest(_a, ["label", "error", "helperText", "color", "size", "disabled"]);
|
|
41523
41538
|
if (label) {
|
|
41524
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { color: color2, size, error, children: [
|
|
41539
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { disabled, color: color2, size, error, children: [
|
|
41525
41540
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41526
41541
|
/* @__PURE__ */ jsx2(MotionTextarea, __spreadValues({}, innerProps)),
|
|
41527
41542
|
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
41528
41543
|
] });
|
|
41529
41544
|
}
|
|
41530
|
-
return /* @__PURE__ */ jsx2(MotionTextarea, __spreadValues({ color: color2, size }, innerProps));
|
|
41545
|
+
return /* @__PURE__ */ jsx2(MotionTextarea, __spreadValues({ disabled, color: color2, size }, innerProps));
|
|
41531
41546
|
};
|
|
41532
41547
|
Textarea3.displayName = "Textarea";
|
|
41533
41548
|
|
|
@@ -41869,8 +41884,16 @@ var checkboxPropertyControls = {
|
|
|
41869
41884
|
color: {
|
|
41870
41885
|
title: "Color",
|
|
41871
41886
|
type: ControlType7.Enum,
|
|
41872
|
-
options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41873
|
-
optionTitles: [
|
|
41887
|
+
options: [void 0, "primary", "neutral", "danger", "success", "warning"],
|
|
41888
|
+
optionTitles: [
|
|
41889
|
+
"Default",
|
|
41890
|
+
"Primary",
|
|
41891
|
+
"Neutral",
|
|
41892
|
+
"Danger",
|
|
41893
|
+
"Success",
|
|
41894
|
+
"Warning"
|
|
41895
|
+
],
|
|
41896
|
+
defaultValue: void 0
|
|
41874
41897
|
},
|
|
41875
41898
|
size: {
|
|
41876
41899
|
title: "Size",
|