@atlaskit/primitives 1.18.0 → 1.19.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/CHANGELOG.md +10 -0
- package/dist/cjs/components/text.js +17 -10
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/xcss/xcss.js +2 -2
- package/dist/es2019/components/text.js +17 -10
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/xcss/xcss.js +1 -1
- package/dist/esm/components/text.js +17 -10
- package/dist/esm/index.js +1 -1
- package/dist/esm/xcss/xcss.js +1 -1
- package/dist/types/components/text.d.ts +5 -3
- package/dist/types/index.d.ts +2 -2
- package/dist/types/responsive/index.d.ts +1 -1
- package/dist/types/xcss/xcss.d.ts +1622 -0
- package/dist/types-ts4.5/components/text.d.ts +5 -3
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/responsive/index.d.ts +1 -1
- package/dist/types-ts4.5/xcss/xcss.d.ts +1622 -0
- package/package.json +1 -1
- package/extract-react-types/text-props.tsx +0 -47
|
@@ -15,18 +15,20 @@ type TextPropsBody = {
|
|
|
15
15
|
*/
|
|
16
16
|
variant?: BodyText;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* The number of lines to limit the provided text to. Text will be truncated with an ellipsis.
|
|
19
|
+
*
|
|
20
|
+
* When `maxLines={1}`, `wordBreak` defaults to `break-all` to match the behaviour of `text-overflow: ellipsis`.
|
|
20
21
|
*
|
|
21
22
|
* Only available for `body` text variants.
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
maxLines?: number;
|
|
24
25
|
};
|
|
25
26
|
type TextPropsUi = {
|
|
26
27
|
/**
|
|
27
28
|
* Text variant
|
|
28
29
|
*/
|
|
29
30
|
variant: UiText;
|
|
31
|
+
maxLines?: never;
|
|
30
32
|
};
|
|
31
33
|
type TextPropsBase = {
|
|
32
34
|
/**
|
|
@@ -3,7 +3,7 @@ export { default as Box } from './components/box';
|
|
|
3
3
|
export type { BoxProps } from './components/box';
|
|
4
4
|
export { default as Inline } from './components/inline';
|
|
5
5
|
export type { InlineProps } from './components/inline';
|
|
6
|
-
export { xcss } from './xcss/xcss';
|
|
6
|
+
export { xcss, tokensMap } from './xcss/xcss';
|
|
7
7
|
export type { XCSS } from './xcss/xcss';
|
|
8
8
|
export { default as Stack } from './components/stack';
|
|
9
9
|
export type { StackProps } from './components/stack';
|
|
@@ -16,4 +16,4 @@ export type { BleedProps } from './components/bleed';
|
|
|
16
16
|
export { default as Text } from './components/text';
|
|
17
17
|
export type { TextProps } from './components/text';
|
|
18
18
|
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
|
19
|
-
export type { Breakpoint } from './responsive';
|
|
19
|
+
export type { Breakpoint, MediaQuery } from './responsive';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { media, UNSAFE_media } from './media-helper';
|
|
2
2
|
export { UNSAFE_buildAboveMediaQueryCSS } from './build-media-query-css';
|
|
3
3
|
export { UNSAFE_BREAKPOINTS_ORDERED_LIST, UNSAFE_BREAKPOINTS_CONFIG, } from './constants';
|
|
4
|
-
export type { Breakpoint, ResponsiveObject, ResponsiveCSSObject, } from './types';
|
|
4
|
+
export type { Breakpoint, ResponsiveObject, ResponsiveCSSObject, MediaQuery, } from './types';
|
|
5
5
|
export { UNSAFE_useMediaQuery } from './use-media-query';
|
|
6
6
|
export { Show } from './show';
|
|
7
7
|
export { Hide } from './hide';
|