@workday/canvas-kit-docs 8.6.10 → 8.6.11

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.
@@ -108712,6 +108712,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
108712
108712
  "value": "bottom"
108713
108713
  }
108714
108714
  },
108715
+ {
108716
+ "kind": "property",
108717
+ "name": "fallbackPlacements",
108718
+ "required": false,
108719
+ "type": {
108720
+ "kind": "array",
108721
+ "value": {
108722
+ "kind": "symbol",
108723
+ "name": "Placement",
108724
+ "value": "Placement"
108725
+ }
108726
+ },
108727
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
108728
+ "declarations": [
108729
+ {
108730
+ "name": "fallbackPlacements",
108731
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/PopupPopper.tsx"
108732
+ }
108733
+ ],
108734
+ "tags": {}
108735
+ },
108715
108736
  {
108716
108737
  "kind": "property",
108717
108738
  "name": "popperOptions",
@@ -144111,6 +144132,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
144111
144132
  "value": "bottom"
144112
144133
  }
144113
144134
  },
144135
+ {
144136
+ "kind": "property",
144137
+ "name": "fallbackPlacements",
144138
+ "required": false,
144139
+ "type": {
144140
+ "kind": "array",
144141
+ "value": {
144142
+ "kind": "symbol",
144143
+ "name": "Placement",
144144
+ "value": "Placement"
144145
+ }
144146
+ },
144147
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
144148
+ "declarations": [
144149
+ {
144150
+ "name": "fallbackPlacements",
144151
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/Popper.tsx"
144152
+ }
144153
+ ],
144154
+ "tags": {}
144155
+ },
144114
144156
  {
144115
144157
  "kind": "property",
144116
144158
  "name": "onPlacementChange",
@@ -173082,6 +173124,81 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
173082
173124
  }
173083
173125
  }
173084
173126
  },
173127
+ {
173128
+ "name": "Placement",
173129
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/fallbackPlacements.ts",
173130
+ "description": "",
173131
+ "declarations": [
173132
+ {
173133
+ "name": "Placement",
173134
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/fallbackPlacements.ts"
173135
+ }
173136
+ ],
173137
+ "tags": {},
173138
+ "type": {
173139
+ "kind": "type",
173140
+ "typeParameters": [],
173141
+ "value": {
173142
+ "kind": "symbol",
173143
+ "name": "PopperJS.Placement",
173144
+ "value": "Placement"
173145
+ }
173146
+ }
173147
+ },
173148
+ {
173149
+ "name": "Options",
173150
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/fallbackPlacements.ts",
173151
+ "description": "",
173152
+ "declarations": [
173153
+ {
173154
+ "name": "Options",
173155
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/fallbackPlacements.ts"
173156
+ }
173157
+ ],
173158
+ "tags": {},
173159
+ "type": {
173160
+ "kind": "object",
173161
+ "properties": [
173162
+ {
173163
+ "kind": "property",
173164
+ "name": "fallbackPlacements",
173165
+ "required": true,
173166
+ "type": {
173167
+ "kind": "array",
173168
+ "value": {
173169
+ "kind": "symbol",
173170
+ "name": "Placement",
173171
+ "value": "Placement"
173172
+ }
173173
+ },
173174
+ "description": "",
173175
+ "declarations": [
173176
+ {
173177
+ "name": "fallbackPlacements",
173178
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/fallbackPlacements.ts"
173179
+ }
173180
+ ],
173181
+ "tags": {}
173182
+ }
173183
+ ]
173184
+ }
173185
+ },
173186
+ {
173187
+ "name": "fallbackPlacementsModifier",
173188
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/fallbackPlacements.ts",
173189
+ "description": "",
173190
+ "declarations": [
173191
+ {
173192
+ "name": "fallbackPlacementsModifier",
173193
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/fallbackPlacements.ts"
173194
+ }
173195
+ ],
173196
+ "tags": {},
173197
+ "type": {
173198
+ "kind": "symbol",
173199
+ "name": "name"
173200
+ }
173201
+ },
173085
173202
  {
173086
173203
  "name": "getTransformFromPlacement",
173087
173204
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/getTransformFromPlacement.ts",
@@ -176333,6 +176450,26 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
176333
176450
  }
176334
176451
  }
176335
176452
  },
