modus-bootstrap 6.0.0-alpha.1 → 6.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +5 -5
- package/LICENSE +0 -0
- package/README.md +46 -89
- package/dist/css/modus-bootstrap-grid.css +684 -185
- package/dist/css/modus-bootstrap-grid.css.map +1 -1
- package/dist/css/modus-bootstrap-grid.min.css +2 -2
- package/dist/css/modus-bootstrap-grid.min.css.map +1 -1
- package/dist/css/modus-bootstrap-reboot.css +15 -6
- package/dist/css/modus-bootstrap-reboot.css.map +1 -1
- package/dist/css/modus-bootstrap-reboot.min.css +2 -2
- package/dist/css/modus-bootstrap-reboot.min.css.map +1 -1
- package/dist/css/modus-bootstrap-utilities.css +63 -56
- package/dist/css/modus-bootstrap-utilities.css.map +1 -1
- package/dist/css/modus-bootstrap-utilities.min.css +2 -2
- package/dist/css/modus-bootstrap-utilities.min.css.map +1 -1
- package/dist/css/modus-bootstrap.css +2355 -1176
- package/dist/css/modus-bootstrap.css.map +1 -1
- package/dist/css/modus-bootstrap.min.css +1 -1
- package/dist/css/modus-bootstrap.min.css.map +1 -1
- package/package.json +40 -38
- package/scss/_accordion.scss +12 -5
- package/scss/_alert.scss +11 -3
- package/scss/_avatar.scss +12 -0
- package/scss/_badge.scss +0 -0
- package/scss/_banner.scss +1 -1
- package/scss/_breadcrumb.scss +8 -1
- package/scss/_card.scss +5 -0
- package/scss/_carousel.scss +0 -0
- package/scss/_chip.scss +14 -9
- package/scss/_colors.scss +0 -0
- package/scss/_config.scss +1 -0
- package/scss/_dialog.scss +45 -13
- package/scss/_drawer.scss +56 -42
- package/scss/_functions.scss +0 -0
- package/scss/_list-group.scss +0 -0
- package/scss/_menu.scss +96 -15
- package/scss/_nav-overflow.scss +0 -0
- package/scss/_nav.scss +6 -0
- package/scss/_navbar.scss +2 -7
- package/scss/_pagination.scss +1 -1
- package/scss/_placeholder.scss +0 -0
- package/scss/_popover.scss +31 -0
- package/scss/_progress.scss +15 -2
- package/scss/_root-modus.scss +5 -2
- package/scss/_root.scss +6 -7
- package/scss/_spinner.scss +6 -0
- package/scss/_stepper.scss +7 -1
- package/scss/_theme.scss +0 -0
- package/scss/_toasts.scss +0 -0
- package/scss/_tooltip.scss +37 -0
- package/scss/_transitions.scss +14 -8
- package/scss/_utilities.scss +18 -9
- package/scss/bootstrap.scss +0 -1
- package/scss/buttons/_button-group.scss +0 -0
- package/scss/buttons/_button.scss +8 -4
- package/scss/buttons/_close.scss +12 -4
- package/scss/buttons/index.scss +0 -0
- package/scss/content/_blockquote.scss +0 -0
- package/scss/content/_images.scss +0 -0
- package/scss/content/_lists.scss +1 -1
- package/scss/content/_prose.scss +16 -7
- package/scss/content/_reboot.scss +16 -2
- package/scss/content/_tables.scss +1 -4
- package/scss/content/index.scss +0 -0
- package/scss/forms/_check.scss +24 -13
- package/scss/forms/{_chip-input.scss → _combobox-control.scss} +28 -16
- package/scss/forms/_combobox.scss +35 -6
- package/scss/{_datepicker.scss → forms/_datepicker.scss} +157 -59
- package/scss/forms/_floating-labels.scss +22 -0
- package/scss/forms/_form-adorn.scss +15 -1
- package/scss/forms/_form-control.scss +1 -1
- package/scss/forms/_form-field.scss +2 -1
- package/scss/forms/_form-range.scss +45 -7
- package/scss/forms/_form-text.scss +0 -2
- package/scss/forms/_input-group.scss +0 -0
- package/scss/forms/_labels.scss +3 -0
- package/scss/forms/_otp-input.scss +68 -13
- package/scss/forms/_radio.scss +6 -0
- package/scss/forms/_strength.scss +16 -1
- package/scss/forms/_switch.scss +11 -2
- package/scss/forms/_validation.scss +31 -7
- package/scss/forms/index.scss +2 -1
- package/scss/helpers/_file-drop-zone.scss +0 -0
- package/scss/helpers/_focus-ring.scss +0 -0
- package/scss/helpers/_hover-lift.scss +2 -1
- package/scss/helpers/_icon-link.scss +0 -0
- package/scss/helpers/_position.scss +0 -0
- package/scss/helpers/_stacks.scss +0 -0
- package/scss/helpers/_stretched-link.scss +0 -0
- package/scss/helpers/_text-truncation.scss +0 -0
- package/scss/helpers/_theme-colors.scss +0 -0
- package/scss/helpers/_visually-hidden.scss +0 -0
- package/scss/helpers/_vr.scss +7 -0
- package/scss/helpers/index.scss +0 -0
- package/scss/layout/_breakpoints.scss +0 -0
- package/scss/layout/_containers.scss +0 -0
- package/scss/layout/_grid.scss +0 -2
- package/scss/layout/index.scss +0 -0
- package/scss/mixins/_backdrop.scss +0 -0
- package/scss/mixins/_border-radius.scss +0 -0
- package/scss/mixins/_box-shadow.scss +0 -0
- package/scss/mixins/_color-mode.scss +0 -0
- package/scss/mixins/_color-scheme.scss +0 -0
- package/scss/mixins/_deprecate.scss +0 -0
- package/scss/mixins/_dialog-shared.scss +0 -0
- package/scss/mixins/_focus-ring.scss +0 -0
- package/scss/mixins/_forced-colors.scss +14 -0
- package/scss/mixins/_form-validation.scss +0 -0
- package/scss/mixins/_gradients.scss +0 -0
- package/scss/mixins/_grid.scss +24 -18
- package/scss/mixins/_image.scss +0 -0
- package/scss/mixins/_lists.scss +0 -0
- package/scss/mixins/_mask-icon.scss +0 -0
- package/scss/mixins/_reset-text.scss +0 -0
- package/scss/mixins/_resize.scss +0 -0
- package/scss/mixins/_text-truncate.scss +0 -0
- package/scss/mixins/_tokens.scss +0 -0
- package/scss/mixins/_transition.scss +0 -0
- package/scss/mixins/_utilities.scss +0 -0
- package/scss/mixins/_visually-hidden.scss +1 -1
- package/scss/mixins/index.scss +1 -0
- package/scss/modus-bootstrap-grid.scss +0 -0
- package/scss/modus-bootstrap-reboot.scss +0 -0
- package/scss/modus-bootstrap-utilities.scss +0 -0
- package/scss/modus-bootstrap.scss +0 -1
- package/scss/utilities/_api.scss +0 -0
package/.browserslistrc
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
last 2 major versions
|
|
16
16
|
not dead
|
|
17
17
|
|
|
18
|
-
Chrome >=
|
|
19
|
-
Edge >=
|
|
20
|
-
Firefox >=
|
|
21
|
-
iOS >= 18.
|
|
22
|
-
Safari >= 18.
|
|
18
|
+
Chrome >= 138
|
|
19
|
+
Edge >= 138
|
|
20
|
+
Firefox >= 147
|
|
21
|
+
iOS >= 18.5
|
|
22
|
+
Safari >= 18.5
|
|
23
23
|
|
|
24
24
|
not and_uc > 0
|
|
25
25
|
not and_qq > 0
|
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -1,121 +1,78 @@
|
|
|
1
1
|
# Modus Bootstrap
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Modus Bootstrap is [Bootstrap v6](https://getbootstrap.com/) themed to the Trimble Modus design system. It gives you Bootstrap’s grid, components, and utilities with Modus colors, typography, spacing, and component styles.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/modus-bootstrap)
|
|
6
|
+
[](https://www.npmjs.com/package/modus-bootstrap)
|
|
7
|
+
[](https://www.jsdelivr.com/package/npm/modus-bootstrap?path=dist/css)
|
|
8
|
+
[](https://github.com/modus-bootstrap/modus-bootstrap/actions/workflows/super-linter.yml)
|
|
9
|
+
[](https://scorecard.dev/viewer/?uri=github.com/modus-bootstrap/modus-bootstrap)
|
|
10
|
+
[](LICENSE)
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
> [!NOTE]
|
|
13
|
+
> Modus Bootstrap is in alpha. Expect breaking changes before the stable release.
|
|
8
14
|
|
|
9
|
-
|
|
15
|
+
## Quick start
|
|
10
16
|
|
|
11
|
-
-
|
|
17
|
+
- Install with npm: `npm install modus-bootstrap@6.0.0-alpha.2`
|
|
18
|
+
- Install with pnpm: `pnpm add modus-bootstrap@6.0.0-alpha.2`
|
|
19
|
+
- Install with Yarn: `yarn add modus-bootstrap@6.0.0-alpha.2`
|
|
20
|
+
- Install with Bun: `bun add modus-bootstrap@6.0.0-alpha.2`
|
|
12
21
|
- Clone the repo: `git clone https://github.com/modus-bootstrap/modus-bootstrap.git`
|
|
13
|
-
- Install with [npm](https://www.npmjs.com/): `npm install modus-bootstrap@6.0.0-alpha.1`
|
|
14
|
-
- Install with [yarn](https://yarnpkg.com/): `yarn add modus-bootstrap@6.0.0-alpha.1`
|
|
15
|
-
- Install with [Bun](https://bun.sh/): `bun add modus-bootstrap@6.0.0-alpha.1`
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
Or load the compiled CSS from the CDN:
|
|
18
24
|
|
|
19
|
-
|
|
25
|
+
```html
|
|
26
|
+
<link href="https://cdn.jsdelivr.net/npm/modus-bootstrap@6.0.0-alpha.2/dist/css/modus-bootstrap.min.css" rel="stylesheet">
|
|
27
|
+
```
|
|
20
28
|
|
|
21
|
-
[
|
|
22
|
-
[](https://github.com/modus-bootstrap/modus-bootstrap/blob/main/dist/css/modus-bootstrap.min.css)
|
|
23
|
-
[](https://github.com/modus-bootstrap/modus-bootstrap/blob/main/dist/css/modus-bootstrap.min.css)
|
|
24
|
-

|
|
29
|
+
Read the [install guide](https://modus-bootstrap.com/getting-started/install/) for CDN, JavaScript, and Sass setup.
|
|
25
30
|
|
|
26
31
|
## What’s included
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<details>
|
|
31
|
-
<summary>Download contents</summary>
|
|
32
|
-
|
|
33
|
-
```text
|
|
34
|
-
bootstrap/
|
|
35
|
-
├── css/
|
|
36
|
-
│ ├── modus-bootstrap-grid.css
|
|
37
|
-
│ ├── modus-bootstrap-grid.css.map
|
|
38
|
-
│ ├── modus-bootstrap-grid.min.css
|
|
39
|
-
│ ├── modus-bootstrap-grid.min.css.map
|
|
40
|
-
│ ├── modus-bootstrap-reboot.css
|
|
41
|
-
│ ├── modus-bootstrap-reboot.css.map
|
|
42
|
-
│ ├── modus-bootstrap-reboot.min.css
|
|
43
|
-
│ ├── modus-bootstrap-reboot.min.css.map
|
|
44
|
-
│ ├── modus-bootstrap-utilities.css
|
|
45
|
-
│ ├── modus-bootstrap-utilities.css.map
|
|
46
|
-
│ ├── modus-bootstrap-utilities.min.css
|
|
47
|
-
│ ├── modus-bootstrap-utilities.min.css.map
|
|
48
|
-
│ ├── modus-bootstrap.css
|
|
49
|
-
│ ├── modus-bootstrap.css.map
|
|
50
|
-
│ ├── modus-bootstrap.min.css
|
|
51
|
-
│ └── modus-bootstrap.min.css.map
|
|
52
|
-
└── js/
|
|
53
|
-
├── bootstrap.bundle.js
|
|
54
|
-
├── bootstrap.bundle.js.map
|
|
55
|
-
├── bootstrap.bundle.min.js
|
|
56
|
-
├── bootstrap.bundle.min.js.map
|
|
57
|
-
├── bootstrap.js
|
|
58
|
-
├── bootstrap.js.map
|
|
59
|
-
├── bootstrap.min.js
|
|
60
|
-
└── bootstrap.min.js.map
|
|
61
|
-
```
|
|
62
|
-
</details>
|
|
63
|
-
|
|
64
|
-
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.
|
|
33
|
+
The npm package contains the CSS and the Sass source:
|
|
65
34
|
|
|
66
|
-
|
|
35
|
+
```text
|
|
36
|
+
modus-bootstrap/
|
|
37
|
+
├── dist/css/
|
|
38
|
+
│ ├── modus-bootstrap.css # Full framework
|
|
39
|
+
│ ├── modus-bootstrap-grid.css # Grid only
|
|
40
|
+
│ ├── modus-bootstrap-reboot.css # Reboot only
|
|
41
|
+
│ ├── modus-bootstrap-utilities.css # Utilities only
|
|
42
|
+
│ └── *.min.css, *.map # Minified files and source maps
|
|
43
|
+
├── scss/ # Sass source
|
|
44
|
+
└── .browserslistrc
|
|
45
|
+
```
|
|
67
46
|
|
|
68
|
-
|
|
47
|
+
Modus Bootstrap does not change Bootstrap’s JavaScript. Use the Bootstrap v6 JavaScript files with the Modus Bootstrap CSS. The install guide shows the CDN links. All CSS files support LTR and RTL layouts. Set `dir="rtl"` on the `<html>` element for RTL.
|
|
69
48
|
|
|
70
|
-
##
|
|
71
|
-
|
|
72
|
-
Bootstrap’s documentation, included in this repo in the root directory, is built with [Astro](https://astro.build/) and publicly hosted at <https://modus-bootstrap.com/>. The docs may also be run locally.
|
|
49
|
+
## Design rules
|
|
73
50
|
|
|
74
|
-
|
|
51
|
+
[DESIGN.md](DESIGN.md) lists the Modus visual rules: colors, typography, spacing, shapes, and components.
|
|
75
52
|
|
|
76
|
-
|
|
53
|
+
## Documentation
|
|
77
54
|
|
|
78
|
-
|
|
79
|
-
2. Run `npm run test` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
|
|
80
|
-
3. From the root `/modus-bootstrap` directory, run `npm run docs-serve` in the command line.
|
|
81
|
-
4. Open <http://localhost:9001> in your browser, and voilà.
|
|
55
|
+
The docs are at <https://modus-bootstrap.com/>. The docs source is in `site/`. The site uses [Astro](https://astro.build/). [Pagefind](https://pagefind.app/) powers the search.
|
|
82
56
|
|
|
83
|
-
|
|
57
|
+
To run the docs locally:
|
|
84
58
|
|
|
85
|
-
|
|
59
|
+
1. Run `npm install` to install the dependencies.
|
|
60
|
+
2. Run `npm run dist` to build the CSS and JavaScript.
|
|
61
|
+
3. Run `npm start` to watch the source files and start the docs server.
|
|
62
|
+
4. Open <http://localhost:9001> in your browser.
|
|
86
63
|
|
|
87
|
-
|
|
64
|
+
## Bugs and feature requests
|
|
88
65
|
|
|
89
|
-
[
|
|
66
|
+
Search the [existing issues](https://github.com/modus-bootstrap/modus-bootstrap/issues) first. If your issue is new, [open an issue](https://github.com/modus-bootstrap/modus-bootstrap/issues/new/choose).
|
|
90
67
|
|
|
91
68
|
## Contributing
|
|
92
69
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
Moreover, if your pull request contains JavaScript patches or features, you must include [relevant unit tests](https://github.com/modus-bootstrap/modus-bootstrap/tree/main/js/tests). All HTML and CSS should conform to the [Code Guide](https://github.com/mdo/code-guide), maintained by [Mark Otto](https://github.com/mdo).
|
|
96
|
-
|
|
97
|
-
Editor preferences are available in the [editor config](https://github.com/modus-bootstrap/modus-bootstrap/blob/main/.editorconfig) for easy use in common text editors. Read more and download plugins at <https://editorconfig.org/>.
|
|
70
|
+
Read the [contributing guidelines](.github/CONTRIBUTING.md) before you open a pull request. If you change JavaScript, add [unit tests](js/tests). Run `npm test` to run the full test suite.
|
|
98
71
|
|
|
99
72
|
## Versioning
|
|
100
73
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
See [the Releases section of our GitHub project](https://github.com/modus-bootstrap/modus-bootstrap/releases) for changelogs for each release version of Bootstrap.
|
|
104
|
-
|
|
105
|
-
## Thanks
|
|
106
|
-
|
|
107
|
-
<a href="https://www.browserstack.com/">
|
|
108
|
-
<img src="https://live.browserstack.com/images/opensource/browserstack-logo.svg" alt="BrowserStack" width="192" height="42">
|
|
109
|
-
</a>
|
|
110
|
-
|
|
111
|
-
Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to test in real browsers!
|
|
112
|
-
|
|
113
|
-
<a href="https://www.netlify.com/">
|
|
114
|
-
<img src="https://www.netlify.com/v3/img/components/full-logo-light.svg" alt="Netlify" width="147" height="40">
|
|
115
|
-
</a>
|
|
116
|
-
|
|
117
|
-
Thanks to [Netlify](https://www.netlify.com/) for providing us with Deploy Previews!
|
|
74
|
+
Modus Bootstrap follows [Semantic Versioning](https://semver.org/). Its version matches the Bootstrap version it is based on. See the [releases](https://github.com/modus-bootstrap/modus-bootstrap/releases) for the changelog of each version.
|
|
118
75
|
|
|
119
76
|
## Copyright and license
|
|
120
77
|
|
|
121
|
-
|
|
78
|
+
Modus Bootstrap is a fork of Bootstrap. Bootstrap code and documentation copyright 2011-2026 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors). Code released under the [MIT License](LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
|