coveragebook_components 0.8.0.beta.1 → 0.8.0.beta.2
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/app.css +184 -92
- data/app/assets/build/coco/app.js +12 -4
- data/app/components/coco/app/blocks/header/header.css +6 -2
- data/app/components/coco/app/blocks/header/header.rb +2 -2
- data/app/components/coco/app/blocks/sidebar_nav/sidebar_nav.css +1 -1
- data/app/components/coco/app/blocks/sidebar_nav_item/sidebar_nav_item.css +2 -2
- data/app/components/coco/app/elements/alert/alert.css +59 -10
- data/app/components/coco/app/elements/alert/alert.html.erb +1 -0
- data/app/components/coco/app/elements/alert/alert.js +12 -3
- data/app/components/coco/app/elements/button/button.css +7 -6
- data/app/components/coco/app/elements/button/button.rb +1 -0
- data/app/components/coco/app/elements/menu/menu.css +2 -1
- data/lib/coco.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b89e4f8770587065a0d3967f7f767ff9b420e36e30abf97c3dc72bcf3bc41d34
|
|
4
|
+
data.tar.gz: 70662dbab01723243b282c24ea050f697f639044acf91157648945dfe52b9a1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb05436465f98461bbbb58148fe1519e7e0b4bf2981328d0d16aa4a05312aa2755ee24f07de5a4137d138fd42ba0fa002cc4320cae9a687f29421848b9d651f6
|
|
7
|
+
data.tar.gz: 6dbc15f4ab52cf871137891789fed68a544ed90b824f11381b84559de0c4be3fb49129337a8a744f8c43d444fa23f0da2cba2b82605e29596640019aa698210b
|
|
@@ -1273,10 +1273,6 @@ select{
|
|
|
1273
1273
|
--tw-translate-x: 0.5rem;
|
|
1274
1274
|
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));
|
|
1275
1275
|
align-items: center}
|
|
1276
|
-
@container (min-width: 56rem){
|
|
1277
|
-
|
|
1278
|
-
[data-coco][data-component="app-header"] .header-mobile-controls{
|
|
1279
|
-
display: none}}
|
|
1280
1276
|
@media (min-width: 576px){
|
|
1281
1277
|
|
|
1282
1278
|
[data-coco][data-component="app-header"] .header-mobile-controls{
|
|
@@ -1287,9 +1283,16 @@ select{
|
|
|
1287
1283
|
[data-coco][data-component="app-header"] .header-mobile-controls{
|
|
1288
1284
|
--tw-translate-x: 1.5rem;
|
|
1289
1285
|
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))}}
|
|
1286
|
+
@media (min-width: 992px){
|
|
1287
|
+
|
|
1288
|
+
[data-coco][data-component="app-header"] .header-mobile-controls{
|
|
1289
|
+
display: none}}
|
|
1290
|
+
[data-coco][data-component="app-header"] .coco-button[data-variant="highlighted"]{
|
|
1291
|
+
--tw-text-opacity: 1;
|
|
1292
|
+
color: rgb(252 211 77 / var(--tw-text-opacity))}
|
|
1290
1293
|
[data-coco][data-component="app-header"].with-nav-drawer .header-link-group{
|
|
1291
1294
|
display: none}
|
|
1292
|
-
@
|
|
1295
|
+
@media (min-width: 992px){
|
|
1293
1296
|
|
|
1294
1297
|
[data-coco][data-component="app-header"].with-nav-drawer .header-link-group{
|
|
1295
1298
|
display: flex}}
|
|
@@ -1450,7 +1453,7 @@ select{
|
|
|
1450
1453
|
[data-coco][data-component="app-sidebar-nav"] .nav-actions-button .coco-icon{
|
|
1451
1454
|
height: 2rem;
|
|
1452
1455
|
width: 2rem}}
|
|
1453
|
-
@media (min-width:
|
|
1456
|
+
@media (min-width: 992px) {
|
|
1454
1457
|
|
|
1455
1458
|
[data-coco][data-component="app-sidebar-nav"]{
|
|
1456
1459
|
display: block;
|
|
@@ -1598,7 +1601,7 @@ select{
|
|
|
1598
1601
|
--tw-bg-opacity: 1;
|
|
1599
1602
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity))}
|
|
1600
1603
|
}
|
|
1601
|
-
@media (min-width:
|
|
1604
|
+
@media (min-width: 992px) {
|
|
1602
1605
|
|
|
1603
1606
|
[data-coco][data-component="app-sidebar-nav-item"]{
|
|
1604
1607
|
padding-top: 1.25rem;
|
|
@@ -1750,7 +1753,7 @@ select{
|
|
|
1750
1753
|
line-height: 1.25rem;
|
|
1751
1754
|
width: 240px}
|
|
1752
1755
|
}
|
|
1753
|
-
@media (min-width:
|
|
1756
|
+
@media (min-width: 992px) {
|
|
1754
1757
|
.sidebar-nav-menu .sidebar-nav-menu-select{
|
|
1755
1758
|
font-size: 1rem;
|
|
1756
1759
|
line-height: 1.5rem}
|
|
@@ -2102,17 +2105,42 @@ select{
|
|
|
2102
2105
|
--tw-text-opacity: 1;
|
|
2103
2106
|
color: rgb(17 24 39 / var(--tw-text-opacity))}
|
|
2104
2107
|
/* Condensed */
|
|
2105
|
-
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-container {
|
|
2109
|
+
min-height: 3rem;
|
|
2110
|
+
padding-top: 0.375rem;
|
|
2111
|
+
padding-bottom: 0.375rem;
|
|
2112
|
+
}
|
|
2113
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-icon{
|
|
2114
|
+
background-color: transparent !important;
|
|
2115
|
+
padding: 0px}
|
|
2108
2116
|
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-body{
|
|
2109
2117
|
padding-left: 0.75rem}
|
|
2110
2118
|
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-title{
|
|
2111
|
-
font-size:
|
|
2112
|
-
line-height:
|
|
2119
|
+
font-size: 16px;
|
|
2120
|
+
line-height: 24px}
|
|
2121
|
+
@media (min-width: 576px){
|
|
2122
|
+
|
|
2123
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-title{
|
|
2124
|
+
font-size: 14px;
|
|
2125
|
+
line-height: 20px}}
|
|
2126
|
+
@media (min-width: 1200px){
|
|
2127
|
+
|
|
2128
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-title{
|
|
2129
|
+
font-size: 16px;
|
|
2130
|
+
line-height: 24px}}
|
|
2113
2131
|
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-message{
|
|
2114
|
-
font-size:
|
|
2115
|
-
line-height:
|
|
2132
|
+
font-size: 16px;
|
|
2133
|
+
line-height: 24px}
|
|
2134
|
+
@media (min-width: 576px){
|
|
2135
|
+
|
|
2136
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-message{
|
|
2137
|
+
font-size: 14px;
|
|
2138
|
+
line-height: 20px}}
|
|
2139
|
+
@media (min-width: 1200px){
|
|
2140
|
+
|
|
2141
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-message{
|
|
2142
|
+
font-size: 16px;
|
|
2143
|
+
line-height: 24px}}
|
|
2116
2144
|
[data-coco][data-component="app-alert"] .alert-container{
|
|
2117
2145
|
padding-top: 1rem;
|
|
2118
2146
|
padding-bottom: 1rem}
|
|
@@ -2120,6 +2148,13 @@ select{
|
|
|
2120
2148
|
margin-top: 0.75rem}
|
|
2121
2149
|
[data-coco][data-component="app-alert"].with-title .alert-message{
|
|
2122
2150
|
margin-top: 0.25rem}
|
|
2151
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-container{
|
|
2152
|
+
padding-top: 0.75rem;
|
|
2153
|
+
padding-bottom: 0.75rem}
|
|
2154
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .coco-icon{
|
|
2155
|
+
margin-top: 0.375rem}
|
|
2156
|
+
[data-coco][data-component="app-alert"][data-condensed="true"].with-title .alert-message{
|
|
2157
|
+
margin-top: 0px}
|
|
2123
2158
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-container{
|
|
2124
2159
|
padding-right: 3rem}
|
|
2125
2160
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-dismiss{
|
|
@@ -2127,6 +2162,16 @@ select{
|
|
|
2127
2162
|
top: 0.5rem;
|
|
2128
2163
|
right: 0.5rem;
|
|
2129
2164
|
margin-left: auto}
|
|
2165
|
+
[data-coco][data-component="app-alert"]:not(.with-title):not(.with-action) .alert-container{
|
|
2166
|
+
align-items: center}
|
|
2167
|
+
[data-coco][data-component="app-alert"]:not(.with-title):not(.with-action) .alert-icon{
|
|
2168
|
+
align-self: center}
|
|
2169
|
+
[data-coco][data-component="app-alert"]:not(.with-title):not(.with-action)[data-dismissable="true"] .alert-dismiss{
|
|
2170
|
+
position: absolute;
|
|
2171
|
+
right: 0.75rem;
|
|
2172
|
+
top: 50%;
|
|
2173
|
+
--tw-translate-y: -50%;
|
|
2174
|
+
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))}
|
|
2130
2175
|
@container (min-width: 576px){
|
|
2131
2176
|
[data-coco][data-component="app-alert"] .alert-container{
|
|
2132
2177
|
align-items: center;
|
|
@@ -2150,15 +2195,21 @@ select{
|
|
|
2150
2195
|
|
|
2151
2196
|
[data-coco][data-component="app-alert"].with-title .alert-message{
|
|
2152
2197
|
margin-top: 0.25rem}
|
|
2198
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-container{
|
|
2199
|
+
padding-top: 0.5rem;
|
|
2200
|
+
padding-bottom: 0.5rem}
|
|
2153
2201
|
|
|
2154
|
-
|
|
2155
|
-
margin-top:
|
|
2202
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .coco-icon{
|
|
2203
|
+
margin-top: 0px}
|
|
2204
|
+
|
|
2205
|
+
[data-coco][data-component="app-alert"][data-condensed="true"].with-title .alert-message{
|
|
2206
|
+
margin-top: 0px}
|
|
2156
2207
|
|
|
2157
2208
|
[data-coco][data-component="app-alert"] .alert-actions{
|
|
2158
2209
|
margin-top: 0px;
|
|
2159
2210
|
margin-left: auto}
|
|
2160
2211
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-body{
|
|
2161
|
-
padding-right:
|
|
2212
|
+
padding-right: 0.5rem}
|
|
2162
2213
|
|
|
2163
2214
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-dismiss{
|
|
2164
2215
|
position: absolute;
|
|
@@ -2169,8 +2220,8 @@ select{
|
|
|
2169
2220
|
/* Layout */
|
|
2170
2221
|
@container (min-width: 1000px){
|
|
2171
2222
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line) .alert-container{
|
|
2172
|
-
padding-top: 0.
|
|
2173
|
-
padding-bottom: 0.
|
|
2223
|
+
padding-top: 0.5rem;
|
|
2224
|
+
padding-bottom: 0.5rem}
|
|
2174
2225
|
|
|
2175
2226
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line) .alert-content{
|
|
2176
2227
|
display: flex;
|
|
@@ -2190,13 +2241,16 @@ select{
|
|
|
2190
2241
|
|
|
2191
2242
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line) .alert-link{
|
|
2192
2243
|
display: none}
|
|
2244
|
+
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line)[data-dismissable="true"] .alert-body{
|
|
2245
|
+
padding-right: 0.5rem}
|
|
2246
|
+
|
|
2193
2247
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line)[data-dismissable="true"] .alert-container{
|
|
2194
2248
|
padding-left: 3rem;
|
|
2195
2249
|
padding-right: 3rem}
|
|
2196
2250
|
|
|
2197
2251
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line)[data-dismissable="true"] .alert-dismiss{
|
|
2198
2252
|
position: absolute;
|
|
2199
|
-
right:
|
|
2253
|
+
right: 0.75rem;
|
|
2200
2254
|
top: 50%;
|
|
2201
2255
|
--tw-translate-y: -50%;
|
|
2202
2256
|
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))}
|
|
@@ -2222,15 +2276,21 @@ select{
|
|
|
2222
2276
|
|
|
2223
2277
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line.with-title .alert-message{
|
|
2224
2278
|
margin-top: 0.25rem}
|
|
2279
|
+
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-condensed="true"] .alert-container{
|
|
2280
|
+
padding-top: 0.5rem;
|
|
2281
|
+
padding-bottom: 0.5rem}
|
|
2282
|
+
|
|
2283
|
+
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-condensed="true"] .coco-icon{
|
|
2284
|
+
margin-top: 0px}
|
|
2225
2285
|
|
|
2226
|
-
|
|
2227
|
-
margin-top:
|
|
2286
|
+
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-condensed="true"].with-title .alert-message{
|
|
2287
|
+
margin-top: 0px}
|
|
2228
2288
|
|
|
2229
2289
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line .alert-actions{
|
|
2230
2290
|
margin-top: 0px;
|
|
2231
2291
|
margin-left: auto}
|
|
2232
2292
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-dismissable="true"] .alert-body{
|
|
2233
|
-
padding-right:
|
|
2293
|
+
padding-right: 0.5rem}
|
|
2234
2294
|
|
|
2235
2295
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-dismissable="true"] .alert-dismiss{
|
|
2236
2296
|
position: absolute;
|
|
@@ -2670,9 +2730,10 @@ select{
|
|
|
2670
2730
|
[data-coco][data-component="app-button"][data-theme="text-neutral-dark"][data-disabled="true"]{
|
|
2671
2731
|
opacity: 0.3}
|
|
2672
2732
|
/* Responsive resizing */
|
|
2673
|
-
[data-coco][data-component="app-button"][data-size="xs"] .button-content{
|
|
2674
|
-
|
|
2675
|
-
|
|
2733
|
+
[data-coco][data-component="app-button"][data-size="xs"] .button-content {
|
|
2734
|
+
font-size: 14px;
|
|
2735
|
+
line-height: 14px;
|
|
2736
|
+
}
|
|
2676
2737
|
[data-coco][data-component="app-button"][data-size="xs"] .button-icon [data-component="icon"],[data-coco][data-component="app-button"][data-size="xs"] .button-toggle{
|
|
2677
2738
|
height: 0.875rem;
|
|
2678
2739
|
width: 0.875rem}
|
|
@@ -2681,12 +2742,12 @@ select{
|
|
|
2681
2742
|
padding-bottom: 0.5rem;
|
|
2682
2743
|
padding-left: 0.75rem;
|
|
2683
2744
|
padding-right: 0.75rem}
|
|
2684
|
-
[data-coco][data-component="app-button"][data-size="xs"]
|
|
2685
|
-
margin-left: -0.
|
|
2686
|
-
margin-right: -0.
|
|
2745
|
+
[data-coco][data-component="app-button"][data-size="xs"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size="xs"][data-collapsed="true"] > .button-element .button-icon{
|
|
2746
|
+
margin-left: -0.25rem;
|
|
2747
|
+
margin-right: -0.25rem}
|
|
2687
2748
|
[data-coco][data-component="app-button"][data-size="xs"][data-theme|="text"] .button-element{
|
|
2688
|
-
padding-left: 0.
|
|
2689
|
-
padding-right: 0.
|
|
2749
|
+
padding-left: 0.5rem;
|
|
2750
|
+
padding-right: 0.5rem}
|
|
2690
2751
|
[data-coco][data-component="app-button"][data-size="xs"][data-theme|="text"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size="xs"][data-theme|="text"][data-collapsed="true"] > .button-element .button-icon{
|
|
2691
2752
|
padding-left: 0.5rem;
|
|
2692
2753
|
padding-right: 0.5rem}
|
|
@@ -2751,9 +2812,10 @@ select{
|
|
|
2751
2812
|
padding-left: 0.75rem;
|
|
2752
2813
|
padding-right: 0.75rem}
|
|
2753
2814
|
@media (min-width: 768px) {
|
|
2754
|
-
[data-coco][data-component="app-button"][data-size-md="xs"] .button-content{
|
|
2755
|
-
|
|
2756
|
-
|
|
2815
|
+
[data-coco][data-component="app-button"][data-size-md="xs"] .button-content {
|
|
2816
|
+
font-size: 14px;
|
|
2817
|
+
line-height: 14px;
|
|
2818
|
+
}
|
|
2757
2819
|
|
|
2758
2820
|
[data-coco][data-component="app-button"][data-size-md="xs"] .button-icon [data-component="icon"],[data-coco][data-component="app-button"][data-size-md="xs"] .button-toggle{
|
|
2759
2821
|
height: 0.875rem;
|
|
@@ -2764,12 +2826,12 @@ select{
|
|
|
2764
2826
|
padding-left: 0.75rem;
|
|
2765
2827
|
padding-right: 0.75rem}
|
|
2766
2828
|
|
|
2767
|
-
|
|
2768
|
-
margin-left: -0.
|
|
2769
|
-
margin-right: -0.
|
|
2829
|
+
[data-coco][data-component="app-button"][data-size-md="xs"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-md="xs"][data-collapsed="true"] > .button-element .button-icon{
|
|
2830
|
+
margin-left: -0.25rem;
|
|
2831
|
+
margin-right: -0.25rem}
|
|
2770
2832
|
[data-coco][data-component="app-button"][data-size-md="xs"][data-theme|="text"] .button-element{
|
|
2771
|
-
padding-left: 0.
|
|
2772
|
-
padding-right: 0.
|
|
2833
|
+
padding-left: 0.5rem;
|
|
2834
|
+
padding-right: 0.5rem}
|
|
2773
2835
|
|
|
2774
2836
|
[data-coco][data-component="app-button"][data-size-md="xs"][data-theme|="text"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-md="xs"][data-theme|="text"][data-collapsed="true"] > .button-element .button-icon{
|
|
2775
2837
|
padding-left: 0.5rem;
|
|
@@ -2845,9 +2907,10 @@ select{
|
|
|
2845
2907
|
padding-right: 0.75rem}
|
|
2846
2908
|
}
|
|
2847
2909
|
@media (min-width: 992px) {
|
|
2848
|
-
[data-coco][data-component="app-button"][data-size-lg="xs"] .button-content{
|
|
2849
|
-
|
|
2850
|
-
|
|
2910
|
+
[data-coco][data-component="app-button"][data-size-lg="xs"] .button-content {
|
|
2911
|
+
font-size: 14px;
|
|
2912
|
+
line-height: 14px;
|
|
2913
|
+
}
|
|
2851
2914
|
|
|
2852
2915
|
[data-coco][data-component="app-button"][data-size-lg="xs"] .button-icon [data-component="icon"],[data-coco][data-component="app-button"][data-size-lg="xs"] .button-toggle{
|
|
2853
2916
|
height: 0.875rem;
|
|
@@ -2858,12 +2921,12 @@ select{
|
|
|
2858
2921
|
padding-left: 0.75rem;
|
|
2859
2922
|
padding-right: 0.75rem}
|
|
2860
2923
|
|
|
2861
|
-
|
|
2862
|
-
margin-left: -0.
|
|
2863
|
-
margin-right: -0.
|
|
2924
|
+
[data-coco][data-component="app-button"][data-size-lg="xs"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-lg="xs"][data-collapsed="true"] > .button-element .button-icon{
|
|
2925
|
+
margin-left: -0.25rem;
|
|
2926
|
+
margin-right: -0.25rem}
|
|
2864
2927
|
[data-coco][data-component="app-button"][data-size-lg="xs"][data-theme|="text"] .button-element{
|
|
2865
|
-
padding-left: 0.
|
|
2866
|
-
padding-right: 0.
|
|
2928
|
+
padding-left: 0.5rem;
|
|
2929
|
+
padding-right: 0.5rem}
|
|
2867
2930
|
|
|
2868
2931
|
[data-coco][data-component="app-button"][data-size-lg="xs"][data-theme|="text"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-lg="xs"][data-theme|="text"][data-collapsed="true"] > .button-element .button-icon{
|
|
2869
2932
|
padding-left: 0.5rem;
|
|
@@ -2939,9 +3002,10 @@ select{
|
|
|
2939
3002
|
padding-right: 0.75rem}
|
|
2940
3003
|
}
|
|
2941
3004
|
@media (min-width: 1200px) {
|
|
2942
|
-
[data-coco][data-component="app-button"][data-size-xl="xs"] .button-content{
|
|
2943
|
-
|
|
2944
|
-
|
|
3005
|
+
[data-coco][data-component="app-button"][data-size-xl="xs"] .button-content {
|
|
3006
|
+
font-size: 14px;
|
|
3007
|
+
line-height: 14px;
|
|
3008
|
+
}
|
|
2945
3009
|
|
|
2946
3010
|
[data-coco][data-component="app-button"][data-size-xl="xs"] .button-icon [data-component="icon"],[data-coco][data-component="app-button"][data-size-xl="xs"] .button-toggle{
|
|
2947
3011
|
height: 0.875rem;
|
|
@@ -2952,12 +3016,12 @@ select{
|
|
|
2952
3016
|
padding-left: 0.75rem;
|
|
2953
3017
|
padding-right: 0.75rem}
|
|
2954
3018
|
|
|
2955
|
-
|
|
2956
|
-
margin-left: -0.
|
|
2957
|
-
margin-right: -0.
|
|
3019
|
+
[data-coco][data-component="app-button"][data-size-xl="xs"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-xl="xs"][data-collapsed="true"] > .button-element .button-icon{
|
|
3020
|
+
margin-left: -0.25rem;
|
|
3021
|
+
margin-right: -0.25rem}
|
|
2958
3022
|
[data-coco][data-component="app-button"][data-size-xl="xs"][data-theme|="text"] .button-element{
|
|
2959
|
-
padding-left: 0.
|
|
2960
|
-
padding-right: 0.
|
|
3023
|
+
padding-left: 0.5rem;
|
|
3024
|
+
padding-right: 0.5rem}
|
|
2961
3025
|
|
|
2962
3026
|
[data-coco][data-component="app-button"][data-size-xl="xs"][data-theme|="text"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-xl="xs"][data-theme|="text"][data-collapsed="true"] > .button-element .button-icon{
|
|
2963
3027
|
padding-left: 0.5rem;
|
|
@@ -3034,9 +3098,10 @@ select{
|
|
|
3034
3098
|
}
|
|
3035
3099
|
@media (min-width: 1400px) {
|
|
3036
3100
|
[data-coco][data-component="app-button"][data-size-xxl="xs"] .button-content,
|
|
3037
|
-
[data-coco][data-component="app-button"][data-size-2xl="xs"] .button-content{
|
|
3038
|
-
|
|
3039
|
-
|
|
3101
|
+
[data-coco][data-component="app-button"][data-size-2xl="xs"] .button-content {
|
|
3102
|
+
font-size: 14px;
|
|
3103
|
+
line-height: 14px;
|
|
3104
|
+
}
|
|
3040
3105
|
|
|
3041
3106
|
[data-coco][data-component="app-button"][data-size-xxl="xs"] .button-icon [data-component="icon"],[data-coco][data-component="app-button"][data-size-xxl="xs"] .button-toggle,
|
|
3042
3107
|
[data-coco][data-component="app-button"][data-size-2xl="xs"] .button-icon [data-component="icon"],
|
|
@@ -3050,15 +3115,15 @@ select{
|
|
|
3050
3115
|
padding-left: 0.75rem;
|
|
3051
3116
|
padding-right: 0.75rem}
|
|
3052
3117
|
|
|
3053
|
-
|
|
3054
|
-
[data-coco][data-component="app-button"][data-size-2xl="xs"]
|
|
3055
|
-
[data-coco][data-component="app-button"][data-size-2xl="xs"][data-
|
|
3056
|
-
margin-left: -0.
|
|
3057
|
-
margin-right: -0.
|
|
3118
|
+
[data-coco][data-component="app-button"][data-size-xxl="xs"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-xxl="xs"][data-collapsed="true"] > .button-element .button-icon,
|
|
3119
|
+
[data-coco][data-component="app-button"][data-size-2xl="xs"].icon-only > .button-element .button-icon,
|
|
3120
|
+
[data-coco][data-component="app-button"][data-size-2xl="xs"][data-collapsed="true"] > .button-element .button-icon{
|
|
3121
|
+
margin-left: -0.25rem;
|
|
3122
|
+
margin-right: -0.25rem}
|
|
3058
3123
|
[data-coco][data-component="app-button"][data-size-xxl="xs"][data-theme|="text"] .button-element,
|
|
3059
3124
|
[data-coco][data-component="app-button"][data-size-2xl="xs"][data-theme|="text"] .button-element{
|
|
3060
|
-
padding-left: 0.
|
|
3061
|
-
padding-right: 0.
|
|
3125
|
+
padding-left: 0.5rem;
|
|
3126
|
+
padding-right: 0.5rem}
|
|
3062
3127
|
|
|
3063
3128
|
[data-coco][data-component="app-button"][data-size-xxl="xs"][data-theme|="text"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-xxl="xs"][data-theme|="text"][data-collapsed="true"] > .button-element .button-icon,
|
|
3064
3129
|
[data-coco][data-component="app-button"][data-size-2xl="xs"][data-theme|="text"].icon-only > .button-element .button-icon,
|
|
@@ -3163,9 +3228,10 @@ select{
|
|
|
3163
3228
|
padding-right: 0.75rem}
|
|
3164
3229
|
}
|
|
3165
3230
|
@media (min-width: 1800px) {
|
|
3166
|
-
[data-coco][data-component="app-button"][data-size-max="xs"] .button-content{
|
|
3167
|
-
|
|
3168
|
-
|
|
3231
|
+
[data-coco][data-component="app-button"][data-size-max="xs"] .button-content {
|
|
3232
|
+
font-size: 14px;
|
|
3233
|
+
line-height: 14px;
|
|
3234
|
+
}
|
|
3169
3235
|
|
|
3170
3236
|
[data-coco][data-component="app-button"][data-size-max="xs"] .button-icon [data-component="icon"],[data-coco][data-component="app-button"][data-size-max="xs"] .button-toggle{
|
|
3171
3237
|
height: 0.875rem;
|
|
@@ -3176,12 +3242,12 @@ select{
|
|
|
3176
3242
|
padding-left: 0.75rem;
|
|
3177
3243
|
padding-right: 0.75rem}
|
|
3178
3244
|
|
|
3179
|
-
|
|
3180
|
-
margin-left: -0.
|
|
3181
|
-
margin-right: -0.
|
|
3245
|
+
[data-coco][data-component="app-button"][data-size-max="xs"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-max="xs"][data-collapsed="true"] > .button-element .button-icon{
|
|
3246
|
+
margin-left: -0.25rem;
|
|
3247
|
+
margin-right: -0.25rem}
|
|
3182
3248
|
[data-coco][data-component="app-button"][data-size-max="xs"][data-theme|="text"] .button-element{
|
|
3183
|
-
padding-left: 0.
|
|
3184
|
-
padding-right: 0.
|
|
3249
|
+
padding-left: 0.5rem;
|
|
3250
|
+
padding-right: 0.5rem}
|
|
3185
3251
|
|
|
3186
3252
|
[data-coco][data-component="app-button"][data-size-max="xs"][data-theme|="text"].icon-only > .button-element .button-icon,[data-coco][data-component="app-button"][data-size-max="xs"][data-theme|="text"][data-collapsed="true"] > .button-element .button-icon{
|
|
3187
3253
|
padding-left: 0.5rem;
|
|
@@ -3953,19 +4019,20 @@ select{
|
|
|
3953
4019
|
[data-coco][data-component="app-menu"] .menu-item .divider{
|
|
3954
4020
|
margin-top: 0.375rem;
|
|
3955
4021
|
margin-bottom: 0.375rem}
|
|
3956
|
-
[data-coco][data-component="app-menu"][data-size="sm"]
|
|
4022
|
+
[data-coco][data-component="app-menu"][data-size="sm"],
|
|
4023
|
+
[data-coco][data-component="app-menu"][data-size="xs"]{
|
|
3957
4024
|
padding-top: 0.375rem;
|
|
3958
4025
|
padding-bottom: 0.375rem}
|
|
3959
|
-
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element{
|
|
4026
|
+
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element, [data-coco][data-component="app-menu"][data-size="xs"] .menu-item [data-component="app-button"] > .button-element{
|
|
3960
4027
|
padding-left: 1rem;
|
|
3961
4028
|
padding-right: 1rem;
|
|
3962
4029
|
padding-top: 0.5rem;
|
|
3963
4030
|
padding-bottom: 0.5rem;
|
|
3964
4031
|
font-size: 14px;
|
|
3965
4032
|
line-height: 16px}
|
|
3966
|
-
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element .button-inner{
|
|
4033
|
+
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element .button-inner, [data-coco][data-component="app-menu"][data-size="xs"] .menu-item [data-component="app-button"] > .button-element .button-inner{
|
|
3967
4034
|
gap: 0.5rem}
|
|
3968
|
-
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element .button-inner > [data-component="icon"]{
|
|
4035
|
+
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element .button-inner > [data-component="icon"], [data-coco][data-component="app-menu"][data-size="xs"] .menu-item [data-component="app-button"] > .button-element .button-inner > [data-component="icon"]{
|
|
3969
4036
|
height: 1rem;
|
|
3970
4037
|
width: 1rem}
|
|
3971
4038
|
[data-coco][data-component="app-menu"][data-size="md"]{
|
|
@@ -4878,6 +4945,13 @@ select{
|
|
|
4878
4945
|
margin-top: 0.75rem}
|
|
4879
4946
|
.app-alert-stacked.with-title .alert-message{
|
|
4880
4947
|
margin-top: 0.25rem}
|
|
4948
|
+
.app-alert-stacked[data-condensed="true"] .alert-container{
|
|
4949
|
+
padding-top: 0.75rem;
|
|
4950
|
+
padding-bottom: 0.75rem}
|
|
4951
|
+
.app-alert-stacked[data-condensed="true"] .coco-icon{
|
|
4952
|
+
margin-top: 0.375rem}
|
|
4953
|
+
.app-alert-stacked[data-condensed="true"].with-title .alert-message{
|
|
4954
|
+
margin-top: 0px}
|
|
4881
4955
|
.app-alert-stacked[data-dismissable="true"] .alert-container{
|
|
4882
4956
|
padding-right: 3rem}
|
|
4883
4957
|
.app-alert-stacked[data-dismissable="true"] .alert-dismiss{
|
|
@@ -4885,6 +4959,16 @@ select{
|
|
|
4885
4959
|
top: 0.5rem;
|
|
4886
4960
|
right: 0.5rem;
|
|
4887
4961
|
margin-left: auto}
|
|
4962
|
+
.app-alert-stacked:not(.with-title):not(.with-action) .alert-container{
|
|
4963
|
+
align-items: center}
|
|
4964
|
+
.app-alert-stacked:not(.with-title):not(.with-action) .alert-icon{
|
|
4965
|
+
align-self: center}
|
|
4966
|
+
.app-alert-stacked:not(.with-title):not(.with-action)[data-dismissable="true"] .alert-dismiss{
|
|
4967
|
+
position: absolute;
|
|
4968
|
+
right: 0.75rem;
|
|
4969
|
+
top: 50%;
|
|
4970
|
+
--tw-translate-y: -50%;
|
|
4971
|
+
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))}
|
|
4888
4972
|
.app-alert-multi-line .alert-container{
|
|
4889
4973
|
align-items: center;
|
|
4890
4974
|
padding-top: 0.625rem;
|
|
@@ -4902,13 +4986,18 @@ select{
|
|
|
4902
4986
|
}
|
|
4903
4987
|
.app-alert-multi-line.with-title .alert-message{
|
|
4904
4988
|
margin-top: 0.25rem}
|
|
4989
|
+
.app-alert-multi-line[data-condensed="true"] .alert-container{
|
|
4990
|
+
padding-top: 0.5rem;
|
|
4991
|
+
padding-bottom: 0.5rem}
|
|
4992
|
+
.app-alert-multi-line[data-condensed="true"] .coco-icon{
|
|
4993
|
+
margin-top: 0px}
|
|
4905
4994
|
.app-alert-multi-line[data-condensed="true"].with-title .alert-message{
|
|
4906
|
-
margin-top:
|
|
4995
|
+
margin-top: 0px}
|
|
4907
4996
|
.app-alert-multi-line .alert-actions{
|
|
4908
4997
|
margin-top: 0px;
|
|
4909
4998
|
margin-left: auto}
|
|
4910
4999
|
.app-alert-multi-line[data-dismissable="true"] .alert-body{
|
|
4911
|
-
padding-right:
|
|
5000
|
+
padding-right: 0.5rem}
|
|
4912
5001
|
.app-alert-multi-line[data-dismissable="true"] .alert-dismiss{
|
|
4913
5002
|
position: absolute;
|
|
4914
5003
|
right: 0.75rem;
|
|
@@ -4916,8 +5005,8 @@ select{
|
|
|
4916
5005
|
--tw-translate-y: -50%;
|
|
4917
5006
|
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))}
|
|
4918
5007
|
.app-alert-single-line .alert-container{
|
|
4919
|
-
padding-top: 0.
|
|
4920
|
-
padding-bottom: 0.
|
|
5008
|
+
padding-top: 0.5rem;
|
|
5009
|
+
padding-bottom: 0.5rem}
|
|
4921
5010
|
.app-alert-single-line .alert-content{
|
|
4922
5011
|
display: flex;
|
|
4923
5012
|
width: 100%;
|
|
@@ -4932,18 +5021,21 @@ select{
|
|
|
4932
5021
|
margin-top: 0px}
|
|
4933
5022
|
.app-alert-single-line .alert-link{
|
|
4934
5023
|
display: none}
|
|
5024
|
+
.app-alert-single-line[data-dismissable="true"] .alert-body{
|
|
5025
|
+
padding-right: 0.5rem}
|
|
4935
5026
|
.app-alert-single-line[data-dismissable="true"] .alert-container{
|
|
4936
5027
|
padding-left: 3rem;
|
|
4937
5028
|
padding-right: 3rem}
|
|
4938
5029
|
.app-alert-single-line[data-dismissable="true"] .alert-dismiss{
|
|
4939
5030
|
position: absolute;
|
|
4940
|
-
right:
|
|
5031
|
+
right: 0.75rem;
|
|
4941
5032
|
top: 50%;
|
|
4942
5033
|
--tw-translate-y: -50%;
|
|
4943
5034
|
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))}
|
|
4944
|
-
.app-button-xs .button-content{
|
|
4945
|
-
|
|
4946
|
-
|
|
5035
|
+
.app-button-xs .button-content {
|
|
5036
|
+
font-size: 14px;
|
|
5037
|
+
line-height: 14px;
|
|
5038
|
+
}
|
|
4947
5039
|
.app-button-xs .button-icon [data-component="icon"],
|
|
4948
5040
|
.app-button-xs .button-toggle{
|
|
4949
5041
|
height: 0.875rem;
|
|
@@ -4953,13 +5045,13 @@ select{
|
|
|
4953
5045
|
padding-bottom: 0.5rem;
|
|
4954
5046
|
padding-left: 0.75rem;
|
|
4955
5047
|
padding-right: 0.75rem}
|
|
4956
|
-
.app-button-xs
|
|
4957
|
-
|
|
4958
|
-
margin-left: -0.
|
|
4959
|
-
margin-right: -0.
|
|
5048
|
+
.app-button-xs.icon-only > .button-element .button-icon,
|
|
5049
|
+
.app-button-xs[data-collapsed="true"] > .button-element .button-icon{
|
|
5050
|
+
margin-left: -0.25rem;
|
|
5051
|
+
margin-right: -0.25rem}
|
|
4960
5052
|
.app-button-xs[data-theme|="text"] .button-element{
|
|
4961
|
-
padding-left: 0.
|
|
4962
|
-
padding-right: 0.
|
|
5053
|
+
padding-left: 0.5rem;
|
|
5054
|
+
padding-right: 0.5rem}
|
|
4963
5055
|
.app-button-xs[data-theme|="text"].icon-only > .button-element .button-icon,
|
|
4964
5056
|
.app-button-xs[data-theme|="text"][data-collapsed="true"] > .button-element .button-icon{
|
|
4965
5057
|
padding-left: 0.5rem;
|
|
@@ -14038,7 +14038,7 @@
|
|
|
14038
14038
|
var package_default = {
|
|
14039
14039
|
name: "coveragebook-components",
|
|
14040
14040
|
type: "module",
|
|
14041
|
-
version: "0.8.0-beta.
|
|
14041
|
+
version: "0.8.0-beta.2",
|
|
14042
14042
|
main: "index.js",
|
|
14043
14043
|
repository: "git@github.com:coveragebook/coco.git",
|
|
14044
14044
|
author: "Mark Perkins <mark@coveragebook.com>",
|
|
@@ -24579,6 +24579,12 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
|
24579
24579
|
dismissed: false,
|
|
24580
24580
|
forceMultiLine: false,
|
|
24581
24581
|
dismissDuration: 300,
|
|
24582
|
+
init() {
|
|
24583
|
+
this.checkSingleLineWrap = Alpine.throttle(
|
|
24584
|
+
this.checkSingleLineWrap.bind(this),
|
|
24585
|
+
200
|
|
24586
|
+
);
|
|
24587
|
+
},
|
|
24582
24588
|
dismiss() {
|
|
24583
24589
|
if (this.$options.dismissable) {
|
|
24584
24590
|
this.$dispatch("alert:dismiss", {
|
|
@@ -24595,9 +24601,11 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
|
24595
24601
|
},
|
|
24596
24602
|
checkSingleLineWrap({ height }) {
|
|
24597
24603
|
this.forceMultiLine = false;
|
|
24598
|
-
this.$
|
|
24599
|
-
this
|
|
24600
|
-
|
|
24604
|
+
if (height > 24 && this.$options.singleLine) {
|
|
24605
|
+
this.$nextTick(() => {
|
|
24606
|
+
this.forceMultiLine = true;
|
|
24607
|
+
});
|
|
24608
|
+
}
|
|
24601
24609
|
},
|
|
24602
24610
|
root: {
|
|
24603
24611
|
"x-options": '["dismissable", "singleLine"]',
|
|
@@ -31,12 +31,16 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.header-mobile-controls {
|
|
34
|
-
@apply flex
|
|
34
|
+
@apply flex lg:hidden items-center ml-auto translate-x-2 sm:translate-x-4 md:translate-x-6;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.coco-button[data-variant="highlighted"] {
|
|
38
|
+
@apply text-amber-300;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
&.with-nav-drawer {
|
|
38
42
|
.header-link-group {
|
|
39
|
-
@apply hidden
|
|
43
|
+
@apply hidden lg:flex;
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
}
|
|
@@ -6,7 +6,7 @@ module Coco
|
|
|
6
6
|
Coco::App::Elements::ButtonGroup.new(
|
|
7
7
|
theme: :text_neutral_light,
|
|
8
8
|
collapsible: false,
|
|
9
|
-
size: :
|
|
9
|
+
size: :xs,
|
|
10
10
|
**kwargs
|
|
11
11
|
)
|
|
12
12
|
end
|
|
@@ -15,7 +15,7 @@ module Coco
|
|
|
15
15
|
Coco::App::Elements::ButtonGroup.new(
|
|
16
16
|
theme: :text_neutral_light,
|
|
17
17
|
collapsible: false,
|
|
18
|
-
size: :
|
|
18
|
+
size: :xs,
|
|
19
19
|
**kwargs
|
|
20
20
|
)
|
|
21
21
|
end
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@apply sidebar-nav-item-vertical-condensed;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@media screen(
|
|
47
|
+
@media screen(lg) {
|
|
48
48
|
@apply sidebar-nav-item-vertical;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
@apply sidebar-nav-menu-small;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
@media screen(
|
|
93
|
+
@media screen(lg) {
|
|
94
94
|
@apply sidebar-nav-menu-large;
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -75,10 +75,13 @@
|
|
|
75
75
|
/* Condensed */
|
|
76
76
|
|
|
77
77
|
&[data-condensed="true"] {
|
|
78
|
+
.alert-container {
|
|
79
|
+
min-height: theme(spacing.12);
|
|
80
|
+
@apply py-1.5;
|
|
81
|
+
}
|
|
82
|
+
|
|
78
83
|
.alert-icon {
|
|
79
|
-
|
|
80
|
-
@apply w-4 h-4;
|
|
81
|
-
}
|
|
84
|
+
@apply p-0 !bg-transparent;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
.alert-body {
|
|
@@ -86,11 +89,11 @@
|
|
|
86
89
|
}
|
|
87
90
|
|
|
88
91
|
.alert-title {
|
|
89
|
-
@apply text-para-sm;
|
|
92
|
+
@apply text-para-md sm:text-para-sm xl:text-para-md;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
.alert-message {
|
|
93
|
-
@apply text-para-sm;
|
|
96
|
+
@apply text-para-md sm:text-para-sm xl:text-para-md;
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
|
|
@@ -216,6 +219,20 @@
|
|
|
216
219
|
@apply mt-1;
|
|
217
220
|
}
|
|
218
221
|
|
|
222
|
+
&[data-condensed="true"] {
|
|
223
|
+
.alert-container {
|
|
224
|
+
@apply py-3;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.coco-icon {
|
|
228
|
+
@apply mt-1.5;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&.with-title .alert-message {
|
|
232
|
+
@apply mt-0;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
219
236
|
&[data-dismissable="true"] {
|
|
220
237
|
.alert-container {
|
|
221
238
|
@apply pr-12;
|
|
@@ -225,6 +242,24 @@
|
|
|
225
242
|
@apply ml-auto absolute top-2 right-2;
|
|
226
243
|
}
|
|
227
244
|
}
|
|
245
|
+
|
|
246
|
+
&:not(.with-title) {
|
|
247
|
+
&:not(.with-action) {
|
|
248
|
+
.alert-container {
|
|
249
|
+
@apply items-center;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.alert-icon {
|
|
253
|
+
@apply self-center;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&[data-dismissable="true"] {
|
|
257
|
+
.alert-dismiss {
|
|
258
|
+
@apply absolute right-3 top-1/2 -translate-y-1/2;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
228
263
|
}
|
|
229
264
|
|
|
230
265
|
.app-alert-multi-line {
|
|
@@ -252,8 +287,18 @@
|
|
|
252
287
|
@apply mt-1;
|
|
253
288
|
}
|
|
254
289
|
|
|
255
|
-
&[data-condensed="true"]
|
|
256
|
-
|
|
290
|
+
&[data-condensed="true"] {
|
|
291
|
+
.alert-container {
|
|
292
|
+
@apply py-2;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.coco-icon {
|
|
296
|
+
@apply mt-0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&.with-title .alert-message {
|
|
300
|
+
@apply mt-0;
|
|
301
|
+
}
|
|
257
302
|
}
|
|
258
303
|
|
|
259
304
|
.alert-actions {
|
|
@@ -262,7 +307,7 @@
|
|
|
262
307
|
|
|
263
308
|
&[data-dismissable="true"] {
|
|
264
309
|
.alert-body {
|
|
265
|
-
@apply pr-
|
|
310
|
+
@apply pr-2;
|
|
266
311
|
}
|
|
267
312
|
|
|
268
313
|
.alert-dismiss {
|
|
@@ -273,7 +318,7 @@
|
|
|
273
318
|
|
|
274
319
|
.app-alert-single-line {
|
|
275
320
|
.alert-container {
|
|
276
|
-
@apply py-
|
|
321
|
+
@apply py-2;
|
|
277
322
|
}
|
|
278
323
|
|
|
279
324
|
.alert-content {
|
|
@@ -293,12 +338,16 @@
|
|
|
293
338
|
}
|
|
294
339
|
|
|
295
340
|
&[data-dismissable="true"] {
|
|
341
|
+
.alert-body {
|
|
342
|
+
@apply pr-2;
|
|
343
|
+
}
|
|
344
|
+
|
|
296
345
|
.alert-container {
|
|
297
346
|
@apply px-12;
|
|
298
347
|
}
|
|
299
348
|
|
|
300
349
|
.alert-dismiss {
|
|
301
|
-
@apply absolute right-
|
|
350
|
+
@apply absolute right-3 top-1/2 -translate-y-1/2;
|
|
302
351
|
}
|
|
303
352
|
}
|
|
304
353
|
}
|
|
@@ -7,6 +7,13 @@ export default CocoComponent("appAlert", () => {
|
|
|
7
7
|
forceMultiLine: false,
|
|
8
8
|
dismissDuration: 300,
|
|
9
9
|
|
|
10
|
+
init() {
|
|
11
|
+
this.checkSingleLineWrap = Alpine.throttle(
|
|
12
|
+
this.checkSingleLineWrap.bind(this),
|
|
13
|
+
200
|
|
14
|
+
);
|
|
15
|
+
},
|
|
16
|
+
|
|
10
17
|
dismiss() {
|
|
11
18
|
if (this.$options.dismissable) {
|
|
12
19
|
this.$dispatch("alert:dismiss", {
|
|
@@ -27,9 +34,11 @@ export default CocoComponent("appAlert", () => {
|
|
|
27
34
|
|
|
28
35
|
checkSingleLineWrap({ height }) {
|
|
29
36
|
this.forceMultiLine = false;
|
|
30
|
-
this.$
|
|
31
|
-
this
|
|
32
|
-
|
|
37
|
+
if (height > 24 && this.$options.singleLine) {
|
|
38
|
+
this.$nextTick(() => {
|
|
39
|
+
this.forceMultiLine = true;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
33
42
|
},
|
|
34
43
|
|
|
35
44
|
root: {
|
|
@@ -401,7 +401,8 @@
|
|
|
401
401
|
@layer utilities {
|
|
402
402
|
.app-button-xs {
|
|
403
403
|
.button-content {
|
|
404
|
-
|
|
404
|
+
font-size: 14px;
|
|
405
|
+
line-height: 14px;
|
|
405
406
|
}
|
|
406
407
|
|
|
407
408
|
.button-icon [data-component="icon"],
|
|
@@ -413,16 +414,16 @@
|
|
|
413
414
|
.button-element {
|
|
414
415
|
@apply py-2 px-3;
|
|
415
416
|
}
|
|
417
|
+
}
|
|
416
418
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
419
|
+
&.icon-only > .button-element .button-icon,
|
|
420
|
+
&[data-collapsed="true"] > .button-element .button-icon {
|
|
421
|
+
@apply -ml-1 -mr-1;
|
|
421
422
|
}
|
|
422
423
|
|
|
423
424
|
&[data-theme|="text"] {
|
|
424
425
|
.button-element {
|
|
425
|
-
@apply px-
|
|
426
|
+
@apply px-2;
|
|
426
427
|
}
|
|
427
428
|
|
|
428
429
|
&.icon-only > .button-element .button-icon,
|
data/lib/coco.rb
CHANGED