Skip to content

Commit 950c0c7

Browse files
committed
type number min max added
1 parent 2fe49f6 commit 950c0c7

File tree

13 files changed

+2308
-2380
lines changed

13 files changed

+2308
-2380
lines changed

dist/nitrozen.common.js

Lines changed: 50 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nitrozen.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nitrozen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nitrozen.umd.js

Lines changed: 50 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nitrozen.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nitrozen.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nitrozen.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2077 additions & 2212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gofynd/nitrozen-vue",
3-
"version": "0.0.18",
3+
"version": "0.0.19",
44
"description": "Fynd Design Library for Vue",
55
"homepage": "https://github.com/gofynd/nitrozen-vue#readme",
66
"author": "Aayush Jain<aayushjain3011@gmail.com>",

src/components/NInput/NInput.less

Lines changed: 102 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,162 +1,173 @@
11
@import "./../../base/base.less";
22
.n-input {
3-
// margin: 4px 0px 0px 0px;
4-
padding: 0 12px;
5-
height: 40px;
6-
color: @TypographyPrimaryColor;
7-
border: 1px solid @BorderColor;
8-
border-radius: 3px;
9-
width: 100%;
10-
background: @WhiteColor;
11-
font-family: @PrimaryFont;
12-
position: relative;
13-
outline: none;
14-
box-sizing: border-box;
15-
font-size: @BaseFontSize + 2;
16-
&:focus {
17-
border: 1px solid @SecondaryColor;
18-
}
3+
// margin: 4px 0px 0px 0px;
4+
padding: 0 12px;
5+
height: 40px;
6+
color: @TypographyPrimaryColor;
7+
border: 1px solid @BorderColor;
8+
border-radius: 3px;
9+
width: 100%;
10+
background: @WhiteColor;
11+
font-family: @PrimaryFont;
12+
position: relative;
13+
outline: none;
14+
box-sizing: border-box;
15+
font-size: @BaseFontSize + 2;
16+
&:focus {
17+
border: 1px solid @SecondaryColor;
18+
}
1919
}
2020

2121
.n-input-textarea {
22-
height: 96px;
23-
line-height: 21px;
24-
padding-top: 6px;
22+
height: 96px;
23+
line-height: 21px;
24+
padding-top: 6px;
2525
}
2626

2727
.n-input:disabled {
28-
background: @HoverColor;
29-
pointer-events: none;
30-
cursor: not-allowed;
31-
opacity: 0.5;
28+
background: @HoverColor;
29+
pointer-events: none;
30+
cursor: not-allowed;
31+
opacity: 0.5;
3232
}
3333

3434
.n-input:disabled + .n-input-label {
35-
opacity: 0.5;
35+
opacity: 0.5;
3636
}
3737

3838
.nitrozen-form-input {
39-
outline: none;
40-
// &:focus {
41-
// label{
42-
// color: @SecondaryColor;
43-
// font-weight: 600;
44-
// }
45-
// }
39+
outline: none;
40+
// &:focus {
41+
// label{
42+
// color: @SecondaryColor;
43+
// font-weight: 600;
44+
// }
45+
// }
4646
}
4747

4848
.n-input-label {
49-
color: @LabelColor;
50-
font-family: @PrimaryFont;
51-
font-size: 12px;
52-
font-weight: 500;
53-
line-height: 21px;
54-
display: flex;
55-
flex: 1;
49+
color: @LabelColor;
50+
font-family: @PrimaryFont;
51+
font-size: 12px;
52+
font-weight: 500;
53+
line-height: 21px;
54+
display: flex;
55+
flex: 1;
5656
}
5757

5858
.n-input-maxlength {
59-
// display: block;
60-
// float: right;
61-
display: flex;
62-
justify-content: flex-end;
63-
position: relative;
59+
// display: block;
60+
// float: right;
61+
display: flex;
62+
justify-content: flex-end;
63+
position: relative;
6464
}
6565

6666
.nitrozen-input-grp:focus-within + .n-input-label-container > .n-input-label {
67-
color: @SecondaryColor !important;
67+
color: @SecondaryColor !important;
6868
}
6969

7070
::-webkit-input-placeholder {
71-
/* Edge */
72-
color: @PlaceholderColor;
73-
font-size: 12px;
74-
font-family: @PrimaryFont;
71+
/* Edge */
72+
color: @PlaceholderColor;
73+
font-size: 12px;
74+
font-family: @PrimaryFont;
7575
}
7676

