@workday/canvas-kit-docs 5.3.15 → 5.4.0-next.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.
- package/dist/commonjs/lib/specs.js +429 -19
- package/dist/es6/lib/specs.js +429 -19
- package/dist/mdx/6.0-MIGRATION-GUIDE.mdx +567 -0
- package/dist/mdx/COMPOUND_COMPONENTS.mdx +31 -30
- package/dist/mdx/TESTING.mdx +30 -6
- package/dist/mdx/changelog.stories.mdx +0 -1
- package/dist/mdx/labs-react/layout/Stack.mdx +7 -2
- package/dist/mdx/labs-react/search-form/SearchForm.mdx +62 -0
- package/dist/mdx/labs-react/search-form/examples/Basic.tsx +61 -0
- package/dist/mdx/labs-react/search-form/examples/CustomTheme.tsx +72 -0
- package/dist/mdx/labs-react/search-form/examples/Grow.tsx +62 -0
- package/dist/mdx/labs-react/search-form/examples/PropTables.splitProps.tsx +4 -0
- package/dist/mdx/labs-react/search-form/examples/RTL.tsx +70 -0
- package/dist/mdx/labs-react/search-form/examples/Theming.tsx +64 -0
- package/dist/mdx/preview-react/_examples/SelectWithFormik.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/TextInputWithFormik.tsx +105 -0
- package/dist/mdx/preview-react/form-field/FormField.mdx +39 -0
- package/dist/mdx/preview-react/form-field/examples/Custom.tsx +57 -0
- package/dist/mdx/preview-react/form-field/examples/Select.tsx +50 -0
- package/dist/mdx/preview-react/side-panel/examples/AlwaysOpen.tsx +1 -1
- package/dist/mdx/preview-react/side-panel/examples/Basic.tsx +1 -1
- package/dist/mdx/preview-react/side-panel/examples/ExternalControl.tsx +1 -1
- package/dist/mdx/preview-react/side-panel/examples/RightOrigin.tsx +1 -1
- package/dist/mdx/preview-react/side-panel/examples/Variant.tsx +1 -1
- package/dist/mdx/preview-react/text-area/TextArea.mdx +122 -0
- package/dist/mdx/preview-react/text-area/examples/Alert.tsx +36 -0
- package/dist/mdx/preview-react/text-area/examples/Basic.tsx +17 -0
- package/dist/mdx/preview-react/text-area/examples/Disabled.tsx +17 -0
- package/dist/mdx/preview-react/text-area/examples/Error.tsx +40 -0
- package/dist/mdx/preview-react/text-area/examples/Grow.tsx +17 -0
- package/dist/mdx/preview-react/text-area/examples/HiddenLabel.tsx +20 -0
- package/dist/mdx/preview-react/text-area/examples/LabelPositionHorizontal.tsx +17 -0
- package/dist/mdx/preview-react/text-area/examples/LabelPositionVertical.tsx +17 -0
- package/dist/mdx/preview-react/text-area/examples/Placeholder.tsx +17 -0
- package/dist/mdx/preview-react/text-area/examples/RefForwarding.tsx +28 -0
- package/dist/mdx/preview-react/text-area/examples/Required.tsx +17 -0
- package/dist/mdx/preview-react/text-area/examples/ResizeConstraints.tsx +22 -0
- package/dist/mdx/preview-react/text-input/TextInput.mdx +138 -0
- package/dist/mdx/preview-react/text-input/examples/Alert.tsx +35 -0
- package/dist/mdx/preview-react/text-input/examples/Basic.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/Disabled.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/Error.tsx +40 -0
- package/dist/mdx/preview-react/text-input/examples/Grow.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/HiddenLabel.tsx +20 -0
- package/dist/mdx/preview-react/text-input/examples/LabelPositionHorizontal.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/LabelPositionVertical.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/Password.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/Placeholder.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/RefForwarding.tsx +28 -0
- package/dist/mdx/preview-react/text-input/examples/Required.tsx +17 -0
- package/dist/mdx/preview-react/text-input/examples/ThemedAlert.tsx +46 -0
- package/dist/mdx/preview-react/text-input/examples/ThemedError.tsx +35 -0
- package/dist/mdx/react/_examples/CookieBanner.mdx +8 -0
- package/dist/mdx/react/_examples/GlobalHeader.mdx +12 -0
- package/dist/mdx/react/_examples/PageHeader.mdx +8 -0
- package/dist/mdx/react/_examples/examples/CookieBanner.tsx +97 -0
- package/dist/mdx/react/_examples/examples/GlobalHeader.tsx +66 -0
- package/dist/mdx/react/_examples/examples/PageHeader.tsx +63 -0
- package/dist/mdx/react/button/button/Button.mdx +26 -2
- package/dist/mdx/react/button/button/examples/Primary.tsx +10 -1
- package/dist/mdx/react/button/button/examples/PrimaryInverse.tsx +14 -0
- package/dist/mdx/react/button/button/examples/Secondary.tsx +10 -1
- package/dist/mdx/react/button/button/examples/SecondaryInverse.tsx +14 -0
- package/dist/mdx/react/button/button/examples/Tertiary.tsx +13 -1
- package/dist/mdx/react/button/button/examples/TertiaryInverse.tsx +14 -0
- package/dist/mdx/react/popup/examples/FocusRedirect.tsx +2 -1
- package/dist/mdx/react/tabs/Tabs.mdx +31 -5
- package/dist/mdx/react/tabs/examples/DisabledTab.tsx +1 -1
- package/dist/mdx/react/tabs/examples/DynamicTabs.tsx +82 -38
- package/dist/mdx/react/tabs/examples/HoistedModel.tsx +4 -4
- package/dist/mdx/react/tabs/examples/Icons.tsx +36 -0
- package/dist/mdx/react/tabs/examples/{NamedKeys.tsx → NamedTabs.tsx} +0 -0
- package/dist/mdx/react/tabs/examples/OverflowTabs.tsx +58 -0
- package/dist/mdx/react/tabs/examples/SinglePanel.tsx +1 -1
- package/dist/mdx/react/text-area/TextArea.mdx +1 -1
- package/package.json +3 -3
package/dist/es6/lib/specs.js
CHANGED
|
@@ -2448,6 +2448,36 @@ module.exports = {specifications: [
|
|
|
2448
2448
|
]
|
|
2449
2449
|
}
|
|
2450
2450
|
]
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"type": "describe",
|
|
2454
|
+
"name": "given the [Components/Popups/Popup/React, FocusRedirect] example is rendered",
|
|
2455
|
+
"children": [
|
|
2456
|
+
{
|
|
2457
|
+
"type": "describe",
|
|
2458
|
+
"name": "when the \"Delete Item\" button is clicked",
|
|
2459
|
+
"children": [
|
|
2460
|
+
{
|
|
2461
|
+
"type": "it",
|
|
2462
|
+
"name": "should show the popup"
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
"type": "describe",
|
|
2466
|
+
"name": "when the \"Delete\" button has focus and the tab key is pressed",
|
|
2467
|
+
"children": [
|
|
2468
|
+
{
|
|
2469
|
+
"type": "it",
|
|
2470
|
+
"name": "should hide the popup"
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
"type": "it",
|
|
2474
|
+
"name": "should redirect focus to the \"Next Focusable Button\" button"
|
|
2475
|
+
}
|
|
2476
|
+
]
|
|
2477
|
+
}
|
|
2478
|
+
]
|
|
2479
|
+
}
|
|
2480
|
+
]
|
|
2451
2481
|
}
|
|
2452
2482
|
]
|
|
2453
2483
|
}
|
|
@@ -4579,7 +4609,7 @@ module.exports = {specifications: [
|
|
|
4579
4609
|
},
|
|
4580
4610
|
{
|
|
4581
4611
|
"type": "it",
|
|
4582
|
-
"name": "should not have tabindex on the first tab"
|
|
4612
|
+
"name": "should not have tabindex=-1 on the first tab"
|
|
4583
4613
|
},
|
|
4584
4614
|
{
|
|
4585
4615
|
"type": "it",
|
|
@@ -4633,7 +4663,7 @@ module.exports = {specifications: [
|
|
|
4633
4663
|
},
|
|
4634
4664
|
{
|
|
4635
4665
|
"type": "it",
|
|
4636
|
-
"name": "should not have tabindex on the second tab"
|
|
4666
|
+
"name": "should not have tabindex=-1 on the second tab"
|
|
4637
4667
|
},
|
|
4638
4668
|
{
|
|
4639
4669
|
"type": "it",
|
|
@@ -4681,7 +4711,7 @@ module.exports = {specifications: [
|
|
|
4681
4711
|
"children": [
|
|
4682
4712
|
{
|
|
4683
4713
|
"type": "it",
|
|
4684
|
-
"name": "should not have tabindex on the first tab"
|
|
4714
|
+
"name": "should not have tabindex=-1 on the first tab"
|
|
4685
4715
|
},
|
|
4686
4716
|
{
|
|
4687
4717
|
"type": "it",
|
|
@@ -4707,7 +4737,7 @@ module.exports = {specifications: [
|
|
|
4707
4737
|
},
|
|
4708
4738
|
{
|
|
4709
4739
|
"type": "it",
|
|
4710
|
-
"name": "should not have tabindex on the last tab"
|
|
4740
|
+
"name": "should not have tabindex=-1 on the last tab"
|
|
4711
4741
|
},
|
|
4712
4742
|
{
|
|
4713
4743
|
"type": "it",
|
|
@@ -4731,7 +4761,7 @@ module.exports = {specifications: [
|
|
|
4731
4761
|
"children": [
|
|
4732
4762
|
{
|
|
4733
4763
|
"type": "it",
|
|
4734
|
-
"name": "should not have tabindex on the first tab"
|
|
4764
|
+
"name": "should not have tabindex=-1 on the first tab"
|
|
4735
4765
|
},
|
|
4736
4766
|
{
|
|
4737
4767
|
"type": "it",
|
|
@@ -4745,7 +4775,7 @@ module.exports = {specifications: [
|
|
|
4745
4775
|
},
|
|
4746
4776
|
{
|
|
4747
4777
|
"type": "describe",
|
|
4748
|
-
"name": "given the [Components/Containers/Tabs/React, Named
|
|
4778
|
+
"name": "given the [Components/Containers/Tabs/React, Named Tabs] story is rendered",
|
|
4749
4779
|
"children": [
|
|
4750
4780
|
{
|
|
4751
4781
|
"type": "it",
|
|
@@ -4769,7 +4799,7 @@ module.exports = {specifications: [
|
|
|
4769
4799
|
},
|
|
4770
4800
|
{
|
|
4771
4801
|
"type": "it",
|
|
4772
|
-
"name": "should not have tabindex on the first tab"
|
|
4802
|
+
"name": "should not have tabindex=-1 on the first tab"
|
|
4773
4803
|
},
|
|
4774
4804
|
{
|
|
4775
4805
|
"type": "it",
|
|
@@ -4823,7 +4853,7 @@ module.exports = {specifications: [
|
|
|
4823
4853
|
},
|
|
4824
4854
|
{
|
|
4825
4855
|
"type": "it",
|
|
4826
|
-
"name": "should not have tabindex on the second tab"
|
|
4856
|
+
"name": "should not have tabindex=-1 on the second tab"
|
|
4827
4857
|
},
|
|
4828
4858
|
{
|
|
4829
4859
|
"type": "it",
|
|
@@ -4871,7 +4901,7 @@ module.exports = {specifications: [
|
|
|
4871
4901
|
"children": [
|
|
4872
4902
|
{
|
|
4873
4903
|
"type": "it",
|
|
4874
|
-
"name": "should not have tabindex on the first tab"
|
|
4904
|
+
"name": "should not have tabindex=-1 on the first tab"
|
|
4875
4905
|
},
|
|
4876
4906
|
{
|
|
4877
4907
|
"type": "it",
|
|
@@ -4897,7 +4927,7 @@ module.exports = {specifications: [
|
|
|
4897
4927
|
},
|
|
4898
4928
|
{
|
|
4899
4929
|
"type": "it",
|
|
4900
|
-
"name": "should not have tabindex on the last tab"
|
|
4930
|
+
"name": "should not have tabindex=-1 on the last tab"
|
|
4901
4931
|
},
|
|
4902
4932
|
{
|
|
4903
4933
|
"type": "it",
|
|
@@ -4921,7 +4951,7 @@ module.exports = {specifications: [
|
|
|
4921
4951
|
"children": [
|
|
4922
4952
|
{
|
|
4923
4953
|
"type": "it",
|
|
4924
|
-
"name": "should not have tabindex on the first tab"
|
|
4954
|
+
"name": "should not have tabindex=-1 on the first tab"
|
|
4925
4955
|
},
|
|
4926
4956
|
{
|
|
4927
4957
|
"type": "it",
|
|
@@ -4937,6 +4967,20 @@ module.exports = {specifications: [
|
|
|
4937
4967
|
"type": "describe",
|
|
4938
4968
|
"name": "given the [Components/Containers/Tabs/React, DisabledTab] story is rendered",
|
|
4939
4969
|
"children": [
|
|
4970
|
+
{
|
|
4971
|
+
"type": "describe",
|
|
4972
|
+
"name": "when the Disabled Tab is clicked",
|
|
4973
|
+
"children": [
|
|
4974
|
+
{
|
|
4975
|
+
"type": "it",
|
|
4976
|
+
"name": "should not set \"[aria-selected=true]\" on the Disabled Tab"
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
"type": "it",
|
|
4980
|
+
"name": "should leave the first tab selected"
|
|
4981
|
+
}
|
|
4982
|
+
]
|
|
4983
|
+
},
|
|
4940
4984
|
{
|
|
4941
4985
|
"type": "describe",
|
|
4942
4986
|
"name": "when the first tab is active and focused",
|
|
@@ -4947,7 +4991,21 @@ module.exports = {specifications: [
|
|
|
4947
4991
|
"children": [
|
|
4948
4992
|
{
|
|
4949
4993
|
"type": "it",
|
|
4950
|
-
"name": "should
|
|
4994
|
+
"name": "should focus on the Disabled Tab"
|
|
4995
|
+
},
|
|
4996
|
+
{
|
|
4997
|
+
"type": "describe",
|
|
4998
|
+
"name": "when the enter key is pressed",
|
|
4999
|
+
"children": [
|
|
5000
|
+
{
|
|
5001
|
+
"type": "it",
|
|
5002
|
+
"name": "should not set \"[aria-selected=true]\" on the Disabled Tab"
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"type": "it",
|
|
5006
|
+
"name": "should leave the first tab selected"
|
|
5007
|
+
}
|
|
5008
|
+
]
|
|
4951
5009
|
}
|
|
4952
5010
|
]
|
|
4953
5011
|
}
|
|
@@ -4985,7 +5043,7 @@ module.exports = {specifications: [
|
|
|
4985
5043
|
"children": [
|
|
4986
5044
|
{
|
|
4987
5045
|
"type": "describe",
|
|
4988
|
-
"name": "then the
|
|
5046
|
+
"name": "then the Delete key is pressed",
|
|
4989
5047
|
"children": [
|
|
4990
5048
|
{
|
|
4991
5049
|
"type": "it",
|
|
@@ -5009,7 +5067,7 @@ module.exports = {specifications: [
|
|
|
5009
5067
|
"children": [
|
|
5010
5068
|
{
|
|
5011
5069
|
"type": "describe",
|
|
5012
|
-
"name": "then the
|
|
5070
|
+
"name": "then the Delete key is pressed",
|
|
5013
5071
|
"children": [
|
|
5014
5072
|
{
|
|
5015
5073
|
"type": "it",
|
|
@@ -5029,7 +5087,7 @@ module.exports = {specifications: [
|
|
|
5029
5087
|
},
|
|
5030
5088
|
{
|
|
5031
5089
|
"type": "describe",
|
|
5032
|
-
"name": "then the
|
|
5090
|
+
"name": "then the Delete key is pressed again",
|
|
5033
5091
|
"children": [
|
|
5034
5092
|
{
|
|
5035
5093
|
"type": "it",
|
|
@@ -5047,7 +5105,7 @@ module.exports = {specifications: [
|
|
|
5047
5105
|
"children": [
|
|
5048
5106
|
{
|
|
5049
5107
|
"type": "describe",
|
|
5050
|
-
"name": "then the
|
|
5108
|
+
"name": "then the Delete key is pressed",
|
|
5051
5109
|
"children": [
|
|
5052
5110
|
{
|
|
5053
5111
|
"type": "it",
|
|
@@ -5101,7 +5159,7 @@ module.exports = {specifications: [
|
|
|
5101
5159
|
},
|
|
5102
5160
|
{
|
|
5103
5161
|
"type": "it",
|
|
5104
|
-
"name": "should not have tabindex on the second tab"
|
|
5162
|
+
"name": "should not have tabindex=-1 on the second tab"
|
|
5105
5163
|
},
|
|
5106
5164
|
{
|
|
5107
5165
|
"type": "it",
|
|
@@ -5133,7 +5191,7 @@ module.exports = {specifications: [
|
|
|
5133
5191
|
},
|
|
5134
5192
|
{
|
|
5135
5193
|
"type": "it",
|
|
5136
|
-
"name": "should not have tabindex on the last tab"
|
|
5194
|
+
"name": "should not have tabindex=-1 on the last tab"
|
|
5137
5195
|
},
|
|
5138
5196
|
{
|
|
5139
5197
|
"type": "it",
|
|
@@ -5144,6 +5202,90 @@ module.exports = {specifications: [
|
|
|
5144
5202
|
]
|
|
5145
5203
|
}
|
|
5146
5204
|
]
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
"type": "describe",
|
|
5208
|
+
"name": "when [Components/Containers/Tabs/React, OverflowTabs] story is rendered",
|
|
5209
|
+
"children": [
|
|
5210
|
+
{
|
|
5211
|
+
"type": "it",
|
|
5212
|
+
"name": "should pass axe checks"
|
|
5213
|
+
},
|
|
5214
|
+
{
|
|
5215
|
+
"type": "it",
|
|
5216
|
+
"name": "should not show the \"More\" button"
|
|
5217
|
+
},
|
|
5218
|
+
{
|
|
5219
|
+
"type": "describe",
|
|
5220
|
+
"name": "when the \"First Tab\" is focused",
|
|
5221
|
+
"children": [
|
|
5222
|
+
{
|
|
5223
|
+
"type": "describe",
|
|
5224
|
+
"name": "when the Tab key is pressed",
|
|
5225
|
+
"children": [
|
|
5226
|
+
{
|
|
5227
|
+
"type": "it",
|
|
5228
|
+
"name": "should focus on the tab panel"
|
|
5229
|
+
}
|
|
5230
|
+
]
|
|
5231
|
+
}
|
|
5232
|
+
]
|
|
5233
|
+
},
|
|
5234
|
+
{
|
|
5235
|
+
"type": "describe",
|
|
5236
|
+
"name": "when tab list container is only 500px wide",
|
|
5237
|
+
"children": [
|
|
5238
|
+
{
|
|
5239
|
+
"type": "it",
|
|
5240
|
+
"name": "should pass axe checks"
|
|
5241
|
+
},
|
|
5242
|
+
{
|
|
5243
|
+
"type": "it",
|
|
5244
|
+
"name": "should show the \"More\" button"
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
"type": "describe",
|
|
5248
|
+
"name": "when the \"First Tab\" is focused",
|
|
5249
|
+
"children": [
|
|
5250
|
+
{
|
|
5251
|
+
"type": "describe",
|
|
5252
|
+
"name": "when the Tab key is pressed",
|
|
5253
|
+
"children": [
|
|
5254
|
+
{
|
|
5255
|
+
"type": "it",
|
|
5256
|
+
"name": "should focus on the \"More\" button"
|
|
5257
|
+
}
|
|
5258
|
+
]
|
|
5259
|
+
}
|
|
5260
|
+
]
|
|
5261
|
+
},
|
|
5262
|
+
{
|
|
5263
|
+
"type": "describe",
|
|
5264
|
+
"name": "when the \"More\" button is clicked",
|
|
5265
|
+
"children": [
|
|
5266
|
+
{
|
|
5267
|
+
"type": "it",
|
|
5268
|
+
"name": "should show the Tab overflow menu"
|
|
5269
|
+
},
|
|
5270
|
+
{
|
|
5271
|
+
"type": "describe",
|
|
5272
|
+
"name": "when the \"Sixth Tab\" is clicked",
|
|
5273
|
+
"children": [
|
|
5274
|
+
{
|
|
5275
|
+
"type": "it",
|
|
5276
|
+
"name": "should select the Sixth Tab"
|
|
5277
|
+
},
|
|
5278
|
+
{
|
|
5279
|
+
"type": "it",
|
|
5280
|
+
"name": "should move focus back to the \"More\" button"
|
|
5281
|
+
}
|
|
5282
|
+
]
|
|
5283
|
+
}
|
|
5284
|
+
]
|
|
5285
|
+
}
|
|
5286
|
+
]
|
|
5287
|
+
}
|
|
5288
|
+
]
|
|
5147
5289
|
}
|
|
5148
5290
|
]
|
|
5149
5291
|
}
|
|
@@ -5283,6 +5425,140 @@ module.exports = {specifications: [
|
|
|
5283
5425
|
}
|
|
5284
5426
|
]
|
|
5285
5427
|
},
|
|
5428
|
+
{
|
|
5429
|
+
"type": "file",
|
|
5430
|
+
"name": "TextAreaPreview.spec.ts",
|
|
5431
|
+
"children": [
|
|
5432
|
+
{
|
|
5433
|
+
"type": "describe",
|
|
5434
|
+
"name": "Text Area",
|
|
5435
|
+
"children": [
|
|
5436
|
+
{
|
|
5437
|
+
"type": "describe",
|
|
5438
|
+
"name": "given the 'Basic' story is rendered",
|
|
5439
|
+
"children": [
|
|
5440
|
+
{
|
|
5441
|
+
"type": "it",
|
|
5442
|
+
"name": "should not have any axe errors"
|
|
5443
|
+
},
|
|
5444
|
+
{
|
|
5445
|
+
"type": "describe",
|
|
5446
|
+
"name": "when clicked",
|
|
5447
|
+
"children": [
|
|
5448
|
+
{
|
|
5449
|
+
"type": "it",
|
|
5450
|
+
"name": "should be focused"
|
|
5451
|
+
}
|
|
5452
|
+
]
|
|
5453
|
+
},
|
|
5454
|
+
{
|
|
5455
|
+
"type": "describe",
|
|
5456
|
+
"name": "when text is entered",
|
|
5457
|
+
"children": [
|
|
5458
|
+
{
|
|
5459
|
+
"type": "it",
|
|
5460
|
+
"name": "should reflect the text typed"
|
|
5461
|
+
}
|
|
5462
|
+
]
|
|
5463
|
+
}
|
|
5464
|
+
]
|
|
5465
|
+
},
|
|
5466
|
+
{
|
|
5467
|
+
"type": "describe",
|
|
5468
|
+
"name": "given the 'Alert' story is rendered",
|
|
5469
|
+
"children": [
|
|
5470
|
+
{
|
|
5471
|
+
"type": "it",
|
|
5472
|
+
"name": "should not have any axe errors"
|
|
5473
|
+
},
|
|
5474
|
+
{
|
|
5475
|
+
"type": "describe",
|
|
5476
|
+
"name": "when clicked",
|
|
5477
|
+
"children": [
|
|
5478
|
+
{
|
|
5479
|
+
"type": "it",
|
|
5480
|
+
"name": "should be focused"
|
|
5481
|
+
}
|
|
5482
|
+
]
|
|
5483
|
+
},
|
|
5484
|
+
{
|
|
5485
|
+
"type": "describe",
|
|
5486
|
+
"name": "when text is entered",
|
|
5487
|
+
"children": [
|
|
5488
|
+
{
|
|
5489
|
+
"type": "it",
|
|
5490
|
+
"name": "should reflect the text typed"
|
|
5491
|
+
}
|
|
5492
|
+
]
|
|
5493
|
+
}
|
|
5494
|
+
]
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
"type": "describe",
|
|
5498
|
+
"name": "given the 'Error' story is rendered",
|
|
5499
|
+
"children": [
|
|
5500
|
+
{
|
|
5501
|
+
"type": "it",
|
|
5502
|
+
"name": "should not have any axe errors"
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
"type": "describe",
|
|
5506
|
+
"name": "when clicked",
|
|
5507
|
+
"children": [
|
|
5508
|
+
{
|
|
5509
|
+
"type": "it",
|
|
5510
|
+
"name": "should be focused"
|
|
5511
|
+
}
|
|
5512
|
+
]
|
|
5513
|
+
},
|
|
5514
|
+
{
|
|
5515
|
+
"type": "describe",
|
|
5516
|
+
"name": "when text is entered",
|
|
5517
|
+
"children": [
|
|
5518
|
+
{
|
|
5519
|
+
"type": "it",
|
|
5520
|
+
"name": "should reflect the text typed"
|
|
5521
|
+
}
|
|
5522
|
+
]
|
|
5523
|
+
}
|
|
5524
|
+
]
|
|
5525
|
+
},
|
|
5526
|
+
{
|
|
5527
|
+
"type": "describe",
|
|
5528
|
+
"name": "given the 'Disabled' story is rendered",
|
|
5529
|
+
"children": [
|
|
5530
|
+
{
|
|
5531
|
+
"type": "it",
|
|
5532
|
+
"name": "should not have any axe errors"
|
|
5533
|
+
},
|
|
5534
|
+
{
|
|
5535
|
+
"type": "it",
|
|
5536
|
+
"name": "should be disabled"
|
|
5537
|
+
}
|
|
5538
|
+
]
|
|
5539
|
+
},
|
|
5540
|
+
{
|
|
5541
|
+
"type": "describe",
|
|
5542
|
+
"name": "given the 'Placeholder' story is rendered",
|
|
5543
|
+
"children": [
|
|
5544
|
+
{
|
|
5545
|
+
"type": "it",
|
|
5546
|
+
"name": "should not have any axe errors"
|
|
5547
|
+
},
|
|
5548
|
+
{
|
|
5549
|
+
"type": "it",
|
|
5550
|
+
"name": "should render a placeholder text"
|
|
5551
|
+
},
|
|
5552
|
+
{
|
|
5553
|
+
"type": "it",
|
|
5554
|
+
"name": "should reflect the text typed"
|
|
5555
|
+
}
|
|
5556
|
+
]
|
|
5557
|
+
}
|
|
5558
|
+
]
|
|
5559
|
+
}
|
|
5560
|
+
]
|
|
5561
|
+
},
|
|
5286
5562
|
{
|
|
5287
5563
|
"type": "file",
|
|
5288
5564
|
"name": "TextInput.spec.ts",
|
|
@@ -5417,6 +5693,140 @@ module.exports = {specifications: [
|
|
|
5417
5693
|
}
|
|
5418
5694
|
]
|
|
5419
5695
|
},
|
|
5696
|
+
{
|
|
5697
|
+
"type": "file",
|
|
5698
|
+
"name": "TextInputPreview.spec.ts",
|
|
5699
|
+
"children": [
|
|
5700
|
+
{
|
|
5701
|
+
"type": "describe",
|
|
5702
|
+
"name": "Text Input",
|
|
5703
|
+
"children": [
|
|
5704
|
+
{
|
|
5705
|
+
"type": "describe",
|
|
5706
|
+
"name": "given the 'Basic' story is rendered",
|
|
5707
|
+
"children": [
|
|
5708
|
+
{
|
|
5709
|
+
"type": "it",
|
|
5710
|
+
"name": "should not have any axe errors"
|
|
5711
|
+
},
|
|
5712
|
+
{
|
|
5713
|
+
"type": "describe",
|
|
5714
|
+
"name": "when clicked",
|
|
5715
|
+
"children": [
|
|
5716
|
+
{
|
|
5717
|
+
"type": "it",
|
|
5718
|
+
"name": "should be focused"
|
|
5719
|
+
}
|
|
5720
|
+
]
|
|
5721
|
+
},
|
|
5722
|
+
{
|
|
5723
|
+
"type": "describe",
|
|
5724
|
+
"name": "when text is entered",
|
|
5725
|
+
"children": [
|
|
5726
|
+
{
|
|
5727
|
+
"type": "it",
|
|
5728
|
+
"name": "should reflect the text typed"
|
|
5729
|
+
}
|
|
5730
|
+
]
|
|
5731
|
+
}
|
|
5732
|
+
]
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
"type": "describe",
|
|
5736
|
+
"name": "given the 'Alert' story is rendered",
|
|
5737
|
+
"children": [
|
|
5738
|
+
{
|
|
5739
|
+
"type": "it",
|
|
5740
|
+
"name": "should not have any axe errors"
|
|
5741
|
+
},
|
|
5742
|
+
{
|
|
5743
|
+
"type": "describe",
|
|
5744
|
+
"name": "when clicked",
|
|
5745
|
+
"children": [
|
|
5746
|
+
{
|
|
5747
|
+
"type": "it",
|
|
5748
|
+
"name": "should be focused"
|
|
5749
|
+
}
|
|
5750
|
+
]
|
|
5751
|
+
},
|
|
5752
|
+
{
|
|
5753
|
+
"type": "describe",
|
|
5754
|
+
"name": "when text is entered",
|
|
5755
|
+
"children": [
|
|
5756
|
+
{
|
|
5757
|
+
"type": "it",
|
|
5758
|
+
"name": "should reflect the text typed"
|
|
5759
|
+
}
|
|
5760
|
+
]
|
|
5761
|
+
}
|
|
5762
|
+
]
|
|
5763
|
+
},
|
|
5764
|
+
{
|
|
5765
|
+
"type": "describe",
|
|
5766
|
+
"name": "given the 'Error' story is rendered",
|
|
5767
|
+
"children": [
|
|
5768
|
+
{
|
|
5769
|
+
"type": "it",
|
|
5770
|
+
"name": "should not have any axe errors"
|
|
5771
|
+
},
|
|
5772
|
+
{
|
|
5773
|
+
"type": "describe",
|
|
5774
|
+
"name": "when clicked",
|
|
5775
|
+
"children": [
|
|
5776
|
+
{
|
|
5777
|
+
"type": "it",
|
|
5778
|
+
"name": "should be focused"
|
|
5779
|
+
}
|
|
5780
|
+
]
|
|
5781
|
+
},
|
|
5782
|
+
{
|
|
5783
|
+
"type": "describe",
|
|
5784
|
+
"name": "when text is entered",
|
|
5785
|
+
"children": [
|
|
5786
|
+
{
|
|
5787
|
+
"type": "it",
|
|
5788
|
+
"name": "should reflect the text typed"
|
|
5789
|
+
}
|
|
5790
|
+
]
|
|
5791
|
+
}
|
|
5792
|
+
]
|
|
5793
|
+
},
|
|
5794
|
+
{
|
|
5795
|
+
"type": "describe",
|
|
5796
|
+
"name": "given the 'Disabled' story is rendered",
|
|
5797
|
+
"children": [
|
|
5798
|
+
{
|
|
5799
|
+
"type": "it",
|
|
5800
|
+
"name": "should not have any axe errors"
|
|
5801
|
+
},
|
|
5802
|
+
{
|
|
5803
|
+
"type": "it",
|
|
5804
|
+
"name": "should be disabled"
|
|
5805
|
+
}
|
|
5806
|
+
]
|
|
5807
|
+
},
|
|
5808
|
+
{
|
|
5809
|
+
"type": "describe",
|
|
5810
|
+
"name": "given the 'Placeholder' story is rendered",
|
|
5811
|
+
"children": [
|
|
5812
|
+
{
|
|
5813
|
+
"type": "it",
|
|
5814
|
+
"name": "should not have any axe errors"
|
|
5815
|
+
},
|
|
5816
|
+
{
|
|
5817
|
+
"type": "it",
|
|
5818
|
+
"name": "should render a placeholder text"
|
|
5819
|
+
},
|
|
5820
|
+
{
|
|
5821
|
+
"type": "it",
|
|
5822
|
+
"name": "should reflect the text typed"
|
|
5823
|
+
}
|
|
5824
|
+
]
|
|
5825
|
+
}
|
|
5826
|
+
]
|
|
5827
|
+
}
|
|
5828
|
+
]
|
|
5829
|
+
},
|
|
5420
5830
|
{
|
|
5421
5831
|
"type": "file",
|
|
5422
5832
|
"name": "Toast.spec.ts",
|
|
@@ -5633,7 +6043,7 @@ module.exports = {specifications: [
|
|
|
5633
6043
|
},
|
|
5634
6044
|
{
|
|
5635
6045
|
"type": "describe",
|
|
5636
|
-
"name": "when the \"
|
|
6046
|
+
"name": "when the \"Some Text\" text is hovered",
|
|
5637
6047
|
"children": [
|
|
5638
6048
|
{
|
|
5639
6049
|
"type": "it",
|