@datatechsolutions/ui 2.7.139 → 2.8.0

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.
Files changed (62) hide show
  1. package/dist/chunk-3GDQP6AS.mjs +15 -0
  2. package/dist/chunk-3GDQP6AS.mjs.map +1 -0
  3. package/dist/{chunk-AMUPPC66.mjs → chunk-6RXLXX5U.mjs} +17 -37
  4. package/dist/chunk-6RXLXX5U.mjs.map +1 -0
  5. package/dist/chunk-7VJ7CMMT.mjs +96 -0
  6. package/dist/chunk-7VJ7CMMT.mjs.map +1 -0
  7. package/dist/{chunk-JYX3ILSA.js → chunk-HVDLO6TN.js} +4119 -808
  8. package/dist/chunk-HVDLO6TN.js.map +1 -0
  9. package/dist/{chunk-WTPYTOK4.mjs → chunk-NNYNGCT5.mjs} +3845 -534
  10. package/dist/chunk-NNYNGCT5.mjs.map +1 -0
  11. package/dist/chunk-QWG2FMUN.mjs +60 -0
  12. package/dist/chunk-QWG2FMUN.mjs.map +1 -0
  13. package/dist/{chunk-YCIUVIFN.js → chunk-RQMB4Q4G.js} +112 -136
  14. package/dist/chunk-RQMB4Q4G.js.map +1 -0
  15. package/dist/chunk-S7KHTUHA.js +65 -0
  16. package/dist/chunk-S7KHTUHA.js.map +1 -0
  17. package/dist/chunk-VUNV25KB.js +18 -0
  18. package/dist/chunk-VUNV25KB.js.map +1 -0
  19. package/dist/chunk-YXN2K77G.js +102 -0
  20. package/dist/chunk-YXN2K77G.js.map +1 -0
  21. package/dist/index.d.mts +67 -7
  22. package/dist/index.d.ts +67 -7
  23. package/dist/index.js +384 -337
  24. package/dist/index.mjs +4 -1
  25. package/dist/lib/i18n-context.d.mts +36 -0
  26. package/dist/lib/i18n-context.d.ts +36 -0
  27. package/dist/lib/i18n-context.js +30 -0
  28. package/dist/lib/i18n-context.js.map +1 -0
  29. package/dist/lib/i18n-context.mjs +5 -0
  30. package/dist/lib/i18n-context.mjs.map +1 -0
  31. package/dist/lib/router-context.d.mts +35 -0
  32. package/dist/lib/router-context.d.ts +35 -0
  33. package/dist/lib/router-context.js +26 -0
  34. package/dist/lib/router-context.js.map +1 -0
  35. package/dist/lib/router-context.mjs +5 -0
  36. package/dist/lib/router-context.mjs.map +1 -0
  37. package/dist/navigation-ANFMVDVW.mjs +2445 -0
  38. package/dist/navigation-ANFMVDVW.mjs.map +1 -0
  39. package/dist/navigation-JQ2TJKKI.js +2447 -0
  40. package/dist/navigation-JQ2TJKKI.js.map +1 -0
  41. package/dist/{use-haptic-RDQNJYBE.js → use-haptic-2SHBMEY5.js} +3 -2
  42. package/dist/{use-haptic-RDQNJYBE.js.map → use-haptic-2SHBMEY5.js.map} +1 -1
  43. package/dist/use-haptic-4UCNQATC.mjs +5 -0
  44. package/dist/{use-haptic-TCMOLPGA.mjs.map → use-haptic-4UCNQATC.mjs.map} +1 -1
  45. package/dist/workflow/graph-node.js +1 -0
  46. package/dist/workflow/graph-node.mjs +1 -0
  47. package/dist/workflow/index.js +135 -133
  48. package/dist/workflow/index.js.map +1 -1
  49. package/dist/workflow/index.mjs +7 -5
  50. package/dist/workflow/index.mjs.map +1 -1
  51. package/dist/workflow/utils.js +1 -0
  52. package/dist/workflow/utils.mjs +1 -0
  53. package/dist/workflow/workflow-canvas.js +7 -4
  54. package/dist/workflow/workflow-canvas.mjs +6 -3
  55. package/dist/workflow/workflow-preview-canvas.js +1 -1
  56. package/dist/workflow/workflow-preview-canvas.mjs +1 -1
  57. package/package.json +12 -4
  58. package/dist/chunk-AMUPPC66.mjs.map +0 -1
  59. package/dist/chunk-JYX3ILSA.js.map +0 -1
  60. package/dist/chunk-WTPYTOK4.mjs.map +0 -1
  61. package/dist/chunk-YCIUVIFN.js.map +0 -1
  62. 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, 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-WTPYTOK4.mjs';
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-NNYNGCT5.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,5 @@
1
+ "use client";
2
+ export { I18nProvider, createI18nFromMessages, useFormatter, useLocale, useTranslations } from '../chunk-7VJ7CMMT.mjs';
3
+ import '../chunk-3GDQP6AS.mjs';
4
+ //# sourceMappingURL=i18n-context.mjs.map
5
+ //# sourceMappingURL=i18n-context.mjs.map
@@ -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,5 @@
1
+ "use client";
2
+ export { RouterProvider, useLink, usePathname, useRouter } from '../chunk-QWG2FMUN.mjs';
3
+ import '../chunk-3GDQP6AS.mjs';
4
+ //# sourceMappingURL=router-context.mjs.map
5
+ //# sourceMappingURL=router-context.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"router-context.mjs"}