@pinnacle0/web-ui 0.6.46 → 0.7.0-beta.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.
- package/admin/AdminApp/Default/NavigatorSide/index.js +1 -1
- package/admin/AdminApp/Default/NavigatorSide/index.js.map +1 -1
- package/core/Amount/AmountPercentage.d.ts +1 -4
- package/core/Amount/AmountPercentage.js +5 -8
- package/core/Amount/AmountPercentage.js.map +1 -1
- package/core/Amount/index.d.ts +3 -8
- package/core/Amount/index.js +27 -35
- package/core/Amount/index.js.map +1 -1
- package/core/AuthenticationCodeInput/index.less +1 -1
- package/core/AutoCompleteInput/index.d.ts +2 -5
- package/core/AutoCompleteInput/index.js +5 -7
- package/core/AutoCompleteInput/index.js.map +1 -1
- package/core/BoolSwitch/index.d.ts +5 -7
- package/core/BoolSwitch/index.js +11 -13
- package/core/BoolSwitch/index.js.map +1 -1
- package/core/Breadcrumb/index.d.ts +1 -5
- package/core/Breadcrumb/index.js +8 -16
- package/core/Breadcrumb/index.js.map +1 -1
- package/core/Button/index.d.ts +2 -2
- package/core/Button/index.js +3 -2
- package/core/Button/index.js.map +1 -1
- package/core/Card/index.d.ts +3 -6
- package/core/Card/index.js +4 -7
- package/core/Card/index.js.map +1 -1
- package/core/Carousel/index.d.ts +1 -4
- package/core/Carousel/index.js +4 -7
- package/core/Carousel/index.js.map +1 -1
- package/core/Carousel3D/index.d.ts +1 -21
- package/core/Carousel3D/index.js +76 -83
- package/core/Carousel3D/index.js.map +1 -1
- package/core/Cascader/InitialNullable.d.ts +1 -4
- package/core/Cascader/InitialNullable.js +5 -8
- package/core/Cascader/InitialNullable.js.map +1 -1
- package/core/Cascader/Nullable.d.ts +2 -7
- package/core/Cascader/Nullable.js +10 -12
- package/core/Cascader/Nullable.js.map +1 -1
- package/core/Cascader/index.d.ts +4 -13
- package/core/Cascader/index.js +18 -20
- package/core/Cascader/index.js.map +1 -1
- package/core/Checkbox/index.d.ts +4 -7
- package/core/Checkbox/index.js +4 -9
- package/core/Checkbox/index.js.map +1 -1
- package/core/Collapse/index.d.ts +2 -7
- package/core/Collapse/index.js +4 -6
- package/core/Collapse/index.js.map +1 -1
- package/core/Countdown/SlidingDigit.d.ts +1 -10
- package/core/Countdown/SlidingDigit.js +16 -21
- package/core/Countdown/SlidingDigit.js.map +1 -1
- package/core/Countdown/index.d.ts +1 -18
- package/core/Countdown/index.js +53 -74
- package/core/Countdown/index.js.map +1 -1
- package/core/DarkOverlay/index.d.ts +1 -4
- package/core/DarkOverlay/index.js +4 -7
- package/core/DarkOverlay/index.js.map +1 -1
- package/core/DateCalendar/index.d.ts +2 -13
- package/core/DateCalendar/index.js +12 -14
- package/core/DateCalendar/index.js.map +1 -1
- package/core/DatePicker/index.d.ts +1 -7
- package/core/DatePicker/index.js +9 -16
- package/core/DatePicker/index.js.map +1 -1
- package/core/DateRangePicker/index.d.ts +1 -14
- package/core/DateRangePicker/index.js +25 -34
- package/core/DateRangePicker/index.js.map +1 -1
- package/core/DateTimePicker/index.d.ts +1 -7
- package/core/DateTimePicker/index.js +12 -21
- package/core/DateTimePicker/index.js.map +1 -1
- package/core/DateTimeRangePicker/index.d.ts +1 -17
- package/core/DateTimeRangePicker/index.js +21 -31
- package/core/DateTimeRangePicker/index.js.map +1 -1
- package/core/Descriptions/index.d.ts +3 -8
- package/core/Descriptions/index.js +7 -13
- package/core/Descriptions/index.js.map +1 -1
- package/core/Descriptions/index.less +0 -8
- package/core/DocumentTitle/index.d.ts +4 -13
- package/core/DocumentTitle/index.js +18 -31
- package/core/DocumentTitle/index.js.map +1 -1
- package/core/Drawer/index.d.ts +1 -3
- package/core/Drawer/index.js +4 -5
- package/core/Drawer/index.js.map +1 -1
- package/core/Dropdown/index.d.ts +3 -4
- package/core/Dropdown/index.js +4 -3
- package/core/Dropdown/index.js.map +1 -1
- package/core/EnumCheckboxGroup/Map.d.ts +1 -4
- package/core/EnumCheckboxGroup/Map.js +5 -9
- package/core/EnumCheckboxGroup/Map.js.map +1 -1
- package/core/EnumCheckboxGroup/index.d.ts +3 -4
- package/core/EnumCheckboxGroup/index.js +11 -12
- package/core/EnumCheckboxGroup/index.js.map +1 -1
- package/core/EnumRadio/InitialNullable.d.ts +1 -5
- package/core/EnumRadio/InitialNullable.js +6 -9
- package/core/EnumRadio/InitialNullable.js.map +1 -1
- package/core/EnumRadio/Map.d.ts +1 -4
- package/core/EnumRadio/Map.js +6 -9
- package/core/EnumRadio/Map.js.map +1 -1
- package/core/EnumRadio/Nullable.d.ts +1 -5
- package/core/EnumRadio/Nullable.js +12 -14
- package/core/EnumRadio/Nullable.js.map +1 -1
- package/core/EnumRadio/index.d.ts +5 -12
- package/core/EnumRadio/index.js +9 -17
- package/core/EnumRadio/index.js.map +1 -1
- package/core/EnumSelect/InitialNullable.d.ts +1 -4
- package/core/EnumSelect/InitialNullable.js +4 -8
- package/core/EnumSelect/InitialNullable.js.map +1 -1
- package/core/EnumSelect/Map.d.ts +1 -4
- package/core/EnumSelect/Map.js +6 -9
- package/core/EnumSelect/Map.js.map +1 -1
- package/core/EnumSelect/Nullable.d.ts +1 -5
- package/core/EnumSelect/Nullable.js +12 -14
- package/core/EnumSelect/Nullable.js.map +1 -1
- package/core/EnumSelect/index.d.ts +5 -15
- package/core/EnumSelect/index.js +19 -27
- package/core/EnumSelect/index.js.map +1 -1
- package/core/EnumSelect/index.less +1 -1
- package/core/FlatList/Content/Footer/index.js +3 -2
- package/core/FlatList/Content/Footer/index.js.map +1 -1
- package/core/FlatList/Content/index.d.ts +1 -1
- package/core/FlatList/Content/index.js +10 -8
- package/core/FlatList/Content/index.js.map +1 -1
- package/core/FlatList/FloatingLoader/index.js +3 -2
- package/core/FlatList/FloatingLoader/index.js.map +1 -1
- package/core/FlatList/Refresh/index.js +3 -2
- package/core/FlatList/Refresh/index.js.map +1 -1
- package/core/FlatList/index.d.ts +1 -1
- package/core/FlatList/index.js +10 -9
- package/core/FlatList/index.js.map +1 -1
- package/core/FlatList/shared/Loader/index.js +3 -2
- package/core/FlatList/shared/Loader/index.js.map +1 -1
- package/core/Form/Item.d.ts +1 -16
- package/core/Form/Item.js +28 -40
- package/core/Form/Item.js.map +1 -1
- package/core/Form/index.d.ts +6 -17
- package/core/Form/index.js +29 -46
- package/core/Form/index.js.map +1 -1
- package/core/Form/index.less +1 -1
- package/core/Grid/index.d.ts +2 -2
- package/core/Grid/index.js +2 -1
- package/core/Grid/index.js.map +1 -1
- package/core/HTMLContent/index.d.ts +1 -4
- package/core/HTMLContent/index.js +4 -7
- package/core/HTMLContent/index.js.map +1 -1
- package/core/Image/index.d.ts +3 -6
- package/core/Image/index.js +6 -7
- package/core/Image/index.js.map +1 -1
- package/core/ImageUploader/index.d.ts +2 -11
- package/core/ImageUploader/index.js +17 -25
- package/core/ImageUploader/index.js.map +1 -1
- package/core/Input/index.d.ts +12 -18
- package/core/Input/index.js +37 -41
- package/core/Input/index.js.map +1 -1
- package/core/LabelledSelect/index.d.ts +3 -5
- package/core/LabelledSelect/index.js +4 -7
- package/core/LabelledSelect/index.js.map +1 -1
- package/core/Link/index.d.ts +1 -4
- package/core/Link/index.js +16 -19
- package/core/Link/index.js.map +1 -1
- package/core/LocalImporter/index.d.ts +1 -10
- package/core/LocalImporter/index.js +11 -18
- package/core/LocalImporter/index.js.map +1 -1
- package/core/LocaleSelect/index.d.ts +1 -10
- package/core/LocaleSelect/index.js +16 -18
- package/core/LocaleSelect/index.js.map +1 -1
- package/core/Markdown/index.d.ts +1 -7
- package/core/Markdown/index.js +13 -16
- package/core/Markdown/index.js.map +1 -1
- package/core/Modal/index.less +1 -1
- package/core/MultipleCascader/index.d.ts +1 -9
- package/core/MultipleCascader/index.js +15 -19
- package/core/MultipleCascader/index.js.map +1 -1
- package/core/MultipleEnumSelect/index.d.ts +1 -8
- package/core/MultipleEnumSelect/index.js +9 -15
- package/core/MultipleEnumSelect/index.js.map +1 -1
- package/core/MultipleSelector/TablePopover.d.ts +1 -7
- package/core/MultipleSelector/TablePopover.js +23 -26
- package/core/MultipleSelector/TablePopover.js.map +1 -1
- package/core/MultipleSelector/index.d.ts +1 -9
- package/core/MultipleSelector/index.js +18 -26
- package/core/MultipleSelector/index.js.map +1 -1
- package/core/MutableTable/index.d.ts +1 -13
- package/core/MutableTable/index.js +25 -35
- package/core/MutableTable/index.js.map +1 -1
- package/core/NumberInput/NumberInputPercentage.d.ts +1 -8
- package/core/NumberInput/NumberInputPercentage.js +8 -25
- package/core/NumberInput/NumberInputPercentage.js.map +1 -1
- package/core/NumberInput/index.d.ts +5 -33
- package/core/NumberInput/index.js +44 -72
- package/core/NumberInput/index.js.map +1 -1
- package/core/OverflowableText/index.d.ts +1 -12
- package/core/OverflowableText/index.js +11 -28
- package/core/OverflowableText/index.js.map +1 -1
- package/core/Pagination/index.d.ts +1 -7
- package/core/Pagination/index.js +17 -19
- package/core/Pagination/index.js.map +1 -1
- package/core/Popover/index.d.ts +0 -1
- package/core/Popover/index.js +2 -5
- package/core/Popover/index.js.map +1 -1
- package/core/Progress/index.d.ts +1 -4
- package/core/Progress/index.js +4 -6
- package/core/Progress/index.js.map +1 -1
- package/core/Radio/index.d.ts +5 -7
- package/core/Radio/index.js +2 -8
- package/core/Radio/index.js.map +1 -1
- package/core/RelativeTime/index.d.ts +1 -15
- package/core/RelativeTime/index.js +17 -31
- package/core/RelativeTime/index.js.map +1 -1
- package/core/Resizable/index.js +3 -2
- package/core/Resizable/index.js.map +1 -1
- package/core/SearchableSelect/index.d.ts +3 -5
- package/core/SearchableSelect/index.js +4 -7
- package/core/SearchableSelect/index.js.map +1 -1
- package/core/Select/index.d.ts +8 -7
- package/core/Select/index.js +8 -8
- package/core/Select/index.js.map +1 -1
- package/core/SignedAmountInput/index.d.ts +1 -8
- package/core/SignedAmountInput/index.js +16 -24
- package/core/SignedAmountInput/index.js.map +1 -1
- package/core/Skeleton/index.d.ts +1 -4
- package/core/Skeleton/index.js +4 -7
- package/core/Skeleton/index.js.map +1 -1
- package/core/Slider/RangeSlider.d.ts +2 -6
- package/core/Slider/RangeSlider.js +4 -7
- package/core/Slider/RangeSlider.js.map +1 -1
- package/core/Slider/index.d.ts +3 -7
- package/core/Slider/index.js +15 -20
- package/core/Slider/index.js.map +1 -1
- package/core/Space/index.d.ts +3 -5
- package/core/Space/index.js +4 -7
- package/core/Space/index.js.map +1 -1
- package/core/Spin/index.d.ts +3 -6
- package/core/Spin/index.js +4 -7
- package/core/Spin/index.js.map +1 -1
- package/core/StepFormContainer/index.d.ts +2 -7
- package/core/StepFormContainer/index.js +13 -17
- package/core/StepFormContainer/index.js.map +1 -1
- package/core/Steps/index.d.ts +3 -6
- package/core/Steps/index.js +4 -6
- package/core/Steps/index.js.map +1 -1
- package/core/Table/index.d.ts +6 -34
- package/core/Table/index.js +64 -80
- package/core/Table/index.js.map +1 -1
- package/core/Tabs/Single.d.ts +1 -4
- package/core/Tabs/Single.js +4 -7
- package/core/Tabs/Single.js.map +1 -1
- package/core/Tabs/index.d.ts +3 -13
- package/core/Tabs/index.js +27 -35
- package/core/Tabs/index.js.map +1 -1
- package/core/Tag/index.d.ts +2 -5
- package/core/Tag/index.js +4 -6
- package/core/Tag/index.js.map +1 -1
- package/core/TagInput/index.d.ts +2 -15
- package/core/TagInput/index.js +25 -41
- package/core/TagInput/index.js.map +1 -1
- package/core/Tags/index.d.ts +1 -6
- package/core/Tags/index.js +9 -13
- package/core/Tags/index.js.map +1 -1
- package/core/TimePicker/index.d.ts +1 -7
- package/core/TimePicker/index.js +8 -11
- package/core/TimePicker/index.js.map +1 -1
- package/core/TimeRangePicker/index.d.ts +1 -14
- package/core/TimeRangePicker/index.js +21 -27
- package/core/TimeRangePicker/index.js.map +1 -1
- package/core/Tooltip/index.d.ts +3 -4
- package/core/Tooltip/index.js +2 -5
- package/core/Tooltip/index.js.map +1 -1
- package/core/TypedTabs/index.d.ts +1 -4
- package/core/TypedTabs/index.js +16 -18
- package/core/TypedTabs/index.js.map +1 -1
- package/core/Uploader/index.d.ts +1 -17
- package/core/Uploader/index.js +25 -31
- package/core/Uploader/index.js.map +1 -1
- package/core/VirtualList/index.d.ts +1 -1
- package/core/VirtualList/index.js +3 -2
- package/core/VirtualList/index.js.map +1 -1
- package/core/VirtualTable/{TableHeader.js → OldVirtualTable/TableHeader.js} +2 -2
- package/core/VirtualTable/OldVirtualTable/TableHeader.js.map +1 -0
- package/core/VirtualTable/{TableRow.js → OldVirtualTable/TableRow.js} +2 -2
- package/core/VirtualTable/OldVirtualTable/TableRow.js.map +1 -0
- package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useColumnWidths.js +1 -1
- package/core/VirtualTable/OldVirtualTable/hooks/useColumnWidths.js.map +1 -0
- package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useColumnsStickyPosition.js +1 -1
- package/core/VirtualTable/OldVirtualTable/hooks/useColumnsStickyPosition.js.map +1 -0
- package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useRowSelection.d.ts +1 -1
- package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useRowSelection.js +2 -2
- package/core/VirtualTable/OldVirtualTable/hooks/useRowSelection.js.map +1 -0
- package/core/VirtualTable/OldVirtualTable/hooks/useScroll.js.map +1 -0
- package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useScrollBarSize.js +1 -1
- package/core/VirtualTable/OldVirtualTable/hooks/useScrollBarSize.js.map +1 -0
- package/core/VirtualTable/OldVirtualTable/index.d.ts +28 -0
- package/core/VirtualTable/OldVirtualTable/index.js +58 -0
- package/core/VirtualTable/OldVirtualTable/index.js.map +1 -0
- package/core/VirtualTable/OldVirtualTable/index.old.less +160 -0
- package/core/VirtualTable/OldVirtualTable/type.js.map +1 -0
- package/core/VirtualTable/index.d.ts +24 -23
- package/core/VirtualTable/index.js +54 -50
- package/core/VirtualTable/index.js.map +1 -1
- package/core/VirtualTable/index.less +28 -140
- package/core/WithExplanation/index.d.ts +1 -6
- package/core/WithExplanation/index.js +11 -20
- package/core/WithExplanation/index.js.map +1 -1
- package/core/WithTooltipList/index.d.ts +1 -9
- package/core/WithTooltipList/index.js +28 -27
- package/core/WithTooltipList/index.js.map +1 -1
- package/core/YearMonthSelector/index.d.ts +1 -7
- package/core/YearMonthSelector/index.js +9 -15
- package/core/YearMonthSelector/index.js.map +1 -1
- package/css/global.less +0 -9
- package/hooks/useParentResizeObserver/index.d.ts +2 -0
- package/hooks/useParentResizeObserver/index.js +17 -0
- package/hooks/useParentResizeObserver/index.js.map +1 -0
- package/hooks/useResizeObserver/index.d.ts +1 -1
- package/hooks/useResizeObserver/index.js +6 -10
- package/hooks/useResizeObserver/index.js.map +1 -1
- package/package.json +5 -5
- package/util/ModalUtil/index.less +1 -1
- package/util/PromptUtil/PromptBody.d.ts +4 -13
- package/util/PromptUtil/PromptBody.js +19 -28
- package/util/PromptUtil/PromptBody.js.map +1 -1
- package/util/PromptUtil/index.js +1 -1
- package/util/PromptUtil/index.js.map +1 -1
- package/util/ReactUtil/index.d.ts +20 -0
- package/util/ReactUtil/index.js +35 -0
- package/util/ReactUtil/index.js.map +1 -1
- package/core/VirtualTable/TableHeader.js.map +0 -1
- package/core/VirtualTable/TableRow.js.map +0 -1
- package/core/VirtualTable/hooks/useColumnWidths.js.map +0 -1
- package/core/VirtualTable/hooks/useColumnsStickyPosition.js.map +0 -1
- package/core/VirtualTable/hooks/useRowSelection.js.map +0 -1
- package/core/VirtualTable/hooks/useScroll.js.map +0 -1
- package/core/VirtualTable/hooks/useScrollBarSize.js.map +0 -1
- package/core/VirtualTable/type.js.map +0 -1
- /package/core/VirtualTable/{TableHeader.d.ts → OldVirtualTable/TableHeader.d.ts} +0 -0
- /package/core/VirtualTable/{TableRow.d.ts → OldVirtualTable/TableRow.d.ts} +0 -0
- /package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useColumnWidths.d.ts +0 -0
- /package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useColumnsStickyPosition.d.ts +0 -0
- /package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useScroll.d.ts +0 -0
- /package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useScroll.js +0 -0
- /package/core/VirtualTable/{hooks → OldVirtualTable/hooks}/useScrollBarSize.d.ts +0 -0
- /package/core/VirtualTable/{type.d.ts → OldVirtualTable/type.d.ts} +0 -0
- /package/core/VirtualTable/{type.js → OldVirtualTable/type.js} +0 -0
|
@@ -21,7 +21,7 @@ export class NavigatorSide extends React.PureComponent {
|
|
|
21
21
|
return (React.createElement(React.Fragment, null,
|
|
22
22
|
React.createElement(Button, { type: "primary", id: "admin-app-default-navigator-side-button", size: "small", onClick: this.showDrawer },
|
|
23
23
|
React.createElement(UserOutlined, null)),
|
|
24
|
-
React.createElement(Drawer, {
|
|
24
|
+
React.createElement(Drawer, { size: 350, open: showDrawer, closable: false, onClose: this.closeDrawer },
|
|
25
25
|
React.createElement("div", { id: "admin-app-default-drawer" },
|
|
26
26
|
React.createElement(UserOutlined, { className: "avatar" }),
|
|
27
27
|
React.createElement("div", { className: "grid" }, Object.entries(drawerInfo).map(([title, node], index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/admin/AdminApp/Default/NavigatorSide/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,IAAI,EAAC,MAAM,iCAAiC,CAAC;AACrD,OAAO,cAAc,CAAC;AAatB,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,aAA2B;IAChE,MAAM,CAAC,WAAW,GAAG,eAAe,CAAC;IAErC,YAAY,KAAY;QACpB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,UAAU,EAAE,KAAK;SACpB,CAAC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,SAAS,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,QAAQ,IAChD,CAAC,CAAC,MAAM,CACJ,CACP,CACJ,CACD,CACI,CACpB,CAAC;IACN,CAAC"}
|
|
@@ -13,7 +13,4 @@ export interface Props extends Omit<AmountProps, "postfix" | "scale" | "value">
|
|
|
13
13
|
*/
|
|
14
14
|
percentageScale: number;
|
|
15
15
|
}
|
|
16
|
-
export declare
|
|
17
|
-
static displayName: string;
|
|
18
|
-
render(): React.JSX.Element;
|
|
19
|
-
}
|
|
16
|
+
export declare const AmountPercentage: ({ percentageScale, value, ...restProps }: Props) => React.JSX.Element;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Amount } from "./index";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return React.createElement(Amount, { value: percentageValue, scale: percentageScale, postfix: "%", ...restProps });
|
|
9
|
-
}
|
|
10
|
-
}
|
|
3
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
4
|
+
export const AmountPercentage = ReactUtil.memo("AmountPercentage", ({ percentageScale, value, ...restProps }) => {
|
|
5
|
+
const percentageValue = value !== null && value !== undefined ? value * 100 : value;
|
|
6
|
+
return React.createElement(Amount, { value: percentageValue, scale: percentageScale, postfix: "%", ...restProps });
|
|
7
|
+
});
|
|
11
8
|
//# sourceMappingURL=AmountPercentage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountPercentage.js","sourceRoot":"","sources":["../../../src/core/Amount/AmountPercentage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"AmountPercentage.js","sourceRoot":"","sources":["../../../src/core/Amount/AmountPercentage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAgB/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,EAAC,eAAe,EAAE,KAAK,EAAE,GAAG,SAAS,EAAQ,EAAE,EAAE;IACjH,MAAM,eAAe,GAAG,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;IACpF,OAAO,oBAAC,MAAM,IAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAC,GAAG,KAAK,SAAS,GAAI,CAAC;AACjG,CAAC,CAAC,CAAC"}
|
package/core/Amount/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { PickOptional } from "../../internal/type";
|
|
3
|
-
import { AmountPercentage } from "./AmountPercentage";
|
|
4
2
|
import "./index.less";
|
|
5
3
|
export type { Props as AmountPercentageProps } from "./AmountPercentage";
|
|
6
4
|
export interface Props {
|
|
@@ -19,9 +17,6 @@ export interface Props {
|
|
|
19
17
|
className?: string;
|
|
20
18
|
style?: React.CSSProperties;
|
|
21
19
|
}
|
|
22
|
-
export declare
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static Percentage: typeof AmountPercentage;
|
|
26
|
-
render(): React.JSX.Element;
|
|
27
|
-
}
|
|
20
|
+
export declare const Amount: ((props: Props) => React.JSX.Element) & {
|
|
21
|
+
Percentage: ({ percentageScale, value, ...restProps }: import("./AmountPercentage").Props) => React.JSX.Element;
|
|
22
|
+
};
|
package/core/Amount/index.js
CHANGED
|
@@ -2,43 +2,35 @@ import React from "react";
|
|
|
2
2
|
import { classNames } from "../../util/ClassNames";
|
|
3
3
|
import { NumberUtil } from "../../internal/NumberUtil";
|
|
4
4
|
import { AmountPercentage } from "./AmountPercentage";
|
|
5
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
5
6
|
import "./index.less";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
rounding
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
static Percentage = AmountPercentage;
|
|
14
|
-
render() {
|
|
15
|
-
const { value, scale, rounding, thousandSplitter, plusSignForPositive, prefix, postfix, colorScheme, bold, del, underline, style, className, nullText } = this.props;
|
|
16
|
-
if (value !== null && value !== undefined && Number.isFinite(value)) {
|
|
17
|
-
const roundedString = NumberUtil.roundingToString(value, rounding, scale);
|
|
18
|
-
const parts = roundedString.split(".");
|
|
19
|
-
if (thousandSplitter) {
|
|
20
|
-
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
21
|
-
}
|
|
22
|
-
if (plusSignForPositive && value > 0) {
|
|
23
|
-
parts[0] = "+" + parts[0];
|
|
24
|
-
}
|
|
25
|
-
const fullClassNames = classNames("g-amount", { bold, del, underline }, className, {
|
|
26
|
-
"color-green": (colorScheme === "green+red-" && value > 0) || (colorScheme === "green-red+" && value < 0),
|
|
27
|
-
"color-red": (colorScheme === "green+red-" && value < 0) || (colorScheme === "green-red+" && value > 0),
|
|
28
|
-
"color-highlight": colorScheme === "highlight" || (colorScheme === "highlight+" && value > 0),
|
|
29
|
-
});
|
|
30
|
-
return (React.createElement("div", { className: fullClassNames, style: style },
|
|
31
|
-
prefix && React.createElement("div", { className: "prefix" }, prefix),
|
|
32
|
-
React.createElement("div", { className: "digits" },
|
|
33
|
-
parts[0],
|
|
34
|
-
parts[1] && (React.createElement(React.Fragment, null,
|
|
35
|
-
".",
|
|
36
|
-
React.createElement("small", null, parts[1])))),
|
|
37
|
-
postfix && React.createElement("div", { className: "postfix" }, postfix)));
|
|
7
|
+
export const Amount = ReactUtil.compound("Amount", { Percentage: AmountPercentage }, (props) => {
|
|
8
|
+
const { value, scale, rounding = "round", thousandSplitter = true, plusSignForPositive, prefix, postfix, colorScheme, bold, del, underline, style, className, nullText = "-" } = props;
|
|
9
|
+
if (value !== null && value !== undefined && Number.isFinite(value)) {
|
|
10
|
+
const roundedString = NumberUtil.roundingToString(value, rounding, scale);
|
|
11
|
+
const parts = roundedString.split(".");
|
|
12
|
+
if (thousandSplitter) {
|
|
13
|
+
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
38
14
|
}
|
|
39
|
-
|
|
40
|
-
|
|
15
|
+
if (plusSignForPositive && value > 0) {
|
|
16
|
+
parts[0] = "+" + parts[0];
|
|
41
17
|
}
|
|
18
|
+
const fullClassNames = classNames("g-amount", { bold, del, underline }, className, {
|
|
19
|
+
"color-green": (colorScheme === "green+red-" && value > 0) || (colorScheme === "green-red+" && value < 0),
|
|
20
|
+
"color-red": (colorScheme === "green+red-" && value < 0) || (colorScheme === "green-red+" && value > 0),
|
|
21
|
+
"color-highlight": colorScheme === "highlight" || (colorScheme === "highlight+" && value > 0),
|
|
22
|
+
});
|
|
23
|
+
return (React.createElement("div", { className: fullClassNames, style: style },
|
|
24
|
+
prefix && React.createElement("div", { className: "prefix" }, prefix),
|
|
25
|
+
React.createElement("div", { className: "digits" },
|
|
26
|
+
parts[0],
|
|
27
|
+
parts[1] && (React.createElement(React.Fragment, null,
|
|
28
|
+
".",
|
|
29
|
+
React.createElement("small", null, parts[1])))),
|
|
30
|
+
postfix && React.createElement("div", { className: "postfix" }, postfix)));
|
|
42
31
|
}
|
|
43
|
-
|
|
32
|
+
else {
|
|
33
|
+
return React.createElement("span", { className: classNames("g-amount", "null-text", className) }, nullText);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
44
36
|
//# sourceMappingURL=index.js.map
|
package/core/Amount/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Amount/index.tsx"],"names":[],"mappings":"AAAA,OAAO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import AntAutoComplete from "antd/es/auto-complete";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
export interface Props extends AutoCompleteProps {
|
|
5
5
|
}
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
static Option: typeof AntAutoComplete.Option;
|
|
9
|
-
render(): React.JSX.Element;
|
|
10
|
-
}
|
|
6
|
+
export declare const AutoCompleteInputOption: typeof AntAutoComplete.Option;
|
|
7
|
+
export declare const AutoCompleteInput: (props: Props) => React.JSX.Element;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import AntAutoComplete from "antd/es/auto-complete";
|
|
2
2
|
import React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
}
|
|
3
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
4
|
+
export const AutoCompleteInputOption = AntAutoComplete.Option;
|
|
5
|
+
export const AutoCompleteInput = ReactUtil.memo("AutoCompleteInput", (props) => {
|
|
6
|
+
return React.createElement(AntAutoComplete, { ...props });
|
|
7
|
+
});
|
|
10
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/AutoCompleteInput/index.tsx"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/AutoCompleteInput/index.tsx"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAI/C,MAAM,CAAC,MAAM,uBAAuB,GAAkC,eAAe,CAAC,MAAM,CAAC;AAE7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,KAAY,EAAE,EAAE;IAClF,OAAO,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAC;AAC1C,CAAC,CAAC,CAAC"}
|
|
@@ -7,10 +7,8 @@ export interface Props extends ControlledFormValue<boolean> {
|
|
|
7
7
|
style?: React.CSSProperties;
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
render(): React.JSX.Element;
|
|
16
|
-
}
|
|
10
|
+
export declare const BoolSwitch: (({ trueText, falseText, disabled, loading, style, value, onChange }: Props) => React.JSX.Element) & {
|
|
11
|
+
YesNo: (props: Omit<Props, "trueText" | "falseText">) => React.JSX.Element;
|
|
12
|
+
OnOff: (props: Omit<Props, "trueText" | "falseText">) => React.JSX.Element;
|
|
13
|
+
ActiveOrNot: (props: Omit<Props, "trueText" | "falseText">) => React.JSX.Element;
|
|
14
|
+
};
|
package/core/BoolSwitch/index.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import AntSwitch from "antd/es/switch";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { i18n } from "../../internal/i18n/core";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
5
|
+
export const BoolSwitch = ReactUtil.compound("BoolSwitch", {
|
|
6
|
+
YesNo: (props) => {
|
|
7
7
|
const t = i18n();
|
|
8
8
|
return React.createElement(BoolSwitch, { trueText: t.yes, falseText: t.no, ...props });
|
|
9
|
-
}
|
|
10
|
-
|
|
9
|
+
},
|
|
10
|
+
OnOff: (props) => {
|
|
11
11
|
const t = i18n();
|
|
12
12
|
return React.createElement(BoolSwitch, { trueText: t.on, falseText: t.off, ...props });
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
},
|
|
14
|
+
ActiveOrNot: (props) => {
|
|
15
15
|
const t = i18n();
|
|
16
16
|
return React.createElement(BoolSwitch, { trueText: t.active, falseText: t.inactive, ...props });
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
}
|
|
17
|
+
},
|
|
18
|
+
}, ({ trueText, falseText, disabled, loading, style, value, onChange }) => {
|
|
19
|
+
return React.createElement(AntSwitch, { loading: loading, style: style, checked: value, onChange: onChange, disabled: disabled, checkedChildren: trueText, unCheckedChildren: falseText });
|
|
20
|
+
});
|
|
23
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/BoolSwitch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/BoolSwitch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAU/C,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,QAAQ,CACxC,YAAY,EACZ;IACI,KAAK,EAAE,CAAC,KAA4C,EAAE,EAAE;QACpD,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QACjB,OAAO,oBAAC,UAAU,IAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,KAAM,KAAK,GAAI,CAAC;IACvE,CAAC;IACD,KAAK,EAAE,CAAC,KAA4C,EAAE,EAAE;QACpD,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QACjB,OAAO,oBAAC,UAAU,IAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,KAAM,KAAK,GAAI,CAAC;IACvE,CAAC;IACD,WAAW,EAAE,CAAC,KAA4C,EAAE,EAAE;QAC1D,MAAM,CAAC,GAAG,IAAI,EAAE,CAAC;QACjB,OAAO,oBAAC,UAAU,IAAC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,KAAM,KAAK,GAAI,CAAC;IAChF,CAAC;CACJ,EACD,CAAC,EAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAQ,EAAE,EAAE;IACxE,OAAO,oBAAC,SAAS,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,GAAI,CAAC;AAC1K,CAAC,CACJ,CAAC"}
|
|
@@ -10,8 +10,4 @@ export interface Props<T extends object> {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
}
|
|
13
|
-
export declare
|
|
14
|
-
static displayName: string;
|
|
15
|
-
getItemKey: (item: T, index: number) => string | number;
|
|
16
|
-
render(): React.JSX.Element;
|
|
17
|
-
}
|
|
13
|
+
export declare const Breadcrumb: <T extends object>({ data, onClick, renderItem, lastClickable, className, style, itemKey }: Props<T>) => React.JSX.Element;
|
package/core/Breadcrumb/index.js
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
2
3
|
import "./index.less";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const { itemKey } = this.props;
|
|
7
|
-
if (itemKey === "index") {
|
|
4
|
+
export const Breadcrumb = ReactUtil.memo("Breadcrumb", ({ data, onClick, renderItem, lastClickable, className, style, itemKey }) => {
|
|
5
|
+
const getItemKey = (item, index) => {
|
|
6
|
+
if (itemKey === "index")
|
|
8
7
|
return index;
|
|
9
|
-
|
|
10
|
-
else if (typeof itemKey === "function") {
|
|
8
|
+
if (typeof itemKey === "function")
|
|
11
9
|
return itemKey(item, index);
|
|
12
|
-
|
|
13
|
-
else {
|
|
14
|
-
return item[itemKey];
|
|
15
|
-
}
|
|
10
|
+
return item[itemKey];
|
|
16
11
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return (React.createElement("div", { className: `g-breadcrumb ${className || ""}`, style: style }, data.map((_, index) => (React.createElement("div", { onClick: lastClickable || index !== data.length - 1 ? () => onClick(_, index) : undefined, key: this.getItemKey(_, index), className: lastClickable || index !== data.length - 1 ? "clickable" : "" }, renderItem(_, index))))));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
12
|
+
return (React.createElement("div", { className: `g-breadcrumb ${className || ""}`, style: style }, data.map((_, index) => (React.createElement("div", { onClick: lastClickable || index !== data.length - 1 ? () => onClick(_, index) : undefined, key: getItemKey(_, index), className: lastClickable || index !== data.length - 1 ? "clickable" : "" }, renderItem(_, index))))));
|
|
13
|
+
});
|
|
22
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Breadcrumb/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Breadcrumb/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OAAO,cAAc,CAAC;AAYtB,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,CAAmB,EAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAW,EAAE,EAAE;IACzJ,MAAM,UAAU,GAAG,CAAC,IAAO,EAAE,KAAa,EAAmB,EAAE;QAC3D,IAAI,OAAO,KAAK,OAAO;YAAE,OAAO,KAAK,CAAC;QACtC,IAAI,OAAO,OAAO,KAAK,UAAU;YAAE,OAAO,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAQ,CAAC;IAChC,CAAC,CAAC;IAEF,OAAO,CACH,6BAAK,SAAS,EAAE,gBAAgB,SAAS,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,IAC1D,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACpB,6BACI,OAAO,EAAE,aAAa,IAAI,KAAK,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EACzF,GAAG,EAAE,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,EACzB,SAAS,EAAE,aAAa,IAAI,KAAK,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAEvE,UAAU,CAAC,CAAC,EAAE,KAAK,CAAC,CACnB,CACT,CAAC,CACA,CACT,CAAC;AACN,CAAC,CAAC,CAAC"}
|
package/core/Button/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ButtonProps } from "antd/es/button";
|
|
3
3
|
import "./index.less";
|
|
4
|
+
export type { ButtonSize, ButtonShape, ButtonType, ButtonHTMLType } from "antd/es/button";
|
|
4
5
|
export interface Props extends ButtonProps {
|
|
5
6
|
loading?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare
|
|
8
|
-
export type { ButtonSize, ButtonShape, ButtonType, ButtonHTMLType } from "antd/es/button";
|
|
8
|
+
export declare const Button: ({ className, loading, style, ...rest }: Props) => React.JSX.Element;
|
package/core/Button/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import AntButton from "antd/es/button";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
4
5
|
import "./index.less";
|
|
5
|
-
export
|
|
6
|
+
export const Button = ReactUtil.memo("Button", ({ className, loading, style, ...rest }) => {
|
|
6
7
|
return React.createElement(AntButton, { className: classNames("g-button", className), loading: loading, ...rest });
|
|
7
|
-
}
|
|
8
|
+
});
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
package/core/Button/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OAAO,cAAc,CAAC;AAOtB,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,IAAI,EAAQ,EAAE,EAAE;IAC3F,OAAO,oBAAC,SAAS,IAAC,SAAS,EAAE,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,KAAM,IAAI,GAAI,CAAC;AACnG,CAAC,CAAC,CAAC"}
|
package/core/Card/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { CardProps } from "antd/es/card";
|
|
2
|
-
import AntCard from "antd/es/card";
|
|
3
2
|
import React from "react";
|
|
4
3
|
export interface Props extends CardProps {
|
|
5
4
|
}
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
render(): React.JSX.Element;
|
|
10
|
-
}
|
|
5
|
+
export declare const Card: ((props: Props) => React.JSX.Element) & {
|
|
6
|
+
Grid: React.FC<import("antd/es/card").CardGridProps>;
|
|
7
|
+
};
|
package/core/Card/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import AntCard from "antd/es/card";
|
|
2
2
|
import React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return React.createElement(AntCard, { ...this.props });
|
|
8
|
-
}
|
|
9
|
-
}
|
|
3
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
4
|
+
export const Card = ReactUtil.compound("Card", { Grid: AntCard.Grid }, (props) => {
|
|
5
|
+
return React.createElement(AntCard, { ...props });
|
|
6
|
+
});
|
|
10
7
|
//# sourceMappingURL=index.js.map
|
package/core/Card/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Card/index.tsx"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Card/index.tsx"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAI/C,MAAM,CAAC,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAC,EAAE,CAAC,KAAY,EAAE,EAAE;IAClF,OAAO,oBAAC,OAAO,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC,CAAC,CAAC"}
|
package/core/Carousel/index.d.ts
CHANGED
|
@@ -4,7 +4,4 @@ export type { CarouselRef } from "antd/es/carousel";
|
|
|
4
4
|
export interface Props extends AntCarouselProps {
|
|
5
5
|
innerRef?: React.Ref<CarouselRef>;
|
|
6
6
|
}
|
|
7
|
-
export declare
|
|
8
|
-
static displayName: string;
|
|
9
|
-
render(): React.JSX.Element;
|
|
10
|
-
}
|
|
7
|
+
export declare const Carousel: ({ innerRef, ...props }: Props) => React.JSX.Element;
|
package/core/Carousel/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import AntCarousel from "antd/es/carousel";
|
|
2
2
|
import React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return React.createElement(AntCarousel, { ref: innerRef, ...props });
|
|
8
|
-
}
|
|
9
|
-
}
|
|
3
|
+
import { ReactUtil } from "../../util/ReactUtil";
|
|
4
|
+
export const Carousel = ReactUtil.memo("Carousel", ({ innerRef, ...props }) => {
|
|
5
|
+
return React.createElement(AntCarousel, { ref: innerRef, ...props });
|
|
6
|
+
});
|
|
10
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Carousel/index.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Carousel/index.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAQ/C,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAQ,EAAE,EAAE;IAC/E,OAAO,oBAAC,WAAW,IAAC,GAAG,EAAE,QAAQ,KAAM,KAAK,GAAI,CAAC;AACrD,CAAC,CAAC,CAAC"}
|
|
@@ -3,25 +3,5 @@ import "./index.less";
|
|
|
3
3
|
interface Props {
|
|
4
4
|
children: React.ReactElement[];
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
current: number;
|
|
8
|
-
}
|
|
9
|
-
export declare class Carousel3D extends React.PureComponent<Props, State> {
|
|
10
|
-
static displayName: string;
|
|
11
|
-
private readonly autoPlayInterval;
|
|
12
|
-
private isTimerComplete;
|
|
13
|
-
private isChildTransition;
|
|
14
|
-
private timer;
|
|
15
|
-
constructor(props: Props);
|
|
16
|
-
componentDidMount(): void;
|
|
17
|
-
componentDidUpdate(): void;
|
|
18
|
-
componentWillUnmount(): void;
|
|
19
|
-
jumpToPrevSlide: () => void;
|
|
20
|
-
jumpToNextSlide: () => void;
|
|
21
|
-
jumpToSlide: (index: number) => void;
|
|
22
|
-
startAnimation: () => void;
|
|
23
|
-
handleMouseEnter: () => void;
|
|
24
|
-
handleMouseLeave: () => void;
|
|
25
|
-
render(): React.JSX.Element;
|
|
26
|
-
}
|
|
6
|
+
export declare const Carousel3D: ({ children }: Props) => React.JSX.Element;
|
|
27
7
|
export {};
|