@react-spectrum/numberfield 3.9.0 → 3.9.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/dist/NumberField.main.js +149 -0
- package/dist/NumberField.main.js.map +1 -0
- package/dist/NumberField.mjs +144 -0
- package/dist/NumberField.module.js +144 -0
- package/dist/NumberField.module.js.map +1 -0
- package/dist/StepButton.main.js +90 -0
- package/dist/StepButton.main.js.map +1 -0
- package/dist/StepButton.mjs +85 -0
- package/dist/StepButton.module.js +85 -0
- package/dist/StepButton.module.js.map +1 -0
- package/dist/import.mjs +1 -346
- package/dist/main.js +2 -343
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -346
- package/dist/module.js.map +1 -1
- package/dist/stepper_vars_css.main.js +143 -0
- package/dist/stepper_vars_css.main.js.map +1 -0
- package/dist/stepper_vars_css.mjs +145 -0
- package/dist/stepper_vars_css.module.js +145 -0
- package/dist/stepper_vars_css.module.js.map +1 -0
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/vars.07bdf9be.css +840 -0
- package/dist/vars.07bdf9be.css.map +1 -0
- package/package.json +19 -19
- package/dist/main.css +0 -1
package/dist/main.js
CHANGED
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
require("./main.
|
|
2
|
-
var $i8sTE$reactspectrumutils = require("@react-spectrum/utils");
|
|
3
|
-
var $i8sTE$reactspectrumlabel = require("@react-spectrum/label");
|
|
4
|
-
var $i8sTE$reactariafocus = require("@react-aria/focus");
|
|
5
|
-
var $i8sTE$reactariautils = require("@react-aria/utils");
|
|
6
|
-
var $i8sTE$reactstatelynumberfield = require("@react-stately/numberfield");
|
|
7
|
-
var $i8sTE$react = require("react");
|
|
8
|
-
var $i8sTE$reactspectrumtextfield = require("@react-spectrum/textfield");
|
|
9
|
-
var $i8sTE$reactspectrumform = require("@react-spectrum/form");
|
|
10
|
-
var $i8sTE$reactariainteractions = require("@react-aria/interactions");
|
|
11
|
-
var $i8sTE$reactariai18n = require("@react-aria/i18n");
|
|
12
|
-
var $i8sTE$reactarianumberfield = require("@react-aria/numberfield");
|
|
13
|
-
var $i8sTE$reactspectrumprovider = require("@react-spectrum/provider");
|
|
14
|
-
var $i8sTE$spectrumiconsworkflowAdd = require("@spectrum-icons/workflow/Add");
|
|
15
|
-
var $i8sTE$spectrumiconsuiChevronDownSmall = require("@spectrum-icons/ui/ChevronDownSmall");
|
|
16
|
-
var $i8sTE$spectrumiconsuiChevronUpSmall = require("@spectrum-icons/ui/ChevronUpSmall");
|
|
17
|
-
var $i8sTE$spectrumiconsworkflowRemove = require("@spectrum-icons/workflow/Remove");
|
|
18
|
-
var $i8sTE$reactariabutton = require("@react-aria/button");
|
|
1
|
+
var $9b3df9c012d62e52$exports = require("./NumberField.main.js");
|
|
19
2
|
|
|
20
3
|
|
|
21
4
|
function $parcel$export(e, n, v, s) {
|
|
22
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
23
6
|
}
|
|
24
7
|
|
|
25
|
-
|
|
26
|
-
return a && a.__esModule ? a.default : a;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
$parcel$export(module.exports, "NumberField", () => $9b3df9c012d62e52$export$63c5fa0b2fdccd2e);
|
|
8
|
+
$parcel$export(module.exports, "NumberField", () => $9b3df9c012d62e52$exports.NumberField);
|
|
30
9
|
/*
|
|
31
10
|
* Copyright 2020 Adobe. All rights reserved.
|
|
32
11
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -38,326 +17,6 @@ $parcel$export(module.exports, "NumberField", () => $9b3df9c012d62e52$export$63c
|
|
|
38
17
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
39
18
|
* governing permissions and limitations under the License.
|
|
40
19
|
*/ /// <reference types="css-module-types" />
|
|
41
|
-
/*
|
|
42
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
43
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
44
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
45
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
46
|
-
*
|
|
47
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
48
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
49
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
50
|
-
* governing permissions and limitations under the License.
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/*
|
|
58
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
59
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
60
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
61
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
62
|
-
*
|
|
63
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
64
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
65
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
66
|
-
* governing permissions and limitations under the License.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var $3649bcbba015c4d7$exports = {};
|
|
76
|
-
|
|
77
|
-
$parcel$export($3649bcbba015c4d7$exports, "decrement", () => $3649bcbba015c4d7$export$8f85cc9753f280aa, (v) => $3649bcbba015c4d7$export$8f85cc9753f280aa = v);
|
|
78
|
-
$parcel$export($3649bcbba015c4d7$exports, "field", () => $3649bcbba015c4d7$export$e0f35d825088c098, (v) => $3649bcbba015c4d7$export$e0f35d825088c098 = v);
|
|
79
|
-
$parcel$export($3649bcbba015c4d7$exports, "focus-ring", () => $3649bcbba015c4d7$export$f39a09f249340e2a, (v) => $3649bcbba015c4d7$export$f39a09f249340e2a = v);
|
|
80
|
-
$parcel$export($3649bcbba015c4d7$exports, "i18nFontFamily", () => $3649bcbba015c4d7$export$8c4ee2c50c22c514, (v) => $3649bcbba015c4d7$export$8c4ee2c50c22c514 = v);
|
|
81
|
-
$parcel$export($3649bcbba015c4d7$exports, "increment", () => $3649bcbba015c4d7$export$a2647aa13413c947, (v) => $3649bcbba015c4d7$export$a2647aa13413c947 = v);
|
|
82
|
-
$parcel$export($3649bcbba015c4d7$exports, "is-active", () => $3649bcbba015c4d7$export$20fd0f7cd4e6112f, (v) => $3649bcbba015c4d7$export$20fd0f7cd4e6112f = v);
|
|
83
|
-
$parcel$export($3649bcbba015c4d7$exports, "is-disabled", () => $3649bcbba015c4d7$export$d35bc1e505d1ebbf, (v) => $3649bcbba015c4d7$export$d35bc1e505d1ebbf = v);
|
|
84
|
-
$parcel$export($3649bcbba015c4d7$exports, "is-focused", () => $3649bcbba015c4d7$export$e7dc768d35940237, (v) => $3649bcbba015c4d7$export$e7dc768d35940237 = v);
|
|
85
|
-
$parcel$export($3649bcbba015c4d7$exports, "is-hovered", () => $3649bcbba015c4d7$export$b8813cd5d7824ce7, (v) => $3649bcbba015c4d7$export$b8813cd5d7824ce7 = v);
|
|
86
|
-
$parcel$export($3649bcbba015c4d7$exports, "is-invalid", () => $3649bcbba015c4d7$export$14a30de2866685fa, (v) => $3649bcbba015c4d7$export$14a30de2866685fa = v);
|
|
87
|
-
$parcel$export($3649bcbba015c4d7$exports, "is-open", () => $3649bcbba015c4d7$export$a9781837241c946d, (v) => $3649bcbba015c4d7$export$a9781837241c946d = v);
|
|
88
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-BaseButton", () => $3649bcbba015c4d7$export$f7b415378ab4f839, (v) => $3649bcbba015c4d7$export$f7b415378ab4f839 = v);
|
|
89
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-FocusRing-ring", () => $3649bcbba015c4d7$export$4109102f950813a6, (v) => $3649bcbba015c4d7$export$4109102f950813a6 = v);
|
|
90
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-FocusRing", () => $3649bcbba015c4d7$export$24c7f46a6e3605dd, (v) => $3649bcbba015c4d7$export$24c7f46a6e3605dd = v);
|
|
91
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-ActionButton", () => $3649bcbba015c4d7$export$53da69f51b770d3, (v) => $3649bcbba015c4d7$export$53da69f51b770d3 = v);
|
|
92
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-ActionButton--quiet", () => $3649bcbba015c4d7$export$40e1f009544bacf3, (v) => $3649bcbba015c4d7$export$40e1f009544bacf3 = v);
|
|
93
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-ActionButton-hold", () => $3649bcbba015c4d7$export$4a4f01c443eff992, (v) => $3649bcbba015c4d7$export$4a4f01c443eff992 = v);
|
|
94
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-ActionButton-label", () => $3649bcbba015c4d7$export$ebb4635c66bacdb9, (v) => $3649bcbba015c4d7$export$ebb4635c66bacdb9 = v);
|
|
95
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Button", () => $3649bcbba015c4d7$export$1db4cca5b4ade39a, (v) => $3649bcbba015c4d7$export$1db4cca5b4ade39a = v);
|
|
96
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Button--iconOnly", () => $3649bcbba015c4d7$export$c1d306ec0fae3838, (v) => $3649bcbba015c4d7$export$c1d306ec0fae3838 = v);
|
|
97
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Button--pending", () => $3649bcbba015c4d7$export$54592d0984f245d5, (v) => $3649bcbba015c4d7$export$54592d0984f245d5 = v);
|
|
98
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Button-circleLoader", () => $3649bcbba015c4d7$export$76d4531f0342bbe0, (v) => $3649bcbba015c4d7$export$76d4531f0342bbe0 = v);
|
|
99
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Button-label", () => $3649bcbba015c4d7$export$c081ba562e204942, (v) => $3649bcbba015c4d7$export$c081ba562e204942 = v);
|
|
100
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-ClearButton", () => $3649bcbba015c4d7$export$b752ce409e5660c, (v) => $3649bcbba015c4d7$export$b752ce409e5660c = v);
|
|
101
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-ClearButton--small", () => $3649bcbba015c4d7$export$49280ffa5236ba8b, (v) => $3649bcbba015c4d7$export$49280ffa5236ba8b = v);
|
|
102
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-FieldButton", () => $3649bcbba015c4d7$export$a024c99ecf6b5741, (v) => $3649bcbba015c4d7$export$a024c99ecf6b5741 = v);
|
|
103
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-FocusRing--quiet", () => $3649bcbba015c4d7$export$2927016961429360, (v) => $3649bcbba015c4d7$export$2927016961429360 = v);
|
|
104
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-FieldButton--quiet", () => $3649bcbba015c4d7$export$5ca7b274e4fff9fc, (v) => $3649bcbba015c4d7$export$5ca7b274e4fff9fc = v);
|
|
105
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Icon", () => $3649bcbba015c4d7$export$d374b04f30360026, (v) => $3649bcbba015c4d7$export$d374b04f30360026 = v);
|
|
106
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-LogicButton", () => $3649bcbba015c4d7$export$36ae67a131730482, (v) => $3649bcbba015c4d7$export$36ae67a131730482 = v);
|
|
107
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper", () => $3649bcbba015c4d7$export$f49c123746e1fb8, (v) => $3649bcbba015c4d7$export$f49c123746e1fb8 = v);
|
|
108
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper--isMobile", () => $3649bcbba015c4d7$export$75e6f9c4d1d95421, (v) => $3649bcbba015c4d7$export$75e6f9c4d1d95421 = v);
|
|
109
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper--isQuiet", () => $3649bcbba015c4d7$export$70ed0eb2ba7512f8, (v) => $3649bcbba015c4d7$export$70ed0eb2ba7512f8 = v);
|
|
110
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper--readonly", () => $3649bcbba015c4d7$export$ba8faf273ff0a970, (v) => $3649bcbba015c4d7$export$ba8faf273ff0a970 = v);
|
|
111
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper--showStepper", () => $3649bcbba015c4d7$export$a4e366275982a12f, (v) => $3649bcbba015c4d7$export$a4e366275982a12f = v);
|
|
112
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-button", () => $3649bcbba015c4d7$export$4e11596482f95f63, (v) => $3649bcbba015c4d7$export$4e11596482f95f63 = v);
|
|
113
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-button--stepDown", () => $3649bcbba015c4d7$export$e4ad52f6ba4e317b, (v) => $3649bcbba015c4d7$export$e4ad52f6ba4e317b = v);
|
|
114
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-button--stepUp", () => $3649bcbba015c4d7$export$6c76d609d604c6e5, (v) => $3649bcbba015c4d7$export$6c76d609d604c6e5 = v);
|
|
115
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-button-icon", () => $3649bcbba015c4d7$export$7d7cb0c4055e98ab, (v) => $3649bcbba015c4d7$export$7d7cb0c4055e98ab = v);
|
|
116
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-container", () => $3649bcbba015c4d7$export$f49a6eb8460c3f93, (v) => $3649bcbba015c4d7$export$f49a6eb8460c3f93 = v);
|
|
117
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-container--isMobile", () => $3649bcbba015c4d7$export$3486d98f7bb904b1, (v) => $3649bcbba015c4d7$export$3486d98f7bb904b1 = v);
|
|
118
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-field", () => $3649bcbba015c4d7$export$faac6573b15f75d6, (v) => $3649bcbba015c4d7$export$faac6573b15f75d6 = v);
|
|
119
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-icon", () => $3649bcbba015c4d7$export$639c56ba6082b615, (v) => $3649bcbba015c4d7$export$639c56ba6082b615 = v);
|
|
120
|
-
$parcel$export($3649bcbba015c4d7$exports, "spectrum-Stepper-input", () => $3649bcbba015c4d7$export$8273fb931edd57d4, (v) => $3649bcbba015c4d7$export$8273fb931edd57d4 = v);
|
|
121
|
-
var $3649bcbba015c4d7$export$8f85cc9753f280aa;
|
|
122
|
-
var $3649bcbba015c4d7$export$e0f35d825088c098;
|
|
123
|
-
var $3649bcbba015c4d7$export$f39a09f249340e2a;
|
|
124
|
-
var $3649bcbba015c4d7$export$8c4ee2c50c22c514;
|
|
125
|
-
var $3649bcbba015c4d7$export$a2647aa13413c947;
|
|
126
|
-
var $3649bcbba015c4d7$export$20fd0f7cd4e6112f;
|
|
127
|
-
var $3649bcbba015c4d7$export$d35bc1e505d1ebbf;
|
|
128
|
-
var $3649bcbba015c4d7$export$e7dc768d35940237;
|
|
129
|
-
var $3649bcbba015c4d7$export$b8813cd5d7824ce7;
|
|
130
|
-
var $3649bcbba015c4d7$export$14a30de2866685fa;
|
|
131
|
-
var $3649bcbba015c4d7$export$a9781837241c946d;
|
|
132
|
-
var $3649bcbba015c4d7$export$f7b415378ab4f839;
|
|
133
|
-
var $3649bcbba015c4d7$export$4109102f950813a6;
|
|
134
|
-
var $3649bcbba015c4d7$export$24c7f46a6e3605dd;
|
|
135
|
-
var $3649bcbba015c4d7$export$53da69f51b770d3;
|
|
136
|
-
var $3649bcbba015c4d7$export$40e1f009544bacf3;
|
|
137
|
-
var $3649bcbba015c4d7$export$4a4f01c443eff992;
|
|
138
|
-
var $3649bcbba015c4d7$export$ebb4635c66bacdb9;
|
|
139
|
-
var $3649bcbba015c4d7$export$1db4cca5b4ade39a;
|
|
140
|
-
var $3649bcbba015c4d7$export$c1d306ec0fae3838;
|
|
141
|
-
var $3649bcbba015c4d7$export$54592d0984f245d5;
|
|
142
|
-
var $3649bcbba015c4d7$export$76d4531f0342bbe0;
|
|
143
|
-
var $3649bcbba015c4d7$export$c081ba562e204942;
|
|
144
|
-
var $3649bcbba015c4d7$export$b752ce409e5660c;
|
|
145
|
-
var $3649bcbba015c4d7$export$49280ffa5236ba8b;
|
|
146
|
-
var $3649bcbba015c4d7$export$a024c99ecf6b5741;
|
|
147
|
-
var $3649bcbba015c4d7$export$2927016961429360;
|
|
148
|
-
var $3649bcbba015c4d7$export$5ca7b274e4fff9fc;
|
|
149
|
-
var $3649bcbba015c4d7$export$d374b04f30360026;
|
|
150
|
-
var $3649bcbba015c4d7$export$36ae67a131730482;
|
|
151
|
-
var $3649bcbba015c4d7$export$f49c123746e1fb8;
|
|
152
|
-
var $3649bcbba015c4d7$export$75e6f9c4d1d95421;
|
|
153
|
-
var $3649bcbba015c4d7$export$70ed0eb2ba7512f8;
|
|
154
|
-
var $3649bcbba015c4d7$export$ba8faf273ff0a970;
|
|
155
|
-
var $3649bcbba015c4d7$export$a4e366275982a12f;
|
|
156
|
-
var $3649bcbba015c4d7$export$4e11596482f95f63;
|
|
157
|
-
var $3649bcbba015c4d7$export$e4ad52f6ba4e317b;
|
|
158
|
-
var $3649bcbba015c4d7$export$6c76d609d604c6e5;
|
|
159
|
-
var $3649bcbba015c4d7$export$7d7cb0c4055e98ab;
|
|
160
|
-
var $3649bcbba015c4d7$export$f49a6eb8460c3f93;
|
|
161
|
-
var $3649bcbba015c4d7$export$3486d98f7bb904b1;
|
|
162
|
-
var $3649bcbba015c4d7$export$faac6573b15f75d6;
|
|
163
|
-
var $3649bcbba015c4d7$export$639c56ba6082b615;
|
|
164
|
-
var $3649bcbba015c4d7$export$8273fb931edd57d4;
|
|
165
|
-
$3649bcbba015c4d7$export$8f85cc9753f280aa = `Ug6T-W_decrement`;
|
|
166
|
-
$3649bcbba015c4d7$export$e0f35d825088c098 = `Ug6T-W_field`;
|
|
167
|
-
$3649bcbba015c4d7$export$f39a09f249340e2a = `Ug6T-W_focus-ring`;
|
|
168
|
-
$3649bcbba015c4d7$export$8c4ee2c50c22c514 = `Ug6T-W_i18nFontFamily`;
|
|
169
|
-
$3649bcbba015c4d7$export$a2647aa13413c947 = `Ug6T-W_increment`;
|
|
170
|
-
$3649bcbba015c4d7$export$20fd0f7cd4e6112f = `Ug6T-W_is-active`;
|
|
171
|
-
$3649bcbba015c4d7$export$d35bc1e505d1ebbf = `Ug6T-W_is-disabled`;
|
|
172
|
-
$3649bcbba015c4d7$export$e7dc768d35940237 = `Ug6T-W_is-focused`;
|
|
173
|
-
$3649bcbba015c4d7$export$b8813cd5d7824ce7 = `Ug6T-W_is-hovered`;
|
|
174
|
-
$3649bcbba015c4d7$export$14a30de2866685fa = `Ug6T-W_is-invalid`;
|
|
175
|
-
$3649bcbba015c4d7$export$a9781837241c946d = `Ug6T-W_is-open`;
|
|
176
|
-
$3649bcbba015c4d7$export$f7b415378ab4f839 = `Ug6T-W_spectrum-BaseButton ${$3649bcbba015c4d7$export$8c4ee2c50c22c514}`;
|
|
177
|
-
$3649bcbba015c4d7$export$4109102f950813a6 = `Ug6T-W_spectrum-FocusRing-ring`;
|
|
178
|
-
$3649bcbba015c4d7$export$24c7f46a6e3605dd = `Ug6T-W_spectrum-FocusRing ${$3649bcbba015c4d7$export$4109102f950813a6}`;
|
|
179
|
-
$3649bcbba015c4d7$export$53da69f51b770d3 = `Ug6T-W_spectrum-ActionButton ${$3649bcbba015c4d7$export$f7b415378ab4f839} ${$3649bcbba015c4d7$export$24c7f46a6e3605dd}`;
|
|
180
|
-
$3649bcbba015c4d7$export$40e1f009544bacf3 = `Ug6T-W_spectrum-ActionButton--quiet`;
|
|
181
|
-
$3649bcbba015c4d7$export$4a4f01c443eff992 = `Ug6T-W_spectrum-ActionButton-hold`;
|
|
182
|
-
$3649bcbba015c4d7$export$ebb4635c66bacdb9 = `Ug6T-W_spectrum-ActionButton-label`;
|
|
183
|
-
$3649bcbba015c4d7$export$1db4cca5b4ade39a = `Ug6T-W_spectrum-Button ${$3649bcbba015c4d7$export$f7b415378ab4f839} ${$3649bcbba015c4d7$export$24c7f46a6e3605dd}`;
|
|
184
|
-
$3649bcbba015c4d7$export$c1d306ec0fae3838 = `Ug6T-W_spectrum-Button--iconOnly`;
|
|
185
|
-
$3649bcbba015c4d7$export$54592d0984f245d5 = `Ug6T-W_spectrum-Button--pending`;
|
|
186
|
-
$3649bcbba015c4d7$export$76d4531f0342bbe0 = `Ug6T-W_spectrum-Button-circleLoader`;
|
|
187
|
-
$3649bcbba015c4d7$export$c081ba562e204942 = `Ug6T-W_spectrum-Button-label`;
|
|
188
|
-
$3649bcbba015c4d7$export$b752ce409e5660c = `Ug6T-W_spectrum-ClearButton ${$3649bcbba015c4d7$export$f7b415378ab4f839} ${$3649bcbba015c4d7$export$24c7f46a6e3605dd}`;
|
|
189
|
-
$3649bcbba015c4d7$export$49280ffa5236ba8b = `Ug6T-W_spectrum-ClearButton--small`;
|
|
190
|
-
$3649bcbba015c4d7$export$a024c99ecf6b5741 = `Ug6T-W_spectrum-FieldButton ${$3649bcbba015c4d7$export$f7b415378ab4f839} ${$3649bcbba015c4d7$export$24c7f46a6e3605dd}`;
|
|
191
|
-
$3649bcbba015c4d7$export$2927016961429360 = `Ug6T-W_spectrum-FocusRing--quiet`;
|
|
192
|
-
$3649bcbba015c4d7$export$5ca7b274e4fff9fc = `Ug6T-W_spectrum-FieldButton--quiet ${$3649bcbba015c4d7$export$2927016961429360}`;
|
|
193
|
-
$3649bcbba015c4d7$export$d374b04f30360026 = `Ug6T-W_spectrum-Icon`;
|
|
194
|
-
$3649bcbba015c4d7$export$36ae67a131730482 = `Ug6T-W_spectrum-LogicButton ${$3649bcbba015c4d7$export$f7b415378ab4f839} ${$3649bcbba015c4d7$export$24c7f46a6e3605dd}`;
|
|
195
|
-
$3649bcbba015c4d7$export$f49c123746e1fb8 = `Ug6T-W_spectrum-Stepper ${$3649bcbba015c4d7$export$24c7f46a6e3605dd}`;
|
|
196
|
-
$3649bcbba015c4d7$export$75e6f9c4d1d95421 = `Ug6T-W_spectrum-Stepper--isMobile`;
|
|
197
|
-
$3649bcbba015c4d7$export$70ed0eb2ba7512f8 = `Ug6T-W_spectrum-Stepper--isQuiet ${$3649bcbba015c4d7$export$2927016961429360}`;
|
|
198
|
-
$3649bcbba015c4d7$export$ba8faf273ff0a970 = `Ug6T-W_spectrum-Stepper--readonly`;
|
|
199
|
-
$3649bcbba015c4d7$export$a4e366275982a12f = `Ug6T-W_spectrum-Stepper--showStepper`;
|
|
200
|
-
$3649bcbba015c4d7$export$4e11596482f95f63 = `Ug6T-W_spectrum-Stepper-button ${$3649bcbba015c4d7$export$f7b415378ab4f839}`;
|
|
201
|
-
$3649bcbba015c4d7$export$e4ad52f6ba4e317b = `Ug6T-W_spectrum-Stepper-button--stepDown`;
|
|
202
|
-
$3649bcbba015c4d7$export$6c76d609d604c6e5 = `Ug6T-W_spectrum-Stepper-button--stepUp`;
|
|
203
|
-
$3649bcbba015c4d7$export$7d7cb0c4055e98ab = `Ug6T-W_spectrum-Stepper-button-icon`;
|
|
204
|
-
$3649bcbba015c4d7$export$f49a6eb8460c3f93 = `Ug6T-W_spectrum-Stepper-container`;
|
|
205
|
-
$3649bcbba015c4d7$export$3486d98f7bb904b1 = `Ug6T-W_spectrum-Stepper-container--isMobile`;
|
|
206
|
-
$3649bcbba015c4d7$export$faac6573b15f75d6 = `Ug6T-W_spectrum-Stepper-field`;
|
|
207
|
-
$3649bcbba015c4d7$export$639c56ba6082b615 = `Ug6T-W_spectrum-Stepper-icon`;
|
|
208
|
-
$3649bcbba015c4d7$export$8273fb931edd57d4 = `Ug6T-W_spectrum-Stepper-input`;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
function $2f3cded204daae76$var$StepButton(props, ref) {
|
|
215
|
-
props = (0, $i8sTE$reactspectrumprovider.useProviderProps)(props);
|
|
216
|
-
let { scale: scale } = (0, $i8sTE$reactspectrumprovider.useProvider)();
|
|
217
|
-
let { direction: direction, isDisabled: isDisabled, isQuiet: isQuiet } = props;
|
|
218
|
-
let domRef = (0, $i8sTE$reactspectrumutils.useFocusableRef)(ref);
|
|
219
|
-
/**
|
|
220
|
-
* Must use div for now because Safari pointer event bugs on disabled form elements.
|
|
221
|
-
* Link https://bugs.webkit.org/show_bug.cgi?id=219188.
|
|
222
|
-
*/ let { buttonProps: buttonProps, isPressed: isPressed } = (0, $i8sTE$reactariabutton.useButton)({
|
|
223
|
-
...props,
|
|
224
|
-
elementType: "div"
|
|
225
|
-
}, domRef);
|
|
226
|
-
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $i8sTE$reactariainteractions.useHover)(props);
|
|
227
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, $i8sTE$reactariafocus.FocusRing), {
|
|
228
|
-
focusRingClass: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "focus-ring")
|
|
229
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement("div", {
|
|
230
|
-
className: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-button", {
|
|
231
|
-
"spectrum-Stepper-button--stepUp": direction === "up",
|
|
232
|
-
"spectrum-Stepper-button--stepDown": direction === "down",
|
|
233
|
-
"spectrum-Stepper-button--isQuiet": isQuiet,
|
|
234
|
-
"is-hovered": isHovered,
|
|
235
|
-
"is-active": isPressed,
|
|
236
|
-
"is-disabled": isDisabled
|
|
237
|
-
}),
|
|
238
|
-
...(0, $i8sTE$reactariautils.mergeProps)(hoverProps, buttonProps),
|
|
239
|
-
ref: domRef
|
|
240
|
-
}, direction === "up" && scale === "large" && /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, ($parcel$interopDefault($i8sTE$spectrumiconsworkflowAdd))), {
|
|
241
|
-
UNSAFE_className: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-button-icon", "spectrum-Stepper-stepUpIcon"),
|
|
242
|
-
size: "S"
|
|
243
|
-
}), direction === "up" && scale === "medium" && /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, ($parcel$interopDefault($i8sTE$spectrumiconsuiChevronUpSmall))), {
|
|
244
|
-
UNSAFE_className: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-button-icon", "spectrum-Stepper-stepUpIcon")
|
|
245
|
-
}), direction === "down" && scale === "large" && /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, ($parcel$interopDefault($i8sTE$spectrumiconsworkflowRemove))), {
|
|
246
|
-
UNSAFE_className: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-button-icon", "spectrum-Stepper-stepDownIcon"),
|
|
247
|
-
size: "S"
|
|
248
|
-
}), direction === "down" && scale === "medium" && /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, ($parcel$interopDefault($i8sTE$spectrumiconsuiChevronDownSmall))), {
|
|
249
|
-
UNSAFE_className: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-button-icon", "spectrum-Stepper-stepDownIcon")
|
|
250
|
-
})));
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Buttons for NumberField.
|
|
254
|
-
*/ let $2f3cded204daae76$export$b2f6b60c1d32d6aa = /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).forwardRef($2f3cded204daae76$var$StepButton);
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
function $9b3df9c012d62e52$var$NumberField(props, ref) {
|
|
265
|
-
props = (0, $i8sTE$reactspectrumprovider.useProviderProps)(props);
|
|
266
|
-
props = (0, $i8sTE$reactspectrumform.useFormProps)(props);
|
|
267
|
-
let provider = (0, $i8sTE$reactspectrumprovider.useProvider)();
|
|
268
|
-
let { isQuiet: isQuiet, isReadOnly: isReadOnly, isDisabled: isDisabled, hideStepper: hideStepper } = props;
|
|
269
|
-
let { styleProps: style } = (0, $i8sTE$reactspectrumutils.useStyleProps)(props);
|
|
270
|
-
let { locale: locale } = (0, $i8sTE$reactariai18n.useLocale)();
|
|
271
|
-
let state = (0, $i8sTE$reactstatelynumberfield.useNumberFieldState)({
|
|
272
|
-
...props,
|
|
273
|
-
locale: locale
|
|
274
|
-
});
|
|
275
|
-
let inputRef = (0, $i8sTE$react.useRef)(null);
|
|
276
|
-
let domRef = (0, $i8sTE$reactspectrumutils.useFocusableRef)(ref, inputRef);
|
|
277
|
-
let { groupProps: groupProps, labelProps: labelProps, inputProps: inputProps, incrementButtonProps: incrementButtonProps, decrementButtonProps: decrementButtonProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps, isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = (0, $i8sTE$reactarianumberfield.useNumberField)(props, state, inputRef);
|
|
278
|
-
let isMobile = provider.scale === "large";
|
|
279
|
-
let showStepper = !hideStepper;
|
|
280
|
-
let { isHovered: isHovered, hoverProps: hoverProps } = (0, $i8sTE$reactariainteractions.useHover)({
|
|
281
|
-
isDisabled: isDisabled
|
|
282
|
-
});
|
|
283
|
-
let validationState = props.validationState || (isInvalid ? "invalid" : undefined);
|
|
284
|
-
let className = (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper", // because FocusRing won't pass along the className from Field, we have to handle that ourselves
|
|
285
|
-
!props.label && style.className ? style.className : "", {
|
|
286
|
-
"spectrum-Stepper--isQuiet": isQuiet,
|
|
287
|
-
"is-disabled": isDisabled,
|
|
288
|
-
"spectrum-Stepper--readonly": isReadOnly,
|
|
289
|
-
"is-invalid": validationState === "invalid" && !isDisabled,
|
|
290
|
-
"spectrum-Stepper--showStepper": showStepper,
|
|
291
|
-
"spectrum-Stepper--isMobile": isMobile,
|
|
292
|
-
"is-hovered": isHovered
|
|
293
|
-
});
|
|
294
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, $i8sTE$reactspectrumlabel.Field), {
|
|
295
|
-
...props,
|
|
296
|
-
descriptionProps: descriptionProps,
|
|
297
|
-
errorMessageProps: errorMessageProps,
|
|
298
|
-
isInvalid: isInvalid,
|
|
299
|
-
validationErrors: validationErrors,
|
|
300
|
-
validationDetails: validationDetails,
|
|
301
|
-
labelProps: labelProps,
|
|
302
|
-
ref: domRef,
|
|
303
|
-
wrapperClassName: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-container", {
|
|
304
|
-
"spectrum-Stepper-container--isMobile": isMobile
|
|
305
|
-
})
|
|
306
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement($9b3df9c012d62e52$var$NumberFieldInput, {
|
|
307
|
-
...props,
|
|
308
|
-
groupProps: (0, $i8sTE$reactariautils.mergeProps)(groupProps, hoverProps),
|
|
309
|
-
inputProps: inputProps,
|
|
310
|
-
inputRef: inputRef,
|
|
311
|
-
incrementProps: incrementButtonProps,
|
|
312
|
-
decrementProps: decrementButtonProps,
|
|
313
|
-
className: className,
|
|
314
|
-
style: style,
|
|
315
|
-
state: state,
|
|
316
|
-
validationState: validationState
|
|
317
|
-
}));
|
|
318
|
-
}
|
|
319
|
-
const $9b3df9c012d62e52$var$NumberFieldInput = /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).forwardRef(function NumberFieldInput(props, ref) {
|
|
320
|
-
let { groupProps: groupProps, inputProps: inputProps, inputRef: inputRef, incrementProps: incrementProps, decrementProps: decrementProps, className: className, style: style, autoFocus: autoFocus, isQuiet: isQuiet, isDisabled: isDisabled, hideStepper: hideStepper, validationState: validationState, name: name, state: state } = props;
|
|
321
|
-
let showStepper = !hideStepper;
|
|
322
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, $i8sTE$reactariafocus.FocusRing), {
|
|
323
|
-
within: true,
|
|
324
|
-
isTextInput: true,
|
|
325
|
-
focusClass: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "is-focused"),
|
|
326
|
-
focusRingClass: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "focus-ring"),
|
|
327
|
-
autoFocus: autoFocus
|
|
328
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement("div", {
|
|
329
|
-
...groupProps,
|
|
330
|
-
ref: ref,
|
|
331
|
-
style: style,
|
|
332
|
-
className: className
|
|
333
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, $i8sTE$reactspectrumtextfield.TextFieldBase), {
|
|
334
|
-
UNSAFE_className: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-field"),
|
|
335
|
-
inputClassName: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-input"),
|
|
336
|
-
validationIconClassName: (0, $i8sTE$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($3649bcbba015c4d7$exports))), "spectrum-Stepper-icon"),
|
|
337
|
-
isQuiet: isQuiet,
|
|
338
|
-
inputRef: inputRef,
|
|
339
|
-
validationState: validationState,
|
|
340
|
-
inputProps: inputProps,
|
|
341
|
-
isDisabled: isDisabled,
|
|
342
|
-
disableFocusRing: true
|
|
343
|
-
}), showStepper && /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, ($parcel$interopDefault($i8sTE$react))).Fragment, null, /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, $2f3cded204daae76$export$b2f6b60c1d32d6aa), {
|
|
344
|
-
direction: "up",
|
|
345
|
-
isQuiet: isQuiet,
|
|
346
|
-
...incrementProps
|
|
347
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement((0, $2f3cded204daae76$export$b2f6b60c1d32d6aa), {
|
|
348
|
-
direction: "down",
|
|
349
|
-
isQuiet: isQuiet,
|
|
350
|
-
...decrementProps
|
|
351
|
-
})), name && /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).createElement("input", {
|
|
352
|
-
type: "hidden",
|
|
353
|
-
name: name,
|
|
354
|
-
value: isNaN(state.numberValue) ? "" : state.numberValue
|
|
355
|
-
})));
|
|
356
|
-
});
|
|
357
|
-
/**
|
|
358
|
-
* NumberFields allow users to enter a number, and increment or decrement the value using stepper buttons.
|
|
359
|
-
*/ let $9b3df9c012d62e52$export$63c5fa0b2fdccd2e = /*#__PURE__*/ (0, ($parcel$interopDefault($i8sTE$react))).forwardRef($9b3df9c012d62e52$var$NumberField);
|
|
360
|
-
|
|
361
20
|
|
|
362
21
|
|
|
363
22
|
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;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,yBACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,gEAAW,GACX;QAGJ,SAAS;QACT,UAAU;QACV,iBAAiB;QACjB,YAAY;QACZ,YAAY;QACZ,kBAAA;QACD,6BACD,oIACE,0DAAC,CAAA,GAAA,yCAAS;QAAE,WAAU;QAAK,SAAS;QAAU,GAAG,cAAc;sBAC/D,0DAAC,CAAA,GAAA,yCAAS;QAAE,WAAU;QAAO,SAAS;QAAU,GAAG,cAAc;SAGlE,sBAAQ,0DAAC;QAAM,MAAK;QAAS,MAAM;QAAM,OAAO,MAAM,MAAM,WAAW,IAAI,KAAK,MAAM,WAAW;;AAI1G;AAEA;;CAEC,GACD,IAAI,0DAAe,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/numberfield/src/index.ts","packages/@react-spectrum/numberfield/src/NumberField.tsx","packages/@react-spectrum/numberfield/src/StepButton.tsx","packages/@adobe/spectrum-css-temp/components/stepper/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {NumberField} from './NumberField';\nexport type {SpectrumNumberFieldProps} from '@react-types/numberfield';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {Field} from '@react-spectrum/label';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport {NumberFieldState, useNumberFieldState} from '@react-stately/numberfield';\nimport React, {HTMLAttributes, InputHTMLAttributes, Ref, RefObject, useRef} from 'react';\nimport {SpectrumNumberFieldProps} from '@react-types/numberfield';\nimport {StepButton} from './StepButton';\nimport stepperStyle from '@adobe/spectrum-css-temp/components/stepper/vars.css';\nimport {TextFieldBase} from '@react-spectrum/textfield';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useHover} from '@react-aria/interactions';\nimport {useLocale} from '@react-aria/i18n';\nimport {useNumberField} from '@react-aria/numberfield';\nimport {useProvider, useProviderProps} from '@react-spectrum/provider';\n\nfunction NumberField(props: SpectrumNumberFieldProps, ref: FocusableRef<HTMLElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let provider = useProvider();\n let {\n isQuiet,\n isReadOnly,\n isDisabled,\n hideStepper\n } = props;\n\n let {styleProps: style} = useStyleProps(props);\n\n let {locale} = useLocale();\n let state = useNumberFieldState({...props, locale});\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useFocusableRef<HTMLElement>(ref, inputRef);\n let {\n groupProps,\n labelProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n descriptionProps,\n errorMessageProps,\n isInvalid,\n validationErrors,\n validationDetails\n } = useNumberField(props, state, inputRef);\n let isMobile = provider.scale === 'large';\n let showStepper = !hideStepper;\n\n let {isHovered, hoverProps} = useHover({isDisabled});\n\n let validationState = props.validationState || (isInvalid ? 'invalid' : undefined);\n let className =\n classNames(\n stepperStyle,\n 'spectrum-Stepper',\n // because FocusRing won't pass along the className from Field, we have to handle that ourselves\n !props.label && style.className ? style.className : '',\n {\n 'spectrum-Stepper--isQuiet': isQuiet,\n 'is-disabled': isDisabled,\n 'spectrum-Stepper--readonly': isReadOnly,\n 'is-invalid': validationState === 'invalid' && !isDisabled,\n 'spectrum-Stepper--showStepper': showStepper,\n 'spectrum-Stepper--isMobile': isMobile,\n 'is-hovered': isHovered\n }\n );\n\n return (\n <Field\n {...props as Omit<SpectrumNumberFieldProps, 'onChange'>}\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n isInvalid={isInvalid}\n validationErrors={validationErrors}\n validationDetails={validationDetails}\n labelProps={labelProps}\n ref={domRef}\n wrapperClassName={classNames(\n stepperStyle,\n 'spectrum-Stepper-container',\n {\n 'spectrum-Stepper-container--isMobile': isMobile\n }\n )}>\n <NumberFieldInput\n {...props}\n groupProps={mergeProps(groupProps, hoverProps)}\n inputProps={inputProps}\n inputRef={inputRef}\n incrementProps={incrementButtonProps}\n decrementProps={decrementButtonProps}\n className={className}\n style={style}\n state={state}\n validationState={validationState} />\n </Field>\n );\n}\n\n\ninterface NumberFieldInputProps extends SpectrumNumberFieldProps {\n groupProps: HTMLAttributes<HTMLDivElement>,\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n inputRef: RefObject<HTMLInputElement | HTMLTextAreaElement>,\n incrementProps: AriaButtonProps,\n decrementProps: AriaButtonProps,\n className?: string,\n style?: React.CSSProperties,\n state: NumberFieldState\n}\n\nconst NumberFieldInput = React.forwardRef(function NumberFieldInput(props: NumberFieldInputProps, ref: Ref<HTMLDivElement>) {\n let {\n groupProps,\n inputProps,\n inputRef,\n incrementProps,\n decrementProps,\n className,\n style,\n autoFocus,\n isQuiet,\n isDisabled,\n hideStepper,\n validationState,\n name,\n state\n } = props;\n let showStepper = !hideStepper;\n\n return (\n <FocusRing\n within\n isTextInput\n focusClass={classNames(stepperStyle, 'is-focused')}\n focusRingClass={classNames(stepperStyle, 'focus-ring')}\n autoFocus={autoFocus}>\n <div\n {...groupProps}\n ref={ref}\n style={style}\n className={className}>\n <TextFieldBase\n UNSAFE_className={\n classNames(\n stepperStyle,\n 'spectrum-Stepper-field'\n )\n }\n inputClassName={\n classNames(\n stepperStyle,\n 'spectrum-Stepper-input'\n )\n }\n validationIconClassName={\n classNames(\n stepperStyle,\n 'spectrum-Stepper-icon'\n )\n }\n isQuiet={isQuiet}\n inputRef={inputRef}\n validationState={validationState}\n inputProps={inputProps}\n isDisabled={isDisabled}\n disableFocusRing />\n {showStepper &&\n <>\n <StepButton direction=\"up\" isQuiet={isQuiet} {...incrementProps} />\n <StepButton direction=\"down\" isQuiet={isQuiet} {...decrementProps} />\n </>\n }\n {name && <input type=\"hidden\" name={name} value={isNaN(state.numberValue) ? '' : state.numberValue} />}\n </div>\n </FocusRing>\n );\n});\n\n/**\n * NumberFields allow users to enter a number, and increment or decrement the value using stepper buttons.\n */\nlet _NumberField = React.forwardRef(NumberField);\nexport {_NumberField as NumberField};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport Add from '@spectrum-icons/workflow/Add';\nimport {AriaButtonProps} from '@react-types/button';\nimport ChevronDownSmall from '@spectrum-icons/ui/ChevronDownSmall';\nimport ChevronUpSmall from '@spectrum-icons/ui/ChevronUpSmall';\nimport {classNames, useFocusableRef} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport Remove from '@spectrum-icons/workflow/Remove';\nimport stepperStyle from '@adobe/spectrum-css-temp/components/stepper/vars.css';\nimport {useButton} from '@react-aria/button';\nimport {useHover} from '@react-aria/interactions';\nimport {useProvider, useProviderProps} from '@react-spectrum/provider';\n\ninterface StepButtonProps extends AriaButtonProps {\n isQuiet?: boolean,\n direction: 'up' | 'down'\n}\n\nfunction StepButton(props: StepButtonProps, ref: FocusableRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {scale} = useProvider();\n let {direction, isDisabled, isQuiet} = props;\n let domRef = useFocusableRef(ref);\n /**\n * Must use div for now because Safari pointer event bugs on disabled form elements.\n * Link https://bugs.webkit.org/show_bug.cgi?id=219188.\n */\n let {buttonProps, isPressed} = useButton({...props, elementType: 'div'}, domRef);\n let {hoverProps, isHovered} = useHover(props);\n return (\n <FocusRing focusRingClass={classNames(stepperStyle, 'focus-ring')}>\n <div\n className={\n classNames(\n stepperStyle,\n 'spectrum-Stepper-button',\n {\n 'spectrum-Stepper-button--stepUp': direction === 'up',\n 'spectrum-Stepper-button--stepDown': direction === 'down',\n 'spectrum-Stepper-button--isQuiet': isQuiet,\n 'is-hovered': isHovered,\n 'is-active': isPressed,\n 'is-disabled': isDisabled\n }\n )\n }\n {...mergeProps(hoverProps, buttonProps)}\n ref={domRef}>\n {direction === 'up' && scale === 'large' &&\n <Add UNSAFE_className={classNames(stepperStyle, 'spectrum-Stepper-button-icon', 'spectrum-Stepper-stepUpIcon')} size=\"S\" />\n }\n {direction === 'up' && scale === 'medium' &&\n <ChevronUpSmall UNSAFE_className={classNames(stepperStyle, 'spectrum-Stepper-button-icon', 'spectrum-Stepper-stepUpIcon')} />\n }\n {direction === 'down' && scale === 'large' &&\n <Remove UNSAFE_className={classNames(stepperStyle, 'spectrum-Stepper-button-icon', 'spectrum-Stepper-stepDownIcon')} size=\"S\" />\n }\n {direction === 'down' && scale === 'medium' &&\n <ChevronDownSmall UNSAFE_className={classNames(stepperStyle, 'spectrum-Stepper-button-icon', 'spectrum-Stepper-stepDownIcon')} />\n }\n </div>\n </FocusRing>\n );\n}\n\n/**\n * Buttons for NumberField.\n */\nlet _StepButton = React.forwardRef(StepButton) as (props: StepButtonProps & {ref?: FocusableRef<HTMLDivElement>}) => ReactElement;\nexport {_StepButton as StepButton};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/numberfield/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {NumberField} from './NumberField';\nexport type {SpectrumNumberFieldProps} from '@react-types/numberfield';\n"],"names":[],"version":3,"file":"main.js.map"}
|