@swiftcrab/crab 0.0.3 → 0.0.4
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/es/_util/ActionButton.js +1 -1
- package/es/_util/ContextIsolator.js +1 -1
- package/es/_util/PurePanel.js +1 -1
- package/es/_util/hooks/useZIndex.js +1 -1
- package/es/_util/motion.js +1 -1
- package/es/_util/responsiveObserver.js +1 -1
- package/es/_util/wave/WaveEffect.js +1 -1
- package/es/_util/wave/index.js +1 -1
- package/es/_util/wave/interface.js +1 -1
- package/es/_util/wave/style.js +1 -1
- package/es/_util/wave/useWave.js +1 -1
- package/es/affix/index.js +1 -1
- package/es/affix/style/index.js +1 -1
- package/es/alert/Alert.js +1 -1
- package/es/alert/ErrorBoundary.js +1 -1
- package/es/alert/index.js +1 -1
- package/es/alert/style/index.js +1 -1
- package/es/anchor/Anchor.js +1 -1
- package/es/anchor/AnchorLink.js +1 -1
- package/es/anchor/index.js +1 -1
- package/es/anchor/style/index.js +1 -1
- package/es/app/index.js +1 -1
- package/es/app/style/index.js +1 -1
- package/es/auto-complete/index.js +1 -1
- package/es/avatar/avatar.js +1 -1
- package/es/avatar/group.js +1 -1
- package/es/avatar/index.js +1 -1
- package/es/avatar/style/index.js +1 -1
- package/es/badge/Ribbon.js +1 -1
- package/es/badge/ScrollNumber.js +1 -1
- package/es/badge/index.js +1 -1
- package/es/badge/style/index.js +1 -1
- package/es/badge/style/ribbon.js +1 -1
- package/es/breadcrumb/Breadcrumb.js +1 -1
- package/es/breadcrumb/BreadcrumbItem.js +1 -1
- package/es/breadcrumb/BreadcrumbSeparator.js +1 -1
- package/es/breadcrumb/index.js +1 -1
- package/es/breadcrumb/style/index.js +1 -1
- package/es/button/button-group.js +1 -1
- package/es/button/button.js +1 -1
- package/es/button/index.js +1 -1
- package/es/button/style/compact.js +1 -1
- package/es/button/style/index.js +1 -1
- package/es/button/style/token.js +1 -1
- package/es/calendar/Header.js +1 -1
- package/es/calendar/generateCalendar.js +1 -1
- package/es/calendar/index.js +1 -1
- package/es/calendar/style/index.js +1 -1
- package/es/calendar-panel/index.d.ts +7 -0
- package/es/calendar-panel/index.js +40 -0
- package/es/calendar-panel/style/index.d.ts +4 -0
- package/es/calendar-panel/style/index.js +35 -0
- package/es/calendar-panel/style/style.d.ts +1 -0
- package/es/calendar-panel/style/style.js +639 -0
- package/es/calendar-panel/types.d.ts +158 -0
- package/es/calendar-panel/types.js +0 -0
- package/es/calendar-panel/utils.d.ts +39 -0
- package/es/calendar-panel/utils.js +1 -0
- package/es/card/Card.js +1 -1
- package/es/card/Grid.js +1 -1
- package/es/card/Meta.js +1 -1
- package/es/card/index.js +1 -1
- package/es/card/style/index.js +1 -1
- package/es/carousel/index.js +1 -1
- package/es/carousel/style/index.js +1 -1
- package/es/cascader/Panel.js +1 -1
- package/es/cascader/hooks/useBase.js +1 -1
- package/es/cascader/index.js +1 -1
- package/es/cascader/style/columns.js +1 -1
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/style/panel.js +1 -1
- package/es/checkbox/Checkbox.js +1 -1
- package/es/checkbox/Group.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/checkbox/style/index.js +1 -1
- package/es/clap-overflow/index.d.ts +19 -0
- package/es/clap-overflow/index.js +40 -0
- package/es/clap-overflow/style/index.d.ts +16 -0
- package/es/clap-overflow/style/index.js +35 -0
- package/es/col/index.js +1 -1
- package/es/collapse/Collapse.js +1 -1
- package/es/collapse/CollapsePanel.js +1 -1
- package/es/collapse/index.js +1 -1
- package/es/collapse/style/index.js +1 -1
- package/es/color-picker/ColorPicker.js +1 -1
- package/es/color-picker/ColorPickerPanel.js +1 -1
- package/es/color-picker/components/ColorAlphaInput.js +1 -1
- package/es/color-picker/components/ColorHexInput.js +1 -1
- package/es/color-picker/components/ColorHsbInput.js +1 -1
- package/es/color-picker/components/ColorInput.js +1 -1
- package/es/color-picker/components/ColorPresets.js +1 -1
- package/es/color-picker/components/ColorRgbInput.js +1 -1
- package/es/color-picker/components/ColorSlider.js +1 -1
- package/es/color-picker/components/ColorSteppers.js +1 -1
- package/es/color-picker/components/PanelPicker/GradientColorBar.js +1 -1
- package/es/color-picker/components/PanelPicker/index.js +1 -1
- package/es/color-picker/components/PanelPresets.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/color-picker/style/index.js +1 -1
- package/es/config-provider/MotionWrapper.js +1 -1
- package/es/config-provider/defaultRenderEmpty.js +1 -1
- package/es/config-provider/hooks/useCSSVarCls.js +1 -1
- package/es/config-provider/hooks/useTheme.js +1 -1
- package/es/config-provider/index.js +1 -1
- package/es/config-provider/style/index.js +1 -1
- package/es/date-picker/PickerButton.js +1 -1
- package/es/date-picker/generatePicker/generateRangePicker.js +1 -1
- package/es/date-picker/generatePicker/generateSinglePicker.js +1 -1
- package/es/date-picker/generatePicker/index.js +1 -1
- package/es/date-picker/generatePicker/useComponents.js +1 -1
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/style/multiple.js +1 -1
- package/es/date-picker/style/token.js +1 -1
- package/es/date-picker/style/variants.js +1 -1
- package/es/descriptions/hooks/useItems.js +1 -1
- package/es/descriptions/index.js +1 -1
- package/es/descriptions/style/index.js +1 -1
- package/es/divider/index.js +1 -1
- package/es/divider/style/index.js +1 -1
- package/es/drawer/DrawerPanel.js +1 -1
- package/es/drawer/index.js +1 -1
- package/es/drawer/style/index.js +1 -1
- package/es/dropdown/dropdown-button.js +1 -1
- package/es/dropdown/dropdown.js +1 -1
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/style/index.js +1 -1
- package/es/empty/empty.js +1 -1
- package/es/empty/index.js +1 -1
- package/es/empty/simple.js +1 -1
- package/es/empty/style/index.js +1 -1
- package/es/flex/index.js +1 -1
- package/es/flex/style/index.js +1 -1
- package/es/form/ErrorList.js +1 -1
- package/es/form/Form.js +1 -1
- package/es/form/FormItem/ItemHolder.js +1 -1
- package/es/form/FormItem/index.js +1 -1
- package/es/form/FormItemInput.js +1 -1
- package/es/form/FormItemLabel.js +1 -1
- package/es/form/FormList.js +1 -1
- package/es/form/hooks/useVariants.js +1 -1
- package/es/form/index.js +1 -1
- package/es/form/style/fallbackCmp.js +1 -1
- package/es/form/style/index.js +1 -1
- package/es/form-area/ValidateTooltip.js +102 -102
- package/es/form-area/index.js +102 -102
- package/es/form-area/renderItemMap.js +102 -102
- package/es/gantt/index.d.ts +4 -0
- package/es/gantt/index.js +101 -0
- package/es/gantt/style/index.d.ts +4 -0
- package/es/gantt/style/index.js +35 -0
- package/es/gantt/style/style.d.ts +1 -0
- package/es/gantt/style/style.js +372 -0
- package/es/gantt/type.d.ts +138 -0
- package/es/gantt/type.js +0 -0
- package/es/gantt/utils.d.ts +36 -0
- package/es/gantt/utils.js +1 -0
- package/es/grid/col.js +1 -1
- package/es/grid/hooks/useBreakpoint.js +1 -1
- package/es/grid/index.js +1 -1
- package/es/grid/row.js +1 -1
- package/es/grid/style/index.js +1 -1
- package/es/hooks/index.js +102 -102
- package/es/hooks/useForm.d.ts +12 -33
- package/es/hooks/useForm.js +102 -102
- package/es/hour-panel/index.d.ts +4 -0
- package/es/hour-panel/index.js +99 -0
- package/es/hour-panel/style/index.d.ts +12 -0
- package/es/hour-panel/style/index.js +35 -0
- package/es/hour-panel/style/style.d.ts +1 -0
- package/es/hour-panel/style/style.js +351 -0
- package/es/hour-panel/types.d.ts +145 -0
- package/es/hour-panel/types.js +1 -0
- package/es/hour-panel/utils.d.ts +31 -0
- package/es/hour-panel/utils.js +1 -0
- package/es/image/PreviewGroup.js +1 -1
- package/es/image/index.js +1 -1
- package/es/image/style/index.js +1 -1
- package/es/index.d.ts +11 -1
- package/es/index.js +89 -89
- package/es/input/Group.js +1 -1
- package/es/input/Input.js +1 -1
- package/es/input/OTP/OTPInput.js +1 -1
- package/es/input/OTP/index.js +1 -1
- package/es/input/Password.js +1 -1
- package/es/input/Search.js +1 -1
- package/es/input/TextArea.js +1 -1
- package/es/input/index.js +1 -1
- package/es/input/style/index.js +1 -1
- package/es/input/style/otp.js +1 -1
- package/es/input/style/token.js +1 -1
- package/es/input/style/variants.js +1 -1
- package/es/input-number/index.js +1 -1
- package/es/input-number/style/index.js +1 -1
- package/es/input-number/style/token.js +1 -1
- package/es/layout/Sider.js +1 -1
- package/es/layout/hooks/useHasSider.js +1 -1
- package/es/layout/index.js +1 -1
- package/es/layout/layout.js +1 -1
- package/es/layout/style/index.js +1 -1
- package/es/layout/style/sider.js +1 -1
- package/es/list/Item.js +1 -1
- package/es/list/index.js +1 -1
- package/es/list/style/index.js +1 -1
- package/es/mentions/index.js +1 -1
- package/es/mentions/style/index.js +1 -1
- package/es/menu/MenuDivider.js +1 -1
- package/es/menu/MenuItem.js +1 -1
- package/es/menu/OverrideContext.js +1 -1
- package/es/menu/SubMenu.js +1 -1
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +1 -1
- package/es/menu/style/index.js +1 -1
- package/es/message/PurePanel.js +1 -1
- package/es/message/index.js +1 -1
- package/es/message/style/index.js +1 -1
- package/es/message/useMessage.js +1 -1
- package/es/modal/ConfirmDialog.js +1 -1
- package/es/modal/Modal.js +1 -1
- package/es/modal/PurePanel.js +1 -1
- package/es/modal/components/ConfirmCancelBtn.js +1 -1
- package/es/modal/components/ConfirmOkBtn.js +1 -1
- package/es/modal/components/NormalCancelBtn.js +1 -1
- package/es/modal/components/NormalOkBtn.js +1 -1
- package/es/modal/confirm.js +1 -1
- package/es/modal/index.js +1 -1
- package/es/modal/shared.js +1 -1
- package/es/modal/style/confirm.js +1 -1
- package/es/modal/style/index.js +1 -1
- package/es/modal/useModal/HookModal.js +1 -1
- package/es/modal/useModal/index.js +1 -1
- package/es/notification/PurePanel.js +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/style/index.js +1 -1
- package/es/notification/style/pure-panel.js +1 -1
- package/es/notification/useNotification.js +1 -1
- package/es/pagination/Pagination.js +1 -1
- package/es/pagination/index.js +1 -1
- package/es/pagination/style/bordered.js +1 -1
- package/es/pagination/style/index.js +1 -1
- package/es/popconfirm/PurePanel.js +1 -1
- package/es/popconfirm/index.js +1 -1
- package/es/popconfirm/style/index.js +1 -1
- package/es/popover/PurePanel.js +1 -1
- package/es/popover/index.js +1 -1
- package/es/popover/style/index.js +1 -1
- package/es/progress/Circle.js +1 -1
- package/es/progress/Line.js +1 -1
- package/es/progress/index.js +1 -1
- package/es/progress/progress.js +1 -1
- package/es/progress/style/index.js +1 -1
- package/es/qr-code/QrcodeStatus.js +1 -1
- package/es/qr-code/index.js +1 -1
- package/es/qr-code/style/index.js +1 -1
- package/es/qrcode/index.js +1 -1
- package/es/qrcode/style/index.js +1 -1
- package/es/radio/group.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/radio/radio.js +1 -1
- package/es/radio/radioButton.js +1 -1
- package/es/radio/style/index.js +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/style/index.js +1 -1
- package/es/result/index.js +1 -1
- package/es/result/style/index.js +1 -1
- package/es/row/index.js +1 -1
- package/es/search-area/index.js +102 -102
- package/es/segmented/index.js +1 -1
- package/es/segmented/style/index.js +1 -1
- package/es/select/index.js +1 -1
- package/es/select/style/index.js +1 -1
- package/es/select/style/multiple.js +1 -1
- package/es/select/style/single.js +1 -1
- package/es/skeleton/Avatar.js +1 -1
- package/es/skeleton/Button.js +1 -1
- package/es/skeleton/Image.js +1 -1
- package/es/skeleton/Input.js +1 -1
- package/es/skeleton/Node.js +1 -1
- package/es/skeleton/Skeleton.js +1 -1
- package/es/skeleton/index.js +1 -1
- package/es/skeleton/style/index.js +1 -1
- package/es/slider/SliderTooltip.js +1 -1
- package/es/slider/index.js +1 -1
- package/es/slider/style/index.js +1 -1
- package/es/space/Compact.js +1 -1
- package/es/space/index.js +1 -1
- package/es/space/style/index.js +1 -1
- package/es/spin/index.js +1 -1
- package/es/spin/style/index.js +1 -1
- package/es/splitter/Splitter.js +1 -1
- package/es/splitter/index.js +1 -1
- package/es/splitter/style/index.js +1 -1
- package/es/statistic/Countdown.js +1 -1
- package/es/statistic/Statistic.js +1 -1
- package/es/statistic/index.js +1 -1
- package/es/statistic/style/index.js +1 -1
- package/es/steps/index.js +1 -1
- package/es/steps/style/index.js +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/style/index.js +1 -1
- package/es/table/InternalTable.js +1 -1
- package/es/table/Table.js +1 -1
- package/es/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/es/table/hooks/useFilter/FilterSearch.js +1 -1
- package/es/table/hooks/useFilter/index.js +1 -1
- package/es/table/hooks/useSelection.js +1 -1
- package/es/table/hooks/useSorter.js +1 -1
- package/es/table/index.js +1 -1
- package/es/table/style/index.js +1 -1
- package/es/tabs/hooks/useAnimateConfig.js +1 -1
- package/es/tabs/index.js +1 -1
- package/es/tabs/style/index.js +1 -1
- package/es/tag/CheckableTag.js +1 -1
- package/es/tag/index.js +1 -1
- package/es/tag/style/index.js +1 -1
- package/es/tag/style/presetCmp.js +1 -1
- package/es/tag/style/statusCmp.js +1 -1
- package/es/theme/index.js +1 -1
- package/es/theme/interface/components.d.ts +11 -2
- package/es/theme/internal.js +1 -1
- package/es/theme/useToken.js +1 -1
- package/es/theme/util/genStyleUtils.js +1 -1
- package/es/theme/util/useResetIconStyle.js +1 -1
- package/es/time-out/index.d.ts +18 -0
- package/es/time-out/index.js +40 -0
- package/es/time-out/style/index.d.ts +31 -0
- package/es/time-out/style/index.js +35 -0
- package/es/time-out/style/style.d.ts +1 -0
- package/es/time-out/style/style.js +104 -0
- package/es/time-picker/index.js +1 -1
- package/es/timeline/Timeline.js +1 -1
- package/es/timeline/TimelineItem.js +1 -1
- package/es/timeline/TimelineItemList.js +1 -1
- package/es/timeline/index.js +1 -1
- package/es/timeline/style/index.js +1 -1
- package/es/tooltip/PurePanel.js +1 -1
- package/es/tooltip/index.js +1 -1
- package/es/tooltip/style/index.js +1 -1
- package/es/tour/PurePanel.js +1 -1
- package/es/tour/index.js +1 -1
- package/es/tour/panelRender.js +1 -1
- package/es/tour/style/index.js +1 -1
- package/es/transfer/ListBody.js +1 -1
- package/es/transfer/ListItem.js +1 -1
- package/es/transfer/index.js +1 -1
- package/es/transfer/list.js +1 -1
- package/es/transfer/operation.js +1 -1
- package/es/transfer/search.js +1 -1
- package/es/transfer/style/index.js +1 -1
- package/es/tree/DirectoryTree.js +1 -1
- package/es/tree/Tree.js +1 -1
- package/es/tree/index.js +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree-select/index.js +1 -1
- package/es/tree-select/style/index.js +1 -1
- package/es/type/index.js +89 -89
- package/es/typography/Base/CopyBtn.js +1 -1
- package/es/typography/Base/EllipsisTooltip.js +1 -1
- package/es/typography/Base/index.js +1 -1
- package/es/typography/Editable.js +1 -1
- package/es/typography/Link.js +1 -1
- package/es/typography/Paragraph.js +1 -1
- package/es/typography/Text.js +1 -1
- package/es/typography/Title.js +1 -1
- package/es/typography/Typography.js +1 -1
- package/es/typography/index.js +1 -1
- package/es/typography/style/index.js +1 -1
- package/es/upload/Dragger.js +1 -1
- package/es/upload/Upload.js +1 -1
- package/es/upload/UploadList/ListItem.js +1 -1
- package/es/upload/UploadList/index.js +1 -1
- package/es/upload/index.js +1 -1
- package/es/upload/style/index.js +1 -1
- package/es/utils/common.d.ts +41 -0
- package/es/utils/common.js +4 -4
- package/es/utils/index.js +4 -4
- package/es/version/index.js +1 -1
- package/es/watermark/index.js +1 -1
- package/package.json +1 -1
- package/umd/index.min.js +147 -147
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SizeType } from '../config-provider/SizeContext';
|
|
3
|
+
export interface TimeOutProps {
|
|
4
|
+
prefixCls?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
value?: number;
|
|
8
|
+
remaining?: number;
|
|
9
|
+
format?: string;
|
|
10
|
+
prefix?: React.ReactNode;
|
|
11
|
+
suffix?: React.ReactNode;
|
|
12
|
+
countdown?: boolean;
|
|
13
|
+
size?: SizeType;
|
|
14
|
+
onFinish?: () => void;
|
|
15
|
+
onChange?: (remainingMs: number) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const TimeOut: React.FC<TimeOutProps>;
|
|
18
|
+
export default TimeOut;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import*as f from'react';import f__default,{createContext,useContext}from'react';import Fr from'classnames';import {createTheme,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';import br from'@ant-design/icons/lib/components/Context';import xr from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import'rc-util/lib/warning';import'rc-pagination/lib/locale/en_US';import Et from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import Yt from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import Sr from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import {Provider}from'rc-motion';function _e(){}var It=_e,Ue=f.createContext({}),ne=()=>{let e=()=>{};return e.deprecated=_e,e},_=It;var Ke=createContext(void 0);({lang:{...Et}});var T="${label} is not a valid ${type}",Ht={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:T,method:T,array:T,object:T,number:T,date:T,boolean:T,integer:T,float:T,regexp:T,email:T,url:T,hex:T},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}},I=Ht;({...I.Modal});var le=[],Qe=()=>le.reduce((e,o)=>({...e,...o}),I.Modal);function Ye(e){if(e){let o={...e};return le.push(o),Qe(),()=>{le=le.filter(r=>r!==o),Qe();}}({...I.Modal});}var Ot=createContext(void 0),U=Ot;var Je="internalMark",Nt=e=>{let{locale:o={},children:r,_ANT_MARK__:n}=e;f.useEffect(()=>Ye(o?.Modal),[o]);let t=f.useMemo(()=>({...o,exist:true}),[o]);return f.createElement(U.Provider,{value:t},r)},eo=Nt;var ke={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Bt={...ke,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},R=Bt;function Me(e,{generateColorPalettes:o,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:s,colorInfo:a,colorPrimary:l,colorBgBase:p,colorTextBase:i}=e,c=o(l),m=o(n),d=o(t),C=o(s),x=o(a),S=r(p,i),V=e.colorLink||e.colorInfo,P=o(V),G=new TinyColor(C[1]).mix(new TinyColor(C[3]),50).toHexString();return {...S,colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:G,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:P[4],colorLink:P[6],colorLinkActive:P[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Vt=e=>{let o=e,r=e,n=e,t=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?t=4:e>=8&&(t=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:o,borderRadiusOuter:t}},oo=Vt;function Re(e){let{motionUnit:o,motionBase:r,borderRadius:n,lineWidth:t}=e;return {motionDurationFast:`${(r+o).toFixed(1)}s`,motionDurationMid:`${(r+o*2).toFixed(1)}s`,motionDurationSlow:`${(r+o*3).toFixed(1)}s`,lineWidthBold:t+1,...oo(n)}}var Gt=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},to=Gt;function ro(e){return (e+8)/e}function Le(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,s=e*Math.E**(t/5),a=n>1?Math.floor(s):Math.ceil(s);return Math.floor(a/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:ro(r)}))}var jt=e=>{let o=Le(e),r=o.map(c=>c.size),n=o.map(c=>c.lineHeight),t=r[1],s=r[0],a=r[2],l=n[1],p=n[0],i=n[2];return {fontSizeSM:s,fontSize:t,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:i,lineHeightSM:p,fontHeight:Math.round(l*t),fontHeightLG:Math.round(i*a),fontHeightSM:Math.round(p*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},no=jt;function we(e){let{sizeUnit:o,sizeStep:r}=e;return {sizeXXL:o*(r+8),sizeXL:o*(r+4),sizeLG:o*(r+2),sizeMD:o*(r+1),sizeMS:o*r,size:o*r,sizeSM:o*(r-1),sizeXS:o*(r-2),sizeXXS:o*(r-3)}}var b=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),O=(e,o)=>new TinyColor(e).darken(o).toHexString();var ao=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},lo=(e,o)=>{let r=e||"#fff",n=o||"#000";return {colorBgBase:r,colorTextBase:n,colorText:b(n,.88),colorTextSecondary:b(n,.65),colorTextTertiary:b(n,.45),colorTextQuaternary:b(n,.25),colorFill:b(n,.15),colorFillSecondary:b(n,.06),colorFillTertiary:b(n,.04),colorFillQuaternary:b(n,.02),colorBgSolid:b(n,1),colorBgSolidHover:b(n,.75),colorBgSolidActive:b(n,.95),colorBgLayout:O(r,4),colorBgContainer:O(r,0),colorBgElevated:O(r,0),colorBgSpotlight:b(n,.85),colorBgBlur:"transparent",colorBorder:O(r,15),colorBorderSecondary:O(r,6)}};function Ae(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(ke).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((t,s,a)=>(t[`${r}-${a+1}`]=n[a],t[`${r}${a+1}`]=n[a],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...o,...Me(e,{generateColorPalettes:ao,generateNeutralColorPalettes:lo}),...no(e.fontSize),...we(e),...to(e),...Re(e)}}var se=createTheme(Ae),K={token:R,override:{override:R},hashed:true},q=f__default.createContext(K);var ce="ant",Q="anticon";var qt=(e,o)=>o||(e?`${ce}-${e}`:ce),v=f.createContext({getPrefixCls:qt,iconPrefixCls:Q}),{Consumer:Qt}=v;var Jt=`-ant-${Date.now()}-${Math.random()}`;function er(e,o){let r={},n=(a,l)=>{let p=a.clone();return p=l?.(p)||p,p.toRgbString()},t=(a,l)=>{let p=new TinyColor(a),i=generate(p.toRgbString());r[`${l}-color`]=n(p),r[`${l}-color-disabled`]=i[1],r[`${l}-color-hover`]=i[4],r[`${l}-color-active`]=i[6],r[`${l}-color-outline`]=p.clone().setAlpha(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=i[0],r[`${l}-color-deprecated-border`]=i[2];};if(o.primaryColor){t(o.primaryColor,"primary");let a=new TinyColor(o.primaryColor),l=generate(a.toRgbString());l.forEach((i,c)=>{r[`primary-${c+1}`]=i;}),r["primary-color-deprecated-l-35"]=n(a,i=>i.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,i=>i.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,i=>i.tint(20)),r["primary-color-deprecated-t-50"]=n(a,i=>i.tint(50)),r["primary-color-deprecated-f-12"]=n(a,i=>i.setAlpha(i.getAlpha()*.12));let p=new TinyColor(l[0]);r["primary-color-active-deprecated-f-30"]=n(p,i=>i.setAlpha(i.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(p,i=>i.darken(2));}return o.successColor&&t(o.successColor,"success"),o.warningColor&&t(o.warningColor,"warning"),o.errorColor&&t(o.errorColor,"error"),o.infoColor&&t(o.infoColor,"info"),`
|
|
4
|
+
:root {
|
|
5
|
+
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
6
|
+
`)}
|
|
7
|
+
}
|
|
8
|
+
`.trim()}function po(e,o){let r=er(e,o);Yt()?updateCSS(r,`${Jt}-dynamic-theme`):_();}var Ee=f.createContext(false),mo=({children:e,disabled:o})=>{let r=f.useContext(Ee);return f.createElement(Ee.Provider,{value:o??r},e)},fo=Ee;var Fe=f.createContext(void 0),go=({children:e,size:o})=>{let r=f.useContext(Fe);return f.createElement(Fe.Provider,{value:o||r},e)},A=Fe;function or(){let e=useContext(fo),o=useContext(A);return {componentDisabled:e,componentSize:o}}var uo=or;var xo={version:"0.0.3"};var So=xo.version;function $e(e){return e>=0&&e<=255}function rr(e,o){let{r,g:n,b:t,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:a,g:l,b:p}=new TinyColor(o).toRgb();for(let i=.01;i<=1;i+=.01){let c=Math.round((r-a*(1-i))/i),m=Math.round((n-l*(1-i))/i),d=Math.round((t-p*(1-i))/i);if($e(c)&&$e(m)&&$e(d))return new TinyColor({r:c,g:m,b:d,a:Math.round(i*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var Y=rr;function me(e){let{override:o,...r}=e,n={...o};Object.keys(R).forEach(d=>{delete n[d];});let t={...r,...n},s=480,a=576,l=768,p=992,i=1200,c=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:Y(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:Y(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:Y(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:Y(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
12
|
+
`,boxShadowSecondary:`
|
|
13
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
14
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
15
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
16
|
+
`,boxShadowTertiary:`
|
|
17
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
18
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
19
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
20
|
+
`,screenXS:s,screenXSMin:s,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:p-1,screenLG:p,screenLGMin:p,screenLGMax:i-1,screenXL:i,screenXLMin:i,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
21
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
22
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
23
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
24
|
+
`,boxShadowDrawerRight:`
|
|
25
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowDrawerLeft:`
|
|
29
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowDrawerUp:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowDrawerDown:`
|
|
37
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var We={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},ar={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},lr={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},To=(e,o,r)=>{let n=r.getDerivativeToken(e),{override:t,...s}=o,a={...n,override:t};return a=me(a),s&&Object.entries(s).forEach(([l,p])=>{let{theme:i,...c}=p,m=c;i&&(m=To({...a,...c},{override:c},i)),a[l]=m;}),a};function w(){let{token:e,hashed:o,theme:r,override:n,cssVar:t}=f__default.useContext(q),s=`${So}-${o||""}`,a=r||se,[l,p,i]=useCacheToken(a,[R,e],{salt:s,override:n,getComputedToken:To,formatToken:me,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:We,ignore:ar,preserve:lr}});return [a,i,o?p:"",l,t]}var bo=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),sr=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var Po=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ho=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,s=r?`.${r}`:t,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...l,...a,[t]:a}}};var fe=e=>({[`.${e}`]:{...sr(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Oe,genComponentStyleHook:pr,genSubStyleComponent:mr}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(v);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,r,n,t]=w();return {theme:e,realToken:o,hashId:r,token:n,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(v);return e??{}},getResetStyles:(e,o)=>[{"&":Po(e)},fe(o?.prefix.iconPrefixCls??Q)],getCommonStyle:ho,getCompUnitless:(()=>We)});var gr=(e,o)=>{let[r,n]=w();return useStyleRegister({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>o?.nonce,layer:{name:"antd"}},()=>[fe(e)])},ge=gr;var Cr={...f},{useId:Mo}=Cr,ur=()=>"",yr=typeof Mo>"u"?ur:Mo,Ro=yr;function Ne(e,o,r){ne();let t=e||{},s=t.inherit===false||!o?{...K,hashed:o?.hashed??K.hashed,cssVar:o?.cssVar}:o,a=Ro();return xr(()=>{if(!e)return o;let l={...s.components};Object.keys(e.components||{}).forEach(c=>{l[c]={...l[c],...e.components[c]};});let p=`css-var-${a.replace(/:/g,"")}`,i=(t.cssVar??s.cssVar)&&{prefix:r?.prefixCls,...typeof s.cssVar=="object"?s.cssVar:{},...typeof t.cssVar=="object"?t.cssVar:{},key:typeof t.cssVar=="object"&&t.cssVar?.key||p};return {...s,...t,token:{...s.token,...t.token},components:l,cssVar:i}},[t,s],(l,p)=>l.some((i,c)=>{let m=p[c];return !Sr(i,m,true)}))}function Be(e){let{children:o}=e,[,r]=w(),{motion:n}=r,t=f.useRef(false);return t.current=t.current||n===false,t.current?f.createElement(Provider,{motion:n},o):o}f.memo(({dropdownMatchSelectWidth:e})=>(ne().deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));var wo=()=>null;var kr=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Io;function Lr(){return Io||ce}function wr(e){return Object.keys(e).some(o=>o.endsWith("Color"))}var zr=e=>{let{prefixCls:o,iconPrefixCls:r,theme:n,holderRender:t}=e;o!==void 0&&(Io=o),n&&(wr(n)?(po(Lr(),n)):n);};var Ir=e=>{let{children:o,csp:r,autoInsertSpaceInButton:n,alert:t,anchor:s,form:a,locale:l,componentSize:p,direction:i,space:c,splitter:m,virtual:d,dropdownMatchSelectWidth:C,popupMatchSelectWidth:x,popupOverflow:S,legacyLocale:V,parentContext:P,iconPrefixCls:G,theme:D,componentDisabled:J,segmented:ee,statistic:h,spin:oe,calendar:te,carousel:ue,cascader:ye,collapse:xe,typography:z,checkbox:L,descriptions:Fo,divider:$o,drawer:Ho,skeleton:Wo,steps:Oo,image:No,layout:Bo,list:Vo,mentions:Go,modal:jo,progress:Xo,result:_o,slider:Uo,breadcrumb:Ko,menu:qo,pagination:Qo,input:Yo,textArea:Zo,empty:Jo,badge:et,radio:ot,rate:tt,switch:rt,transfer:nt,avatar:it,message:at,tag:lt,table:st,card:ct,tabs:pt,timeline:mt,timePicker:ft,upload:gt,notification:dt,tree:Ct,colorPicker:ut,datePicker:yt,rangePicker:xt,flex:St,wave:Tt,dropdown:bt,warning:Pt,tour:ht,variant:kt,inputNumber:vt,treeSelect:Mt}=e,Ve=f.useCallback((u,k)=>{let{prefixCls:$}=e;if(k)return k;let H=$||P.getPrefixCls("");return u?`${H}-${u}`:H},[P.getPrefixCls,e.prefixCls]),j=G||P.iconPrefixCls||Q,X=r||P.csp;ge(j,X);let Se=Ne(D,P.theme,{prefixCls:Ve("")}),Te={csp:X,autoInsertSpaceInButton:n,alert:t,anchor:s,locale:l||V,direction:i,space:c,splitter:m,virtual:d,popupMatchSelectWidth:x??C,popupOverflow:S,getPrefixCls:Ve,iconPrefixCls:j,theme:Se,segmented:ee,statistic:h,spin:oe,calendar:te,carousel:ue,cascader:ye,collapse:xe,typography:z,checkbox:L,descriptions:Fo,divider:$o,drawer:Ho,skeleton:Wo,steps:Oo,image:No,input:Yo,textArea:Zo,layout:Bo,list:Vo,mentions:Go,modal:jo,progress:Xo,result:_o,slider:Uo,breadcrumb:Ko,menu:qo,pagination:Qo,empty:Jo,badge:et,radio:ot,rate:tt,switch:rt,transfer:nt,avatar:it,message:at,tag:lt,table:st,card:ct,tabs:pt,timeline:mt,timePicker:ft,upload:gt,notification:dt,tree:Ct,colorPicker:ut,datePicker:yt,rangePicker:xt,flex:St,wave:Tt,dropdown:bt,warning:Pt,tour:ht,variant:kt,inputNumber:vt,treeSelect:Mt},E={...P};Object.keys(Te).forEach(u=>{Te[u]!==void 0&&(E[u]=Te[u]);}),kr.forEach(u=>{let k=e[u];k&&(E[u]=k);}),typeof n<"u"&&(E.button={autoInsertSpace:n,...E.button});let F=xr(()=>E,E,(u,k)=>{let $=Object.keys(u),H=Object.keys(k);return $.length!==H.length||$.some(re=>u[re]!==k[re])}),Rt=f.useMemo(()=>({prefixCls:j,csp:X}),[j,X]),y=f.createElement(f.Fragment,null,f.createElement(wo,{dropdownMatchSelectWidth:C}),o),Ge=f.useMemo(()=>merge(I.Form?.defaultValidateMessages||{},F.locale?.Form?.defaultValidateMessages||{},F.form?.validateMessages||{},a?.validateMessages||{}),[F,a?.validateMessages]);Object.keys(Ge).length>0&&(y=f.createElement(Ke.Provider,{value:Ge},y)),l&&(y=f.createElement(eo,{locale:l,_ANT_MARK__:Je},y)),(y=f.createElement(br.Provider,{value:Rt},y)),p&&(y=f.createElement(go,{size:p},y)),y=f.createElement(Be,null,y);let Lt=f.useMemo(()=>{let{algorithm:u,token:k,components:$,cssVar:H,...re}=Se||{},je=u&&(!Array.isArray(u)||u.length>0)?createTheme(u):se,be={};Object.entries($||{}).forEach(([wt,zt])=>{let M={...zt};"algorithm"in M&&(M.algorithm===true?M.theme=je:(Array.isArray(M.algorithm)||typeof M.algorithm=="function")&&(M.theme=createTheme(M.algorithm)),delete M.algorithm),be[wt]=M;});let Xe={...R,...k};return {...re,theme:je,token:Xe,components:be,override:{override:Xe,...be},cssVar:H}},[Se]);return D&&(y=f.createElement(q.Provider,{value:Lt},y)),F.warning&&(y=f.createElement(Ue.Provider,{value:F.warning},y)),J!==void 0&&(y=f.createElement(mo,{disabled:J},y)),f.createElement(v.Provider,{value:F},y)},Z=e=>{let o=f.useContext(v),r=f.useContext(U);return f.createElement(Ir,{parentContext:o,legacyLocale:r,...e})};Z.ConfigContext=v;Z.SizeContext=A;Z.config=zr;Z.useConfig=uo;Object.defineProperty(Z,"SizeContext",{get:()=>(A)});var Ar=e=>{let o=f__default.useContext(A);return f__default.useMemo(()=>e?typeof e=="string"?e??o:e instanceof Function?e(o):o:o,[e,o])},Do=Ar;var Dr=e=>{let{componentCls:o,blockBg:r,blockColor:n,blockBorderRadius:t,blockFontSize:s,separatorFontSize:a,paddingXXS:l,paddingXS:p,marginXXS:i,colorText:c,fontSize:m}=e;return {[o]:{...bo(e),display:"inline-flex",alignItems:"center",fontSize:m,color:c,[`${o}-prefix`]:{marginInlineEnd:p},[`${o}-suffix`]:{marginInlineStart:p},[`${o}-content`]:{display:"inline-flex",alignItems:"center"},[`${o}-block`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:24,height:24,paddingInline:l,fontSize:s,fontWeight:500,fontFamily:"monospace",color:n,backgroundColor:r,borderRadius:t,lineHeight:1},[`${o}-separator`]:{display:"inline-flex",alignItems:"center",paddingInline:i,fontSize:a,color:c},[`&${o}-sm`]:{fontSize:e.fontSizeSM,[`${o}-block`]:{minWidth:20,height:20,fontSize:e.fontSizeSM},[`${o}-separator`]:{fontSize:e.fontSizeSM}},[`&${o}-lg`]:{fontSize:e.fontSizeLG,[`${o}-block`]:{minWidth:32,height:32,fontSize:e.fontSizeLG},[`${o}-separator`]:{fontSize:e.fontSizeLG}}}}},Er=e=>({blockBg:e.colorPrimary,blockColor:e.colorTextLightSolid,blockBorderRadius:e.borderRadiusSM,blockFontSize:e.fontSize,separatorFontSize:e.fontSize}),Eo=Oe("TimeOut",e=>{let o=mergeToken(e,{});return [Dr(o)]},Er);function $r(e){let o=Math.max(0,Math.floor(e/1e3)),r=Math.floor(o/86400),n=Math.floor(o%86400/3600),t=Math.floor(o%3600/60),s=o%60;return {days:r,hours:n,minutes:t,seconds:s}}function Ce(e){return e<10?`0${e}`:`${e}`}function Hr(e){let o=[],r=/(DD|hh|mm|ss)/g,n=0,t;for(;(t=r.exec(e))!==null;)t.index>n&&o.push({type:"separator",value:e.slice(n,t.index)}),o.push({type:"digit",value:t[1],unit:t[1]}),n=r.lastIndex;return n<e.length&&o.push({type:"separator",value:e.slice(n)}),o}function Wr(e,o){switch(e){case "DD":return Ce(o.days);case "hh":return Ce(o.hours);case "mm":return Ce(o.minutes);case "ss":return Ce(o.seconds);default:return "00"}}var Or=e=>{let{getPrefixCls:o}=f.useContext(v),{prefixCls:r,className:n,style:t,value:s,remaining:a,format:l="hh:mm:ss",prefix:p="\u8FD8\u5269",suffix:i="\u5931\u6548",countdown:c=false,size:m,onFinish:d,onChange:C}=e,x=Do(m),S=o("time-out",r),[V,P,G]=Eo(S),D=f.useCallback(()=>a!==void 0?a:s!==void 0?Math.max(0,s-Date.now()):0,[a,s]),[J,ee]=f.useState(()=>D()),h=f.useRef(null),oe=f.useRef(d),te=f.useRef(C);oe.current=d,te.current=C,f.useEffect(()=>{ee(D());},[D]),f.useEffect(()=>{if(h.current&&(clearInterval(h.current),h.current=null),!!c)return h.current=setInterval(()=>{ee(z=>{let L=Math.max(0,z-1e3);return te.current?.(L),L<=0&&(clearInterval(h.current),h.current=null,oe.current?.()),L});},1e3),()=>{h.current&&(clearInterval(h.current),h.current=null);}},[c]);let ue=$r(J),ye=f.useMemo(()=>Hr(l),[l]),xe=Fr(S,P,G,{[`${S}-sm`]:x==="small",[`${S}-lg`]:x==="large"},n);return V(f.createElement("span",{className:xe,style:t},p&&f.createElement("span",{className:`${S}-prefix`},p),f.createElement("span",{className:`${S}-content`},ye.map((z,L)=>z.type==="digit"?f.createElement("span",{key:L,className:`${S}-block`},Wr(z.unit,ue)):f.createElement("span",{key:L,className:`${S}-separator`},z.value))),i&&f.createElement("span",{className:`${S}-suffix`},i)))},Qa=Or;export{Qa as default};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { GetDefaultToken } from '../../theme/internal';
|
|
2
|
+
export interface ComponentToken {
|
|
3
|
+
/**
|
|
4
|
+
* @desc 数字块背景色
|
|
5
|
+
* @descEN Background color of digit block
|
|
6
|
+
*/
|
|
7
|
+
blockBg: string;
|
|
8
|
+
/**
|
|
9
|
+
* @desc 数字块文字颜色
|
|
10
|
+
* @descEN Text color of digit block
|
|
11
|
+
*/
|
|
12
|
+
blockColor: string;
|
|
13
|
+
/**
|
|
14
|
+
* @desc 数字块圆角
|
|
15
|
+
* @descEN Border radius of digit block
|
|
16
|
+
*/
|
|
17
|
+
blockBorderRadius: number;
|
|
18
|
+
/**
|
|
19
|
+
* @desc 数字块字体大小
|
|
20
|
+
* @descEN Font size of digit block
|
|
21
|
+
*/
|
|
22
|
+
blockFontSize: number;
|
|
23
|
+
/**
|
|
24
|
+
* @desc 分隔符字体大小
|
|
25
|
+
* @descEN Font size of separator
|
|
26
|
+
*/
|
|
27
|
+
separatorFontSize: number;
|
|
28
|
+
}
|
|
29
|
+
export declare const prepareComponentToken: GetDefaultToken<'TimeOut'>;
|
|
30
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as Se from'react';import Se__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var j=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ce=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var E=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),W=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,s=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...c,...i,[o]:i}}};var h=e=>({[`.${e}`]:{...ce(),[`.${e} .${e}-icon`]:{display:"block"}}});function N(e){return (e+8)/e}function M(e){let t=new Array(10).fill(null).map((r,n)=>{let o=n-1,s=e*Math.E**(o/5),i=n>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:N(r)}))}var U={version:"0.0.3"};var V=U.version;var v={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ge={...v,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},u=ge;function H(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:c,colorBgBase:g,colorTextBase:a}=e,l=t(c),p=t(n),m=t(o),f=t(s),C=t(i),le=r(g,a),ae=e.colorLink||e.colorInfo,P=t(ae),se=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...le,colorPrimaryBg:l[1],colorPrimaryBgHover:l[2],colorPrimaryBorder:l[3],colorPrimaryBorderHover:l[4],colorPrimaryHover:l[5],colorPrimary:l[6],colorPrimaryActive:l[7],colorPrimaryTextHover:l[8],colorPrimaryText:l[9],colorPrimaryTextActive:l[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:se,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:P[4],colorLink:P[6],colorLinkActive:P[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var me=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},Q=me;function w(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1,...Q(n)}}var fe=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},_=fe;var de=e=>{let t=M(e),r=t.map(l=>l.size),n=t.map(l=>l.lineHeight),o=r[1],s=r[0],i=r[2],c=n[1],g=n[0],a=n[2];return {fontSizeSM:s,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:a,lineHeightSM:g,fontHeight:Math.round(c*o),fontHeightLG:Math.round(a*i),fontHeightSM:Math.round(g*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},q=de;function A(e){let{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}var d=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),S=(e,t)=>new TinyColor(e).darken(t).toHexString();var J=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Y=(e,t)=>{let r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:d(n,.88),colorTextSecondary:d(n,.65),colorTextTertiary:d(n,.45),colorTextQuaternary:d(n,.25),colorFill:d(n,.15),colorFillSecondary:d(n,.06),colorFillTertiary:d(n,.04),colorFillQuaternary:d(n,.02),colorBgSolid:d(n,1),colorBgSolidHover:d(n,.75),colorBgSolidActive:d(n,.95),colorBgLayout:S(r,4),colorBgContainer:S(r,0),colorBgElevated:S(r,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:S(r,15),colorBorderSecondary:S(r,6)}};function D(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(v).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((o,s,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...t,...H(e,{generateColorPalettes:J,generateNeutralColorPalettes:Y}),...q(e.fontSize),...A(e),..._(e),...w(e)}}var Z=createTheme(D),ee={token:u,override:{override:u},hashed:true},F=Se__default.createContext(ee);function B(e){return e>=0&&e<=255}function xe(e,t){let{r,g:n,b:o,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:i,g:c,b:g}=new TinyColor(t).toRgb();for(let a=.01;a<=1;a+=.01){let l=Math.round((r-i*(1-a))/a),p=Math.round((n-c*(1-a))/a),m=Math.round((o-g*(1-a))/a);if(B(l)&&B(p)&&B(m))return new TinyColor({r:l,g:p,b:m,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var y=xe;function k(e){let{override:t,...r}=e,n={...t};Object.keys(u).forEach(m=>{delete n[m];});let o={...r,...n},s=480,i=576,c=768,g=992,a=1200,l=1600;return o.motion===false&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:y(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:y(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:y(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:y(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
4
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
5
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
6
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
7
|
+
`,boxShadowSecondary:`
|
|
8
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
9
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
10
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
11
|
+
`,boxShadowTertiary:`
|
|
12
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
13
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
14
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
15
|
+
`,screenXS:s,screenXSMin:s,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:g-1,screenLG:g,screenLGMin:g,screenLGMax:a-1,screenXL:a,screenXLMin:a,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
16
|
+
0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
17
|
+
0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
18
|
+
0 5px 12px 4px ${new TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
19
|
+
`,boxShadowDrawerRight:`
|
|
20
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
21
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
22
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
23
|
+
`,boxShadowDrawerLeft:`
|
|
24
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
25
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
26
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
27
|
+
`,boxShadowDrawerUp:`
|
|
28
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
29
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
30
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
31
|
+
`,boxShadowDrawerDown:`
|
|
32
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
35
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...n}}var O={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},be={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},Pe={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},oe=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o,...s}=t,i={...n,override:o};return i=k(i),s&&Object.entries(s).forEach(([c,g])=>{let{theme:a,...l}=g,p=l;a&&(p=oe({...i,...l},{override:l},a)),i[c]=p;}),i};function x(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=Se__default.useContext(F),s=`${V}-${t||""}`,i=r||Z,[c,g,a]=useCacheToken(i,[u,e],{salt:s,override:n,getComputedToken:oe,formatToken:k,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:O,ignore:be,preserve:Pe}});return [i,a,t?g:"",c,o]}var te="ant",G="anticon";var he=(e,t)=>t||(e?`${te}-${e}`:te),b=Se.createContext({getPrefixCls:he,iconPrefixCls:G}),{Consumer:wo}=b;var{genStyleHooks:X,genComponentStyleHook:ve,genSubStyleComponent:ze}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(b);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=x();return {theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=useContext(b);return e??{}},getResetStyles:(e,t)=>[{"&":E(e)},h(t?.prefix.iconPrefixCls??G)],getCommonStyle:W,getCompUnitless:(()=>O)});var He=e=>{let{componentCls:t,blockBg:r,blockColor:n,blockBorderRadius:o,blockFontSize:s,separatorFontSize:i,paddingXXS:c,paddingXS:g,marginXXS:a,colorText:l,fontSize:p}=e;return {[t]:{...j(e),display:"inline-flex",alignItems:"center",fontSize:p,color:l,[`${t}-prefix`]:{marginInlineEnd:g},[`${t}-suffix`]:{marginInlineStart:g},[`${t}-content`]:{display:"inline-flex",alignItems:"center"},[`${t}-block`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:24,height:24,paddingInline:c,fontSize:s,fontWeight:500,fontFamily:"monospace",color:n,backgroundColor:r,borderRadius:o,lineHeight:1},[`${t}-separator`]:{display:"inline-flex",alignItems:"center",paddingInline:a,fontSize:i,color:l},[`&${t}-sm`]:{fontSize:e.fontSizeSM,[`${t}-block`]:{minWidth:20,height:20,fontSize:e.fontSizeSM},[`${t}-separator`]:{fontSize:e.fontSizeSM}},[`&${t}-lg`]:{fontSize:e.fontSizeLG,[`${t}-block`]:{minWidth:32,height:32,fontSize:e.fontSizeLG},[`${t}-separator`]:{fontSize:e.fontSizeLG}}}}},we=e=>({blockBg:e.colorPrimary,blockColor:e.colorTextLightSolid,blockBorderRadius:e.borderRadiusSM,blockFontSize:e.fontSize,separatorFontSize:e.fontSize}),st=X("TimeOut",e=>{let t=mergeToken(e,{});return [He(t)]},we);export{st as default,we as prepareComponentToken};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TimeOutWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import t from'styled-components';var e=t.div`
|
|
2
|
+
/* ==================== CSS 变量 ==================== */
|
|
3
|
+
--time-out-block-bg: #1677ff;
|
|
4
|
+
--time-out-block-color: #ffffff;
|
|
5
|
+
--time-out-block-border-radius: 4px;
|
|
6
|
+
--time-out-block-font-size: 14px;
|
|
7
|
+
--time-out-separator-font-size: 14px;
|
|
8
|
+
|
|
9
|
+
--time-out-color-text: rgba(0, 0, 0, 0.88);
|
|
10
|
+
|
|
11
|
+
--time-out-font-size: 14px;
|
|
12
|
+
--time-out-font-size-sm: 12px;
|
|
13
|
+
--time-out-font-size-lg: 16px;
|
|
14
|
+
|
|
15
|
+
--time-out-padding-xxs: 4px;
|
|
16
|
+
--time-out-padding-xs: 8px;
|
|
17
|
+
--time-out-margin-xxs: 4px;
|
|
18
|
+
|
|
19
|
+
.time-out {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
font-size: var(--time-out-font-size);
|
|
23
|
+
color: var(--time-out-color-text);
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.time-out *,
|
|
28
|
+
.time-out *::before,
|
|
29
|
+
.time-out *::after {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ==================== 前缀 ==================== */
|
|
34
|
+
.time-out-prefix {
|
|
35
|
+
margin-inline-end: var(--time-out-padding-xs);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* ==================== 后缀 ==================== */
|
|
39
|
+
.time-out-suffix {
|
|
40
|
+
margin-inline-start: var(--time-out-padding-xs);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* ==================== 内容区域 ==================== */
|
|
44
|
+
.time-out-content {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* ==================== 数字块 ==================== */
|
|
50
|
+
.time-out-block {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
min-width: 24px;
|
|
55
|
+
height: 24px;
|
|
56
|
+
padding-inline: var(--time-out-padding-xxs);
|
|
57
|
+
font-size: var(--time-out-block-font-size);
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
font-family: monospace;
|
|
60
|
+
color: var(--time-out-block-color);
|
|
61
|
+
background-color: var(--time-out-block-bg);
|
|
62
|
+
border-radius: var(--time-out-block-border-radius);
|
|
63
|
+
line-height: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* ==================== 分隔符 ==================== */
|
|
67
|
+
.time-out-separator {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
padding-inline: var(--time-out-margin-xxs);
|
|
71
|
+
font-size: var(--time-out-separator-font-size);
|
|
72
|
+
color: var(--time-out-color-text);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ==================== 小尺寸 ==================== */
|
|
76
|
+
.time-out.time-out-sm {
|
|
77
|
+
font-size: var(--time-out-font-size-sm);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.time-out.time-out-sm .time-out-block {
|
|
81
|
+
min-width: 20px;
|
|
82
|
+
height: 20px;
|
|
83
|
+
font-size: var(--time-out-font-size-sm);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.time-out.time-out-sm .time-out-separator {
|
|
87
|
+
font-size: var(--time-out-font-size-sm);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* ==================== 大尺寸 ==================== */
|
|
91
|
+
.time-out.time-out-lg {
|
|
92
|
+
font-size: var(--time-out-font-size-lg);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.time-out.time-out-lg .time-out-block {
|
|
96
|
+
min-width: 32px;
|
|
97
|
+
height: 32px;
|
|
98
|
+
font-size: var(--time-out-font-size-lg);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.time-out.time-out-lg .time-out-separator {
|
|
102
|
+
font-size: var(--time-out-font-size-lg);
|
|
103
|
+
}
|
|
104
|
+
`;export{e as TimeOutWrapper};
|
package/es/time-picker/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as E from'react';import E__default,{createContext,useContext,forwardRef,u
|
|
|
5
5
|
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function Wr(e,o){let t=Wa(e,o);Aa()?updateCSS(t,`${Da}-dynamic-theme`):To();}var At=E.createContext(false),Fr=({children:e,disabled:o})=>{let t=E.useContext(At);return E.createElement(At.Provider,{value:o??t},e)},ke=At;var Nt=E.createContext(void 0),Gr=({children:e,size:o})=>{let t=E.useContext(Nt);return E.createElement(Nt.Provider,{value:o||t},e)},Ne=Nt;function Fa(){let e=useContext(ke),o=useContext(Ne);return {componentDisabled:e,componentSize:o}}var Vr=Fa;var Xr={version:"0.0.
|
|
8
|
+
`.trim()}function Wr(e,o){let t=Wa(e,o);Aa()?updateCSS(t,`${Da}-dynamic-theme`):To();}var At=E.createContext(false),Fr=({children:e,disabled:o})=>{let t=E.useContext(At);return E.createElement(At.Provider,{value:o??t},e)},ke=At;var Nt=E.createContext(void 0),Gr=({children:e,size:o})=>{let t=E.useContext(Nt);return E.createElement(Nt.Provider,{value:o||t},e)},Ne=Nt;function Fa(){let e=useContext(ke),o=useContext(Ne);return {componentDisabled:e,componentSize:o}}var Vr=Fa;var Xr={version:"0.0.3"};var Ur=Xr.version;function Dt(e){return e>=0&&e<=255}function ja(e,o){let{r:t,g:n,b:r,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:l,b:s}=new TinyColor(o).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((t-a*(1-c))/c),m=Math.round((n-l*(1-c))/c),d=Math.round((r-s*(1-c))/c);if(Dt(p)&&Dt(m)&&Dt(d))return new TinyColor({r:p,g:m,b:d,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var wo=ja;function Fo(e){let{override:o,...t}=e,n={...o};Object.keys(be).forEach(d=>{delete n[d];});let r={...t,...n},i=480,a=576,l=768,s=992,c=1200,p=1600;return r.motion===false&&(r.motionDurationFast="0s",r.motionDurationMid="0s",r.motionDurationSlow="0s"),{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:wo(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:wo(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:wo(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:wo(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:`
|
|
9
9
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
10
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
package/es/timeline/Timeline.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as f from'react';import f__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(t).map(i=>`--${e}-${i}: ${t[i]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function co(e,o){let t=lr(e,o);nr()?updateCSS(t,`${ar}-dynamic-theme`):j();}var Ae=f.createContext(false),po=({children:e,disabled:o})=>{let t=f.useContext(Ae);return f.createElement(Ae.Provider,{value:o??t},e)},mo=Ae;var He=f.createContext(void 0),go=({children:e,size:o})=>{let t=f.useContext(He);return f.createElement(He.Provider,{value:o||t},e)},K=He;function sr(){let e=useContext(mo),o=useContext(K);return {componentDisabled:e,componentSize:o}}var Co=sr;var yo={version:"0.0.
|
|
8
|
+
`.trim()}function co(e,o){let t=lr(e,o);nr()?updateCSS(t,`${ar}-dynamic-theme`):j();}var Ae=f.createContext(false),po=({children:e,disabled:o})=>{let t=f.useContext(Ae);return f.createElement(Ae.Provider,{value:o??t},e)},mo=Ae;var He=f.createContext(void 0),go=({children:e,size:o})=>{let t=f.useContext(He);return f.createElement(He.Provider,{value:o||t},e)},K=He;function sr(){let e=useContext(mo),o=useContext(K);return {componentDisabled:e,componentSize:o}}var Co=sr;var yo={version:"0.0.3"};var xo=yo.version;function De(e){return e>=0&&e<=255}function pr(e,o){let{r:t,g:n,b:r,a:c}=new TinyColor(e).toRgb();if(c<1)return e;let{r:i,g:s,b:p}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let l=Math.round((t-i*(1-a))/a),m=Math.round((n-s*(1-a))/a),d=Math.round((r-p*(1-a))/a);if(De(l)&&De(m)&&De(d))return new TinyColor({r:l,g:m,b:d,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var Q=pr;function le(e){let{override:o,...t}=e,n={...o};Object.keys(L).forEach(d=>{delete n[d];});let r={...t,...n},c=480,i=576,s=768,p=992,a=1200,l=1600;return r.motion===false&&(r.motionDurationFast="0s",r.motionDurationMid="0s",r.motionDurationSlow="0s"),{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Q(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Q(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Q(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Q(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:`
|
|
9
9
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
10
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -5,7 +5,7 @@ import*as m from'react';import m__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function Ze(e,o){let r=Kt(e,o);Xt()?updateCSS(r,`${Ut}-dynamic-theme`):$();}var be=m.createContext(false),eo=({children:e,disabled:o})=>{let r=m.useContext(be);return m.createElement(be.Provider,{value:o??r},e)},oo=be;var ke=m.createContext(void 0),to=({children:e,size:o})=>{let r=m.useContext(ke);return m.createElement(ke.Provider,{value:o||r},e)},j=ke;function qt(){let e=useContext(oo),o=useContext(j);return {componentDisabled:e,componentSize:o}}var no=qt;var ao={version:"0.0.
|
|
8
|
+
`.trim()}function Ze(e,o){let r=Kt(e,o);Xt()?updateCSS(r,`${Ut}-dynamic-theme`):$();}var be=m.createContext(false),eo=({children:e,disabled:o})=>{let r=m.useContext(be);return m.createElement(be.Provider,{value:o??r},e)},oo=be;var ke=m.createContext(void 0),to=({children:e,size:o})=>{let r=m.useContext(ke);return m.createElement(ke.Provider,{value:o||r},e)},j=ke;function qt(){let e=useContext(oo),o=useContext(j);return {componentDisabled:e,componentSize:o}}var no=qt;var ao={version:"0.0.3"};var lo=ao.version;function he(e){return e>=0&&e<=255}function Yt(e,o){let{r,g:n,b:t,a:c}=new TinyColor(e).toRgb();if(c<1)return e;let{r:a,g:s,b:p}=new TinyColor(o).toRgb();for(let i=.01;i<=1;i+=.01){let l=Math.round((r-a*(1-i))/i),g=Math.round((n-s*(1-i))/i),f=Math.round((t-p*(1-i))/i);if(he(l)&&he(g)&&he(f))return new TinyColor({r:l,g,b:f,a:Math.round(i*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var G=Yt;function ee(e){let{override:o,...r}=e,n={...o};Object.keys(h).forEach(f=>{delete n[f];});let t={...r,...n},c=480,a=576,s=768,p=992,i=1200,l=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:G(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:G(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:G(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:G(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
9
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
10
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -5,7 +5,7 @@ import*as d from'react';import d__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function io(e,o){let r=Yt(e,o);Kt()?updateCSS(r,`${Qt}-dynamic-theme`):j();}var Ie=d.createContext(false),ao=({children:e,disabled:o})=>{let r=d.useContext(Ie);return d.createElement(Ie.Provider,{value:o??r},e)},lo=Ie;var Ae=d.createContext(void 0),so=({children:e,size:o})=>{let r=d.useContext(Ae);return d.createElement(Ae.Provider,{value:o||r},e)},K=Ae;function Jt(){let e=useContext(lo),o=useContext(K);return {componentDisabled:e,componentSize:o}}var po=Jt;var go={version:"0.0.
|
|
8
|
+
`.trim()}function io(e,o){let r=Yt(e,o);Kt()?updateCSS(r,`${Qt}-dynamic-theme`):j();}var Ie=d.createContext(false),ao=({children:e,disabled:o})=>{let r=d.useContext(Ie);return d.createElement(Ie.Provider,{value:o??r},e)},lo=Ie;var Ae=d.createContext(void 0),so=({children:e,size:o})=>{let r=d.useContext(Ae);return d.createElement(Ae.Provider,{value:o||r},e)},K=Ae;function Jt(){let e=useContext(lo),o=useContext(K);return {componentDisabled:e,componentSize:o}}var po=Jt;var go={version:"0.0.3"};var fo=go.version;function ze(e){return e>=0&&e<=255}function er(e,o){let{r,g:n,b:t,a:c}=new TinyColor(e).toRgb();if(c<1)return e;let{r:i,g:s,b:p}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let l=Math.round((r-i*(1-a))/a),m=Math.round((n-s*(1-a))/a),g=Math.round((t-p*(1-a))/a);if(ze(l)&&ze(m)&&ze(g))return new TinyColor({r:l,g:m,b:g,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var q=er;function ae(e){let{override:o,...r}=e,n={...o};Object.keys(v).forEach(g=>{delete n[g];});let t={...r,...n},c=480,i=576,s=768,p=992,a=1200,l=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:q(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:q(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:q(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:q(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
9
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
10
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
package/es/timeline/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as f from'react';import f__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(t).map(i=>`--${e}-${i}: ${t[i]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function co(e,o){let t=sr(e,o);ir()?updateCSS(t,`${lr}-dynamic-theme`):j();}var Ae=f.createContext(false),po=({children:e,disabled:o})=>{let t=f.useContext(Ae);return f.createElement(Ae.Provider,{value:o??t},e)},mo=Ae;var He=f.createContext(void 0),go=({children:e,size:o})=>{let t=f.useContext(He);return f.createElement(He.Provider,{value:o||t},e)},K=He;function cr(){let e=useContext(mo),o=useContext(K);return {componentDisabled:e,componentSize:o}}var Co=cr;var yo={version:"0.0.
|
|
8
|
+
`.trim()}function co(e,o){let t=sr(e,o);ir()?updateCSS(t,`${lr}-dynamic-theme`):j();}var Ae=f.createContext(false),po=({children:e,disabled:o})=>{let t=f.useContext(Ae);return f.createElement(Ae.Provider,{value:o??t},e)},mo=Ae;var He=f.createContext(void 0),go=({children:e,size:o})=>{let t=f.useContext(He);return f.createElement(He.Provider,{value:o||t},e)},K=He;function cr(){let e=useContext(mo),o=useContext(K);return {componentDisabled:e,componentSize:o}}var Co=cr;var yo={version:"0.0.3"};var xo=yo.version;function De(e){return e>=0&&e<=255}function mr(e,o){let{r:t,g:n,b:r,a:c}=new TinyColor(e).toRgb();if(c<1)return e;let{r:i,g:s,b:p}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let l=Math.round((t-i*(1-a))/a),m=Math.round((n-s*(1-a))/a),d=Math.round((r-p*(1-a))/a);if(De(l)&&De(m)&&De(d))return new TinyColor({r:l,g:m,b:d,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var Q=mr;function le(e){let{override:o,...t}=e,n={...o};Object.keys(L).forEach(d=>{delete n[d];});let r={...t,...n},c=480,i=576,s=768,p=992,a=1200,l=1600;return r.motion===false&&(r.motionDurationFast="0s",r.motionDurationMid="0s",r.motionDurationSlow="0s"),{...r,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Q(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Q(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Q(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:r.lineWidth*3,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Q(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:`
|
|
9
9
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
10
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as ye from'react';import ye__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var E=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),pe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var W=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),j=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,s=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...c,...i,[t]:i}}};var v=e=>({[`.${e}`]:{...pe(),[`.${e} .${e}-icon`]:{display:"block"}}});function U(e){return (e+8)/e}function M(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,s=e*Math.E**(t/5),i=n>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:U(r)}))}var q={version:"0.0.
|
|
1
|
+
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as ye from'react';import ye__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var E=(e,o=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:o?"inherit":e.fontFamily}),pe=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});var W=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),j=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,s=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...c,...i,[t]:i}}};var v=e=>({[`.${e}`]:{...pe(),[`.${e} .${e}-icon`]:{display:"block"}}});function U(e){return (e+8)/e}function M(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,s=e*Math.E**(t/5),i=n>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:U(r)}))}var q={version:"0.0.3"};var V=q.version;var H={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ge={...H,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2
2
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
3
3
|
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},S=ge;function w(e,{generateColorPalettes:o,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:s,colorInfo:i,colorPrimary:c,colorBgBase:d,colorTextBase:l}=e,a=o(c),p=o(n),m=o(t),f=o(s),u=o(i),le=r(d,l),se=e.colorLink||e.colorInfo,P=o(se),ce=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...le,colorPrimaryBg:a[1],colorPrimaryBgHover:a[2],colorPrimaryBorder:a[3],colorPrimaryBorderHover:a[4],colorPrimaryHover:a[5],colorPrimary:a[6],colorPrimaryActive:a[7],colorPrimaryTextHover:a[8],colorPrimaryText:a[9],colorPrimaryTextActive:a[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:ce,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:P[4],colorLink:P[6],colorLinkActive:P[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var de=e=>{let o=e,r=e,n=e,t=e;return e<6&&e>=5?o=e+1:e<16&&e>=6?o=e+2:e>=16&&(o=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?t=4:e>=8&&(t=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:o,borderRadiusOuter:t}},Q=de;function A(e){let{motionUnit:o,motionBase:r,borderRadius:n,lineWidth:t}=e;return {motionDurationFast:`${(r+o).toFixed(1)}s`,motionDurationMid:`${(r+o*2).toFixed(1)}s`,motionDurationSlow:`${(r+o*3).toFixed(1)}s`,lineWidthBold:t+1,...Q(n)}}var fe=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},_=fe;var Ce=e=>{let o=M(e),r=o.map(a=>a.size),n=o.map(a=>a.lineHeight),t=r[1],s=r[0],i=r[2],c=n[1],d=n[0],l=n[2];return {fontSizeSM:s,fontSize:t,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:l,lineHeightSM:d,fontHeight:Math.round(c*t),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(d*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},K=Ce;function I(e){let{sizeUnit:o,sizeStep:r}=e;return {sizeXXL:o*(r+8),sizeXL:o*(r+4),sizeLG:o*(r+2),sizeMD:o*(r+1),sizeMS:o*r,size:o*r,sizeSM:o*(r-1),sizeXS:o*(r-2),sizeXXS:o*(r-3)}}var C=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),y=(e,o)=>new TinyColor(e).darken(o).toHexString();var Y=e=>{let o=generate(e);return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[4],6:o[5],7:o[6],8:o[4],9:o[5],10:o[6]}},Z=(e,o)=>{let r=e||"#fff",n=o||"#000";return {colorBgBase:r,colorTextBase:n,colorText:C(n,.88),colorTextSecondary:C(n,.65),colorTextTertiary:C(n,.45),colorTextQuaternary:C(n,.25),colorFill:C(n,.15),colorFillSecondary:C(n,.06),colorFillTertiary:C(n,.04),colorFillQuaternary:C(n,.02),colorBgSolid:C(n,1),colorBgSolidHover:C(n,.75),colorBgSolidActive:C(n,.95),colorBgLayout:y(r,4),colorBgContainer:y(r,0),colorBgElevated:y(r,0),colorBgSpotlight:C(n,.85),colorBgBlur:"transparent",colorBorder:y(r,15),colorBorderSecondary:y(r,6)}};function D(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let o=Object.keys(H).map(r=>{let n=e[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(e[r]);return new Array(10).fill(1).reduce((t,s,i)=>(t[`${r}-${i+1}`]=n[i],t[`${r}${i+1}`]=n[i],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...o,...w(e,{generateColorPalettes:Y,generateNeutralColorPalettes:Z}),...K(e.fontSize),...I(e),..._(e),...A(e)}}var ee=createTheme(D),oe={token:S,override:{override:S},hashed:true},$=ye__default.createContext(oe);function F(e){return e>=0&&e<=255}function Te(e,o){let{r,g:n,b:t,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:i,g:c,b:d}=new TinyColor(o).toRgb();for(let l=.01;l<=1;l+=.01){let a=Math.round((r-i*(1-l))/l),p=Math.round((n-c*(1-l))/l),m=Math.round((t-d*(1-l))/l);if(F(a)&&F(p)&&F(m))return new TinyColor({r:a,g:p,b:m,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var x=Te;function k(e){let{override:o,...r}=e,n={...o};Object.keys(S).forEach(m=>{delete n[m];});let t={...r,...n},s=480,i=576,c=768,d=992,l=1200,a=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:x(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:x(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:x(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:x(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
4
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
package/es/tooltip/PurePanel.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as g from'react';import g__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function go(e,o){let n=wr(e,o);Pr()?updateCSS(n,`${vr}-dynamic-theme`):V();}var $e=g.createContext(false),uo=({children:e,disabled:o})=>{let n=g.useContext($e);return g.createElement($e.Provider,{value:o??n},e)},Co=$e;var Ie=g.createContext(void 0),yo=({children:e,size:o})=>{let n=g.useContext(Ie);return g.createElement(Ie.Provider,{value:o||n},e)},Z=Ie;function Mr(){let e=useContext(Co),o=useContext(Z);return {componentDisabled:e,componentSize:o}}var So=Mr;var O=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var To={version:"0.0.
|
|
8
|
+
`.trim()}function go(e,o){let n=wr(e,o);Pr()?updateCSS(n,`${vr}-dynamic-theme`):V();}var $e=g.createContext(false),uo=({children:e,disabled:o})=>{let n=g.useContext($e);return g.createElement($e.Provider,{value:o??n},e)},Co=$e;var Ie=g.createContext(void 0),yo=({children:e,size:o})=>{let n=g.useContext(Ie);return g.createElement(Ie.Provider,{value:o||n},e)},Z=Ie;function Mr(){let e=useContext(Co),o=useContext(Z);return {componentDisabled:e,componentSize:o}}var So=Mr;var O=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var To={version:"0.0.3"};var ho=To.version;function ze(e){return e>=0&&e<=255}function Rr(e,o){let{r:n,g:r,b:t,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:l,b:c}=new TinyColor(o).toRgb();for(let s=.01;s<=1;s+=.01){let p=Math.round((n-i*(1-s))/s),m=Math.round((r-l*(1-s))/s),f=Math.round((t-c*(1-s))/s);if(ze(p)&&ze(m)&&ze(f))return new TinyColor({r:p,g:m,b:f,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r:n,g:r,b:t,a:1}).toRgbString()}var Y=Rr;function pe(e){let{override:o,...n}=e,r={...o};Object.keys(w).forEach(f=>{delete r[f];});let t={...n,...r},a=480,i=576,l=768,c=992,s=1200,p=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:Y(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:Y(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:Y(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:Y(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
9
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
10
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
package/es/tooltip/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as g from'react';import g__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function pt(e,o){let n=Ur(e,o);Gr()?updateCSS(n,`${Kr}-dynamic-theme`):le();}var wo=g.createContext(false),mt=({children:e,disabled:o})=>{let n=g.useContext(wo);return g.createElement(wo.Provider,{value:o??n},e)},ft=wo;var Ro=g.createContext(void 0),dt=({children:e,size:o})=>{let n=g.useContext(Ro);return g.createElement(Ro.Provider,{value:o||n},e)},Y=Ro;function Zr(){let e=useContext(ft),o=useContext(Y);return {componentDisabled:e,componentSize:o}}var ut=Zr;var D=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Ct={version:"0.0.
|
|
8
|
+
`.trim()}function pt(e,o){let n=Ur(e,o);Gr()?updateCSS(n,`${Kr}-dynamic-theme`):le();}var wo=g.createContext(false),mt=({children:e,disabled:o})=>{let n=g.useContext(wo);return g.createElement(wo.Provider,{value:o??n},e)},ft=wo;var Ro=g.createContext(void 0),dt=({children:e,size:o})=>{let n=g.useContext(Ro);return g.createElement(Ro.Provider,{value:o||n},e)},Y=Ro;function Zr(){let e=useContext(ft),o=useContext(Y);return {componentDisabled:e,componentSize:o}}var ut=Zr;var D=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Ct={version:"0.0.3"};var yt=Ct.version;function Mo(e){return e>=0&&e<=255}function Yr(e,o){let{r:n,g:r,b:t,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:s,b:c}=new TinyColor(o).toRgb();for(let l=.01;l<=1;l+=.01){let p=Math.round((n-i*(1-l))/l),m=Math.round((r-s*(1-l))/l),f=Math.round((t-c*(1-l))/l);if(Mo(p)&&Mo(m)&&Mo(f))return new TinyColor({r:p,g:m,b:f,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r:n,g:r,b:t,a:1}).toRgbString()}var ge=Yr;function Me(e){let{override:o,...n}=e,r={...o};Object.keys(z).forEach(f=>{delete r[f];});let t={...n,...r},a=480,i=576,s=768,c=992,l=1200,p=1600;return t.motion===false&&(t.motionDurationFast="0s",t.motionDurationMid="0s",t.motionDurationSlow="0s"),{...t,colorFillContent:t.colorFillSecondary,colorFillContentHover:t.colorFill,colorFillAlter:t.colorFillQuaternary,colorBgContainerDisabled:t.colorFillTertiary,colorBorderBg:t.colorBgContainer,colorSplit:ge(t.colorBorderSecondary,t.colorBgContainer),colorTextPlaceholder:t.colorTextQuaternary,colorTextDisabled:t.colorTextQuaternary,colorTextHeading:t.colorText,colorTextLabel:t.colorTextSecondary,colorTextDescription:t.colorTextTertiary,colorTextLightSolid:t.colorWhite,colorHighlight:t.colorError,colorBgTextHover:t.colorFillSecondary,colorBgTextActive:t.colorFill,colorIcon:t.colorTextTertiary,colorIconHover:t.colorText,colorErrorOutline:ge(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:ge(t.colorWarningBg,t.colorBgContainer),fontSizeIcon:t.fontSizeSM,lineWidthFocus:t.lineWidth*3,lineWidth:t.lineWidth,controlOutlineWidth:t.lineWidth*2,controlInteractiveSize:t.controlHeight/2,controlItemBgHover:t.colorFillTertiary,controlItemBgActive:t.colorPrimaryBg,controlItemBgActiveHover:t.colorPrimaryBgHover,controlItemBgActiveDisabled:t.colorFill,controlTmpOutline:t.colorFillQuaternary,controlOutline:ge(t.colorPrimaryBg,t.colorBgContainer),lineType:t.lineType,borderRadius:t.borderRadius,borderRadiusXS:t.borderRadiusXS,borderRadiusSM:t.borderRadiusSM,borderRadiusLG:t.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:t.sizeXXS,paddingXS:t.sizeXS,paddingSM:t.sizeSM,padding:t.size,paddingMD:t.sizeMD,paddingLG:t.sizeLG,paddingXL:t.sizeXL,paddingContentHorizontalLG:t.sizeLG,paddingContentVerticalLG:t.sizeMS,paddingContentHorizontal:t.sizeMS,paddingContentVertical:t.sizeSM,paddingContentHorizontalSM:t.size,paddingContentVerticalSM:t.sizeXS,marginXXS:t.sizeXXS,marginXS:t.sizeXS,marginSM:t.sizeSM,margin:t.size,marginMD:t.sizeMD,marginLG:t.sizeLG,marginXL:t.sizeXL,marginXXL:t.sizeXXL,boxShadow:`
|
|
9
9
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
10
10
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
11
11
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -7,7 +7,7 @@ import {Keyframes,createTheme,useCacheToken,unit}from'@ant-design/cssinjs';impor
|
|
|
7
7
|
`]:{animationName:r,animationPlayState:"running"},[`${a}${o}-leave${o}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}};new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}});new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}});new Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}});new Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}});new Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}});new Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}});new Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}});new Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}});new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}});new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}});new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}});new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}});var ao=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),so=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),L=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),H=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),lo=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),co=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),po=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),mo=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),fo=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),go=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),uo=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),yo=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),ae={zoom:{inKeyframes:ao,outKeyframes:so},"zoom-big":{inKeyframes:L,outKeyframes:H},"zoom-big-fast":{inKeyframes:L,outKeyframes:H},"zoom-left":{inKeyframes:po,outKeyframes:mo},"zoom-right":{inKeyframes:fo,outKeyframes:go},"zoom-up":{inKeyframes:lo,outKeyframes:co},"zoom-down":{inKeyframes:uo,outKeyframes:yo}},B=(o,r)=>{let{antCls:n}=o,t=`${n}-${r}`,{inKeyframes:e,outKeyframes:a}=ae[r];return [v(t,e,a,o.motionDurationFast),{[`
|
|
8
8
|
${t}-enter,
|
|
9
9
|
${t}-appear
|
|
10
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:o.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${t}-leave`]:{animationTimingFunction:o.motionEaseInOutCirc}}]};function Co(o){let{sizePopupArrow:r,borderRadiusXS:n,borderRadiusOuter:t}=o,e=r/2,a=0,i=e,s=t*1/Math.sqrt(2),p=e-t*(1-1/Math.sqrt(2)),c=e-n*(1/Math.sqrt(2)),l=t*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),m=2*e-c,f=l,g=2*e-s,d=p,h=2*e-a,w=i,C=e*Math.sqrt(2)+t*(Math.sqrt(2)-2),k=t*(Math.sqrt(2)-1),Bo=`polygon(${k}px 100%, 50% ${k}px, ${2*e-k}px 100%, ${k}px 100%)`,Fo=`path('M ${a} ${i} A ${t} ${t} 0 0 0 ${s} ${p} L ${c} ${l} A ${n} ${n} 0 0 1 ${m} ${f} L ${g} ${d} A ${t} ${t} 0 0 0 ${h} ${w} Z')`;return {arrowShadowWidth:C,arrowPath:Fo,arrowPolygon:Bo}}var So=(o,r,n)=>{let{sizePopupArrow:t,arrowPolygon:e,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:p}=o;return {pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:p(t).div(2).equal(),background:r,clipPath:{_multi_value_:true,value:[e,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${unit(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};var F=8;function To(o){let{contentRadius:r,limitVerticalRadius:n}=o,t=r>12?r+2:12;return {arrowOffsetHorizontal:t,arrowOffsetVertical:n?F:t}}function O(o,r){return o?r:{}}function X(o,r,n){let{componentCls:t,boxShadowPopoverArrow:e,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=o,{arrowDistance:s=0,arrowPlacement:p={left:true,right:true,top:true,bottom:true}}={};return {[t]:{[`${t}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...So(o,r,e),"&:before":{background:r}}],...O(!!p.top,{[[`&-placement-top > ${t}-arrow`,`&-placement-topLeft > ${t}-arrow`,`&-placement-topRight > ${t}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${t}-arrow`]:{left:{_skip_check_:true,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(i)})`,[`> ${t}-arrow`]:{right:{_skip_check_:true,value:i}}}}),...O(!!p.bottom,{[[`&-placement-bottom > ${t}-arrow`,`&-placement-bottomLeft > ${t}-arrow`,`&-placement-bottomRight > ${t}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${t}-arrow`]:{left:{_skip_check_:true,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(i)})`,[`> ${t}-arrow`]:{right:{_skip_check_:true,value:i}}}}),...O(!!p.left,{[[`&-placement-left > ${t}-arrow`,`&-placement-leftTop > ${t}-arrow`,`&-placement-leftBottom > ${t}-arrow`].join(",")]:{right:{_skip_check_:true,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${t}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${t}-arrow`]:{top:a},[`&-placement-leftBottom > ${t}-arrow`]:{bottom:a}}),...O(!!p.right,{[[`&-placement-right > ${t}-arrow`,`&-placement-rightTop > ${t}-arrow`,`&-placement-rightBottom > ${t}-arrow`].join(",")]:{left:{_skip_check_:true,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${t}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${t}-arrow`]:{top:a},[`&-placement-rightBottom > ${t}-arrow`]:{bottom:a}})}}}var z=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ko(o){return (o+8)/o}function j(o){let r=new Array(10).fill(null).map((n,t)=>{let e=t-1,a=o*Math.E**(e/5),i=t>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return r[1]=o,r.map(n=>({size:n,lineHeight:ko(n)}))}var bo={version:"0.0.
|
|
10
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:o.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${t}-leave`]:{animationTimingFunction:o.motionEaseInOutCirc}}]};function Co(o){let{sizePopupArrow:r,borderRadiusXS:n,borderRadiusOuter:t}=o,e=r/2,a=0,i=e,s=t*1/Math.sqrt(2),p=e-t*(1-1/Math.sqrt(2)),c=e-n*(1/Math.sqrt(2)),l=t*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),m=2*e-c,f=l,g=2*e-s,d=p,h=2*e-a,w=i,C=e*Math.sqrt(2)+t*(Math.sqrt(2)-2),k=t*(Math.sqrt(2)-1),Bo=`polygon(${k}px 100%, 50% ${k}px, ${2*e-k}px 100%, ${k}px 100%)`,Fo=`path('M ${a} ${i} A ${t} ${t} 0 0 0 ${s} ${p} L ${c} ${l} A ${n} ${n} 0 0 1 ${m} ${f} L ${g} ${d} A ${t} ${t} 0 0 0 ${h} ${w} Z')`;return {arrowShadowWidth:C,arrowPath:Fo,arrowPolygon:Bo}}var So=(o,r,n)=>{let{sizePopupArrow:t,arrowPolygon:e,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:p}=o;return {pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:p(t).div(2).equal(),background:r,clipPath:{_multi_value_:true,value:[e,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${unit(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};var F=8;function To(o){let{contentRadius:r,limitVerticalRadius:n}=o,t=r>12?r+2:12;return {arrowOffsetHorizontal:t,arrowOffsetVertical:n?F:t}}function O(o,r){return o?r:{}}function X(o,r,n){let{componentCls:t,boxShadowPopoverArrow:e,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=o,{arrowDistance:s=0,arrowPlacement:p={left:true,right:true,top:true,bottom:true}}={};return {[t]:{[`${t}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...So(o,r,e),"&:before":{background:r}}],...O(!!p.top,{[[`&-placement-top > ${t}-arrow`,`&-placement-topLeft > ${t}-arrow`,`&-placement-topRight > ${t}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${t}-arrow`]:{left:{_skip_check_:true,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(i)})`,[`> ${t}-arrow`]:{right:{_skip_check_:true,value:i}}}}),...O(!!p.bottom,{[[`&-placement-bottom > ${t}-arrow`,`&-placement-bottomLeft > ${t}-arrow`,`&-placement-bottomRight > ${t}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${t}-arrow`]:{left:{_skip_check_:true,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(i)})`,[`> ${t}-arrow`]:{right:{_skip_check_:true,value:i}}}}),...O(!!p.left,{[[`&-placement-left > ${t}-arrow`,`&-placement-leftTop > ${t}-arrow`,`&-placement-leftBottom > ${t}-arrow`].join(",")]:{right:{_skip_check_:true,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${t}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${t}-arrow`]:{top:a},[`&-placement-leftBottom > ${t}-arrow`]:{bottom:a}}),...O(!!p.right,{[[`&-placement-right > ${t}-arrow`,`&-placement-rightTop > ${t}-arrow`,`&-placement-rightBottom > ${t}-arrow`].join(",")]:{left:{_skip_check_:true,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${t}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${t}-arrow`]:{top:a},[`&-placement-rightBottom > ${t}-arrow`]:{bottom:a}})}}}var z=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ko(o){return (o+8)/o}function j(o){let r=new Array(10).fill(null).map((n,t)=>{let e=t-1,a=o*Math.E**(e/5),i=t>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return r[1]=o,r.map(n=>({size:n,lineHeight:ko(n)}))}var bo={version:"0.0.3"};var ho=bo.version;var E={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ce={...E,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
11
11
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
12
12
|
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},T=ce;function G(o,{generateColorPalettes:r,generateNeutralColorPalettes:n}){let{colorSuccess:t,colorWarning:e,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:p,colorTextBase:c}=o,l=r(s),m=r(t),f=r(e),g=r(a),d=r(i),h=n(p,c),w=o.colorLink||o.colorInfo,C=r(w),k=new TinyColor(g[1]).mix(new TinyColor(g[3]),50).toHexString();return {...h,colorPrimaryBg:l[1],colorPrimaryBgHover:l[2],colorPrimaryBorder:l[3],colorPrimaryBorderHover:l[4],colorPrimaryHover:l[5],colorPrimary:l[6],colorPrimaryActive:l[7],colorPrimaryTextHover:l[8],colorPrimaryText:l[9],colorPrimaryTextActive:l[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:k,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:d[1],colorInfoBgHover:d[2],colorInfoBorder:d[3],colorInfoBorderHover:d[4],colorInfoHover:d[4],colorInfo:d[6],colorInfoActive:d[7],colorInfoTextHover:d[8],colorInfoText:d[9],colorInfoTextActive:d[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var pe=o=>{let r=o,n=o,t=o,e=o;return o<6&&o>=5?r=o+1:o<16&&o>=6?r=o+2:o>=16&&(r=16),o<7&&o>=5?n=4:o<8&&o>=7?n=5:o<14&&o>=8?n=6:o<16&&o>=14?n=7:o>=16&&(n=8),o<6&&o>=2?t=1:o>=6&&(t=2),o>4&&o<8?e=4:o>=8&&(e=6),{borderRadius:o,borderRadiusXS:t,borderRadiusSM:n,borderRadiusLG:r,borderRadiusOuter:e}},wo=pe;function K(o){let{motionUnit:r,motionBase:n,borderRadius:t,lineWidth:e}=o;return {motionDurationFast:`${(n+r).toFixed(1)}s`,motionDurationMid:`${(n+r*2).toFixed(1)}s`,motionDurationSlow:`${(n+r*3).toFixed(1)}s`,lineWidthBold:e+1,...wo(t)}}var me=o=>{let{controlHeight:r}=o;return {controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}},vo=me;var fe=o=>{let r=j(o),n=r.map(l=>l.size),t=r.map(l=>l.lineHeight),e=n[1],a=n[0],i=n[2],s=t[1],p=t[0],c=t[2];return {fontSizeSM:a,fontSize:e,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:p,fontHeight:Math.round(s*e),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(p*a),lineHeightHeading1:t[6],lineHeightHeading2:t[5],lineHeightHeading3:t[4],lineHeightHeading4:t[3],lineHeightHeading5:t[2]}},Po=fe;function _(o){let{sizeUnit:r,sizeStep:n}=o;return {sizeXXL:r*(n+8),sizeXL:r*(n+4),sizeLG:r*(n+2),sizeMD:r*(n+1),sizeMS:r*n,size:r*n,sizeSM:r*(n-1),sizeXS:r*(n-2),sizeXXS:r*(n-3)}}var u=(o,r)=>new TinyColor(o).setAlpha(r).toRgbString(),b=(o,r)=>new TinyColor(o).darken(r).toHexString();var Oo=o=>{let r=generate(o);return {1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},zo=(o,r)=>{let n=o||"#fff",t=r||"#000";return {colorBgBase:n,colorTextBase:t,colorText:u(t,.88),colorTextSecondary:u(t,.65),colorTextTertiary:u(t,.45),colorTextQuaternary:u(t,.25),colorFill:u(t,.15),colorFillSecondary:u(t,.06),colorFillTertiary:u(t,.04),colorFillQuaternary:u(t,.02),colorBgSolid:u(t,1),colorBgSolidHover:u(t,.75),colorBgSolidActive:u(t,.95),colorBgLayout:b(n,4),colorBgContainer:b(n,0),colorBgElevated:b(n,0),colorBgSpotlight:u(t,.85),colorBgBlur:"transparent",colorBorder:b(n,15),colorBorderSecondary:b(n,6)}};function V(o){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let r=Object.keys(E).map(n=>{let t=o[n]===presetPrimaryColors[n]?presetPalettes[n]:generate(o[n]);return new Array(10).fill(1).reduce((e,a,i)=>(e[`${n}-${i+1}`]=t[i],e[`${n}${i+1}`]=t[i],e),{})}).reduce((n,t)=>(n={...n,...t},n),{});return {...o,...r,...G(o,{generateColorPalettes:Oo,generateNeutralColorPalettes:zo}),...Po(o.fontSize),..._(o),...vo(o),...K(o)}}var Io=createTheme(V),Ao={token:T,override:{override:T},hashed:true},Z=ue__default.createContext(Ao);function q(o){return o>=0&&o<=255}function Ce(o,r){let{r:n,g:t,b:e,a}=new TinyColor(o).toRgb();if(a<1)return o;let{r:i,g:s,b:p}=new TinyColor(r).toRgb();for(let c=.01;c<=1;c+=.01){let l=Math.round((n-i*(1-c))/c),m=Math.round((t-s*(1-c))/c),f=Math.round((e-p*(1-c))/c);if(q(l)&&q(m)&&q(f))return new TinyColor({r:l,g:m,b:f,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:n,g:t,b:e,a:1}).toRgbString()}var P=Ce;function A(o){let{override:r,...n}=o,t={...r};Object.keys(T).forEach(f=>{delete t[f];});let e={...n,...t},a=480,i=576,s=768,p=992,c=1200,l=1600;return e.motion===false&&(e.motionDurationFast="0s",e.motionDurationMid="0s",e.motionDurationSlow="0s"),{...e,colorFillContent:e.colorFillSecondary,colorFillContentHover:e.colorFill,colorFillAlter:e.colorFillQuaternary,colorBgContainerDisabled:e.colorFillTertiary,colorBorderBg:e.colorBgContainer,colorSplit:P(e.colorBorderSecondary,e.colorBgContainer),colorTextPlaceholder:e.colorTextQuaternary,colorTextDisabled:e.colorTextQuaternary,colorTextHeading:e.colorText,colorTextLabel:e.colorTextSecondary,colorTextDescription:e.colorTextTertiary,colorTextLightSolid:e.colorWhite,colorHighlight:e.colorError,colorBgTextHover:e.colorFillSecondary,colorBgTextActive:e.colorFill,colorIcon:e.colorTextTertiary,colorIconHover:e.colorText,colorErrorOutline:P(e.colorErrorBg,e.colorBgContainer),colorWarningOutline:P(e.colorWarningBg,e.colorBgContainer),fontSizeIcon:e.fontSizeSM,lineWidthFocus:e.lineWidth*3,lineWidth:e.lineWidth,controlOutlineWidth:e.lineWidth*2,controlInteractiveSize:e.controlHeight/2,controlItemBgHover:e.colorFillTertiary,controlItemBgActive:e.colorPrimaryBg,controlItemBgActiveHover:e.colorPrimaryBgHover,controlItemBgActiveDisabled:e.colorFill,controlTmpOutline:e.colorFillQuaternary,controlOutline:P(e.colorPrimaryBg,e.colorBgContainer),lineType:e.lineType,borderRadius:e.borderRadius,borderRadiusXS:e.borderRadiusXS,borderRadiusSM:e.borderRadiusSM,borderRadiusLG:e.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:e.sizeXXS,paddingXS:e.sizeXS,paddingSM:e.sizeSM,padding:e.size,paddingMD:e.sizeMD,paddingLG:e.sizeLG,paddingXL:e.sizeXL,paddingContentHorizontalLG:e.sizeLG,paddingContentVerticalLG:e.sizeMS,paddingContentHorizontal:e.sizeMS,paddingContentVertical:e.sizeSM,paddingContentHorizontalSM:e.size,paddingContentVerticalSM:e.sizeXS,marginXXS:e.sizeXXS,marginXS:e.sizeXS,marginSM:e.sizeSM,margin:e.size,marginMD:e.sizeMD,marginLG:e.sizeLG,marginXL:e.sizeXL,marginXXL:e.sizeXXL,boxShadow:`
|
|
13
13
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|