coveragebook_components 0.18.3 → 0.18.5
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.
- checksums.yaml +4 -4
- data/app/assets/build/coco/coco.css +7 -4
- data/app/assets/build/coco/coco.js +1 -1
- data/app/components/coco/buttons/button/button.css +2 -1
- data/app/components/coco/buttons/button_group/button_group.css +17 -7
- data/app/helpers/coco/components_helper.rb +9 -1
- data/lib/coco.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ca47f01aabcdf890dac1454fc6df0d1620361b306410a582f8d0d3f215c3795
|
|
4
|
+
data.tar.gz: 13d6f82155eb49d6be133f7c29513f709e0e62a75916c4f5fe8399fdde8656a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dccd6ee2a240b78d166aa77a03739ce634fb82ae26e8516a5ba6e7b1bf0ba407acb0881b4d68ab01d5ce92df37953cad773399714af7523b75dc49be97433402
|
|
7
|
+
data.tar.gz: 0ef7069abf0016b7b8c30a409c1ae5177f1b076767230b5c76d95c6b92a623141ef6228964666a2cb5f27acc51374d9f3ab74b92b1cccde769d839019eaaeb80
|
|
@@ -771,14 +771,17 @@ select{
|
|
|
771
771
|
gap: 0.5rem;
|
|
772
772
|
text-align: center;
|
|
773
773
|
width: -moz-fit-content;
|
|
774
|
-
width: fit-content
|
|
774
|
+
width: fit-content;
|
|
775
|
+
min-width: 1%
|
|
775
776
|
}
|
|
776
777
|
|
|
777
778
|
[data-coco].coco-button .button-content{
|
|
778
779
|
position: relative;
|
|
779
780
|
order: 2;
|
|
780
|
-
display: inline-
|
|
781
|
+
display: inline-block;
|
|
781
782
|
align-items: center;
|
|
783
|
+
overflow: hidden;
|
|
784
|
+
text-overflow: ellipsis;
|
|
782
785
|
white-space: nowrap;
|
|
783
786
|
line-height: 1
|
|
784
787
|
}
|
|
@@ -2263,13 +2266,13 @@ select{
|
|
|
2263
2266
|
column-gap: 0px
|
|
2264
2267
|
}
|
|
2265
2268
|
|
|
2266
|
-
[data-coco][data-component="button-group"][data-segmented="true"] .coco-button-wrapper:not(:first-child) .coco-button{
|
|
2269
|
+
[data-coco][data-component="button-group"][data-segmented="true"] .button-group-buttons > *:not(:first-child) .coco-button-wrapper:not(.button-dropdown .coco-button-wrapper) .coco-button, [data-coco][data-component="button-group"][data-segmented="true"] .button-group-buttons > .coco-button-wrapper:not(:first-child):not(.button-dropdown .coco-button-wrapper) .coco-button{
|
|
2267
2270
|
border-top-left-radius: 0px;
|
|
2268
2271
|
border-bottom-left-radius: 0px;
|
|
2269
2272
|
border-left-width: 0px
|
|
2270
2273
|
}
|
|
2271
2274
|
|
|
2272
|
-
[data-coco][data-component="button-group"][data-segmented="true"] .coco-button-wrapper:not(:last-child) .coco-button{
|
|
2275
|
+
[data-coco][data-component="button-group"][data-segmented="true"] .button-group-buttons > *:not(:last-child) .coco-button-wrapper:not(.button-dropdown .coco-button-wrapper) .coco-button, [data-coco][data-component="button-group"][data-segmented="true"] .button-group-buttons > .coco-button-wrapper:not(:last-child):not(.button-dropdown .coco-button-wrapper) .coco-button{
|
|
2273
2276
|
border-top-right-radius: 0px;
|
|
2274
2277
|
border-bottom-right-radius: 0px
|
|
2275
2278
|
}
|
|
@@ -15444,7 +15444,7 @@ var alpine_default = import_alpinejs.default;
|
|
|
15444
15444
|
// ../../../package.json
|
|
15445
15445
|
var package_default = {
|
|
15446
15446
|
name: "coveragebook-components",
|
|
15447
|
-
version: "0.18.
|
|
15447
|
+
version: "0.18.5",
|
|
15448
15448
|
repository: "git@github.com:coveragebook/coco.git",
|
|
15449
15449
|
license: "NO LICENSE",
|
|
15450
15450
|
author: "Mark Perkins <mark@coveragebook.com>",
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
.button-inner {
|
|
11
11
|
@apply inline-flex items-center text-center mx-auto gap-2;
|
|
12
12
|
width: fit-content;
|
|
13
|
+
min-width: 1%;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.button-content {
|
|
16
|
-
@apply whitespace-nowrap relative leading-none inline-
|
|
17
|
+
@apply whitespace-nowrap relative leading-none inline-block items-center order-2 truncate;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.button-state-content {
|
|
@@ -35,14 +35,24 @@
|
|
|
35
35
|
&[data-segmented="true"] {
|
|
36
36
|
.button-group-buttons {
|
|
37
37
|
@apply gap-x-0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.coco-button-wrapper:not(:first-child) .coco-button {
|
|
41
|
-
@apply rounded-l-none border-l-0;
|
|
42
|
-
}
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
> *:not(:first-child) .coco-button-wrapper,
|
|
40
|
+
> .coco-button-wrapper:not(:first-child) {
|
|
41
|
+
&:not(.button-dropdown .coco-button-wrapper) {
|
|
42
|
+
.coco-button {
|
|
43
|
+
@apply rounded-l-none border-l-0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> *:not(:last-child) .coco-button-wrapper,
|
|
49
|
+
> .coco-button-wrapper:not(:last-child) {
|
|
50
|
+
&:not(.button-dropdown .coco-button-wrapper) {
|
|
51
|
+
.coco-button {
|
|
52
|
+
@apply rounded-r-none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
46
56
|
}
|
|
47
57
|
|
|
48
58
|
&[data-floating="true"] {
|
|
@@ -27,6 +27,10 @@ module Coco
|
|
|
27
27
|
render(Coco::ButtonGroup.new(**), &)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
def coco_menu(**, &)
|
|
31
|
+
render(Coco::Menu.new(**), &)
|
|
32
|
+
end
|
|
33
|
+
|
|
30
34
|
def coco_menu_button(text = nil, **, &)
|
|
31
35
|
render(Coco::MenuButton.new(text: text, **), &)
|
|
32
36
|
end
|
|
@@ -242,7 +246,11 @@ module Coco
|
|
|
242
246
|
render(Coco::SeamlessTextarea.new(**), &)
|
|
243
247
|
end
|
|
244
248
|
|
|
245
|
-
# Utilties
|
|
249
|
+
# Utilties
|
|
250
|
+
|
|
251
|
+
def coco_dropdown(**, &)
|
|
252
|
+
render(Coco::Dropdown.new(**), &)
|
|
253
|
+
end
|
|
246
254
|
|
|
247
255
|
def coco_placeholder(text_content = nil, **, &)
|
|
248
256
|
render(Coco::Placeholder.new(text_content:, **), &)
|
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.18.
|
|
4
|
+
version: 0.18.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: 2024-05-
|
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -1771,7 +1771,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1771
1771
|
- !ruby/object:Gem::Version
|
|
1772
1772
|
version: '0'
|
|
1773
1773
|
requirements: []
|
|
1774
|
-
rubygems_version: 3.
|
|
1774
|
+
rubygems_version: 3.5.10
|
|
1775
1775
|
signing_key:
|
|
1776
1776
|
specification_version: 4
|
|
1777
1777
|
summary: CoverageBook component library
|