@datatechsolutions/ui 2.7.140 → 2.8.1
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/chunk-3GDQP6AS.mjs +15 -0
- package/dist/chunk-3GDQP6AS.mjs.map +1 -0
- package/dist/{chunk-27M5YIVF.js → chunk-5AXMHSXY.js} +112 -136
- package/dist/chunk-5AXMHSXY.js.map +1 -0
- package/dist/{chunk-SCGWR7XZ.mjs → chunk-5UH7FKFC.mjs} +3589 -325
- package/dist/chunk-5UH7FKFC.mjs.map +1 -0
- package/dist/chunk-7VJ7CMMT.mjs +96 -0
- package/dist/chunk-7VJ7CMMT.mjs.map +1 -0
- package/dist/{chunk-WXI7OCNY.js → chunk-FJLCYEFL.js} +3866 -603
- package/dist/chunk-FJLCYEFL.js.map +1 -0
- package/dist/{chunk-7VN2V7CT.mjs → chunk-GMCT3H22.mjs} +17 -37
- package/dist/chunk-GMCT3H22.mjs.map +1 -0
- package/dist/chunk-QWG2FMUN.mjs +60 -0
- package/dist/chunk-QWG2FMUN.mjs.map +1 -0
- package/dist/chunk-S7KHTUHA.js +65 -0
- package/dist/chunk-S7KHTUHA.js.map +1 -0
- package/dist/chunk-VUNV25KB.js +18 -0
- package/dist/chunk-VUNV25KB.js.map +1 -0
- package/dist/chunk-YXN2K77G.js +102 -0
- package/dist/chunk-YXN2K77G.js.map +1 -0
- package/dist/index.d.mts +45 -5
- package/dist/index.d.ts +45 -5
- package/dist/index.js +381 -338
- package/dist/index.mjs +4 -1
- package/dist/lib/i18n-context.d.mts +36 -0
- package/dist/lib/i18n-context.d.ts +36 -0
- package/dist/lib/i18n-context.js +30 -0
- package/dist/lib/i18n-context.js.map +1 -0
- package/dist/lib/i18n-context.mjs +5 -0
- package/dist/lib/i18n-context.mjs.map +1 -0
- package/dist/lib/router-context.d.mts +35 -0
- package/dist/lib/router-context.d.ts +35 -0
- package/dist/lib/router-context.js +26 -0
- package/dist/lib/router-context.js.map +1 -0
- package/dist/lib/router-context.mjs +5 -0
- package/dist/lib/router-context.mjs.map +1 -0
- package/dist/navigation-ANFMVDVW.mjs +2445 -0
- package/dist/navigation-ANFMVDVW.mjs.map +1 -0
- package/dist/navigation-JQ2TJKKI.js +2447 -0
- package/dist/navigation-JQ2TJKKI.js.map +1 -0
- package/dist/{use-haptic-RDQNJYBE.js → use-haptic-2SHBMEY5.js} +3 -2
- package/dist/{use-haptic-RDQNJYBE.js.map → use-haptic-2SHBMEY5.js.map} +1 -1
- package/dist/use-haptic-4UCNQATC.mjs +5 -0
- package/dist/{use-haptic-TCMOLPGA.mjs.map → use-haptic-4UCNQATC.mjs.map} +1 -1
- package/dist/workflow/graph-node.js +1 -0
- package/dist/workflow/graph-node.mjs +1 -0
- package/dist/workflow/index.js +135 -133
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/index.mjs +7 -5
- package/dist/workflow/index.mjs.map +1 -1
- package/dist/workflow/utils.js +1 -0
- package/dist/workflow/utils.mjs +1 -0
- package/dist/workflow/workflow-canvas.js +7 -4
- package/dist/workflow/workflow-canvas.mjs +6 -3
- package/dist/workflow/workflow-preview-canvas.js +1 -1
- package/dist/workflow/workflow-preview-canvas.mjs +1 -1
- package/package.json +12 -4
- package/dist/chunk-27M5YIVF.js.map +0 -1
- package/dist/chunk-7VN2V7CT.mjs.map +0 -1
- package/dist/chunk-SCGWR7XZ.mjs.map +0 -1
- package/dist/chunk-WXI7OCNY.js.map +0 -1
- package/dist/use-haptic-TCMOLPGA.mjs +0 -4
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ActionMenu, ActionSheet, ActiveFilterChips, AnalysisSkeleton, AnimatedNumber, AnimatedTableRow, AppLogo, AppNavigation, AppShell, ArchiveSwipeAction, AuthLayout, Avatar, AvatarButton, BRAZIL_ACCENT_MAP, BRAZIL_MACRO_REGIONS, BRAZIL_MAP_CENTER, BRAZIL_STATE_COORDINATES, BRAZIL_STATE_PALETTES, BR_THEME_CONFIG, BackupCodeGrid, BadRequestPage, Badge, BaseForm, BentoCard, BooleanFlagsPicker, BottomSafeArea, BrandFilterSkeleton, BrandedLoader, Breadcrumb, Button, Card, CardActionMenu, CardContent, CardDescription, CardDivider, CardFooter, CardGridSkeleton, CardHeader, CardSectionHeader, CardTitle, CategoryBadge, CategoryTab, CategoryTabs, ChipPicker, CircularRefreshIndicator, Code, CollapsibleGroupedList, CompactSegmentedControl, ContactCard, ContactSection, Container, ContextMenu, CookieConsent, CopyableId, CountPill, CreateActionButton, DashboardProgressShell, DataPagination, DatePicker, DeleteSwipeAction, Description, DetailsPopover, DevModeBanner, Dialog, DialogActions, DialogBody, DialogDescription, DialogTitle, Divider, Dock, DockContainer, DockSkeleton, DotRefreshIndicator, Dropdown, DropdownButton, DropdownDivider, DropdownItem, DropdownLabel, DropdownMenu, DropdownSelect, DynamicIsland, DynamicIslandConfirm, DynamicIslandNotification, EdgeSwipeIndicator, EdgeSwipeProvider, EditSwipeAction, EmptyState, EntityCard, EntityDrawer, ErrorMessage, ErrorState, ExpandableHistoryList, ExpandingPageIndicator, FUEL_PRICE_LOADER, FavoriteSwipeAction, FeatureCard, FeedItemCard, Field, FieldGroup, Label as FieldLabel, Fieldset, FilterBadge, FilterPill, FilterSectionHeader, FilterTileButton, FloatingActionButton, FlyoutMenu, FlyoutNavGrid, FlyoutQuickActions, ForceTouchMenu, Form, FormActions, FormActionsRow, FormCheckbox, FormField, FormGrid, FormInput, FormPriceInput, FormSection, FormSelect, FormTextarea, FormToggle, GeoMapCanvas, GeoMapLegend, GlassFormModal, GlassModal, GlassModalShell, Gradient, GradientBackground, GrowthIndicator, Heading, HeroPanel, HeroSection, IconButton, InfoPopover, InlineForm, InlineSpinner, Input, InteractiveGeoMap, ItemSummary, KORI_ERP_LOADER, LOCALE_FLAGS, Label, LabeledToggle, LanguageSwitcher, LaunchpadGrid, Lead, Legend, LiquidFilterInput, ListCard, ListCardItem, ListItem, LoadingOverlay, ManagementPageLayout, ManagementSurface, MapZoomControls, MetricCard, MonthPicker, MultiColumnPicker, NavigationProgress, NoDataState, NoResultsState, NotFoundPage, NotificationBadge, NotificationBellButton, NotificationProvider, OfficeCard, OfflineState, OptionGrid, OtpInput, PageEmptyState, PageHeader, PageHeading, PageIndicator, PageLoadingState, PageSectionHeader, Pagination, PasswordInput, PasswordStrengthMeter, Pill, PlatformShell, PlusGrid, PlusGridItem, PlusGridRow, PreferenceSection, PriceChangeBadge, ProfileIdentityCard, Progress, ProgressIndicator, PullToRefreshContainer, PullToRefreshIndicator, RadiantHeading, RadiantStatCard, RadiantSubheading, RegionFilterSkeleton, RoleBadge, SafeArea, SafeAreaSpacer, SafeAreaView, SearchBar, SearchFilterToolbar, SearchInput, SectionCard, SectionHeader, SectionHeaderSkeleton, SegmentedControl, Select, SelectableChipPicker, SelectableListPicker, SelectableOptionsGrid, SelectableTableRow, SelectionCard, ServerErrorPage, SettingsDialog, SettingsModal, Sheet, SkipToContent, SocialLoginButtons, SortableTableHeader, Spinner, Stat, StatCard, StatCardSkeleton, StatusBadge, StatusToggle, StepFormPage, StepNavigationButtons, StepTimeline, Strong, Subheading, SwipeableRow, Switch, Table, TableBody, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, TableSkeleton, TableSkeletonRow, Tabs, TabsContent, TabsList, TabsTrigger, TagBadge, Text, TextLink, Textarea, ThemeSwitch, ThemeToggle, ThemeToggleCompact, TimePicker, ToggleSwitch, TouchTarget, US_ACCENT_MAP, US_MACRO_REGIONS, US_MAP_CENTER, US_STATE_COORDINATES, US_STATE_PALETTES, US_THEME_CONFIG, UserAvatar, UserMobileInfo, WINDSOCK_LOADER, WIRE_LOADER, WheelPicker, WindsockIcon, buildDockActions, buildFlyoutNavItems, buildLaunchpadItems, buttonPress, buttonPressReduced, buttonTap, cardHover, cardHoverReduced, cardPress, createMotionProps, durations, durationsReduced, easings, fadeOnly, fadeScale, filterByPermission, formatCurrency, formatDate, formatPercentage, getBrazilAccent, getBrazilColors, getBrazilFlagUrl, getBrazilGradient, getBrazilHexColor, getBrazilPalette, getStatusColor, getSubdivisionAccent, getSubdivisionColors, getSubdivisionFlagUrl, getSubdivisionGradient, getSubdivisionHexColor, getSubdivisionPalette, getTransition, getUsAccent, getUsColors, getUsFlagUrl, getUsGradient, getUsHexColor, getUsPalette, getVariants, iosColors, isValidBrazilState, isValidSubdivision, isValidUsState, listItem, listItemReduced, notificationBanner, notificationBannerReduced, pageControlDot, prefersReducedMotion, registerSubdivisionTheme, resolveGlassAccentRgb, selectIsAuthenticated, selectShowShellChrome, selectUserInitial, selectUserName, shimmerClass, shimmerWhiteClass, slideDown, slideRight, slideUp, springPresets, springPresetsReduced, staggerContainer, swipeActionThreshold, swipeConstraints, useGeoMapState, useNotifications, usePlatformShellStore, usePullToRefresh } from './chunk-
|
|
2
|
+
export { ActionMenu, ActionSheet, ActiveFilterChips, AnalysisSkeleton, AnimatedNumber, AnimatedTableRow, AppLogo, AppNavigation, AppShell, ArchiveSwipeAction, AuthLayout, Avatar, AvatarButton, BRAZIL_ACCENT_MAP, BRAZIL_MACRO_REGIONS, BRAZIL_MAP_CENTER, BRAZIL_STATE_COORDINATES, BRAZIL_STATE_PALETTES, BR_THEME_CONFIG, BackupCodeGrid, BadRequestPage, Badge, BaseForm, BentoCard, BooleanFlagsPicker, BottomSafeArea, BrandFilterSkeleton, BrandedLoader, Breadcrumb, Button, Card, CardActionMenu, CardContent, CardDescription, CardDivider, CardFooter, CardGridSkeleton, CardHeader, CardSectionHeader, CardTitle, CategoryBadge, CategoryTab, CategoryTabs, ChipPicker, CircularRefreshIndicator, Code, CollapsibleGroupedList, CompactSegmentedControl, ContactCard, ContactSection, Container, ContextMenu, CookieConsent, CopyableId, CountPill, CreateActionButton, DashboardProgressShell, DataPagination, DatePicker, DeleteSwipeAction, Description, DetailsPopover, DevModeBanner, Dialog, DialogActions, DialogBody, DialogDescription, DialogTitle, Divider, Dock, DockContainer, DockSkeleton, DotRefreshIndicator, Dropdown, DropdownButton, DropdownDivider, DropdownItem, DropdownLabel, DropdownMenu, DropdownSelect, DynamicIsland, DynamicIslandConfirm, DynamicIslandNotification, EdgeSwipeIndicator, EdgeSwipeProvider, EditSwipeAction, EmptyState, EntityCard, EntityDrawer, ErrorMessage, ErrorState, ExpandableHistoryList, ExpandingPageIndicator, FUEL_PRICE_LOADER, FavoriteSwipeAction, FeatureCard, FeedItemCard, Field, FieldGroup, Label as FieldLabel, Fieldset, FilterBadge, FilterPill, FilterSectionHeader, FilterTileButton, FloatingActionButton, FlyoutMenu, FlyoutNavGrid, FlyoutQuickActions, ForceTouchMenu, Form, FormActions, FormActionsRow, FormCheckbox, FormField, FormGrid, FormInput, FormPriceInput, FormSection, FormSelect, FormTextarea, FormToggle, GeoMapCanvas, GeoMapLegend, GlassFormModal, GlassModal, GlassModalShell, Gradient, GradientBackground, GrowthIndicator, Heading, HeroPanel, HeroSection, IconButton, ImageUpload, InfoPopover, InlineForm, InlineSpinner, Input, InteractiveGeoMap, ItemSummary, KORI_ERP_LOADER, LOCALE_FLAGS, Label, LabeledToggle, LanguageSwitcher, LaunchpadGrid, Lead, Legend, LiquidFilterInput, ListCard, ListCardItem, ListItem, LoadingOverlay, ManagementPageLayout, ManagementSurface, MapZoomControls, MetricCard, MonthPicker, MultiColumnPicker, NavigationProgress, NoDataState, NoResultsState, NotFoundPage, NotificationBadge, NotificationBellButton, NotificationProvider, OfficeCard, OfflineState, OptionGrid, OtpInput, PageEmptyState, PageHeader, PageHeading, PageIndicator, PageLoadingState, PageSectionHeader, Pagination, PasswordInput, PasswordStrengthMeter, Pill, PlatformShell, PlusGrid, PlusGridItem, PlusGridRow, PreferenceSection, PriceChangeBadge, ProfileIdentityCard, Progress, ProgressIndicator, PullToRefreshContainer, PullToRefreshIndicator, RadiantHeading, RadiantStatCard, RadiantSubheading, RegionFilterSkeleton, RoleBadge, SafeArea, SafeAreaSpacer, SafeAreaView, SearchBar, SearchFilterToolbar, SearchInput, SectionCard, SectionHeader, SectionHeaderSkeleton, SegmentedControl, Select, SelectableChipPicker, SelectableListPicker, SelectableOptionsGrid, SelectableTableRow, SelectionCard, ServerErrorPage, SettingsDialog, SettingsModal, Sheet, SkipToContent, SocialLoginButtons, SortableTableHeader, Spinner, Stat, StatCard, StatCardSkeleton, StatusBadge, StatusToggle, StepFormPage, StepNavigationButtons, StepTimeline, Strong, Subheading, SwipeableRow, Switch, Table, TableBody, TableCell, TableEmptyState, TableHead, TableHeader, TableRow, TableSkeleton, TableSkeletonRow, Tabs, TabsContent, TabsList, TabsTrigger, TagBadge, Text, TextLink, Textarea, ThemeSwitch, ThemeToggle, ThemeToggleCompact, TimePicker, ToggleSwitch, TouchTarget, US_ACCENT_MAP, US_MACRO_REGIONS, US_MAP_CENTER, US_STATE_COORDINATES, US_STATE_PALETTES, US_THEME_CONFIG, UserAvatar, UserMobileInfo, WINDSOCK_LOADER, WIRE_LOADER, WheelPicker, WindsockIcon, buildDockActions, buildFlyoutNavItems, buildLaunchpadItems, buttonPress, buttonPressReduced, buttonTap, cardHover, cardHoverReduced, cardPress, createMotionProps, durations, durationsReduced, easings, fadeOnly, fadeScale, filterByPermission, formatCurrency, formatDate, formatPercentage, getBrazilAccent, getBrazilColors, getBrazilFlagUrl, getBrazilGradient, getBrazilHexColor, getBrazilPalette, getStatusColor, getSubdivisionAccent, getSubdivisionColors, getSubdivisionFlagUrl, getSubdivisionGradient, getSubdivisionHexColor, getSubdivisionPalette, getTransition, getUsAccent, getUsColors, getUsFlagUrl, getUsGradient, getUsHexColor, getUsPalette, getVariants, iosColors, isValidBrazilState, isValidSubdivision, isValidUsState, listItem, listItemReduced, notificationBanner, notificationBannerReduced, pageControlDot, prefersReducedMotion, registerSubdivisionTheme, resolveGlassAccentRgb, selectIsAuthenticated, selectShowShellChrome, selectUserInitial, selectUserName, shimmerClass, shimmerWhiteClass, slideDown, slideRight, slideUp, springPresets, springPresetsReduced, staggerContainer, swipeActionThreshold, swipeConstraints, useGeoMapState, useNotifications, usePlatformShellStore, usePullToRefresh } from './chunk-5UH7FKFC.mjs';
|
|
3
3
|
export { triggerHaptic, useHaptic } from './chunk-D2JF6C3E.mjs';
|
|
4
|
+
export { I18nProvider, createI18nFromMessages, useFormatter, useLocale, useTranslations } from './chunk-7VJ7CMMT.mjs';
|
|
5
|
+
export { RouterProvider, useLink, usePathname, useRouter } from './chunk-QWG2FMUN.mjs';
|
|
6
|
+
import './chunk-3GDQP6AS.mjs';
|
|
4
7
|
//# sourceMappingURL=index.mjs.map
|
|
5
8
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type TranslateFn = ((key: string, params?: Record<string, unknown>) => string) & {
|
|
5
|
+
/** Return the raw (unparsed) value at a given key — useful for arrays/objects in messages */
|
|
6
|
+
raw: (key: string) => unknown;
|
|
7
|
+
};
|
|
8
|
+
interface I18nContextValue {
|
|
9
|
+
translate: (namespace?: string) => TranslateFn;
|
|
10
|
+
locale: string;
|
|
11
|
+
messages?: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
type I18nProviderProps = {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
value: I18nContextValue;
|
|
16
|
+
};
|
|
17
|
+
declare function I18nProvider({ children, value }: I18nProviderProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function useTranslations(namespace?: string): TranslateFn;
|
|
19
|
+
declare function useLocale(): string;
|
|
20
|
+
type I18nFormatter = {
|
|
21
|
+
dateTime: (date: Date, options?: Intl.DateTimeFormatOptions) => string;
|
|
22
|
+
relativeTime: (date: Date, options?: Intl.RelativeTimeFormatOptions) => string;
|
|
23
|
+
number: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
24
|
+
};
|
|
25
|
+
declare function useFormatter(): I18nFormatter;
|
|
26
|
+
/**
|
|
27
|
+
* Create an I18nContextValue from a flat messages object and locale.
|
|
28
|
+
* Messages should be a nested object where keys are namespaces
|
|
29
|
+
* and values are objects of translation key → ICU message string.
|
|
30
|
+
*
|
|
31
|
+
* This performs simple string interpolation with {param} placeholders.
|
|
32
|
+
* For full ICU MessageFormat (plurals, select, etc.), use intl-messageformat.
|
|
33
|
+
*/
|
|
34
|
+
declare function createI18nFromMessages(locale: string, messages: Record<string, unknown>): I18nContextValue;
|
|
35
|
+
|
|
36
|
+
export { type I18nContextValue, type I18nFormatter, I18nProvider, type I18nProviderProps, createI18nFromMessages, useFormatter, useLocale, useTranslations };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type TranslateFn = ((key: string, params?: Record<string, unknown>) => string) & {
|
|
5
|
+
/** Return the raw (unparsed) value at a given key — useful for arrays/objects in messages */
|
|
6
|
+
raw: (key: string) => unknown;
|
|
7
|
+
};
|
|
8
|
+
interface I18nContextValue {
|
|
9
|
+
translate: (namespace?: string) => TranslateFn;
|
|
10
|
+
locale: string;
|
|
11
|
+
messages?: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
type I18nProviderProps = {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
value: I18nContextValue;
|
|
16
|
+
};
|
|
17
|
+
declare function I18nProvider({ children, value }: I18nProviderProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare function useTranslations(namespace?: string): TranslateFn;
|
|
19
|
+
declare function useLocale(): string;
|
|
20
|
+
type I18nFormatter = {
|
|
21
|
+
dateTime: (date: Date, options?: Intl.DateTimeFormatOptions) => string;
|
|
22
|
+
relativeTime: (date: Date, options?: Intl.RelativeTimeFormatOptions) => string;
|
|
23
|
+
number: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
24
|
+
};
|
|
25
|
+
declare function useFormatter(): I18nFormatter;
|
|
26
|
+
/**
|
|
27
|
+
* Create an I18nContextValue from a flat messages object and locale.
|
|
28
|
+
* Messages should be a nested object where keys are namespaces
|
|
29
|
+
* and values are objects of translation key → ICU message string.
|
|
30
|
+
*
|
|
31
|
+
* This performs simple string interpolation with {param} placeholders.
|
|
32
|
+
* For full ICU MessageFormat (plurals, select, etc.), use intl-messageformat.
|
|
33
|
+
*/
|
|
34
|
+
declare function createI18nFromMessages(locale: string, messages: Record<string, unknown>): I18nContextValue;
|
|
35
|
+
|
|
36
|
+
export { type I18nContextValue, type I18nFormatter, I18nProvider, type I18nProviderProps, createI18nFromMessages, useFormatter, useLocale, useTranslations };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var chunkYXN2K77G_js = require('../chunk-YXN2K77G.js');
|
|
5
|
+
require('../chunk-VUNV25KB.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "I18nProvider", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkYXN2K77G_js.I18nProvider; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "createI18nFromMessages", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkYXN2K77G_js.createI18nFromMessages; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "useFormatter", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkYXN2K77G_js.useFormatter; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "useLocale", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkYXN2K77G_js.useLocale; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "useTranslations", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkYXN2K77G_js.useTranslations; }
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=i18n-context.js.map
|
|
30
|
+
//# sourceMappingURL=i18n-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n-context.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"i18n-context.mjs"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, Ref, AnchorHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type LinkProps = {
|
|
5
|
+
href: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
8
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
9
|
+
type LinkComponent = React.FC<LinkProps>;
|
|
10
|
+
interface RouterContextValue {
|
|
11
|
+
pathname: string;
|
|
12
|
+
navigate: (href: string) => void;
|
|
13
|
+
replace: (href: string) => void;
|
|
14
|
+
back: () => void;
|
|
15
|
+
forward: () => void;
|
|
16
|
+
prefetch: (href: string) => void;
|
|
17
|
+
Link: LinkComponent;
|
|
18
|
+
}
|
|
19
|
+
type RouterProviderProps = {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
value: RouterContextValue;
|
|
22
|
+
};
|
|
23
|
+
declare function RouterProvider({ children, value }: RouterProviderProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function useRouter(): {
|
|
25
|
+
push: (href: string) => void;
|
|
26
|
+
replace: (href: string) => void;
|
|
27
|
+
back: () => void;
|
|
28
|
+
forward: () => void;
|
|
29
|
+
refresh: () => void;
|
|
30
|
+
prefetch: (href: string) => void;
|
|
31
|
+
};
|
|
32
|
+
declare function usePathname(): string;
|
|
33
|
+
declare function useLink(): LinkComponent;
|
|
34
|
+
|
|
35
|
+
export { type LinkComponent, type LinkProps, type RouterContextValue, RouterProvider, type RouterProviderProps, useLink, usePathname, useRouter };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, Ref, AnchorHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type LinkProps = {
|
|
5
|
+
href: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
8
|
+
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
|
|
9
|
+
type LinkComponent = React.FC<LinkProps>;
|
|
10
|
+
interface RouterContextValue {
|
|
11
|
+
pathname: string;
|
|
12
|
+
navigate: (href: string) => void;
|
|
13
|
+
replace: (href: string) => void;
|
|
14
|
+
back: () => void;
|
|
15
|
+
forward: () => void;
|
|
16
|
+
prefetch: (href: string) => void;
|
|
17
|
+
Link: LinkComponent;
|
|
18
|
+
}
|
|
19
|
+
type RouterProviderProps = {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
value: RouterContextValue;
|
|
22
|
+
};
|
|
23
|
+
declare function RouterProvider({ children, value }: RouterProviderProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function useRouter(): {
|
|
25
|
+
push: (href: string) => void;
|
|
26
|
+
replace: (href: string) => void;
|
|
27
|
+
back: () => void;
|
|
28
|
+
forward: () => void;
|
|
29
|
+
refresh: () => void;
|
|
30
|
+
prefetch: (href: string) => void;
|
|
31
|
+
};
|
|
32
|
+
declare function usePathname(): string;
|
|
33
|
+
declare function useLink(): LinkComponent;
|
|
34
|
+
|
|
35
|
+
export { type LinkComponent, type LinkProps, type RouterContextValue, RouterProvider, type RouterProviderProps, useLink, usePathname, useRouter };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var chunkS7KHTUHA_js = require('../chunk-S7KHTUHA.js');
|
|
5
|
+
require('../chunk-VUNV25KB.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "RouterProvider", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkS7KHTUHA_js.RouterProvider; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "useLink", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkS7KHTUHA_js.useLink; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "usePathname", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkS7KHTUHA_js.usePathname; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "useRouter", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkS7KHTUHA_js.useRouter; }
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=router-context.js.map
|
|
26
|
+
//# sourceMappingURL=router-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"router-context.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"router-context.mjs"}
|