176453
+ {
176454
+ "name": "defaultFallbackPlacements",
176455
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/Popper.tsx",
176456
+ "description": "",
176457
+ "declarations": [
176458
+ {
176459
+ "name": "defaultFallbackPlacements",
176460
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/Popper.tsx"
176461
+ }
176462
+ ],
176463
+ "tags": {},
176464
+ "type": {
176465
+ "kind": "array",
176466
+ "value": {
176467
+ "kind": "symbol",
176468
+ "name": "Placement",
176469
+ "value": "Placement"
176470
+ }
176471
+ }
176472
+ },
176336
176473
  {
176337
176474
  "name": "PopperProps",
176338
176475
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/Popper.tsx",
@@ -176547,6 +176684,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
176547
176684
  "value": "bottom"
176548
176685
  }
176549
176686
  },
176687
+ {
176688
+ "kind": "property",
176689
+ "name": "fallbackPlacements",
176690
+ "required": false,
176691
+ "type": {
176692
+ "kind": "array",
176693
+ "value": {
176694
+ "kind": "symbol",
176695
+ "name": "Placement",
176696
+ "value": "Placement"
176697
+ }
176698
+ },
176699
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
176700
+ "declarations": [
176701
+ {
176702
+ "name": "fallbackPlacements",
176703
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/Popper.tsx"
176704
+ }
176705
+ ],
176706
+ "tags": {}
176707
+ },
176550
176708
  {
176551
176709
  "kind": "property",
176552
176710
  "name": "onPlacementChange",
@@ -178121,6 +178279,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
178121
178279
  "value": "bottom"
178122
178280
  }
178123
178281
  },
178282
+ {
178283
+ "kind": "property",
178284
+ "name": "fallbackPlacements",
178285
+ "required": false,
178286
+ "type": {
178287
+ "kind": "array",
178288
+ "value": {
178289
+ "kind": "symbol",
178290
+ "name": "Placement",
178291
+ "value": "Placement"
178292
+ }
178293
+ },
178294
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
178295
+ "declarations": [
178296
+ {
178297
+ "name": "fallbackPlacements",
178298
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/PopupPopper.tsx"
178299
+ }
178300
+ ],
178301
+ "tags": {}
178302
+ },
178124
178303
  {
178125
178304
  "kind": "property",
178126
178305
  "name": "popperOptions",
@@ -188329,6 +188508,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
188329
188508
  "default": "bottom"
188330
188509
  }
188331
188510
  },
188511
+ {
188512
+ "kind": "property",
188513
+ "name": "fallbackPlacements",
188514
+ "required": false,
188515
+ "type": {
188516
+ "kind": "array",
188517
+ "value": {
188518
+ "kind": "symbol",
188519
+ "name": "Placement",
188520
+ "value": "Placement"
188521
+ }
188522
+ },
188523
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
188524
+ "declarations": [
188525
+ {
188526
+ "name": "fallbackPlacements",
188527
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/Popper.tsx"
188528
+ }
188529
+ ],
188530
+ "tags": {}
188531
+ },
188332
188532
  {
188333
188533
  "kind": "property",
188334
188534
  "name": "onPlacementChange",
@@ -188660,6 +188860,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
188660
188860
  "value": "bottom"
188661
188861
  }
188662
188862
  },
188863
+ {
188864
+ "kind": "property",
188865
+ "name": "fallbackPlacements",
188866
+ "required": false,
188867
+ "type": {
188868
+ "kind": "array",
188869
+ "value": {
188870
+ "kind": "symbol",
188871
+ "name": "Placement",
188872
+ "value": "Placement"
188873
+ }
188874
+ },
188875
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
188876
+ "declarations": [
188877
+ {
188878
+ "name": "fallbackPlacements",
188879
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/popup/lib/Popper.tsx"
188880
+ }
188881
+ ],
188882
+ "tags": {}
188883
+ },
188663
188884
  {
188664
188885
  "kind": "property",
188665
188886
  "name": "onPlacementChange",
@@ -223550,6 +223771,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
223550
223771
  "kind": "string",
223551
223772
  "value": "top"
223552
223773
  }
223774
+ },
223775
+ {
223776
+ "kind": "property",
223777
+ "name": "fallbackPlacements",
223778
+ "required": false,
223779
+ "type": {
223780
+ "kind": "array",
223781
+ "value": {
223782
+ "kind": "symbol",
223783
+ "name": "Placement",
223784
+ "value": "Placement"
223785
+ }
223786
+ },
223787
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
223788
+ "declarations": [
223789
+ {
223790
+ "name": "fallbackPlacements",
223791
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tooltip/lib/OverflowTooltip.tsx"
223792
+ }
223793
+ ],
223794
+ "tags": {}
223553
223795
  }
