@elastic/eui 77.2.1 → 78.0.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 (50) hide show
  1. package/README.md +7 -21
  2. package/dist/eui_theme_dark.css +28 -29
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +28 -29
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/avatar/avatar.js +15 -3
  7. package/es/components/avatar/avatar.styles.js +46 -9
  8. package/es/components/focus_trap/focus_trap.js +21 -5
  9. package/es/components/form/form.styles.js +2 -2
  10. package/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
  11. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
  12. package/es/test/rtl/custom_render.js +11 -1
  13. package/es/test/rtl/index.d.ts +1 -1
  14. package/es/test/rtl/index.js +1 -1
  15. package/eui.d.ts +21 -1
  16. package/lib/components/avatar/avatar.js +17 -4
  17. package/lib/components/avatar/avatar.styles.js +46 -9
  18. package/lib/components/focus_trap/focus_trap.js +21 -5
  19. package/lib/components/form/form.styles.js +2 -2
  20. package/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
  21. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
  22. package/lib/test/rtl/custom_render.js +11 -2
  23. package/lib/test/rtl/index.d.ts +1 -1
  24. package/lib/test/rtl/index.js +8 -1
  25. package/optimize/es/components/avatar/avatar.js +8 -3
  26. package/optimize/es/components/avatar/avatar.styles.js +46 -9
  27. package/optimize/es/components/focus_trap/focus_trap.js +15 -5
  28. package/optimize/es/components/form/form.styles.js +2 -2
  29. package/optimize/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
  30. package/optimize/es/test/rtl/custom_render.js +11 -1
  31. package/optimize/es/test/rtl/index.d.ts +1 -1
  32. package/optimize/es/test/rtl/index.js +1 -1
  33. package/optimize/lib/components/avatar/avatar.js +10 -4
  34. package/optimize/lib/components/avatar/avatar.styles.js +46 -9
  35. package/optimize/lib/components/focus_trap/focus_trap.js +15 -5
  36. package/optimize/lib/components/form/form.styles.js +2 -2
  37. package/optimize/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
  38. package/optimize/lib/test/rtl/custom_render.js +11 -2
  39. package/optimize/lib/test/rtl/index.d.ts +1 -1
  40. package/optimize/lib/test/rtl/index.js +8 -1
  41. package/package.json +3 -2
  42. package/src/components/form/switch/_switch.scss +30 -26
  43. package/src/global_styling/variables/_form.scss +2 -2
  44. package/test-env/components/avatar/avatar.js +17 -4
  45. package/test-env/components/avatar/avatar.styles.js +46 -9
  46. package/test-env/components/form/form.styles.js +2 -2
  47. package/test-env/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
  48. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
  49. package/test-env/test/rtl/custom_render.js +11 -2
  50. package/test-env/test/rtl/index.js +8 -1
package/README.md CHANGED
@@ -30,17 +30,17 @@ Traditionally releases are made weekly against whatever is in the `main` branch
30
30
 
31
31
  ### Can I contribute to EUI?
32
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 [CONTRIBUTING.md](CONTRIBUTING.md).
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
34
 
35
35
  ### What about reporting bugs and feature requests?
36
36
 
37
- Bug reports and feature requests are most welcome, but our roadmap and prioritization are driven primarily by [internal Elastic usage](./CONTRIBUTING.md#how-we-assign-work-and-define-our-roadmap).
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
38
 
39
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
40
 
41
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
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](CONTRIBUTING.md) that addresses your issue or request!
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
44
 
45
45
  <!-- TODO: Delete this question once the Emotion migration is complete -->
46
46
  ### What is the status of EUI's theming?
@@ -49,24 +49,11 @@ The EUI library was previously built upon Sass and is in the process of migratin
49
49
 
50
50
  ## Wiki
51
51
 
52
- ### Consumption
52
+ 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:
53
53
 
54
- * [Consuming EUI][consuming]
55
- * [Using EUI with react-router](wiki/react-router.md)
56
-
57
- ### Maintenance / Contributing
58
-
59
- [CONTRIBUTING.md](CONTRIBUTING.md)
60
-
61
- * [Component design](wiki/component-design.md)
62
- * [Component development](wiki/component-development.md)
63
- * [Creating components manually](wiki/creating-components-manually.md)
64
- * [Creating components with Yeoman](wiki/creating-components-yeoman.md)
65
- * [Creating icons](wiki/creating-icons.md)
66
- * [Testing](wiki/testing.md)
67
- * [Accessibility Testing](wiki/automated-accessibility-testing.md)
68
- * [Documentation](wiki/documentation-guidelines.md)
69
- * [Releasing versions](wiki/releasing-versions.md)
54
+ - [Consuming EUI](wiki/consuming-eui)
55
+ - [Contributing to EUI](wiki/contributing-to-eui/)
56
+ - [Running EUI locally](wiki/contributing-to-eui/running-eui-locally.md)
70
57
 
