bootstrap-italia 2.12.1 → 2.13.1
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/README.EN.md +1 -1
- package/README.md +1 -1
- package/dist/bootstrap-italia.esm.js +1 -1
- package/dist/css/bootstrap-italia.min.css +9 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +19 -23
- package/dist/js/bootstrap-italia.min.js +18 -2
- package/dist/plugins/accept-overlay.js +19 -9
- package/dist/plugins/accept-overlay.js.map +1 -1
- package/dist/plugins/accordion.js +19 -24
- package/dist/plugins/accordion.js.map +1 -1
- package/dist/plugins/alert.js +67 -2
- package/dist/plugins/alert.js.map +1 -1
- package/dist/plugins/{backToTop.js → back-to-top.js} +14 -5
- package/dist/plugins/back-to-top.js.map +1 -0
- package/dist/plugins/base-component.js +91 -0
- package/dist/plugins/base-component.js.map +1 -0
- package/dist/plugins/button.js +58 -2
- package/dist/plugins/button.js.map +1 -1
- package/dist/plugins/carousel-bi.js +19 -9
- package/dist/plugins/carousel-bi.js.map +1 -1
- package/dist/plugins/carousel.js +445 -2
- package/dist/plugins/carousel.js.map +1 -1
- package/dist/plugins/collapse.js +273 -2
- package/dist/plugins/collapse.js.map +1 -1
- package/dist/plugins/cookiebar.js +39 -52
- package/dist/plugins/cookiebar.js.map +1 -1
- package/dist/plugins/dimmer.js +19 -8
- package/dist/plugins/dimmer.js.map +1 -1
- package/dist/plugins/dom/data.js +61 -0
- package/dist/plugins/dom/data.js.map +1 -0
- package/dist/plugins/dom/event-handler.js +296 -0
- package/dist/plugins/dom/event-handler.js.map +1 -0
- package/dist/plugins/dom/manipulator.js +76 -0
- package/dist/plugins/dom/manipulator.js.map +1 -0
- package/dist/plugins/dom/selector-engine.js +82 -0
- package/dist/plugins/dom/selector-engine.js.map +1 -0
- package/dist/plugins/dropdown.js +433 -2
- package/dist/plugins/dropdown.js.map +1 -1
- package/dist/plugins/fonts-loader.js +9 -1
- package/dist/plugins/fonts-loader.js.map +1 -1
- package/dist/plugins/form-validate.js +22 -8
- package/dist/plugins/form-validate.js.map +1 -1
- package/dist/plugins/forward.js +21 -18
- package/dist/plugins/forward.js.map +1 -1
- package/dist/plugins/header-sticky.js +11 -2
- package/dist/plugins/header-sticky.js.map +1 -1
- package/dist/plugins/history-back.js +17 -17
- package/dist/plugins/history-back.js.map +1 -1
- package/dist/plugins/init.js +9 -0
- package/dist/plugins/init.js.map +1 -1
- package/dist/plugins/input-label.js +14 -3
- package/dist/plugins/input-label.js.map +1 -1
- package/dist/plugins/input-number.js +13 -4
- package/dist/plugins/input-number.js.map +1 -1
- package/dist/plugins/input-password.js +48 -37
- package/dist/plugins/input-password.js.map +1 -1
- package/dist/plugins/input-search-autocomplete.js +9 -11
- package/dist/plugins/input-search-autocomplete.js.map +1 -1
- package/dist/plugins/input.js +12 -3
- package/dist/plugins/input.js.map +1 -1
- package/dist/plugins/list.js +23 -12
- package/dist/plugins/list.js.map +1 -1
- package/dist/plugins/masonry.js +29 -29
- package/dist/plugins/masonry.js.map +1 -1
- package/dist/plugins/modal.js +358 -2
- package/dist/plugins/modal.js.map +1 -1
- package/dist/plugins/navbar-collapsible.js +55 -45
- package/dist/plugins/navbar-collapsible.js.map +1 -1
- package/dist/plugins/navscroll.js +16 -23
- package/dist/plugins/navscroll.js.map +1 -1
- package/dist/plugins/notification.js +34 -23
- package/dist/plugins/notification.js.map +1 -1
- package/dist/plugins/offcanvas.js +259 -2
- package/dist/plugins/offcanvas.js.map +1 -1
- package/dist/plugins/popover.js +76 -2
- package/dist/plugins/popover.js.map +1 -1
- package/dist/plugins/progress-donut.js +19 -12
- package/dist/plugins/progress-donut.js.map +1 -1
- package/dist/plugins/scrollspy.js +273 -2
- package/dist/plugins/scrollspy.js.map +1 -1
- package/dist/plugins/select-autocomplete.js +10 -1
- package/dist/plugins/select-autocomplete.js.map +1 -1
- package/dist/plugins/sticky.js +21 -18
- package/dist/plugins/sticky.js.map +1 -1
- package/dist/plugins/tab.js +244 -27
- package/dist/plugins/tab.js.map +1 -1
- package/dist/plugins/toast.js +203 -2
- package/dist/plugins/toast.js.map +1 -1
- package/dist/plugins/tooltip.js +602 -2
- package/dist/plugins/tooltip.js.map +1 -1
- package/dist/plugins/track-focus.js +8 -0
- package/dist/plugins/track-focus.js.map +1 -1
- package/dist/plugins/transfer.js +11 -16
- package/dist/plugins/transfer.js.map +1 -1
- package/dist/plugins/upload-dragdrop.js +13 -4
- package/dist/plugins/upload-dragdrop.js.map +1 -1
- package/dist/plugins/util/backdrop.js +155 -0
- package/dist/plugins/util/backdrop.js.map +1 -0
- package/dist/plugins/util/component-functions.js +38 -0
- package/dist/plugins/util/component-functions.js.map +1 -0
- package/dist/plugins/util/config.js +70 -0
- package/dist/plugins/util/config.js.map +1 -0
- package/dist/plugins/util/cookies.js +8 -0
- package/dist/plugins/util/cookies.js.map +1 -1
- package/dist/plugins/util/device.js +0 -3
- package/dist/plugins/util/device.js.map +1 -1
- package/dist/plugins/util/dom.js +8 -0
- package/dist/plugins/util/dom.js.map +1 -1
- package/dist/plugins/util/focustrap.js +121 -0
- package/dist/plugins/util/focustrap.js.map +1 -0
- package/dist/plugins/util/index.js +280 -0
- package/dist/plugins/util/index.js.map +1 -0
- package/dist/plugins/util/observer.js +8 -0
- package/dist/plugins/util/observer.js.map +1 -1
- package/dist/plugins/util/on-document-scroll.js +20 -9
- package/dist/plugins/util/on-document-scroll.js.map +1 -1
- package/dist/plugins/util/pageScroll.js +8 -0
- package/dist/plugins/util/pageScroll.js.map +1 -1
- package/dist/plugins/util/sanitizer.js +115 -0
- package/dist/plugins/util/sanitizer.js.map +1 -0
- package/dist/plugins/util/scrollbar.js +120 -0
- package/dist/plugins/util/scrollbar.js.map +1 -0
- package/dist/plugins/util/swipe.js +150 -0
- package/dist/plugins/util/swipe.js.map +1 -0
- package/dist/plugins/util/template-factory.js +166 -0
- package/dist/plugins/util/template-factory.js.map +1 -0
- package/dist/plugins/util/tween.js +10 -1
- package/dist/plugins/util/tween.js.map +1 -1
- package/dist/plugins/util/youtube-video.js +12 -21
- package/dist/plugins/util/youtube-video.js.map +1 -1
- package/dist/plugins/videoplayer.js +19 -8
- package/dist/plugins/videoplayer.js.map +1 -1
- package/dist/version.js +10 -3
- package/dist/version.js.map +1 -1
- package/package.json +6 -7
- package/src/js/bootstrap-italia.entry.js +8 -0
- package/src/js/bootstrap-italia.esm.js +9 -1
- package/src/js/icons.js +8 -0
- package/src/js/load-plugin.js +8 -0
- package/src/js/plugins/accept-overlay.js +18 -10
- package/src/js/plugins/accordion.js +16 -22
- package/src/js/plugins/alert.js +66 -2
- package/src/js/plugins/{backToTop.js → back-to-top.js} +12 -4
- package/src/js/plugins/base-component.js +89 -0
- package/src/js/plugins/button.js +57 -2
- package/src/js/plugins/carousel-bi.js +18 -9
- package/src/js/plugins/carousel.js +444 -2
- package/src/js/plugins/collapse.js +272 -2
- package/src/js/plugins/cookiebar.js +37 -60
- package/src/js/plugins/dimmer.js +18 -8
- package/src/js/plugins/dom/data.js +58 -0
- package/src/js/plugins/dom/event-handler.js +301 -0
- package/src/js/plugins/dom/manipulator.js +75 -0
- package/src/js/plugins/dom/selector-engine.js +80 -0
- package/src/js/plugins/dropdown.js +432 -2
- package/src/js/plugins/fonts-loader.js +9 -1
- package/src/js/plugins/form-validate.js +21 -8
- package/src/js/plugins/form.js +11 -3
- package/src/js/plugins/forward.js +18 -16
- package/src/js/plugins/header-sticky.js +10 -2
- package/src/js/plugins/history-back.js +14 -14
- package/src/js/plugins/init.js +8 -0
- package/src/js/plugins/input-label.js +13 -3
- package/src/js/plugins/input-number.js +12 -4
- package/src/js/plugins/input-password.js +46 -36
- package/src/js/plugins/input-search-autocomplete.js +9 -13
- package/src/js/plugins/input.js +11 -3
- package/src/js/plugins/list.js +22 -12
- package/src/js/plugins/masonry.js +26 -27
- package/src/js/plugins/modal.js +357 -2
- package/src/js/plugins/navbar-collapsible.js +55 -53
- package/src/js/plugins/navscroll.js +16 -23
- package/src/js/plugins/notification.js +33 -23
- package/src/js/plugins/offcanvas.js +258 -2
- package/src/js/plugins/popover.js +75 -2
- package/src/js/plugins/progress-donut.js +17 -13
- package/src/js/plugins/scrollspy.js +272 -2
- package/src/js/plugins/select-autocomplete.js +9 -1
- package/src/js/plugins/sticky.js +21 -23
- package/src/js/plugins/tab.js +243 -27
- package/src/js/plugins/toast.js +206 -2
- package/src/js/plugins/tooltip.js +601 -2
- package/src/js/plugins/track-focus.js +8 -0
- package/src/js/plugins/transfer.js +12 -24
- package/src/js/plugins/upload-dragdrop.js +12 -4
- package/src/js/plugins/util/backdrop.js +153 -0
- package/src/js/plugins/util/component-functions.js +36 -0
- package/src/js/plugins/util/config.js +68 -0
- package/src/js/plugins/util/cookies.js +8 -0
- package/src/js/plugins/util/device.js +0 -3
- package/src/js/plugins/util/dom.js +8 -0
- package/src/js/plugins/util/focustrap.js +119 -0
- package/src/js/plugins/util/index.js +317 -0
- package/src/js/plugins/util/observer.js +8 -0
- package/src/js/plugins/util/on-document-scroll.js +19 -9
- package/src/js/plugins/util/pageScroll.js +8 -0
- package/src/js/plugins/util/sanitizer.js +112 -0
- package/src/js/plugins/util/scrollbar.js +118 -0
- package/src/js/plugins/util/swipe.js +148 -0
- package/src/js/plugins/util/template-factory.js +164 -0
- package/src/js/plugins/util/tween.js +9 -1
- package/src/js/plugins/util/youtube-video.js +12 -21
- package/src/js/plugins/videoplayer.js +18 -8
- package/src/js/version.js +10 -3
- package/src/scss/base/_containers.scss +41 -0
- package/src/scss/base/_functions.scss +373 -0
- package/src/scss/base/_helpers.scss +10 -0
- package/src/scss/base/_maps.scss +54 -0
- package/src/scss/base/_mixins.scss +44 -0
- package/src/scss/base/_reboot.scss +590 -0
- package/src/scss/base/_root.scss +73 -0
- package/src/scss/base/_transitions.scss +27 -0
- package/src/scss/base/_utilities.scss +742 -0
- package/src/scss/base/_variables.scss +2123 -0
- package/src/scss/base/_version.scss +3 -0
- package/src/scss/base/helpers/_clearfix.scss +3 -0
- package/src/scss/base/helpers/_color-bg.scss +10 -0
- package/src/scss/base/helpers/_colored-links.scss +16 -0
- package/src/scss/base/helpers/_position.scss +36 -0
- package/src/scss/base/helpers/_ratio.scss +26 -0
- package/src/scss/base/helpers/_stacks.scss +15 -0
- package/src/scss/base/helpers/_stretched-link.scss +15 -0
- package/src/scss/base/helpers/_text-truncation.scss +7 -0
- package/src/scss/base/helpers/_visually-hidden.scss +8 -0
- package/src/scss/base/helpers/_vr.scss +8 -0
- package/src/scss/base/mixins/_alert.scss +15 -0
- package/src/scss/base/mixins/_backdrop.scss +18 -0
- package/src/scss/base/mixins/_banner.scss +11 -0
- package/src/scss/base/mixins/_border-radius.scss +77 -0
- package/src/scss/base/mixins/_box-shadow.scss +18 -0
- package/src/scss/base/mixins/_breakpoints.scss +127 -0
- package/src/scss/base/mixins/_buttons.scss +141 -0
- package/src/scss/base/mixins/_caret.scss +64 -0
- package/src/scss/base/mixins/_clearfix.scss +9 -0
- package/src/scss/base/mixins/_color-scheme.scss +7 -0
- package/src/scss/base/mixins/_container.scss +11 -0
- package/src/scss/base/mixins/_deprecate.scss +10 -0
- package/src/scss/base/mixins/_forms.scss +152 -0
- package/src/scss/base/mixins/_gradients.scss +47 -0
- package/src/scss/base/mixins/_grid.scss +151 -0
- package/src/scss/base/mixins/_image.scss +15 -0
- package/src/scss/base/mixins/_list-group.scss +24 -0
- package/src/scss/base/mixins/_lists.scss +7 -0
- package/src/scss/base/mixins/_pagination.scss +10 -0
- package/src/scss/base/mixins/_reset-text.scss +17 -0
- package/src/scss/base/mixins/_resize.scss +6 -0
- package/src/scss/base/mixins/_table-variants.scss +24 -0
- package/src/scss/base/mixins/_text-truncate.scss +8 -0
- package/src/scss/base/mixins/_transition.scss +26 -0
- package/src/scss/base/mixins/_utilities.scss +96 -0
- package/src/scss/base/mixins/_visually-hidden.scss +29 -0
- package/src/scss/base/utilities/_api.scss +45 -0
- package/src/scss/base/vendor/_rfs.scss +337 -0
- package/src/scss/bootstrap-italia.scss +137 -156
- package/src/scss/{custom → components}/_accept-overlay.scss +2 -1
- package/src/scss/components/_accordion.scss +297 -0
- package/src/scss/components/_badge.scss +60 -0
- package/src/scss/components/_breadcrumb.scss +95 -0
- package/src/scss/components/_button-group.scss +143 -0
- package/src/scss/components/_buttons.scss +467 -0
- package/src/scss/{custom → components}/_card.scss +228 -0
- package/src/scss/{custom → components}/_carousel.scss +225 -3
- package/src/scss/components/_dropdown.scss +480 -0
- package/src/scss/{custom → components}/_grid.scss +33 -0
- package/src/scss/{custom → components}/_gridlist.scss +7 -0
- package/src/scss/{custom → components}/_hero.scss +23 -57
- package/src/scss/components/_images.scss +48 -0
- package/src/scss/{custom → components}/_linklist.scss +0 -1
- package/src/scss/components/_list-group.scss +190 -0
- package/src/scss/components/_modal.scss +475 -0
- package/src/scss/components/_nav.scss +169 -0
- package/src/scss/components/_navbar.scss +274 -0
- package/src/scss/components/_offcanvas.scss +144 -0
- package/src/scss/components/_pagination.scss +108 -0
- package/src/scss/components/_placeholders.scss +51 -0
- package/src/scss/components/_popover.scss +298 -0
- package/src/scss/components/_progress-bars.scss +126 -0
- package/src/scss/{custom → components}/_steppers.scss +2 -2
- package/src/scss/{custom → components}/_tab.scss +3 -7
- package/src/scss/components/_tables.scss +171 -0
- package/src/scss/components/_toasts.scss +73 -0
- package/src/scss/{custom → components}/_toolbar.scss +19 -12
- package/src/scss/components/_tooltip.scss +139 -0
- package/src/scss/{custom → components}/_type.scss +92 -0
- package/src/scss/forms/_accessible-autocomplete.scss +188 -0
- package/src/scss/forms/_floating-labels.scss +75 -0
- package/src/scss/forms/_form-check.scss +163 -0
- package/src/scss/forms/_form-control.scss +201 -0
- package/src/scss/forms/_form-range.scss +95 -0
- package/src/scss/{custom → forms}/_form-select.scss +72 -0
- package/src/scss/forms/_form-text.scss +11 -0
- package/src/scss/{custom → forms}/_forms.scss +8 -12
- package/src/scss/forms/_input-group.scss +129 -0
- package/src/scss/forms/_labels.scss +36 -0
- package/src/scss/forms/_validation.scss +12 -0
- package/src/scss/utilities/icons.scss +5 -5
- package/types/index.d.ts +4 -1
- package/types/plugins/video.ts +33 -0
- package/dist/plugins/backToTop.js.map +0 -1
- package/src/scss/_functions.scss +0 -38
- package/src/scss/_variables.scss +0 -639
- package/src/scss/custom/_accessible-autocomplete.scss +0 -30
- package/src/scss/custom/_accordion.scss +0 -176
- package/src/scss/custom/_badge.scss +0 -29
- package/src/scss/custom/_breadcrumb.scss +0 -51
- package/src/scss/custom/_buttons.scss +0 -235
- package/src/scss/custom/_componente-base.scss +0 -6
- package/src/scss/custom/_dropdown.scss +0 -248
- package/src/scss/custom/_form-datepicker.scss +0 -604
- package/src/scss/custom/_images.scss +0 -10
- package/src/scss/custom/_modal.scss +0 -248
- package/src/scss/custom/_popover.scss +0 -106
- package/src/scss/custom/_progress-bars.scss +0 -70
- package/src/scss/custom/_tables.scss +0 -11
- package/src/scss/custom/_timepicker.scss +0 -252
- package/src/scss/custom/_tooltip.scss +0 -33
- package/src/scss/custom/_version.scss +0 -3
- package/src/scss/custom/mixins/_buttons.scss +0 -67
- package/src/scss/utilities/colors_vars.scss +0 -426
- /package/src/scss/{custom → base}/mixins/_text-emphasis.scss +0 -0
- /package/src/scss/{custom → components}/_affix.scss +0 -0
- /package/src/scss/{custom → components}/_alert.scss +0 -0
- /package/src/scss/{custom → components}/_anchor.scss +0 -0
- /package/src/scss/{custom → components}/_avatar.scss +0 -0
- /package/src/scss/{custom → components}/_back-to-top.scss +0 -0
- /package/src/scss/{custom → components}/_bottomnav.scss +0 -0
- /package/src/scss/{custom → components}/_calendar.scss +0 -0
- /package/src/scss/{custom → components}/_callout.scss +0 -0
- /package/src/scss/{custom → components}/_chips.scss +0 -0
- /package/src/scss/{custom → components}/_code.scss +0 -0
- /package/src/scss/{custom → components}/_cookiebar.scss +0 -0
- /package/src/scss/{custom → components}/_dimmer.scss +0 -0
- /package/src/scss/{custom → components}/_figcaption.scss +0 -0
- /package/src/scss/{custom → components}/_font.scss +0 -0
- /package/src/scss/{custom → components}/_footer.scss +0 -0
- /package/src/scss/{custom → components}/_forward.scss +0 -0
- /package/src/scss/{custom → components}/_header.scss +0 -0
- /package/src/scss/{custom → components}/_headercenter.scss +0 -0
- /package/src/scss/{custom → components}/_headercentertheme.scss +0 -0
- /package/src/scss/{custom → components}/_headernavbar.scss +0 -0
- /package/src/scss/{custom → components}/_headernavbartheme.scss +0 -0
- /package/src/scss/{custom → components}/_headerslim.scss +0 -0
- /package/src/scss/{custom → components}/_headerslimtheme.scss +0 -0
- /package/src/scss/{custom → components}/_imgresponsive.scss +0 -0
- /package/src/scss/{custom → components}/_list.scss +0 -0
- /package/src/scss/{custom → components}/_map.scss +0 -0
- /package/src/scss/{custom → components}/_masonry-loader.scss +0 -0
- /package/src/scss/{custom → components}/_megamenu.scss +0 -0
- /package/src/scss/{custom → components}/_navigation.scss +0 -0
- /package/src/scss/{custom → components}/_navigationtheme.scss +0 -0
- /package/src/scss/{custom → components}/_navscroll.scss +0 -0
- /package/src/scss/{custom → components}/_navscrolltheme.scss +0 -0
- /package/src/scss/{custom → components}/_notifications.scss +0 -0
- /package/src/scss/{custom → components}/_overlay-panel.scss +0 -0
- /package/src/scss/{custom → components}/_page-scroll.scss +0 -0
- /package/src/scss/{custom → components}/_pager.scss +0 -0
- /package/src/scss/{custom → components}/_point-list.scss +0 -0
- /package/src/scss/{custom → components}/_print.scss +0 -0
- /package/src/scss/{custom → components}/_progress-donuts.scss +0 -0
- /package/src/scss/{custom → components}/_progress-spinners.scss +0 -0
- /package/src/scss/{custom → components}/_rating-list.scss +0 -0
- /package/src/scss/{custom → components}/_rating.scss +0 -0
- /package/src/scss/{custom → components}/_sections.scss +0 -0
- /package/src/scss/{custom → components}/_sidebar.scss +0 -0
- /package/src/scss/{custom → components}/_sidebarthemes.scss +0 -0
- /package/src/scss/{custom → components}/_skiplinks.scss +0 -0
- /package/src/scss/{custom → components}/_sticky.scss +0 -0
- /package/src/scss/{custom → components}/_thumbnav.scss +0 -0
- /package/src/scss/{custom → components}/_timeline.scss +0 -0
- /package/src/scss/{custom → components}/_videoplayer.scss +0 -0
- /package/src/scss/{custom → forms}/_autocomplete.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-file.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-number.scss +0 -0
- /package/src/scss/{custom → forms}/_form-input-upload.scss +0 -0
- /package/src/scss/{custom → forms}/_form-password.scss +0 -0
- /package/src/scss/{custom → forms}/_form-toggles.scss +0 -0
- /package/src/scss/{custom → forms}/_form-transfer.scss +0 -0
- /package/src/scss/{custom → forms}/_just-validate.scss +0 -0
- /package/types/plugins/{backToTop.d.ts → back-to-top.d.ts} +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Base styles
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.input-group {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-wrap: wrap; // For form validation feedback
|
|
9
|
+
align-items: stretch;
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
> .form-control,
|
|
13
|
+
> .form-select,
|
|
14
|
+
> .form-floating {
|
|
15
|
+
position: relative; // For focus state's z-index
|
|
16
|
+
flex: 1 1 auto;
|
|
17
|
+
width: 1%;
|
|
18
|
+
min-width: 0; // https://stackoverflow.com/questions/36247140/why-dont-flex-items-shrink-past-content-size
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Bring the "active" form control to the top of surrounding elements
|
|
22
|
+
> .form-control:focus,
|
|
23
|
+
> .form-select:focus,
|
|
24
|
+
> .form-floating:focus-within {
|
|
25
|
+
z-index: 5;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Ensure buttons are always above inputs for more visually pleasing borders.
|
|
29
|
+
// This isn't needed for `.input-group-text` since it shares the same border-color
|
|
30
|
+
// as our inputs.
|
|
31
|
+
.btn {
|
|
32
|
+
position: relative;
|
|
33
|
+
z-index: 2;
|
|
34
|
+
|
|
35
|
+
&:focus {
|
|
36
|
+
z-index: 5;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Textual addons
|
|
42
|
+
//
|
|
43
|
+
// Serves as a catch-all element for any text or radio/checkbox input you wish
|
|
44
|
+
// to prepend or append to an input.
|
|
45
|
+
|
|
46
|
+
.input-group-text {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
padding: $input-group-addon-padding-y $input-group-addon-padding-x;
|
|
50
|
+
@include font-size($input-font-size); // Match inputs
|
|
51
|
+
font-weight: $input-group-addon-font-weight;
|
|
52
|
+
line-height: $input-line-height;
|
|
53
|
+
color: $input-group-addon-color;
|
|
54
|
+
text-align: center;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
background-color: $input-group-addon-bg;
|
|
57
|
+
border: $input-border-width solid $input-group-addon-border-color;
|
|
58
|
+
@include border-radius($input-border-radius);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Sizing
|
|
62
|
+
//
|
|
63
|
+
// Remix the default form control sizing classes into new ones for easier
|
|
64
|
+
// manipulation.
|
|
65
|
+
|
|
66
|
+
.input-group-lg > .form-control,
|
|
67
|
+
.input-group-lg > .form-select,
|
|
68
|
+
.input-group-lg > .input-group-text,
|
|
69
|
+
.input-group-lg > .btn {
|
|
70
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
|
71
|
+
@include font-size($input-font-size-lg);
|
|
72
|
+
@include border-radius($input-border-radius-lg);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.input-group-sm > .form-control,
|
|
76
|
+
.input-group-sm > .form-select,
|
|
77
|
+
.input-group-sm > .input-group-text,
|
|
78
|
+
.input-group-sm > .btn {
|
|
79
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
|
80
|
+
@include font-size($input-font-size-sm);
|
|
81
|
+
@include border-radius($input-border-radius-sm);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.input-group-lg > .form-select,
|
|
85
|
+
.input-group-sm > .form-select {
|
|
86
|
+
padding-right: $form-select-padding-x + $form-select-indicator-padding;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Rounded corners
|
|
90
|
+
//
|
|
91
|
+
// These rulesets must come after the sizing ones to properly override sm and lg
|
|
92
|
+
// border-radius values when extending. They're more specific than we'd like
|
|
93
|
+
// with the `.input-group >` part, but without it, we cannot override the sizing.
|
|
94
|
+
|
|
95
|
+
// stylelint-disable-next-line no-duplicate-selectors
|
|
96
|
+
.input-group {
|
|
97
|
+
&:not(.has-validation) {
|
|
98
|
+
> :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
|
|
99
|
+
> .dropdown-toggle:nth-last-child(n + 3),
|
|
100
|
+
> .form-floating:not(:last-child) > .form-control,
|
|
101
|
+
> .form-floating:not(:last-child) > .form-select {
|
|
102
|
+
@include border-end-radius(0);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.has-validation {
|
|
107
|
+
> :nth-last-child(n + 3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
|
|
108
|
+
> .dropdown-toggle:nth-last-child(n + 4),
|
|
109
|
+
> .form-floating:nth-last-child(n + 3) > .form-control,
|
|
110
|
+
> .form-floating:nth-last-child(n + 3) > .form-select {
|
|
111
|
+
@include border-end-radius(0);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
$validation-messages: '';
|
|
116
|
+
@each $state in map-keys($form-validation-states) {
|
|
117
|
+
$validation-messages: $validation-messages + ':not(.' + unquote($state) + '-tooltip)' + ':not(.' + unquote($state) + '-feedback)';
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
> :not(:first-child):not(.dropdown-menu)#{$validation-messages} {
|
|
121
|
+
margin-left: -$input-border-width;
|
|
122
|
+
@include border-start-radius(0);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
> .form-floating:not(:first-child) > .form-control,
|
|
126
|
+
> .form-floating:not(:first-child) > .form-select {
|
|
127
|
+
@include border-start-radius(0);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Labels
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.form-label {
|
|
6
|
+
margin-bottom: $form-label-margin-bottom;
|
|
7
|
+
@include font-size($form-label-font-size);
|
|
8
|
+
font-style: $form-label-font-style;
|
|
9
|
+
font-weight: $form-label-font-weight;
|
|
10
|
+
color: $form-label-color;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// For use with horizontal and inline forms, when you need the label (or legend)
|
|
14
|
+
// text to align with the form controls.
|
|
15
|
+
.col-form-label {
|
|
16
|
+
padding-top: add($input-padding-y, $input-border-width);
|
|
17
|
+
padding-bottom: add($input-padding-y, $input-border-width);
|
|
18
|
+
margin-bottom: 0; // Override the `<legend>` default
|
|
19
|
+
@include font-size(inherit); // Override the `<legend>` default
|
|
20
|
+
font-style: $form-label-font-style;
|
|
21
|
+
font-weight: $form-label-font-weight;
|
|
22
|
+
line-height: $input-line-height;
|
|
23
|
+
color: $form-label-color;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.col-form-label-lg {
|
|
27
|
+
padding-top: add($input-padding-y-lg, $input-border-width);
|
|
28
|
+
padding-bottom: add($input-padding-y-lg, $input-border-width);
|
|
29
|
+
@include font-size($input-font-size-lg);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.col-form-label-sm {
|
|
33
|
+
padding-top: add($input-padding-y-sm, $input-border-width);
|
|
34
|
+
padding-bottom: add($input-padding-y-sm, $input-border-width);
|
|
35
|
+
@include font-size($input-font-size-sm);
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Form validation
|
|
2
|
+
//
|
|
3
|
+
// Provide feedback to users when form field values are valid or invalid. Works
|
|
4
|
+
// primarily for client-side validation via scoped `:invalid` and `:valid`
|
|
5
|
+
// pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
|
|
6
|
+
// server-side validation.
|
|
7
|
+
|
|
8
|
+
// scss-docs-start form-validation-states-loop
|
|
9
|
+
@each $state, $data in $form-validation-states {
|
|
10
|
+
@include form-validation-state($state, $data...);
|
|
11
|
+
}
|
|
12
|
+
// scss-docs-end form-validation-states-loop
|
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
height: 32px;
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
&.icon-padded {
|
|
6
|
-
|
|
6
|
+
margin: 8px;
|
|
7
7
|
}
|
|
8
8
|
&.icon-xs {
|
|
9
9
|
width: 16px;
|
|
10
10
|
height: 16px;
|
|
11
11
|
&.icon-padded {
|
|
12
|
-
|
|
12
|
+
margin: 4px;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
&.icon-sm {
|
|
16
16
|
width: 24px;
|
|
17
17
|
height: 24px;
|
|
18
18
|
&.icon-padded {
|
|
19
|
-
|
|
19
|
+
margin: 6px;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
&.icon-lg {
|
|
23
23
|
width: 48px;
|
|
24
24
|
height: 48px;
|
|
25
25
|
&.icon-padded {
|
|
26
|
-
|
|
26
|
+
margin: 12px;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
&.icon-xl {
|
|
30
30
|
width: 64px;
|
|
31
31
|
height: 64px;
|
|
32
32
|
&.icon-padded {
|
|
33
|
-
|
|
33
|
+
margin: 16px;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Alert } from './plugins/alert'
|
|
2
2
|
import { Accordion } from './plugins/accordion'
|
|
3
|
-
import { BackToTop } from './plugins/
|
|
3
|
+
import { BackToTop } from './plugins/back-to-top'
|
|
4
4
|
import { Button } from './plugins/button'
|
|
5
5
|
import { Carousel } from './plugins/carousel'
|
|
6
6
|
import { CarouselBI } from './plugins/carousel-bi'
|
|
@@ -36,6 +36,8 @@ import { Tooltip } from './plugins/tooltip'
|
|
|
36
36
|
import { TrackFocus } from './plugins/track-focus'
|
|
37
37
|
import { Transfer } from './plugins/transfer'
|
|
38
38
|
import { UploadDragDrop } from './plugins/upload-dragdrop'
|
|
39
|
+
import { VideoPlayer } from './plugins/video'
|
|
40
|
+
|
|
39
41
|
import { loadFonts } from './plugins/fonts-loader'
|
|
40
42
|
|
|
41
43
|
export {
|
|
@@ -78,5 +80,6 @@ export {
|
|
|
78
80
|
TrackFocus,
|
|
79
81
|
Transfer,
|
|
80
82
|
UploadDragDrop,
|
|
83
|
+
VideoPlayer,
|
|
81
84
|
loadFonts
|
|
82
85
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as BaseComponent } from 'bootstrap/js/dist/base-component'
|
|
2
|
+
import { GetInstanceFactory, GetOrCreateInstanceFactory } from 'bootstrap/js/dist/base-component';
|
|
3
|
+
|
|
4
|
+
import Player from "video.js/dist/types/player"
|
|
5
|
+
|
|
6
|
+
declare class VideoPlayer extends BaseComponent {
|
|
7
|
+
|
|
8
|
+
player: Player;
|
|
9
|
+
|
|
10
|
+
static get NAME(): string
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Static method which allows you to get the instance associated
|
|
14
|
+
* with a DOM element.
|
|
15
|
+
*/
|
|
16
|
+
static getInstance: GetInstanceFactory<VideoPlayer>;
|
|
17
|
+
/**
|
|
18
|
+
* Static method which allows you to get the modal instance associated with
|
|
19
|
+
* a DOM element, or create a new one in case it wasn’t initialised
|
|
20
|
+
*/
|
|
21
|
+
static getOrCreateInstance: GetOrCreateInstanceFactory<
|
|
22
|
+
VideoPlayer
|
|
23
|
+
>;
|
|
24
|
+
|
|
25
|
+
constructor(element: HTMLElement)
|
|
26
|
+
|
|
27
|
+
setYouTubeVideo(url: String): void
|
|
28
|
+
|
|
29
|
+
_getConfig(config: any): any
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { VideoPlayer }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backToTop.js","sources":["../../src/js/plugins/backToTop.js"],"sourcesContent":["import BaseComponent from 'bootstrap/js/src/base-component.js'\n\nimport EventHandler from 'bootstrap/js/src/dom/event-handler'\nimport SelectorEngine from 'bootstrap/js/src/dom/selector-engine'\nimport Manipulator from 'bootstrap/js/src/dom/manipulator'\n\nimport onDocumentScroll from './util/on-document-scroll'\nimport { documentScrollTo } from './util/tween'\n\nconst NAME = 'backtotop'\nconst DATA_KEY = 'bs.backtotop'\nconst EVENT_KEY = `.${DATA_KEY}`\n//const DATA_API_KEY = '.data-api'\n\n//const EVENT_SCROLL = `scroll${EVENT_KEY}`\nconst EVENT_CLICK = `click${EVENT_KEY}`\n\nconst CLASS_NAME_SHOW = 'back-to-top-show'\n\nconst SELECTOR_TOGGLE = '[data-bs-toggle=\"backtotop\"]'\n\nconst Default = {\n positionTop: 0,\n scrollLimit: 100,\n duration: 800,\n easing: 'easeInOutSine',\n}\n\nclass BackToTop extends BaseComponent {\n constructor(element, config) {\n super(element)\n\n this._config = this._getConfig(config)\n this._scrollCb = null\n this._isAnim = false\n this._prevScrollBehavior = ''\n\n this._bindEvents()\n }\n\n // Getters\n\n static get NAME() {\n return NAME\n }\n\n // Public\n show() {\n if (!this._element.classList.contains(CLASS_NAME_SHOW)) {\n this._element.classList.add(CLASS_NAME_SHOW)\n }\n }\n\n hide() {\n if (this._element.classList.contains(CLASS_NAME_SHOW)) {\n this._element.classList.remove(CLASS_NAME_SHOW)\n }\n }\n\n toggleShow() {\n if (typeof document !== 'undefined' && document.scrollingElement.scrollTop > this._config.scrollLimit) {\n this.show()\n } else {\n this.hide()\n }\n }\n\n scrollToTop() {\n if (!this._isAnim) {\n this._isAnim = true\n documentScrollTo(this._config.positionTop, {\n duration: this._config.duration,\n easing: this._config.easing,\n complete: () => {\n this._isAnim = false\n },\n })\n }\n }\n\n dispose() {\n if (this._scrollCb) {\n this._scrollCb.dispose()\n }\n\n super.dispose()\n }\n\n // Private\n _getConfig(config) {\n config = {\n ...Default,\n ...Manipulator.getDataAttributes(this._element),\n ...(typeof config === 'object' ? config : {}),\n }\n return config\n }\n\n _bindEvents() {\n this._scrollCb = onDocumentScroll(() => this.toggleShow())\n\n EventHandler.on(this._element, EVENT_CLICK, (evt) => {\n evt.preventDefault()\n this.scrollToTop()\n })\n }\n}\n\n/**\n * ------------------------------------------------------------------------\n * Data Api implementation\n * ------------------------------------------------------------------------\n */\n/*const toggles = SelectorEngine.find(SELECTOR_TOGGLE)\ntoggles.forEach((toggle) => {\n BackToTop.getOrCreateInstance(toggle)\n})*/\n\nonDocumentScroll(() => {\n const toggles = SelectorEngine.find(SELECTOR_TOGGLE)\n toggles.map((toggle) => {\n BackToTop.getOrCreateInstance(toggle)\n })\n})\n\nexport default BackToTop\n"],"names":[],"mappings":"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"}
|
package/src/scss/_functions.scss
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Custom functions (not available in Bootstrap)
|
|
2
|
-
@function hsb($h-hsb, $s-hsb, $b-hsb) {
|
|
3
|
-
// Checking hsb values for 0 and turning them into 1 to avoid issues with SASS compiler
|
|
4
|
-
@if $h-hsb < 1 {
|
|
5
|
-
$h-hsb: 1;
|
|
6
|
-
}
|
|
7
|
-
@if $s-hsb < 1 {
|
|
8
|
-
$s-hsb: 1;
|
|
9
|
-
}
|
|
10
|
-
@if $b-hsb < 1 {
|
|
11
|
-
$b-hsb: 1;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@if $b-hsb < 1 {
|
|
15
|
-
@return hsl(0, 0%, 0%);
|
|
16
|
-
} @else {
|
|
17
|
-
$l-hsl: calc($b-hsb / 2) * (2 - calc($s-hsb / 100));
|
|
18
|
-
$s-hsl: calc(($b-hsb * $s-hsb) / if($l-hsl < 50, $l-hsl * 2, 200 - $l-hsl * 2));
|
|
19
|
-
@return hsl($h-hsb, $s-hsl * 1%, $l-hsl * 1%);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@function hsb-with-brightness-modifier($h-hsb, $s-hsb, $b-hsb, $b-variant) {
|
|
24
|
-
$b-hsb: $b-hsb + $b-variant;
|
|
25
|
-
@return hsb($h-hsb, $s-hsb, $b-hsb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@function color-hover($color) {
|
|
29
|
-
@return desaturate(shade-color($color, 10%), 20%);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@function url-friendly-color($color) {
|
|
33
|
-
@if str-slice('#{$color}', 1, 1) == '#' {
|
|
34
|
-
@return '%23' + str-slice('#{$color}', 2, -1);
|
|
35
|
-
} @else {
|
|
36
|
-
@return $color;
|
|
37
|
-
}
|
|
38
|
-
}
|