capibara 1.3.81 → 1.3.83

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capibara",
3
- "version": "1.3.81",
3
+ "version": "1.3.83",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -648,6 +648,14 @@
648
648
  transition: background-color 0.15s ease;
649
649
  cursor: pointer;
650
650
 
651
+ // El label de campo (.text-subtitle) trae su propio margin pensado para
652
+ // encabezar una sección; dentro de la fila flex del checkbox se anula
653
+ // para no romper la alineación con el input.
654
+ .text-subtitle {
655
+ margin: 0;
656
+ flex: 0 1 auto;
657
+ }
658
+
651
659
  &:hover {
652
660
  background-color: rgba(25, 118, 210, 0.15);
653
661
  }
@@ -4,6 +4,51 @@
4
4
 
5
5
  .capibara {
6
6
  .detail-day {
7
+ .fert-detail {
8
+ min-width: 0;
9
+ padding-block: 0.375rem;
10
+
11
+ & + .fert-detail {
12
+ border-top: 1px solid currentColor;
13
+ margin-top: 0.375rem;
14
+ }
15
+ }
16
+
17
+ .fert-detail__product {
18
+ font-weight: 600;
19
+ margin-bottom: 0.25rem;
20
+ overflow-wrap: anywhere;
21
+ }
22
+
23
+ .fert-detail__table {
24
+ width: 100%;
25
+ border-collapse: collapse;
26
+ table-layout: fixed;
27
+ font-size: inherit;
28
+
29
+ tbody tr:nth-child(even) {
30
+ background-color: color-mix(in srgb, currentColor 4%, transparent);
31
+ }
32
+
33
+ th, td {
34
+ padding: 0.2rem 0;
35
+ vertical-align: top;
36
+ overflow-wrap: anywhere;
37
+ }
38
+
39
+ th {
40
+ width: 46%;
41
+ padding-right: 0.5rem;
42
+ text-align: left;
43
+ font-weight: 400;
44
+ }
45
+
46
+ td {
47
+ text-align: right;
48
+ font-variant-numeric: tabular-nums;
49
+ }
50
+ }
51
+
7
52
  min-height: 50px;
8
53
  // max-height: min(calc(100% - 0px), 600px);
9
54
  //min-width: 250px;
@@ -4650,7 +4650,7 @@ export default {
4650
4650
  <input type="checkbox" name="${props.key || ""}" input-key="${
4651
4651
  props.key || ""
4652
4652
  }" ${value ? "checked" : ""}>
4653
- <span style="font-weight:600;">${props.label}</span>
4653
+ <span class="text-subtitle">${props.label}</span>
4654
4654
  </label>
4655
4655
  ${helpText ? `<div class="cap-checkbox-help">${helpText}</div>` : ""}
4656
4656
  </div>`);