@ceed/ads 1.37.1 → 1.38.0
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/ThemeProvider/ThemeProvider.d.ts +20 -0
- package/dist/components/data-display/Avatar.md +1 -1
- package/dist/components/data-display/Badge.md +2 -2
- package/dist/components/data-display/Chip.md +2 -2
- 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 +3 -4
- package/dist/components/inputs/ButtonGroup.md +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/components/surfaces/Accordions.md +1 -1
- package/dist/components/surfaces/Card.md +3 -3
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +346 -224
- package/dist/index.js +154 -32
- package/framer/index.js +1 -1
- package/package.json +1 -1
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 useThemeProps14,
|
|
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 } from "@mui/joy";
|
|
139
|
+
import { Alert as JoyAlert, styled, useThemeProps } from "@mui/joy";
|
|
140
140
|
import { motion as motion3 } from "framer-motion";
|
|
141
141
|
|
|
142
142
|
// src/components/Typography/Typography.tsx
|
|
@@ -173,8 +173,9 @@ var contentLevelMapping = {
|
|
|
173
173
|
md: "body-sm",
|
|
174
174
|
lg: "body-md"
|
|
175
175
|
};
|
|
176
|
-
function Alert(
|
|
177
|
-
const
|
|
176
|
+
function Alert(inProps) {
|
|
177
|
+
const props = useThemeProps({ props: inProps, name: "Alert" });
|
|
178
|
+
const { title, content, actions, color = "primary", size = "sm", ...innerProps } = props;
|
|
178
179
|
const invertedColors = props.invertedColors || props.variant === "solid";
|
|
179
180
|
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)));
|
|
180
181
|
}
|
|
@@ -573,7 +574,7 @@ var Autocomplete_default = Autocomplete;
|
|
|
573
574
|
|
|
574
575
|
// src/components/Avatar/Avatar.tsx
|
|
575
576
|
import React6, { forwardRef as forwardRef2, useMemo as useMemo2 } from "react";
|
|
576
|
-
import { Avatar as JoyAvatar, AvatarGroup, styled as styled4, useThemeProps } from "@mui/joy";
|
|
577
|
+
import { Avatar as JoyAvatar, AvatarGroup, styled as styled4, useThemeProps as useThemeProps2 } from "@mui/joy";
|
|
577
578
|
var StyledAvatar = styled4(JoyAvatar, {
|
|
578
579
|
name: "Avatar",
|
|
579
580
|
slot: "Root",
|
|
@@ -595,7 +596,7 @@ var defaultGetInitial = (name) => {
|
|
|
595
596
|
}
|
|
596
597
|
};
|
|
597
598
|
var Avatar = forwardRef2(function Avatar2(inProps, ref) {
|
|
598
|
-
const props =
|
|
599
|
+
const props = useThemeProps2({
|
|
599
600
|
props: inProps,
|
|
600
601
|
name: "Avatar"
|
|
601
602
|
});
|
|
@@ -815,7 +816,7 @@ var isSameMonth = (date1, date2) => {
|
|
|
815
816
|
|
|
816
817
|
// src/components/Calendar/hooks/use-calendar-props.ts
|
|
817
818
|
import { useCallback as useCallback4, useMemo as useMemo4, useState as useState3 } from "react";
|
|
818
|
-
import { useThemeProps as
|
|
819
|
+
import { useThemeProps as useThemeProps3 } from "@mui/joy";
|
|
819
820
|
var resolveView = (view, views) => {
|
|
820
821
|
return views.includes(view) ? view : views[0];
|
|
821
822
|
};
|
|
@@ -864,7 +865,7 @@ var useCalendarProps = (inProps) => {
|
|
|
864
865
|
},
|
|
865
866
|
[resolvedView, inProps, viewMonth, paginate]
|
|
866
867
|
);
|
|
867
|
-
const props =
|
|
868
|
+
const props = useThemeProps3({
|
|
868
869
|
props: {
|
|
869
870
|
locale: "default",
|
|
870
871
|
views: ["day", "month"],
|
|
@@ -1916,7 +1917,7 @@ Input.displayName = "Input";
|
|
|
1916
1917
|
var Input_default = Input;
|
|
1917
1918
|
|
|
1918
1919
|
// src/components/CurrencyInput/CurrencyInput.tsx
|
|
1919
|
-
import { styled as styled7, useThemeProps as
|
|
1920
|
+
import { styled as styled7, useThemeProps as useThemeProps4 } from "@mui/joy";
|
|
1920
1921
|
|
|
1921
1922
|
// src/components/CurrencyInput/hooks/use-currency-setting.ts
|
|
1922
1923
|
var CURRENCY_DECIMAL_MAP = {
|
|
@@ -2102,7 +2103,7 @@ var CurrencyInputRoot = styled7(Input_default, {
|
|
|
2102
2103
|
overridesResolver: (props, styles) => styles.root
|
|
2103
2104
|
})({});
|
|
2104
2105
|
var CurrencyInput = React17.forwardRef(function CurrencyInput2(inProps, ref) {
|
|
2105
|
-
const props =
|
|
2106
|
+
const props = useThemeProps4({ props: inProps, name: "CurrencyInput" });
|
|
2106
2107
|
const {
|
|
2107
2108
|
currency = "USD",
|
|
2108
2109
|
name,
|
|
@@ -2630,7 +2631,7 @@ import { AnimatePresence as AnimatePresence2 } from "framer-motion";
|
|
|
2630
2631
|
import React19, { forwardRef as forwardRef6, useCallback as useCallback9, useEffect as useEffect4, useImperativeHandle, useRef as useRef4, useState as useState8 } from "react";
|
|
2631
2632
|
import { IMaskInput, IMask } from "react-imask";
|
|
2632
2633
|
import CalendarTodayIcon from "@mui/icons-material/CalendarToday";
|
|
2633
|
-
import { styled as styled10, useThemeProps as
|
|
2634
|
+
import { styled as styled10, useThemeProps as useThemeProps5 } from "@mui/joy";
|
|
2634
2635
|
import { FocusTrap, ClickAwayListener, Popper as Popper2 } from "@mui/base";
|
|
2635
2636
|
|
|
2636
2637
|
// src/components/Sheet/Sheet.tsx
|
|
@@ -2818,7 +2819,7 @@ var TextMaskAdapter3 = React19.forwardRef(function TextMaskAdapter4(props, ref)
|
|
|
2818
2819
|
);
|
|
2819
2820
|
});
|
|
2820
2821
|
var DatePicker = forwardRef6((inProps, ref) => {
|
|
2821
|
-
const props =
|
|
2822
|
+
const props = useThemeProps5({ props: inProps, name: "DatePicker" });
|
|
2822
2823
|
const {
|
|
2823
2824
|
onChange,
|
|
2824
2825
|
disabled,
|
|
@@ -4212,7 +4213,7 @@ import PreviousIcon from "@mui/icons-material/ChevronLeftRounded";
|
|
|
4212
4213
|
import NextIcon from "@mui/icons-material/ChevronRightRounded";
|
|
4213
4214
|
import FirstPageIcon from "@mui/icons-material/FirstPageRounded";
|
|
4214
4215
|
import LastPageIcon from "@mui/icons-material/LastPageRounded";
|
|
4215
|
-
import { styled as styled13 } from "@mui/joy";
|
|
4216
|
+
import { styled as styled13, useThemeProps as useThemeProps6 } from "@mui/joy";
|
|
4216
4217
|
var PaginationButton = styled13(Button_default, {
|
|
4217
4218
|
name: "Pagination",
|
|
4218
4219
|
slot: "button"
|
|
@@ -4263,13 +4264,14 @@ var PaginationContainer = styled13(Stack_default, {
|
|
|
4263
4264
|
lg: theme.spacing(2)
|
|
4264
4265
|
}[size]
|
|
4265
4266
|
}));
|
|
4266
|
-
function Pagination(
|
|
4267
|
+
function Pagination(inProps) {
|
|
4268
|
+
const props = useThemeProps6({ props: inProps, name: "Pagination" });
|
|
4267
4269
|
const {
|
|
4268
4270
|
paginationModel: _paginationModel,
|
|
4269
4271
|
defaultPaginationModel = { page: 1, pageSize: 25 },
|
|
4270
4272
|
onPageChange,
|
|
4271
4273
|
rowCount,
|
|
4272
|
-
size = "
|
|
4274
|
+
size = "sm",
|
|
4273
4275
|
variant = "standard",
|
|
4274
4276
|
...innerProps
|
|
4275
4277
|
} = props;
|
|
@@ -4924,7 +4926,7 @@ DataTable.displayName = "DataTable";
|
|
|
4924
4926
|
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";
|
|
4925
4927
|
import { IMaskInput as IMaskInput2, IMask as IMask2 } from "react-imask";
|
|
4926
4928
|
import CalendarTodayIcon2 from "@mui/icons-material/CalendarToday";
|
|
4927
|
-
import { styled as styled14, useThemeProps as
|
|
4929
|
+
import { styled as styled14, useThemeProps as useThemeProps7 } from "@mui/joy";
|
|
4928
4930
|
import { FocusTrap as FocusTrap2, ClickAwayListener as ClickAwayListener2, Popper as Popper3 } from "@mui/base";
|
|
4929
4931
|
var hasAlphabeticMonth2 = (format) => /MMMM|MMM/.test(format);
|
|
4930
4932
|
var CalendarButton2 = styled14(IconButton_default, {
|
|
@@ -5100,7 +5102,7 @@ var TextMaskAdapter5 = React27.forwardRef(function TextMaskAdapter6(props, ref)
|
|
|
5100
5102
|
);
|
|
5101
5103
|
});
|
|
5102
5104
|
var DateRangePicker = forwardRef8((inProps, ref) => {
|
|
5103
|
-
const props =
|
|
5105
|
+
const props = useThemeProps7({ props: inProps, name: "DateRangePicker" });
|
|
5104
5106
|
const {
|
|
5105
5107
|
onChange,
|
|
5106
5108
|
disabled,
|
|
@@ -5474,6 +5476,7 @@ var InsetDrawer = styled19(JoyDrawer)(({ theme }) => ({
|
|
|
5474
5476
|
// src/components/FilterableCheckboxGroup/FilterableCheckboxGroup.tsx
|
|
5475
5477
|
import React31, { useCallback as useCallback15, useEffect as useEffect9, useMemo as useMemo13, useRef as useRef9, useState as useState12 } from "react";
|
|
5476
5478
|
import SearchIcon from "@mui/icons-material/Search";
|
|
5479
|
+
import { useThemeProps as useThemeProps8 } from "@mui/joy";
|
|
5477
5480
|
import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
|
|
5478
5481
|
function LabelWithTooltip(props) {
|
|
5479
5482
|
const { label, size } = props;
|
|
@@ -5506,14 +5509,15 @@ function LabelWithTooltip(props) {
|
|
|
5506
5509
|
}
|
|
5507
5510
|
return labelContent;
|
|
5508
5511
|
}
|
|
5509
|
-
function FilterableCheckboxGroup(
|
|
5512
|
+
function FilterableCheckboxGroup(inProps) {
|
|
5513
|
+
const props = useThemeProps8({ props: inProps, name: "FilterableCheckboxGroup" });
|
|
5510
5514
|
const {
|
|
5511
5515
|
value,
|
|
5512
5516
|
options,
|
|
5513
5517
|
label,
|
|
5514
5518
|
placeholder,
|
|
5515
5519
|
helperText,
|
|
5516
|
-
size = "
|
|
5520
|
+
size = "sm",
|
|
5517
5521
|
required,
|
|
5518
5522
|
onChange,
|
|
5519
5523
|
maxHeight = 300,
|
|
@@ -5946,7 +5950,7 @@ import { Stack as Stack6 } from "@mui/joy";
|
|
|
5946
5950
|
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";
|
|
5947
5951
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
5948
5952
|
import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
|
|
5949
|
-
import { styled as styled20, useThemeProps as
|
|
5953
|
+
import { styled as styled20, useThemeProps as useThemeProps9 } from "@mui/joy";
|
|
5950
5954
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
|
|
5951
5955
|
var hasAlphabeticMonth3 = (format) => /MMMM|MMM/.test(format);
|
|
5952
5956
|
var StyledPopper3 = styled20(Popper4, {
|
|
@@ -6035,7 +6039,7 @@ var TextMaskAdapter7 = React36.forwardRef(function TextMaskAdapter8(props, ref)
|
|
|
6035
6039
|
);
|
|
6036
6040
|
});
|
|
6037
6041
|
var MonthRangePicker = forwardRef9((inProps, ref) => {
|
|
6038
|
-
const props =
|
|
6042
|
+
const props = useThemeProps9({ props: inProps, name: "MonthRangePicker" });
|
|
6039
6043
|
const {
|
|
6040
6044
|
onChange,
|
|
6041
6045
|
disabled,
|
|
@@ -6390,7 +6394,7 @@ import { Stack as Stack9, Typography as Typography5 } from "@mui/joy";
|
|
|
6390
6394
|
// src/components/PercentageInput/PercentageInput.tsx
|
|
6391
6395
|
import React40, { useCallback as useCallback24, useMemo as useMemo17, useState as useState15 } from "react";
|
|
6392
6396
|
import { NumericFormat as NumericFormat2 } from "react-number-format";
|
|
6393
|
-
import { styled as styled21, useThemeProps as
|
|
6397
|
+
import { styled as styled21, useThemeProps as useThemeProps10 } from "@mui/joy";
|
|
6394
6398
|
var padDecimal = (value, decimalScale) => {
|
|
6395
6399
|
const [integer, decimal = ""] = `${value}`.split(".");
|
|
6396
6400
|
return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
|
|
@@ -6424,7 +6428,7 @@ var PercentageInputRoot = styled21(Input_default, {
|
|
|
6424
6428
|
})({});
|
|
6425
6429
|
var PercentageInput = React40.forwardRef(
|
|
6426
6430
|
function PercentageInput2(inProps, ref) {
|
|
6427
|
-
const props =
|
|
6431
|
+
const props = useThemeProps10({ props: inProps, name: "PercentageInput" });
|
|
6428
6432
|
const {
|
|
6429
6433
|
name,
|
|
6430
6434
|
onChange,
|
|
@@ -6711,7 +6715,7 @@ function FilterMenu(props) {
|
|
|
6711
6715
|
}
|
|
6712
6716
|
) : null;
|
|
6713
6717
|
}))),
|
|
6714
|
-
/* @__PURE__ */ React44.createElement(DialogActions, { sx: { justifyContent: "space-between" } }, useClear && filters?.length === 1 && /* @__PURE__ */ React44.createElement(Button2, { variant: "plain", color: "neutral",
|
|
6718
|
+
/* @__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"))
|
|
6715
6719
|
);
|
|
6716
6720
|
}
|
|
6717
6721
|
FilterMenu.displayName = "FilterMenu";
|
|
@@ -7322,7 +7326,7 @@ MenuButton2.displayName = "MenuButton";
|
|
|
7322
7326
|
// src/components/MonthPicker/MonthPicker.tsx
|
|
7323
7327
|
import React49, { forwardRef as forwardRef10, useCallback as useCallback29, useEffect as useEffect15, useImperativeHandle as useImperativeHandle5, useRef as useRef12, useState as useState18 } from "react";
|
|
7324
7328
|
import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
|
|
7325
|
-
import { styled as styled23, useThemeProps as
|
|
7329
|
+
import { styled as styled23, useThemeProps as useThemeProps11 } from "@mui/joy";
|
|
7326
7330
|
import { FocusTrap as FocusTrap4, ClickAwayListener as ClickAwayListener4, Popper as Popper5 } from "@mui/base";
|
|
7327
7331
|
var StyledPopper4 = styled23(Popper5, {
|
|
7328
7332
|
name: "MonthPicker",
|
|
@@ -7377,7 +7381,7 @@ function parseDate4(dateString, format) {
|
|
|
7377
7381
|
return result;
|
|
7378
7382
|
}
|
|
7379
7383
|
var MonthPicker = forwardRef10((inProps, ref) => {
|
|
7380
|
-
const props =
|
|
7384
|
+
const props = useThemeProps11({ props: inProps, name: "MonthPicker" });
|
|
7381
7385
|
const {
|
|
7382
7386
|
onChange,
|
|
7383
7387
|
disabled,
|
|
@@ -7699,7 +7703,7 @@ Navigator.displayName = "Navigator";
|
|
|
7699
7703
|
|
|
7700
7704
|
// src/components/ProfileMenu/ProfileMenu.tsx
|
|
7701
7705
|
import React53, { useCallback as useCallback30, useMemo as useMemo19 } from "react";
|
|
7702
|
-
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton3 } from "@mui/joy";
|
|
7706
|
+
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton3, useThemeProps as useThemeProps12 } from "@mui/joy";
|
|
7703
7707
|
import { ClickAwayListener as ClickAwayListener5 } from "@mui/base";
|
|
7704
7708
|
import DropdownIcon from "@mui/icons-material/ArrowDropDown";
|
|
7705
7709
|
var StyledProfileCard = styled26(Stack, {
|
|
@@ -7721,7 +7725,7 @@ var StyledProfileMenuButton = styled26(MenuButton3, {
|
|
|
7721
7725
|
"--Button-gap": theme.spacing(1)
|
|
7722
7726
|
}));
|
|
7723
7727
|
function ProfileMenuButton(props) {
|
|
7724
|
-
const { size = "
|
|
7728
|
+
const { size = "sm", src, alt, children, getInitial, ...innerProps } = props;
|
|
7725
7729
|
return /* @__PURE__ */ React53.createElement(
|
|
7726
7730
|
StyledProfileMenuButton,
|
|
7727
7731
|
{
|
|
@@ -7745,7 +7749,8 @@ var ProfileMenuRoot = styled26(Menu, {
|
|
|
7745
7749
|
border: "none"
|
|
7746
7750
|
}
|
|
7747
7751
|
}));
|
|
7748
|
-
function ProfileMenu(
|
|
7752
|
+
function ProfileMenu(inProps) {
|
|
7753
|
+
const props = useThemeProps12({ props: inProps, name: "ProfileMenu" });
|
|
7749
7754
|
const { open: _open, defaultOpen, onOpenChange, profile, getInitial, menuItems, size, ...innerProps } = props;
|
|
7750
7755
|
const [open, setOpen] = useControlledState(
|
|
7751
7756
|
_open,
|
|
@@ -7950,7 +7955,7 @@ RadioList.displayName = "RadioList";
|
|
|
7950
7955
|
|
|
7951
7956
|
// src/components/SearchBar/SearchBar.tsx
|
|
7952
7957
|
import * as React56 from "react";
|
|
7953
|
-
import { styled as styled28, useThemeProps as
|
|
7958
|
+
import { styled as styled28, useThemeProps as useThemeProps13 } from "@mui/joy/styles";
|
|
7954
7959
|
import Box2 from "@mui/joy/Box";
|
|
7955
7960
|
import SearchRoundedIcon from "@mui/icons-material/SearchRounded";
|
|
7956
7961
|
import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
|
|
@@ -7970,7 +7975,7 @@ var SearchBarRoot = styled28(Box2, {
|
|
|
7970
7975
|
flexShrink: 0
|
|
7971
7976
|
}));
|
|
7972
7977
|
var SearchBar = React56.forwardRef(function SearchBar2(inProps, ref) {
|
|
7973
|
-
const props =
|
|
7978
|
+
const props = useThemeProps13({ props: inProps, name: "SearchBar" });
|
|
7974
7979
|
const { showSelect = false, options, placeholder: placeholderProp, value, onChange, onSearch, ...other } = props;
|
|
7975
7980
|
const [selectVal, setSelectVal] = React56.useState(options?.[0]?.value ?? "");
|
|
7976
7981
|
const [isHovered, setIsHovered] = React56.useState(false);
|
|
@@ -8463,6 +8468,9 @@ var defaultTheme = extendTheme({
|
|
|
8463
8468
|
}
|
|
8464
8469
|
},
|
|
8465
8470
|
JoyAvatar: {
|
|
8471
|
+
defaultProps: {
|
|
8472
|
+
size: "sm"
|
|
8473
|
+
},
|
|
8466
8474
|
styleOverrides: {
|
|
8467
8475
|
root: ({ ownerState }) => ({
|
|
8468
8476
|
...ownerState.size === "xs" && {
|
|
@@ -8484,6 +8492,120 @@ var defaultTheme = extendTheme({
|
|
|
8484
8492
|
defaultProps: {
|
|
8485
8493
|
size: "sm"
|
|
8486
8494
|
}
|
|
8495
|
+
},
|
|
8496
|
+
JoyButton: {
|
|
8497
|
+
defaultProps: {
|
|
8498
|
+
size: "sm"
|
|
8499
|
+
}
|
|
8500
|
+
},
|
|
8501
|
+
JoyIconButton: {
|
|
8502
|
+
defaultProps: {
|
|
8503
|
+
size: "sm"
|
|
8504
|
+
}
|
|
8505
|
+
},
|
|
8506
|
+
JoyChip: {
|
|
8507
|
+
defaultProps: {
|
|
8508
|
+
size: "sm"
|
|
8509
|
+
}
|
|
8510
|
+
},
|
|
8511
|
+
JoyCard: {
|
|
8512
|
+
defaultProps: {
|
|
8513
|
+
size: "sm"
|
|
8514
|
+
}
|
|
8515
|
+
},
|
|
8516
|
+
JoyBreadcrumbs: {
|
|
8517
|
+
defaultProps: {
|
|
8518
|
+
size: "sm"
|
|
8519
|
+
}
|
|
8520
|
+
},
|
|
8521
|
+
JoyList: {
|
|
8522
|
+
defaultProps: {
|
|
8523
|
+
size: "sm"
|
|
8524
|
+
}
|
|
8525
|
+
},
|
|
8526
|
+
JoyMenu: {
|
|
8527
|
+
defaultProps: {
|
|
8528
|
+
size: "sm"
|
|
8529
|
+
}
|
|
8530
|
+
},
|
|
8531
|
+
JoyMenuList: {
|
|
8532
|
+
defaultProps: {
|
|
8533
|
+
size: "sm"
|
|
8534
|
+
}
|
|
8535
|
+
},
|
|
8536
|
+
JoyTabs: {
|
|
8537
|
+
defaultProps: {
|
|
8538
|
+
size: "sm"
|
|
8539
|
+
}
|
|
8540
|
+
},
|
|
8541
|
+
// NOTE: TabList 는 size 를 직접 지정하지 않는다. Joy 의 TabList 는 theme defaultProps 가
|
|
8542
|
+
// 부모 Tabs 의 context(SizeTabsContext)보다 우선하므로(`sizeProp != null ? sizeProp : tabsSize`),
|
|
8543
|
+
// 여기서 sm 을 지정하면 <Tabs size="lg"> 처럼 부모에서 내려준 size 를 상속하지 못한다.
|
|
8544
|
+
// JoyTabs 의 기본값 sm 이 context 로 전파되어 TabList 도 기본 sm 이 된다.
|
|
8545
|
+
JoyStepper: {
|
|
8546
|
+
defaultProps: {
|
|
8547
|
+
size: "sm"
|
|
8548
|
+
}
|
|
8549
|
+
},
|
|
8550
|
+
JoyModalDialog: {
|
|
8551
|
+
defaultProps: {
|
|
8552
|
+
size: "sm"
|
|
8553
|
+
}
|
|
8554
|
+
},
|
|
8555
|
+
JoyAccordionGroup: {
|
|
8556
|
+
defaultProps: {
|
|
8557
|
+
size: "sm"
|
|
8558
|
+
}
|
|
8559
|
+
},
|
|
8560
|
+
JoyButtonGroup: {
|
|
8561
|
+
defaultProps: {
|
|
8562
|
+
size: "sm"
|
|
8563
|
+
}
|
|
8564
|
+
},
|
|
8565
|
+
JoyMenuButton: {
|
|
8566
|
+
defaultProps: {
|
|
8567
|
+
size: "sm"
|
|
8568
|
+
}
|
|
8569
|
+
},
|
|
8570
|
+
JoyCircularProgress: {
|
|
8571
|
+
defaultProps: {
|
|
8572
|
+
size: "sm"
|
|
8573
|
+
}
|
|
8574
|
+
},
|
|
8575
|
+
JoyLinearProgress: {
|
|
8576
|
+
defaultProps: {
|
|
8577
|
+
size: "sm"
|
|
8578
|
+
}
|
|
8579
|
+
},
|
|
8580
|
+
JoySlider: {
|
|
8581
|
+
defaultProps: {
|
|
8582
|
+
size: "sm"
|
|
8583
|
+
}
|
|
8584
|
+
},
|
|
8585
|
+
JoyBadge: {
|
|
8586
|
+
defaultProps: {
|
|
8587
|
+
size: "sm"
|
|
8588
|
+
}
|
|
8589
|
+
},
|
|
8590
|
+
Alert: {
|
|
8591
|
+
defaultProps: {
|
|
8592
|
+
size: "sm"
|
|
8593
|
+
}
|
|
8594
|
+
},
|
|
8595
|
+
Pagination: {
|
|
8596
|
+
defaultProps: {
|
|
8597
|
+
size: "sm"
|
|
8598
|
+
}
|
|
8599
|
+
},
|
|
8600
|
+
FilterableCheckboxGroup: {
|
|
8601
|
+
defaultProps: {
|
|
8602
|
+
size: "sm"
|
|
8603
|
+
}
|
|
8604
|
+
},
|
|
8605
|
+
ProfileMenu: {
|
|
8606
|
+
defaultProps: {
|
|
8607
|
+
size: "sm"
|
|
8608
|
+
}
|
|
8487
8609
|
}
|
|
8488
8610
|
}
|
|
8489
8611
|
});
|
|
@@ -8672,5 +8794,5 @@ export {
|
|
|
8672
8794
|
useColorScheme,
|
|
8673
8795
|
useMenuButton,
|
|
8674
8796
|
useTheme2 as useTheme,
|
|
8675
|
-
|
|
8797
|
+
useThemeProps14 as useThemeProps
|
|
8676
8798
|
};
|