@tradalab/lyra 3.15.0 → 3.16.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.
@@ -0,0 +1,9 @@
1
+ // src/utils/fold.ts
2
+ var ASCII = /^[ -~]*$/;
3
+ function foldText(s) {
4
+ return ASCII.test(s) ? s.toLowerCase() : s.normalize("NFD").replace(/\p{M}/gu, "").toLowerCase().replace(/đ/g, "d");
5
+ }
6
+
7
+ export { foldText };
8
+ //# sourceMappingURL=chunk-5XFDQRXV.js.map
9
+ //# sourceMappingURL=chunk-5XFDQRXV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils/fold.ts"],"names":[],"mappings":";AAAA,IAAM,KAAA,GAAQ,UAAA;AAGP,SAAS,SAAS,CAAA,EAAmB;AAC1C,EAAA,OAAO,MAAM,IAAA,CAAK,CAAC,IAAI,CAAA,CAAE,WAAA,KAAgB,CAAA,CAAE,SAAA,CAAU,KAAK,CAAA,CAAE,OAAA,CAAQ,WAAW,EAAE,CAAA,CAAE,aAAY,CAAE,OAAA,CAAQ,MAAM,GAAG,CAAA;AACpH","file":"chunk-5XFDQRXV.js","sourcesContent":["const ASCII = /^[ -~]*$/\n\n/** Lower case with accents dropped and the d with stroke read as `d`, so an unaccented query matches. */\nexport function foldText(s: string): string {\n return ASCII.test(s) ? s.toLowerCase() : s.normalize(\"NFD\").replace(/\\p{M}/gu, \"\").toLowerCase().replace(/đ/g, \"d\")\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { Separator } from './chunk-SQELPQZU.js';
1
+ import { Separator } from './chunk-UNRT3B6P.js';
2
2
  import { PLATE_KEY, COMPACT_KEY } from './chunk-D7DMRCDY.js';
3
3
  import { InputGroup, InputGroupInput, InputGroupAddon, InputGroupButton } from './chunk-VXW3K5O5.js';
4
4
  import { Button, buttonVariants } from './chunk-VGOGWZCF.js';
