@antscorp/antsomi-ui 1.3.5-beta.890 → 1.3.5-beta.892

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.
@@ -0,0 +1,7 @@
1
+ import { type AppProps as AntdAppProps } from 'antd';
2
+ type AppProps = AntdAppProps;
3
+ declare const App: {
4
+ (props: AppProps): import("react/jsx-runtime").JSX.Element;
5
+ useApp: () => import("antd/es/app/context").useAppProps;
6
+ };
7
+ export { App, type AppProps };
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { App as AntdApp } from 'antd';
3
+ const App = (props) => (_jsx(AntdApp, { notification: { placement: 'bottomLeft', maxCount: 3 }, ...props }));
4
+ App.useApp = AntdApp.useApp;
5
+ export { App };
@@ -0,0 +1 @@
1
+ export * from './App';
@@ -0,0 +1 @@
1
+ export * from './App';
@@ -33,6 +33,7 @@ export { ContentEditable } from './ContentEditable';
33
33
  export { Image } from './Image';
34
34
  export { IconField } from './IconField';
35
35
  export { Suspense } from './Suspense';
36
+ export { App } from './App';
36
37
  export * from './Flex';
37
38
  export * from './PreviewTabs';
38
39
  export * from './MobileFrame';
@@ -51,3 +52,4 @@ export type { SliderProps } from './Slider';
51
52
  export type { PaginationProps } from './Pagination';
52
53
  export type { InputDynamicProps } from './InputDynamic';
53
54
  export type { ImageProps } from './Image';
55
+ export type { AppProps } from './App';
@@ -33,6 +33,7 @@ export { ContentEditable } from './ContentEditable';
33
33
  export { Image } from './Image';
34
34
  export { IconField } from './IconField';
35
35
  export { Suspense } from './Suspense';
36
+ export { App } from './App';
36
37
  export * from './Flex';
37
38
  export * from './PreviewTabs';
38
39
  export * from './MobileFrame';
@@ -1,12 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // Libraries
3
3
  import { StyleProvider } from '@ant-design/cssinjs';
4
- import { ConfigProvider as AntdConfigProvider, App } from 'antd';
4
+ import { ConfigProvider as AntdConfigProvider } from 'antd';
5
5
  import dayjs from 'dayjs';
6
6
  import localeData from 'dayjs/plugin/localeData';
7
7
  import relativeTime from 'dayjs/plugin/relativeTime';
8
8
  import weekday from 'dayjs/plugin/weekday';
9
9
  import { useEffect, useRef } from 'react';
10
+ import { App } from '../../components';
10
11
  /** dayjs plugins for timezone */
11
12
  import timezone from 'dayjs/plugin/timezone';
12
13
  import utc from 'dayjs/plugin/utc';
@@ -15,6 +16,8 @@ import { ANTSOMI_COMPONENT_PREFIX_CLS, THEME } from '@antscorp/antsomi-ui/es/con
15
16
  // Style
16
17
  import '@antscorp/antsomi-ui/es/assets/css/main.scss';
17
18
  import { GlobalStyle } from './GlobalStyle';
19
+ // Initialize languages
20
+ // import '@antscorp/antsomi-ui/es/locales/i18n';
18
21
  import 'animate.css';
19
22
  import { AppConfigProvider } from '../AppConfigProvider';
20
23
  // Hooks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.890",
3
+ "version": "1.3.5-beta.892",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",