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/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./module.css";
|
|
2
2
|
import {jsx as $3A86U$jsx, jsxs as $3A86U$jsxs, Fragment as $3A86U$Fragment} from "react/jsx-runtime";
|
|
3
3
|
import {ModalOverlay as $3A86U$ModalOverlay, Modal as $3A86U$Modal, Dialog as $3A86U$Dialog, Heading as $3A86U$Heading, Button as $3A86U$Button, TextField as $3A86U$TextField, Label as $3A86U$Label, Input as $3A86U$Input, Text as $3A86U$Text, useFilter as $3A86U$useFilter, Autocomplete as $3A86U$Autocomplete, SearchField as $3A86U$SearchField, ListBox as $3A86U$ListBox, ListBoxItem as $3A86U$ListBoxItem, Table as $3A86U$Table, TableHeader as $3A86U$TableHeader, Column as $3A86U$Column, TableBody as $3A86U$TableBody, Row as $3A86U$Row, Cell as $3A86U$Cell, Checkbox as $3A86U$Checkbox, ProgressBar as $3A86U$ProgressBar, ComboBox as $3A86U$ComboBox, FieldError as $3A86U$FieldError, Popover as $3A86U$Popover, DisclosureGroup as $3A86U$DisclosureGroup, Disclosure as $3A86U$Disclosure, DisclosureStateContext as $3A86U$DisclosureStateContext, DisclosurePanel as $3A86U$DisclosurePanel, ToggleButtonGroup as $3A86U$ToggleButtonGroup, ToggleButton as $3A86U$ToggleButton, SelectionIndicator as $3A86U$SelectionIndicator, Link as $3A86U$Link, MenuTrigger as $3A86U$MenuTrigger, Menu as $3A86U$Menu, Separator as $3A86U$Separator, MenuItem as $3A86U$MenuItem, Radio as $3A86U$Radio, RadioGroup as $3A86U$RadioGroup, Select as $3A86U$Select, SelectValue as $3A86U$SelectValue, Switch as $3A86U$Switch, Tabs as $3A86U$Tabs, TabList as $3A86U$TabList, Tab as $3A86U$Tab, TabPanel as $3A86U$TabPanel, TextArea as $3A86U$TextArea} from "react-aria-components";
|
|
4
|
-
import
|
|
4
|
+
import {useState as $3A86U$useState, useMemo as $3A86U$useMemo, useRef as $3A86U$useRef, useEffect as $3A86U$useEffect, createContext as $3A86U$createContext, useContext as $3A86U$useContext} from "react";
|
|
5
5
|
import $3A86U$reactspectrums2iconsSearch from "@react-spectrum/s2/icons/Search";
|
|
6
6
|
import $3A86U$reactspectrums2iconsCheckmarkCircle from "@react-spectrum/s2/icons/CheckmarkCircle";
|
|
7
7
|
import $3A86U$reactspectrums2iconsCloseCircle from "@react-spectrum/s2/icons/CloseCircle";
|
|
@@ -12,8 +12,6 @@ import $3A86U$reactspectrums2iconsClose from "@react-spectrum/s2/icons/Close";
|
|
|
12
12
|
import {useRouter as $3A86U$useRouter} from "next/navigation";
|
|
13
13
|
import $3A86U$reactspectrums2iconsGlobeGrid from "@react-spectrum/s2/icons/GlobeGrid";
|
|
14
14
|
import $3A86U$reactspectrums2iconsViewList from "@react-spectrum/s2/icons/ViewList";
|
|
15
|
-
import * as $3A86U$axecorereact from "@axe-core/react";
|
|
16
|
-
import * as $3A86U$reactdom from "react-dom";
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
function $parcel$export(e, n, v, s) {
|
|
@@ -236,7 +234,7 @@ const $4aac1ae7c2a46df4$export$353f5b6fc5456de1 = ({ children: children, variant
|
|
|
236
234
|
|
|
237
235
|
|
|
238
236
|
|
|
239
|
-
const $f62becf1f473d668$export$298b9ad7287f04ba = " sd12 _ta12 Ue12 qe12
|
|
237
|
+
const $f62becf1f473d668$export$298b9ad7287f04ba = " sd12 _ta12 Ue12 qe12";
|
|
240
238
|
const $f62becf1f473d668$export$706e9cce604ae69d = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
241
239
|
const $f62becf1f473d668$var$inputStyles = function anonymous(props) {
|
|
242
240
|
let rules = " ";
|
|
@@ -1308,6 +1306,7 @@ const $07aaa6869c77f679$export$de65de8213222d10 = ({ onClose: onClose, ...props
|
|
|
1308
1306
|
|
|
1309
1307
|
|
|
1310
1308
|
|
|
1309
|
+
|
|
1311
1310
|
const $d6f6f2bb59cbf8cf$var$comboBoxContainerStyles = " sd12 _ta12 Ub12 qb12 Nh12";
|
|
1312
1311
|
const $d6f6f2bb59cbf8cf$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
1313
1312
|
const $d6f6f2bb59cbf8cf$var$inputWrapperStyles = " _Pc12 sd12 eb12";
|
|
@@ -1427,10 +1426,24 @@ const $d6f6f2bb59cbf8cf$var$listBoxItemStyles = function anonymous(props) {
|
|
|
1427
1426
|
const $d6f6f2bb59cbf8cf$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";
|
|
1428
1427
|
const $d6f6f2bb59cbf8cf$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";
|
|
1429
1428
|
function $d6f6f2bb59cbf8cf$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 }) {
|
|
1429
|
+
const [internalInputValue, setInternalInputValue] = (0, $3A86U$useState)('');
|
|
1430
|
+
// Sync input value with selected item
|
|
1431
|
+
(0, $3A86U$useEffect)(()=>{
|
|
1432
|
+
if (selectedKey) {
|
|
1433
|
+
const selected = items.find((item)=>item.id === selectedKey);
|
|
1434
|
+
if (selected) setInternalInputValue(selected.label);
|
|
1435
|
+
} else setInternalInputValue('');
|
|
1436
|
+
}, [
|
|
1437
|
+
selectedKey,
|
|
1438
|
+
items
|
|
1439
|
+
]);
|
|
1440
|
+
// Use controlled inputValue if provided, otherwise use internal state
|
|
1441
|
+
const effectiveInputValue = controlledInputValue !== undefined ? controlledInputValue : internalInputValue;
|
|
1442
|
+
const effectiveOnInputChange = controlledOnInputChange !== undefined ? controlledOnInputChange : setInternalInputValue;
|
|
1430
1443
|
return (0, $3A86U$jsxs)((0, $3A86U$ComboBox), {
|
|
1431
1444
|
className: $d6f6f2bb59cbf8cf$var$comboBoxContainerStyles,
|
|
1432
|
-
inputValue:
|
|
1433
|
-
onInputChange:
|
|
1445
|
+
inputValue: effectiveInputValue,
|
|
1446
|
+
onInputChange: effectiveOnInputChange,
|
|
1434
1447
|
selectedKey: selectedKey,
|
|
1435
1448
|
onSelectionChange: onSelectionChange,
|
|
1436
1449
|
isDisabled: isDisabled,
|
|
@@ -2857,7 +2870,6 @@ $parcel$export($b9dc9736b0835428$exports, "I18nProvider", () => $e4a23425e1acf54
|
|
|
2857
2870
|
$parcel$export($b9dc9736b0835428$exports, "useIntl", () => $e4a23425e1acf543$export$5aebe9a147f4d146);
|
|
2858
2871
|
$parcel$export($b9dc9736b0835428$exports, "FilterProvider", () => $5035dda096f080f5$export$66b627500eff8faa);
|
|
2859
2872
|
$parcel$export($b9dc9736b0835428$exports, "useFilters", () => $5035dda096f080f5$export$973ca22476b0e05f);
|
|
2860
|
-
$parcel$export($b9dc9736b0835428$exports, "AxeDevTools", () => $cc88703bd59b1580$export$dad69b6e16969c68);
|
|
2861
2873
|
// Contexts & Providers
|
|
2862
2874
|
|
|
2863
2875
|
|
|
@@ -2964,29 +2976,6 @@ function $5035dda096f080f5$export$973ca22476b0e05f() {
|
|
|
2964
2976
|
|
|
2965
2977
|
|
|
2966
2978
|
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
function $cc88703bd59b1580$export$dad69b6e16969c68() {
|
|
2970
|
-
(0, $3A86U$useEffect)(()=>{
|
|
2971
|
-
// Only run in local development (not in production or Vercel deployments)
|
|
2972
|
-
const isLocalDev = typeof window !== 'undefined' && window.location.hostname === 'localhost';
|
|
2973
|
-
if (isLocalDev && process.env.NODE_ENV !== 'production') // Dynamic imports to avoid SSR issues
|
|
2974
|
-
Promise.all([
|
|
2975
|
-
$3A86U$react,
|
|
2976
|
-
$3A86U$reactdom,
|
|
2977
|
-
$3A86U$axecorereact
|
|
2978
|
-
]).then(([React, ReactDOM, axe])=>{
|
|
2979
|
-
axe.default(React.default || React, ReactDOM.default || ReactDOM, 1000, {});
|
|
2980
|
-
}).catch((err)=>{
|
|
2981
|
-
console.warn('Failed to load axe-core:', err);
|
|
2982
|
-
});
|
|
2983
|
-
}, []);
|
|
2984
|
-
return null;
|
|
2985
|
-
}
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
2979
|
var $5cabf87c599fa41c$exports = {};
|
|
2991
2980
|
// Hooks
|
|
2992
2981
|
var $63f988b4583af0b2$exports = {};
|
|
@@ -3185,5 +3174,5 @@ $parcel$exportWildcard($be9c1f6b736f678e$exports, $2c570e2bb65234ea$exports);
|
|
|
3185
3174
|
|
|
3186
3175
|
|
|
3187
3176
|
|
|
3188
|
-
export {$a6c6e9de70b2177d$export$de466dd8317b0b75 as AlertDialog, $a6c6e9de70b2177d$export$a551a871839880f9 as PromptDialog, $f156c2ac5fd12c51$export$2f2b9559550c7bbc as Autocomplete, $07375c4c274a5e99$export$5f8b5a1eceff31bd as AutocompleteTable, $038bc2c2a6874c27$export$5525762649f7bdac as AvatarButton, $e2023e6e190b3690$export$37acb3580601e69a as Badge, $4aac1ae7c2a46df4$export$353f5b6fc5456de1 as Button, $35fcc32020885daa$export$48513f6b9f8ce62d as Checkbox, $07aaa6869c77f679$export$de65de8213222d10 as CloseButton, $d6f6f2bb59cbf8cf$export$72b9695b8216309a as ComboBox, $5ddfe94eba6154eb$export$944aceb4f8c89f10 as DisclosureGroup, $a7c96df248e47957$export$221f31a87e5a826c as FilterTabs, $e6c4d3d9e51c440a$export$d1328f67a56fa517 as LabeledValue, $7e3a08a0d5ffc4c6$export$a6c7ac8248d6e38a as Link, $9317e67b0b0534b2$export$d9b273488cd8ce6f as Menu, $3b45ce15fb15c24d$export$ace2b65713be14d8 as PasswordStrength, $61479464bb5fd0ad$export$c17561cb55d4db30 as ProgressBar, $4f3552ad992cebcc$export$a98f0dcb43a68a25 as RadioGroup, $9260936bb33ab2d4$export$b94867ecbd698f21 as SearchField, $dc7b7ce521817383$export$668709c620d0b8e2 as SegmentedControl, $4c94f3494e92f172$export$ef9b1a59e592288f as Select, $c7af66d6eab82960$export$b5cddb1a6bf990a0 as StatCard, $b32787d33db6deae$export$b5d5cf8927ab7262 as Switch, $8fd64f6a3d6adad1$export$54ec01a60f47d33d as Table, $73303ac6ce50c127$export$b2539bed5023c21c as Tabs, $73303ac6ce50c127$export$e51a686c67fdaa2d as TabList, $73303ac6ce50c127$export$3e41faf802a29e71 as Tab, $73303ac6ce50c127$export$3d96ec278d3efce4 as TabPanel, $db470a4073e4639a$export$f5c9f3c2c4054eec as TextArea, $f62becf1f473d668$export$2c73285ae9390cec as TextField, $14dac782240849bf$export$d8964aec282183a3 as ThemeProvider, $14dac782240849bf$export$93d4e7f90805808f as useTheme, $e4a23425e1acf543$export$a54013f0d02a8f82 as I18nProvider, $e4a23425e1acf543$export$5aebe9a147f4d146 as useIntl, $5035dda096f080f5$export$66b627500eff8faa as FilterProvider, $5035dda096f080f5$export$973ca22476b0e05f as useFilters, $
|
|
3177
|
+
export {$a6c6e9de70b2177d$export$de466dd8317b0b75 as AlertDialog, $a6c6e9de70b2177d$export$a551a871839880f9 as PromptDialog, $f156c2ac5fd12c51$export$2f2b9559550c7bbc as Autocomplete, $07375c4c274a5e99$export$5f8b5a1eceff31bd as AutocompleteTable, $038bc2c2a6874c27$export$5525762649f7bdac as AvatarButton, $e2023e6e190b3690$export$37acb3580601e69a as Badge, $4aac1ae7c2a46df4$export$353f5b6fc5456de1 as Button, $35fcc32020885daa$export$48513f6b9f8ce62d as Checkbox, $07aaa6869c77f679$export$de65de8213222d10 as CloseButton, $d6f6f2bb59cbf8cf$export$72b9695b8216309a as ComboBox, $5ddfe94eba6154eb$export$944aceb4f8c89f10 as DisclosureGroup, $a7c96df248e47957$export$221f31a87e5a826c as FilterTabs, $e6c4d3d9e51c440a$export$d1328f67a56fa517 as LabeledValue, $7e3a08a0d5ffc4c6$export$a6c7ac8248d6e38a as Link, $9317e67b0b0534b2$export$d9b273488cd8ce6f as Menu, $3b45ce15fb15c24d$export$ace2b65713be14d8 as PasswordStrength, $61479464bb5fd0ad$export$c17561cb55d4db30 as ProgressBar, $4f3552ad992cebcc$export$a98f0dcb43a68a25 as RadioGroup, $9260936bb33ab2d4$export$b94867ecbd698f21 as SearchField, $dc7b7ce521817383$export$668709c620d0b8e2 as SegmentedControl, $4c94f3494e92f172$export$ef9b1a59e592288f as Select, $c7af66d6eab82960$export$b5cddb1a6bf990a0 as StatCard, $b32787d33db6deae$export$b5d5cf8927ab7262 as Switch, $8fd64f6a3d6adad1$export$54ec01a60f47d33d as Table, $73303ac6ce50c127$export$b2539bed5023c21c as Tabs, $73303ac6ce50c127$export$e51a686c67fdaa2d as TabList, $73303ac6ce50c127$export$3e41faf802a29e71 as Tab, $73303ac6ce50c127$export$3d96ec278d3efce4 as TabPanel, $db470a4073e4639a$export$f5c9f3c2c4054eec as TextArea, $f62becf1f473d668$export$2c73285ae9390cec as TextField, $14dac782240849bf$export$d8964aec282183a3 as ThemeProvider, $14dac782240849bf$export$93d4e7f90805808f as useTheme, $e4a23425e1acf543$export$a54013f0d02a8f82 as I18nProvider, $e4a23425e1acf543$export$5aebe9a147f4d146 as useIntl, $5035dda096f080f5$export$66b627500eff8faa as FilterProvider, $5035dda096f080f5$export$973ca22476b0e05f as useFilters, $63f988b4583af0b2$export$42d0f19526e5d9da as DEFAULT_FILTERS, $63f988b4583af0b2$export$a15c90bdf31a4ff3 as hasActiveFilters, $63f988b4583af0b2$export$d0e6b6bfede2a57 as clearFilters, $63f988b4583af0b2$export$fa59a93dacecf201 as updateFilter, $63f988b4583af0b2$export$5d7f9913734d3d5f as filtersToQueryParams, $4ae0d6a0ccb53610$export$457d6d213bf79459 as textFieldInputStyles, $b413b04534c20d7d$export$2514cbae0d5c71c5 as getCategoryColors, $0e62a2c35fb1f646$export$644d8ea042df96a6 as api, $20eaf1306ff19a16$export$4e09c449d6c407f7 as isBrowser, $20eaf1306ff19a16$export$62858bae88b53fd0 as isDocument, $20eaf1306ff19a16$export$7dd80fbc14cd23b1 as safeWindow, $20eaf1306ff19a16$export$9aee702616bdf23c as safeDocument, $20eaf1306ff19a16$export$2aa78e70b3d79ddc as safeLocalStorage};
|
|
3189
3178
|
//# sourceMappingURL=module.mjs.map
|