coveragebook_components 0.8.0.beta.1 → 0.8.0.beta.3
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 +197 -98
- 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 +3 -1
- data/app/components/coco/app/blocks/sidebar_nav/sidebar_nav.html.erb +1 -1
- data/app/components/coco/app/blocks/sidebar_nav_item/sidebar_nav_item.css +4 -4
- data/app/components/coco/app/blocks/sidebar_nav_item/sidebar_nav_item.html.erb +6 -4
- data/app/components/coco/app/blocks/sidebar_nav_item/sidebar_nav_item.rb +12 -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 +15 -10
- 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: fd091a2e16041e7c228e055e43093de5a7b7fefb7747872059c313681993c774
|
4
|
+
data.tar.gz: 9161c4c85b14f3b1bcee2b57472fc0596d74b2543a36ddb714d9582abf897699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb9820183b0356270f175fa9b55a4627053b00c495caf31c7e9b1e3cd220f56d7ddbfa0e50486031eab376c373760102964d37d2d494d346377a45dd3ffda617
|
7
|
+
data.tar.gz: a799d7ed6d316ec0fad9d46d94b09c513833d80ab8e77777fa6d2664814d4a97f2511b865374a685c0162af51c2993a9d103a7dd9ab298c343cf26b4b438b17b
|
@@ -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}}
|
@@ -1392,6 +1395,8 @@ select{
|
|
1392
1395
|
width: 100%;
|
1393
1396
|
grid-template-rows: repeat(1, minmax(0, 1fr));
|
1394
1397
|
grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1fr)}
|
1398
|
+
[data-coco][data-component="app-sidebar-nav"] .nav-action{
|
1399
|
+
cursor: pointer}
|
1395
1400
|
[data-coco][data-component="app-sidebar-nav"] .nav-action .nav-item-label{
|
1396
1401
|
display: none;
|
1397
1402
|
--tw-text-opacity: 1 !important;
|
@@ -1450,7 +1455,7 @@ select{
|
|
1450
1455
|
[data-coco][data-component="app-sidebar-nav"] .nav-actions-button .coco-icon{
|
1451
1456
|
height: 2rem;
|
1452
1457
|
width: 2rem}}
|
1453
|
-
@media (min-width:
|
1458
|
+
@media (min-width: 992px) {
|
1454
1459
|
|
1455
1460
|
[data-coco][data-component="app-sidebar-nav"]{
|
1456
1461
|
display: block;
|
@@ -1511,6 +1516,7 @@ select{
|
|
1511
1516
|
}
|
1512
1517
|
[data-coco][data-component="app-sidebar-nav-item"]{
|
1513
1518
|
flex: none;
|
1519
|
+
cursor: pointer;
|
1514
1520
|
--tw-bg-opacity: 1;
|
1515
1521
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
1516
1522
|
text-align: center;
|
@@ -1542,6 +1548,7 @@ select{
|
|
1542
1548
|
[data-coco][data-component="app-sidebar-nav-item"] .nav-item-label{
|
1543
1549
|
margin-top: 0.125rem;
|
1544
1550
|
display: block;
|
1551
|
+
cursor: pointer;
|
1545
1552
|
font-size: 10px;
|
1546
1553
|
line-height: 12px;
|
1547
1554
|
font-weight: 600;
|
@@ -1598,7 +1605,7 @@ select{
|
|
1598
1605
|
--tw-bg-opacity: 1;
|
1599
1606
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity))}
|
1600
1607
|
}
|
1601
|
-
@media (min-width:
|
1608
|
+
@media (min-width: 992px) {
|
1602
1609
|
|
1603
1610
|
[data-coco][data-component="app-sidebar-nav-item"]{
|
1604
1611
|
padding-top: 1.25rem;
|
@@ -1750,7 +1757,7 @@ select{
|
|
1750
1757
|
line-height: 1.25rem;
|
1751
1758
|
width: 240px}
|
1752
1759
|
}
|
1753
|
-
@media (min-width:
|
1760
|
+
@media (min-width: 992px) {
|
1754
1761
|
.sidebar-nav-menu .sidebar-nav-menu-select{
|
1755
1762
|
font-size: 1rem;
|
1756
1763
|
line-height: 1.5rem}
|
@@ -2102,17 +2109,42 @@ select{
|
|
2102
2109
|
--tw-text-opacity: 1;
|
2103
2110
|
color: rgb(17 24 39 / var(--tw-text-opacity))}
|
2104
2111
|
/* Condensed */
|
2105
|
-
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-
|
2106
|
-
|
2107
|
-
|
2112
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-container {
|
2113
|
+
min-height: 3rem;
|
2114
|
+
padding-top: 0.375rem;
|
2115
|
+
padding-bottom: 0.375rem;
|
2116
|
+
}
|
2117
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-icon{
|
2118
|
+
background-color: transparent !important;
|
2119
|
+
padding: 0px}
|
2108
2120
|
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-body{
|
2109
2121
|
padding-left: 0.75rem}
|
2110
2122
|
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-title{
|
2111
|
-
font-size:
|
2112
|
-
line-height:
|
2123
|
+
font-size: 16px;
|
2124
|
+
line-height: 24px}
|
2125
|
+
@media (min-width: 576px){
|
2126
|
+
|
2127
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-title{
|
2128
|
+
font-size: 14px;
|
2129
|
+
line-height: 20px}}
|
2130
|
+
@media (min-width: 1200px){
|
2131
|
+
|
2132
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-title{
|
2133
|
+
font-size: 16px;
|
2134
|
+
line-height: 24px}}
|
2113
2135
|
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-message{
|
2114
|
-
font-size:
|
2115
|
-
line-height:
|
2136
|
+
font-size: 16px;
|
2137
|
+
line-height: 24px}
|
2138
|
+
@media (min-width: 576px){
|
2139
|
+
|
2140
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-message{
|
2141
|
+
font-size: 14px;
|
2142
|
+
line-height: 20px}}
|
2143
|
+
@media (min-width: 1200px){
|
2144
|
+
|
2145
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-message{
|
2146
|
+
font-size: 16px;
|
2147
|
+
line-height: 24px}}
|
2116
2148
|
[data-coco][data-component="app-alert"] .alert-container{
|
2117
2149
|
padding-top: 1rem;
|
2118
2150
|
padding-bottom: 1rem}
|
@@ -2120,6 +2152,13 @@ select{
|
|
2120
2152
|
margin-top: 0.75rem}
|
2121
2153
|
[data-coco][data-component="app-alert"].with-title .alert-message{
|
2122
2154
|
margin-top: 0.25rem}
|
2155
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-container{
|
2156
|
+
padding-top: 0.75rem;
|
2157
|
+
padding-bottom: 0.75rem}
|
2158
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .coco-icon{
|
2159
|
+
margin-top: 0.375rem}
|
2160
|
+
[data-coco][data-component="app-alert"][data-condensed="true"].with-title .alert-message{
|
2161
|
+
margin-top: 0px}
|
2123
2162
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-container{
|
2124
2163
|
padding-right: 3rem}
|
2125
2164
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-dismiss{
|
@@ -2127,6 +2166,16 @@ select{
|
|
2127
2166
|
top: 0.5rem;
|
2128
2167
|
right: 0.5rem;
|
2129
2168
|
margin-left: auto}
|
2169
|
+
[data-coco][data-component="app-alert"]:not(.with-title):not(.with-action) .alert-container{
|
2170
|
+
align-items: center}
|
2171
|
+
[data-coco][data-component="app-alert"]:not(.with-title):not(.with-action) .alert-icon{
|
2172
|
+
align-self: center}
|
2173
|
+
[data-coco][data-component="app-alert"]:not(.with-title):not(.with-action)[data-dismissable="true"] .alert-dismiss{
|
2174
|
+
position: absolute;
|
2175
|
+
right: 0.75rem;
|
2176
|
+
top: 50%;
|
2177
|
+
--tw-translate-y: -50%;
|
2178
|
+
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
2179
|
@container (min-width: 576px){
|
2131
2180
|
[data-coco][data-component="app-alert"] .alert-container{
|
2132
2181
|
align-items: center;
|
@@ -2150,15 +2199,21 @@ select{
|
|
2150
2199
|
|
2151
2200
|
[data-coco][data-component="app-alert"].with-title .alert-message{
|
2152
2201
|
margin-top: 0.25rem}
|
2202
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .alert-container{
|
2203
|
+
padding-top: 0.5rem;
|
2204
|
+
padding-bottom: 0.5rem}
|
2153
2205
|
|
2154
|
-
|
2155
|
-
margin-top:
|
2206
|
+
[data-coco][data-component="app-alert"][data-condensed="true"] .coco-icon{
|
2207
|
+
margin-top: 0px}
|
2208
|
+
|
2209
|
+
[data-coco][data-component="app-alert"][data-condensed="true"].with-title .alert-message{
|
2210
|
+
margin-top: 0px}
|
2156
2211
|
|
2157
2212
|
[data-coco][data-component="app-alert"] .alert-actions{
|
2158
2213
|
margin-top: 0px;
|
2159
2214
|
margin-left: auto}
|
2160
2215
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-body{
|
2161
|
-
padding-right:
|
2216
|
+
padding-right: 0.5rem}
|
2162
2217
|
|
2163
2218
|
[data-coco][data-component="app-alert"][data-dismissable="true"] .alert-dismiss{
|
2164
2219
|
position: absolute;
|
@@ -2169,8 +2224,8 @@ select{
|
|
2169
2224
|
/* Layout */
|
2170
2225
|
@container (min-width: 1000px){
|
2171
2226
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line) .alert-container{
|
2172
|
-
padding-top: 0.
|
2173
|
-
padding-bottom: 0.
|
2227
|
+
padding-top: 0.5rem;
|
2228
|
+
padding-bottom: 0.5rem}
|
2174
2229
|
|
2175
2230
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line) .alert-content{
|
2176
2231
|
display: flex;
|
@@ -2190,13 +2245,16 @@ select{
|
|
2190
2245
|
|
2191
2246
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line) .alert-link{
|
2192
2247
|
display: none}
|
2248
|
+
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line)[data-dismissable="true"] .alert-body{
|
2249
|
+
padding-right: 0.5rem}
|
2250
|
+
|
2193
2251
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line)[data-dismissable="true"] .alert-container{
|
2194
2252
|
padding-left: 3rem;
|
2195
2253
|
padding-right: 3rem}
|
2196
2254
|
|
2197
2255
|
[data-coco][data-component="app-alert"][data-single-line="true"]:not(.force-multi-line)[data-dismissable="true"] .alert-dismiss{
|
2198
2256
|
position: absolute;
|
2199
|
-
right:
|
2257
|
+
right: 0.75rem;
|
2200
2258
|
top: 50%;
|
2201
2259
|
--tw-translate-y: -50%;
|
2202
2260
|
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 +2280,21 @@ select{
|
|
2222
2280
|
|
2223
2281
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line.with-title .alert-message{
|
2224
2282
|
margin-top: 0.25rem}
|
2283
|
+
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-condensed="true"] .alert-container{
|
2284
|
+
padding-top: 0.5rem;
|
2285
|
+
padding-bottom: 0.5rem}
|
2286
|
+
|
2287
|
+
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-condensed="true"] .coco-icon{
|
2288
|
+
margin-top: 0px}
|
2225
2289
|
|
2226
|
-
|
2227
|
-
margin-top:
|
2290
|
+
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-condensed="true"].with-title .alert-message{
|
2291
|
+
margin-top: 0px}
|
2228
2292
|
|
2229
2293
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line .alert-actions{
|
2230
2294
|
margin-top: 0px;
|
2231
2295
|
margin-left: auto}
|
2232
2296
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-dismissable="true"] .alert-body{
|
2233
|
-
padding-right:
|
2297
|
+
padding-right: 0.5rem}
|
2234
2298
|
|
2235
2299
|
[data-coco][data-component="app-alert"][data-single-line="true"].force-multi-line[data-dismissable="true"] .alert-dismiss{
|
2236
2300
|
position: absolute;
|
@@ -2626,26 +2690,29 @@ select{
|
|
2626
2690
|
--tw-bg-opacity: 1;
|
2627
2691
|
background-color: rgb(209 213 219 / var(--tw-bg-opacity))}
|
2628
2692
|
[data-coco][data-component="app-button"][data-theme="neutral-light"]{
|
2693
|
+
border-width: 1px;
|
2694
|
+
border-color: transparent}
|
2695
|
+
[data-coco][data-component="app-button"][data-theme="neutral-light"] .button-element{
|
2629
2696
|
--tw-bg-opacity: 1;
|
2630
2697
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
2631
2698
|
--tw-text-opacity: 1;
|
2632
2699
|
color: rgb(17 24 39 / var(--tw-text-opacity))}
|
2633
|
-
[data-coco][data-component="app-button"][data-theme="neutral-light"]:hover{
|
2700
|
+
[data-coco][data-component="app-button"][data-theme="neutral-light"] .button-element:hover{
|
2634
2701
|
--tw-bg-opacity: 1;
|
2635
2702
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity))}
|
2636
|
-
[data-coco][data-component="app-button"][data-theme="neutral-light"]:active{
|
2703
|
+
[data-coco][data-component="app-button"][data-theme="neutral-light"] .button-element:active{
|
2637
2704
|
--tw-bg-opacity: 1;
|
2638
2705
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity))}
|
2639
|
-
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-state="loading"]{
|
2706
|
+
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-state="loading"] .button-element{
|
2640
2707
|
--tw-bg-opacity: 1;
|
2641
2708
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity))}
|
2642
|
-
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-state="active"]{
|
2709
|
+
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-state="active"] .button-element{
|
2643
2710
|
--tw-bg-opacity: 1;
|
2644
2711
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity))}
|
2645
|
-
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-disabled="true"]{
|
2712
|
+
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-disabled="true"] .button-element{
|
2646
2713
|
--tw-bg-opacity: 1;
|
2647
2714
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity))}
|
2648
|
-
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-disabled="true"] .button-inner{
|
2715
|
+
[data-coco][data-component="app-button"][data-theme="neutral-light"][data-disabled="true"] .button-element .button-inner{
|
2649
2716
|
opacity: 0.4}
|
2650
2717
|
[data-coco][data-component="app-button"][data-theme="text-neutral-light"]{
|
2651
2718
|
background-color: transparent;
|
@@ -2670,9 +2737,10 @@ select{
|
|
2670
2737
|
[data-coco][data-component="app-button"][data-theme="text-neutral-dark"][data-disabled="true"]{
|
2671
2738
|
opacity: 0.3}
|
2672
2739
|
/* Responsive resizing */
|
2673
|
-
[data-coco][data-component="app-button"][data-size="xs"] .button-content{
|
2674
|
-
|
2675
|
-
|
2740
|
+
[data-coco][data-component="app-button"][data-size="xs"] .button-content {
|
2741
|
+
font-size: 14px;
|
2742
|
+
line-height: 14px;
|
2743
|
+
}
|
2676
2744
|
[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
2745
|
height: 0.875rem;
|
2678
2746
|
width: 0.875rem}
|
@@ -2681,12 +2749,12 @@ select{
|
|
2681
2749
|
padding-bottom: 0.5rem;
|
2682
2750
|
padding-left: 0.75rem;
|
2683
2751
|
padding-right: 0.75rem}
|
2684
|
-
[data-coco][data-component="app-button"][data-size="xs"]
|
2685
|
-
margin-left: -0.
|
2686
|
-
margin-right: -0.
|
2752
|
+
[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{
|
2753
|
+
margin-left: -0.25rem;
|
2754
|
+
margin-right: -0.25rem}
|
2687
2755
|
[data-coco][data-component="app-button"][data-size="xs"][data-theme|="text"] .button-element{
|
2688
|
-
padding-left: 0.
|
2689
|
-
padding-right: 0.
|
2756
|
+
padding-left: 0.5rem;
|
2757
|
+
padding-right: 0.5rem}
|
2690
2758
|
[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
2759
|
padding-left: 0.5rem;
|
2692
2760
|
padding-right: 0.5rem}
|
@@ -2751,9 +2819,10 @@ select{
|
|
2751
2819
|
padding-left: 0.75rem;
|
2752
2820
|
padding-right: 0.75rem}
|
2753
2821
|
@media (min-width: 768px) {
|
2754
|
-
[data-coco][data-component="app-button"][data-size-md="xs"] .button-content{
|
2755
|
-
|
2756
|
-
|
2822
|
+
[data-coco][data-component="app-button"][data-size-md="xs"] .button-content {
|
2823
|
+
font-size: 14px;
|
2824
|
+
line-height: 14px;
|
2825
|
+
}
|
2757
2826
|
|
2758
2827
|
[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
2828
|
height: 0.875rem;
|
@@ -2764,12 +2833,12 @@ select{
|
|
2764
2833
|
padding-left: 0.75rem;
|
2765
2834
|
padding-right: 0.75rem}
|
2766
2835
|
|
2767
|
-
|
2768
|
-
margin-left: -0.
|
2769
|
-
margin-right: -0.
|
2836
|
+
[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{
|
2837
|
+
margin-left: -0.25rem;
|
2838
|
+
margin-right: -0.25rem}
|
2770
2839
|
[data-coco][data-component="app-button"][data-size-md="xs"][data-theme|="text"] .button-element{
|
2771
|
-
padding-left: 0.
|
2772
|
-
padding-right: 0.
|
2840
|
+
padding-left: 0.5rem;
|
2841
|
+
padding-right: 0.5rem}
|
2773
2842
|
|
2774
2843
|
[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
2844
|
padding-left: 0.5rem;
|
@@ -2845,9 +2914,10 @@ select{
|
|
2845
2914
|
padding-right: 0.75rem}
|
2846
2915
|
}
|
2847
2916
|
@media (min-width: 992px) {
|
2848
|
-
[data-coco][data-component="app-button"][data-size-lg="xs"] .button-content{
|
2849
|
-
|
2850
|
-
|
2917
|
+
[data-coco][data-component="app-button"][data-size-lg="xs"] .button-content {
|
2918
|
+
font-size: 14px;
|
2919
|
+
line-height: 14px;
|
2920
|
+
}
|
2851
2921
|
|
2852
2922
|
[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
2923
|
height: 0.875rem;
|
@@ -2858,12 +2928,12 @@ select{
|
|
2858
2928
|
padding-left: 0.75rem;
|
2859
2929
|
padding-right: 0.75rem}
|
2860
2930
|
|
2861
|
-
|
2862
|
-
margin-left: -0.
|
2863
|
-
margin-right: -0.
|
2931
|
+
[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{
|
2932
|
+
margin-left: -0.25rem;
|
2933
|
+
margin-right: -0.25rem}
|
2864
2934
|
[data-coco][data-component="app-button"][data-size-lg="xs"][data-theme|="text"] .button-element{
|
2865
|
-
padding-left: 0.
|
2866
|
-
padding-right: 0.
|
2935
|
+
padding-left: 0.5rem;
|
2936
|
+
padding-right: 0.5rem}
|
2867
2937
|
|
2868
2938
|
[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
2939
|
padding-left: 0.5rem;
|
@@ -2939,9 +3009,10 @@ select{
|
|
2939
3009
|
padding-right: 0.75rem}
|
2940
3010
|
}
|
2941
3011
|
@media (min-width: 1200px) {
|
2942
|
-
[data-coco][data-component="app-button"][data-size-xl="xs"] .button-content{
|
2943
|
-
|
2944
|
-
|
3012
|
+
[data-coco][data-component="app-button"][data-size-xl="xs"] .button-content {
|
3013
|
+
font-size: 14px;
|
3014
|
+
line-height: 14px;
|
3015
|
+
}
|
2945
3016
|
|
2946
3017
|
[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
3018
|
height: 0.875rem;
|
@@ -2952,12 +3023,12 @@ select{
|
|
2952
3023
|
padding-left: 0.75rem;
|
2953
3024
|
padding-right: 0.75rem}
|
2954
3025
|
|
2955
|
-
|
2956
|
-
margin-left: -0.
|
2957
|
-
margin-right: -0.
|
3026
|
+
[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{
|
3027
|
+
margin-left: -0.25rem;
|
3028
|
+
margin-right: -0.25rem}
|
2958
3029
|
[data-coco][data-component="app-button"][data-size-xl="xs"][data-theme|="text"] .button-element{
|
2959
|
-
padding-left: 0.
|
2960
|
-
padding-right: 0.
|
3030
|
+
padding-left: 0.5rem;
|
3031
|
+
padding-right: 0.5rem}
|
2961
3032
|
|
2962
3033
|
[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
3034
|
padding-left: 0.5rem;
|
@@ -3034,9 +3105,10 @@ select{
|
|
3034
3105
|
}
|
3035
3106
|
@media (min-width: 1400px) {
|
3036
3107
|
[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
|
-
|
3108
|
+
[data-coco][data-component="app-button"][data-size-2xl="xs"] .button-content {
|
3109
|
+
font-size: 14px;
|
3110
|
+
line-height: 14px;
|
3111
|
+
}
|
3040
3112
|
|
3041
3113
|
[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
3114
|
[data-coco][data-component="app-button"][data-size-2xl="xs"] .button-icon [data-component="icon"],
|
@@ -3050,15 +3122,15 @@ select{
|
|
3050
3122
|
padding-left: 0.75rem;
|
3051
3123
|
padding-right: 0.75rem}
|
3052
3124
|
|
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.
|
3125
|
+
[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,
|
3126
|
+
[data-coco][data-component="app-button"][data-size-2xl="xs"].icon-only > .button-element .button-icon,
|
3127
|
+
[data-coco][data-component="app-button"][data-size-2xl="xs"][data-collapsed="true"] > .button-element .button-icon{
|
3128
|
+
margin-left: -0.25rem;
|
3129
|
+
margin-right: -0.25rem}
|
3058
3130
|
[data-coco][data-component="app-button"][data-size-xxl="xs"][data-theme|="text"] .button-element,
|
3059
3131
|
[data-coco][data-component="app-button"][data-size-2xl="xs"][data-theme|="text"] .button-element{
|
3060
|
-
padding-left: 0.
|
3061
|
-
padding-right: 0.
|
3132
|
+
padding-left: 0.5rem;
|
3133
|
+
padding-right: 0.5rem}
|
3062
3134
|
|
3063
3135
|
[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
3136
|
[data-coco][data-component="app-button"][data-size-2xl="xs"][data-theme|="text"].icon-only > .button-element .button-icon,
|
@@ -3163,9 +3235,10 @@ select{
|
|
3163
3235
|
padding-right: 0.75rem}
|
3164
3236
|
}
|
3165
3237
|
@media (min-width: 1800px) {
|
3166
|
-
[data-coco][data-component="app-button"][data-size-max="xs"] .button-content{
|
3167
|
-
|
3168
|
-
|
3238
|
+
[data-coco][data-component="app-button"][data-size-max="xs"] .button-content {
|
3239
|
+
font-size: 14px;
|
3240
|
+
line-height: 14px;
|
3241
|
+
}
|
3169
3242
|
|
3170
3243
|
[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
3244
|
height: 0.875rem;
|
@@ -3176,12 +3249,12 @@ select{
|
|
3176
3249
|
padding-left: 0.75rem;
|
3177
3250
|
padding-right: 0.75rem}
|
3178
3251
|
|
3179
|
-
|
3180
|
-
margin-left: -0.
|
3181
|
-
margin-right: -0.
|
3252
|
+
[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{
|
3253
|
+
margin-left: -0.25rem;
|
3254
|
+
margin-right: -0.25rem}
|
3182
3255
|
[data-coco][data-component="app-button"][data-size-max="xs"][data-theme|="text"] .button-element{
|
3183
|
-
padding-left: 0.
|
3184
|
-
padding-right: 0.
|
3256
|
+
padding-left: 0.5rem;
|
3257
|
+
padding-right: 0.5rem}
|
3185
3258
|
|
3186
3259
|
[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
3260
|
padding-left: 0.5rem;
|
@@ -3953,19 +4026,20 @@ select{
|
|
3953
4026
|
[data-coco][data-component="app-menu"] .menu-item .divider{
|
3954
4027
|
margin-top: 0.375rem;
|
3955
4028
|
margin-bottom: 0.375rem}
|
3956
|
-
[data-coco][data-component="app-menu"][data-size="sm"]
|
4029
|
+
[data-coco][data-component="app-menu"][data-size="sm"],
|
4030
|
+
[data-coco][data-component="app-menu"][data-size="xs"]{
|
3957
4031
|
padding-top: 0.375rem;
|
3958
4032
|
padding-bottom: 0.375rem}
|
3959
|
-
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element{
|
4033
|
+
[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
4034
|
padding-left: 1rem;
|
3961
4035
|
padding-right: 1rem;
|
3962
4036
|
padding-top: 0.5rem;
|
3963
4037
|
padding-bottom: 0.5rem;
|
3964
4038
|
font-size: 14px;
|
3965
4039
|
line-height: 16px}
|
3966
|
-
[data-coco][data-component="app-menu"][data-size="sm"] .menu-item [data-component="app-button"] > .button-element .button-inner{
|
4040
|
+
[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
4041
|
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"]{
|
4042
|
+
[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
4043
|
height: 1rem;
|
3970
4044
|
width: 1rem}
|
3971
4045
|
[data-coco][data-component="app-menu"][data-size="md"]{
|
@@ -4878,6 +4952,13 @@ select{
|
|
4878
4952
|
margin-top: 0.75rem}
|
4879
4953
|
.app-alert-stacked.with-title .alert-message{
|
4880
4954
|
margin-top: 0.25rem}
|
4955
|
+
.app-alert-stacked[data-condensed="true"] .alert-container{
|
4956
|
+
padding-top: 0.75rem;
|
4957
|
+
padding-bottom: 0.75rem}
|
4958
|
+
.app-alert-stacked[data-condensed="true"] .coco-icon{
|
4959
|
+
margin-top: 0.375rem}
|
4960
|
+
.app-alert-stacked[data-condensed="true"].with-title .alert-message{
|
4961
|
+
margin-top: 0px}
|
4881
4962
|
.app-alert-stacked[data-dismissable="true"] .alert-container{
|
4882
4963
|
padding-right: 3rem}
|
4883
4964
|
.app-alert-stacked[data-dismissable="true"] .alert-dismiss{
|
@@ -4885,6 +4966,16 @@ select{
|
|
4885
4966
|
top: 0.5rem;
|
4886
4967
|
right: 0.5rem;
|
4887
4968
|
margin-left: auto}
|
4969
|
+
.app-alert-stacked:not(.with-title):not(.with-action) .alert-container{
|
4970
|
+
align-items: center}
|
4971
|
+
.app-alert-stacked:not(.with-title):not(.with-action) .alert-icon{
|
4972
|
+
align-self: center}
|
4973
|
+
.app-alert-stacked:not(.with-title):not(.with-action)[data-dismissable="true"] .alert-dismiss{
|
4974
|
+
position: absolute;
|
4975
|
+
right: 0.75rem;
|
4976
|
+
top: 50%;
|
4977
|
+
--tw-translate-y: -50%;
|
4978
|
+
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
4979
|
.app-alert-multi-line .alert-container{
|
4889
4980
|
align-items: center;
|
4890
4981
|
padding-top: 0.625rem;
|
@@ -4902,13 +4993,18 @@ select{
|
|
4902
4993
|
}
|
4903
4994
|
.app-alert-multi-line.with-title .alert-message{
|
4904
4995
|
margin-top: 0.25rem}
|
4996
|
+
.app-alert-multi-line[data-condensed="true"] .alert-container{
|
4997
|
+
padding-top: 0.5rem;
|
4998
|
+
padding-bottom: 0.5rem}
|
4999
|
+
.app-alert-multi-line[data-condensed="true"] .coco-icon{
|
5000
|
+
margin-top: 0px}
|
4905
5001
|
.app-alert-multi-line[data-condensed="true"].with-title .alert-message{
|
4906
|
-
margin-top:
|
5002
|
+
margin-top: 0px}
|
4907
5003
|
.app-alert-multi-line .alert-actions{
|
4908
5004
|
margin-top: 0px;
|
4909
5005
|
margin-left: auto}
|
4910
5006
|
.app-alert-multi-line[data-dismissable="true"] .alert-body{
|
4911
|
-
padding-right:
|
5007
|
+
padding-right: 0.5rem}
|
4912
5008
|
.app-alert-multi-line[data-dismissable="true"] .alert-dismiss{
|
4913
5009
|
position: absolute;
|
4914
5010
|
right: 0.75rem;
|
@@ -4916,8 +5012,8 @@ select{
|
|
4916
5012
|
--tw-translate-y: -50%;
|
4917
5013
|
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
5014
|
.app-alert-single-line .alert-container{
|
4919
|
-
padding-top: 0.
|
4920
|
-
padding-bottom: 0.
|
5015
|
+
padding-top: 0.5rem;
|
5016
|
+
padding-bottom: 0.5rem}
|
4921
5017
|
.app-alert-single-line .alert-content{
|
4922
5018
|
display: flex;
|
4923
5019
|
width: 100%;
|
@@ -4932,18 +5028,21 @@ select{
|
|
4932
5028
|
margin-top: 0px}
|
4933
5029
|
.app-alert-single-line .alert-link{
|
4934
5030
|
display: none}
|
5031
|
+
.app-alert-single-line[data-dismissable="true"] .alert-body{
|
5032
|
+
padding-right: 0.5rem}
|
4935
5033
|
.app-alert-single-line[data-dismissable="true"] .alert-container{
|
4936
5034
|
padding-left: 3rem;
|
4937
5035
|
padding-right: 3rem}
|
4938
5036
|
.app-alert-single-line[data-dismissable="true"] .alert-dismiss{
|
4939
5037
|
position: absolute;
|
4940
|
-
right:
|
5038
|
+
right: 0.75rem;
|
4941
5039
|
top: 50%;
|
4942
5040
|
--tw-translate-y: -50%;
|
4943
5041
|
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
|
-
|
5042
|
+
.app-button-xs .button-content {
|
5043
|
+
font-size: 14px;
|
5044
|
+
line-height: 14px;
|
5045
|
+
}
|
4947
5046
|
.app-button-xs .button-icon [data-component="icon"],
|
4948
5047
|
.app-button-xs .button-toggle{
|
4949
5048
|
height: 0.875rem;
|
@@ -4953,13 +5052,13 @@ select{
|
|
4953
5052
|
padding-bottom: 0.5rem;
|
4954
5053
|
padding-left: 0.75rem;
|
4955
5054
|
padding-right: 0.75rem}
|
4956
|
-
.app-button-xs
|
4957
|
-
|
4958
|
-
margin-left: -0.
|
4959
|
-
margin-right: -0.
|
5055
|
+
.app-button-xs.icon-only > .button-element .button-icon,
|
5056
|
+
.app-button-xs[data-collapsed="true"] > .button-element .button-icon{
|
5057
|
+
margin-left: -0.25rem;
|
5058
|
+
margin-right: -0.25rem}
|
4960
5059
|
.app-button-xs[data-theme|="text"] .button-element{
|
4961
|
-
padding-left: 0.
|
4962
|
-
padding-right: 0.
|
5060
|
+
padding-left: 0.5rem;
|
5061
|
+
padding-right: 0.5rem}
|
4963
5062
|
.app-button-xs[data-theme|="text"].icon-only > .button-element .button-icon,
|
4964
5063
|
.app-button-xs[data-theme|="text"][data-collapsed="true"] > .button-element .button-icon{
|
4965
5064
|
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.3",
|
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
|
@@ -5,6 +5,8 @@
|
|
5
5
|
grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1fr);
|
6
6
|
|
7
7
|
.nav-action {
|
8
|
+
@apply cursor-pointer;
|
9
|
+
|
8
10
|
.nav-item-label {
|
9
11
|
@apply hidden !text-content-primary-inverse-vivid;
|
10
12
|
}
|
@@ -35,7 +37,7 @@
|
|
35
37
|
@apply sidebar-nav-vertical-condensed;
|
36
38
|
}
|
37
39
|
|
38
|
-
@media screen(
|
40
|
+
@media screen(lg) {
|
39
41
|
@apply sidebar-nav-vertical;
|
40
42
|
}
|
41
43
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@layer components {
|
2
2
|
[data-coco][data-component="app-sidebar-nav-item"] {
|
3
|
-
@apply bg-background-dark-2 text-content-dark-muted text-center no-underline transition-colors flex-none;
|
3
|
+
@apply bg-background-dark-2 text-content-dark-muted text-center no-underline transition-colors flex-none cursor-pointer;
|
4
4
|
@apply flex items-center justify-center px-4 w-full flex-col;
|
5
5
|
|
6
6
|
&[href] {
|
@@ -13,7 +13,7 @@
|
|
13
13
|
}
|
14
14
|
|
15
15
|
.nav-item-label {
|
16
|
-
@apply block font-semibold text-label-xxs transition-colors mt-0.5;
|
16
|
+
@apply block font-semibold text-label-xxs transition-colors mt-0.5 cursor-pointer;
|
17
17
|
}
|
18
18
|
|
19
19
|
&.emphasised {
|
@@ -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
|
|
@@ -12,8 +12,10 @@
|
|
12
12
|
<%= label %>
|
13
13
|
</label>
|
14
14
|
<% if menu? || menu_items? %>
|
15
|
-
|
16
|
-
|
15
|
+
<%= tag.template id: menu_template_id, "x-ref": "menu" do %>
|
16
|
+
<%= tag.div id: menu_id,
|
17
|
+
class: "sidebar-nav-menu",
|
18
|
+
"x-cloak": "" do %>
|
17
19
|
<% if menu? %>
|
18
20
|
<%= menu %>
|
19
21
|
<% else %>
|
@@ -37,7 +39,7 @@
|
|
37
39
|
|
38
40
|
<%= menu_action %>
|
39
41
|
<% end %>
|
40
|
-
|
41
|
-
|
42
|
+
<% end %>
|
43
|
+
<% end %>
|
42
44
|
<% end %>
|
43
45
|
<% end %>
|
@@ -25,6 +25,7 @@ module Coco
|
|
25
25
|
end
|
26
26
|
|
27
27
|
before_render do
|
28
|
+
set_tag_attr(:id, item_id)
|
28
29
|
if @icon && !icon?
|
29
30
|
with_icon do
|
30
31
|
tag.span(class: "nav-item-icon") do
|
@@ -34,9 +35,10 @@ module Coco
|
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
37
|
-
attr_reader :label, :tooltip, :dropdown_menu_items, :max_menu_items
|
38
|
+
attr_reader :label, :tooltip, :dropdown_menu_items, :max_menu_items, :item_id
|
38
39
|
|
39
|
-
def initialize(label:, icon: nil, emphasise: false, active: false, tooltip: nil, menu_select_placeholder: nil, max_menu_items: 6, **)
|
40
|
+
def initialize(label:, id: nil, icon: nil, emphasise: false, active: false, tooltip: nil, menu_select_placeholder: nil, max_menu_items: 6, **)
|
41
|
+
@item_id = id
|
40
42
|
@label = label
|
41
43
|
@icon = icon
|
42
44
|
@emphasise = emphasise
|
@@ -63,6 +65,14 @@ module Coco
|
|
63
65
|
@menu_select_placeholder || "More items..."
|
64
66
|
end
|
65
67
|
|
68
|
+
def menu_id
|
69
|
+
"#{item_id}-menu" if item_id.present?
|
70
|
+
end
|
71
|
+
|
72
|
+
def menu_template_id
|
73
|
+
"#{menu_id}-template" if menu_id.present?
|
74
|
+
end
|
75
|
+
|
66
76
|
class SidebarNavMenuItem < Coco::Component
|
67
77
|
attr_reader :icon, :href, :modal
|
68
78
|
|
@@ -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: {
|
@@ -241,17 +241,21 @@
|
|
241
241
|
}
|
242
242
|
|
243
243
|
&[data-theme="neutral-light"] {
|
244
|
-
@apply
|
244
|
+
@apply border border-transparent;
|
245
245
|
|
246
|
-
|
246
|
+
.button-element {
|
247
|
+
@apply bg-background-light-1 text-content-dark-1 hover:bg-background-light-2 active:bg-background-light-3;
|
248
|
+
}
|
249
|
+
|
250
|
+
&[data-state="loading"] .button-element {
|
247
251
|
@apply bg-background-light-1;
|
248
252
|
}
|
249
253
|
|
250
|
-
&[data-state="active"] {
|
254
|
+
&[data-state="active"] .button-element {
|
251
255
|
@apply bg-background-light-3;
|
252
256
|
}
|
253
257
|
|
254
|
-
&[data-disabled="true"] {
|
258
|
+
&[data-disabled="true"] .button-element {
|
255
259
|
@apply bg-background-light-1;
|
256
260
|
|
257
261
|
.button-inner {
|
@@ -401,7 +405,8 @@
|
|
401
405
|
@layer utilities {
|
402
406
|
.app-button-xs {
|
403
407
|
.button-content {
|
404
|
-
|
408
|
+
font-size: 14px;
|
409
|
+
line-height: 14px;
|
405
410
|
}
|
406
411
|
|
407
412
|
.button-icon [data-component="icon"],
|
@@ -413,16 +418,16 @@
|
|
413
418
|
.button-element {
|
414
419
|
@apply py-2 px-3;
|
415
420
|
}
|
421
|
+
}
|
416
422
|
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
}
|
423
|
+
&.icon-only > .button-element .button-icon,
|
424
|
+
&[data-collapsed="true"] > .button-element .button-icon {
|
425
|
+
@apply -ml-1 -mr-1;
|
421
426
|
}
|
422
427
|
|
423
428
|
&[data-theme|="text"] {
|
424
429
|
.button-element {
|
425
|
-
@apply px-
|
430
|
+
@apply px-2;
|
426
431
|
}
|
427
432
|
|
428
433
|
&.icon-only > .button-element .button-icon,
|
data/lib/coco.rb
CHANGED