@antscorp/antsomi-ui 1.3.5-beta.704 → 1.3.5-beta.705

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,2 @@
1
+ export { Image } from 'antd';
2
+ export type { ImageProps } from 'antd';
@@ -0,0 +1 @@
1
+ export { Image } from 'antd';
@@ -0,0 +1 @@
1
+ export * from './Image';
@@ -0,0 +1 @@
1
+ export * from './Image';
@@ -30,6 +30,7 @@ export { Rate } from './Rate';
30
30
  export { SliderV2 } from './SliderV2';
31
31
  export { InputDynamic } from './InputDynamic';
32
32
  export { ContentEditable } from './ContentEditable';
33
+ export { Image } from './Image';
33
34
  export * from './Flex';
34
35
  export * from './PreviewTabs';
35
36
  export * from './MobileFrame';
@@ -46,3 +47,4 @@ export * from './Avatar';
46
47
  export type { SliderProps } from './Slider';
47
48
  export type { PaginationProps } from './Pagination';
48
49
  export type { InputDynamicProps } from './InputDynamic';
50
+ export type { ImageProps } from './Image';
@@ -30,6 +30,7 @@ export { Rate } from './Rate';
30
30
  export { SliderV2 } from './SliderV2';
31
31
  export { InputDynamic } from './InputDynamic';
32
32
  export { ContentEditable } from './ContentEditable';
33
+ export { Image } from './Image';
33
34
  export * from './Flex';
34
35
  export * from './PreviewTabs';
35
36
  export * from './MobileFrame';
@@ -25,12 +25,18 @@ import { CALCULATION_DATES, CALCULATION_TYPES, DATE_TYPES, DEFAULT_DATE_FORMAT,
25
25
  import { globalToken, THEME } from '@antscorp/antsomi-ui/es/constants';
26
26
  import { useOutsideClick } from '@antscorp/antsomi-ui/es/hooks/useOutsideClick';
27
27
  const isDisabledSpecificTime = (current, info, disabledTime, date) => {
28
- if (info.type !== 'time' || typeof current !== 'number' || !disabledTime)
28
+ if (typeof current !== 'number' || !disabledTime)
29
29
  return false;
30
- const isDisabledHour = info.subType === 'hour' && disabledTime(date).disabledHours().includes(current);
31
- const isDisabledMinute = info.subType === 'minute' && disabledTime(date).disabledMinutes().includes(current);
32
- const isDisabledSecond = info.subType === 'second' && disabledTime(date).disabledSeconds().includes(current);
33
- return isDisabledHour || isDisabledMinute || isDisabledSecond;
30
+ switch (info.subType) {
31
+ case 'hour':
32
+ return disabledTime(date).disabledHours().includes(current);
33
+ case 'minute':
34
+ return disabledTime(date).disabledMinutes().includes(current);
35
+ case 'second':
36
+ return disabledTime(date).disabledSeconds().includes(current);
37
+ default:
38
+ return false;
39
+ }
34
40
  };
35
41
  const PATH = '@antscorp/antsomi-ui/es/components/molecules/DatePicker/components/Advanced/DatePickerAdvanced.tsx';
36
42
  const { useToken } = theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.704",
3
+ "version": "1.3.5-beta.705",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",