@swiftcrab/crab 0.0.6 → 0.0.7
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/hooks/useParsedHash.js +1 -1
- package/es/index.d.ts +4 -1
- package/es/index.js +1 -1
- package/es/notice/index.d.ts +30 -0
- package/es/notice/index.js +1 -0
- package/es/notice/style/index.d.ts +89 -0
- package/es/notice/style/index.js +1 -0
- package/es/packages/ui/package.js +1 -1
- package/es/question/index.d.ts +30 -0
- package/es/question/index.js +1 -0
- package/es/question/style/index.d.ts +24 -0
- package/es/question/style/index.js +1 -0
- package/es/select/index.d.ts +2 -0
- package/es/select/index.js +1 -1
- package/es/select/style/dropdown.js +11 -11
- package/es/select/style/multiple.js +1 -1
- package/es/select/useShortcut.d.ts +17 -0
- package/es/select/useShortcut.js +1 -0
- package/es/select-auto-fetch/index.d.ts +22 -0
- package/es/select-auto-fetch/index.js +1 -0
- package/es/theme/interface/components.d.ts +62 -58
- package/es/type/index.d.ts +4 -1
- package/es/type/index.js +1 -1
- package/package.json +3 -3
- package/umd/index.min.js +70 -70
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";import{isEqualWith as
|
|
1
|
+
import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";import i from"lodash/debounce";import{isEqualWith as a,isNaN as o,isNil as s}from"lodash";function c(e){return!e||typeof e!=`object`||Array.isArray(e)?e:Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{})}function l(e,t){return a(e,t,function(e,t){if(o(e)&&o(t)||o(e)&&s(t)||s(e)&&s(t)||s(e)&&o(t))return!0;if(typeof e==`function`&&typeof t==`function`)return e.toString()===t.toString()})}function u(e,t,n){let[,r=``]=(typeof n==`string`?n:window.location.hash).split(`?`),i=new URLSearchParams(r).get(e);if(!i)return t||{};let a;try{a=JSON.parse(decodeURIComponent(i))}catch{a={}}return t&&typeof t==`object`&&!Array.isArray(t)&&a&&typeof a==`object`&&!Array.isArray(a)?{...t,...a}:a??(t||{})}function d(a={}){let{key:o=`search`,initialValue:s}=a,d=n(s),f=e(e=>u(o,d.current,e),[o]),[p,m]=r(()=>f()),h=e(e=>{let t=f(e);m(e=>l(e,t)?e:t)},[f]),g=e(e=>{let t=window.location.hash||``,[n=``,r=``]=t.split(`?`),i;i=e===void 0?null:typeof e==`function`?e(f()):e;let a=new URLSearchParams(r);if(i==null)a.delete(o);else{let e=c(i);a.set(o,encodeURIComponent(JSON.stringify(e)))}let s=a.toString(),l=s?`${n}?${s}`:n;if(l===t)return;let u=`${window.location.pathname}${window.location.search}${l}`;window.history.replaceState(null,``,u),h(l)},[f,o,h]);return t(()=>{let e=i(()=>{h()},30);return window.addEventListener(`hashchange`,e),e(),()=>{e.cancel(),window.removeEventListener(`hashchange`,e)}},[h]),[p,g]}export{d as default};
|
package/es/index.d.ts
CHANGED
|
@@ -84,15 +84,18 @@ import Layout from "./layout/index.js";
|
|
|
84
84
|
import Mentions, { MentionProps, MentionsProps } from "./mentions/index.js";
|
|
85
85
|
import staticMethods from "./message/index.js";
|
|
86
86
|
import Modal from "./modal/index.js";
|
|
87
|
+
import Notice, { NoticeProps, NoticeScrollDirection, NoticeType } from "./notice/index.js";
|
|
87
88
|
import staticMethods$1 from "./notification/index.js";
|
|
88
89
|
import { QRCodeProps, QRPropsCanvas, QRPropsSvg } from "./qr-code/interface.js";
|
|
89
90
|
import QRCode from "./qr-code/index.js";
|
|
91
|
+
import Question, { QuestionIconPlacement, QuestionProps, QuestionVariant } from "./question/index.js";
|
|
90
92
|
import { RadioChangeEvent, RadioGroupProps, RadioProps } from "./radio/interface.js";
|
|
91
93
|
import Radio from "./radio/index.js";
|
|
92
94
|
import Rate, { RateProps } from "./rate/index.js";
|
|
93
95
|
import Result, { ResultProps } from "./result/index.js";
|
|
94
96
|
import "./row/index.js";
|
|
95
97
|
import Segmented, { SegmentedProps } from "./segmented/index.js";
|
|
98
|
+
import SelectAutoFetch, { SelectAutoFetchOption, SelectAutoFetchProps, SelectAutoFetchValue, SelectAutoFetchValueType } from "./select-auto-fetch/index.js";
|
|
96
99
|
import Skeleton, { SkeletonProps } from "./skeleton/Skeleton.js";
|
|
97
100
|
import "./skeleton/index.js";
|
|
98
101
|
import Slider, { SliderSingleProps } from "./slider/index.js";
|
|
@@ -145,4 +148,4 @@ import { GlobalToken } from "./theme/interface/cssinjs-utils.js";
|
|
|
145
148
|
import { MappingAlgorithm } from "./theme/interface/index.js";
|
|
146
149
|
import Icon from "@ant-design/icons";
|
|
147
150
|
export * from "@ant-design/icons";
|
|
148
|
-
export { Affix, type AffixProps, type AffixRef, Alert, type AlertProps, Anchor, type AnchorLinkProps, type AnchorProps, App, type AppProps, RefAutoComplete as AutoComplete, type AutoCompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, type Breakpoint, Button, type ButtonProps, _default as Calendar, CalendarPanel, type CalendarProps, Card, type CardProps, Carousel, type CarouselProps, Cascader, type CascaderAutoProps, type CascaderPanelAutoProps, type CascaderPanelProps, type CascaderProps, Checkbox, type CheckboxChangeEvent, type CheckboxOptionType, type CheckboxProps, type CheckboxRef, ClapOverflow, type ClapOverflowProps, Col, type ColProps, _default$1 as Collapse, type CollapsePanelProps, type CollapseProps, ColorPicker, type ColorPickerProps, ConfigProvider, type ConfigProviderProps, _default$2 as Copy, type CountdownProps, _default$3 as DatePicker, type DatePickerProps, Descriptions, type DescriptionsProps, type Direction, Divider, type DividerProps, Drag, type DragBoard, type DragBoardFinishParams, type DragFinishParams, type DragHandleProps, type DragZone, type DraggerProps, Drawer, type DrawerProps, type DropdownProps as DropDownProps, Dropdown, type DropdownProps, Empty, type EmptyProps, Flex, type FlexProps, Form, _default$4 as FormArea, type FormInstance, type FormItemProps, type FormListFieldData, type FormListOperation, type FormProps, type Rule as FormRule, Gantt, type GetProp, type GetProps, type GetRef, type GlobalToken, _default$5 as Grid, HourPanel, type IForm, type IFormItem, type IGanttBar, type IGanttGroup, type IGanttTask, type IMuxCalendarPanelProps, type IMuxHourProps, type IMuxHourSelected, type IMuxHourTimeSegment, Icon, Image, type ImageProps, Input, TypedInputNumber as InputNumber, type InputNumberProps, type InputProps, type InputRef, Layout, type BasicProps as LayoutProps, List, type ListProps, type MappingAlgorithm, type MentionProps, Mentions, type MentionsProps, Menu, type MenuItemProps, type MenuProps, type MenuRef, type MenuTheme, type ArgsProps as MessageArgsProps, Modal, type ModalFuncProps, type ModalProps, type MultiSortableZonesProps, type MultiZoneDragFinishParams, type ArgsProps$1 as NotificationArgsProps, Pagination, type PaginationProps, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, type QRPropsCanvas, type QRPropsSvg, Radio, type RadioChangeEvent, type RadioGroupProps, type RadioProps, Rate, type RateProps, type BaseSelectRef as RefSelectProps, Result, type ResultProps, Row, type RowProps, _default$6 as SearchArea, Segmented, type SegmentedProps, Select, type SelectProps, type SiderProps, Skeleton, type SkeletonProps, Slider, type SliderSingleProps, type SortableBoardProps, type SortableListProps, Space, type SpaceProps, Spin, type SpinProps, Splitter, type SplitterProps, _default$7 as Statistic, type StatisticProps, type StepProps, Steps, type StepsProps, type SubMenuProps, Switch, type SwitchProps, type TabPaneProps, ForwardTable as Table, type ColumnGroupType as TableColumnGroupType, type ColumnProps as TableColumnProps, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type TablePaginationConfig, type TableProps, Tabs, type TabsProps, Tag, type TagProps, type TagType, type ThemeConfig, TimeOut, type TimeOutProps, _default$8 as TimePicker, type TimePickerProps, type TimeRangePickerProps, Timeline, type TimelineItemProps, type TimelineProps, Tooltip, type TooltipProps, Tour, type TourProps, type TourStepProps, Transfer, type TransferMode, type TransferProps, Tree, type DataNode as TreeDataNode, type AntTreeNodeProps as TreeNodeProps, type TreeProps, TreeSelect, type TreeSelectProps, Typography, type TypographyProps, Upload, type UploadFile, type UploadProps, index_d_exports as Utils, Watermark, type WatermarkProps, staticMethods as message, staticMethods$1 as notification, _default$9 as theme, unstableSetRender, _default$10 as version };
|
|
151
|
+
export { Affix, type AffixProps, type AffixRef, Alert, type AlertProps, Anchor, type AnchorLinkProps, type AnchorProps, App, type AppProps, RefAutoComplete as AutoComplete, type AutoCompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Breadcrumb, type BreadcrumbItemProps, type BreadcrumbProps, type Breakpoint, Button, type ButtonProps, _default as Calendar, CalendarPanel, type CalendarProps, Card, type CardProps, Carousel, type CarouselProps, Cascader, type CascaderAutoProps, type CascaderPanelAutoProps, type CascaderPanelProps, type CascaderProps, Checkbox, type CheckboxChangeEvent, type CheckboxOptionType, type CheckboxProps, type CheckboxRef, ClapOverflow, type ClapOverflowProps, Col, type ColProps, _default$1 as Collapse, type CollapsePanelProps, type CollapseProps, ColorPicker, type ColorPickerProps, ConfigProvider, type ConfigProviderProps, _default$2 as Copy, type CountdownProps, _default$3 as DatePicker, type DatePickerProps, Descriptions, type DescriptionsProps, type Direction, Divider, type DividerProps, Drag, type DragBoard, type DragBoardFinishParams, type DragFinishParams, type DragHandleProps, type DragZone, type DraggerProps, Drawer, type DrawerProps, type DropdownProps as DropDownProps, Dropdown, type DropdownProps, Empty, type EmptyProps, Flex, type FlexProps, Form, _default$4 as FormArea, type FormInstance, type FormItemProps, type FormListFieldData, type FormListOperation, type FormProps, type Rule as FormRule, Gantt, type GetProp, type GetProps, type GetRef, type GlobalToken, _default$5 as Grid, HourPanel, type IForm, type IFormItem, type IGanttBar, type IGanttGroup, type IGanttTask, type IMuxCalendarPanelProps, type IMuxHourProps, type IMuxHourSelected, type IMuxHourTimeSegment, Icon, Image, type ImageProps, Input, TypedInputNumber as InputNumber, type InputNumberProps, type InputProps, type InputRef, Layout, type BasicProps as LayoutProps, List, type ListProps, type MappingAlgorithm, type MentionProps, Mentions, type MentionsProps, Menu, type MenuItemProps, type MenuProps, type MenuRef, type MenuTheme, type ArgsProps as MessageArgsProps, Modal, type ModalFuncProps, type ModalProps, type MultiSortableZonesProps, type MultiZoneDragFinishParams, Notice, type NoticeProps, type NoticeScrollDirection, type NoticeType, type ArgsProps$1 as NotificationArgsProps, Pagination, type PaginationProps, Popconfirm, type PopconfirmProps, Popover, type PopoverProps, Progress, type ProgressProps, QRCode, type QRCodeProps, type QRPropsCanvas, type QRPropsSvg, Question, type QuestionIconPlacement, type QuestionProps, type QuestionVariant, Radio, type RadioChangeEvent, type RadioGroupProps, type RadioProps, Rate, type RateProps, type BaseSelectRef as RefSelectProps, Result, type ResultProps, Row, type RowProps, _default$6 as SearchArea, Segmented, type SegmentedProps, Select, SelectAutoFetch, type SelectAutoFetchOption, type SelectAutoFetchProps, type SelectAutoFetchValue, type SelectAutoFetchValueType, type SelectProps, type SiderProps, Skeleton, type SkeletonProps, Slider, type SliderSingleProps, type SortableBoardProps, type SortableListProps, Space, type SpaceProps, Spin, type SpinProps, Splitter, type SplitterProps, _default$7 as Statistic, type StatisticProps, type StepProps, Steps, type StepsProps, type SubMenuProps, Switch, type SwitchProps, type TabPaneProps, ForwardTable as Table, type ColumnGroupType as TableColumnGroupType, type ColumnProps as TableColumnProps, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type TablePaginationConfig, type TableProps, Tabs, type TabsProps, Tag, type TagProps, type TagType, type ThemeConfig, TimeOut, type TimeOutProps, _default$8 as TimePicker, type TimePickerProps, type TimeRangePickerProps, Timeline, type TimelineItemProps, type TimelineProps, Tooltip, type TooltipProps, Tour, type TourProps, type TourStepProps, Transfer, type TransferMode, type TransferProps, Tree, type DataNode as TreeDataNode, type AntTreeNodeProps as TreeNodeProps, type TreeProps, TreeSelect, type TreeSelectProps, Typography, type TypographyProps, Upload, type UploadFile, type UploadProps, index_d_exports as Utils, Watermark, type WatermarkProps, staticMethods as message, staticMethods$1 as notification, _default$9 as theme, unstableSetRender, _default$10 as version };
|
package/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import e from"./version/index.js";import t from"./config-provider/index.js";import n from"./affix/index.js";import r from"./alert/index.js";import i from"./anchor/index.js";import{unstableSetRender as a}from"./config-provider/UnstableContext.js";import o from"./collapse/index.js";import s from"./button/index.js";import c from"./skeleton/index.js";import l from"./app/index.js";import u from"./empty/index.js";import d from"./select/index.js";import f from"./auto-complete/index.js";import p from"./tooltip/index.js";import m from"./popover/index.js";import h from"./avatar/index.js";import g from"./badge/index.js";import _ from"./menu/index.js";import v from"./breadcrumb/index.js";import y from"./radio/index.js";import b from"./calendar/index.js";import x from"./tabs/index.js";import S from"./card/index.js";import C from"./carousel/index.js";import w from"./cascader/index.js";import T from"./clap-overflow/index.js";import E from"./checkbox/index.js";import D from"./grid/index.js";import O from"./col/index.js";import k from"./divider/index.js";import A from"./segmented/index.js";import j from"./input-number/index.js";import M from"./input/index.js";import N from"./slider/index.js";import P from"./color-picker/index.js";import F from"./date-picker/index.js";import I from"./descriptions/index.js";import L from"./drawer/index.js";import R from"./space/index.js";import z from"./dropdown/index.js";import B from"./flex/index.js";import V from"./form/index.js";import H from"./image/index.js";import U from"./layout/index.js";import W from"./pagination/index.js";import G from"./spin/index.js";import K from"./list/index.js";import q from"./mentions/index.js";import J from"./message/index.js";import Y from"./modal/index.js";import X from"./
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import e from"./version/index.js";import t from"./config-provider/index.js";import n from"./affix/index.js";import r from"./alert/index.js";import i from"./anchor/index.js";import{unstableSetRender as a}from"./config-provider/UnstableContext.js";import o from"./collapse/index.js";import s from"./button/index.js";import c from"./skeleton/index.js";import l from"./app/index.js";import u from"./empty/index.js";import d from"./select/index.js";import f from"./auto-complete/index.js";import p from"./tooltip/index.js";import m from"./popover/index.js";import h from"./avatar/index.js";import g from"./badge/index.js";import _ from"./menu/index.js";import v from"./breadcrumb/index.js";import y from"./radio/index.js";import b from"./calendar/index.js";import x from"./tabs/index.js";import S from"./card/index.js";import C from"./carousel/index.js";import w from"./cascader/index.js";import T from"./clap-overflow/index.js";import E from"./checkbox/index.js";import D from"./grid/index.js";import O from"./col/index.js";import k from"./divider/index.js";import A from"./segmented/index.js";import j from"./input-number/index.js";import M from"./input/index.js";import N from"./slider/index.js";import P from"./color-picker/index.js";import F from"./date-picker/index.js";import I from"./descriptions/index.js";import L from"./drawer/index.js";import R from"./space/index.js";import z from"./dropdown/index.js";import B from"./flex/index.js";import V from"./form/index.js";import H from"./image/index.js";import U from"./layout/index.js";import W from"./pagination/index.js";import G from"./spin/index.js";import K from"./list/index.js";import q from"./mentions/index.js";import J from"./message/index.js";import Y from"./modal/index.js";import X from"./notice/index.js";import Z from"./notification/index.js";import Q from"./popconfirm/index.js";import $ from"./progress/index.js";import ee from"./qr-code/index.js";import te from"./question/index.js";import ne from"./rate/index.js";import re from"./result/index.js";import ie from"./row/index.js";import ae from"./select-auto-fetch/index.js";import oe from"./statistic/index.js";import se from"./steps/index.js";import ce from"./switch/index.js";import le from"./tree/index.js";import ue from"./table/index.js";import de from"./tag/index.js";import fe from"./theme/index.js";import pe from"./time-out/index.js";import me from"./time-picker/index.js";import he from"./timeline/index.js";import ge from"./tour/index.js";import _e from"./transfer/index.js";import ve from"./tree-select/index.js";import ye from"./typography/index.js";import be from"./upload/index.js";import xe from"./watermark/index.js";import Se from"./splitter/index.js";import Ce from"./form-area/index.js";import we from"./search-area/index.js";import Te from"./copy/index.js";import Ee from"./calendar-panel/index.js";import De from"./gantt/index.js";import Oe from"./hour-panel/index.js";import ke from"./drag/index.js";import{utils_exports as Ae}from"./utils/index.js";import je from"@ant-design/icons";export*from"@ant-design/icons";export{n as Affix,r as Alert,i as Anchor,l as App,f as AutoComplete,h as Avatar,g as Badge,v as Breadcrumb,s as Button,b as Calendar,Ee as CalendarPanel,S as Card,C as Carousel,w as Cascader,E as Checkbox,T as ClapOverflow,O as Col,o as Collapse,P as ColorPicker,t as ConfigProvider,Te as Copy,F as DatePicker,I as Descriptions,k as Divider,ke as Drag,L as Drawer,z as Dropdown,u as Empty,B as Flex,V as Form,Ce as FormArea,De as Gantt,D as Grid,Oe as HourPanel,je as Icon,H as Image,M as Input,j as InputNumber,U as Layout,K as List,q as Mentions,_ as Menu,Y as Modal,X as Notice,W as Pagination,Q as Popconfirm,m as Popover,$ as Progress,ee as QRCode,te as Question,y as Radio,ne as Rate,re as Result,ie as Row,we as SearchArea,A as Segmented,d as Select,ae as SelectAutoFetch,c as Skeleton,N as Slider,R as Space,G as Spin,Se as Splitter,oe as Statistic,se as Steps,ce as Switch,ue as Table,x as Tabs,de as Tag,pe as TimeOut,me as TimePicker,he as Timeline,p as Tooltip,ge as Tour,_e as Transfer,le as Tree,ve as TreeSelect,ye as Typography,be as Upload,Ae as Utils,xe as Watermark,J as message,Z as notification,fe as theme,a as unstableSetRender,e as version};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SizeType } from "../config-provider/SizeContext.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
//#region components/notice/index.d.ts
|
|
4
|
+
export type NoticeType = 'normal' | 'warning' | 'error' | 'muted' | 'success';
|
|
5
|
+
export type NoticeScrollDirection = 'left' | 'right';
|
|
6
|
+
export interface NoticeProps {
|
|
7
|
+
prefixCls?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React$1.CSSProperties;
|
|
10
|
+
type?: NoticeType;
|
|
11
|
+
content?: React$1.ReactNode;
|
|
12
|
+
children?: React$1.ReactNode;
|
|
13
|
+
icon?: React$1.ReactNode;
|
|
14
|
+
showIcon?: boolean;
|
|
15
|
+
extra?: React$1.ReactNode;
|
|
16
|
+
scroll?: boolean;
|
|
17
|
+
scrollDirection?: NoticeScrollDirection;
|
|
18
|
+
scrollSpeed?: number;
|
|
19
|
+
pauseOnHover?: boolean;
|
|
20
|
+
closable?: boolean;
|
|
21
|
+
closeIcon?: React$1.ReactNode;
|
|
22
|
+
bordered?: boolean;
|
|
23
|
+
banner?: boolean;
|
|
24
|
+
size?: SizeType;
|
|
25
|
+
onClose?: (e: React$1.MouseEvent<HTMLSpanElement>) => void;
|
|
26
|
+
onClick?: (e: React$1.MouseEvent<HTMLDivElement>) => void;
|
|
27
|
+
}
|
|
28
|
+
declare const Notice: React$1.FC<NoticeProps>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Notice as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ConfigContext as e}from"../config-provider/context.js";import"../config-provider/index.js";import t from"../config-provider/hooks/useSize.js";import n from"./style/index.js";import*as r from"react";import i from"classnames";import a from"@ant-design/icons/CheckCircleFilled";import o from"@ant-design/icons/CloseCircleFilled";import s from"@ant-design/icons/CloseOutlined";import c from"@ant-design/icons/ExclamationCircleFilled";import l from"@ant-design/icons/InfoCircleFilled";import u from"rc-util/lib/hooks/useLayoutEffect";const d={normal:l,warning:c,error:o,muted:l,success:a},f=a=>{let{getPrefixCls:o}=r.useContext(e),{prefixCls:c,className:f,style:p,type:m=`normal`,content:h,children:g,icon:_,showIcon:v=!0,extra:y,scroll:b=!1,scrollDirection:x=`left`,scrollSpeed:S=100,pauseOnHover:C=!0,closable:w=!1,closeIcon:T,bordered:E=!1,banner:D=!1,size:O,onClose:k,onClick:A}=a,j=t(O),M=o(`notice`,c),[N,P,F]=n(M),I=r.useRef(null),[L,R]=r.useState(!1),[z,B]=r.useState(0),V=h??g;u(()=>{if(!b)return;let e=I.current;if(!e)return;let t=()=>{let t=Math.round(e.offsetWidth);B(e=>e===t?e:t)};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[b]);let H=e=>{e.stopPropagation(),R(!0),k?.(e)};if(L)return null;let U=b&&z>0?{animationDuration:`${z/Math.max(1,S)}s`}:{},W=d[m]??l,G=i(M,`${M}-${m}`,P,F,{[`${M}-sm`]:j===`small`,[`${M}-lg`]:j===`large`,[`${M}-bordered`]:E,[`${M}-banner`]:D,[`${M}-scroll`]:b,[`${M}-scroll-reverse`]:b&&x===`right`,[`${M}-pause`]:b&&C},f);return N(r.createElement(`div`,{className:G,style:p,onClick:A},v&&r.createElement(`span`,{className:`${M}-icon`},_??r.createElement(W,null)),r.createElement(`div`,{className:`${M}-viewport`},r.createElement(`div`,{className:`${M}-content`,ref:I,style:U},V)),y&&r.createElement(`span`,{className:`${M}-extra`},y),w&&r.createElement(`span`,{className:`${M}-close`,onClick:H},T??r.createElement(s,null))))};export{f as default};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import "../../theme/internal.js";
|
|
2
|
+
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
|
+
//#region components/notice/style/index.d.ts
|
|
4
|
+
export interface ComponentToken {
|
|
5
|
+
/**
|
|
6
|
+
* @desc 默认类型背景色
|
|
7
|
+
* @descEN Background color of normal type
|
|
8
|
+
*/
|
|
9
|
+
normalBg: string;
|
|
10
|
+
/**
|
|
11
|
+
* @desc 默认类型图标颜色
|
|
12
|
+
* @descEN Icon color of normal type
|
|
13
|
+
*/
|
|
14
|
+
normalIconColor: string;
|
|
15
|
+
/**
|
|
16
|
+
* @desc 默认类型边框色
|
|
17
|
+
* @descEN Border color of normal type
|
|
18
|
+
*/
|
|
19
|
+
normalBorderColor: string;
|
|
20
|
+
/**
|
|
21
|
+
* @desc 警告类型背景色
|
|
22
|
+
* @descEN Background color of warning type
|
|
23
|
+
*/
|
|
24
|
+
warningBg: string;
|
|
25
|
+
/**
|
|
26
|
+
* @desc 警告类型图标颜色
|
|
27
|
+
* @descEN Icon color of warning type
|
|
28
|
+
*/
|
|
29
|
+
warningIconColor: string;
|
|
30
|
+
/**
|
|
31
|
+
* @desc 警告类型边框色
|
|
32
|
+
* @descEN Border color of warning type
|
|
33
|
+
*/
|
|
34
|
+
warningBorderColor: string;
|
|
35
|
+
/**
|
|
36
|
+
* @desc 错误类型背景色
|
|
37
|
+
* @descEN Background color of error type
|
|
38
|
+
*/
|
|
39
|
+
errorBg: string;
|
|
40
|
+
/**
|
|
41
|
+
* @desc 错误类型图标颜色
|
|
42
|
+
* @descEN Icon color of error type
|
|
43
|
+
*/
|
|
44
|
+
errorIconColor: string;
|
|
45
|
+
/**
|
|
46
|
+
* @desc 错误类型边框色
|
|
47
|
+
* @descEN Border color of error type
|
|
48
|
+
*/
|
|
49
|
+
errorBorderColor: string;
|
|
50
|
+
/**
|
|
51
|
+
* @desc 提示类型背景色
|
|
52
|
+
* @descEN Background color of muted type
|
|
53
|
+
*/
|
|
54
|
+
mutedBg: string;
|
|
55
|
+
/**
|
|
56
|
+
* @desc 提示类型图标颜色
|
|
57
|
+
* @descEN Icon color of muted type
|
|
58
|
+
*/
|
|
59
|
+
mutedIconColor: string;
|
|
60
|
+
/**
|
|
61
|
+
* @desc 提示类型边框色
|
|
62
|
+
* @descEN Border color of muted type
|
|
63
|
+
*/
|
|
64
|
+
mutedBorderColor: string;
|
|
65
|
+
/**
|
|
66
|
+
* @desc 成功类型背景色
|
|
67
|
+
* @descEN Background color of success type
|
|
68
|
+
*/
|
|
69
|
+
successBg: string;
|
|
70
|
+
/**
|
|
71
|
+
* @desc 成功类型图标颜色
|
|
72
|
+
* @descEN Icon color of success type
|
|
73
|
+
*/
|
|
74
|
+
successIconColor: string;
|
|
75
|
+
/**
|
|
76
|
+
* @desc 成功类型边框色
|
|
77
|
+
* @descEN Border color of success type
|
|
78
|
+
*/
|
|
79
|
+
successBorderColor: string;
|
|
80
|
+
/**
|
|
81
|
+
* @desc 图标大小
|
|
82
|
+
* @descEN Size of icon
|
|
83
|
+
*/
|
|
84
|
+
iconSize: number;
|
|
85
|
+
}
|
|
86
|
+
export declare const prepareComponentToken: GetDefaultToken<'Notice'>;
|
|
87
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
88
|
+
//#endregion
|
|
89
|
+
export { _default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{resetComponent as e}from"../../style/index.js";import{genStyleHooks as t}from"../../theme/util/genStyleUtils.js";import{mergeToken as n}from"../../theme/internal.js";import{Keyframes as r,unit as i}from"@ant-design/cssinjs";const a=new r(`antNoticeScroll`,{"0%":{transform:`translateX(0)`},"100%":{transform:`translateX(-100%)`}}),o=(e,t,n,r,i)=>({[`&${e}-${t}`]:{backgroundColor:n,borderColor:i,[`${e}-icon`]:{color:r}}}),s=t=>{let{componentCls:n,normalBg:r,normalIconColor:s,normalBorderColor:c,warningBg:l,warningIconColor:u,warningBorderColor:d,errorBg:f,errorIconColor:p,errorBorderColor:m,mutedBg:h,mutedIconColor:g,mutedBorderColor:_,successBg:v,successIconColor:y,successBorderColor:b,iconSize:x,fontSize:S,fontSizeSM:C,fontSizeLG:w,colorText:T,colorIcon:E,colorIconHover:D,borderRadiusLG:O,lineWidth:k,lineHeight:A,paddingXXS:j,paddingXS:M,paddingSM:N,marginXS:P,marginSM:F,motionDurationMid:I}=t;return{[n]:{...e(t),position:`relative`,display:`flex`,alignItems:`center`,boxSizing:`border-box`,width:`100%`,paddingBlock:M,paddingInline:N,fontSize:S,lineHeight:A,color:T,borderRadius:O,borderWidth:0,borderStyle:`solid`,borderColor:`transparent`,[`${n}-icon`]:{display:`inline-flex`,alignItems:`center`,marginInlineEnd:P,fontSize:x,lineHeight:1},[`${n}-viewport`]:{flex:1,minWidth:0,overflow:`hidden`},[`${n}-extra`]:{flex:`none`,marginInlineStart:F},[`${n}-close`]:{flex:`none`,marginInlineStart:P,padding:j,fontSize:C,lineHeight:1,color:E,cursor:`pointer`,transition:`color ${I}`,"&:hover":{color:D}},[`&${n}-scroll`]:{[`${n}-content`]:{display:`inline-block`,paddingInlineStart:`100%`,whiteSpace:`nowrap`,animationName:a,animationTimingFunction:`linear`,animationIterationCount:`infinite`}},[`&${n}-scroll-reverse`]:{[`${n}-content`]:{animationDirection:`reverse`}},[`&${n}-pause:hover`]:{[`${n}-content`]:{animationPlayState:`paused`}},[`&${n}-bordered`]:{borderWidth:i(k)},[`&${n}-banner`]:{borderRadius:0},[`&${n}-sm`]:{paddingBlock:j,paddingInline:M,fontSize:C,[`${n}-icon`]:{fontSize:C}},[`&${n}-lg`]:{paddingBlock:N,paddingInline:N,fontSize:w,[`${n}-icon`]:{fontSize:w}},...o(n,`normal`,r,s,c),...o(n,`warning`,l,u,d),...o(n,`error`,f,p,m),...o(n,`muted`,h,g,_),...o(n,`success`,v,y,b)}}},c=e=>({normalBg:e.colorInfoBg,normalIconColor:e.colorInfo,normalBorderColor:e.colorInfoBorder,warningBg:e.colorWarningBg,warningIconColor:e.colorWarning,warningBorderColor:e.colorWarningBorder,errorBg:e.colorErrorBg,errorIconColor:e.colorError,errorBorderColor:e.colorErrorBorder,mutedBg:e.colorFillTertiary,mutedIconColor:e.colorTextDescription,mutedBorderColor:e.colorBorderSecondary,successBg:e.colorSuccessBg,successIconColor:e.colorSuccess,successBorderColor:e.colorSuccessBorder,iconSize:e.fontSize});var l=t(`Notice`,e=>{let t=n(e,{});return[s(t)]},c);export{l as default,c as prepareComponentToken};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`0.0.
|
|
1
|
+
var e=`0.0.6`;export{e as version};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SizeType } from "../config-provider/SizeContext.js";
|
|
2
|
+
import { TooltipPlacement, TooltipProps } from "../tooltip/index.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
//#region components/question/index.d.ts
|
|
5
|
+
export type QuestionVariant = 'dark' | 'light';
|
|
6
|
+
export type QuestionIconPlacement = 'start' | 'end';
|
|
7
|
+
export interface QuestionProps {
|
|
8
|
+
prefixCls?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React$1.CSSProperties;
|
|
11
|
+
title?: React$1.ReactNode;
|
|
12
|
+
children?: React$1.ReactNode;
|
|
13
|
+
icon?: React$1.ReactNode;
|
|
14
|
+
iconPlacement?: QuestionIconPlacement;
|
|
15
|
+
iconColor?: string;
|
|
16
|
+
gap?: number;
|
|
17
|
+
variant?: QuestionVariant;
|
|
18
|
+
placement?: TooltipPlacement;
|
|
19
|
+
trigger?: TooltipProps['trigger'];
|
|
20
|
+
maxWidth?: number | string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
open?: boolean;
|
|
23
|
+
defaultOpen?: boolean;
|
|
24
|
+
onOpenChange?: (open: boolean) => void;
|
|
25
|
+
tooltipProps?: TooltipProps;
|
|
26
|
+
size?: SizeType;
|
|
27
|
+
}
|
|
28
|
+
declare const Question: React$1.FC<QuestionProps>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Question as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ConfigContext as e}from"../config-provider/context.js";import t from"../theme/useToken.js";import"../theme/internal.js";import"../config-provider/index.js";import n from"../config-provider/hooks/useSize.js";import r from"../tooltip/index.js";import i from"./style/index.js";import*as a from"react";import o from"classnames";import s from"@ant-design/icons/QuestionCircleOutlined";const c=c=>{let{getPrefixCls:l}=a.useContext(e),{prefixCls:u,className:d,style:f,title:p,children:m,icon:h,iconPlacement:g=`end`,iconColor:_,gap:v,variant:y=`light`,placement:b=`top`,trigger:x=`hover`,maxWidth:S,disabled:C=!1,open:w,defaultOpen:T,onOpenChange:E,tooltipProps:D,size:O}=c,[,k]=t(),A=n(O),j=l(`question`,u),[M,N,P]=i(j),F=y===`light`,I={...F?{color:k.colorText}:null,...S===void 0?null:{maxWidth:S},...D?.overlayInnerStyle},L=a.createElement(`span`,{className:`${j}-icon`,style:_?{color:_}:void 0},h??a.createElement(s,null)),R=o(j,N,P,{[`${j}-sm`]:A===`small`,[`${j}-lg`]:A===`large`,[`${j}-disabled`]:C},d),z=C||!p?L:a.createElement(r,{placement:b,trigger:x,open:w,defaultOpen:T,onOpenChange:E,color:F?k.colorBgElevated:void 0,...D,title:p,overlayInnerStyle:I},L);return M(a.createElement(`span`,{className:R,style:v===void 0?f:{gap:v,...f}},g===`start`&&z,m!=null&&a.createElement(`span`,{className:`${j}-label`},m),g===`end`&&z))};export{c as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "../../theme/internal.js";
|
|
2
|
+
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
|
+
//#region components/question/style/index.d.ts
|
|
4
|
+
export interface ComponentToken {
|
|
5
|
+
/**
|
|
6
|
+
* @desc 问号图标颜色
|
|
7
|
+
* @descEN Color of question icon
|
|
8
|
+
*/
|
|
9
|
+
iconColor: string;
|
|
10
|
+
/**
|
|
11
|
+
* @desc 问号图标悬停颜色
|
|
12
|
+
* @descEN Hover color of question icon
|
|
13
|
+
*/
|
|
14
|
+
iconHoverColor: string;
|
|
15
|
+
/**
|
|
16
|
+
* @desc 问号图标大小
|
|
17
|
+
* @descEN Size of question icon
|
|
18
|
+
*/
|
|
19
|
+
iconSize: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const prepareComponentToken: GetDefaultToken<'Question'>;
|
|
22
|
+
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { _default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{resetComponent as e}from"../../style/index.js";import{genStyleHooks as t}from"../../theme/util/genStyleUtils.js";import{mergeToken as n}from"../../theme/internal.js";const r=t=>{let{componentCls:n,iconColor:r,iconHoverColor:i,iconSize:a,fontSize:o,fontSizeSM:s,fontSizeLG:c,colorText:l,colorTextDisabled:u,lineHeight:d,marginXXS:f,motionDurationMid:p}=t;return{[n]:{...e(t),display:`inline-flex`,alignItems:`center`,columnGap:f,fontSize:o,lineHeight:d,color:l,[`${n}-icon`]:{display:`inline-flex`,alignItems:`center`,fontSize:a,lineHeight:1,color:r,cursor:`help`,transition:`color ${p}`,"&:hover":{color:i}},[`&${n}-disabled`]:{color:u,[`${n}-icon`]:{color:u,cursor:`not-allowed`,"&:hover":{color:u}}},[`&${n}-sm`]:{fontSize:s,[`${n}-icon`]:{fontSize:s}},[`&${n}-lg`]:{fontSize:c,[`${n}-icon`]:{fontSize:c}}}}},i=e=>({iconColor:e.colorTextDescription,iconHoverColor:e.colorText,iconSize:e.fontSize});var a=t(`Question`,e=>{let t=n(e,{});return[r(t)]},i);export{a as default,i as prepareComponentToken};
|
package/es/select/index.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export interface SelectProps<ValueType = any, OptionType extends BaseOptionType
|
|
|
46
46
|
/** @deprecated Please use `popupMatchSelectWidth` instead */
|
|
47
47
|
dropdownMatchSelectWidth?: boolean | number;
|
|
48
48
|
popupMatchSelectWidth?: boolean | number;
|
|
49
|
+
/** 是否展示全选、取消快捷操作,仅在 `mode` 为 `multiple` 或 `tags` 时生效 */
|
|
50
|
+
shortcut?: boolean;
|
|
49
51
|
}
|
|
50
52
|
declare const Select: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: React$1.PropsWithChildren<SelectProps<ValueType, OptionType>> & React$1.RefAttributes<BaseSelectRef>) => React$1.ReactElement) & {
|
|
51
53
|
displayName?: string;
|
package/es/select/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_util/warning.js";import{ConfigContext as e}from"../config-provider/context.js";import
|
|
1
|
+
import"../_util/warning.js";import{ConfigContext as e}from"../config-provider/context.js";import t from"../config-provider/DisabledContext.js";import ee from"../theme/useToken.js";import"../theme/internal.js";import"../config-provider/index.js";import te from"../config-provider/hooks/useCSSVarCls.js";import{useZIndex as ne}from"../_util/hooks/useZIndex.js";import{getTransitionName as re}from"../_util/motion.js";import ie from"../config-provider/hooks/useSize.js";import{useCompactItemContext as ae}from"../space/Compact.js";import{FormItemInputContext as oe}from"../form/context.js";import n from"../_util/PurePanel.js";import{getMergedStatus as se,getStatusClassNames as ce}from"../_util/statusUtils.js";import r from"../config-provider/defaultRenderEmpty.js";import i from"../form/hooks/useVariants.js";import a from"./mergedBuiltinPlacements.js";import o from"./style/index.js";import s from"./useIcons.js";import le from"./useShortcut.js";import ue from"./useShowArrow.js";import*as c from"react";import l from"classnames";import de from"rc-util/lib/omit";import fe from"rc-util/lib/hooks/useMergedState";import pe,{OptGroup as u,Option as d}from"rc-select";const f=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,p=c.forwardRef((n,u)=>{let{prefixCls:d,bordered:p,className:m,rootClassName:h,getPopupContainer:me,popupClassName:he,dropdownClassName:ge,listHeight:_e=256,placement:g,listItemHeight:ve,size:_,disabled:v,notFoundContent:y,status:b,builtinPlacements:x,dropdownMatchSelectWidth:S,popupMatchSelectWidth:C,direction:w,style:T,allowClear:E,variant:D,dropdownStyle:O,transitionName:k,tagRender:A,maxCount:j,prefix:M,showSearch:N=!1,shortcut:P=!1,dropdownRender:F,...I}=n,{getPopupContainer:L,getPrefixCls:R,renderEmpty:ye,direction:be,virtual:xe,popupMatchSelectWidth:Se,popupOverflow:Ce,select:z}=c.useContext(e),[,we]=ee(),Te=ve??we?.controlHeight,B=R(`select`,d),Ee=R(),V=w??be,{compactSize:De,compactItemClassnames:Oe}=ae(B,V),[ke,Ae]=i(`select`,D,p),H=te(B),[je,U,W]=o(B,H),G=c.useMemo(()=>{let{mode:e}=n;if(e!==`combobox`)return e===f?`combobox`:e},[n.mode]),K=G===`multiple`||G===`tags`,Me=ue(n.suffixIcon,n.showArrow),Ne=C??S??Se,{status:Pe,hasFeedback:q,isFormItemInput:Fe,feedbackIcon:Ie}=c.useContext(oe),Le=se(Pe,b),J;J=y===void 0?G===`combobox`?null:ye?.(`Select`)||c.createElement(r,{componentName:`Select`}):y;let{suffixIcon:Re,itemIcon:ze,removeIcon:Be,clearIcon:Ve}=s({...I,multiple:K,hasFeedback:q,feedbackIcon:Ie,showSuffixIcon:Me,prefixCls:B,componentName:`Select`}),He=E===!0?{clearIcon:Ve}:E,Y=P&&K,[X,Ue]=fe(n.defaultValue,{value:n.value}),Z=(e,t)=>{Ue(e),n.onChange?.(e,t)},Q=le({prefixCls:B,enabled:Y,options:n.options,children:n.children,fieldNames:n.fieldNames,labelInValue:n.labelInValue,maxCount:j,value:X,onChange:Z}),We=Q?e=>c.createElement(c.Fragment,null,Q,F?F(e):e):F,Ge=de(I,[`suffixIcon`,`itemIcon`]),Ke=l(he||ge,{[`${B}-dropdown-${V}`]:V===`rtl`},h,W,H,U),$=ie(e=>_??De??e),qe=c.useContext(t),Je=v??qe,Ye=l({[`${B}-lg`]:$===`large`,[`${B}-sm`]:$===`small`,[`${B}-rtl`]:V===`rtl`,[`${B}-${ke}`]:Ae,[`${B}-in-form-item`]:Fe},ce(B,Le,q),Oe,z?.className,m,h,W,H,U),Xe=c.useMemo(()=>g===void 0?V===`rtl`?`bottomRight`:`bottomLeft`:g,[g,V]),[Ze]=ne(`SelectLike`,O?.zIndex);return je(c.createElement(pe,{ref:u,virtual:xe,showSearch:N,...Ge,style:{...z?.style,...T},dropdownMatchSelectWidth:Ne,transitionName:re(Ee,`slide-up`,k),builtinPlacements:a(x,Ce),listHeight:_e,listItemHeight:Te,mode:G,prefixCls:B,placement:Xe,direction:V,prefix:M,suffixIcon:Re,menuItemSelectedIcon:ze,removeIcon:Be,allowClear:He,notFoundContent:J,className:Ye,getPopupContainer:me||L,dropdownClassName:Ke,disabled:Je,dropdownStyle:{...O,zIndex:Ze},maxCount:K?j:void 0,tagRender:K?A:void 0,dropdownRender:We,...Y?{value:X,onChange:Z}:{}}))}),m=n(p,`dropdownAlign`);p.SECRET_COMBOBOX_MODE_DO_NOT_USE=f,p.Option=d,p.OptGroup=u,p._InternalPanelDoNotUseOrYouWillBeFired=m;export{p as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{resetComponent as e,textEllipsis as t}from"../../style/index.js";import{initMoveMotion as n}from"../../style/motion/move.js";import{initSlideMotion as r,slideDownIn as i,slideDownOut as a,slideUpIn as o,slideUpOut as s}from"../../style/motion/slide.js";import"../../style/motion/index.js";const c=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},l=l=>{let{antCls:u,componentCls:d}=l,f=`${d}-item`,p=`&${u}-slide-up-enter${u}-slide-up-enter-active`,
|
|
2
|
-
${
|
|
3
|
-
${
|
|
1
|
+
import{resetComponent as e,textEllipsis as t}from"../../style/index.js";import{initMoveMotion as n}from"../../style/motion/move.js";import{initSlideMotion as r,slideDownIn as i,slideDownOut as a,slideUpIn as o,slideUpOut as s}from"../../style/motion/slide.js";import"../../style/motion/index.js";const c=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},l=l=>{let{antCls:u,componentCls:d}=l,f=`${d}-item`,p=`${d}-shortcut`,m=`&${u}-slide-up-enter${u}-slide-up-enter-active`,h=`&${u}-slide-up-appear${u}-slide-up-appear-active`,g=`&${u}-slide-up-leave${u}-slide-up-leave-active`,_=`${d}-dropdown-placement-`;return[{[`${d}-dropdown`]:{...e(l),position:`absolute`,top:-9999,zIndex:l.zIndexPopup,boxSizing:`border-box`,padding:l.paddingXXS,overflow:`hidden`,fontSize:l.fontSize,fontVariant:`initial`,backgroundColor:l.colorBgElevated,borderRadius:l.borderRadiusLG,outline:`none`,boxShadow:l.boxShadowSecondary,[`
|
|
2
|
+
${m}${_}bottomLeft,
|
|
3
|
+
${h}${_}bottomLeft
|
|
4
4
|
`]:{animationName:o},[`
|
|
5
|
-
${
|
|
6
|
-
${
|
|
7
|
-
${
|
|
8
|
-
${
|
|
9
|
-
`]:{animationName:i},[`${
|
|
10
|
-
${
|
|
11
|
-
${
|
|
12
|
-
`]:{animationName:a},"&-hidden":{display:`none`},[f]:{...c(l),cursor:`pointer`,transition:`background ${l.motionDurationSlow} ease`,borderRadius:l.borderRadiusSM,"&-group":{color:l.colorTextDescription,fontSize:l.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...t},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-active:not(${f}-option-disabled)`]:{backgroundColor:l.optionActiveBg},[`&-selected:not(${f}-option-disabled)`]:{color:l.optionSelectedColor,fontWeight:l.optionSelectedFontWeight,backgroundColor:l.optionSelectedBg,[`${f}-option-state`]:{color:l.colorPrimary},[`&:has(+ ${f}-option-selected:not(${f}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}-option-selected:not(${f}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${f}-option-selected`]:{backgroundColor:l.colorBgContainerDisabled},color:l.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:l.calc(l.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...c(l),color:l.colorTextDisabled}},"&-rtl":{direction:`rtl`}}},r(l,`slide-up`),r(l,`slide-down`),n(l,`move-up`),n(l,`move-down`)]};export{l as default};
|
|
5
|
+
${m}${_}topLeft,
|
|
6
|
+
${h}${_}topLeft,
|
|
7
|
+
${m}${_}topRight,
|
|
8
|
+
${h}${_}topRight
|
|
9
|
+
`]:{animationName:i},[`${g}${_}bottomLeft`]:{animationName:s},[`
|
|
10
|
+
${g}${_}topLeft,
|
|
11
|
+
${g}${_}topRight
|
|
12
|
+
`]:{animationName:a},"&-hidden":{display:`none`},[f]:{...c(l),cursor:`pointer`,transition:`background ${l.motionDurationSlow} ease`,borderRadius:l.borderRadiusSM,"&-group":{color:l.colorTextDescription,fontSize:l.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...t},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-active:not(${f}-option-disabled)`]:{backgroundColor:l.optionActiveBg},[`&-selected:not(${f}-option-disabled)`]:{color:l.optionSelectedColor,fontWeight:l.optionSelectedFontWeight,backgroundColor:l.optionSelectedBg,[`${f}-option-state`]:{color:l.colorPrimary},[`&:has(+ ${f}-option-selected:not(${f}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}-option-selected:not(${f}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${f}-option-selected`]:{backgroundColor:l.colorBgContainerDisabled},color:l.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:l.calc(l.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...c(l),color:l.colorTextDisabled}},[p]:{display:`flex`,alignItems:`center`,gap:l.padding,padding:`${l.paddingXXS}px ${l.controlPaddingHorizontal}px`,fontSize:l.optionFontSize,lineHeight:l.optionLineHeight,borderBottom:`${l.lineWidth}px ${l.lineType} ${l.colorSplit}`,[`${p}-item`]:{color:l.colorLink,cursor:`pointer`,transition:`color ${l.motionDurationMid}`,"&:hover":{color:l.colorLinkHover},"&-disabled":{color:l.colorTextDisabled,cursor:`not-allowed`,"&:hover":{color:l.colorTextDisabled}}}},"&-rtl":{direction:`rtl`}}},r(l,`slide-up`),r(l,`slide-down`),n(l,`move-up`),n(l,`move-down`)]};export{l as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{resetIcon as e}from"../../style/index.js";import{mergeToken as t}from"../../theme/internal.js";import{unit as n}from"@ant-design/cssinjs";const r=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:i,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(r).sub(i).equal(),0);return{basePadding:o,containerPadding:e.max(e.calc(o).sub(a).equal(),0),itemHeight:n(t),itemLineHeight:n(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},i=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},a=t=>{let{componentCls:n,iconCls:r,borderRadiusSM:i,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:c,colorIcon:l,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=t;return{[`${n}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`nowrap`,
|
|
1
|
+
import{resetIcon as e}from"../../style/index.js";import{mergeToken as t}from"../../theme/internal.js";import{unit as n}from"@ant-design/cssinjs";const r=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:i,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(r).sub(i).equal(),0);return{basePadding:o,containerPadding:e.max(e.calc(o).sub(a).equal(),0),itemHeight:n(t),itemLineHeight:n(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},i=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},a=t=>{let{componentCls:n,iconCls:r,borderRadiusSM:i,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:c,colorIcon:l,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=t;return{[`${n}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`nowrap`,overflowX:`auto`,overflowY:`hidden`,maxWidth:`100%`,minWidth:0,scrollbarWidth:`none`,overscrollBehaviorX:`contain`,"&::-webkit-scrollbar":{display:`none`},"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`100%`,display:`inline-flex`},[`${n}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:d,borderRadius:i,cursor:`default`,transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:t.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:t.calc(o).div(2).equal(),[`${n}-disabled&`]:{color:s,borderColor:c,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:t.calc(o).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...e(),display:`inline-flex`,alignItems:`center`,color:l,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:u}}}}}},o=(e,t)=>{let{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:s}=e,c=`${o}-selection-overflow`,l=e.multipleSelectItemHeight,u=i(e),d=t?`${o}-${t}`:``,f=r(e);return{[`${o}-multiple${d}`]:{...a(e),[`${o}-selector`]:{display:`flex`,alignItems:`center`,width:`100%`,height:`100%`,paddingInline:f.basePadding,paddingBlock:f.containerPadding,borderRadius:e.borderRadius,[`${o}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:`not-allowed`},"&:after":{display:`inline-block`,width:0,margin:`${n(s)} 0`,lineHeight:n(l),visibility:`hidden`,content:`"\\a0"`}},[`${o}-selection-item`]:{height:f.itemHeight,lineHeight:n(f.itemLineHeight)},[`${o}-selection-wrap`]:{alignSelf:`flex-start`,"&:after":{lineHeight:n(l),marginBlock:s}},[`${o}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal()},[`${c}-item + ${c}-item,
|
|
2
2
|
${o}-prefix + ${o}-selection-wrap
|
|
3
3
|
`]:{[`${o}-selection-search`]:{marginInlineStart:0},[`${o}-selection-placeholder`]:{insetInlineStart:0}},[`${c}-item-suffix`]:{minHeight:f.itemHeight,marginBlock:s},[`${o}-selection-search`]:{display:`inline-flex`,position:`relative`,maxWidth:`100%`,marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:n(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:`100%`,minWidth:4.1},"&-mirror":{position:`absolute`,top:0,insetInlineStart:0,insetInlineEnd:`auto`,zIndex:999,whiteSpace:`pre`,visibility:`hidden`}},[`${o}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`}}}};function s(e,t){let{componentCls:n}=e,r={[`${n}-multiple${t?`${n}-${t}`:``}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:`text`}},[`
|
|
4
4
|
&${n}-show-arrow ${n}-selector,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { BaseOptionType, DefaultOptionType, FieldNames } from "rc-select/lib/Select";
|
|
3
|
+
//#region components/select/useShortcut.d.ts
|
|
4
|
+
export interface ShortcutConfig<OptionType> {
|
|
5
|
+
prefixCls: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
options?: OptionType[];
|
|
8
|
+
children?: React$1.ReactNode;
|
|
9
|
+
fieldNames?: FieldNames;
|
|
10
|
+
labelInValue?: boolean;
|
|
11
|
+
maxCount?: number;
|
|
12
|
+
value?: any;
|
|
13
|
+
onChange: (value: any, options: OptionType[]) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const useShortcut: <OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(config: ShortcutConfig<OptionType>) => React$1.ReactNode;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useShortcut as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import t from"classnames";import{convertChildrenToData as n}from"rc-select/lib/utils/legacyUtil";const r=(e,t)=>{let n=[],r=e=>{e.forEach(e=>{if(!e)return;let i=e[t];Array.isArray(i)?r(i):e.disabled||n.push(e)})};return r(e),n},i=i=>{let{prefixCls:a,enabled:o,options:s,children:c,fieldNames:l,labelInValue:u,maxCount:d,value:f,onChange:p}=i,m=!s?.length&&!!c,h=e.useMemo(()=>o?s?.length?r(s,l?.options??`options`):c?r(n(c),`options`):[]:[],[o,s,c,l?.options]);if(!o)return null;let g=m?`value`:l?.value??`value`,_=m?`children`:l?.label??`label`,v=new Set((Array.isArray(f)?f:[f]).filter(e=>e!=null).map(e=>typeof e==`object`?e.value:e)),y=typeof d==`number`?h.slice(0,d):h,b=y.length===0||y.every(e=>v.has(e[g])),x=()=>{let e=y.map(e=>u?{value:e[g],label:e[_]??e.label}:e[g]);p(e,y)},S=()=>{p([],[])},C=`${a}-shortcut`,w=`${C}-item`,T=v.size>0;return e.createElement(`div`,{className:C,onMouseDown:e=>{e.preventDefault()}},e.createElement(`span`,{className:t(w,{[`${w}-disabled`]:b}),onClick:b?void 0:x},`全选`),e.createElement(`span`,{className:t(w,{[`${w}-disabled`]:!T}),onClick:T?S:void 0},`取消`))};export{i as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LabeledValue, RefSelectProps as BaseSelectRef, SelectProps } from "../select/index.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
//#region components/select-auto-fetch/index.d.ts
|
|
4
|
+
type RawValue = string | number;
|
|
5
|
+
export type SelectAutoFetchValueType = 'simple' | 'object';
|
|
6
|
+
export interface SelectAutoFetchOption extends LabeledValue {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export type SelectAutoFetchValue = RawValue | RawValue[] | SelectAutoFetchOption | SelectAutoFetchOption[];
|
|
11
|
+
export interface SelectAutoFetchProps extends Omit<SelectProps<any>, 'value' | 'onChange' | 'options' | 'children' | 'labelInValue' | 'mode'> {
|
|
12
|
+
valueType?: SelectAutoFetchValueType;
|
|
13
|
+
isInitFetchData?: boolean;
|
|
14
|
+
onFetchData?: (search: string) => SelectAutoFetchOption[] | Promise<SelectAutoFetchOption[]>;
|
|
15
|
+
value?: SelectAutoFetchValue;
|
|
16
|
+
onChange?: (value: SelectAutoFetchValue | undefined, option: SelectAutoFetchOption | SelectAutoFetchOption[]) => void;
|
|
17
|
+
mode?: 'multiple' | 'tags';
|
|
18
|
+
debounceTimeout?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const SelectAutoFetch: React$1.ForwardRefExoticComponent<SelectAutoFetchProps & React$1.RefAttributes<BaseSelectRef>>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { SelectAutoFetch as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../select/index.js";import t from"../spin/index.js";import*as n from"react";import r from"rc-util/lib/hooks/useEvent";import i from"lodash/debounce";const a=e=>{let{key:t,...n}=e;return n},o=n.forwardRef((o,s)=>{let{valueType:c=`object`,isInitFetchData:l=!1,onFetchData:u,value:d,onChange:f,mode:p,debounceTimeout:m=300,showSearch:h=!0,filterOption:g=!1,notFoundContent:_,loading:v,onSearch:y,open:b,onDropdownVisibleChange:x,placeholder:S=`输入关键字搜索`,...C}=o,[w,T]=n.useState([]),[E,D]=n.useState(!1),[O,k]=n.useState(!1),[A,j]=n.useState(!1),M=n.useRef(0),N=n.useRef(!1),P=n.useRef(new Map),F=p===`multiple`||p===`tags`,I=n.useCallback(e=>{e.forEach(e=>{e?.value!==void 0&&e?.value!==null&&P.current.set(e.value,a(e))})},[]),L=r(e=>{if(!u)return;N.current=!0,M.current+=1;let t=M.current;D(!0),Promise.resolve(u(e)).then(e=>{if(t!==M.current)return;let n=Array.isArray(e)?e:[];I(n),T(n),D(!1)},()=>{t===M.current&&(T([]),D(!1))})});n.useEffect(()=>{l&&!N.current&&L(``)},[l,L]);let R=n.useMemo(()=>i(L,m),[L,m]);n.useEffect(()=>()=>R.cancel(),[R]);let z=n.useMemo(()=>{let e=new Map;return w.forEach(t=>{t?.value!==void 0&&t?.value!==null&&e.set(t.value,t.label)}),e},[w]),B=n.useCallback(e=>typeof e==`object`&&e?e:{value:e,label:z.get(e)??P.current.get(e)?.label??e},[z]),V=n.useMemo(()=>{if(d!=null)return c===`object`?d:F?(Array.isArray(d)?d:[d]).map(B):B(Array.isArray(d)?d[0]:d)},[d,c,F,B]),H=(e,t)=>{let n=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`object`&&!!e),r=(Array.isArray(t)?t:[t]).filter(e=>typeof e==`object`&&!!e);I(r);let i=n.map((e,t)=>{let n=P.current.get(e.value);return{...a(e),...n??a(r[t]??{})}}),o=Array.isArray(t)?i:i[0];if(c===`object`){let t=e==null;f?.(Array.isArray(e)?i:t?void 0:i[0],o);return}f?.(Array.isArray(e)?i.map(e=>e.value):i[0]?.value,o)},U=e=>{k(!0),y?.(e),R(e)},W=e=>{j(e),e||k(!1),x?.(e)},G=b??(A&&(E||O||w.length>0));return n.createElement(e,{ref:s,...C,showSearch:h,placeholder:S,mode:p,filterOption:!1,labelInValue:!0,options:w,value:V,loading:v??E,notFoundContent:E?n.createElement(t,{size:`small`}):_,onSearch:U,onChange:H,open:G,onDropdownVisibleChange:W})});export{o as default};
|
|
@@ -42,36 +42,38 @@ import { ComponentToken as ComponentToken$36 } from "../../menu/style/index.js";
|
|
|
42
42
|
import { ComponentToken as ComponentToken$37 } from "../../message/style/index.js";
|
|
43
43
|
import { ComponentToken as ComponentToken$38 } from "../../modal/style/index.js";
|
|
44
44
|
import { ComponentToken as ComponentToken$39 } from "../../notification/style/index.js";
|
|
45
|
-
import { ComponentToken as ComponentToken$40 } from "../../
|
|
46
|
-
import { ComponentToken as ComponentToken$41 } from "../../
|
|
47
|
-
import { ComponentToken as ComponentToken$42 } from "../../
|
|
48
|
-
import { ComponentToken as ComponentToken$43 } from "../../
|
|
49
|
-
import { ComponentToken as ComponentToken$44 } from "../../
|
|
50
|
-
import { ComponentToken as ComponentToken$45 } from "../../
|
|
51
|
-
import { ComponentToken as ComponentToken$46 } from "../../
|
|
52
|
-
import { ComponentToken as ComponentToken$47 } from "../../
|
|
53
|
-
import { ComponentToken as ComponentToken$48 } from "../../
|
|
45
|
+
import { ComponentToken as ComponentToken$40 } from "../../notice/style/index.js";
|
|
46
|
+
import { ComponentToken as ComponentToken$41 } from "../../pagination/style/index.js";
|
|
47
|
+
import { ComponentToken as ComponentToken$42 } from "../../popconfirm/style/index.js";
|
|
48
|
+
import { ComponentToken as ComponentToken$43 } from "../../popover/style/index.js";
|
|
49
|
+
import { ComponentToken as ComponentToken$44 } from "../../progress/style/index.js";
|
|
50
|
+
import { ComponentToken as ComponentToken$45 } from "../../question/style/index.js";
|
|
51
|
+
import { ComponentToken as ComponentToken$46 } from "../../qr-code/style/index.js";
|
|
52
|
+
import { ComponentToken as ComponentToken$47 } from "../../radio/style/index.js";
|
|
53
|
+
import { ComponentToken as ComponentToken$48 } from "../../rate/style/index.js";
|
|
54
|
+
import { ComponentToken as ComponentToken$49 } from "../../result/style/index.js";
|
|
55
|
+
import { ComponentToken as ComponentToken$50 } from "../../segmented/style/index.js";
|
|
54
56
|
import "../../select/style/index.js";
|
|
55
|
-
import { ComponentToken as ComponentToken$
|
|
56
|
-
import { ComponentToken as ComponentToken$
|
|
57
|
-
import { ComponentToken as ComponentToken$
|
|
58
|
-
import { ComponentToken as ComponentToken$
|
|
59
|
-
import { ComponentToken as ComponentToken$
|
|
60
|
-
import { ComponentToken as ComponentToken$
|
|
61
|
-
import { ComponentToken as ComponentToken$
|
|
62
|
-
import { ComponentToken as ComponentToken$
|
|
63
|
-
import { ComponentToken as ComponentToken$
|
|
64
|
-
import { ComponentToken as ComponentToken$
|
|
65
|
-
import { ComponentToken as ComponentToken$
|
|
66
|
-
import { ComponentToken as ComponentToken$
|
|
67
|
-
import { ComponentToken as ComponentToken$
|
|
68
|
-
import { ComponentToken as ComponentToken$
|
|
69
|
-
import { ComponentToken as ComponentToken$
|
|
70
|
-
import { ComponentToken as ComponentToken$
|
|
71
|
-
import { ComponentToken as ComponentToken$
|
|
72
|
-
import { ComponentToken as ComponentToken$
|
|
73
|
-
import { ComponentToken as ComponentToken$
|
|
74
|
-
import { ComponentToken as ComponentToken$
|
|
57
|
+
import { ComponentToken as ComponentToken$51 } from "../../skeleton/style/index.js";
|
|
58
|
+
import { ComponentToken as ComponentToken$52 } from "../../slider/style/index.js";
|
|
59
|
+
import { ComponentToken as ComponentToken$53 } from "../../space/style/index.js";
|
|
60
|
+
import { ComponentToken as ComponentToken$54 } from "../../spin/style/index.js";
|
|
61
|
+
import { ComponentToken as ComponentToken$55 } from "../../statistic/style/index.js";
|
|
62
|
+
import { ComponentToken as ComponentToken$56 } from "../../steps/style/index.js";
|
|
63
|
+
import { ComponentToken as ComponentToken$57 } from "../../switch/style/index.js";
|
|
64
|
+
import { ComponentToken as ComponentToken$58 } from "../../table/style/index.js";
|
|
65
|
+
import { ComponentToken as ComponentToken$59 } from "../../tabs/style/index.js";
|
|
66
|
+
import { ComponentToken as ComponentToken$60 } from "../../tag/style/index.js";
|
|
67
|
+
import { ComponentToken as ComponentToken$61 } from "../../timeline/style/index.js";
|
|
68
|
+
import { ComponentToken as ComponentToken$62 } from "../../tooltip/style/index.js";
|
|
69
|
+
import { ComponentToken as ComponentToken$63 } from "../../tour/style/index.js";
|
|
70
|
+
import { ComponentToken as ComponentToken$64 } from "../../transfer/style/index.js";
|
|
71
|
+
import { ComponentToken as ComponentToken$65 } from "../../tree/style/index.js";
|
|
72
|
+
import { ComponentToken as ComponentToken$66 } from "../../tree-select/style/index.js";
|
|
73
|
+
import { ComponentToken as ComponentToken$67 } from "../../typography/style/index.js";
|
|
74
|
+
import { ComponentToken as ComponentToken$68 } from "../../upload/style/index.js";
|
|
75
|
+
import { ComponentToken as ComponentToken$69 } from "../../splitter/style/index.js";
|
|
76
|
+
import { ComponentToken as ComponentToken$70 } from "../../time-out/style/index.js";
|
|
75
77
|
//#region components/theme/interface/components.d.ts
|
|
76
78
|
export interface ComponentTokenMap {
|
|
77
79
|
Affix?: ComponentToken$1;
|
|
@@ -108,39 +110,41 @@ export interface ComponentTokenMap {
|
|
|
108
110
|
List?: ComponentToken$34;
|
|
109
111
|
Mentions?: ComponentToken$35;
|
|
110
112
|
Notification?: ComponentToken$39;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
Notice?: ComponentToken$40;
|
|
114
|
+
Question?: ComponentToken$45;
|
|
115
|
+
Pagination?: ComponentToken$41;
|
|
116
|
+
Popover?: ComponentToken$43;
|
|
117
|
+
Popconfirm?: ComponentToken$42;
|
|
118
|
+
Rate?: ComponentToken$48;
|
|
119
|
+
Radio?: ComponentToken$47;
|
|
120
|
+
Result?: ComponentToken$49;
|
|
121
|
+
Segmented?: ComponentToken$50;
|
|
118
122
|
Select?: ComponentToken$10;
|
|
119
|
-
Skeleton?: ComponentToken$
|
|
120
|
-
Slider?: ComponentToken$
|
|
121
|
-
Spin?: ComponentToken$
|
|
122
|
-
Statistic?: ComponentToken$
|
|
123
|
-
Switch?: ComponentToken$
|
|
124
|
-
Splitter?: ComponentToken$
|
|
125
|
-
TimeOut?: ComponentToken$
|
|
126
|
-
Tag?: ComponentToken$
|
|
127
|
-
Tree?: ComponentToken$
|
|
128
|
-
TreeSelect?: ComponentToken$
|
|
129
|
-
Typography?: ComponentToken$
|
|
130
|
-
Timeline?: ComponentToken$
|
|
131
|
-
Transfer?: ComponentToken$
|
|
132
|
-
Tabs?: ComponentToken$
|
|
133
|
-
Steps?: ComponentToken$
|
|
123
|
+
Skeleton?: ComponentToken$51;
|
|
124
|
+
Slider?: ComponentToken$52;
|
|
125
|
+
Spin?: ComponentToken$54;
|
|
126
|
+
Statistic?: ComponentToken$55;
|
|
127
|
+
Switch?: ComponentToken$57;
|
|
128
|
+
Splitter?: ComponentToken$69;
|
|
129
|
+
TimeOut?: ComponentToken$70;
|
|
130
|
+
Tag?: ComponentToken$60;
|
|
131
|
+
Tree?: ComponentToken$65;
|
|
132
|
+
TreeSelect?: ComponentToken$66;
|
|
133
|
+
Typography?: ComponentToken$67;
|
|
134
|
+
Timeline?: ComponentToken$61;
|
|
135
|
+
Transfer?: ComponentToken$64;
|
|
136
|
+
Tabs?: ComponentToken$59;
|
|
137
|
+
Steps?: ComponentToken$56;
|
|
134
138
|
Menu?: ComponentToken$36;
|
|
135
139
|
Modal?: ComponentToken$38;
|
|
136
140
|
Message?: ComponentToken$37;
|
|
137
|
-
Upload?: ComponentToken$
|
|
138
|
-
Tooltip?: ComponentToken$
|
|
139
|
-
Table?: ComponentToken$
|
|
140
|
-
Space?: ComponentToken$
|
|
141
|
-
Progress?: ComponentToken$
|
|
142
|
-
Tour?: ComponentToken$
|
|
143
|
-
QRCode?: ComponentToken$
|
|
141
|
+
Upload?: ComponentToken$68;
|
|
142
|
+
Tooltip?: ComponentToken$62;
|
|
143
|
+
Table?: ComponentToken$58;
|
|
144
|
+
Space?: ComponentToken$53;
|
|
145
|
+
Progress?: ComponentToken$44;
|
|
146
|
+
Tour?: ComponentToken$63;
|
|
147
|
+
QRCode?: ComponentToken$46;
|
|
144
148
|
App?: ComponentToken$4;
|
|
145
149
|
Wave?: ComponentToken;
|
|
146
150
|
}
|