@workday/canvas-kit-docs 15.1.10 → 15.1.12
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/es6/lib/docs.js
CHANGED
|
@@ -377912,6 +377912,11 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
377912
377912
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsItem.tsx",
|
|
377913
377913
|
"value": "useOverflowListItemMeasure"
|
|
377914
377914
|
},
|
|
377915
|
+
{
|
|
377916
|
+
"kind": "unknown",
|
|
377917
|
+
"value": "unknown",
|
|
377918
|
+
"text": "useTabsItemFocusPanelOnArrowDown"
|
|
377919
|
+
},
|
|
377915
377920
|
{
|
|
377916
377921
|
"kind": "symbol",
|
|
377917
377922
|
"name": "useListItemRovingFocus",
|
|
@@ -383633,6 +383638,140 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
383633
383638
|
}
|
|
383634
383639
|
}
|
|
383635
383640
|
},
|
|
383641
|
+
{
|
|
383642
|
+
"name": "useTabsListResetCursorOnBlur",
|
|
383643
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsList.tsx",
|
|
383644
|
+
"description": "Resets the tablist cursor on blur to the selected tab when visible, or to the first visible\nitem (e.g. the overflow button) when the selected tab is hidden. This ensures the roving\ntabindex always lands on a focusable element when only the \"More\" button is visible.",
|
|
383645
|
+
"declarations": [
|
|
383646
|
+
{
|
|
383647
|
+
"name": "useTabsListResetCursorOnBlur",
|
|
383648
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsList.tsx"
|
|
383649
|
+
}
|
|
383650
|
+
],
|
|
383651
|
+
"tags": {},
|
|
383652
|
+
"type": {
|
|
383653
|
+
"kind": "function",
|
|
383654
|
+
"name": {
|
|
383655
|
+
"kind": "symbol",
|
|
383656
|
+
"name": "createElemPropsHook"
|
|
383657
|
+
},
|
|
383658
|
+
"parameters": [
|
|
383659
|
+
{
|
|
383660
|
+
"kind": "parameter",
|
|
383661
|
+
"name": "model",
|
|
383662
|
+
"description": "",
|
|
383663
|
+
"tags": {},
|
|
383664
|
+
"declarations": [],
|
|
383665
|
+
"type": {
|
|
383666
|
+
"kind": "symbol",
|
|
383667
|
+
"name": "TabsModel"
|
|
383668
|
+
},
|
|
383669
|
+
"required": true
|
|
383670
|
+
},
|
|
383671
|
+
{
|
|
383672
|
+
"kind": "parameter",
|
|
383673
|
+
"name": "elemProps",
|
|
383674
|
+
"description": "",
|
|
383675
|
+
"tags": {},
|
|
383676
|
+
"declarations": [],
|
|
383677
|
+
"type": {
|
|
383678
|
+
"kind": "object",
|
|
383679
|
+
"properties": []
|
|
383680
|
+
},
|
|
383681
|
+
"required": false
|
|
383682
|
+
},
|
|
383683
|
+
{
|
|
383684
|
+
"kind": "parameter",
|
|
383685
|
+
"name": "ref",
|
|
383686
|
+
"description": "",
|
|
383687
|
+
"tags": {},
|
|
383688
|
+
"declarations": [],
|
|
383689
|
+
"type": {
|
|
383690
|
+
"kind": "external",
|
|
383691
|
+
"name": "React.Ref",
|
|
383692
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html"
|
|
383693
|
+
},
|
|
383694
|
+
"required": false
|
|
383695
|
+
}
|
|
383696
|
+
],
|
|
383697
|
+
"returnType": {
|
|
383698
|
+
"kind": "object",
|
|
383699
|
+
"properties": [
|
|
383700
|
+
{
|
|
383701
|
+
"kind": "property",
|
|
383702
|
+
"name": "onKeyDown",
|
|
383703
|
+
"required": true,
|
|
383704
|
+
"type": {
|
|
383705
|
+
"kind": "function",
|
|
383706
|
+
"parameters": [
|
|
383707
|
+
{
|
|
383708
|
+
"kind": "parameter",
|
|
383709
|
+
"name": "event",
|
|
383710
|
+
"type": {
|
|
383711
|
+
"kind": "symbol",
|
|
383712
|
+
"name": "React.KeyboardEvent",
|
|
383713
|
+
"value": "KeyboardEvent<T>"
|
|
383714
|
+
},
|
|
383715
|
+
"required": true,
|
|
383716
|
+
"rest": false,
|
|
383717
|
+
"description": "",
|
|
383718
|
+
"declarations": [
|
|
383719
|
+
{
|
|
383720
|
+
"name": "event",
|
|
383721
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsList.tsx"
|
|
383722
|
+
}
|
|
383723
|
+
],
|
|
383724
|
+
"tags": {}
|
|
383725
|
+
}
|
|
383726
|
+
],
|
|
383727
|
+
"members": [],
|
|
383728
|
+
"returnType": {
|
|
383729
|
+
"kind": "primitive",
|
|
383730
|
+
"value": "void"
|
|
383731
|
+
}
|
|
383732
|
+
},
|
|
383733
|
+
"description": "",
|
|
383734
|
+
"tags": {},
|
|
383735
|
+
"declarations": []
|
|
383736
|
+
},
|
|
383737
|
+
{
|
|
383738
|
+
"kind": "property",
|
|
383739
|
+
"name": "onFocus",
|
|
383740
|
+
"required": true,
|
|
383741
|
+
"type": {
|
|
383742
|
+
"kind": "function",
|
|
383743
|
+
"parameters": [],
|
|
383744
|
+
"members": [],
|
|
383745
|
+
"returnType": {
|
|
383746
|
+
"kind": "primitive",
|
|
383747
|
+
"value": "void"
|
|
383748
|
+
}
|
|
383749
|
+
},
|
|
383750
|
+
"description": "",
|
|
383751
|
+
"tags": {},
|
|
383752
|
+
"declarations": []
|
|
383753
|
+
},
|
|
383754
|
+
{
|
|
383755
|
+
"kind": "property",
|
|
383756
|
+
"name": "onBlur",
|
|
383757
|
+
"required": true,
|
|
383758
|
+
"type": {
|
|
383759
|
+
"kind": "function",
|
|
383760
|
+
"parameters": [],
|
|
383761
|
+
"members": [],
|
|
383762
|
+
"returnType": {
|
|
383763
|
+
"kind": "primitive",
|
|
383764
|
+
"value": "void"
|
|
383765
|
+
}
|
|
383766
|
+
},
|
|
383767
|
+
"description": "",
|
|
383768
|
+
"tags": {},
|
|
383769
|
+
"declarations": []
|
|
383770
|
+
}
|
|
383771
|
+
]
|
|
383772
|
+
}
|
|
383773
|
+
}
|
|
383774
|
+
},
|
|
383636
383775
|
{
|
|
383637
383776
|
"name": "useTabsList",
|
|
383638
383777
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsList.tsx",
|
|
@@ -383741,9 +383880,9 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
383741
383880
|
},
|
|
383742
383881
|
{
|
|
383743
383882
|
"kind": "symbol",
|
|
383744
|
-
"name": "
|
|
383883
|
+
"name": "useTabsListResetCursorOnBlur",
|
|
383745
383884
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsList.tsx",
|
|
383746
|
-
"value": "
|
|
383885
|
+
"value": "useTabsListResetCursorOnBlur"
|
|
383747
383886
|
}
|
|
383748
383887
|
]
|
|
383749
383888
|
}
|
|
@@ -385207,6 +385346,23 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
385207
385346
|
"name": "composeHooks"
|
|
385208
385347
|
},
|
|
385209
385348
|
"parameters": [
|
|
385349
|
+
{
|
|
385350
|
+
"kind": "unknown",
|
|
385351
|
+
"value": "unknown",
|
|
385352
|
+
"text": "useTabsOverflowButtonMeasure"
|
|
385353
|
+
},
|
|
385354
|
+
{
|
|
385355
|
+
"kind": "symbol",
|
|
385356
|
+
"name": "useListItemRovingFocus",
|
|
385357
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsOverflowButton.tsx",
|
|
385358
|
+
"value": "useListItemRovingFocus"
|
|
385359
|
+
},
|
|
385360
|
+
{
|
|
385361
|
+
"kind": "symbol",
|
|
385362
|
+
"name": "useListItemRegister",
|
|
385363
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsOverflowButton.tsx",
|
|
385364
|
+
"value": "useListItemRegister"
|
|
385365
|
+
},
|
|
385210
385366
|
{
|
|
385211
385367
|
"kind": "function",
|
|
385212
385368
|
"name": {
|
|
@@ -385257,11 +385413,11 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
385257
385413
|
"properties": [
|
|
385258
385414
|
{
|
|
385259
385415
|
"kind": "property",
|
|
385260
|
-
"name": "
|
|
385416
|
+
"name": "data-id",
|
|
385261
385417
|
"required": true,
|
|
385262
385418
|
"type": {
|
|
385263
|
-
"kind": "
|
|
385264
|
-
"value":
|
|
385419
|
+
"kind": "string",
|
|
385420
|
+
"value": "__tabs-overflow__"
|
|
385265
385421
|
},
|
|
385266
385422
|
"description": "",
|
|
385267
385423
|
"tags": {},
|
|
@@ -385270,12 +385426,6 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
385270
385426
|
]
|
|
385271
385427
|
}
|
|
385272
385428
|
},
|
|
385273
|
-
{
|
|
385274
|
-
"kind": "symbol",
|
|
385275
|
-
"name": "useOverflowListTarget",
|
|
385276
|
-
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/TabsOverflowButton.tsx",
|
|
385277
|
-
"value": "useOverflowListTarget"
|
|
385278
|
-
},
|
|
385279
385429
|
{
|
|
385280
385430
|
"kind": "callExpression",
|
|
385281
385431
|
"name": {
|
|
@@ -385308,6 +385458,161 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
385308
385458
|
"name": "useMenuTarget"
|
|
385309
385459
|
}
|
|
385310
385460
|
]
|
|
385461
|
+
},
|
|
385462
|
+
{
|
|
385463
|
+
"kind": "function",
|
|
385464
|
+
"name": {
|
|
385465
|
+
"kind": "symbol",
|
|
385466
|
+
"name": "createElemPropsHook"
|
|
385467
|
+
},
|
|
385468
|
+
"parameters": [
|
|
385469
|
+
{
|
|
385470
|
+
"kind": "parameter",
|
|
385471
|
+
"name": "model",
|
|
385472
|
+
"description": "",
|
|
385473
|
+
"tags": {},
|
|
385474
|
+
"declarations": [],
|
|
385475
|
+
"type": {
|
|
385476
|
+
"kind": "symbol",
|
|
385477
|
+
"name": "TabsModel"
|
|
385478
|
+
},
|
|
385479
|
+
"required": true
|
|
385480
|
+
},
|
|
385481
|
+
{
|
|
385482
|
+
"kind": "parameter",
|
|
385483
|
+
"name": "elemProps",
|
|
385484
|
+
"description": "",
|
|
385485
|
+
"tags": {},
|
|
385486
|
+
"declarations": [],
|
|
385487
|
+
"type": {
|
|
385488
|
+
"kind": "object",
|
|
385489
|
+
"properties": []
|
|
385490
|
+
},
|
|
385491
|
+
"required": false
|
|
385492
|
+
},
|
|
385493
|
+
{
|
|
385494
|
+
"kind": "parameter",
|
|
385495
|
+
"name": "ref",
|
|
385496
|
+
"description": "",
|
|
385497
|
+
"tags": {},
|
|
385498
|
+
"declarations": [],
|
|
385499
|
+
"type": {
|
|
385500
|
+
"kind": "external",
|
|
385501
|
+
"name": "React.Ref",
|
|
385502
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html"
|
|
385503
|
+
},
|
|
385504
|
+
"required": false
|
|
385505
|
+
}
|
|
385506
|
+
],
|
|
385507
|
+
"returnType": {
|
|
385508
|
+
"kind": "object",
|
|
385509
|
+
"properties": [
|
|
385510
|
+
{
|
|
385511
|
+
"kind": "property",
|
|
385512
|
+
"name": "onFocus",
|
|
385513
|
+
"required": true,
|
|
385514
|
+
"type": {
|
|
385515
|
+
"kind": "function",
|
|
385516
|
+
"parameters": [],
|
|
385517
|
+
"members": [],
|
|
385518
|
+
"returnType": {
|
|
385519
|
+
"kind": "primitive",
|
|
385520
|
+
"value": "void"
|
|
385521
|
+
}
|
|
385522
|
+
},
|
|
385523
|
+
"description": "",
|
|
385524
|
+
"tags": {},
|
|
385525
|
+
"declarations": []
|
|
385526
|
+
}
|
|
385527
|
+
]
|
|
385528
|
+
}
|
|
385529
|
+
},
|
|
385530
|
+
{
|
|
385531
|
+
"kind": "function",
|
|
385532
|
+
"name": {
|
|
385533
|
+
"kind": "symbol",
|
|
385534
|
+
"name": "createElemPropsHook"
|
|
385535
|
+
},
|
|
385536
|
+
"parameters": [
|
|
385537
|
+
{
|
|
385538
|
+
"kind": "parameter",
|
|
385539
|
+
"name": "model",
|
|
385540
|
+
"description": "",
|
|
385541
|
+
"tags": {},
|
|
385542
|
+
"declarations": [],
|
|
385543
|
+
"type": {
|
|
385544
|
+
"kind": "symbol",
|
|
385545
|
+
"name": "TabsModel"
|
|
385546
|
+
},
|
|
385547
|
+
"required": true
|
|
385548
|
+
},
|
|
385549
|
+
{
|
|
385550
|
+
"kind": "parameter",
|
|
385551
|
+
"name": "elemProps",
|
|
385552
|
+
"description": "",
|
|
385553
|
+
"tags": {},
|
|
385554
|
+
"declarations": [],
|
|
385555
|
+
"type": {
|
|
385556
|
+
"kind": "object",
|
|
385557
|
+
"properties": []
|
|
385558
|
+
},
|
|
385559
|
+
"required": false
|
|
385560
|
+
},
|
|
385561
|
+
{
|
|
385562
|
+
"kind": "parameter",
|
|
385563
|
+
"name": "ref",
|
|
385564
|
+
"description": "",
|
|
385565
|
+
"tags": {},
|
|
385566
|
+
"declarations": [],
|
|
385567
|
+
"type": {
|
|
385568
|
+
"kind": "external",
|
|
385569
|
+
"name": "React.Ref",
|
|
385570
|
+
"url": "https://reactjs.org/docs/refs-and-the-dom.html"
|
|
385571
|
+
},
|
|
385572
|
+
"required": false
|
|
385573
|
+
}
|
|
385574
|
+
],
|
|
385575
|
+
"returnType": {
|
|
385576
|
+
"kind": "object",
|
|
385577
|
+
"properties": [
|
|
385578
|
+
{
|
|
385579
|
+
"kind": "property",
|
|
385580
|
+
"name": "aria-haspopup",
|
|
385581
|
+
"required": true,
|
|
385582
|
+
"type": {
|
|
385583
|
+
"kind": "string",
|
|
385584
|
+
"value": "menu"
|
|
385585
|
+
},
|
|
385586
|
+
"description": "",
|
|
385587
|
+
"tags": {},
|
|
385588
|
+
"declarations": []
|
|
385589
|
+
},
|
|
385590
|
+
{
|
|
385591
|
+
"kind": "property",
|
|
385592
|
+
"name": "aria-selected",
|
|
385593
|
+
"required": true,
|
|
385594
|
+
"type": {
|
|
385595
|
+
"kind": "boolean",
|
|
385596
|
+
"value": false
|
|
385597
|
+
},
|
|
385598
|
+
"description": "",
|
|
385599
|
+
"tags": {},
|
|
385600
|
+
"declarations": []
|
|
385601
|
+
},
|
|
385602
|
+
{
|
|
385603
|
+
"kind": "property",
|
|
385604
|
+
"name": "role",
|
|
385605
|
+
"required": true,
|
|
385606
|
+
"type": {
|
|
385607
|
+
"kind": "string",
|
|
385608
|
+
"value": "tab"
|
|
385609
|
+
},
|
|
385610
|
+
"description": "",
|
|
385611
|
+
"tags": {},
|
|
385612
|
+
"declarations": []
|
|
385613
|
+
}
|
|
385614
|
+
]
|
|
385615
|
+
}
|
|
385311
385616
|
}
|
|
385312
385617
|
]
|
|
385313
385618
|
}
|
|
@@ -390737,6 +391042,22 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
390737
391042
|
"model": "TabsModel"
|
|
390738
391043
|
}
|
|
390739
391044
|
},
|
|
391045
|
+
{
|
|
391046
|
+
"name": "TABS_OVERFLOW_BUTTON_ID",
|
|
391047
|
+
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/useTabsModel.tsx",
|
|
391048
|
+
"description": "This constant is used as the stable identifier for the overflow button in the tabs collection.\nIt uses a `__` prefix to avoid conflicts with user-provided item IDs.",
|
|
391049
|
+
"declarations": [
|
|
391050
|
+
{
|
|
391051
|
+
"name": "TABS_OVERFLOW_BUTTON_ID",
|
|
391052
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/useTabsModel.tsx"
|
|
391053
|
+
}
|
|
391054
|
+
],
|
|
391055
|
+
"tags": {},
|
|
391056
|
+
"type": {
|
|
391057
|
+
"kind": "string",
|
|
391058
|
+
"value": "__tabs-overflow__"
|
|
391059
|
+
}
|
|
391060
|
+
},
|
|
390740
391061
|
{
|
|
390741
391062
|
"name": "useTabsModel",
|
|
390742
391063
|
"fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/useTabsModel.tsx",
|
|
@@ -391293,8 +391614,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
391293
391614
|
"kind": "parameter",
|
|
391294
391615
|
"name": "item",
|
|
391295
391616
|
"type": {
|
|
391296
|
-
"kind": "
|
|
391297
|
-
"name": "Generic",
|
|
391617
|
+
"kind": "primitive",
|
|
391298
391618
|
"value": "any"
|
|
391299
391619
|
},
|
|
391300
391620
|
"required": true,
|
|
@@ -391303,7 +391623,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
391303
391623
|
"declarations": [
|
|
391304
391624
|
{
|
|
391305
391625
|
"name": "item",
|
|
391306
|
-
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/
|
|
391626
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/useTabsModel.tsx"
|
|
391307
391627
|
}
|
|
391308
391628
|
],
|
|
391309
391629
|
"tags": {}
|
|
@@ -398248,8 +398568,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
398248
398568
|
"kind": "parameter",
|
|
398249
398569
|
"name": "item",
|
|
398250
398570
|
"type": {
|
|
398251
|
-
"kind": "
|
|
398252
|
-
"name": "Generic",
|
|
398571
|
+
"kind": "primitive",
|
|
398253
398572
|
"value": "any"
|
|
398254
398573
|
},
|
|
398255
398574
|
"required": true,
|
|
@@ -398258,7 +398577,7 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
|
|
|
398258
398577
|
"declarations": [
|
|
398259
398578
|
{
|
|
398260
398579
|
"name": "item",
|
|
398261
|
-
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/
|
|
398580
|
+
"filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/tabs/lib/useTabsModel.tsx"
|
|
398262
398581
|
}
|
|
398263
398582
|
],
|
|
398264
398583
|
"tags": {}
|
package/dist/es6/lib/specs.js
CHANGED
|
@@ -5849,7 +5849,7 @@ module.exports = {specifications: [
|
|
|
5849
5849
|
},
|
|
5850
5850
|
{
|
|
5851
5851
|
"type": "it",
|
|
5852
|
-
"name": "should not show the \"More\"
|
|
5852
|
+
"name": "should not show the \"More\" overflow tab"
|
|
5853
5853
|
},
|
|
5854
5854
|
{
|
|
5855
5855
|
"type": "it",
|
|
@@ -5869,7 +5869,7 @@ module.exports = {specifications: [
|
|
|
5869
5869
|
"children": [
|
|
5870
5870
|
{
|
|
5871
5871
|
"type": "it",
|
|
5872
|
-
"name": "should focus
|
|
5872
|
+
"name": "should move focus out of the tablist to the next focusable (width control)"
|
|
5873
5873
|
}
|
|
5874
5874
|
]
|
|
5875
5875
|
}
|
|
@@ -5885,11 +5885,11 @@ module.exports = {specifications: [
|
|
|
5885
5885
|
},
|
|
5886
5886
|
{
|
|
5887
5887
|
"type": "it",
|
|
5888
|
-
"name": "should show the \"More\"
|
|
5888
|
+
"name": "should show the \"More\" overflow tab"
|
|
5889
5889
|
},
|
|
5890
5890
|
{
|
|
5891
5891
|
"type": "it",
|
|
5892
|
-
"name": "should show
|
|
5892
|
+
"name": "should show visible content tabs plus the More overflow tab"
|
|
5893
5893
|
},
|
|
5894
5894
|
{
|
|
5895
5895
|
"type": "it",
|
|
@@ -5901,11 +5901,11 @@ module.exports = {specifications: [
|
|
|
5901
5901
|
"children": [
|
|
5902
5902
|
{
|
|
5903
5903
|
"type": "describe",
|
|
5904
|
-
"name": "when the
|
|
5904
|
+
"name": "when the Right Arrow key is pressed until the More overflow tab",
|
|
5905
5905
|
"children": [
|
|
5906
5906
|
{
|
|
5907
5907
|
"type": "it",
|
|
5908
|
-
"name": "should focus on the \"More\"
|
|
5908
|
+
"name": "should focus on the \"More\" overflow tab"
|
|
5909
5909
|
}
|
|
5910
5910
|
]
|
|
5911
5911
|
}
|
|
@@ -5913,7 +5913,7 @@ module.exports = {specifications: [
|
|
|
5913
5913
|
},
|
|
5914
5914
|
{
|
|
5915
5915
|
"type": "describe",
|
|
5916
|
-
"name": "when the \"More\"
|
|
5916
|
+
"name": "when the \"More\" overflow tab is clicked",
|
|
5917
5917
|
"children": [
|
|
5918
5918
|
{
|
|
5919
5919
|
"type": "it",
|
|
@@ -5933,7 +5933,7 @@ module.exports = {specifications: [
|
|
|
5933
5933
|
},
|
|
5934
5934
|
{
|
|
5935
5935
|
"type": "it",
|
|
5936
|
-
"name": "should move focus
|
|
5936
|
+
"name": "should move focus to a tab (newly selected or More)"
|
|
5937
5937
|
}
|
|
5938
5938
|
]
|
|
5939
5939
|
}
|
|
@@ -5951,7 +5951,7 @@ module.exports = {specifications: [
|
|
|
5951
5951
|
},
|
|
5952
5952
|
{
|
|
5953
5953
|
"type": "it",
|
|
5954
|
-
"name": "should show the \"More\"
|
|
5954
|
+
"name": "should show the \"More\" overflow tab"
|
|
5955
5955
|
},
|
|
5956
5956
|
{
|
|
5957
5957
|
"type": "it",
|
|
@@ -5959,11 +5959,11 @@ module.exports = {specifications: [
|
|
|
5959
5959
|
},
|
|
5960
5960
|
{
|
|
5961
5961
|
"type": "it",
|
|
5962
|
-
"name": "should show
|
|
5962
|
+
"name": "should show 2 content tabs plus the More overflow tab (3 total)"
|
|
5963
5963
|
},
|
|
5964
5964
|
{
|
|
5965
5965
|
"type": "describe",
|
|
5966
|
-
"name": "when the \"More\"
|
|
5966
|
+
"name": "when the \"More\" overflow tab is clicked",
|
|
5967
5967
|
"children": [
|
|
5968
5968
|
{
|
|
5969
5969
|
"type": "it",
|
|
@@ -5971,7 +5971,7 @@ module.exports = {specifications: [
|
|
|
5971
5971
|
},
|
|
5972
5972
|
{
|
|
5973
5973
|
"type": "it",
|
|
5974
|
-
"name": "should have the
|
|
5974
|
+
"name": "should have the third Tab as the first menu item"
|
|
5975
5975
|
}
|
|
5976
5976
|
]
|
|
5977
5977
|
}
|
|
@@ -5987,7 +5987,7 @@ module.exports = {specifications: [
|
|
|
5987
5987
|
},
|
|
5988
5988
|
{
|
|
5989
5989
|
"type": "it",
|
|
5990
|
-
"name": "should show the \"More\"
|
|
5990
|
+
"name": "should show the \"More\" overflow tab"
|
|
5991
5991
|
},
|
|
5992
5992
|
{
|
|
5993
5993
|
"type": "it",
|
|
@@ -5995,11 +5995,11 @@ module.exports = {specifications: [
|
|
|
5995
5995
|
},
|
|
5996
5996
|
{
|
|
5997
5997
|
"type": "it",
|
|
5998
|
-
"name": "should show
|
|
5998
|
+
"name": "should show only the More overflow tab (1 tab when all content tabs overflow)"
|
|
5999
5999
|
},
|
|
6000
6000
|
{
|
|
6001
6001
|
"type": "describe",
|
|
6002
|
-
"name": "when the \"More\"
|
|
6002
|
+
"name": "when the \"More\" overflow tab is clicked",
|
|
6003
6003
|
"children": [
|
|
6004
6004
|
{
|
|
6005
6005
|
"type": "it",
|
|
@@ -6007,7 +6007,7 @@ module.exports = {specifications: [
|
|
|
6007
6007
|
},
|
|
6008
6008
|
{
|
|
6009
6009
|
"type": "it",
|
|
6010
|
-
"name": "should have
|
|
6010
|
+
"name": "should have focus on the first menu item (First Tab)"
|
|
6011
6011
|
}
|
|
6012
6012
|
]
|
|
6013
6013
|
}
|
|
@@ -6019,7 +6019,7 @@ module.exports = {specifications: [
|
|
|
6019
6019
|
"children": [
|
|
6020
6020
|
{
|
|
6021
6021
|
"type": "it",
|
|
6022
|
-
"name": "should not show the \"More\"
|
|
6022
|
+
"name": "should not show the \"More\" overflow tab"
|
|
6023
6023
|
},
|
|
6024
6024
|
{
|
|
6025
6025
|
"type": "it",
|
|
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
|
|
|
18
18
|
"@emotion/react": "11.11.4",
|
|
19
19
|
"@types/react": "18.2.60",
|
|
20
20
|
"@types/react-dom": "18.2.19",
|
|
21
|
-
"@workday/canvas-kit-labs-react": "15.1.
|
|
22
|
-
"@workday/canvas-kit-preview-react": "15.1.
|
|
23
|
-
"@workday/canvas-kit-react": "15.1.
|
|
24
|
-
"@workday/canvas-kit-react-fonts": "^15.1.
|
|
25
|
-
"@workday/canvas-kit-styling": "15.1.
|
|
21
|
+
"@workday/canvas-kit-labs-react": "15.1.12",
|
|
22
|
+
"@workday/canvas-kit-preview-react": "15.1.12",
|
|
23
|
+
"@workday/canvas-kit-react": "15.1.12",
|
|
24
|
+
"@workday/canvas-kit-react-fonts": "^15.1.12",
|
|
25
|
+
"@workday/canvas-kit-styling": "15.1.12",
|
|
26
26
|
"@workday/canvas-system-icons-web": "4.0.2",
|
|
27
27
|
"@workday/canvas-expressive-icons-web": "1.0.1",
|
|
28
28
|
"@workday/canvas-tokens-web": "4.2.0"
|
|
@@ -19,11 +19,11 @@ export const packageJSONFile = `{
|
|
|
19
19
|
"@emotion/react": "11.11.4",
|
|
20
20
|
"@types/react": "18.2.60",
|
|
21
21
|
"@types/react-dom": "18.2.19",
|
|
22
|
-
"@workday/canvas-kit-labs-react": "15.1.
|
|
23
|
-
"@workday/canvas-kit-preview-react": "15.1.
|
|
24
|
-
"@workday/canvas-kit-react": "15.1.
|
|
25
|
-
"@workday/canvas-kit-react-fonts": "^15.1.
|
|
26
|
-
"@workday/canvas-kit-styling": "15.1.
|
|
22
|
+
"@workday/canvas-kit-labs-react": "15.1.12",
|
|
23
|
+
"@workday/canvas-kit-preview-react": "15.1.12",
|
|
24
|
+
"@workday/canvas-kit-react": "15.1.12",
|
|
25
|
+
"@workday/canvas-kit-react-fonts": "^15.1.12",
|
|
26
|
+
"@workday/canvas-kit-styling": "15.1.12",
|
|
27
27
|
"@workday/canvas-system-icons-web": "4.0.2",
|
|
28
28
|
"@workday/canvas-expressive-icons-web": "1.0.1",
|
|
29
29
|
"@workday/canvas-tokens-web": "4.2.0"
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import {Box} from '@workday/canvas-kit-react/layout';
|
|
4
4
|
import {SegmentedControl} from '@workday/canvas-kit-react/segmented-control';
|
|
5
5
|
import {Tabs, useTabsModel} from '@workday/canvas-kit-react/tabs';
|
|
6
|
+
import {Heading} from '@workday/canvas-kit-react/text';
|
|
6
7
|
import {px2rem} from '@workday/canvas-kit-styling';
|
|
7
8
|
import {system} from '@workday/canvas-tokens-web';
|
|
8
9
|
|
|
@@ -43,13 +44,17 @@ export default () => {
|
|
|
43
44
|
</Tabs.Menu.Popper>
|
|
44
45
|
<Tabs.Panels>
|
|
45
46
|
{(item: MyTabItem) => (
|
|
46
|
-
<Tabs.Panel cs={{marginBlockStart: system.gap.lg}}>
|
|
47
|
+
<Tabs.Panel tabIndex={-1} cs={{marginBlockStart: system.gap.lg}}>
|
|
48
|
+
{item.contents}
|
|
49
|
+
</Tabs.Panel>
|
|
47
50
|
)}
|
|
48
51
|
</Tabs.Panels>
|
|
49
52
|
</Tabs>
|
|
50
53
|
</Box>
|
|
51
54
|
<hr />
|
|
52
|
-
<
|
|
55
|
+
<Heading size="small" as="h4">
|
|
56
|
+
Change Tabs container size
|
|
57
|
+
</Heading>
|
|
53
58
|
<SegmentedControl onSelect={data => setContainerWidth(data.id)}>
|
|
54
59
|
<SegmentedControl.List aria-label="container width control">
|
|
55
60
|
<SegmentedControl.Item data-id="100%">100%</SegmentedControl.Item>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-docs",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.12",
|
|
4
4
|
"description": "Documentation components of Canvas Kit components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@stackblitz/sdk": "^1.11.0",
|
|
48
48
|
"@storybook/csf": "0.0.1",
|
|
49
49
|
"@workday/canvas-expressive-icons-web": "1.0.2",
|
|
50
|
-
"@workday/canvas-kit-labs-react": "^15.1.
|
|
51
|
-
"@workday/canvas-kit-preview-react": "^15.1.
|
|
52
|
-
"@workday/canvas-kit-react": "^15.1.
|
|
53
|
-
"@workday/canvas-kit-styling": "^15.1.
|
|
50
|
+
"@workday/canvas-kit-labs-react": "^15.1.12",
|
|
51
|
+
"@workday/canvas-kit-preview-react": "^15.1.12",
|
|
52
|
+
"@workday/canvas-kit-react": "^15.1.12",
|
|
53
|
+
"@workday/canvas-kit-styling": "^15.1.12",
|
|
54
54
|
"@workday/canvas-system-icons-web": "4.2.0",
|
|
55
55
|
"@workday/canvas-tokens-web": "4.4.0",
|
|
56
56
|
"markdown-to-jsx": "^7.2.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"mkdirp": "^1.0.3",
|
|
64
64
|
"typescript": "5.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "14e5d60c1526174d2420843610f67314fa0e540e"
|
|
67
67
|
}
|