@datum-cloud/datum-ui 1.6.1 → 1.7.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.
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation--mry98XV.mjs → app-navigation-CNig4Maj.mjs} +32 -31
- package/dist/assistant/index.mjs +1 -1
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/{autocomplete-G24AgvxU.mjs → autocomplete-DM6JYV4W.mjs} +1 -1
- package/dist/autosearch/index.mjs +4 -3
- package/dist/avatar-stack/index.mjs +1 -1
- package/dist/{avatar-stack-D1-BA7hA.mjs → avatar-stack-BZK6zUJr.mjs} +1 -1
- package/dist/{calendar-date-picker-C52Y05ZN.mjs → calendar-date-picker-AzvSqjeS.mjs} +6 -5
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-DeCrbcpY.mjs → chart-EgzTS28l.mjs} +6 -3
- package/dist/code-editor/index.mjs +1 -1
- package/dist/data-table/index.mjs +1 -1
- package/dist/{data-table-CfeovSJV.mjs → data-table-mByk373T.mjs} +11 -10
- package/dist/date-picker/index.mjs +3 -3
- package/dist/date-time-picker/index.mjs +1 -1
- package/dist/{date-time-picker-BbtA6JJJ.mjs → date-time-picker-D3-DeNo8.mjs} +1 -1
- package/dist/dropzone/index.mjs +1 -1
- package/dist/{dropzone-C_vA4q0u.mjs → dropzone-DrWVd7OI.mjs} +5 -3
- package/dist/empty-content/index.mjs +1 -1
- package/dist/{empty-content-BpS0PONb.mjs → empty-content-DvaelFpJ.mjs} +3 -2
- package/dist/form/adapters/rhf/index.mjs +6 -3
- package/dist/form/index.mjs +1 -1
- package/dist/form/stepper/index.mjs +23 -19
- package/dist/{form-2pTdgtYr.mjs → form-BUUNQfC9.mjs} +43 -34
- package/dist/grouped-table/index.mjs +1 -1
- package/dist/{grouped-table-CPF8Jijv.mjs → grouped-table-b2jDEPR6.mjs} +1 -1
- package/dist/index.mjs +26 -26
- package/dist/{layers-DJYz6fyE.mjs → layers-DWYdrGmC.mjs} +7 -3
- package/dist/logo/themed/index.mjs +1 -1
- package/dist/map/index.mjs +1 -1
- package/dist/more-actions/index.mjs +1 -1
- package/dist/{more-actions-G9hs0rpJ.mjs → more-actions-Bx443Ccx.mjs} +13 -12
- package/dist/multi-select/index.mjs +1 -1
- package/dist/{multi-select-DIWTdi0i.mjs → multi-select-PHaMEbY-.mjs} +1 -1
- package/dist/picker/index.mjs +1 -1
- package/dist/{picker-CRUSdzpo.mjs → picker-b5-x-EHs.mjs} +27 -22
- package/dist/rich-text-editor/index.mjs +1 -1
- package/dist/{rich-text-editor-DRIwcleW.mjs → rich-text-editor-CGuSn8xi.mjs} +1 -1
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-Df6Po0K8.mjs → sidebar-BRUNOqXi.mjs} +37 -36
- package/dist/stepper/index.mjs +1 -1
- package/dist/{stepper-DJkYcilu.mjs → stepper-dNvkipop.mjs} +2 -1
- package/dist/tag-input/index.mjs +1 -1
- package/dist/{tag-input-CSav22U5.mjs → tag-input-Ctxtcpwy.mjs} +37 -33
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-DfdGiyfA.mjs → task-queue-dropdown-pqFd4rSf.mjs} +76 -75
- package/dist/theme/index.mjs +1 -1
- package/dist/{themes-BK5atywZ.mjs → themes-Ba2bajuF.mjs} +19 -17
- package/dist/time-picker/index.mjs +1 -1
- package/dist/{time-picker-Bgt6R1fU.mjs → time-picker-B_fN5vhO.mjs} +1 -1
- package/dist/{to-api-format-CgKtSuWO.mjs → to-api-format-43Boq7OR.mjs} +12 -8
- package/dist/tooltip/index.mjs +1 -1
- package/dist/{tooltip-BhatUaar.mjs → tooltip-C_SL1imw.mjs} +27 -23
- package/dist/{types-DrN0rei5.mjs → types-agDpVXBG.mjs} +5 -3
- package/dist/{use-option-picker-CV-9CyBV.mjs → use-option-picker-s2bUYwXC.mjs} +3 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/{utils-U06Eu2KT.mjs → utils-CA4QEIJ8.mjs} +6 -2
- package/package.json +52 -52
|
@@ -5,7 +5,7 @@ import { t as useControllableState } from "./use-controllable-state-Dna7u3r9.mjs
|
|
|
5
5
|
import { t as Input } from "./input-j4tbmYYz.mjs";
|
|
6
6
|
import { Skeleton } from "./skeleton/index.mjs";
|
|
7
7
|
import { TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table/index.mjs";
|
|
8
|
-
import { f as rowMatchesSearch, h as createSelectionColumn, m as DataTableColumnHeader, p as DataTableRowActions } from "./data-table-
|
|
8
|
+
import { f as rowMatchesSearch, h as createSelectionColumn, m as DataTableColumnHeader, p as DataTableRowActions } from "./data-table-mByk373T.mjs";
|
|
9
9
|
import { n as useDebouncedSearchInput } from "./use-debounced-search-input-yu_F0QBt.mjs";
|
|
10
10
|
import { ChevronRight } from "lucide-react";
|
|
11
11
|
import { useCallback, useMemo, useState } from "react";
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { i as buttonGroupVariants, n as ButtonGroupSeparator, r as ButtonGroupTe
|
|
|
11
11
|
import { t as Icon } from "./icon-wrapper-DKfJlJd0.mjs";
|
|
12
12
|
import { Calendar, CalendarDayButton } from "./calendar/index.mjs";
|
|
13
13
|
import { a as CardDescription, i as CardContent, n as CardFooter, o as CardTitle, r as CardHeader, t as Card } from "./card-Cphn2nA3.mjs";
|
|
14
|
-
import { a as ChartTooltip, i as ChartStyle, n as ChartLegend, o as ChartTooltipContent, r as ChartLegendContent, t as ChartContainer } from "./chart-
|
|
14
|
+
import { a as ChartTooltip, i as ChartStyle, n as ChartLegend, o as ChartTooltipContent, r as ChartLegendContent, t as ChartContainer } from "./chart-EgzTS28l.mjs";
|
|
15
15
|
import { t as Checkbox } from "./checkbox-C6P12fio.mjs";
|
|
16
16
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapsible/index.mjs";
|
|
17
17
|
import { a as CommandInput, c as CommandSeparator, i as CommandGroup, l as CommandShortcut, n as CommandDialog, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./command-C0aGIYnQ.mjs";
|
|
@@ -23,7 +23,7 @@ import { t as Input } from "./input-j4tbmYYz.mjs";
|
|
|
23
23
|
import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as InputGroupTextarea, r as InputGroupButton, t as InputGroup } from "./input-group-DieA8aBt.mjs";
|
|
24
24
|
import { t as Label } from "./label-Bk6FXsju.mjs";
|
|
25
25
|
import { t as Spinner } from "./spinner-C5Xv-i2C.mjs";
|
|
26
|
-
import { A as useLeaflet, C as MapMarkerClusterGroup, D as MapRectangle, E as MapPopup, O as MapTooltip, S as MapMarker, T as MapPolyline, _ as MapLocateControl, a as MapTileLayer, b as MapCircle, c as MapDrawDelete, d as MapDrawPolygon, f as MapDrawPolyline, g as MapFullscreenControl, h as MapControlContainer, i as MapLayersControl, j as PlaceAutocomplete, k as Map, l as MapDrawEdit, m as MapDrawUndo, n as MapLayerGroup, o as MapDrawCircle, p as MapDrawRectangle, r as MapLayers, s as MapDrawControl, t as MapFeatureGroup, u as MapDrawMarker, v as MapSearchControl, w as MapPolygon, x as MapCircleMarker, y as MapZoomControl } from "./layers-
|
|
26
|
+
import { A as useLeaflet, C as MapMarkerClusterGroup, D as MapRectangle, E as MapPopup, O as MapTooltip, S as MapMarker, T as MapPolyline, _ as MapLocateControl, a as MapTileLayer, b as MapCircle, c as MapDrawDelete, d as MapDrawPolygon, f as MapDrawPolyline, g as MapFullscreenControl, h as MapControlContainer, i as MapLayersControl, j as PlaceAutocomplete, k as Map, l as MapDrawEdit, m as MapDrawUndo, n as MapLayerGroup, o as MapDrawCircle, p as MapDrawRectangle, r as MapLayers, s as MapDrawControl, t as MapFeatureGroup, u as MapDrawMarker, v as MapSearchControl, w as MapPolygon, x as MapCircleMarker, y as MapZoomControl } from "./layers-DWYdrGmC.mjs";
|
|
27
27
|
import { i as useInSheet, n as MobileSheet, r as InSheetContext, t as ResponsiveSheetTrigger } from "./mobile-sheet-D9L-JOee.mjs";
|
|
28
28
|
import { a as SheetHeader, i as SheetFooter, o as SheetTitle, r as SheetDescription, s as SheetTrigger } from "./sheet-DXCZyMHI.mjs";
|
|
29
29
|
import { i as SheetOverlay, n as SheetClose, r as SheetContent, t as Sheet } from "./sheet-BZViad2U.mjs";
|
|
@@ -33,8 +33,8 @@ import { t as useBreakpoint } from "./use-breakpoint-CwiUJSmk.mjs";
|
|
|
33
33
|
import { t as ResponsiveDropdown } from "./responsive-dropdown-fCmduKaz.mjs";
|
|
34
34
|
import { t as ResponsivePopover } from "./responsive-popover-DJZgXWIE.mjs";
|
|
35
35
|
import { a as SelectLabel, c as SelectSeparator, i as SelectItem, l as SelectTrigger, n as SelectContent, o as SelectScrollDownButton, r as SelectGroup, s as SelectScrollUpButton, t as Select, u as SelectValue } from "./select-DCU44UO6.mjs";
|
|
36
|
-
import { C as SidebarProvider, S as SidebarGroupLabel, _ as SidebarMenuSubButton, a as SidebarInput, b as SidebarGroupAction, c as SidebarSeparator, d as SidebarMenuAction, f as SidebarMenuBadge, g as SidebarMenuSub, h as SidebarMenuSkeleton, i as SidebarHeader, l as SidebarTrigger, m as SidebarMenuItem, n as SidebarContent, o as SidebarInset, p as SidebarMenuButton, r as SidebarFooter, s as SidebarRail, t as Sidebar, u as SidebarMenu, v as SidebarMenuSubItem, w as useSidebar, x as SidebarGroupContent, y as SidebarGroup } from "./sidebar-
|
|
37
|
-
import { t as Tooltip } from "./tooltip-
|
|
36
|
+
import { C as SidebarProvider, S as SidebarGroupLabel, _ as SidebarMenuSubButton, a as SidebarInput, b as SidebarGroupAction, c as SidebarSeparator, d as SidebarMenuAction, f as SidebarMenuBadge, g as SidebarMenuSub, h as SidebarMenuSkeleton, i as SidebarHeader, l as SidebarTrigger, m as SidebarMenuItem, n as SidebarContent, o as SidebarInset, p as SidebarMenuButton, r as SidebarFooter, s as SidebarRail, t as Sidebar, u as SidebarMenu, v as SidebarMenuSubItem, w as useSidebar, x as SidebarGroupContent, y as SidebarGroup } from "./sidebar-BRUNOqXi.mjs";
|
|
37
|
+
import { t as Tooltip } from "./tooltip-C_SL1imw.mjs";
|
|
38
38
|
import { Skeleton } from "./skeleton/index.mjs";
|
|
39
39
|
import { t as Switch } from "./switch-DPHr3TcN.mjs";
|
|
40
40
|
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./table/index.mjs";
|
|
@@ -42,44 +42,44 @@ import { Tabs, TabsContent, TabsLinkTrigger, TabsList, TabsTrigger } from "./tab
|
|
|
42
42
|
import { t as Textarea } from "./textarea-B6YhjFVC.mjs";
|
|
43
43
|
import { a as ListItem, c as Title, d as titleVariants, i as List, l as paragraphVariants, n as Code, o as Paragraph, r as Link, s as Text, t as Blockquote, u as textVariants } from "./typography-BXIBvq3-.mjs";
|
|
44
44
|
import { t as VisuallyHidden } from "./visuallyhidden-D7L_qs8b.mjs";
|
|
45
|
-
import { a as hasActiveDescendant, i as findItemByHref, n as NavMenu, o as isNavItemActive, r as NavMenuItem, s as normalizePath, t as AppNavigation } from "./app-navigation
|
|
45
|
+
import { a as hasActiveDescendant, i as findItemByHref, n as NavMenu, o as isNavItemActive, r as NavMenuItem, s as normalizePath, t as AppNavigation } from "./app-navigation-CNig4Maj.mjs";
|
|
46
46
|
import { t as LoaderOverlay } from "./loader-overlay-DD94azZX.mjs";
|
|
47
|
-
import { t as Autocomplete } from "./autocomplete-
|
|
47
|
+
import { t as Autocomplete } from "./autocomplete-DM6JYV4W.mjs";
|
|
48
48
|
import { Autosearch, defaultAutosearchValue } from "./autosearch/index.mjs";
|
|
49
|
-
import { n as avatarStackVariants, t as AvatarStack } from "./avatar-stack-
|
|
50
|
-
import { G as getTimezoneOffset, U as formatTimezoneLabel, W as getBrowserTimezone } from "./picker-
|
|
51
|
-
import { t as CalendarDatePicker } from "./calendar-date-picker-
|
|
52
|
-
import { i as ClientOnly, n as useTheme, r as ThemeScript, t as ThemeProvider } from "./themes-
|
|
53
|
-
import { a as formatJson, c as isValidYaml, d as CodeEditor, i as CodeEditorTabs, l as jsonToYaml, n as jsonSchema, o as formatYaml, r as yamlSchema, s as isValidJson, t as createCodeEditorSchema, u as yamlToJson } from "./types-
|
|
49
|
+
import { n as avatarStackVariants, t as AvatarStack } from "./avatar-stack-BZK6zUJr.mjs";
|
|
50
|
+
import { G as getTimezoneOffset, U as formatTimezoneLabel, W as getBrowserTimezone } from "./picker-b5-x-EHs.mjs";
|
|
51
|
+
import { t as CalendarDatePicker } from "./calendar-date-picker-AzvSqjeS.mjs";
|
|
52
|
+
import { i as ClientOnly, n as useTheme, r as ThemeScript, t as ThemeProvider } from "./themes-Ba2bajuF.mjs";
|
|
53
|
+
import { a as formatJson, c as isValidYaml, d as CodeEditor, i as CodeEditorTabs, l as jsonToYaml, n as jsonSchema, o as formatYaml, r as yamlSchema, s as isValidJson, t as createCodeEditorSchema, u as yamlToJson } from "./types-agDpVXBG.mjs";
|
|
54
54
|
import { t as toast } from "./toast-BUPlDkN3.mjs";
|
|
55
55
|
import { n as Toaster, t as useToast } from "./use-toast-Bpq0yJIT.mjs";
|
|
56
|
-
import { _ as DEFAULT_DEBOUNCE_MS, a as useDataTablePagination, b as DEFAULT_PAGE_SIZES, c as useDataTableSelection, d as resolvePath, f as rowMatchesSearch, g as useNuqsAdapter, h as createSelectionColumn, i as useDataTableLoading, l as useDataTableSorting, m as DataTableColumnHeader, n as useDataTableFilters, o as useDataTableRows, p as DataTableRowActions, r as useDataTableInlineContents, s as useDataTableSearch, t as DataTable, u as createDataTableStore, v as DEFAULT_LOADING_ROWS, y as DEFAULT_PAGE_SIZE } from "./data-table-
|
|
56
|
+
import { _ as DEFAULT_DEBOUNCE_MS, a as useDataTablePagination, b as DEFAULT_PAGE_SIZES, c as useDataTableSelection, d as resolvePath, f as rowMatchesSearch, g as useNuqsAdapter, h as createSelectionColumn, i as useDataTableLoading, l as useDataTableSorting, m as DataTableColumnHeader, n as useDataTableFilters, o as useDataTableRows, p as DataTableRowActions, r as useDataTableInlineContents, s as useDataTableSearch, t as DataTable, u as createDataTableStore, v as DEFAULT_LOADING_ROWS, y as DEFAULT_PAGE_SIZE } from "./data-table-mByk373T.mjs";
|
|
57
57
|
import { t as ActionRow } from "./action-row-DTvs91_3.mjs";
|
|
58
58
|
import { n as useDebouncedSearchInput, t as DEFAULT_SEARCH_DEBOUNCE_MS } from "./use-debounced-search-input-yu_F0QBt.mjs";
|
|
59
|
-
import { t as MultiSelect } from "./multi-select-
|
|
60
|
-
import { t as DateTimePicker } from "./date-time-picker-
|
|
59
|
+
import { t as MultiSelect } from "./multi-select-PHaMEbY-.mjs";
|
|
60
|
+
import { t as DateTimePicker } from "./date-time-picker-D3-DeNo8.mjs";
|
|
61
61
|
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "./dropdown-B0znsOlu.mjs";
|
|
62
|
-
import { i as FileInputButton, n as DropzoneContent, r as DropzoneEmptyState, t as Dropzone } from "./dropzone-
|
|
63
|
-
import { t as EmptyContent } from "./empty-content-
|
|
64
|
-
import { A as FormCheckbox, C as FormDialog, D as FormCustom, E as FormDatePicker, M as FormAutosearch, N as FormAutocomplete, O as FormCopyBox, S as FormError, T as FormDateTimePicker, _ as FormRadioGroup, a as useField, b as FormFieldArray, c as useWatchAll, d as FormTextarea, f as FormSwitch, g as FormRoot, h as FormSelectItem, i as useFieldContext, j as FormButton, k as FormCombobox, l as FormTransfer, m as FormSelect, n as useFormState, o as FormWhen, p as FormSubmit, r as useFormContext, s as useWatch, t as Form, u as FormTimePicker, v as FormRadioItem, w as FormDescription, x as FormField, y as FormInput } from "./form-
|
|
62
|
+
import { i as FileInputButton, n as DropzoneContent, r as DropzoneEmptyState, t as Dropzone } from "./dropzone-DrWVd7OI.mjs";
|
|
63
|
+
import { t as EmptyContent } from "./empty-content-DvaelFpJ.mjs";
|
|
64
|
+
import { A as FormCheckbox, C as FormDialog, D as FormCustom, E as FormDatePicker, M as FormAutosearch, N as FormAutocomplete, O as FormCopyBox, S as FormError, T as FormDateTimePicker, _ as FormRadioGroup, a as useField, b as FormFieldArray, c as useWatchAll, d as FormTextarea, f as FormSwitch, g as FormRoot, h as FormSelectItem, i as useFieldContext, j as FormButton, k as FormCombobox, l as FormTransfer, m as FormSelect, n as useFormState, o as FormWhen, p as FormSubmit, r as useFormContext, s as useWatch, t as Form, u as FormTimePicker, v as FormRadioItem, w as FormDescription, x as FormField, y as FormInput } from "./form-BUUNQfC9.mjs";
|
|
65
65
|
import { t as useCopyToClipboard } from "./use-copy-to-clipboard-DZDq_85T.mjs";
|
|
66
66
|
import { n as useAdapter, t as FormAdapterProvider } from "./adapter-context-h0jCVqGO.mjs";
|
|
67
67
|
import { InputWithAddons } from "./input-with-addons/index.mjs";
|
|
68
|
-
import { t as TimePicker } from "./time-picker-
|
|
68
|
+
import { t as TimePicker } from "./time-picker-B_fN5vhO.mjs";
|
|
69
69
|
import { t as Transfer } from "./transfer-CEq9AhL7.mjs";
|
|
70
70
|
import { a as getResponsiveValue, c as GRID_COLUMNS, d as RESPONSIVE_MAP, i as getGutter, l as GRID_PREFIX, n as Row, o as registerMediaQuery, r as RowContext, s as GRID_BREAKPOINTS, t as Col, u as RESPONSIVE_ARRAY } from "./col-BYGWTB4j.mjs";
|
|
71
|
-
import { t as GroupedTable } from "./grouped-table-
|
|
71
|
+
import { t as GroupedTable } from "./grouped-table-b2jDEPR6.mjs";
|
|
72
72
|
import { t as InputNumber } from "./input-number-TXmW-X9o.mjs";
|
|
73
73
|
import { a as logoStyles, i as LogoFlat, n as LogoStacked, r as LogoIcon, t as LogoText } from "./logo-text-Dpm5O6Kg.mjs";
|
|
74
74
|
import { t as Logo } from "./logo-C3FxD7jb.mjs";
|
|
75
|
-
import { t as MoreActions } from "./more-actions-
|
|
75
|
+
import { t as MoreActions } from "./more-actions-Bx443Ccx.mjs";
|
|
76
76
|
import { configureProgress, startProgress, stopProgress } from "./nprogress/index.mjs";
|
|
77
77
|
import { t as PageTitle } from "./page-title-ipRWEOeM.mjs";
|
|
78
|
-
import { n as useRichTextEditor, r as RichTextContent, t as RichTextEditor } from "./rich-text-editor-
|
|
79
|
-
import { t as defineStepper } from "./stepper-
|
|
80
|
-
import { t as TagsInput } from "./tag-input-
|
|
81
|
-
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-
|
|
82
|
-
import { _ as getShortTimezoneDisplay, a as TimeRangePicker, b as utcToLocalInputString, c as getPresetByKey, d as TimezoneSelector, f as QuickRangesPanel, g as getDefaultTimezoneOptions, h as formatUtcForDisplay, i as formatTimeRangeDisplay, l as getPresetByShortcut, m as createTimezoneOption, n as formatDateForInput, o as DEFAULT_PRESETS, p as CustomRangePanel, r as formatSingleTimeDisplay, s as getDefaultPreset, t as toApiTimeRange, u as getPresetRange, v as localInputStringToUtc, x as zonedDateToUtcString, y as utcStringToZonedDate } from "./to-api-format-
|
|
78
|
+
import { n as useRichTextEditor, r as RichTextContent, t as RichTextEditor } from "./rich-text-editor-CGuSn8xi.mjs";
|
|
79
|
+
import { t as defineStepper } from "./stepper-dNvkipop.mjs";
|
|
80
|
+
import { t as TagsInput } from "./tag-input-Ctxtcpwy.mjs";
|
|
81
|
+
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-pqFd4rSf.mjs";
|
|
82
|
+
import { _ as getShortTimezoneDisplay, a as TimeRangePicker, b as utcToLocalInputString, c as getPresetByKey, d as TimezoneSelector, f as QuickRangesPanel, g as getDefaultTimezoneOptions, h as formatUtcForDisplay, i as formatTimeRangeDisplay, l as getPresetByShortcut, m as createTimezoneOption, n as formatDateForInput, o as DEFAULT_PRESETS, p as CustomRangePanel, r as formatSingleTimeDisplay, s as getDefaultPreset, t as toApiTimeRange, u as getPresetRange, v as localInputStringToUtc, x as zonedDateToUtcString, y as utcStringToZonedDate } from "./to-api-format-43Boq7OR.mjs";
|
|
83
83
|
import { t as useDebounce } from "./hooks-CwZ6hyI1.mjs";
|
|
84
|
-
import { n as toUTCTimestampStartOfDay, t as toUTCTimestampEndOfDay } from "./utils-
|
|
84
|
+
import { n as toUTCTimestampStartOfDay, t as toUTCTimestampEndOfDay } from "./utils-CA4QEIJ8.mjs";
|
|
85
85
|
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, ActionRow, Alert, AlertDescription, AlertTitle, AppNavigation, Autocomplete, Autosearch, Avatar, AvatarFallback, AvatarImage, 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, CodeEditor, CodeEditorTabs, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_DEBOUNCE_MS, DEFAULT_LOADING_ROWS, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, DEFAULT_PRESETS, DEFAULT_SEARCH_DEBOUNCE_MS, DataTable, DataTableColumnHeader, DataTableRowActions, DateTimePicker, Dialog, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneContent, DropzoneEmptyState, EmptyContent, FileInputButton, Form, FormAdapterProvider, FormAutocomplete, FormAutosearch, FormButton, FormCheckbox, FormCombobox, FormCopyBox, FormCustom, FormDatePicker, FormDateTimePicker, FormDescription, FormDialog, FormError, FormField, FormFieldArray, FormInput, FormRadioGroup, FormRadioItem, FormRoot, FormSelect, FormSelectItem, FormSubmit, FormSwitch, FormTextarea, FormTimePicker, FormTransfer, FormWhen, GRID_BREAKPOINTS, GRID_COLUMNS, GRID_PREFIX, GroupedTable, HoverCard, HoverCardContent, HoverCardTrigger, Icon, InSheetContext, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputNumber, InputWithAddons, Label, Link, LinkButton, List, ListItem, LoaderOverlay, LocalTaskStorage, Logo, LogoFlat, LogoIcon, LogoStacked, LogoText, 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, MobileSheet, MoreActions, MultiSelect, NavMenu, NavMenuItem, PageTitle, Paragraph, PlaceAutocomplete, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, QuickRangesPanel, RESPONSIVE_ARRAY, RESPONSIVE_MAP, RadioGroup, RadioGroupItem, RedisTaskStorage, ResponsiveDropdown, ResponsivePopover, ResponsiveSheetTrigger, RichTextContent, RichTextEditor, 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, 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, TimePicker, TimeRangePicker, TimezoneSelector, Title, Toaster, Tooltip, Transfer, VisuallyHidden, avatarStackVariants, badgeVariants, buttonGroupVariants, buttonVariants, cn, configureProgress, createCodeEditorSchema, createDataTableStore, createOrgMetadata, createProjectMetadata, createSelectionColumn, createTimezoneOption, createUserMetadata, defaultAutosearchValue, defineStepper, detectStorage, findItemByHref, formatDateForInput, formatJson, formatSingleTimeDisplay, formatTimeRangeDisplay, formatTimezoneLabel, formatUtcForDisplay, formatYaml, getBrowserTimezone, getContextLabel, getDefaultPreset, getDefaultTimezoneOptions, getGutter, getPresetByKey, getPresetByShortcut, getPresetRange, getResponsiveValue, getShortTimezoneDisplay, getTimezoneOffset, hasActiveDescendant, isNavItemActive, isValidJson, isValidYaml, jsonSchema, jsonToYaml, localInputStringToUtc, logoStyles, matchesCurrentScope, normalizePath, paragraphVariants, registerMediaQuery, resolvePath, rowMatchesSearch, startProgress, stopProgress, textVariants, titleVariants, toApiTimeRange, toUTCTimestampEndOfDay, toUTCTimestampStartOfDay, toast, useAdapter, useBreakpoint, useControllableState, useCopyToClipboard, useCurrentScope, useDataTableFilters, useDataTableInlineContents, useDataTableLoading, useDataTablePagination, useDataTableRows, useDataTableSearch, useDataTableSelection, useDataTableSorting, useDebounce, useDebouncedSearchInput, useField, useFieldContext, useFormContext, useFormState, useInSheet, useLeaflet, useNuqsAdapter, useRichTextEditor, useSidebar, useTaskQueue, useTasksWithLabels, useTheme, useToast, useWatch, useWatchAll, utcStringToZonedDate, utcToLocalInputString, yamlSchema, yamlToJson, zonedDateToUtcString };
|
|
@@ -73,12 +73,13 @@ function usePlaceSearch({ debounceMs, query, ...props }) {
|
|
|
73
73
|
if (!response.ok) throw new Error(`Photon API error: ${response.status} ${response.statusText}`);
|
|
74
74
|
const data = await response.json();
|
|
75
75
|
const seenOsmKeys = /* @__PURE__ */ new Set();
|
|
76
|
-
|
|
76
|
+
const dedupedFeatures = data.features.filter((feature) => {
|
|
77
77
|
const key = `${feature.properties.osm_type}:${feature.properties.osm_id}`;
|
|
78
78
|
if (seenOsmKeys.has(key)) return false;
|
|
79
79
|
seenOsmKeys.add(key);
|
|
80
80
|
return true;
|
|
81
|
-
})
|
|
81
|
+
});
|
|
82
|
+
setResults(dedupedFeatures);
|
|
82
83
|
} catch (err) {
|
|
83
84
|
if (err instanceof Error && err.name !== "AbortError") {
|
|
84
85
|
setError(err);
|
|
@@ -994,7 +995,10 @@ function MapLayers({ defaultTileLayer, defaultLayerGroups = [], ...props }) {
|
|
|
994
995
|
});
|
|
995
996
|
}
|
|
996
997
|
useEffect(() => {
|
|
997
|
-
if (tileLayers.length > 0 && !selectedTileLayer)
|
|
998
|
+
if (tileLayers.length > 0 && !selectedTileLayer) {
|
|
999
|
+
const validDefaultValue = defaultTileLayer && tileLayers.some((layer) => layer.name === defaultTileLayer) ? defaultTileLayer : tileLayers[0].name;
|
|
1000
|
+
setSelectedTileLayer(validDefaultValue);
|
|
1001
|
+
}
|
|
998
1002
|
}, [
|
|
999
1003
|
tileLayers,
|
|
1000
1004
|
defaultTileLayer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ClientOnly, n as useTheme } from "../../themes-
|
|
1
|
+
import { i as ClientOnly, n as useTheme } from "../../themes-Ba2bajuF.mjs";
|
|
2
2
|
import { i as LogoFlat, n as LogoStacked, r as LogoIcon, t as LogoText } from "../../logo-text-Dpm5O6Kg.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
package/dist/map/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as useLeaflet, C as MapMarkerClusterGroup, D as MapRectangle, E as MapPopup, O as MapTooltip, S as MapMarker, T as MapPolyline, _ as MapLocateControl, a as MapTileLayer, b as MapCircle, c as MapDrawDelete, d as MapDrawPolygon, f as MapDrawPolyline, g as MapFullscreenControl, h as MapControlContainer, i as MapLayersControl, j as PlaceAutocomplete, k as Map, l as MapDrawEdit, m as MapDrawUndo, n as MapLayerGroup, o as MapDrawCircle, p as MapDrawRectangle, r as MapLayers, s as MapDrawControl, t as MapFeatureGroup, u as MapDrawMarker, v as MapSearchControl, w as MapPolygon, x as MapCircleMarker, y as MapZoomControl } from "../layers-
|
|
1
|
+
import { A as useLeaflet, C as MapMarkerClusterGroup, D as MapRectangle, E as MapPopup, O as MapTooltip, S as MapMarker, T as MapPolyline, _ as MapLocateControl, a as MapTileLayer, b as MapCircle, c as MapDrawDelete, d as MapDrawPolygon, f as MapDrawPolyline, g as MapFullscreenControl, h as MapControlContainer, i as MapLayersControl, j as PlaceAutocomplete, k as Map, l as MapDrawEdit, m as MapDrawUndo, n as MapLayerGroup, o as MapDrawCircle, p as MapDrawRectangle, r as MapLayers, s as MapDrawControl, t as MapFeatureGroup, u as MapDrawMarker, v as MapSearchControl, w as MapPolygon, x as MapCircleMarker, y as MapZoomControl } from "../layers-DWYdrGmC.mjs";
|
|
2
2
|
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cn } from "./utils-Bu32wN-x.mjs";
|
|
2
2
|
import { t as Button } from "./button-A1qTjZ8U.mjs";
|
|
3
3
|
import { t as ResponsiveDropdown } from "./responsive-dropdown-fCmduKaz.mjs";
|
|
4
|
-
import { t as Tooltip } from "./tooltip-
|
|
4
|
+
import { t as Tooltip } from "./tooltip-C_SL1imw.mjs";
|
|
5
5
|
import { t as ActionRow } from "./action-row-DTvs91_3.mjs";
|
|
6
6
|
import { Ellipsis } from "lucide-react";
|
|
7
7
|
import { useState } from "react";
|
|
@@ -15,20 +15,21 @@ function MoreActions(props) {
|
|
|
15
15
|
return typeof action.hidden === "function" ? !action.hidden(row) : !action.hidden;
|
|
16
16
|
});
|
|
17
17
|
if (visibleActions.length === 0) return null;
|
|
18
|
+
const trigger = /* @__PURE__ */ jsx(Button, {
|
|
19
|
+
onClick: () => setOpen(!open),
|
|
20
|
+
type: "quaternary",
|
|
21
|
+
theme: "borderless",
|
|
22
|
+
size: "icon",
|
|
23
|
+
disabled,
|
|
24
|
+
"aria-label": sheetTitle,
|
|
25
|
+
"aria-haspopup": "menu",
|
|
26
|
+
className: cn("data-[state=open]:bg-accent size-7 p-0 focus-visible:ring-0 focus-visible:ring-offset-0", className),
|
|
27
|
+
children: /* @__PURE__ */ jsx(Ellipsis, { className: cn("size-5", iconClassName) })
|
|
28
|
+
});
|
|
18
29
|
return /* @__PURE__ */ jsx(ResponsiveDropdown, {
|
|
19
30
|
open,
|
|
20
31
|
onOpenChange: setOpen,
|
|
21
|
-
trigger
|
|
22
|
-
onClick: () => setOpen(!open),
|
|
23
|
-
type: "quaternary",
|
|
24
|
-
theme: "borderless",
|
|
25
|
-
size: "icon",
|
|
26
|
-
disabled,
|
|
27
|
-
"aria-label": sheetTitle,
|
|
28
|
-
"aria-haspopup": "menu",
|
|
29
|
-
className: cn("data-[state=open]:bg-accent size-7 p-0 focus-visible:ring-0 focus-visible:ring-offset-0", className),
|
|
30
|
-
children: /* @__PURE__ */ jsx(Ellipsis, { className: cn("size-5", iconClassName) })
|
|
31
|
-
}),
|
|
32
|
+
trigger,
|
|
32
33
|
sheetTitle,
|
|
33
34
|
align: "end",
|
|
34
35
|
responsive,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MultiSelect } from "../multi-select-
|
|
1
|
+
import { t as MultiSelect } from "../multi-select-PHaMEbY-.mjs";
|
|
2
2
|
export { MultiSelect };
|
|
@@ -4,7 +4,7 @@ import { t as Separator } from "./separator-vbPD_WFQ.mjs";
|
|
|
4
4
|
import { t as useControllableState } from "./use-controllable-state-Dna7u3r9.mjs";
|
|
5
5
|
import { t as ResponsivePopover } from "./responsive-popover-DJZgXWIE.mjs";
|
|
6
6
|
import { t as LoaderOverlay } from "./loader-overlay-DD94azZX.mjs";
|
|
7
|
-
import { n as OptionList, t as useOptionPicker } from "./use-option-picker-
|
|
7
|
+
import { n as OptionList, t as useOptionPicker } from "./use-option-picker-s2bUYwXC.mjs";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { CheckIcon, ChevronDown, WandSparkles, XCircle, XIcon } from "lucide-react";
|
|
10
10
|
import * as React from "react";
|
package/dist/picker/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as isRangeMode, A as resolveCommit, B as PickerContext, C as DATE_PRESETS, D as formatTimeLabel, E as dateToYYYYMMDD, F as PickerClear, G as getTimezoneOffset, H as formatInTimezone, I as PickerFooter, J as ALLOWED_STEPS, K as isoToZonedDate, L as PickerReset, M as PickerPresets, N as PickerApply, O as isValidTimeString, P as PickerCancel, Q as isDateBearingMode, R as PickerContent, S as DATETIME_PRESETS, T as usePickerState, U as formatTimezoneLabel, V as usePickerContext, W as getBrowserTimezone, X as RANGE_MODES, Y as DATE_BEARING_MODES, Z as TIME_BEARING_MODES, _ as PickerTimezoneSelect, a as DateRangeTimePicker, b as useTimeSlots, c as clampRange, d as formatPickerValue, et as isTimeBearingMode, f as isSameDate, g as PickerTrigger, h as Picker, i as DateTimePicker, j as useKeyboardShortcuts, k as parseTimeString, l as getDaysDifference, m as isSameStringRange, n as TimePicker, o as DateRangePicker, p as isSameDateRange, q as zonedDateToIso, r as DateTimeRangePicker, s as DatePicker, t as TimeRangePicker, u as isRangeValid, v as PickerTimezoneIndicator, w as getDefaultPresets, x as usePresets, y as PickerTimeInput, z as PickerCalendar } from "../picker-
|
|
1
|
+
import { $ as isRangeMode, A as resolveCommit, B as PickerContext, C as DATE_PRESETS, D as formatTimeLabel, E as dateToYYYYMMDD, F as PickerClear, G as getTimezoneOffset, H as formatInTimezone, I as PickerFooter, J as ALLOWED_STEPS, K as isoToZonedDate, L as PickerReset, M as PickerPresets, N as PickerApply, O as isValidTimeString, P as PickerCancel, Q as isDateBearingMode, R as PickerContent, S as DATETIME_PRESETS, T as usePickerState, U as formatTimezoneLabel, V as usePickerContext, W as getBrowserTimezone, X as RANGE_MODES, Y as DATE_BEARING_MODES, Z as TIME_BEARING_MODES, _ as PickerTimezoneSelect, a as DateRangeTimePicker, b as useTimeSlots, c as clampRange, d as formatPickerValue, et as isTimeBearingMode, f as isSameDate, g as PickerTrigger, h as Picker, i as DateTimePicker, j as useKeyboardShortcuts, k as parseTimeString, l as getDaysDifference, m as isSameStringRange, n as TimePicker, o as DateRangePicker, p as isSameDateRange, q as zonedDateToIso, r as DateTimeRangePicker, s as DatePicker, t as TimeRangePicker, u as isRangeValid, v as PickerTimezoneIndicator, w as getDefaultPresets, x as usePresets, y as PickerTimeInput, z as PickerCalendar } from "../picker-b5-x-EHs.mjs";
|
|
2
2
|
export { ALLOWED_STEPS, DATETIME_PRESETS, DATE_BEARING_MODES, DATE_PRESETS, DatePicker, DateRangePicker, DateRangeTimePicker, DateTimePicker, DateTimeRangePicker, Picker, PickerApply, PickerCalendar, PickerCancel, PickerClear, PickerContent, PickerContext, PickerFooter, PickerPresets, PickerReset, PickerTimeInput, PickerTimezoneIndicator, PickerTimezoneSelect, PickerTrigger, RANGE_MODES, TIME_BEARING_MODES, TimePicker, TimeRangePicker, clampRange, dateToYYYYMMDD, formatInTimezone, formatPickerValue, formatTimeLabel, formatTimezoneLabel, getBrowserTimezone, getDaysDifference, getDefaultPresets, getTimezoneOffset, isDateBearingMode, isRangeMode, isRangeValid, isSameDate, isSameDateRange, isSameStringRange, isTimeBearingMode, isValidTimeString, isoToZonedDate, parseTimeString, resolveCommit, useKeyboardShortcuts, usePickerContext, usePickerState, usePresets, useTimeSlots, zonedDateToIso };
|
|
@@ -5,7 +5,7 @@ import { Calendar } from "./calendar/index.mjs";
|
|
|
5
5
|
import { t as useBreakpoint } from "./use-breakpoint-CwiUJSmk.mjs";
|
|
6
6
|
import { t as ResponsivePopover } from "./responsive-popover-DJZgXWIE.mjs";
|
|
7
7
|
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-daE2Nn0Z.mjs";
|
|
8
|
-
import { n as OptionList, t as useOptionPicker } from "./use-option-picker-
|
|
8
|
+
import { n as OptionList, t as useOptionPicker } from "./use-option-picker-s2bUYwXC.mjs";
|
|
9
9
|
import { CalendarIcon, Clock, Globe, X } from "lucide-react";
|
|
10
10
|
import { createContext, useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -115,7 +115,7 @@ const ALLOWED_STEPS = [
|
|
|
115
115
|
/** Browser-detected IANA timezone, falling back to UTC if unavailable. */
|
|
116
116
|
function getBrowserTimezone() {
|
|
117
117
|
try {
|
|
118
|
-
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
118
|
+
return new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
119
119
|
} catch {
|
|
120
120
|
return "UTC";
|
|
121
121
|
}
|
|
@@ -236,15 +236,16 @@ function PickerCalendar({ numberOfMonths = 1, className, minDate, maxDate, disab
|
|
|
236
236
|
})();
|
|
237
237
|
if (mode === "date-range" || mode === "date-range-time" || mode === "datetime-range") {
|
|
238
238
|
const v = state.pendingValue;
|
|
239
|
+
const selected = v ? mode === "date-range" ? {
|
|
240
|
+
from: v.from,
|
|
241
|
+
to: v.to
|
|
242
|
+
} : {
|
|
243
|
+
from: isoToZonedDate(v.from, timezone),
|
|
244
|
+
to: isoToZonedDate(v.to, timezone)
|
|
245
|
+
} : void 0;
|
|
239
246
|
return /* @__PURE__ */ jsx(Calendar, {
|
|
240
247
|
mode: "range",
|
|
241
|
-
selected
|
|
242
|
-
from: v.from,
|
|
243
|
-
to: v.to
|
|
244
|
-
} : {
|
|
245
|
-
from: isoToZonedDate(v.from, timezone),
|
|
246
|
-
to: isoToZonedDate(v.to, timezone)
|
|
247
|
-
} : void 0,
|
|
248
|
+
selected,
|
|
248
249
|
onSelect: (range) => {
|
|
249
250
|
if (!range?.from || !range?.to) return;
|
|
250
251
|
if (mode === "date-range") actions.setRange({
|
|
@@ -270,9 +271,10 @@ function PickerCalendar({ numberOfMonths = 1, className, minDate, maxDate, disab
|
|
|
270
271
|
classNames: CALENDAR_RESPONSIVE_CLASSNAMES
|
|
271
272
|
});
|
|
272
273
|
}
|
|
274
|
+
const selected = state.pendingValue instanceof Date ? state.pendingValue : mode === "datetime" && typeof state.pendingValue === "string" ? isoToZonedDate(state.pendingValue, timezone) : void 0;
|
|
273
275
|
return /* @__PURE__ */ jsx(Calendar, {
|
|
274
276
|
mode: "single",
|
|
275
|
-
selected
|
|
277
|
+
selected,
|
|
276
278
|
onSelect: (d) => {
|
|
277
279
|
if (!d) return;
|
|
278
280
|
if (mode === "date") actions.setSingleDate(d);
|
|
@@ -335,11 +337,12 @@ function PickerFooter({ children, className }) {
|
|
|
335
337
|
PickerFooter.displayName = "Picker.Footer";
|
|
336
338
|
function PickerApply({ children = "Apply" }) {
|
|
337
339
|
const { state, actions } = usePickerContext();
|
|
340
|
+
const disabled = state.pendingValue === null || state.pendingValue === void 0;
|
|
338
341
|
return /* @__PURE__ */ jsx(Button, {
|
|
339
342
|
type: "primary",
|
|
340
343
|
theme: "solid",
|
|
341
344
|
size: "xs",
|
|
342
|
-
disabled
|
|
345
|
+
disabled,
|
|
343
346
|
onClick: actions.apply,
|
|
344
347
|
children
|
|
345
348
|
});
|
|
@@ -386,9 +389,10 @@ function PickerPresets({ className }) {
|
|
|
386
389
|
return /* @__PURE__ */ jsx("div", {
|
|
387
390
|
className: cn("border-border hidden flex-col gap-1 border-r p-2 md:flex", className),
|
|
388
391
|
children: presets.map((preset) => {
|
|
392
|
+
const isSelected = state.selectedPresetKey === preset.key;
|
|
389
393
|
return /* @__PURE__ */ jsxs(Button$1, {
|
|
390
394
|
type: "button",
|
|
391
|
-
variant:
|
|
395
|
+
variant: isSelected ? "default" : "ghost",
|
|
392
396
|
size: "sm",
|
|
393
397
|
className: "justify-start font-normal",
|
|
394
398
|
onClick: () => {
|
|
@@ -1190,17 +1194,18 @@ function PickerTimeInput({ target, min, max, className }) {
|
|
|
1190
1194
|
PickerTimeInput.displayName = "Picker.TimeInput";
|
|
1191
1195
|
function InlineSlotList({ slots, value, onSelect, className }) {
|
|
1192
1196
|
const [open, setOpen] = useState(true);
|
|
1197
|
+
const picker = useOptionPicker({
|
|
1198
|
+
multiple: false,
|
|
1199
|
+
options: slots,
|
|
1200
|
+
value,
|
|
1201
|
+
onValueChange: (next) => {
|
|
1202
|
+
if (typeof next === "string") onSelect(next);
|
|
1203
|
+
},
|
|
1204
|
+
open,
|
|
1205
|
+
onOpenChange: setOpen
|
|
1206
|
+
});
|
|
1193
1207
|
return /* @__PURE__ */ jsx(OptionList, {
|
|
1194
|
-
picker
|
|
1195
|
-
multiple: false,
|
|
1196
|
-
options: slots,
|
|
1197
|
-
value,
|
|
1198
|
-
onValueChange: (next) => {
|
|
1199
|
-
if (typeof next === "string") onSelect(next);
|
|
1200
|
-
},
|
|
1201
|
-
open,
|
|
1202
|
-
onOpenChange: setOpen
|
|
1203
|
-
}),
|
|
1208
|
+
picker,
|
|
1204
1209
|
disableSearch: slots.length <= 48,
|
|
1205
1210
|
searchPlaceholder: "Search time...",
|
|
1206
1211
|
listClassName: cn("max-h-[240px]", className)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useRichTextEditor, r as RichTextContent, t as RichTextEditor } from "../rich-text-editor-
|
|
1
|
+
import { n as useRichTextEditor, r as RichTextContent, t as RichTextEditor } from "../rich-text-editor-CGuSn8xi.mjs";
|
|
2
2
|
export { RichTextContent, RichTextEditor, useRichTextEditor };
|
|
@@ -3,7 +3,7 @@ import { t as Button } from "./button-A1qTjZ8U.mjs";
|
|
|
3
3
|
import { t as Icon } from "./icon-wrapper-DKfJlJd0.mjs";
|
|
4
4
|
import { t as Input } from "./input-j4tbmYYz.mjs";
|
|
5
5
|
import { t as ResponsivePopover } from "./responsive-popover-DJZgXWIE.mjs";
|
|
6
|
-
import { t as Tooltip } from "./tooltip-
|
|
6
|
+
import { t as Tooltip } from "./tooltip-C_SL1imw.mjs";
|
|
7
7
|
import { BoldIcon, ItalicIcon, LinkIcon, StrikethroughIcon, UnderlineIcon, UnlinkIcon } from "lucide-react";
|
|
8
8
|
import { createContext, use, useCallback, useEffect, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/sidebar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as SidebarProvider, S as SidebarGroupLabel, _ as SidebarMenuSubButton, a as SidebarInput, b as SidebarGroupAction, c as SidebarSeparator, d as SidebarMenuAction, f as SidebarMenuBadge, g as SidebarMenuSub, h as SidebarMenuSkeleton, i as SidebarHeader, l as SidebarTrigger, m as SidebarMenuItem, n as SidebarContent, o as SidebarInset, p as SidebarMenuButton, r as SidebarFooter, s as SidebarRail, t as Sidebar, u as SidebarMenu, v as SidebarMenuSubItem, w as useSidebar, x as SidebarGroupContent, y as SidebarGroup } from "../sidebar-
|
|
1
|
+
import { C as SidebarProvider, S as SidebarGroupLabel, _ as SidebarMenuSubButton, a as SidebarInput, b as SidebarGroupAction, c as SidebarSeparator, d as SidebarMenuAction, f as SidebarMenuBadge, g as SidebarMenuSub, h as SidebarMenuSkeleton, i as SidebarHeader, l as SidebarTrigger, m as SidebarMenuItem, n as SidebarContent, o as SidebarInset, p as SidebarMenuButton, r as SidebarFooter, s as SidebarRail, t as Sidebar, u as SidebarMenu, v as SidebarMenuSubItem, w as useSidebar, x as SidebarGroupContent, y as SidebarGroup } from "../sidebar-BRUNOqXi.mjs";
|
|
2
2
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
@@ -4,7 +4,7 @@ import { t as Button } from "./button-CsdF61EI.mjs";
|
|
|
4
4
|
import { t as Icon } from "./icon-wrapper-DKfJlJd0.mjs";
|
|
5
5
|
import { t as Input } from "./input-j4tbmYYz.mjs";
|
|
6
6
|
import { a as SheetHeader, n as SheetContent, o as SheetTitle, r as SheetDescription, t as Sheet } from "./sheet-DXCZyMHI.mjs";
|
|
7
|
-
import { i as TooltipProvider, t as Tooltip } from "./tooltip-
|
|
7
|
+
import { i as TooltipProvider, t as Tooltip } from "./tooltip-C_SL1imw.mjs";
|
|
8
8
|
import { t as Skeleton } from "./skeleton-DFExK4GX.mjs";
|
|
9
9
|
import { cva } from "class-variance-authority";
|
|
10
10
|
import { PanelLeftCloseIcon, PanelLeftOpenIcon } from "lucide-react";
|
|
@@ -16,7 +16,7 @@ const MOBILE_BREAKPOINT = 768;
|
|
|
16
16
|
function useIsMobile() {
|
|
17
17
|
const [isMobile, setIsMobile] = React.useState(void 0);
|
|
18
18
|
React.useEffect(() => {
|
|
19
|
-
const mql = window.matchMedia(`(max-width:
|
|
19
|
+
const mql = window.matchMedia(`(max-width: 767px)`);
|
|
20
20
|
const onChange = () => {
|
|
21
21
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
22
22
|
};
|
|
@@ -29,7 +29,7 @@ function useIsMobile() {
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/components/base/sidebar/context.tsx
|
|
31
31
|
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
32
|
-
const SIDEBAR_COOKIE_MAX_AGE =
|
|
32
|
+
const SIDEBAR_COOKIE_MAX_AGE = 604800;
|
|
33
33
|
const SIDEBAR_WIDTH = "13rem";
|
|
34
34
|
const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
35
35
|
const SIDEBAR_WIDTH_ICON = "3rem";
|
|
@@ -152,40 +152,41 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
|
|
|
152
152
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
153
153
|
}, [toggleSidebar]);
|
|
154
154
|
const state = effectiveOpen ? "expanded" : "collapsed";
|
|
155
|
+
const contextValue = React.useMemo(() => ({
|
|
156
|
+
state,
|
|
157
|
+
open: effectiveOpen,
|
|
158
|
+
setOpen,
|
|
159
|
+
isMobile,
|
|
160
|
+
openMobile,
|
|
161
|
+
setOpenMobile,
|
|
162
|
+
toggleSidebar,
|
|
163
|
+
handleMouseEnter,
|
|
164
|
+
handleMouseLeave,
|
|
165
|
+
forceClose,
|
|
166
|
+
closeForNavigation,
|
|
167
|
+
hasSubLayout,
|
|
168
|
+
setHasSubLayout,
|
|
169
|
+
expandBehavior,
|
|
170
|
+
showBackdrop
|
|
171
|
+
}), [
|
|
172
|
+
state,
|
|
173
|
+
effectiveOpen,
|
|
174
|
+
setOpen,
|
|
175
|
+
isMobile,
|
|
176
|
+
openMobile,
|
|
177
|
+
setOpenMobile,
|
|
178
|
+
toggleSidebar,
|
|
179
|
+
handleMouseEnter,
|
|
180
|
+
handleMouseLeave,
|
|
181
|
+
forceClose,
|
|
182
|
+
closeForNavigation,
|
|
183
|
+
hasSubLayout,
|
|
184
|
+
setHasSubLayout,
|
|
185
|
+
expandBehavior,
|
|
186
|
+
showBackdrop
|
|
187
|
+
]);
|
|
155
188
|
return /* @__PURE__ */ jsx(SidebarContext, {
|
|
156
|
-
value:
|
|
157
|
-
state,
|
|
158
|
-
open: effectiveOpen,
|
|
159
|
-
setOpen,
|
|
160
|
-
isMobile,
|
|
161
|
-
openMobile,
|
|
162
|
-
setOpenMobile,
|
|
163
|
-
toggleSidebar,
|
|
164
|
-
handleMouseEnter,
|
|
165
|
-
handleMouseLeave,
|
|
166
|
-
forceClose,
|
|
167
|
-
closeForNavigation,
|
|
168
|
-
hasSubLayout,
|
|
169
|
-
setHasSubLayout,
|
|
170
|
-
expandBehavior,
|
|
171
|
-
showBackdrop
|
|
172
|
-
}), [
|
|
173
|
-
state,
|
|
174
|
-
effectiveOpen,
|
|
175
|
-
setOpen,
|
|
176
|
-
isMobile,
|
|
177
|
-
openMobile,
|
|
178
|
-
setOpenMobile,
|
|
179
|
-
toggleSidebar,
|
|
180
|
-
handleMouseEnter,
|
|
181
|
-
handleMouseLeave,
|
|
182
|
-
forceClose,
|
|
183
|
-
closeForNavigation,
|
|
184
|
-
hasSubLayout,
|
|
185
|
-
setHasSubLayout,
|
|
186
|
-
expandBehavior,
|
|
187
|
-
showBackdrop
|
|
188
|
-
]),
|
|
189
|
+
value: contextValue,
|
|
189
190
|
children: /* @__PURE__ */ jsx(TooltipProvider, {
|
|
190
191
|
delayDuration: 0,
|
|
191
192
|
children: /* @__PURE__ */ jsx("div", {
|
package/dist/stepper/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as defineStepper } from "../stepper-
|
|
1
|
+
import { t as defineStepper } from "../stepper-dNvkipop.mjs";
|
|
2
2
|
export { defineStepper };
|
|
@@ -175,12 +175,13 @@ function defineStepper(...steps) {
|
|
|
175
175
|
Stepper: {
|
|
176
176
|
...StepperizePrimitives,
|
|
177
177
|
Provider: ({ variant = "horizontal", labelOrientation = "horizontal", tracking = false, defaultStep, defaultData, children, className, ...props }) => {
|
|
178
|
+
const instanceId = React.useId();
|
|
178
179
|
return /* @__PURE__ */ jsx(StepperContext, {
|
|
179
180
|
value: {
|
|
180
181
|
variant,
|
|
181
182
|
labelOrientation,
|
|
182
183
|
tracking,
|
|
183
|
-
instanceId
|
|
184
|
+
instanceId
|
|
184
185
|
},
|
|
185
186
|
children: /* @__PURE__ */ jsx(StepperizeProvider, {
|
|
186
187
|
defaultStep,
|
package/dist/tag-input/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TagsInput } from "../tag-input-
|
|
1
|
+
import { t as TagsInput } from "../tag-input-Ctxtcpwy.mjs";
|
|
2
2
|
export { TagsInput };
|
|
@@ -271,13 +271,16 @@ function useTagsInput({ value, onValueChange, maxItems, minItems, delimiters = D
|
|
|
271
271
|
const handleKeyDown = React.useCallback((e) => {
|
|
272
272
|
e.stopPropagation();
|
|
273
273
|
const moveNext = () => {
|
|
274
|
-
|
|
274
|
+
const nextIndex = activeIndex + 1 > value.length - 1 ? -1 : activeIndex + 1;
|
|
275
|
+
setActiveIndex(nextIndex);
|
|
275
276
|
};
|
|
276
277
|
const movePrev = () => {
|
|
277
|
-
|
|
278
|
+
const prevIndex = activeIndex - 1 < 0 ? value.length - 1 : activeIndex - 1;
|
|
279
|
+
setActiveIndex(prevIndex);
|
|
278
280
|
};
|
|
279
281
|
const moveCurrent = () => {
|
|
280
|
-
|
|
282
|
+
const newIndex = activeIndex - 1 <= 0 ? value.length - 1 === 0 ? -1 : 0 : activeIndex - 1;
|
|
283
|
+
setActiveIndex(newIndex);
|
|
281
284
|
};
|
|
282
285
|
const target = e.currentTarget;
|
|
283
286
|
switch (e.key) {
|
|
@@ -302,9 +305,11 @@ function useTagsInput({ value, onValueChange, maxItems, minItems, delimiters = D
|
|
|
302
305
|
}
|
|
303
306
|
}
|
|
304
307
|
break;
|
|
305
|
-
case "Escape":
|
|
306
|
-
|
|
308
|
+
case "Escape": {
|
|
309
|
+
const newIndex = activeIndex === -1 ? value.length - 1 : -1;
|
|
310
|
+
setActiveIndex(newIndex);
|
|
307
311
|
break;
|
|
312
|
+
}
|
|
308
313
|
case "Tab":
|
|
309
314
|
if (inputValue.trim() !== "") {
|
|
310
315
|
e.preventDefault();
|
|
@@ -312,13 +317,11 @@ function useTagsInput({ value, onValueChange, maxItems, minItems, delimiters = D
|
|
|
312
317
|
setInputValue("");
|
|
313
318
|
}
|
|
314
319
|
break;
|
|
315
|
-
default:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
321
|
-
break;
|
|
320
|
+
default: if (delimiters.includes(e.key) && inputValue.trim() !== "") {
|
|
321
|
+
e.preventDefault();
|
|
322
|
+
addValue(inputValue);
|
|
323
|
+
setInputValue("");
|
|
324
|
+
}
|
|
322
325
|
}
|
|
323
326
|
}, [
|
|
324
327
|
activeIndex,
|
|
@@ -381,28 +384,29 @@ function TagsInput({ ref, value, onValueChange, placeholder, maxItems, minItems,
|
|
|
381
384
|
dir
|
|
382
385
|
});
|
|
383
386
|
const { inputValue, setInputValue, activeIndex, setActiveIndex, validationError, setValidationError } = input;
|
|
387
|
+
const contextValue = React.useMemo(() => ({
|
|
388
|
+
value,
|
|
389
|
+
onValueChange,
|
|
390
|
+
inputValue,
|
|
391
|
+
setInputValue,
|
|
392
|
+
activeIndex,
|
|
393
|
+
setActiveIndex,
|
|
394
|
+
validator,
|
|
395
|
+
validationError,
|
|
396
|
+
setValidationError
|
|
397
|
+
}), [
|
|
398
|
+
value,
|
|
399
|
+
onValueChange,
|
|
400
|
+
inputValue,
|
|
401
|
+
setInputValue,
|
|
402
|
+
activeIndex,
|
|
403
|
+
setActiveIndex,
|
|
404
|
+
validator,
|
|
405
|
+
validationError,
|
|
406
|
+
setValidationError
|
|
407
|
+
]);
|
|
384
408
|
return /* @__PURE__ */ jsxs(TagInputContext, {
|
|
385
|
-
value:
|
|
386
|
-
value,
|
|
387
|
-
onValueChange,
|
|
388
|
-
inputValue,
|
|
389
|
-
setInputValue,
|
|
390
|
-
activeIndex,
|
|
391
|
-
setActiveIndex,
|
|
392
|
-
validator,
|
|
393
|
-
validationError,
|
|
394
|
-
setValidationError
|
|
395
|
-
}), [
|
|
396
|
-
value,
|
|
397
|
-
onValueChange,
|
|
398
|
-
inputValue,
|
|
399
|
-
setInputValue,
|
|
400
|
-
activeIndex,
|
|
401
|
-
setActiveIndex,
|
|
402
|
-
validator,
|
|
403
|
-
validationError,
|
|
404
|
-
setValidationError
|
|
405
|
-
]),
|
|
409
|
+
value: contextValue,
|
|
406
410
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
407
411
|
...props,
|
|
408
412
|
ref,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-pqFd4rSf.mjs";
|
|
2
2
|
export { LocalTaskStorage, RedisTaskStorage, TaskPanel, TaskPanelActions, TaskPanelCounter, TaskPanelHeader, TaskPanelItem, TaskQueue, TaskQueueDropdown, TaskQueueProvider, TaskQueueTrigger, TaskSummaryDialog, createOrgMetadata, createProjectMetadata, createUserMetadata, detectStorage, getContextLabel, matchesCurrentScope, useCurrentScope, useTaskQueue, useTasksWithLabels };
|