fermmap-shared 0.2.3 → 0.2.5
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/main.cjs +18 -29
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +20 -31
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/main.cjs
CHANGED
|
@@ -12,8 +12,6 @@ var $fs04y$reactspectrums2iconsClose = require("@react-spectrum/s2/icons/Close")
|
|
|
12
12
|
var $fs04y$nextnavigation = require("next/navigation");
|
|
13
13
|
var $fs04y$reactspectrums2iconsGlobeGrid = require("@react-spectrum/s2/icons/GlobeGrid");
|
|
14
14
|
var $fs04y$reactspectrums2iconsViewList = require("@react-spectrum/s2/icons/ViewList");
|
|
15
|
-
var $fs04y$axecorereact = require("@axe-core/react");
|
|
16
|
-
var $fs04y$reactdom = require("react-dom");
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
function $parcel$exportWildcard(dest, source) {
|
|
@@ -240,7 +238,7 @@ const $e6839169613154d7$export$353f5b6fc5456de1 = ({ children: children, variant
|
|
|
240
238
|
|
|
241
239
|
|
|
242
240
|
|
|
243
|
-
const $6ab530226d5e3153$export$298b9ad7287f04ba = " sd12 _ta12 Ue12 qe12
|
|
241
|
+
const $6ab530226d5e3153$export$298b9ad7287f04ba = " sd12 _ta12 Ue12 qe12";
|
|
244
242
|
const $6ab530226d5e3153$export$706e9cce604ae69d = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
245
243
|
const $6ab530226d5e3153$var$inputStyles = function anonymous(props) {
|
|
246
244
|
let rules = " ";
|
|
@@ -1312,6 +1310,7 @@ const $5a568b5eb65bfe76$export$de65de8213222d10 = ({ onClose: onClose, ...props
|
|
|
1312
1310
|
|
|
1313
1311
|
|
|
1314
1312
|
|
|
1313
|
+
|
|
1315
1314
|
const $1c0dbf01eb96351a$var$comboBoxContainerStyles = " sd12 _ta12 Ub12 qb12 Nh12";
|
|
1316
1315
|
const $1c0dbf01eb96351a$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
1317
1316
|
const $1c0dbf01eb96351a$var$inputWrapperStyles = " _Pc12 sd12 eb12";
|
|
@@ -1431,10 +1430,24 @@ const $1c0dbf01eb96351a$var$listBoxItemStyles = function anonymous(props) {
|
|
|
1431
1430
|
const $1c0dbf01eb96351a$var$descriptionStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wc12 xc12 _xa12 wezxGHbtN5kwb12 xezxGHbg12 _xezxGHba12 wfd12 xfd12 _xfa12 wfX0cczbc12 xfX0cczbc12 _xfX0cczba12 _Fd12 _FezxGHba12 _FnuYUweb12 pn12";
|
|
1432
1431
|
const $1c0dbf01eb96351a$var$errorStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wc12 xc12 _xa12 wezxGHbtN5kwb12 xezxGHbg12 _xezxGHba12 wfd12 xfd12 _xfa12 wfX0cczbc12 xfX0cczbc12 _xfX0cczba12 _Fd12 _FezxGHba12 _FnuYUweb12 pnkUCZ12";
|
|
1433
1432
|
function $1c0dbf01eb96351a$export$72b9695b8216309a({ label: label, description: description, errorMessage: errorMessage, isRequired: isRequired = false, isDisabled: isDisabled = false, selectedKey: selectedKey, onSelectionChange: onSelectionChange, items: items, placeholder: placeholder, 'aria-label': ariaLabel, inputValue: controlledInputValue, onInputChange: controlledOnInputChange }) {
|
|
1433
|
+
const [internalInputValue, setInternalInputValue] = (0, $fs04y$react.useState)('');
|
|
1434
|
+
// Sync input value with selected item
|
|
1435
|
+
(0, $fs04y$react.useEffect)(()=>{
|
|
1436
|
+
if (selectedKey) {
|
|
1437
|
+
const selected = items.find((item)=>item.id === selectedKey);
|
|
1438
|
+
if (selected) setInternalInputValue(selected.label);
|
|
1439
|
+
} else setInternalInputValue('');
|
|
1440
|
+
}, [
|
|
1441
|
+
selectedKey,
|
|
1442
|
+
items
|
|
1443
|
+
]);
|
|
1444
|
+
// Use controlled inputValue if provided, otherwise use internal state
|
|
1445
|
+
const effectiveInputValue = controlledInputValue !== undefined ? controlledInputValue : internalInputValue;
|
|
1446
|
+
const effectiveOnInputChange = controlledOnInputChange !== undefined ? controlledOnInputChange : setInternalInputValue;
|
|
1434
1447
|
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.ComboBox), {
|
|
1435
1448
|
className: $1c0dbf01eb96351a$var$comboBoxContainerStyles,
|
|
1436
|
-
inputValue:
|
|
1437
|
-
onInputChange:
|
|
1449
|
+
inputValue: effectiveInputValue,
|
|
1450
|
+
onInputChange: effectiveOnInputChange,
|
|
1438
1451
|
selectedKey: selectedKey,
|
|
1439
1452
|
onSelectionChange: onSelectionChange,
|
|
1440
1453
|
isDisabled: isDisabled,
|
|
@@ -2861,7 +2874,6 @@ $parcel$export($885bdde2b07b7632$exports, "I18nProvider", () => $25d82f0a3d474eb
|
|
|
2861
2874
|
$parcel$export($885bdde2b07b7632$exports, "useIntl", () => $25d82f0a3d474ebc$export$5aebe9a147f4d146);
|
|
2862
2875
|
$parcel$export($885bdde2b07b7632$exports, "FilterProvider", () => $8f5795e91d23efab$export$66b627500eff8faa);
|
|
2863
2876
|
$parcel$export($885bdde2b07b7632$exports, "useFilters", () => $8f5795e91d23efab$export$973ca22476b0e05f);
|
|
2864
|
-
$parcel$export($885bdde2b07b7632$exports, "AxeDevTools", () => $ac6c22366fad60ff$export$dad69b6e16969c68);
|
|
2865
2877
|
// Contexts & Providers
|
|
2866
2878
|
|
|
2867
2879
|
|
|
@@ -2968,29 +2980,6 @@ function $8f5795e91d23efab$export$973ca22476b0e05f() {
|
|
|
2968
2980
|
|
|
2969
2981
|
|
|
2970
2982
|
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
function $ac6c22366fad60ff$export$dad69b6e16969c68() {
|
|
2974
|
-
(0, $fs04y$react.useEffect)(()=>{
|
|
2975
|
-
// Only run in local development (not in production or Vercel deployments)
|
|
2976
|
-
const isLocalDev = typeof window !== 'undefined' && window.location.hostname === 'localhost';
|
|
2977
|
-
if (isLocalDev && process.env.NODE_ENV !== 'production') // Dynamic imports to avoid SSR issues
|
|
2978
|
-
Promise.all([
|
|
2979
|
-
$fs04y$react,
|
|
2980
|
-
$fs04y$reactdom,
|
|
2981
|
-
$fs04y$axecorereact
|
|
2982
|
-
]).then(([React, ReactDOM, axe])=>{
|
|
2983
|
-
axe.default(React.default || React, ReactDOM.default || ReactDOM, 1000, {});
|
|
2984
|
-
}).catch((err)=>{
|
|
2985
|
-
console.warn('Failed to load axe-core:', err);
|
|
2986
|
-
});
|
|
2987
|
-
}, []);
|
|
2988
|
-
return null;
|
|
2989
|
-
}
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
2983
|
var $d44b0b07a2b9c664$exports = {};
|
|
2995
2984
|
// Hooks
|
|
2996
2985
|
var $c5b52867831f5132$exports = {};
|