71
58
  ## License
72
59
 
@@ -74,5 +61,4 @@ The EUI library was previously built upon Sass and is in the process of migratin
74
61
 
75
62
  [license]: LICENSE.txt
76
63
  [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
77
- [consuming]: wiki/consuming.md
78
64
  [docs]: https://elastic.github.io/eui/
@@ -1520,7 +1520,7 @@ The following files still use the Sass version:
1520
1520
  }
1521
1521
  .euiHue__range::-webkit-slider-thumb {
1522
1522
  padding: 7px;
1523
- border: 1px solid #66676d;
1523
+ border: 1px solid #69696f;
1524
1524
  background: #1D1E24 no-repeat center;
1525
1525
  border-radius: 14px;
1526
1526
  -webkit-transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -1536,7 +1536,7 @@ The following files still use the Sass version:
1536
1536
  }
1537
1537
  .euiHue__range::-moz-range-thumb {
1538
1538
  padding: 7px;
1539
- border: 1px solid #66676d;
1539
+ border: 1px solid #69696f;
1540
1540
  background: #1D1E24 no-repeat center;
1541
1541
  border-radius: 14px;
1542
1542
  -moz-transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -1552,7 +1552,7 @@ The following files still use the Sass version:
1552
1552
  }
1553
1553
  .euiHue__range::-ms-thumb {
1554
1554
  padding: 7px;
1555
- border: 1px solid #66676d;
1555
+ border: 1px solid #69696f;
1556
1556
  background: #1D1E24 no-repeat center;
1557
1557
  border-radius: 14px;
1558
1558
  -ms-transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -4419,7 +4419,7 @@ The following files still use the Sass version:
4419
4419
  }
4420
4420
  .euiCheckbox .euiCheckbox__input + .euiCheckbox__square {
4421
4421
  padding: 7px;
4422
- border: 1px solid #66676d;
4422
+ border: 1px solid #69696f;
4423
4423
  background: #1D1E24 no-repeat center;
4424
4424
  border-radius: 4px;
4425
4425
  transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -6444,7 +6444,7 @@ The following files still use the Sass version:
6444
6444
  }
