@workday/canvas-kit-react 10.3.21 → 10.3.22

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.
Files changed (74) hide show
  1. package/common/lib/theming/useThemedRing.ts +1 -1
  2. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
  3. package/dist/commonjs/common/lib/theming/useThemedRing.js +1 -1
  4. package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
  5. package/dist/es6/common/lib/theming/useThemedRing.js +1 -1
  6. package/package.json +4 -4
  7. package/action-bar/LICENSE +0 -51
  8. package/action-bar/README.md +0 -6
  9. package/avatar/LICENSE +0 -51
  10. package/avatar/README.md +0 -111
  11. package/badge/LICENSE +0 -51
  12. package/badge/README.md +0 -127
  13. package/banner/LICENSE +0 -51
  14. package/banner/README.md +0 -7
  15. package/breadcrumbs/LICENSE +0 -52
  16. package/breadcrumbs/README.md +0 -9
  17. package/button/LICENSE +0 -51
  18. package/button/README.md +0 -272
  19. package/card/LICENSE +0 -51
  20. package/card/README.md +0 -7
  21. package/checkbox/LICENSE +0 -51
  22. package/checkbox/README.md +0 -7
  23. package/collection/LICENSE +0 -52
  24. package/collection/README.md +0 -32
  25. package/color-picker/LICENSE +0 -51
  26. package/color-picker/README.md +0 -13
  27. package/combobox/LICENSE +0 -52
  28. package/combobox/README.md +0 -7
  29. package/common/LICENSE +0 -51
  30. package/common/README.md +0 -467
  31. package/dialog/LICENSE +0 -52
  32. package/dialog/README.md +0 -10
  33. package/form-field/LICENSE +0 -51
  34. package/form-field/README.md +0 -5
  35. package/icon/LICENSE +0 -51
  36. package/icon/README.md +0 -428
  37. package/layout/LICENSE +0 -52
  38. package/layout/README.md +0 -151
  39. package/loading-dots/LICENSE +0 -51
  40. package/loading-dots/README.md +0 -7
  41. package/menu/LICENSE +0 -52
  42. package/menu/README.md +0 -32
  43. package/modal/README.md +0 -12
  44. package/pagination/LICENSE +0 -51
  45. package/pagination/README.md +0 -7
  46. package/popup/LICENSE +0 -51
  47. package/popup/README.md +0 -12
  48. package/radio/LICENSE +0 -51
  49. package/radio/README.md +0 -7
  50. package/segmented-control/LICENSE +0 -51
  51. package/segmented-control/README.md +0 -56
  52. package/select/README.md +0 -12
  53. package/side-panel/README.md +0 -174
  54. package/skeleton/README.md +0 -7
  55. package/status-indicator/LICENSE +0 -51
  56. package/status-indicator/README.md +0 -7
  57. package/switch/README.md +0 -7
  58. package/table/README.md +0 -7
  59. package/tabs/LICENSE +0 -51
  60. package/tabs/README.md +0 -7
  61. package/testing/LICENSE +0 -52
  62. package/testing/README.md +0 -6
  63. package/text/LICENSE +0 -52
  64. package/text/README.md +0 -5
  65. package/text-area/LICENSE +0 -51
  66. package/text-area/README.md +0 -7
  67. package/text-input/LICENSE +0 -51
  68. package/text-input/README.md +0 -7
  69. package/toast/LICENSE +0 -52
  70. package/toast/README.md +0 -5
  71. package/tokens/LICENSE +0 -51
  72. package/tokens/README.md +0 -427
  73. package/tooltip/LICENSE +0 -51
  74. package/tooltip/README.md +0 -77
package/tooltip/README.md DELETED
@@ -1,77 +0,0 @@
1
- # Canvas Kit Tooltip
2
-
3
- A Tooltip component that renders information/text when the user hovers over an element. A tooltip is
4
- used to label or describe an element. By default, a tooltip will label an element. This is useful
5
- for TertiaryButtons that render just an icon. A tooltip can also be used to describe additional
6
- information about an element
7
-
8
- [> Workday Design Reference](https://design.workday.com/components/popups/tooltips)
9
-
10
- ## Installation
11
-
12
- ```sh
13
- yarn add @workday/canvas-kit-react
14
- ```
15
-
16
- ## Usage
17
-
18
- ```tsx
19
- import * as React from 'react';
20
-
21
- import {Tooltip} from '@workday/canvas-kit-react/tooltip';
22
- import {TertiaryButton} from '@workday/canvas-kit-react/button';
23
-
24
- const TooltipExample = () => {
25
- return (
26
- <Tooltip title="Close">
27
- <TertiaryButton icon={xIcon} aria-label="Close" />
28
- </Tooltip>
29
- );
30
- };
31
- ```
32
-
33
- ## Static Properties
34
-
35
- > None
36
-
37
- ## Component Props
38
-
39
- ### Required
40
-
41
- #### title: string | React.ReactNode
42
-
43
- > This should be a string in most cases. HTML is supported, but only text is understood by assistive
44
- > technology. This is true for both `label` and `describe` modes.
45
-
46
- #### children: React.ReactNode
47
-
48
- > The target (anchor element) for the Tooltip.
49
- >
50
- > **Note:** This **must** be an Element, StyledComponent or any other component that forwards extra
51
- > props to an Element. Tooltip works running `React.cloneElement` on the children and adds extra
52
- > properties like aria attributes and event handlers. This is currently a limitation of the Tooltip
53
- > component. Functionality will not work if this condition isn't met
54
-
55
- ---
56
-
57
- ### Optional
58
-
59
- #### type: 'label' | 'describe'
60
-
61
- > Determines the tooltip type for accessibility.
62
- >
63
- > - `label`: Sets the accessible name for the wrapped element. Use for icons or if tooltip `title`
64
- > prop is the same as the text content of the wrapped element. E.g. TertiaryButtons that render an
65
- > icon or Ellipsis tooltips.
66
- > - `describe`: Sets `aria-describedby` of the wrapped element. Use if the tooltip has additional
67
- > information about the target. **Note**: Assistive technology may ignore `describe` techniques
68
- > based on verbosity settings. Consider an alternate way to inform a user of additional important
69
- > information.
70
-
71
- Default: `'label'`
72
-
73
- #### placement: PopperJS.Placement
74
-
75
- > Sets the placement preference used by PopperJS.
76
-
77
- Default: `'top'`