@antscorp/antsomi-ui 1.3.3-beta.59 → 1.3.3-beta.60
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.
|
@@ -12,7 +12,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
// Libraries
|
|
13
13
|
import { StyleProvider } from '@ant-design/cssinjs';
|
|
14
14
|
import { ConfigProvider as AntdConfigProvider } from 'antd';
|
|
15
|
+
import dayjs from 'dayjs';
|
|
15
16
|
import React, { useEffect } from 'react';
|
|
17
|
+
import weekday from 'dayjs/plugin/weekday';
|
|
18
|
+
import localeData from 'dayjs/plugin/localeData';
|
|
16
19
|
// Constants
|
|
17
20
|
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
18
21
|
// Style
|
|
@@ -21,6 +24,9 @@ import '@antscorp/antsomi-ui/es/assets/css/main.scss';
|
|
|
21
24
|
// Initialize languages
|
|
22
25
|
// import '@antscorp/antsomi-ui/es/locales/i18n';
|
|
23
26
|
import i18next from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
27
|
+
// NOTE: HOT fix DatePicker Advanced
|
|
28
|
+
dayjs.extend(weekday);
|
|
29
|
+
dayjs.extend(localeData);
|
|
24
30
|
const ConfigProvider = props => {
|
|
25
31
|
// Props
|
|
26
32
|
const { children, locale } = props, restOfProps = __rest(props, ["children", "locale"]);
|
|
@@ -4,8 +4,6 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|
|
4
4
|
import { Tooltip, theme } from 'antd';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import weekday from 'dayjs/plugin/weekday';
|
|
8
|
-
import localeData from 'dayjs/plugin/localeData';
|
|
9
7
|
// Hooks
|
|
10
8
|
import { useDeepCompareEffect } from '../../../../../hooks';
|
|
11
9
|
// Icons
|
|
@@ -28,9 +26,6 @@ import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
|
28
26
|
const PATH = '@antscorp/antsomi-ui/es/components/molecules/DatePicker/components/Advanced/DatePickerAdvanced.tsx';
|
|
29
27
|
const { useToken } = theme;
|
|
30
28
|
const { Text } = Typography;
|
|
31
|
-
// NOTE: HOT FIX
|
|
32
|
-
dayjs.extend(weekday);
|
|
33
|
-
dayjs.extend(localeData);
|
|
34
29
|
export const AdvancedPicker = props => {
|
|
35
30
|
var _a, _b;
|
|
36
31
|
// Props
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.3.3-beta.
|
|
3
|
+
"version": "1.3.3-beta.60",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"dist/*",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"antd": "5.10.0",
|
|
70
70
|
"axios": "^1.4.0",
|
|
71
71
|
"babel-plugin-file-loader": "^2.0.0",
|
|
72
|
-
"dayjs": "^1.11.
|
|
72
|
+
"dayjs": "^1.11.10",
|
|
73
73
|
"font-awesome": "4.7.0",
|
|
74
74
|
"highlight.js": "^11.8.0",
|
|
75
75
|
"html-entities": "^2.0.2",
|