@atlaskit/primitives 13.3.7 → 13.4.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/compiled/components/anchor.js +2 -2
  3. package/dist/cjs/compiled/components/bleed.js +1 -1
  4. package/dist/cjs/compiled/components/box.js +1 -1
  5. package/dist/cjs/compiled/components/flex.js +1 -1
  6. package/dist/cjs/compiled/components/focusable.js +1 -1
  7. package/dist/cjs/compiled/components/grid.js +1 -1
  8. package/dist/cjs/compiled/components/inline.js +1 -1
  9. package/dist/cjs/compiled/components/pressable.js +2 -2
  10. package/dist/cjs/compiled/components/stack.js +1 -1
  11. package/dist/cjs/compiled/components/text.js +1 -1
  12. package/dist/cjs/compiled/responsive/hide.js +1 -1
  13. package/dist/cjs/compiled/responsive/show.js +1 -1
  14. package/dist/cjs/components/anchor.js +1 -1
  15. package/dist/cjs/components/pressable.js +1 -1
  16. package/dist/es2019/compiled/components/anchor.js +2 -2
  17. package/dist/es2019/compiled/components/bleed.js +1 -1
  18. package/dist/es2019/compiled/components/box.js +1 -1
  19. package/dist/es2019/compiled/components/flex.js +1 -1
  20. package/dist/es2019/compiled/components/focusable.js +1 -1
  21. package/dist/es2019/compiled/components/grid.js +1 -1
  22. package/dist/es2019/compiled/components/inline.js +1 -1
  23. package/dist/es2019/compiled/components/pressable.js +2 -2
  24. package/dist/es2019/compiled/components/stack.js +1 -1
  25. package/dist/es2019/compiled/components/text.js +1 -1
  26. package/dist/es2019/compiled/responsive/hide.js +1 -1
  27. package/dist/es2019/compiled/responsive/show.js +1 -1
  28. package/dist/es2019/components/anchor.js +1 -1
  29. package/dist/es2019/components/pressable.js +1 -1
  30. package/dist/esm/compiled/components/anchor.js +2 -2
  31. package/dist/esm/compiled/components/bleed.js +1 -1
  32. package/dist/esm/compiled/components/box.js +1 -1
  33. package/dist/esm/compiled/components/flex.js +1 -1
  34. package/dist/esm/compiled/components/focusable.js +1 -1
  35. package/dist/esm/compiled/components/grid.js +1 -1
  36. package/dist/esm/compiled/components/inline.js +1 -1
  37. package/dist/esm/compiled/components/pressable.js +2 -2
  38. package/dist/esm/compiled/components/stack.js +1 -1
  39. package/dist/esm/compiled/components/text.js +1 -1
  40. package/dist/esm/compiled/responsive/hide.js +1 -1
  41. package/dist/esm/compiled/responsive/show.js +1 -1
  42. package/dist/esm/components/anchor.js +1 -1
  43. package/dist/esm/components/pressable.js +1 -1
  44. package/dist/types/compiled/components/flex.d.ts +1 -42
  45. package/dist/types/compiled/components/grid.d.ts +1 -52
  46. package/dist/types/compiled/components/inline.d.ts +1 -47
  47. package/dist/types/compiled/components/pressable.d.ts +1 -1
  48. package/dist/types/compiled/components/stack.d.ts +1 -34
  49. package/dist/types/compiled/components/text.d.ts +1 -1
  50. package/dist/types/components/flex.d.ts +1 -42
  51. package/dist/types/components/grid.d.ts +1 -64
  52. package/dist/types/components/inline.d.ts +1 -47
  53. package/dist/types/components/pressable.d.ts +1 -1
  54. package/dist/types/components/stack.d.ts +1 -34
  55. package/dist/types/components/text.d.ts +1 -1
  56. package/dist/types/responsive/show.d.ts +2 -3
  57. package/dist/types-ts4.5/compiled/components/flex.d.ts +1 -42
  58. package/dist/types-ts4.5/compiled/components/grid.d.ts +1 -52
  59. package/dist/types-ts4.5/compiled/components/inline.d.ts +1 -47
  60. package/dist/types-ts4.5/compiled/components/pressable.d.ts +1 -1
  61. package/dist/types-ts4.5/compiled/components/stack.d.ts +1 -34
  62. package/dist/types-ts4.5/compiled/components/text.d.ts +1 -1
  63. package/dist/types-ts4.5/components/flex.d.ts +1 -42
  64. package/dist/types-ts4.5/components/grid.d.ts +1 -64
  65. package/dist/types-ts4.5/components/inline.d.ts +1 -47
  66. package/dist/types-ts4.5/components/pressable.d.ts +1 -1
  67. package/dist/types-ts4.5/components/stack.d.ts +1 -34
  68. package/dist/types-ts4.5/components/text.d.ts +1 -1
  69. package/dist/types-ts4.5/responsive/show.d.ts +2 -3
  70. package/package.json +13 -14