223554
223796
  ]
223555
223797
  }
@@ -223652,6 +223894,27 @@ export var docs = (typeof window !== 'undefined' && window.__docs) ||
223652
223894
  "value": "top"
223653
223895
  }
223654
223896
  },
223897
+ {
223898
+ "kind": "property",
223899
+ "name": "fallbackPlacements",
223900
+ "required": false,
223901
+ "type": {
223902
+ "kind": "array",
223903
+ "value": {
223904
+ "kind": "symbol",
223905
+ "name": "Placement",
223906
+ "value": "Placement"
223907
+ }
223908
+ },
223909
+ "description": "Define fallback placements by providing a list of {@link Placement} in array (in order of preference).\nThe default preference is following the order of `top`, `right`, `bottom`, and `left`. Once the initial\nand opposite placements are not available, the fallback placements will be in use. Use an empty array to\ndisable the fallback placements.",
223910
+ "declarations": [
223911
+ {
223912
+ "name": "fallbackPlacements",
223913
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tooltip/lib/Tooltip.tsx"
223914
+ }
223915
+ ],
223916
+ "tags": {}
223917
+ },
223655
223918
  {
223656
223919
  "kind": "property",
223657
223920
  "name": "type",
@@ -1215,6 +1215,70 @@ module.exports = {specifications: [
1215
1215
  }
1216
1216
  ]
1217
1217
  },
1218
+ {
1219
+ "type": "file",
1220
+ "name": "Dialog.spec.ts",
1221
+ "children": [
1222
+ {
1223
+ "type": "describe",
1224
+ "name": "Popup",
1225
+ "children": [
1226
+ {
1227
+ "type": "describe",
1228
+ "name": "given the [Testing/Popups/Dialog, DialogWithFallbackPlacements] example is rendered",
1229
+ "children": [
1230
+ {
1231
+ "type": "describe",
1232
+ "name": "check the fallback placements",
1233
+ "children": [
1234
+ {
1235
+ "type": "describe",
1236
+ "name": "when the preferred placement is set to bottom",
1237
+ "children": [
1238
+ {
1239
+ "type": "it",
1240
+ "name": "should show the fallback placement: top"
1241
+ }
1242
+ ]
1243
+ },
1244
+ {
1245
+ "type": "describe",
1246
+ "name": "when the preferred placement is set to top",
1247
+ "children": [
1248
+ {
1249
+ "type": "it",
1250
+ "name": "should show the fallback placement: bottom"
1251
+ }
1252
+ ]
1253
+ },
1254
+ {
1255
+ "type": "describe",
1256
+ "name": "when the preferred placement is set to right",
1257
+ "children": [
1258
+ {
1259
+ "type": "it",
1260
+ "name": "should show the fallback placement: left"
1261
+ }
1262
+ ]
1263
+ },
1264
+ {
1265
+ "type": "describe",
1266
+ "name": "when the preferred placement is set to right",
1267
+ "children": [
1268
+ {
1269
+ "type": "it",
1270
+ "name": "should show the fallback placement: bottom"
1271
+ }
1272
+ ]
1273
+ }
1274
+ ]
1275
+ }
1276
+ ]
1277
+ }
1278
+ ]
1279
+ }
1280
+ ]
1281
+ },
1218
1282
  {
1219
1283
  "type": "file",
1220
1284
  "name": "ExpandableContainer.spec.ts",
@@ -1571,6 +1635,48 @@ module.exports = {specifications: [
1571
1635
  ]
1572
1636
  }
1573
1637
  ]
1638
+ },
1639
+ {
1640
+ "type": "describe",
1641
+ "name": "given the [Testing/Popups/Menu, MenuWithFallbackPlacements] example is rendered",
1642
+ "children": [
1643
+ {
1644
+ "type": "describe",
1645
+ "name": "check the fallback placements",
1646
+ "children": [
1647
+ {
1648
+ "type": "describe",
1649
+ "name": "when the preferred placement is set to top",
1650
+ "children": [
1651
+ {
1652
+ "type": "it",
1653
+ "name": "should show the fallback placement: bottom"
1654
+ }
1655
+ ]
1656
+ },
1657
+ {
1658
+ "type": "describe",
1659
+ "name": "when the preferred placement is set to right",
1660
+ "children": [
1661
+ {
1662
+ "type": "it",
1663
+ "name": "should show the fallback placement: left"
1664
+ }
1665
+ ]
1666
+ },
1667
+ {
1668
+ "type": "describe",
1669
+ "name": "when the preferred placement is set to right",
1670
+ "children": [
1671
+ {
1672
+ "type": "it",
1673
+ "name": "should show the fallback placement: bottom"
1674
+ }
1675
+ ]
1676
+ }
1677
+ ]
1678
+ }
1679
+ ]
1574
1680
  }
