@atlaskit/primitives 19.0.1 → 20.0.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 +54 -0
- package/anchor/package.json +1 -8
- package/bleed/package.json +1 -8
- package/box/package.json +1 -8
- package/compiled/anchor/package.json +1 -8
- package/compiled/bleed/package.json +1 -8
- package/compiled/box/package.json +1 -8
- package/compiled/components/types/package.json +1 -8
- package/compiled/flex/package.json +1 -8
- package/compiled/focusable/package.json +1 -8
- package/compiled/grid/package.json +1 -8
- package/compiled/hide/package.json +1 -8
- package/compiled/inline/package.json +1 -8
- package/compiled/media-helper/package.json +1 -8
- package/compiled/metric-text/package.json +1 -8
- package/compiled/package.json +1 -8
- package/compiled/pressable/package.json +1 -8
- package/compiled/show/package.json +1 -8
- package/compiled/stack/package.json +1 -8
- package/compiled/surface-provider/package.json +1 -8
- package/compiled/text/package.json +1 -8
- package/compiled/types/package.json +1 -8
- package/compiled/use-media-query/package.json +1 -8
- package/compiled/utils/types/package.json +1 -8
- package/components/flex/package.json +1 -8
- package/constants/package.json +1 -8
- package/constellation/pressable/examples.mdx +15 -9
- package/dist/cjs/compiled/components/anchor.js +1 -1
- package/dist/cjs/compiled/components/box.compiled.css +1 -1
- package/dist/cjs/compiled/components/box.js +1 -1
- package/dist/cjs/compiled/components/pressable.js +1 -1
- package/dist/cjs/compiled/components/text.js +2 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/box.js +2 -0
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/responsive/constants.js +2 -0
- package/dist/cjs/utils/has-text-ancestor-context.js +1 -0
- package/dist/cjs/xcss/style-maps.partial.js +38 -10
- package/dist/cjs/xcss/xcss.js +2 -0
- package/dist/es2019/compiled/components/anchor.js +1 -1
- package/dist/es2019/compiled/components/box.compiled.css +1 -1
- package/dist/es2019/compiled/components/box.js +1 -1
- package/dist/es2019/compiled/components/pressable.js +1 -1
- package/dist/es2019/compiled/components/text.js +2 -0
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/box.js +2 -0
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/responsive/constants.js +2 -0
- package/dist/es2019/utils/has-text-ancestor-context.js +1 -0
- package/dist/es2019/xcss/style-maps.partial.js +38 -10
- package/dist/es2019/xcss/xcss.js +2 -0
- package/dist/esm/compiled/components/anchor.js +1 -1
- package/dist/esm/compiled/components/box.compiled.css +1 -1
- package/dist/esm/compiled/components/box.js +1 -1
- package/dist/esm/compiled/components/pressable.js +1 -1
- package/dist/esm/compiled/components/text.js +2 -0
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/box.js +2 -0
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/responsive/constants.js +2 -0
- package/dist/esm/utils/has-text-ancestor-context.js +1 -0
- package/dist/esm/xcss/style-maps.partial.js +38 -10
- package/dist/esm/xcss/xcss.js +2 -0
- package/dist/types/compiled/components/types.d.ts +1 -1
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/xcss/style-maps.partial.d.ts +36 -8
- package/flex/package.json +1 -8
- package/grid/package.json +1 -8
- package/inline/package.json +1 -8
- package/media-helper/package.json +1 -8
- package/metric-text/package.json +1 -8
- package/package.json +31 -63
- package/pressable/package.json +1 -8
- package/primitives.docs.tsx +359 -356
- package/responsive/build-media-query-css/package.json +1 -8
- package/responsive/constants/package.json +1 -8
- package/responsive/hide/package.json +1 -8
- package/responsive/media-helper/package.json +1 -8
- package/responsive/package.json +1 -8
- package/responsive/show/package.json +1 -8
- package/responsive/types/package.json +1 -8
- package/responsive/use-media-query/package.json +1 -8
- package/scripts/color-codegen-template.tsx +2 -1
- package/stack/package.json +1 -8
- package/surface-provider/package.json +1 -8
- package/text/package.json +1 -8
- package/types/package.json +1 -8
- package/xcss/package.json +1 -8
- package/dist/types-ts4.5/compiled/components/anchor.d.ts +0 -63
- package/dist/types-ts4.5/compiled/components/bleed.d.ts +0 -34
- package/dist/types-ts4.5/compiled/components/box.d.ts +0 -109
- package/dist/types-ts4.5/compiled/components/flex.d.ts +0 -71
- package/dist/types-ts4.5/compiled/components/focusable.d.ts +0 -36
- package/dist/types-ts4.5/compiled/components/grid.d.ts +0 -80
- package/dist/types-ts4.5/compiled/components/inline.d.ts +0 -70
- package/dist/types-ts4.5/compiled/components/metric-text.d.ts +0 -49
- package/dist/types-ts4.5/compiled/components/pressable.d.ts +0 -49
- package/dist/types-ts4.5/compiled/components/stack.d.ts +0 -57
- package/dist/types-ts4.5/compiled/components/text.d.ts +0 -101
- package/dist/types-ts4.5/compiled/components/types.d.ts +0 -45
- package/dist/types-ts4.5/compiled/index.d.ts +0 -16
- package/dist/types-ts4.5/compiled/responsive/hide.d.ts +0 -39
- package/dist/types-ts4.5/compiled/responsive/index.d.ts +0 -5
- package/dist/types-ts4.5/compiled/responsive/media-helper.d.ts +0 -35
- package/dist/types-ts4.5/compiled/responsive/show.d.ts +0 -39
- package/dist/types-ts4.5/compiled/responsive/types.d.ts +0 -10
- package/dist/types-ts4.5/compiled/responsive/use-media-query.d.ts +0 -23
- package/dist/types-ts4.5/components/anchor.d.ts +0 -106
- package/dist/types-ts4.5/components/bleed.d.ts +0 -36
- package/dist/types-ts4.5/components/box.d.ts +0 -85
- package/dist/types-ts4.5/components/flex.d.ts +0 -105
- package/dist/types-ts4.5/components/grid.d.ts +0 -137
- package/dist/types-ts4.5/components/inline.d.ts +0 -74
- package/dist/types-ts4.5/components/metric-text.d.ts +0 -16
- package/dist/types-ts4.5/components/pressable.d.ts +0 -92
- package/dist/types-ts4.5/components/stack.d.ts +0 -61
- package/dist/types-ts4.5/components/text.d.ts +0 -75
- package/dist/types-ts4.5/components/types.d.ts +0 -33
- package/dist/types-ts4.5/constants.d.ts +0 -12
- package/dist/types-ts4.5/entry-points/anchor.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/bleed.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/box.d.ts +0 -3
- package/dist/types-ts4.5/entry-points/compiled-anchor.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-bleed.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-box.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-components-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-flex.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-focusable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-grid.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-hide.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-inline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-media-helper.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-metric-text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-pressable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-show.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-stack.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-surface-provider.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/compiled-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-use-media-query.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/compiled-utils-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/constants.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/flex.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/grid.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/inline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/media-helper.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/metric-text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/pressable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/responsive-build-media-query-css.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-constants.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-hide.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-media-helper.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-show.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/responsive-use-media-query.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/stack.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/surface-provider.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/xcss.d.ts +0 -2
- package/dist/types-ts4.5/index.d.ts +0 -27
- package/dist/types-ts4.5/responsive/build-media-query-css.d.ts +0 -2
- package/dist/types-ts4.5/responsive/constants.d.ts +0 -67
- package/dist/types-ts4.5/responsive/hide.d.ts +0 -41
- package/dist/types-ts4.5/responsive/index.d.ts +0 -7
- package/dist/types-ts4.5/responsive/media-helper.d.ts +0 -29
- package/dist/types-ts4.5/responsive/media.d.ts +0 -25
- package/dist/types-ts4.5/responsive/show.d.ts +0 -40
- package/dist/types-ts4.5/responsive/types.d.ts +0 -32
- package/dist/types-ts4.5/responsive/unsafe-build-above-media-query-css.d.ts +0 -33
- package/dist/types-ts4.5/responsive/unsafe-build-below-media-query-css.d.ts +0 -32
- package/dist/types-ts4.5/responsive/use-media-query.d.ts +0 -23
- package/dist/types-ts4.5/utils/has-text-ancestor-context.d.ts +0 -9
- package/dist/types-ts4.5/utils/surface-context.d.ts +0 -8
- package/dist/types-ts4.5/utils/surface-provider.d.ts +0 -10
- package/dist/types-ts4.5/utils/types.d.ts +0 -6
- package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +0 -773
- package/dist/types-ts4.5/xcss/xcss.d.ts +0 -143
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/responsive-build-media-query-css.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/responsive-build-media-query-css.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/responsive-build-media-query-css.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/responsive-constants.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/responsive-constants.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/responsive-constants.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/responsive-hide.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/responsive-hide.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/responsive-hide.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/responsive-media-helper.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/responsive-media-helper.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/responsive-media-helper.d.ts"
|
|
17
10
|
}
|
package/responsive/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/responsive/index.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/responsive/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/responsive/index.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/responsive-show.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/responsive-show.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/responsive-show.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/responsive-types.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/responsive-types.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/responsive-types.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/entry-points/responsive-use-media-query.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/entry-points/responsive-use-media-query.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../../dist/types/entry-points/responsive-use-media-query.d.ts"
|
|
17
10
|
}
|
|
@@ -29,7 +29,8 @@ const tokenStyles = {
|
|
|
29
29
|
t.token.startsWith('elevation.surface') ||
|
|
30
30
|
t.token.startsWith('utility.elevation.surface') ||
|
|
31
31
|
t.token.startsWith('color.blanket') ||
|
|
32
|
-
t.token.startsWith('color.skeleton')
|
|
32
|
+
t.token.startsWith('color.skeleton') ||
|
|
33
|
+
t.token.startsWith('color.rovo.background.'),
|
|
33
34
|
},
|
|
34
35
|
border: {
|
|
35
36
|
objectName: 'borderColor',
|
package/stack/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/stack.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/stack.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/stack.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/surface-provider.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/surface-provider.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/surface-provider.d.ts"
|
|
17
10
|
}
|
package/text/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/text.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/text.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/text.d.ts"
|
|
17
10
|
}
|
package/types/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/types.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/types.d.ts"
|
|
17
10
|
}
|
package/xcss/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/xcss.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/xcss.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/xcss.d.ts"
|
|
17
10
|
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from 'react';
|
|
6
|
-
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { type RouterLinkComponentProps } from '@atlaskit/app-provider';
|
|
8
|
-
import type { BasePrimitiveProps, StyleProp } from './types';
|
|
9
|
-
type BaseAnchorProps = {
|
|
10
|
-
/**
|
|
11
|
-
* Elements to be rendered inside the Anchor.
|
|
12
|
-
*/
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Handler called on click. The second argument provides an Atlaskit UI analytics event that can be fired to a listening channel. See the ['analytics-next' package](https://atlaskit.atlassian.com/packages/analytics/analytics-next) documentation for more information.
|
|
16
|
-
*/
|
|
17
|
-
onClick?: (e: React.MouseEvent<HTMLAnchorElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
18
|
-
/**
|
|
19
|
-
* An optional name used to identify events for [React UFO (Unified Frontend Observability) press interactions](https://developer.atlassian.com/platform/ufo/react-ufo/react-ufo/getting-started/#quick-start--press-interactions). For more information, see [React UFO integration into Design System components](https://go.atlassian.com/react-ufo-dst-integration).
|
|
20
|
-
*/
|
|
21
|
-
interactionName?: string;
|
|
22
|
-
/**
|
|
23
|
-
* An optional component name used to identify this component in Atlaskit analytics events. This can be used if a parent component's name is preferred over the default 'Anchor'.
|
|
24
|
-
*/
|
|
25
|
-
componentName?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Additional information to be included in the `context` of Atlaskit analytics events that come from anchor.
|
|
28
|
-
*/
|
|
29
|
-
analyticsContext?: Record<string, any>;
|
|
30
|
-
/**
|
|
31
|
-
* Override the default text to signify that a link opens in a new window.
|
|
32
|
-
* This is appended to the `aria-label` attribute when the `target` prop is set to `_blank`.
|
|
33
|
-
*/
|
|
34
|
-
newWindowLabel?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Forwarded ref.
|
|
37
|
-
*/
|
|
38
|
-
ref?: Ref<HTMLAnchorElement>;
|
|
39
|
-
};
|
|
40
|
-
export type AnchorProps<RouterLinkConfig extends Record<string, any> = never> = RouterLinkComponentProps<RouterLinkConfig> & Omit<ComponentPropsWithoutRef<'a'>, 'href' | 'onClick' | 'style' | 'className'> & BasePrimitiveProps & StyleProp & BaseAnchorProps;
|
|
41
|
-
/**
|
|
42
|
-
* __Anchor__
|
|
43
|
-
*
|
|
44
|
-
* A primitive for building custom anchor links.
|
|
45
|
-
*
|
|
46
|
-
* - [Examples](https://atlassian.design/components/primitives/anchor/examples)
|
|
47
|
-
* - [Code](https://atlassian.design/components/primitives/anchor/code)
|
|
48
|
-
* - [Usage](https://atlassian.design/components/primitives/anchor/usage)
|
|
49
|
-
*/
|
|
50
|
-
declare const AnchorNoRef: <RouterLinkConfig extends Record<string, any> = never>({ href, children, onClick: providedOnClick, interactionName, componentName, analyticsContext, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, style, target, testId, xcss, newWindowLabel, ...htmlAttributes }: AnchorProps<RouterLinkConfig>, ref?: Ref<HTMLAnchorElement>) => JSX.Element;
|
|
51
|
-
/**
|
|
52
|
-
* __Anchor__
|
|
53
|
-
*
|
|
54
|
-
* Anchor is a primitive for building custom anchor links. It's a wrapper around the HTML `<a>` element that provides a consistent API for handling client-side routing and Atlassian Design System styling.
|
|
55
|
-
*
|
|
56
|
-
* - [Examples](https://atlassian.design/components/primitives/anchor/examples)
|
|
57
|
-
* - [Code](https://atlassian.design/components/primitives/anchor/code)
|
|
58
|
-
* - [Usage](https://atlassian.design/components/primitives/anchor/usage)
|
|
59
|
-
*/
|
|
60
|
-
declare const Anchor: <RouterLinkConfig extends Record<string, any> = never>(props: AnchorProps<RouterLinkConfig> & {
|
|
61
|
-
ref?: Ref<HTMLAnchorElement>;
|
|
62
|
-
}) => ReturnType<typeof AnchorNoRef>;
|
|
63
|
-
export default Anchor;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React, { type ReactNode } from 'react';
|
|
6
|
-
import type { BasePrimitiveProps, BleedSpaceToken } from './types';
|
|
7
|
-
export type BleedProps = {
|
|
8
|
-
/**
|
|
9
|
-
* Elements to be rendered inside the Flex.
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Bleed along both axis.
|
|
14
|
-
*/
|
|
15
|
-
all?: BleedSpaceToken;
|
|
16
|
-
/**
|
|
17
|
-
* Bleed along the inline axis.
|
|
18
|
-
*/
|
|
19
|
-
inline?: BleedSpaceToken;
|
|
20
|
-
/**
|
|
21
|
-
* Bleed along the block axis
|
|
22
|
-
*/
|
|
23
|
-
block?: BleedSpaceToken;
|
|
24
|
-
} & BasePrimitiveProps;
|
|
25
|
-
/**
|
|
26
|
-
* __Bleed__
|
|
27
|
-
*
|
|
28
|
-
* `Bleed` is a primitive layout component that controls negative whitespace.
|
|
29
|
-
*
|
|
30
|
-
* - [Examples](https://atlassian.design/components/primitives/bleed/examples)
|
|
31
|
-
* - [Code](https://atlassian.design/components/primitives/bleed/code)
|
|
32
|
-
*/
|
|
33
|
-
declare const Bleed: React.MemoExoticComponent<({ children, testId, inline, block, all, xcss }: BleedProps) => JSX.Element>;
|
|
34
|
-
export default Bleed;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from 'react';
|
|
6
|
-
import { type StrictXCSSProp, type XCSSAllProperties, type XCSSAllPseudos } from '@atlaskit/css';
|
|
7
|
-
import type { BackgroundColorToken, SVGElements } from '../../utils/types';
|
|
8
|
-
import type { BasePrimitiveProps, PaddingToken, StyleProp, SurfaceColorToken } from './types';
|
|
9
|
-
type AllowedElements = Exclude<keyof JSX.IntrinsicElements, SVGElements | 'button' | 'a'>;
|
|
10
|
-
type CustomElementType<P = any> = {
|
|
11
|
-
[K in AllowedElements]: P extends JSX.IntrinsicElements[K] ? K : never;
|
|
12
|
-
}[AllowedElements];
|
|
13
|
-
export type BoxProps<T extends CustomElementType> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className'> & Omit<BasePrimitiveProps, 'xcss' | 'style'> & BaseBoxProps<T>;
|
|
14
|
-
type BaseBoxProps<T extends CustomElementType> = {
|
|
15
|
-
/**
|
|
16
|
-
* The DOM element to render as the Box.
|
|
17
|
-
* - This cannot be any SVG-related element such as `'svg'`, `'animate', `'circle'`, and many more
|
|
18
|
-
* - This cannot be a `'a'` (use the `Anchor` primitive instead)
|
|
19
|
-
* - This cannot be a `'button'` (use the `Anchor` primitive instead)
|
|
20
|
-
* @default 'div'
|
|
21
|
-
*/
|
|
22
|
-
as?: T;
|
|
23
|
-
/**
|
|
24
|
-
* Elements to be rendered inside the Box.
|
|
25
|
-
*/
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Token representing background color with a built-in fallback value.
|
|
29
|
-
*/
|
|
30
|
-
backgroundColor?: SurfaceColorToken | BackgroundColorToken;
|
|
31
|
-
/**
|
|
32
|
-
* Tokens representing CSS shorthand for `paddingBlock` and `paddingInline` together.
|
|
33
|
-
*
|
|
34
|
-
* @see paddingBlock
|
|
35
|
-
* @see paddingInline
|
|
36
|
-
* @private
|
|
37
|
-
* @deprecated – Do not use shorthand props, use `props.xcss` instead as these will be deprecated in the future.
|
|
38
|
-
*/
|
|
39
|
-
padding?: PaddingToken;
|
|
40
|
-
/**
|
|
41
|
-
* Tokens representing CSS shorthand `paddingBlock`.
|
|
42
|
-
*
|
|
43
|
-
* @see paddingBlockStart
|
|
44
|
-
* @see paddingBlockEnd
|
|
45
|
-
* @private
|
|
46
|
-
* @deprecated – Do not use shorthand props, use `props.xcss` instead as these will be deprecated in the future.
|
|
47
|
-
*/
|
|
48
|
-
paddingBlock?: PaddingToken;
|
|
49
|
-
/**
|
|
50
|
-
* Tokens representing CSS `paddingBlockStart`.
|
|
51
|
-
* @private
|
|
52
|
-
* @deprecated – Do not use shorthand props, use `props.xcss` instead as these will be deprecated in the future.
|
|
53
|
-
*/
|
|
54
|
-
paddingBlockStart?: PaddingToken;
|
|
55
|
-
/**
|
|
56
|
-
* Tokens representing CSS `paddingBlockEnd`.
|
|
57
|
-
* @private
|
|
58
|
-
* @deprecated – Do not use shorthand props, use `props.xcss` instead as these will be deprecated in the future.
|
|
59
|
-
*/
|
|
60
|
-
paddingBlockEnd?: PaddingToken;
|
|
61
|
-
/**
|
|
62
|
-
* Tokens representing CSS shorthand `paddingInline`.
|
|
63
|
-
* @private
|
|
64
|
-
* @deprecated – Do not use shorthand props, use `props.xcss` instead as these will be deprecated in the future.
|
|
65
|
-
*
|
|
66
|
-
* @see paddingInlineStart
|
|
67
|
-
* @see paddingInlineEnd
|
|
68
|
-
*/
|
|
69
|
-
paddingInline?: PaddingToken;
|
|
70
|
-
/**
|
|
71
|
-
* Tokens representing CSS `paddingInlineStart`.
|
|
72
|
-
* @private
|
|
73
|
-
* @deprecated – Do not use shorthand props, use `props.xcss` instead as these will be deprecated in the future.
|
|
74
|
-
*/
|
|
75
|
-
paddingInlineStart?: PaddingToken;
|
|
76
|
-
/**
|
|
77
|
-
* Tokens representing CSS `paddingInlineEnd`.
|
|
78
|
-
* @private
|
|
79
|
-
* @deprecated – Do not use shorthand props, use `props.xcss` instead as these will be deprecated in the future.
|
|
80
|
-
*/
|
|
81
|
-
paddingInlineEnd?: PaddingToken;
|
|
82
|
-
/**
|
|
83
|
-
* Forwarded ref.
|
|
84
|
-
*/
|
|
85
|
-
ref?: ComponentPropsWithRef<T>['ref'];
|
|
86
|
-
/**
|
|
87
|
-
* Inline styles to be applied to the Box. Only apply as a last resort, or where
|
|
88
|
-
* styles cannot otherwise be calculated outside of the runtime of the component they're applied.
|
|
89
|
-
*/
|
|
90
|
-
style?: Omit<StyleProp['style'], 'background' | 'backgroundColor'>;
|
|
91
|
-
/**
|
|
92
|
-
* Apply a subset of permitted styles powered by Atlassian Design System design tokens.
|
|
93
|
-
* It's preferred you do not use `background` in `xcss` or `cssMap()` and instead use `props.backgroundColor` for surface awareness.
|
|
94
|
-
*/
|
|
95
|
-
xcss?: StrictXCSSProp<Exclude<XCSSAllProperties, 'background'>, XCSSAllPseudos>;
|
|
96
|
-
};
|
|
97
|
-
type BoxComponent = <T extends CustomElementType>(props: BoxProps<T>) => ReactElement | null;
|
|
98
|
-
/**
|
|
99
|
-
* __Box__
|
|
100
|
-
*
|
|
101
|
-
* A Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
|
|
102
|
-
* Renders a `div` by default.
|
|
103
|
-
*
|
|
104
|
-
* - [Examples](https://atlassian.design/components/primitives/box/examples)
|
|
105
|
-
* - [Code](https://atlassian.design/components/primitives/box/code)
|
|
106
|
-
* - [Usage](https://atlassian.design/components/primitives/box/usage)
|
|
107
|
-
*/
|
|
108
|
-
declare const Box: BoxComponent;
|
|
109
|
-
export default Box;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type AriaAttributes, type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
|
|
6
|
-
import type { AlignItems, BasePrimitiveProps, Direction, GapToken, JustifyContent, Wrap } from './types';
|
|
7
|
-
export type FlexProps<T extends ElementType = 'div'> = {
|
|
8
|
-
/**
|
|
9
|
-
* The DOM element to render as the Flex. Defaults to `div`.
|
|
10
|
-
*/
|
|
11
|
-
as?: 'div' | 'span' | 'ul' | 'ol' | 'li' | 'dl';
|
|
12
|
-
/**
|
|
13
|
-
* Used to align children along the main axis.
|
|
14
|
-
*/
|
|
15
|
-
justifyContent?: JustifyContent;
|
|
16
|
-
/**
|
|
17
|
-
* Used to align children along the cross axis.
|
|
18
|
-
*/
|
|
19
|
-
alignItems?: AlignItems;
|
|
20
|
-
/**
|
|
21
|
-
* Represents the space between each child.
|
|
22
|
-
*/
|
|
23
|
-
columnGap?: GapToken;
|
|
24
|
-
/**
|
|
25
|
-
* Represents the space between each child.
|
|
26
|
-
*/
|
|
27
|
-
gap?: GapToken;
|
|
28
|
-
/**
|
|
29
|
-
* Represents the space between each child.
|
|
30
|
-
*/
|
|
31
|
-
rowGap?: GapToken;
|
|
32
|
-
/**
|
|
33
|
-
* Represents the flex direction property of CSS flexbox.
|
|
34
|
-
*/
|
|
35
|
-
direction?: Direction;
|
|
36
|
-
/**
|
|
37
|
-
* Represents the flex wrap property of CSS flexbox.
|
|
38
|
-
*/
|
|
39
|
-
wrap?: Wrap;
|
|
40
|
-
/**
|
|
41
|
-
* Elements to be rendered inside the Flex.
|
|
42
|
-
*/
|
|
43
|
-
children: ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Forwarded ref element.
|
|
46
|
-
*/
|
|
47
|
-
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
48
|
-
} & BasePrimitiveProps & AriaAttributes;
|
|
49
|
-
/**
|
|
50
|
-
* __Flex__
|
|
51
|
-
*
|
|
52
|
-
* `Flex` is a primitive component that implements the CSS Flexbox API.
|
|
53
|
-
*
|
|
54
|
-
* - [Examples](https://atlassian.design/components/primitives/flex/examples)
|
|
55
|
-
* - [Code](https://atlassian.design/components/primitives/flex/code)
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```tsx
|
|
59
|
-
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
60
|
-
* import { Flex, Box } from '@atlaskit/primitives'
|
|
61
|
-
*
|
|
62
|
-
* const Component = () => (
|
|
63
|
-
* <Flex direction="column">
|
|
64
|
-
* <Box padding="space.100" backgroundColor="neutral"></Box>
|
|
65
|
-
* <Box padding="space.100" backgroundColor="neutral"></Box>
|
|
66
|
-
* </Flex>
|
|
67
|
-
* )
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
declare const Flex: MemoExoticComponent<ForwardRefExoticComponent<Omit<FlexProps<ElementType>, 'ref'> & RefAttributes<any>>>;
|
|
71
|
-
export default Flex;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from 'react';
|
|
6
|
-
import type { BasePrimitiveProps, StyleProp } from '../components/types';
|
|
7
|
-
type AllowedElements = Exclude<keyof JSX.IntrinsicElements, 'button' | 'a'>;
|
|
8
|
-
type CustomElement<P = any> = {
|
|
9
|
-
[K in AllowedElements]: P extends JSX.IntrinsicElements[K] ? K : never;
|
|
10
|
-
}[AllowedElements];
|
|
11
|
-
export type FocusableProps<T extends CustomElement> = Omit<ComponentPropsWithoutRef<T>, keyof BaseFocusableProps<T> | 'className' | 'style'> & BasePrimitiveProps & StyleProp & BaseFocusableProps<T>;
|
|
12
|
-
type BaseFocusableProps<T extends CustomElement> = {
|
|
13
|
-
/**
|
|
14
|
-
* The DOM element to render as the Focusable element.
|
|
15
|
-
* @default 'button'
|
|
16
|
-
*/
|
|
17
|
-
as?: T;
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Controls whether the focus ring should be applied around or within the composed element.
|
|
21
|
-
*/
|
|
22
|
-
isInset?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Forwarded ref.
|
|
25
|
-
*/
|
|
26
|
-
ref?: ComponentPropsWithRef<T>['ref'];
|
|
27
|
-
};
|
|
28
|
-
type FocusableComponent = <T extends CustomElement>(props: FocusableProps<T>) => ReactElement;
|
|
29
|
-
/**
|
|
30
|
-
* __Focus ring__
|
|
31
|
-
*
|
|
32
|
-
* A focus ring visually indicates the currently focused item.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
declare const Focusable: FocusableComponent;
|
|
36
|
-
export default Focusable;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
|
|
6
|
-
import type { AlignContent, AlignItems, AutoFlow, BasePrimitiveProps, GapToken, JustifyContent, JustifyItems } from './types';
|
|
7
|
-
export type GridProps<T extends ElementType = 'div'> = {
|
|
8
|
-
/**
|
|
9
|
-
* The DOM element to render as the Flex. Defaults to `div`.
|
|
10
|
-
*/
|
|
11
|
-
as?: 'div' | 'span' | 'ul' | 'ol';
|
|
12
|
-
/**
|
|
13
|
-
* Used to align children along the inline axis.
|
|
14
|
-
*/
|
|
15
|
-
justifyContent?: JustifyContent;
|
|
16
|
-
/**
|
|
17
|
-
* Used to align the grid along the inline axis.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated This prop is not hooked up and doesn't nothing!
|
|
20
|
-
*/
|
|
21
|
-
justifyItems?: JustifyItems;
|
|
22
|
-
/**
|
|
23
|
-
* Used to align children along the block axis.
|
|
24
|
-
*/
|
|
25
|
-
alignItems?: AlignItems;
|
|
26
|
-
/**
|
|
27
|
-
* Used to align the grid along the block axis.
|
|
28
|
-
*/
|
|
29
|
-
alignContent?: AlignContent;
|
|
30
|
-
/**
|
|
31
|
-
* Represents the space between each column.
|
|
32
|
-
*/
|
|
33
|
-
columnGap?: GapToken;
|
|
34
|
-
/**
|
|
35
|
-
* Represents the space between each child across both axes.
|
|
36
|
-
*/
|
|
37
|
-
gap?: GapToken;
|
|
38
|
-
/**
|
|
39
|
-
* Represents the space between each row.
|
|
40
|
-
*/
|
|
41
|
-
rowGap?: GapToken;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies how auto-placed items get flowed into the grid. CSS `grid-auto-flow`.
|
|
44
|
-
*/
|
|
45
|
-
autoFlow?: AutoFlow;
|
|
46
|
-
/**
|
|
47
|
-
* Elements to be rendered inside the grid. Required as a grid without children should not be a grid.
|
|
48
|
-
*/
|
|
49
|
-
children: ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* HTML id attrubute.
|
|
52
|
-
*/
|
|
53
|
-
id?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Forwarded ref element.
|
|
56
|
-
*/
|
|
57
|
-
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
58
|
-
} & BasePrimitiveProps;
|
|
59
|
-
/**
|
|
60
|
-
* __Grid__
|
|
61
|
-
*
|
|
62
|
-
* `Grid` is a primitive component that implements the CSS Grid API.
|
|
63
|
-
*
|
|
64
|
-
* - [Examples](https://atlassian.design/components/primitives/grid/examples)
|
|
65
|
-
* - [Code](https://atlassian.design/components/primitives/grid/code)
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```tsx
|
|
69
|
-
* import { Grid, Box } from '@atlaskit/primitives'
|
|
70
|
-
*
|
|
71
|
-
* const Component = () => (
|
|
72
|
-
* <Grid gap="space.100" gridColumns="1fr 1fr">
|
|
73
|
-
* <Box padding="space.100" backgroundColor="neutral"></Box>
|
|
74
|
-
* <Box padding="space.100" backgroundColor="neutral"></Box>
|
|
75
|
-
* </Grid>
|
|
76
|
-
* )
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
declare const Grid: MemoExoticComponent<ForwardRefExoticComponent<Omit<GridProps<ElementType>, 'ref'> & RefAttributes<any>>>;
|
|
80
|
-
export default Grid;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type AriaAttributes, type ElementType, type ForwardRefExoticComponent, type MemoExoticComponent, type ReactNode, type RefAttributes } from 'react';
|
|
6
|
-
import { type FlexProps } from './flex';
|
|
7
|
-
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
8
|
-
export type InlineProps<T extends ElementType = 'div'> = {
|
|
9
|
-
/**
|
|
10
|
-
* The DOM element to render as the Inline. Defaults to `div`.
|
|
11
|
-
*/
|
|
12
|
-
as?: 'div' | 'span' | 'ul' | 'ol' | 'li' | 'dl';
|
|
13
|
-
/**
|
|
14
|
-
* Used to align children along the block axis (typically vertical).
|
|
15
|
-
*/
|
|
16
|
-
alignBlock?: AlignBlock;
|
|
17
|
-
/**
|
|
18
|
-
* Used to align children along the inline axis (typically horizontal).
|
|
19
|
-
*/
|
|
20
|
-
alignInline?: AlignInline;
|
|
21
|
-
/**
|
|
22
|
-
* Used to set whether children are forced onto one line or will wrap onto multiple lines.
|
|
23
|
-
*/
|
|
24
|
-
shouldWrap?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Used to distribute the children along the main axis.
|
|
27
|
-
*/
|
|
28
|
-
spread?: Spread;
|
|
29
|
-
/**
|
|
30
|
-
* Used to set whether the container should grow to fill the available space.
|
|
31
|
-
*/
|
|
32
|
-
grow?: Grow;
|
|
33
|
-
/**
|
|
34
|
-
* Represents the space between each child.
|
|
35
|
-
*/
|
|
36
|
-
space?: FlexProps['gap'];
|
|
37
|
-
/**
|
|
38
|
-
* Represents the space between rows when content wraps.
|
|
39
|
-
* Used to override the `space` value in between rows.
|
|
40
|
-
*/
|
|
41
|
-
rowSpace?: FlexProps['rowGap'];
|
|
42
|
-
/**
|
|
43
|
-
* Renders a separator string between each child. Avoid using `separator="•"` when `as="ul" | "ol" | "dl"` to preserve proper list semantics.
|
|
44
|
-
*/
|
|
45
|
-
separator?: ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* Elements to be rendered inside the Inline.
|
|
48
|
-
*/
|
|
49
|
-
children: ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Forwarded ref element.
|
|
52
|
-
*/
|
|
53
|
-
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
54
|
-
} & BasePrimitiveProps & AriaAttributes;
|
|
55
|
-
/**
|
|
56
|
-
* __Inline__
|
|
57
|
-
*
|
|
58
|
-
* Inline is a primitive component based on CSS Flexbox that manages the horizontal layout of direct children.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```tsx
|
|
62
|
-
* <Inline>
|
|
63
|
-
* <Box padding="space.100" backgroundColor="neutral"></Box>
|
|
64
|
-
* <Box padding="space.100" backgroundColor="neutral"></Box>
|
|
65
|
-
* </Inline>
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
declare const Inline: MemoExoticComponent<ForwardRefExoticComponent<Omit<InlineProps<ElementType>, 'ref'> & RefAttributes<any>>>;
|
|
70
|
-
export default Inline;
|