gd-bs 5.1.9 → 5.2.3

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 (261) hide show
  1. package/build/bs.js +1 -1
  2. package/build/components/dropdown/index.js +39 -1
  3. package/build/components/index.js +1 -0
  4. package/build/components/navbar/templates.js +1 -1
  5. package/build/components/popover/index.js +32 -31
  6. package/build/components/tooltip/index.js +36 -35
  7. package/build/components/tooltipGroup/index.js +82 -0
  8. package/build/components/tooltipGroup/templates.js +4 -0
  9. package/build/icons/iconTypes.js +146 -145
  10. package/build/icons/index.js +148 -145
  11. package/build/icons/svgs/bandaid.js +1 -1
  12. package/build/icons/svgs/bandaidFill.js +1 -1
  13. package/build/icons/svgs/boombox.js +1 -1
  14. package/build/icons/svgs/boomboxFill.js +1 -1
  15. package/build/icons/svgs/boxes.js +1 -1
  16. package/build/icons/svgs/deviceHdd.js +1 -1
  17. package/build/icons/svgs/deviceHddFill.js +1 -1
  18. package/build/icons/svgs/deviceSsd.js +1 -1
  19. package/build/icons/svgs/deviceSsdFill.js +1 -1
  20. package/build/icons/svgs/displayport.js +1 -1
  21. package/build/icons/svgs/displayportFill.js +1 -1
  22. package/build/icons/svgs/dpad.js +1 -1
  23. package/build/icons/svgs/dpadFill.js +1 -1
  24. package/build/icons/svgs/ear.js +1 -1
  25. package/build/icons/svgs/earFill.js +1 -1
  26. package/build/icons/svgs/envelope.js +1 -1
  27. package/build/icons/svgs/envelopeCheck.js +1 -1
  28. package/build/icons/svgs/envelopeCheckFill.js +1 -1
  29. package/build/icons/svgs/envelopeDash.js +1 -1
  30. package/build/icons/svgs/envelopeDashFill.js +1 -1
  31. package/build/icons/svgs/envelopeExclamation.js +1 -1
  32. package/build/icons/svgs/envelopeExclamationFill.js +1 -1
  33. package/build/icons/svgs/envelopeOpen.js +1 -1
  34. package/build/icons/svgs/envelopePlus.js +1 -1
  35. package/build/icons/svgs/envelopePlusFill.js +1 -1
  36. package/build/icons/svgs/envelopeSlash.js +1 -1
  37. package/build/icons/svgs/envelopeSlashFill.js +1 -1
  38. package/build/icons/svgs/envelopeX.js +1 -1
  39. package/build/icons/svgs/envelopeXFill.js +1 -1
  40. package/build/icons/svgs/ethernet.js +1 -1
  41. package/build/icons/svgs/explicit.js +1 -1
  42. package/build/icons/svgs/explicitFill.js +1 -1
  43. package/build/icons/svgs/gpuCard.js +1 -1
  44. package/build/icons/svgs/hdmi.js +1 -1
  45. package/build/icons/svgs/hdmiFill.js +1 -1
  46. package/build/icons/svgs/index.d.ts +2 -0
  47. package/build/icons/svgs/index.js +1 -0
  48. package/build/icons/svgs/infinity.js +1 -1
  49. package/build/icons/svgs/line.js +1 -1
  50. package/build/icons/svgs/memory.js +1 -1
  51. package/build/icons/svgs/modem.js +1 -1
  52. package/build/icons/svgs/modemFill.js +1 -1
  53. package/build/icons/svgs/mortarboard.js +1 -1
  54. package/build/icons/svgs/mortarboardFill.js +1 -1
  55. package/build/icons/svgs/motherboard.js +1 -1
  56. package/build/icons/svgs/motherboardFill.js +1 -1
  57. package/build/icons/svgs/nintendoSwitch.js +1 -1
  58. package/build/icons/svgs/opticalAudio.js +1 -1
  59. package/build/icons/svgs/opticalAudioFill.js +1 -1
  60. package/build/icons/svgs/paypal.js +1 -1
  61. package/build/icons/svgs/pc.js +1 -1
  62. package/build/icons/svgs/pcDisplay.js +1 -1
  63. package/build/icons/svgs/pcDisplayHorizontal.js +1 -1
  64. package/build/icons/svgs/pcHorizontal.js +1 -1
  65. package/build/icons/svgs/pciCard.js +1 -1
  66. package/build/icons/svgs/playstation.js +1 -1
  67. package/build/icons/svgs/plusSlashMinus.js +1 -1
  68. package/build/icons/svgs/projectorFill.js +1 -1
  69. package/build/icons/svgs/qrCode.js +1 -1
  70. package/build/icons/svgs/qrCodeScan.js +1 -1
  71. package/build/icons/svgs/robot.js +1 -1
  72. package/build/icons/svgs/router.js +1 -1
  73. package/build/icons/svgs/routerFill.js +1 -1
  74. package/build/icons/svgs/sdCardFill.js +1 -1
  75. package/build/icons/svgs/send.js +1 -1
  76. package/build/icons/svgs/sendCheck.js +1 -1
  77. package/build/icons/svgs/sendCheckFill.js +1 -1
  78. package/build/icons/svgs/sendDash.js +1 -1
  79. package/build/icons/svgs/sendDashFill.js +1 -1
  80. package/build/icons/svgs/sendExclamation.js +1 -1
  81. package/build/icons/svgs/sendExclamationFill.js +1 -1
  82. package/build/icons/svgs/sendFill.js +1 -1
  83. package/build/icons/svgs/sendPlus.js +1 -1
  84. package/build/icons/svgs/sendPlusFill.js +1 -1
  85. package/build/icons/svgs/sendSlash.js +1 -1
  86. package/build/icons/svgs/sendSlashFill.js +1 -1
  87. package/build/icons/svgs/sendX.js +1 -1
  88. package/build/icons/svgs/sendXFill.js +1 -1
  89. package/build/icons/svgs/steam.js +1 -1
  90. package/build/icons/svgs/terminalDash.js +1 -1
  91. package/build/icons/svgs/terminalPlus.js +1 -1
  92. package/build/icons/svgs/terminalSplit.js +1 -1
  93. package/build/icons/svgs/terminalX.js +8 -0
  94. package/build/icons/svgs/thunderbolt.js +1 -1
  95. package/build/icons/svgs/thunderboltFill.js +1 -1
  96. package/build/icons/svgs/ticket.js +1 -1
  97. package/build/icons/svgs/ticketDetailed.js +1 -1
  98. package/build/icons/svgs/ticketDetailedFill.js +1 -1
  99. package/build/icons/svgs/ticketFill.js +1 -1
  100. package/build/icons/svgs/ticketPerferated.js +1 -1
  101. package/build/icons/svgs/ticketPerferatedFill.js +1 -1
  102. package/build/icons/svgs/tiktok.js +1 -1
  103. package/build/icons/svgs/usb.js +1 -1
  104. package/build/icons/svgs/usbC.js +1 -1
  105. package/build/icons/svgs/usbCFill.js +1 -1
  106. package/build/icons/svgs/usbDrive.js +1 -1
  107. package/build/icons/svgs/usbDriveFill.js +1 -1
  108. package/build/icons/svgs/usbFill.js +1 -1
  109. package/build/icons/svgs/usbMicro.js +1 -1
  110. package/build/icons/svgs/usbMicroFill.js +1 -1
  111. package/build/icons/svgs/usbMini.js +1 -1
  112. package/build/icons/svgs/usbMiniFill.js +1 -1
  113. package/build/icons/svgs/usbPlug.js +1 -1
  114. package/build/icons/svgs/usbPlugFill.js +1 -1
  115. package/build/icons/svgs/usbSymbol.js +1 -1
  116. package/build/icons/svgs/webcam.js +1 -1
  117. package/build/icons/svgs/webcamFill.js +1 -1
  118. package/build/icons/svgs/windowDash.js +1 -1
  119. package/build/icons/svgs/windowDesktop.js +1 -1
  120. package/build/icons/svgs/windowDock.js +1 -1
  121. package/build/icons/svgs/windowFullscreen.js +1 -1
  122. package/build/icons/svgs/windowPlus.js +1 -1
  123. package/build/icons/svgs/windowStack.js +1 -1
  124. package/build/icons/svgs/windowX.js +1 -1
  125. package/dist/gd-bs-icons.js +183 -150
  126. package/dist/gd-bs-icons.min.js +1 -1
  127. package/dist/gd-bs.d.ts +69 -0
  128. package/dist/gd-bs.js +28 -6
  129. package/dist/gd-bs.min.js +1 -1
  130. package/package.json +6 -6
  131. package/pnpm-lock.yaml +135 -128
  132. package/src/bs.scss +149 -24
  133. package/src/components/components.d.ts +2 -1
  134. package/src/components/dropdown/index.ts +40 -1
  135. package/src/components/index.ts +2 -1
  136. package/src/components/navbar/templates.ts +1 -1
  137. package/src/components/popover/index.ts +32 -31
  138. package/src/components/popover/types.d.ts +5 -0
  139. package/src/components/tooltip/index.ts +36 -35
  140. package/src/components/tooltip/types.d.ts +5 -0
  141. package/src/components/tooltipGroup/index.ts +75 -0
  142. package/src/components/tooltipGroup/templates.ts +1 -0
  143. package/src/components/tooltipGroup/types.d.ts +75 -0
  144. package/src/icons/iconTypes.ts +146 -145
  145. package/src/icons/index.d.ts +2 -0
  146. package/src/icons/index.ts +148 -145
  147. package/src/icons/svgs/bandaid.ts +1 -1
  148. package/src/icons/svgs/bandaidFill.ts +1 -1
  149. package/src/icons/svgs/boombox.ts +4 -1
  150. package/src/icons/svgs/boomboxFill.ts +2 -1
  151. package/src/icons/svgs/boxes.ts +1 -1
  152. package/src/icons/svgs/deviceHdd.ts +3 -1
  153. package/src/icons/svgs/deviceHddFill.ts +2 -1
  154. package/src/icons/svgs/deviceSsd.ts +2 -1
  155. package/src/icons/svgs/deviceSsdFill.ts +2 -1
  156. package/src/icons/svgs/displayport.ts +2 -1
  157. package/src/icons/svgs/displayportFill.ts +1 -1
  158. package/src/icons/svgs/dpad.ts +2 -1
  159. package/src/icons/svgs/dpadFill.ts +1 -1
  160. package/src/icons/svgs/ear.ts +1 -1
  161. package/src/icons/svgs/earFill.ts +1 -1
  162. package/src/icons/svgs/envelope.ts +1 -1
  163. package/src/icons/svgs/envelopeCheck.ts +2 -1
  164. package/src/icons/svgs/envelopeCheckFill.ts +2 -1
  165. package/src/icons/svgs/envelopeDash.ts +2 -1
  166. package/src/icons/svgs/envelopeDashFill.ts +2 -1
  167. package/src/icons/svgs/envelopeExclamation.ts +2 -1
  168. package/src/icons/svgs/envelopeExclamationFill.ts +2 -1
  169. package/src/icons/svgs/envelopeOpen.ts +1 -1
  170. package/src/icons/svgs/envelopePlus.ts +2 -1
  171. package/src/icons/svgs/envelopePlusFill.ts +2 -2
  172. package/src/icons/svgs/envelopeSlash.ts +2 -1
  173. package/src/icons/svgs/envelopeSlashFill.ts +2 -1
  174. package/src/icons/svgs/envelopeX.ts +2 -1
  175. package/src/icons/svgs/envelopeXFill.ts +2 -1
  176. package/src/icons/svgs/ethernet.ts +2 -1
  177. package/src/icons/svgs/explicit.ts +2 -1
  178. package/src/icons/svgs/explicitFill.ts +1 -1
  179. package/src/icons/svgs/gpuCard.ts +3 -1
  180. package/src/icons/svgs/hdmi.ts +2 -1
  181. package/src/icons/svgs/hdmiFill.ts +1 -1
  182. package/src/icons/svgs/index.d.ts +2 -0
  183. package/src/icons/svgs/index.ts +1 -0
  184. package/src/icons/svgs/infinity.ts +1 -1
  185. package/src/icons/svgs/line.ts +1 -1
  186. package/src/icons/svgs/memory.ts +1 -1
  187. package/src/icons/svgs/modem.ts +1 -1
  188. package/src/icons/svgs/modemFill.ts +1 -1
  189. package/src/icons/svgs/mortarboard.ts +2 -1
  190. package/src/icons/svgs/mortarboardFill.ts +2 -2
  191. package/src/icons/svgs/motherboard.ts +2 -1
  192. package/src/icons/svgs/motherboardFill.ts +2 -1
  193. package/src/icons/svgs/nintendoSwitch.ts +2 -1
  194. package/src/icons/svgs/opticalAudio.ts +3 -1
  195. package/src/icons/svgs/opticalAudioFill.ts +2 -1
  196. package/src/icons/svgs/paypal.ts +1 -1
  197. package/src/icons/svgs/pc.ts +1 -1
  198. package/src/icons/svgs/pcDisplay.ts +1 -1
  199. package/src/icons/svgs/pcDisplayHorizontal.ts +1 -1
  200. package/src/icons/svgs/pcHorizontal.ts +1 -1
  201. package/src/icons/svgs/pciCard.ts +2 -1
  202. package/src/icons/svgs/playstation.ts +1 -1
  203. package/src/icons/svgs/plusSlashMinus.ts +1 -1
  204. package/src/icons/svgs/projectorFill.ts +1 -1
  205. package/src/icons/svgs/qrCode.ts +5 -1
  206. package/src/icons/svgs/qrCodeScan.ts +5 -1
  207. package/src/icons/svgs/robot.ts +2 -1
  208. package/src/icons/svgs/router.ts +4 -1
  209. package/src/icons/svgs/routerFill.ts +4 -1
  210. package/src/icons/svgs/sdCardFill.ts +1 -1
  211. package/src/icons/svgs/send.ts +1 -1
  212. package/src/icons/svgs/sendCheck.ts +2 -1
  213. package/src/icons/svgs/sendCheckFill.ts +2 -1
  214. package/src/icons/svgs/sendDash.ts +2 -1
  215. package/src/icons/svgs/sendDashFill.ts +2 -1
  216. package/src/icons/svgs/sendExclamation.ts +2 -1
  217. package/src/icons/svgs/sendExclamationFill.ts +2 -1
  218. package/src/icons/svgs/sendFill.ts +1 -1
  219. package/src/icons/svgs/sendPlus.ts +2 -1
  220. package/src/icons/svgs/sendPlusFill.ts +2 -1
  221. package/src/icons/svgs/sendSlash.ts +2 -1
  222. package/src/icons/svgs/sendSlashFill.ts +2 -1
  223. package/src/icons/svgs/sendX.ts +2 -1
  224. package/src/icons/svgs/sendXFill.ts +2 -1
  225. package/src/icons/svgs/steam.ts +2 -1
  226. package/src/icons/svgs/terminalDash.ts +2 -1
  227. package/src/icons/svgs/terminalPlus.ts +2 -1
  228. package/src/icons/svgs/terminalSplit.ts +2 -1
  229. package/src/icons/svgs/terminalX.d.ts +1 -0
  230. package/src/icons/svgs/terminalX.ts +7 -0
  231. package/src/icons/svgs/thunderbolt.ts +2 -1
  232. package/src/icons/svgs/thunderboltFill.ts +1 -1
  233. package/src/icons/svgs/ticket.ts +1 -1
  234. package/src/icons/svgs/ticketDetailed.ts +2 -1
  235. package/src/icons/svgs/ticketDetailedFill.ts +1 -1
  236. package/src/icons/svgs/ticketFill.ts +1 -1
  237. package/src/icons/svgs/ticketPerferated.ts +2 -1
  238. package/src/icons/svgs/ticketPerferatedFill.ts +1 -1
  239. package/src/icons/svgs/tiktok.ts +1 -1
  240. package/src/icons/svgs/usb.ts +2 -1
  241. package/src/icons/svgs/usbC.ts +2 -1
  242. package/src/icons/svgs/usbCFill.ts +1 -1
  243. package/src/icons/svgs/usbDrive.ts +1 -1
  244. package/src/icons/svgs/usbDriveFill.ts +1 -1
  245. package/src/icons/svgs/usbFill.ts +1 -1
  246. package/src/icons/svgs/usbMicro.ts +2 -1
  247. package/src/icons/svgs/usbMicroFill.ts +1 -1
  248. package/src/icons/svgs/usbMini.ts +2 -1
  249. package/src/icons/svgs/usbMiniFill.ts +1 -1
  250. package/src/icons/svgs/usbPlug.ts +1 -1
  251. package/src/icons/svgs/usbPlugFill.ts +1 -1
  252. package/src/icons/svgs/usbSymbol.ts +1 -1
  253. package/src/icons/svgs/webcam.ts +2 -3
  254. package/src/icons/svgs/webcamFill.ts +2 -3
  255. package/src/icons/svgs/windowDash.ts +3 -1
  256. package/src/icons/svgs/windowDesktop.ts +2 -1
  257. package/src/icons/svgs/windowDock.ts +2 -2
  258. package/src/icons/svgs/windowFullscreen.ts +2 -1
  259. package/src/icons/svgs/windowPlus.ts +3 -1
  260. package/src/icons/svgs/windowStack.ts +2 -1
  261. package/src/icons/svgs/windowX.ts +3 -1
