@atlaskit/primitives 11.0.2 → 11.1.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 (79) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/constellation/anchor/code.mdx +5 -3
  3. package/constellation/anchor/examples.mdx +1 -2
  4. package/constellation/anchor/images/anchor-01a-do.png +0 -0
  5. package/constellation/anchor/images/anchor-01b-dont.png +0 -0
  6. package/constellation/anchor/images/anchor-02a-do.png +0 -0
  7. package/constellation/anchor/images/anchor-02b-dont.png +0 -0
  8. package/constellation/anchor/usage.mdx +61 -99
  9. package/constellation/box/code.mdx +3 -0
  10. package/constellation/pressable/code.mdx +5 -3
  11. package/constellation/pressable/usage.mdx +6 -4
  12. package/constellation/responsive/01-show/code.mdx +5 -3
  13. package/constellation/responsive/02-hide/code.mdx +5 -3
  14. package/dist/cjs/components/anchor.js +2 -6
  15. package/dist/cjs/components/bleed.js +1 -1
  16. package/dist/cjs/components/box.js +1 -1
  17. package/dist/cjs/components/flex.js +1 -1
  18. package/dist/cjs/components/grid.js +1 -1
  19. package/dist/cjs/components/inline.js +1 -1
  20. package/dist/cjs/components/pressable.js +2 -2
  21. package/dist/cjs/components/stack.js +1 -1
  22. package/dist/cjs/components/text.js +1 -1
  23. package/dist/cjs/responsive/hide.js +1 -1
  24. package/dist/cjs/responsive/show.js +1 -1
  25. package/dist/es2019/components/anchor.js +2 -6
  26. package/dist/es2019/components/bleed.js +1 -1
  27. package/dist/es2019/components/box.js +1 -1
  28. package/dist/es2019/components/flex.js +1 -1
  29. package/dist/es2019/components/grid.js +1 -1
  30. package/dist/es2019/components/inline.js +1 -1
  31. package/dist/es2019/components/pressable.js +2 -2
  32. package/dist/es2019/components/stack.js +1 -1
  33. package/dist/es2019/components/text.js +1 -1
  34. package/dist/es2019/responsive/hide.js +1 -1
  35. package/dist/es2019/responsive/show.js +1 -1
  36. package/dist/esm/components/anchor.js +2 -6
  37. package/dist/esm/components/bleed.js +1 -1
  38. package/dist/esm/components/box.js +1 -1
  39. package/dist/esm/components/flex.js +1 -1
  40. package/dist/esm/components/grid.js +1 -1
  41. package/dist/esm/components/inline.js +1 -1
  42. package/dist/esm/components/pressable.js +2 -2
  43. package/dist/esm/components/stack.js +1 -1
  44. package/dist/esm/components/text.js +1 -1
  45. package/dist/esm/responsive/hide.js +1 -1
  46. package/dist/esm/responsive/show.js +1 -1
  47. package/dist/types/components/anchor.d.ts +1 -5
  48. package/dist/types/components/bleed.d.ts +1 -1
  49. package/dist/types/components/box.d.ts +1 -1
  50. package/dist/types/components/flex.d.ts +3 -3
  51. package/dist/types/components/grid.d.ts +1 -1
  52. package/dist/types/components/inline.d.ts +3 -3
  53. package/dist/types/components/pressable.d.ts +1 -1
  54. package/dist/types/components/stack.d.ts +3 -3
  55. package/dist/types/components/text.d.ts +1 -1
  56. package/dist/types/responsive/hide.d.ts +1 -1
  57. package/dist/types/responsive/show.d.ts +1 -1
  58. package/dist/types-ts4.5/components/anchor.d.ts +1 -5
  59. package/dist/types-ts4.5/components/bleed.d.ts +1 -1
  60. package/dist/types-ts4.5/components/box.d.ts +1 -1
  61. package/dist/types-ts4.5/components/flex.d.ts +3 -3
  62. package/dist/types-ts4.5/components/grid.d.ts +1 -1
  63. package/dist/types-ts4.5/components/inline.d.ts +3 -3
  64. package/dist/types-ts4.5/components/pressable.d.ts +1 -1
  65. package/dist/types-ts4.5/components/stack.d.ts +3 -3
  66. package/dist/types-ts4.5/components/text.d.ts +1 -1
  67. package/dist/types-ts4.5/responsive/hide.d.ts +1 -1
  68. package/dist/types-ts4.5/responsive/show.d.ts +1 -1
  69. package/package.json +4 -10
  70. package/extract-react-types/anchor-props.tsx +0 -120
  71. package/extract-react-types/bleed-props.tsx +0 -29
  72. package/extract-react-types/box-props.tsx +0 -89
  73. package/extract-react-types/flex-props.tsx +0 -80
  74. package/extract-react-types/grid-props.tsx +0 -102
  75. package/extract-react-types/hide-props.tsx +0 -48
  76. package/extract-react-types/inline-props.tsx +0 -89
  77. package/extract-react-types/pressable-props.tsx +0 -115
  78. package/extract-react-types/show-props.tsx +0 -48
  79. package/extract-react-types/stack-props.tsx +0 -73
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 11.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#126649](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126649)
8
+ [`24092d9f293a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/24092d9f293a1) -
9
+ Removed development warnings from JSDoc comment for Anchor primitive.
10
+
11
+ ## 11.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#123719](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123719)
16
+ [`4de823258d64a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4de823258d64a) -
17
+ Added `dl` as a valid polymorphic element for both the `Inline` and `Stack` primitives.
18
+
3
19
  ## 11.0.2
