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.
Files changed (126) hide show
  1. package/.browserslistrc +5 -5
  2. package/LICENSE +0 -0
  3. package/README.md +46 -89
  4. package/dist/css/modus-bootstrap-grid.css +684 -185
  5. package/dist/css/modus-bootstrap-grid.css.map +1 -1
  6. package/dist/css/modus-bootstrap-grid.min.css +2 -2
  7. package/dist/css/modus-bootstrap-grid.min.css.map +1 -1
  8. package/dist/css/modus-bootstrap-reboot.css +15 -6
  9. package/dist/css/modus-bootstrap-reboot.css.map +1 -1
  10. package/dist/css/modus-bootstrap-reboot.min.css +2 -2
  11. package/dist/css/modus-bootstrap-reboot.min.css.map +1 -1
  12. package/dist/css/modus-bootstrap-utilities.css +63 -56
  13. package/dist/css/modus-bootstrap-utilities.css.map +1 -1
  14. package/dist/css/modus-bootstrap-utilities.min.css +2 -2
  15. package/dist/css/modus-bootstrap-utilities.min.css.map +1 -1
  16. package/dist/css/modus-bootstrap.css +2355 -1176
  17. package/dist/css/modus-bootstrap.css.map +1 -1
  18. package/dist/css/modus-bootstrap.min.css +1 -1
  19. package/dist/css/modus-bootstrap.min.css.map +1 -1
  20. package/package.json +40 -38
  21. package/scss/_accordion.scss +12 -5
  22. package/scss/_alert.scss +11 -3
  23. package/scss/_avatar.scss +12 -0
  24. package/scss/_badge.scss +0 -0
  25. package/scss/_banner.scss +1 -1
  26. package/scss/_breadcrumb.scss +8 -1
  27. package/scss/_card.scss +5 -0
  28. package/scss/_carousel.scss +0 -0
  29. package/scss/_chip.scss +14 -9
  30. package/scss/_colors.scss +0 -0
  31. package/scss/_config.scss +1 -0
  32. package/scss/_dialog.scss +45 -13
  33. package/scss/_drawer.scss +56 -42
  34. package/scss/_functions.scss +0 -0
  35. package/scss/_list-group.scss +0 -0
  36. package/scss/_menu.scss +96 -15
  37. package/scss/_nav-overflow.scss +0 -0
  38. package/scss/_nav.scss +6 -0
  39. package/scss/_navbar.scss +2 -7
  40. package/scss/_pagination.scss +1 -1
  41. package/scss/_placeholder.scss +0 -0
  42. package/scss/_popover.scss +31 -0
  43. package/scss/_progress.scss +15 -2
  44. package/scss/_root-modus.scss +5 -2
  45. package/scss/_root.scss +6 -7
  46. package/scss/_spinner.scss +6 -0
  47. package/scss/_stepper.scss +7 -1
  48. package/scss/_theme.scss +0 -0
  49. package/scss/_toasts.scss +0 -0
  50. package/scss/_tooltip.scss +37 -0
  51. package/scss/_transitions.scss +14 -8
  52. package/scss/_utilities.scss +18 -9
  53. package/scss/bootstrap.scss +0 -1
  54. package/scss/buttons/_button-group.scss +0 -0
  55. package/scss/buttons/_button.scss +8 -4
  56. package/scss/buttons/_close.scss +12 -4
  57. package/scss/buttons/index.scss +0 -0
  58. package/scss/content/_blockquote.scss +0 -0
  59. package/scss/content/_images.scss +0 -0
  60. package/scss/content/_lists.scss +1 -1
  61. package/scss/content/_prose.scss +16 -7
  62. package/scss/content/_reboot.scss +16 -2
  63. package/scss/content/_tables.scss +1 -4
  64. package/scss/content/index.scss +0 -0
  65. package/scss/forms/_check.scss +24 -13
  66. package/scss/forms/{_chip-input.scss → _combobox-control.scss} +28 -16
  67. package/scss/forms/_combobox.scss +35 -6
  68. package/scss/{_datepicker.scss → forms/_datepicker.scss} +157 -59
  69. package/scss/forms/_floating-labels.scss +22 -0
  70. package/scss/forms/_form-adorn.scss +15 -1
  71. package/scss/forms/_form-control.scss +1 -1
  72. package/scss/forms/_form-field.scss +2 -1
  73. package/scss/forms/_form-range.scss +45 -7
  74. package/scss/forms/_form-text.scss +0 -2
  75. package/scss/forms/_input-group.scss +0 -0
  76. package/scss/forms/_labels.scss +3 -0
  77. package/scss/forms/_otp-input.scss +68 -13
  78. package/scss/forms/_radio.scss +6 -0
  79. package/scss/forms/_strength.scss +16 -1
  80. package/scss/forms/_switch.scss +11 -2
  81. package/scss/forms/_validation.scss +31 -7
  82. package/scss/forms/index.scss +2 -1
  83. package/scss/helpers/_file-drop-zone.scss +0 -0
  84. package/scss/helpers/_focus-ring.scss +0 -0
  85. package/scss/helpers/_hover-lift.scss +2 -1
  86. package/scss/helpers/_icon-link.scss +0 -0
  87. package/scss/helpers/_position.scss +0 -0
  88. package/scss/helpers/_stacks.scss +0 -0
  89. package/scss/helpers/_stretched-link.scss +0 -0
  90. package/scss/helpers/_text-truncation.scss +0 -0
  91. package/scss/helpers/_theme-colors.scss +0 -0
  92. package/scss/helpers/_visually-hidden.scss +0 -0
  93. package/scss/helpers/_vr.scss +7 -0
  94. package/scss/helpers/index.scss +0 -0
  95. package/scss/layout/_breakpoints.scss +0 -0
  96. package/scss/layout/_containers.scss +0 -0
  97. package/scss/layout/_grid.scss +0 -2
  98. package/scss/layout/index.scss +0 -0
  99. package/scss/mixins/_backdrop.scss +0 -0
  100. package/scss/mixins/_border-radius.scss +0 -0
  101. package/scss/mixins/_box-shadow.scss +0 -0
  102. package/scss/mixins/_color-mode.scss +0 -0
  103. package/scss/mixins/_color-scheme.scss +0 -0
  104. package/scss/mixins/_deprecate.scss +0 -0
  105. package/scss/mixins/_dialog-shared.scss +0 -0
  106. package/scss/mixins/_focus-ring.scss +0 -0
  107. package/scss/mixins/_forced-colors.scss +14 -0
  108. package/scss/mixins/_form-validation.scss +0 -0
  109. package/scss/mixins/_gradients.scss +0 -0
  110. package/scss/mixins/_grid.scss +24 -18
  111. package/scss/mixins/_image.scss +0 -0
  112. package/scss/mixins/_lists.scss +0 -0
  113. package/scss/mixins/_mask-icon.scss +0 -0
  114. package/scss/mixins/_reset-text.scss +0 -0
  115. package/scss/mixins/_resize.scss +0 -0
  116. package/scss/mixins/_text-truncate.scss +0 -0
  117. package/scss/mixins/_tokens.scss +0 -0
  118. package/scss/mixins/_transition.scss +0 -0
  119. package/scss/mixins/_utilities.scss +0 -0
  120. package/scss/mixins/_visually-hidden.scss +1 -1
  121. package/scss/mixins/index.scss +1 -0
  122. package/scss/modus-bootstrap-grid.scss +0 -0
  123. package/scss/modus-bootstrap-reboot.scss +0 -0
  124. package/scss/modus-bootstrap-utilities.scss +0 -0
  125. package/scss/modus-bootstrap.scss +0 -1
  126. 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 >= 130
