@workday/canvas-kit-react 11.0.0-alpha.718-next.0 → 11.0.0-alpha.726-next.0

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 (98) hide show
  1. package/collection/lib/useCursorListModel.tsx +1 -1
  2. package/common/lib/CanvasProvider.tsx +2 -2
  3. package/common/lib/theming/useThemedRing.ts +1 -1
  4. package/dist/commonjs/collection/lib/useCursorListModel.js +1 -1
  5. package/dist/commonjs/common/lib/CanvasProvider.d.ts.map +1 -1
  6. package/dist/commonjs/common/lib/CanvasProvider.js +2 -2
  7. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
  8. package/dist/commonjs/common/lib/theming/useThemedRing.js +1 -1
  9. package/dist/commonjs/layout/lib/utils/mergeStyles.d.ts.map +1 -1
  10. package/dist/commonjs/layout/lib/utils/mergeStyles.js +3 -8
  11. package/dist/commonjs/select/lib/hooks/useSelectInput.d.ts.map +1 -1
  12. package/dist/commonjs/select/lib/hooks/useSelectInput.js +30 -1
  13. package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
  14. package/dist/commonjs/tabs/lib/useTabsModel.js +2 -4
  15. package/dist/es6/collection/lib/useCursorListModel.js +1 -1
  16. package/dist/es6/common/lib/CanvasProvider.d.ts.map +1 -1
  17. package/dist/es6/common/lib/CanvasProvider.js +2 -2
  18. package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
  19. package/dist/es6/common/lib/theming/useThemedRing.js +1 -1
  20. package/dist/es6/layout/lib/utils/mergeStyles.d.ts.map +1 -1
  21. package/dist/es6/layout/lib/utils/mergeStyles.js +3 -8
  22. package/dist/es6/select/lib/hooks/useSelectInput.d.ts.map +1 -1
  23. package/dist/es6/select/lib/hooks/useSelectInput.js +30 -1
  24. package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
  25. package/dist/es6/tabs/lib/useTabsModel.js +2 -4
  26. package/layout/lib/utils/mergeStyles.ts +3 -11
  27. package/package.json +4 -5
  28. package/select/lib/hooks/useSelectInput.ts +33 -1
  29. package/tabs/lib/useTabsModel.tsx +3 -4
  30. package/action-bar/LICENSE +0 -51
  31. package/action-bar/README.md +0 -6
  32. package/avatar/LICENSE +0 -51
  33. package/avatar/README.md +0 -111
  34. package/badge/LICENSE +0 -51
  35. package/badge/README.md +0 -127
  36. package/banner/LICENSE +0 -51
  37. package/banner/README.md +0 -7
  38. package/breadcrumbs/LICENSE +0 -52
  39. package/breadcrumbs/README.md +0 -9
  40. package/button/LICENSE +0 -51
  41. package/button/README.md +0 -272
  42. package/card/LICENSE +0 -51
  43. package/card/README.md +0 -7
  44. package/checkbox/LICENSE +0 -51
  45. package/checkbox/README.md +0 -7
  46. package/collection/LICENSE +0 -52
  47. package/collection/README.md +0 -32
  48. package/color-picker/LICENSE +0 -51
  49. package/color-picker/README.md +0 -13
  50. package/combobox/LICENSE +0 -52
  51. package/combobox/README.md +0 -7
  52. package/common/LICENSE +0 -51
  53. package/common/README.md +0 -467
  54. package/dialog/LICENSE +0 -52
  55. package/dialog/README.md +0 -10
  56. package/form-field/LICENSE +0 -51
  57. package/form-field/README.md +0 -5
  58. package/icon/LICENSE +0 -51
  59. package/icon/README.md +0 -428
  60. package/layout/LICENSE +0 -52
  61. package/layout/README.md +0 -151
  62. package/loading-dots/LICENSE +0 -51
  63. package/loading-dots/README.md +0 -7
  64. package/menu/LICENSE +0 -52
  65. package/menu/README.md +0 -32
  66. package/modal/README.md +0 -12
  67. package/pagination/LICENSE +0 -51
  68. package/pagination/README.md +0 -7
  69. package/popup/LICENSE +0 -51
  70. package/popup/README.md +0 -12
  71. package/radio/LICENSE +0 -51
  72. package/radio/README.md +0 -7
  73. package/segmented-control/LICENSE +0 -51
  74. package/segmented-control/README.md +0 -56
  75. package/select/README.md +0 -12
  76. package/side-panel/README.md +0 -174
  77. package/skeleton/README.md +0 -7
  78. package/status-indicator/LICENSE +0 -51
  79. package/status-indicator/README.md +0 -7
  80. package/switch/README.md +0 -7
  81. package/table/LICENSE +0 -51
  82. package/table/README.md +0 -7
  83. package/tabs/LICENSE +0 -51
  84. package/tabs/README.md +0 -7
  85. package/testing/LICENSE +0 -52
  86. package/testing/README.md +0 -6
  87. package/text/LICENSE +0 -52
  88. package/text/README.md +0 -5
  89. package/text-area/LICENSE +0 -51
  90. package/text-area/README.md +0 -7
  91. package/text-input/LICENSE +0 -51
  92. package/text-input/README.md +0 -7
  93. package/toast/LICENSE +0 -52
  94. package/toast/README.md +0 -5
  95. package/tokens/LICENSE +0 -51
  96. package/tokens/README.md +0 -427
  97. package/tooltip/LICENSE +0 -51
  98. package/tooltip/README.md +0 -77