4
20
 
5
21
  ### Patch Changes
@@ -2,6 +2,10 @@
2
2
  title: Anchor
3
3
  description: An anchor is a primitive for building custom links.
4
4
  order: 1
5
+ props:
6
+ packageName: '@atlaskit/primitives'
7
+ exports:
8
+ - Anchor
5
9
  ---
6
10
 
7
11
  import { CodeDocsHeader } from '@af/design-system-docs-ui';
@@ -12,10 +16,8 @@ import { CodeDocsHeader } from '@af/design-system-docs-ui';
12
16
  directoryName="primitives"
13
17
  />
14
18
 
15
- import ERTAnchor from '!!extract-react-types-loader!../../extract-react-types/anchor-props';
16
-
17
19
  ## Props
18
20
 
19
21
  Anchor also supports all valid `HTMLAnchorElement` props.
20
22
 
21
- <PropsTable heading="" props={ERTAnchor} />
23
+ <TSMorphProps exportName="Anchor" packageName="@atlaskit/primitives" />
@@ -30,8 +30,7 @@ Only use anchor when existing components such as [link](/components/link/example
30
30
 
31
31
  ## Default
32
32
 
33
- Anchor is unstyled besides a default underline and consistent Atlassian Design System `:focus`
34
- styles.
33
+ Anchor is unstyled besides a default underline and consistent Atlassian Design System focus styles.
35
34
 
36
35
  If you are using the [CSS reset](/components/css-reset/examples), anchor will also inherit some
37
36
  global styles.
@@ -4,13 +4,19 @@ description: An anchor is a primitive for building custom links.
4
4
  order: 2
5
5
  ---
6
6
 
7
+ import anchor1Do from './images/anchor-01a-do.png';
8
+ import anchor1Dont from './images/anchor-01b-dont.png';
9
+ import anchor2Do from './images/anchor-02a-do.png';
10
+ import anchor2Dont from './images/anchor-02b-dont.png';
11
+
7
12
  ## Usage
8
13
 
9
- Use an anchor to make elements that work like hyperlinks. Anchors can navigate to any linkable
10
- location such as a web page, a location on a page, a file download, or a `mailto` email address.
14
+ Use an anchor to make custom links. Anchors help users navigate to another page or sections of a
15
+ page. They can also download files or provide contact information such as phone numbers or email
16
+ addresses.
11
17
 
12
- Anchor is based on the HTML `<a>` tag, but with Atlassian focus styles and analytics events built
13
- in. You can customize the anchor's appearance further using our styling APIs.
18
+ Anchor is based on the HTML `<a>` tag, with Atlassian focus styles and event tracking built-in. You
19
+ can customize the anchor's appearance using our styling APIs.
14
20
 
15
21
  For example, an anchor could be used to make
16
22
  [a link card](/components/primitives/anchor/examples#advanced-styling) with a larger clickable area
@@ -27,126 +33,82 @@ consistent, and these components are faster to use for most basic use cases.
27
33
 
28
34
  ## Accessibility
29
35
 
30
- ### Show what's clickable using underlines or other affordances
36
+ ### Differentiate anchors from regular text
31
37
 
32
- Anchors have an underline by default. This helps differentiate links from regular text, which is an
38
+ Anchors are underlined by default. This helps differentiate links from regular text, which is an
33
39
  accessibility requirement. Using color alone to differentiate links isn't accessible, especially if
34
40
  links are surrounded by other text.
35
41
 
36
- Only remove underlines if the context surrounding the link makes it clear that it's interactive,
37
- such as in navigation or a card layout.
42
+ <DoDont
43
+ type="do"
44
+ image={{
45
+ url: anchor1Do,
46
+ alt: 'A link surrounded by regular text. The link provides color and an underline to differentiate the link from regular text.',
47
+ }}
48
+ >
49
+ Use both underlines and color for links surrounded by regular text.
50
+ </DoDont>
38
51
 
39
- Also, don't underline text that isn't a link. This makes the text look clickable because it looks a
40
- link.
52
+ <DoDont
53
+ type="dont"
54
+ image={{
55
+ url: anchor1Dont,
56
+ alt: "A link surrounded by regular text. The link provides only color but no underline to differentiate the link from regular text, however it's insufficient.",
57
+ }}
58
+ >
59
+ Only use color to differentiate links from regular text.
60
+ </DoDont>
41
61
 
42
- <!-- TODO: Add do/dont images once designed (if necessary?) -->
62
+ Only remove underlines and omit other style affordances such as color if the context surrounding the
63
+ link makes it clear that it's interactive, such as in navigation or a card layout.
64
+
65
+ <DoDont
66
+ type="do"
67
+ image={{
68
+ url: anchor2Do,
69
+ alt: 'Links in a navigation section. The links use a subtle text color and no underline, which is appropriate because the surrounding context makes it clear that they are links.',
70
+ }}
71
+ >
72
+ Omit underlines and color when surrounding context makes it clear it's a link.
73
+ </DoDont>
43
74
 
44
- <DoDont type="do">
45
- Use underlined links in body copy. Only omit an underline if the context makes it clear the link
46
- is selectable.
75
+ <DoDont
76
+ type="dont"
77
+ image={{
78
+ url: anchor2Dont,
79
+ alt: 'Links in a navigation section. The links use a bright text color and underline, which is not required because the surrounding context makes it clear that they are links.',
80
+ }}
81
+ >
82
+ Use underlines and color when surrounding context already makes it clear it's a link.
47
83
  </DoDont>
48
84
 
49
- <DoDont type="dont">Use underlined links in navigation.</DoDont>
85
+ Also, don't underline text that isn't a link. This makes the text look clickable because it looks a
86
+ link.
50
87
 
51
88
  For more information see
52
89
  ['Understanding Use of Color (Level A)'](https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html)
53
90
  and
54
91
  ['Failure of Success Criterion 1.4.1 due to creating links that are not visually evident without color vision'](https://www.w3.org/WAI/WCAG22/Techniques/failures/F73).
55
92
 
56
- ### Use anchor for links and navigation, not on-page actions
57
-
58
- Anchors are for navigation and URL changes, while buttons are for on-page actions such as form
59
- submissions or opening modals. These elements are treated differently by assistive technologies, so
60
- avoid using one in place of the other.
61
-
62
- Don't use anchor to make custom actions rather than navigation elements. To build a custom action or
63
- button, use the [pressable primitive](/components/primitives/pressable/examples) instead.
93
+ <Snippet name="links-dont-confuse-with-buttons" variables={{ componentName: 'anchor' }} />
64
94
 
65
- More on
66
- [when to use links vs buttons](/components/button/usage#use-buttons-for-actions-and-links-for-navigation).
95
+ Don't use anchor to make custom actions rather than navigation elements. To build a custom button,
96
+ use the [pressable primitive](/components/primitives/pressable/examples) instead.
67
97
 
68
- ### Use descriptive link text that clarifies the purpose of the link
98
+ <Snippet name="links-descriptive-text" />
69
99
 
70
- Don't link vague words or phrases like “here” or “learn more.” Make sure the linked text clearly
71
- describes the purpose of the link for assistive technologies.
100
+ <Snippet name="links-open-new-window" variables={{ componentName: 'anchor' }} />
72
101
 
73
- See [link content guidelines](/components/primitives/anchor/usage#content-guidelines) for details
74
- and examples.
75
-
76
- <!-- TODO: Crosslink updated link content guidance. Should be info in language and grammar and link component. (snippet time?) -->
77
- <!-- TODO: Add some Do/Don't images as examples -->
78
-
79
- <DoDont type="do">Link text that describes the purpose of the link.</DoDont>
80
-
81
- <DoDont type="dont">Link vague words or phrases.</DoDont>
82
-
83
- ### Only open links in a new window or tab when necessary
84
-
85
- Opening links in a new window can be disorienting for people, so only do it when necessary.
86
-
87
- It might make sense for a link to open in a new window if:
88
-
89
- - There's a risk of someone losing their current place or task
90
- - The link takes the person out of the current product or to an external website
91
-
92
- For more information see
93
- ['G200: Opening new windows and tabs from a link only when necessary'](https://www.w3.org/TR/WCAG20-TECHS/G200.html).
102
+ <Snippet name="links-minimum-size" />
94
103
 
95
- ### Keep links large enough to interact with
96
-
97
- Make link text size at least 12px. Smaller text is harder to read and interact with. If anchor is
98
- not used for text-based links, ensure the clickable area is at least 24 by 24 pixels for
99
- accessibility unless exempt from
104
+ If anchor is used for non-textual links, ensure the clickable area is at least 24 by 24 pixels for
105
+ accessibility. For more information see
100
106
  [Target Size (Minimum) (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html).
101
107
 
102
- ## Content guidelines
103
-
104
- ### Use clear and unique link text
105
-
106
- Try not to repeat the same link text over and over on a page. Make sure link text is clear about
107
- where the link will go.
108
-
109
- ### Specify download links, including file type and size
110
-
111
- Always specify if a link triggers a download, and make the linked text clear about what exactly will
112
- be downloaded. Include file type and size as well.
113
-
114
- <!-- TODO: add example of this -->
115
-
116
- ### Don't include unnecessary links
117
-
118
- Using too many links can overwhelm other, more important information on a page.
119
-
120
- Anchors take people to a new page or location. Be mindful of whether or not the linked resource is
121
- helpful or distracting to the current task.
122
-
123
- ### Links in sentences or body copy
124
-
125
- Only link the words that are necessary to clarify where the link goes. Don't link the entire
126
- sentence. (Linking smaller phrases can be better for internationalization when sentence structures
127
- change across languages.)
128
-
129
- Only include the verb in the linked text if it better describes the purpose the link or
130
- differentiates it from other links and actions on the page.
131
-
132
- For example:
133
-
134
- > Update [Jira settings](/components/button/usage#use-buttons-for-actions-and-links-for-navigation)
135
- > to turn off notifications. To upgrade,
136
- > [sign up for Jira](/components/button/usage#use-buttons-for-actions-and-links-for-navigation).
137
-
138
- If only Jira was linked, it wouldn't be clear that this was a sign up page.
139
-
140
- ### Links on their own (UI elements or navigation)
141
-
142
- For standalone links, link the whole phrase. Don't add punctuation.
143
-
144
- These type of links typically follow general button or other label content rules (sentence case
145
- capitalization, no punctuation, etc.)
108
+ <Snippet name="links-content-guidelines" />
146
109
 
147
110
  ## Related
148
111
 
149
112
  - Use existing components such as [link](/components/link/examples) or
150
113
  [link button](/components/button/link-button/examples) wherever possible.
151
114
  - Use [pressable primitive for custom buttons](/components/primitives/button/usage).
152
- - Anchor is built on the same API as [box](/components/primitives/box/usage).
@@ -16,6 +16,9 @@ import { CodeDocsHeader } from '@af/design-system-docs-ui';
16
16
  directoryName="primitives"
17
17
  />
18
18
 
19
+ Box also supports all valid props as specified by the HTML element type in the `as` prop. The
20
+ default is a `div`, so it would support all valid `HTMLDivElement` props.
21
+
19
22
  ## Props
20
23
 
21
24
  <TSMorphProps exportName="Box" packageName="@atlaskit/primitives" />
@@ -2,6 +2,10 @@
2
2
  title: Pressable
3
3
  description: A pressable is a primitive for building custom buttons.
4
4
  order: 1
5
+ props:
6
+ packageName: '@atlaskit/primitives'
7
+ exports:
8
+ - Pressable
5
9
  ---
6
10
 
7
11
  import { CodeDocsHeader } from '@af/design-system-docs-ui';
@@ -12,11 +16,9 @@ import { CodeDocsHeader } from '@af/design-system-docs-ui';
12
16
  directoryName="primitives"
13
17
  />
14
18
 
15
- import ERTPressable from '!!extract-react-types-loader!../../extract-react-types/pressable-props';
16
-
17
19
  ## Props
18
20
 
19
21
  Pressable also supports all valid `HTMLButtonElement` props, except for `disabled` which is replaced
20
22
  by the `isDisabled` prop.
21
23
 
22
- <PropsTable heading="" props={ERTPressable} />
24
+ <TSMorphProps exportName="Pressable" packageName="@atlaskit/primitives" />
@@ -94,9 +94,12 @@ Pressable is meant for on-page actions such as opening modals or submitting form
94
94
  something that navigates to a new page, use a component that renders a semantically correct HTML
95
95
  `<a>` element such as:
96
96
 
97
- - The [link](/components/primitives/link/examples) component (coming soon) for standard text links.
98
- - The [anchor](/components/primitives/anchor/examples) primitive (coming soon) to create custom
99
- links.
97
+ - The [link](/components/primitives/link/examples) component for standard text links.
98
+ - The [anchor](/components/primitives/anchor/examples) primitive to create custom links.
99
+
100
+ Also, don't add underlines to a pressable. This makes the button appear to be a link, which can be
101
+ confusing for users who assume they can perform actions specific to links, such as opening links in
102
+ new windows.
100
103
 
101
104
  ## Content guidelines
102
105
 
@@ -122,4 +125,3 @@ questions.
122
125
  - Use existing components such as [buttons](/components/button/examples) or
123
126
  [menus](/components/menu/examples) for most actions in Atlassian products.
124
127
  - Use the [anchor primitive for custom links](/components/primitives/button/usage).
125
- - Pressable is built on the same API as [box](/components/primitives/box/usage).
@@ -2,6 +2,10 @@
2
2
  title: Show
3
3
  description: Show is a responsive primitive that displays children at specified breakpoints
4
4
  order: 2
5
+ props:
6
+ packageName: '@atlaskit/primitives/responsive'
7
+ exports:
8
+ - Show
5
9
  ---
6
10
 
7
11
  import { CodeDocsHeader } from '@af/design-system-docs-ui';
@@ -12,8 +16,6 @@ import { CodeDocsHeader } from '@af/design-system-docs-ui';
12
16
  directoryName="primitives"
13
17
  />
14
18
 
15
- import ShowProps from '!!extract-react-types-loader!../../../extract-react-types/show-props';
16
-
17
19
  ## Props
18
20
 
19
- <PropsTable heading="" props={ShowProps} />
21
+ <TSMorphProps exportName="Show" packageName="@atlaskit/primitives/responsive" />
@@ -2,6 +2,10 @@
2
2
  title: Hide
3
3
  description: Hide is a responsive primitive that hides children at specified breakpoints
4
4
  order: 2
5
+ props:
6
+ packageName: '@atlaskit/primitives/responsive'
7
+ exports:
8
+ - Hide
5
9
  ---
6
10
 
7
11
  import { CodeDocsHeader } from '@af/design-system-docs-ui';
@@ -12,8 +16,6 @@ import { CodeDocsHeader } from '@af/design-system-docs-ui';
12
16
  directoryName="primitives"
13
17
  />
14
18
 
15
- import HideProps from '!!extract-react-types-loader!../../../extract-react-types/hide-props';
16
-
17
19
  ## Props
18
20
 
19
- <PropsTable heading="" props={HideProps} />
21
+ <TSMorphProps exportName="Hide" packageName="@atlaskit/primitives/responsive" />
@@ -23,8 +23,8 @@ var _excluded = ["href", "children", "backgroundColor", "newWindowLabel", "paddi
23
23
  _excluded2 = ["className"];
24
24
  /**
25
25
  * @jsxRuntime classic
26
+ * @jsx jsx
26
27
  */
27
- /** @jsx jsx */
28
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
29
  // TODO: duplicates FocusRing styles from `@atlaskit/focus-ring`.
30
30
  var focusRingStyles = (0, _react2.css)({
@@ -105,7 +105,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
105
105
  action: 'clicked',
106
106
  componentName: componentName || 'Anchor',
107
107
  packageName: "@atlaskit/primitives",
108
- packageVersion: "11.0.2",
108
+ packageVersion: "11.1.1",
109
109
  analyticsData: analyticsContext,
110
110
  actionSubject: 'link'
111
111
  });
@@ -177,12 +177,8 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
177
177
  /**
178
178
  * __Anchor__
179
179
  *
180
- * @internal Still under development. Do not use.
181
- *
182
180
  * 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.
183
181
  *
184
- * This component is mostly used by other design system components, such as the [link component](/components/link/usage).
185
- *
186
182
  * - [Examples](https://atlassian.design/components/primitives/anchor/examples)
187
183
  * - [Code](https://atlassian.design/components/primitives/anchor/code)
188
184
  * - [Usage](https://atlassian.design/components/primitives/anchor/usage)
@@ -10,8 +10,8 @@ var _react2 = require("@emotion/react");
10
10
  var _xcss = require("../xcss/xcss");
11
11
  /**
12
12
  * @jsxRuntime classic
13
+ * @jsx jsx
13
14
  */
14
- /** @jsx jsx */
15
15
 
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
17
 
@@ -16,8 +16,8 @@ var _excluded = ["as", "children", "backgroundColor", "padding", "paddingBlock",
16
16
  _excluded2 = ["className"];
17
17
  /**
18
18
  * @jsxRuntime classic
19
+ * @jsx jsx
19
20
  */
20
- /** @jsx jsx */
21
21
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  // Can either Exclude or Extract - here we're excluding all SVG-related elements and button (handled by Pressable)
23
23
 
@@ -10,8 +10,8 @@ var _styleMaps = require("../xcss/style-maps.partial");
10
10
  var _xcss = require("../xcss/xcss");
11
11
  /**
12
12
  * @jsxRuntime classic
13
+ * @jsx jsx
13
14
  */
14
- /** @jsx jsx */
15
15
 
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
17
 
@@ -12,8 +12,8 @@ var _styleMaps = require("../xcss/style-maps.partial");
12
12
  var _xcss = require("../xcss/xcss");
13
13
  /**
14
14
  * @jsxRuntime classic
15
+ * @jsx jsx
15
16
  */
16
- /** @jsx jsx */
17
17
 
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
 
@@ -16,8 +16,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
16
16
  /* eslint-disable @repo/internal/styles/no-exported-styles */
17
17
  /**
18
18
  * @jsxRuntime classic
19
+ * @jsx jsx
19
20
  */
20
- /** @jsx jsx */
21
21
 
22
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
23
 
@@ -18,8 +18,8 @@ var _excluded = ["children", "backgroundColor", "padding", "paddingBlock", "padd
18
18
  _excluded2 = ["className"];
19
19
  /**
20
20
  * @jsxRuntime classic
21
+ * @jsx jsx
21
22
  */
22
- /** @jsx jsx */
23
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
24
  // This duplicates FocusRing styles from `@atlaskit/focus-ring`.
25
25
  var focusRingStyles = (0, _react2.css)({
@@ -95,7 +95,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
95
95
  action: 'clicked',
96
96
  componentName: componentName || 'Pressable',
97
97
  packageName: "@atlaskit/primitives",
98
- packageVersion: "11.0.2",
98
+ packageVersion: "11.1.1",
99
99
  analyticsData: analyticsContext,
100
100
  actionSubject: 'button'
101
101
  });
@@ -13,8 +13,8 @@ var _flex = _interopRequireDefault(require("./flex"));
13
13
  /* eslint-disable @repo/internal/styles/no-exported-styles */
14
14
  /**
15
15
  * @jsxRuntime classic
16
+ * @jsx jsx
16
17
  */
17
- /** @jsx jsx */
18
18
 
19
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
20
 
@@ -12,8 +12,8 @@ var _styleMaps = require("../xcss/style-maps.partial");
12
12
  var _surfaceProvider = require("./internal/surface-provider");
13
13
  /**
14
14
  * @jsxRuntime classic
15
+ * @jsx jsx
15
16
  */
16
- /** @jsx jsx */
17
17
 
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
 
@@ -9,8 +9,8 @@ var _xcss = require("../xcss/xcss");
9
9
  var _buildMediaQueryCss = require("./build-media-query-css");
10
10
  /**
11
11
  * @jsxRuntime classic
12
+ * @jsx jsx
12
13
  */
13
- /** @jsx jsx */
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
16
 
@@ -9,8 +9,8 @@ var _xcss = require("../xcss/xcss");
9
9
  var _buildMediaQueryCss = require("./build-media-query-css");
10
10
  /**
11
11
  * @jsxRuntime classic
12
+ * @jsx jsx
12
13
  */
13
- /** @jsx jsx */
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
16
 
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { forwardRef, useCallback, useContext } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -95,7 +95,7 @@ const AnchorNoRef = ({
95
95
  action: 'clicked',
96
96
  componentName: componentName || 'Anchor',
97
97
  packageName: "@atlaskit/primitives",
98
- packageVersion: "11.0.2",
98
+ packageVersion: "11.1.1",
99
99
  analyticsData: analyticsContext,
100
100
  actionSubject: 'link'
101
101
  });
@@ -170,12 +170,8 @@ const AnchorNoRef = ({
170
170
  /**
171
171
  * __Anchor__
172
172
  *
173
- * @internal Still under development. Do not use.
174
- *
175
173
  * 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.
176
174
  *
177
- * This component is mostly used by other design system components, such as the [link component](/components/link/usage).
178
- *
179
175
  * - [Examples](https://atlassian.design/components/primitives/anchor/examples)
180
176
  * - [Code](https://atlassian.design/components/primitives/anchor/code)
181
177
  * - [Usage](https://atlassian.design/components/primitives/anchor/usage)
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import React from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { forwardRef, memo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { forwardRef, memo, useMemo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @repo/internal/styles/no-exported-styles */
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import React, { Children, forwardRef, Fragment, memo } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { forwardRef, useCallback, useContext } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
85
85
  action: 'clicked',
86
86
  componentName: componentName || 'Pressable',
87
87
  packageName: "@atlaskit/primitives",
88
- packageVersion: "11.0.2",
88
+ packageVersion: "11.1.1",
89
89
  analyticsData: analyticsContext,
90
90
  actionSubject: 'button'
91
91
  });
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @repo/internal/styles/no-exported-styles */
2
2
  /**
3
3
  * @jsxRuntime classic
4
+ * @jsx jsx
4
5
  */
5
- /** @jsx jsx */
6
6
  import { forwardRef, memo } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @jsxRuntime classic
3
+ * @jsx jsx
3
4
  */
4
- /** @jsx jsx */
5
5
  import { createContext, forwardRef, useContext } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766