@ceed/cds 1.35.0 → 1.36.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/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  useTheme as useTheme2,
4
4
  useColorScheme,
5
- useThemeProps as useThemeProps10,
5
+ useThemeProps as useThemeProps13,
6
6
  ButtonGroup,
7
7
  alertClasses,
8
8
  boxClasses,
@@ -141,7 +141,7 @@ Accordions.displayName = "Accordions";
141
141
 
142
142
  // src/components/Alert/Alert.tsx
143
143
  import React3 from "react";
144
- import { Alert as JoyAlert, styled } from "@mui/joy";
144
+ import { Alert as JoyAlert, styled, useThemeProps } from "@mui/joy";
145
145
  import { motion as motion3 } from "framer-motion";
146
146
 
147
147
  // src/components/Typography/Typography.tsx
@@ -178,7 +178,8 @@ var contentLevelMapping = {
178
178
  md: "body-sm",
179
179
  lg: "body-md"
180
180
  };
181
- function Alert(props) {
181
+ function Alert(inProps) {
182
+ const props = useThemeProps({ props: inProps, name: "Alert" });
182
183
  const { title, content, actions, color = "primary", size = "md", ...innerProps } = props;
183
184
  const invertedColors = props.invertedColors || props.variant === "solid";
184
185
  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)));
@@ -583,7 +584,7 @@ var Autocomplete_default = Autocomplete;
583
584
 
584
585
  // src/components/Avatar/Avatar.tsx
585
586
  import React6, { forwardRef as forwardRef2, useMemo as useMemo2 } from "react";
