testio-tailwind 0.8.0 → 0.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testio-tailwind",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Tailwind based design system for Test IO",
5
5
  "scripts": {
6
6
  "clean": "del dist",
@@ -1,10 +1,19 @@
1
-
2
1
  .form-group {
3
2
  @apply relative grid grid-cols-1 md:grid-cols-1-3 md:gap-grid-gutter;
4
3
  }
5
4
 
6
5
  .form-label {
7
6
  @apply text-label text-label leading-tight;
7
+
8
+ &.optional::after {
9
+ content: "(optional)";
10
+ @apply ml-1 inline-block;
11
+ }
12
+
13
+ &.optional-non-en::after {
14
+ content: attr(data-optional-non-en);
15
+ @apply ml-1 inline-block;
16
+ }
8
17
  }
9
18
 
10
19
  .form-group .form-label {
@@ -15,15 +24,15 @@
15
24
  @apply text-label-inverted-color;
16
25
  }
17
26
 
18
- .form-control,
27
+ .form-control,
19
28
  .form-control-static {
20
29
  @apply h-btn w-full text-base border border-bordercolor;
21
30
  }
22
31
 
23
- .form-check .field_with_errors input[type=checkbox],
24
- .form-check .field_with_errors input[type=checkbox]:checked,
25
- .form-radio .field_with_errors input[type=radio],
26
- .form-radio .field_with_errors input[type=radio]:checked,
32
+ .form-check .field_with_errors input[type="checkbox"],
33
+ .form-check .field_with_errors input[type="checkbox"]:checked,
34
+ .form-radio .field_with_errors input[type="radio"],
35
+ .form-radio .field_with_errors input[type="radio"]:checked,
27
36
  .field_with_errors.dropzone,
28
37
  .field_with_errors .form-control {
29
38
  @apply border-danger;
@@ -38,7 +47,7 @@
38
47
 
39
48
  .form-hint {
40
49
  @apply flex items-start text-sm mt-xs;
41
-
50
+
42
51
  &::before {
43
52
  @apply inline-block h-icon w-icon mr-xs bg-gray;
44
53
  content: "";
@@ -73,14 +82,12 @@ textarea.form-control {
73
82
  line-height: 1.2;
74
83
  }
75
84
 
76
-
77
85
  .form-control::placeholder {
78
86
  @apply text-disabled italic;
79
87
  }
80
88
 
81
-
82
- .form-control:disabled,
83
- .form-control.disabled,
89
+ .form-control:disabled,
90
+ .form-control.disabled,
84
91
  .form-control[readonly] {
85
92
  @apply bg-disabled;
86
93
  }
@@ -103,4 +110,3 @@ textarea.form-control {
103
110
  .form-date .form-control {
104
111
  @apply pr-lg;
105
112
  }
106
-
@@ -7,6 +7,14 @@ title: Forms
7
7
  .form-group
8
8
  %label.form-label Input
9
9
  %input.form-control{type:'text', placeholder:"Some delicious placeholder text"}
10
+ .form-group
11
+ %label.form-label.optional Not required input
12
+ %input.form-control{type:'text', placeholder:"Some delicious placeholder text"}
13
+ .form-group
14
+ %label.form-label.optional-non-en{"data-optional-non-en": "(freiwillig)"} Not required input
15
+ %div
16
+ %input.form-control{type:'text', placeholder:"Some delicious placeholder text"}
17
+ .form-hint For most cases you can use the english optional label, but we also added support for any translation you might need. Just add the data-optional-non-en => t(optional)
10
18
  .form-group
11
19
  %label.form-label Input disabled
12
20
  %input.form-control{type:'text', value:"Some delicious readonly value text", disabled:"true"}
@@ -20,4 +28,4 @@ title: Forms
20
28
  %label.form-label Input with errors
21
29
  .field_with_errors
22
30
  %input.form-control{type:'text', value:""}
23
- .form-hint.error You made a mistake, which is why you see this form validation error message with some helpful Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
31
+ .form-hint.error You made a mistake, which is why you see this form validation error message with some helpful Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
@@ -1985,10 +1985,6 @@ select{
1985
1985
  padding-left: 20px;
1986
1986
  }
1987
1987
 
1988
- .pt-6{
1989
- padding-top: 1.5rem;
1990
- }
1991
-
1992
1988
  .pt-xs{
1993
1989
  padding-top: 10px;
1994
1990
  }
@@ -12822,6 +12818,18 @@ a.listitem:hover .icon{
12822
12818
  line-height: 1.25;
12823
12819
  }
12824
12820
 
12821
+ .form-label.optional::after {
12822
+ content: "(optional)";
12823
+ margin-left: 0.25rem;
12824
+ display: inline-block;
12825
+ }
12826
+
12827
+ .form-label.optional-non-en::after {
12828
+ content: attr(data-optional-non-en);
12829
+ margin-left: 0.25rem;
12830
+ display: inline-block;
12831
+ }
12832
+
12825
12833
  .form-group .form-label{
12826
12834
  padding-bottom: 5px;
12827
12835
  }
@@ -12838,7 +12846,7 @@ a.listitem:hover .icon{
12838
12846
  color: rgb(191 193 197 / var(--tw-text-opacity, 1));
12839
12847
  }
12840
12848
 
12841
- .form-control,
12849
+ .form-control,
12842
12850
  .form-control-static{
12843
12851
  height: 40px;
12844
12852
  width: 100%;
@@ -12849,10 +12857,10 @@ a.listitem:hover .icon{
12849
12857
  line-height: 18px;
12850
12858
  }
12851
12859
 
12852
- .form-check .field_with_errors input[type=checkbox],
12853
- .form-check .field_with_errors input[type=checkbox]:checked,
12854
- .form-radio .field_with_errors input[type=radio],
12855
- .form-radio .field_with_errors input[type=radio]:checked,
12860
+ .form-check .field_with_errors input[type="checkbox"],
12861
+ .form-check .field_with_errors input[type="checkbox"]:checked,
12862
+ .form-radio .field_with_errors input[type="radio"],
12863
+ .form-radio .field_with_errors input[type="radio"]:checked,
12856
12864
  .field_with_errors.dropzone,
12857
12865
  .field_with_errors .form-control{
12858
12866
  --tw-border-opacity: 1;
@@ -12934,8 +12942,8 @@ textarea.form-control{
12934
12942
  color: rgb(191 193 197 / var(--tw-text-opacity, 1));
12935
12943
  }
12936
12944
 
12937
- .form-control:disabled,
12938
- .form-control.disabled,
12945
+ .form-control:disabled,
12946
+ .form-control.disabled,
12939
12947
  .form-control[readonly]{
12940
12948
  --tw-bg-opacity: 1;
12941
12949
  background-color: rgb(191 193 197 / var(--tw-bg-opacity, 1));
@@ -13488,13 +13496,13 @@ textarea.form-control{
13488
13496
  }
13489
13497
  }
13490
13498
 
13491
- .trix-content{
13499
+ .trix-editor .trix-content{
13492
13500
  margin-top: -20px;
13493
13501
  }
13494
13502
 
13495
13503
  @media (min-width: 768px) {
13496
13504
 
13497
- .trix-content {
13505
+ .trix-editor .trix-content {
13498
13506
  grid-area: trix-editor
13499
13507
  }
13500
13508
  }