Skip to content

Commit 71103c0

Browse files
authored
Merge branch 'v6-dev' into dev/coliff/accordion-animation
2 parents 6e1d2d3 + c5c9f26 commit 71103c0

435 files changed

Lines changed: 31433 additions & 35487 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc.js renamed to .babelrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
presets: [
33
[
44
'@babel/preset-env',

.bundlewatch.config.json

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,51 @@
22
"files": [
33
{
44
"path": "./dist/css/bootstrap-grid.css",
5-
"maxSize": "9.5 kB"
5+
"maxSize": "8.75 kB"
66
},
77
{
88
"path": "./dist/css/bootstrap-grid.min.css",
9-
"maxSize": "10.25 kB"
9+
"maxSize": "8.0 kB"
1010
},
1111
{
1212
"path": "./dist/css/bootstrap-reboot.css",
1313
"maxSize": "5.25 kB"
1414
},
1515
{
1616
"path": "./dist/css/bootstrap-reboot.min.css",
17-
"maxSize": "6.75 kB"
17+
"maxSize": "5.0 kB"
1818
},
1919
{
2020
"path": "./dist/css/bootstrap-utilities.css",
21-
"maxSize": "14.25 kB"
21+
"maxSize": "15.75 kB"
2222
},
2323
{
2424
"path": "./dist/css/bootstrap-utilities.min.css",
2525
"maxSize": "15.0 kB"
2626
},
2727
{
2828
"path": "./dist/css/bootstrap.css",
29-
"maxSize": "39.25 kB"
29+
"maxSize": "42.5 kB"
3030
},
3131
{
3232
"path": "./dist/css/bootstrap.min.css",
33-
"maxSize": "38.0 kB"
33+
"maxSize": "39.25 kB"
3434
},
3535
{
3636
"path": "./dist/js/bootstrap.bundle.js",
37-
"maxSize": "68.25 kB"
37+
"maxSize": "70.5 kB"
3838
},
3939
{
4040
"path": "./dist/js/bootstrap.bundle.min.js",
41-
"maxSize": "41.75 kB"
42-
},
43-
{
44-
"path": "./dist/js/bootstrap.esm.js",
45-
"maxSize": "38.75 kB"
46-
},
47-
{
48-
"path": "./dist/js/bootstrap.esm.min.js",
49-
"maxSize": "24.0 kB"
41+
"maxSize": "47.5 kB"
5042
},
5143
{
5244
"path": "./dist/js/bootstrap.js",
53-
"maxSize": "39.5 kB"
45+
"maxSize": "40.75 kB"
5446
},
5547
{
5648
"path": "./dist/js/bootstrap.min.js",
57-
"maxSize": "21.25 kB"
49+
"maxSize": "25.5 kB"
5850
}
5951
],
6052
"ci": {

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"mouseleave",
7474
"navbars",
7575
"navs",
76+
"navoverflow",
7677
"Neue",
7778
"noindex",
7879
"Noto",

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,19 @@
215215
"ecmaVersion": 2020
216216
}
217217
},
218+
{
219+
"files": [
220+
"site/src/assets/examples/cheatsheet/cheatsheet.js",
221+
"site/src/assets/examples/sidebars/sidebars.js"
222+
],
223+
"parserOptions": {
224+
"sourceType": "module",
225+
"ecmaVersion": 2020
226+
},
227+
"rules": {
228+
"import/no-unresolved": "off"
229+
}
230+
},
218231
{
219232
"files": [
220233
"**/*.md"

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the preferred channel for [bug reports](#bug-reports), [features requests](#feat
1818
and [submitting pull requests](#pull-requests), but please respect the following
1919
restrictions:
2020

21-
- Please **do not** use the issue tracker for personal support requests. Stack Overflow ([`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5) tag), [our GitHub Discussions](https://github.com/twbs/bootstrap/discussions) or [IRC](/README.md#community) are better places to get help.
21+
- Please **do not** use the issue tracker for personal support requests. Stack Overflow ([`bootstrap-6`](https://stackoverflow.com/questions/tagged/bootstrap-6) tag), Reddit ([`r/bootstrap` subreddit](https://www.reddit.com/r/bootstrap/)), [our GitHub Discussions](https://github.com/twbs/bootstrap/discussions), [the community Discord](https://discord.gg/bZUvakRU3M), or [IRC](/README.md#community) are better places to get help.
2222

2323
- Please **do not** derail or troll issues. Keep the discussion on topic and
2424
respect the opinions of others.
@@ -44,7 +44,7 @@ Our bug tracker utilizes several labels to help organize and identify issues. He
4444
- `css` - Issues stemming from our compiled CSS or source Sass files.
4545
- `docs` - Issues for improving or updating our documentation.
4646
- `examples` - Issues involving the example templates included in our docs.
47-
- `feature` - Issues asking for a new feature to be added, or an existing one to be extended or modified. New features require a minor version bump (e.g., `v3.0.0` to `v3.1.0`).
47+
- `feature` - Issues asking for a new feature to be added, or an existing one to be extended or modified. New features require a minor version bump (e.g., `v6.0.0` to `v6.1.0`).
4848
- `build` - Issues with our build system, which is used to run all our tests, concatenate and compile source files, and more.
4949
- `help wanted` - Issues we need or would love help from the community to resolve.
5050
- `js` - Issues stemming from our compiled or source JavaScript files.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# OS or Editor folders
1717
._*
1818
.cache
19+
.claude
1920
.DS_Store
2021
.idea
2122
.nvmrc

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2011-2025 The Bootstrap Authors
3+
Copyright (c) 2011-2026 The Bootstrap Authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://getbootstrap.com/">
3-
<img src="https://getbootstrap.com/docs/5.3/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
3+
<img src="https://getbootstrap.com/docs/6.0/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
44
</a>
55
</p>
66

@@ -9,7 +9,7 @@
99
<p align="center">
1010
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
1111
<br>
12-
<a href="https://getbootstrap.com/docs/5.3/"><strong>Explore Bootstrap docs »</strong></a>
12+
<a href="https://getbootstrap.com/docs/6.0/"><strong>Explore Bootstrap docs »</strong></a>
1313
<br>
1414
<br>
1515
<a href="https://github.com/twbs/bootstrap/issues/new?assignees=-&labels=bug&template=bug_report.yml">Report bug</a>
@@ -20,9 +20,9 @@
2020
</p>
2121

2222

23-
## Bootstrap 5
23+
## Bootstrap 6
2424

25-
Our default branch is for development of our Bootstrap 5 release. Head to the [`v4-dev` branch](https://github.com/twbs/bootstrap/tree/v4-dev) to view the readme, documentation, and source code for Bootstrap 4.
25+
Our default branch is for development of our Bootstrap 6 release. Head to the [`v5-dev` branch](https://github.com/twbs/bootstrap/tree/v5-dev) to view the readme, documentation, and source code for Bootstrap 5.
2626

2727

2828
## Table of contents
@@ -44,15 +44,15 @@ Our default branch is for development of our Bootstrap 5 release. Head to the [`
4444

4545
Several quick start options are available:
4646

47-
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.3.8.zip)
47+
- [Download the latest release](https://github.com/twbs/bootstrap/archive/v6.0.0-alpha1.zip)
4848
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
49-
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@v5.3.8`
50-
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@v5.3.8`
51-
- Install with [Bun](https://bun.sh/): `bun add bootstrap@v5.3.8`
52-
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.3.8`
49+
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@6.0.0-alpha1`
50+
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@6.0.0-alpha1`
51+
- Install with [Bun](https://bun.sh/): `bun add bootstrap@6.0.0-alpha1`
52+
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:6.0.0-alpha1`
5353
- Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
5454

55-
Read the [Getting started page](https://getbootstrap.com/docs/5.3/getting-started/) for information on the framework contents, templates, examples, and more.
55+
Read the [Getting started page](https://getbootstrap.com/docs/6.0/getting-started/) for information on the framework contents, templates, examples, and more.
5656

5757

5858
## Status
@@ -104,18 +104,14 @@ Within the download you’ll find the following directories and files, logically
104104
├── bootstrap.bundle.js.map
105105
├── bootstrap.bundle.min.js
106106
├── bootstrap.bundle.min.js.map
107-
├── bootstrap.esm.js
108-
├── bootstrap.esm.js.map
109-
├── bootstrap.esm.min.js
110-
├── bootstrap.esm.min.js.map
111107
├── bootstrap.js
112108
├── bootstrap.js.map
113109
├── bootstrap.min.js
114110
└── bootstrap.min.js.map
115111
```
116112
</details>
117113

118-
We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://web.dev/articles/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Floating UI](https://floating-ui.com/). All CSS files work for both LTR and RTL layouts thanks to logical properties—simply set `dir="rtl"` on your HTML element.
114+
We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://web.dev/articles/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Floating UI](https://floating-ui.com/) and [Vanilla Calendar Pro](https://vanilla-calendar.pro/). All CSS files work for both LTR and RTL layouts thanks to logical properties—simply set `dir="rtl"` on your HTML element.
119115

120116

121117
## Bugs and feature requests
@@ -227,4 +223,4 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
227223

228224
## Copyright and license
229225

230-
Code and documentation copyright 2011-2025 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors). Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
226+
Code and documentation copyright 2011-2026 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors). Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).

build/build-plugins.mjs

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* Script to build our plugins to use them separately.
5-
* Copyright 2020-2025 The Bootstrap Authors
5+
* Copyright 2020-2026 The Bootstrap Authors
66
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
77
*/
88

@@ -22,26 +22,15 @@ const jsFiles = await globby(`${sourcePath}/**/*.js`)
2222
// Array which holds the resolved plugins
2323
const resolvedPlugins = []
2424

25-
// Trims the "js" extension and uppercases => first letter, hyphens, backslashes & slashes
26-
const filenameToEntity = filename => filename.replace('.js', '')
27-
.replace(/(?:^|-|\/|\\)[a-z]/g, str => str.slice(-1).toUpperCase())
28-
2925
for (const file of jsFiles) {
3026
resolvedPlugins.push({
3127
src: file,
3228
dist: file.replace('src', 'dist'),
33-
fileName: path.basename(file),
34-
className: filenameToEntity(path.basename(file))
35-
// safeClassName: filenameToEntity(path.relative(sourcePath, file))
29+
fileName: path.basename(file)
3630
})
3731
}
3832

3933
const build = async plugin => {
40-
/**
41-
* @type {import('rollup').GlobalsOption}
42-
*/
43-
const globals = {}
44-
4534
const bundle = await rollup({
4635
input: plugin.src,
4736
plugins: [
@@ -52,42 +41,18 @@ const build = async plugin => {
5241
babelHelpers: 'bundled'
5342
})
5443
],
55-
external(source) {
56-
// Pattern to identify local files
57-
const pattern = /^(\.{1,2})\//
58-
59-
// It's not a local file, e.g a Node.js package
60-
if (!pattern.test(source)) {
61-
globals[source] = source
62-
return true
63-
}
64-
65-
const usedPlugin = resolvedPlugins.find(plugin => {
66-
return plugin.src.includes(source.replace(pattern, ''))
67-
})
68-
69-
if (!usedPlugin) {
70-
throw new Error(`Source ${source} is not mapped!`)
71-
}
72-
73-
// We can change `Index` with `UtilIndex` etc if we use
74-
// `safeClassName` instead of `className` everywhere
75-
globals[path.normalize(usedPlugin.src)] = usedPlugin.className
76-
return true
77-
}
44+
external: () => true
7845
})
7946

8047
await bundle.write({
8148
banner: banner(plugin.fileName),
82-
format: 'umd',
83-
name: plugin.className,
49+
format: 'esm',
8450
sourcemap: true,
85-
globals,
8651
generatedCode: 'es2015',
8752
file: plugin.dist
8853
})
8954

90-
console.log(`Built ${plugin.className}`)
55+
console.log(`Built ${plugin.fileName}`)
9156
}
9257

9358
(async () => {

build/change-version.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* Script to update version number references in the project.
5-
* Copyright 2017-2025 The Bootstrap Authors
5+
* Copyright 2017-2026 The Bootstrap Authors
66
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
77
*/
88

0 commit comments

Comments
 (0)