@workday/canvas-kit-docs 12.4.1 → 12.4.3

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.
@@ -145259,12 +145259,53 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
145259
145259
  }
145260
145260
  },
145261
145261
  {
145262
- "name": "isFocusable",
145262
+ "name": "isMouseFocusable",
145263
145263
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts",
145264
- "description": "Is an element focusable? This function performs various tests to see if the element in question\ncan receive focus. Should skip disabled elements as they are not focusable.",
145264
+ "description": "Is an element focusable? This function performs various tests to see if the element in question\ncan receive focus via a pointer. Should skip disabled elements as they are not focusable.",
145265
145265
  "declarations": [
145266
145266
  {
145267
- "name": "isFocusable",
145267
+ "name": "isMouseFocusable",
145268
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts"
145269
+ }
145270
+ ],
145271
+ "tags": {},
145272
+ "type": {
145273
+ "kind": "function",
145274
+ "parameters": [
145275
+ {
145276
+ "kind": "parameter",
145277
+ "name": "element",
145278
+ "type": {
145279
+ "kind": "external",
145280
+ "name": "Element",
145281
+ "url": "https://developer.mozilla.org/en-US/docs/Web/API/element"
145282
+ },
145283
+ "required": true,
145284
+ "rest": false,
145285
+ "description": "",
145286
+ "declarations": [
145287
+ {
145288
+ "name": "element",
145289
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts"
145290
+ }
145291
+ ],
145292
+ "tags": {}
145293
+ }
145294
+ ],
145295
+ "members": [],
145296
+ "returnType": {
145297
+ "kind": "primitive",
145298
+ "value": "boolean"
145299
+ }
145300
+ }
145301
+ },
145302
+ {
145303
+ "name": "isKeyboardFocusable",
145304
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts",
145305
+ "description": "Is an element focusable? This function performs various tests to see if the element in question\ncan receive focus via the keyboard. Should skip disabled elements as they are not focusable.",
145306
+ "declarations": [
145307
+ {
145308
+ "name": "isKeyboardFocusable",
145268
145309
  "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts"
145269
145310
  }
145270
145311
  ],
@@ -145299,6 +145340,25 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
145299
145340
  }
145300
145341
  }
145301
145342
  },
145343
+ {
145344
+ "name": "isFocusable",
145345
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts",
145346
+ "description": "",
145347
+ "declarations": [
145348
+ {
145349
+ "name": "isFocusable",
145350
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts"
145351
+ }
145352
+ ],
145353
+ "tags": {
145354
+ "deprecated": "Use `isMouseFocusable` for mouse events and `isKeyboardFocusable` for keyboard\nevents. `isFocusable` is an alias to `isKeyboardFocusable`"
145355
+ },
145356
+ "type": {
145357
+ "kind": "symbol",
145358
+ "name": "isKeyboardFocusable",
145359
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts"
145360
+ }
145361
+ },
145302
145362
  {
145303
145363
  "name": "getFirstFocusableElement",
145304
145364
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/common/lib/utils/elements.ts",
@@ -2,7 +2,8 @@ import React from 'react';
2
2
 
3
3
  import {TextInput} from '@workday/canvas-kit-react/text-input';
4
4
  import {FormField} from '@workday/canvas-kit-react/form-field';
5
- import {TertiaryButton} from '@workday/canvas-kit-react/button';
5
+ import {SecondaryButton, TertiaryButton} from '@workday/canvas-kit-react/button';
6
+ import {Flex} from '@workday/canvas-kit-react/layout';
6
7
  import {
7
8
  Popup,
8
9
  useCloseOnOutsideClick,
@@ -33,9 +34,12 @@ export default () => {
33
34
  <FormField.Label>Name</FormField.Label>
34
35
  <FormField.Input as={TextInput} />
35
36
  </FormField>
36
- <Popup.Target style={{marginBottom: 400, marginLeft: 410}} data-testid="target">
37
- Open Popup
38
- </Popup.Target>
37
+ <Flex style={{marginBottom: 400, marginLeft: 410}}>
38
+ <SecondaryButton id="return-focus-button-tabindex" tabIndex={-1}>
39
+ Button with TabIndex=-1
40
+ </SecondaryButton>
41
+ <Popup.Target data-testid="target">Open Popup</Popup.Target>
42
+ </Flex>
39
43
  <Popup.Popper>
40
44
  <Popup.Card>
41
45
  <Popup.CloseIcon aria-label="Close" />
@@ -1,5 +1,5 @@
1
1
  import {ExampleCodeBlock, SymbolDoc, Specifications} from '@workday/canvas-kit-docs';
2
- import {InformationHighlight} from '@workday/canvas-kit-preview-react/information-highlight'
2
+ import {InformationHighlight} from '@workday/canvas-kit-preview-react/information-highlight';
3
3
  import {StatusIndicator} from '@workday/canvas-kit-preview-react/status-indicator';import Default from './examples/Default';
4
4
  import CustomContent from './examples/CustomContent';
5
5
  import DelayedTooltip from './examples/DelayedTooltip';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "12.4.1",
3
+ "version": "12.4.3",
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,10 +44,10 @@
44
44
  "dependencies": {
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@storybook/csf": "0.0.1",
47
- "@workday/canvas-kit-labs-react": "^12.4.1",
48
- "@workday/canvas-kit-preview-react": "^12.4.1",
49
- "@workday/canvas-kit-react": "^12.4.1",
50
- "@workday/canvas-kit-styling": "^12.4.1",
47
+ "@workday/canvas-kit-labs-react": "^12.4.3",
48
+ "@workday/canvas-kit-preview-react": "^12.4.3",
49
+ "@workday/canvas-kit-react": "^12.4.3",
50
+ "@workday/canvas-kit-styling": "^12.4.3",
51
51
  "@workday/canvas-system-icons-web": "^3.0.0",
52
52
  "@workday/canvas-tokens-web": "^2.1.1",
53
53
  "markdown-to-jsx": "^7.2.0",
@@ -60,5 +60,5 @@
60
60
  "mkdirp": "^1.0.3",
61
61
  "typescript": "5.0"
62
62
  },
63
- "gitHead": "f014001d3bc91b611a55dd6f142af895243d2fee"
63
+ "gitHead": "4fc73111c5f3935d19c972170d01aee8afd9f462"
64
64
  }