Skip to content

Commit dca3b29

Browse files
Merge pull request #18 from oleksii-suprun-github/os-03-return-all-daisyui-input-components
feat: return default daisy ui input styling
2 parents 033a145 + 2880889 commit dca3b29

File tree

4 files changed

+2
-67
lines changed

4 files changed

+2
-67
lines changed

app/components/ChargeStationsForm/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function ChargeStationsForm({
6666

6767
<div className="flex justify-end md:mt-7 md:w-1/3 md:justify-start">
6868
<button
69-
className="btn btn-sm border-0 bg-brand-aqua text-black hover:bg-brand-light-aqua"
69+
className="btn border-0 bg-brand-aqua text-black hover:bg-brand-light-aqua"
7070
type="submit"
7171
disabled={!isValid}
7272
>

app/components/ParametersForm/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function ParametersForm({
8888
/>
8989
</div>
9090
<button
91-
className="btn btn-sm ml-auto mt-10 border-0 bg-brand-aqua text-black hover:bg-brand-light-aqua"
91+
className="btn ml-auto mt-10 border-0 bg-brand-aqua text-black hover:bg-brand-light-aqua"
9292
type="submit"
9393
disabled={!isValid}
9494
>

app/globals.css

-64
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,3 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4-
5-
input[type='number'] {
6-
-moz-appearance: textfield;
7-
appearance: textfield;
8-
}
9-
10-
input[type='number']::-webkit-inner-spin-button {
11-
-webkit-appearance: none;
12-
margin: 0;
13-
}
14-
15-
input[type='number']::-webkit-outer-spin-button {
16-
-webkit-appearance: none;
17-
margin: 0;
18-
}
19-
20-
.input {
21-
@apply block appearance-none rounded-lg border border-blue-600 bg-brand-blue p-2.5 text-white focus:border-blue-500 focus:outline-none focus:ring;
22-
}
23-
24-
.select {
25-
@apply block appearance-none rounded-lg border border-blue-600 bg-brand-blue p-2.5 text-white focus:border-blue-500 focus:outline-none focus:ring;
26-
}
27-
28-
.btn {
29-
@apply inline-flex animate-none cursor-pointer appearance-none items-center justify-center rounded-lg bg-brand-aqua px-6 py-5 font-bold text-black hover:to-brand-light-aqua focus:outline-none;
30-
}
31-
32-
.btn-sm {
33-
@apply px-3 py-3 text-sm;
34-
}
35-
36-
.btn:disabled,
37-
.btn[disabled] {
38-
@apply cursor-default opacity-5;
39-
}
40-
41-
.range {
42-
@apply h-2 w-full appearance-none rounded-full bg-stone-300 focus:outline-none;
43-
}
44-
45-
.range::-webkit-slider-thumb {
46-
@apply h-4 w-4 cursor-pointer appearance-none rounded-full border-2 border-white bg-brand-aqua shadow-md transition-transform duration-200 ease-in-out;
47-
}
48-
49-
.range::-webkit-slider-thumb:hover {
50-
@apply scale-110;
51-
}
52-
53-
.range::-webkit-slider-thumb:focus {
54-
@apply scale-125;
55-
}
56-
57-
.range::-moz-range-thumb {
58-
@apply h-4 w-4 cursor-pointer rounded-full border-2 border-white bg-brand-aqua shadow-md transition-transform duration-200 ease-in-out;
59-
}
60-
61-
.range::-moz-range-thumb:hover {
62-
@apply scale-110;
63-
}
64-
65-
.range::-moz-range-thumb:focus {
66-
@apply scale-125;
67-
}

app/ui-lib/FormInput/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const FormInput = ({
3838
case 'select':
3939
return (
4040
<div className="relative">
41-
<span className="absolute right-[10px] top-[11px] text-sm"></span>
4241
<select
4342
{...register}
4443
className={clsx('select w-full bg-brand-blue placeholder:text-gray-400', className)}

0 commit comments

Comments
 (0)