@@ -1907,7 +1907,7 @@ function FieldLabel({
1907
1907
  {
1908
1908
  "data-slot": "field-label",
1909
1909
  className: cn(
1910
- "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-none has-[>[data-slot=field]]:border *:data-[slot=field]:p-2 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10",
1910
+ "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-none has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-1 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10",
1911
1911
  "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
1912
1912
  className
1913
1913
  ),
@@ -3909,6 +3909,139 @@ function ToggleGroupItem({
3909
3909
  }
3910
3910
  );
3911
3911
  }
3912
+ function Trace({ className, ...props }) {
3913
+ return /* @__PURE__ */ jsx(
3914
+ "div",
3915
+ {
3916
+ "data-slot": "trace",
3917
+ className: cn(
3918
+ "flex w-full min-w-0 flex-col gap-2 *:has-[>[data-slot=trace-line]]:flex *:has-[>[data-slot=trace-line]]:w-fit *:has-[>[data-slot=trace-line]]:max-w-full *:has-[>[data-slot=trace-line]]:min-w-0 *:has-[>[data-slot=trace-line]]:rounded-none *:has-[>[data-slot=trace-line]]:text-left *:has-[>[data-slot=trace-line]]:outline-none *:has-[>[data-slot=trace-line]]:focus-visible:ring-1 *:has-[>[data-slot=trace-line]]:focus-visible:ring-ring/50",
3919
+ className
3920
+ ),
3921
+ ...props
3922
+ }
3923
+ );
3924
+ }
3925
+ function TraceLine({
3926
+ className,
3927
+ status,
3928
+ ...props
3929
+ }) {
3930
+ return /* @__PURE__ */ jsx(
3931
+ "span",
3932
+ {
3933
+ "data-slot": "trace-line",
3934
+ "data-status": status,
3935
+ className: cn(
3936
+ "flex w-fit max-w-full min-w-0 items-center gap-2 text-xs text-muted-foreground transition-colors in-[a,button]:cursor-pointer in-[a:hover,button:hover]:text-foreground data-[status=error]:text-destructive data-[status=error]:in-[a:hover,button:hover]:text-destructive data-[status=pending]:opacity-60 data-[status=running]:*:data-[slot=trace-title]:shimmer",
3937
+ className
3938
+ ),
3939
+ ...props
3940
+ }
3941
+ );
3942
+ }
3943
+ function TraceIcon({ className, ...props }) {
3944
+ return /* @__PURE__ */ jsx(
3945
+ "span",
3946
+ {
3947
+ "data-slot": "trace-icon",
3948
+ "aria-hidden": "true",
3949
+ className: cn(
3950
+ "flex size-3.5 shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-3.5 [[data-slot=trace-title]~&]:-ml-1",
3951
+ className
3952
+ ),
3953
+ ...props
3954
+ }
3955
+ );
3956
+ }
3957
+ function TraceTitle({ className, ...props }) {
3958
+ return /* @__PURE__ */ jsx(
3959
+ "span",
3960
+ {
3961
+ "data-slot": "trace-title",
3962
+ className: cn("min-w-0 truncate motion-reduce:shimmer-none", className),
3963
+ ...props
3964
+ }
3965
+ );
3966
+ }
3967
+ function TraceDescription({
3968
+ className,
3969
+ ...props
3970
+ }) {
3971
+ return /* @__PURE__ */ jsx(
3972
+ "span",
3973
+ {
3974
+ "data-slot": "trace-description",
3975
+ className: cn(
3976
+ "shrink-0 text-muted-foreground/70 tabular-nums",
3977
+ className
3978
+ ),
3979
+ ...props
3980
+ }
3981
+ );
3982
+ }
3983
+ function TraceCollapsible({
3984
+ className,
3985
+ ...props
3986
+ }) {
3987
+ return /* @__PURE__ */ jsx(
3988
+ Collapsible,
3989
+ {
3990
+ "data-slot": "trace-collapsible",
3991
+ className: cn("flex w-full min-w-0 flex-col", className),
3992
+ ...props
3993
+ }
3994
+ );
3995
+ }
3996
+ function TraceCollapsibleTrigger({
3997
+ className,
3998
+ children,
3999
+ ...props
4000
+ }) {
4001
+ return /* @__PURE__ */ jsxs(
4002
+ CollapsibleTrigger,
4003
+ {
4004
+ "data-slot": "trace-collapsible-trigger",
4005
+ className: cn(
4006
+ "group/trace-collapsible-trigger flex w-fit max-w-full min-w-0 cursor-pointer items-center gap-1 rounded-none text-left text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring/50 has-[[data-status=error]]:text-destructive",
4007
+ className
4008
+ ),
4009
+ ...props,
4010
+ children: [
4011
+ children,
4012
+ /* @__PURE__ */ jsx(TraceIcon, { className: "transition-transform group-aria-expanded/trace-collapsible-trigger:rotate-90", children: /* @__PURE__ */ jsx(
4013
+ ChevronRightIcon,
4014
+ {}
4015
+ ) })
4016
+ ]
4017
+ }
4018
+ );
4019
+ }
4020
+ function TraceCollapsibleContent({
4021
+ className,
4022
+ children,
4023
+ ...props
4024
+ }) {
4025
+ return /* @__PURE__ */ jsx(
4026
+ CollapsibleContent,
4027
+ {
4028
+ "data-slot": "trace-collapsible-content",
4029
+ className: "min-w-0 overflow-hidden duration-200 [--radix-accordion-content-height:var(--radix-collapsible-content-height)] data-open:animate-accordion-down data-closed:animate-accordion-up",
4030
+ ...props,
4031
+ children: /* @__PURE__ */ jsx(
4032
+ "div",
4033
+ {
4034
+ "data-slot": "trace-collapsible-content-inner",
4035
+ className: cn(
4036
+ "mt-2 mb-1 ml-[calc(--spacing(1.75)-1px)] min-w-0 border-l pr-1 pl-3.75 leading-relaxed wrap-break-word text-muted-foreground",
4037
+ className
4038
+ ),
4039
+ children
4040
+ }
4041
+ )
4042
+ }
4043
+ );
4044
+ }
3912
4045
  function ActionButton({ pending = false, icon, disabled, children, ...props }) {
3913
4046
  return /* @__PURE__ */ jsxs(
3914
4047
  Button,
@@ -3977,6 +4110,6 @@ function PreferenceScript() {
3977
4110
  return /* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: { __html: SCRIPT } });
3978
4111
  }
3979
4112
 
3980
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Badge, Bubble, BubbleContent, BubbleGroup, BubbleReactions, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Container, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Marker, MarkerContent, MarkerIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PreferenceScript, Progress, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, Spinner, StatusBadge, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastPortal, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, badgeVariants, buttonGroupVariants, createToastManager, markerVariants, navigationMenuTriggerStyle, toast, toggleVariants, useCarousel, useComboboxAnchor, useDirection, useToastManager };
3981
- //# sourceMappingURL=chunk-4ILJ3M7K.js.map
3982
- //# sourceMappingURL=chunk-4ILJ3M7K.js.map
4113
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionButton, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Badge, Bubble, BubbleContent, BubbleGroup, BubbleReactions, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Container, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Marker, MarkerContent, MarkerIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PreferenceScript, Progress, Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoiceDescription, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, Spinner, StatusBadge, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastPortal, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle, badgeVariants, buttonGroupVariants, createToastManager, markerVariants, navigationMenuTriggerStyle, toast, toggleVariants, useCarousel, useComboboxAnchor, useDirection, useToastManager };
4114
+ //# sourceMappingURL=chunk-ASSRDIKG.js.map
4115
+ //# sourceMappingURL=chunk-ASSRDIKG.js.map