coveragebook_components 0.12.0 → 0.12.2
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 +28 -8
- data/app/assets/build/coco/app.js +1 -1
- data/app/components/coco/app/blocks/plan_picker/plan_picker.css +15 -5
- data/app/components/coco/app/blocks/plan_picker/plan_picker.html.erb +13 -11
- data/app/components/coco/app/layouts/application/application.css +2 -2
- data/app/components/coco/app/layouts/page/page.css +5 -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: 1d799f5fac0e53c99775d0174e178da470c1a7ba427c1d6741f1526c068e5dd3
|
4
|
+
data.tar.gz: 4448b34b9fd7941d55ee90b6d41f14f01c5faee0cec4db1689d37a7145e3f5f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71e3dcd290f3ce42dc3acd34560abd5fba28459ef5b4ea19e1510d306512160a778d2fb2704da14acf4e7832f8670078712e2d43b9a1a4498107f4221602948f
|
7
|
+
data.tar.gz: 15ff411e85785865572b00b90527af8bdba5b0b66d0fb4f4fcc8e43fa76a1554a85c3e40328a03412f852a7968b063363619c36d2030e2c1184c43142e17612c
|
@@ -3727,7 +3727,7 @@ select{
|
|
3727
3727
|
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
3728
3728
|
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
|
3729
3729
|
}
|
3730
|
-
[data-coco][data-component="app-plan-picker"] .plan-picker-controls
|
3730
|
+
[data-coco][data-component="app-plan-picker"] .plan-picker-controls [data-component="app-option-bar"]{
|
3731
3731
|
margin-left: auto;
|
3732
3732
|
margin-right: auto;
|
3733
3733
|
}
|
@@ -3771,9 +3771,7 @@ select{
|
|
3771
3771
|
}
|
3772
3772
|
@container (min-width: 420px) {
|
3773
3773
|
[data-coco][data-component="app-plan-picker"] .plan-picker-controls{
|
3774
|
-
|
3775
|
-
align-items: center;
|
3776
|
-
justify-content: space-between;
|
3774
|
+
position: relative;
|
3777
3775
|
}
|
3778
3776
|
[data-coco][data-component="app-plan-picker"] .plan-picker-controls > :not([hidden]) ~ :not([hidden]){
|
3779
3777
|
--tw-space-y-reverse: 0;
|
@@ -3781,11 +3779,20 @@ select{
|
|
3781
3779
|
margin-bottom: calc(0px * var(--tw-space-y-reverse));
|
3782
3780
|
}
|
3783
3781
|
|
3784
|
-
[data-coco][data-component="app-plan-picker"] .plan-picker-controls
|
3782
|
+
[data-coco][data-component="app-plan-picker"] .plan-picker-controls .plan-picker-currency{
|
3783
|
+
position: absolute;
|
3784
|
+
left: 0px;
|
3785
|
+
top: 0px;
|
3785
3786
|
margin-left: 0px;
|
3786
3787
|
margin-right: 0px;
|
3787
3788
|
}
|
3788
3789
|
|
3790
|
+
[data-coco][data-component="app-plan-picker"] .plan-picker-controls .plan-picker-currency
|
3791
|
+
+ .plan-picker-interval
|
3792
|
+
> [data-component="app-option-bar"]{
|
3793
|
+
margin-right: 0px;
|
3794
|
+
}
|
3795
|
+
|
3789
3796
|
[data-coco][data-component="app-plan-picker"] .plan-picker-plans{
|
3790
3797
|
display: grid;
|
3791
3798
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
@@ -3794,7 +3801,17 @@ select{
|
|
3794
3801
|
}
|
3795
3802
|
}
|
3796
3803
|
@container (min-width: 984px) {
|
3804
|
+
[data-coco][data-component="app-plan-picker"] .plan-picker-controls .plan-picker-interval > [data-component="app-option-bar"]{
|
3805
|
+
margin-left: auto !important;
|
3806
|
+
margin-right: auto !important;
|
3807
|
+
}
|
3808
|
+
|
3797
3809
|
[data-coco][data-component="app-plan-picker"] .plan-picker-controls .plan-picker-view-toggle{
|
3810
|
+
position: absolute;
|
3811
|
+
right: 0px;
|
3812
|
+
top: 0px;
|
3813
|
+
margin-left: 0px;
|
3814
|
+
margin-right: 0px;
|
3798
3815
|
display: block;
|
3799
3816
|
}
|
3800
3817
|
|
@@ -6752,12 +6769,12 @@ select{
|
|
6752
6769
|
grid-template-columns: min-content 1fr;
|
6753
6770
|
}
|
6754
6771
|
}
|
6755
|
-
@media (min-width: 576px) and (max-width:
|
6772
|
+
@media (min-width: 576px) and (max-width: 1200px) {
|
6756
6773
|
[data-coco][data-component="application-layout"] {
|
6757
6774
|
--sidebar-nav-width: 4rem
|
6758
6775
|
}
|
6759
6776
|
}
|
6760
|
-
@media (min-width:
|
6777
|
+
@media (min-width: 1200px) {
|
6761
6778
|
[data-coco][data-component="application-layout"] {
|
6762
6779
|
--sidebar-nav-width: 6rem
|
6763
6780
|
}
|
@@ -6823,6 +6840,7 @@ select{
|
|
6823
6840
|
}
|
6824
6841
|
}
|
6825
6842
|
[data-coco][data-component="page-layout"] .page-controls{
|
6843
|
+
pointer-events: none;
|
6826
6844
|
position: fixed;
|
6827
6845
|
top: 50%;
|
6828
6846
|
right: 0px;
|
@@ -6830,9 +6848,11 @@ select{
|
|
6830
6848
|
--tw-translate-y: -50%;
|
6831
6849
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
6832
6850
|
justify-content: space-between;
|
6833
|
-
|
6834
6851
|
left: var(--sidebar-nav-width, 0);
|
6835
6852
|
}
|
6853
|
+
[data-coco][data-component="page-layout"] .page-controls > *{
|
6854
|
+
pointer-events: auto;
|
6855
|
+
}
|
6836
6856
|
[data-coco][data-component="page-layout"] .page-controls .page-control-next{
|
6837
6857
|
margin-left: auto;
|
6838
6858
|
}
|
@@ -14048,7 +14048,7 @@
|
|
14048
14048
|
// ../../../package.json
|
14049
14049
|
var package_default = {
|
14050
14050
|
name: "coveragebook-components",
|
14051
|
-
version: "0.12.
|
14051
|
+
version: "0.12.2",
|
14052
14052
|
repository: "git@github.com:coveragebook/coco.git",
|
14053
14053
|
license: "NO LICENSE",
|
14054
14054
|
author: "Mark Perkins <mark@coveragebook.com>",
|
@@ -5,7 +5,7 @@
|
|
5
5
|
.plan-picker-controls {
|
6
6
|
@apply space-y-4;
|
7
7
|
|
8
|
-
|
8
|
+
[data-component="app-option-bar"] {
|
9
9
|
@apply mx-auto;
|
10
10
|
}
|
11
11
|
|
@@ -46,10 +46,16 @@
|
|
46
46
|
|
47
47
|
@container (min-width: 420px) {
|
48
48
|
.plan-picker-controls {
|
49
|
-
@apply
|
49
|
+
@apply relative space-y-0;
|
50
50
|
|
51
|
-
|
52
|
-
@apply mx-0;
|
51
|
+
.plan-picker-currency {
|
52
|
+
@apply absolute left-0 top-0 mx-0;
|
53
|
+
}
|
54
|
+
|
55
|
+
.plan-picker-currency
|
56
|
+
+ .plan-picker-interval
|
57
|
+
> [data-component="app-option-bar"] {
|
58
|
+
@apply mr-0;
|
53
59
|
}
|
54
60
|
}
|
55
61
|
|
@@ -60,8 +66,12 @@
|
|
60
66
|
|
61
67
|
@container (min-width: 984px) {
|
62
68
|
.plan-picker-controls {
|
69
|
+
.plan-picker-interval > [data-component="app-option-bar"] {
|
70
|
+
@apply !mx-auto;
|
71
|
+
}
|
72
|
+
|
63
73
|
.plan-picker-view-toggle {
|
64
|
-
@apply block;
|
74
|
+
@apply block absolute right-0 top-0 mx-0;
|
65
75
|
}
|
66
76
|
}
|
67
77
|
|
@@ -1,15 +1,17 @@
|
|
1
|
-
<%= render component_tag(x: {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}) do %>
|
1
|
+
<%= render component_tag(x: slider? ? {
|
2
|
+
data: "appPlanPicker",
|
3
|
+
":class": "{'slider-active': shouldPaginate}",
|
4
|
+
"options": "options",
|
5
|
+
"@resize.window": "calculateOffset"
|
6
|
+
} : {}) do %>
|
7
7
|
<div class="plan-picker-container">
|
8
8
|
<div class="plan-picker-controls">
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
<% if currency_selector? %>
|
10
|
+
<div class="plan-picker-currency" data-role="currency-selector">
|
11
|
+
<%= currency_selector %>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
<div class="plan-picker-interval" data-role="interval-selector">
|
13
15
|
<%= interval_selector %>
|
14
16
|
</div>
|
15
17
|
<% if view_toggle? %>
|
@@ -19,7 +21,7 @@
|
|
19
21
|
<% end %>
|
20
22
|
</div>
|
21
23
|
<%= space 4 %>
|
22
|
-
<div x-ref="slider" class="plan-picker-slider" x-cloak
|
24
|
+
<div x-ref="slider" class="plan-picker-slider" <%= "x-cloak" if slider? %>>
|
23
25
|
<div class="plan-picker-slider-container">
|
24
26
|
<div class="plan-picker-plans" x-ref="sliderItems">
|
25
27
|
<% plans.each do |plan| %>
|
@@ -107,11 +107,11 @@
|
|
107
107
|
}
|
108
108
|
}
|
109
109
|
|
110
|
-
@media screen(sm) and screen(max-
|
110
|
+
@media screen(sm) and screen(max-xl) {
|
111
111
|
--sidebar-nav-width: theme(width.16);
|
112
112
|
}
|
113
113
|
|
114
|
-
@media screen(
|
114
|
+
@media screen(xl) {
|
115
115
|
--sidebar-nav-width: theme(width.24);
|
116
116
|
}
|
117
117
|
|
@@ -5,10 +5,13 @@
|
|
5
5
|
}
|
6
6
|
|
7
7
|
.page-controls {
|
8
|
-
@apply fixed top-1/2 -translate-y-1/2 right-0 flex justify-between;
|
9
|
-
|
8
|
+
@apply fixed top-1/2 -translate-y-1/2 right-0 flex justify-between pointer-events-none;
|
10
9
|
left: var(--sidebar-nav-width, 0);
|
11
10
|
|
11
|
+
> * {
|
12
|
+
@apply pointer-events-auto;
|
13
|
+
}
|
14
|
+
|
12
15
|
.page-control-next {
|
13
16
|
@apply ml-auto;
|
14
17
|
}
|
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.12.
|
4
|
+
version: 0.12.2
|
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-12-
|
11
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|