586
- import { Avatar as JoyAvatar, AvatarGroup, styled as styled4, useThemeProps } from "@mui/joy";
587
+ import { Avatar as JoyAvatar, AvatarGroup, styled as styled4, useThemeProps as useThemeProps2 } from "@mui/joy";
587
588
  var StyledAvatar = styled4(JoyAvatar, {
588
589
  name: "Avatar",
589
590
  slot: "Root",
@@ -605,7 +606,7 @@ var defaultGetInitial = (name) => {
605
606
  }
606
607
  };
607
608
  var Avatar = forwardRef2(function Avatar2(inProps, ref) {
608
- const props = useThemeProps({
609
+ const props = useThemeProps2({
609
610
  props: inProps,
610
611
  name: "Avatar"
611
612
  });
@@ -825,7 +826,7 @@ var isSameMonth = (date1, date2) => {
825
826
 
826
827
  // src/components/Calendar/hooks/use-calendar-props.ts
827
828
  import { useCallback as useCallback4, useMemo as useMemo4, useState as useState3 } from "react";
828
- import { useThemeProps as useThemeProps2 } from "@mui/joy";
829
+ import { useThemeProps as useThemeProps3 } from "@mui/joy";
829
830
  var resolveView = (view, views) => {
830
831
  return views.includes(view) ? view : views[0];
831
832
  };
@@ -874,7 +875,7 @@ var useCalendarProps = (inProps) => {
874
875
  },
875
876
  [resolvedView, inProps, viewMonth, paginate]
876
877
  );
877
- const props = useThemeProps2({
878
+ const props = useThemeProps3({
878
879
  props: {
879
880
  locale: "default",
880
881
  views: ["day", "month"],
@@ -1926,7 +1927,7 @@ Input.displayName = "Input";
1926
1927
  var Input_default = Input;
1927
1928
 
1928
1929
  // src/components/CurrencyInput/CurrencyInput.tsx
1929
- import { styled as styled7, useThemeProps as useThemeProps3 } from "@mui/joy";
1930
+ import { styled as styled7, useThemeProps as useThemeProps4 } from "@mui/joy";
1930
1931
 
1931
1932
  // src/components/CurrencyInput/hooks/use-currency-setting.ts
1932
1933
  var CURRENCY_DECIMAL_MAP = {
@@ -2112,7 +2113,7 @@ var CurrencyInputRoot = styled7(Input_default, {
2112
2113
  overridesResolver: (props, styles) => styles.root
2113
2114
  })({});
2114
2115
  var CurrencyInput = React17.forwardRef(function CurrencyInput2(inProps, ref) {
2115
- const props = useThemeProps3({ props: inProps, name: "CurrencyInput" });
2116
+ const props = useThemeProps4({ props: inProps, name: "CurrencyInput" });
2116
2117
  const {
2117
2118
  currency = "USD",
2118
2119
  name,
@@ -2640,7 +2641,7 @@ import { AnimatePresence as AnimatePresence2 } from "framer-motion";
2640
2641
  import React19, { forwardRef as forwardRef6, useCallback as useCallback9, useEffect as useEffect4, useImperativeHandle, useRef as useRef4, useState as useState8 } from "react";
2641
2642
  import { IMaskInput, IMask } from "react-imask";
2642
2643
  import CalendarTodayIcon from "@mui/icons-material/CalendarToday";
2643
- import { styled as styled10, useThemeProps as useThemeProps4 } from "@mui/joy";
2644
+ import { styled as styled10, useThemeProps as useThemeProps5 } from "@mui/joy";
2644
2645
  import { FocusTrap, ClickAwayListener, Popper as Popper2 } from "@mui/base";
2645
2646
 
2646
2647
  // src/components/Sheet/Sheet.tsx
@@ -2828,7 +2829,7 @@ var TextMaskAdapter3 = React19.forwardRef(function TextMaskAdapter4(props, ref)
2828
2829
  );
2829
2830
  });
2830
2831
  var DatePicker = forwardRef6((inProps, ref) => {
2831
- const props = useThemeProps4({ props: inProps, name: "DatePicker" });
2832
+ const props = useThemeProps5({ props: inProps, name: "DatePicker" });
2832
2833
  const {
2833
2834
  onChange,
2834
2835
  disabled,
@@ -4208,7 +4209,7 @@ import PreviousIcon from "@mui/icons-material/ChevronLeftRounded";
4208
4209
  import NextIcon from "@mui/icons-material/ChevronRightRounded";
4209
4210
  import FirstPageIcon from "@mui/icons-material/FirstPageRounded";
4210
4211
  import LastPageIcon from "@mui/icons-material/LastPageRounded";
4211
- import { styled as styled13 } from "@mui/joy";
4212
+ import { styled as styled13, useThemeProps as useThemeProps6 } from "@mui/joy";
4212
4213
  var PaginationButton = styled13(Button_default, {
4213
4214
  name: "Pagination",
4214
4215
  slot: "button"
@@ -4259,7 +4260,8 @@ var PaginationContainer = styled13(Stack_default, {
4259
4260
  lg: theme.spacing(2)
4260
4261
  }[size]
4261
4262
  }));
4262
- function Pagination(props) {
4263
+ function Pagination(inProps) {
4264
+ const props = useThemeProps6({ props: inProps, name: "Pagination" });
4263
4265
  const {
4264
4266
  paginationModel: _paginationModel,
4265
4267
  defaultPaginationModel = { page: 1, pageSize: 25 },
@@ -4920,7 +4922,7 @@ DataTable.displayName = "DataTable";
4920
4922
  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";
4921
4923
  import { IMaskInput as IMaskInput2, IMask as IMask2 } from "react-imask";
4922
4924
  import CalendarTodayIcon2 from "@mui/icons-material/CalendarToday";
4923
- import { styled as styled14, useThemeProps as useThemeProps5 } from "@mui/joy";
4925
+ import { styled as styled14, useThemeProps as useThemeProps7 } from "@mui/joy";
4924
4926
  import { FocusTrap as FocusTrap2, ClickAwayListener as ClickAwayListener2, Popper as Popper3 } from "@mui/base";
4925
4927
  var hasAlphabeticMonth2 = (format) => /MMMM|MMM/.test(format);
4926
4928
  var CalendarButton2 = styled14(IconButton_default, {
@@ -5096,7 +5098,7 @@ var TextMaskAdapter5 = React27.forwardRef(function TextMaskAdapter6(props, ref)
5096
5098
  );
5097
5099
  });
5098
5100
  var DateRangePicker = forwardRef8((inProps, ref) => {
5099
- const props = useThemeProps5({ props: inProps, name: "DateRangePicker" });
5101
+ const props = useThemeProps7({ props: inProps, name: "DateRangePicker" });
5100
5102
  const {
5101
5103
  onChange,
5102
5104
  disabled,
@@ -5493,6 +5495,7 @@ var InsetDrawer = styled20(JoyDrawer2)(({ theme }) => ({
5493
5495
  // src/components/FilterableCheckboxGroup/FilterableCheckboxGroup.tsx
5494
5496
  import React32, { useCallback as useCallback15, useEffect as useEffect9, useMemo as useMemo13, useRef as useRef9, useState as useState12 } from "react";
5495
5497
  import SearchIcon from "@mui/icons-material/Search";
5498
+ import { useThemeProps as useThemeProps8 } from "@mui/joy";
5496
5499
  import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
5497
5500
  function LabelWithTooltip(props) {
5498
5501
  const { label, size } = props;
@@ -5525,7 +5528,8 @@ function LabelWithTooltip(props) {
5525
5528
  }
5526
5529
  return labelContent;
5527
5530
  }
5528
- function FilterableCheckboxGroup(props) {
5531
+ function FilterableCheckboxGroup(inProps) {
5532
+ const props = useThemeProps8({ props: inProps, name: "FilterableCheckboxGroup" });
5529
5533
  const {
5530
5534
  value,
5531
5535
  options,
@@ -5953,7 +5957,7 @@ MenuButton2.displayName = "MenuButton";
5953
5957
  // src/components/MonthPicker/MonthPicker.tsx
5954
5958
  import React36, { forwardRef as forwardRef9, useCallback as useCallback16, useEffect as useEffect11, useImperativeHandle as useImperativeHandle4, useRef as useRef10, useState as useState14 } from "react";
5955
5959
  import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
5956
- import { styled as styled21, useThemeProps as useThemeProps6 } from "@mui/joy";
5960
+ import { styled as styled21, useThemeProps as useThemeProps9 } from "@mui/joy";
5957
5961
  import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
5958
5962
  var StyledPopper3 = styled21(Popper4, {
5959
5963
  name: "MonthPicker",
@@ -6008,7 +6012,7 @@ function parseDate3(dateString, format) {
6008
6012
  return result;
6009
6013
  }
6010
6014
  var MonthPicker = forwardRef9((inProps, ref) => {
6011
- const props = useThemeProps6({ props: inProps, name: "MonthPicker" });
6015
+ const props = useThemeProps9({ props: inProps, name: "MonthPicker" });
6012
6016
  const {
6013
6017
  onChange,
6014
6018
  disabled,
@@ -6208,7 +6212,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
6208
6212
  import React37, { forwardRef as forwardRef10, useCallback as useCallback17, useEffect as useEffect12, useImperativeHandle as useImperativeHandle5, useMemo as useMemo14, useRef as useRef11, useState as useState15 } from "react";
6209
6213
  import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
6210
6214
  import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
6211
- import { styled as styled22, useThemeProps as useThemeProps7 } from "@mui/joy";
6215
+ import { styled as styled22, useThemeProps as useThemeProps10 } from "@mui/joy";
6212
6216
  import { FocusTrap as FocusTrap4, ClickAwayListener as ClickAwayListener4, Popper as Popper5 } from "@mui/base";
6213
6217
  var hasAlphabeticMonth3 = (format) => /MMMM|MMM/.test(format);
6214
6218
  var StyledPopper4 = styled22(Popper5, {
@@ -6297,7 +6301,7 @@ var TextMaskAdapter7 = React37.forwardRef(function TextMaskAdapter8(props, ref)
6297
6301
  );
6298
6302
  });
6299
6303
  var MonthRangePicker = forwardRef10((inProps, ref) => {
6300
- const props = useThemeProps7({ props: inProps, name: "MonthRangePicker" });
6304
+ const props = useThemeProps10({ props: inProps, name: "MonthRangePicker" });
6301
6305
  const {
6302
6306
  onChange,
6303
6307
  disabled,
@@ -6617,7 +6621,7 @@ Navigator.displayName = "Navigator";
6617
6621
  // src/components/PercentageInput/PercentageInput.tsx
6618
6622
  import React41, { useCallback as useCallback18, useMemo as useMemo15, useState as useState16 } from "react";
6619
6623
  import { NumericFormat as NumericFormat2 } from "react-number-format";
6620
- import { styled as styled25, useThemeProps as useThemeProps8 } from "@mui/joy";
6624
+ import { styled as styled25, useThemeProps as useThemeProps11 } from "@mui/joy";
6621
6625
  var padDecimal = (value, decimalScale) => {
6622
6626
  const [integer, decimal = ""] = `${value}`.split(".");
6623
6627
  return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
@@ -6651,7 +6655,7 @@ var PercentageInputRoot = styled25(Input_default, {
6651
6655
  })({});
6652
6656
  var PercentageInput = React41.forwardRef(
6653
6657
  function PercentageInput2(inProps, ref) {
6654
- const props = useThemeProps8({ props: inProps, name: "PercentageInput" });
6658
+ const props = useThemeProps11({ props: inProps, name: "PercentageInput" });
6655
6659
  const {
6656
6660
  name,
6657
6661
  onChange,
@@ -6913,7 +6917,7 @@ RadioList.displayName = "RadioList";
6913
6917
 
6914
6918
  // src/components/SearchBar/SearchBar.tsx
6915
6919
  import * as React44 from "react";
6916
- import { styled as styled27, useThemeProps as useThemeProps9 } from "@mui/joy/styles";
6920
+ import { styled as styled27, useThemeProps as useThemeProps12 } from "@mui/joy/styles";
6917
6921
  import Box2 from "@mui/joy/Box";
6918
6922
  import SearchRoundedIcon from "@mui/icons-material/SearchRounded";
6919
6923
  import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
@@ -6933,7 +6937,7 @@ var SearchBarRoot = styled27(Box2, {
6933
6937
  flexShrink: 0
6934
6938
  }));
6935
6939
  var SearchBar = React44.forwardRef(function SearchBar2(inProps, ref) {
6936
- const props = useThemeProps9({ props: inProps, name: "SearchBar" });
6940
+ const props = useThemeProps12({ props: inProps, name: "SearchBar" });
6937
6941
  const { showSelect = false, options, placeholder: placeholderProp, value, onChange, onSearch, ...other } = props;
6938
6942
  const [selectVal, setSelectVal] = React44.useState(options?.[0]?.value ?? "");
6939
6943
  const [isHovered, setIsHovered] = React44.useState(false);
@@ -7424,6 +7428,21 @@ var defaultTheme = extendTheme({
7424
7428
  fontWeight: "var(--ceed-fontWeight-xl, 700)"
7425
7429
  }
7426
7430
  }
7431
+ },
7432
+ Alert: {
7433
+ defaultProps: {
7434
+ size: "md"
7435
+ }
7436
+ },
7437
+ Pagination: {
7438
+ defaultProps: {
7439
+ size: "md"
7440
+ }
7441
+ },
7442
+ FilterableCheckboxGroup: {
7443
+ defaultProps: {
7444
+ size: "md"
7445
+ }
7427
7446
  }
7428
7447
  }
7429
7448
  });
@@ -7968,5 +7987,5 @@ export {
7968
7987
  useColorScheme,
7969
7988
  useMenuButton,
7970
7989
  useTheme2 as useTheme,
7971
- useThemeProps10 as useThemeProps
7990
+ useThemeProps13 as useThemeProps
7972
7991
  };