@ceed/ads 0.0.61 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +10 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/DataTable/DataTable.d.ts +2 -0
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +196 -148
- package/framer/index.js +172 -93
- package/package.json +1 -1
package/framer/index.js
CHANGED
|
@@ -34662,6 +34662,9 @@ Box2.displayName = "Box";
|
|
|
34662
34662
|
// src/components/Box/index.ts
|
|
34663
34663
|
var Box_default2 = Box2;
|
|
34664
34664
|
|
|
34665
|
+
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
34666
|
+
import { useState as useState23 } from "react";
|
|
34667
|
+
|
|
34665
34668
|
// src/components/Button/Button.tsx
|
|
34666
34669
|
import { forwardRef as forwardRef79 } from "react";
|
|
34667
34670
|
import { motion as motion6 } from "framer-motion";
|
|
@@ -34681,6 +34684,22 @@ Button3.displayName = "Button";
|
|
|
34681
34684
|
// src/components/Button/index.ts
|
|
34682
34685
|
var Button_default2 = Button3;
|
|
34683
34686
|
|
|
34687
|
+
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
34688
|
+
var MAX_CRUMBS = 4;
|
|
34689
|
+
function Breadcrumbs3(props) {
|
|
34690
|
+
const _a = props, { crumbs, collapsed, size } = _a, innerProps = __objRest(_a, ["crumbs", "collapsed", "size"]);
|
|
34691
|
+
const [needCollapsed, setNeedCollapsed] = useState23(false);
|
|
34692
|
+
const firstCrumb = crumbs[0];
|
|
34693
|
+
const restCrumbs = crumbs.slice(-(MAX_CRUMBS - 1));
|
|
34694
|
+
const collapsingCrumbs = crumbs.slice(1, -(MAX_CRUMBS - 1));
|
|
34695
|
+
return /* @__PURE__ */ jsxs2(Breadcrumbs_default, __spreadProps(__spreadValues({ size }, innerProps), { children: [
|
|
34696
|
+
firstCrumb,
|
|
34697
|
+
collapsingCrumbs.length && (collapsed && !needCollapsed ? /* @__PURE__ */ jsx2(Button_default2, { size, variant: "plain", color: "neutral", onClick: () => setNeedCollapsed(true), children: "\u2022\u2022\u2022" }) : collapsingCrumbs),
|
|
34698
|
+
restCrumbs
|
|
34699
|
+
] }));
|
|
34700
|
+
}
|
|
34701
|
+
Breadcrumbs3.displayName = "Breadcrumbs";
|
|
34702
|
+
|
|
34684
34703
|
// src/components/Calendar/Calendar.tsx
|
|
34685
34704
|
import { Fragment as Fragment17, forwardRef as forwardRef82, useMemo as useMemo34 } from "react";
|
|
34686
34705
|
|
|
@@ -34688,11 +34707,11 @@ import { Fragment as Fragment17, forwardRef as forwardRef82, useMemo as useMemo3
|
|
|
34688
34707
|
var capitalize_default = capitalize;
|
|
34689
34708
|
|
|
34690
34709
|
// ../../node_modules/@mui/material/utils/createSvgIcon.js
|
|
34691
|
-
import * as
|
|
34710
|
+
import * as React172 from "react";
|
|
34692
34711
|
|
|
34693
34712
|
// ../../node_modules/@mui/material/SvgIcon/SvgIcon.js
|
|
34694
34713
|
var import_prop_types90 = __toESM(require_prop_types());
|
|
34695
|
-
import * as
|
|
34714
|
+
import * as React171 from "react";
|
|
34696
34715
|
|
|
34697
34716
|
// ../../node_modules/@mui/material/styles/createMixins.js
|
|
34698
34717
|
function createMixins(breakpoints, mixins) {
|
|
@@ -35477,7 +35496,7 @@ var SvgIconRoot2 = styled_default3("svg", {
|
|
|
35477
35496
|
}[ownerState.color]
|
|
35478
35497
|
};
|
|
35479
35498
|
});
|
|
35480
|
-
var SvgIcon3 = /* @__PURE__ */
|
|
35499
|
+
var SvgIcon3 = /* @__PURE__ */ React171.forwardRef(function SvgIcon4(inProps, ref) {
|
|
35481
35500
|
const props = useThemeProps3({
|
|
35482
35501
|
props: inProps,
|
|
35483
35502
|
name: "MuiSvgIcon"
|
|
@@ -35493,7 +35512,7 @@ var SvgIcon3 = /* @__PURE__ */ React170.forwardRef(function SvgIcon4(inProps, re
|
|
|
35493
35512
|
titleAccess,
|
|
35494
35513
|
viewBox = "0 0 24 24"
|
|
35495
35514
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded96);
|
|
35496
|
-
const hasSvgAsChild = /* @__PURE__ */
|
|
35515
|
+
const hasSvgAsChild = /* @__PURE__ */ React171.isValidElement(children) && children.type === "svg";
|
|
35497
35516
|
const ownerState = _extends({}, props, {
|
|
35498
35517
|
color: color2,
|
|
35499
35518
|
component,
|
|
@@ -35613,7 +35632,7 @@ function createSvgIcon2(path, displayName) {
|
|
|
35613
35632
|
Component.displayName = `${displayName}Icon`;
|
|
35614
35633
|
}
|
|
35615
35634
|
Component.muiName = SvgIcon_default2.muiName;
|
|
35616
|
-
return /* @__PURE__ */
|
|
35635
|
+
return /* @__PURE__ */ React172.memo(/* @__PURE__ */ React172.forwardRef(Component));
|
|
35617
35636
|
}
|
|
35618
35637
|
|
|
35619
35638
|
// ../../node_modules/@mui/icons-material/esm/ChevronLeft.js
|
|
@@ -35724,24 +35743,24 @@ IconButton3.displayName = "IconButton";
|
|
|
35724
35743
|
var IconButton_default2 = IconButton3;
|
|
35725
35744
|
|
|
35726
35745
|
// src/components/Calendar/hooks/use-calendar-props.ts
|
|
35727
|
-
import { useCallback as useCallback24, useMemo as useMemo33, useState as
|
|
35746
|
+
import { useCallback as useCallback24, useMemo as useMemo33, useState as useState24 } from "react";
|
|
35728
35747
|
var resolveView = (view, views) => {
|
|
35729
35748
|
return views.includes(view) ? view : views[0];
|
|
35730
35749
|
};
|
|
35731
35750
|
var useCalendarProps = (inProps) => {
|
|
35732
35751
|
var _a, _b;
|
|
35733
|
-
const [uncontrolledView, setUncontrolledView] =
|
|
35752
|
+
const [uncontrolledView, setUncontrolledView] = useState24(
|
|
35734
35753
|
() => resolveView(inProps.view || "day", inProps.views || ["day", "month"])
|
|
35735
35754
|
);
|
|
35736
|
-
const [uncontrolledValue, setUncontrolledValue] =
|
|
35737
|
-
const [viewMonth, setViewMonth] =
|
|
35755
|
+
const [uncontrolledValue, setUncontrolledValue] = useState24(inProps.defaultValue);
|
|
35756
|
+
const [viewMonth, setViewMonth] = useState24(() => {
|
|
35738
35757
|
var _a2, _b2;
|
|
35739
35758
|
const today = /* @__PURE__ */ new Date();
|
|
35740
35759
|
today.setDate(1);
|
|
35741
35760
|
today.setHours(0, 0, 0, 0);
|
|
35742
35761
|
return ((_a2 = inProps.value) == null ? void 0 : _a2[0]) || ((_b2 = inProps.defaultValue) == null ? void 0 : _b2[0]) || today;
|
|
35743
35762
|
});
|
|
35744
|
-
const [[page, direction], setPage] =
|
|
35763
|
+
const [[page, direction], setPage] = useState24([0, 0]);
|
|
35745
35764
|
const resolvedView = (_a = inProps.view) != null ? _a : uncontrolledView;
|
|
35746
35765
|
const paginate = (newDirection) => {
|
|
35747
35766
|
setPage([page + newDirection, newDirection]);
|
|
@@ -35803,10 +35822,10 @@ var useCalendarProps = (inProps) => {
|
|
|
35803
35822
|
};
|
|
35804
35823
|
|
|
35805
35824
|
// src/components/Calendar/hooks/use-calendar.ts
|
|
35806
|
-
import { useCallback as useCallback25, useState as
|
|
35825
|
+
import { useCallback as useCallback25, useState as useState25 } from "react";
|
|
35807
35826
|
var useCalendar = (ownerState) => {
|
|
35808
|
-
const [hoverDay, setHoverDay] =
|
|
35809
|
-
const [hoverMonth, setHoverMonth] =
|
|
35827
|
+
const [hoverDay, setHoverDay] = useState25(null);
|
|
35828
|
+
const [hoverMonth, setHoverMonth] = useState25(null);
|
|
35810
35829
|
return {
|
|
35811
35830
|
calendarTitle: ownerState.view === "month" ? getYearName(ownerState.viewMonth, ownerState.locale || "default") : getMonthName(ownerState.viewMonth, ownerState.locale || "default"),
|
|
35812
35831
|
onPrev: useCallback25(() => {
|
|
@@ -36043,12 +36062,12 @@ var CalendarHeader = styled_default2("div", {
|
|
|
36043
36062
|
var CalendarViewContainer = styled_default2("div", {
|
|
36044
36063
|
name: "Calendar",
|
|
36045
36064
|
slot: "viewContainer"
|
|
36046
|
-
})(({ theme,
|
|
36065
|
+
})(({ theme, calendarType }) => ({
|
|
36047
36066
|
paddingLeft: theme.spacing(1),
|
|
36048
36067
|
paddingRight: theme.spacing(1),
|
|
36049
36068
|
position: "relative",
|
|
36050
36069
|
overflow: "hidden",
|
|
36051
|
-
minHeight:
|
|
36070
|
+
minHeight: calendarType === "datePicker" ? "250px" : "unset"
|
|
36052
36071
|
}));
|
|
36053
36072
|
var CalendarViewTable = styled_default2(motion9.table, {
|
|
36054
36073
|
name: "Calendar",
|
|
@@ -36234,7 +36253,7 @@ var PickerDays = (props) => {
|
|
|
36234
36253
|
() => getWeekdayNames(ownerState.locale || "default"),
|
|
36235
36254
|
[ownerState.locale]
|
|
36236
36255
|
);
|
|
36237
|
-
return /* @__PURE__ */ jsx2(CalendarViewContainer, {
|
|
36256
|
+
return /* @__PURE__ */ jsx2(CalendarViewContainer, { calendarType: "datePicker", children: /* @__PURE__ */ jsx2(AnimatePresence, { initial: false, custom: ownerState.direction, children: /* @__PURE__ */ jsxs2(
|
|
36238
36257
|
CalendarViewTable,
|
|
36239
36258
|
{
|
|
36240
36259
|
custom: ownerState.direction,
|
|
@@ -36301,6 +36320,7 @@ var PickerDays = (props) => {
|
|
|
36301
36320
|
) }) });
|
|
36302
36321
|
};
|
|
36303
36322
|
var PickerMonths = (props) => {
|
|
36323
|
+
var _a;
|
|
36304
36324
|
const { ownerState } = props;
|
|
36305
36325
|
const { getPickerMonthProps, getMonthCellProps } = useCalendar(ownerState);
|
|
36306
36326
|
const chunkedMonths = Array.from({ length: 12 }, (_4, i) => i).reduce(
|
|
@@ -36313,7 +36333,8 @@ var PickerMonths = (props) => {
|
|
|
36313
36333
|
},
|
|
36314
36334
|
[[]]
|
|
36315
36335
|
);
|
|
36316
|
-
|
|
36336
|
+
const isMonthRangeSelection = !((_a = ownerState.views) == null ? void 0 : _a.find((view) => view === "day")) && ownerState.rangeSelection;
|
|
36337
|
+
return /* @__PURE__ */ jsx2(CalendarViewContainer, { calendarType: isMonthRangeSelection ? "monthPicker" : "datePicker", children: /* @__PURE__ */ jsx2(AnimatePresence, { initial: false, custom: ownerState.direction, children: /* @__PURE__ */ jsx2(
|
|
36317
36338
|
CalendarViewTable,
|
|
36318
36339
|
{
|
|
36319
36340
|
custom: ownerState.direction,
|
|
@@ -36329,12 +36350,12 @@ var PickerMonths = (props) => {
|
|
|
36329
36350
|
dragConstraints: { left: 0, right: 0 },
|
|
36330
36351
|
dragElastic: 1,
|
|
36331
36352
|
onDragEnd: (e, { offset: offset2, velocity }) => {
|
|
36332
|
-
var
|
|
36353
|
+
var _a2, _b;
|
|
36333
36354
|
const swipe = swipePower(offset2.x, velocity.x);
|
|
36334
36355
|
if (swipe < -swipeConfidenceThreshold) {
|
|
36335
36356
|
const date = new Date(ownerState.viewMonth || /* @__PURE__ */ new Date());
|
|
36336
36357
|
date.setMonth(date.getMonth() + 1);
|
|
36337
|
-
(
|
|
36358
|
+
(_a2 = ownerState.onMonthChange) == null ? void 0 : _a2.call(ownerState, date);
|
|
36338
36359
|
} else if (swipe > swipeConfidenceThreshold) {
|
|
36339
36360
|
const date = new Date(ownerState.viewMonth || /* @__PURE__ */ new Date());
|
|
36340
36361
|
date.setMonth(date.getMonth() - 1);
|
|
@@ -36473,7 +36494,7 @@ import {
|
|
|
36473
36494
|
useEffect as useEffect36,
|
|
36474
36495
|
useMemo as useMemo35,
|
|
36475
36496
|
useRef as useRef43,
|
|
36476
|
-
useState as
|
|
36497
|
+
useState as useState26
|
|
36477
36498
|
} from "react";
|
|
36478
36499
|
|
|
36479
36500
|
// src/components/Sheet/Sheet.tsx
|
|
@@ -36578,6 +36599,21 @@ Stack2.displayName = "Stack";
|
|
|
36578
36599
|
var Stack_default2 = Stack2;
|
|
36579
36600
|
|
|
36580
36601
|
// src/components/DataTable/DataTable.tsx
|
|
36602
|
+
var OverlayWrapper = styled_default2("tr", {
|
|
36603
|
+
name: "DataTable",
|
|
36604
|
+
slot: "overlayWrapper"
|
|
36605
|
+
})({
|
|
36606
|
+
position: "sticky",
|
|
36607
|
+
top: `calc(var(--unstable_TableCell-height, 32px))`,
|
|
36608
|
+
left: 0,
|
|
36609
|
+
right: 0,
|
|
36610
|
+
zIndex: 1,
|
|
36611
|
+
"& > td": {
|
|
36612
|
+
height: 0,
|
|
36613
|
+
padding: 0,
|
|
36614
|
+
border: "none !important"
|
|
36615
|
+
}
|
|
36616
|
+
});
|
|
36581
36617
|
var numberFormatter = (value) => "Intl" in window ? new Intl.NumberFormat().format(value) : value;
|
|
36582
36618
|
function TablePagination(props) {
|
|
36583
36619
|
const {
|
|
@@ -36749,7 +36785,7 @@ function useDataTableRenderer({
|
|
|
36749
36785
|
selectionModel = [],
|
|
36750
36786
|
onSelectionModelChange
|
|
36751
36787
|
}) {
|
|
36752
|
-
const [page, setPage] =
|
|
36788
|
+
const [page, setPage] = useState26((paginationModel == null ? void 0 : paginationModel.page) || 1);
|
|
36753
36789
|
const pageSize2 = (paginationModel == null ? void 0 : paginationModel.pageSize) || 20;
|
|
36754
36790
|
const selectedModelSet = useMemo35(
|
|
36755
36791
|
() => new Set(selectionModel),
|
|
@@ -36845,11 +36881,14 @@ function DataTable(props) {
|
|
|
36845
36881
|
rowCount: _4,
|
|
36846
36882
|
columns: __,
|
|
36847
36883
|
onPaginationModelChange: ___,
|
|
36884
|
+
paginationMode: ____,
|
|
36848
36885
|
paginationModel: paginationModel,
|
|
36886
|
+
loading,
|
|
36849
36887
|
slots: {
|
|
36850
36888
|
checkbox: RenderCheckbox = Checkbox_default2,
|
|
36851
36889
|
toolbar: Toolbar,
|
|
36852
|
-
footer: Footer
|
|
36890
|
+
footer: Footer,
|
|
36891
|
+
loadingOverlay: LoadingOverlay = () => /* @__PURE__ */ jsx2(LinearProgress_default, {})
|
|
36853
36892
|
} = {},
|
|
36854
36893
|
slotProps: {
|
|
36855
36894
|
checkbox: checkboxProps = {},
|
|
@@ -36867,7 +36906,10 @@ function DataTable(props) {
|
|
|
36867
36906
|
// columns is used in useDataTableRenderer
|
|
36868
36907
|
"onPaginationModelChange",
|
|
36869
36908
|
// onPaginationModelChange is used in useDataTableRenderer
|
|
36909
|
+
"paginationMode",
|
|
36910
|
+
// paginationMode is used in useDataTableRenderer
|
|
36870
36911
|
"paginationModel",
|
|
36912
|
+
"loading",
|
|
36871
36913
|
"slots",
|
|
36872
36914
|
"slotProps"
|
|
36873
36915
|
]);
|
|
@@ -36975,50 +37017,65 @@ function DataTable(props) {
|
|
|
36975
37017
|
c.field
|
|
36976
37018
|
))
|
|
36977
37019
|
] }) }),
|
|
36978
|
-
/* @__PURE__ */
|
|
36979
|
-
|
|
36980
|
-
|
|
36981
|
-
"tr",
|
|
37020
|
+
/* @__PURE__ */ jsxs2("tbody", { children: [
|
|
37021
|
+
/* @__PURE__ */ jsx2(OverlayWrapper, { children: !!loading && /* @__PURE__ */ jsx2("td", { children: /* @__PURE__ */ jsx2(
|
|
37022
|
+
Box_default2,
|
|
36982
37023
|
{
|
|
36983
|
-
|
|
36984
|
-
|
|
36985
|
-
|
|
36986
|
-
|
|
36987
|
-
|
|
36988
|
-
|
|
36989
|
-
|
|
36990
|
-
|
|
36991
|
-
|
|
36992
|
-
|
|
36993
|
-
|
|
36994
|
-
|
|
36995
|
-
|
|
36996
|
-
|
|
36997
|
-
|
|
36998
|
-
|
|
36999
|
-
|
|
37000
|
-
|
|
37001
|
-
|
|
37002
|
-
|
|
37003
|
-
|
|
37004
|
-
|
|
37005
|
-
var _a2, _b;
|
|
37006
|
-
return /* @__PURE__ */ jsx2(
|
|
37007
|
-
"td",
|
|
37024
|
+
sx: {
|
|
37025
|
+
position: "absolute",
|
|
37026
|
+
top: 0,
|
|
37027
|
+
left: 0,
|
|
37028
|
+
right: 0
|
|
37029
|
+
},
|
|
37030
|
+
children: /* @__PURE__ */ jsx2(LoadingOverlay, {})
|
|
37031
|
+
}
|
|
37032
|
+
) }) }),
|
|
37033
|
+
/* @__PURE__ */ jsx2(OverlayWrapper, {}),
|
|
37034
|
+
dataInPage.map((row, rowIndex) => {
|
|
37035
|
+
const rowId = `${rowIndex + (page - 1) * pageSize2}`;
|
|
37036
|
+
return /* @__PURE__ */ jsxs2(
|
|
37037
|
+
"tr",
|
|
37038
|
+
{
|
|
37039
|
+
role: checkboxSelection ? "checkbox" : void 0,
|
|
37040
|
+
tabIndex: checkboxSelection ? -1 : void 0,
|
|
37041
|
+
onClick: checkboxSelection ? (e) => onCheckboxChange(e, rowId) : void 0,
|
|
37042
|
+
"aria-checked": checkboxSelection ? isSelectedRow(rowId) : void 0,
|
|
37043
|
+
children: [
|
|
37044
|
+
checkboxSelection && /* @__PURE__ */ jsx2(
|
|
37045
|
+
"th",
|
|
37008
37046
|
{
|
|
37047
|
+
scope: "row",
|
|
37009
37048
|
style: {
|
|
37010
|
-
textAlign:
|
|
37049
|
+
textAlign: "center"
|
|
37011
37050
|
},
|
|
37012
|
-
children:
|
|
37013
|
-
|
|
37014
|
-
|
|
37015
|
-
|
|
37016
|
-
|
|
37017
|
-
|
|
37018
|
-
|
|
37019
|
-
|
|
37020
|
-
|
|
37021
|
-
|
|
37051
|
+
children: /* @__PURE__ */ jsx2(
|
|
37052
|
+
RenderCheckbox,
|
|
37053
|
+
__spreadValues({
|
|
37054
|
+
onChange: (e) => onCheckboxChange(e, rowId),
|
|
37055
|
+
checked: isSelectedRow(rowId)
|
|
37056
|
+
}, checkboxProps)
|
|
37057
|
+
)
|
|
37058
|
+
}
|
|
37059
|
+
),
|
|
37060
|
+
columns.map((column2) => {
|
|
37061
|
+
var _a2, _b;
|
|
37062
|
+
return /* @__PURE__ */ jsx2(
|
|
37063
|
+
"td",
|
|
37064
|
+
{
|
|
37065
|
+
style: {
|
|
37066
|
+
textAlign: column2.type === "number" ? "end" : "start"
|
|
37067
|
+
},
|
|
37068
|
+
children: (_b = (_a2 = column2.renderCell) == null ? void 0 : _a2.call(column2, { row, value: row[column2.field] })) != null ? _b : row[column2.field]
|
|
37069
|
+
},
|
|
37070
|
+
column2.field
|
|
37071
|
+
);
|
|
37072
|
+
})
|
|
37073
|
+
]
|
|
37074
|
+
},
|
|
37075
|
+
rowId
|
|
37076
|
+
);
|
|
37077
|
+
})
|
|
37078
|
+
] }),
|
|
37022
37079
|
Footer && /* @__PURE__ */ jsx2(Footer, {})
|
|
37023
37080
|
] }))
|
|
37024
37081
|
})
|
|
@@ -37036,7 +37093,7 @@ function DataTable(props) {
|
|
|
37036
37093
|
DataTable.displayName = "DataTable";
|
|
37037
37094
|
|
|
37038
37095
|
// src/components/DatePicker/DatePicker.tsx
|
|
37039
|
-
import
|
|
37096
|
+
import React179, { forwardRef as forwardRef84, useCallback as useCallback28, useState as useState28 } from "react";
|
|
37040
37097
|
|
|
37041
37098
|
// ../../node_modules/imask/esm/core/utils.js
|
|
37042
37099
|
function isString(str) {
|
|
@@ -40430,11 +40487,11 @@ try {
|
|
|
40430
40487
|
}
|
|
40431
40488
|
|
|
40432
40489
|
// ../../node_modules/react-imask/esm/input.js
|
|
40433
|
-
import
|
|
40490
|
+
import React178 from "react";
|
|
40434
40491
|
|
|
40435
40492
|
// ../../node_modules/react-imask/esm/mixin.js
|
|
40436
40493
|
var import_prop_types91 = __toESM(require_prop_types(), 1);
|
|
40437
|
-
import
|
|
40494
|
+
import React177 from "react";
|
|
40438
40495
|
var MASK_PROPS = {
|
|
40439
40496
|
// common
|
|
40440
40497
|
mask: import_prop_types91.default.oneOfType([import_prop_types91.default.array, import_prop_types91.default.func, import_prop_types91.default.string, import_prop_types91.default.instanceOf(RegExp), import_prop_types91.default.oneOf([Date, Number, IMask.Masked]), import_prop_types91.default.instanceOf(IMask.Masked)]),
|
|
@@ -40488,7 +40545,7 @@ var NON_MASK_OPTIONS_NAMES = ["value", "unmask", "onAccept", "onComplete", "inpu
|
|
|
40488
40545
|
var MASK_OPTIONS_NAMES = MASK_PROPS_NAMES.filter((pName) => NON_MASK_OPTIONS_NAMES.indexOf(pName) < 0);
|
|
40489
40546
|
function IMaskMixin(ComposedComponent) {
|
|
40490
40547
|
var _Class;
|
|
40491
|
-
const MaskedComponent = (_Class = class MaskedComponent extends
|
|
40548
|
+
const MaskedComponent = (_Class = class MaskedComponent extends React177.Component {
|
|
40492
40549
|
constructor(props) {
|
|
40493
40550
|
super(props);
|
|
40494
40551
|
this._inputRef = this._inputRef.bind(this);
|
|
@@ -40593,7 +40650,7 @@ function IMaskMixin(ComposedComponent) {
|
|
|
40593
40650
|
this.props.onComplete(this.maskValue, this.maskRef, e);
|
|
40594
40651
|
}
|
|
40595
40652
|
render() {
|
|
40596
|
-
return
|
|
40653
|
+
return React177.createElement(ComposedComponent, __spreadProps(__spreadValues({}, this._extractNonMaskProps(this.props)), {
|
|
40597
40654
|
inputRef: this._inputRef
|
|
40598
40655
|
}));
|
|
40599
40656
|
}
|
|
@@ -40601,7 +40658,7 @@ function IMaskMixin(ComposedComponent) {
|
|
|
40601
40658
|
const nestedComponentName = ComposedComponent.displayName || ComposedComponent.name || "Component";
|
|
40602
40659
|
MaskedComponent.displayName = "IMask(" + nestedComponentName + ")";
|
|
40603
40660
|
MaskedComponent.propTypes = MASK_PROPS;
|
|
40604
|
-
return
|
|
40661
|
+
return React177.forwardRef((props, ref) => React177.createElement(MaskedComponent, __spreadProps(__spreadValues({}, props), {
|
|
40605
40662
|
ref
|
|
40606
40663
|
})));
|
|
40607
40664
|
}
|
|
@@ -40613,17 +40670,17 @@ var IMaskInputClass = IMaskMixin((_ref) => {
|
|
|
40613
40670
|
} = _a, props = __objRest(_a, [
|
|
40614
40671
|
"inputRef"
|
|
40615
40672
|
]);
|
|
40616
|
-
return
|
|
40673
|
+
return React178.createElement("input", __spreadProps(__spreadValues({}, props), {
|
|
40617
40674
|
ref: inputRef
|
|
40618
40675
|
}));
|
|
40619
40676
|
});
|
|
40620
|
-
var IMaskInputFn = (props, ref) =>
|
|
40677
|
+
var IMaskInputFn = (props, ref) => React178.createElement(IMaskInputClass, __spreadProps(__spreadValues({}, props), {
|
|
40621
40678
|
ref
|
|
40622
40679
|
}));
|
|
40623
|
-
var IMaskInput =
|
|
40680
|
+
var IMaskInput = React178.forwardRef(IMaskInputFn);
|
|
40624
40681
|
|
|
40625
40682
|
// ../../node_modules/react-imask/esm/hook.js
|
|
40626
|
-
import { useRef as useRef44, useState as
|
|
40683
|
+
import { useRef as useRef44, useState as useState27, useCallback as useCallback27, useEffect as useEffect37 } from "react";
|
|
40627
40684
|
|
|
40628
40685
|
// ../../node_modules/react-imask/esm/index.js
|
|
40629
40686
|
import "react";
|
|
@@ -40688,7 +40745,7 @@ var formatValueString = (date) => {
|
|
|
40688
40745
|
month = "0" + month;
|
|
40689
40746
|
return [year, month, day].join("/");
|
|
40690
40747
|
};
|
|
40691
|
-
var TextMaskAdapter =
|
|
40748
|
+
var TextMaskAdapter = React179.forwardRef(
|
|
40692
40749
|
function TextMaskAdapter2(props, ref) {
|
|
40693
40750
|
const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
|
|
40694
40751
|
return /* @__PURE__ */ jsx2(
|
|
@@ -40736,8 +40793,8 @@ var TextMaskAdapter = React178.forwardRef(
|
|
|
40736
40793
|
var DatePicker = forwardRef84(
|
|
40737
40794
|
(props, ref) => {
|
|
40738
40795
|
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40739
|
-
const [value, setValue] =
|
|
40740
|
-
const [anchorEl, setAnchorEl] =
|
|
40796
|
+
const [value, setValue] = useState28(props.value || "");
|
|
40797
|
+
const [anchorEl, setAnchorEl] = useState28(null);
|
|
40741
40798
|
const open = Boolean(anchorEl);
|
|
40742
40799
|
const handleChange = useCallback28(
|
|
40743
40800
|
(event) => {
|
|
@@ -40838,7 +40895,7 @@ var DatePicker = forwardRef84(
|
|
|
40838
40895
|
DatePicker.displayName = "DatePicker";
|
|
40839
40896
|
|
|
40840
40897
|
// src/components/DateRangePicker/DateRangePicker.tsx
|
|
40841
|
-
import
|
|
40898
|
+
import React180, { forwardRef as forwardRef85, useCallback as useCallback29, useMemo as useMemo36, useState as useState29 } from "react";
|
|
40842
40899
|
var StyledPopper2 = styled_default2(Popper, {
|
|
40843
40900
|
name: "DateRangePicker",
|
|
40844
40901
|
slot: "popper"
|
|
@@ -40886,7 +40943,7 @@ var parseDate = (str) => {
|
|
|
40886
40943
|
)
|
|
40887
40944
|
];
|
|
40888
40945
|
};
|
|
40889
|
-
var TextMaskAdapter3 =
|
|
40946
|
+
var TextMaskAdapter3 = React180.forwardRef(
|
|
40890
40947
|
function TextMaskAdapter4(props, ref) {
|
|
40891
40948
|
const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
|
|
40892
40949
|
return /* @__PURE__ */ jsx2(
|
|
@@ -40927,8 +40984,8 @@ var TextMaskAdapter3 = React179.forwardRef(
|
|
|
40927
40984
|
var DateRangePicker = forwardRef85(
|
|
40928
40985
|
(props, ref) => {
|
|
40929
40986
|
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40930
|
-
const [value, setValue] =
|
|
40931
|
-
const [anchorEl, setAnchorEl] =
|
|
40987
|
+
const [value, setValue] = useState29(props.value || "");
|
|
40988
|
+
const [anchorEl, setAnchorEl] = useState29(null);
|
|
40932
40989
|
const open = Boolean(anchorEl);
|
|
40933
40990
|
const calendarValue = useMemo36(
|
|
40934
40991
|
() => value ? parseDate(value) : void 0,
|
|
@@ -41155,7 +41212,7 @@ var MenuItem3 = (props) => {
|
|
|
41155
41212
|
MenuItem3.displayName = "MenuItem";
|
|
41156
41213
|
|
|
41157
41214
|
// src/components/MonthRangePicker/MonthRangePicker.tsx
|
|
41158
|
-
import
|
|
41215
|
+
import React181, { forwardRef as forwardRef86, useCallback as useCallback30, useMemo as useMemo37, useState as useState30 } from "react";
|
|
41159
41216
|
var StyledPopper3 = styled_default2(Popper, {
|
|
41160
41217
|
name: "MonthRangePicker",
|
|
41161
41218
|
slot: "popper"
|
|
@@ -41198,7 +41255,7 @@ var parseDate2 = (str) => {
|
|
|
41198
41255
|
)
|
|
41199
41256
|
];
|
|
41200
41257
|
};
|
|
41201
|
-
var TextMaskAdapter5 =
|
|
41258
|
+
var TextMaskAdapter5 = React181.forwardRef(
|
|
41202
41259
|
function TextMaskAdapter6(props, ref) {
|
|
41203
41260
|
const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
|
|
41204
41261
|
return /* @__PURE__ */ jsx2(
|
|
@@ -41233,8 +41290,8 @@ var TextMaskAdapter5 = React180.forwardRef(
|
|
|
41233
41290
|
var MonthRangePicker = forwardRef86(
|
|
41234
41291
|
(props, ref) => {
|
|
41235
41292
|
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
41236
|
-
const [value, setValue] =
|
|
41237
|
-
const [anchorEl, setAnchorEl] =
|
|
41293
|
+
const [value, setValue] = useState30(props.value || "");
|
|
41294
|
+
const [anchorEl, setAnchorEl] = useState30(null);
|
|
41238
41295
|
const open = Boolean(anchorEl);
|
|
41239
41296
|
const calendarValue = useMemo37(
|
|
41240
41297
|
() => value ? parseDate2(value) : void 0,
|
|
@@ -41666,12 +41723,24 @@ var breadcrumbsPropertyControls = {
|
|
|
41666
41723
|
type: ControlType5.Array,
|
|
41667
41724
|
control: {
|
|
41668
41725
|
// NOTE: 일단 framer에서는 string만 받는다
|
|
41669
|
-
type: ControlType5.
|
|
41726
|
+
type: ControlType5.Object,
|
|
41727
|
+
controls: {
|
|
41728
|
+
title: {
|
|
41729
|
+
title: "Title",
|
|
41730
|
+
type: ControlType5.String,
|
|
41731
|
+
defaultValue: "Home"
|
|
41732
|
+
},
|
|
41733
|
+
href: {
|
|
41734
|
+
title: "Href",
|
|
41735
|
+
type: ControlType5.String,
|
|
41736
|
+
defaultValue: ""
|
|
41737
|
+
}
|
|
41738
|
+
}
|
|
41670
41739
|
},
|
|
41671
41740
|
defaultValue: []
|
|
41672
41741
|
},
|
|
41673
|
-
|
|
41674
|
-
title: "Separator",
|
|
41742
|
+
separatorIcon: {
|
|
41743
|
+
title: "Separator Icon",
|
|
41675
41744
|
type: ControlType5.ComponentInstance
|
|
41676
41745
|
},
|
|
41677
41746
|
size: {
|
|
@@ -41679,6 +41748,11 @@ var breadcrumbsPropertyControls = {
|
|
|
41679
41748
|
type: ControlType5.Enum,
|
|
41680
41749
|
options: ["sm", "md", "lg"],
|
|
41681
41750
|
defaultValue: "md"
|
|
41751
|
+
},
|
|
41752
|
+
collapsed: {
|
|
41753
|
+
title: "Collapsed",
|
|
41754
|
+
type: ControlType5.Boolean,
|
|
41755
|
+
defaultValue: false
|
|
41682
41756
|
}
|
|
41683
41757
|
};
|
|
41684
41758
|
|
|
@@ -41911,6 +41985,10 @@ var dataTablePropertyControls = {
|
|
|
41911
41985
|
type: ControlType10.Boolean,
|
|
41912
41986
|
defaultValue: false
|
|
41913
41987
|
},
|
|
41988
|
+
loading: {
|
|
41989
|
+
type: ControlType10.Boolean,
|
|
41990
|
+
defaultValue: false
|
|
41991
|
+
},
|
|
41914
41992
|
onPaginationModelChange: {
|
|
41915
41993
|
type: ControlType10.EventHandler
|
|
41916
41994
|
},
|
|
@@ -41956,11 +42034,11 @@ var datePickerPropertyControls = {
|
|
|
41956
42034
|
},
|
|
41957
42035
|
minDate: {
|
|
41958
42036
|
title: "Minimum Date",
|
|
41959
|
-
type: ControlType11.
|
|
42037
|
+
type: ControlType11.String
|
|
41960
42038
|
},
|
|
41961
42039
|
maxDate: {
|
|
41962
42040
|
title: "Maximum Date",
|
|
41963
|
-
type: ControlType11.
|
|
42041
|
+
type: ControlType11.String
|
|
41964
42042
|
},
|
|
41965
42043
|
disableFuture: {
|
|
41966
42044
|
title: "Disable Future",
|
|
@@ -42008,11 +42086,11 @@ var dateRangePickerPropertyControls = {
|
|
|
42008
42086
|
},
|
|
42009
42087
|
minDate: {
|
|
42010
42088
|
title: "Minimum Date",
|
|
42011
|
-
type: ControlType12.
|
|
42089
|
+
type: ControlType12.String
|
|
42012
42090
|
},
|
|
42013
42091
|
maxDate: {
|
|
42014
42092
|
title: "Maximum Date",
|
|
42015
|
-
type: ControlType12.
|
|
42093
|
+
type: ControlType12.String
|
|
42016
42094
|
},
|
|
42017
42095
|
disableFuture: {
|
|
42018
42096
|
title: "Disable Future",
|
|
@@ -42576,8 +42654,9 @@ var typographyPropertyControls = {
|
|
|
42576
42654
|
textAlign: {
|
|
42577
42655
|
title: "Text Align",
|
|
42578
42656
|
type: ControlType27.Enum,
|
|
42579
|
-
options: ["start", "center", "end"],
|
|
42580
|
-
|
|
42657
|
+
options: [void 0, "start", "center", "end"],
|
|
42658
|
+
optionTitles: ["None", "Start", "Center", "End"],
|
|
42659
|
+
defaultValue: void 0
|
|
42581
42660
|
},
|
|
42582
42661
|
level: {
|
|
42583
42662
|
title: "Level",
|
|
@@ -42640,7 +42719,7 @@ export {
|
|
|
42640
42719
|
AvatarGroup_default as AvatarGroup,
|
|
42641
42720
|
Badge_default as Badge,
|
|
42642
42721
|
Box2 as Box,
|
|
42643
|
-
|
|
42722
|
+
Breadcrumbs3 as Breadcrumbs,
|
|
42644
42723
|
Button3 as Button,
|
|
42645
42724
|
Calendar,
|
|
42646
42725
|
Card_default as Card,
|