@fle-ui/next 2.0.1 → 2.0.2
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/fui.min.css +1 -1
- package/es/alert/index.d.ts +3 -3
- package/es/anchor/index.d.ts +3 -3
- package/es/badge/index.d.ts +2 -2
- package/es/badge/index.js +1 -1
- package/es/breadcrumb/Breadcrumb.d.ts +3 -3
- package/es/breadcrumb/BreadcrumbItem.d.ts +3 -3
- package/es/breadcrumb/BreadcrumbSeparator.d.ts +3 -4
- package/es/button/button.d.ts +2 -2
- package/es/calendar/locale/uz_UZ.d.ts +2 -0
- package/es/calendar/locale/uz_UZ.js +2 -0
- package/es/card/style/index-pure.less +1 -0
- package/es/card/style/index.css +1 -0
- package/es/checkbox/index.d.ts +2 -2
- package/es/collapse/Collapse.d.ts +3 -3
- package/es/date-picker/generatePicker/generateRangePicker.js +2 -2
- package/es/date-picker/generatePicker/generateSinglePicker.js +3 -3
- package/es/date-picker/locale/uz_UZ.d.ts +3 -0
- package/es/date-picker/locale/uz_UZ.js +21 -0
- package/es/divider/style/index-pure.less +1 -5
- package/es/divider/style/index.css +1 -5
- package/es/drawer/index.js +1 -1
- package/es/dropdown/dropdown-button.d.ts +2 -3
- package/es/dropdown/dropdown.d.ts +5 -3
- package/es/dropdown/dropdown.js +4 -2
- package/es/dropdown/style/index-pure.less +1 -1
- package/es/dropdown/style/index.css +12 -6
- package/es/empty/index.d.ts +3 -3
- package/es/form/FormItem/index.d.ts +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/grid/row.js +4 -0
- package/es/input/index.d.ts +2 -2
- package/es/input/style/affix.less +1 -1
- package/es/input/style/index.css +1 -1
- package/es/layout/index.d.ts +3 -3
- package/es/locale/pt_BR.js +1 -0
- package/es/locale/uz_UZ.d.ts +3 -0
- package/es/locale/uz_UZ.js +128 -0
- package/es/locale-provider/uz_UZ.d.ts +2 -0
- package/es/locale-provider/uz_UZ.js +2 -0
- package/es/mentions/index.d.ts +3 -3
- package/es/menu/style/index-pure.less +1 -0
- package/es/menu/style/index.css +1 -0
- package/es/message/index.d.ts +5 -5
- package/es/pagination/Select.d.ts +4 -4
- package/es/popover/style/index-pure.less +0 -1
- package/es/popover/style/index.css +0 -1
- package/es/radio/index.d.ts +2 -2
- package/es/result/index.d.ts +4 -4
- package/es/segmented/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +3 -4
- package/es/space/index.d.ts +2 -2
- package/es/statistic/Countdown.d.ts +1 -1
- package/es/statistic/Statistic.d.ts +3 -3
- package/es/steps/index.d.ts +3 -3
- package/es/steps/style/index.css +22 -5
- package/es/steps/style/progress.less +17 -4
- package/es/steps/style/rtl.less +20 -4
- package/es/steps/style/vertical.less +2 -2
- package/es/style/theme.less +0 -2
- package/es/switch/index.d.ts +1 -2
- package/es/table/Table.d.ts +3 -3
- package/es/table/hooks/useSorter.js +1 -1
- package/es/time-picker/index.js +4 -3
- package/es/time-picker/locale/uz_UZ.d.ts +3 -0
- package/es/time-picker/locale/uz_UZ.js +5 -0
- package/es/timeline/Timeline.d.ts +3 -3
- package/es/tree-select/index.d.ts +3 -3
- package/es/upload/index.d.ts +3 -3
- package/es/version/version.d.ts +1 -1
- package/es/version/version.js +1 -1
- package/lib/_util/transButton.js +1 -3
- package/lib/affix/index.js +1 -3
- package/lib/alert/index.d.ts +3 -3
- package/lib/alert/index.js +1 -3
- package/lib/anchor/index.d.ts +3 -3
- package/lib/avatar/avatar.js +1 -3
- package/lib/badge/ScrollNumber.js +1 -3
- package/lib/badge/index.d.ts +2 -2
- package/lib/badge/index.js +2 -4
- package/lib/breadcrumb/Breadcrumb.d.ts +3 -3
- package/lib/breadcrumb/Breadcrumb.js +1 -3
- package/lib/breadcrumb/BreadcrumbItem.d.ts +3 -3
- package/lib/breadcrumb/BreadcrumbItem.js +1 -3
- package/lib/breadcrumb/BreadcrumbSeparator.d.ts +3 -4
- package/lib/button/button-group.js +1 -3
- package/lib/button/button.d.ts +2 -2
- package/lib/button/button.js +1 -3
- package/lib/calendar/locale/uz_UZ.d.ts +2 -0
- package/lib/calendar/locale/uz_UZ.js +13 -0
- package/lib/card/Card.js +1 -3
- package/lib/card/Grid.js +1 -3
- package/lib/card/Meta.js +1 -3
- package/lib/card/style/index-pure.less +1 -0
- package/lib/card/style/index.css +1 -0
- package/lib/carousel/index.js +1 -3
- package/lib/cascader/index.js +1 -3
- package/lib/checkbox/Checkbox.js +1 -3
- package/lib/checkbox/Group.js +1 -3
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/collapse/Collapse.d.ts +3 -3
- package/lib/comment/index.js +1 -3
- package/lib/date-picker/generatePicker/generateRangePicker.js +3 -5
- package/lib/date-picker/generatePicker/generateSinglePicker.js +4 -6
- package/lib/date-picker/locale/uz_UZ.d.ts +3 -0
- package/lib/date-picker/locale/uz_UZ.js +34 -0
- package/lib/divider/index.js +1 -3
- package/lib/divider/style/index-pure.less +1 -5
- package/lib/divider/style/index.css +1 -5
- package/lib/drawer/index.js +2 -4
- package/lib/dropdown/dropdown-button.d.ts +2 -3
- package/lib/dropdown/dropdown-button.js +1 -3
- package/lib/dropdown/dropdown.d.ts +5 -3
- package/lib/dropdown/dropdown.js +4 -2
- package/lib/dropdown/style/index-pure.less +1 -1
- package/lib/dropdown/style/index.css +12 -6
- package/lib/empty/index.d.ts +3 -3
- package/lib/empty/index.js +1 -3
- package/lib/form/Form.js +1 -3
- package/lib/form/FormItem/ItemHolder.js +1 -3
- package/lib/form/FormItem/index.d.ts +3 -3
- package/lib/form/FormItemLabel.js +1 -3
- package/lib/form/FormList.js +1 -3
- package/lib/form/index.d.ts +3 -3
- package/lib/grid/col.js +1 -3
- package/lib/grid/row.js +5 -3
- package/lib/image/PreviewGroup.js +1 -3
- package/lib/image/index.js +1 -3
- package/lib/input/Input.js +1 -3
- package/lib/input/Password.js +1 -3
- package/lib/input/Search.js +1 -3
- package/lib/input/TextArea.js +1 -3
- package/lib/input/index.d.ts +2 -2
- package/lib/input/style/affix.less +1 -1
- package/lib/input/style/index.css +1 -1
- package/lib/input-number/index.js +1 -3
- package/lib/layout/Sider.js +1 -3
- package/lib/layout/index.d.ts +3 -3
- package/lib/layout/layout.js +1 -3
- package/lib/list/Item.js +1 -3
- package/lib/list/index.js +1 -3
- package/lib/locale/pt_BR.js +1 -0
- package/lib/locale/uz_UZ.d.ts +3 -0
- package/lib/locale/uz_UZ.js +143 -0
- package/lib/locale-provider/uz_UZ.d.ts +2 -0
- package/lib/locale-provider/uz_UZ.js +13 -0
- package/lib/mentions/index.d.ts +3 -3
- package/lib/mentions/index.js +1 -3
- package/lib/menu/MenuDivider.js +1 -3
- package/lib/menu/MenuItem.js +1 -3
- package/lib/menu/OverrideContext.js +1 -3
- package/lib/menu/hooks/useItems.js +1 -3
- package/lib/menu/index.js +1 -3
- package/lib/menu/style/index-pure.less +1 -0
- package/lib/menu/style/index.css +1 -0
- package/lib/message/index.d.ts +5 -5
- package/lib/modal/Modal.js +1 -3
- package/lib/modal/confirm.js +1 -3
- package/lib/notification/index.js +7 -9
- package/lib/pagination/Pagination.js +1 -3
- package/lib/pagination/Select.d.ts +4 -4
- package/lib/popconfirm/index.js +1 -3
- package/lib/popover/index.js +1 -3
- package/lib/popover/style/index-pure.less +0 -1
- package/lib/popover/style/index.css +0 -1
- package/lib/progress/Line.js +1 -3
- package/lib/progress/progress.js +1 -3
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/radio.js +1 -3
- package/lib/radio/radioButton.js +1 -3
- package/lib/rate/index.js +1 -3
- package/lib/result/index.d.ts +4 -4
- package/lib/segmented/index.d.ts +1 -1
- package/lib/segmented/index.js +1 -3
- package/lib/select/index.js +1 -3
- package/lib/skeleton/Skeleton.d.ts +3 -4
- package/lib/slider/index.js +1 -3
- package/lib/space/Compact.js +1 -3
- package/lib/space/index.d.ts +2 -2
- package/lib/space/index.js +1 -3
- package/lib/spin/index.js +1 -3
- package/lib/statistic/Countdown.d.ts +1 -1
- package/lib/statistic/Statistic.d.ts +3 -3
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/index.js +1 -3
- package/lib/steps/style/index.css +22 -5
- package/lib/steps/style/progress.less +17 -4
- package/lib/steps/style/rtl.less +20 -4
- package/lib/steps/style/vertical.less +2 -2
- package/lib/style/theme.less +0 -2
- package/lib/switch/index.d.ts +1 -2
- package/lib/switch/index.js +1 -3
- package/lib/table/Table.d.ts +3 -3
- package/lib/table/hooks/usePagination.js +1 -3
- package/lib/table/hooks/useSorter.js +1 -1
- package/lib/tabs/hooks/useLegacyItems.js +1 -3
- package/lib/tabs/index.js +1 -3
- package/lib/tag/CheckableTag.js +1 -3
- package/lib/tag/index.js +1 -3
- package/lib/time-picker/index.js +5 -6
- package/lib/time-picker/locale/uz_UZ.d.ts +3 -0
- package/lib/time-picker/locale/uz_UZ.js +12 -0
- package/lib/timeline/Timeline.d.ts +3 -3
- package/lib/timeline/Timeline.js +1 -3
- package/lib/timeline/TimelineItem.js +1 -3
- package/lib/tooltip/index.js +1 -3
- package/lib/tree/DirectoryTree.js +1 -3
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/tree-select/index.js +1 -3
- package/lib/typography/Base/index.js +1 -3
- package/lib/typography/Link.js +1 -3
- package/lib/typography/Text.js +1 -3
- package/lib/typography/Title.js +1 -3
- package/lib/typography/Typography.js +1 -3
- package/lib/upload/Dragger.js +1 -3
- package/lib/upload/Upload.js +61 -63
- package/lib/upload/index.d.ts +3 -3
- package/lib/version/version.d.ts +1 -1
- package/lib/version/version.js +1 -1
- package/package.json +2 -2
package/es/alert/index.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export interface AlertProps {
|
|
|
31
31
|
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
32
32
|
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
type CompoundedComponent = React.FC<AlertProps> & {
|
|
35
35
|
ErrorBoundary: typeof ErrorBoundary;
|
|
36
|
-
}
|
|
37
|
-
declare const Alert:
|
|
36
|
+
};
|
|
37
|
+
declare const Alert: CompoundedComponent;
|
|
38
38
|
export default Alert;
|
package/es/anchor/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import AnchorLink from './AnchorLink';
|
|
|
3
3
|
export { AnchorProps } from './Anchor';
|
|
4
4
|
export { AnchorLinkProps } from './AnchorLink';
|
|
5
5
|
type InternalAnchorType = typeof InternalAnchor;
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = InternalAnchorType & {
|
|
7
7
|
Link: typeof AnchorLink;
|
|
8
|
-
}
|
|
9
|
-
declare const Anchor:
|
|
8
|
+
};
|
|
9
|
+
declare const Anchor: CompoundedComponent;
|
|
10
10
|
export default Anchor;
|
package/es/badge/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import type { PresetColorType, PresetStatusColorType } from '../_util/colors';
|
|
|
3
3
|
import type { LiteralUnion } from '../_util/type';
|
|
4
4
|
import Ribbon from './Ribbon';
|
|
5
5
|
export { ScrollNumberProps } from './ScrollNumber';
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.FC<BadgeProps> & {
|
|
7
7
|
Ribbon: typeof Ribbon;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export interface BadgeProps {
|
|
10
10
|
/** Number to show in badge */
|
|
11
11
|
count?: React.ReactNode;
|
package/es/badge/index.js
CHANGED
|
@@ -58,7 +58,7 @@ var Badge = function Badge(_a) {
|
|
|
58
58
|
|
|
59
59
|
var numberedDisplayCount = count > overflowCount ? "".concat(overflowCount, "+") : count;
|
|
60
60
|
var isZero = numberedDisplayCount === '0' || numberedDisplayCount === 0;
|
|
61
|
-
var ignoreCount = count === null || isZero;
|
|
61
|
+
var ignoreCount = count === null || isZero && !showZero;
|
|
62
62
|
var hasStatus = (status !== null && status !== undefined || color !== null && color !== undefined) && ignoreCount;
|
|
63
63
|
var showAsDot = dot && !isZero;
|
|
64
64
|
var mergedCount = showAsDot ? '' : numberedDisplayCount;
|
|
@@ -16,9 +16,9 @@ export interface BreadcrumbProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
type CompoundedComponent = React.FC<BreadcrumbProps> & {
|
|
20
20
|
Item: typeof BreadcrumbItem;
|
|
21
21
|
Separator: typeof BreadcrumbSeparator;
|
|
22
|
-
}
|
|
23
|
-
declare const Breadcrumb:
|
|
22
|
+
};
|
|
23
|
+
declare const Breadcrumb: CompoundedComponent;
|
|
24
24
|
export default Breadcrumb;
|
|
@@ -12,8 +12,8 @@ export interface BreadcrumbItemProps {
|
|
|
12
12
|
/** @deprecated Please use `menu` instead */
|
|
13
13
|
overlay?: DropdownProps['overlay'];
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
type CompoundedComponent = React.FC<BreadcrumbItemProps> & {
|
|
16
16
|
__ANT_BREADCRUMB_ITEM: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const BreadcrumbItem:
|
|
17
|
+
};
|
|
18
|
+
declare const BreadcrumbItem: CompoundedComponent;
|
|
19
19
|
export default BreadcrumbItem;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type CompoundedComponent = React.FC<{
|
|
3
3
|
children?: React.ReactNode;
|
|
4
|
-
}> {
|
|
5
|
-
|
|
6
|
-
declare const BreadcrumbSeparator: BreadcrumbSeparatorInterface;
|
|
4
|
+
}> & {};
|
|
5
|
+
declare const BreadcrumbSeparator: CompoundedComponent;
|
|
7
6
|
export default BreadcrumbSeparator;
|
package/es/button/button.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export type NativeButtonProps = {
|
|
|
40
40
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
41
41
|
} & BaseButtonProps & Omit<React.ButtonHTMLAttributes<any>, 'type' | 'onClick'>;
|
|
42
42
|
export type ButtonProps = Partial<AnchorButtonProps & NativeButtonProps>;
|
|
43
|
-
|
|
43
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>> & {
|
|
44
44
|
Group: typeof Group;
|
|
45
|
-
}
|
|
45
|
+
};
|
|
46
46
|
declare const Button: CompoundedComponent;
|
|
47
47
|
export default Button;
|
package/es/card/style/index.css
CHANGED
package/es/checkbox/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import type { CheckboxProps } from './Checkbox';
|
|
|
3
3
|
import Group from './Group';
|
|
4
4
|
export { CheckboxChangeEvent, CheckboxProps } from './Checkbox';
|
|
5
5
|
export { CheckboxGroupProps, CheckboxOptionType } from './Group';
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>> & {
|
|
7
7
|
Group: typeof Group;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
declare const Checkbox: CompoundedComponent;
|
|
10
10
|
export default Checkbox;
|
|
@@ -33,8 +33,8 @@ interface PanelProps {
|
|
|
33
33
|
extra?: React.ReactNode;
|
|
34
34
|
collapsible?: CollapsibleType;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
type CompoundedComponent = React.FC<CollapseProps> & {
|
|
37
37
|
Panel: typeof CollapsePanel;
|
|
38
|
-
}
|
|
39
|
-
declare const Collapse:
|
|
38
|
+
};
|
|
39
|
+
declare const Collapse: CompoundedComponent;
|
|
40
40
|
export default Collapse;
|
|
@@ -117,7 +117,6 @@ export default function generateRangePicker(generateConfig) {
|
|
|
117
117
|
}, /*#__PURE__*/React.createElement(SwapRightOutlined, null)),
|
|
118
118
|
disabled: mergedDisabled,
|
|
119
119
|
ref: innerRef,
|
|
120
|
-
dropdownClassName: popupClassName || dropdownClassName,
|
|
121
120
|
dropdownAlign: transPlacement2DropdownAlign(direction, placement),
|
|
122
121
|
placeholder: getRangePlaceholder(picker, locale, placeholder),
|
|
123
122
|
suffixIcon: suffixNode,
|
|
@@ -143,7 +142,8 @@ export default function generateRangePicker(generateConfig) {
|
|
|
143
142
|
getPopupContainer: customGetPopupContainer || getPopupContainer,
|
|
144
143
|
generateConfig: generateConfig,
|
|
145
144
|
components: Components,
|
|
146
|
-
direction: direction
|
|
145
|
+
direction: direction,
|
|
146
|
+
dropdownClassName: popupClassName || dropdownClassName
|
|
147
147
|
}));
|
|
148
148
|
});
|
|
149
149
|
});
|
|
@@ -98,7 +98,7 @@ export default function generatePicker(generateConfig) {
|
|
|
98
98
|
var rootPrefixCls = getPrefixCls(); // =================== Warning =====================
|
|
99
99
|
|
|
100
100
|
process.env.NODE_ENV !== "production" ? warning(picker !== 'quarter', displayName, "DatePicker.".concat(displayName, " is legacy usage. Please use DatePicker[picker='").concat(picker, "'] directly.")) : void 0;
|
|
101
|
-
process.env.NODE_ENV !== "production" ? warning(!dropdownClassName, 'DatePicker', '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.') : void 0; // ===================== Size =====================
|
|
101
|
+
process.env.NODE_ENV !== "production" ? warning(!dropdownClassName, mergedPicker === 'time' ? 'TimePicker' : 'DatePicker', '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.') : void 0; // ===================== Size =====================
|
|
102
102
|
|
|
103
103
|
var size = React.useContext(SizeContext);
|
|
104
104
|
var mergedSize = compactSize || customizeSize || size; // ===================== Disabled =====================
|
|
@@ -124,7 +124,6 @@ export default function generatePicker(generateConfig) {
|
|
|
124
124
|
placeholder: getPlaceholder(mergedPicker, locale, placeholder),
|
|
125
125
|
suffixIcon: suffixNode,
|
|
126
126
|
dropdownAlign: transPlacement2DropdownAlign(direction, placement),
|
|
127
|
-
dropdownClassName: popupClassName || dropdownClassName,
|
|
128
127
|
clearIcon: /*#__PURE__*/React.createElement(CloseCircleFilled, null),
|
|
129
128
|
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
130
129
|
className: "".concat(prefixCls, "-prev-icon")
|
|
@@ -148,7 +147,8 @@ export default function generatePicker(generateConfig) {
|
|
|
148
147
|
generateConfig: generateConfig,
|
|
149
148
|
components: Components,
|
|
150
149
|
direction: direction,
|
|
151
|
-
disabled: mergedDisabled
|
|
150
|
+
disabled: mergedDisabled,
|
|
151
|
+
dropdownClassName: popupClassName || dropdownClassName
|
|
152
152
|
}));
|
|
153
153
|
});
|
|
154
154
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import CalendarLocale from "rc-picker/es/locale/uz_UZ";
|
|
3
|
+
import TimePickerLocale from "../../time-picker/locale/uz_UZ"; // Merge into a locale object
|
|
4
|
+
|
|
5
|
+
var locale = {
|
|
6
|
+
lang: _extends({
|
|
7
|
+
placeholder: 'Sanani tanlang',
|
|
8
|
+
yearPlaceholder: 'Yilni tanlang',
|
|
9
|
+
quarterPlaceholder: 'Chorakni tanlang',
|
|
10
|
+
monthPlaceholder: 'Oyni tanlang',
|
|
11
|
+
weekPlaceholder: 'Haftani tanlang',
|
|
12
|
+
rangePlaceholder: ['Bosh sana', 'Oxirigi sana'],
|
|
13
|
+
rangeYearPlaceholder: ['Yilning boshi', 'Yilning oxiri'],
|
|
14
|
+
rangeMonthPlaceholder: ['Oyning boshi', 'Oyning oxiri'],
|
|
15
|
+
rangeWeekPlaceholder: ['Haftaning boshi', 'Haftaning oxiri']
|
|
16
|
+
}, CalendarLocale),
|
|
17
|
+
timePickerLocale: _extends({}, TimePickerLocale)
|
|
18
|
+
}; // All settings at:
|
|
19
|
+
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
20
|
+
|
|
21
|
+
export default locale;
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
&-horizontal&-with-text {
|
|
31
31
|
display: flex;
|
|
32
|
+
align-items: center;
|
|
32
33
|
margin: 16px 0;
|
|
33
34
|
color: @heading-color;
|
|
34
35
|
font-weight: 500;
|
|
@@ -41,7 +42,6 @@
|
|
|
41
42
|
&::before,
|
|
42
43
|
&::after {
|
|
43
44
|
position: relative;
|
|
44
|
-
top: 50%;
|
|
45
45
|
width: 50%;
|
|
46
46
|
border-top: @border-width-base solid transparent;
|
|
47
47
|
// Chrome not accept `inherit` in `border-top`
|
|
@@ -54,24 +54,20 @@
|
|
|
54
54
|
|
|
55
55
|
&-horizontal&-with-text-left {
|
|
56
56
|
&::before {
|
|
57
|
-
top: 50%;
|
|
58
57
|
width: @divider-orientation-margin;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
&::after {
|
|
62
|
-
top: 50%;
|
|
63
61
|
width: 100% - @divider-orientation-margin;
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
&-horizontal&-with-text-right {
|
|
68
66
|
&::before {
|
|
69
|
-
top: 50%;
|
|
70
67
|
width: 100% - @divider-orientation-margin;
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
&::after {
|
|
74
|
-
top: 50%;
|
|
75
71
|
width: @divider-orientation-margin;
|
|
76
72
|
}
|
|
77
73
|
}
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
.ant-divider-horizontal.ant-divider-with-text {
|
|
35
35
|
display: flex;
|
|
36
|
+
align-items: center;
|
|
36
37
|
margin: 16px 0;
|
|
37
38
|
color: rgba(0, 0, 0, 0.85);
|
|
38
39
|
font-weight: 500;
|
|
@@ -45,7 +46,6 @@
|
|
|
45
46
|
.ant-divider-horizontal.ant-divider-with-text::before,
|
|
46
47
|
.ant-divider-horizontal.ant-divider-with-text::after {
|
|
47
48
|
position: relative;
|
|
48
|
-
top: 50%;
|
|
49
49
|
width: 50%;
|
|
50
50
|
border-top: 1px solid transparent;
|
|
51
51
|
border-top-color: inherit;
|
|
@@ -54,19 +54,15 @@
|
|
|
54
54
|
content: '';
|
|
55
55
|
}
|
|
56
56
|
.ant-divider-horizontal.ant-divider-with-text-left::before {
|
|
57
|
-
top: 50%;
|
|
58
57
|
width: 5%;
|
|
59
58
|
}
|
|
60
59
|
.ant-divider-horizontal.ant-divider-with-text-left::after {
|
|
61
|
-
top: 50%;
|
|
62
60
|
width: 95%;
|
|
63
61
|
}
|
|
64
62
|
.ant-divider-horizontal.ant-divider-with-text-right::before {
|
|
65
|
-
top: 50%;
|
|
66
63
|
width: 95%;
|
|
67
64
|
}
|
|
68
65
|
.ant-divider-horizontal.ant-divider-with-text-right::after {
|
|
69
|
-
top: 50%;
|
|
70
66
|
width: 5%;
|
|
71
67
|
}
|
|
72
68
|
.ant-divider-inner-text {
|
package/es/drawer/index.js
CHANGED
|
@@ -17,7 +17,6 @@ export interface DropdownButtonProps extends ButtonGroupProps, DropdownProps {
|
|
|
17
17
|
title?: string;
|
|
18
18
|
buttonsRender?: (buttons: React.ReactNode[]) => React.ReactNode[];
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
declare const DropdownButton: DropdownButtonInterface;
|
|
20
|
+
type CompoundedComponent = React.FC<DropdownButtonProps> & {};
|
|
21
|
+
declare const DropdownButton: CompoundedComponent;
|
|
23
22
|
export default DropdownButton;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { MenuProps } from '../menu';
|
|
3
|
+
import type { AdjustOverflow } from '../_util/placements';
|
|
3
4
|
import DropdownButton from './dropdown-button';
|
|
4
5
|
declare const Placements: ["topLeft", "topCenter", "topRight", "bottomLeft", "bottomCenter", "bottomRight", "top", "bottom"];
|
|
5
6
|
type Placement = typeof Placements[number];
|
|
@@ -42,6 +43,7 @@ export interface DropdownProps {
|
|
|
42
43
|
mouseLeaveDelay?: number;
|
|
43
44
|
openClassName?: string;
|
|
44
45
|
children?: React.ReactNode;
|
|
46
|
+
autoAdjustOverflow?: boolean | AdjustOverflow;
|
|
45
47
|
/** @deprecated Please use `menu` instead */
|
|
46
48
|
overlay?: React.ReactElement | OverlayFunc;
|
|
47
49
|
/** @deprecated Please use `open` instead */
|
|
@@ -49,8 +51,8 @@ export interface DropdownProps {
|
|
|
49
51
|
/** @deprecated Please use `onOpenChange` instead */
|
|
50
52
|
onVisibleChange?: (open: boolean) => void;
|
|
51
53
|
}
|
|
52
|
-
|
|
54
|
+
type CompoundedComponent = React.FC<DropdownProps> & {
|
|
53
55
|
Button: typeof DropdownButton;
|
|
54
|
-
}
|
|
55
|
-
declare const Dropdown:
|
|
56
|
+
};
|
|
57
|
+
declare const Dropdown: CompoundedComponent;
|
|
56
58
|
export default Dropdown;
|
package/es/dropdown/dropdown.js
CHANGED
|
@@ -86,7 +86,9 @@ var Dropdown = function Dropdown(props) {
|
|
|
86
86
|
_props$mouseEnterDela = props.mouseEnterDelay,
|
|
87
87
|
mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0.15 : _props$mouseEnterDela,
|
|
88
88
|
_props$mouseLeaveDela = props.mouseLeaveDelay,
|
|
89
|
-
mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela
|
|
89
|
+
mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
|
|
90
|
+
_props$autoAdjustOver = props.autoAdjustOverflow,
|
|
91
|
+
autoAdjustOverflow = _props$autoAdjustOver === void 0 ? true : _props$autoAdjustOver;
|
|
90
92
|
var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
91
93
|
var child = React.Children.only(children);
|
|
92
94
|
var dropdownTrigger = cloneElement(child, {
|
|
@@ -117,7 +119,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
117
119
|
var overlayClassNameCustomized = classNames(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
|
|
118
120
|
var builtinPlacements = getPlacements({
|
|
119
121
|
arrowPointAtCenter: _typeof(arrow) === 'object' && arrow.pointAtCenter,
|
|
120
|
-
autoAdjustOverflow:
|
|
122
|
+
autoAdjustOverflow: autoAdjustOverflow
|
|
121
123
|
});
|
|
122
124
|
var onMenuClick = React.useCallback(function () {
|
|
123
125
|
setOpen(false);
|
|
@@ -205,19 +205,25 @@
|
|
|
205
205
|
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title-active {
|
|
206
206
|
background-color: #f5f5f5;
|
|
207
207
|
}
|
|
208
|
-
.ant-dropdown-menu-item-disabled,
|
|
209
|
-
.ant-dropdown-menu-submenu-title-disabled
|
|
208
|
+
.ant-dropdown-menu-item.ant-dropdown-menu-item-disabled,
|
|
209
|
+
.ant-dropdown-menu-item.ant-dropdown-menu-submenu-title-disabled,
|
|
210
|
+
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-item-disabled,
|
|
211
|
+
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title-disabled {
|
|
210
212
|
color: rgba(0, 0, 0, 0.25);
|
|
211
213
|
cursor: not-allowed;
|
|
212
214
|
}
|
|
213
|
-
.ant-dropdown-menu-item-disabled:hover,
|
|
214
|
-
.ant-dropdown-menu-submenu-title-disabled:hover
|
|
215
|
+
.ant-dropdown-menu-item.ant-dropdown-menu-item-disabled:hover,
|
|
216
|
+
.ant-dropdown-menu-item.ant-dropdown-menu-submenu-title-disabled:hover,
|
|
217
|
+
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-item-disabled:hover,
|
|
218
|
+
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title-disabled:hover {
|
|
215
219
|
color: rgba(0, 0, 0, 0.25);
|
|
216
220
|
background-color: #fff;
|
|
217
221
|
cursor: not-allowed;
|
|
218
222
|
}
|
|
219
|
-
.ant-dropdown-menu-item-disabled a,
|
|
220
|
-
.ant-dropdown-menu-submenu-title-disabled a
|
|
223
|
+
.ant-dropdown-menu-item.ant-dropdown-menu-item-disabled a,
|
|
224
|
+
.ant-dropdown-menu-item.ant-dropdown-menu-submenu-title-disabled a,
|
|
225
|
+
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-item-disabled a,
|
|
226
|
+
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title-disabled a {
|
|
221
227
|
pointer-events: none;
|
|
222
228
|
}
|
|
223
229
|
.ant-dropdown-menu-item-divider,
|
package/es/empty/index.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export interface EmptyProps {
|
|
|
12
12
|
description?: React.ReactNode;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
type CompoundedComponent = React.FC<EmptyProps> & {
|
|
16
16
|
PRESENTED_IMAGE_DEFAULT: React.ReactNode;
|
|
17
17
|
PRESENTED_IMAGE_SIMPLE: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
declare const Empty:
|
|
18
|
+
};
|
|
19
|
+
declare const Empty: CompoundedComponent;
|
|
20
20
|
export default Empty;
|
|
@@ -28,8 +28,8 @@ export interface FormItemProps<Values = any> extends FormItemLabelProps, FormIte
|
|
|
28
28
|
}
|
|
29
29
|
declare function InternalFormItem<Values = any>(props: FormItemProps<Values>): React.ReactElement;
|
|
30
30
|
type InternalFormItemType = typeof InternalFormItem;
|
|
31
|
-
|
|
31
|
+
type CompoundedComponent = InternalFormItemType & {
|
|
32
32
|
useStatus: typeof useFormItemStatus;
|
|
33
|
-
}
|
|
34
|
-
declare const FormItem:
|
|
33
|
+
};
|
|
34
|
+
declare const FormItem: CompoundedComponent;
|
|
35
35
|
export default FormItem;
|
package/es/form/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import Item, { FormItemProps } from './FormItem';
|
|
|
6
6
|
import List, { FormListFieldData, FormListOperation, FormListProps } from './FormList';
|
|
7
7
|
import useFormInstance from './hooks/useFormInstance';
|
|
8
8
|
type InternalFormType = typeof InternalForm;
|
|
9
|
-
|
|
9
|
+
type CompoundedComponent = InternalFormType & {
|
|
10
10
|
useForm: typeof useForm;
|
|
11
11
|
useFormInstance: typeof useFormInstance;
|
|
12
12
|
useWatch: typeof useWatch;
|
|
@@ -16,7 +16,7 @@ interface FormInterface extends InternalFormType {
|
|
|
16
16
|
Provider: typeof FormProvider;
|
|
17
17
|
/** @deprecated Only for warning usage. Do not use. */
|
|
18
18
|
create: () => void;
|
|
19
|
-
}
|
|
20
|
-
declare const Form:
|
|
19
|
+
};
|
|
20
|
+
declare const Form: CompoundedComponent;
|
|
21
21
|
export { FormInstance, FormProps, FormItemProps, ErrorListProps, Rule, RuleObject, RuleRender, FormListProps, FormListFieldData, FormListOperation, };
|
|
22
22
|
export default Form;
|
package/es/grid/row.js
CHANGED
|
@@ -33,6 +33,10 @@ function useMergePropByScreen(oriProp, screen) {
|
|
|
33
33
|
setProp = _React$useState2[1];
|
|
34
34
|
|
|
35
35
|
var clacMergeAlignOrJustify = function clacMergeAlignOrJustify() {
|
|
36
|
+
if (typeof oriProp === 'string') {
|
|
37
|
+
setProp(oriProp);
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
if (_typeof(oriProp) !== 'object') {
|
|
37
41
|
return;
|
|
38
42
|
}
|
package/es/input/index.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export { InputProps, InputRef } from './Input';
|
|
|
9
9
|
export { PasswordProps } from './Password';
|
|
10
10
|
export { SearchProps } from './Search';
|
|
11
11
|
export { TextAreaProps } from './TextArea';
|
|
12
|
-
|
|
12
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> & {
|
|
13
13
|
Group: typeof Group;
|
|
14
14
|
Search: typeof Search;
|
|
15
15
|
TextArea: typeof TextArea;
|
|
16
16
|
Password: typeof Password;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
declare const Input: CompoundedComponent;
|
|
19
19
|
export default Input;
|
package/es/input/style/index.css
CHANGED
|
@@ -133,7 +133,7 @@ textarea.ant-input-affix-wrapper {
|
|
|
133
133
|
z-index: 1;
|
|
134
134
|
}
|
|
135
135
|
.ant-input-affix-wrapper-disabled .ant-input[disabled] {
|
|
136
|
-
background:
|
|
136
|
+
background: rgba(255, 255, 255, 0);
|
|
137
137
|
}
|
|
138
138
|
.ant-input-affix-wrapper > .ant-input {
|
|
139
139
|
font-size: inherit;
|
package/es/layout/index.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import Sider from './Sider';
|
|
|
3
3
|
export { BasicProps as LayoutProps } from './layout';
|
|
4
4
|
export { SiderProps } from './Sider';
|
|
5
5
|
type InternalLayoutType = typeof InternalLayout;
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = InternalLayoutType & {
|
|
7
7
|
Header: typeof Header;
|
|
8
8
|
Footer: typeof Footer;
|
|
9
9
|
Content: typeof Content;
|
|
10
10
|
Sider: typeof Sider;
|
|
11
|
-
}
|
|
12
|
-
declare const Layout:
|
|
11
|
+
};
|
|
12
|
+
declare const Layout: CompoundedComponent;
|
|
13
13
|
export default Layout;
|
package/es/locale/pt_BR.js
CHANGED
|
@@ -18,6 +18,7 @@ var localeValues = {
|
|
|
18
18
|
filterConfirm: 'OK',
|
|
19
19
|
filterReset: 'Resetar',
|
|
20
20
|
filterEmptyText: 'Sem filtros',
|
|
21
|
+
filterCheckall: 'Selecionar todos os items',
|
|
21
22
|
emptyText: 'Sem conteúdo',
|
|
22
23
|
selectAll: 'Selecionar página atual',
|
|
23
24
|
selectInvert: 'Inverter seleção',
|