1575
1681
  ]
1576
1682
  }
@@ -2859,6 +2965,48 @@ module.exports = {specifications: [
2859
2965
  ]
2860
2966
  }
2861
2967
  ]
2968
+ },
2969
+ {
2970
+ "type": "describe",
2971
+ "name": "given the [Testing/Popups/Popup, PopupWithFallbackPlacements] example is rendered",
2972
+ "children": [
2973
+ {
2974
+ "type": "describe",
2975
+ "name": "check the fallback placements",
2976
+ "children": [
2977
+ {
2978
+ "type": "describe",
2979
+ "name": "when the preferred placement is set to top",
2980
+ "children": [
2981
+ {
2982
+ "type": "it",
2983
+ "name": "should show the fallback placement: bottom"
2984
+ }
2985
+ ]
2986
+ },
2987
+ {
2988
+ "type": "describe",
2989
+ "name": "when the preferred placement is set to right",
2990
+ "children": [
2991
+ {
2992
+ "type": "it",
2993
+ "name": "should show the fallback placement: left"
2994
+ }
2995
+ ]
2996
+ },
2997
+ {
2998
+ "type": "describe",
2999
+ "name": "when the preferred placement is set to right",
3000
+ "children": [
3001
+ {
3002
+ "type": "it",
3003
+ "name": "should show the fallback placement: bottom"
3004
+ }
3005
+ ]
3006
+ }
3007
+ ]
3008
+ }
3009
+ ]
2862
3010
  }
2863
3011
  ]
2864
3012
  }
@@ -6983,6 +7131,48 @@ module.exports = {specifications: [
6983
7131
  ]
6984
7132
  }
6985
7133
  ]
7134
+ },
7135
+ {
7136
+ "type": "describe",
7137
+ "name": "given the [Testing/Popups/Tooltip, TooltipWithFallbackPlacements] example is rendered",
7138
+ "children": [
7139
+ {
7140
+ "type": "describe",
7141
+ "name": "check the fallback placements",
7142
+ "children": [
7143
+ {
7144
+ "type": "describe",
7145
+ "name": "when the preferred placement is set to top",
7146
+ "children": [
7147
+ {
7148
+ "type": "it",
7149
+ "name": "should show the fallback placement: bottom"
7150
+ }
7151
+ ]
7152
+ },
7153
+ {
7154
+ "type": "describe",
7155
+ "name": "when the preferred placement is set to left",
7156
+ "children": [
7157
+ {
7158
+ "type": "it",
7159
+ "name": "should show the fallback placement: right"
7160
+ }
7161
+ ]
7162
+ },
7163
+ {
7164
+ "type": "describe",
7165
+ "name": "when the preferred placement is set to left",
7166
+ "children": [
7167
+ {
7168
+ "type": "it",
7169
+ "name": "should show the fallback placement: bottom"
7170
+ }
7171
+ ]
7172
+ }
7173
+ ]
7174
+ }
7175
+ ]
6986
7176
  }
6987
7177
  ]
6988
7178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "8.6.10",
3
+ "version": "8.6.11",
4
4
  "description": "Documentation components of Canvas Kit components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -44,9 +44,9 @@
44
44
  "dependencies": {
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@storybook/csf": "0.0.1",
47
- "@workday/canvas-kit-labs-react": "^8.6.10",
48
- "@workday/canvas-kit-preview-react": "^8.6.10",
49
- "@workday/canvas-kit-react": "^8.6.10",
47
+ "@workday/canvas-kit-labs-react": "^8.6.11",
48
+ "@workday/canvas-kit-preview-react": "^8.6.11",
49
+ "@workday/canvas-kit-react": "^8.6.11",
50
50
  "@workday/canvas-system-icons-web": "^3.0.0",
51
51
  "markdown-to-jsx": "^6.10.3",
52
52
  "ts-node": "^10.9.1"
@@ -57,5 +57,5 @@
57
57
  "mkdirp": "^1.0.3",
58
58
  "typescript": "4.2"
59
59
  },
60
- "gitHead": "bb8329642b121f28363380a4de395d97c30afa7a"
60
+ "gitHead": "2281a7827d217de9c9532f480579becac6550607"
61
61
  }