6445
6445
  .euiRadio .euiRadio__input + .euiRadio__circle {
6446
6446
  padding: 7px;
6447
- border: 1px solid #66676d;
6447
+ border: 1px solid #69696f;
6448
6448
  background: #1D1E24 no-repeat center;
6449
6449
  border-radius: 14px;
6450
6450
  transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -6539,38 +6539,37 @@ The following files still use the Sass version:
6539
6539
  .euiSwitch .euiSwitch__button:focus .euiSwitch__track:not(:focus-visible) {
6540
6540
  outline: none;
6541
6541
  }
6542
+ .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__body {
6543
+ background-color: rgba(152, 162, 179, 0.6);
6544
+ }
6545
+ .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__thumb {
6546
+ left: 0;
6547
+ }
6548
+ .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__icon {
6549
+ right: -8px;
6550
+ }
6551
+ .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__icon.euiSwitch__icon--checked {
6552
+ right: auto;
6553
+ left: -34px;
6554
+ }
6542
6555
  .euiSwitch .euiSwitch__button:disabled:hover,
6543
6556
  .euiSwitch .euiSwitch__button:disabled ~ .euiSwitch__label:hover {
6544
6557
  cursor: not-allowed;
6545
6558
  }
6546
6559
  .euiSwitch .euiSwitch__button:disabled .euiSwitch__body {
6547
- background-color: rgba(83, 89, 102, 0.7);
6560
+ background-color: rgba(152, 162, 179, 0.6);
6548
6561
  }
6549
6562
  .euiSwitch .euiSwitch__button:disabled .euiSwitch__thumb {
6550
- border-color: #343741;
6551
- background-color: #343741;
6563
+ background-color: rgba(0, 0, 0, 0);
6564
+ border-color: #98A2B3;
6552
6565
  box-shadow: none;
6553
- background-color: rgba(83, 89, 102, 0.7);
6554
6566
  }
6555
6567
  .euiSwitch .euiSwitch__button:disabled .euiSwitch__icon {
6556
- fill: #a6aab0;
6568
+ fill: #98A2B3;
6557
6569
  }
6558
6570
  .euiSwitch .euiSwitch__button:disabled + .euiSwitch__label {
6559
6571
  color: #535966;
6560
6572
  }
6561
- .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__body {
6562
- background-color: rgba(83, 89, 102, 0.7);
6563
- }
6564
- .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__thumb {
6565
- left: 0;
6566
- }
6567
- .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__icon {
6568
- right: -8px;
6569
- }
6570
- .euiSwitch .euiSwitch__button[aria-checked=false] .euiSwitch__icon.euiSwitch__icon--checked {
6571
- right: auto;
6572
- left: -34px;
6573
- }
6574
6573
  .euiSwitch .euiSwitch__body {
6575
6574
  pointer-events: none;
6576
6575
  width: 44px;
@@ -6583,7 +6582,7 @@ The following files still use the Sass version:
6583
6582
  }
6584
6583
  .euiSwitch .euiSwitch__thumb {
6585
6584
  padding: 9px;
6586
- border: 1px solid #66676d;
6585
+ border: 1px solid #69696f;
6587
6586
  background: #1D1E24 no-repeat center;
6588
6587
  border-radius: 18px;
6589
6588
  transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -6611,7 +6610,7 @@ The following files still use the Sass version:
6611
6610
  width: 42px;
6612
6611
  height: 16px;
6613
6612
  transition: left 250ms cubic-bezier(0.34, 1.61, 0.7, 1), right 250ms cubic-bezier(0.34, 1.61, 0.7, 1);
6614
- fill: #DFE5EF;
6613
+ fill: #1D1E24;
6615
6614
  }
6616
6615
  .euiSwitch .euiSwitch__icon--checked {
6617
6616
  right: auto;
@@ -6639,7 +6638,7 @@ The following files still use the Sass version:
6639
6638
  }
6640
6639
  .euiSwitch.euiSwitch--compressed .euiSwitch__thumb {
6641
6640
  padding: 6px;
6642
- border: 1px solid #66676d;
6641
+ border: 1px solid #69696f;
6643
6642
  background: #1D1E24 no-repeat center;
6644
6643
  border-radius: 12px;
6645
6644
  transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -6666,7 +6665,7 @@ The following files still use the Sass version:
6666
6665
  }
6667
6666
  .euiSwitch.euiSwitch--mini .euiSwitch__thumb {
6668
6667
  padding: 3px;
6669
- border: 1px solid #66676d;
6668
+ border: 1px solid #69696f;
6670
6669
  background: #1D1E24 no-repeat center;
6671
6670
  border-radius: 6px;
6672
6671
  transition: background-color 150ms ease-in, border-color 150ms ease-in;
@@ -6685,7 +6684,7 @@ The following files still use the Sass version:
6685
6684
  .euiSwitch.euiSwitch--compressed .euiSwitch__button[aria-checked=false] .euiSwitch__thumb,
6686
6685
  .euiSwitch.euiSwitch--compressed .euiSwitch__button[aria-checked=true]:disabled .euiSwitch__thumb, .euiSwitch.euiSwitch--mini .euiSwitch__button[aria-checked=false] .euiSwitch__thumb,
6687
6686
  .euiSwitch.euiSwitch--mini .euiSwitch__button[aria-checked=true]:disabled .euiSwitch__thumb {
6688
- border-color: #66676d;
6687
+ border-color: #98A2B3;
6689
6688
  }
6690
6689
  .euiSwitch.euiSwitch--compressed .euiSwitch__button[aria-checked=true] .euiSwitch__thumb, .euiSwitch.euiSwitch--mini .euiSwitch__button[aria-checked=true] .euiSwitch__thumb {
6691
6690
  border-color: #36A2EF;
@@ -7635,7 +7634,7 @@ The following files still use the Sass version:
7635
7634
  cursor: default;
7636
7635
  }
7637
7636
  .euiMarkdownEditorPreview-isReadOnly .euiCheckbox__input:focus:not(:checked) + .euiCheckbox__square {
7638
- border-color: #66676d;
7637
+ border-color: #69696f;
7639
7638
  }
7640
7639
 
7641
7640
  .euiMarkdownEditorTextArea {