coveragebook_components 0.8.7 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/build/coco/app.css +41 -4
- data/app/assets/build/coco/app.dev.css +5535 -0
- data/app/assets/build/coco/app.dev.js +27473 -0
- data/app/assets/build/coco/app.js +12 -11
- data/app/assets/build/coco/book.css +47 -2
- data/app/assets/build/coco/book.dev.css +2009 -0
- data/app/assets/build/coco/book.dev.js +15801 -0
- data/app/components/coco/app/layouts/page/page.css +1 -1
- data/app/components/coco/app/layouts/page/page.html.erb +3 -1
- data/app/components/coco/base/modal/modal.css +12 -0
- data/app/components/coco/base/modal/modal.html.erb +11 -1
- data/app/components/coco/base/modal/modal.rb +4 -1
- data/app/components/coco/base/modal_dialog/modal_dialog.css +6 -2
- data/app/components/coco/base/panel/panel.css +19 -0
- data/app/components/coco/base/panel/panel.html.erb +5 -0
- data/app/components/coco/base/panel/panel.rb +4 -0
- data/app/helpers/coco/app_helper.rb +4 -0
- data/lib/coco.rb +1 -1
- data/lib/scripts/esbuild-plugin-build-icons.js +1 -1
- data/lib/tasks/coco_tasks.rake +55 -6
- metadata +9 -2
@@ -14044,7 +14044,7 @@
|
|
14044
14044
|
var package_default = {
|
14045
14045
|
name: "coveragebook-components",
|
14046
14046
|
type: "module",
|
14047
|
-
version: "0.8.
|
14047
|
+
version: "0.8.9",
|
14048
14048
|
main: "index.js",
|
14049
14049
|
repository: "git@github.com:coveragebook/coco.git",
|
14050
14050
|
author: "Mark Perkins <mark@coveragebook.com>",
|
@@ -14080,23 +14080,23 @@
|
|
14080
14080
|
"fast-glob": "^3.3.1",
|
14081
14081
|
"fast-sort": "^3.2.1",
|
14082
14082
|
husky: "^8.0.3",
|
14083
|
-
jest: "^29.4.3",
|
14084
|
-
"jest-environment-jsdom": "^29.4.3",
|
14085
14083
|
"lint-staged": "^15.0.2",
|
14086
14084
|
postcss: "^8.4.31",
|
14087
14085
|
"postcss-cli": "^10.1.0",
|
14088
14086
|
"postcss-value-parser": "^4.2.0",
|
14089
|
-
prettier: "^
|
14087
|
+
prettier: "^3.1.0",
|
14090
14088
|
"release-it": "^15.10.3",
|
14091
14089
|
svgo: "^3.0.2"
|
14092
14090
|
},
|
14093
14091
|
scripts: {
|
14094
14092
|
"js:build": "node esbuild.config.js",
|
14095
|
-
"js:dev": "node esbuild.config.js --
|
14096
|
-
"js:
|
14093
|
+
"js:dev": "node esbuild.config.js --dev",
|
14094
|
+
"js:watch": "node esbuild.config.js --watch",
|
14097
14095
|
"css:build": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco",
|
14098
|
-
"css:dev": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --
|
14096
|
+
"css:dev": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --ext .dev.css",
|
14097
|
+
"css:watch": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --watch --ext .dev.css",
|
14099
14098
|
build: "npm run js:build && npm run css:build",
|
14099
|
+
"build:dev": "npm run js:dev && npm run css:dev",
|
14100
14100
|
"lint:fix": "bundle exec standardrb --fix && prettier --write .",
|
14101
14101
|
prepare: "husky install",
|
14102
14102
|
release: "release-it"
|
@@ -14112,7 +14112,8 @@
|
|
14112
14112
|
prettier: {
|
14113
14113
|
tabWidth: 2,
|
14114
14114
|
semi: true,
|
14115
|
-
singleQuote: false
|
14115
|
+
singleQuote: false,
|
14116
|
+
trailingComma: "es5"
|
14116
14117
|
},
|
14117
14118
|
"release-it": {
|
14118
14119
|
github: {
|
@@ -14125,14 +14126,14 @@
|
|
14125
14126
|
"before:init": [
|
14126
14127
|
"npm install",
|
14127
14128
|
"bundle install",
|
14128
|
-
"bundle exec rake test"
|
14129
|
+
"bundle exec rake coco:test"
|
14129
14130
|
],
|
14130
14131
|
"after:bump": [
|
14131
14132
|
"npm run lint:fix",
|
14132
14133
|
"npm run build"
|
14133
14134
|
],
|
14134
|
-
"after:version:bump": "
|
14135
|
-
"after:release": "
|
14135
|
+
"after:version:bump": "bundle exec rake coco:gem:bump_version[${version}] && bundle && cd lookbook && bundle",
|
14136
|
+
"after:release": "rake coco:gem:release[${version}]"
|
14136
14137
|
}
|
14137
14138
|
}
|
14138
14139
|
};
|
@@ -1128,15 +1128,34 @@ select {
|
|
1128
1128
|
.modal-frame {
|
1129
1129
|
display: contents;
|
1130
1130
|
}
|
1131
|
+
/*
|
1132
|
+
Limit the size of modal content when rendered in the
|
1133
|
+
host page rather than displayed as a modal.
|
1134
|
+
*/
|
1135
|
+
[data-role="inline-modal-content"] {
|
1136
|
+
margin-left: auto;
|
1137
|
+
margin-right: auto;
|
1138
|
+
max-width: 42rem;
|
1139
|
+
}
|
1140
|
+
[data-role="inline-modal-content"] [data-component="modal-dialog"] {
|
1141
|
+
border-radius: 0.75rem;
|
1142
|
+
border-width: 1px;
|
1143
|
+
--tw-border-opacity: 1;
|
1144
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
1145
|
+
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
1146
|
+
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
1147
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
1148
|
+
}
|
1131
1149
|
[data-coco][data-component="modal-dialog"] {
|
1132
1150
|
width: 100%;
|
1133
1151
|
border-radius: 0.75rem;
|
1152
|
+
}
|
1153
|
+
.modal-frame [data-coco][data-component="modal-dialog"] {
|
1134
1154
|
--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
1135
1155
|
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
1136
1156
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
1137
|
-
max-width: 42rem;
|
1157
|
+
max-width: 42rem; /* temp until sizes added */
|
1138
1158
|
}
|
1139
|
-
/* temp until sizes added */
|
1140
1159
|
[data-coco][data-component="modal-dialog"] .modal-dialog-header {
|
1141
1160
|
position: relative;
|
1142
1161
|
display: flex;
|
@@ -1360,6 +1379,29 @@ select {
|
|
1360
1379
|
[data-coco][data-component="pager-link"][data-direction="next"] .coco-icon {
|
1361
1380
|
margin-right: -0.25rem;
|
1362
1381
|
}
|
1382
|
+
[data-coco][data-component="panel"] {
|
1383
|
+
display: contents;
|
1384
|
+
}
|
1385
|
+
[data-coco][data-component="panel"] .panel-content {
|
1386
|
+
display: contents;
|
1387
|
+
}
|
1388
|
+
/* Only style Coco panels that are not rendered inside legacy panel components */
|
1389
|
+
[data-coco][data-component="panel"]:not([data-component="panel"] [data-component="panel"]) {
|
1390
|
+
display: block;
|
1391
|
+
border-radius: 0.75rem;
|
1392
|
+
border-width: 1px;
|
1393
|
+
--tw-border-opacity: 1;
|
1394
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
1395
|
+
--tw-bg-opacity: 1;
|
1396
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
1397
|
+
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
1398
|
+
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
1399
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
1400
|
+
}
|
1401
|
+
[data-coco][data-component="panel"]:not([data-component="panel"] [data-component="panel"]) .panel-content {
|
1402
|
+
display: block;
|
1403
|
+
padding: max(min(5%, 2rem), 1rem);
|
1404
|
+
}
|
1363
1405
|
[data-coco][data-component="placeholder"] {
|
1364
1406
|
padding: 1rem;
|
1365
1407
|
}
|
@@ -1869,6 +1911,9 @@ select {
|
|
1869
1911
|
-o-object-fit: contain;
|
1870
1912
|
object-fit: contain;
|
1871
1913
|
}
|
1914
|
+
.visible {
|
1915
|
+
visibility: visible;
|
1916
|
+
}
|
1872
1917
|
.static {
|
1873
1918
|
position: static;
|
1874
1919
|
}
|