7777
:-ms-input-placeholder {
78-
/* Internet Explorer 10-11 */
79-
color: @PlaceholderColor;
80-
font-size: 12px;
81-
font-family: @PrimaryFont;
78+
/* Internet Explorer 10-11 */
79+
color: @PlaceholderColor;
80+
font-size: 12px;
81+
font-family: @PrimaryFont;
8282
}
8383

8484
::placeholder {
85-
color: @PlaceholderColor;
86-
font-size: 12px;
87-
font-family: @PrimaryFont;
85+
color: @PlaceholderColor;
86+
font-size: 12px;
87+
font-family: @PrimaryFont;
8888
}
8989

9090
input[type="search"]::-webkit-search-cancel-button {
91-
position: relative;
92-
right: 10px;
93-
font-size: @BaseFontSize + 4px;
94-
cursor: pointer;
91+
position: relative;
92+
right: 10px;
93+
font-size: @BaseFontSize + 4px;
94+
cursor: pointer;
9595
}
9696

9797
.nitrozen-loader-div {
98-
float: right;
99-
position: relative;
100-
bottom: 52px;
101-
left: 20px;
102-
img {
103-
width: 65px;
104-
}
98+
float: right;
99+
position: relative;
100+
bottom: 52px;
101+
left: 20px;
102+
img {
103+
width: 65px;
104+
}
105105
}
106106

107107
.nitrozen-search-icon {
108-
z-index: 2;
109-
position: absolute;
110-
left: 9px;
111-
top: 9px;
108+
z-index: 2;
109+
position: absolute;
110+
left: 9px;
111+
top: 9px;
112112
}
113113

114114
.nitrozen-tooltip-icon {
115-
margin-left: 5px;
115+
margin-left: 5px;
116116
}
117117

118118
.nitrozen-search-input-padding {
119-
padding-left: 35px;
119+
padding-left: 35px;
120120
}
121121

122122
.nitrozen-input-label-div {
123-
display: flex;
124-
justify-content: space-between;
123+
display: flex;
124+
justify-content: space-between;
125125
}
126126

127127
.n-input-label-container {
128-
display: flex;
128+
display: flex;
129129
}
130130

131131
.nitrozen-input-prefix,
132132
.nitrozen-input-suffix {
133-
height: 40px;
134-
margin: auto;
135-
box-sizing: border-box;
136-
color: @TypographyPrimaryColor;
137-
border-radius: 3px;
138-
background-color: @PrefixSuffixBackground;
133+
height: 40px;
134+
margin: auto;
135+
box-sizing: border-box;
136+
color: @TypographyPrimaryColor;
137+
border-radius: 3px;
138+
background-color: @PrefixSuffixBackground;
139139
}
140140

141141
.nitrozen-remove-left-border {
142-
border-top-left-radius: 0;
143-
border-bottom-left-radius: 0;
144-
border-left-color: @WhiteColor;
142+
border-top-left-radius: 0;
143+
border-bottom-left-radius: 0;
144+
border-left-color: @WhiteColor;
145145
}
146146

147147
.nitrozen-remove-right-border {
148-
border-top-right-radius: 0;
149-
border-bottom-right-radius: 0;
150-
border-right-color: @WhiteColor;
148+
border-top-right-radius: 0;
149+
border-bottom-right-radius: 0;
150+
border-right-color: @WhiteColor;
151151
}
152152

153153
.nitrozen-input-grp {
154-
display: flex;
155-
position: relative;
154+
display: flex;
155+
position: relative;
156156
}
157157

158158
.nitrozen-prefix-padding,
159159
.nitrozen-suffix-padding {
160-
padding: 10px;
161-
border: 1px solid @BorderColor;
160+
padding: 10px;
161+
border: 1px solid @BorderColor;
162+
}
163+
/* Chrome, Safari, Edge, Opera */
164+
input::-webkit-outer-spin-button,
165+
input::-webkit-inner-spin-button {
166+
-webkit-appearance: none;
167+
margin: 0;
168+
}
169+
170+
/* Firefox */
171+
input[type="number"] {
172+
-moz-appearance: textfield;
162173
}

0 commit comments

Comments
 (0)