Skip to content

Commit

Permalink
refactor: css for error
Browse files Browse the repository at this point in the history
  • Loading branch information
remadex committed Nov 28, 2024
1 parent a1711aa commit cc28abc
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-bic-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-bic-container .tpk-bic-input {
Expand All @@ -14,7 +14,10 @@
@apply input-error text-error;
}

.tpk-bic-container[data-has-error~="true"] .tpk-validation-errors,
.tpk-bic-container[data-has-error~="true"] .tpk-label {
@apply text-error label;
}
}

.tpk-bic-container[data-has-error~="true"] .tpk-validation-errors {
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-checkbox-container {
@apply form-control
@apply form-control relative pb-4;
}

.tpk-checkbox-container .tpk-label {
Expand All @@ -14,7 +14,10 @@
@apply checkbox checkbox-error;
}

.tpk-checkbox-container[data-has-error~="true"] .tpk-validation-errors,
.tpk-checkbox-container[data-has-error~="true"] .tpk-label {
@apply text-error label;
}
}

.tpk-checkbox-container[data-has-error~="true"] .tpk-validation-errors {
@apply text-error text-sm justify-self-end absolute -bottom-1;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-currency-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-currency-container .tpk-label {
Expand All @@ -14,9 +14,9 @@
@apply input-error;
}

.tpk-currency-container[data-has-error~="true"]
.tpk-currency-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-currency-container[data-has-error~="true"] .tpk-label{
Expand All @@ -25,4 +25,4 @@

.tpk-currency-container[data-has-error~="true"] .tpk-currency-input {
@apply text-error;
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
.tpk-datepicker-range-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-datepicker-range-container .tpk-label {
@apply label;
}

.tpk-datepicker-range-input {
@apply input input-bordered;
@apply input input-bordered w-full;
}

.tpk-datepicker-range-container[data-has-error~="true"] .tpk-datepicker-range-input {
@apply input-error;
}

.tpk-datepicker-range-container[data-has-error~="true"]
.tpk-datepicker-range-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-datepicker-range-container[data-has-error~="true"] .tpk-label{
Expand All @@ -25,4 +25,4 @@

.tpk-datepicker-range-container[data-has-error~="true"] .tpk-datepicker-range-input {
@apply text-error;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-email-container {
@apply form-control;
@apply form-control relative pb-5;
}

.tpk-email-container .tpk-label {
Expand All @@ -14,9 +14,9 @@
@apply input-error;
}

.tpk-email-container[data-has-error~="true"]
.tpk-email-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-email-container[data-has-error~="true"] .tpk-label{
Expand All @@ -25,4 +25,4 @@

.tpk-email-container[data-has-error~="true"] .tpk-email-input {
@apply text-error;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-file-container {
@apply form-control w-full;
@apply form-control relative pb-4 w-full;
}

.tpk-file-container .tpk-label {
Expand All @@ -14,9 +14,9 @@
@apply input-error;
}

.tpk-file-container[data-has-error~="true"]
.tpk-file-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-file-container[data-has-error~="true"] .tpk-label{
Expand All @@ -29,4 +29,4 @@

.tpk-file-container[data-has-error~="true"] .tpk-file-input::file-selector-button {
@apply bg-red-100 border border-none text-error;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-iban-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-iban-container .tpk-label {
Expand All @@ -14,9 +14,9 @@
@apply input-error;
}

.tpk-iban-container[data-has-error~="true"]
.tpk-iban-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-iban-container[data-has-error~="true"] .tpk-label{
Expand All @@ -25,4 +25,4 @@

.tpk-iban-container[data-has-error~="true"] .tpk-iban-input {
@apply text-error;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-input-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-input-container .tpk-label {
Expand All @@ -16,7 +16,7 @@

.tpk-input-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-input-container[data-has-error~="true"] .tpk-label {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-integer-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-integer-container .tpk-label {
Expand All @@ -16,7 +16,7 @@

.tpk-integer-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-integer-container[data-has-error~="true"] .tpk-label {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-national-number-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-national-number-container .tpk-label {
Expand All @@ -16,7 +16,7 @@

.tpk-national-number-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-national-number-container[data-has-error~="true"] .tpk-label{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tpk-number-container {
@apply form-control;
@apply form-control relative pb-4;
}

.tpk-number-container .tpk-label {
Expand All @@ -16,7 +16,7 @@

.tpk-number-container[data-has-error~="true"]
.tpk-validation-errors {
@apply text-error label justify-self-end;
@apply text-error text-sm justify-self-end right-0 -bottom-1 absolute;
}

.tpk-number-container[data-has-error~="true"] .tpk-label {
Expand Down

0 comments on commit cc28abc

Please sign in to comment.