@workday/canvas-kit-docs 7.0.0-alpha.0-next.6 → 7.0.0-alpha.101-next.26
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/dist/commonjs/lib/specs.js +133 -2
- package/dist/es6/lib/specs.js +133 -2
- package/dist/mdx/{4.0-MIGRATION-GUIDE.mdx → 4.0-UPGRADE-GUIDE.mdx} +1 -1
- package/dist/mdx/{5.0-MIGRATION-GUIDE.mdx → 5.0-UPGRADE-GUIDE.mdx} +3 -3
- package/dist/mdx/{6.0-MIGRATION-GUIDE.mdx → 6.0-UPGRADE-GUIDE.mdx} +4 -4
- package/dist/mdx/7.0-UPGRADE-GUIDE.mdx +1006 -0
- package/dist/mdx/COMPOUND_COMPONENTS.mdx +2 -2
- package/dist/mdx/CONTRIBUTING.mdx +2 -2
- package/dist/mdx/changelog.stories.mdx +1 -0
- package/dist/mdx/labs-react/search-form/examples/Basic.tsx +1 -1
- package/dist/mdx/labs-react/search-form/examples/CustomTheme.tsx +1 -1
- package/dist/mdx/labs-react/search-form/examples/Grow.tsx +1 -1
- package/dist/mdx/labs-react/search-form/examples/RTL.tsx +1 -1
- package/dist/mdx/labs-react/search-form/examples/Theming.tsx +1 -1
- package/dist/mdx/preview-react/_examples/SelectWithFormik.mdx +8 -0
- package/dist/mdx/preview-react/_examples/SidePanelWithOverlay.mdx +8 -0
- package/dist/mdx/preview-react/_examples/TextInputWithFormik.mdx +8 -0
- package/dist/mdx/preview-react/_examples/examples/SelectWithFormik.tsx +47 -0
- package/dist/mdx/preview-react/_examples/examples/SidePanelWithOverlay.tsx +31 -0
- package/dist/mdx/preview-react/{text-input/examples/LoginForm.tsx → _examples/examples/TextInputWithFormik.tsx} +3 -3
- package/dist/mdx/preview-react/form-field/FormField.mdx +15 -3
- package/dist/mdx/preview-react/form-field/examples/Custom.tsx +4 -5
- package/dist/mdx/preview-react/form-field/examples/Select.tsx +50 -0
- package/dist/mdx/preview-react/menu/Menu.mdx +1 -1
- package/dist/mdx/preview-react/menu/examples/ContextMenu.tsx +2 -2
- package/dist/mdx/preview-react/menu/examples/Icons.tsx +0 -1
- package/dist/mdx/preview-react/pill/Pill.mdx +241 -0
- package/dist/mdx/preview-react/pill/examples/Basic.tsx +18 -0
- package/dist/mdx/preview-react/pill/examples/WithAvatar.tsx +21 -0
- package/dist/mdx/preview-react/pill/examples/WithCount.tsx +9 -0
- package/dist/mdx/preview-react/pill/examples/WithList.tsx +31 -0
- package/dist/mdx/preview-react/pill/examples/WithReadOnly.tsx +15 -0
- package/dist/mdx/preview-react/pill/examples/WithRemovable.tsx +25 -0
- package/dist/mdx/preview-react/pill/examples/test-avatar.png +0 -0
- package/dist/mdx/preview-react/side-panel/SidePanel.mdx +5 -3
- package/dist/mdx/preview-react/side-panel/examples/AlwaysOpen.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/Basic.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/ExternalControl.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/HiddenName.tsx +1 -1
- package/dist/mdx/preview-react/side-panel/examples/OnExpandedChange.tsx +1 -1
- package/dist/mdx/preview-react/side-panel/examples/OnStateTransition.tsx +1 -1
- package/dist/mdx/preview-react/side-panel/examples/RightOrigin.tsx +2 -2
- package/dist/mdx/preview-react/side-panel/examples/Variant.tsx +2 -2
- package/dist/mdx/preview-react/text-area/examples/RefForwarding.tsx +1 -1
- package/dist/mdx/preview-react/text-input/TextInput.mdx +0 -7
- package/dist/mdx/preview-react/text-input/examples/RefForwarding.tsx +1 -1
- package/dist/mdx/react/_examples/examples/GlobalHeader.tsx +7 -6
- package/dist/mdx/react/_examples/examples/PageHeader.tsx +4 -4
- package/dist/mdx/react/action-bar/ActionBar.mdx +123 -10
- package/dist/mdx/react/action-bar/examples/Basic.tsx +8 -5
- package/dist/mdx/react/action-bar/examples/Icons.tsx +18 -0
- package/dist/mdx/react/action-bar/examples/OverflowActionBar.tsx +60 -0
- package/dist/mdx/react/banner/examples/RefForwarding.tsx +2 -2
- package/dist/mdx/react/banner/examples/Sticky.tsx +1 -1
- package/dist/mdx/react/banner/examples/StickyAnimation.tsx +2 -1
- package/dist/mdx/react/banner/examples/StickyRTL.tsx +2 -1
- package/dist/mdx/react/button/button/Button.mdx +3 -3
- package/dist/mdx/react/button/button/examples/Primary.tsx +13 -6
- package/dist/mdx/react/button/button/examples/PrimaryInverse.tsx +11 -3
- package/dist/mdx/react/button/button/examples/Secondary.tsx +11 -3
- package/dist/mdx/react/button/button/examples/SecondaryInverse.tsx +11 -3
- package/dist/mdx/react/button/button/examples/Tertiary.tsx +13 -3
- package/dist/mdx/react/button/button/examples/TertiaryInverse.tsx +12 -3
- package/dist/mdx/react/card/card.mdx +2 -2
- package/dist/mdx/react/card/examples/Depth.tsx +1 -1
- package/dist/mdx/react/checkbox/examples/Indeterminate.tsx +1 -1
- package/dist/mdx/react/checkbox/examples/RefForwarding.tsx +1 -1
- package/dist/mdx/react/collection/Collection.mdx +136 -0
- package/dist/mdx/react/collection/examples/Basic.tsx +12 -0
- package/dist/mdx/react/collection/examples/BasicVirtual.tsx +24 -0
- package/dist/mdx/react/collection/examples/DynamicItems.tsx +20 -0
- package/dist/mdx/react/collection/examples/IdentifiedItems.tsx +12 -0
- package/dist/mdx/react/collection/examples/MultiSelection.tsx +56 -0
- package/dist/mdx/react/collection/examples/RovingFocus.tsx +39 -0
- package/dist/mdx/react/collection/examples/Selection.tsx +58 -0
- package/dist/mdx/react/color-picker/color-input/ColorInput.mdx +2 -2
- package/dist/mdx/react/color-picker/color-preview/ColorPreview.mdx +2 -2
- package/dist/mdx/{labs-react/common → react/layout}/Box.mdx +3 -6
- package/dist/mdx/{labs-react → react}/layout/Flex.mdx +24 -27
- package/dist/mdx/{labs-react → react}/layout/Stack.mdx +99 -142
- package/dist/mdx/{labs-react/common → react/layout}/examples/As.tsx +1 -1
- package/dist/mdx/{labs-react/common → react/layout}/examples/Border.tsx +1 -1
- package/dist/mdx/{labs-react/common → react/layout}/examples/Color.tsx +1 -1
- package/dist/mdx/{labs-react/common → react/layout}/examples/Depth.tsx +9 -3
- package/dist/mdx/{labs-react → react}/layout/examples/Flex/FlexCard.tsx +2 -3
- package/dist/mdx/{labs-react → react}/layout/examples/Flex/FlexLayout.tsx +1 -1
- package/dist/mdx/{labs-react → react}/layout/examples/Flex/Usage.tsx +2 -3
- package/dist/mdx/{labs-react/common → react/layout}/examples/FlexItem.tsx +1 -2
- package/dist/mdx/{labs-react/common → react/layout}/examples/Layout.tsx +1 -1
- package/dist/mdx/{labs-react/common → react/layout}/examples/Position.tsx +1 -1
- package/dist/mdx/{labs-react → react}/layout/examples/PropTables.splitprops.tsx +1 -1
- package/dist/mdx/{labs-react/common → react/layout}/examples/Ref.tsx +1 -1
- package/dist/mdx/{labs-react/common → react/layout}/examples/Space.tsx +1 -1
- package/dist/mdx/{labs-react → react}/layout/examples/Stack/BasicStack.tsx +1 -1
- package/dist/mdx/{labs-react → react}/layout/examples/Stack/HStackCards.tsx +2 -3
- package/dist/mdx/{labs-react → react}/layout/examples/Stack/NestedStacks.tsx +1 -1
- package/dist/mdx/react/layout/examples/Stack/ShouldWrapChildren.tsx +28 -0
- package/dist/mdx/{labs-react → react}/layout/examples/Stack/StackCard.tsx +2 -2
- package/dist/mdx/{labs-react → react}/layout/examples/Stack/StackItems.tsx +1 -2
- package/dist/mdx/{labs-react → react}/layout/examples/Stack/VStackCards.tsx +2 -2
- package/dist/mdx/react/menu/Menu.mdx +123 -0
- package/dist/mdx/react/menu/examples/Basic.tsx +26 -0
- package/dist/mdx/react/menu/examples/ContextMenu.tsx +25 -0
- package/dist/mdx/react/menu/examples/Icons.tsx +41 -0
- package/dist/mdx/react/modal/Modal.mdx +13 -11
- package/dist/mdx/react/modal/examples/Basic.tsx +1 -1
- package/dist/mdx/react/modal/examples/BodyOverflow.tsx +1 -1
- package/dist/mdx/react/modal/examples/CustomFocus.tsx +1 -2
- package/dist/mdx/react/modal/examples/FullOverflow.tsx +1 -1
- package/dist/mdx/react/modal/examples/ReturnFocus.tsx +2 -3
- package/dist/mdx/react/modal/examples/WithoutCloseIcon.tsx +1 -2
- package/dist/mdx/react/pagination/PropTables.splitprops.tsx +1 -1
- package/dist/mdx/react/pagination/pagination.mdx +14 -14
- package/dist/mdx/react/popup/Popup.mdx +2 -1
- package/dist/mdx/react/popup/examples/Basic.tsx +1 -1
- package/dist/mdx/react/popup/examples/FocusRedirect.tsx +1 -1
- package/dist/mdx/react/popup/examples/FocusTrap.tsx +1 -1
- package/dist/mdx/react/popup/examples/FullScreen.tsx +1 -1
- package/dist/mdx/react/popup/examples/InitialFocus.tsx +4 -2
- package/dist/mdx/react/popup/examples/MultiplePopups.tsx +1 -1
- package/dist/mdx/react/popup/examples/NestedPopups.tsx +18 -18
- package/dist/mdx/react/popup/examples/RTL.tsx +6 -3
- package/dist/mdx/react/segmented-control/SegmentedControl.mdx +2 -2
- package/dist/mdx/react/segmented-control/examples/Basic.tsx +13 -11
- package/dist/mdx/react/skeleton/examples/Basic.tsx +1 -1
- package/dist/mdx/react/skeleton/examples/Color.tsx +1 -2
- package/dist/mdx/react/skeleton/examples/Simulation.tsx +1 -1
- package/dist/mdx/react/switch/examples/Error.tsx +1 -1
- package/dist/mdx/react/tabs/Tabs.mdx +11 -14
- package/dist/mdx/react/tabs/examples/DynamicTabs.tsx +6 -13
- package/dist/mdx/react/tabs/examples/HoistedModel.tsx +8 -8
- package/dist/mdx/react/tabs/examples/Icons.tsx +4 -4
- package/dist/mdx/react/tabs/examples/NamedTabs.tsx +10 -10
- package/dist/mdx/react/tabs/examples/OverflowTabs.tsx +5 -9
- package/dist/mdx/react/tabs/examples/SinglePanel.tsx +3 -3
- package/dist/mdx/react/text-input/examples/Basic.tsx +3 -0
- package/dist/mdx/react/tooltip/Tooltip.mdx +2 -2
- package/dist/mdx/react/tooltip/examples/Default.tsx +2 -2
- package/dist/mdx/react/tooltip/examples/UseTooltip.tsx +2 -2
- package/package.json +7 -16
- package/dist/mdx/7.0-MIGRATION-GUIDE.mdx +0 -150
- package/dist/mdx/labs-react/common/examples/PropTables.splitprops.tsx +0 -91
- package/dist/mdx/labs-react/layout/examples/Stack/ShouldWrapChildren.tsx +0 -33
- package/dist/mdx/react/button/icon-button/IconButton.mdx +0 -103
- package/dist/mdx/react/button/icon-button/examples/Circle.tsx +0 -6
- package/dist/mdx/react/button/icon-button/examples/CircleFilled.tsx +0 -8
- package/dist/mdx/react/button/icon-button/examples/Inverse.tsx +0 -17
- package/dist/mdx/react/button/icon-button/examples/InverseFilled.tsx +0 -17
- package/dist/mdx/react/button/icon-button/examples/MirroredIcon.tsx +0 -11
- package/dist/mdx/react/button/icon-button/examples/Plain.tsx +0 -8
- package/dist/mdx/react/button/icon-button/examples/Square.tsx +0 -8
- package/dist/mdx/react/button/icon-button/examples/SquareFilled.tsx +0 -8
- package/dist/mdx/react/button/icon-button/examples/Toggleable.tsx +0 -20
- package/ts3.5/dist/commonjs/index.d.ts +0 -4
- package/ts3.5/dist/commonjs/lib/Specifications.d.ts +0 -6
- package/ts3.5/dist/commonjs/lib/docs.d.ts +0 -5
- package/ts3.5/dist/commonjs/lib/specs.d.ts +0 -16
- package/ts3.5/dist/es6/index.d.ts +0 -4
- package/ts3.5/dist/es6/lib/Specifications.d.ts +0 -6
- package/ts3.5/dist/es6/lib/docs.d.ts +0 -5
- package/ts3.5/dist/es6/lib/specs.d.ts +0 -16
|
@@ -769,11 +769,11 @@ module.exports = {specifications: [
|
|
|
769
769
|
"children": [
|
|
770
770
|
{
|
|
771
771
|
"type": "describe",
|
|
772
|
-
"name": "Icon
|
|
772
|
+
"name": "Icon button ColorPicker Popup",
|
|
773
773
|
"children": [
|
|
774
774
|
{
|
|
775
775
|
"type": "describe",
|
|
776
|
-
"name": "when the
|
|
776
|
+
"name": "when the SecondaryButton is clicked",
|
|
777
777
|
"children": [
|
|
778
778
|
{
|
|
779
779
|
"type": "it",
|
|
@@ -1302,6 +1302,137 @@ module.exports = {specifications: [
|
|
|
1302
1302
|
{
|
|
1303
1303
|
"type": "file",
|
|
1304
1304
|
"name": "Menu.spec.ts",
|
|
1305
|
+
"children": [
|
|
1306
|
+
{
|
|
1307
|
+
"type": "describe",
|
|
1308
|
+
"name": "Menu",
|
|
1309
|
+
"children": [
|
|
1310
|
+
{
|
|
1311
|
+
"type": "describe",
|
|
1312
|
+
"name": "given the [Components/Popups/Menu/React, Basic] story is rendered",
|
|
1313
|
+
"children": [
|
|
1314
|
+
{
|
|
1315
|
+
"type": "it",
|
|
1316
|
+
"name": "should pass axe checks"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"type": "it",
|
|
1320
|
+
"name": "should have aria-haspopup set to true"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"type": "it",
|
|
1324
|
+
"name": "should have aria-expanded set to false"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"type": "it",
|
|
1328
|
+
"name": "should not show a menu"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"type": "describe",
|
|
1332
|
+
"name": "when the \"Open Menu\" button is clicked",
|
|
1333
|
+
"children": [
|
|
1334
|
+
{
|
|
1335
|
+
"type": "it",
|
|
1336
|
+
"name": "should set aria-expanded to true"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"type": "it",
|
|
1340
|
+
"name": "should show menu"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"type": "it",
|
|
1344
|
+
"name": "should transfer focus to the first menu item"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"type": "describe",
|
|
1348
|
+
"name": "when escape key is pressed",
|
|
1349
|
+
"children": [
|
|
1350
|
+
{
|
|
1351
|
+
"type": "it",
|
|
1352
|
+
"name": "should have aria-expanded set to false"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"type": "it",
|
|
1356
|
+
"name": "should not show a menu"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"type": "it",
|
|
1360
|
+
"name": "return focus to the \"Open Menu\" button"
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"type": "describe",
|
|
1366
|
+
"name": "when down arrow key is pressed",
|
|
1367
|
+
"children": [
|
|
1368
|
+
{
|
|
1369
|
+
"type": "it",
|
|
1370
|
+
"name": "should transfer focus to the second item"
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"type": "describe",
|
|
1374
|
+
"name": "when the enter key is pressed",
|
|
1375
|
+
"children": [
|
|
1376
|
+
{
|
|
1377
|
+
"type": "it",
|
|
1378
|
+
"name": "should have aria-expanded set to false"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"type": "it",
|
|
1382
|
+
"name": "should not show a menu"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"type": "it",
|
|
1386
|
+
"name": "should select the second item"
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
}
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"type": "describe",
|
|
1394
|
+
"name": "when the second item is clicked",
|
|
1395
|
+
"children": [
|
|
1396
|
+
{
|
|
1397
|
+
"type": "it",
|
|
1398
|
+
"name": "should have aria-expanded set to false"
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"type": "it",
|
|
1402
|
+
"name": "should not show a menu"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"type": "it",
|
|
1406
|
+
"name": "should select the second item"
|
|
1407
|
+
}
|
|
1408
|
+
]
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"type": "describe",
|
|
1412
|
+
"name": "when the user types a printable character \"t\"",
|
|
1413
|
+
"children": []
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"type": "describe",
|
|
1417
|
+
"name": "when up arrow key is pressed",
|
|
1418
|
+
"children": [
|
|
1419
|
+
{
|
|
1420
|
+
"type": "it",
|
|
1421
|
+
"name": "should focus on the last option"
|
|
1422
|
+
}
|
|
1423
|
+
]
|
|
1424
|
+
}
|
|
1425
|
+
]
|
|
1426
|
+
}
|
|
1427
|
+
]
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1430
|
+
}
|
|
1431
|
+
]
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"type": "file",
|
|
1435
|
+
"name": "MenuPreview.spec.ts",
|
|
1305
1436
|
"children": [
|
|
1306
1437
|
{
|
|
1307
1438
|
"type": "describe",
|
package/dist/es6/lib/specs.js
CHANGED
|
@@ -769,11 +769,11 @@ module.exports = {specifications: [
|
|
|
769
769
|
"children": [
|
|
770
770
|
{
|
|
771
771
|
"type": "describe",
|
|
772
|
-
"name": "Icon
|
|
772
|
+
"name": "Icon button ColorPicker Popup",
|
|
773
773
|
"children": [
|
|
774
774
|
{
|
|
775
775
|
"type": "describe",
|
|
776
|
-
"name": "when the
|
|
776
|
+
"name": "when the SecondaryButton is clicked",
|
|
777
777
|
"children": [
|
|
778
778
|
{
|
|
779
779
|
"type": "it",
|
|
@@ -1302,6 +1302,137 @@ module.exports = {specifications: [
|
|
|
1302
1302
|
{
|
|
1303
1303
|
"type": "file",
|
|
1304
1304
|
"name": "Menu.spec.ts",
|
|
1305
|
+
"children": [
|
|
1306
|
+
{
|
|
1307
|
+
"type": "describe",
|
|
1308
|
+
"name": "Menu",
|
|
1309
|
+
"children": [
|
|
1310
|
+
{
|
|
1311
|
+
"type": "describe",
|
|
1312
|
+
"name": "given the [Components/Popups/Menu/React, Basic] story is rendered",
|
|
1313
|
+
"children": [
|
|
1314
|
+
{
|
|
1315
|
+
"type": "it",
|
|
1316
|
+
"name": "should pass axe checks"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"type": "it",
|
|
1320
|
+
"name": "should have aria-haspopup set to true"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"type": "it",
|
|
1324
|
+
"name": "should have aria-expanded set to false"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"type": "it",
|
|
1328
|
+
"name": "should not show a menu"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"type": "describe",
|
|
1332
|
+
"name": "when the \"Open Menu\" button is clicked",
|
|
1333
|
+
"children": [
|
|
1334
|
+
{
|
|
1335
|
+
"type": "it",
|
|
1336
|
+
"name": "should set aria-expanded to true"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"type": "it",
|
|
1340
|
+
"name": "should show menu"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"type": "it",
|
|
1344
|
+
"name": "should transfer focus to the first menu item"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"type": "describe",
|
|
1348
|
+
"name": "when escape key is pressed",
|
|
1349
|
+
"children": [
|
|
1350
|
+
{
|
|
1351
|
+
"type": "it",
|
|
1352
|
+
"name": "should have aria-expanded set to false"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"type": "it",
|
|
1356
|
+
"name": "should not show a menu"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"type": "it",
|
|
1360
|
+
"name": "return focus to the \"Open Menu\" button"
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"type": "describe",
|
|
1366
|
+
"name": "when down arrow key is pressed",
|
|
1367
|
+
"children": [
|
|
1368
|
+
{
|
|
1369
|
+
"type": "it",
|
|
1370
|
+
"name": "should transfer focus to the second item"
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"type": "describe",
|
|
1374
|
+
"name": "when the enter key is pressed",
|
|
1375
|
+
"children": [
|
|
1376
|
+
{
|
|
1377
|
+
"type": "it",
|
|
1378
|
+
"name": "should have aria-expanded set to false"
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
"type": "it",
|
|
1382
|
+
"name": "should not show a menu"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"type": "it",
|
|
1386
|
+
"name": "should select the second item"
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
}
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"type": "describe",
|
|
1394
|
+
"name": "when the second item is clicked",
|
|
1395
|
+
"children": [
|
|
1396
|
+
{
|
|
1397
|
+
"type": "it",
|
|
1398
|
+
"name": "should have aria-expanded set to false"
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"type": "it",
|
|
1402
|
+
"name": "should not show a menu"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"type": "it",
|
|
1406
|
+
"name": "should select the second item"
|
|
1407
|
+
}
|
|
1408
|
+
]
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"type": "describe",
|
|
1412
|
+
"name": "when the user types a printable character \"t\"",
|
|
1413
|
+
"children": []
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"type": "describe",
|
|
1417
|
+
"name": "when up arrow key is pressed",
|
|
1418
|
+
"children": [
|
|
1419
|
+
{
|
|
1420
|
+
"type": "it",
|
|
1421
|
+
"name": "should focus on the last option"
|
|
1422
|
+
}
|
|
1423
|
+
]
|
|
1424
|
+
}
|
|
1425
|
+
]
|
|
1426
|
+
}
|
|
1427
|
+
]
|
|
1428
|
+
}
|
|
1429
|
+
]
|
|
1430
|
+
}
|
|
1431
|
+
]
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"type": "file",
|
|
1435
|
+
"name": "MenuPreview.spec.ts",
|
|
1305
1436
|
"children": [
|
|
1306
1437
|
{
|
|
1307
1438
|
"type": "describe",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Canvas Kit 5.0
|
|
1
|
+
# Canvas Kit 5.0 Upgrade Guide
|
|
2
2
|
|
|
3
3
|
Below are the breaking changes made in Canvas Kit v5. Please
|
|
4
4
|
[reach out](https://github.com/Workday/canvas-kit/issues/new?labels=bug&template=bug.md) if you have
|
|
@@ -28,7 +28,7 @@ any questions about the update.
|
|
|
28
28
|
|
|
29
29
|
We've introduced a
|
|
30
30
|
[new codemod package](https://github.com/Workday/canvas-kit/tree/master/modules/codemod) you can use
|
|
31
|
-
to automatically update your code to work with a majority of the breaking changes in the
|
|
31
|
+
to automatically update your code to work with a majority of the breaking changes in the upgrade
|
|
32
32
|
from Canvas Kit v4 to v5. Simply run:
|
|
33
33
|
|
|
34
34
|
```sh
|
|
@@ -49,7 +49,7 @@ rollback more easily if necessary.**
|
|
|
49
49
|
|
|
50
50
|
[Let us know](https://github.com/Workday/canvas-kit/issues/new?labels=bug&template=bug.md) if you
|
|
51
51
|
encounter any issues or use cases that we've missed. The `@workday/canvas-kit-codemod` package will
|
|
52
|
-
help us maintain additional codemod transforms to make future
|
|
52
|
+
help us maintain additional codemod transforms to make future upgrades easier.
|
|
53
53
|
|
|
54
54
|
## General Changes
|
|
55
55
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Canvas Kit 6.0
|
|
1
|
+
# Canvas Kit 6.0 Upgrade Guide
|
|
2
2
|
|
|
3
3
|
Below are the breaking changes made in Canvas Kit v6. Please
|
|
4
4
|
[reach out](https://github.com/Workday/canvas-kit/issues/new?labels=bug&template=bug.md) if you have
|
|
@@ -39,7 +39,7 @@ any questions about the update.
|
|
|
39
39
|
## Codemod
|
|
40
40
|
|
|
41
41
|
Please use our [codemod package](https://github.com/Workday/canvas-kit/tree/master/modules/codemod)
|
|
42
|
-
to automatically update your code to work with a majority of the breaking changes in the
|
|
42
|
+
to automatically update your code to work with a majority of the breaking changes in the upgrade
|
|
43
43
|
from Canvas Kit v5 to v6:
|
|
44
44
|
|
|
45
45
|
```sh
|
|
@@ -60,7 +60,7 @@ rollback more easily if necessary.**
|
|
|
60
60
|
|
|
61
61
|
[Let us know](https://github.com/Workday/canvas-kit/issues/new?labels=bug&template=bug.md) if you
|
|
62
62
|
encounter any issues or use cases that we've missed. The `@workday/canvas-kit-codemod` package will
|
|
63
|
-
help us maintain additional codemod transforms to make future
|
|
63
|
+
help us maintain additional codemod transforms to make future upgrades easier.
|
|
64
64
|
|
|
65
65
|
## Component Deprecations
|
|
66
66
|
|
|
@@ -80,7 +80,7 @@ warning.
|
|
|
80
80
|
#### Hard Deprecation
|
|
81
81
|
|
|
82
82
|
A hard-deprecated component or package is no longer available. You will need to follow the method
|
|
83
|
-
prescribed in our
|
|
83
|
+
prescribed in our upgrade guide to update your application. Please reach out to our team directly
|
|
84
84
|
if you need additional help.
|
|
85
85
|
|
|
86
86
|
### Cookie Banner
|