@datum-cloud/datum-ui 0.2.0-alpha.4 → 0.2.0-alpha.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 +33 -24
- package/dist/components/themes/index.d.ts +1 -1
- package/dist/components/themes/index.d.ts.map +1 -1
- package/dist/components/themes/types.d.ts +0 -2
- package/dist/components/themes/types.d.ts.map +1 -1
- package/dist/fonts/AllianceNo1-Medium.ttf +0 -0
- package/dist/fonts/AllianceNo1-Regular.ttf +0 -0
- package/dist/fonts/AllianceNo1-SemiBold.ttf +0 -0
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/map/index.mjs +1 -1
- package/dist/{map-Df8QMcX0.mjs → map-WL6jhkSM.mjs} +1 -1
- package/dist/{style.css → styles.css} +317 -575
- package/dist/styles.mjs +1 -0
- package/dist/theme/index.mjs +1 -2
- package/dist/{theme.provider-DgGshapa.mjs → theme.provider-CzCxEFFh.mjs} +63 -1
- package/package.json +20 -21
- package/dist/datum.provider-B77goJgl.mjs +0 -37
- package/dist/provider/index.mjs +0 -4
- package/dist/providers/datum.provider.d.ts +0 -20
- package/dist/providers/datum.provider.d.ts.map +0 -1
- package/dist/providers/index.d.ts +0 -3
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/theme-script-XBouzsNR.mjs +0 -66
- /package/dist/{map-leaflet-imports-CdzvEnzY.mjs → map-leaflet-imports-C4JYls8q.mjs} +0 -0
- /package/dist/{use-debounce-DQ1tmxOL.mjs → use-debounce-B6wPrZV8.mjs} +0 -0
package/README.md
CHANGED
|
@@ -16,22 +16,34 @@ bun add @datum-cloud/datum-ui
|
|
|
16
16
|
|
|
17
17
|
## Setup
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
### 1. Import Styles
|
|
20
|
+
|
|
21
|
+
Add datum-ui styles to your CSS file, after Tailwind:
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
/* app.css */
|
|
25
|
+
@import 'tailwindcss';
|
|
26
|
+
@import '@datum-cloud/datum-ui/styles';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This loads all design tokens, theme variables, fonts, and component styles. Tokens are registered with Tailwind via `@theme inline`, so utilities like `bg-primary` and `text-foreground` work automatically.
|
|
30
|
+
|
|
31
|
+
### 2. Add ThemeProvider
|
|
32
|
+
|
|
33
|
+
Wrap your app with `ThemeProvider` for light/dark/system theme switching:
|
|
20
34
|
|
|
21
35
|
```tsx
|
|
22
|
-
import {
|
|
36
|
+
import { ThemeProvider } from '@datum-cloud/datum-ui/theme'
|
|
23
37
|
|
|
24
38
|
function App() {
|
|
25
39
|
return (
|
|
26
|
-
<
|
|
40
|
+
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
27
41
|
{/* your app */}
|
|
28
|
-
</
|
|
42
|
+
</ThemeProvider>
|
|
29
43
|
)
|
|
30
44
|
}
|
|
31
45
|
```
|
|
32
46
|
|
|
33
|
-
`DatumProvider` automatically loads all design tokens, theme variables, and component styles — no extra CSS import needed.
|
|
34
|
-
|
|
35
47
|
## Imports
|
|
36
48
|
|
|
37
49
|
Each component has its own subpath export. Import only what you need:
|
|
@@ -46,15 +58,14 @@ This keeps your bundle small and means you only install peer dependencies for th
|
|
|
46
58
|
|
|
47
59
|
### Shared Exports
|
|
48
60
|
|
|
49
|
-
| Import Path
|
|
50
|
-
|
|
|
51
|
-
| `@datum-cloud/datum-ui`
|
|
52
|
-
| `@datum-cloud/datum-ui/
|
|
53
|
-
| `@datum-cloud/datum-ui/theme`
|
|
54
|
-
| `@datum-cloud/datum-ui/hooks`
|
|
55
|
-
| `@datum-cloud/datum-ui/icons`
|
|
56
|
-
| `@datum-cloud/datum-ui/utils`
|
|
57
|
-
| `@datum-cloud/datum-ui/styles` | Global CSS (fonts, tokens, component styles) |
|
|
61
|
+
| Import Path | Description |
|
|
62
|
+
| ------------------------------ | ------------------------------------------------------ |
|
|
63
|
+
| `@datum-cloud/datum-ui` | Root barrel — all components (requires all peer deps) |
|
|
64
|
+
| `@datum-cloud/datum-ui/styles` | CSS (fonts, tokens, theme variables, component styles) |
|
|
65
|
+
| `@datum-cloud/datum-ui/theme` | Theme utilities and types |
|
|
66
|
+
| `@datum-cloud/datum-ui/hooks` | `useCopyToClipboard`, `useDebounce` |
|
|
67
|
+
| `@datum-cloud/datum-ui/icons` | `CloseIcon`, `IconWrapper`, `SpinnerIcon` |
|
|
68
|
+
| `@datum-cloud/datum-ui/utils` | `cn` (className merge utility) |
|
|
58
69
|
|
|
59
70
|
### Grouped Exports
|
|
60
71
|
|
|
@@ -228,14 +239,15 @@ import {
|
|
|
228
239
|
### Toast
|
|
229
240
|
|
|
230
241
|
```tsx
|
|
242
|
+
import { ThemeProvider } from '@datum-cloud/datum-ui/theme'
|
|
231
243
|
import { Toaster, useToast } from '@datum-cloud/datum-ui/toast'
|
|
232
244
|
|
|
233
245
|
function App() {
|
|
234
246
|
return (
|
|
235
|
-
<
|
|
247
|
+
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
236
248
|
<Toaster />
|
|
237
249
|
<MyComponent />
|
|
238
|
-
</
|
|
250
|
+
</ThemeProvider>
|
|
239
251
|
)
|
|
240
252
|
}
|
|
241
253
|
|
|
@@ -274,19 +286,16 @@ function MyComponent() {
|
|
|
274
286
|
|
|
275
287
|
## Theming
|
|
276
288
|
|
|
277
|
-
`
|
|
289
|
+
`ThemeProvider` supports light, dark, and system theme modes:
|
|
278
290
|
|
|
279
291
|
```tsx
|
|
280
|
-
import {
|
|
292
|
+
import { ThemeProvider } from '@datum-cloud/datum-ui/theme'
|
|
281
293
|
|
|
282
|
-
|
|
283
|
-
<DatumProvider defaultTheme="system">
|
|
294
|
+
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
|
|
284
295
|
{children}
|
|
285
|
-
</
|
|
296
|
+
</ThemeProvider>
|
|
286
297
|
```
|
|
287
298
|
|
|
288
|
-
Theme values: `'light'`, `'dark'`, `'system'`.
|
|
289
|
-
|
|
290
299
|
Access the current theme:
|
|
291
300
|
|
|
292
301
|
```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ClientOnly } from './client-only';
|
|
2
2
|
export { ThemeScript } from './theme-script';
|
|
3
3
|
export { ThemeProvider, useTheme } from './theme.provider';
|
|
4
|
-
export type { Theme, ThemeProviderProps,
|
|
4
|
+
export type { Theme, ThemeProviderProps, UseThemeProps, } from './types';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC1D,YAAY,EACV,KAAK,EACL,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC1D,YAAY,EACV,KAAK,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,SAAS,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
export type Theme = 'light' | 'dark' | 'system';
|
|
3
|
-
export type ThemeStyle = 'alpha' | 'default' | 'experimental';
|
|
4
3
|
export type Attribute = 'class' | `data-${string}`;
|
|
5
4
|
export interface ThemeProviderProps {
|
|
6
5
|
children: ReactNode;
|
|
@@ -25,6 +24,5 @@ export interface UseThemeProps {
|
|
|
25
24
|
resolvedTheme?: Theme;
|
|
26
25
|
themes: string[];
|
|
27
26
|
systemTheme?: 'light' | 'dark';
|
|
28
|
-
themeStyle?: ThemeStyle;
|
|
29
27
|
}
|
|
30
28
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/themes/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE/C,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/themes/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE/C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,MAAM,EAAE,CAAA;AAElD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,CAAC,EAAE,KAAK,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,CAAC,EAAE,KAAK,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE;QACZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KACnB,CAAA;CACF;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,KAAK,IAAI,CAAA;IAC5D,WAAW,CAAC,EAAE,KAAK,CAAA;IACnB,aAAa,CAAC,EAAE,KAAK,CAAA;IACrB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC/B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/hooks/index.mjs
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAG5B,cAAc,SAAS,CAAA;AAGvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAG5B,cAAc,SAAS,CAAA;AAGvB,cAAc,SAAS,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import { t as Input } from "./input-fzXBheCN.mjs";
|
|
|
25
25
|
import "./textarea-QYRcDEpK.mjs";
|
|
26
26
|
import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as InputGroupTextarea, r as InputGroupButton, t as InputGroup } from "./input-group-CPaFSTEV.mjs";
|
|
27
27
|
import { t as Label } from "./label-_ste_Re3.mjs";
|
|
28
|
-
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "./map-
|
|
28
|
+
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "./map-WL6jhkSM.mjs";
|
|
29
29
|
import { t as Spinner } from "./spinner-BE7k2bAD.mjs";
|
|
30
30
|
import { i as PopoverTrigger, n as PopoverAnchor, r as PopoverContent, t as Popover } from "./popover-SQlKSz6L.mjs";
|
|
31
31
|
import { n as RadioGroupItem, t as RadioGroup } from "./radio-group-Oshv0b-U.mjs";
|
|
@@ -61,9 +61,7 @@ import { t as PageTitle } from "./page-title-BJuo81rT.mjs";
|
|
|
61
61
|
import { C as SidebarTrigger, E as NavMain, S as SidebarSeparator, T as AppSidebar, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "./sidebar-DfqezV8t.mjs";
|
|
62
62
|
import { t as TagsInput } from "./tag-input-Di7SDNbK.mjs";
|
|
63
63
|
import { _ as RedisTaskStorage, a as TaskPanelItem, b as createProjectMetadata, c as TaskPanelHeader, d as useCurrentScope, f as useTasksWithLabels, g as detectStorage, h as TaskQueue, i as TaskPanel, l as getContextLabel, m as TaskQueueProvider, n as TaskSummaryDialog, o as TaskPanelCounter, p as useTaskQueue, r as TaskQueueTrigger, s as TaskPanelActions, t as TaskQueueDropdown, u as matchesCurrentScope, v as LocalTaskStorage, x as createUserMetadata, y as createOrgMetadata } from "./task-queue-dropdown-DW72ikDH.mjs";
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import { t as useDebounce } from "./use-debounce-DQ1tmxOL.mjs";
|
|
67
|
-
import { t as DatumProvider } from "./datum.provider-B77goJgl.mjs";
|
|
64
|
+
import { i as ClientOnly, n as useTheme, r as ThemeScript, t as ThemeProvider } from "./theme.provider-CzCxEFFh.mjs";
|
|
65
|
+
import { t as useDebounce } from "./use-debounce-B6wPrZV8.mjs";
|
|
68
66
|
|
|
69
|
-
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, Alert, AlertDescription, AlertTitle, AppSidebar, Autocomplete, AvatarStack, Badge, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDatePicker, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, ClientOnly, CloseIcon, Code, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PRESETS,
|
|
67
|
+
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, Alert, AlertDescription, AlertTitle, AppSidebar, Autocomplete, AvatarStack, Badge, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDatePicker, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, ClientOnly, CloseIcon, Code, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PRESETS, Dialog, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneContent, DropzoneEmptyState, EmptyContent, FileInputButton, Form, FormAutocomplete, FormButton, FormCheckbox, FormCopyBox, FormCustom, FormDescription, FormDialog, FormError, FormField, FormFieldArray, FormInput, FormRadioGroup, FormRadioItem, FormRoot, FormSelect, FormSelectItem, FormStep, FormStepper, FormSubmit, FormSwitch, FormTextarea, FormWhen, GRID_BREAKPOINTS, GRID_COLUMNS, GRID_PREFIX, HoverCard, HoverCardContent, HoverCardTrigger, Icon, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputNumber, InputWithAddons, Label, Link, LinkButton, List, ListItem, LoaderOverlay, LocalTaskStorage, Map, MapCircle, MapCircleMarker, MapControlContainer, MapDrawCircle, MapDrawControl, MapDrawDelete, MapDrawEdit, MapDrawMarker, MapDrawPolygon, MapDrawPolyline, MapDrawRectangle, MapDrawUndo, MapFeatureGroup, MapFullscreenControl, MapLayerGroup, MapLayers, MapLayersControl, MapLocateControl, MapMarker, MapMarkerClusterGroup, MapPolygon, MapPolyline, MapPopup, MapRectangle, MapSearchControl, MapTileLayer, MapTooltip, MapZoomControl, MoreActions, NavMain, PageTitle, Paragraph, PlaceAutocomplete, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, QuickRangesPanel, RESPONSIVE_ARRAY, RESPONSIVE_MAP, RadioGroup, RadioGroupItem, RedisTaskStorage, Row, RowContext, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, SpinnerIcon, StepperControls, StepperNavigation, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsLinkTrigger, TabsList, TabsTrigger, TagsInput, TaskPanel, TaskPanelActions, TaskPanelCounter, TaskPanelHeader, TaskPanelItem, TaskQueue, TaskQueueDropdown, TaskQueueProvider, TaskQueueTrigger, TaskSummaryDialog, Text, Textarea, ThemeProvider, ThemeScript, TimeRangePicker, TimezoneSelector, Title, Toaster, Tooltip, VisuallyHidden, avatarStackVariants, badgeVariants, buttonGroupVariants, buttonVariants, cn, configureProgress, createOrgMetadata, createProjectMetadata, createTimezoneOption, createUserMetadata, defineStepper, detectStorage, formatDateForInput, formatSingleTimeDisplay, formatTimeRangeDisplay, formatTimezoneLabel, formatUtcForDisplay, getBrowserTimezone, getContextLabel, getDefaultPreset, getDefaultTimezoneOptions, getGutter, getPresetByKey, getPresetByShortcut, getPresetRange, getResponsiveValue, getShortTimezoneDisplay, getTimezoneOffset, localInputStringToUtc, matchesCurrentScope, paragraphVariants, registerMediaQuery, startProgress, stopProgress, textVariants, titleVariants, toApiTimeRange, toast, useCopyToClipboard, useCurrentScope, useDebounce, useField, useFieldContext, useFormContext, useLeaflet, useSidebar, useStepper, useTaskQueue, useTasksWithLabels, useTheme, useToast, useWatch, useWatchAll, utcStringToZonedDate, utcToLocalInputString, zonedDateToUtcString };
|
package/dist/map/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import "../command-s0Yv3abE.mjs";
|
|
|
7
7
|
import "../input-DuyjEKEW.mjs";
|
|
8
8
|
import "../textarea-QYRcDEpK.mjs";
|
|
9
9
|
import "../input-group-CPaFSTEV.mjs";
|
|
10
|
-
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "../map-
|
|
10
|
+
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "../map-WL6jhkSM.mjs";
|
|
11
11
|
import "../spinner-BE7k2bAD.mjs";
|
|
12
12
|
|
|
13
13
|
export { Map, MapCircle, MapCircleMarker, MapControlContainer, MapDrawCircle, MapDrawControl, MapDrawDelete, MapDrawEdit, MapDrawMarker, MapDrawPolygon, MapDrawPolyline, MapDrawRectangle, MapDrawUndo, MapFeatureGroup, MapFullscreenControl, MapLayerGroup, MapLayers, MapLayersControl, MapLocateControl, MapMarker, MapMarkerClusterGroup, MapPolygon, MapPolyline, MapPopup, MapRectangle, MapSearchControl, MapTileLayer, MapTooltip, MapZoomControl, PlaceAutocomplete, useLeaflet };
|
|
@@ -308,7 +308,7 @@ function PlaceAutocomplete({ debounceMs = 300, lang, limit = 5, bbox, lat, lon,
|
|
|
308
308
|
//#region ../shadcn/ui/map.tsx
|
|
309
309
|
let _useMap;
|
|
310
310
|
let _useMapEvents;
|
|
311
|
-
if (typeof window !== "undefined") import("./map-leaflet-imports-
|
|
311
|
+
if (typeof window !== "undefined") import("./map-leaflet-imports-C4JYls8q.mjs").then((mod) => {
|
|
312
312
|
_useMap = mod.useMap;
|
|
313
313
|
_useMapEvents = mod.useMapEvents;
|
|
314
314
|
});
|