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/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
This package contains a collection of accessible,
|
|
7
|
+
This package contains a collection of accessible, themeed React components designed for the FermMap application. All components are built on top of React Aria Components for accessibility and use React Spectrum S2 style-macros for consistent, type-safe atomic styling.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/dist/main.cjs
CHANGED
|
@@ -1149,7 +1149,6 @@ function $5f63bea78c5270d1$export$37acb3580601e69a({ variant: variant, children:
|
|
|
1149
1149
|
|
|
1150
1150
|
|
|
1151
1151
|
|
|
1152
|
-
'use client';
|
|
1153
1152
|
const $25d82f0a3d474ebc$var$I18nContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
|
|
1154
1153
|
function $25d82f0a3d474ebc$export$a54013f0d02a8f82({ children: children, messages: messages }) {
|
|
1155
1154
|
// For MVP, we'll start with just English
|
|
@@ -1180,6 +1179,9 @@ function $25d82f0a3d474ebc$export$3f3caade1c12f8c9() {
|
|
|
1180
1179
|
if (context === undefined) throw new Error('useI18n must be used within an I18nProvider');
|
|
1181
1180
|
return context;
|
|
1182
1181
|
}
|
|
1182
|
+
function $25d82f0a3d474ebc$export$5aebe9a147f4d146() {
|
|
1183
|
+
return (0, $fs04y$reactintl.useIntl)();
|
|
1184
|
+
}
|
|
1183
1185
|
|
|
1184
1186
|
|
|
1185
1187
|
const $5a568b5eb65bfe76$var$closeButtonStyles = function anonymous(props) {
|
|
@@ -1208,7 +1210,7 @@ const $5a568b5eb65bfe76$var$closeButtonStyles = function anonymous(props) {
|
|
|
1208
1210
|
return rules;
|
|
1209
1211
|
};
|
|
1210
1212
|
const $5a568b5eb65bfe76$export$de65de8213222d10 = ({ onClose: onClose, ...props })=>{
|
|
1211
|
-
const intl = (0, $25d82f0a3d474ebc$
|
|
1213
|
+
const intl = (0, $25d82f0a3d474ebc$export$5aebe9a147f4d146)();
|
|
1212
1214
|
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Button), {
|
|
1213
1215
|
...props,
|
|
1214
1216
|
onPress: onClose,
|
|
@@ -1591,7 +1593,7 @@ const $75461c19e6a33bc7$var$selectionIndicatorStyles = function anonymous(props)
|
|
|
1591
1593
|
return rules;
|
|
1592
1594
|
};
|
|
1593
1595
|
function $75461c19e6a33bc7$export$221f31a87e5a826c({ value: value, onChange: onChange, options: options, ariaLabel: ariaLabel }) {
|
|
1594
|
-
const intl = (0, $25d82f0a3d474ebc$
|
|
1596
|
+
const intl = (0, $25d82f0a3d474ebc$export$5aebe9a147f4d146)();
|
|
1595
1597
|
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ToggleButtonGroup), {
|
|
1596
1598
|
selectionMode: "single",
|
|
1597
1599
|
selectedKeys: new Set([
|
|
@@ -2052,7 +2054,7 @@ const $7272752e0b828205$var$selectionIndicatorStyles = function anonymous(props)
|
|
|
2052
2054
|
return rules;
|
|
2053
2055
|
};
|
|
2054
2056
|
function $7272752e0b828205$export$668709c620d0b8e2({ value: value }) {
|
|
2055
|
-
const intl = (0, $25d82f0a3d474ebc$
|
|
2057
|
+
const intl = (0, $25d82f0a3d474ebc$export$5aebe9a147f4d146)();
|
|
2056
2058
|
const router = (0, $fs04y$nextnavigation.useRouter)();
|
|
2057
2059
|
const handleSelectionChange = (newValue)=>{
|
|
2058
2060
|
if (newValue === 'map') router.push('/');
|
|
@@ -2569,14 +2571,13 @@ var $885bdde2b07b7632$exports = {};
|
|
|
2569
2571
|
$parcel$export($885bdde2b07b7632$exports, "ThemeProvider", () => $3a1d0d18027ba81c$export$d8964aec282183a3);
|
|
2570
2572
|
$parcel$export($885bdde2b07b7632$exports, "useTheme", () => $3a1d0d18027ba81c$export$93d4e7f90805808f);
|
|
2571
2573
|
$parcel$export($885bdde2b07b7632$exports, "I18nProvider", () => $25d82f0a3d474ebc$export$a54013f0d02a8f82);
|
|
2572
|
-
$parcel$export($885bdde2b07b7632$exports, "useIntl", () => $25d82f0a3d474ebc$
|
|
2574
|
+
$parcel$export($885bdde2b07b7632$exports, "useIntl", () => $25d82f0a3d474ebc$export$5aebe9a147f4d146);
|
|
2573
2575
|
$parcel$export($885bdde2b07b7632$exports, "FilterProvider", () => $8f5795e91d23efab$export$66b627500eff8faa);
|
|
2574
2576
|
$parcel$export($885bdde2b07b7632$exports, "useFilters", () => $8f5795e91d23efab$export$973ca22476b0e05f);
|
|
2575
2577
|
$parcel$export($885bdde2b07b7632$exports, "AxeDevTools", () => $ac6c22366fad60ff$export$dad69b6e16969c68);
|
|
2576
2578
|
// Contexts & Providers
|
|
2577
2579
|
|
|
2578
2580
|
|
|
2579
|
-
'use client';
|
|
2580
2581
|
const $3a1d0d18027ba81c$var$ThemeContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
|
|
2581
2582
|
const $3a1d0d18027ba81c$var$THEME_STORAGE_KEY = 'fermmap-theme';
|
|
2582
2583
|
// Get initial theme synchronously to prevent flicker
|
|
@@ -2636,7 +2637,6 @@ function $3a1d0d18027ba81c$export$93d4e7f90805808f() {
|
|
|
2636
2637
|
|
|
2637
2638
|
|
|
2638
2639
|
|
|
2639
|
-
'use client';
|
|
2640
2640
|
const $8f5795e91d23efab$var$initialFilterState = {
|
|
2641
2641
|
category: null,
|
|
2642
2642
|
country: null,
|
|
@@ -2676,7 +2676,6 @@ function $8f5795e91d23efab$export$973ca22476b0e05f() {
|
|
|
2676
2676
|
|
|
2677
2677
|
|
|
2678
2678
|
|
|
2679
|
-
'use client';
|
|
2680
2679
|
|
|
2681
2680
|
function $ac6c22366fad60ff$export$dad69b6e16969c68() {
|
|
2682
2681
|
(0, $fs04y$react.useEffect)(()=>{
|