@ceed/ads 1.37.0 → 1.38.0-next.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/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 +3 -2
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";
|
|
@@ -7315,7 +7319,7 @@ MenuButton2.displayName = "MenuButton";
|
|
|
7315
7319
|
// src/components/MonthPicker/MonthPicker.tsx
|
|
7316
7320
|
import React49, { forwardRef as forwardRef10, useCallback as useCallback29, useEffect as useEffect15, useImperativeHandle as useImperativeHandle5, useRef as useRef12, useState as useState18 } from "react";
|
|
7317
7321
|
import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
|
|
7318
|
-
import { styled as styled23, useThemeProps as
|
|
7322
|
+
import { styled as styled23, useThemeProps as useThemeProps11 } from "@mui/joy";
|
|
7319
7323
|
import { FocusTrap as FocusTrap4, ClickAwayListener as ClickAwayListener4, Popper as Popper5 } from "@mui/base";
|
|
7320
7324
|
var StyledPopper4 = styled23(Popper5, {
|
|
7321
7325
|
name: "MonthPicker",
|
|
@@ -7370,7 +7374,7 @@ function parseDate4(dateString, format) {
|
|
|
7370
7374
|
return result;
|
|
7371
7375
|
}
|
|
7372
7376
|
var MonthPicker = forwardRef10((inProps, ref) => {
|
|
7373
|
-
const props =
|
|
7377
|
+
const props = useThemeProps11({ props: inProps, name: "MonthPicker" });
|
|
7374
7378
|
const {
|
|
7375
7379
|
onChange,
|
|
7376
7380
|
disabled,
|
|
@@ -7692,7 +7696,7 @@ Navigator.displayName = "Navigator";
|
|
|
7692
7696
|
|
|
7693
7697
|
// src/components/ProfileMenu/ProfileMenu.tsx
|
|
7694
7698
|
import React53, { useCallback as useCallback30, useMemo as useMemo19 } from "react";
|
|
7695
|
-
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton3 } from "@mui/joy";
|
|
7699
|
+
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton3, useThemeProps as useThemeProps12 } from "@mui/joy";
|
|
7696
7700
|
import { ClickAwayListener as ClickAwayListener5 } from "@mui/base";
|
|
7697
7701
|
import DropdownIcon from "@mui/icons-material/ArrowDropDown";
|
|
7698
7702
|
var StyledProfileCard = styled26(Stack, {
|
|
@@ -7714,7 +7718,7 @@ var StyledProfileMenuButton = styled26(MenuButton3, {
|
|
|
7714
7718
|
"--Button-gap": theme.spacing(1)
|
|
7715
7719
|
}));
|
|
7716
7720
|
function ProfileMenuButton(props) {
|
|
7717
|
-
const { size = "
|
|
7721
|
+
const { size = "sm", src, alt, children, getInitial, ...innerProps } = props;
|
|
7718
7722
|
return /* @__PURE__ */ React53.createElement(
|
|
7719
7723
|
StyledProfileMenuButton,
|
|
7720
7724
|
{
|
|
@@ -7738,7 +7742,8 @@ var ProfileMenuRoot = styled26(Menu, {
|
|
|
7738
7742
|
border: "none"
|
|
7739
7743
|
}
|
|
7740
7744
|
}));
|
|
7741
|
-
function ProfileMenu(
|
|
7745
|
+
function ProfileMenu(inProps) {
|
|
7746
|
+
const props = useThemeProps12({ props: inProps, name: "ProfileMenu" });
|
|
7742
7747
|
const { open: _open, defaultOpen, onOpenChange, profile, getInitial, menuItems, size, ...innerProps } = props;
|
|
7743
7748
|
const [open, setOpen] = useControlledState(
|
|
7744
7749
|
_open,
|
|
@@ -7943,7 +7948,7 @@ RadioList.displayName = "RadioList";
|
|
|
7943
7948
|
|
|
7944
7949
|
// src/components/SearchBar/SearchBar.tsx
|
|
7945
7950
|
import * as React56 from "react";
|
|
7946
|
-
import { styled as styled28, useThemeProps as
|
|
7951
|
+
import { styled as styled28, useThemeProps as useThemeProps13 } from "@mui/joy/styles";
|
|
7947
7952
|
import Box2 from "@mui/joy/Box";
|
|
7948
7953
|
import SearchRoundedIcon from "@mui/icons-material/SearchRounded";
|
|
7949
7954
|
import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
|
|
@@ -7963,7 +7968,7 @@ var SearchBarRoot = styled28(Box2, {
|
|
|
7963
7968
|
flexShrink: 0
|
|
7964
7969
|
}));
|
|
7965
7970
|
var SearchBar = React56.forwardRef(function SearchBar2(inProps, ref) {
|
|
7966
|
-
const props =
|
|
7971
|
+
const props = useThemeProps13({ props: inProps, name: "SearchBar" });
|
|
7967
7972
|
const { showSelect = false, options, placeholder: placeholderProp, value, onChange, onSearch, ...other } = props;
|
|
7968
7973
|
const [selectVal, setSelectVal] = React56.useState(options?.[0]?.value ?? "");
|
|
7969
7974
|
const [isHovered, setIsHovered] = React56.useState(false);
|
|
@@ -8456,6 +8461,9 @@ var defaultTheme = extendTheme({
|
|
|
8456
8461
|
}
|
|
8457
8462
|
},
|
|
8458
8463
|
JoyAvatar: {
|
|
8464
|
+
defaultProps: {
|
|
8465
|
+
size: "sm"
|
|
8466
|
+
},
|
|
8459
8467
|
styleOverrides: {
|
|
8460
8468
|
root: ({ ownerState }) => ({
|
|
8461
8469
|
...ownerState.size === "xs" && {
|
|
@@ -8477,6 +8485,120 @@ var defaultTheme = extendTheme({
|
|
|
8477
8485
|
defaultProps: {
|
|
8478
8486
|
size: "sm"
|
|
8479
8487
|
}
|
|
8488
|
+
},
|
|
8489
|
+
JoyButton: {
|
|
8490
|
+
defaultProps: {
|
|
8491
|
+
size: "sm"
|
|
8492
|
+
}
|
|
8493
|
+
},
|
|
8494
|
+
JoyIconButton: {
|
|
8495
|
+
defaultProps: {
|
|
8496
|
+
size: "sm"
|
|
8497
|
+
}
|
|
8498
|
+
},
|
|
8499
|
+
JoyChip: {
|
|
8500
|
+
defaultProps: {
|
|
8501
|
+
size: "sm"
|
|
8502
|
+
}
|
|
8503
|
+
},
|
|
8504
|
+
JoyCard: {
|
|
8505
|
+
defaultProps: {
|
|
8506
|
+
size: "sm"
|
|
8507
|
+
}
|
|
8508
|
+
},
|
|
8509
|
+
JoyBreadcrumbs: {
|
|
8510
|
+
defaultProps: {
|
|
8511
|
+
size: "sm"
|
|
8512
|
+
}
|
|
8513
|
+
},
|
|
8514
|
+
JoyList: {
|
|
8515
|
+
defaultProps: {
|
|
8516
|
+
size: "sm"
|
|
8517
|
+
}
|
|
8518
|
+
},
|
|
8519
|
+
JoyMenu: {
|
|
8520
|
+
defaultProps: {
|
|
8521
|
+
size: "sm"
|
|
8522
|
+
}
|
|
8523
|
+
},
|
|
8524
|
+
JoyMenuList: {
|
|
8525
|
+
defaultProps: {
|
|
8526
|
+
size: "sm"
|
|
8527
|
+
}
|
|
8528
|
+
},
|
|
8529
|
+
JoyTabs: {
|
|
8530
|
+
defaultProps: {
|
|
8531
|
+
size: "sm"
|
|
8532
|
+
}
|
|
8533
|
+
},
|
|
8534
|
+
// NOTE: TabList 는 size 를 직접 지정하지 않는다. Joy 의 TabList 는 theme defaultProps 가
|
|
8535
|
+
// 부모 Tabs 의 context(SizeTabsContext)보다 우선하므로(`sizeProp != null ? sizeProp : tabsSize`),
|
|
8536
|
+
// 여기서 sm 을 지정하면 <Tabs size="lg"> 처럼 부모에서 내려준 size 를 상속하지 못한다.
|
|
8537
|
+
// JoyTabs 의 기본값 sm 이 context 로 전파되어 TabList 도 기본 sm 이 된다.
|
|
8538
|
+
JoyStepper: {
|
|
8539
|
+
defaultProps: {
|
|
8540
|
+
size: "sm"
|
|
8541
|
+
}
|
|
8542
|
+
},
|
|
8543
|
+
JoyModalDialog: {
|
|
8544
|
+
defaultProps: {
|
|
8545
|
+
size: "sm"
|
|
8546
|
+
}
|
|
8547
|
+
},
|
|
8548
|
+
JoyAccordionGroup: {
|
|
8549
|
+
defaultProps: {
|
|
8550
|
+
size: "sm"
|
|
8551
|
+
}
|
|
8552
|
+
},
|
|
8553
|
+
JoyButtonGroup: {
|
|
8554
|
+
defaultProps: {
|
|
8555
|
+
size: "sm"
|
|
8556
|
+
}
|
|
8557
|
+
},
|
|
8558
|
+
JoyMenuButton: {
|
|
8559
|
+
defaultProps: {
|
|
8560
|
+
size: "sm"
|
|
8561
|
+
}
|
|
8562
|
+
},
|
|
8563
|
+
JoyCircularProgress: {
|
|
8564
|
+
defaultProps: {
|
|
8565
|
+
size: "sm"
|
|
8566
|
+
}
|
|
8567
|
+
},
|
|
8568
|
+
JoyLinearProgress: {
|
|
8569
|
+
defaultProps: {
|
|
8570
|
+
size: "sm"
|
|
8571
|
+
}
|
|
8572
|
+
},
|
|
8573
|
+
JoySlider: {
|
|
8574
|
+
defaultProps: {
|
|
8575
|
+
size: "sm"
|
|
8576
|
+
}
|
|
8577
|
+
},
|
|
8578
|
+
JoyBadge: {
|
|
8579
|
+
defaultProps: {
|
|
8580
|
+
size: "sm"
|
|
8581
|
+
}
|
|
8582
|
+
},
|
|
8583
|
+
Alert: {
|
|
8584
|
+
defaultProps: {
|
|
8585
|
+
size: "sm"
|
|
8586
|
+
}
|
|
8587
|
+
},
|
|
8588
|
+
Pagination: {
|
|
8589
|
+
defaultProps: {
|
|
8590
|
+
size: "sm"
|
|
8591
|
+
}
|
|
8592
|
+
},
|
|
8593
|
+
FilterableCheckboxGroup: {
|
|
8594
|
+
defaultProps: {
|
|
8595
|
+
size: "sm"
|
|
8596
|
+
}
|
|
8597
|
+
},
|
|
8598
|
+
ProfileMenu: {
|
|
8599
|
+
defaultProps: {
|
|
8600
|
+
size: "sm"
|
|
8601
|
+
}
|
|
8480
8602
|
}
|
|
8481
8603
|
}
|
|
8482
8604
|
});
|
|
@@ -8665,5 +8787,5 @@ export {
|
|
|
8665
8787
|
useColorScheme,
|
|
8666
8788
|
useMenuButton,
|
|
8667
8789
|
useTheme2 as useTheme,
|
|
8668
|
-
|
|
8790
|
+
useThemeProps14 as useThemeProps
|
|
8669
8791
|
};
|