Skip to content

Commit 5ec6d72

Browse files
committed
supporting Rails 7 importmap through rollup, bumping to 3.1.0
1 parent b75e568 commit 5ec6d72

File tree

7 files changed

+701
-7
lines changed

7 files changed

+701
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v3.1.0 Release - 2022-06-06
4+
5+
- supporting Rails 7 importmap
6+
37
## v3.0.0 Release - 2022-03-04
48

59
- same as v3.0.0.rc2

dist/matestack-ui-bootstrap.css

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
.matestack-page-container .matestack-page-wrapper {
2+
opacity: 1;
3+
transition: opacity 0.2s ease-in-out;
4+
}
5+
.matestack-page-container .matestack-page-wrapper.loading {
6+
opacity: 0;
7+
}
8+
.matestack-page-container .loading-state-element-wrapper {
9+
opacity: 0;
10+
transition: opacity 0.3s ease-in-out;
11+
}
12+
.matestack-page-container .loading-state-element-wrapper.loading {
13+
opacity: 1;
14+
}
15+
16+
.matestack-async-component-container {
17+
opacity: 1;
18+
transition: opacity 0.2s ease-in-out;
19+
}
20+
.matestack-async-component-container.loading {
21+
opacity: 0;
22+
}
23+
24+
.matestack-isolated-component-container {
25+
opacity: 1;
26+
transition: opacity 0.2s ease-in-out;
27+
}
28+
.matestack-isolated-component-container.loading {
29+
opacity: 0;
30+
}
31+
32+
.matestack-app-wrapper {
33+
overflow-x: hidden;
34+
}
35+
36+
.content-wrapper {
37+
position: relative;
38+
z-index: 1;
39+
min-height: 101vh;
40+
transition: 0.5s;
41+
}
42+
@media (max-width: 992px) {
43+
.content-wrapper.sidebar-open {
44+
margin-left: -300px;
45+
}
46+
}
47+
48+
.sidebar-wrapper {
49+
position: relative;
50+
z-index: 10;
51+
transition: 0.5s;
52+
flex-grow: 0; /* do not grow - initial value: 0 */
53+
flex-shrink: 0; /* do not shrink - initial value: 1 */
54+
flex-basis: 300px; /* width/height - initial value: auto */
55+
}
56+
.sidebar-wrapper .sidebar-toggler {
57+
transition: 0.5s;
58+
position: relative;
59+
left: 290px;
60+
}
61+
.sidebar-wrapper.closed {
62+
margin-left: -300px;
63+
}
64+
.sidebar-wrapper.open {
65+
margin-left: 0px;
66+
}
67+
@media (max-width: 992px) {
68+
.sidebar-wrapper {
69+
margin-left: -300px;
70+
}
71+
.sidebar-wrapper.open {
72+
margin-left: 0px;
73+
}
74+
}
75+
.sidebar-wrapper .sidebar {
76+
min-height: 100vh;
77+
height: 100%;
78+
}
79+
.sidebar-wrapper .sidebar .sidebar-top {
80+
margin-top: -35px;
81+
}
82+
.sidebar-wrapper .sidebar .sidebar-top a {
83+
text-decoration: none;
84+
}
85+
.sidebar-wrapper .sidebar .list-group-item.active {
86+
margin-top: 0px !important;
87+
}
88+
.sidebar-wrapper .sidebar .list-group-item.active-child {
89+
color: var(--bs-white);
90+
background-color: var(--bs-primary);
91+
}
92+
93+
.smart-collection .pagination .page-item {
94+
cursor: pointer;
95+
}
96+
.smart-collection .pagination .page-item.disabled {
97+
cursor: initial;
98+
}

dist/matestack-ui-bootstrap.esm.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/matestack/ui/bootstrap/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Matestack
22
module Ui
33
module Bootstrap
4-
VERSION = '3.0.0'
4+
VERSION = '3.1.0'
55
end
66
end
77
end

package.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
{
22
"name": "matestack-ui-bootstrap",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"license": "MIT",
5-
"main": "./lib/matestack/ui/bootstrap/index.js",
5+
"module": "./dist/matestack-ui-bootstrap.esm.js",
66
"files": [
77
"lib/**/*.js",
88
"lib/**/*.scss",
9+
"dist/**/*.js",
10+
"dist/**/*.css",
911
"README",
1012
"logo.png",
1113
"LICENSE"
1214
],
1315
"dependencies": {
1416
"@popperjs/core": "^2.5.4",
1517
"bootstrap": "^5.0.0",
16-
"matestack-ui-vuejs": "^3.0.0-rc2"
18+
"matestack-ui-vuejs": "^3.1.0"
19+
},
20+
"devDependencies": {
21+
"@rollup/plugin-commonjs": "^21.0.3",
22+
"@rollup/plugin-json": "^4.1.0",
23+
"@rollup/plugin-node-resolve": "^11.0.1",
24+
"rollup": "^2.35.1",
25+
"rollup-plugin-terser": "^7.0.2",
26+
"rollup-plugin-scss": "3",
27+
"sass": "^1.52.2"
28+
},
29+
"scripts": {
30+
"build": "rollup --config rollup.config.js"
1731
},
1832
"exports": {
1933
".": "./lib/matestack/ui/bootstrap/index.js"

rollup.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import resolve from "@rollup/plugin-node-resolve"
2+
import commonjs from "@rollup/plugin-commonjs"
3+
import json from '@rollup/plugin-json';
4+
import { terser } from "rollup-plugin-terser"
5+
import scss from 'rollup-plugin-scss'
6+
7+
const terserOptions = {
8+
mangle: true,
9+
compress: true
10+
}
11+
12+
export default [
13+
{
14+
input: "./lib/matestack/ui/bootstrap/index.js",
15+
external: ['matestack-ui-vuejs', 'bootstrap'],
16+
output: [
17+
{
18+
file: "./dist/matestack-ui-bootstrap.esm.js",
19+
format: "es",
20+
globals: { 'matestack-ui-vuejs': 'MatestackUiVueJs', bootstrap: 'bootstrap' },
21+
}
22+
],
23+
plugins: [
24+
resolve({ browser: true }),
25+
json(),
26+
commonjs(),
27+
scss({ output: './dist/matestack-ui-bootstrap.css' }),
28+
terser(terserOptions)
29+
]
30+
}
31+
]

0 commit comments

Comments
 (0)