@@ -87,5 +87,5 @@ export declare const inverseColorMap: {
87
87
  *
88
88
  * @internal
89
89
  */
90
- declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "children" | "size" | "weight" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
90
+ declare const Text: import("react").ForwardRefExoticComponent<Omit<TextProps<ElementType>, "ref"> & import("react").RefAttributes<any>>;
91
91
  export default Text;
@@ -95,46 +95,5 @@ declare const alignItemsMap: {
95
95
  * )
96
96
  * ```
97
97
  */
98
- declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
99
- /**
100
- * The DOM element to render as the Flex. Defaults to `div`.
101
- */
102
- as?: "div" | "dl" | "li" | "ol" | "span" | "ul" | undefined;
103
- /**
104
- * Used to align children along the main axis.
105
- */
106
- justifyContent?: "center" | "space-around" | "space-between" | "space-evenly" | "stretch" | "end" | "start" | undefined;
107
- /**
108
- * Used to align children along the cross axis.
109
- */
110
- alignItems?: "center" | "stretch" | "end" | "start" | "baseline" | undefined;
111
- /**
112
- * Represents the space between each child.
113
- */
114
- columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
115
- /**
116
- * Represents the space between each child.
117
- */
118
- gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
119
- /**
120
- * Represents the space between each child.
121
- */
122
- rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
123
- /**
124
- * Represents the flex direction property of CSS flexbox.
125
- */
126
- direction?: "column" | "row" | undefined;
127
- /**
128
- * Represents the flex wrap property of CSS flexbox.
129
- */
130
- wrap?: "nowrap" | "wrap" | undefined;
131
- /**
132
- * Elements to be rendered inside the Flex.
133
- */
134
- children: ReactNode;
135
- /**
136
- * Forwarded ref element.
137
- */
138
- ref?: any;
139
- } & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignItems" | "direction" | "justifyContent" | "children" | "wrap" | "as" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
98
+ declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
140
99
  export default Flex;
@@ -131,68 +131,5 @@ declare const gridAutoFlowMap: {
131
131
  * )
132
132
  * ```
133
133
  */
134
- declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
135
- /**
136
- * The DOM element to render as the Flex. Defaults to `div`.
137
- */
138
- as?: "div" | "ol" | "span" | "ul" | undefined;
139
- /**
140
- * Used to align children along the inline axis.
141
- */
142
- justifyContent?: "center" | "space-around" | "space-between" | "space-evenly" | "stretch" | "end" | "start" | undefined;
143
- /**
144
- * Used to align the grid along the inline axis.
145
- */
146
- justifyItems?: "center" | "stretch" | "end" | "start" | undefined;
147
- /**
148
- * Used to align children along the block axis.
149
- */
150
- alignItems?: "center" | "end" | "start" | "baseline" | undefined;
151
- /**
152
- * Used to align the grid along the block axis.
153
- */
154
- alignContent?: "center" | "space-around" | "space-between" | "space-evenly" | "stretch" | "end" | "start" | undefined;
155
- /**
156
- * Represents the space between each column.
157
- */
158
- columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
159
- /**
160
- * Represents the space between each child across both axes.
161
- */
162
- gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
163
- /**
164
- * Represents the space between each row.
165
- */
166
- rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
167
- /**
168
- * Specifies how auto-placed items get flowed into the grid. CSS `grid-auto-flow`.
169
- */
170
- autoFlow?: "column" | "row" | "dense" | "row dense" | "column dense" | undefined;
171
- /**
172
- * CSS `grid-template-rows`.
173
- */
174
- templateRows?: string | undefined;
175
- /**
176
- * CSS `grid-template-columns`.
177
- */
178
- templateColumns?: string | undefined;
179
- /**
180
- * CSS `grid-template-areas`.
181
- *
182
- * Each item in the passed array is a grid row.
183
- */
184
- templateAreas?: string[] | undefined;
185
- /**
186
- * Elements to be rendered inside the grid. Required as a grid without children should not be a grid.
187
- */
188
- children: ReactNode;
189
- /**
190
- * HTML id attrubute.
191
- */
192
- id?: string | undefined;
193
- /**
194
- * Forwarded ref element.
195
- */
196
- ref?: any;
197
- } & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignContent" | "alignItems" | "justifyContent" | "justifyItems" | "children" | "as" | "id" | keyof BasePrimitiveProps | "autoFlow" | "templateAreas" | "templateRows" | "templateColumns"> & import("react").RefAttributes<any>>>;
134
+ declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<GridProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
198
135
  export default Grid;
