@atlaskit/primitives 12.2.5 → 12.2.6

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 12.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.2.5
4
10
 
5
11
  ### Patch Changes
@@ -91,7 +91,8 @@ content.
91
91
 
92
92
  ## Separator
93
93
 
94
- For logically related elements it's possible to specify a `separator` character value.
94
+ For logically related elements it's possible to specify a `separator` character value. Avoid using
95
+ separator="•" with as="ul" | "ol" | "dl" to maintain correct list semantics.
95
96
 
96
97
  <Example Component={InlineSeparator} packageName="@atlaskit/primitives/inline" />
97
98
 
@@ -141,21 +141,21 @@ const someStyles = xcss({
141
141
  // This is okay, since media queries can contain pseudos
142
142
  [media.above.md]: {
143
143
  ':hover': {
144
- backgroundColor: 'color.background.primary.hovered',
144
+ backgroundColor: 'color.background.neutral.hovered',
145
145
  },
146
146
  },
147
147
 
148
148
  // This is not okay, we don't allow pseudos to contain media queries
149
149
  ':hover': {
150
150
  [media.above.md]: {
151
- backgroundColor: 'color.background.primary.hovered',
151
+ backgroundColor: 'color.background.neutral.hovered',
152
152
  },
153
153
  },
154
154
 
155
155
  // This is not okay, since media queries can't contain media queries
156
156
  [media.above.md]: {
157
157
  [media.above.xs]: {
158
- backgroundColor: 'color.background.primary.hovered',
158
+ backgroundColor: 'color.background.neutral.hovered',
159
159
  },
160
160
  },
161
161
  });
@@ -100,7 +100,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
100
100
  action: 'clicked',
101
101
  componentName: componentName || 'Anchor',
102
102
  packageName: "@atlaskit/primitives",
103
- packageVersion: "12.2.5",
103
+ packageVersion: "12.2.6",
104
104
  analyticsData: analyticsContext,
105
105
  actionSubject: 'link'
106
106
  });
@@ -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: "12.2.5",
98
+ packageVersion: "12.2.6",
99
99
  analyticsData: analyticsContext,
100
100
  actionSubject: 'button'
101
101
  });
@@ -90,7 +90,7 @@ const AnchorNoRef = ({
90
90
  action: 'clicked',
91
91
  componentName: componentName || 'Anchor',
92
92
  packageName: "@atlaskit/primitives",
93
- packageVersion: "12.2.5",
93
+ packageVersion: "12.2.6",
94
94
  analyticsData: analyticsContext,
95
95
  actionSubject: 'link'
96
96
  });
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
85
85
  action: 'clicked',
86
86
  componentName: componentName || 'Pressable',
87
87
  packageName: "@atlaskit/primitives",
88
- packageVersion: "12.2.5",
88
+ packageVersion: "12.2.6",
89
89
  analyticsData: analyticsContext,
90
90
  actionSubject: 'button'
91
91
  });
@@ -94,7 +94,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
94
94
  action: 'clicked',
95
95
  componentName: componentName || 'Anchor',
96
96
  packageName: "@atlaskit/primitives",
97
- packageVersion: "12.2.5",
97
+ packageVersion: "12.2.6",
98
98
  analyticsData: analyticsContext,
99
99
  actionSubject: 'link'
100
100
  });
@@ -89,7 +89,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
89
89
  action: 'clicked',
90
90
  componentName: componentName || 'Pressable',
91
91
  packageName: "@atlaskit/primitives",
92
- packageVersion: "12.2.5",
92
+ packageVersion: "12.2.6",
93
93
  analyticsData: analyticsContext,
94
94
  actionSubject: 'button'
95
95
  });
@@ -40,7 +40,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
40
40
  */
41
41
  rowSpace?: Space;
42
42
  /**
43
- * Renders a separator string between each child.
43
+ * Renders a separator string between each child. Avoid using `separator="•"` when `as="ul" | "ol" | "dl"` to preserve proper list semantics.
44
44
  */
45
45
  separator?: React.ReactNode;
46
46
  /**
@@ -101,7 +101,7 @@ declare const Inline: React.MemoExoticComponent<React.ForwardRefExoticComponent<
101
101
  */
102
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
103
  /**
104
- * Renders a separator string between each child.
104
+ * Renders a separator string between each child. Avoid using `separator="•"` when `as="ul" | "ol" | "dl"` to preserve proper list semantics.
105
105
  */
106
106
  separator?: React.ReactNode;
107
107
  /**
@@ -40,7 +40,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
40
40
  */
41
41
  rowSpace?: Space;
42
42
  /**
43
- * Renders a separator string between each child.
43
+ * Renders a separator string between each child. Avoid using `separator="•"` when `as="ul" | "ol" | "dl"` to preserve proper list semantics.
44
44
  */
45
45
  separator?: React.ReactNode;
46
46
  /**
@@ -101,7 +101,7 @@ declare const Inline: React.MemoExoticComponent<React.ForwardRefExoticComponent<
101
101
  */
102
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
103
  /**
104
- * Renders a separator string between each child.
104
+ * Renders a separator string between each child. Avoid using `separator="•"` when `as="ul" | "ol" | "dl"` to preserve proper list semantics.
105
105
  */
106
106
  separator?: React.ReactNode;
107
107
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "12.2.5",
3
+ "version": "12.2.6",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -114,8 +114,8 @@
114
114
  "dependencies": {
115
115
  "@atlaskit/analytics-next": "^10.1.0",
116
116
  "@atlaskit/app-provider": "^1.4.0",
117
- "@atlaskit/css": "^0.5.0",
118
- "@atlaskit/ds-lib": "^3.0.0",
117
+ "@atlaskit/css": "^0.6.0",
118
+ "@atlaskit/ds-lib": "^3.1.0",
119
119
  "@atlaskit/interaction-context": "^2.1.0",
120
120
  "@atlaskit/tokens": "^2.0.0",
121
121
  "@atlaskit/visually-hidden": "^1.5.0",
@@ -33,7 +33,7 @@ const targetPath = join(__dirname, '../', 'src', 'xcss', 'style-maps.partial.tsx
33
33
  const xcssCodemodPath = join(
34
34
  process.cwd(),
35
35
  '../../../',
36
- 'packages/design-system/css/codemods/primitives-emotion-to-compiled/style-maps.partial.tsx',
36
+ 'packages/design-system/css/codemods/0.5.2-primitives-emotion-to-compiled/style-maps.partial.tsx',
37
37
  );
38
38
 
39
39
  const sourceFns = [