@workday/canvas-kit-docs 6.7.0 → 6.7.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.
|
@@ -153,6 +153,11 @@ further to the right. You could use two separate horizontal stacks here to achie
|
|
|
153
153
|
but you could also use `shouldWrapChildren` and then put additional margin only where needed. Either
|
|
154
154
|
approach would be fine; it's a matter of personal preference.
|
|
155
155
|
|
|
156
|
+
> Note: `shouldWrapChildren` implicitly passes the child element's index as a unique `key` prop to
|
|
157
|
+
> the `Stack.Item`, which works well for static lists. If you have dynamic lists with child elements
|
|
158
|
+
> that change over time, you'll want to provide a unique `id` prop to each child element for the
|
|
159
|
+
> `Stack.Item` to use as a key instead.
|
|
160
|
+
|
|
156
161
|
<ExampleCodeBlock code={ShouldWrapChildren} />
|
|
157
162
|
|
|
158
163
|
Use this approach when:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.1",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@storybook/csf": "0.0.1",
|
|
53
|
-
"@workday/canvas-kit-react": "^6.7.
|
|
53
|
+
"@workday/canvas-kit-react": "^6.7.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"fs-extra": "^10.0.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"mkdirp": "^1.0.3",
|
|
59
59
|
"typescript": "^3.8.3"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "320f66adaa2ba8c27573de0feb432d8d86c37fbf"
|
|
62
62
|
}
|