@launchpad-ui/form 0.10.0 → 0.10.1-alpha.0
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/dist/index.es.js +34 -34
- package/dist/index.js +34 -34
- package/dist/style.css +89 -89
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
@@ -10,37 +10,37 @@ import { useButton } from "@react-aria/button";
|
|
10
10
|
import { useLocale } from "@react-aria/i18n";
|
11
11
|
import { useNumberField as useNumberField$1 } from "@react-aria/numberfield";
|
12
12
|
import { useNumberFieldState } from "@react-stately/numberfield";
|
13
|
-
const formGroup = "
|
14
|
-
const formIncreasedErrorMargin = "
|
15
|
-
const formInline = "
|
16
|
-
const form = "
|
17
|
-
const formInput = "
|
18
|
-
const isFocused = "
|
19
|
-
const suffixContainer = "
|
20
|
-
const isInvalid = "
|
21
|
-
const iconField = "
|
22
|
-
const iconFieldIcon = "
|
23
|
-
const inlineForm = "
|
24
|
-
const label = "
|
25
|
-
const labelDisabled = "
|
26
|
-
const labelOptional = "
|
27
|
-
const compactTextField = "
|
28
|
-
const fieldError = "
|
29
|
-
const hint = "
|
30
|
-
const field = "
|
31
|
-
const fieldErrorMessage = "
|
32
|
-
const isDisabled = "
|
33
|
-
const checkbox = "
|
34
|
-
const radio = "
|
35
|
-
const number = "
|
36
|
-
const suffix = "
|
37
|
-
const iconFieldIconFill = "
|
38
|
-
const iconFieldButton = "
|
39
|
-
const formInputTiny = "
|
40
|
-
const requiredAsterisk = "
|
41
|
-
const fieldSet = "
|
42
|
-
const isActive = "
|
43
|
-
const numberField = "
|
13
|
+
const formGroup = "_formGroup_k5j2r_10";
|
14
|
+
const formIncreasedErrorMargin = "_formIncreasedErrorMargin_k5j2r_18";
|
15
|
+
const formInline = "_formInline_k5j2r_22";
|
16
|
+
const form = "_form_k5j2r_10";
|
17
|
+
const formInput = "_formInput_k5j2r_36";
|
18
|
+
const isFocused = "_isFocused_k5j2r_56";
|
19
|
+
const suffixContainer = "_suffixContainer_k5j2r_75";
|
20
|
+
const isInvalid = "_isInvalid_k5j2r_80";
|
21
|
+
const iconField = "_iconField_k5j2r_87";
|
22
|
+
const iconFieldIcon = "_iconFieldIcon_k5j2r_95";
|
23
|
+
const inlineForm = "_inlineForm_k5j2r_113";
|
24
|
+
const label = "_label_k5j2r_118";
|
25
|
+
const labelDisabled = "_labelDisabled_k5j2r_124";
|
26
|
+
const labelOptional = "_labelOptional_k5j2r_128";
|
27
|
+
const compactTextField = "_compactTextField_k5j2r_134";
|
28
|
+
const fieldError = "_fieldError_k5j2r_158";
|
29
|
+
const hint = "_hint_k5j2r_204";
|
30
|
+
const field = "_field_k5j2r_158";
|
31
|
+
const fieldErrorMessage = "_fieldErrorMessage_k5j2r_224";
|
32
|
+
const isDisabled = "_isDisabled_k5j2r_237";
|
33
|
+
const checkbox = "_checkbox_k5j2r_304";
|
34
|
+
const radio = "_radio_k5j2r_311";
|
35
|
+
const number = "_number_k5j2r_315";
|
36
|
+
const suffix = "_suffix_k5j2r_75";
|
37
|
+
const iconFieldIconFill = "_iconFieldIconFill_k5j2r_353";
|
38
|
+
const iconFieldButton = "_iconFieldButton_k5j2r_357";
|
39
|
+
const formInputTiny = "_formInputTiny_k5j2r_361";
|
40
|
+
const requiredAsterisk = "_requiredAsterisk_k5j2r_370";
|
41
|
+
const fieldSet = "_fieldSet_k5j2r_374";
|
42
|
+
const isActive = "_isActive_k5j2r_385";
|
43
|
+
const numberField = "_numberField_k5j2r_392";
|
44
44
|
const styles = {
|
45
45
|
formGroup,
|
46
46
|
formIncreasedErrorMargin,
|
@@ -73,9 +73,9 @@ const styles = {
|
|
73
73
|
fieldSet,
|
74
74
|
isActive,
|
75
75
|
numberField,
|
76
|
-
"numberField-input": "_numberField-
|
77
|
-
"numberField-stepperContainer": "_numberField-
|
78
|
-
"numberField-stepper": "_numberField-
|
76
|
+
"numberField-input": "_numberField-input_k5j2r_396",
|
77
|
+
"numberField-stepperContainer": "_numberField-stepperContainer_k5j2r_400",
|
78
|
+
"numberField-stepper": "_numberField-stepper_k5j2r_400"
|
79
79
|
};
|
80
80
|
const RequiredAsterisk = ({
|
81
81
|
className,
|
package/dist/index.js
CHANGED
@@ -12,37 +12,37 @@ const button$1 = require("@react-aria/button");
|
|
12
12
|
const i18n = require("@react-aria/i18n");
|
13
13
|
const numberfield$1 = require("@react-aria/numberfield");
|
14
14
|
const numberfield = require("@react-stately/numberfield");
|
15
|
-
const formGroup = "
|
16
|
-
const formIncreasedErrorMargin = "
|
17
|
-
const formInline = "
|
18
|
-
const form = "
|
19
|
-
const formInput = "
|
20
|
-
const isFocused = "
|
21
|
-
const suffixContainer = "
|
22
|
-
const isInvalid = "
|
23
|
-
const iconField = "
|
24
|
-
const iconFieldIcon = "
|
25
|
-
const inlineForm = "
|
26
|
-
const label = "
|
27
|
-
const labelDisabled = "
|
28
|
-
const labelOptional = "
|
29
|
-
const compactTextField = "
|
30
|
-
const fieldError = "
|
31
|
-
const hint = "
|
32
|
-
const field = "
|
33
|
-
const fieldErrorMessage = "
|
34
|
-
const isDisabled = "
|
35
|
-
const checkbox = "
|
36
|
-
const radio = "
|
37
|
-
const number = "
|
38
|
-
const suffix = "
|
39
|
-
const iconFieldIconFill = "
|
40
|
-
const iconFieldButton = "
|
41
|
-
const formInputTiny = "
|
42
|
-
const requiredAsterisk = "
|
43
|
-
const fieldSet = "
|
44
|
-
const isActive = "
|
45
|
-
const numberField = "
|
15
|
+
const formGroup = "_formGroup_k5j2r_10";
|
16
|
+
const formIncreasedErrorMargin = "_formIncreasedErrorMargin_k5j2r_18";
|
17
|
+
const formInline = "_formInline_k5j2r_22";
|
18
|
+
const form = "_form_k5j2r_10";
|
19
|
+
const formInput = "_formInput_k5j2r_36";
|
20
|
+
const isFocused = "_isFocused_k5j2r_56";
|
21
|
+
const suffixContainer = "_suffixContainer_k5j2r_75";
|
22
|
+
const isInvalid = "_isInvalid_k5j2r_80";
|
23
|
+
const iconField = "_iconField_k5j2r_87";
|
24
|
+
const iconFieldIcon = "_iconFieldIcon_k5j2r_95";
|
25
|
+
const inlineForm = "_inlineForm_k5j2r_113";
|
26
|
+
const label = "_label_k5j2r_118";
|
27
|
+
const labelDisabled = "_labelDisabled_k5j2r_124";
|
28
|
+
const labelOptional = "_labelOptional_k5j2r_128";
|
29
|
+
const compactTextField = "_compactTextField_k5j2r_134";
|
30
|
+
const fieldError = "_fieldError_k5j2r_158";
|
31
|
+
const hint = "_hint_k5j2r_204";
|
32
|
+
const field = "_field_k5j2r_158";
|
33
|
+
const fieldErrorMessage = "_fieldErrorMessage_k5j2r_224";
|
34
|
+
const isDisabled = "_isDisabled_k5j2r_237";
|
35
|
+
const checkbox = "_checkbox_k5j2r_304";
|
36
|
+
const radio = "_radio_k5j2r_311";
|
37
|
+
const number = "_number_k5j2r_315";
|
38
|
+
const suffix = "_suffix_k5j2r_75";
|
39
|
+
const iconFieldIconFill = "_iconFieldIconFill_k5j2r_353";
|
40
|
+
const iconFieldButton = "_iconFieldButton_k5j2r_357";
|
41
|
+
const formInputTiny = "_formInputTiny_k5j2r_361";
|
42
|
+
const requiredAsterisk = "_requiredAsterisk_k5j2r_370";
|
43
|
+
const fieldSet = "_fieldSet_k5j2r_374";
|
44
|
+
const isActive = "_isActive_k5j2r_385";
|
45
|
+
const numberField = "_numberField_k5j2r_392";
|
46
46
|
const styles = {
|
47
47
|
formGroup,
|
48
48
|
formIncreasedErrorMargin,
|
@@ -75,9 +75,9 @@ const styles = {
|
|
75
75
|
fieldSet,
|
76
76
|
isActive,
|
77
77
|
numberField,
|
78
|
-
"numberField-input": "_numberField-
|
79
|
-
"numberField-stepperContainer": "_numberField-
|
80
|
-
"numberField-stepper": "_numberField-
|
78
|
+
"numberField-input": "_numberField-input_k5j2r_396",
|
79
|
+
"numberField-stepperContainer": "_numberField-stepperContainer_k5j2r_400",
|
80
|
+
"numberField-stepper": "_numberField-stepper_k5j2r_400"
|
81
81
|
};
|
82
82
|
const RequiredAsterisk = ({
|
83
83
|
className,
|
package/dist/style.css
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
--lp-component-form-color-text-label-disabled: var(--lp-color-gray-400);
|
8
8
|
}
|
9
9
|
|
10
|
-
.
|
10
|
+
._formGroup_k5j2r_10 {
|
11
11
|
margin: 1.25rem 0;
|
12
12
|
padding: 0;
|
13
13
|
border: none;
|
@@ -16,25 +16,25 @@
|
|
16
16
|
/* The margin for .formGroup and the min-height of .form-fieldError
|
17
17
|
should be equal to avoid content shift when errors are shown */
|
18
18
|
|
19
|
-
.
|
19
|
+
._formIncreasedErrorMargin_k5j2r_18 ._formGroup_k5j2r_10 {
|
20
20
|
margin: 1.75rem 0;
|
21
21
|
}
|
22
22
|
|
23
|
-
.
|
23
|
+
._formInline_k5j2r_22 ._formGroup_k5j2r_10 {
|
24
24
|
display: inline-block;
|
25
25
|
vertical-align: middle;
|
26
26
|
margin: 0;
|
27
27
|
}
|
28
28
|
|
29
|
-
.
|
29
|
+
._form_k5j2r_10 ._formGroup_k5j2r_10:first-child {
|
30
30
|
margin-top: 0;
|
31
31
|
}
|
32
32
|
|
33
|
-
.
|
33
|
+
._form_k5j2r_10 ._formGroup_k5j2r_10:last-child {
|
34
34
|
margin-bottom: 0;
|
35
35
|
}
|
36
36
|
|
37
|
-
.
|
37
|
+
._formInput_k5j2r_36 {
|
38
38
|
display: block;
|
39
39
|
width: 100%;
|
40
40
|
padding: 0.375rem 0.625rem;
|
@@ -49,24 +49,24 @@
|
|
49
49
|
height: 2rem;
|
50
50
|
}
|
51
51
|
|
52
|
-
.
|
52
|
+
._formInput_k5j2r_36:-moz-placeholder-shown {
|
53
53
|
overflow: hidden;
|
54
54
|
text-overflow: ellipsis;
|
55
55
|
}
|
56
56
|
|
57
|
-
.
|
57
|
+
._formInput_k5j2r_36:placeholder-shown {
|
58
58
|
overflow: hidden;
|
59
59
|
text-overflow: ellipsis;
|
60
60
|
}
|
61
61
|
|
62
|
-
.
|
63
|
-
.
|
62
|
+
._formInput_k5j2r_36._isFocused_k5j2r_56,
|
63
|
+
._formInput_k5j2r_36:focus {
|
64
64
|
outline: 0;
|
65
65
|
border-color: var(--lp-color-border-field-focus);
|
66
66
|
box-shadow: 0 0 0 3px hsla(231.5, 100%, 62.5%, 0.1);
|
67
67
|
}
|
68
68
|
|
69
|
-
select.
|
69
|
+
select._formInput_k5j2r_36 {
|
70
70
|
-webkit-appearance: none;
|
71
71
|
-moz-appearance: none;
|
72
72
|
appearance: none;
|
@@ -80,67 +80,67 @@ select._formInput_1t1f3_36 {
|
|
80
80
|
padding-right: 1.25rem;
|
81
81
|
}
|
82
82
|
|
83
|
-
.
|
83
|
+
._suffixContainer_k5j2r_75 ._formInput_k5j2r_36 {
|
84
84
|
border: none;
|
85
85
|
border-radius: var(--lp-border-radius-regular) 0 0 var(--lp-border-radius-regular);
|
86
86
|
}
|
87
87
|
|
88
|
-
.
|
89
|
-
.
|
90
|
-
.
|
91
|
-
.
|
88
|
+
._isInvalid_k5j2r_80 ._formInput_k5j2r_36,
|
89
|
+
._form_k5j2r_10 ._isInvalid_k5j2r_80 .Select-control,
|
90
|
+
._form_k5j2r_10 ._isInvalid_k5j2r_80 .CustomSelect > div,
|
91
|
+
._form_k5j2r_10 ._isInvalid_k5j2r_80 ._formInput_k5j2r_36 {
|
92
92
|
border-color: var(--lp-color-border-field-error);
|
93
93
|
}
|
94
94
|
|
95
|
-
.
|
95
|
+
._iconField_k5j2r_87.IconBefore ._formInput_k5j2r_36 {
|
96
96
|
padding-left: 1.875rem;
|
97
97
|
}
|
98
98
|
|
99
|
-
.
|
99
|
+
._iconField_k5j2r_87.IconAfter ._formInput_k5j2r_36 {
|
100
100
|
padding-right: 1.875rem;
|
101
101
|
}
|
102
102
|
|
103
|
-
.
|
103
|
+
._iconFieldIcon_k5j2r_95 {
|
104
104
|
position: absolute;
|
105
105
|
top: 50%;
|
106
106
|
transform: translateY(-50%);
|
107
107
|
}
|
108
108
|
|
109
|
-
.
|
109
|
+
._iconField_k5j2r_87.IconBefore ._iconFieldIcon_k5j2r_95 {
|
110
110
|
left: 0.625rem;
|
111
111
|
}
|
112
112
|
|
113
|
-
.
|
113
|
+
._iconField_k5j2r_87.IconAfter ._iconFieldIcon_k5j2r_95 {
|
114
114
|
right: 0.625rem;
|
115
115
|
}
|
116
116
|
|
117
|
-
.
|
117
|
+
._suffixContainer_k5j2r_75 ._formInput_k5j2r_36:focus {
|
118
118
|
box-shadow: none;
|
119
119
|
}
|
120
120
|
|
121
|
-
.
|
122
|
-
.
|
121
|
+
._inlineForm_k5j2r_113 ._formGroup_k5j2r_10 + ._formGroup_k5j2r_10,
|
122
|
+
._inlineForm_k5j2r_113 ._formGroup_k5j2r_10 + [class*='_Button_'] {
|
123
123
|
margin-left: 0.625rem;
|
124
124
|
}
|
125
125
|
|
126
|
-
.
|
126
|
+
._label_k5j2r_118 {
|
127
127
|
font-size: 0.8125rem;
|
128
128
|
font-family: var(--lp-font-family-base);
|
129
129
|
word-break: break-word;
|
130
130
|
}
|
131
131
|
|
132
|
-
.
|
132
|
+
._labelDisabled_k5j2r_124 {
|
133
133
|
color: var(--lp-color-gray-800);
|
134
134
|
color: var(--lp-component-form-color-text-label-disabled);
|
135
135
|
}
|
136
136
|
|
137
|
-
.
|
137
|
+
._labelOptional_k5j2r_128 {
|
138
138
|
margin-left: 0.4em;
|
139
139
|
color: var(--lp-color-text-ui-secondary);
|
140
140
|
fill: var(--lp-color-text-ui-secondary);
|
141
141
|
}
|
142
142
|
|
143
|
-
.
|
143
|
+
._compactTextField_k5j2r_134 ._label_k5j2r_118 {
|
144
144
|
position: absolute;
|
145
145
|
top: -2px;
|
146
146
|
left: 10px;
|
@@ -154,68 +154,68 @@ select._formInput_1t1f3_36 {
|
|
154
154
|
z-index: 1; /* Fixes layout issue in Firefox */
|
155
155
|
}
|
156
156
|
|
157
|
-
.
|
157
|
+
._formGroup_k5j2r_10 ._label_k5j2r_118 {
|
158
158
|
display: flex;
|
159
159
|
align-items: center;
|
160
160
|
margin-bottom: 0.125rem;
|
161
161
|
}
|
162
162
|
|
163
|
-
.
|
163
|
+
._formGroup_k5j2r_10 ._label_k5j2r_118 + ._label_k5j2r_118 {
|
164
164
|
margin-top: 0.3125rem;
|
165
165
|
}
|
166
166
|
|
167
|
-
.
|
167
|
+
._fieldError_k5j2r_158 {
|
168
168
|
color: var(--lp-color-text-feedback-error);
|
169
169
|
font-size: 0.8125rem;
|
170
170
|
}
|
171
171
|
|
172
|
-
.
|
172
|
+
._fieldError_k5j2r_158 svg {
|
173
173
|
transform: translateY(-1px);
|
174
174
|
}
|
175
175
|
|
176
176
|
/* The margin for .formGroup and the min-height of .form-fieldError
|
177
177
|
should be equal to avoid content shift when errors are shown */
|
178
178
|
|
179
|
-
.
|
179
|
+
._formIncreasedErrorMargin_k5j2r_18 ._fieldError_k5j2r_158 {
|
180
180
|
min-height: 1.75rem;
|
181
181
|
}
|
182
182
|
|
183
|
-
.
|
183
|
+
._label_k5j2r_118 ._fieldError_k5j2r_158 {
|
184
184
|
float: right;
|
185
185
|
}
|
186
186
|
|
187
|
-
.
|
187
|
+
._form_k5j2r_10:not(._inlineForm_k5j2r_113) ._fieldError_k5j2r_158 {
|
188
188
|
display: block;
|
189
189
|
padding-top: 0.3125rem;
|
190
190
|
text-align: left;
|
191
191
|
}
|
192
192
|
|
193
|
-
.
|
193
|
+
._formIncreasedErrorMargin_k5j2r_18:not(._inlineForm_k5j2r_113) ._fieldError_k5j2r_158 {
|
194
194
|
padding-top: 0.0625rem;
|
195
195
|
padding-bottom: 0.3125rem;
|
196
196
|
}
|
197
197
|
|
198
|
-
.
|
198
|
+
._form_k5j2r_10 ._isInvalid_k5j2r_80 ._label_k5j2r_118 {
|
199
199
|
color: var(--lp-color-text-feedback-error);
|
200
200
|
}
|
201
201
|
|
202
|
-
.
|
202
|
+
._formInput_k5j2r_36::-moz-placeholder {
|
203
203
|
color: var(--lp-color-text-field-placeholder);
|
204
204
|
}
|
205
205
|
|
206
|
-
.
|
206
|
+
._formInput_k5j2r_36::placeholder {
|
207
207
|
color: var(--lp-color-text-field-placeholder);
|
208
208
|
}
|
209
209
|
|
210
|
-
.
|
210
|
+
._formIncreasedErrorMargin_k5j2r_18 ._formGroup_k5j2r_10._isInvalid_k5j2r_80 {
|
211
211
|
margin-bottom: 0;
|
212
212
|
}
|
213
213
|
|
214
|
-
.
|
214
|
+
._formIncreasedErrorMargin_k5j2r_18 ._formGroup_k5j2r_10._isInvalid_k5j2r_80 + ._formGroup_k5j2r_10 {
|
215
215
|
margin-top: 0;
|
216
216
|
}
|
217
217
|
|
218
|
-
.
|
218
|
+
._hint_k5j2r_204 {
|
219
219
|
display: block;
|
220
220
|
margin-top: 0.1875rem;
|
221
221
|
font-size: 0.8125rem;
|
@@ -223,75 +223,75 @@ select._formInput_1t1f3_36 {
|
|
223
223
|
color: var(--lp-color-text-ui-secondary);
|
224
224
|
}
|
225
225
|
|
226
|
-
.
|
226
|
+
._field_k5j2r_158 ._hint_k5j2r_204 {
|
227
227
|
margin: 0;
|
228
228
|
font-size: 0.8125rem;
|
229
229
|
color: var(--lp-color-text-ui-secondary);
|
230
230
|
fill: var(--lp-color-text-ui-secondary);
|
231
231
|
}
|
232
232
|
|
233
|
-
.
|
234
|
-
.
|
233
|
+
._form_k5j2r_10 ._field_k5j2r_158 label,
|
234
|
+
._form_k5j2r_10 ._field_k5j2r_158 ._isInvalid_k5j2r_80 label {
|
235
235
|
color: var(--lp-color-text-ui-primary-base);
|
236
236
|
}
|
237
237
|
|
238
|
-
.
|
238
|
+
._fieldErrorMessage_k5j2r_224 {
|
239
239
|
color: var(--lp-color-text-feedback-error);
|
240
240
|
font-size: 0.8125rem;
|
241
241
|
}
|
242
242
|
|
243
|
-
.
|
243
|
+
._field_k5j2r_158._formGroup_k5j2r_10 {
|
244
244
|
margin: 0.625rem 0;
|
245
245
|
}
|
246
246
|
|
247
|
-
.
|
247
|
+
._field_k5j2r_158._formGroup_k5j2r_10:first-child {
|
248
248
|
margin-top: 0;
|
249
249
|
}
|
250
250
|
|
251
|
-
input.
|
251
|
+
input._formInput_k5j2r_36:-moz-read-only {
|
252
252
|
opacity: 1;
|
253
253
|
background-color: var(--lp-color-bg-field-disabled);
|
254
254
|
color: var(--lp-color-text-field-disabled);
|
255
255
|
border-color: var(--lp-color-border-field-disabled);
|
256
256
|
}
|
257
257
|
|
258
|
-
.
|
259
|
-
input.
|
260
|
-
select.
|
261
|
-
input.
|
258
|
+
._formInput_k5j2r_36._isDisabled_k5j2r_237,
|
259
|
+
input._formInput_k5j2r_36:disabled,
|
260
|
+
select._formInput_k5j2r_36:disabled,
|
261
|
+
input._formInput_k5j2r_36:read-only {
|
262
262
|
opacity: 1;
|
263
263
|
background-color: var(--lp-color-bg-field-disabled);
|
264
264
|
color: var(--lp-color-text-field-disabled);
|
265
265
|
border-color: var(--lp-color-border-field-disabled);
|
266
266
|
}
|
267
267
|
|
268
|
-
.
|
269
|
-
.
|
268
|
+
._formInput_k5j2r_36._isDisabled_k5j2r_237:hover,
|
269
|
+
._formInput_k5j2r_36:disabled:hover {
|
270
270
|
cursor: not-allowed;
|
271
271
|
}
|
272
272
|
|
273
|
-
textarea.
|
273
|
+
textarea._formInput_k5j2r_36 {
|
274
274
|
min-height: 2.5em;
|
275
275
|
height: auto;
|
276
276
|
resize: none;
|
277
277
|
}
|
278
278
|
|
279
|
-
textarea.
|
279
|
+
textarea._formInput_k5j2r_36:-moz-read-only {
|
280
280
|
opacity: 1;
|
281
281
|
color: var(--lp-color-text-field-disabled);
|
282
282
|
background-color: var(--lp-color-bg-field-disabled);
|
283
283
|
border-color: var(--lp-color-border-field-disabled);
|
284
284
|
}
|
285
285
|
|
286
|
-
textarea.
|
287
|
-
textarea.
|
286
|
+
textarea._formInput_k5j2r_36:disabled,
|
287
|
+
textarea._formInput_k5j2r_36:read-only {
|
288
288
|
opacity: 1;
|
289
289
|
color: var(--lp-color-text-field-disabled);
|
290
290
|
background-color: var(--lp-color-bg-field-disabled);
|
291
291
|
border-color: var(--lp-color-border-field-disabled);
|
292
292
|
}
|
293
293
|
|
294
|
-
input.
|
294
|
+
input._formInput_k5j2r_36::-webkit-autofill {
|
295
295
|
box-shadow: 0 0 0 50px var(--lp-color-bg-field-base) inset;
|
296
296
|
}
|
297
297
|
|
@@ -324,29 +324,29 @@ input[type='checkbox']:disabled {
|
|
324
324
|
pointer-events: none;
|
325
325
|
}
|
326
326
|
|
327
|
-
.
|
328
|
-
.
|
327
|
+
._formInput_k5j2r_36[readonly],
|
328
|
+
._formInput_k5j2r_36[readonly]:focus {
|
329
329
|
color: var(--lp-color-text-ui-secondary);
|
330
330
|
border-color: var(--lp-color-gray-500);
|
331
331
|
box-shadow: none;
|
332
332
|
}
|
333
333
|
|
334
|
-
.
|
334
|
+
._checkbox_k5j2r_304 {
|
335
335
|
align-self: flex-start; /* Default for .label is center, but this looks bad on multi-line checkbox labels */
|
336
336
|
flex-shrink: 0; /* Make sure the input itself doesn't shrink in flex layouts */
|
337
337
|
margin-right: 0.3125rem;
|
338
338
|
margin-top: 0.25rem;
|
339
339
|
}
|
340
340
|
|
341
|
-
.
|
341
|
+
._radio_k5j2r_311 {
|
342
342
|
margin-right: 0.3125rem;
|
343
343
|
}
|
344
344
|
|
345
|
-
.
|
345
|
+
._number_k5j2r_315 {
|
346
346
|
min-width: 2.8125rem;
|
347
347
|
}
|
348
348
|
|
349
|
-
.
|
349
|
+
._suffixContainer_k5j2r_75 {
|
350
350
|
display: inline-flex;
|
351
351
|
border: 1px solid var(--lp-color-border-field-base);
|
352
352
|
border-radius: var(--lp-border-radius-regular);
|
@@ -354,12 +354,12 @@ input[type='checkbox']:disabled {
|
|
354
354
|
transition: all 0.1s linear;
|
355
355
|
}
|
356
356
|
|
357
|
-
.
|
357
|
+
._suffixContainer_k5j2r_75:focus-within {
|
358
358
|
border-color: var(--lp-color-border-field-focus);
|
359
359
|
box-shadow: 0 0 0 3px hsla(231.5, 100%, 62.5%, 0.1);
|
360
360
|
}
|
361
361
|
|
362
|
-
.
|
362
|
+
._suffixContainer_k5j2r_75 ._suffix_k5j2r_75 {
|
363
363
|
padding: 0 2px;
|
364
364
|
background-color: var(--lp-color-bg-field-aside);
|
365
365
|
color: var(--lp-color-text-ui-secondary);
|
@@ -370,8 +370,8 @@ input[type='checkbox']:disabled {
|
|
370
370
|
position: initial;
|
371
371
|
}
|
372
372
|
|
373
|
-
.
|
374
|
-
.
|
373
|
+
._suffix_k5j2r_75::-webkit-outer-spin-button,
|
374
|
+
._suffix_k5j2r_75::-webkit-inner-spin-button {
|
375
375
|
-webkit-appearance: none;
|
376
376
|
appearance: none;
|
377
377
|
margin: 0;
|
@@ -379,61 +379,61 @@ input[type='checkbox']:disabled {
|
|
379
379
|
|
380
380
|
/* Firefox */
|
381
381
|
|
382
|
-
.
|
382
|
+
._suffix_k5j2r_75[type='number'] {
|
383
383
|
-webkit-appearance: textfield;
|
384
384
|
-moz-appearance: textfield;
|
385
385
|
appearance: textfield;
|
386
386
|
}
|
387
387
|
|
388
|
-
.
|
388
|
+
._iconFieldIconFill_k5j2r_353 {
|
389
389
|
fill: var(--lp-color-fill-field-base);
|
390
390
|
}
|
391
391
|
|
392
|
-
[class*='_Popover-target_'].
|
392
|
+
[class*='_Popover-target_']._iconFieldButton_k5j2r_357 {
|
393
393
|
display: block;
|
394
394
|
}
|
395
395
|
|
396
|
-
.
|
396
|
+
._formInputTiny_k5j2r_361 {
|
397
397
|
padding: 0.0625rem 0.375rem;
|
398
398
|
height: 1.5rem;
|
399
399
|
}
|
400
400
|
|
401
|
-
.
|
401
|
+
._iconField_k5j2r_87 {
|
402
402
|
position: relative;
|
403
403
|
}
|
404
404
|
|
405
|
-
.
|
405
|
+
._requiredAsterisk_k5j2r_370 {
|
406
406
|
color: var(--lp-color-text-feedback-error);
|
407
407
|
}
|
408
408
|
|
409
|
-
.
|
409
|
+
._fieldSet_k5j2r_374 {
|
410
410
|
border: none;
|
411
411
|
margin: 1.25rem 0;
|
412
412
|
padding: 0;
|
413
413
|
}
|
414
414
|
|
415
|
-
.
|
415
|
+
._compactTextField_k5j2r_134 {
|
416
416
|
position: relative;
|
417
417
|
width: 100%;
|
418
418
|
}
|
419
419
|
|
420
|
-
.
|
420
|
+
._compactTextField_k5j2r_134._isActive_k5j2r_385 ._label_k5j2r_118 {
|
421
421
|
border-radius: var(--lp-border-radius-regular);
|
422
422
|
opacity: 1;
|
423
423
|
pointer-events: auto;
|
424
424
|
transform: translate(0, -8px) scale(0.9); /* 2d transform to avoid webkit blurry text */
|
425
425
|
}
|
426
426
|
|
427
|
-
.
|
427
|
+
._numberField_k5j2r_392 {
|
428
428
|
display: flex;
|
429
429
|
position: relative;
|
430
430
|
}
|
431
431
|
|
432
|
-
.
|
432
|
+
._numberField_k5j2r_392 ._numberField-input_k5j2r_396 {
|
433
433
|
padding-right: 1.5rem;
|
434
434
|
}
|
435
435
|
|
436
|
-
.
|
436
|
+
._numberField_k5j2r_392 ._numberField-stepperContainer_k5j2r_400 {
|
437
437
|
display: flex;
|
438
438
|
opacity: 0;
|
439
439
|
flex-direction: column;
|
@@ -445,7 +445,7 @@ input[type='checkbox']:disabled {
|
|
445
445
|
transition: all var(--lp-duration-100) linear;
|
446
446
|
}
|
447
447
|
|
448
|
-
.
|
448
|
+
._numberField_k5j2r_392 ._numberField-stepperContainer_k5j2r_400 ._numberField-stepper_k5j2r_400 {
|
449
449
|
--numberField-stepper-padding: 0.25rem;
|
450
450
|
--numberField-stepper-border-radius: calc(var(--lp-border-radius-regular) - 0.0625rem);
|
451
451
|
|
@@ -463,29 +463,29 @@ input[type='checkbox']:disabled {
|
|
463
463
|
overflow: hidden;
|
464
464
|
}
|
465
465
|
|
466
|
-
.
|
466
|
+
._numberField_k5j2r_392 ._numberField-stepperContainer_k5j2r_400 ._numberField-stepper_k5j2r_400:first-child {
|
467
467
|
border-top-right-radius: var(--numberField-stepper-border-radius);
|
468
468
|
padding-top: var(--numberField-stepper-padding);
|
469
469
|
}
|
470
470
|
|
471
|
-
.
|
471
|
+
._numberField_k5j2r_392 ._numberField-stepperContainer_k5j2r_400 ._numberField-stepper_k5j2r_400:last-child {
|
472
472
|
border-bottom-right-radius: var(--numberField-stepper-border-radius);
|
473
473
|
padding-bottom: var(--numberField-stepper-padding);
|
474
474
|
}
|
475
475
|
|
476
|
-
.
|
476
|
+
._numberField_k5j2r_392 ._numberField-stepperContainer_k5j2r_400 ._numberField-stepper_k5j2r_400:hover {
|
477
477
|
background-color: var(--lp-color-bg-interactive-secondary-hover);
|
478
478
|
}
|
479
479
|
|
480
|
-
.
|
480
|
+
._numberField_k5j2r_392 ._numberField-stepperContainer_k5j2r_400 ._numberField-stepper_k5j2r_400:active {
|
481
481
|
background-color: var(--lp-color-bg-interactive-secondary-active);
|
482
482
|
}
|
483
483
|
|
484
|
-
.
|
484
|
+
._numberField_k5j2r_392 ._numberField-stepperContainer_k5j2r_400 ._numberField-stepper_k5j2r_400 span:has(svg) {
|
485
485
|
width: 100%;
|
486
486
|
color: var(--lp-color-text-ui-primary-base);
|
487
487
|
}
|
488
488
|
|
489
|
-
.
|
489
|
+
._numberField_k5j2r_392:hover ._numberField-stepperContainer_k5j2r_400, ._numberField_k5j2r_392:has(input:focus) ._numberField-stepperContainer_k5j2r_400 {
|
490
490
|
opacity: 1;
|
491
491
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@launchpad-ui/form",
|
3
|
-
"version": "0.10.0",
|
3
|
+
"version": "0.10.1-alpha.0",
|
4
4
|
"status": "beta",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -32,10 +32,10 @@
|
|
32
32
|
"@react-aria/visually-hidden": "3.8.5",
|
33
33
|
"@react-stately/numberfield": "3.6.2",
|
34
34
|
"classix": "2.1.17",
|
35
|
-
"@launchpad-ui/button": "~0.11.0",
|
36
|
-
"@launchpad-ui/icons": "~0.14.0",
|
37
|
-
"@launchpad-ui/tokens": "~0.
|
38
|
-
"@launchpad-ui/tooltip": "~0.8.0"
|
35
|
+
"@launchpad-ui/button": "~0.11.1-alpha.0",
|
36
|
+
"@launchpad-ui/icons": "~0.14.1-alpha.0",
|
37
|
+
"@launchpad-ui/tokens": "~0.9.0-alpha.0",
|
38
|
+
"@launchpad-ui/tooltip": "~0.8.1-alpha.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"react": "18.2.0",
|