Selaa lähdekoodia

1865-export-bootstrap-js-components (#2214)

Co-authored-by: Paweł Kuna <[email protected]>
Mikołaj Sojka 6 kuukautta sitten
vanhempi
commit
2f8a37252d
3 muutettua tiedostoa jossa 35 lisäystä ja 0 poistoa
  1. 5 0
      .changeset/forty-pots-happen.md
  2. 15 0
      core/js/tabler.esm.js
  3. 15 0
      core/js/tabler.umd.js

+ 5 - 0
.changeset/forty-pots-happen.md

@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Add Bootstrap components to Tabler JS

+ 15 - 0
core/js/tabler.esm.js

@@ -9,3 +9,18 @@ import "./src/toast"
 
 
 export * as bootstrap from "bootstrap"
 export * as bootstrap from "bootstrap"
 export * as tabler from "./src/tabler"
 export * as tabler from "./src/tabler"
+
+export {
+	Alert,
+	Modal,
+	Toast,
+	Tooltip,
+	Tab,
+	Button,
+	Carousel,
+	Collapse,
+	Dropdown,
+	Popover,
+	ScrollSpy,
+	Offcanvas
+} from 'bootstrap'

+ 15 - 0
core/js/tabler.umd.js

@@ -11,5 +11,20 @@ import "./src/toast"
 import * as bootstrap from "bootstrap"
 import * as bootstrap from "bootstrap"
 import * as tabler from "./src/tabler"
 import * as tabler from "./src/tabler"
 
 
+export {
+	Alert,
+	Modal,
+	Toast,
+	Tooltip,
+	Tab,
+	Button,
+	Carousel,
+	Collapse,
+	Dropdown,
+	Popover,
+	ScrollSpy,
+	Offcanvas
+} from 'bootstrap'
+
 globalThis.bootstrap = bootstrap
 globalThis.bootstrap = bootstrap
 globalThis.tabler = tabler
 globalThis.tabler = tabler