coveragebook_components 0.5.3 → 0.5.5
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 +6 -8
- data/app/assets/build/coco/app.js +10 -1
- data/app/components/coco/app/blocks/slide_editor/slide_editor.html.erb +1 -1
- data/app/components/coco/app/blocks/slide_editor/slide_editor.js +9 -0
- data/app/components/coco/app/blocks/slide_editor/slide_editor.rb +1 -1
- data/app/components/coco/base/button/button.css +1 -2
- data/lib/coco.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98424c832e1e2c4770de3a458bf8b2fa2321440db76103e7f2895e812ef82385
|
4
|
+
data.tar.gz: 102b0d7dc803bb51ddd3ac1b154912327abb9770680664af6889c872457defb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d1e4d93512680ad8c334ef9f684cc382bbc869a0901cb8cee6b22196cacafda103d4d2323a5eae980e889b36f871688807d750ccead781399b0491bf829646a
|
7
|
+
data.tar.gz: dd7a7a48d456ccfee151dab803c9e504f339b5f1d526bad606639e3ea37944d5ca92b6267064097a48c0868c805e70b3a0e016d416dd250abeb8170f67031cfd
|
@@ -726,18 +726,16 @@ select{
|
|
726
726
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
727
727
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
728
728
|
transition-duration: 150ms;
|
729
|
-
outline: 2px solid transparent;
|
730
|
-
outline-offset: 2px}
|
731
|
-
[data-coco].coco-button:focus-visible{
|
732
|
-
outline-width: 0px}
|
733
|
-
[data-coco].coco-button {
|
734
729
|
width: -moz-min-content;
|
735
|
-
width: min-content
|
736
|
-
}
|
730
|
+
width: min-content}
|
737
731
|
[data-coco].coco-button .button-element{
|
738
732
|
display: inline-flex;
|
739
733
|
width: 100%;
|
740
|
-
text-decoration-line: none
|
734
|
+
text-decoration-line: none;
|
735
|
+
outline: 2px solid transparent;
|
736
|
+
outline-offset: 2px}
|
737
|
+
[data-coco].coco-button .button-element:focus-visible{
|
738
|
+
outline-width: 0px}
|
741
739
|
[data-coco].coco-button .button-inner{
|
742
740
|
margin-left: auto;
|
743
741
|
margin-right: auto;
|
@@ -14604,7 +14604,7 @@
|
|
14604
14604
|
var package_default = {
|
14605
14605
|
name: "coveragebook-components",
|
14606
14606
|
type: "module",
|
14607
|
-
version: "0.5.
|
14607
|
+
version: "0.5.5",
|
14608
14608
|
main: "index.js",
|
14609
14609
|
repository: "git@github.com:coveragebook/coco.git",
|
14610
14610
|
author: "Mark Perkins <mark@coveragebook.com>",
|
@@ -14634,6 +14634,7 @@
|
|
14634
14634
|
"tippy.js": "^6.3.7"
|
14635
14635
|
},
|
14636
14636
|
devDependencies: {
|
14637
|
+
"@percy/cli": "^1.26.1",
|
14637
14638
|
"alias-hq": "^6.1.0",
|
14638
14639
|
"alpinejs-tash": "^1.0.9",
|
14639
14640
|
autoprefixer: "^10.4.13",
|
@@ -29698,9 +29699,17 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
29698
29699
|
},
|
29699
29700
|
undo(name, value) {
|
29700
29701
|
this[name] = value;
|
29702
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
29701
29703
|
},
|
29702
29704
|
redo(name, value) {
|
29703
29705
|
this[name] = value;
|
29706
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
29707
|
+
},
|
29708
|
+
updateTextareaSizes() {
|
29709
|
+
const inputs = this.$root.querySelectorAll(
|
29710
|
+
"[data-component='app-seamless-textarea']"
|
29711
|
+
);
|
29712
|
+
Array.from(inputs).forEach((el) => getData(el).onResize());
|
29704
29713
|
},
|
29705
29714
|
handleImageDrop(event) {
|
29706
29715
|
this.dragging = false;
|
@@ -55,10 +55,19 @@ export default CocoComponent("appSlideEditor", (data) => {
|
|
55
55
|
|
56
56
|
undo(name, value) {
|
57
57
|
this[name] = value;
|
58
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
58
59
|
},
|
59
60
|
|
60
61
|
redo(name, value) {
|
61
62
|
this[name] = value;
|
63
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
64
|
+
},
|
65
|
+
|
66
|
+
updateTextareaSizes() {
|
67
|
+
const inputs = this.$root.querySelectorAll(
|
68
|
+
"[data-component='app-seamless-textarea']"
|
69
|
+
);
|
70
|
+
Array.from(inputs).forEach((el) => getData(el).onResize());
|
62
71
|
},
|
63
72
|
|
64
73
|
handleImageDrop(event) {
|
@@ -18,7 +18,7 @@ module Coco
|
|
18
18
|
renders_one :text_1, ->(value = nil, **textarea_options) do
|
19
19
|
Coco::App::Elements::SeamlessTextarea.new(**textarea_options,
|
20
20
|
value: value,
|
21
|
-
multiline:
|
21
|
+
multiline: true,
|
22
22
|
data: {role: "text-1-editor"},
|
23
23
|
x: {modelable: "value", model: "text1"})
|
24
24
|
end
|
@@ -1,11 +1,10 @@
|
|
1
1
|
@layer components {
|
2
2
|
[data-coco].coco-button {
|
3
3
|
@apply inline-flex transition-colors w-auto bg-transparent text-current border border-transparent select-none flex-none;
|
4
|
-
@apply outline-none focus-visible:outline-0;
|
5
4
|
width: min-content;
|
6
5
|
|
7
6
|
.button-element {
|
8
|
-
@apply inline-flex w-full no-underline;
|
7
|
+
@apply inline-flex w-full no-underline outline-none focus-visible:outline-0;
|
9
8
|
}
|
10
9
|
|
11
10
|
.button-inner {
|
data/lib/coco.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveragebook_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|