@elastic/eui 94.3.0 → 94.4.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 (149) hide show
  1. package/dist/eui_charts_theme.js +1519 -1519
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +41 -497
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +41 -497
  6. package/dist/eui_theme_light.min.css +1 -1
  7. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
  8. package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
  9. package/es/components/form/form.styles.js +26 -3
  10. package/es/components/markdown_editor/markdown_editor.js +12 -8
  11. package/es/components/markdown_editor/markdown_editor.styles.js +29 -0
  12. package/es/components/markdown_editor/markdown_editor_drop_zone.js +22 -9
  13. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +33 -0
  14. package/es/components/markdown_editor/markdown_editor_footer.js +11 -2
  15. package/es/components/markdown_editor/markdown_editor_footer.styles.js +26 -0
  16. package/es/components/markdown_editor/markdown_editor_text_area.js +6 -1
  17. package/es/components/markdown_editor/markdown_editor_text_area.styles.js +22 -0
  18. package/es/components/markdown_editor/markdown_editor_toolbar.js +10 -2
  19. package/es/components/markdown_editor/markdown_editor_toolbar.styles.js +21 -0
  20. package/es/components/markdown_editor/markdown_format.js +9 -6
  21. package/es/components/markdown_editor/markdown_format.styles.js +25 -10
  22. package/es/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -3
  23. package/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +13 -2
  24. package/es/components/selectable/selectable.js +10 -2
  25. package/es/components/selectable/selectable_list/selectable_list.js +95 -42
  26. package/es/components/selectable/selectable_list/selectable_list_item.js +234 -204
  27. package/es/components/selectable/selectable_option.js +9 -1
  28. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +10 -2
  29. package/es/components/text/text_color.js +4 -1
  30. package/es/components/toast/global_toast_list_item.js +5 -5
  31. package/eui.d.ts +332 -234
  32. package/i18ntokens.json +124 -106
  33. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
  34. package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
  35. package/lib/components/form/form.styles.js +30 -4
  36. package/lib/components/markdown_editor/markdown_editor.js +12 -8
  37. package/lib/components/markdown_editor/markdown_editor.styles.js +37 -0
  38. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +20 -8
  39. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
  40. package/lib/components/markdown_editor/markdown_editor_footer.js +10 -1
  41. package/lib/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
  42. package/lib/components/markdown_editor/markdown_editor_text_area.js +6 -1
  43. package/lib/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
  44. package/lib/components/markdown_editor/markdown_editor_toolbar.js +10 -2
  45. package/lib/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
  46. package/lib/components/markdown_editor/markdown_format.js +8 -5
  47. package/lib/components/markdown_editor/markdown_format.styles.js +25 -10
  48. package/lib/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
  49. package/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
  50. package/lib/components/selectable/selectable.js +10 -2
  51. package/lib/components/selectable/selectable_list/selectable_list.js +95 -42
  52. package/lib/components/selectable/selectable_list/selectable_list_item.js +241 -210
  53. package/lib/components/selectable/selectable_option.js +12 -1
  54. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +10 -2
  55. package/lib/components/text/text_color.js +6 -2
  56. package/lib/components/toast/global_toast_list_item.js +5 -5
  57. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
  58. package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
  59. package/optimize/es/components/form/form.styles.js +26 -3
  60. package/optimize/es/components/markdown_editor/markdown_editor.js +12 -8
  61. package/optimize/es/components/markdown_editor/markdown_editor.styles.js +29 -0
  62. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.js +19 -9
  63. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +33 -0
  64. package/optimize/es/components/markdown_editor/markdown_editor_footer.js +11 -2
  65. package/optimize/es/components/markdown_editor/markdown_editor_footer.styles.js +26 -0
  66. package/optimize/es/components/markdown_editor/markdown_editor_text_area.js +6 -1
  67. package/optimize/es/components/markdown_editor/markdown_editor_text_area.styles.js +22 -0
  68. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +10 -2
  69. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.styles.js +21 -0
  70. package/optimize/es/components/markdown_editor/markdown_format.js +9 -6
  71. package/optimize/es/components/markdown_editor/markdown_format.styles.js +25 -10
  72. package/optimize/es/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -3
  73. package/optimize/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +13 -2
  74. package/optimize/es/components/selectable/selectable_list/selectable_list.js +81 -38
  75. package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +217 -198
  76. package/optimize/es/components/selectable/selectable_option.js +9 -1
  77. package/optimize/es/components/text/text_color.js +4 -1
  78. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
  79. package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
  80. package/optimize/lib/components/form/form.styles.js +30 -4
  81. package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -8
  82. package/optimize/lib/components/markdown_editor/markdown_editor.styles.js +37 -0
  83. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.js +24 -16
  84. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
  85. package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +10 -1
  86. package/optimize/lib/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
  87. package/optimize/lib/components/markdown_editor/markdown_editor_text_area.js +6 -1
  88. package/optimize/lib/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
  89. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +10 -2
  90. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
  91. package/optimize/lib/components/markdown_editor/markdown_format.js +8 -5
  92. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +25 -10
  93. package/optimize/lib/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
  94. package/optimize/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
  95. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +81 -38
  96. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +224 -204
  97. package/optimize/lib/components/selectable/selectable_option.js +12 -1
  98. package/optimize/lib/components/text/text_color.js +6 -2
  99. package/package.json +5 -12
  100. package/src/components/date_picker/react-datepicker/LICENSE +21 -0
  101. package/src/components/date_picker/react-datepicker/README.md +168 -0
  102. package/src/components/date_picker/super_date_picker/date_popover/_absolute_tab.scss +13 -18
  103. package/src/components/form/checkbox/_checkbox.scss +23 -6
  104. package/src/components/index.scss +0 -1
  105. package/src/components/selectable/selectable_list/_selectable_list_item.scss +4 -0
  106. package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +5 -1
  107. package/src/services/theme/README.md +153 -0
  108. package/src/test/README.md +44 -0
  109. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  110. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
  111. package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
  112. package/test-env/components/form/form.styles.js +30 -4
  113. package/test-env/components/markdown_editor/markdown_editor.js +12 -8
  114. package/test-env/components/markdown_editor/markdown_editor.styles.js +37 -0
  115. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +24 -16
  116. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
  117. package/test-env/components/markdown_editor/markdown_editor_footer.js +10 -1
  118. package/test-env/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
  119. package/test-env/components/markdown_editor/markdown_editor_text_area.js +6 -1
  120. package/test-env/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
  121. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +10 -2
  122. package/test-env/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
  123. package/test-env/components/markdown_editor/markdown_format.js +8 -5
  124. package/test-env/components/markdown_editor/markdown_format.styles.js +25 -10
  125. package/test-env/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
  126. package/test-env/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
  127. package/test-env/components/selectable/selectable.js +10 -2
  128. package/test-env/components/selectable/selectable_list/selectable_list.js +95 -42
  129. package/test-env/components/selectable/selectable_list/selectable_list_item.js +233 -205
  130. package/test-env/components/selectable/selectable_option.js +12 -1
  131. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +10 -2
  132. package/test-env/components/text/text_color.js +6 -2
  133. package/test-env/components/toast/global_toast_list_item.js +5 -5
  134. package/LICENSE.txt +0 -6
  135. package/NOTICE.txt +0 -54
  136. package/README.md +0 -66
  137. package/licenses/ELASTIC-LICENSE-2.0.md +0 -93
  138. package/licenses/SSPL-LICENSE.md +0 -557
  139. package/src/components/markdown_editor/_index.scss +0 -9
  140. package/src/components/markdown_editor/_markdown_editor.scss +0 -22
  141. package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +0 -58
  142. package/src/components/markdown_editor/_markdown_editor_footer.scss +0 -42
  143. package/src/components/markdown_editor/_markdown_editor_preview.scss +0 -20
  144. package/src/components/markdown_editor/_markdown_editor_text_area.scss +0 -43
  145. package/src/components/markdown_editor/_markdown_editor_toolbar.scss +0 -29
  146. package/src/components/markdown_editor/_markdown_format.scss +0 -78
  147. package/src/components/markdown_editor/_variables.scss +0 -1
  148. package/src/components/markdown_editor/plugins/markdown_tooltip.scss +0 -4
  149. package/src/themes/amsterdam/overrides/_markdown_editor.scss +0 -18
