@ceed/ads 1.37.0-next.1 → 1.37.1
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/Alert/Alert.d.ts +1 -1
- package/dist/components/FilterableCheckboxGroup/FilterableCheckboxGroup.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/ProfileMenu/ProfileMenu.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +9 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -20
- package/dist/components/data-display/Avatar.md +1 -1
- package/dist/components/data-display/Badge.md +1 -1
- package/dist/components/data-display/Chip.md +1 -1
- package/dist/components/data-display/Table.md +1 -1
- package/dist/components/data-display/Tooltip.md +1 -1
- package/dist/components/feedback/Alert.md +1 -1
- package/dist/components/feedback/CircularProgress.md +2 -2
- package/dist/components/feedback/Modal.md +1 -1
- package/dist/components/inputs/Autocomplete.md +1 -1
- package/dist/components/inputs/Button.md +2 -2
- package/dist/components/inputs/ButtonGroup.md +2 -2
- package/dist/components/inputs/Checkbox.md +2 -2
- package/dist/components/inputs/CurrencyInput.md +2 -2
- package/dist/components/inputs/FilterableCheckboxGroup.md +1 -1
- package/dist/components/inputs/FormControl.md +1 -1
- package/dist/components/inputs/IconButton.md +2 -2
- package/dist/components/inputs/Input.md +2 -2
- package/dist/components/inputs/PercentageInput.md +2 -2
- package/dist/components/inputs/RadioButton.md +2 -2
- package/dist/components/inputs/RadioList.md +2 -2
- package/dist/components/inputs/Select.md +76 -21
- package/dist/components/inputs/Slider.md +2 -2
- package/dist/components/inputs/Switch.md +1 -1
- package/dist/components/inputs/Textarea.md +2 -2
- package/dist/components/inputs/Uploader/Uploader.md +1 -1
- package/dist/components/navigation/IconMenuButton.md +1 -1
- package/dist/components/navigation/Menu.md +1 -1
- package/dist/components/navigation/MenuButton.md +1 -1
- package/dist/components/navigation/Pagination.md +1 -1
- package/dist/components/navigation/ProfileMenu.md +2 -2
- package/dist/components/navigation/Tabs.md +1 -1
- package/dist/components/surfaces/Accordions.md +1 -1
- package/dist/components/surfaces/Card.md +2 -2
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +248 -350
- package/dist/index.js +57 -159
- package/framer/index.js +1 -1
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
useTheme as useTheme2,
|
|
4
4
|
useColorScheme,
|
|
5
|
-
useThemeProps as
|
|
5
|
+
useThemeProps as useThemeProps10,
|
|
6
6
|
ButtonGroup,
|
|
7
7
|
alertClasses,
|
|
8
8
|
boxClasses,
|
|
@@ -136,7 +136,7 @@ Accordions.displayName = "Accordions";
|
|
|
136
136
|
|
|
137
137
|
// src/components/Alert/Alert.tsx
|
|
138
138
|
import React3 from "react";
|
|
139
|
-
import { Alert as JoyAlert, styled
|
|
139
|
+
import { Alert as JoyAlert, styled } from "@mui/joy";
|
|
140
140
|
import { motion as motion3 } from "framer-motion";
|
|
141
141
|
|
|
142
142
|
// src/components/Typography/Typography.tsx
|
|
@@ -173,9 +173,8 @@ var contentLevelMapping = {
|
|
|
173
173
|
md: "body-sm",
|
|
174
174
|
lg: "body-md"
|
|
175
175
|
};
|
|
176
|
-
function Alert(
|
|
177
|
-
const
|
|
178
|
-
const { title, content, actions, color = "primary", size = "sm", ...innerProps } = props;
|
|
176
|
+
function Alert(props) {
|
|
177
|
+
const { title, content, actions, color = "primary", size = "md", ...innerProps } = props;
|
|
179
178
|
const invertedColors = props.invertedColors || props.variant === "solid";
|
|
180
179
|
return /* @__PURE__ */ React3.createElement(MotionAlert, { ...innerProps, color, endDecorator: actions, invertedColors, size }, /* @__PURE__ */ React3.createElement(Stack_default, null, title && /* @__PURE__ */ React3.createElement(Typography_default, { level: titleLevelMapping[size], fontWeight: "bold", color }, title), /* @__PURE__ */ React3.createElement(Typography_default, { level: contentLevelMapping[size], fontWeight: 500, color }, content)));
|
|
181
180
|
}
|
|
@@ -574,7 +573,7 @@ var Autocomplete_default = Autocomplete;
|
|
|
574
573
|
|
|
575
574
|
// src/components/Avatar/Avatar.tsx
|
|
576
575
|
import React6, { forwardRef as forwardRef2, useMemo as useMemo2 } from "react";
|
|
577
|
-
import { Avatar as JoyAvatar, AvatarGroup, styled as styled4, useThemeProps
|
|
576
|
+
import { Avatar as JoyAvatar, AvatarGroup, styled as styled4, useThemeProps } from "@mui/joy";
|
|
578
577
|
var StyledAvatar = styled4(JoyAvatar, {
|
|
579
578
|
name: "Avatar",
|
|
580
579
|
slot: "Root",
|
|
@@ -596,7 +595,7 @@ var defaultGetInitial = (name) => {
|
|
|
596
595
|
}
|
|
597
596
|
};
|
|
598
597
|
var Avatar = forwardRef2(function Avatar2(inProps, ref) {
|
|
599
|
-
const props =
|
|
598
|
+
const props = useThemeProps({
|
|
600
599
|
props: inProps,
|
|
601
600
|
name: "Avatar"
|
|
602
601
|
});
|
|
@@ -816,7 +815,7 @@ var isSameMonth = (date1, date2) => {
|
|
|
816
815
|
|
|
817
816
|
// src/components/Calendar/hooks/use-calendar-props.ts
|
|
818
817
|
import { useCallback as useCallback4, useMemo as useMemo4, useState as useState3 } from "react";
|
|
819
|
-
import { useThemeProps as
|
|
818
|
+
import { useThemeProps as useThemeProps2 } from "@mui/joy";
|
|
820
819
|
var resolveView = (view, views) => {
|
|
821
820
|
return views.includes(view) ? view : views[0];
|
|
822
821
|
};
|
|
@@ -865,7 +864,7 @@ var useCalendarProps = (inProps) => {
|
|
|
865
864
|
},
|
|
866
865
|
[resolvedView, inProps, viewMonth, paginate]
|
|
867
866
|
);
|
|
868
|
-
const props =
|
|
867
|
+
const props = useThemeProps2({
|
|
869
868
|
props: {
|
|
870
869
|
locale: "default",
|
|
871
870
|
views: ["day", "month"],
|
|
@@ -1917,7 +1916,7 @@ Input.displayName = "Input";
|
|
|
1917
1916
|
var Input_default = Input;
|
|
1918
1917
|
|
|
1919
1918
|
// src/components/CurrencyInput/CurrencyInput.tsx
|
|
1920
|
-
import { styled as styled7, useThemeProps as
|
|
1919
|
+
import { styled as styled7, useThemeProps as useThemeProps3 } from "@mui/joy";
|
|
1921
1920
|
|
|
1922
1921
|
// src/components/CurrencyInput/hooks/use-currency-setting.ts
|
|
1923
1922
|
var CURRENCY_DECIMAL_MAP = {
|
|
@@ -2103,7 +2102,7 @@ var CurrencyInputRoot = styled7(Input_default, {
|
|
|
2103
2102
|
overridesResolver: (props, styles) => styles.root
|
|
2104
2103
|
})({});
|
|
2105
2104
|
var CurrencyInput = React17.forwardRef(function CurrencyInput2(inProps, ref) {
|
|
2106
|
-
const props =
|
|
2105
|
+
const props = useThemeProps3({ props: inProps, name: "CurrencyInput" });
|
|
2107
2106
|
const {
|
|
2108
2107
|
currency = "USD",
|
|
2109
2108
|
name,
|
|
@@ -2631,7 +2630,7 @@ import { AnimatePresence as AnimatePresence2 } from "framer-motion";
|
|
|
2631
2630
|
import React19, { forwardRef as forwardRef6, useCallback as useCallback9, useEffect as useEffect4, useImperativeHandle, useRef as useRef4, useState as useState8 } from "react";
|
|
2632
2631
|
import { IMaskInput, IMask } from "react-imask";
|
|
2633
2632
|
import CalendarTodayIcon from "@mui/icons-material/CalendarToday";
|
|
2634
|
-
import { styled as styled10, useThemeProps as
|
|
2633
|
+
import { styled as styled10, useThemeProps as useThemeProps4 } from "@mui/joy";
|
|
2635
2634
|
import { FocusTrap, ClickAwayListener, Popper as Popper2 } from "@mui/base";
|
|
2636
2635
|
|
|
2637
2636
|
// src/components/Sheet/Sheet.tsx
|
|
@@ -2819,7 +2818,7 @@ var TextMaskAdapter3 = React19.forwardRef(function TextMaskAdapter4(props, ref)
|
|
|
2819
2818
|
);
|
|
2820
2819
|
});
|
|
2821
2820
|
var DatePicker = forwardRef6((inProps, ref) => {
|
|
2822
|
-
const props =
|
|
2821
|
+
const props = useThemeProps4({ props: inProps, name: "DatePicker" });
|
|
2823
2822
|
const {
|
|
2824
2823
|
onChange,
|
|
2825
2824
|
disabled,
|
|
@@ -3166,11 +3165,22 @@ function Select(props) {
|
|
|
3166
3165
|
disabled,
|
|
3167
3166
|
required,
|
|
3168
3167
|
onChange,
|
|
3168
|
+
// NOTE: id 를 FormControl 에 넘겨 htmlFor/labelId(`${id}-label`)를 결정론적으로 만든다.
|
|
3169
|
+
// Joy FormControl context 가 FormLabel(id) ↔ Select button(aria-labelledby)을 자동 결선하므로,
|
|
3170
|
+
// 외부에서 useId 로 라벨/버튼 ARIA 를 수동 결합할 필요가 없다.
|
|
3171
|
+
id,
|
|
3172
|
+
slotProps,
|
|
3169
3173
|
// NOTE: 스타일 관련된 props는 최상위 엘리먼트에 적용한다.
|
|
3170
3174
|
sx,
|
|
3171
3175
|
className,
|
|
3172
3176
|
...innerProps
|
|
3173
3177
|
} = props;
|
|
3178
|
+
const {
|
|
3179
|
+
formControl: formControlProps,
|
|
3180
|
+
formLabel: formLabelProps,
|
|
3181
|
+
formHelperText: formHelperTextProps,
|
|
3182
|
+
...joySlotProps
|
|
3183
|
+
} = slotProps ?? {};
|
|
3174
3184
|
const options = useMemo8(
|
|
3175
3185
|
() => props.options.map((option) => {
|
|
3176
3186
|
if (option.hasOwnProperty("value") && option.hasOwnProperty("label")) {
|
|
@@ -3211,6 +3221,7 @@ function Select(props) {
|
|
|
3211
3221
|
disabled,
|
|
3212
3222
|
size,
|
|
3213
3223
|
color: error ? "danger" : color,
|
|
3224
|
+
slotProps: joySlotProps,
|
|
3214
3225
|
onChange: handleChange,
|
|
3215
3226
|
renderValue: (selected) => {
|
|
3216
3227
|
if (!selected) return null;
|
|
@@ -3230,12 +3241,14 @@ function Select(props) {
|
|
|
3230
3241
|
size,
|
|
3231
3242
|
color,
|
|
3232
3243
|
error,
|
|
3244
|
+
id,
|
|
3233
3245
|
sx,
|
|
3234
|
-
className
|
|
3246
|
+
className,
|
|
3247
|
+
...formControlProps
|
|
3235
3248
|
},
|
|
3236
|
-
label && /* @__PURE__ */ React21.createElement(FormLabel_default,
|
|
3249
|
+
label && /* @__PURE__ */ React21.createElement(FormLabel_default, { ...formLabelProps }, label),
|
|
3237
3250
|
select,
|
|
3238
|
-
helperText && /* @__PURE__ */ React21.createElement(FormHelperText_default,
|
|
3251
|
+
helperText && /* @__PURE__ */ React21.createElement(FormHelperText_default, { ...formHelperTextProps }, helperText)
|
|
3239
3252
|
);
|
|
3240
3253
|
}
|
|
3241
3254
|
Select.displayName = "Select";
|
|
@@ -4199,7 +4212,7 @@ import PreviousIcon from "@mui/icons-material/ChevronLeftRounded";
|
|
|
4199
4212
|
import NextIcon from "@mui/icons-material/ChevronRightRounded";
|
|
4200
4213
|
import FirstPageIcon from "@mui/icons-material/FirstPageRounded";
|
|
4201
4214
|
import LastPageIcon from "@mui/icons-material/LastPageRounded";
|
|
4202
|
-
import { styled as styled13
|
|
4215
|
+
import { styled as styled13 } from "@mui/joy";
|
|
4203
4216
|
var PaginationButton = styled13(Button_default, {
|
|
4204
4217
|
name: "Pagination",
|
|
4205
4218
|
slot: "button"
|
|
@@ -4250,14 +4263,13 @@ var PaginationContainer = styled13(Stack_default, {
|
|
|
4250
4263
|
lg: theme.spacing(2)
|
|
4251
4264
|
}[size]
|
|
4252
4265
|
}));
|
|
4253
|
-
function Pagination(
|
|
4254
|
-
const props = useThemeProps6({ props: inProps, name: "Pagination" });
|
|
4266
|
+
function Pagination(props) {
|
|
4255
4267
|
const {
|
|
4256
4268
|
paginationModel: _paginationModel,
|
|
4257
4269
|
defaultPaginationModel = { page: 1, pageSize: 25 },
|
|
4258
4270
|
onPageChange,
|
|
4259
4271
|
rowCount,
|
|
4260
|
-
size = "
|
|
4272
|
+
size = "md",
|
|
4261
4273
|
variant = "standard",
|
|
4262
4274
|
...innerProps
|
|
4263
4275
|
} = props;
|
|
@@ -4912,7 +4924,7 @@ DataTable.displayName = "DataTable";
|
|
|
4912
4924
|
import React27, { forwardRef as forwardRef8, useCallback as useCallback14, useEffect as useEffect8, useImperativeHandle as useImperativeHandle3, useMemo as useMemo12, useRef as useRef8, useState as useState11 } from "react";
|
|
4913
4925
|
import { IMaskInput as IMaskInput2, IMask as IMask2 } from "react-imask";
|
|
4914
4926
|
import CalendarTodayIcon2 from "@mui/icons-material/CalendarToday";
|
|
4915
|
-
import { styled as styled14, useThemeProps as
|
|
4927
|
+
import { styled as styled14, useThemeProps as useThemeProps5 } from "@mui/joy";
|
|
4916
4928
|
import { FocusTrap as FocusTrap2, ClickAwayListener as ClickAwayListener2, Popper as Popper3 } from "@mui/base";
|
|
4917
4929
|
var hasAlphabeticMonth2 = (format) => /MMMM|MMM/.test(format);
|
|
4918
4930
|
var CalendarButton2 = styled14(IconButton_default, {
|
|
@@ -5088,7 +5100,7 @@ var TextMaskAdapter5 = React27.forwardRef(function TextMaskAdapter6(props, ref)
|
|
|
5088
5100
|
);
|
|
5089
5101
|
});
|
|
5090
5102
|
var DateRangePicker = forwardRef8((inProps, ref) => {
|
|
5091
|
-
const props =
|
|
5103
|
+
const props = useThemeProps5({ props: inProps, name: "DateRangePicker" });
|
|
5092
5104
|
const {
|
|
5093
5105
|
onChange,
|
|
5094
5106
|
disabled,
|
|
@@ -5462,7 +5474,6 @@ var InsetDrawer = styled19(JoyDrawer)(({ theme }) => ({
|
|
|
5462
5474
|
// src/components/FilterableCheckboxGroup/FilterableCheckboxGroup.tsx
|
|
5463
5475
|
import React31, { useCallback as useCallback15, useEffect as useEffect9, useMemo as useMemo13, useRef as useRef9, useState as useState12 } from "react";
|
|
5464
5476
|
import SearchIcon from "@mui/icons-material/Search";
|
|
5465
|
-
import { useThemeProps as useThemeProps8 } from "@mui/joy";
|
|
5466
5477
|
import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
|
|
5467
5478
|
function LabelWithTooltip(props) {
|
|
5468
5479
|
const { label, size } = props;
|
|
@@ -5495,15 +5506,14 @@ function LabelWithTooltip(props) {
|
|
|
5495
5506
|
}
|
|
5496
5507
|
return labelContent;
|
|
5497
5508
|
}
|
|
5498
|
-
function FilterableCheckboxGroup(
|
|
5499
|
-
const props = useThemeProps8({ props: inProps, name: "FilterableCheckboxGroup" });
|
|
5509
|
+
function FilterableCheckboxGroup(props) {
|
|
5500
5510
|
const {
|
|
5501
5511
|
value,
|
|
5502
5512
|
options,
|
|
5503
5513
|
label,
|
|
5504
5514
|
placeholder,
|
|
5505
5515
|
helperText,
|
|
5506
|
-
size = "
|
|
5516
|
+
size = "md",
|
|
5507
5517
|
required,
|
|
5508
5518
|
onChange,
|
|
5509
5519
|
maxHeight = 300,
|
|
@@ -5936,7 +5946,7 @@ import { Stack as Stack6 } from "@mui/joy";
|
|
|
5936
5946
|
import React36, { forwardRef as forwardRef9, useCallback as useCallback20, useEffect as useEffect11, useImperativeHandle as useImperativeHandle4, useMemo as useMemo15, useRef as useRef10, useState as useState14 } from "react";
|
|
5937
5947
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
5938
5948
|
import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
|
|
5939
|
-
import { styled as styled20, useThemeProps as
|
|
5949
|
+
import { styled as styled20, useThemeProps as useThemeProps6 } from "@mui/joy";
|
|
5940
5950
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
|
|
5941
5951
|
var hasAlphabeticMonth3 = (format) => /MMMM|MMM/.test(format);
|
|
5942
5952
|
var StyledPopper3 = styled20(Popper4, {
|
|
@@ -6025,7 +6035,7 @@ var TextMaskAdapter7 = React36.forwardRef(function TextMaskAdapter8(props, ref)
|
|
|
6025
6035
|
);
|
|
6026
6036
|
});
|
|
6027
6037
|
var MonthRangePicker = forwardRef9((inProps, ref) => {
|
|
6028
|
-
const props =
|
|
6038
|
+
const props = useThemeProps6({ props: inProps, name: "MonthRangePicker" });
|
|
6029
6039
|
const {
|
|
6030
6040
|
onChange,
|
|
6031
6041
|
disabled,
|
|
@@ -6380,7 +6390,7 @@ import { Stack as Stack9, Typography as Typography5 } from "@mui/joy";
|
|
|
6380
6390
|
// src/components/PercentageInput/PercentageInput.tsx
|
|
6381
6391
|
import React40, { useCallback as useCallback24, useMemo as useMemo17, useState as useState15 } from "react";
|
|
6382
6392
|
import { NumericFormat as NumericFormat2 } from "react-number-format";
|
|
6383
|
-
import { styled as styled21, useThemeProps as
|
|
6393
|
+
import { styled as styled21, useThemeProps as useThemeProps7 } from "@mui/joy";
|
|
6384
6394
|
var padDecimal = (value, decimalScale) => {
|
|
6385
6395
|
const [integer, decimal = ""] = `${value}`.split(".");
|
|
6386
6396
|
return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
|
|
@@ -6414,7 +6424,7 @@ var PercentageInputRoot = styled21(Input_default, {
|
|
|
6414
6424
|
})({});
|
|
6415
6425
|
var PercentageInput = React40.forwardRef(
|
|
6416
6426
|
function PercentageInput2(inProps, ref) {
|
|
6417
|
-
const props =
|
|
6427
|
+
const props = useThemeProps7({ props: inProps, name: "PercentageInput" });
|
|
6418
6428
|
const {
|
|
6419
6429
|
name,
|
|
6420
6430
|
onChange,
|
|
@@ -6701,7 +6711,7 @@ function FilterMenu(props) {
|
|
|
6701
6711
|
}
|
|
6702
6712
|
) : null;
|
|
6703
6713
|
}))),
|
|
6704
|
-
/* @__PURE__ */ React44.createElement(DialogActions, { sx: { justifyContent: "space-between" } }, useClear && filters?.length === 1 && /* @__PURE__ */ React44.createElement(Button2, { variant: "plain", color: "neutral", onClick: handleClear }, "Clear"), useReset && !useClear && /* @__PURE__ */ React44.createElement(Button2, { variant: "plain", color: "neutral", onClick: handleClear }, "Reset"), /* @__PURE__ */ React44.createElement(Button2, { variant: "solid", color: "primary", onClick: handleApply }, "Apply"))
|
|
6714
|
+
/* @__PURE__ */ React44.createElement(DialogActions, { sx: { justifyContent: "space-between" } }, useClear && filters?.length === 1 && /* @__PURE__ */ React44.createElement(Button2, { variant: "plain", color: "neutral", size: "md", onClick: handleClear }, "Clear"), useReset && !useClear && /* @__PURE__ */ React44.createElement(Button2, { variant: "plain", color: "neutral", size: "md", onClick: handleClear }, "Reset"), /* @__PURE__ */ React44.createElement(Button2, { variant: "solid", color: "primary", size: "md", onClick: handleApply }, "Apply"))
|
|
6705
6715
|
);
|
|
6706
6716
|
}
|
|
6707
6717
|
FilterMenu.displayName = "FilterMenu";
|
|
@@ -7154,7 +7164,14 @@ var Markdown = (props) => {
|
|
|
7154
7164
|
return /* @__PURE__ */ React47.createElement(Typography, { component: "div", color, textColor, level: defaultLevel, ...innerProps }, /* @__PURE__ */ React47.createElement(
|
|
7155
7165
|
Suspense,
|
|
7156
7166
|
{
|
|
7157
|
-
fallback:
|
|
7167
|
+
fallback: (
|
|
7168
|
+
// While in the fallback state, prevent browser auto-translation (e.g. Chrome/Google Translate)
|
|
7169
|
+
// from wrapping text nodes in <font> tags. Once the lazy react-markdown chunk arrives, React
|
|
7170
|
+
// swaps the fallback for the real content via insertBefore; if the browser has mutated the DOM
|
|
7171
|
+
// in the meantime, the reference node's parent changes and React throws a DOMException
|
|
7172
|
+
// ("Failed to execute 'insertBefore' on 'Node'"), crashing the subtree. (cf. facebook/react#11538)
|
|
7173
|
+
fallback || /* @__PURE__ */ React47.createElement(Typography, { translate: "no", className: "notranslate" }, /* @__PURE__ */ React47.createElement(Skeleton, null, content || ""))
|
|
7174
|
+
)
|
|
7158
7175
|
},
|
|
7159
7176
|
/* @__PURE__ */ React47.createElement(
|
|
7160
7177
|
LazyReactMarkdown,
|
|
@@ -7305,7 +7322,7 @@ MenuButton2.displayName = "MenuButton";
|
|
|
7305
7322
|
// src/components/MonthPicker/MonthPicker.tsx
|
|
7306
7323
|
import React49, { forwardRef as forwardRef10, useCallback as useCallback29, useEffect as useEffect15, useImperativeHandle as useImperativeHandle5, useRef as useRef12, useState as useState18 } from "react";
|
|
7307
7324
|
import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
|
|
7308
|
-
import { styled as styled23, useThemeProps as
|
|
7325
|
+
import { styled as styled23, useThemeProps as useThemeProps8 } from "@mui/joy";
|
|
7309
7326
|
import { FocusTrap as FocusTrap4, ClickAwayListener as ClickAwayListener4, Popper as Popper5 } from "@mui/base";
|
|
7310
7327
|
var StyledPopper4 = styled23(Popper5, {
|
|
7311
7328
|
name: "MonthPicker",
|
|
@@ -7360,7 +7377,7 @@ function parseDate4(dateString, format) {
|
|
|
7360
7377
|
return result;
|
|
7361
7378
|
}
|
|
7362
7379
|
var MonthPicker = forwardRef10((inProps, ref) => {
|
|
7363
|
-
const props =
|
|
7380
|
+
const props = useThemeProps8({ props: inProps, name: "MonthPicker" });
|
|
7364
7381
|
const {
|
|
7365
7382
|
onChange,
|
|
7366
7383
|
disabled,
|
|
@@ -7682,7 +7699,7 @@ Navigator.displayName = "Navigator";
|
|
|
7682
7699
|
|
|
7683
7700
|
// src/components/ProfileMenu/ProfileMenu.tsx
|
|
7684
7701
|
import React53, { useCallback as useCallback30, useMemo as useMemo19 } from "react";
|
|
7685
|
-
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton3
|
|
7702
|
+
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton3 } from "@mui/joy";
|
|
7686
7703
|
import { ClickAwayListener as ClickAwayListener5 } from "@mui/base";
|
|
7687
7704
|
import DropdownIcon from "@mui/icons-material/ArrowDropDown";
|
|
7688
7705
|
var StyledProfileCard = styled26(Stack, {
|
|
@@ -7704,7 +7721,7 @@ var StyledProfileMenuButton = styled26(MenuButton3, {
|
|
|
7704
7721
|
"--Button-gap": theme.spacing(1)
|
|
7705
7722
|
}));
|
|
7706
7723
|
function ProfileMenuButton(props) {
|
|
7707
|
-
const { size = "
|
|
7724
|
+
const { size = "md", src, alt, children, getInitial, ...innerProps } = props;
|
|
7708
7725
|
return /* @__PURE__ */ React53.createElement(
|
|
7709
7726
|
StyledProfileMenuButton,
|
|
7710
7727
|
{
|
|
@@ -7728,8 +7745,7 @@ var ProfileMenuRoot = styled26(Menu, {
|
|
|
7728
7745
|
border: "none"
|
|
7729
7746
|
}
|
|
7730
7747
|
}));
|
|
7731
|
-
function ProfileMenu(
|
|
7732
|
-
const props = useThemeProps12({ props: inProps, name: "ProfileMenu" });
|
|
7748
|
+
function ProfileMenu(props) {
|
|
7733
7749
|
const { open: _open, defaultOpen, onOpenChange, profile, getInitial, menuItems, size, ...innerProps } = props;
|
|
7734
7750
|
const [open, setOpen] = useControlledState(
|
|
7735
7751
|
_open,
|
|
@@ -7934,7 +7950,7 @@ RadioList.displayName = "RadioList";
|
|
|
7934
7950
|
|
|
7935
7951
|
// src/components/SearchBar/SearchBar.tsx
|
|
7936
7952
|
import * as React56 from "react";
|
|
7937
|
-
import { styled as styled28, useThemeProps as
|
|
7953
|
+
import { styled as styled28, useThemeProps as useThemeProps9 } from "@mui/joy/styles";
|
|
7938
7954
|
import Box2 from "@mui/joy/Box";
|
|
7939
7955
|
import SearchRoundedIcon from "@mui/icons-material/SearchRounded";
|
|
7940
7956
|
import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
|
|
@@ -7954,7 +7970,7 @@ var SearchBarRoot = styled28(Box2, {
|
|
|
7954
7970
|
flexShrink: 0
|
|
7955
7971
|
}));
|
|
7956
7972
|
var SearchBar = React56.forwardRef(function SearchBar2(inProps, ref) {
|
|
7957
|
-
const props =
|
|
7973
|
+
const props = useThemeProps9({ props: inProps, name: "SearchBar" });
|
|
7958
7974
|
const { showSelect = false, options, placeholder: placeholderProp, value, onChange, onSearch, ...other } = props;
|
|
7959
7975
|
const [selectVal, setSelectVal] = React56.useState(options?.[0]?.value ?? "");
|
|
7960
7976
|
const [isHovered, setIsHovered] = React56.useState(false);
|
|
@@ -8447,9 +8463,6 @@ var defaultTheme = extendTheme({
|
|
|
8447
8463
|
}
|
|
8448
8464
|
},
|
|
8449
8465
|
JoyAvatar: {
|
|
8450
|
-
defaultProps: {
|
|
8451
|
-
size: "sm"
|
|
8452
|
-
},
|
|
8453
8466
|
styleOverrides: {
|
|
8454
8467
|
root: ({ ownerState }) => ({
|
|
8455
8468
|
...ownerState.size === "xs" && {
|
|
@@ -8471,121 +8484,6 @@ var defaultTheme = extendTheme({
|
|
|
8471
8484
|
defaultProps: {
|
|
8472
8485
|
size: "sm"
|
|
8473
8486
|
}
|
|
8474
|
-
},
|
|
8475
|
-
JoyButton: {
|
|
8476
|
-
defaultProps: {
|
|
8477
|
-
size: "sm"
|
|
8478
|
-
}
|
|
8479
|
-
},
|
|
8480
|
-
JoyIconButton: {
|
|
8481
|
-
defaultProps: {
|
|
8482
|
-
size: "sm"
|
|
8483
|
-
}
|
|
8484
|
-
},
|
|
8485
|
-
JoyChip: {
|
|
8486
|
-
defaultProps: {
|
|
8487
|
-
size: "sm"
|
|
8488
|
-
}
|
|
8489
|
-
},
|
|
8490
|
-
JoyCard: {
|
|
8491
|
-
defaultProps: {
|
|
8492
|
-
size: "sm"
|
|
8493
|
-
}
|
|
8494
|
-
},
|
|
8495
|
-
JoyBreadcrumbs: {
|
|
8496
|
-
defaultProps: {
|
|
8497
|
-
size: "sm"
|
|
8498
|
-
}
|
|
8499
|
-
},
|
|
8500
|
-
JoyList: {
|
|
8501
|
-
defaultProps: {
|
|
8502
|
-
size: "sm"
|
|
8503
|
-
}
|
|
8504
|
-
},
|
|
8505
|
-
JoyMenu: {
|
|
8506
|
-
defaultProps: {
|
|
8507
|
-
size: "sm"
|
|
8508
|
-
}
|
|
8509
|
-
},
|
|
8510
|
-
JoyMenuList: {
|
|
8511
|
-
defaultProps: {
|
|
8512
|
-
size: "sm"
|
|
8513
|
-
}
|
|
8514
|
-
},
|
|
8515
|
-
JoyTabs: {
|
|
8516
|
-
defaultProps: {
|
|
8517
|
-
size: "sm"
|
|
8518
|
-
}
|
|
8519
|
-
},
|
|
8520
|
-
JoyTabList: {
|
|
8521
|
-
defaultProps: {
|
|
8522
|
-
size: "sm"
|
|
8523
|
-
}
|
|
8524
|
-
},
|
|
8525
|
-
JoyStepper: {
|
|
8526
|
-
defaultProps: {
|
|
8527
|
-
size: "sm"
|
|
8528
|
-
}
|
|
8529
|
-
},
|
|
8530
|
-
JoyModalDialog: {
|
|
8531
|
-
defaultProps: {
|
|
8532
|
-
size: "sm"
|
|
8533
|
-
}
|
|
8534
|
-
},
|
|
8535
|
-
JoyAccordionGroup: {
|
|
8536
|
-
defaultProps: {
|
|
8537
|
-
size: "sm"
|
|
8538
|
-
}
|
|
8539
|
-
},
|
|
8540
|
-
JoyButtonGroup: {
|
|
8541
|
-
defaultProps: {
|
|
8542
|
-
size: "sm"
|
|
8543
|
-
}
|
|
8544
|
-
},
|
|
8545
|
-
JoyMenuButton: {
|
|
8546
|
-
defaultProps: {
|
|
8547
|
-
size: "sm"
|
|
8548
|
-
}
|
|
8549
|
-
},
|
|
8550
|
-
JoyCircularProgress: {
|
|
8551
|
-
defaultProps: {
|
|
8552
|
-
size: "sm"
|
|
8553
|
-
}
|
|
8554
|
-
},
|
|
8555
|
-
JoyLinearProgress: {
|
|
8556
|
-
defaultProps: {
|
|
8557
|
-
size: "sm"
|
|
8558
|
-
}
|
|
8559
|
-
},
|
|
8560
|
-
JoySlider: {
|
|
8561
|
-
defaultProps: {
|
|
8562
|
-
size: "sm"
|
|
8563
|
-
}
|
|
8564
|
-
},
|
|
8565
|
-
JoyBadge: {
|
|
8566
|
-
defaultProps: {
|
|
8567
|
-
size: "sm"
|
|
8568
|
-
}
|
|
8569
|
-
},
|
|
8570
|
-
Alert: {
|
|
8571
|
-
defaultProps: {
|
|
8572
|
-
size: "sm"
|
|
8573
|
-
}
|
|
8574
|
-
},
|
|
8575
|
-
Pagination: {
|
|
8576
|
-
defaultProps: {
|
|
8577
|
-
size: "sm"
|
|
8578
|
-
}
|
|
8579
|
-
},
|
|
8580
|
-
FilterableCheckboxGroup: {
|
|
8581
|
-
defaultProps: {
|
|
8582
|
-
size: "sm"
|
|
8583
|
-
}
|
|
8584
|
-
},
|
|
8585
|
-
ProfileMenu: {
|
|
8586
|
-
defaultProps: {
|
|
8587
|
-
size: "sm"
|
|
8588
|
-
}
|
|
8589
8487
|
}
|
|
8590
8488
|
}
|
|
8591
8489
|
});
|
|
@@ -8774,5 +8672,5 @@ export {
|
|
|
8774
8672
|
useColorScheme,
|
|
8775
8673
|
useMenuButton,
|
|
8776
8674
|
useTheme2 as useTheme,
|
|
8777
|
-
|
|
8675
|
+
useThemeProps10 as useThemeProps
|
|
8778
8676
|
};
|