@broxus/react-uikit 0.8.1 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/cjs/components/Article/Meta.d.ts +1 -1
  2. package/dist/cjs/components/Article/Title.d.ts +1 -1
  3. package/dist/cjs/components/Badge/index.d.ts +1 -1
  4. package/dist/cjs/components/Button/Button.d.ts +4 -4
  5. package/dist/cjs/components/Button/Button.js +1 -1
  6. package/dist/cjs/components/Button/index.scss +13 -12
  7. package/dist/cjs/components/Card/Badge.d.ts +1 -1
  8. package/dist/cjs/components/Card/Body.d.ts +1 -1
  9. package/dist/cjs/components/Card/Footer.d.ts +1 -1
  10. package/dist/cjs/components/Card/Header.d.ts +1 -1
  11. package/dist/cjs/components/Card/Media.d.ts +1 -1
  12. package/dist/cjs/components/Card/Title.d.ts +1 -1
  13. package/dist/cjs/components/Component/index.d.ts +1 -1
  14. package/dist/cjs/components/Container/index.d.ts +1 -1
  15. package/dist/cjs/components/Control/Select/index.scss +1 -1
  16. package/dist/cjs/components/Drawer/index.js +2 -6
  17. package/dist/cjs/components/Flex/Flex.d.ts +3 -3
  18. package/dist/cjs/components/Flex/Flex.js +39 -5
  19. package/dist/cjs/components/Heading/index.d.ts +1 -1
  20. package/dist/cjs/components/Link/index.d.ts +1 -1
  21. package/dist/cjs/components/Tabs/index.scss +2 -2
  22. package/dist/cjs/components/Text/index.d.ts +3 -2
  23. package/dist/cjs/components/Text/index.js +2 -1
  24. package/dist/cjs/components/Text/index.scss +315 -0
  25. package/dist/cjs/styles/mixins.scss +39 -5
  26. package/dist/cjs/styles/text.scss +1 -303
  27. package/dist/cjs/styles/variables.scss +4 -6
  28. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  29. package/dist/cjs/utils/get-breakpoints-config-classes.js +1 -1
  30. package/dist/esm/components/Article/Meta.d.ts +1 -1
  31. package/dist/esm/components/Article/Title.d.ts +1 -1
  32. package/dist/esm/components/Badge/index.d.ts +1 -1
  33. package/dist/esm/components/Button/Button.d.ts +4 -4
  34. package/dist/esm/components/Button/Button.js +1 -1
  35. package/dist/esm/components/Button/index.scss +13 -12
  36. package/dist/esm/components/Card/Badge.d.ts +1 -1
  37. package/dist/esm/components/Card/Body.d.ts +1 -1
  38. package/dist/esm/components/Card/Footer.d.ts +1 -1
  39. package/dist/esm/components/Card/Header.d.ts +1 -1
  40. package/dist/esm/components/Card/Media.d.ts +1 -1
  41. package/dist/esm/components/Card/Title.d.ts +1 -1
  42. package/dist/esm/components/Component/index.d.ts +1 -1
  43. package/dist/esm/components/Container/index.d.ts +1 -1
  44. package/dist/esm/components/Control/Select/index.scss +1 -1
  45. package/dist/esm/components/Drawer/index.js +2 -6
  46. package/dist/esm/components/Flex/Flex.d.ts +3 -3
  47. package/dist/esm/components/Flex/Flex.js +39 -5
  48. package/dist/esm/components/Heading/index.d.ts +1 -1
  49. package/dist/esm/components/Link/index.d.ts +1 -1
  50. package/dist/esm/components/Tabs/index.scss +2 -2
  51. package/dist/esm/components/Text/index.d.ts +3 -2
  52. package/dist/esm/components/Text/index.js +2 -1
  53. package/dist/esm/components/Text/index.scss +315 -0
  54. package/dist/esm/styles/mixins.scss +39 -5
  55. package/dist/esm/styles/text.scss +1 -303
  56. package/dist/esm/styles/variables.scss +4 -6
  57. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  58. package/dist/esm/utils/get-breakpoints-config-classes.js +1 -1
  59. package/package.json +10 -10
@@ -3,7 +3,7 @@ import { type PolymorphicProps } from '../../components/Component';
3
3
  export type ArticleMetaOwnProps = {
4
4
  prefixCls?: string;
5
5
  };
