fermmap-shared 0.9.1 → 0.9.3

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 CHANGED
@@ -8,6 +8,7 @@ var $fs04y$reactspectrums2iconsCheckmarkCircle = require("@react-spectrum/s2/ico
8
8
  var $fs04y$reactspectrums2iconsCloseCircle = require("@react-spectrum/s2/icons/CloseCircle");
9
9
  var $fs04y$reactspectrums2iconsChevronDown = require("@react-spectrum/s2/icons/ChevronDown");
10
10
  var $fs04y$reactspectrums2iconsChevronRight = require("@react-spectrum/s2/icons/ChevronRight");
11
+ var $fs04y$reactspectrums2iconsExportTo = require("@react-spectrum/s2/icons/ExportTo");
11
12
  var $fs04y$reactspectrums2iconsClose = require("@react-spectrum/s2/icons/Close");
12
13
  var $fs04y$nextnavigation = require("next/navigation");
13
14
  var $fs04y$reactspectrums2iconsGlobeGrid = require("@react-spectrum/s2/icons/GlobeGrid");
@@ -1641,7 +1642,6 @@ function $e0bb5e496bf3f32a$export$a6c7ac8248d6e38a({ children: children, href: h
1641
1642
  }
1642
1643
 
1643
1644
 
1644
- 'use client';
1645
1645
  const $93232b8350e1cfa9$var$bannerStyles = " _Pb12 _lr12 _Er12 _Rr12 gpxXPsb12 px12 Tf12 Qf12 Sf12 Soh12 Rf12 Roh12 _nLeasBb12 _9unpurc12 sd12 _ta12 _toc12 ee12 eob12 _Ce12 Ul12 ql12";
1646
1646
  const $93232b8350e1cfa9$var$messageStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 pLYrGTd12 Jy12 Gy12 Iy12 Hy12 _ub12";
1647
1647
  const $93232b8350e1cfa9$var$actionsStyles = " sd12 Ue12 qe12 eb12 _va12 _wb12";
@@ -2355,6 +2355,7 @@ function $0febc43943e0acfb$export$29d11c0fe2fc51d8({ variant: variant = 'primary
2355
2355
 
2356
2356
 
2357
2357
 
2358
+
2358
2359
  const $0c771dca8e0e8649$var$menuStyles = " gLYrGTd12 oc12 nc12 kc12 jc12 _kb12 hb12 mb12 lb12 _jf12 iWK72ub12 _nLeasBb12 Tp12 Qp12 Sp12 Rp12 Ng12";
2359
2360
  const $0c771dca8e0e8649$var$menuItemStyles = function anonymous(props) {
2360
2361
  let rules = " ";
@@ -2393,10 +2394,12 @@ const $0c771dca8e0e8649$var$menuItemStyles = function anonymous(props) {
2393
2394
  if (props.isFocused) rules += ' gG3O2ub12';
2394
2395
  else if (props.isHovered) rules += ' gG3O2ub12';
2395
2396
  else rules += ' g912';
2397
+ rules += ' _Xa12';
2396
2398
  rules += ' ry12';
2397
2399
  return rules;
2398
2400
  };
2399
2401
  const $0c771dca8e0e8649$var$dividerStyles = " FesY7Od12 gWK72ub12 Js12 Gs12";
2402
+ const $0c771dca8e0e8649$var$linkOutStyles = " sh12 eb12 IM12";
2400
2403
  function $0c771dca8e0e8649$export$d9b273488cd8ce6f({ trigger: trigger, items: items, placement: placement = 'bottom end', 'aria-label': ariaLabel }) {
2401
2404
  return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.MenuTrigger), {
2402
2405
  children: [
@@ -2406,15 +2409,26 @@ function $0c771dca8e0e8649$export$d9b273488cd8ce6f({ trigger: trigger, items: it
2406
2409
  children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Menu), {
2407
2410
  className: $0c771dca8e0e8649$var$menuStyles,
2408
2411
  "aria-label": ariaLabel,
2409
- children: items.map((item, index)=>item.id === 'divider' ? (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Separator), {
2412
+ children: items.map((item, index)=>item.id.startsWith('divider') ? (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Separator), {
2410
2413
  className: $0c771dca8e0e8649$var$dividerStyles
2411
2414
  }, `divider-${index}`) : (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.MenuItem), {
2412
2415
  id: item.id,
2416
+ href: item.href,
2417
+ target: item.href ? '_blank' : undefined,
2418
+ rel: item.href ? 'noopener noreferrer' : undefined,
2413
2419
  onAction: item.onAction,
2414
- className: $0c771dca8e0e8649$var$menuItemStyles,
2420
+ className: $0c771dca8e0e8649$var$menuItemStyles({
2421
+ ishref: !!item.href
2422
+ }),
2415
2423
  children: [
2416
2424
  item.icon,
2417
- item.label
2425
+ item.label,
2426
+ item.href && (0, $fs04y$reactjsxruntime.jsx)("span", {
2427
+ className: $0c771dca8e0e8649$var$linkOutStyles,
2428
+ children: (0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsExportTo))), {
2429
+ styles: " Zu12 Ft12"
2430
+ })
2431
+ })
2418
2432
  ]
2419
2433
  }, item.id))
2420
2434
  })
@@ -4071,7 +4085,8 @@ function $3a1d0d18027ba81c$export$93d4e7f90805808f() {
4071
4085
  const $8f5795e91d23efab$var$initialFilterState = {
4072
4086
  category: null,
4073
4087
  country: null,
4074
- searchQuery: ''
4088
+ searchQuery: '',
4089
+ letterFilter: null
4075
4090
  };
4076
4091
  const $8f5795e91d23efab$var$FilterContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
4077
4092
  function $8f5795e91d23efab$export$66b627500eff8faa({ children: children }) {