package/NOTICE.txt DELETED
@@ -1,54 +0,0 @@
1
- EUI
2
- Copyright 2012-2021 Elasticsearch B.V.
3
-
4
- ---
5
- This product bundles code based on react-datepicker@2.0.0 which is
6
- available under a "MIT" license.
7
-
8
- The MIT License (MIT)
9
-
10
- Copyright (c) 2018 HackerOne Inc and individual contributors
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy
13
- of this software and associated documentation files (the "Software"), to deal
14
- in the Software without restriction, including without limitation the rights
15
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- copies of the Software, and to permit persons to whom the Software is
17
- furnished to do so, subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- SOFTWARE.
29
-
30
- --
31
- This product bundles code based on @types/react-datepicker@1.8.0 which is
32
- available under a "MIT" license.
33
-
34
- MIT License
35
-
36
- Copyright (c) Microsoft Corporation. All rights reserved.
37
-
38
- Permission is hereby granted, free of charge, to any person obtaining a copy
39
- of this software and associated documentation files (the "Software"), to deal
40
- in the Software without restriction, including without limitation the rights
41
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
- copies of the Software, and to permit persons to whom the Software is
43
- furnished to do so, subject to the following conditions:
44
-
45
- The above copyright notice and this permission notice shall be included in all
46
- copies or substantial portions of the Software.
47
-
48
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
- SOFTWARE
package/README.md DELETED
@@ -1,66 +0,0 @@
1
- <img src="https://repository-images.githubusercontent.com/107422373/b6180480-a1d7-11eb-8a3c-902086232aa7" alt="" />
2
-
3
- # Elastic UI Framework
4
-
5
- **The Elastic UI Framework is a collection of React UI components for quickly building user interfaces at Elastic.**
6
-
7
- Check out our [full documentation site][docs] which contains many examples of components in the EUI framework aesthetic, and how to use them in your products. Our FAQ below covers common usage questions — for other general questions regarding EUI, check out the [Discussions tab](https://github.com/elastic/eui/discussions).
8
-
9
- ## Frequently Asked Questions
10
-
11
- ### What is the Elastic UI Framework?
12
-
13
- The Elastic UI Framework (EUI) is a design library in use at Elastic to build React applications that need to share our branding and aesthetics. It distributes typed UI React components and static assets for use in building web layouts. Alongside the React components, we ship theme & style utilities that can be used independently on their own.
14
-
15
- The primary goal of this library is to provide reusable UI components that can be used throughout Elastic's web products. As React components, they remove CSS from the process of building UIs. As a single source of truth, the framework allows our designers to make changes to our aesthetic directly in the code. And unit test coverage for the UI components allows us to deliver a stable "API for user interfaces".
16
-
17
- ### Can I use EUI?
18
-
19
- Please see Elastic's licensing FAQ: [I’m using EUI or Elastic Charts in my application outside of Kibana, how does this affect me?][licensing-faq]
20
-
21
- ### Why is EUI open source?
22
-
23
- Many of Elastic's products are open source and rely upon this library to function. The Elastic UI Framework began as a folder of code in Kibana and we decided it could be used beyond that codebase. It exists as an independent library so that patterns can be shared across teams and design standards can be scaled across our organization. Since most of our products are open source, we treat this one similarly as far as public publishing and conversation even if its usage tends to focus more inward towards Elastic itself.
24
-
25
- ### What is the versioning, release, and upgrade strategy?
26
-
27
- We use [semver](https://semver.org/) for versioning and use that to denote breaking changes in EUI upgrades. Traditionally we consider API changes in our prop names or existing component functionality to be a reason for a breaking change, but do not track the renaming of CSS selectors, mixins or other style changes under this same rigor.
28
-
29
- Traditionally releases are made weekly against whatever is in the `main` branch and you can upgrade from NPM as you see fit.
30
-
31
- ### Can I contribute to EUI?
32
-
33
- Yes! We welcome community-contributed PRs, especially around feature requests that the EUI team may not have bandwidth to carry out alone. You can find documentation around creating and submitting new components in [our wiki](wiki/contributing-to-eui/).
34
-
35
- ### What about reporting bugs and feature requests?
36
-
37
- Bug reports and feature requests are most welcome, but our roadmap and prioritization are driven primarily by [internal Elastic usage](wiki/contributing-to-eui#how-we-assign-work-and-define-our-roadmap).
38
-
39
- Please note that in order to keep our backlog manageable and focused on tasks we intend to complete, feature requests & tech debt issues that are inactive for a year will be auto-closed (bugs will remain open if determined to be reproducible and valid).
40
-
41
- This activity counter can be soft reset by commenting on the issue directly, but please do so mindfully. We would ask that you proactively let the EUI team know why this request matters to you or how it impacts you or your users, in order to help us prioritize accordingly.
42
-
43
- The EUI team, like everyone else, has a finite amount of time and resources, and it is not humanly possible for us to implement every task or feature requested of us. However, that's where the beauty of open source comes in - if your request is important to you, we strongly encourage you to [contribute code directly to EUI](wiki/contributing-to-eui/) that addresses your issue or request!
44
-
45
- <!-- TODO: Delete this question once the Emotion migration is complete -->
46
- ### What is the status of EUI's theming?
47
-
48
- The EUI library was previously built upon Sass and is in the process of migrating to CSS-in-JS (specifically [Emotion](https://emotion.sh)). While this work is in progress, we ask for your patience with our in-between state in areas such as documentation and setup.
49
-
50
- If you're a Kibana developer with questions around CSS-in-JS usage in Kibana, please check out our [FAQ discussion](https://github.com/elastic/eui/discussions/6828)!
51
-
52
- ## Wiki
53
-
54
- Our wiki docs contain instructions and guidelines on multiple areas of EUI usage and development that are too detailed for an initial README. For more information, see:
55
-
56
- - [Consuming EUI](wiki/consuming-eui)
57
- - [Contributing to EUI](wiki/contributing-to-eui/)
58
- - [Running EUI locally](wiki/contributing-to-eui/running-eui-locally.md)
59
-
60
- ## License
61
-
62
- [Dual-licensed under Elastic v2 and Server Side Public License, v1][license]. See Elastic's [licensing FAQ][licensing-faq] for details.
63
-
64
- [license]: LICENSE.txt
65
- [licensing-faq]: https://www.elastic.co/pricing/faq/licensing#im-using-eui-or-elastic-charts-in-my-application-outside-of-kibana-how-does-this-affect-me
66
- [docs]: https://elastic.github.io/eui/
@@ -1,93 +0,0 @@
1
- Elastic License 2.0
2
-
3
- URL: https://www.elastic.co/licensing/elastic-license
4
-
5
- ## Acceptance
6
-
7
- By using the software, you agree to all of the terms and conditions below.
8
-
9
- ## Copyright License
10
-
11
- The licensor grants you a non-exclusive, royalty-free, worldwide,
12
- non-sublicensable, non-transferable license to use, copy, distribute, make
13
- available, and prepare derivative works of the software, in each case subject to
14
- the limitations and conditions below.
15
-
16
- ## Limitations
17
-
18
- You may not provide the software to third parties as a hosted or managed
19
- service, where the service provides users with access to any substantial set of
20
- the features or functionality of the software.
21
-
22
- You may not move, change, disable, or circumvent the license key functionality
23
- in the software, and you may not remove or obscure any functionality in the
24
- software that is protected by the license key.
25
-
26
- You may not alter, remove, or obscure any licensing, copyright, or other notices
27
- of the licensor in the software. Any use of the licensor’s trademarks is subject
28
- to applicable law.
29
-
30
- ## Patents
31
-
32
- The licensor grants you a license, under any patent claims the licensor can
33
- license, or becomes able to license, to make, have made, use, sell, offer for
34
- sale, import and have imported the software, in each case subject to the
35
- limitations and conditions in this license. This license does not cover any
36
- patent claims that you cause to be infringed by modifications or additions to
37
- the software. If you or your company make any written claim that the software
38
- infringes or contributes to infringement of any patent, your patent license for
39
- the software granted under these terms ends immediately. If your company makes
40
- such a claim, your patent license ends immediately for work on behalf of your
41
- company.
42
-
43
- ## Notices
44
-
45
- You must ensure that anyone who gets a copy of any part of the software from you
46
- also gets a copy of these terms.
47
-
48
- If you modify the software, you must include in any modified copies of the
49
- software prominent notices stating that you have modified the software.
50
-
51
- ## No Other Rights
52
-
53
- These terms do not imply any licenses other than those expressly granted in
54
- these terms.
55
-
56
- ## Termination
57
-
58
- If you use the software in violation of these terms, such use is not licensed,
59
- and your licenses will automatically terminate. If the licensor provides you
60
- with a notice of your violation, and you cease all violation of this license no
61
- later than 30 days after you receive that notice, your licenses will be
62
- reinstated retroactively. However, if you violate these terms after such
63
- reinstatement, any additional violation of these terms will cause your licenses
64
- to terminate automatically and permanently.
65
-
66
- ## No Liability
67
-
68
- *As far as the law allows, the software comes as is, without any warranty or
69
- condition, and the licensor will not be liable to you for any damages arising
70
- out of these terms or the use or nature of the software, under any kind of
71
- legal claim.*
72
-
73
- ## Definitions
74
-
75
- The **licensor** is the entity offering these terms, and the **software** is the
76
- software the licensor makes available under these terms, including any portion
77
- of it.
78
-
79
- **you** refers to the individual or entity agreeing to these terms.
80
-
81
- **your company** is any legal entity, sole proprietorship, or other kind of
82
- organization that you work for, plus all organizations that have control over,
83
- are under the control of, or are under common control with that
84
- organization. **control** means ownership of substantially all the assets of an
85
- entity, or the power to direct its management and policies by vote, contract, or
86
- otherwise. Control can be direct or indirect.
87
-
88
- **your licenses** are all the licenses granted to you for the software under
89
- these terms.
90
-
91
- **use** means anything you do with the software requiring one of your licenses.
92
-
93
- **trademark** means trademarks, service marks, and similar rights.