19
- Edge >= 130
20
- Firefox >= 132
21
- iOS >= 18.7
22
- Safari >= 18.7
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
- ## Bootstrap 6
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
- 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.
5
+ [![npm version](https://img.shields.io/npm/v/modus-bootstrap?logo=npm&logoColor=fff)](https://www.npmjs.com/package/modus-bootstrap)
6
+ [![npm downloads](https://img.shields.io/npm/dm/modus-bootstrap?logo=npm&logoColor=fff)](https://www.npmjs.com/package/modus-bootstrap)
7
+ [![jsDelivr hits for the minified CSS](https://data.jsdelivr.com/v1/package/npm/modus-bootstrap/badge?style=rounded)](https://www.jsdelivr.com/package/npm/modus-bootstrap?path=dist/css)
8
+ [![Super-Linter](https://github.com/modus-bootstrap/modus-bootstrap/actions/workflows/super-linter.yml/badge.svg?branch=main)](https://github.com/modus-bootstrap/modus-bootstrap/actions/workflows/super-linter.yml)
9
+ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/modus-bootstrap/modus-bootstrap/badge)](https://scorecard.dev/viewer/?uri=github.com/modus-bootstrap/modus-bootstrap)
10
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
6
11
 
7
- ## Quick start
12
+ > [!NOTE]
13
+ > Modus Bootstrap is in alpha. Expect breaking changes before the stable release.
8
14
 
9
- Several quick start options are available:
15
+ ## Quick start
10
16
 
11
- - [Download the latest source](https://github.com/modus-bootstrap/modus-bootstrap/archive/refs/heads/main.zip)
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
- Read the [Getting started page](https://modus-bootstrap.com/getting-started/introduction/) for information on the framework contents, templates, examples, and more.
23
+ Or load the compiled CSS from the CDN:
18
24
 
19
- ## Status
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
- [![npm version](https://img.shields.io/npm/v/modus-bootstrap?logo=npm&logoColor=fff)](https://www.npmjs.com/package/modus-bootstrap)
22
- [![CSS gzip size](https://img.badgesize.io/modus-bootstrap/modus-bootstrap/main/dist/css/modus-bootstrap.min.css?compression=gzip&label=CSS%20gzip%20size)](https://github.com/modus-bootstrap/modus-bootstrap/blob/main/dist/css/modus-bootstrap.min.css)
23
- [![CSS Brotli size](https://img.badgesize.io/modus-bootstrap/modus-bootstrap/main/dist/css/modus-bootstrap.min.css?compression=brotli&label=CSS%20Brotli%20size)](https://github.com/modus-bootstrap/modus-bootstrap/blob/main/dist/css/modus-bootstrap.min.css)
24
- ![Open Source Security Foundation Scorecard](https://img.shields.io/ossf-scorecard/github.com/modus-bootstrap/modus-bootstrap)
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
- Within the download you’ll find the following directories and files, logically grouping common assets and providing both compiled and minified variations.
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
- ## Bugs and feature requests
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
- Have a bug or a feature request? Please first read the [issue guidelines](https://github.com/modus-bootstrap/modus-bootstrap/blob/main/.github/CONTRIBUTING.md#using-the-issue-tracker) and search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/modus-bootstrap/modus-bootstrap/issues/new/choose).
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
- ## Documentation
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
- Documentation search is powered by [Pagefind](https://pagefind.app/).
51
+ [DESIGN.md](DESIGN.md) lists the Modus visual rules: colors, typography, spacing, shapes, and components.
75
52
 
76
- ### Running documentation locally
53
+ ## Documentation
77
54
 
78
- 1. Run `npm install` to install the Node.js dependencies, including Astro (the site builder).
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
- Learn more about using Astro by reading its [documentation](https://docs.astro.build/en/getting-started/).
57
+ To run the docs locally:
84
58
 
85
- ### Documentation for previous releases
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
- You can find all our previous releases docs on <https://getbootstrap.com/docs/versions/>.
64
+ ## Bugs and feature requests
88
65
 
89
- [Previous releases](https://github.com/modus-bootstrap/modus-bootstrap/releases) and their documentation are also available for download.
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
- Please read through our [contributing guidelines](https://github.com/modus-bootstrap/modus-bootstrap/blob/main/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
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
- For transparency into our release cycle and in striving to maintain backward compatibility, Bootstrap is maintained under [the Semantic Versioning guidelines](https://semver.org/). Sometimes we screw up, but we adhere to those rules whenever possible.
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
- 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/modus-bootstrap/modus-bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
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/).