package/src/bs.scss CHANGED
@@ -112,10 +112,18 @@
112
112
  margin: 0rem 0rem 0rem auto;
113
113
  padding: 1rem;
114
114
  }
115
+ /* Fix for TippyJS Placement */
116
+ .popover-body>* {
117
+ position: relative !important;
118
+ }
115
119
  /* Auto size the toast width */
116
120
  .toast {
117
121
  width: auto;
118
122
  }
123
+ /* Fix for TippyJS Placement */
124
+ .tooltip-body>* {
125
+ position: relative !important;
126
+ }
119
127
  /* Center the dataTables_info element properly */
120
128
  div.dataTables_wrapper div.dataTables_info {
121
129
  padding-top: 0.9rem;
@@ -226,30 +234,18 @@ table.dataTable thead .sorting_desc {
226
234
  background-color: #0078d4;
227
235
  }
228
236
 
229
-
230
- /* Tippy Tooltip primary theme color */
231
-
232
237
  .tippy-box[data-theme~='primary'][data-placement^='top']>.tippy-arrow::before {
233
238
  border-top-color: #0078d4;
234
239
  }
235
240
 
236
-
237
- /* Tippy Tooltip primary theme color */
238
-
239
241
  .tippy-box[data-theme~='primary'][data-placement^='bottom']>.tippy-arrow::before {
240
242
  border-bottom-color: #0078d4;
241
243
  }
242
244
 
243
-
244
- /* Tippy Tooltip primary theme color */
245
-
246
245
  .tippy-box[data-theme~='primary'][data-placement^='left']>.tippy-arrow::before {
247
246
  border-left-color: #0078d4;
248
247
  }
249
248
 
250
-
251
- /* Tippy Tooltip primary theme color */
252
-
253
249
  .tippy-box[data-theme~='primary'][data-placement^='right']>.tippy-arrow::before {
254
250
  border-right-color: #0078d4;
255
251
  }
@@ -261,30 +257,159 @@ table.dataTable thead .sorting_desc {
261
257
  background-color: #6c757d;
262
258
  }
263
259
 
264
-
265
- /* Tippy Tooltip secondary theme color */
266
-
267
260
  .tippy-box[data-theme~='secondary'][data-placement^='top']>.tippy-arrow::before {
268
261
  border-top-color: #6c757d;
269
262
  }
270
263
 
271
-
272
- /* Tippy Tooltip secondary theme color */
273
-
274
264
  .tippy-box[data-theme~='secondary'][data-placement^='bottom']>.tippy-arrow::before {
275
265
  border-bottom-color: #6c757d;
276
266
  }
277
267
 
278
-
279
- /* Tippy Tooltip secondary theme color */
280
-
281
268
  .tippy-box[data-theme~='secondary'][data-placement^='left']>.tippy-arrow::before {
282
269
  border-left-color: #6c757d;
283
270
  }
284
271
 
285
-
286
- /* Tippy Tooltip secondary theme color */
287
-
288
272
  .tippy-box[data-theme~='secondary'][data-placement^='right']>.tippy-arrow::before {
289
273
  border-right-color: #6c757d;
274
+ }
275
+
276
+
277
+ /* Tippy Tooltip success theme color */
278
+
279
+ .tippy-box[data-theme~='success'] {
280
+ background-color: #198754;
281
+ }
282
+
283
+ .tippy-box[data-theme~='success'][data-placement^='top']>.tippy-arrow::before {
284
+ border-top-color: #198754;
285
+ }
286
+
287
+ .tippy-box[data-theme~='success'][data-placement^='bottom']>.tippy-arrow::before {
288
+ border-bottom-color: #198754;
289
+ }
290
+
291
+ .tippy-box[data-theme~='success'][data-placement^='left']>.tippy-arrow::before {
292
+ border-left-color: #198754;
293
+ }
294
+
295
+ .tippy-box[data-theme~='success'][data-placement^='right']>.tippy-arrow::before {
296
+ border-right-color: #198754;
297
+ }
298
+
299
+
300
+ /* Tippy Tooltip info theme color */
301
+
302
+ .tippy-box[data-theme~='info'] {
303
+ background-color: #0dcaf0;
304
+ color: #000;
305
+ }
306
+
307
+ .tippy-box[data-theme~='info'][data-placement^='top']>.tippy-arrow::before {
308
+ border-top-color: #0dcaf0;
309
+ }
310
+
311
+ .tippy-box[data-theme~='info'][data-placement^='bottom']>.tippy-arrow::before {
312
+ border-bottom-color: #0dcaf0;
313
+ }
314
+
315
+ .tippy-box[data-theme~='info'][data-placement^='left']>.tippy-arrow::before {
316
+ border-left-color: #0dcaf0;
317
+ }
318
+
319
+ .tippy-box[data-theme~='info'][data-placement^='right']>.tippy-arrow::before {
320
+ border-right-color: #0dcaf0;
321
+ }
322
+
323
+
324
+ /* Tippy Tooltip warning theme color */
325
+
326
+ .tippy-box[data-theme~='warning'] {
327
+ background-color: #ffc107;
328
+ color: #000;
329
+ }
330
+
331
+ .tippy-box[data-theme~='warning'][data-placement^='top']>.tippy-arrow::before {
332
+ border-top-color: #ffc107;
333
+ }
334
+
335
+ .tippy-box[data-theme~='warning'][data-placement^='bottom']>.tippy-arrow::before {
336
+ border-bottom-color: #ffc107;
337
+ }
338
+
339
+ .tippy-box[data-theme~='warning'][data-placement^='left']>.tippy-arrow::before {
340
+ border-left-color: #ffc107;
341
+ }
342
+
343
+ .tippy-box[data-theme~='warning'][data-placement^='right']>.tippy-arrow::before {
344
+ border-right-color: #ffc107;
345
+ }
346
+
347
+
348
+ /* Tippy Tooltip danger theme color */
349
+
350
+ .tippy-box[data-theme~='danger'] {
351
+ background-color: #dc3545;
352
+ }
353
+
354
+ .tippy-box[data-theme~='danger'][data-placement^='top']>.tippy-arrow::before {
355
+ border-top-color: #dc3545;
356
+ }
357
+
358
+ .tippy-box[data-theme~='danger'][data-placement^='bottom']>.tippy-arrow::before {
359
+ border-bottom-color: #dc3545;
360
+ }
361
+
362
+ .tippy-box[data-theme~='danger'][data-placement^='left']>.tippy-arrow::before {
363
+ border-left-color: #dc3545;
364
+ }
365
+
366
+ .tippy-box[data-theme~='danger'][data-placement^='right']>.tippy-arrow::before {
367
+ border-right-color: #dc3545;
368
+ }
369
+
370
+
371
+ /* Tippy Tooltip light theme color - override Tippy default to match Bootstrap */
372
+
373
+ .tippy-box[data-theme~='light'] {
374
+ background-color: #f8f9fa !important;
375
+ color: #000 !important;
376
+ }
377
+
378
+ .tippy-box[data-theme~='light'][data-placement^='top']>.tippy-arrow::before {
379
+ border-top-color: #f8f9fa !important;
380
+ }
381
+
382
+ .tippy-box[data-theme~='light'][data-placement^='bottom']>.tippy-arrow::before {
383
+ border-bottom-color: #f8f9fa !important;
384
+ }
385
+
386
+ .tippy-box[data-theme~='light'][data-placement^='left']>.tippy-arrow::before {
387
+ border-left-color: #f8f9fa !important;
388
+ }
389
+
390
+ .tippy-box[data-theme~='light'][data-placement^='right']>.tippy-arrow::before {
391
+ border-right-color: #f8f9fa !important;
392
+ }
393
+
394
+
395
+ /* Tippy Tooltip dark theme color */
396
+
397
+ .tippy-box[data-theme~='dark'] {
398
+ background-color: #212529;
399
+ }
400
+
401
+ .tippy-box[data-theme~='dark'][data-placement^='top']>.tippy-arrow::before {
402
+ border-top-color: #212529;
403
+ }
404
+
405
+ .tippy-box[data-theme~='dark'][data-placement^='bottom']>.tippy-arrow::before {
406
+ border-bottom-color: #212529;
407
+ }
408
+
409
+ .tippy-box[data-theme~='dark'][data-placement^='left']>.tippy-arrow::before {
410
+ border-left-color: #212529;
411
+ }
412
+
413
+ .tippy-box[data-theme~='dark'][data-placement^='right']>.tippy-arrow::before {
414
+ border-right-color: #212529;
290
415
  }
@@ -28,4 +28,5 @@ export * from "./spinner/types";
28
28
  export * from "./table/types";
29
29
  export * from "./toast/types";
30
30
  export * from "./toolbar/types";
31
- export * from "./tooltip/types";
31
+ export * from "./tooltip/types";
32
+ export * from "./tooltipGroup/types";
@@ -207,11 +207,50 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
207
207
  // Get the toggle
208
208
  let toggle = this.el.querySelector(".dropdown-toggle") as HTMLElement;
209
209
  if (toggle && this._elMenu) {
210
+ // Set the type, based on the current dropdown type
211
+ let popoverType = PopoverTypes.Light;
212
+ switch (this.props.type) {
213
+ case DropdownTypes.Danger:
214
+ case DropdownTypes.OutlineDanger:
215
+ popoverType = PopoverTypes.Danger;
216
+ break;
217
+ case DropdownTypes.Dark:
218
+ case DropdownTypes.OutlineDark:
219
+ popoverType = PopoverTypes.Dark;
220
+ break;
221
+ case DropdownTypes.Info:
222
+ case DropdownTypes.OutlineInfo:
223
+ popoverType = PopoverTypes.Info;
224
+ break;
225
+ case DropdownTypes.Light:
226
+ case DropdownTypes.OutlineLight:
227
+ case DropdownTypes.Link:
228
+ case DropdownTypes.OutlineLink:
229
+ popoverType = PopoverTypes.Light;
230
+ break;
231
+ case DropdownTypes.Primary:
232
+ case DropdownTypes.OutlinePrimary:
233
+ popoverType = PopoverTypes.Primary;
234
+ break;
235
+ case DropdownTypes.Secondary:
236
+ case DropdownTypes.OutlineSecondary:
237
+ popoverType = PopoverTypes.Secondary;
238
+ break;
239
+ case DropdownTypes.Success:
240
+ case DropdownTypes.OutlineSuccess:
241
+ popoverType = PopoverTypes.Success;
242
+ break;
243
+ case DropdownTypes.Warning:
244
+ case DropdownTypes.OutlineWarning:
245
+ popoverType = PopoverTypes.Warning;
246
+ break;
247
+ }
248
+
210
249
  // Create the props
211
250
  let props: IPopoverProps = {
212
251
  target: toggle,
213
252
  placement: PopoverPlacements.LeftEnd,
214
- type: PopoverTypes.Light,
253
+ type: popoverType,
215
254
  options: {
216
255
  arrow: false,
217
256
  trigger: "click",
@@ -27,4 +27,5 @@ export * from "./spinner";
27
27
  export * from "./table";
28
28
  export * from "./toast";
29
29
  export * from "./toolbar";
30
- export * from "./tooltip";
30
+ export * from "./tooltip";
31
+ export * from "./tooltipGroup";
@@ -12,7 +12,7 @@ export const HTML = `
12
12
  <ul class="navbar-nav ms-auto mb-2 mb-lg-0"></ul>
13
13
  </div>
14
14
  <form class="d-flex mb-2 mb-lg-0">
15
- <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search" />
15
+ <input class="form-control lh-1 me-1" type="search" placeholder="Search" aria-label="Search" />
16
16
  <button class="btn" type="submit">Search</button>
17
17
  </form>
18
18
  </div>
@@ -10,12 +10,17 @@ import { appendContent } from "../common";
10
10
  * Popover Types
11
11
  */
12
12
  export enum PopoverTypes {
13
- Light = 1,
14
- LightBorder = 2,
15
- Material = 3,
16
- Primary = 4,
17
- Secondary = 5,
18
- Translucent = 6
13
+ Danger = 1,
14
+ Dark = 2,
15
+ Info = 3,
16
+ Light = 4,
17
+ LightBorder = 5,
18
+ Material = 6,
19
+ Primary = 7,
20
+ Secondary = 8,
21
+ Success = 9,
22
+ Translucent = 10,
23
+ Warning = 11
19
24
  }
20
25
 
21
26
  /**
@@ -60,7 +65,6 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
60
65
  // Configure the card group
61
66
  private configure() {
62
67
  // Set the placements
63
- let fallbackPlacements = null;
64
68
  let placement = null;
65
69
  switch (this.props.placement) {
66
70
  // Auto
@@ -75,59 +79,46 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
75
79
  break;
76
80
  // Bottom
77
81
  case PopoverPlacements.Bottom:
78
- fallbackPlacements = ["top"];
79
82
  placement = "bottom";
80
83
  break;
81
84
  case PopoverPlacements.BottomEnd:
82
- fallbackPlacements = ["top", "right"];
83
85
  placement = "bottom-end";
84
86
  break;
85
87
  case PopoverPlacements.BottomStart:
86
- fallbackPlacements = ["top", "left"];
87
88
  placement = "bottom-start";
88
89
  break;
89
90
  // Left
90
91
  case PopoverPlacements.Left:
91
- fallbackPlacements = ["right"];
92
92
  placement = "left";
93
93
  break;
94
94
  case PopoverPlacements.LeftEnd:
95
- fallbackPlacements = ["right"];
96
95
  placement = "left-end";
97
96
  break;
98
97
  case PopoverPlacements.LeftStart:
99
- fallbackPlacements = ["right"];
100
98
  placement = "left-start";
101
99
  break;
102
100
  // Right
103
101
  case PopoverPlacements.Right:
104
- fallbackPlacements = ["left"];
105
102
  placement = "right";
106
103
  break;
107
104
  case PopoverPlacements.RightEnd:
108
- fallbackPlacements = ["left"];
109
105
  placement = "right-end";
110
106
  break;
111
107
  case PopoverPlacements.RightStart:
112
- fallbackPlacements = ["left"];
113
108
  placement = "right-start";
114
109
  break;
115
110
  // Top
116
111
  case PopoverPlacements.Top:
117
- fallbackPlacements = ["bottom"];
118
112
  placement = "top";
119
113
  break;
120
114
  case PopoverPlacements.TopEnd:
121
- fallbackPlacements = ["bottom", "right"];
122
115
  placement = "top-end";
123
116
  break;
124
117
  case PopoverPlacements.TopStart:
125
- fallbackPlacements = ["bottom", "left"];
126
118
  placement = "top-start";
127
119
  break;
128
120
  // Default - Auto
129
121
  default:
130
- fallbackPlacements = ["bottom"];
131
122
  placement = "top";
132
123
  break;
133
124
  }
@@ -135,6 +126,18 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
135
126
  // Set the theme
136
127
  let theme = null;
137
128
  switch (this.props.type) {
129
+ // Dark
130
+ case PopoverTypes.Dark:
131
+ theme = "dark";
132
+ break;
133
+ // Danger
134
+ case PopoverTypes.Danger:
135
+ theme = "danger";
136
+ break;
137
+ // Info
138
+ case PopoverTypes.Info:
139
+ theme = "info";
140
+ break;
138
141
  // Light
139
142
  case PopoverTypes.Light:
140
143
  theme = "light";
@@ -154,10 +157,18 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
154
157
  case PopoverTypes.Secondary:
155
158
  theme = "secondary";
156
159
  break;
160
+ // Success
161
+ case PopoverTypes.Success:
162
+ theme = "success";
163
+ break;
157
164
  // Translucent
158
165
  case PopoverTypes.Translucent:
159
166
  theme = "translucent";
160
167
  break;
168
+ // Warning
169
+ case PopoverTypes.Warning:
170
+ theme = "warning";
171
+ break;
161
172
  // Default - Light Border
162
173
  default:
163
174
  theme = "light-border";
@@ -175,17 +186,7 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
175
186
  interactive: true,
176
187
  placement,
177
188
  plugins: [animateFill, followCursor, inlinePositioning, sticky],
178
- theme,
179
- popperOptions: fallbackPlacements ? {
180
- modifiers: [
181
- {
182
- name: "flip",
183
- options: {
184
- fallbackPlacements
185
- }
186
- }
187
- ]
188
- } : null
189
+ theme
189
190
  },
190
191
  ...this.props.options
191
192
  };
@@ -106,12 +106,17 @@ export interface IPopoverProps extends IBaseProps<IPopover> {
106
106
  * Popover Types
107
107
  */
108
108
  export type IPopoverTypes = {
109
+ Danger: number;
110
+ Dark: number;
111
+ Info: number;
109
112
  Light: number;
110
113
  LightBorder: number;
111
114
  Material: number;
112
115
  Primary: number;
113
116
  Secondary: number;
117
+ Success: number;
114
118
  Translucent: number;
119
+ Warning: number;
115
120
  }
116
121
 
117
122
  /**
@@ -11,12 +11,17 @@ import { appendContent } from "../common";
11
11
  * Tooltip Types
12
12
  */
13
13
  export enum TooltipTypes {
14
- Light = 1,
15
- LightBorder = 2,
16
- Material = 3,
17
- Primary = 4,
18
- Secondary = 5,
19
- Translucent = 6
14
+ Danger = 1,
15
+ Dark = 2,
16
+ Info = 3,
17
+ Light = 4,
18
+ LightBorder = 5,
19
+ Material = 6,
20
+ Primary = 7,
21
+ Secondary = 8,
22
+ Success = 9,
23
+ Translucent = 10,
24
+ Warning = 11
20
25
  }
21
26
 
22
27
  /**
@@ -81,7 +86,6 @@ class _Tooltip extends Base<ITooltipProps> {
81
86
  // Configure the options
82
87
  private configureOptions() {
83
88
  // Set the placements
84
- let fallbackPlacements = null;
85
89
  let placement = null;
86
90
  switch (this.props.placement) {
87
91
  // Auto
@@ -96,59 +100,46 @@ class _Tooltip extends Base<ITooltipProps> {
96
100
  break;
97
101
  // Bottom
98
102
  case TooltipPlacements.Bottom:
99
- fallbackPlacements = ["top"];
100
103
  placement = "bottom";
101
104
  break;
102
105
  case TooltipPlacements.BottomEnd:
103
- fallbackPlacements = ["top", "right"];
104
106
  placement = "bottom-end";
105
107
  break;
106
108
  case TooltipPlacements.BottomStart:
107
- fallbackPlacements = ["top", "left"];
108
109
  placement = "bottom-start";
109
110
  break;
110
111
  // Left
111
112
  case TooltipPlacements.Left:
112
- fallbackPlacements = ["right"];
113
113
  placement = "left";
114
114
  break;
115
115
  case TooltipPlacements.LeftEnd:
116
- fallbackPlacements = ["right"];
117
116
  placement = "left-end";
118
117
  break;
119
118
  case TooltipPlacements.LeftStart:
120
- fallbackPlacements = ["right"];
121
119
  placement = "left-start";
122
120
  break;
123
121
  // Right
124
122
  case TooltipPlacements.Right:
125
- fallbackPlacements = ["left"];
126
123
  placement = "right";
127
124
  break;
128
125
  case TooltipPlacements.RightEnd:
129
- fallbackPlacements = ["left"];
130
126
  placement = "right-end";
131
127
  break;
132
128
  case TooltipPlacements.RightStart:
133
- fallbackPlacements = ["left"];
134
129
  placement = "right-start";
135
130
  break;
136
131
  // Top
137
132
  case TooltipPlacements.Top:
138
- fallbackPlacements = ["bottom"];
139
133
  placement = "top";
140
134
  break;
141
135
  case TooltipPlacements.TopEnd:
142
- fallbackPlacements = ["bottom", "right"];
143
136
  placement = "top-end";
144
137
  break;
145
138
  case TooltipPlacements.TopStart:
146
- fallbackPlacements = ["bottom", "left"];
147
139
  placement = "top-start";
148
140
  break;
149
141
  // Default - Auto
150
142
  default:
151
- fallbackPlacements = ["bottom"];
152
143
  placement = "top";
153
144
  break;
154
145
  }
@@ -156,6 +147,18 @@ class _Tooltip extends Base<ITooltipProps> {
156
147
  // Set the theme
157
148
  let theme = null;
158
149
  switch (this.props.type) {
150
+ // Dark
151
+ case TooltipTypes.Dark:
152
+ theme = "dark";
153
+ break;
154
+ // Danger
155
+ case TooltipTypes.Danger:
156
+ theme = "danger";
157
+ break;
158
+ // Info
159
+ case TooltipTypes.Info:
160
+ theme = "info";
161
+ break;
159
162
  // Light
160
163
  case TooltipTypes.Light:
161
164
  theme = "light";
@@ -175,10 +178,18 @@ class _Tooltip extends Base<ITooltipProps> {
175
178
  case TooltipTypes.Secondary:
176
179
  theme = "secondary";
177
180
  break;
181
+ // Success
182
+ case TooltipTypes.Success:
183
+ theme = "success";
184
+ break;
178
185
  // Translucent
179
186
  case TooltipTypes.Translucent:
180
187
  theme = "translucent";
181
188
  break;
189
+ // Warning
190
+ case TooltipTypes.Warning:
191
+ theme = "warning";
192
+ break;
182
193
  // Default - Secondary
183
194
  default:
184
195
  theme = "secondary";
@@ -197,22 +208,12 @@ class _Tooltip extends Base<ITooltipProps> {
197
208
  interactive: false,
198
209
  placement,
199
210
  plugins: [animateFill, followCursor, inlinePositioning, sticky],
200
- theme,
201
- popperOptions: fallbackPlacements ? {
202
- modifiers: [
203
- {
204
- name: "flip",
205
- options: {
206
- fallbackPlacements
207
- }
208
- }
209
- ]
210
- } : null
211
+ theme
211
212
  },
212
213
  ...this.props.options
213
214
  };
214
215
 
215
- // Create the popover content element
216
+ // Create the tooltip content element
216
217
  this._elContent = document.createElement("div") as HTMLElement;
217
218
  this._elContent.classList.add("tooltip-content");
218
219
  appendContent(this._elContent, options.content as any);
@@ -263,19 +264,19 @@ class _Tooltip extends Base<ITooltipProps> {
263
264
  this._btn ? this._btn.enable() : null;
264
265
  }
265
266
 
266
- // Hides the popover
267
+ // Hides the tooltip
267
268
  hide() {
268
269
  // See if it's visible
269
270
  if (this.isVisible) { this._tippy.hide(); }
270
271
  }
271
272
 
272
- // Determines if the popover is visible
273
+ // Determines if the tooltip is visible
273
274
  get isVisible(): boolean { return this._tippy.state.isVisible; }
274
275
 
275
276
  // The tippy instance
276
277
  get tippy() { return this._tippy; }
277
278
 
278
- // Shows the popover
279
+ // Shows the tooltip
279
280
  show() {
280
281
  // See if it's hidden
281
282
  if (!this.isVisible) { this._tippy.show(); }
@@ -97,12 +97,17 @@ export interface ITooltipProps extends IBaseProps<ITooltip> {
97
97
  * Tooltip Types
98
98
  */
99
99
  export type ITooltipTypes = {
100
+ Danger: number;
101
+ Dark: number;
102
+ Info: number;
100
103
  Light: number;
101
104
  LightBorder: number;
102
105
  Material: number;
103
106
  Primary: number;
104
107
  Secondary: number;
108
+ Success: number;
105
109
  Translucent: number;
110
+ Warning: number;
106
111
  }
107
112
 
108
113
  /**