@@ -66,51 +66,5 @@ export type InlineProps<T extends ElementType = 'div'> = {
66
66
  * ```
67
67
  *
68
68
  */
69
- declare const Inline: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<{
70
- /**
71
- * The DOM element to render as the Inline. Defaults to `div`.
72
- */
73
- as?: "div" | "dl" | "li" | "ol" | "span" | "ul" | undefined;
74
- /**
75
- * Used to align children along the block axis (typically vertical).
76
- */
77
- alignBlock?: AlignBlock | undefined;
78
- /**
79
- * Used to align children along the inline axis (typically horizontal).
80
- */
81
- alignInline?: AlignInline | undefined;
82
- /**
83
- * Used to set whether children are forced onto one line or will wrap onto multiple lines.
84
- */
85
- shouldWrap?: boolean | undefined;
86
- /**
87
- * Used to distribute the children along the main axis.
88
- */
89
- spread?: "space-between" | undefined;
90
- /**
91
- * Used to set whether the container should grow to fill the available space.
92
- */
93
- grow?: Grow | undefined;
94
- /**
95
- * Represents the space between each child.
96
- */
97
- space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
98
- /**
99
- * Represents the space between rows when content wraps.
100
- * Used to override the `space` value in between rows.
101
- */
102
- rowSpace?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
103
- /**
104
- * Renders a separator string between each child. Avoid using `separator="•"` when `as="ul" | "ol" | "dl"` to preserve proper list semantics.
105
- */
106
- separator?: React.ReactNode;
107
- /**
108
- * Elements to be rendered inside the Inline.
109
- */
110
- children: ReactNode;
111
- /**
112
- * Forwarded ref element.
113
- */
114
- ref?: any;
115
- } & BasePrimitiveProps, "children" | "space" | "separator" | "as" | keyof BasePrimitiveProps | "alignInline" | "alignBlock" | "shouldWrap" | "spread" | "grow" | "rowSpace"> & React.RefAttributes<any>>>;
69
+ declare const Inline: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<InlineProps<React.ElementType>, "ref"> & React.RefAttributes<any>>>;
116
70
  export default Inline;
@@ -87,5 +87,5 @@ export type PressableProps = Omit<ComponentPropsWithoutRef<'button'>, 'disabled'
87
87
  * - [Code](https://atlassian.design/components/primitives/pressable/code)
88
88
  * - [Usage](https://atlassian.design/components/primitives/pressable/usage)
89
89
  */
90
- declare const Pressable: import("react").ForwardRefExoticComponent<Pick<Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, "style" | "disabled" | "className" | "onClick"> & BasePrimitiveProps & StyleProp & BasePressableProps, "padding" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "backgroundColor" | "color" | "translate" | "value" | "children" | "hidden" | "key" | "style" | "form" | "slot" | "title" | "name" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | keyof BasePrimitiveProps | "isDisabled" | "interactionName" | "componentName" | "analyticsContext"> & import("react").RefAttributes<HTMLButtonElement>>;
90
+ declare const Pressable: import("react").ForwardRefExoticComponent<Omit<PressableProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
91
91
  export default Pressable;
@@ -53,38 +53,5 @@ export type StackProps<T extends ElementType = 'div'> = {
53
53
  * ```
54
54
  *
55
55
  */
56
- declare const Stack: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
57
- /**
58
- * The DOM element to render as the Stack. Defaults to `div`.
59
- */
60
- as?: "div" | "dl" | "ol" | "span" | "ul" | undefined;
61
- /**
62
- * Used to align children along the block axis (typically vertical).
63
- */
64
- alignBlock?: "center" | "stretch" | "end" | "start" | undefined;
65
- /**
66
- * Used to align children along the inline axis (typically horizontal).
67
- */
68
- alignInline?: AlignInline | undefined;
69
- /**
70
- * Used to distribute the children along the main axis.
71
- */
72
- spread?: "space-between" | undefined;
73
- /**
74
- * Used to set whether the container should grow to fill the available space.
75
- */
76
- grow?: Grow | undefined;
77
- /**
78
- * Represents the space between each child.
79
- */
80
- space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
81
- /**
82
- * Elements to be rendered inside the Stack.
83
- */
84
- children: ReactNode;
85
- /**
86
- * Forwarded ref element.
87
- */
88
- ref?: any;
89
- } & BasePrimitiveProps, "children" | "space" | "as" | keyof BasePrimitiveProps | "alignInline" | "alignBlock" | "spread" | "grow"> & import("react").RefAttributes<any>>>;
56
+ declare const Stack: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<StackProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
90
57
  export default Stack;
