@bioturing/components 0.15.5 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Badge/component.js +16 -11
- package/dist/components/Badge/component.js.map +1 -1
- package/dist/components/Breadcrumb/component.js +4 -3
- package/dist/components/Breadcrumb/component.js.map +1 -1
- package/dist/components/Button/component.js +30 -3
- package/dist/components/Button/component.js.map +1 -1
- package/dist/components/Button/style.css +1 -1
- package/dist/components/CodeBlock/component.js +7 -6
- package/dist/components/CodeBlock/component.js.map +1 -1
- package/dist/components/CodeBlock/style.css +1 -1
- package/dist/components/Collapse/component.js +11 -10
- package/dist/components/Collapse/component.js.map +1 -1
- package/dist/components/DSRoot/component.js +8 -7
- package/dist/components/DSRoot/component.js.map +1 -1
- package/dist/components/DSRoot/context.js +5 -4
- package/dist/components/DSRoot/context.js.map +1 -1
- package/dist/components/DropdownMenu/component.js +1 -0
- package/dist/components/DropdownMenu/component.js.map +1 -1
- package/dist/components/Field/component.js +13 -12
- package/dist/components/Field/component.js.map +1 -1
- package/dist/components/Form/component.js +4 -3
- package/dist/components/Form/component.js.map +1 -1
- package/dist/components/Form/item.js +1 -0
- package/dist/components/Form/item.js.map +1 -1
- package/dist/components/IconButton/component.js +1 -0
- package/dist/components/IconButton/component.js.map +1 -1
- package/dist/components/Modal/Modal.js +1 -0
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalProvider.js +1 -0
- package/dist/components/Modal/ModalProvider.js.map +1 -1
- package/dist/components/Modal/index.js +11 -10
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Popover/component.js +6 -5
- package/dist/components/Popover/component.js.map +1 -1
- package/dist/components/PopupPanel/component.js +74 -68
- package/dist/components/PopupPanel/component.js.map +1 -1
- package/dist/components/ScrollArea/component.js +10 -9
- package/dist/components/ScrollArea/component.js.map +1 -1
- package/dist/components/Slider/component.js +9 -8
- package/dist/components/Slider/component.js.map +1 -1
- package/dist/components/Splitter/component.js +12 -11
- package/dist/components/Splitter/component.js.map +1 -1
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Stack/StackChild.js +26 -23
- package/dist/components/Stack/StackChild.js.map +1 -1
- package/dist/components/Stack/style.css +1 -1
- package/dist/components/Table/component.js +54 -50
- package/dist/components/Table/component.js.map +1 -1
- package/dist/components/Table/style.css +1 -1
- package/dist/components/Tag/component.js +6 -5
- package/dist/components/Tag/component.js.map +1 -1
- package/dist/components/ThemeProvider/component.js +15 -14
- package/dist/components/ThemeProvider/component.js.map +1 -1
- package/dist/components/Toast/component.js +17 -16
- package/dist/components/Toast/component.js.map +1 -1
- package/dist/components/Toast/function.js +5 -4
- package/dist/components/Toast/function.js.map +1 -1
- package/dist/components/Tooltip/component.js +13 -12
- package/dist/components/Tooltip/component.js.map +1 -1
- package/dist/components/Tour/component.js +5 -4
- package/dist/components/Tour/component.js.map +1 -1
- package/dist/components/Transition/component.js +45 -32
- package/dist/components/Transition/component.js.map +1 -1
- package/dist/components/Tree/components.js +9 -8
- package/dist/components/Tree/components.js.map +1 -1
- package/dist/components/Tree/helpers.js +1 -0
- package/dist/components/Tree/helpers.js.map +1 -1
- package/dist/components/Tree/useTreeCommon.js +12 -11
- package/dist/components/Tree/useTreeCommon.js.map +1 -1
- package/dist/components/Truncate/component.js +1 -0
- package/dist/components/Truncate/component.js.map +1 -1
- package/dist/components/Upload/component.js +13 -11
- package/dist/components/Upload/component.js.map +1 -1
- package/dist/components/Upload/dragger.js +3 -2
- package/dist/components/Upload/dragger.js.map +1 -1
- package/dist/components/Upload/hooks.js +3 -2
- package/dist/components/Upload/hooks.js.map +1 -1
- package/dist/components/Upload/style.css +1 -0
- package/dist/components/VerticalCollapsiblePanel/component.js +35 -32
- package/dist/components/VerticalCollapsiblePanel/component.js.map +1 -1
- package/dist/components/hooks/antd.js +4 -3
- package/dist/components/hooks/antd.js.map +1 -1
- package/dist/components/hooks/base-ui.js +34 -28
- package/dist/components/hooks/base-ui.js.map +1 -1
- package/dist/components/hooks/useControlledState.js +17 -9
- package/dist/components/hooks/useControlledState.js.map +1 -1
- package/dist/components/utils/WithAntdTokens.js +14 -13
- package/dist/components/utils/WithAntdTokens.js.map +1 -1
- package/dist/components/utils/antdUtils.js +1 -0
- package/dist/components/utils/antdUtils.js.map +1 -1
- package/dist/index.d.ts +112 -59
- package/dist/index.js +78 -70
- package/dist/index.js.map +1 -1
- package/dist/metadata.js +81 -87
- package/dist/metadata.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithAntdTokens.js","sources":["../../../src/components/utils/WithAntdTokens.tsx"],"sourcesContent":["\"use client\";\n\nimport { useRender } from \"@base-ui-components/react\";\nimport type {\n ElementType,\n JSX,\n ComponentProps,\n JSXElementConstructor,\n} from \"react\";\nimport { useAntdCssVarClassname } from \"./antdUtils\";\nimport { clsx } from \"./cn\";\n\ntype IntrinsicElement =\n | keyof JSX.IntrinsicElements\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | JSXElementConstructor<any>;\n\nexport type WidthAntdTokensProps<T extends IntrinsicElement> = {\n as?: IntrinsicElement;\n} & ComponentProps<T>;\n\nexport const WithAntdTokens = <T extends IntrinsicElement = \"div\">({\n as: Tag = \"div\",\n ref,\n className,\n ...rest\n}: WidthAntdTokensProps<T>) => {\n const Component = Tag as ElementType;\n const cssVar = useAntdCssVarClassname();\n const
|
|
1
|
+
{"version":3,"file":"WithAntdTokens.js","sources":["../../../src/components/utils/WithAntdTokens.tsx"],"sourcesContent":["\"use client\";\n\nimport { useRender } from \"@base-ui-components/react\";\nimport type {\n ElementType,\n JSX,\n ComponentProps,\n JSXElementConstructor,\n} from \"react\";\nimport { useAntdCssVarClassname } from \"./antdUtils\";\nimport { clsx } from \"./cn\";\n\ntype IntrinsicElement =\n | keyof JSX.IntrinsicElements\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | JSXElementConstructor<any>;\n\nexport type WidthAntdTokensProps<T extends IntrinsicElement> = {\n as?: IntrinsicElement;\n} & ComponentProps<T>;\n\nexport const WithAntdTokens = <T extends IntrinsicElement = \"div\">({\n as: Tag = \"div\",\n ref,\n className,\n ...rest\n}: WidthAntdTokensProps<T>) => {\n const Component = Tag as ElementType;\n const cssVar = useAntdCssVarClassname();\n const renderedElement = useRender({\n render: <Component />,\n ref,\n props: {\n ...rest,\n className: clsx(className, cssVar),\n },\n });\n return renderedElement;\n};\n"],"names":["WithAntdTokens","Tag","ref","className","rest","Component","cssVar","useAntdCssVarClassname","useRender","clsx"],"mappings":";;;;;AAqBO,MAAMA,IAAiB,CAAqC;AAAA,EACjE,IAAIC,IAAM;AAAA,EACV,KAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,MAA+B;AAC7B,QAAMC,IAAYJ,GACZK,IAASC,EAAuB;AAS/B,SARiBC,EAAU;AAAA,IAChC,0BAASH,GAAU,EAAA;AAAA,IACnB,KAAAH;AAAA,IACA,OAAO;AAAA,MACL,GAAGE;AAAA,MACH,WAAWK,EAAKN,GAAWG,CAAM;AAAA,IAAA;AAAA,EACnC,CACD;AAEH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antdUtils.js","sources":["../../../src/components/utils/antdUtils.ts"],"sourcesContent":["\"use client\";\nimport { default as ConfigProvider } from \"antd/es/config-provider\";\nimport useToken from \"antd/es/theme/useToken\";\nimport { useCallback, useContext } from \"react\";\nimport type { ClassValue } from \"./types\";\nimport { cx } from \"./cn\";\nimport { PopoverProps } from \"antd/es/popover\";\n\nexport const useGetPrefixCls = () => {\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n return { getPrefixCls };\n};\n\n/**\n *\n * @returns the antd classname providing css variables\n */\nexport const useAntdCssVarClassname = () => {\n const token = useToken();\n return token[4]?.key;\n};\n\nexport const useCls = () => {\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const cls = useCallback(\n (...args: ClassValue[]) => {\n return cx(...args)\n .map((cls) => getPrefixCls(cls))\n .join(\" \");\n },\n [getPrefixCls]\n );\n return cls;\n};\n\nfunction splitCamelCase(text: string): string[] {\n const result: string[] = [];\n let currentWord = \"\";\n\n for (const char of text) {\n if (char >= \"A\" && char <= \"Z\") {\n if (currentWord) {\n result.push(currentWord);\n }\n currentWord = char.toLowerCase();\n } else {\n currentWord += char;\n }\n }\n\n if (currentWord) {\n result.push(currentWord);\n }\n\n return result.length > 0 ? result : [text];\n}\n\nexport const parseAntdPlacement = (\n placement: PopoverProps[\"placement\"] = \"bottomLeft\"\n): {\n placement: \"top\" | \"bottom\" | \"left\" | \"right\";\n align: \"start\" | \"end\" | \"center\";\n} => {\n const [position1, position2] = splitCamelCase(placement);\n\n // Determine primary placement\n let primaryPlacement: \"top\" | \"bottom\" | \"left\" | \"right\";\n let align: \"start\" | \"end\" | \"center\" = \"center\";\n\n // First check if it's a vertical or horizontal primary placement\n if (position1 === \"top\" || position1 === \"bottom\") {\n primaryPlacement = position1;\n if (position2) {\n switch (position2) {\n case \"left\":\n align = \"start\";\n break;\n case \"right\":\n align = \"end\";\n break;\n // \"top\" or \"bottom\" as second position is invalid, defaults to center\n }\n }\n } else if (position1 === \"left\" || position1 === \"right\") {\n primaryPlacement = position1;\n if (position2) {\n switch (position2) {\n case \"top\":\n align = \"start\";\n break;\n case \"bottom\":\n align = \"end\";\n break;\n // \"left\" or \"right\" as second position is invalid, defaults to center\n }\n }\n } else {\n // Fallback for invalid placement\n primaryPlacement = \"bottom\";\n }\n\n return {\n placement: primaryPlacement,\n align,\n };\n};\n"],"names":["useGetPrefixCls","getPrefixCls","useContext","ConfigProvider","useAntdCssVarClassname","_a","useToken","useCls","useCallback","args","cx","cls","splitCamelCase","text","result","currentWord","char","parseAntdPlacement","placement","position1","position2","primaryPlacement","align"],"mappings":"
|
|
1
|
+
{"version":3,"file":"antdUtils.js","sources":["../../../src/components/utils/antdUtils.ts"],"sourcesContent":["\"use client\";\nimport { default as ConfigProvider } from \"antd/es/config-provider\";\nimport useToken from \"antd/es/theme/useToken\";\nimport { useCallback, useContext } from \"react\";\nimport type { ClassValue } from \"./types\";\nimport { cx } from \"./cn\";\nimport { PopoverProps } from \"antd/es/popover\";\n\nexport const useGetPrefixCls = () => {\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n return { getPrefixCls };\n};\n\n/**\n *\n * @returns the antd classname providing css variables\n */\nexport const useAntdCssVarClassname = () => {\n const token = useToken();\n return token[4]?.key;\n};\n\nexport const useCls = () => {\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const cls = useCallback(\n (...args: ClassValue[]) => {\n return cx(...args)\n .map((cls) => getPrefixCls(cls))\n .join(\" \");\n },\n [getPrefixCls]\n );\n return cls;\n};\n\nfunction splitCamelCase(text: string): string[] {\n const result: string[] = [];\n let currentWord = \"\";\n\n for (const char of text) {\n if (char >= \"A\" && char <= \"Z\") {\n if (currentWord) {\n result.push(currentWord);\n }\n currentWord = char.toLowerCase();\n } else {\n currentWord += char;\n }\n }\n\n if (currentWord) {\n result.push(currentWord);\n }\n\n return result.length > 0 ? result : [text];\n}\n\nexport const parseAntdPlacement = (\n placement: PopoverProps[\"placement\"] = \"bottomLeft\"\n): {\n placement: \"top\" | \"bottom\" | \"left\" | \"right\";\n align: \"start\" | \"end\" | \"center\";\n} => {\n const [position1, position2] = splitCamelCase(placement);\n\n // Determine primary placement\n let primaryPlacement: \"top\" | \"bottom\" | \"left\" | \"right\";\n let align: \"start\" | \"end\" | \"center\" = \"center\";\n\n // First check if it's a vertical or horizontal primary placement\n if (position1 === \"top\" || position1 === \"bottom\") {\n primaryPlacement = position1;\n if (position2) {\n switch (position2) {\n case \"left\":\n align = \"start\";\n break;\n case \"right\":\n align = \"end\";\n break;\n // \"top\" or \"bottom\" as second position is invalid, defaults to center\n }\n }\n } else if (position1 === \"left\" || position1 === \"right\") {\n primaryPlacement = position1;\n if (position2) {\n switch (position2) {\n case \"top\":\n align = \"start\";\n break;\n case \"bottom\":\n align = \"end\";\n break;\n // \"left\" or \"right\" as second position is invalid, defaults to center\n }\n }\n } else {\n // Fallback for invalid placement\n primaryPlacement = \"bottom\";\n }\n\n return {\n placement: primaryPlacement,\n align,\n };\n};\n"],"names":["useGetPrefixCls","getPrefixCls","useContext","ConfigProvider","useAntdCssVarClassname","_a","useToken","useCls","useCallback","args","cx","cls","splitCamelCase","text","result","currentWord","char","parseAntdPlacement","placement","position1","position2","primaryPlacement","align"],"mappings":";;;;;AAQO,MAAMA,IAAkB,MAAM;AACnC,QAAM,EAAE,cAAAC,EAAiB,IAAAC,EAAWC,EAAe,aAAa;AAChE,SAAO,EAAE,cAAAF,EAAa;AACxB,GAMaG,IAAyB,MAAM;;AAEnC,UAAAC,IADOC,EAAS,EACV,CAAC,MAAP,gBAAAD,EAAU;AACnB,GAEaE,IAAS,MAAM;AAC1B,QAAM,EAAE,cAAAN,EAAiB,IAAAC,EAAWC,EAAe,aAAa;AASzD,SARKK;AAAA,IACV,IAAIC,MACKC,EAAG,GAAGD,CAAI,EACd,IAAI,CAACE,MAAQV,EAAaU,CAAG,CAAC,EAC9B,KAAK,GAAG;AAAA,IAEb,CAACV,CAAY;AAAA,EACf;AAEF;AAEA,SAASW,EAAeC,GAAwB;AAC9C,QAAMC,IAAmB,CAAC;AAC1B,MAAIC,IAAc;AAElB,aAAWC,KAAQH;AACb,IAAAG,KAAQ,OAAOA,KAAQ,OACrBD,KACFD,EAAO,KAAKC,CAAW,GAEzBA,IAAcC,EAAK,YAAY,KAEhBD,KAAAC;AAInB,SAAID,KACFD,EAAO,KAAKC,CAAW,GAGlBD,EAAO,SAAS,IAAIA,IAAS,CAACD,CAAI;AAC3C;AAEa,MAAAI,IAAqB,CAChCC,IAAuC,iBAIpC;AACH,QAAM,CAACC,GAAWC,CAAS,IAAIR,EAAeM,CAAS;AAGnD,MAAAG,GACAC,IAAoC;AAGpC,MAAAH,MAAc,SAASA,MAAc;AAEvC,QADmBE,IAAAF,GACfC;AACF,cAAQA,GAAW;AAAA,QACjB,KAAK;AACK,UAAAE,IAAA;AACR;AAAA,QACF,KAAK;AACK,UAAAA,IAAA;AACR;AAAA,MAAA;AAAA,aAIGH,MAAc,UAAUA,MAAc;AAE/C,QADmBE,IAAAF,GACfC;AACF,cAAQA,GAAW;AAAA,QACjB,KAAK;AACK,UAAAE,IAAA;AACR;AAAA,QACF,KAAK;AACK,UAAAA,IAAA;AACR;AAAA,MAAA;AAAA;AAMa,IAAAD,IAAA;AAGd,SAAA;AAAA,IACL,WAAWA;AAAA,IACX,OAAAC;AAAA,EACF;AACF;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ import { CollapsePanelProps as CollapsePanelProps_2 } from 'antd';
|
|
|
48
48
|
import { CollapseProps as CollapseProps_2 } from 'antd';
|
|
49
49
|
import { ColorPicker } from 'antd';
|
|
50
50
|
import { ColorPickerProps } from 'antd';
|
|
51
|
+
import { ColorTokenValue as ColorTokenValue_2 } from '..';
|
|
51
52
|
import { ColProps } from 'antd';
|
|
52
53
|
import { ComponentProps } from 'react';
|
|
53
54
|
import { ComponentPropsWithoutRef } from 'react';
|
|
@@ -73,7 +74,7 @@ import { DescriptionsProps } from 'antd';
|
|
|
73
74
|
import { DirectoryTreeProps as DirectoryTreeProps_2 } from 'antd/es/tree';
|
|
74
75
|
import { Divider } from 'antd';
|
|
75
76
|
import { DividerProps } from 'antd';
|
|
76
|
-
import { DraggerProps
|
|
77
|
+
import { DraggerProps } from './dragger';
|
|
77
78
|
import { Drawer } from 'antd';
|
|
78
79
|
import { DrawerProps } from 'antd';
|
|
79
80
|
import { Dropdown } from 'antd';
|
|
@@ -81,7 +82,7 @@ import { DropDownProps } from 'antd';
|
|
|
81
82
|
import { DropdownProps } from 'antd';
|
|
82
83
|
import { ElementType } from 'react';
|
|
83
84
|
import { EmptyProps as EmptyProps_2 } from 'antd/es/empty';
|
|
84
|
-
import { ErrorListProps } from 'antd/es/form
|
|
85
|
+
import { ErrorListProps } from 'antd/es/form';
|
|
85
86
|
import { EventDataNode } from 'antd/es/tree';
|
|
86
87
|
import { FC } from 'react';
|
|
87
88
|
import { Flex } from 'antd';
|
|
@@ -94,13 +95,12 @@ import { FormInstance } from 'antd';
|
|
|
94
95
|
import { FormItemProps as FormItemProps_2 } from 'antd/es/form/FormItem';
|
|
95
96
|
import { FormListFieldData } from 'antd';
|
|
96
97
|
import { FormListOperation } from 'antd';
|
|
97
|
-
import { FormListProps } from 'antd/es/form
|
|
98
|
+
import { FormListProps } from 'antd/es/form';
|
|
98
99
|
import { FormProps } from 'antd';
|
|
99
100
|
import { FormProviderProps } from 'antd/es/form/context';
|
|
100
101
|
import { ForwardedRef } from 'react';
|
|
101
102
|
import { ForwardRefExoticComponent } from 'react';
|
|
102
103
|
import { GlobalToken } from 'antd';
|
|
103
|
-
import { GlobalToken as GlobalToken_2 } from 'antd/es/theme';
|
|
104
104
|
import { Grid } from 'antd';
|
|
105
105
|
import { HighlightProps } from 'prism-react-renderer';
|
|
106
106
|
import { HookAPI } from 'antd/es/modal/useModal';
|
|
@@ -130,7 +130,9 @@ import { message } from 'antd';
|
|
|
130
130
|
import { MessageArgsProps } from 'antd';
|
|
131
131
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
132
132
|
import { ModalFuncProps } from 'antd';
|
|
133
|
-
import { ModalProps
|
|
133
|
+
import { ModalProps } from './Modal';
|
|
134
|
+
import { ModalProps as ModalProps_3 } from 'antd/es/modal';
|
|
135
|
+
import { ModalRef } from './functions';
|
|
134
136
|
import { notification } from 'antd';
|
|
135
137
|
import { NotificationArgsProps } from 'antd';
|
|
136
138
|
import { OptionFC } from 'rc-select/lib/Option';
|
|
@@ -151,7 +153,8 @@ import { QRPropsCanvas } from 'antd';
|
|
|
151
153
|
import { QRPropsSvg } from 'antd';
|
|
152
154
|
import { RadioChangeEvent as RadioChangeEvent_2 } from 'antd/es/radio';
|
|
153
155
|
import { RadioGroupProps as RadioGroupProps_2 } from 'antd/es/radio';
|
|
154
|
-
import { RadioProps as RadioProps_2 } from 'antd
|
|
156
|
+
import { RadioProps as RadioProps_2 } from 'antd';
|
|
157
|
+
import { RadioProps as RadioProps_3 } from 'antd/es/radio';
|
|
155
158
|
import { RadioRef as RadioRef_2 } from 'antd/es/radio';
|
|
156
159
|
import { Rate } from 'antd';
|
|
157
160
|
import { RateProps } from 'antd';
|
|
@@ -166,6 +169,7 @@ import { RefSelectProps } from 'antd';
|
|
|
166
169
|
import { RefSelectProps as RefSelectProps_2 } from 'antd/es/select';
|
|
167
170
|
import { Result } from 'antd';
|
|
168
171
|
import { ResultProps } from 'antd';
|
|
172
|
+
import { RibbonProps } from 'antd/es/badge/Ribbon';
|
|
169
173
|
import { Row } from 'antd';
|
|
170
174
|
import { RowProps } from 'antd';
|
|
171
175
|
import { SearchProps as SearchProps_2 } from 'antd/es/input';
|
|
@@ -231,6 +235,7 @@ import { TypographyProps } from 'antd';
|
|
|
231
235
|
import { unstableSetRender } from 'antd';
|
|
232
236
|
import { UploadChangeParam } from 'antd/es/upload';
|
|
233
237
|
import { UploadFile } from 'antd';
|
|
238
|
+
import { UploadItemProps as UploadItemProps_2 } from './item';
|
|
234
239
|
import { UploadProps as UploadProps_2 } from 'antd/es/upload';
|
|
235
240
|
import { default as useApp } from 'antd/es/app/useApp';
|
|
236
241
|
import { useForm } from 'antd/es/form/Form';
|
|
@@ -281,7 +286,9 @@ export { BackTop }
|
|
|
281
286
|
|
|
282
287
|
export { BackTopProps }
|
|
283
288
|
|
|
284
|
-
export declare const Badge: ({ count, showZero, ...rest }: BadgeProps) => JSX.Element
|
|
289
|
+
export declare const Badge: (({ count, showZero, ...rest }: BadgeProps) => JSX.Element) & {
|
|
290
|
+
Ribbon: FC<RibbonProps>;
|
|
291
|
+
};
|
|
285
292
|
|
|
286
293
|
export declare type BadgeProps = BadgeProps_2;
|
|
287
294
|
|
|
@@ -331,9 +338,15 @@ export declare const Button: (props: ButtonProps & {
|
|
|
331
338
|
ref?: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>;
|
|
332
339
|
}) => ReturnType<typeof ButtonInner>;
|
|
333
340
|
|
|
334
|
-
declare const ButtonInner: ({
|
|
341
|
+
declare const ButtonInner: ({ negativeMargin, type, size, variant, ...rest }: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
|
|
335
342
|
|
|
336
|
-
export declare
|
|
343
|
+
export declare interface ButtonProps extends ButtonProps_2 {
|
|
344
|
+
/**
|
|
345
|
+
* If true, negative margin will be applied to the text and link buttons to make it align with content
|
|
346
|
+
* @default true
|
|
347
|
+
*/
|
|
348
|
+
negativeMargin?: boolean;
|
|
349
|
+
}
|
|
337
350
|
|
|
338
351
|
export { Calendar }
|
|
339
352
|
|
|
@@ -365,7 +378,7 @@ export declare const categoricalChartColorTokens: Record<"colorChartsRed300" | "
|
|
|
365
378
|
|
|
366
379
|
export declare const categoricalChartsColors: ColorTokenValue[];
|
|
367
380
|
|
|
368
|
-
export declare const chartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50",
|
|
381
|
+
export declare const chartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50", ColorTokenValue_2>;
|
|
369
382
|
|
|
370
383
|
export declare const Checkbox: ((props: CheckboxProps & {
|
|
371
384
|
ref?: React.ForwardedRef<React.ComponentRef<typeof Checkbox_2>>;
|
|
@@ -490,11 +503,11 @@ export { ColorPicker }
|
|
|
490
503
|
|
|
491
504
|
export { ColorPickerProps }
|
|
492
505
|
|
|
493
|
-
declare type ColorTokens = {
|
|
506
|
+
export declare type ColorTokens = {
|
|
494
507
|
[key: string]: RawColorTokenValue;
|
|
495
508
|
};
|
|
496
509
|
|
|
497
|
-
declare type ColorTokenValue = {
|
|
510
|
+
export declare type ColorTokenValue = {
|
|
498
511
|
light: string;
|
|
499
512
|
dark: string;
|
|
500
513
|
};
|
|
@@ -756,7 +769,6 @@ export declare const componentMetadata: {
|
|
|
756
769
|
base: "antd";
|
|
757
770
|
refinements: string[];
|
|
758
771
|
category: "Data Display";
|
|
759
|
-
packages: string[];
|
|
760
772
|
originalDocUrl: string;
|
|
761
773
|
description: string;
|
|
762
774
|
};
|
|
@@ -883,7 +895,7 @@ export { Descriptions }
|
|
|
883
895
|
|
|
884
896
|
export { DescriptionsProps }
|
|
885
897
|
|
|
886
|
-
declare const DirectoryTreeInner: <T extends DataNode =
|
|
898
|
+
declare const DirectoryTreeInner: <T extends DataNode = DataNode>(props: DirectoryTreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
887
899
|
|
|
888
900
|
export declare interface DirectoryTreeProps<T extends DataNode = TreeDataNode> extends Omit<DirectoryTreeProps_2<T>, "treeData" | "expandedKeys" | "defaultExpandedKeys" | "onExpand" | "checkedKeys" | "defaultCheckedKeys" | "onCheck" | "draggable"> {
|
|
889
901
|
treeData?: T[];
|
|
@@ -907,17 +919,6 @@ export { Divider }
|
|
|
907
919
|
|
|
908
920
|
export { DividerProps }
|
|
909
921
|
|
|
910
|
-
declare interface DraggerProps extends DraggerProps_2 {
|
|
911
|
-
/**
|
|
912
|
-
* Custom title for the upload component
|
|
913
|
-
*/
|
|
914
|
-
uploadTitle?: default_2.ReactNode;
|
|
915
|
-
/**
|
|
916
|
-
* Custom description for the upload component
|
|
917
|
-
**/
|
|
918
|
-
uploadDescription?: default_2.ReactNode;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
922
|
export { Drawer }
|
|
922
923
|
|
|
923
924
|
export { DrawerProps }
|
|
@@ -1001,6 +1002,10 @@ export { DropdownProps }
|
|
|
1001
1002
|
|
|
1002
1003
|
export declare const DSRoot: ({ className, appendClassesTo, children, theme, ...props }: DSRootProps) => JSX.Element;
|
|
1003
1004
|
|
|
1005
|
+
export declare const DSRootContextProvider: default_2.Provider<{
|
|
1006
|
+
theme: "light" | "dark";
|
|
1007
|
+
}>;
|
|
1008
|
+
|
|
1004
1009
|
export declare interface DSRootProps extends ThemeProviderProps {
|
|
1005
1010
|
/**
|
|
1006
1011
|
* Classname passed to App component
|
|
@@ -1083,11 +1088,15 @@ export declare type GenericHTMLProps = React.HTMLAttributes<any> & {
|
|
|
1083
1088
|
ref?: React.Ref<any> | undefined;
|
|
1084
1089
|
};
|
|
1085
1090
|
|
|
1091
|
+
export declare const getColorsByTheme: <T extends ColorTokens>(colorsOrTokens: T | ColorTokenValue[], theme: "light" | "dark") => string[];
|
|
1092
|
+
|
|
1086
1093
|
/**
|
|
1087
1094
|
* Get all components by category
|
|
1088
1095
|
*/
|
|
1089
1096
|
export declare const getComponentsByCategory: () => Record<ComponentCategory, ComponentMetadata[]>;
|
|
1090
1097
|
|
|
1098
|
+
export declare const getTokensByTheme: <T extends ColorTokens>(originTokens: T, theme: "light" | "dark") => Partial<Record<keyof T, string>>;
|
|
1099
|
+
|
|
1091
1100
|
export declare const getUniqueKeysFromOriginals: (nodes: DataNode[] | undefined, originalKeysToFind: Set<Key>, map: Map<Key, Key>) => Key[];
|
|
1092
1101
|
|
|
1093
1102
|
export { GlobalToken }
|
|
@@ -1114,7 +1123,7 @@ declare type IconButtonOwnProps<E extends ElementType = ElementType> = WithHrefP
|
|
|
1114
1123
|
|
|
1115
1124
|
export declare type IconButtonProps<E extends ElementType = "button"> = IconButtonOwnProps<E> & Omit<ComponentPropsWithoutRef<E>, keyof IconButtonOwnProps<E>>;
|
|
1116
1125
|
|
|
1117
|
-
declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
|
|
1126
|
+
declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, className, variant, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
|
|
1118
1127
|
|
|
1119
1128
|
declare function InnerToast({ toast, }: {
|
|
1120
1129
|
toast: Toast_2.Root.ToastObject<ToastData>;
|
|
@@ -1146,6 +1155,8 @@ export { InputNumberProps }
|
|
|
1146
1155
|
export declare interface InputProps extends InputProps_2 {
|
|
1147
1156
|
}
|
|
1148
1157
|
|
|
1158
|
+
export declare const InternalBadge: ({ count, showZero, ...rest }: BadgeProps) => JSX.Element;
|
|
1159
|
+
|
|
1149
1160
|
declare interface InternalFormProps<Values = any> extends React_2.ComponentProps<typeof default_8<Values>> {
|
|
1150
1161
|
}
|
|
1151
1162
|
|
|
@@ -1177,7 +1188,7 @@ declare const MainSelectInner: <ValueType = unknown, OptionType extends SelectBa
|
|
|
1177
1188
|
|
|
1178
1189
|
declare const MainSwitchInner: ({ ...rest }: SwitchProps, ref: React.Ref<React.ComponentRef<typeof default_4>>) => JSX.Element;
|
|
1179
1190
|
|
|
1180
|
-
declare const MainTreeInner: <T extends DataNode =
|
|
1191
|
+
declare const MainTreeInner: <T extends DataNode = DataNode>(props: TreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
|
|
1181
1192
|
|
|
1182
1193
|
export { MappingAlgorithm }
|
|
1183
1194
|
|
|
@@ -1215,7 +1226,7 @@ export declare const Modal: (({ open: externalOpen, closeIcon, children, size: s
|
|
|
1215
1226
|
|
|
1216
1227
|
export { ModalFuncProps }
|
|
1217
1228
|
|
|
1218
|
-
declare type ModalFuncProps_2 =
|
|
1229
|
+
declare type ModalFuncProps_2 = ModalProps_2 & {
|
|
1219
1230
|
/**
|
|
1220
1231
|
* Content to be displayed in the modal
|
|
1221
1232
|
* Similar to children prop in Modal component
|
|
@@ -1224,7 +1235,7 @@ declare type ModalFuncProps_2 = ModalProps & {
|
|
|
1224
1235
|
content?: default_2.ReactNode;
|
|
1225
1236
|
};
|
|
1226
1237
|
|
|
1227
|
-
declare interface
|
|
1238
|
+
declare interface ModalProps_2 extends Omit<ModalProps_3, "centered"> {
|
|
1228
1239
|
/**
|
|
1229
1240
|
* Predefined sizes for the modal
|
|
1230
1241
|
* - xsmall: 400px
|
|
@@ -1309,15 +1320,8 @@ export declare interface ModalProviderProps {
|
|
|
1309
1320
|
children?: default_2.ReactNode;
|
|
1310
1321
|
}
|
|
1311
1322
|
|
|
1312
|
-
declare interface ModalRef {
|
|
1313
|
-
update: (config: ModalUpdateConfig) => void;
|
|
1314
|
-
destroy: () => void;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
1323
|
declare type ModalType = NonNullable<ModalFuncProps["type"]> | "default";
|
|
1318
1324
|
|
|
1319
|
-
declare type ModalUpdateConfig = Partial<ModalFuncProps_2> | ((prev: ModalFuncProps_2) => ModalFuncProps_2);
|
|
1320
|
-
|
|
1321
1325
|
export { notification }
|
|
1322
1326
|
|
|
1323
1327
|
export { NotificationArgsProps }
|
|
@@ -1350,7 +1354,7 @@ export declare interface PopoverProps extends PopoverProps_2 {
|
|
|
1350
1354
|
arrow?: PopoverProps_2["arrow"];
|
|
1351
1355
|
}
|
|
1352
1356
|
|
|
1353
|
-
export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, classNames, }: PopupPanelProps) => JSX.Element;
|
|
1357
|
+
export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, classNames, modal, closeOnClickOutside, }: PopupPanelProps) => JSX.Element;
|
|
1354
1358
|
|
|
1355
1359
|
export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRef<"div">, "title" | "content" | "children"> {
|
|
1356
1360
|
/** The trigger element that opens the popup panel */
|
|
@@ -1362,7 +1366,7 @@ export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRe
|
|
|
1362
1366
|
/** Controls the open state of the popup panel */
|
|
1363
1367
|
open?: boolean;
|
|
1364
1368
|
/** Callback fired when the open state changes */
|
|
1365
|
-
onOpenChange?:
|
|
1369
|
+
onOpenChange?: Popover_2.Root.Props["onOpenChange"];
|
|
1366
1370
|
/** Content to display inside the popup panel */
|
|
1367
1371
|
content?: React.ReactNode;
|
|
1368
1372
|
/** Title text or element to display in the panel header */
|
|
@@ -1421,6 +1425,16 @@ export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRe
|
|
|
1421
1425
|
footer?: string;
|
|
1422
1426
|
resizeHandle?: string;
|
|
1423
1427
|
};
|
|
1428
|
+
/**
|
|
1429
|
+
* Whether to close the panel when clicking outside
|
|
1430
|
+
* @default true
|
|
1431
|
+
*/
|
|
1432
|
+
closeOnClickOutside?: boolean;
|
|
1433
|
+
/**
|
|
1434
|
+
* Whether to use modal mode
|
|
1435
|
+
* @default false
|
|
1436
|
+
*/
|
|
1437
|
+
modal?: Popover_2.Root.Props["modal"];
|
|
1424
1438
|
}
|
|
1425
1439
|
|
|
1426
1440
|
declare enum PopupPanelSize {
|
|
@@ -1431,8 +1445,7 @@ declare enum PopupPanelSize {
|
|
|
1431
1445
|
xlarge = "840px"
|
|
1432
1446
|
}
|
|
1433
1447
|
|
|
1434
|
-
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>,
|
|
1435
|
-
parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
|
|
1448
|
+
export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>, parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
|
|
1436
1449
|
|
|
1437
1450
|
export { Progress }
|
|
1438
1451
|
|
|
@@ -1450,18 +1463,18 @@ export { QRPropsCanvas }
|
|
|
1450
1463
|
|
|
1451
1464
|
export { QRPropsSvg }
|
|
1452
1465
|
|
|
1453
|
-
export declare const Radio: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<
|
|
1466
|
+
export declare const Radio: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>> & {
|
|
1454
1467
|
Group: (props: RadioGroupProps & {
|
|
1455
1468
|
ref?: React.Ref<HTMLDivElement>;
|
|
1456
1469
|
}) => JSX.Element;
|
|
1457
|
-
Button: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<
|
|
1470
|
+
Button: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>>;
|
|
1458
1471
|
};
|
|
1459
1472
|
|
|
1460
1473
|
export declare type RadioChangeEvent = RadioChangeEvent_2;
|
|
1461
1474
|
|
|
1462
1475
|
export declare type RadioGroupProps = RadioGroupProps_2;
|
|
1463
1476
|
|
|
1464
|
-
export declare type RadioProps =
|
|
1477
|
+
export declare type RadioProps = RadioProps_3;
|
|
1465
1478
|
|
|
1466
1479
|
export declare type RadioRef = RadioRef_2;
|
|
1467
1480
|
|
|
@@ -1854,11 +1867,11 @@ export declare const rawChartColorTokens: {
|
|
|
1854
1867
|
light: string;
|
|
1855
1868
|
dark: string;
|
|
1856
1869
|
};
|
|
1857
|
-
colorChartsStatusNeutral: string |
|
|
1858
|
-
colorChartsThresholdNegative: string |
|
|
1859
|
-
colorChartsThresholdPositive: string |
|
|
1860
|
-
colorChartsThresholdInfo: string |
|
|
1861
|
-
colorChartsThresholdNeutral: string |
|
|
1870
|
+
colorChartsStatusNeutral: string | ColorTokenValue_2;
|
|
1871
|
+
colorChartsThresholdNegative: string | ColorTokenValue_2;
|
|
1872
|
+
colorChartsThresholdPositive: string | ColorTokenValue_2;
|
|
1873
|
+
colorChartsThresholdInfo: string | ColorTokenValue_2;
|
|
1874
|
+
colorChartsThresholdNeutral: string | ColorTokenValue_2;
|
|
1862
1875
|
colorChartsLineGrid: {
|
|
1863
1876
|
light: string;
|
|
1864
1877
|
dark: string;
|
|
@@ -1936,6 +1949,12 @@ export { RefSelectProps }
|
|
|
1936
1949
|
|
|
1937
1950
|
declare type RefType<T extends FieldType> = T extends "input" ? InputRef : T extends "select" ? RefSelectProps_2 : never;
|
|
1938
1951
|
|
|
1952
|
+
/**
|
|
1953
|
+
* Resolves chart color tokens by replacing reference strings with actual values.
|
|
1954
|
+
* @returns Record of token names to resolved light/dark color objects
|
|
1955
|
+
*/
|
|
1956
|
+
export declare function resolveColorTokens<T extends ColorTokens>(colors: T): Record<keyof T, ColorTokenValue>;
|
|
1957
|
+
|
|
1939
1958
|
export { Result }
|
|
1940
1959
|
|
|
1941
1960
|
export { ResultProps }
|
|
@@ -2087,7 +2106,7 @@ export declare interface StackChildProps extends StackProps {
|
|
|
2087
2106
|
stack?: boolean;
|
|
2088
2107
|
}
|
|
2089
2108
|
|
|
2090
|
-
declare type StackGap = 0 | 1 | 2 | 4 | 8 | 12 | 16 | 24;
|
|
2109
|
+
declare type StackGap = 0 | 1 | 2 | 4 | 8 | 12 | 16 | 24 | 28 | 32 | 40 | 48;
|
|
2091
2110
|
|
|
2092
2111
|
export declare interface StackProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
2093
2112
|
/**
|
|
@@ -2175,6 +2194,10 @@ export declare interface TableProps<RecordType extends object = object> extends
|
|
|
2175
2194
|
* Table ref
|
|
2176
2195
|
*/
|
|
2177
2196
|
tableRef?: React.Ref<HTMLDivElement>;
|
|
2197
|
+
/**
|
|
2198
|
+
* Table style
|
|
2199
|
+
*/
|
|
2200
|
+
variant?: "default" | "zebra";
|
|
2178
2201
|
}
|
|
2179
2202
|
|
|
2180
2203
|
export { TabPaneProps }
|
|
@@ -2272,9 +2295,9 @@ export { Transfer }
|
|
|
2272
2295
|
|
|
2273
2296
|
export { TransferProps }
|
|
2274
2297
|
|
|
2275
|
-
export declare
|
|
2298
|
+
export declare function Transition(props: TransitionProps): null;
|
|
2276
2299
|
|
|
2277
|
-
export declare
|
|
2300
|
+
export declare type TransitionProps = Omit<useRender.ComponentProps<"div">, "render" | "children"> & {
|
|
2278
2301
|
/** Whether the component should be shown */
|
|
2279
2302
|
show?: boolean;
|
|
2280
2303
|
/** CSS classes to apply when the component is opened */
|
|
@@ -2283,11 +2306,23 @@ export declare interface TransitionProps extends Omit<useRender.ComponentProps<"
|
|
|
2283
2306
|
ending?: string | CSSProperties;
|
|
2284
2307
|
/** CSS classes to apply to the component */
|
|
2285
2308
|
className?: string;
|
|
2286
|
-
/** Child component to render */
|
|
2287
|
-
children: useRender.ComponentProps<"div">["render"];
|
|
2288
2309
|
/** Keep mounted */
|
|
2289
2310
|
keepMounted?: boolean;
|
|
2290
|
-
|
|
2311
|
+
/**
|
|
2312
|
+
* Callback function to be called when the transition ends
|
|
2313
|
+
*/
|
|
2314
|
+
onTransitionComplete?: (show?: boolean) => void;
|
|
2315
|
+
/**
|
|
2316
|
+
* Whether to listen for animations in child elements
|
|
2317
|
+
*/
|
|
2318
|
+
listenToChildAnimations?: boolean;
|
|
2319
|
+
/**
|
|
2320
|
+
* Whether to render the child as a child element
|
|
2321
|
+
* @default true
|
|
2322
|
+
*/
|
|
2323
|
+
asChild?: boolean;
|
|
2324
|
+
children?: React.ReactNode | useRender.ComponentProps<"div">["render"];
|
|
2325
|
+
};
|
|
2291
2326
|
|
|
2292
2327
|
export declare const Tree: (<T extends DataNode = DataNode>(props: TreeProps<T> & {
|
|
2293
2328
|
ref?: React.ForwardedRef<React.ComponentRef<typeof default_7<T>>>;
|
|
@@ -2343,7 +2378,7 @@ export { unstableSetRender }
|
|
|
2343
2378
|
|
|
2344
2379
|
export declare const Upload: (({ showRemoveButton, className, fileList, children, ...restProps }: UploadProps) => JSX.Element) & {
|
|
2345
2380
|
Dragger: ({ children, uploadTitle, uploadDescription, itemRender, ...rest }: DraggerProps) => JSX.Element;
|
|
2346
|
-
Item: ({ fileName, fileType, status, percent, removable, onRemove, extraActions, }:
|
|
2381
|
+
Item: ({ fileName, fileType, status, percent, removable, onRemove, extraActions, }: UploadItemProps_2) => JSX.Element;
|
|
2347
2382
|
};
|
|
2348
2383
|
|
|
2349
2384
|
export { UploadChangeParam }
|
|
@@ -2370,7 +2405,10 @@ export declare interface UploadProps extends UploadProps_2 {
|
|
|
2370
2405
|
showRemoveButton?: boolean;
|
|
2371
2406
|
}
|
|
2372
2407
|
|
|
2373
|
-
export declare function useAnimationsFinished(ref: React.RefObject<HTMLElement | null>, waitForNextTick
|
|
2408
|
+
export declare function useAnimationsFinished(ref: React.RefObject<HTMLElement | null>, { waitForNextTick, subtree, }: {
|
|
2409
|
+
waitForNextTick?: boolean;
|
|
2410
|
+
subtree?: boolean;
|
|
2411
|
+
}): (fnToExecute: () => void) => void;
|
|
2374
2412
|
|
|
2375
2413
|
/**
|
|
2376
2414
|
*
|
|
@@ -2407,7 +2445,22 @@ export declare const useCharts: () => {
|
|
|
2407
2445
|
|
|
2408
2446
|
export declare const useCls: () => (...args: ClassValue[]) => string;
|
|
2409
2447
|
|
|
2410
|
-
|
|
2448
|
+
/**
|
|
2449
|
+
* A hook that manages state that can be either controlled or uncontrolled.
|
|
2450
|
+
*
|
|
2451
|
+
* @param value - The controlled value
|
|
2452
|
+
* @param onChange - Callback when the value changes
|
|
2453
|
+
* @param defaultValue - Default value for uncontrolled state
|
|
2454
|
+
* @returns [currentValue, setValue] - Current value and setter function
|
|
2455
|
+
*/
|
|
2456
|
+
export declare function useControlledState<T, K extends unknown[] = []>(value?: T, onChange?: ((value: T, ...args: K | []) => void) | React.Dispatch<React.SetStateAction<T>>, defaultValue?: T): [
|
|
2457
|
+
T | undefined,
|
|
2458
|
+
(value: T | ((prev: T | undefined) => T), ...args: K | []) => void
|
|
2459
|
+
];
|
|
2460
|
+
|
|
2461
|
+
export declare const useDS: () => {
|
|
2462
|
+
theme: "light" | "dark";
|
|
2463
|
+
};
|
|
2411
2464
|
|
|
2412
2465
|
export declare const useEnhancedEffect: typeof useLayoutEffect;
|
|
2413
2466
|
|
|
@@ -2427,7 +2480,7 @@ export declare const useModal: () => HookAPI;
|
|
|
2427
2480
|
|
|
2428
2481
|
export declare const useToken: () => {
|
|
2429
2482
|
theme: Theme<SeedToken, AliasToken>;
|
|
2430
|
-
token:
|
|
2483
|
+
token: GlobalToken;
|
|
2431
2484
|
hashId: string;
|
|
2432
2485
|
};
|
|
2433
2486
|
|
|
@@ -2545,7 +2598,7 @@ export declare type WidthAntdTokensProps<T extends IntrinsicElement> = {
|
|
|
2545
2598
|
as?: IntrinsicElement;
|
|
2546
2599
|
} & ComponentProps<T>;
|
|
2547
2600
|
|
|
2548
|
-
export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) =>
|
|
2601
|
+
export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) => null;
|
|
2549
2602
|
|
|
2550
2603
|
declare type WithHrefProps<E extends ElementType = "a"> = IconButtonBaseProps & {
|
|
2551
2604
|
href: string;
|