@gitlab/ui 114.0.1 → 114.1.1

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 (136) hide show
  1. package/package.json +9 -28
  2. package/CHANGELOG.md +0 -13132
  3. package/src/vendor/bootstrap/LICENSE +0 -11
  4. package/src/vendor/bootstrap-vue/LICENSE +0 -11
  5. package/src/vendor/bootstrap-vue/package.json +0 -144
  6. package/src/vendor/bootstrap-vue/src/components/button/MODIFICATIONS.md +0 -16
  7. package/src/vendor/bootstrap-vue/src/components/button/README.md +0 -240
  8. package/src/vendor/bootstrap-vue/src/components/button/button-close.spec.js +0 -210
  9. package/src/vendor/bootstrap-vue/src/components/button/button.spec.js +0 -349
  10. package/src/vendor/bootstrap-vue/src/components/button/package.json +0 -105
  11. package/src/vendor/bootstrap-vue/src/components/dropdown/README.md +0 -730
  12. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-divider.spec.js +0 -58
  13. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-form.spec.js +0 -110
  14. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-group.spec.js +0 -94
  15. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-header.spec.js +0 -73
  16. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-item-button.spec.js +0 -117
  17. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-item.spec.js +0 -147
  18. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-text.spec.js +0 -59
  19. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown.spec.js +0 -1121
  20. package/src/vendor/bootstrap-vue/src/components/dropdown/package.json +0 -368
  21. package/src/vendor/bootstrap-vue/src/components/form/README.md +0 -365
  22. package/src/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.spec.js +0 -170
  23. package/src/vendor/bootstrap-vue/src/components/form/form-text.spec.js +0 -93
  24. package/src/vendor/bootstrap-vue/src/components/form/form-valid-feedback.spec.js +0 -157
  25. package/src/vendor/bootstrap-vue/src/components/form/form.spec.js +0 -97
  26. package/src/vendor/bootstrap-vue/src/components/form/package.json +0 -112
  27. package/src/vendor/bootstrap-vue/src/components/form-checkbox/README.md +0 -691
  28. package/src/vendor/bootstrap-vue/src/components/form-checkbox/form-checkbox-group.spec.js +0 -525
  29. package/src/vendor/bootstrap-vue/src/components/form-checkbox/form-checkbox.spec.js +0 -922
  30. package/src/vendor/bootstrap-vue/src/components/form-checkbox/package.json +0 -172
  31. package/src/vendor/bootstrap-vue/src/components/form-group/README.md +0 -339
  32. package/src/vendor/bootstrap-vue/src/components/form-group/form-group.spec.js +0 -477
  33. package/src/vendor/bootstrap-vue/src/components/form-group/package.json +0 -183
  34. package/src/vendor/bootstrap-vue/src/components/form-radio/README.md +0 -437
  35. package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio-group.spec.js +0 -357
  36. package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio.spec.js +0 -587
  37. package/src/vendor/bootstrap-vue/src/components/form-radio/package.json +0 -162
  38. package/src/vendor/bootstrap-vue/src/components/form-select/README.md +0 -504
  39. package/src/vendor/bootstrap-vue/src/components/form-select/form-select-option-group.spec.js +0 -138
  40. package/src/vendor/bootstrap-vue/src/components/form-select/form-select-option.spec.js +0 -75
  41. package/src/vendor/bootstrap-vue/src/components/form-select/form-select.spec.js +0 -723
  42. package/src/vendor/bootstrap-vue/src/components/form-select/package.json +0 -132
  43. package/src/vendor/bootstrap-vue/src/components/form-textarea/README.md +0 -453
  44. package/src/vendor/bootstrap-vue/src/components/form-textarea/form-textarea.spec.js +0 -1000
  45. package/src/vendor/bootstrap-vue/src/components/form-textarea/package.json +0 -122
  46. package/src/vendor/bootstrap-vue/src/components/layout/README.md +0 -791
  47. package/src/vendor/bootstrap-vue/src/components/layout/col.spec.js +0 -192
  48. package/src/vendor/bootstrap-vue/src/components/layout/form-row.spec.js +0 -45
  49. package/src/vendor/bootstrap-vue/src/components/layout/package.json +0 -99
  50. package/src/vendor/bootstrap-vue/src/components/link/README.md +0 -76
  51. package/src/vendor/bootstrap-vue/src/components/link/link.spec.js +0 -434
  52. package/src/vendor/bootstrap-vue/src/components/link/package.json +0 -57
  53. package/src/vendor/bootstrap-vue/src/components/modal/MODIFICATIONS.md +0 -30
  54. package/src/vendor/bootstrap-vue/src/components/modal/README.md +0 -1067
  55. package/src/vendor/bootstrap-vue/src/components/modal/helpers/bv-modal-event.class.spec.js +0 -82
  56. package/src/vendor/bootstrap-vue/src/components/modal/modal.spec.js +0 -1418
  57. package/src/vendor/bootstrap-vue/src/components/modal/package.json +0 -544
  58. package/src/vendor/bootstrap-vue/src/components/nav/README.md +0 -362
  59. package/src/vendor/bootstrap-vue/src/components/nav/nav-item.spec.js +0 -127
  60. package/src/vendor/bootstrap-vue/src/components/nav/nav.spec.js +0 -177
  61. package/src/vendor/bootstrap-vue/src/components/nav/package.json +0 -73
  62. package/src/vendor/bootstrap-vue/src/components/popover/README.md +0 -919
  63. package/src/vendor/bootstrap-vue/src/components/popover/package.json +0 -261
  64. package/src/vendor/bootstrap-vue/src/components/popover/popover.spec.js +0 -198
  65. package/src/vendor/bootstrap-vue/src/components/table/README.md +0 -3157
  66. package/src/vendor/bootstrap-vue/src/components/table/helpers/default-sort-compare.spec.js +0 -112
  67. package/src/vendor/bootstrap-vue/src/components/table/helpers/normalize-fields.spec.js +0 -93
  68. package/src/vendor/bootstrap-vue/src/components/table/package.json +0 -1763
  69. package/src/vendor/bootstrap-vue/src/components/table/table-busy.spec.js +0 -150
  70. package/src/vendor/bootstrap-vue/src/components/table/table-caption.spec.js +0 -176
  71. package/src/vendor/bootstrap-vue/src/components/table/table-colgroup.spec.js +0 -81
  72. package/src/vendor/bootstrap-vue/src/components/table/table-filtering.spec.js +0 -409
  73. package/src/vendor/bootstrap-vue/src/components/table/table-item-formatter.spec.js +0 -56
  74. package/src/vendor/bootstrap-vue/src/components/table/table-lite.spec.js +0 -682
  75. package/src/vendor/bootstrap-vue/src/components/table/table-pagination.spec.js +0 -133
  76. package/src/vendor/bootstrap-vue/src/components/table/table-primarykey.spec.js +0 -83
  77. package/src/vendor/bootstrap-vue/src/components/table/table-provider.spec.js +0 -411
  78. package/src/vendor/bootstrap-vue/src/components/table/table-row-details.spec.js +0 -459
  79. package/src/vendor/bootstrap-vue/src/components/table/table-selectable.spec.js +0 -1182
  80. package/src/vendor/bootstrap-vue/src/components/table/table-simple.spec.js +0 -206
  81. package/src/vendor/bootstrap-vue/src/components/table/table-sorting.spec.js +0 -858
  82. package/src/vendor/bootstrap-vue/src/components/table/table-sticky-column.spec.js +0 -377
  83. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-bottom-row.spec.js +0 -94
  84. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-row-events.spec.js +0 -529
  85. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-top-row.spec.js +0 -88
  86. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-transition.spec.js +0 -83
  87. package/src/vendor/bootstrap-vue/src/components/table/table-tfoot-custom.spec.js +0 -91
  88. package/src/vendor/bootstrap-vue/src/components/table/table-tfoot-events.spec.js +0 -137
  89. package/src/vendor/bootstrap-vue/src/components/table/table-thead-events.spec.js +0 -155
  90. package/src/vendor/bootstrap-vue/src/components/table/table-thead-top.spec.js +0 -96
  91. package/src/vendor/bootstrap-vue/src/components/table/table.spec.js +0 -692
  92. package/src/vendor/bootstrap-vue/src/components/tabs/README.md +0 -433
  93. package/src/vendor/bootstrap-vue/src/components/tabs/package.json +0 -205
  94. package/src/vendor/bootstrap-vue/src/components/tabs/tab.spec.js +0 -330
  95. package/src/vendor/bootstrap-vue/src/components/tabs/tabs.spec.js +0 -778
  96. package/src/vendor/bootstrap-vue/src/components/toast/README.md +0 -655
  97. package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.spec.js +0 -117
  98. package/src/vendor/bootstrap-vue/src/components/toast/package.json +0 -184
  99. package/src/vendor/bootstrap-vue/src/components/toast/toast.spec.js +0 -294
  100. package/src/vendor/bootstrap-vue/src/components/toast/toaster.spec.js +0 -77
  101. package/src/vendor/bootstrap-vue/src/components/tooltip/README.md +0 -559
  102. package/src/vendor/bootstrap-vue/src/components/tooltip/package.json +0 -258
  103. package/src/vendor/bootstrap-vue/src/components/tooltip/tooltip.spec.js +0 -1240
  104. package/src/vendor/bootstrap-vue/src/components/transition/package.json +0 -5
  105. package/src/vendor/bootstrap-vue/src/components/transporter/package.json +0 -5
  106. package/src/vendor/bootstrap-vue/src/components/transporter/transporter.spec.js +0 -85
  107. package/src/vendor/bootstrap-vue/src/directives/modal/modal.spec.js +0 -191
  108. package/src/vendor/bootstrap-vue/src/directives/tooltip/README.md +0 -521
  109. package/src/vendor/bootstrap-vue/src/directives/tooltip/package.json +0 -131
  110. package/src/vendor/bootstrap-vue/src/directives/tooltip/tooltip.spec.js +0 -190
  111. package/src/vendor/bootstrap-vue/src/directives/visible/README.md +0 -244
  112. package/src/vendor/bootstrap-vue/src/directives/visible/package.json +0 -24
  113. package/src/vendor/bootstrap-vue/src/mixins/attrs.spec.js +0 -194
  114. package/src/vendor/bootstrap-vue/src/mixins/click-out.spec.js +0 -52
  115. package/src/vendor/bootstrap-vue/src/mixins/focus-in.spec.js +0 -53
  116. package/src/vendor/bootstrap-vue/src/mixins/listen-on-document.spec.js +0 -117
  117. package/src/vendor/bootstrap-vue/src/mixins/listen-on-root.spec.js +0 -77
  118. package/src/vendor/bootstrap-vue/src/mixins/listen-on-window.spec.js +0 -115
  119. package/src/vendor/bootstrap-vue/src/mixins/listeners.spec.js +0 -245
  120. package/src/vendor/bootstrap-vue/src/utils/bv-event.class.spec.js +0 -66
  121. package/src/vendor/bootstrap-vue/src/utils/clone-deep.spec.js +0 -70
  122. package/src/vendor/bootstrap-vue/src/utils/config.spec.js +0 -169
  123. package/src/vendor/bootstrap-vue/src/utils/css-escape.spec.js +0 -82
  124. package/src/vendor/bootstrap-vue/src/utils/dom.spec.js +0 -291
  125. package/src/vendor/bootstrap-vue/src/utils/events.spec.js +0 -41
  126. package/src/vendor/bootstrap-vue/src/utils/get.spec.js +0 -109
  127. package/src/vendor/bootstrap-vue/src/utils/inspect.spec.js +0 -251
  128. package/src/vendor/bootstrap-vue/src/utils/loose-equal.spec.js +0 -203
  129. package/src/vendor/bootstrap-vue/src/utils/normalize-slot.spec.js +0 -63
  130. package/src/vendor/bootstrap-vue/src/utils/number.spec.js +0 -72
  131. package/src/vendor/bootstrap-vue/src/utils/object.spec.js +0 -61
  132. package/src/vendor/bootstrap-vue/src/utils/props.spec.js +0 -112
  133. package/src/vendor/bootstrap-vue/src/utils/router.spec.js +0 -248
  134. package/src/vendor/bootstrap-vue/src/utils/string.spec.js +0 -65
  135. package/src/vendor/bootstrap-vue/src/utils/stringify-object-values.spec.js +0 -47
  136. package/src/vendor/bootstrap-vue/src/utils/warn.spec.js +0 -54