package/dialog/LICENSE DELETED
@@ -1,52 +0,0 @@
1
- Apache License, Version 2.0 Apache License Version 2.0, January 2004
2
-
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
- "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
9
- "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
10
- "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
11
- "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
12
- "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
13
- "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
14
- "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
15
- "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
16
- "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
17
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
18
-
19
- 2. Grant of Copyright License.
20
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
21
-
22
- 3. Grant of Patent License.
23
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
24
-
25
- 4. Redistribution.
26
- You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
27
- You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
28
-
29
- 5. Submission of Contributions.
30
- Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
31
-
32
- 6. Trademarks.
33
- This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
34
-
35
- 7. Disclaimer of Warranty.
36
- Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
37
-
38
- 8. Limitation of Liability.
39
- In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
40
-
41
- 9. Accepting Warranty or Additional Liability.
42
- While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
43
-
44
- END OF TERMS AND CONDITIONS
45
-
46
- ©2020. Workday, Inc. All rights reserved. Workday and the Workday logo are registered trademarks of Workday, Inc. All other brand and product names are trademarks or registered trademarks of their respective holders.
47
-
48
-
49
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
50
- http://www.apache.org/licenses/LICENSE-2.0
51
-
52
- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package/dialog/README.md DELETED
@@ -1,10 +0,0 @@
1
- # Canvas Kit React Dialog
2
-
3
- Dialog Component to create non-modal dialogs. Non-modal dialogs do not block the rest of the page
4
- while the dialog is active.
5
-
6
- ## Installation
7
-
8
- ```sh
9
- yarn add @workday/canvas-kit-react
10
- ```
@@ -1,51 +0,0 @@
1
- Apache License, Version 2.0 Apache License Version 2.0, January 2004
2
-
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
- "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
9
- "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
10
- "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
11
- "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
12
- "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
13
- "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
14
- "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
15
- "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
16
- "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
17
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
18
-
19
- 2. Grant of Copyright License.
20
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
21
-
22
- 3. Grant of Patent License.
23
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
24
-
25
- 4. Redistribution.
26
- You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
27
- You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
28
-
29
- 5. Submission of Contributions.
30
- Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
31
-
32
- 6. Trademarks.
33
- This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
34
-
35
- 7. Disclaimer of Warranty.
36
- Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
37
-
38
- 8. Limitation of Liability.
39
- In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
40
-
41
- 9. Accepting Warranty or Additional Liability.
42
- While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
43
-
44
- END OF TERMS AND CONDITIONS
45
-
46
- ©2020. Workday, Inc. All rights reserved. Workday and the Workday logo are registered trademarks of Workday, Inc. All other brand and product names are trademarks or registered trademarks of their respective holders.
47
-
48
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
49
- http://www.apache.org/licenses/LICENSE-2.0
50
-
51
- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
@@ -1,5 +0,0 @@
1
- # Canvas Kit Form Field
2
-
3
- View the
4
- [documentation for Form Field](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field-react--basic)
5
- on Storybook.
package/icon/LICENSE DELETED
@@ -1,51 +0,0 @@
1
- Apache License, Version 2.0 Apache License Version 2.0, January 2004
2
-
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
- "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
9
- "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
10
- "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
11
- "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
12
- "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
13
- "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
14
- "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
15
- "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
16
- "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
17
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
18
-
19
- 2. Grant of Copyright License.
20
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
21
-
22
- 3. Grant of Patent License.
23
- Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
24
-
25
- 4. Redistribution.
26
- You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
27
- You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
28
-
29
- 5. Submission of Contributions.
30
- Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
31
-
32
- 6. Trademarks.
33
- This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
34
-
35
- 7. Disclaimer of Warranty.
36
- Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
37
-
38
- 8. Limitation of Liability.
39
- In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
40
-
41
- 9. Accepting Warranty or Additional Liability.
42
- While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
43
-
44
- END OF TERMS AND CONDITIONS
45
-
46
- ©2020. Workday, Inc. All rights reserved. Workday and the Workday logo are registered trademarks of Workday, Inc. All other brand and product names are trademarks or registered trademarks of their respective holders.
47
-
48
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
49
- http://www.apache.org/licenses/LICENSE-2.0
50
-
51
- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package/icon/README.md DELETED
@@ -1,428 +0,0 @@
1
- # Canvas Kit Icon
2
-
3
- Components assisting the rendering of Canvas accent, applet, and system icons.
4
-
5
- A Workday asset package must be used with these components. No icons are bundled with this package.
6
-
7
- To browse a full list of icons, take a look at the
8
- [Canvas Design System resources](https://design.workday.com/resources) page.
9
-
10
- ## Installation
11
-
12
- ```sh
13
- yarn add @workday/canvas-kit-react
14
- ```
15
-
16
- ### Design Assets
17
-
18
- Install one of the following icon packages:
19
-
20
- ```sh
21
- @workday/canvas-accent-icons-web
22
- @workday/canvas-applet-icons-web
23
- @workday/canvas-system-icons-web
24
- ```
25
-
26
- # Accent Icons
27
-
28
- ## Usage
29
-
30
- Use with `@workday/canvas-accent-icons-web`.
31
-
32
- ```tsx
33
- import { colors } from '@workday/canvas-kit-react/tokens'
34
- import { AccentIcon } from '@workday/canvas-kit-react/icon'
35
- import { shieldIcon } from '@workday/canvas-accent-icons-web'
36
-
37
- // Default Accent Icon
38
- <AccentIcon icon={shieldIcon} />
39
- // Accent Icon with custom color
40
- <AccentIcon icon={shieldIcon} color={colors.pomegranate500} />
41
- // Accent Icon with set size
42
- <AccentIcon icon={shieldIcon} size={80} />
43
- // Accent Icon with a mirrored x-axis (helpful for bidirectional support, if needed)
44
- <AccentIcon icon={shieldIcon} shouldMirror={true} />
45
- ```
46
-
47
- ## Static Properties
48
-
49
- > None
50
-
51
- ## Component Props
52
-
53
- ### Required
54
-
55
- #### `icon: CanvasIcon`
56
-
57
- > Icon to display from `@workday/canvas-accent-icons-web`.
58
-
59
- ### Optional
60
-
61
- #### `color: string`
62
-
63
- > Icon color from `@workday/canvas-colors-web`.
64
-
65
- Default: `colors.blueberry500`
66
-
67
- ---
68
-
69
- #### `size: number`
70
-
71
- > Size of the icon.
72
-
73
- Default: `56`
74
-
75
- ---
76
-
77
- #### `transparent: boolean`
78
-
79
- > Toggle for transparent accent icon background. If false, the background fill will be white.
80
-
81
- Default: `false`
82
-
83
- ---
84
-
85
- #### `shouldMirror: boolean`
86
-
87
- > If set to `true`, transform the SVG's x-axis to mirror the graphic
88
-
89
- Default: `false`
90
-
91
- ---
92
-
93
- # Applet Icons
94
-
95
- ## Usage
96
-
97
- Use with `@workday/canvas-applet-icons-web`.
98
-
99
- ```tsx
100
- import { AppletIcon } from '@workday/canvas-kit-react/icon'
101
- import { benefitsIcon } from '@workday/canvas-applet-icons-web'
102
-
103
- // Default Applet Icon
104
- <AppletIcon icon={benefitsIcon} />
105
- // Applet Icon with custom color
106
- <AppletIcon icon={benefitsIcon} color={AppletIcon.Colors.Pomegranate} />
107
- // Applet Icon with set size
108
- <AppletIcon icon={benefitsIcon} size={60} />
109
- // Applet Icon with a mirrored x-axis (helpful for bidirectional support, if needed)
110
- <AppletIcon icon={benefitsIcon} shouldMirror={true} />
111
- ```
112
-
113
- ## Static Properties
114
-
115
- #### `Colors: BrandingColor`
116
-
117
- > An enum of the various Canvas hues (`Pomegranate`, `Blueberry`, `Cinnamon`, etc.).
118
-
119
- ```tsx
120
- <AppletIcon icon={benefitsIcon} color={AppletIcon.Colors.Pomegranate} />
121
- ```
122
-
123
- - `Cinnamon`
124
- - `Peach`
125
- - `ChiliMango`
126
- - `Cantaloupe`
127
- - `SourLemon`
128
- - `JuicyPear`
129
- - `Kiwi`
130
- - `GreenApple`
131
- - `Watermelon`
132
- - `Jewel`
133
- - `Toothpaste`
134
- - `Blueberry`
135
- - `Plum`
136
- - `BerrySmoothie`
137
- - `Blackberry`
138
- - `IslandPunch`
139
- - `GrapeSoda`
140
- - `Pomegranate`
141
- - `FruitPunch`
142
- - `RootBeer`
143
- - `ToastedMarshmallow`
144
- - `Cappuccino`
145
- - `Licorice`
146
- - `BlackPepper`
147
-
148
- ## Component Props
149
-
150
- ### Required
151
-
152
- #### `icon: CanvasIcon`
153
-
154
- > Icon to display from `@workday/canvas-applet-icons-web`.
155
-
156
- ### Optional
157
-
158
- #### `color: AppletIcon.Colors`
159
-
160
- > Icon color hue. Must use a member of the `AppletIcon.Colors` static enum.
161
-
162
- Default: `AppletIcon.Colors.Blueberry`
163
-
164
- ---
165
-
166
- #### `size: number`
167
-
168
- > Size of the icon in `px`.
169
-
170
- Default: `92`
171
-
172
- ---
173
-
174
- #### `shouldMirror: boolean`
175
-
176
- > If set to `true`, transform the SVG's x-axis to mirror the graphic
177
-
178
- Default: `false`
179
-
180
- ---
181
-
182
- # System Icons
183
-
184
- ## Usage
185
-
186
- Use with `@workday/canvas-system-icons-web`.
187
-
188
- ```tsx
189
- import { colors } from '@workday/canvas-kit-react/tokens'
190
- import { SystemIcon } from '@workday/canvas-kit-react/icon'
191
- import { activityStreamIcon } from '@workday/canvas-system-icons-web'
192
-
193
- <SystemIcon icon={activityStreamIcon} />
194
- <SystemIcon icon={activityStreamIcon} color={colors.blueberry500} />
195
- <SystemIcon
196
- icon={activityStreamIcon}
197
- accent={colors.frenchVanilla100}
198
- fill={colors.blueberry500}
199
- background={colors.blueberry500}
200
- />
201
- <SystemIcon icon={activityStreamIcon} size={48} />
202
- ```
203
-
204
- ## Static Properties
205
-
206
- > None
207
-
208
- ## Component Props
209
-
210
- ### Required
211
-
212
- #### `icon: CanvasIcon`
213
-
214
- > Icon to display from `@workday/canvas-system-icons-web`
215
-
216
- ### Optional
217
-
218
- #### `size: number`
219
-
220
- > Size of the icon in `px`.
221
-
222
- Default: `24`
223
-
224
- ---
225
-
226
- #### `color: string`
227
-
228
- > Icon color. This will define `accent` and `fill`. `accent` and `fill` will override this property
229
- > if defined.
230
-
231
- Default: `iconColors.standard`
232
-
233
- ---
234
-
235
- #### `colorHover: string`
236
-
237
- > Hover color of the icon. This will define `accentHover` and `fillHover`.
238
-
239
- Default: `iconColors.hover`
240
-
241
- ---
242
-
243
- #### `accent: string`
244
-
245
- > `.wd-icon-accent` color. This will override `color`.
246
-
247
- ---
248
-
249
- #### `accentHover: string`
250
-
251
- > `.wd-icon-accent` color on hover. This will override `colorHover`.
252
-
253
- ---
254
-
255
- #### `background: string`
256
-
257
- > `.wd-icon-background` color.
258
-
259
- Default: `'transparent'`
260
-
261
- ---
262
-
263
- #### `backgroundHover: string`
264
-
265
- > `.wd-icon-background` color on hover.
266
-
267
- Default: `'transparent'`
268
-
269
- ---
270
-
271
- #### `fill: string`
272
-
273
- > `.wd-icon-fill` color. This will override `color`.
274
-
275
- ---
276
-
277
- #### `fillHover: string`
278
-
279
- > `.wd-icon-fill` color on hover. This will override `colorHover`.
280
-
281
- ---
282
-
283
- #### `shouldMirror: boolean`
284
-
285
- > If set to `true`, transform the SVG's x-axis to mirror the graphic
286
-
287
- Default: `false`
288
-
289
- ---
290
-
291
- # System Icon Circle
292
-
293
- A system icon with a colored circular background. Icon color will be determined based on contrast
294
- against the background color provided.
295
-
296
- ## Usage
297
-
298
- Use with `@workday/canvas-accent-icons-web`.
299
-
300
- ```tsx
301
- import { colors } from '@workday/canvas-kit-react/tokens'
302
- import { SystemIconCircle } from '@workday/canvas-kit-react/icon'
303
- import { shieldIcon } from '@workday/canvas-accent-icons-web'
304
-
305
- // Default System Icon Circle
306
- <SystemIconCircle icon={shieldIcon} />
307
- // System Icon Circle with bockground color
308
- <SystemIconCircle icon={shieldIcon} background={colors.pomegranate500} />
309
- // System Icon Circle with a mirrored x-axis (helpful for bidirectional support, if needed)
310
- <SystemIconCircle icon={shieldIcon} shouldMirror={true} />
311
- ```
312
-
313
- ## Static Properties
314
-
315
- > None
316
-
317
- ## Component Props
318
-
319
- ### Required
320
-
321
- #### `icon: CanvasIcon`
322
-
323
- > Icon to display from `@workday/canvas-accent-icons-web`.
324
-
325
- ### Optional
326
-
327
- #### `background: string`
328
-
329
- > Background color from `@workday/canvas-colors-web`.
330
-
331
- Default: `colors.soap300`
332
-
333
- ---
334
-
335
- #### `size: SystemIconCircleSize | number`
336
-
337
- > Size of the icon.
338
-
339
- Default: `SystemIconCircleSize.l` (`40`)
340
-
341
- ---
342
-
343
- #### `shouldMirror: boolean`
344
-
345
- > If set to `true`, transform the SVG's x-axis to mirror the graphic
346
-
347
- Default: `false`
348
-
349
- ---
350
-
351
- # Graphics
352
-
353
- ## Usage
354
-
355
- Use with `@workday/canvas-graphics-web`.
356
-
357
- ```tsx
358
- import { colors } from '@workday/canvas-kit-react/tokens'
359
- import { Graphic } from '@workday/canvas-kit-react/icon'
360
- import { badgeAchievementGraphic } from '@workday/canvas-graphics-web'
361
-
362
- // Default graphic
363
- <Graphic src={badgeAchievementGraphic} />
364
- // Graphic with a set width of 80px
365
- <Graphic src={badgeAchievementGraphic} width={80}/>
366
- // Graphic with a set height of 80px
367
- <Graphic src={badgeAchievementGraphic} height={80}/>
368
- // Graphic with growth behavior to fit its container
369
- <Graphic src={badgeAchievementGraphic} grow={true} />
370
- // Graphic with a mirrored x-axis (helpful for bidirectional support, if needed)
371
- <Graphic src={badgeAchievementGraphic} shouldMirror={true} />
372
- ```
373
-
374
- ## Static Properties
375
-
376
- #### `Size: SystemIconCircleSize`
377
-
378
- > The size of the circle background. The icon will scale to fit.
379
-
380
- | Size | Pixels |
381
- | ---- | ------ |
382
- | xs | 16 |
383
- | s | 24 |
384
- | m | 32 |
385
- | l | 40 |
386
- | xl | 64 |
387
- | xxl | 120 |
388
-
389
- ## Component Props
390
-
391
- ### Required
392
-
393
- #### `src: CanvasGraphic`
394
-
395
- > Graphic to display from `@workday/canvas-graphics-web`
396
-
397
- ### Optional
398
-
399
- #### `width: number | string`
400
-
401
- > Graphic width in `px`. `width` takes precedence over `height` in order to preserve the graphic's
402
- > ratio.
403
-
404
- Default: `width of graphic`
405
-
406
- ---
407
-
408
- #### `height: number | string`
409
-
410
- > Graphic height in `px`. If set, `width` will be set to `100%`.
411
-
412
- Default: `height of graphic`
413
-
414
- ---
415
-
416
- #### `grow: boolean`
417
-
418
- > Expand graphic to fit container. `grow` takes precedence over both `width` and `height`.
419
-
420
- Default: `false`
421
-
422
- #### `shouldMirror: boolean`
423
-
424
- > If set to `true`, transform the SVG's x-axis to mirror the graphic
425
-
426
- Default: `false`
427
-
428
- ---