@iamproperty/components 3.4.7 → 3.5.0

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 (210) hide show
  1. package/assets/bootstrap/LICENSE +22 -0
  2. package/assets/bootstrap/README.md +246 -0
  3. package/assets/bootstrap/js/src/alert.js +87 -0
  4. package/assets/bootstrap/js/src/base-component.js +85 -0
  5. package/assets/bootstrap/js/src/button.js +72 -0
  6. package/assets/bootstrap/js/src/carousel.js +475 -0
  7. package/assets/bootstrap/js/src/collapse.js +302 -0
  8. package/assets/bootstrap/js/src/dom/data.js +55 -0
  9. package/assets/bootstrap/js/src/dom/event-handler.js +320 -0
  10. package/assets/bootstrap/js/src/dom/manipulator.js +71 -0
  11. package/assets/bootstrap/js/src/dom/selector-engine.js +83 -0
  12. package/assets/bootstrap/js/src/dropdown.js +454 -0
  13. package/assets/bootstrap/js/src/modal.js +377 -0
  14. package/assets/bootstrap/js/src/offcanvas.js +283 -0
  15. package/assets/bootstrap/js/src/popover.js +97 -0
  16. package/assets/bootstrap/js/src/scrollspy.js +294 -0
  17. package/assets/bootstrap/js/src/tab.js +305 -0
  18. package/assets/bootstrap/js/src/toast.js +225 -0
  19. package/assets/bootstrap/js/src/tooltip.js +633 -0
  20. package/assets/bootstrap/js/src/util/backdrop.js +149 -0
  21. package/assets/bootstrap/js/src/util/component-functions.js +34 -0
  22. package/assets/bootstrap/js/src/util/config.js +66 -0
  23. package/assets/bootstrap/js/src/util/focustrap.js +115 -0
  24. package/assets/bootstrap/js/src/util/index.js +336 -0
  25. package/assets/bootstrap/js/src/util/sanitizer.js +118 -0
  26. package/assets/bootstrap/js/src/util/scrollbar.js +114 -0
  27. package/assets/bootstrap/js/src/util/swipe.js +146 -0
  28. package/assets/bootstrap/js/src/util/template-factory.js +160 -0
  29. package/assets/bootstrap/package.json +181 -0
  30. package/assets/bootstrap/scss/_accordion.scss +149 -0
  31. package/assets/bootstrap/scss/_alert.scss +71 -0
  32. package/assets/bootstrap/scss/_badge.scss +38 -0
  33. package/assets/bootstrap/scss/_breadcrumb.scss +40 -0
  34. package/assets/bootstrap/scss/_button-group.scss +142 -0
  35. package/assets/bootstrap/scss/_buttons.scss +207 -0
  36. package/assets/bootstrap/scss/_card.scss +234 -0
  37. package/assets/bootstrap/scss/_carousel.scss +226 -0
  38. package/assets/bootstrap/scss/_close.scss +40 -0
  39. package/assets/bootstrap/scss/_containers.scss +41 -0
  40. package/assets/bootstrap/scss/_dropdown.scss +249 -0
  41. package/assets/bootstrap/scss/_forms.scss +9 -0
  42. package/assets/bootstrap/scss/_functions.scss +302 -0
  43. package/assets/bootstrap/scss/_grid.scss +33 -0
  44. package/assets/bootstrap/scss/_helpers.scss +10 -0
  45. package/assets/bootstrap/scss/_images.scss +42 -0
  46. package/assets/bootstrap/scss/_list-group.scss +192 -0
  47. package/assets/bootstrap/scss/_maps.scss +54 -0
  48. package/assets/bootstrap/scss/_mixins.scss +43 -0
  49. package/assets/bootstrap/scss/_modal.scss +237 -0
  50. package/assets/bootstrap/scss/_nav.scss +172 -0
  51. package/assets/bootstrap/scss/_navbar.scss +278 -0
  52. package/assets/bootstrap/scss/_offcanvas.scss +144 -0
  53. package/assets/bootstrap/scss/_pagination.scss +109 -0
  54. package/assets/bootstrap/scss/_placeholders.scss +51 -0
  55. package/assets/bootstrap/scss/_popover.scss +196 -0
  56. package/assets/bootstrap/scss/_progress.scss +59 -0
  57. package/assets/bootstrap/scss/_reboot.scss +610 -0
  58. package/assets/bootstrap/scss/_root.scss +73 -0
  59. package/assets/bootstrap/scss/_spinners.scss +85 -0
  60. package/assets/bootstrap/scss/_tables.scss +164 -0
  61. package/assets/bootstrap/scss/_toasts.scss +73 -0
  62. package/assets/bootstrap/scss/_tooltip.scss +120 -0
  63. package/assets/bootstrap/scss/_transitions.scss +27 -0
  64. package/assets/bootstrap/scss/_type.scss +106 -0
  65. package/assets/bootstrap/scss/_utilities.scss +647 -0
  66. package/assets/bootstrap/scss/_variables.scss +1634 -0
  67. package/assets/bootstrap/scss/bootstrap-grid.scss +64 -0
  68. package/assets/bootstrap/scss/bootstrap-reboot.scss +9 -0
  69. package/assets/bootstrap/scss/bootstrap-utilities.scss +18 -0
  70. package/assets/bootstrap/scss/bootstrap.scss +51 -0
  71. package/assets/bootstrap/scss/forms/_floating-labels.scss +75 -0
  72. package/assets/bootstrap/scss/forms/_form-check.scss +175 -0
  73. package/assets/bootstrap/scss/forms/_form-control.scss +194 -0
  74. package/assets/bootstrap/scss/forms/_form-range.scss +91 -0
  75. package/assets/bootstrap/scss/forms/_form-select.scss +71 -0
  76. package/assets/bootstrap/scss/forms/_form-text.scss +11 -0
  77. package/assets/bootstrap/scss/forms/_input-group.scss +132 -0
  78. package/assets/bootstrap/scss/forms/_labels.scss +36 -0
  79. package/assets/bootstrap/scss/forms/_validation.scss +12 -0
  80. package/assets/bootstrap/scss/helpers/_clearfix.scss +3 -0
  81. package/assets/bootstrap/scss/helpers/_color-bg.scss +10 -0
  82. package/assets/bootstrap/scss/helpers/_colored-links.scss +12 -0
  83. package/assets/bootstrap/scss/helpers/_position.scss +36 -0
  84. package/assets/bootstrap/scss/helpers/_ratio.scss +26 -0
  85. package/assets/bootstrap/scss/helpers/_stacks.scss +15 -0
  86. package/assets/bootstrap/scss/helpers/_stretched-link.scss +15 -0
  87. package/assets/bootstrap/scss/helpers/_text-truncation.scss +7 -0
  88. package/assets/bootstrap/scss/helpers/_visually-hidden.scss +8 -0
  89. package/assets/bootstrap/scss/helpers/_vr.scss +8 -0
  90. package/assets/bootstrap/scss/mixins/_alert.scss +15 -0
  91. package/assets/bootstrap/scss/mixins/_backdrop.scss +14 -0
  92. package/assets/bootstrap/scss/mixins/_banner.scss +9 -0
  93. package/assets/bootstrap/scss/mixins/_border-radius.scss +78 -0
  94. package/assets/bootstrap/scss/mixins/_box-shadow.scss +18 -0
  95. package/assets/bootstrap/scss/mixins/_breakpoints.scss +127 -0
  96. package/assets/bootstrap/scss/mixins/_buttons.scss +70 -0
  97. package/assets/bootstrap/scss/mixins/_caret.scss +64 -0
  98. package/assets/bootstrap/scss/mixins/_clearfix.scss +9 -0
  99. package/assets/bootstrap/scss/mixins/_color-scheme.scss +7 -0
  100. package/assets/bootstrap/scss/mixins/_container.scss +11 -0
  101. package/assets/bootstrap/scss/mixins/_deprecate.scss +10 -0
  102. package/assets/bootstrap/scss/mixins/_forms.scss +152 -0
  103. package/assets/bootstrap/scss/mixins/_gradients.scss +47 -0
  104. package/assets/bootstrap/scss/mixins/_grid.scss +151 -0
  105. package/assets/bootstrap/scss/mixins/_image.scss +16 -0
  106. package/assets/bootstrap/scss/mixins/_list-group.scss +24 -0
  107. package/assets/bootstrap/scss/mixins/_lists.scss +7 -0
  108. package/assets/bootstrap/scss/mixins/_pagination.scss +10 -0
  109. package/assets/bootstrap/scss/mixins/_reset-text.scss +17 -0
  110. package/assets/bootstrap/scss/mixins/_resize.scss +6 -0
  111. package/assets/bootstrap/scss/mixins/_table-variants.scss +24 -0
  112. package/assets/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  113. package/assets/bootstrap/scss/mixins/_transition.scss +26 -0
  114. package/assets/bootstrap/scss/mixins/_utilities.scss +97 -0
  115. package/assets/bootstrap/scss/mixins/_visually-hidden.scss +29 -0
  116. package/assets/bootstrap/scss/utilities/_api.scss +47 -0
  117. package/assets/bootstrap/scss/vendor/_rfs.scss +354 -0
  118. package/assets/css/components/accordion.css +1 -1
  119. package/assets/css/components/accordion.css.map +1 -1
  120. package/assets/css/components/admin-panel.css +1 -0
  121. package/assets/css/components/admin-panel.css.map +1 -0
  122. package/assets/css/components/alert.css +1 -1
  123. package/assets/css/components/alert.css.map +1 -1
  124. package/assets/css/components/carousel.css +1 -1
  125. package/assets/css/components/carousel.css.map +1 -1
  126. package/assets/css/components/charts.css +1 -1
  127. package/assets/css/components/charts.css.map +1 -1
  128. package/assets/css/components/container.css.map +1 -1
  129. package/assets/css/components/dialog.css +1 -1
  130. package/assets/css/components/dialog.css.map +1 -1
  131. package/assets/css/components/forms.css.map +1 -1
  132. package/assets/css/components/header.css +1 -1
  133. package/assets/css/components/header.css.map +1 -1
  134. package/assets/css/components/lists.css +1 -1
  135. package/assets/css/components/lists.css.map +1 -1
  136. package/assets/css/components/nav.css +1 -1
  137. package/assets/css/components/nav.css.map +1 -1
  138. package/assets/css/components/pagination.css.map +1 -1
  139. package/assets/css/components/property-searchbar.css +1 -1
  140. package/assets/css/components/property-searchbar.css.map +1 -1
  141. package/assets/css/components/stepper.css +1 -1
  142. package/assets/css/components/stepper.css.map +1 -1
  143. package/assets/css/components/table.css +1 -1
  144. package/assets/css/components/table.css.map +1 -1
  145. package/assets/css/components/tabs.css +1 -1
  146. package/assets/css/components/tabs.css.map +1 -1
  147. package/assets/css/components/tooltips.css +1 -1
  148. package/assets/css/components/tooltips.css.map +1 -1
  149. package/assets/css/core.min.css +1 -1
  150. package/assets/css/core.min.css.map +1 -1
  151. package/assets/css/style.min.css +1 -1
  152. package/assets/css/style.min.css.map +1 -1
  153. package/assets/js/components/accordion/accordion.component.min.js +1 -1
  154. package/assets/js/components/card/card.component.min.js +1 -1
  155. package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
  156. package/assets/js/components/header/header.component.min.js +5 -5
  157. package/assets/js/components/table/table.component.js +4 -0
  158. package/assets/js/components/table/table.component.min.js +5 -5
  159. package/assets/js/components/table/table.component.min.js.map +1 -1
  160. package/assets/js/components/tabs/tabs.component.min.js +5 -5
  161. package/assets/js/dynamic.min.js +2 -2
  162. package/assets/js/dynamic.min.js.map +1 -1
  163. package/assets/js/modules/helpers.js +31 -6
  164. package/assets/js/modules/table.js +4 -5
  165. package/assets/js/scripts.bundle.js +31 -31
  166. package/assets/js/scripts.bundle.js.map +1 -1
  167. package/assets/js/scripts.bundle.min.js +2 -2
  168. package/assets/js/scripts.bundle.min.js.map +1 -1
  169. package/assets/js/tests/table.spec.js +3 -1
  170. package/assets/sass/_corefiles.scss +15 -15
  171. package/assets/sass/_forms.scss +7 -7
  172. package/assets/sass/_functions/functions.scss +1 -1
  173. package/assets/sass/_functions/mixins.scss +19 -21
  174. package/assets/sass/_functions/utilities.scss +51 -9
  175. package/assets/sass/_functions/variables.scss +77 -37
  176. package/assets/sass/_tests/colours.spec.scss +8 -22
  177. package/assets/sass/components/accordion.scss +13 -0
  178. package/assets/sass/components/admin-panel.scss +106 -0
  179. package/assets/sass/components/alert.scss +22 -0
  180. package/assets/sass/components/carousel.scss +72 -0
  181. package/assets/sass/components/charts.scss +37 -1
  182. package/assets/sass/components/container.scss +1 -1
  183. package/assets/sass/components/dialog.scss +7 -1
  184. package/assets/sass/components/lists.scss +14 -0
  185. package/assets/sass/components/nav.scss +1 -1
  186. package/assets/sass/components/pagination.scss +1 -1
  187. package/assets/sass/components/stepper.scss +3 -3
  188. package/assets/sass/components/table.scss +19 -15
  189. package/assets/sass/components/tabs.scss +20 -7
  190. package/assets/sass/components/tooltips.scss +1 -1
  191. package/assets/sass/foundations/buttons.scss +366 -0
  192. package/assets/sass/foundations/links.scss +75 -75
  193. package/assets/sass/foundations/media.scss +1 -1
  194. package/assets/sass/foundations/reboot.scss +3 -5
  195. package/assets/sass/foundations/root.scss +9 -29
  196. package/assets/sass/foundations/type.scss +1 -1
  197. package/assets/ts/components/table/table.component.ts +5 -0
  198. package/assets/ts/modules/helpers.ts +49 -8
  199. package/assets/ts/modules/table.ts +6 -6
  200. package/assets/ts/tests/table.spec.ts +4 -1
  201. package/dist/components.es.js +46 -42
  202. package/dist/components.umd.js +4 -4
  203. package/dist/style.css +1 -1
  204. package/package.json +2 -1
  205. package/assets/css/components/buttons.css +0 -1
  206. package/assets/css/components/buttons.css.map +0 -1
  207. package/assets/css/components/panel.css +0 -1
  208. package/assets/css/components/panel.css.map +0 -1
  209. package/assets/sass/components/buttons.scss +0 -252
  210. package/assets/sass/components/panel.scss +0 -161
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2011-2022 Twitter, Inc.
4
+ Copyright (c) 2011-2022 The Bootstrap Authors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
@@ -0,0 +1,246 @@
1
+ <p align="center">
2
+ <a href="https://getbootstrap.com/">
3
+ <img src="https://getbootstrap.com/docs/5.2/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
4
+ </a>
5
+ </p>
6
+
7
+ <h3 align="center">Bootstrap</h3>
8
+
9
+ <p align="center">
10
+ Sleek, intuitive, and powerful front-end framework for faster and easier web development.
11
+ <br>
12
+ <a href="https://getbootstrap.com/docs/5.2/"><strong>Explore Bootstrap docs »</strong></a>
13
+ <br>
14
+ <br>
15
+ <a href="https://github.com/twbs/bootstrap/issues/new?assignees=-&labels=bug&template=bug_report.yml">Report bug</a>
16
+ ·
17
+ <a href="https://github.com/twbs/bootstrap/issues/new?assignees=&labels=feature&template=feature_request.yml">Request feature</a>
18
+ ·
19
+ <a href="https://themes.getbootstrap.com/">Themes</a>
20
+ ·
21
+ <a href="https://blog.getbootstrap.com/">Blog</a>
22
+ </p>
23
+
24
+
25
+ ## Bootstrap 5
26
+
27
+ 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.
28
+
29
+
30
+ ## Table of contents
31
+
32
+ - [Quick start](#quick-start)
33
+ - [Status](#status)
34
+ - [What's included](#whats-included)
35
+ - [Bugs and feature requests](#bugs-and-feature-requests)
36
+ - [Documentation](#documentation)
37
+ - [Contributing](#contributing)
38
+ - [Community](#community)
39
+ - [Versioning](#versioning)
40
+ - [Creators](#creators)
41
+ - [Thanks](#thanks)
42
+ - [Copyright and license](#copyright-and-license)
43
+
44
+
45
+ ## Quick start
46
+
47
+ Several quick start options are available:
48
+
49
+ - [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.2.3.zip)
50
+ - Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
51
+ - Install with [npm](https://www.npmjs.com/): `npm install bootstrap@v5.2.3`
52
+ - Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@v5.2.3`
53
+ - Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.2.3`
54
+ - Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
55
+
56
+ Read the [Getting started page](https://getbootstrap.com/docs/5.2/getting-started/introduction/) for information on the framework contents, templates, examples, and more.
57
+
58
+
59
+ ## Status
60
+
61
+ [![Build Status](https://img.shields.io/github/workflow/status/twbs/bootstrap/JS%20Tests/main?label=JS%20Tests&logo=github)](https://github.com/twbs/bootstrap/actions?query=workflow%3AJS+Tests+branch%3Amain)
62
+ [![npm version](https://img.shields.io/npm/v/bootstrap)](https://www.npmjs.com/package/bootstrap)
63
+ [![Gem version](https://img.shields.io/gem/v/bootstrap)](https://rubygems.org/gems/bootstrap)
64
+ [![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue)](https://atmospherejs.com/twbs/bootstrap)
65
+ [![Packagist Prerelease](https://img.shields.io/packagist/vpre/twbs/bootstrap)](https://packagist.org/packages/twbs/bootstrap)
66
+ [![NuGet](https://img.shields.io/nuget/vpre/bootstrap)](https://www.nuget.org/packages/bootstrap/absoluteLatest)
67
+ [![Coverage Status](https://img.shields.io/coveralls/github/twbs/bootstrap/main)](https://coveralls.io/github/twbs/bootstrap?branch=main)
68
+ [![CSS gzip size](https://img.badgesize.io/twbs/bootstrap/main/dist/css/bootstrap.min.css?compression=gzip&label=CSS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
69
+ [![CSS Brotli size](https://img.badgesize.io/twbs/bootstrap/main/dist/css/bootstrap.min.css?compression=brotli&label=CSS%20Brotli%20size)](https://github.com/twbs/bootstrap/blob/main/dist/css/bootstrap.min.css)
70
+ [![JS gzip size](https://img.badgesize.io/twbs/bootstrap/main/dist/js/bootstrap.min.js?compression=gzip&label=JS%20gzip%20size)](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
71
+ [![JS Brotli size](https://img.badgesize.io/twbs/bootstrap/main/dist/js/bootstrap.min.js?compression=brotli&label=JS%20Brotli%20size)](https://github.com/twbs/bootstrap/blob/main/dist/js/bootstrap.min.js)
72
+ [![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229)](https://www.browserstack.com/automate/public-build/SkxZcStBeExEdVJqQ2hWYnlWckpkNmNEY213SFp6WHFETWk2bGFuY3pCbz0tLXhqbHJsVlZhQnRBdEpod3NLSDMzaHc9PQ==--3d0b75245708616eb93113221beece33e680b229)
73
+ [![Backers on Open Collective](https://img.shields.io/opencollective/backers/bootstrap)](#backers)
74
+ [![Sponsors on Open Collective](https://img.shields.io/opencollective/sponsors/bootstrap)](#sponsors)
75
+
76
+
77
+ ## What's included
78
+
79
+ Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations.
80
+
81
+ <details>
82
+ <summary>Download contents</summary>
83
+
84
+ ```text
85
+ bootstrap/
86
+ ├── css/
87
+ │ ├── bootstrap-grid.css
88
+ │ ├── bootstrap-grid.css.map
89
+ │ ├── bootstrap-grid.min.css
90
+ │ ├── bootstrap-grid.min.css.map
91
+ │ ├── bootstrap-grid.rtl.css
92
+ │ ├── bootstrap-grid.rtl.css.map
93
+ │ ├── bootstrap-grid.rtl.min.css
94
+ │ ├── bootstrap-grid.rtl.min.css.map
95
+ │ ├── bootstrap-reboot.css
96
+ │ ├── bootstrap-reboot.css.map
97
+ │ ├── bootstrap-reboot.min.css
98
+ │ ├── bootstrap-reboot.min.css.map
99
+ │ ├── bootstrap-reboot.rtl.css
100
+ │ ├── bootstrap-reboot.rtl.css.map
101
+ │ ├── bootstrap-reboot.rtl.min.css
102
+ │ ├── bootstrap-reboot.rtl.min.css.map
103
+ │ ├── bootstrap-utilities.css
104
+ │ ├── bootstrap-utilities.css.map
105
+ │ ├── bootstrap-utilities.min.css
106
+ │ ├── bootstrap-utilities.min.css.map
107
+ │ ├── bootstrap-utilities.rtl.css
108
+ │ ├── bootstrap-utilities.rtl.css.map
109
+ │ ├── bootstrap-utilities.rtl.min.css
110
+ │ ├── bootstrap-utilities.rtl.min.css.map
111
+ │ ├── bootstrap.css
112
+ │ ├── bootstrap.css.map
113
+ │ ├── bootstrap.min.css
114
+ │ ├── bootstrap.min.css.map
115
+ │ ├── bootstrap.rtl.css
116
+ │ ├── bootstrap.rtl.css.map
117
+ │ ├── bootstrap.rtl.min.css
118
+ │ └── bootstrap.rtl.min.css.map
119
+ └── js/
120
+ ├── bootstrap.bundle.js
121
+ ├── bootstrap.bundle.js.map
122
+ ├── bootstrap.bundle.min.js
123
+ ├── bootstrap.bundle.min.js.map
124
+ ├── bootstrap.esm.js
125
+ ├── bootstrap.esm.js.map
126
+ ├── bootstrap.esm.min.js
127
+ ├── bootstrap.esm.min.js.map
128
+ ├── bootstrap.js
129
+ ├── bootstrap.js.map
130
+ ├── bootstrap.min.js
131
+ └── bootstrap.min.js.map
132
+ ```
133
+ </details>
134
+
135
+ We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://developers.google.com/web/tools/chrome-devtools/javascript/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 [Popper](https://popper.js.org/).
136
+
137
+
138
+ ## Bugs and feature requests
139
+
140
+ Have a bug or a feature request? Please first read the [issue guidelines](https://github.com/twbs/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/twbs/bootstrap/issues/new/choose).
141
+
142
+
143
+ ## Documentation
144
+
145
+ Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://getbootstrap.com/>. The docs may also be run locally.
146
+
147
+ Documentation search is powered by [Algolia's DocSearch](https://docsearch.algolia.com/). Working on our search? Be sure to set `debug: true` in `site/assets/js/search.js`.
148
+
149
+ ### Running documentation locally
150
+
151
+ 1. Run `npm install` to install the Node.js dependencies, including Hugo (the site builder).
152
+ 2. Run `npm run test` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
153
+ 3. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
154
+ 4. Open `http://localhost:9001/` in your browser, and voilà.
155
+
156
+ Learn more about using Hugo by reading its [documentation](https://gohugo.io/documentation/).
157
+
158
+ ### Documentation for previous releases
159
+
160
+ You can find all our previous releases docs on <https://getbootstrap.com/docs/versions/>.
161
+
162
+ [Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
163
+
164
+
165
+ ## Contributing
166
+
167
+ Please read through our [contributing guidelines](https://github.com/twbs/bootstrap/blob/main/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
168
+
169
+ Moreover, if your pull request contains JavaScript patches or features, you must include [relevant unit tests](https://github.com/twbs/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).
170
+
171
+ Editor preferences are available in the [editor config](https://github.com/twbs/bootstrap/blob/main/.editorconfig) for easy use in common text editors. Read more and download plugins at <https://editorconfig.org/>.
172
+
173
+
174
+ ## Community
175
+
176
+ Get updates on Bootstrap's development and chat with the project maintainers and community members.
177
+
178
+ - Follow [@getbootstrap on Twitter](https://twitter.com/getbootstrap).
179
+ - Read and subscribe to [The Official Bootstrap Blog](https://blog.getbootstrap.com/).
180
+ - Ask and explore [our GitHub Discussions](https://github.com/twbs/bootstrap/discussions).
181
+ - Chat with fellow Bootstrappers in IRC. On the `irc.libera.chat` server, in the `#bootstrap` channel.
182
+ - Implementation help may be found at Stack Overflow (tagged [`bootstrap-5`](https://stackoverflow.com/questions/tagged/bootstrap-5)).
183
+ - Developers should use the keyword `bootstrap` on packages which modify or add to the functionality of Bootstrap when distributing through [npm](https://www.npmjs.com/browse/keyword/bootstrap) or similar delivery mechanisms for maximum discoverability.
184
+
185
+
186
+ ## Versioning
187
+
188
+ 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.
189
+
190
+ See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap. Release announcement posts on [the official Bootstrap blog](https://blog.getbootstrap.com/) contain summaries of the most noteworthy changes made in each release.
191
+
192
+
193
+ ## Creators
194
+
195
+ **Mark Otto**
196
+
197
+ - <https://twitter.com/mdo>
198
+ - <https://github.com/mdo>
199
+
200
+ **Jacob Thornton**
201
+
202
+ - <https://twitter.com/fat>
203
+ - <https://github.com/fat>
204
+
205
+
206
+ ## Thanks
207
+
208
+ <a href="https://www.browserstack.com/">
209
+ <img src="https://live.browserstack.com/images/opensource/browserstack-logo.svg" alt="BrowserStack" width="192" height="42">
210
+ </a>
211
+
212
+ Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to test in real browsers!
213
+
214
+ <a href="https://www.netlify.com/">
215
+ <img src="https://www.netlify.com/v3/img/components/full-logo-light.svg" alt="Netlify" width="147" height="40">
216
+ </a>
217
+
218
+ Thanks to [Netlify](https://www.netlify.com/) for providing us with Deploy Previews!
219
+
220
+
221
+ ## Sponsors
222
+
223
+ Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/bootstrap#sponsor)]
224
+
225
+ [![OC sponsor 0](https://opencollective.com/bootstrap/sponsor/0/avatar.svg)](https://opencollective.com/bootstrap/sponsor/0/website)
226
+ [![OC sponsor 1](https://opencollective.com/bootstrap/sponsor/1/avatar.svg)](https://opencollective.com/bootstrap/sponsor/1/website)
227
+ [![OC sponsor 2](https://opencollective.com/bootstrap/sponsor/2/avatar.svg)](https://opencollective.com/bootstrap/sponsor/2/website)
228
+ [![OC sponsor 3](https://opencollective.com/bootstrap/sponsor/3/avatar.svg)](https://opencollective.com/bootstrap/sponsor/3/website)
229
+ [![OC sponsor 4](https://opencollective.com/bootstrap/sponsor/4/avatar.svg)](https://opencollective.com/bootstrap/sponsor/4/website)
230
+ [![OC sponsor 5](https://opencollective.com/bootstrap/sponsor/5/avatar.svg)](https://opencollective.com/bootstrap/sponsor/5/website)
231
+ [![OC sponsor 6](https://opencollective.com/bootstrap/sponsor/6/avatar.svg)](https://opencollective.com/bootstrap/sponsor/6/website)
232
+ [![OC sponsor 7](https://opencollective.com/bootstrap/sponsor/7/avatar.svg)](https://opencollective.com/bootstrap/sponsor/7/website)
233
+ [![OC sponsor 8](https://opencollective.com/bootstrap/sponsor/8/avatar.svg)](https://opencollective.com/bootstrap/sponsor/8/website)
234
+ [![OC sponsor 9](https://opencollective.com/bootstrap/sponsor/9/avatar.svg)](https://opencollective.com/bootstrap/sponsor/9/website)
235
+
236
+
237
+ ## Backers
238
+
239
+ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/bootstrap#backer)]
240
+
241
+ [![Backers](https://opencollective.com/bootstrap/backers.svg?width=890)](https://opencollective.com/bootstrap#backers)
242
+
243
+
244
+ ## Copyright and license
245
+
246
+ Code and documentation copyright 2011–2022 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors) and [Twitter, Inc.](https://twitter.com) 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/).
@@ -0,0 +1,87 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * Bootstrap (v5.2.3): alert.js
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ * --------------------------------------------------------------------------
6
+ */
7
+
8
+ import { defineJQueryPlugin } from './util/index'
9
+ import EventHandler from './dom/event-handler'
10
+ import BaseComponent from './base-component'
11
+ import { enableDismissTrigger } from './util/component-functions'
12
+
13
+ /**
14
+ * Constants
15
+ */
16
+
17
+ const NAME = 'alert'
18
+ const DATA_KEY = 'bs.alert'
19
+ const EVENT_KEY = `.${DATA_KEY}`
20
+
21
+ const EVENT_CLOSE = `close${EVENT_KEY}`
22
+ const EVENT_CLOSED = `closed${EVENT_KEY}`
23
+ const CLASS_NAME_FADE = 'fade'
24
+ const CLASS_NAME_SHOW = 'show'
25
+
26
+ /**
27
+ * Class definition
28
+ */
29
+
30
+ class Alert extends BaseComponent {
31
+ // Getters
32
+ static get NAME() {
33
+ return NAME
34
+ }
35
+
36
+ // Public
37
+ close() {
38
+ const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE)
39
+
40
+ if (closeEvent.defaultPrevented) {
41
+ return
42
+ }
43
+
44
+ this._element.classList.remove(CLASS_NAME_SHOW)
45
+
46
+ const isAnimated = this._element.classList.contains(CLASS_NAME_FADE)
47
+ this._queueCallback(() => this._destroyElement(), this._element, isAnimated)
48
+ }
49
+
50
+ // Private
51
+ _destroyElement() {
52
+ this._element.remove()
53
+ EventHandler.trigger(this._element, EVENT_CLOSED)
54
+ this.dispose()
55
+ }
56
+
57
+ // Static
58
+ static jQueryInterface(config) {
59
+ return this.each(function () {
60
+ const data = Alert.getOrCreateInstance(this)
61
+
62
+ if (typeof config !== 'string') {
63
+ return
64
+ }
65
+
66
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
67
+ throw new TypeError(`No method named "${config}"`)
68
+ }
69
+
70
+ data[config](this)
71
+ })
72
+ }
73
+ }
74
+
75
+ /**
76
+ * Data API implementation
77
+ */
78
+
79
+ enableDismissTrigger(Alert, 'close')
80
+
81
+ /**
82
+ * jQuery
83
+ */
84
+
85
+ defineJQueryPlugin(Alert)
86
+
87
+ export default Alert
@@ -0,0 +1,85 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * Bootstrap (v5.2.3): base-component.js
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ * --------------------------------------------------------------------------
6
+ */
7
+
8
+ import Data from './dom/data'
9
+ import { executeAfterTransition, getElement } from './util/index'
10
+ import EventHandler from './dom/event-handler'
11
+ import Config from './util/config'
12
+
13
+ /**
14
+ * Constants
15
+ */
16
+
17
+ const VERSION = '5.2.3'
18
+
19
+ /**
20
+ * Class definition
21
+ */
22
+
23
+ class BaseComponent extends Config {
24
+ constructor(element, config) {
25
+ super()
26
+
27
+ element = getElement(element)
28
+ if (!element) {
29
+ return
30
+ }
31
+
32
+ this._element = element
33
+ this._config = this._getConfig(config)
34
+
35
+ Data.set(this._element, this.constructor.DATA_KEY, this)
36
+ }
37
+
38
+ // Public
39
+ dispose() {
40
+ Data.remove(this._element, this.constructor.DATA_KEY)
41
+ EventHandler.off(this._element, this.constructor.EVENT_KEY)
42
+
43
+ for (const propertyName of Object.getOwnPropertyNames(this)) {
44
+ this[propertyName] = null
45
+ }
46
+ }
47
+
48
+ _queueCallback(callback, element, isAnimated = true) {
49
+ executeAfterTransition(callback, element, isAnimated)
50
+ }
51
+
52
+ _getConfig(config) {
53
+ config = this._mergeConfigObj(config, this._element)
54
+ config = this._configAfterMerge(config)
55
+ this._typeCheckConfig(config)
56
+ return config
57
+ }
58
+
59
+ // Static
60
+ static getInstance(element) {
61
+ return Data.get(getElement(element), this.DATA_KEY)
62
+ }
63
+
64
+ static getOrCreateInstance(element, config = {}) {
65
+ return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)
66
+ }
67
+
68
+ static get VERSION() {
69
+ return VERSION
70
+ }
71
+
72
+ static get DATA_KEY() {
73
+ return `bs.${this.NAME}`
74
+ }
75
+
76
+ static get EVENT_KEY() {
77
+ return `.${this.DATA_KEY}`
78
+ }
79
+
80
+ static eventName(name) {
81
+ return `${name}${this.EVENT_KEY}`
82
+ }
83
+ }
84
+
85
+ export default BaseComponent
@@ -0,0 +1,72 @@
1
+ /**
2
+ * --------------------------------------------------------------------------
3
+ * Bootstrap (v5.2.3): button.js
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ * --------------------------------------------------------------------------
6
+ */
7
+
8
+ import { defineJQueryPlugin } from './util/index'
9
+ import EventHandler from './dom/event-handler'
10
+ import BaseComponent from './base-component'
11
+
12
+ /**
13
+ * Constants
14
+ */
15
+
16
+ const NAME = 'button'
17
+ const DATA_KEY = 'bs.button'
18
+ const EVENT_KEY = `.${DATA_KEY}`
19
+ const DATA_API_KEY = '.data-api'
20
+
21
+ const CLASS_NAME_ACTIVE = 'active'
22
+ const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="button"]'
23
+ const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
24
+
25
+ /**
26
+ * Class definition
27
+ */
28
+
29
+ class Button extends BaseComponent {
30
+ // Getters
31
+ static get NAME() {
32
+ return NAME
33
+ }
34
+
35
+ // Public
36
+ toggle() {
37
+ // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
38
+ this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE))
39
+ }
40
+
41
+ // Static
42
+ static jQueryInterface(config) {
43
+ return this.each(function () {
44
+ const data = Button.getOrCreateInstance(this)
45
+
46
+ if (config === 'toggle') {
47
+ data[config]()
48
+ }
49
+ })
50
+ }
51
+ }
52
+
53
+ /**
54
+ * Data API implementation
55
+ */
56
+
57
+ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => {
58
+ event.preventDefault()
59
+
60
+ const button = event.target.closest(SELECTOR_DATA_TOGGLE)
61
+ const data = Button.getOrCreateInstance(button)
62
+
63
+ data.toggle()
64
+ })
65
+
66
+ /**
67
+ * jQuery
68
+ */
69
+
70
+ defineJQueryPlugin(Button)
71
+
72
+ export default Button