@@ -1,919 +0,0 @@
1
- # Popover
2
-
3
- > The Popover feature, which provides a tooltip-like behavior, can be easily applied to any
4
- > interactive element via the `<b-popover>` component.
5
-
6
- ```html
7
- <div class="text-center my-3">
8
- <b-button id="popover-target-1">
9
- Hover Me
10
- </b-button>
11
- <b-popover target="popover-target-1" triggers="hover" placement="top">
12
- <template #title>Popover Title</template>
13
- I am popover <b>component</b> content!
14
- </b-popover>
15
- </div>
16
-
17
- <!-- b-popover.vue -->
18
- ```
19
-
20
- ## Overview
21
-
22
- Things to know when using popover component:
23
-
24
- - Popovers rely on the 3rd party library [Popper.js](https://popper.js.org/) for positioning.
25
- - Popovers require BootstrapVue's custom SCSS/CSS in order to function correctly, and for variants.
26
- - Specify `container` as `null` (default, appends to `<body>`) to avoid rendering problems in more
27
- complex components (like input groups, button groups, etc.). You can use `container` to optionally
28
- specify a different element to append the rendered popover to.
29
- - Triggering popovers on hidden elements will not work.
30
- - Popovers for `disabled` elements must be triggered on a wrapper element.
31
- - When triggered from hyperlinks that span multiple lines, popovers will be centered. Use
32
- `white-space: nowrap;` on your `<a>`s, `<b-link>`s and `<router-link>`s to avoid this behavior.
33
-
34
- ## Target
35
-
36
- The target is the _trigger_ element (or component) that will trigger the popover. The target is
37
- specified via the `target` prop, and can be any of the following:
38
-
39
- - A string identifying the ID of the trigger element (or ID of the root element of a component)
40
- - A reference (ref) to an `HTMLElement` or an `SVGElement` (e.g. via `this.$refs.refName`)
41
- - A reference (ref) to a component that has either an `HTMLElement` or `SVGElement` as its root
42
- element (e.g. via `this.$refs.refName`)
43
- - A function (callback) that returns a reference to an `HTMLElement` or `SVGElement`
44
-
45
- For more information on references, see the official
46
- [Vue documentation](https://vuejs.org/v2/api/#vm-refs).
47
-
48
- **Notes:**
49
-
50
- The target element **must** exist in the document before `<b-popover>` is mounted. If the target
51
- element is not found during mount, the popover will never open. Always place your `<b-popover>`
52
- component lower in the DOM than your target element. This rule also applies if a callback function
53
- is used as target element, since that callback is called only once on mount.
54
-
55
- `HTMLElement` refers to standard HTML elements such as `<div>`, `<button>`, etc, while `SVGElement`
56
- refers to `<svg>` or supported child elements of SVGs.
57
-
58
- ## Positioning
59
-
60
- Twelve options are available for positioning: `top`, `topleft`, `topright`, `right`, `righttop`,
61
- `rightbottom`, `bottom`, `bottomleft`, `bottomright`, `left`, `lefttop`, and `leftbottom` aligned.
62
- Positioning is relative to the trigger element.
63
-
64
- <section class="bd-example bd-example-popover-static">
65
- <div class="popover b-popover bs-popover-top bs-popover-top-docs">
66
- <div class="arrow" style="left: calc(50% - 8px)"></div>
67
- <h3 class="popover-header">Popover top</h3>
68
- <div class="popover-body">
69
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
70
- quam venenatis vestibulum.
71
- </div>
72
- </div>
73
- <div class="popover b-popover bs-popover-top bs-popover-top-docs">
74
- <div class="arrow" style="right: 0px"></div>
75
- <h3 class="popover-header">Popover topleft</h3>
76
- <div class="popover-body">
77
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
78
- quam venenatis vestibulum.
79
- </div>
80
- </div>
81
- <div class="popover b-popover bs-popover-top bs-popover-top-docs">
82
- <div class="arrow" style="left: 0px"></div>
83
- <h3 class="popover-header">Popover topright</h3>
84
- <div class="popover-body">
85
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
86
- quam venenatis vestibulum.
87
- </div>
88
- </div>
89
-
90
- <div class="popover b-popover bs-popover-right bs-popover-right-docs">
91
- <div class="arrow" style="top: calc(50% - 4px)"></div>
92
- <h3 class="popover-header">Popover right</h3>
93
- <div class="popover-body">
94
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
95
- quam venenatis vestibulum.
96
- </div>
97
- </div>
98
- <div class="popover b-popover bs-popover-right bs-popover-right-docs">
99
- <div class="arrow" style="bottom: 0px"></div>
100
- <h3 class="popover-header">Popover righttop</h3>
101
- <div class="popover-body">
102
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
103
- quam venenatis vestibulum.
104
- </div>
105
- </div>
106
- <div class="popover b-popover bs-popover-right bs-popover-right-docs">
107
- <div class="arrow" style="top: 0px"></div>
108
- <h3 class="popover-header">Popover rightbottom</h3>
109
- <div class="popover-body">
110
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
111
- quam venenatis vestibulum.
112
- </div>
113
- </div>
114
-
115
- <div class="popover b-popover bs-popover-bottom bs-popover-bottom-docs">
116
- <div class="arrow" style="left: calc(50% - 8px)"></div>
117
- <h3 class="popover-header">Popover bottom</h3>
118
- <div class="popover-body">
119
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
120
- quam venenatis vestibulum.
121
- </div>
122
- </div>
123
- <div class="popover b-popover bs-popover-bottom bs-popover-bottom-docs">
124
- <div class="arrow" style="right: 0px"></div>
125
- <h3 class="popover-header">Popover bottomleft</h3>
126
- <div class="popover-body">
127
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
128
- quam venenatis vestibulum.
129
- </div>
130
- </div>
131
- <div class="popover b-popover bs-popover-bottom bs-popover-bottom-docs">
132
- <div class="arrow" style="left: 0px"></div>
133
- <h3 class="popover-header">Popover bottomright</h3>
134
- <div class="popover-body">
135
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
136
- quam venenatis vestibulum.
137
- </div>
138
- </div>
139
-
140
- <div class="popover b-popover bs-popover-left bs-popover-left-docs">
141
- <div class="arrow" style="top: calc(50% - 4px)"></div>
142
- <h3 class="popover-header">Popover left</h3>
143
- <div class="popover-body">
144
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
145
- quam venenatis vestibulum.
146
- </div>
147
- </div>
148
- <div class="popover b-popover bs-popover-left bs-popover-left-docs">
149
- <div class="arrow" style="bottom: 0px"></div>
150
- <h3 class="popover-header">Popover lefttop</h3>
151
- <div class="popover-body">
152
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
153
- quam venenatis vestibulum.
154
- </div>
155
- </div>
156
- <div class="popover b-popover bs-popover-left bs-popover-left-docs">
157
- <div class="arrow" style="top: 0px"></div>
158
- <h3 class="popover-header">Popover leftbottom</h3>
159
- <div class="popover-body">
160
- Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia
161
- quam venenatis vestibulum.
162
- </div>
163
- </div>
164
-
165
- <div class="clearfix"></div>
166
- </section>
167
-
168
- ## Triggers
169
-
170
- Popovers can be triggered (opened/closed) via any combination of `click`, `hover` and `focus`. The
171
- default trigger is `click`. Or a trigger of `manual` can be specified, where the popover can only be
172
- opened or closed [programmatically](#programmatically-disabling-popover).
173
-
174
- If a popover has more than one trigger, then all triggers must be cleared before the popover will
175
- close. I.e. if a popover has the trigger `focus click`, and it was opened by `focus`, and the user
176
- then clicks the trigger element, they must click it again **and** move focus to close the popover.
177
-
178
- ### Caveats with `focus` trigger on `<button>` elements
179
-
180
- For proper cross-browser and cross-platform behavior when using only the `focus` trigger, you must
181
- use an element that renders the `<a>` tag, not the `<button>` tag, and you also must include a
182
- `tabindex="0"` attribute.
183
-
184
- The following will generate an `<a>` that looks like a button:
185
-
186
- ```html
187
- <b-button
188
- href="#"
189
- tabindex="0"
190
- v-b-popover.focus="'Popover content'"
191
- title="Popover title"
192
- >
193
- Link button with popover directive
194
- </b-button>
195
-
196
- <b-button id="link-button" href="#" tabindex="0">
197
- Link button with popover component
198
- </b-button>
199
- <b-popover target="link-button" title="Popover title" triggers="focus">
200
- Popover content
201
- </b-popover>
202
- ```
203
-
204
- ### Dismiss on next click (self-dismissing)
205
-
206
- Use the `focus` trigger by itself to dismiss popovers on the next click that the user makes. `focus`
207
- also makes the popover activate on both `focus` and `click` (as a click makes the element receive
208
- focus on most browsers, assuming it is in the tab sequence of the page).
209
-
210
- You can, however, specify your trigger as `click blur`, which will make only a click activate the
211
- popover, and either a click on the element, _or_ losing focus to another element or part of the
212
- document will close the popover.
213
-
214
- The special `blur` trigger **must** be used in combination with the `click` trigger.
215
-
216
- ## `<b-popover>` Component basic usage
217
-
218
- ```html
219
- <template>
220
- <b-container fluid>
221
- <h5 class="my-3">Placement</h5>
222
- <b-row>
223
- <b-col
224
- v-for="placement in placements"
225
- :key="placement"
226
- md="4"
227
- class="py-4 text-center"
228
- >
229
- <b-button :id="`popover-1-${placement}`" variant="primary">{{ placement }}</b-button>
230
- <b-popover
231
- :target="`popover-1-${placement}`"
232
- :placement="placement"
233
- title="Popover!"
234
- triggers="hover focus"
235
- :content="`Placement ${placement}`"
236
- ></b-popover>
237
- </b-col>
238
- </b-row>
239
-
240
- <h5 class="my-3">Content via properties or slots</h5>
241
- <b-row>
242
- <b-col md="6" class="py-4 text-center">
243
- <b-button id="popover-2" variant="primary">Using properties</b-button>
244
- <b-popover
245
- target="popover-2"
246
- title="Prop Examples"
247
- triggers="hover focus"
248
- content="Embedding content using properties is easy"
249
- ></b-popover>
250
- </b-col>
251
-
252
- <b-col md="6" class="py-4 text-center">
253
- <b-button id="popover-3" variant="primary">Using slots</b-button>
254
- <b-popover target="popover-3" triggers="hover focus">
255
- <template #title>Content via Slots</template>
256
- Embedding content <span class="text-danger">using slots</span> affords you
257
- <em>greater <strong>control.</strong></em> and basic HTML support.
258
- </b-popover>
259
- </b-col>
260
- </b-row>
261
- </b-container>
262
- </template>
263
-
264
- <script>
265
- export default {
266
- data() {
267
- return {
268
- placements: [
269
- 'topright',
270
- 'top',
271
- 'topleft',
272
- 'bottomright',
273
- 'bottom',
274
- 'bottomleft',
275
- 'righttop',
276
- 'right',
277
- 'lefttop',
278
- 'rightbottom',
279
- 'left',
280
- 'leftbottom'
281
- ]
282
- }
283
- }
284
- }
285
- </script>
286
-
287
- <!-- b-popover-placements.vue -->
288
- ```
289
-
290
- ### Component options via props
291
-
292
- | Prop | Default | Description | Supported values |
293
- | -------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
294
- | `target` | `null` | Element string ID, or a reference to an element or component, that you want to trigger the popover. **Required** | Any valid in-document unique element ID, or in-document element/component reference |
295
- | `title` | `null` | Popover title (text only, no HTML). If HTML or reactivity is required, use the `title` named slot | Plain text |
296
- | `content` | `null` | Popover content (text only, no HTML). If HTML or reactivity is required, use the default slot | Plain text |
297
- | `placement` | `'right'` | Positioning of the popover, relative to the trigger element. | `auto`, `top`, `bottom`, `left`, `right`, `topleft`, `topright`, `bottomleft`, `bottomright`, `lefttop`, `leftbottom`, `righttop`, `rightbottom` |
298
- | `fallback-placement` | `'flip'` | Auto-flip placement behaviour of the popover, relative to the trigger element. | `flip`, `clockwise`, `counterclockwise`, or an array of valid placements evaluated from left to right |
299
- | `disabled` | `false` | Programmatic control of the Popover display state. Recommended to use with [sync modifier](https://vuejs.org/v2/guide/components.html#sync-Modifier). | `true`, `false` |
300
- | `triggers` | `'click'` | Space separated list of event(s), which will trigger open/close of popover using built-in handling | `hover`, `focus`, `click`. Note `blur` is a special use case to close popover on next click. |
301
- | `no-fade` | `false` | Disable fade animation when set to `true` | `true` or `false` |
302
- | `delay` | `50` | Delay showing and hiding of popover by specified number of milliseconds. Can also be defined as an object in the form of `{ show: 100, hide: 400 }` allowing different show and hide delays | `0` and up, integers only. |
303
- | `offset` | `0` | Shift the center of the popover by specified number of pixels. Also affects the position of the popover arrow. | Any negative or positive integer |
304
- | `container` | `null` | Element string ID to append rendered popover into. If `null` or element not found, popover is appended to `<body>` (default) | Any valid in-document unique element ID. |
305
- | `boundary` | `'scrollParent'` | The container that the popover will be constrained visually. The default should suffice in most cases, but you may need to change this if your target element is in a small container with overflow scroll | `'scrollParent'` (default), `'viewport'`, `'window'`, or a reference to an HTML element. |
306
- | `boundary-padding` | `5` | Amount of pixel used to define a minimum distance between the boundaries and the popover. This makes sure the popover always has a little padding between the edges of its container. | Any positive number |
307
- | `variant` | `null` | Contextual color variant for the popover | Any contextual theme color variant name |
308
- | `custom-class` | `null` | A custom classname to apply to the popover outer wrapper element | A string |
309
- | `id` | `null` | An ID to use on the popover root element. If none is provided, one will automatically be generated. If you do provide an ID, it _must_ be guaranteed to be unique on the rendered page. | A valid unique element ID string |
310
-
311
- ### Variants and custom class
312
-
313
- BootstrapVue's popovers support contextual color variants via our custom CSS, via the `variant`
314
- prop:
315
-
316
- ```html
317
- <div class="text-center">
318
- <b-button id="popover-button-variant" href="#" tabindex="0">Button</b-button>
319
- <b-popover target="popover-button-variant" variant="danger" triggers="focus">
320
- <template #title>Danger!</template>
321
- Danger variant popover
322
- </b-popover>
323
- </div>
324
-
325
- <!-- b-popover-variant.vue -->
326
- ```
327
-
328
- Bootstrap default theme variants are: `danger`, `warning`, `success`, `primary`, `secondary`,
329
- `info`, `light`, and `dark`. You can change or add additional variants via Bootstrap
330
- [SCSS variables](/docs/reference/theming)
331
-
332
- A custom class can be applied to the popover outer wrapper `<div>` by using the `custom-class` prop:
333
-
334
- ```html
335
- <div class="text-center">
336
- <b-button id="my-button">Button</b-button>
337
- <b-popover target="my-button" custom-class="my-popover-class">
338
- <template #title>Popover Title</template>
339
- Popover content
340
- </b-popover>
341
- </div>
342
- ```
343
-
344
- `variant` and `custom-class` are reactive and can be changed while the popover is open.
345
-
346
- ### Programmatically show and hide popover
347
-
348
- You can manually control the visibility of a popover via the syncable Boolean `show` prop. Setting
349
- it to `true` will show the popover, while setting it to `false` will hide the popover.
350
-
351
- ```html
352
- <template>
353
- <div class="d-flex flex-column text-md-center">
354
- <div class="p-2">
355
- <b-button id="popover-button-sync" variant="primary">I have a popover</b-button>
356
- </div>
357
-
358
- <div class="p-2">
359
- <b-button class="px-1" @click="show = !show">Toggle Popover</b-button>
360
-
361
- <b-popover :show.sync="show" target="popover-button-sync" title="Popover">
362
- Hello <strong>World!</strong>
363
- </b-popover>
364
- </div>
365
- </div>
366
- </template>
367
-
368
- <script>
369
- export default {
370
- data() {
371
- return {
372
- show: false
373
- }
374
- }
375
- }
376
- </script>
377
-
378
- <!-- b-popover-show-sync.vue -->
379
- ```
380
-
381
- Programmatic control can also be affected by submitting `'open'` and `'close'` events to the popover
382
- by reference.
383
-
384
- ```html
385
- <template>
386
- <div class="d-flex flex-column text-md-center">
387
- <div class="p-2">
388
- <b-button id="popover-button-event" variant="primary">I have a popover</b-button>
389
- </div>
390
-
391
- <div class="p-2">
392
- <b-button class="px-1" @click="onOpen">Open</b-button>
393
- <b-button class="px-1" @click="onClose">Close</b-button>
394
- </div>
395
-
396
- <b-popover ref="popover" target="popover-button-event" title="Popover">
397
- Hello <strong>World!</strong>
398
- </b-popover>
399
- </div>
400
- </template>
401
-
402
- <script>
403
- export default {
404
- methods: {
405
- onOpen() {
406
- this.$refs.popover.$emit('open')
407
- },
408
- onClose() {
409
- this.$refs.popover.$emit('close')
410
- }
411
- }
412
- }
413
- </script>
414
-
415
- <!-- b-popover-show-event.vue -->
416
- ```
417
-
418
- To make the popover shown on initial render, simply add the `show` prop on `<b-popover>`:
419
-
420
- ```html
421
- <div class="text-center">
422
- <b-button id="popover-button-open" variant="primary">Button</b-button>
423
-
424
- <b-popover show target="popover-button-open" title="Popover">
425
- I start <strong>open</strong>
426
- </b-popover>
427
- </div>
428
-
429
- <!-- b-popover-show-open.vue -->
430
- ```
431
-
432
- A popover which is opened programmatically via the 'show' property or by an event call can only be
433
- closed programmatically. Built-in triggers will work inadequately, because trigger event will try to
434
- open the popover even though it is already opened.
435
-
436
- In the below example, when the first Popover is opened with the 'open' event, it will take two
437
- button clicks to close it. Play with the below demo to understand this. When you desire graceful
438
- handling of both programmatic control of the Popover component as well as user interaction triggers,
439
- you should disable built-in triggers and handle control yourself as demonstrated by the second
440
- Popover.
441
-
442
- ```html
443
- <template>
444
- <div class="d-flex flex-column text-md-center">
445
- <div class="p-2">
446
- <b-button id="popover-manual-1" variant="primary" ref="button">Unreliable</b-button>
447
-
448
- <b-popover target="popover-manual-1" :show.sync="pop1" triggers="click">
449
- I can be stubborn sometimes.
450
- </b-popover>
451
- </div>
452
-
453
- <div class="p-2">
454
- <b-button id="popover-manual-2" variant="primary" ref="button" @click="pop2 = !pop2">
455
- Comfortably Numb
456
- </b-button>
457
-
458
- <b-popover target="popover-manual-2" :show.sync="pop2" triggers="">
459
- I do believe it's working, good.
460
- </b-popover>
461
- </div>
462
-
463
- <div class="p-2">
464
- <b-button class="px-1" @click="popOpen">Open</b-button>
465
- <b-button class="px-1" @click="popClose">Close</b-button>
466
- <b-button class="px-1" @click="popToggle">Toggle</b-button>
467
- </div>
468
- </div>
469
- </template>
470
-
471
- <script>
472
- export default {
473
- data() {
474
- return {
475
- pop1: false,
476
- pop2: false
477
- }
478
- },
479
- methods: {
480
- popOpen() {
481
- this.pop1 = this.pop2 = true
482
- },
483
- popClose() {
484
- this.pop1 = this.pop2 = false
485
- },
486
- popToggle() {
487
- this.pop1 = !this.pop1
488
- this.pop2 = !this.pop2
489
- }
490
- }
491
- }
492
- </script>
493
-
494
- <!-- b-popover-advanced-caution.vue -->
495
- ```
496
-
497
- You can also use `$root` events to trigger the showing and hiding of popover(s). See the **Hiding
498
- and showing popovers via \$root events** section below for details.
499
-
500
- ### Programmatically disabling popover
501
-
502
- You can disable popover via the syncable Boolean prop `disabled` (default value is `false`) Setting
503
- it to `true` will disable the popover. If the popover is currently visible when disabled is set to
504
- `false`, it will remain visible until it is enabled or programmatically closed. If the popover is
505
- disabled/enabled via \$root events (see below), your `disabled` value will be updated as long as you
506
- have provided the `.sync` prop modifier.
507
-
508
- ```html
509
- <template>
510
- <div class="d-flex flex-column text-md-center">
511
- <div class="p-2">
512
- <b-button id="popover-button-disable" variant="primary">I have a popover</b-button>
513
- </div>
514
-
515
- <div class="p-2">
516
- <b-button @click="disabled = !disabled">
517
- {{ disabled ? 'Enable' : 'Disable' }} Popover by prop
518
- </b-button>
519
- <b-button @click="disableByRef">
520
- {{ disabled ? 'Enable' : 'Disable' }} Popover by $ref event
521
- </b-button>
522
-
523
- <b-popover
524
- :disabled.sync="disabled"
525
- target="popover-button-disable"
526
- title="Popover"
527
- ref="popover"
528
- >
529
- Hello <strong>World!</strong>
530
- </b-popover>
531
- </div>
532
- </div>
533
- </template>
534
-
535
- <script>
536
- export default {
537
- data() {
538
- return {
539
- disabled: false
540
- }
541
- },
542
- methods: {
543
- disableByRef() {
544
- if (this.disabled) {
545
- this.$refs.popover.$emit('enable')
546
- } else {
547
- this.$refs.popover.$emit('disable')
548
- }
549
- }
550
- }
551
- }
552
- </script>
553
-
554
- <!-- b-popover-disable.vue -->
555
- ```
556
-
557
- Programmatic control can also be affected by submitting `'enable'` and `'disable'` events to the
558
- popover by reference.
559
-
560
- ```html
561
- <template>
562
- <div class="d-flex flex-column text-md-center">
563
- <div class="p-2">
564
- <b-button id="popover-button-disable-event" variant="primary">I have a popover</b-button>
565
- </div>
566
-
567
- <div class="p-2">
568
- <b-button class="px-1" @click="onEnable">Enable</b-button>
569
- <b-button class="px-1" @click="onDisable">Disable</b-button>
570
- </div>
571
-
572
- <b-popover ref="popover" target="popover-button-disable-event" title="Popover">
573
- Hello <strong>World!</strong>
574
- </b-popover>
575
- </div>
576
- </template>
577
-
578
- <script>
579
- export default {
580
- methods: {
581
- onEnable() {
582
- this.$refs.popover.$emit('enable')
583
- },
584
- onDisable() {
585
- this.$refs.popover.$emit('disable')
586
- }
587
- }
588
- }
589
- </script>
590
-
591
- <!-- b-popover-disabled-event.vue -->
592
- ```
593
-
594
- When disabled, the popover can be opened programmatically (either via the `show` prop, methods or
595
- events).
596
-
597
- You can also use `$root` events to trigger disabling and enabling of popover(s). See the **Disabling
598
- and enabling popovers via \$root events** section below for details.
599
-
600
- ## Advanced `<b-popover>` usage with reactive content
601
-
602
- You can even make your `<b-popover>` content interactive. Just remember not to use the `focus` or
603
- triggers (use only `click`).
604
-
605
- If you absolutely must use a trigger other than `click` (or want to disable closing of the popover
606
- when the trigger element is clicked a second time), then you can either:
607
-
608
- - Listen for the `hide` event on the `<b-popover>` element, and call the `preventDefault()` method
609
- (when appropriate) on the `BvEvent` object passed to your `hide` handler;
610
- - Disable your trigger element (if possible) as soon as the popover begins to open (via the `show`
611
- event), and re-enable it when appropriate (i.e. via the `hide` or `hidden` event).
612
-
613
- For practical purposes, **interactive content popovers should be minimal**. The maximum width of the
614
- popover is hard coded by Bootstrap v4 CSS to `276px`. Tall popovers on small screens can be harder
615
- to deal with on mobile devices (such as smart-phones).
616
-
617
- ```html
618
- <template>
619
- <div id="my-container">
620
- <div class="my-3">
621
- <!-- Our triggering (target) element -->
622
- <b-button id="popover-reactive-1" variant="primary" ref="button">
623
- Reactive Content Using Slots
624
- </b-button>
625
- </div>
626
-
627
- <!-- Output from the popover interaction -->
628
- <b-card title="Returned values:" v-if="input1Return && input2Return">
629
- <p class="card-text" style="max-width: 20rem;">
630
- Name: <strong>{{ input1Return }}</strong><br>
631
- Color: <strong>{{ input2Return }}</strong>
632
- </p>
633
- </b-card>
634
-
635
- <!-- Our popover title and content render container -->
636
- <!-- We use placement 'auto' so popover fits in the best spot on viewport -->
637
- <!-- We specify the same container as the trigger button, so that popover is close to button -->
638
- <b-popover
639
- target="popover-reactive-1"
640
- triggers="click"
641
- :show.sync="popoverShow"
642
- placement="auto"
643
- container="my-container"
644
- ref="popover"
645
- @show="onShow"
646
- @shown="onShown"
647
- @hidden="onHidden"
648
- >
649
- <template #title>
650
- <b-button @click="onClose" class="close" aria-label="Close">
651
- <span class="d-inline-block" aria-hidden="true">&times;</span>
652
- </b-button>
653
- Interactive Content
654
- </template>
655
-
656
- <div>
657
- <b-form-group
658
- label="Name"
659
- label-for="popover-input-1"
660
- label-cols="3"
661
- :state="input1state"
662
- class="mb-1"
663
- description="Enter your name"
664
- invalid-feedback="This field is required"
665
- >
666
- <b-form-input
667
- ref="input1"
668
- id="popover-input-1"
669
- v-model="input1"
670
- :state="input1state"
671
- size="sm"
672
- ></b-form-input>
673
- </b-form-group>
674
-
675
- <b-form-group
676
- label="Color"
677
- label-for="popover-input-2"
678
- label-cols="3"
679
- :state="input2state"
680
- class="mb-1"
681
- description="Pick a color"
682
- invalid-feedback="This field is required"
683
- >
684
- <b-form-select
685
- id="popover-input-2"
686
- v-model="input2"
687
- :state="input2state"
688
- :options="options"
689
- size="sm"
690
- ></b-form-select>
691
- </b-form-group>
692
-
693
- <b-alert show class="small">
694
- <strong>Current Values:</strong><br>
695
- Name: <strong>{{ input1 }}</strong><br>
696
- Color: <strong>{{ input2 }}</strong>
697
- </b-alert>
698
-
699
- <b-button @click="onClose" size="sm" variant="danger">Cancel</b-button>
700
- <b-button @click="onOk" size="sm" variant="primary">Ok</b-button>
701
- </div>
702
- </b-popover>
703
- </div>
704
- </template>
705
-
706
- <script>
707
- export default {
708
- data() {
709
- return {
710
- input1: '',
711
- input1state: null,
712
- input2: '',
713
- input2state: null,
714
- options: [{ text: '- Choose 1 -', value: '' }, 'Red', 'Green', 'Blue'],
715
- input1Return: '',
716
- input2Return: '',
717
- popoverShow: false
718
- }
719
- },
720
- watch: {
721
- input1(val) {
722
- if (val) {
723
- this.input1state = true
724
- }
725
- },
726
- input2(val) {
727
- if (val) {
728
- this.input2state = true
729
- }
730
- }
731
- },
732
- methods: {
733
- onClose() {
734
- this.popoverShow = false
735
- },
736
- onOk() {
737
- if (!this.input1) {
738
- this.input1state = false
739
- }
740
- if (!this.input2) {
741
- this.input2state = false
742
- }
743
- if (this.input1 && this.input2) {
744
- this.onClose()
745
- // Return our popover form results
746
- this.input1Return = this.input1
747
- this.input2Return = this.input2
748
- }
749
- },
750
- onShow() {
751
- // This is called just before the popover is shown
752
- // Reset our popover form variables
753
- this.input1 = ''
754
- this.input2 = ''
755
- this.input1state = null
756
- this.input2state = null
757
- this.input1Return = ''
758
- this.input2Return = ''
759
- },
760
- onShown() {
761
- // Called just after the popover has been shown
762
- // Transfer focus to the first input
763
- this.focusRef(this.$refs.input1)
764
- },
765
- onHidden() {
766
- // Called just after the popover has finished hiding
767
- // Bring focus back to the button
768
- this.focusRef(this.$refs.button)
769
- },
770
- focusRef(ref) {
771
- // Some references may be a component, functional component, or plain element
772
- // This handles that check before focusing, assuming a `focus()` method exists
773
- // We do this in a double `$nextTick()` to ensure components have
774
- // updated & popover positioned first
775
- this.$nextTick(() => {
776
- this.$nextTick(() => {
777
- ;(ref.$el || ref).focus()
778
- })
779
- })
780
- }
781
- }
782
- }
783
- </script>
784
-
785
- <!-- b-popover-advanced.vue -->
786
- ```
787
-
788
- ## 'Global' \$root instance events
789
-
790
- Using `$root` instance it is possible to emit and listen events somewhere out of a component, where
791
- `<b-collapse>` is used. In short, `$root` behaves like a global event emitters and listener. Details
792
- about `$root` instance can be found in
793
- [the official Vue docs](https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-the-Root-Instance).
794
-
795
- ### Hiding and showing popovers via \$root events
796
-
797
- You can close (hide) **all open popovers** by emitting the `bv::hide::popover` event on \$root:
798
-
799
- ```js
800
- this.$root.$emit('bv::hide::popover')
801
- ```
802
-
803
- To close a **specific popover**, pass the trigger element's `id`, or the `id` of the popover (if one
804
- was provided via the `id` prop), as the first argument:
805
-
806
- ```js
807
- this.$root.$emit('bv::hide::popover', 'my-trigger-button-id')
808
- ```
809
-
810
- To open (show) a **specific popover**, pass the trigger element's `id`, or the `id` of the popover
811
- (if one was provided via the `id` prop), as the first argument when emitting the `bv::show::popover`
812
- event:
813
-
814
- ```js
815
- this.$root.$emit('bv::show::popover', 'my-trigger-button-id')
816
- ```
817
-
818
- To open all popovers simultaneously, omit the `id` argument when emitting the `bv::show::popover`
819
- event.
820
-
821
- These events work for both the component **and** directive versions of popover.
822
-
823
- **Note:** _The **trigger element** must exist in the DOM and be in a visible state in order for the
824
- popover to instantiate and show._
825
-
826
- ### Disabling and enabling popovers via \$root events
827
-
828
- You can disable **all** popovers by emitting the `bv::disable::popover` event on \$root:
829
-
830
- ```js
831
- this.$root.$emit('bv::disable::popover')
832
- ```
833
-
834
- To disable a **specific popover**, pass the trigger element's `id`, or the `id` of the popover (if
835
- one was provided via the `id` prop), as the first argument:
836
-
837
- ```js
838
- this.$root.$emit('bv::disable::popover', 'my-trigger-button-id')
839
- ```
840
-
841
- To enable a **specific popover**, pass the trigger element's `id`, or the `id` of the popover (if
842
- one was provided via the `id` prop), as the first argument when emitting the `bv::enable::popover`
843
- event:
844
-
845
- ```js
846
- this.$root.$emit('bv::enable::popover', 'my-trigger-button-id')
847
- ```
848
-
849
- To enable all popovers simultaneously, omit the `id` argument when emitting the
850
- `bv::enable::popover` event.
851
-
852
- These events work for both the component and directive versions of popover.
853
-
854
- **Note:** _The **trigger element** must exist in the DOM in order for the popover to be enabled or
855
- disabled._
856
-
857
- ### Listening to popover changes via \$root events
858
-
859
- To listen to any popover opening, use:
860
-
861
- ```js
862
- export default {
863
- mounted() {
864
- this.$root.$on('bv::popover::show', bvEventObj => {
865
- console.log('bvEventObj:', bvEventObj)
866
- })
867
- }
868
- }
869
- ```
870
-
871
- Refer to the [Events](/docs/components/popover#component-reference) section of documentation for the
872
- full list of events.
873
-
874
- ## Accessibility
875
-
876
- Popovers, in their current implementation, are not overly accessible when used as interactive
877
- components. Content may not be actively read to screen reader users, and the popover markup might
878
- not be located close to the trigger element in the DOM (as popovers usually get appended to the end
879
- of `<body>`).
880
-
881
- When using popovers as interactive component, you should transfer focus into the popover if
882
- possible. When the popover is closed, you should return focus back to your triggering element
883
- (assuming `focus` is not used as a trigger method), as we have done in the above example.
884
-
885
- You may also want to implement focus containment in the popover content while the user is
886
- interacting with it (keeping focus inside the popover until it is closed by the user).
887
-
888
- **Note:** The animation effect of this component is dependent on the `prefers-reduced-motion` media
889
- query. See the
890
- [reduced motion section of our accessibility documentation](?path=/docs/base-tooltip--docs#accessibility)
891
- for additional details.
892
-
893
- ### Making popovers work for keyboard and assistive technology users
894
-
895
- To allow keyboard users to activate your popovers, you should only add them to HTML elements that
896
- are traditionally keyboard-focusable and interactive (such as links or form controls). Although
897
- arbitrary HTML elements (such as `<span>`s) can be made focusable by adding the `tabindex="0"`
898
- attribute, this will add potentially annoying and confusing tab stops on non-interactive elements
899
- for keyboard users, and most assistive technologies currently do not announce the popover's content
900
- in this situation. Additionally, do not rely solely on `hover` as the trigger for your popovers, as
901
- this will make them impossible to trigger for keyboard users.
902
-
903
- While you can insert rich, structured HTML and/or components in popovers via slots, we strongly
904
- recommend that you avoid adding an excessive amount of content. The way popovers currently work is
905
- that, once displayed, their content is tied to the trigger element with the `aria-describedby`
906
- attribute. As a result, the entirety of the popover's content will be announced (read) to assistive
907
- technology users as one long, uninterrupted stream.
908
-
909
- Additionally, while it is possible to also include interactive controls (such as form elements or
910
- links) in your popover, be aware that currently the popover does not manage keyboard focus order.
911
- When a keyboard user opens a popover, focus remains on the triggering element, and as the popover
912
- usually does not immediately follow the trigger in the document's structure, there is no guarantee
913
- that moving forward/pressing <kbd>Tab</kbd> will move a keyboard user into the popover itself. In
914
- short, simply adding interactive controls to a popover is likely to make these controls
915
- unreachable/unusable for keyboard users and users of assistive technologies, or at the very least
916
- make for an illogical overall focus order. **In these cases, consider using a `<b-modal>` dialog
917
- instead**.
918
-
919
- <!-- Component reference added automatically from component package.json -->