fermmap-shared 0.1.5 → 0.1.7

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/module.mjs CHANGED
@@ -5,7 +5,7 @@ import $3A86U$react, {useState as $3A86U$useState, useMemo as $3A86U$useMemo, us
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";
8
- import {IntlProvider as $3A86U$IntlProvider, useIntl as $e4a23425e1acf543$re_export$useIntl} from "react-intl";
8
+ import {IntlProvider as $3A86U$IntlProvider, useIntl as $3A86U$useIntl} from "react-intl";
9
9
  import $3A86U$reactspectrums2iconsChevronDown from "@react-spectrum/s2/icons/ChevronDown";
10
10
  import $3A86U$reactspectrums2iconsChevronRight from "@react-spectrum/s2/icons/ChevronRight";
11
11
  import $3A86U$reactspectrums2iconsClose from "@react-spectrum/s2/icons/Close";
@@ -1175,6 +1175,9 @@ function $e4a23425e1acf543$export$3f3caade1c12f8c9() {
1175
1175
  if (context === undefined) throw new Error('useI18n must be used within an I18nProvider');
1176
1176
  return context;
1177
1177
  }
1178
+ function $e4a23425e1acf543$export$5aebe9a147f4d146() {
1179
+ return (0, $3A86U$useIntl)();
1180
+ }
1178
1181
 
1179
1182
 
1180
1183
  const $07aaa6869c77f679$var$closeButtonStyles = function anonymous(props) {
@@ -1203,7 +1206,7 @@ const $07aaa6869c77f679$var$closeButtonStyles = function anonymous(props) {
1203
1206
  return rules;
1204
1207
  };
1205
1208
  const $07aaa6869c77f679$export$de65de8213222d10 = ({ onClose: onClose, ...props })=>{
1206
- const intl = (0, $e4a23425e1acf543$re_export$useIntl)();
1209
+ const intl = (0, $e4a23425e1acf543$export$5aebe9a147f4d146)();
1207
1210
  return (0, $3A86U$jsx)((0, $3A86U$Button), {
1208
1211
  ...props,
1209
1212
  onPress: onClose,
@@ -1586,7 +1589,7 @@ const $a7c96df248e47957$var$selectionIndicatorStyles = function anonymous(props)
1586
1589
  return rules;
1587
1590
  };
1588
1591
  function $a7c96df248e47957$export$221f31a87e5a826c({ value: value, onChange: onChange, options: options, ariaLabel: ariaLabel }) {
1589
- const intl = (0, $e4a23425e1acf543$re_export$useIntl)();
1592
+ const intl = (0, $e4a23425e1acf543$export$5aebe9a147f4d146)();
1590
1593
  return (0, $3A86U$jsx)((0, $3A86U$ToggleButtonGroup), {
1591
1594
  selectionMode: "single",
1592
1595
  selectedKeys: new Set([
@@ -2047,7 +2050,7 @@ const $dc7b7ce521817383$var$selectionIndicatorStyles = function anonymous(props)
2047
2050
  return rules;
2048
2051
  };
2049
2052
  function $dc7b7ce521817383$export$668709c620d0b8e2({ value: value }) {
2050
- const intl = (0, $e4a23425e1acf543$re_export$useIntl)();
2053
+ const intl = (0, $e4a23425e1acf543$export$5aebe9a147f4d146)();
2051
2054
  const router = (0, $3A86U$useRouter)();
2052
2055
  const handleSelectionChange = (newValue)=>{
2053
2056
  if (newValue === 'map') router.push('/');
@@ -2523,6 +2526,7 @@ function $db470a4073e4639a$export$f5c9f3c2c4054eec({ label: label, error: error,
2523
2526
  const textareaRef = (0, $3A86U$useRef)(null);
2524
2527
  // Auto-grow on value change
2525
2528
  (0, $3A86U$useEffect)(()=>{
2529
+ if (typeof window === 'undefined') return;
2526
2530
  const textarea = textareaRef.current;
2527
2531
  if (!textarea) return;
2528
2532
  // Reset height to recalculate
@@ -2564,7 +2568,7 @@ var $b9dc9736b0835428$exports = {};
2564
2568
  $parcel$export($b9dc9736b0835428$exports, "ThemeProvider", () => $14dac782240849bf$export$d8964aec282183a3);
2565
2569
  $parcel$export($b9dc9736b0835428$exports, "useTheme", () => $14dac782240849bf$export$93d4e7f90805808f);
2566
2570
  $parcel$export($b9dc9736b0835428$exports, "I18nProvider", () => $e4a23425e1acf543$export$a54013f0d02a8f82);
2567
- $parcel$export($b9dc9736b0835428$exports, "useIntl", () => $e4a23425e1acf543$re_export$useIntl);
2571
+ $parcel$export($b9dc9736b0835428$exports, "useIntl", () => $e4a23425e1acf543$export$5aebe9a147f4d146);
2568
2572
  $parcel$export($b9dc9736b0835428$exports, "FilterProvider", () => $5035dda096f080f5$export$66b627500eff8faa);
2569
2573
  $parcel$export($b9dc9736b0835428$exports, "useFilters", () => $5035dda096f080f5$export$973ca22476b0e05f);
2570
2574
  $parcel$export($b9dc9736b0835428$exports, "AxeDevTools", () => $cc88703bd59b1580$export$dad69b6e16969c68);
@@ -2576,14 +2580,19 @@ const $14dac782240849bf$var$THEME_STORAGE_KEY = 'fermmap-theme';
2576
2580
  // Get initial theme synchronously to prevent flicker
2577
2581
  function $14dac782240849bf$var$getInitialTheme() {
2578
2582
  if (typeof window === 'undefined') return 'light';
2579
- // First check if blocking script already set the attribute
2580
- const htmlAttribute = document.documentElement.getAttribute('data-color-scheme');
2581
- if (htmlAttribute && (htmlAttribute === 'light' || htmlAttribute === 'dark')) return htmlAttribute;
2582
- // Fallback to localStorage
2583
- const stored = localStorage.getItem($14dac782240849bf$var$THEME_STORAGE_KEY);
2584
- if (stored && (stored === 'light' || stored === 'dark')) return stored;
2585
- // Final fallback to system preference
2586
- return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
2583
+ try {
2584
+ // First check if blocking script already set the attribute
2585
+ const htmlAttribute = document.documentElement.getAttribute('data-color-scheme');
2586
+ if (htmlAttribute && (htmlAttribute === 'light' || htmlAttribute === 'dark')) return htmlAttribute;
2587
+ // Fallback to localStorage
2588
+ const stored = localStorage.getItem($14dac782240849bf$var$THEME_STORAGE_KEY);
2589
+ if (stored && (stored === 'light' || stored === 'dark')) return stored;
2590
+ // Final fallback to system preference
2591
+ return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
2592
+ } catch {
2593
+ // Fallback if any browser API fails
2594
+ return 'light';
2595
+ }
2587
2596
  }
2588
2597
  function $14dac782240849bf$export$d8964aec282183a3({ children: children }) {
2589
2598
  // Initialize with a function to avoid SSR issues
@@ -2875,5 +2884,5 @@ $parcel$exportWildcard($be9c1f6b736f678e$exports, $2c570e2bb65234ea$exports);
2875
2884
 
2876
2885
 
2877
2886
 
2878
- export {$a6c6e9de70b2177d$export$de466dd8317b0b75 as AlertDialog, $a6c6e9de70b2177d$export$a551a871839880f9 as PromptDialog, $f156c2ac5fd12c51$export$2f2b9559550c7bbc as Autocomplete, $07375c4c274a5e99$export$5f8b5a1eceff31bd as AutocompleteTable, $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, $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$re_export$useIntl as useIntl, $5035dda096f080f5$export$66b627500eff8faa as FilterProvider, $5035dda096f080f5$export$973ca22476b0e05f as useFilters, $cc88703bd59b1580$export$dad69b6e16969c68 as AxeDevTools, $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};
2887
+ export {$a6c6e9de70b2177d$export$de466dd8317b0b75 as AlertDialog, $a6c6e9de70b2177d$export$a551a871839880f9 as PromptDialog, $f156c2ac5fd12c51$export$2f2b9559550c7bbc as Autocomplete, $07375c4c274a5e99$export$5f8b5a1eceff31bd as AutocompleteTable, $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, $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, $cc88703bd59b1580$export$dad69b6e16969c68 as AxeDevTools, $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};
2879
2888
  //# sourceMappingURL=module.mjs.map