fermmap-shared 0.1.4 → 0.1.6
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/README.md +1 -1
- package/dist/main.cjs +7 -8
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +9 -10
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
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 $
|
|
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";
|
|
@@ -1145,7 +1145,6 @@ function $e2023e6e190b3690$export$37acb3580601e69a({ variant: variant, children:
|
|
|
1145
1145
|
|
|
1146
1146
|
|
|
1147
1147
|
|
|
1148
|
-
'use client';
|
|
1149
1148
|
const $e4a23425e1acf543$var$I18nContext = /*#__PURE__*/ (0, $3A86U$createContext)(undefined);
|
|
1150
1149
|
function $e4a23425e1acf543$export$a54013f0d02a8f82({ children: children, messages: messages }) {
|
|
1151
1150
|
// For MVP, we'll start with just English
|
|
@@ -1176,6 +1175,9 @@ function $e4a23425e1acf543$export$3f3caade1c12f8c9() {
|
|
|
1176
1175
|
if (context === undefined) throw new Error('useI18n must be used within an I18nProvider');
|
|
1177
1176
|
return context;
|
|
1178
1177
|
}
|
|
1178
|
+
function $e4a23425e1acf543$export$5aebe9a147f4d146() {
|
|
1179
|
+
return (0, $3A86U$useIntl)();
|
|
1180
|
+
}
|
|
1179
1181
|
|
|
1180
1182
|
|
|
1181
1183
|
const $07aaa6869c77f679$var$closeButtonStyles = function anonymous(props) {
|
|
@@ -1204,7 +1206,7 @@ const $07aaa6869c77f679$var$closeButtonStyles = function anonymous(props) {
|
|
|
1204
1206
|
return rules;
|
|
1205
1207
|
};
|
|
1206
1208
|
const $07aaa6869c77f679$export$de65de8213222d10 = ({ onClose: onClose, ...props })=>{
|
|
1207
|
-
const intl = (0, $e4a23425e1acf543$
|
|
1209
|
+
const intl = (0, $e4a23425e1acf543$export$5aebe9a147f4d146)();
|
|
1208
1210
|
return (0, $3A86U$jsx)((0, $3A86U$Button), {
|
|
1209
1211
|
...props,
|
|
1210
1212
|
onPress: onClose,
|
|
@@ -1587,7 +1589,7 @@ const $a7c96df248e47957$var$selectionIndicatorStyles = function anonymous(props)
|
|
|
1587
1589
|
return rules;
|
|
1588
1590
|
};
|
|
1589
1591
|
function $a7c96df248e47957$export$221f31a87e5a826c({ value: value, onChange: onChange, options: options, ariaLabel: ariaLabel }) {
|
|
1590
|
-
const intl = (0, $e4a23425e1acf543$
|
|
1592
|
+
const intl = (0, $e4a23425e1acf543$export$5aebe9a147f4d146)();
|
|
1591
1593
|
return (0, $3A86U$jsx)((0, $3A86U$ToggleButtonGroup), {
|
|
1592
1594
|
selectionMode: "single",
|
|
1593
1595
|
selectedKeys: new Set([
|
|
@@ -2048,7 +2050,7 @@ const $dc7b7ce521817383$var$selectionIndicatorStyles = function anonymous(props)
|
|
|
2048
2050
|
return rules;
|
|
2049
2051
|
};
|
|
2050
2052
|
function $dc7b7ce521817383$export$668709c620d0b8e2({ value: value }) {
|
|
2051
|
-
const intl = (0, $e4a23425e1acf543$
|
|
2053
|
+
const intl = (0, $e4a23425e1acf543$export$5aebe9a147f4d146)();
|
|
2052
2054
|
const router = (0, $3A86U$useRouter)();
|
|
2053
2055
|
const handleSelectionChange = (newValue)=>{
|
|
2054
2056
|
if (newValue === 'map') router.push('/');
|
|
@@ -2565,14 +2567,13 @@ var $b9dc9736b0835428$exports = {};
|
|
|
2565
2567
|
$parcel$export($b9dc9736b0835428$exports, "ThemeProvider", () => $14dac782240849bf$export$d8964aec282183a3);
|
|
2566
2568
|
$parcel$export($b9dc9736b0835428$exports, "useTheme", () => $14dac782240849bf$export$93d4e7f90805808f);
|
|
2567
2569
|
$parcel$export($b9dc9736b0835428$exports, "I18nProvider", () => $e4a23425e1acf543$export$a54013f0d02a8f82);
|
|
2568
|
-
$parcel$export($b9dc9736b0835428$exports, "useIntl", () => $e4a23425e1acf543$
|
|
2570
|
+
$parcel$export($b9dc9736b0835428$exports, "useIntl", () => $e4a23425e1acf543$export$5aebe9a147f4d146);
|
|
2569
2571
|
$parcel$export($b9dc9736b0835428$exports, "FilterProvider", () => $5035dda096f080f5$export$66b627500eff8faa);
|
|
2570
2572
|
$parcel$export($b9dc9736b0835428$exports, "useFilters", () => $5035dda096f080f5$export$973ca22476b0e05f);
|
|
2571
2573
|
$parcel$export($b9dc9736b0835428$exports, "AxeDevTools", () => $cc88703bd59b1580$export$dad69b6e16969c68);
|
|
2572
2574
|
// Contexts & Providers
|
|
2573
2575
|
|
|
2574
2576
|
|
|
2575
|
-
'use client';
|
|
2576
2577
|
const $14dac782240849bf$var$ThemeContext = /*#__PURE__*/ (0, $3A86U$createContext)(undefined);
|
|
2577
2578
|
const $14dac782240849bf$var$THEME_STORAGE_KEY = 'fermmap-theme';
|
|
2578
2579
|
// Get initial theme synchronously to prevent flicker
|
|
@@ -2632,7 +2633,6 @@ function $14dac782240849bf$export$93d4e7f90805808f() {
|
|
|
2632
2633
|
|
|
2633
2634
|
|
|
2634
2635
|
|
|
2635
|
-
'use client';
|
|
2636
2636
|
const $5035dda096f080f5$var$initialFilterState = {
|
|
2637
2637
|
category: null,
|
|
2638
2638
|
country: null,
|
|
@@ -2672,7 +2672,6 @@ function $5035dda096f080f5$export$973ca22476b0e05f() {
|
|
|
2672
2672
|
|
|
2673
2673
|
|
|
2674
2674
|
|
|
2675
|
-
'use client';
|
|
2676
2675
|
|
|
2677
2676
|
function $cc88703bd59b1580$export$dad69b6e16969c68() {
|
|
2678
2677
|
(0, $3A86U$useEffect)(()=>{
|
|
@@ -2879,5 +2878,5 @@ $parcel$exportWildcard($be9c1f6b736f678e$exports, $2c570e2bb65234ea$exports);
|
|
|
2879
2878
|
|
|
2880
2879
|
|
|
2881
2880
|
|
|
2882
|
-
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$
|
|
2881
|
+
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};
|
|
2883
2882
|
//# sourceMappingURL=module.mjs.map
|