@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
|
@@ -5,7 +5,7 @@ import*as T from'react';import T__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function St(e,o){let t=pn(e,o);sn()?updateCSS(t,`${cn}-dynamic-theme`):ye();}var Lo=T.createContext(false),bt=({children:e,disabled:o})=>{let t=T.useContext(Lo);return T.createElement(Lo.Provider,{value:o??t},e)},ht=Lo;var zo=T.createContext(void 0),Pt=({children:e,size:o})=>{let t=T.useContext(zo);return T.createElement(zo.Provider,{value:o||t},e)},se=zo;function mn(){let e=useContext(ht),o=useContext(se);return {componentDisabled:e,componentSize:o}}var kt=mn;var G=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Rt={version:"0.0.
|
|
8
|
+
`.trim()}function St(e,o){let t=pn(e,o);sn()?updateCSS(t,`${cn}-dynamic-theme`):ye();}var Lo=T.createContext(false),bt=({children:e,disabled:o})=>{let t=T.useContext(Lo);return T.createElement(Lo.Provider,{value:o??t},e)},ht=Lo;var zo=T.createContext(void 0),Pt=({children:e,size:o})=>{let t=T.useContext(zo);return T.createElement(zo.Provider,{value:o||t},e)},se=zo;function mn(){let e=useContext(ht),o=useContext(se);return {componentDisabled:e,componentSize:o}}var kt=mn;var G=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Rt={version:"0.0.3"};var wt=Rt.version;function $o(e){return e>=0&&e<=255}function dn(e,o){let{r:t,g:r,b:n,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:s,b:c}=new TinyColor(o).toRgb();for(let l=.01;l<=1;l+=.01){let p=Math.round((t-a*(1-l))/l),f=Math.round((r-s*(1-l))/l),m=Math.round((n-c*(1-l))/l);if($o(p)&&$o(f)&&$o(m))return new TinyColor({r:p,g:f,b:m,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r:t,g:r,b:n,a:1}).toRgbString()}var Pe=dn;function Ne(e){let{override:o,...t}=e,r={...o};Object.keys(W).forEach(m=>{delete r[m];});let n={...t,...r},i=480,a=576,s=768,c=992,l=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Pe(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Pe(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Pe(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Pe(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.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/table/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as re from'react';import re__default,{createContext,useContext,useState,u
|
|
|
5
5
|
${Object.keys(o).map(a=>`--${e}-${a}: ${o[a]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function yl(e,t){let o=_m(e,t);Gm()?updateCSS(o,`${Vm}-dynamic-theme`):Pr();}var Ii=re.createContext(false),Sl=({children:e,disabled:t})=>{let o=re.useContext(Ii);return re.createElement(Ii.Provider,{value:t??o},e)},Xe=Ii;var wi=re.createContext(void 0),hl=({children:e,size:t})=>{let o=re.useContext(wi);return re.createElement(wi.Provider,{value:t||o},e)},vo=wi;function Km(){let e=useContext(Xe),t=useContext(vo);return {componentDisabled:e,componentSize:t}}var Tl=Km;var Jt=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var vl={version:"0.0.
|
|
8
|
+
`.trim()}function yl(e,t){let o=_m(e,t);Gm()?updateCSS(o,`${Vm}-dynamic-theme`):Pr();}var Ii=re.createContext(false),Sl=({children:e,disabled:t})=>{let o=re.useContext(Ii);return re.createElement(Ii.Provider,{value:t??o},e)},Xe=Ii;var wi=re.createContext(void 0),hl=({children:e,size:t})=>{let o=re.useContext(wi);return re.createElement(wi.Provider,{value:t||o},e)},vo=wi;function Km(){let e=useContext(Xe),t=useContext(vo);return {componentDisabled:e,componentSize:t}}var Tl=Km;var Jt=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var vl={version:"0.0.3"};var $l=vl.version;function Ei(e){return e>=0&&e<=255}function Um(e,t){let{r:o,g:r,b:n,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:l,b:s}=new TinyColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((o-a*(1-c))/c),m=Math.round((r-l*(1-c))/c),d=Math.round((n-s*(1-c))/c);if(Ei(p)&&Ei(m)&&Ei(d))return new TinyColor({r:p,g:m,b:d,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:o,g:r,b:n,a:1}).toRgbString()}var Nr=Um;function tn(e){let{override:t,...o}=e,r={...t};Object.keys(Wt).forEach(d=>{delete r[d];});let n={...o,...r},i=480,a=576,l=768,s=992,c=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Nr(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Nr(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Nr(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Nr(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.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/table/style/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as mo from'react';import mo__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';var me={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},q=(o,e=false)=>({boxSizing:"border-box",margin:0,padding:0,color:o.colorText,fontSize:o.fontSize,lineHeight:o.lineHeight,listStyle:"none",fontFamily:e?"inherit":o.fontFamily}),to=()=>({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"}}),fe=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),be=o=>({a:{color:o.colorLink,textDecoration:o.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${o.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:o.colorLinkHover},"&:active":{color:o.colorLinkActive},"&:active, &:hover":{textDecoration:o.linkHoverDecoration,outline:0},"&:focus":{textDecoration:o.linkFocusDecoration,outline:0},"&[disabled]":{color:o.colorTextDisabled,cursor:"not-allowed"}}}),ue=(o,e,r,n)=>{let t=`[class^="${e}"], [class*=" ${e}"]`,c=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==false&&(l={fontFamily:o.fontFamily,fontSize:o.fontSize}),{[c]:{...l,...i,[t]:i}}},ro=o=>({outline:`${unit(o.lineWidthFocus)} solid ${o.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),no=o=>({"&:focus-visible":{...ro(o)}}),K=o=>({[`.${o}`]:{...to(),[`.${o} .${o}-icon`]:{display:"block"}}}),Se=o=>({color:o.colorLink,textDecoration:o.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${o.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...no(o),"&:focus, &:hover":{color:o.colorLinkHover},"&:active":{color:o.colorLinkActive}});function Ce(o){return (o+8)/o}function Y(o){let e=new Array(10).fill(null).map((r,n)=>{let t=n-1,c=o*Math.E**(t/5),i=n>1?Math.floor(c):Math.ceil(c);return Math.floor(i/2)*2});return e[1]=o,e.map(r=>({size:r,lineHeight:Ce(r)}))}var xe={version:"0.0.
|
|
1
|
+
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as mo from'react';import mo__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';var me={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},q=(o,e=false)=>({boxSizing:"border-box",margin:0,padding:0,color:o.colorText,fontSize:o.fontSize,lineHeight:o.lineHeight,listStyle:"none",fontFamily:e?"inherit":o.fontFamily}),to=()=>({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"}}),fe=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),be=o=>({a:{color:o.colorLink,textDecoration:o.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${o.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:o.colorLinkHover},"&:active":{color:o.colorLinkActive},"&:active, &:hover":{textDecoration:o.linkHoverDecoration,outline:0},"&:focus":{textDecoration:o.linkFocusDecoration,outline:0},"&[disabled]":{color:o.colorTextDisabled,cursor:"not-allowed"}}}),ue=(o,e,r,n)=>{let t=`[class^="${e}"], [class*=" ${e}"]`,c=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==false&&(l={fontFamily:o.fontFamily,fontSize:o.fontSize}),{[c]:{...l,...i,[t]:i}}},ro=o=>({outline:`${unit(o.lineWidthFocus)} solid ${o.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),no=o=>({"&:focus-visible":{...ro(o)}}),K=o=>({[`.${o}`]:{...to(),[`.${o} .${o}-icon`]:{display:"block"}}}),Se=o=>({color:o.colorLink,textDecoration:o.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${o.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...no(o),"&:focus, &:hover":{color:o.colorLinkHover},"&:active":{color:o.colorLinkActive}});function Ce(o){return (o+8)/o}function Y(o){let e=new Array(10).fill(null).map((r,n)=>{let t=n-1,c=o*Math.E**(t/5),i=n>1?Math.floor(c):Math.ceil(c);return Math.floor(i/2)*2});return e[1]=o,e.map(r=>({size:r,lineHeight:Ce(r)}))}var xe={version:"0.0.3"};var he=xe.version;var J={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"},lo={...J,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},H=lo;function ee(o,{generateColorPalettes:e,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:c,colorInfo:i,colorPrimary:l,colorBgBase:s,colorTextBase:a}=o,p=e(l),d=e(n),g=e(t),m=e(c),f=e(i),S=r(s,a),x=o.colorLink||o.colorInfo,y=e(x),u=new TinyColor(m[1]).mix(new TinyColor(m[3]),50).toHexString();return {...S,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:u,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var ao=o=>{let e=o,r=o,n=o,t=o;return o<6&&o>=5?e=o+1:o<16&&o>=6?e=o+2:o>=16&&(e=16),o<7&&o>=5?r=4:o<8&&o>=7?r=5:o<14&&o>=8?r=6:o<16&&o>=14?r=7:o>=16&&(r=8),o<6&&o>=2?n=1:o>=6&&(n=2),o>4&&o<8?t=4:o>=8&&(t=6),{borderRadius:o,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:e,borderRadiusOuter:t}},Te=ao;function oe(o){let{motionUnit:e,motionBase:r,borderRadius:n,lineWidth:t}=o;return {motionDurationFast:`${(r+e).toFixed(1)}s`,motionDurationMid:`${(r+e*2).toFixed(1)}s`,motionDurationSlow:`${(r+e*3).toFixed(1)}s`,lineWidthBold:t+1,...Te(n)}}var co=o=>{let{controlHeight:e}=o;return {controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}},ke=co;var so=o=>{let e=Y(o),r=e.map(p=>p.size),n=e.map(p=>p.lineHeight),t=r[1],c=r[0],i=r[2],l=n[1],s=n[0],a=n[2];return {fontSizeSM:c,fontSize:t,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:a,lineHeightSM:s,fontHeight:Math.round(l*t),fontHeightLG:Math.round(a*i),fontHeightSM:Math.round(s*c),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},$e=so;function te(o){let{sizeUnit:e,sizeStep:r}=o;return {sizeXXL:e*(r+8),sizeXL:e*(r+4),sizeLG:e*(r+2),sizeMD:e*(r+1),sizeMS:e*r,size:e*r,sizeSM:e*(r-1),sizeXS:e*(r-2),sizeXXS:e*(r-3)}}var T=(o,e)=>new TinyColor(o).setAlpha(e).toRgbString(),j=(o,e)=>new TinyColor(o).darken(e).toHexString();var Pe=o=>{let e=generate(o);return {1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},we=(o,e)=>{let r=o||"#fff",n=e||"#000";return {colorBgBase:r,colorTextBase:n,colorText:T(n,.88),colorTextSecondary:T(n,.65),colorTextTertiary:T(n,.45),colorTextQuaternary:T(n,.25),colorFill:T(n,.15),colorFillSecondary:T(n,.06),colorFillTertiary:T(n,.04),colorFillQuaternary:T(n,.02),colorBgSolid:T(n,1),colorBgSolidHover:T(n,.75),colorBgSolidActive:T(n,.95),colorBgLayout:j(r,4),colorBgContainer:j(r,0),colorBgElevated:j(r,0),colorBgSpotlight:T(n,.85),colorBgBlur:"transparent",colorBorder:j(r,15),colorBorderSecondary:j(r,6)}};function ie(o){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let e=Object.keys(J).map(r=>{let n=o[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(o[r]);return new Array(10).fill(1).reduce((t,c,i)=>(t[`${r}-${i+1}`]=n[i],t[`${r}${i+1}`]=n[i],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...o,...e,...ee(o,{generateColorPalettes:Pe,generateNeutralColorPalettes:we}),...$e(o.fontSize),...te(o),...ke(o),...oe(o)}}var Be=createTheme(ie),Me={token:H,override:{override:H},hashed:true},le=mo__default.createContext(Me);function ae(o){return o>=0&&o<=255}function bo(o,e){let{r,g:n,b:t,a:c}=new TinyColor(o).toRgb();if(c<1)return o;let{r:i,g:l,b:s}=new TinyColor(e).toRgb();for(let a=.01;a<=1;a+=.01){let p=Math.round((r-i*(1-a))/a),d=Math.round((n-l*(1-a))/a),g=Math.round((t-s*(1-a))/a);if(ae(p)&&ae(d)&&ae(g))return new TinyColor({r:p,g:d,b:g,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var O=bo;function V(o){let{override:e,...r}=o,n={...e};Object.keys(H).forEach(g=>{delete n[g];});let t={...r,...n},c=480,i=576,l=768,s=992,a=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:O(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:O(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:O(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:O(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),
|
|
@@ -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 Je(e,o){let r=Ut(e,o);Gt()?updateCSS(r,`${_t}-dynamic-theme`):$();}var Pe=m.createContext(false),Ze=({children:e,disabled:o})=>{let r=m.useContext(Pe);return m.createElement(Pe.Provider,{value:o??r},e)},eo=Pe;var be=m.createContext(void 0),oo=({children:e,size:o})=>{let r=m.useContext(be);return m.createElement(be.Provider,{value:o||r},e)},j=be;function Kt(){let e=useContext(eo),o=useContext(j);return {componentDisabled:e,componentSize:o}}var ro=Kt;var io={version:"0.0.
|
|
8
|
+
`.trim()}function Je(e,o){let r=Ut(e,o);Gt()?updateCSS(r,`${_t}-dynamic-theme`):$();}var Pe=m.createContext(false),Ze=({children:e,disabled:o})=>{let r=m.useContext(Pe);return m.createElement(Pe.Provider,{value:o??r},e)},eo=Pe;var be=m.createContext(void 0),oo=({children:e,size:o})=>{let r=m.useContext(be);return m.createElement(be.Provider,{value:o||r},e)},j=be;function Kt(){let e=useContext(eo),o=useContext(j);return {componentDisabled:e,componentSize:o}}var ro=Kt;var io={version:"0.0.3"};var ao=io.version;function he(e){return e>=0&&e<=255}function Qt(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),g=Math.round((n-l*(1-i))/i),f=Math.round((t-p*(1-i))/i);if(he(c)&&he(g)&&he(f))return new TinyColor({r:c,g,b:f,a:Math.round(i*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var G=Qt;function Z(e){let{override:o,...r}=e,n={...o};Object.keys(h).forEach(f=>{delete n[f];});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: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)
|
package/es/tabs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as d from'react';import d__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function Lo(e,o){let t=kr(e,o);Tr()?updateCSS(t,`${Pr}-dynamic-theme`):Q();}var qe=d.createContext(false),zo=({children:e,disabled:o})=>{let t=d.useContext(qe);return d.createElement(qe.Provider,{value:o??t},e)},Io=qe;var Ze=d.createContext(void 0),Oo=({children:e,size:o})=>{let t=d.useContext(Ze);return d.createElement(Ze.Provider,{value:o||t},e)},O=Ze;function $r(){let e=useContext(Io),o=useContext(O);return {componentDisabled:e,componentSize:o}}var Ao=$r;var _o={version:"0.0.
|
|
8
|
+
`.trim()}function Lo(e,o){let t=kr(e,o);Tr()?updateCSS(t,`${Pr}-dynamic-theme`):Q();}var qe=d.createContext(false),zo=({children:e,disabled:o})=>{let t=d.useContext(qe);return d.createElement(qe.Provider,{value:o??t},e)},Io=qe;var Ze=d.createContext(void 0),Oo=({children:e,size:o})=>{let t=d.useContext(Ze);return d.createElement(Ze.Provider,{value:o||t},e)},O=Ze;function $r(){let e=useContext(Io),o=useContext(O);return {componentDisabled:e,componentSize:o}}var Ao=$r;var _o={version:"0.0.3"};var Ho=_o.version;function Qe(e){return e>=0&&e<=255}function wr(e,o){let{r:t,g:n,b:r,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:a,g:l,b:c}=new TinyColor(o).toRgb();for(let i=.01;i<=1;i+=.01){let p=Math.round((t-a*(1-i))/i),f=Math.round((n-l*(1-i))/i),g=Math.round((r-c*(1-i))/i);if(Qe(p)&&Qe(f)&&Qe(g))return new TinyColor({r:p,g:f,b:g,a:Math.round(i*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var re=wr;function Se(e){let{override:o,...t}=e,n={...o};Object.keys(R).forEach(g=>{delete n[g];});let r={...t,...n},s=480,a=576,l=768,c=992,i=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:re(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:re(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:re(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:re(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/tabs/style/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,Keyframes,unit,useCacheToken}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as Ae from'react';import Ae__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var V={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},I=(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}),we=()=>({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 Z=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"}}}),q=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,i=r?`.${r}`:t,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...c,...a,[t]:a}}},ze=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),O=e=>({"&:focus-visible":{...ze(e)}}),L=e=>({[`.${e}`]:{...we(),[`.${e} .${e}-icon`]:{display:"block"}}});function Y(e){return (e+8)/e}function D(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,i=e*Math.E**(t/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:Y(r)}))}var J={version:"0.0.
|
|
1
|
+
import {createTheme,Keyframes,unit,useCacheToken}from'@ant-design/cssinjs';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as Ae from'react';import Ae__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var V={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},I=(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}),we=()=>({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 Z=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"}}}),q=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,i=r?`.${r}`:t,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...c,...a,[t]:a}}},ze=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),O=e=>({"&:focus-visible":{...ze(e)}}),L=e=>({[`.${e}`]:{...we(),[`.${e} .${e}-icon`]:{display:"block"}}});function Y(e){return (e+8)/e}function D(e){let o=new Array(10).fill(null).map((r,n)=>{let t=n-1,i=e*Math.E**(t/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return o[1]=e,o.map(r=>({size:r,lineHeight:Y(r)}))}var J={version:"0.0.3"};var ee=J.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"},Oe={...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},x=Oe;function _(e,{generateColorPalettes:o,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:t,colorError:i,colorInfo:a,colorPrimary:c,colorBgBase:d,colorTextBase:s}=e,p=o(c),m=o(n),g=o(t),f=o(i),C=o(a),$e=r(d,s),ke=e.colorLink||e.colorInfo,z=o(ke),Pe=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...$e,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[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:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:Pe,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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[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:z[4],colorLink:z[6],colorLinkActive:z[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Le=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}},oe=Le;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,...oe(n)}}var De=e=>{let{controlHeight:o}=e;return {controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}},te=De;var He=e=>{let o=D(e),r=o.map(p=>p.size),n=o.map(p=>p.lineHeight),t=r[1],i=r[0],a=r[2],c=n[1],d=n[0],s=n[2];return {fontSizeSM:i,fontSize:t,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:c,lineHeightLG:s,lineHeightSM:d,fontHeight:Math.round(c*t),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(d*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},re=He;function G(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 u=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),h=(e,o)=>new TinyColor(e).darken(o).toHexString();var ie=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]}},ae=(e,o)=>{let r=e||"#fff",n=o||"#000";return {colorBgBase:r,colorTextBase:n,colorText:u(n,.88),colorTextSecondary:u(n,.65),colorTextTertiary:u(n,.45),colorTextQuaternary:u(n,.25),colorFill:u(n,.15),colorFillSecondary:u(n,.06),colorFillTertiary:u(n,.04),colorFillQuaternary:u(n,.02),colorBgSolid:u(n,1),colorBgSolidHover:u(n,.75),colorBgSolidActive:u(n,.95),colorBgLayout:h(r,4),colorBgContainer:h(r,0),colorBgElevated:h(r,0),colorBgSpotlight:u(n,.85),colorBgBlur:"transparent",colorBorder:h(r,15),colorBorderSecondary:h(r,6)}};function X(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,i,a)=>(t[`${r}-${a+1}`]=n[a],t[`${r}${a+1}`]=n[a],t),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...e,...o,..._(e,{generateColorPalettes:ie,generateNeutralColorPalettes:ae}),...re(e.fontSize),...G(e),...te(e),...A(e)}}var se=createTheme(X),le={token:x,override:{override:x},hashed:true},E=Ae__default.createContext(le);function W(e){return e>=0&&e<=255}function Be(e,o){let{r,g:n,b:t,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:c,b:d}=new TinyColor(o).toRgb();for(let s=.01;s<=1;s+=.01){let p=Math.round((r-a*(1-s))/s),m=Math.round((n-c*(1-s))/s),g=Math.round((t-d*(1-s))/s);if(W(p)&&W(m)&&W(g))return new TinyColor({r:p,g:m,b:g,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var T=Be;function P(e){let{override:o,...r}=e,n={...o};Object.keys(x).forEach(g=>{delete n[g];});let t={...r,...n},i=480,a=576,c=768,d=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:T(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:T(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:T(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:T(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/tag/CheckableTag.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as m from'react';import m__default,{createContext,useContext}from'react';
|
|
|
5
5
|
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function eo(e,o){let r=Jt(e,o);qt()?updateCSS(r,`${Yt}-dynamic-theme`):B();}var be=m.createContext(false),oo=({children:e,disabled:o})=>{let r=m.useContext(be);return m.createElement(be.Provider,{value:o??r},e)},to=be;var he=m.createContext(void 0),ro=({children:e,size:o})=>{let r=m.useContext(he);return m.createElement(he.Provider,{value:o||r},e)},X=he;function Zt(){let e=useContext(to),o=useContext(X);return {componentDisabled:e,componentSize:o}}var io=Zt;var lo={version:"0.0.
|
|
8
|
+
`.trim()}function eo(e,o){let r=Jt(e,o);qt()?updateCSS(r,`${Yt}-dynamic-theme`):B();}var be=m.createContext(false),oo=({children:e,disabled:o})=>{let r=m.useContext(be);return m.createElement(be.Provider,{value:o??r},e)},to=be;var he=m.createContext(void 0),ro=({children:e,size:o})=>{let r=m.useContext(he);return m.createElement(he.Provider,{value:o||r},e)},X=he;function Zt(){let e=useContext(to),o=useContext(X);return {componentDisabled:e,componentSize:o}}var io=Zt;var lo={version:"0.0.3"};var so=lo.version;function ke(e){return e>=0&&e<=255}function or(e,o){let{r,g:n,b:t,a:s}=new TinyColor(e).toRgb();if(s<1)return e;let{r:i,g:l,b:p}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let c=Math.round((r-i*(1-a))/a),g=Math.round((n-l*(1-a))/a),f=Math.round((t-p*(1-a))/a);if(ke(c)&&ke(g)&&ke(f))return new TinyColor({r:c,g,b:f,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:t,a:1}).toRgbString()}var _=or;function te(e){let{override:o,...r}=e,n={...o};Object.keys(k).forEach(f=>{delete n[f];});let t={...r,...n},s=480,i=576,l=768,p=992,a=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:_(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:_(t.colorErrorBg,t.colorBgContainer),colorWarningOutline:_(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:_(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/tag/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import*as d from'react';import d__default,{createContext,useContext,useRef}from'
|
|
|
5
5
|
${Object.keys(t).map(i=>`--${e}-${i}: ${t[i]};`).join(`
|
|
6
6
|
`)}
|
|
7
7
|
}
|
|
8
|
-
`.trim()}function jo(e,o){let t=Or(e,o);Dr()?updateCSS(t,`${Fr}-dynamic-theme`):le();}var to=d.createContext(false),Go=({children:e,disabled:o})=>{let t=d.useContext(to);return d.createElement(to.Provider,{value:o??t},e)},Xo=to;var ro=d.createContext(void 0),Uo=({children:e,size:o})=>{let t=d.useContext(ro);return d.createElement(ro.Provider,{value:o||t},e)},fe=ro;function Br(){let e=useContext(Xo),o=useContext(fe);return {componentDisabled:e,componentSize:o}}var Ko=Br;var qo={version:"0.0.
|
|
8
|
+
`.trim()}function jo(e,o){let t=Or(e,o);Dr()?updateCSS(t,`${Fr}-dynamic-theme`):le();}var to=d.createContext(false),Go=({children:e,disabled:o})=>{let t=d.useContext(to);return d.createElement(to.Provider,{value:o??t},e)},Xo=to;var ro=d.createContext(void 0),Uo=({children:e,size:o})=>{let t=d.useContext(ro);return d.createElement(ro.Provider,{value:o||t},e)},fe=ro;function Br(){let e=useContext(Xo),o=useContext(fe);return {componentDisabled:e,componentSize:o}}var Ko=Br;var qo={version:"0.0.3"};var Qo=qo.version;function no(e){return e>=0&&e<=255}function jr(e,o){let{r:t,g:n,b:r,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:c,b:p}=new TinyColor(o).toRgb();for(let a=.01;a<=1;a+=.01){let s=Math.round((t-i*(1-a))/a),m=Math.round((n-c*(1-a))/a),f=Math.round((r-p*(1-a))/a);if(no(s)&&no(m)&&no(f))return new TinyColor({r:s,g:m,b:f,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:r,a:1}).toRgbString()}var de=jr;function Le(e){let{override:o,...t}=e,n={...o};Object.keys(N).forEach(f=>{delete n[f];});let r={...t,...n},l=480,i=576,c=768,p=992,a=1200,s=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:de(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:de(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:de(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:de(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/tag/style/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';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';var E=(e,r=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"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 j=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"}}}),$=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,l=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...c,...i,[o]:i}}};var h=e=>({[`.${e}`]:{...pe(),[`.${e} .${e}-icon`]:{display:"block"}}});function N(e){return (e+8)/e}function v(e){let r=new Array(10).fill(null).map((t,n)=>{let o=n-1,l=e*Math.E**(o/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:N(t)}))}var U={version:"0.0.
|
|
1
|
+
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';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';var E=(e,r=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"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 j=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"}}}),$=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,l=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...c,...i,[o]:i}}};var h=e=>({[`.${e}`]:{...pe(),[`.${e} .${e}-icon`]:{display:"block"}}});function N(e){return (e+8)/e}function v(e){let r=new Array(10).fill(null).map((t,n)=>{let o=n-1,l=e*Math.E**(o/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:N(t)}))}var U={version:"0.0.3"};var V=U.version;var M={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"},me={...M,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},u=me;function z(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:o,colorError:l,colorInfo:i,colorPrimary:c,colorBgBase:m,colorTextBase:s}=e,a=r(c),p=r(n),g=r(o),f=r(l),C=r(i),le=t(m,s),se=e.colorLink||e.colorInfo,P=r(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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[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 fe=e=>{let r=e,t=e,n=e,o=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=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:t,borderRadiusLG:r,borderRadiusOuter:o}},q=fe;function w(e){let{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:o+1,...q(n)}}var de=e=>{let{controlHeight:r}=e;return {controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}},Q=de;var Ce=e=>{let r=v(e),t=r.map(a=>a.size),n=r.map(a=>a.lineHeight),o=t[1],l=t[0],i=t[2],c=n[1],m=n[0],s=n[2];return {fontSizeSM:l,fontSize:o,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:c,lineHeightLG:s,lineHeightSM:m,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(m*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},_=Ce;function A(e){let{sizeUnit:r,sizeStep:t}=e;return {sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}var d=(e,r)=>new TinyColor(e).setAlpha(r).toRgbString(),S=(e,r)=>new TinyColor(e).darken(r).toHexString();var J=e=>{let r=generate(e);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]}},Y=(e,r)=>{let t=e||"#fff",n=r||"#000";return {colorBgBase:t,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(t,4),colorBgContainer:S(t,0),colorBgElevated:S(t,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:S(t,15),colorBorderSecondary:S(t,6)}};function B(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let r=Object.keys(M).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((o,l,i)=>(o[`${t}-${i+1}`]=n[i],o[`${t}${i+1}`]=n[i],o),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...r,...z(e,{generateColorPalettes:J,generateNeutralColorPalettes:Y}),..._(e.fontSize),...A(e),...Q(e),...w(e)}}var Z=createTheme(B),ee={token:u,override:{override:u},hashed:true},D=ye__default.createContext(ee);function F(e){return e>=0&&e<=255}function Te(e,r){let{r:t,g:n,b:o,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:c,b:m}=new TinyColor(r).toRgb();for(let s=.01;s<=1;s+=.01){let a=Math.round((t-i*(1-s))/s),p=Math.round((n-c*(1-s))/s),g=Math.round((o-m*(1-s))/s);if(F(a)&&F(p)&&F(g))return new TinyColor({r:a,g:p,b:g,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:o,a:1}).toRgbString()}var y=Te;function k(e){let{override:r,...t}=e,n={...r};Object.keys(u).forEach(g=>{delete n[g];});let o={...t,...n},l=480,i=576,c=768,m=992,s=1200,a=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
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as be from'react';import be__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';var U=(e,r=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),de=()=>({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 V=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"}}}),q=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,a=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...c,...i,[o]:i}}};var M=e=>({[`.${e}`]:{...de(),[`.${e} .${e}-icon`]:{display:"block"}}});var T=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Q(e){return (e+8)/e}function H(e){let r=new Array(10).fill(null).map((t,n)=>{let o=n-1,a=e*Math.E**(o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:Q(t)}))}var _={version:"0.0.
|
|
1
|
+
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as be from'react';import be__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';var U=(e,r=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),de=()=>({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 V=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"}}}),q=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,a=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...c,...i,[o]:i}}};var M=e=>({[`.${e}`]:{...de(),[`.${e} .${e}-icon`]:{display:"block"}}});var T=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Q(e){return (e+8)/e}function H(e){let r=new Array(10).fill(null).map((t,n)=>{let o=n-1,a=e*Math.E**(o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:Q(t)}))}var _={version:"0.0.3"};var K=_.version;var z={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"},ue={...z,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},u=ue;function A(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:c,colorBgBase:m,colorTextBase:s}=e,l=r(c),p=r(n),g=r(o),f=r(a),C=r(i),ge=t(m,s),me=e.colorLink||e.colorInfo,v=r(me),fe=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...ge,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:fe,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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[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:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Se=e=>{let r=e,t=e,n=e,o=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=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:t,borderRadiusLG:r,borderRadiusOuter:o}},J=Se;function I(e){let{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:o+1,...J(n)}}var ye=e=>{let{controlHeight:r}=e;return {controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}},Y=ye;var xe=e=>{let r=H(e),t=r.map(l=>l.size),n=r.map(l=>l.lineHeight),o=t[1],a=t[0],i=t[2],c=n[1],m=n[0],s=n[2];return {fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:c,lineHeightLG:s,lineHeightSM:m,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(m*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Z=xe;function L(e){let{sizeUnit:r,sizeStep:t}=e;return {sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}var d=(e,r)=>new TinyColor(e).setAlpha(r).toRgbString(),S=(e,r)=>new TinyColor(e).darken(r).toHexString();var oe=e=>{let r=generate(e);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]}},re=(e,r)=>{let t=e||"#fff",n=r||"#000";return {colorBgBase:t,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(t,4),colorBgContainer:S(t,0),colorBgElevated:S(t,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:S(t,15),colorBorderSecondary:S(t,6)}};function F(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let r=Object.keys(z).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${t}-${i+1}`]=n[i],o[`${t}${i+1}`]=n[i],o),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...r,...A(e,{generateColorPalettes:oe,generateNeutralColorPalettes:re}),...Z(e.fontSize),...L(e),...Y(e),...I(e)}}var te=createTheme(F),ne={token:u,override:{override:u},hashed:true},R=be__default.createContext(ne);function X(e){return e>=0&&e<=255}function he(e,r){let{r:t,g:n,b:o,a}=new TinyColor(e).toRgb();if(a<1)return e;let{r:i,g:c,b:m}=new TinyColor(r).toRgb();for(let s=.01;s<=1;s+=.01){let l=Math.round((t-i*(1-s))/s),p=Math.round((n-c*(1-s))/s),g=Math.round((o-m*(1-s))/s);if(X(l)&&X(p)&&X(g))return new TinyColor({r:l,g:p,b:g,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:o,a:1}).toRgbString()}var y=he;function b(e){let{override:r,...t}=e,n={...r};Object.keys(u).forEach(g=>{delete n[g];});let o={...t,...n},a=480,i=576,c=768,m=992,s=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
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as Pe from'react';import Pe__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';var U=(e,r=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"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 V=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"}}}),q=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,l=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...c,...i,[o]:i}}};var v=e=>({[`.${e}`]:{...Ce(),[`.${e} .${e}-icon`]:{display:"block"}}});function _(e){return (e+8)/e}function M(e){let r=new Array(10).fill(null).map((t,n)=>{let o=n-1,l=e*Math.E**(o/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:_(t)}))}var K={version:"0.0.
|
|
1
|
+
import {createTheme,useCacheToken,unit}from'@ant-design/cssinjs';import {TinyColor}from'@ctrl/tinycolor';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import*as Pe from'react';import Pe__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';var U=(e,r=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"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 V=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"}}}),q=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,l=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return n!==false&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...c,...i,[o]:i}}};var v=e=>({[`.${e}`]:{...Ce(),[`.${e} .${e}-icon`]:{display:"block"}}});function _(e){return (e+8)/e}function M(e){let r=new Array(10).fill(null).map((t,n)=>{let o=n-1,l=e*Math.E**(o/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:_(t)}))}var K={version:"0.0.3"};var J=K.version;var z={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"},Se={...z,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},u=Se;function w(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:o,colorError:l,colorInfo:i,colorPrimary:c,colorBgBase:m,colorTextBase:s}=e,a=r(c),p=r(n),g=r(o),f=r(l),C=r(i),me=t(m,s),fe=e.colorLink||e.colorInfo,h=r(fe),de=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...me,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:de,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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[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:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var ye=e=>{let r=e,t=e,n=e,o=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=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:t,borderRadiusLG:r,borderRadiusOuter:o}},Y=ye;function I(e){let{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:o+1,...Y(n)}}var xe=e=>{let{controlHeight:r}=e;return {controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}},Z=xe;var Te=e=>{let r=M(e),t=r.map(a=>a.size),n=r.map(a=>a.lineHeight),o=t[1],l=t[0],i=t[2],c=n[1],m=n[0],s=n[2];return {fontSizeSM:l,fontSize:o,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:c,lineHeightLG:s,lineHeightSM:m,fontHeight:Math.round(c*o),fontHeightLG:Math.round(s*i),fontHeightSM:Math.round(m*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},ee=Te;function A(e){let{sizeUnit:r,sizeStep:t}=e;return {sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}var d=(e,r)=>new TinyColor(e).setAlpha(r).toRgbString(),S=(e,r)=>new TinyColor(e).darken(r).toHexString();var re=e=>{let r=generate(e);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]}},te=(e,r)=>{let t=e||"#fff",n=r||"#000";return {colorBgBase:t,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(t,4),colorBgContainer:S(t,0),colorBgElevated:S(t,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:S(t,15),colorBorderSecondary:S(t,6)}};function D(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let r=Object.keys(z).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((o,l,i)=>(o[`${t}-${i+1}`]=n[i],o[`${t}${i+1}`]=n[i],o),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...r,...w(e,{generateColorPalettes:re,generateNeutralColorPalettes:te}),...ee(e.fontSize),...A(e),...Z(e),...I(e)}}var ne=createTheme(D),ie={token:u,override:{override:u},hashed:true},F=Pe__default.createContext(ie);function R(e){return e>=0&&e<=255}function ve(e,r){let{r:t,g:n,b:o,a:l}=new TinyColor(e).toRgb();if(l<1)return e;let{r:i,g:c,b:m}=new TinyColor(r).toRgb();for(let s=.01;s<=1;s+=.01){let a=Math.round((t-i*(1-s))/s),p=Math.round((n-c*(1-s))/s),g=Math.round((o-m*(1-s))/s);if(R(a)&&R(p)&&R(g))return new TinyColor({r:a,g:p,b:g,a:Math.round(s*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:o,a:1}).toRgbString()}var y=ve;function k(e){let{override:r,...t}=e,n={...r};Object.keys(u).forEach(g=>{delete n[g];});let o={...t,...n},l=480,i=576,c=768,m=992,s=1200,a=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
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
package/es/theme/index.js
CHANGED
|
@@ -32,4 +32,4 @@ import {createTheme,useCacheToken,getComputedToken}from'@ant-design/cssinjs';imp
|
|
|
32
32
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
33
33
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
34
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 he=e=>{let o=e?.algorithm?createTheme(e.algorithm):createTheme(u),r={...S,...e?.token};return getComputedToken(r,{override:e?.token},o,b)},J=he;var Z={version:"0.0.
|
|
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 he=e=>{let o=e?.algorithm?createTheme(e.algorithm):createTheme(u),r={...S,...e?.token};return getComputedToken(r,{override:e?.token},o,b)},J=he;var Z={version:"0.0.3"};var ee=Z.version;var oe=createTheme(u),v={token:S,override:{override:S},hashed:true},z=ve__default.createContext(v);var E={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},we={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},De={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},te=(e,o,r)=>{let n=r.getDerivativeToken(e),{override:t,...a}=o,i={...n,override:t};return i=b(i),a&&Object.entries(a).forEach(([p,c])=>{let{theme:s,...l}=c,m=l;s&&(m=te({...i,...l},{override:l},s)),i[p]=m;}),i};function x(){let{token:e,hashed:o,theme:r,override:n,cssVar:t}=ve__default.useContext(z),a=`${ee}-${o||""}`,i=r||oe,[p,c,s]=useCacheToken(i,[S,e],{salt:a,override:n,getComputedToken:te,formatToken:b,cssVar:t&&{prefix:t.prefix,key:t.key,unitless:E,ignore:we,preserve:De}});return [i,s,o?c:"",p,t]}var re="ant",W="anticon";var Ie=(e,o)=>o||(e?`${re}-${e}`:re),D=ve.createContext({getPrefixCls:Ie,iconPrefixCls:W}),{Consumer:$o}=D;var Le=()=>({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 ie=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"}}}),ae=(e,o,r,n)=>{let t=`[class^="${o}"], [class*=" ${o}"]`,a=r?`.${r}`:t,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},p={};return n!==false&&(p={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...p,...i,[t]:i}}};var N=e=>({[`.${e}`]:{...Le(),[`.${e} .${e}-icon`]:{display:"block"}}});var{genStyleHooks:Fe,genComponentStyleHook:Re,genSubStyleComponent:Xe}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:o}=useContext(D);return {rootPrefixCls:e(),iconPrefixCls:o}},useToken:()=>{let[e,o,r,n,t]=x();return {theme:e,realToken:o,hashId:r,token:n,cssVar:t}},useCSP:()=>{let{csp:e}=useContext(D);return e??{}},getResetStyles:(e,o)=>[{"&":ie(e)},N(o?.prefix.iconPrefixCls??W)],getCommonStyle:ae,getCompUnitless:(()=>E)});function $(e){let{sizeUnit:o,sizeStep:r}=e,n=r-2;return {sizeXXL:o*(n+10),sizeXL:o*(n+6),sizeLG:o*(n+2),sizeMD:o*(n+2),sizeMS:o*(n+1),size:o*n,sizeSM:o*n,sizeXS:o*(n-1),sizeXXS:o*(n-1)}}var Ge=(e,o)=>{let r=o??u(e),n=r.fontSizeSM,t=r.controlHeight-4;return {...r,...$(o??e),...A(n),controlHeight:t,...H({...r,controlHeight:t})}},se=Ge;var C=(e,o)=>new TinyColor(e).setAlpha(o).toRgbString(),T=(e,o)=>new TinyColor(e).lighten(o).toHexString();var pe=e=>{let o=generate(e,{theme:"dark"});return {1:o[0],2:o[1],3:o[2],4:o[3],5:o[6],6:o[5],7:o[4],8:o[6],9:o[5],10:o[4]}},me=(e,o)=>{let r=e||"#000",n=o||"#fff";return {colorBgBase:r,colorTextBase:n,colorText:C(n,.85),colorTextSecondary:C(n,.65),colorTextTertiary:C(n,.45),colorTextQuaternary:C(n,.25),colorFill:C(n,.18),colorFillSecondary:C(n,.12),colorFillTertiary:C(n,.08),colorFillQuaternary:C(n,.04),colorBgSolid:C(n,.95),colorBgSolidHover:C(n,1),colorBgSolidActive:C(n,.9),colorBgElevated:T(r,12),colorBgContainer:T(r,8),colorBgLayout:T(r,0),colorBgSpotlight:T(r,26),colorBgBlur:C(n,.04),colorBorder:T(r,26),colorBorderSecondary:T(r,19)}};var Ee=(e,o)=>{let r=Object.keys(P).map(t=>{let a=generate(e[t],{theme:"dark"});return new Array(10).fill(1).reduce((i,p,c)=>(i[`${t}-${c+1}`]=a[c],i[`${t}${c+1}`]=a[c],i),{})}).reduce((t,a)=>(t={...t,...a},t),{});return {...o??u(e),...r,...h(e,{generateColorPalettes:pe,generateNeutralColorPalettes:me})}},ge=Ee;function We(){let[e,o,r]=x();return {theme:e,token:o,hashId:r}}var Qt={defaultSeed:v.token,useToken:We,defaultAlgorithm:u,darkAlgorithm:ge,compactAlgorithm:se,getDesignToken:J,defaultConfig:v,_internalContext:z};export{Qt as default};
|
|
@@ -8,9 +8,11 @@ import type { ComponentToken as BadgeComponentToken } from '../../badge/style';
|
|
|
8
8
|
import type { ComponentToken as BreadcrumbComponentToken } from '../../breadcrumb/style';
|
|
9
9
|
import type { ComponentToken as ButtonComponentToken } from '../../button/style';
|
|
10
10
|
import type { ComponentToken as CalendarComponentToken } from '../../calendar/style';
|
|
11
|
+
import type { ComponentToken as CalendarPanelComponentToken } from '../../calendar-panel/style';
|
|
11
12
|
import type { ComponentToken as CardComponentToken } from '../../card/style';
|
|
12
13
|
import type { ComponentToken as CarouselComponentToken } from '../../carousel/style';
|
|
13
14
|
import type { ComponentToken as CascaderComponentToken } from '../../cascader/style';
|
|
15
|
+
import type { ComponentToken as ClapOverflowComponentToken } from '../../clap-overflow/style';
|
|
14
16
|
import type { ComponentToken as CheckboxComponentToken } from '../../checkbox/style';
|
|
15
17
|
import type { ComponentToken as CollapseComponentToken } from '../../collapse/style';
|
|
16
18
|
import type { ComponentToken as ColorPickerComponentToken } from '../../color-picker/style';
|
|
@@ -21,6 +23,8 @@ import type { ComponentToken as DrawerComponentToken } from '../../drawer/style'
|
|
|
21
23
|
import type { ComponentToken as DropdownComponentToken } from '../../dropdown/style';
|
|
22
24
|
import type { ComponentToken as EmptyComponentToken } from '../../empty/style';
|
|
23
25
|
import type { ComponentToken as FlexComponentToken } from '../../flex/style';
|
|
26
|
+
import type { ComponentToken as GanttComponentToken } from '../../gantt/style';
|
|
27
|
+
import type { ComponentToken as HourPanelComponentToken } from '../../hour-panel/style';
|
|
24
28
|
import type { ComponentToken as FormComponentToken } from '../../form/style';
|
|
25
29
|
import type { ComponentToken as GridComponentToken } from '../../grid/style';
|
|
26
30
|
import type { ComponentToken as ImageComponentToken } from '../../image/style';
|
|
@@ -62,6 +66,7 @@ import type { ComponentToken as TreeComponentToken } from '../../tree/style';
|
|
|
62
66
|
import type { ComponentToken as TypographyComponentToken } from '../../typography/style';
|
|
63
67
|
import type { ComponentToken as UploadComponentToken } from '../../upload/style';
|
|
64
68
|
import type { ComponentToken as SplitterComponentToken } from '../../splitter/style';
|
|
69
|
+
import type { ComponentToken as TimeOutComponentToken } from '../../time-out/style';
|
|
65
70
|
export interface ComponentTokenMap {
|
|
66
71
|
Affix?: AffixComponentToken;
|
|
67
72
|
Alert?: AlertComponentToken;
|
|
@@ -70,9 +75,12 @@ export interface ComponentTokenMap {
|
|
|
70
75
|
Badge?: BadgeComponentToken;
|
|
71
76
|
Button?: ButtonComponentToken;
|
|
72
77
|
Breadcrumb?: BreadcrumbComponentToken;
|
|
78
|
+
Calendar?: CalendarComponentToken;
|
|
79
|
+
CalendarPanel?: CalendarPanelComponentToken;
|
|
73
80
|
Card?: CardComponentToken;
|
|
74
81
|
Carousel?: CarouselComponentToken;
|
|
75
82
|
Cascader?: CascaderComponentToken;
|
|
83
|
+
ClapOverflow?: ClapOverflowComponentToken;
|
|
76
84
|
Checkbox?: CheckboxComponentToken;
|
|
77
85
|
ColorPicker?: ColorPickerComponentToken;
|
|
78
86
|
Collapse?: CollapseComponentToken;
|
|
@@ -83,6 +91,8 @@ export interface ComponentTokenMap {
|
|
|
83
91
|
Dropdown?: DropdownComponentToken;
|
|
84
92
|
Empty?: EmptyComponentToken;
|
|
85
93
|
Flex?: FlexComponentToken;
|
|
94
|
+
Gantt?: GanttComponentToken;
|
|
95
|
+
HourPanel?: HourPanelComponentToken;
|
|
86
96
|
Form?: FormComponentToken;
|
|
87
97
|
Grid?: GridComponentToken;
|
|
88
98
|
Image?: ImageComponentToken;
|
|
@@ -106,6 +116,7 @@ export interface ComponentTokenMap {
|
|
|
106
116
|
Statistic?: StatisticComponentToken;
|
|
107
117
|
Switch?: SwitchComponentToken;
|
|
108
118
|
Splitter?: SplitterComponentToken;
|
|
119
|
+
TimeOut?: TimeOutComponentToken;
|
|
109
120
|
Tag?: TagComponentToken;
|
|
110
121
|
Tree?: TreeComponentToken;
|
|
111
122
|
TreeSelect?: TreeSelectComponentToken;
|
|
@@ -113,7 +124,6 @@ export interface ComponentTokenMap {
|
|
|
113
124
|
Timeline?: TimelineComponentToken;
|
|
114
125
|
Transfer?: TransferComponentToken;
|
|
115
126
|
Tabs?: TabsComponentToken;
|
|
116
|
-
Calendar?: CalendarComponentToken;
|
|
117
127
|
Steps?: StepsComponentToken;
|
|
118
128
|
Menu?: MenuComponentToken;
|
|
119
129
|
Modal?: ModalComponentToken;
|
|
@@ -126,6 +136,5 @@ export interface ComponentTokenMap {
|
|
|
126
136
|
Tour?: TourComponentToken;
|
|
127
137
|
QRCode?: QRCodeComponentToken;
|
|
128
138
|
App?: AppComponentToken;
|
|
129
|
-
/** @private Internal TS definition. Do not use. */
|
|
130
139
|
Wave?: WaveToken;
|
|
131
140
|
}
|
package/es/theme/internal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';export{useStyleRegister}from'@ant-design/cssinjs';import {genStyleUtils}from'@ant-design/cssinjs-utils';export{genCalc as calc,mergeToken,statistic,statisticToken}from'@ant-design/cssinjs-utils';import*as de from'react';import de__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var T=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function E(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:E(r)}))}var j={version:"0.0.
|
|
1
|
+
import {createTheme,useCacheToken,useStyleRegister}from'@ant-design/cssinjs';export{useStyleRegister}from'@ant-design/cssinjs';import {genStyleUtils}from'@ant-design/cssinjs-utils';export{genCalc as calc,mergeToken,statistic,statisticToken}from'@ant-design/cssinjs-utils';import*as de from'react';import de__default,{useContext}from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var T=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function E(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:E(r)}))}var j={version:"0.0.3"};var W=j.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"},se={...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},u=se;function w(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:c,colorBgBase:m,colorTextBase:l}=e,a=t(c),p=t(n),g=t(o),f=t(s),C=t(i),ne=r(m,l),ie=e.colorLink||e.colorInfo,v=t(ie),ae=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...ne,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:ae,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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[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:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var ce=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}},N=ce;function A(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,...N(n)}}var pe=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},$=pe;var ge=e=>{let t=M(e),r=t.map(a=>a.size),n=t.map(a=>a.lineHeight),o=r[1],s=r[0],i=r[2],c=n[1],m=n[0],l=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:l,lineHeightSM:m,fontHeight:Math.round(c*o),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(m*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},U=ge;function I(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(),y=(e,t)=>new TinyColor(e).darken(t).toHexString();var Q=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]}},_=(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:y(r,4),colorBgContainer:y(r,0),colorBgElevated:y(r,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:y(r,15),colorBorderSecondary:y(r,6)}};function F(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(H).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,...w(e,{generateColorPalettes:Q,generateNeutralColorPalettes:_}),...U(e.fontSize),...I(e),...$(e),...A(e)}}var q=createTheme(F),K={token:u,override:{override:u},hashed:true},B=de__default.createContext(K);function R(e){return e>=0&&e<=255}function ue(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:m}=new TinyColor(t).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),g=Math.round((o-m*(1-l))/l);if(R(a)&&R(p)&&R(g))return new TinyColor({r:a,g:p,b:g,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:o,a:1}).toRgbString()}var x=ue;function b(e){let{override:t,...r}=e,n={...t};Object.keys(u).forEach(g=>{delete n[g];});let o={...r,...n},s=480,i=576,c=768,m=992,l=1200,a=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:x(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:x(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:x(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:x(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
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
package/es/theme/useToken.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import oe from'react';import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var A={version:"0.0.
|
|
1
|
+
import oe from'react';import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var A={version:"0.0.3"};var P=A.version;var M={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"},q={...M,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},x=q;function v(o,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:e,colorError:l,colorInfo:i,colorPrimary:d,colorBgBase:g,colorTextBase:c}=o,a=t(d),s=t(n),p=t(e),m=t(l),f=t(i),N=r(g,c),U=o.colorLink||o.colorInfo,h=t(U),Q=new TinyColor(m[1]).mix(new TinyColor(m[3]),50).toHexString();return {...N,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:s[1],colorSuccessBgHover:s[2],colorSuccessBorder:s[3],colorSuccessBorderHover:s[4],colorSuccessHover:s[4],colorSuccess:s[6],colorSuccessActive:s[7],colorSuccessTextHover:s[8],colorSuccessText:s[9],colorSuccessTextActive:s[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:Q,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var _=o=>{let t=o,r=o,n=o,e=o;return o<6&&o>=5?t=o+1:o<16&&o>=6?t=o+2:o>=16&&(t=16),o<7&&o>=5?r=4:o<8&&o>=7?r=5:o<14&&o>=8?r=6:o<16&&o>=14?r=7:o>=16&&(r=8),o<6&&o>=2?n=1:o>=6&&(n=2),o>4&&o<8?e=4:o>=8&&(e=6),{borderRadius:o,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:e}},F=_;function z(o){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:e}=o;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:e+1,...F(n)}}var J=o=>{let{controlHeight:t}=o;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},G=J;function Y(o){return (o+8)/o}function H(o){let t=new Array(10).fill(null).map((r,n)=>{let e=n-1,l=o*Math.E**(e/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return t[1]=o,t.map(r=>({size:r,lineHeight:Y(r)}))}var Z=o=>{let t=H(o),r=t.map(a=>a.size),n=t.map(a=>a.lineHeight),e=r[1],l=r[0],i=r[2],d=n[1],g=n[0],c=n[2];return {fontSizeSM:l,fontSize:e,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:d,lineHeightLG:c,lineHeightSM:g,fontHeight:Math.round(d*e),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(g*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},R=Z;function C(o){let{sizeUnit:t,sizeStep:r}=o;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 u=(o,t)=>new TinyColor(o).setAlpha(t).toRgbString(),T=(o,t)=>new TinyColor(o).darken(t).toHexString();var E=o=>{let t=generate(o);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]}},W=(o,t)=>{let r=o||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:u(n,.88),colorTextSecondary:u(n,.65),colorTextTertiary:u(n,.45),colorTextQuaternary:u(n,.25),colorFill:u(n,.15),colorFillSecondary:u(n,.06),colorFillTertiary:u(n,.04),colorFillQuaternary:u(n,.02),colorBgSolid:u(n,1),colorBgSolidHover:u(n,.75),colorBgSolidActive:u(n,.95),colorBgLayout:T(r,4),colorBgContainer:T(r,0),colorBgElevated:T(r,0),colorBgSpotlight:u(n,.85),colorBgBlur:"transparent",colorBorder:T(r,15),colorBorderSecondary:T(r,6)}};function X(o){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(M).map(r=>{let n=o[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(o[r]);return new Array(10).fill(1).reduce((e,l,i)=>(e[`${r}-${i+1}`]=n[i],e[`${r}${i+1}`]=n[i],e),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...o,...t,...v(o,{generateColorPalettes:E,generateNeutralColorPalettes:W}),...R(o.fontSize),...C(o),...G(o),...z(o)}}var O=createTheme(X),te={token:x,override:{override:x},hashed:true},j=oe.createContext(te);function w(o){return o>=0&&o<=255}function ne(o,t){let{r,g:n,b:e,a:l}=new TinyColor(o).toRgb();if(l<1)return o;let{r:i,g:d,b:g}=new TinyColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let a=Math.round((r-i*(1-c))/c),s=Math.round((n-d*(1-c))/c),p=Math.round((e-g*(1-c))/c);if(w(a)&&w(s)&&w(p))return new TinyColor({r:a,g:s,b:p,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:e,a:1}).toRgbString()}var S=ne;function b(o){let{override:t,...r}=o,n={...t};Object.keys(x).forEach(p=>{delete n[p];});let e={...r,...n},l=480,i=576,d=768,g=992,c=1200,a=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:S(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:S(e.colorErrorBg,e.colorBgContainer),colorWarningOutline:S(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:S(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:`
|
|
4
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as E from'react';import E__default,{useContext}from'react';import {genStyleUtils}from'@ant-design/cssinjs-utils';import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var R="ant",P="anticon";var te=(e,r)=>r||(e?`${R}-${e}`:R),y=E.createContext({getPrefixCls:te,iconPrefixCls:P}),{Consumer:be}=y;var ne=()=>({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 O=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"}}}),G=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,c=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[c]:{...s,...i,[o]:i}}};var j=e=>({[`.${e}`]:{...ne(),[`.${e} .${e}-icon`]:{display:"block"}}});var W={version:"0.0.
|
|
1
|
+
import*as E from'react';import E__default,{useContext}from'react';import {genStyleUtils}from'@ant-design/cssinjs-utils';import {createTheme,useCacheToken}from'@ant-design/cssinjs';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var R="ant",P="anticon";var te=(e,r)=>r||(e?`${R}-${e}`:R),y=E.createContext({getPrefixCls:te,iconPrefixCls:P}),{Consumer:be}=y;var ne=()=>({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 O=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"}}}),G=(e,r,t,n)=>{let o=`[class^="${r}"], [class*=" ${r}"]`,c=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==false&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[c]:{...s,...i,[o]:i}}};var j=e=>({[`.${e}`]:{...ne(),[`.${e} .${e}-icon`]:{display:"block"}}});var W={version:"0.0.3"};var N=W.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"},ae={...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},u=ae;function M(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){let{colorSuccess:n,colorWarning:o,colorError:c,colorInfo:i,colorPrimary:s,colorBgBase:m,colorTextBase:l}=e,a=r(s),p=r(n),g=r(o),f=r(c),C=r(i),ee=t(m,l),oe=e.colorLink||e.colorInfo,b=r(oe),re=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...ee,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:re,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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[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:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var le=e=>{let r=e,t=e,n=e,o=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=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:t,borderRadiusLG:r,borderRadiusOuter:o}},$=le;function z(e){let{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:o}=e;return {motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:o+1,...$(n)}}var ce=e=>{let{controlHeight:r}=e;return {controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}},U=ce;function se(e){return (e+8)/e}function H(e){let r=new Array(10).fill(null).map((t,n)=>{let o=n-1,c=e*Math.E**(o/5),i=n>1?Math.floor(c):Math.ceil(c);return Math.floor(i/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:se(t)}))}var pe=e=>{let r=H(e),t=r.map(a=>a.size),n=r.map(a=>a.lineHeight),o=t[1],c=t[0],i=t[2],s=n[1],m=n[0],l=n[2];return {fontSizeSM:c,fontSize:o,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:l,lineHeightSM:m,fontHeight:Math.round(s*o),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(m*c),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},V=pe;function w(e){let{sizeUnit:r,sizeStep:t}=e;return {sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}var d=(e,r)=>new TinyColor(e).setAlpha(r).toRgbString(),S=(e,r)=>new TinyColor(e).darken(r).toHexString();var _=e=>{let r=generate(e);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]}},q=(e,r)=>{let t=e||"#fff",n=r||"#000";return {colorBgBase:t,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(t,4),colorBgContainer:S(t,0),colorBgElevated:S(t,0),colorBgSpotlight:d(n,.85),colorBgBlur:"transparent",colorBorder:S(t,15),colorBorderSecondary:S(t,6)}};function I(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let r=Object.keys(h).map(t=>{let n=e[t]===presetPrimaryColors[t]?presetPalettes[t]:generate(e[t]);return new Array(10).fill(1).reduce((o,c,i)=>(o[`${t}-${i+1}`]=n[i],o[`${t}${i+1}`]=n[i],o),{})}).reduce((t,n)=>(t={...t,...n},t),{});return {...e,...r,...M(e,{generateColorPalettes:_,generateNeutralColorPalettes:q}),...V(e.fontSize),...w(e),...U(e),...z(e)}}var J=createTheme(I),Ce={token:u,override:{override:u},hashed:true},Y=E__default.createContext(Ce);function D(e){return e>=0&&e<=255}function ue(e,r){let{r:t,g:n,b:o,a:c}=new TinyColor(e).toRgb();if(c<1)return e;let{r:i,g:s,b:m}=new TinyColor(r).toRgb();for(let l=.01;l<=1;l+=.01){let a=Math.round((t-i*(1-l))/l),p=Math.round((n-s*(1-l))/l),g=Math.round((o-m*(1-l))/l);if(D(a)&&D(p)&&D(g))return new TinyColor({r:a,g:p,b:g,a:Math.round(l*100)/100}).toRgbString()}return new TinyColor({r:t,g:n,b:o,a:1}).toRgbString()}var x=ue;function k(e){let{override:r,...t}=e,n={...r};Object.keys(u).forEach(g=>{delete n[g];});let o={...t,...n},c=480,i=576,s=768,m=992,l=1200,a=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:x(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:x(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:x(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:x(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
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {createTheme,useStyleRegister,useCacheToken}from'@ant-design/cssinjs';import ne from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var _=()=>({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 F=o=>({[`.${o}`]:{..._(),[`.${o} .${o}-icon`]:{display:"block"}}});var P={version:"0.0.
|
|
1
|
+
import {createTheme,useStyleRegister,useCacheToken}from'@ant-design/cssinjs';import ne from'react';import {presetPrimaryColors,presetPalettes,generate}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';var _=()=>({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 F=o=>({[`.${o}`]:{..._(),[`.${o} .${o}-icon`]:{display:"block"}}});var P={version:"0.0.3"};var I=P.version;var y={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"},Y={...y,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=Y;function v(o,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:e,colorError:l,colorInfo:i,colorPrimary:g,colorBgBase:d,colorTextBase:a}=o,c=t(g),s=t(n),p=t(e),m=t(l),f=t(i),Q=r(d,a),V=o.colorLink||o.colorInfo,h=t(V),q=new TinyColor(m[1]).mix(new TinyColor(m[3]),50).toHexString();return {...Q,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:s[1],colorSuccessBgHover:s[2],colorSuccessBorder:s[3],colorSuccessBorderHover:s[4],colorSuccessHover:s[4],colorSuccess:s[6],colorSuccessActive:s[7],colorSuccessTextHover:s[8],colorSuccessText:s[9],colorSuccessTextActive:s[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:q,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var Z=o=>{let t=o,r=o,n=o,e=o;return o<6&&o>=5?t=o+1:o<16&&o>=6?t=o+2:o>=16&&(t=16),o<7&&o>=5?r=4:o<8&&o>=7?r=5:o<14&&o>=8?r=6:o<16&&o>=14?r=7:o>=16&&(r=8),o<6&&o>=2?n=1:o>=6&&(n=2),o>4&&o<8?e=4:o>=8&&(e=6),{borderRadius:o,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:e}},R=Z;function C(o){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:e}=o;return {motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:e+1,...R(n)}}var K=o=>{let{controlHeight:t}=o;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},O=K;function ee(o){return (o+8)/o}function z(o){let t=new Array(10).fill(null).map((r,n)=>{let e=n-1,l=o*Math.E**(e/5),i=n>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return t[1]=o,t.map(r=>({size:r,lineHeight:ee(r)}))}var oe=o=>{let t=z(o),r=t.map(c=>c.size),n=t.map(c=>c.lineHeight),e=r[1],l=r[0],i=r[2],g=n[1],d=n[0],a=n[2];return {fontSizeSM:l,fontSize:e,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:g,lineHeightLG:a,lineHeightSM:d,fontHeight:Math.round(g*e),fontHeightLG:Math.round(a*i),fontHeightSM:Math.round(d*l),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},G=oe;function H(o){let{sizeUnit:t,sizeStep:r}=o;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 u=(o,t)=>new TinyColor(o).setAlpha(t).toRgbString(),x=(o,t)=>new TinyColor(o).darken(t).toHexString();var j=o=>{let t=generate(o);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]}},W=(o,t)=>{let r=o||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:u(n,.88),colorTextSecondary:u(n,.65),colorTextTertiary:u(n,.45),colorTextQuaternary:u(n,.25),colorFill:u(n,.15),colorFillSecondary:u(n,.06),colorFillTertiary:u(n,.04),colorFillQuaternary:u(n,.02),colorBgSolid:u(n,1),colorBgSolidHover:u(n,.75),colorBgSolidActive:u(n,.95),colorBgLayout:x(r,4),colorBgContainer:x(r,0),colorBgElevated:x(r,0),colorBgSpotlight:u(n,.85),colorBgBlur:"transparent",colorBorder:x(r,15),colorBorderSecondary:x(r,6)}};function D(o){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(y).map(r=>{let n=o[r]===presetPrimaryColors[r]?presetPalettes[r]:generate(o[r]);return new Array(10).fill(1).reduce((e,l,i)=>(e[`${r}-${i+1}`]=n[i],e[`${r}${i+1}`]=n[i],e),{})}).reduce((r,n)=>(r={...r,...n},r),{});return {...o,...t,...v(o,{generateColorPalettes:j,generateNeutralColorPalettes:W}),...G(o.fontSize),...H(o),...O(o),...C(o)}}var $=createTheme(D),ce={token:S,override:{override:S},hashed:true},U=ne.createContext(ce);function A(o){return o>=0&&o<=255}function ae(o,t){let{r,g:n,b:e,a:l}=new TinyColor(o).toRgb();if(l<1)return o;let{r:i,g,b:d}=new TinyColor(t).toRgb();for(let a=.01;a<=1;a+=.01){let c=Math.round((r-i*(1-a))/a),s=Math.round((n-g*(1-a))/a),p=Math.round((e-d*(1-a))/a);if(A(c)&&A(s)&&A(p))return new TinyColor({r:c,g:s,b:p,a:Math.round(a*100)/100}).toRgbString()}return new TinyColor({r,g:n,b:e,a:1}).toRgbString()}var b=ae;function k(o){let{override:t,...r}=o,n={...t};Object.keys(S).forEach(p=>{delete n[p];});let e={...r,...n},l=480,i=576,g=768,d=992,a=1200,c=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:b(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:b(e.colorErrorBg,e.colorBgContainer),colorWarningOutline:b(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:b(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:`
|
|
4
4
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|