@@ -65,5 +65,5 @@ declare const textAlignMap: {
65
65
  *
66
66
  * @internal
67
67
  */
68
- declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "children" | "size" | "weight" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
68
+ declare const Text: import("react").ForwardRefExoticComponent<Omit<TextProps<ElementType>, "ref"> & import("react").RefAttributes<any>>;
69
69
  export default Text;
@@ -2,8 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
5
+ import { type ReactElement, type ReactNode } from 'react';
7
6
  import { type BasePrimitiveProps } from '../components/types';
8
7
  import type { Breakpoint } from './types';
9
8
  type As = 'article' | 'aside' | 'dialog' | 'div' | 'footer' | 'header' | 'li' | 'main' | 'nav' | 'ol' | 'section' | 'span' | 'ul';
@@ -37,5 +36,5 @@ type ResponsiveShowProps = {
37
36
  * - This only uses `display: none` and `display: revert` to show/hide, it does not skip rendering of children trees.
38
37
  * - As this is rendered at all times, there is little performance savings here (just that this is not painted).
39
38
  */
40
- export declare const Show: ({ above, below, children, as: AsElement, xcss, }: ResponsiveShowProps) => jsx.JSX.Element;
39
+ export declare const Show: ({ above, below, children, as: AsElement, xcss, }: ResponsiveShowProps) => ReactElement<ResponsiveShowProps>;
41
40
  export {};
@@ -66,46 +66,5 @@ export type FlexProps<T extends ElementType = 'div'> = {
66
66
  * )
67
67
  * ```
68
68
  */
69
- declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
70
- /**
71
- * The DOM element to render as the Flex. Defaults to `div`.
72
- */
73
- as?: "div" | "dl" | "li" | "ol" | "span" | "ul" | undefined;
74
- /**
75
- * Used to align children along the main axis.
76
- */
77
- justifyContent?: JustifyContent | undefined;
78
- /**
79
- * Used to align children along the cross axis.
80
- */
81
- alignItems?: AlignItems | undefined;
82
- /**
83
- * Represents the space between each child.
84
- */
85
- columnGap?: import("./types").PositiveSpaceToken | undefined;
86
- /**
87
- * Represents the space between each child.
88
- */
89
- gap?: import("./types").PositiveSpaceToken | undefined;
90
- /**
91
- * Represents the space between each child.
92
- */
93
- rowGap?: import("./types").PositiveSpaceToken | undefined;
94
- /**
95
- * Represents the flex direction property of CSS flexbox.
96
- */
97
- direction?: Direction | undefined;
98
- /**
99
- * Represents the flex wrap property of CSS flexbox.
100
- */
101
- wrap?: Wrap | undefined;
102
- /**
103
- * Elements to be rendered inside the Flex.
104
- */
105
- children: ReactNode;
106
- /**
107
- * Forwarded ref element.
108
- */
109
- ref?: any;
110
- } & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignItems" | "direction" | "justifyContent" | "children" | "wrap" | "as" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
69
+ declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
111
70
  export default Flex;
@@ -76,56 +76,5 @@ export type GridProps<T extends ElementType = 'div'> = {
76
76
  * )
77
77
  * ```
78
78
  */
79
- declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
80
- /**
81
- * The DOM element to render as the Flex. Defaults to `div`.
82
- */
83
- as?: "div" | "ol" | "span" | "ul" | undefined;
84
- /**
85
- * Used to align children along the inline axis.
86
- */
87
- justifyContent?: JustifyContent | undefined;
88
- /**
89
- * Used to align the grid along the inline axis.
90
- *
91
- * @deprecated This prop is not hooked up and doesn't nothing!
92
- */
93
- justifyItems?: JustifyItems | undefined;
94
- /**
95
- * Used to align children along the block axis.
96
- */
97
- alignItems?: AlignItems | undefined;
98
- /**
99
- * Used to align the grid along the block axis.
100
- */
101
- alignContent?: AlignContent | undefined;
102
- /**
103
- * Represents the space between each column.
104
- */
105
- columnGap?: import("./types").PositiveSpaceToken | undefined;
106
- /**
107
- * Represents the space between each child across both axes.
108
- */
109
- gap?: import("./types").PositiveSpaceToken | undefined;
110
- /**
111
- * Represents the space between each row.
112
- */
113
- rowGap?: import("./types").PositiveSpaceToken | undefined;
114
- /**
115
- * Specifies how auto-placed items get flowed into the grid. CSS `grid-auto-flow`.
116
- */
117
- autoFlow?: AutoFlow | undefined;
118
- /**
119
- * Elements to be rendered inside the grid. Required as a grid without children should not be a grid.
120
- */
121
- children: ReactNode;
122
- /**
123
- * HTML id attrubute.
124
- */
125
- id?: string | undefined;
126
- /**
127
- * Forwarded ref element.
128
- */
129
- ref?: any;
130
- } & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignContent" | "alignItems" | "justifyContent" | "justifyItems" | "children" | "as" | "id" | "autoFlow" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
79
+ declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<GridProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
131
80
  export default Grid;
@@ -66,51 +66,5 @@ export type InlineProps<T extends ElementType = 'div'> = {
66
66
  * ```
67
67
  *
68
68
  */
69
- declare const Inline: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
70
- /**
71
- * The DOM element to render as the Inline. Defaults to `div`.
72
- */
73
- as?: "div" | "dl" | "li" | "ol" | "span" | "ul" | undefined;
74
- /**
75
- * Used to align children along the block axis (typically vertical).
76
- */
77
- alignBlock?: AlignBlock | undefined;
78
- /**
79
- * Used to align children along the inline axis (typically horizontal).
80
- */
81
- alignInline?: AlignInline | undefined;
82
- /**
83
- * Used to set whether children are forced onto one line or will wrap onto multiple lines.
84
- */
85
- shouldWrap?: boolean | undefined;
86
- /**
87
- * Used to distribute the children along the main axis.
88
- */
89
- spread?: "space-between" | undefined;
90
- /**
91
- * Used to set whether the container should grow to fill the available space.
92
- */
93
- grow?: Grow | undefined;
94
- /**
95
- * Represents the space between each child.
96
- */
97
- space?: FlexProps['gap'];
98
- /**
99
- * Represents the space between rows when content wraps.
100
- * Used to override the `space` value in between rows.
101
- */
102
- rowSpace?: FlexProps['rowGap'];
103
- /**
104
- * Renders a separator string between each child.
105
- */
106
- separator?: string | undefined;
107
- /**
108
- * Elements to be rendered inside the Inline.
109
- */
110
- children: ReactNode;
111
- /**
112
- * Forwarded ref element.
113
- */
114
- ref?: any;
115
- } & BasePrimitiveProps, "children" | "space" | "separator" | "as" | "alignInline" | "alignBlock" | "shouldWrap" | "spread" | "grow" | "rowSpace" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
69
+ declare const Inline: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<InlineProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
116
70
  export default Inline;
@@ -45,5 +45,5 @@ export type PressableProps = Omit<ComponentPropsWithoutRef<'button'>, 'disabled'
45
45
  * - [Code](https://atlassian.design/components/primitives/pressable/code)
46
46
  * - [Usage](https://atlassian.design/components/primitives/pressable/usage)
47
47
  */
48
- declare const Pressable: import("react").ForwardRefExoticComponent<Pick<Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, "style" | "disabled" | "className" | "onClick"> & BasePrimitiveProps & StyleProp & BasePressableProps, "color" | "translate" | "value" | "children" | "hidden" | "key" | "style" | "form" | "slot" | "title" | "name" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "isDisabled" | "interactionName" | "componentName" | "analyticsContext" | keyof BasePrimitiveProps> & import("react").RefAttributes<HTMLButtonElement>>;
48
+ declare const Pressable: import("react").ForwardRefExoticComponent<Omit<PressableProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
49
49
  export default Pressable;
@@ -53,38 +53,5 @@ export type StackProps<T extends ElementType = 'div'> = {
53
53
  * ```
54
54
  *
55
55
  */
56
- declare const Stack: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
57
- /**
58
- * The DOM element to render as the Stack. Defaults to `div`.
59
- */
60
- as?: "div" | "ol" | "span" | "ul" | undefined;
61
- /**
62
- * Used to align children along the block axis (typically vertical).
63
- */
64
- alignBlock?: "center" | "stretch" | "end" | "start" | undefined;
65
- /**
66
- * Used to align children along the inline axis (typically horizontal).
67
- */
68
- alignInline?: AlignInline | undefined;
69
- /**
70
- * Used to distribute the children along the main axis.
71
- */
72
- spread?: "space-between" | undefined;
73
- /**
74
- * Used to set whether the container should grow to fill the available space.
75
- */
76
- grow?: Grow | undefined;
77
- /**
78
- * Represents the space between each child.
79
- */
80
- space?: FlexProps['gap'];
81
- /**
82
- * Elements to be rendered inside the Stack.
83
- */
84
- children: ReactNode;
85
- /**
86
- * Forwarded ref element.
87
- */
88
- ref?: any;
89
- } & BasePrimitiveProps, "children" | "space" | "as" | "alignInline" | "alignBlock" | "spread" | "grow" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
56
+ declare const Stack: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<StackProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
90
57
  export default Stack;
@@ -92,5 +92,5 @@ export declare const inverseColorMap: {
92
92
  *
93
93
  * @internal
94
94
  */
95
- declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "children" | "size" | "weight" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
95
+ declare const Text: import("react").ForwardRefExoticComponent<Omit<TextProps<ElementType>, "ref"> & import("react").RefAttributes<any>>;
96
96
  export default Text;
@@ -95,46 +95,5 @@ declare const alignItemsMap: {
95
95
  * )
96
96
  * ```
97
97
  */
98
- declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
99
- /**
100
- * The DOM element to render as the Flex. Defaults to `div`.
101
- */
102
- as?: "div" | "dl" | "li" | "ol" | "span" | "ul" | undefined;
103
- /**
104
- * Used to align children along the main axis.
105
- */
106
- justifyContent?: "center" | "space-around" | "space-between" | "space-evenly" | "stretch" | "end" | "start" | undefined;
107
- /**
108
- * Used to align children along the cross axis.
109
- */
110
- alignItems?: "center" | "stretch" | "end" | "start" | "baseline" | undefined;
111
- /**
112
- * Represents the space between each child.
113
- */
114
- columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
115
- /**
116
- * Represents the space between each child.
117
- */
118
- gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
119
- /**
120
- * Represents the space between each child.
121
- */
122
- rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
123
- /**
124
- * Represents the flex direction property of CSS flexbox.
125
- */
126
- direction?: "column" | "row" | undefined;
127
- /**
128
- * Represents the flex wrap property of CSS flexbox.
129
- */
130
- wrap?: "nowrap" | "wrap" | undefined;
131
- /**
132
- * Elements to be rendered inside the Flex.
133
- */
134
- children: ReactNode;
135
- /**
136
- * Forwarded ref element.
137
- */
138
- ref?: any;
139
- } & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignItems" | "direction" | "justifyContent" | "children" | "wrap" | "as" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
98
+ declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
140
99
  export default Flex;
@@ -131,68 +131,5 @@ declare const gridAutoFlowMap: {
131
131
  * )
132
132
  * ```
133
133
  */
134
- declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<{
135
- /**
136
- * The DOM element to render as the Flex. Defaults to `div`.
137
- */
138
- as?: "div" | "ol" | "span" | "ul" | undefined;
139
- /**
140
- * Used to align children along the inline axis.
141
- */
142
- justifyContent?: "center" | "space-around" | "space-between" | "space-evenly" | "stretch" | "end" | "start" | undefined;
143
- /**
144
- * Used to align the grid along the inline axis.
145
- */
146
- justifyItems?: "center" | "stretch" | "end" | "start" | undefined;
147
- /**
148
- * Used to align children along the block axis.
149
- */
150
- alignItems?: "center" | "end" | "start" | "baseline" | undefined;
151
- /**
152
- * Used to align the grid along the block axis.
153
- */
154
- alignContent?: "center" | "space-around" | "space-between" | "space-evenly" | "stretch" | "end" | "start" | undefined;
155
- /**
156
- * Represents the space between each column.
157
- */
158
- columnGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
159
- /**
160
- * Represents the space between each child across both axes.
161
- */
162
- gap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
163
- /**
164
- * Represents the space between each row.
165
- */
166
- rowGap?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
167
- /**
168
- * Specifies how auto-placed items get flowed into the grid. CSS `grid-auto-flow`.
169
- */
170
- autoFlow?: "column" | "row" | "dense" | "row dense" | "column dense" | undefined;
171
- /**
172
- * CSS `grid-template-rows`.
173
- */
174
- templateRows?: string | undefined;
175
- /**
176
- * CSS `grid-template-columns`.
177
- */
178
- templateColumns?: string | undefined;
179
- /**
180
- * CSS `grid-template-areas`.
181
- *
182
- * Each item in the passed array is a grid row.
183
- */
184
- templateAreas?: string[] | undefined;
185
- /**
186
- * Elements to be rendered inside the grid. Required as a grid without children should not be a grid.
187
- */
188
- children: ReactNode;
189
- /**
190
- * HTML id attrubute.
191
- */
192
- id?: string | undefined;
193
- /**
194
- * Forwarded ref element.
195
- */
196
- ref?: any;
197
- } & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignContent" | "alignItems" | "justifyContent" | "justifyItems" | "children" | "as" | "id" | keyof BasePrimitiveProps | "autoFlow" | "templateAreas" | "templateRows" | "templateColumns"> & import("react").RefAttributes<any>>>;
134
+ declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<GridProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
198
135
  export default Grid;