6
- export type ArticleMetaProps<E extends React.ElementType> = React.PropsWithChildren<ArticleMetaOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, ArticleMetaOwnProps>;
6
+ export type ArticleMetaProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<ArticleMetaOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, ArticleMetaOwnProps>;
7
7
  declare const defaultElement = "p";
8
8
  export declare function Meta<E extends React.ElementType = typeof defaultElement>(props: ArticleMetaProps<E>): React.JSX.Element;
9
9
  export declare namespace Meta {
@@ -3,7 +3,7 @@ import { type PolymorphicProps } from '../../components/Component';
3
3
  export type ArticleTitleOwnProps = {
4
4
  prefixCls?: string;
5
5
  };
6
- export type ArticleTitleProps<E extends React.ElementType> = React.PropsWithChildren<ArticleTitleOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, ArticleTitleOwnProps>;
6
+ export type ArticleTitleProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<ArticleTitleOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, ArticleTitleOwnProps>;
7
7
  declare const defaultElement = "h1";
8
8
  export declare function Title<E extends React.ElementType = typeof defaultElement>(props: ArticleTitleProps<E>): React.JSX.Element;
9
9
  export declare namespace Title {
@@ -4,7 +4,7 @@ import './index.scss';
4
4
  export type BadgeOwnProps = {
5
5
  prefixCls?: string;
6
6
  };
7
- export type BadgeProps<E extends React.ElementType> = React.PropsWithChildren<BadgeOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, BadgeOwnProps>;
7
+ export type BadgeProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<BadgeOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, BadgeOwnProps>;
8
8
  declare const defaultElement = "span";
9
9
  export declare function Badge<E extends React.ElementType = typeof defaultElement>(props: BadgeProps<E>): React.JSX.Element;
10
10
  export declare namespace Badge {
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { type PolymorphicProps } from '../../components/Component';
3
- export interface AnchorButtonProps extends Omit<React.AnchorHTMLAttributes<any>, 'onClick'> {
3
+ export interface AnchorButtonProps extends Omit<React.AnchorHTMLAttributes<React.ElementType>, 'onClick'> {
4
4
  href: string;
5
5
  target?: string;
6
6
  onClick?: React.MouseEventHandler<HTMLElement>;
7
7
  }
8
- export interface NativeButtonProps extends Omit<React.ButtonHTMLAttributes<any>, 'type' | 'onClick'> {
8
+ export interface NativeButtonProps extends Omit<React.ButtonHTMLAttributes<React.ElementType>, 'type' | 'onClick'> {
9
9
  htmlType?: 'button' | 'reset' | 'submit';
10
10
  onClick?: React.MouseEventHandler<HTMLElement>;
11
11
  }
@@ -16,5 +16,5 @@ export interface ButtonOwnProps extends Partial<AnchorButtonProps>, Partial<Nati
16
16
  size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
17
17
  type?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'danger' | 'link' | 'text';
18
18
  }
19
- export type ButtonProps<E extends React.ElementType = any> = React.PropsWithChildren<ButtonOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, ButtonOwnProps>;
20
- export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<any>, "ref"> & React.RefAttributes<any>>;
19
+ export type ButtonProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<ButtonOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, ButtonOwnProps>;
20
+ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<any>>;
@@ -47,7 +47,7 @@ exports.Button = React.forwardRef((props, ref) => {
47
47
  const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'button'), [config, prefixCls]);
48
48
  const className = React.useMemo(() => (0, classnames_1.default)(rootCls, {
49
49
  [`${rootCls}-${type}`]: type !== undefined,
50
- [`${rootCls}-ghost`]: ghost !== undefined,
50
+ [`${rootCls}-ghost`]: ghost === true,
51
51
  [`${rootCls}-${size}`]: size !== undefined,
52
52
  [`${rootCls}-${shape}`]: shape !== undefined && ['circle', 'round'].includes(shape),
53
53
  }, restProps.className), [rootCls, type, ghost, size, shape, restProps.className]);
@@ -279,21 +279,22 @@
279
279
  * The same for all style modifiers
280
280
  */
281
281
 
282
- .uk-button-default:disabled,
283
- .uk-button-primary:disabled,
284
- .uk-button-secondary:disabled,
285
- .uk-button-tertiary:disabled,
286
- .uk-button-success:disabled,
287
- .uk-button-warning:disabled,
288
- .uk-button-danger:disabled {
289
- background-color: var(--button-disabled-background);
290
- color: var(--button-disabled-color);
291
- @if mixin-exists(hook-button-disabled) {
292
- @include hook-button-disabled;
282
+ @if $button-disabled-mode == same {
283
+ .uk-button-default:disabled,
284
+ .uk-button-primary:disabled,
285
+ .uk-button-secondary:disabled,
286
+ .uk-button-tertiary:disabled,
287
+ .uk-button-success:disabled,
288
+ .uk-button-warning:disabled,
289
+ .uk-button-danger:disabled {
290
+ background-color: var(--button-disabled-background);
291
+ color: var(--button-disabled-color);
292
+ @if mixin-exists(hook-button-disabled) {
293
+ @include hook-button-disabled;
294
+ }
293
295
  }
294
296
  }
295
297
 
296
-
297
298
  /* Size modifiers
298
299
  ========================================================================== */
299
300
 
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { type BadgeProps } from '../../components/Badge';
3
- export type CardBadgeProps<E extends React.ElementType> = BadgeProps<E>;
3
+ export type CardBadgeProps<E extends React.ElementType = React.ElementType> = BadgeProps<E>;
4
4
  declare const defaultElement = "span";
5
5
  export declare function Badge<E extends React.ElementType = typeof defaultElement>(props: CardBadgeProps<E>): React.JSX.Element;
6
6
  export declare namespace Badge {
@@ -3,7 +3,7 @@ import { type PolymorphicProps } from '../../components/Component';
3
3
  export type CardBodyOwnProps = {
4
4
  prefixCls?: string;
5
5
  };
6
- export type CardBodyProps<E extends React.ElementType> = React.PropsWithChildren<CardBodyOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardBodyOwnProps>;
6
+ export type CardBodyProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<CardBodyOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardBodyOwnProps>;
7
7
  declare const defaultElement = "div";
8
8
  export declare function Body<E extends React.ElementType = typeof defaultElement>(props: CardBodyProps<E>): React.JSX.Element;
9
9
  export declare namespace Body {
@@ -3,7 +3,7 @@ import { type PolymorphicProps } from '../../components/Component';
3
3
  export type CardFooterOwnProps = {
4
4
  prefixCls?: string;
5
5
  };
6
- export type CardFooterProps<E extends React.ElementType> = React.PropsWithChildren<CardFooterOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardFooterOwnProps>;
6
+ export type CardFooterProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<CardFooterOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardFooterOwnProps>;
7
7
  declare const defaultElement = "footer";
8
8
  export declare function Footer<E extends React.ElementType = typeof defaultElement>(props: CardFooterProps<E>): React.JSX.Element;
9
9
  export declare namespace Footer {
@@ -3,7 +3,7 @@ import { type PolymorphicProps } from '../../components/Component';
3
3
  export type CardHeaderOwnProps = {
4
4
  prefixCls?: string;
5
5
  };
6
- export type CardHeaderProps<E extends React.ElementType> = React.PropsWithChildren<CardHeaderOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardHeaderOwnProps>;
6
+ export type CardHeaderProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<CardHeaderOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardHeaderOwnProps>;
7
7
  declare const defaultElement = "header";
8
8
  export declare function Header<E extends React.ElementType = typeof defaultElement>(props: CardHeaderProps<E>): React.JSX.Element;
9
9
  export declare namespace Header {
@@ -4,7 +4,7 @@ export type CardMediaOwnProps = {
4
4
  position: 'left' | 'top' | 'right' | 'bottom';
5
5
  prefixCls?: string;
6
6
  };
7
- export type CardMediaProps<E extends React.ElementType> = React.PropsWithChildren<CardMediaOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardMediaOwnProps>;
7
+ export type CardMediaProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<CardMediaOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardMediaOwnProps>;
8
8
  declare const defaultElement = "div";
9
9
  export declare function Media<E extends React.ElementType = typeof defaultElement>(props: CardMediaProps<E>): React.JSX.Element;
10
10
  export declare namespace Media {
@@ -3,7 +3,7 @@ import { type PolymorphicProps } from '../../components/Component';
3
3
  export type CardTitleOwnProps = {
4
4
  prefixCls?: string;
5
5
  };
6
- export type CardTitleProps<E extends React.ElementType> = React.PropsWithChildren<CardTitleOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardTitleOwnProps>;
6
+ export type CardTitleProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<CardTitleOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, CardTitleOwnProps>;
7
7
  declare const defaultElement = "h3";
8
8
  export declare function Title<E extends React.ElementType = typeof defaultElement>(props: CardTitleProps<E>): React.JSX.Element;
9
9
  export declare namespace Title {
@@ -12,5 +12,5 @@ export interface PolymorphicComponent<Component extends React.ElementType = Reac
12
12
  defaultProps?: Partial<any>;
13
13
  id?: string;
14
14
  }
15
- export declare const Component: React.ForwardRefExoticComponent<Omit<ComponentOwnProp<React.ElementType<any>>, "ref"> & React.RefAttributes<unknown>>;
15
+ export declare const Component: React.ForwardRefExoticComponent<Omit<ComponentOwnProp<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;
16
16
  export {};
@@ -9,4 +9,4 @@ export interface ContainerOwnProps {
9
9
  size?: 'xsmall' | 'small' | 'large' | 'xlarge' | 'expand';
10
10
  }
11
11
  export type ContainerProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<ContainerOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, ContainerOwnProps>;
12
- export declare const Container: React.MemoExoticComponent<(<E extends React.ElementType<any> = "div">(props: ContainerProps<E>) => React.JSX.Element)>;
12
+ export declare const Container: React.MemoExoticComponent<(<E extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(props: ContainerProps<E>) => React.JSX.Element)>;
@@ -538,7 +538,7 @@
538
538
  /* Control
539
539
  ========================================================================== */
540
540
 
541
- .uk-control-select {
541
+ .uk-control.uk-control-select {
542
542
  align-items: unset;
543
543
  border: 0 none;
544
544
  height: auto;
@@ -37,7 +37,7 @@ require("./index.scss");
37
37
  const defaultPushState = { distance: 180 };
38
38
  exports.Drawer = React.forwardRef((props, ref) => {
39
39
  const config = (0, ConfigProvider_1.useConfig)();
40
- const { animation = 'slide', children, className, contentWrapperStyle, defaultOpen, destroyOnClose, direction, getContainer = config.getPopupContainer, keyboard = true, mask = true, maskClosable = true, motion, open, placement = 'right', prefixCls = config.prefixCls, push = defaultPushState, size, rootClassName, rootStyle, trigger, onClose: onCloseCallback, ...restProps } = props;
40
+ const { animation = 'slide', children, className, defaultOpen, destroyOnClose, direction, getContainer = config.getPopupContainer, keyboard = true, mask = true, maskClosable = true, motion, open, placement = 'right', prefixCls = config.prefixCls, push = defaultPushState, size, rootClassName, rootStyle, trigger, onClose: onCloseCallback, ...restProps } = props;
41
41
  const [isShown, setShown] = React.useState(defaultOpen);
42
42
  const [internalOpen, setOpen] = React.useState(defaultOpen);
43
43
  const mergedOpen = open === undefined ? internalOpen : open;
@@ -130,11 +130,7 @@ exports.Drawer = React.forwardRef((props, ref) => {
130
130
  React.useEffect(() => cleanup, [cleanup]);
131
131
  return (React.createElement(React.Fragment, null,
132
132
  trigger?.({ collapse, expand, isOpen: !!mergedOpen }),
133
- React.createElement(rc_drawer_1.default, { className: className, contentWrapperStyle: {
134
- height: undefined,
135
- width: undefined,
136
- ...contentWrapperStyle,
137
- }, destroyOnClose: destroyOnClose, keyboard: keyboard, getContainer: getContainer, mask: mask, maskClosable: maskClosable, maskMotion: {
133
+ React.createElement(rc_drawer_1.default, { className: className, destroyOnClose: destroyOnClose, keyboard: keyboard, getContainer: getContainer, mask: mask, maskClosable: maskClosable, maskMotion: {
138
134
  motionName: (0, utils_1.getMotionName)(prefixCls || config.prefixCls, 'drawer-fade'),
139
135
  }, motion: mergedMotion, open: mergedOpen, placement: placement, prefixCls: rootCls, push: push, rootClassName: drawerRootClassName, rootStyle: { ...rootStyle, display: (mergedOpen || isShown) ? 'block' : '' }, onClose: onClose, ...restProps }, children)));
140
136
  });
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { type PolymorphicProps } from '../../components/Component';
3
3
  import { type BreakpointsConfig } from '../../types';
4
- export type FlexAlignContent = 'stretch' | 'between' | 'around' | 'top' | 'middle' | 'bottom';
5
- export type FlexAlignItems = 'stretch' | 'top' | 'middle' | 'bottom';
4
+ export type FlexAlignContent = 'stretch' | 'between' | 'around' | 'start' | 'middle' | 'end';
5
+ export type FlexAlignItems = 'stretch' | 'start' | 'middle' | 'end';
6
6
  export type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
7
7
  export type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
8
- export type FlexJustifyContent = 'left' | 'center' | 'right' | 'between' | 'around';
8
+ export type FlexJustifyContent = 'start' | 'center' | 'end' | 'between' | 'around';
9
9
  export type FlexBreakpoint = {
10
10
  alignContent?: FlexAlignContent;
11
11
  alignItems?: FlexAlignItems;
@@ -34,13 +34,47 @@ const ConfigProvider_1 = require("../../components/ConfigProvider");
34
34
  const context_1 = require("../../components/Flex/context");
35
35
  const utils_1 = require("../../utils");
36
36
  const defaultElement = 'div';
37
+ const alignContentMap = new Map([
38
+ ['around', 'around'],
39
+ ['between', 'between'],
40
+ ['end', 'right'],
41
+ ['middle', 'middle'],
42
+ ['start', 'left'],
43
+ ['stretch', 'stretch'],
44
+ ]);
45
+ const alignItemsMap = new Map([
46
+ ['end', 'bottom'],
47
+ ['middle', 'middle'],
48
+ ['start', 'top'],
49
+ ['stretch', 'stretch'],
50
+ ]);
51
+ const justifyContentMap = new Map([
52
+ ['around', 'around'],
53
+ ['between', 'between'],
54
+ ['end', 'right'],
55
+ ['center', 'center'],
56
+ ['start', 'left'],
57
+ ]);
58
+ function mapJustifyContentBreakpoints(value) {
59
+ const config = {};
60
+ for (const key in value) {
61
+ // @ts-ignore
62
+ if (justifyContentMap.has(value[key])) {
63
+ // @ts-ignore
64
+ config[key] = justifyContentMap.get(value[key]);
65
+ }
66
+ }
67
+ return config;
68
+ }
37
69
  function Flex(props) {
38
70
  const config = (0, ConfigProvider_1.useConfig)();
39
71
  const { alignContent, alignItems, className, flexDirection, flexWrap, inline, justifyContent, prefixCls = config.prefixCls, ...restProps } = props;
40
72
  const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'flex'), [config, prefixCls]);
41
- const justifyContentCls = React.useMemo(() => (typeof justifyContent === 'string'
42
- ? `${rootCls}-${justifyContent}`
43
- : (0, utils_1.getBreakpointsConfigClasses)(prefixCls || config.prefixCls, 'flex', justifyContent)), [config.prefixCls, justifyContent, prefixCls, rootCls]);
73
+ const justifyContentCls = React.useMemo(
74
+ // eslint-disable-next-line no-nested-ternary
75
+ () => (typeof justifyContent === 'string'
76
+ ? (justifyContentMap.has(justifyContent) ? `${rootCls}-${justifyContentMap.get(justifyContent)}` : '')
77
+ : (0, utils_1.getBreakpointsConfigClasses)(prefixCls || config.prefixCls, 'flex', mapJustifyContentBreakpoints(justifyContent || {}))), [config.prefixCls, justifyContent, prefixCls, rootCls]);
44
78
  const context = React.useMemo(() => ({
45
79
  getRootCls() {
46
80
  return rootCls;
@@ -50,10 +84,10 @@ function Flex(props) {
50
84
  React.createElement(Component_1.Component, { className: (0, classnames_1.default)({
51
85
  [rootCls]: !inline,
52
86
  [`${rootCls}-inline`]: inline,
53
- [`${rootCls}-${alignItems}`]: alignItems !== undefined,
87
+ [`${rootCls}-${alignItemsMap.get(alignItems)}`]: alignItems && alignItemsMap.has(alignItems),
54
88
  [`${rootCls}-${flexDirection}`]: flexDirection !== undefined,
55
89
  [`${rootCls}-${flexWrap}`]: flexWrap !== undefined,
56
- [`${rootCls}-wrap-${alignContent}`]: alignContent !== undefined,
90
+ [`${rootCls}-wrap-${alignContentMap.get(alignContent)}`]: alignContent && alignContentMap.has(alignContent),
57
91
  }, justifyContentCls, className), component: defaultElement, ...restProps })));
58
92
  }
59
93
  exports.Flex = Flex;
@@ -6,7 +6,7 @@ export type HeadingOwnProps = {
6
6
  prefixCls?: string;
7
7
  size?: 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge';
8
8
  };
9
- export type HeadingProps<E extends React.ElementType> = React.PropsWithChildren<HeadingOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, HeadingOwnProps>;
9
+ export type HeadingProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<HeadingOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, HeadingOwnProps>;
10
10
  declare const defaultElement = "div";
11
11
  export declare function Heading<E extends React.ElementType = typeof defaultElement>(props: HeadingProps<E>): React.JSX.Element;
12
12
  export declare namespace Heading {
@@ -6,4 +6,4 @@ export interface LinkOwnProps extends React.AnchorHTMLAttributes<HTMLAnchorEleme
6
6
  type?: 'heading' | 'muted' | 'reset' | 'text' | 'toggle';
7
7
  }
8
8
  export type LinkProps<E extends React.ElementType = React.ElementType> = React.PropsWithChildren<LinkOwnProps & PolymorphicProps<E>> & PolymorphicProps<E, LinkOwnProps>;
9
- export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps<React.ElementType<any>>, "ref"> & React.RefAttributes<unknown>>;
9
+ export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;
@@ -610,8 +610,7 @@
610
610
  margin: 0;
611
611
  max-height: 200px;
612
612
  outline: none;
613
- overflow-x: hidden;
614
- overflow-y: auto;
613
+ overflow: hidden auto;
615
614
  padding: 0;
616
615
  text-align: left;
617
616
  @if mixin-exists(hook-tabs-dropdown-menu) {
@@ -769,4 +768,5 @@
769
768
  --inverse-tabs-tab-hover-color: var(--inverse-global-color);
770
769
  --inverse-tabs-tab-active-color: var(--inverse-global-emphasis-color);
771
770
  --inverse-tabs-tab-disabled-color: var(--inverse-global-muted-color);
771
+ --inverse-tabs-ink-bar-color: var(--inverse-global-primary-background);
772
772
  }
@@ -5,13 +5,14 @@ export type TextAlign = 'left' | 'right' | 'center' | 'justify';
5
5
  export type TextOwnProps = {
6
6
  align?: TextAlign | BreakpointsConfig<TextAlign>;
7
7
  className?: string;
8
- color?: 'meta' | 'muted' | 'emphasis' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
8
+ color?: 'muted' | 'emphasis' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
9
9
  column?: number | BreakpointsConfig<number>;
10
10
  decoration?: 'none';
11
11
  dropcap?: boolean;
12
12
  italic?: boolean;
13
+ kind?: 'meta' | 'lead' | 'base';
13
14
  prefixCls?: string;
14
- size?: 'default' | 'xsmall' | 'small' | 'medium' | 'large' | 'lead';
15
+ size?: 'xsmall' | 'small' | 'large';
15
16
  transform?: 'capitalize' | 'uppercase' | 'lowercase';
16
17
  verticalAlign?: 'top' | 'middle' | 'bottom' | 'baseline';
17
18
  weight?: 'thin' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'lighter' | 'bolder';
@@ -35,7 +35,7 @@ const utils_1 = require("../../utils");
35
35
  const defaultElement = 'span';
36
36
  function Text(props) {
37
37
  const config = (0, ConfigProvider_1.useConfig)();
38
- const { align, className, color, column, decoration, dropcap, italic, prefixCls = config.prefixCls, size, transform, verticalAlign, weight, wrap, ...restProps } = props;
38
+ const { align, className, color, column, decoration, dropcap, italic, kind, prefixCls = config.prefixCls, size, transform, verticalAlign, weight, wrap, ...restProps } = props;
39
39
  const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'text'), [config, prefixCls]);
40
40
  const alignClassName = React.useMemo(() => (typeof align === 'string'
41
41
  ? `${rootCls}-${align}`
@@ -46,6 +46,7 @@ function Text(props) {
46
46
  return (React.createElement(Component_1.Component, { className: (0, classnames_1.default)(columnClassName, alignClassName, {
47
47
  [`${prefixCls || config.prefixCls}-dropcap`]: dropcap,
48
48
  [`${rootCls}-${color}`]: color !== undefined,
49
+ [`${rootCls}-${kind}`]: kind !== undefined,
49
50
  [`${rootCls}-${size}`]: size !== undefined,
50
51
  [`${rootCls}-${transform}`]: transform !== undefined,
51
52
  [`${rootCls}-${verticalAlign}`]: verticalAlign !== undefined,