@elastic/eui 92.2.0 → 93.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.
- package/dist/eui_theme_dark.css +0 -200
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -200
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +0 -9
- package/es/components/basic_table/in_memory_table.js +0 -10
- package/es/components/beacon/beacon.js +9 -6
- package/es/components/breadcrumbs/breadcrumb.js +0 -10
- package/es/components/breadcrumbs/breadcrumbs.js +0 -10
- package/es/components/code/code.js +2 -2
- package/es/components/code/code.styles.js +2 -4
- package/es/components/code/code_block.js +5 -3
- package/es/components/code/code_block.styles.js +4 -7
- package/es/components/code/code_block_controls.js +2 -2
- package/es/components/code/code_block_controls.styles.js +2 -4
- package/es/components/code/code_block_full_screen.js +2 -2
- package/es/components/code/code_syntax.styles.js +39 -34
- package/es/components/comment_list/comment_event.js +3 -2
- package/es/components/comment_list/comment_event.styles.js +2 -18
- package/es/components/context_menu/context_menu.js +2 -6
- package/es/components/context_menu/context_menu_item.js +2 -14
- package/es/components/empty_prompt/empty_prompt.js +62 -65
- package/es/components/empty_prompt/empty_prompt.styles.js +115 -0
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +0 -10
- package/es/components/header/header_links/header_links.js +0 -10
- package/es/components/page/page_header/page_header_content.js +0 -10
- package/es/components/popover/popover.js +3 -15
- package/es/components/search_bar/search_bar.js +36 -32
- package/es/components/search_bar/search_bar.styles.js +22 -0
- package/es/components/text_truncate/text_truncate.js +4 -1
- package/es/components/tour/_tour_footer.js +97 -0
- package/es/components/tour/_tour_footer.styles.js +23 -0
- package/es/components/tour/_tour_header.js +37 -0
- package/es/components/tour/_tour_header.styles.js +20 -0
- package/es/components/tour/tour.styles.js +5 -28
- package/es/components/tour/tour_step.js +45 -130
- package/es/global_styling/mixins/_color.js +46 -13
- package/eui.d.ts +125 -66
- package/i18ntokens.json +94 -148
- package/lib/components/basic_table/basic_table.js +0 -9
- package/lib/components/basic_table/in_memory_table.js +0 -10
- package/lib/components/beacon/beacon.js +11 -6
- package/lib/components/breadcrumbs/breadcrumb.js +0 -10
- package/lib/components/code/code.js +2 -2
- package/lib/components/code/code.styles.js +2 -4
- package/lib/components/code/code_block.js +5 -3
- package/lib/components/code/code_block.styles.js +4 -7
- package/lib/components/code/code_block_controls.js +2 -2
- package/lib/components/code/code_block_controls.styles.js +2 -4
- package/lib/components/code/code_block_full_screen.js +2 -2
- package/lib/components/code/code_syntax.styles.js +40 -36
- package/lib/components/comment_list/comment_event.js +2 -1
- package/lib/components/comment_list/comment_event.styles.js +3 -20
- package/lib/components/context_menu/context_menu.js +2 -6
- package/lib/components/context_menu/context_menu_item.js +2 -14
- package/lib/components/empty_prompt/empty_prompt.js +64 -64
- package/lib/components/empty_prompt/empty_prompt.styles.js +120 -0
- package/lib/components/popover/popover.js +3 -15
- package/lib/components/search_bar/search_bar.js +37 -33
- package/lib/components/search_bar/search_bar.styles.js +30 -0
- package/lib/components/text_truncate/text_truncate.js +4 -1
- package/lib/components/tour/_tour_footer.js +105 -0
- package/lib/components/tour/_tour_footer.styles.js +31 -0
- package/lib/components/tour/_tour_header.js +48 -0
- package/lib/components/tour/_tour_header.styles.js +27 -0
- package/lib/components/tour/tour.styles.js +7 -32
- package/lib/components/tour/tour_step.js +42 -117
- package/lib/global_styling/mixins/_color.js +50 -15
- package/optimize/es/components/basic_table/basic_table.js +0 -9
- package/optimize/es/components/basic_table/in_memory_table.js +0 -10
- package/optimize/es/components/beacon/beacon.js +9 -6
- package/optimize/es/components/code/code.js +2 -2
- package/optimize/es/components/code/code.styles.js +2 -4
- package/optimize/es/components/code/code_block.js +5 -3
- package/optimize/es/components/code/code_block.styles.js +4 -7
- package/optimize/es/components/code/code_block_controls.js +2 -2
- package/optimize/es/components/code/code_block_controls.styles.js +2 -4
- package/optimize/es/components/code/code_block_full_screen.js +2 -2
- package/optimize/es/components/code/code_syntax.styles.js +39 -34
- package/optimize/es/components/comment_list/comment_event.js +3 -2
- package/optimize/es/components/comment_list/comment_event.styles.js +2 -18
- package/optimize/es/components/context_menu/context_menu.js +2 -6
- package/optimize/es/components/context_menu/context_menu_item.js +2 -6
- package/optimize/es/components/empty_prompt/empty_prompt.js +62 -62
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +112 -0
- package/optimize/es/components/popover/popover.js +3 -5
- package/optimize/es/components/search_bar/search_bar.js +36 -32
- package/optimize/es/components/search_bar/search_bar.styles.js +22 -0
- package/optimize/es/components/text_truncate/text_truncate.js +4 -1
- package/optimize/es/components/tour/_tour_footer.js +89 -0
- package/optimize/es/components/tour/_tour_footer.styles.js +23 -0
- package/optimize/es/components/tour/_tour_header.js +33 -0
- package/optimize/es/components/tour/_tour_header.styles.js +20 -0
- package/optimize/es/components/tour/tour.styles.js +5 -28
- package/optimize/es/components/tour/tour_step.js +45 -113
- package/optimize/es/global_styling/mixins/_color.js +46 -13
- package/optimize/lib/components/basic_table/basic_table.js +0 -9
- package/optimize/lib/components/basic_table/in_memory_table.js +0 -10
- package/optimize/lib/components/beacon/beacon.js +12 -6
- package/optimize/lib/components/code/code.js +2 -2
- package/optimize/lib/components/code/code.styles.js +2 -4
- package/optimize/lib/components/code/code_block.js +5 -3
- package/optimize/lib/components/code/code_block.styles.js +4 -7
- package/optimize/lib/components/code/code_block_controls.js +2 -2
- package/optimize/lib/components/code/code_block_controls.styles.js +2 -4
- package/optimize/lib/components/code/code_block_full_screen.js +2 -2
- package/optimize/lib/components/code/code_syntax.styles.js +40 -36
- package/optimize/lib/components/comment_list/comment_event.js +2 -1
- package/optimize/lib/components/comment_list/comment_event.styles.js +3 -20
- package/optimize/lib/components/context_menu/context_menu.js +2 -6
- package/optimize/lib/components/context_menu/context_menu_item.js +2 -6
- package/optimize/lib/components/empty_prompt/empty_prompt.js +65 -62
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +118 -0
- package/optimize/lib/components/popover/popover.js +3 -5
- package/optimize/lib/components/search_bar/search_bar.js +37 -33
- package/optimize/lib/components/search_bar/search_bar.styles.js +30 -0
- package/optimize/lib/components/text_truncate/text_truncate.js +4 -1
- package/optimize/lib/components/tour/_tour_footer.js +100 -0
- package/optimize/lib/components/tour/_tour_footer.styles.js +31 -0
- package/optimize/lib/components/tour/_tour_header.js +43 -0
- package/optimize/lib/components/tour/_tour_header.styles.js +27 -0
- package/optimize/lib/components/tour/tour.styles.js +7 -32
- package/optimize/lib/components/tour/tour_step.js +42 -110
- package/optimize/lib/global_styling/mixins/_color.js +50 -15
- package/package.json +1 -1
- package/src/components/index.scss +0 -2
- package/test-env/components/basic_table/basic_table.js +0 -9
- package/test-env/components/basic_table/in_memory_table.js +0 -10
- package/test-env/components/beacon/beacon.js +12 -6
- package/test-env/components/breadcrumbs/breadcrumb.js +0 -10
- package/test-env/components/code/code.styles.js +2 -4
- package/test-env/components/code/code_block.styles.js +4 -7
- package/test-env/components/code/code_block_controls.js +2 -2
- package/test-env/components/code/code_block_controls.styles.js +2 -4
- package/test-env/components/code/code_block_full_screen.js +2 -2
- package/test-env/components/code/code_syntax.styles.js +40 -36
- package/test-env/components/comment_list/comment_event.js +2 -1
- package/test-env/components/comment_list/comment_event.styles.js +3 -20
- package/test-env/components/context_menu/context_menu.js +2 -6
- package/test-env/components/context_menu/context_menu_item.js +2 -14
- package/test-env/components/empty_prompt/empty_prompt.js +65 -62
- package/test-env/components/empty_prompt/empty_prompt.styles.js +118 -0
- package/test-env/components/popover/popover.js +3 -15
- package/test-env/components/search_bar/search_bar.js +37 -33
- package/test-env/components/search_bar/search_bar.styles.js +30 -0
- package/test-env/components/text_truncate/text_truncate.js +4 -1
- package/test-env/components/tour/_tour_footer.js +100 -0
- package/test-env/components/tour/_tour_footer.styles.js +31 -0
- package/test-env/components/tour/_tour_header.js +48 -0
- package/test-env/components/tour/_tour_header.styles.js +27 -0
- package/test-env/components/tour/tour.styles.js +7 -32
- package/test-env/components/tour/tour_step.js +42 -114
- package/test-env/global_styling/mixins/_color.js +50 -15
- package/src/components/empty_prompt/_empty_prompt.scss +0 -128
- package/src/components/empty_prompt/_index.scss +0 -1
- package/src/components/search_bar/_index.scss +0 -1
- package/src/components/search_bar/_search_bar.scss +0 -10
package/i18ntokens.json
CHANGED
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"highlighting": "string",
|
|
42
42
|
"loc": {
|
|
43
43
|
"start": {
|
|
44
|
-
"line":
|
|
44
|
+
"line": 657,
|
|
45
45
|
"column": 10,
|
|
46
|
-
"index":
|
|
46
|
+
"index": 16964
|
|
47
47
|
},
|
|
48
48
|
"end": {
|
|
49
|
-
"line":
|
|
49
|
+
"line": 661,
|
|
50
50
|
"column": 12,
|
|
51
|
-
"index":
|
|
51
|
+
"index": 17167
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"filepath": "src/components/basic_table/basic_table.tsx"
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"highlighting": "string",
|
|
60
60
|
"loc": {
|
|
61
61
|
"start": {
|
|
62
|
-
"line":
|
|
62
|
+
"line": 670,
|
|
63
63
|
"column": 12,
|
|
64
|
-
"index":
|
|
64
|
+
"index": 17364
|
|
65
65
|
},
|
|
66
66
|
"end": {
|
|
67
|
-
"line":
|
|
67
|
+
"line": 674,
|
|
68
68
|
"column": 14,
|
|
69
|
-
"index":
|
|
69
|
+
"index": 17643
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"filepath": "src/components/basic_table/basic_table.tsx"
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"highlighting": "string",
|
|
78
78
|
"loc": {
|
|
79
79
|
"start": {
|
|
80
|
-
"line":
|
|
80
|
+
"line": 678,
|
|
81
81
|
"column": 12,
|
|
82
|
-
"index":
|
|
82
|
+
"index": 17715
|
|
83
83
|
},
|
|
84
84
|
"end": {
|
|
85
|
-
"line":
|
|
85
|
+
"line": 682,
|
|
86
86
|
"column": 14,
|
|
87
|
-
"index":
|
|
87
|
+
"index": 17955
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"filepath": "src/components/basic_table/basic_table.tsx"
|
|
@@ -95,14 +95,14 @@
|
|
|
95
95
|
"highlighting": "string",
|
|
96
96
|
"loc": {
|
|
97
97
|
"start": {
|
|
98
|
-
"line":
|
|
98
|
+
"line": 687,
|
|
99
99
|
"column": 10,
|
|
100
|
-
"index":
|
|
100
|
+
"index": 18031
|
|
101
101
|
},
|
|
102
102
|
"end": {
|
|
103
|
-
"line":
|
|
103
|
+
"line": 691,
|
|
104
104
|
"column": 12,
|
|
105
|
-
"index":
|
|
105
|
+
"index": 18215
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"filepath": "src/components/basic_table/basic_table.tsx"
|
|
@@ -113,14 +113,14 @@
|
|
|
113
113
|
"highlighting": "string",
|
|
114
114
|
"loc": {
|
|
115
115
|
"start": {
|
|
116
|
-
"line":
|
|
116
|
+
"line": 733,
|
|
117
117
|
"column": 6,
|
|
118
|
-
"index":
|
|
118
|
+
"index": 19213
|
|
119
119
|
},
|
|
120
120
|
"end": {
|
|
121
|
-
"line":
|
|
121
|
+
"line": 733,
|
|
122
122
|
"column": 77,
|
|
123
|
-
"index":
|
|
123
|
+
"index": 19284
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"filepath": "src/components/basic_table/basic_table.tsx"
|
|
@@ -131,14 +131,14 @@
|
|
|
131
131
|
"highlighting": "string",
|
|
132
132
|
"loc": {
|
|
133
133
|
"start": {
|
|
134
|
-
"line":
|
|
134
|
+
"line": 1129,
|
|
135
135
|
"column": 8,
|
|
136
|
-
"index":
|
|
136
|
+
"index": 31095
|
|
137
137
|
},
|
|
138
138
|
"end": {
|
|
139
|
-
"line":
|
|
139
|
+
"line": 1129,
|
|
140
140
|
"column": 79,
|
|
141
|
-
"index":
|
|
141
|
+
"index": 31166
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
"filepath": "src/components/basic_table/basic_table.tsx"
|
|
@@ -149,14 +149,14 @@
|
|
|
149
149
|
"highlighting": "string",
|
|
150
150
|
"loc": {
|
|
151
151
|
"start": {
|
|
152
|
-
"line":
|
|
152
|
+
"line": 1354,
|
|
153
153
|
"column": 8,
|
|
154
|
-
"index":
|
|
154
|
+
"index": 37741
|
|
155
155
|
},
|
|
156
156
|
"end": {
|
|
157
|
-
"line":
|
|
157
|
+
"line": 1358,
|
|
158
158
|
"column": 9,
|
|
159
|
-
"index":
|
|
159
|
+
"index": 37900
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
"filepath": "src/components/basic_table/basic_table.tsx"
|
|
@@ -437,14 +437,14 @@
|
|
|
437
437
|
"highlighting": "string",
|
|
438
438
|
"loc": {
|
|
439
439
|
"start": {
|
|
440
|
-
"line":
|
|
440
|
+
"line": 56,
|
|
441
441
|
"column": 49,
|
|
442
|
-
"index":
|
|
442
|
+
"index": 1816
|
|
443
443
|
},
|
|
444
444
|
"end": {
|
|
445
|
-
"line":
|
|
445
|
+
"line": 62,
|
|
446
446
|
"column": 3,
|
|
447
|
-
"index":
|
|
447
|
+
"index": 1971
|
|
448
448
|
}
|
|
449
449
|
},
|
|
450
450
|
"filepath": "src/components/code/code_block_full_screen.tsx"
|
|
@@ -455,14 +455,14 @@
|
|
|
455
455
|
"highlighting": "string",
|
|
456
456
|
"loc": {
|
|
457
457
|
"start": {
|
|
458
|
-
"line":
|
|
458
|
+
"line": 56,
|
|
459
459
|
"column": 49,
|
|
460
|
-
"index":
|
|
460
|
+
"index": 1816
|
|
461
461
|
},
|
|
462
462
|
"end": {
|
|
463
|
-
"line":
|
|
463
|
+
"line": 62,
|
|
464
464
|
"column": 3,
|
|
465
|
-
"index":
|
|
465
|
+
"index": 1971
|
|
466
466
|
}
|
|
467
467
|
},
|
|
468
468
|
"filepath": "src/components/code/code_block_full_screen.tsx"
|
|
@@ -917,60 +917,6 @@
|
|
|
917
917
|
},
|
|
918
918
|
"filepath": "src/components/combo_box/combo_box.tsx"
|
|
919
919
|
},
|
|
920
|
-
{
|
|
921
|
-
"token": "euiContext.stories.name",
|
|
922
|
-
"defString": "John Doe",
|
|
923
|
-
"highlighting": "string",
|
|
924
|
-
"loc": {
|
|
925
|
-
"start": {
|
|
926
|
-
"line": 34,
|
|
927
|
-
"column": 15,
|
|
928
|
-
"index": 1005
|
|
929
|
-
},
|
|
930
|
-
"end": {
|
|
931
|
-
"line": 34,
|
|
932
|
-
"column": 64,
|
|
933
|
-
"index": 1054
|
|
934
|
-
}
|
|
935
|
-
},
|
|
936
|
-
"filepath": "src/components/context/context.stories.tsx"
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"token": "euiContext.stories.greeting",
|
|
940
|
-
"defString": "Welcome, {name}!",
|
|
941
|
-
"highlighting": "string",
|
|
942
|
-
"loc": {
|
|
943
|
-
"start": {
|
|
944
|
-
"line": 39,
|
|
945
|
-
"column": 10,
|
|
946
|
-
"index": 1152
|
|
947
|
-
},
|
|
948
|
-
"end": {
|
|
949
|
-
"line": 45,
|
|
950
|
-
"column": 12,
|
|
951
|
-
"index": 1342
|
|
952
|
-
}
|
|
953
|
-
},
|
|
954
|
-
"filepath": "src/components/context/context.stories.tsx"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"token": "euiContext.stories.guestNo",
|
|
958
|
-
"defString": "You are guest #",
|
|
959
|
-
"highlighting": "string",
|
|
960
|
-
"loc": {
|
|
961
|
-
"start": {
|
|
962
|
-
"line": 47,
|
|
963
|
-
"column": 12,
|
|
964
|
-
"index": 1369
|
|
965
|
-
},
|
|
966
|
-
"end": {
|
|
967
|
-
"line": 50,
|
|
968
|
-
"column": 14,
|
|
969
|
-
"index": 1481
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
"filepath": "src/components/context/context.stories.tsx"
|
|
973
|
-
},
|
|
974
920
|
{
|
|
975
921
|
"token": "euiDataGridCellActions.expandButtonTitle",
|
|
976
922
|
"defString": "Click or hit enter to interact with cell content",
|
|
@@ -5783,14 +5729,14 @@
|
|
|
5783
5729
|
"highlighting": "string",
|
|
5784
5730
|
"loc": {
|
|
5785
5731
|
"start": {
|
|
5786
|
-
"line":
|
|
5732
|
+
"line": 682,
|
|
5787
5733
|
"column": 16,
|
|
5788
|
-
"index":
|
|
5734
|
+
"index": 20150
|
|
5789
5735
|
},
|
|
5790
5736
|
"end": {
|
|
5791
|
-
"line":
|
|
5737
|
+
"line": 685,
|
|
5792
5738
|
"column": 18,
|
|
5793
|
-
"index":
|
|
5739
|
+
"index": 20344
|
|
5794
5740
|
}
|
|
5795
5741
|
},
|
|
5796
5742
|
"filepath": "src/components/popover/popover.tsx"
|
|
@@ -6821,6 +6767,60 @@
|
|
|
6821
6767
|
},
|
|
6822
6768
|
"filepath": "src/components/toast/toast.tsx"
|
|
6823
6769
|
},
|
|
6770
|
+
{
|
|
6771
|
+
"token": "euiTourFooter.endTour",
|
|
6772
|
+
"defString": "End tour",
|
|
6773
|
+
"highlighting": "string",
|
|
6774
|
+
"loc": {
|
|
6775
|
+
"start": {
|
|
6776
|
+
"line": 95,
|
|
6777
|
+
"column": 14,
|
|
6778
|
+
"index": 2888
|
|
6779
|
+
},
|
|
6780
|
+
"end": {
|
|
6781
|
+
"line": 102,
|
|
6782
|
+
"column": 15,
|
|
6783
|
+
"index": 3156
|
|
6784
|
+
}
|
|
6785
|
+
},
|
|
6786
|
+
"filepath": "src/components/tour/_tour_footer.tsx"
|
|
6787
|
+
},
|
|
6788
|
+
{
|
|
6789
|
+
"token": "euiTourFooter.skipTour",
|
|
6790
|
+
"defString": "Skip tour",
|
|
6791
|
+
"highlighting": "string",
|
|
6792
|
+
"loc": {
|
|
6793
|
+
"start": {
|
|
6794
|
+
"line": 95,
|
|
6795
|
+
"column": 14,
|
|
6796
|
+
"index": 2888
|
|
6797
|
+
},
|
|
6798
|
+
"end": {
|
|
6799
|
+
"line": 102,
|
|
6800
|
+
"column": 15,
|
|
6801
|
+
"index": 3156
|
|
6802
|
+
}
|
|
6803
|
+
},
|
|
6804
|
+
"filepath": "src/components/tour/_tour_footer.tsx"
|
|
6805
|
+
},
|
|
6806
|
+
{
|
|
6807
|
+
"token": "euiTourFooter.closeTour",
|
|
6808
|
+
"defString": "Close tour",
|
|
6809
|
+
"highlighting": "string",
|
|
6810
|
+
"loc": {
|
|
6811
|
+
"start": {
|
|
6812
|
+
"line": 95,
|
|
6813
|
+
"column": 14,
|
|
6814
|
+
"index": 2888
|
|
6815
|
+
},
|
|
6816
|
+
"end": {
|
|
6817
|
+
"line": 102,
|
|
6818
|
+
"column": 15,
|
|
6819
|
+
"index": 3156
|
|
6820
|
+
}
|
|
6821
|
+
},
|
|
6822
|
+
"filepath": "src/components/tour/_tour_footer.tsx"
|
|
6823
|
+
},
|
|
6824
6824
|
{
|
|
6825
6825
|
"token": "euiTourStepIndicator.isActive",
|
|
6826
6826
|
"defString": "active",
|
|
@@ -6893,60 +6893,6 @@
|
|
|
6893
6893
|
},
|
|
6894
6894
|
"filepath": "src/components/tour/tour_step_indicator.tsx"
|
|
6895
6895
|
},
|
|
6896
|
-
{
|
|
6897
|
-
"token": "euiTourStep.endTour",
|
|
6898
|
-
"defString": "End tour",
|
|
6899
|
-
"highlighting": "string",
|
|
6900
|
-
"loc": {
|
|
6901
|
-
"start": {
|
|
6902
|
-
"line": 256,
|
|
6903
|
-
"column": 10,
|
|
6904
|
-
"index": 6776
|
|
6905
|
-
},
|
|
6906
|
-
"end": {
|
|
6907
|
-
"line": 263,
|
|
6908
|
-
"column": 11,
|
|
6909
|
-
"index": 7010
|
|
6910
|
-
}
|
|
6911
|
-
},
|
|
6912
|
-
"filepath": "src/components/tour/tour_step.tsx"
|
|
6913
|
-
},
|
|
6914
|
-
{
|
|
6915
|
-
"token": "euiTourStep.skipTour",
|
|
6916
|
-
"defString": "Skip tour",
|
|
6917
|
-
"highlighting": "string",
|
|
6918
|
-
"loc": {
|
|
6919
|
-
"start": {
|
|
6920
|
-
"line": 256,
|
|
6921
|
-
"column": 10,
|
|
6922
|
-
"index": 6776
|
|
6923
|
-
},
|
|
6924
|
-
"end": {
|
|
6925
|
-
"line": 263,
|
|
6926
|
-
"column": 11,
|
|
6927
|
-
"index": 7010
|
|
6928
|
-
}
|
|
6929
|
-
},
|
|
6930
|
-
"filepath": "src/components/tour/tour_step.tsx"
|
|
6931
|
-
},
|
|
6932
|
-
{
|
|
6933
|
-
"token": "euiTourStep.closeTour",
|
|
6934
|
-
"defString": "Close tour",
|
|
6935
|
-
"highlighting": "string",
|
|
6936
|
-
"loc": {
|
|
6937
|
-
"start": {
|
|
6938
|
-
"line": 256,
|
|
6939
|
-
"column": 10,
|
|
6940
|
-
"index": 6776
|
|
6941
|
-
},
|
|
6942
|
-
"end": {
|
|
6943
|
-
"line": 263,
|
|
6944
|
-
"column": 11,
|
|
6945
|
-
"index": 7010
|
|
6946
|
-
}
|
|
6947
|
-
},
|
|
6948
|
-
"filepath": "src/components/tour/tour_step.tsx"
|
|
6949
|
-
},
|
|
6950
6896
|
{
|
|
6951
6897
|
"token": "euiTreeView.listNavigationInstructions",
|
|
6952
6898
|
"defString": "You can quickly navigate this list using arrow keys.",
|
|
@@ -255,15 +255,6 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* @deprecated Use `selection.selected` instead to declaratively control table selection
|
|
261
|
-
*/
|
|
262
|
-
}, {
|
|
263
|
-
key: "setSelection",
|
|
264
|
-
value: function setSelection(newSelection) {
|
|
265
|
-
this.changeSelection(newSelection);
|
|
266
|
-
}
|
|
267
258
|
}, {
|
|
268
259
|
key: "buildCriteria",
|
|
269
260
|
value: function buildCriteria(props) {
|
|
@@ -132,7 +132,6 @@ var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
|
|
|
132
132
|
var _this;
|
|
133
133
|
_classCallCheck(this, EuiInMemoryTable);
|
|
134
134
|
_this = _super.call(this, props);
|
|
135
|
-
_defineProperty(_assertThisInitialized(_this), "tableRef", void 0);
|
|
136
135
|
_defineProperty(_assertThisInitialized(_this), "onTableChange", function (_ref4) {
|
|
137
136
|
var page = _ref4.page,
|
|
138
137
|
sort = _ref4.sort;
|
|
@@ -265,17 +264,9 @@ var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
|
|
|
265
264
|
allowNeutralSort: allowNeutralSort !== false,
|
|
266
265
|
showPerPageOptions: showPerPageOptions
|
|
267
266
|
};
|
|
268
|
-
_this.tableRef = /*#__PURE__*/_react.default.createRef();
|
|
269
267
|
return _this;
|
|
270
268
|
}
|
|
271
269
|
_createClass(EuiInMemoryTable, [{
|
|
272
|
-
key: "setSelection",
|
|
273
|
-
value: function setSelection(newSelection) {
|
|
274
|
-
if (this.tableRef.current) {
|
|
275
|
-
this.tableRef.current.setSelection(newSelection);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}, {
|
|
279
270
|
key: "renderSearchBar",
|
|
280
271
|
value: function renderSearchBar() {
|
|
281
272
|
var _this$props = this.props,
|
|
@@ -444,7 +435,6 @@ var EuiInMemoryTable = /*#__PURE__*/function (_Component) {
|
|
|
444
435
|
var table =
|
|
445
436
|
// @ts-ignore complex relationship between pagination's existence and criteria, the code logic ensures this is correctly maintained
|
|
446
437
|
(0, _react2.jsx)(_basic_table.EuiBasicTable, _extends({
|
|
447
|
-
ref: this.tableRef,
|
|
448
438
|
items: items,
|
|
449
439
|
itemId: itemId,
|
|
450
440
|
rowProps: rowProps,
|
|
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EuiBeacon = exports.COLORS = void 0;
|
|
8
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var
|
|
11
|
+
var _global_styling = require("../../global_styling");
|
|
12
12
|
var _services = require("../../services");
|
|
13
|
+
var _beacon = require("./beacon.styles");
|
|
13
14
|
var _react2 = require("@emotion/react");
|
|
14
15
|
var _excluded = ["className", "size", "color", "style"];
|
|
15
16
|
/*
|
|
@@ -20,6 +21,8 @@ var _excluded = ["className", "size", "color", "style"];
|
|
|
20
21
|
* Side Public License, v 1.
|
|
21
22
|
*/
|
|
22
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
26
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24
27
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
28
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -42,10 +45,12 @@ var EuiBeacon = function EuiBeacon(_ref) {
|
|
|
42
45
|
var classes = (0, _classnames.default)('euiBeacon', className);
|
|
43
46
|
var styles = (0, _beacon.euiBeaconStyles)(euiTheme);
|
|
44
47
|
var cssStyles = [styles.euiBeacon, styles[color]];
|
|
45
|
-
var beaconStyle =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
var beaconStyle = (0, _react.useMemo)(function () {
|
|
49
|
+
return (0, _global_styling.logicalStyles)(_objectSpread(_objectSpread({}, style), {}, {
|
|
50
|
+
height: size,
|
|
51
|
+
width: size
|
|
52
|
+
}));
|
|
53
|
+
}, [style, size]);
|
|
49
54
|
return (0, _react2.jsx)("div", _extends({
|
|
50
55
|
className: classes,
|
|
51
56
|
css: cssStyles,
|
|
@@ -190,12 +190,6 @@ EuiBreadcrumbContent.propTypes = {
|
|
|
190
190
|
* [EuiPopover](/#/layout/popover) accepts, except for props that control state.
|
|
191
191
|
*/
|
|
192
192
|
popoverProps: _propTypes.default.shape({
|
|
193
|
-
/**
|
|
194
|
-
* Class name passed to the direct parent of the button
|
|
195
|
-
*
|
|
196
|
-
* @deprecated Use `className` instead
|
|
197
|
-
*/
|
|
198
|
-
anchorClassName: _propTypes.default.string,
|
|
199
193
|
/**
|
|
200
194
|
* Alignment of the popover and arrow relative to the button
|
|
201
195
|
*/
|
|
@@ -205,10 +199,6 @@ EuiBreadcrumbContent.propTypes = {
|
|
|
205
199
|
* Intended for use with inputs as anchors, e.g. EuiInputPopover
|
|
206
200
|
*/
|
|
207
201
|
attachToAnchor: _propTypes.default.bool,
|
|
208
|
-
/**
|
|
209
|
-
* @deprecated Use `popoverRef` instead
|
|
210
|
-
*/
|
|
211
|
-
buttonRef: _propTypes.default.any,
|
|
212
202
|
/**
|
|
213
203
|
* Restrict the popover's position within this element
|
|
214
204
|
*/
|
|
@@ -11,6 +11,7 @@ var _refractor = require("refractor");
|
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _utils = require("./utils");
|
|
13
13
|
var _services = require("../../services");
|
|
14
|
+
var _code_syntax = require("./code_syntax.styles");
|
|
14
15
|
var _code = require("./code.styles");
|
|
15
16
|
var _react2 = require("@emotion/react");
|
|
16
17
|
var _excluded = ["transparentBackground", "language", "children", "className"];
|
|
@@ -48,8 +49,7 @@ var EuiCode = function EuiCode(_ref) {
|
|
|
48
49
|
return (0, _utils.getHtmlContent)(data, children);
|
|
49
50
|
}, [data, children]);
|
|
50
51
|
var classes = (0, _classnames.default)('euiCode', className);
|
|
51
|
-
var
|
|
52
|
-
var styles = (0, _code.euiCodeStyles)(euiTheme);
|
|
52
|
+
var styles = (0, _code.euiCodeStyles)((0, _services.useEuiTheme)(), (0, _code_syntax.useEuiCodeSyntaxVariables)());
|
|
53
53
|
var cssStyles = [styles.euiCode, transparentBackground && styles.transparentBackground];
|
|
54
54
|
return (0, _react2.jsx)("code", _extends({
|
|
55
55
|
className: classes,
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiCodeStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _code_syntax = require("./code_syntax.styles");
|
|
10
9
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -22,14 +21,13 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
22
21
|
styles: "background:transparent;label:transparentBackground;",
|
|
23
22
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
23
|
};
|
|
25
|
-
var euiCodeStyles = function euiCodeStyles(euiThemeContext) {
|
|
24
|
+
var euiCodeStyles = function euiCodeStyles(euiThemeContext, euiCodeSyntaxVariables) {
|
|
26
25
|
var euiTheme = euiThemeContext.euiTheme;
|
|
27
|
-
var euiCodeSyntax = (0, _code_syntax.euiCodeSyntaxColors)(euiThemeContext);
|
|
28
26
|
return {
|
|
29
27
|
/*
|
|
30
28
|
* 1. Size the code against the text its embedded within.
|
|
31
29
|
*/
|
|
32
|
-
euiCode: /*#__PURE__*/(0, _react.css)("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", (0, _global_styling.logicalShorthandCSS)('padding', '0.2em 0.5em'), "background:",
|
|
30
|
+
euiCode: /*#__PURE__*/(0, _react.css)("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", (0, _global_styling.logicalShorthandCSS)('padding', '0.2em 0.5em'), "background:", euiCodeSyntaxVariables.backgroundColor, ";border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.bold, ";color:", euiCodeSyntaxVariables.inlineCodeColor, ";", euiCodeSyntaxVariables.tokensCss, ";;label:euiCode;"),
|
|
33
31
|
transparentBackground: _ref
|
|
34
32
|
};
|
|
35
33
|
};
|
|
@@ -15,6 +15,7 @@ var _code_block_full_screen = require("./code_block_full_screen");
|
|
|
15
15
|
var _code_block_controls = require("./code_block_controls");
|
|
16
16
|
var _code_block_virtualized = require("./code_block_virtualized");
|
|
17
17
|
var _code_block = require("./code_block.styles");
|
|
18
|
+
var _code_syntax = require("./code_syntax.styles");
|
|
18
19
|
var _react2 = require("@emotion/react");
|
|
19
20
|
var _excluded = ["language", "transparentBackground", "paddingSize", "fontSize", "isCopyable", "whiteSpace", "children", "className", "overflowHeight", "isVirtualized", "lineNumbers"];
|
|
20
21
|
/*
|
|
@@ -75,6 +76,7 @@ var EuiCodeBlock = function EuiCodeBlock(_ref) {
|
|
|
75
76
|
lineNumbers = _ref$lineNumbers === void 0 ? false : _ref$lineNumbers,
|
|
76
77
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
77
78
|
var euiTheme = (0, _services.useEuiTheme)();
|
|
79
|
+
var euiCodeSyntaxVariables = (0, _code_syntax.useEuiCodeSyntaxVariables)();
|
|
78
80
|
var language = (0, _react.useMemo)(function () {
|
|
79
81
|
return (0, _utils.checkSupportedLanguage)(_language);
|
|
80
82
|
}, [_language]);
|
|
@@ -126,7 +128,7 @@ var EuiCodeBlock = function EuiCodeBlock(_ref) {
|
|
|
126
128
|
onKeyDown = _useFullScreen.onKeyDown;
|
|
127
129
|
var hasControls = !!(copyButton || fullScreenButton);
|
|
128
130
|
var hasBothControls = !!(copyButton && fullScreenButton);
|
|
129
|
-
var styles = (0, _code_block.euiCodeBlockStyles)(euiTheme);
|
|
131
|
+
var styles = (0, _code_block.euiCodeBlockStyles)(euiTheme, euiCodeSyntaxVariables);
|
|
130
132
|
var cssStyles = [styles.euiCodeBlock, styles[fontSize], transparentBackground && styles.transparentBackground, hasControls && (hasBothControls ? styles.hasBothControls[paddingSize] : styles.hasControls[paddingSize])];
|
|
131
133
|
var _useMemo = (0, _react.useMemo)(function () {
|
|
132
134
|
var isWhiteSpacePre = whiteSpace === 'pre' || isVirtualized;
|
|
@@ -151,14 +153,14 @@ var EuiCodeBlock = function EuiCodeBlock(_ref) {
|
|
|
151
153
|
preProps = _useMemo2[0],
|
|
152
154
|
preFullscreenProps = _useMemo2[1];
|
|
153
155
|
var codeProps = (0, _react.useMemo)(function () {
|
|
154
|
-
var styles = (0, _code_block.euiCodeBlockCodeStyles)(euiTheme);
|
|
156
|
+
var styles = (0, _code_block.euiCodeBlockCodeStyles)(euiTheme, euiCodeSyntaxVariables);
|
|
155
157
|
var cssStyles = [styles.euiCodeBlock__code, isVirtualized && styles.isVirtualized];
|
|
156
158
|
return _objectSpread({
|
|
157
159
|
className: 'euiCodeBlock__code',
|
|
158
160
|
css: cssStyles,
|
|
159
161
|
'data-code-language': language
|
|
160
162
|
}, rest);
|
|
161
|
-
}, [language, euiTheme, isVirtualized, rest]);
|
|
163
|
+
}, [language, euiTheme, euiCodeSyntaxVariables, isVirtualized, rest]);
|
|
162
164
|
return (0, _react2.jsx)("div", {
|
|
163
165
|
css: cssStyles,
|
|
164
166
|
className: (0, _classnames.default)('euiCodeBlock', className),
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.euiCodeBlockStyles = exports.euiCodeBlockPreStyles = exports.euiCodeBlockCodeStyles = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _global_styling = require("../../global_styling");
|
|
10
|
-
var _code_syntax = require("./code_syntax.styles");
|
|
11
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -42,11 +41,10 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
|
42
41
|
styles: "background:transparent;label:transparentBackground;",
|
|
43
42
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
44
43
|
};
|
|
45
|
-
var euiCodeBlockStyles = function euiCodeBlockStyles(euiThemeContext) {
|
|
44
|
+
var euiCodeBlockStyles = function euiCodeBlockStyles(euiThemeContext, euiCodeSyntaxVariables) {
|
|
46
45
|
var euiTheme = euiThemeContext.euiTheme;
|
|
47
|
-
var euiCodeSyntax = (0, _code_syntax.euiCodeSyntaxColors)(euiThemeContext);
|
|
48
46
|
return {
|
|
49
|
-
euiCodeBlock: /*#__PURE__*/(0, _react.css)("max-inline-size:100%;display:block;position:relative;background:",
|
|
47
|
+
euiCodeBlock: /*#__PURE__*/(0, _react.css)("max-inline-size:100%;display:block;position:relative;background:", euiCodeSyntaxVariables.backgroundColor, ";", euiCodeSyntaxVariables.tokensCss, ";;label:euiCodeBlock;"),
|
|
50
48
|
// Font size
|
|
51
49
|
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";;label:s;"),
|
|
52
50
|
m: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";;label:m;"),
|
|
@@ -120,11 +118,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
120
118
|
styles: "position:relative;label:isVirtualized;",
|
|
121
119
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
122
120
|
};
|
|
123
|
-
var euiCodeBlockCodeStyles = function euiCodeBlockCodeStyles(euiThemeContext) {
|
|
121
|
+
var euiCodeBlockCodeStyles = function euiCodeBlockCodeStyles(euiThemeContext, euiCodeSyntaxVariables) {
|
|
124
122
|
var euiTheme = euiThemeContext.euiTheme;
|
|
125
|
-
var euiCodeSyntax = (0, _code_syntax.euiCodeSyntaxColors)(euiThemeContext);
|
|
126
123
|
return {
|
|
127
|
-
euiCodeBlock__code: /*#__PURE__*/(0, _react.css)("font-family:", euiTheme.font.familyCode, ";font-size:inherit;color:",
|
|
124
|
+
euiCodeBlock__code: /*#__PURE__*/(0, _react.css)("font-family:", euiTheme.font.familyCode, ";font-size:inherit;color:", euiCodeSyntaxVariables.color, ";display:block;;label:euiCodeBlock__code;"),
|
|
128
125
|
isVirtualized: _ref
|
|
129
126
|
};
|
|
130
127
|
};
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.EuiCodeBlockControls = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _services = require("../../services");
|
|
10
|
+
var _code_syntax = require("./code_syntax.styles");
|
|
10
11
|
var _code_block_controls = require("./code_block_controls.styles");
|
|
11
12
|
var _react2 = require("@emotion/react");
|
|
12
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -22,8 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
22
23
|
var EuiCodeBlockControls = function EuiCodeBlockControls(_ref) {
|
|
23
24
|
var paddingSize = _ref.paddingSize,
|
|
24
25
|
controls = _ref.controls;
|
|
25
|
-
var
|
|
26
|
-
var styles = (0, _code_block_controls.euiCodeBlockControlsStyles)(euiTheme);
|
|
26
|
+
var styles = (0, _code_block_controls.euiCodeBlockControlsStyles)((0, _services.useEuiTheme)(), (0, _code_syntax.useEuiCodeSyntaxVariables)());
|
|
27
27
|
var cssStyles = [styles.euiCodeBlock__controls, styles.offset[paddingSize]];
|
|
28
28
|
var hasControls = controls.some(function (control) {
|
|
29
29
|
return !!control;
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiCodeBlockControlsStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _code_syntax = require("./code_syntax.styles");
|
|
10
9
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -28,11 +27,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
28
27
|
styles: "inset-block-start:0;inset-inline-end:0;label:none;",
|
|
29
28
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
30
29
|
};
|
|
31
|
-
var euiCodeBlockControlsStyles = function euiCodeBlockControlsStyles(euiThemeContext) {
|
|
30
|
+
var euiCodeBlockControlsStyles = function euiCodeBlockControlsStyles(euiThemeContext, euiCodeSyntaxVariables) {
|
|
32
31
|
var euiTheme = euiThemeContext.euiTheme;
|
|
33
|
-
var euiCodeSyntax = (0, _code_syntax.euiCodeSyntaxColors)(euiThemeContext);
|
|
34
32
|
return {
|
|
35
|
-
euiCodeBlock__controls: /*#__PURE__*/(0, _react.css)("position:absolute;display:flex;flex-direction:column;gap:", euiTheme.size.xs, ";background:",
|
|
33
|
+
euiCodeBlock__controls: /*#__PURE__*/(0, _react.css)("position:absolute;display:flex;flex-direction:column;gap:", euiTheme.size.xs, ";background:", euiCodeSyntaxVariables.backgroundColor, ";;label:euiCodeBlock__controls;"),
|
|
36
34
|
offset: {
|
|
37
35
|
none: _ref,
|
|
38
36
|
s: /*#__PURE__*/(0, _react.css)("inset-block-start:", (0, _global_styling.euiPaddingSize)(euiThemeContext, 's'), ";inset-inline-end:", (0, _global_styling.euiPaddingSize)(euiThemeContext, 's'), ";;label:s;"),
|