rsuite 5.74.0 → 5.74.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.
@@ -3,5 +3,5 @@ interface FormattedDateProps {
3
3
  date: Date;
4
4
  formatStr: string;
5
5
  }
6
- declare function FormattedDate({ date, formatStr }: FormattedDateProps): React.JSX.Element;
6
+ export declare function FormattedDate({ date, formatStr }: FormattedDateProps): React.JSX.Element;
7
7
  export default FormattedDate;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import React from 'react';
3
3
  import { useCustom } from "./useCustom.js";
4
- function FormattedDate(_ref) {
4
+ export function FormattedDate(_ref) {
5
5
  var date = _ref.date,
6
6
  formatStr = _ref.formatStr;
7
7
  var _useCustom = useCustom('Calendar'),
@@ -1,7 +1,7 @@
1
- import CustomProvider, { CustomContext } from './CustomProvider';
2
- import FormattedDate from './FormattedDate';
3
- export { CustomContext, FormattedDate };
1
+ import CustomProvider from './CustomProvider';
2
+ export { FormattedDate } from './FormattedDate';
4
3
  export { useCustom } from './useCustom';
4
+ export { CustomContext } from './CustomProvider';
5
5
  export type { CustomProviderProps } from './CustomProvider';
6
6
  export type { ReactSuiteComponents } from './types';
7
7
  export default CustomProvider;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import CustomProvider, { CustomContext } from "./CustomProvider.js";
3
- import FormattedDate from "./FormattedDate.js";
4
- export { CustomContext, FormattedDate };
2
+ import CustomProvider from "./CustomProvider.js";
3
+ export { FormattedDate } from "./FormattedDate.js";
5
4
  export { useCustom } from "./useCustom.js";
5
+ export { CustomContext } from "./CustomProvider.js";
6
6
  export default CustomProvider;
@@ -1,7 +1,9 @@
1
1
  'use client';
2
2
  import { useMemo, useContext } from 'react';
3
3
  import toaster from "../toaster/index.js";
4
- import { CustomContext } from "../CustomProvider/index.js";
4
+ // From CustomProvider/CustomProvider.tsx import CustomContext instead of directly from 'CustomProvider/index.ts'
5
+ // because babel compiles commonjs, which causes CustomContext to be undefined
6
+ import { CustomContext } from "../CustomProvider/CustomProvider.js";
5
7
  /**
6
8
  * Toaster display brief, temporary notifications of actions, errors, or other events in an application.
7
9
  * It is often used with the Message and Notification components.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.74.0",
3
+ "version": "5.74.1",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",