@mastra/playground-ui 70.1.0-alpha.1 → 70.1.0-alpha.3
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/{MetricsLineChart-CFKyRZ0t.cjs → MetricsLineChart-DupSN9YT.cjs} +5 -2
- package/dist/MetricsLineChart-DupSN9YT.cjs.map +1 -0
- package/dist/{MetricsLineChart-CwQ7c3nK.js → MetricsLineChart-vgZTYICl.js} +5 -2
- package/dist/MetricsLineChart-vgZTYICl.js.map +1 -0
- package/dist/{MetricsStackedBarChart-e4_hVNX6.cjs → MetricsStackedBarChart-CYX6HW01.cjs} +2 -2
- package/dist/{MetricsStackedBarChart-e4_hVNX6.cjs.map → MetricsStackedBarChart-CYX6HW01.cjs.map} +1 -1
- package/dist/{MetricsStackedBarChart-BYnCiXfI.js → MetricsStackedBarChart-CqsIfBK7.js} +2 -2
- package/dist/{MetricsStackedBarChart-BYnCiXfI.js.map → MetricsStackedBarChart-CqsIfBK7.js.map} +1 -1
- package/dist/{Section-DV2aLnkc.js → Section-BdaqU_k5.js} +2 -2
- package/dist/{Section-DV2aLnkc.js.map → Section-BdaqU_k5.js.map} +1 -1
- package/dist/{Section-BdO9TFjY.cjs → Section-Co1kxY3S.cjs} +2 -2
- package/dist/{Section-BdO9TFjY.cjs.map → Section-Co1kxY3S.cjs.map} +1 -1
- package/dist/components/FormLayout.cjs.js +11 -7
- package/dist/components/FormLayout.cjs.js.map +1 -1
- package/dist/components/FormLayout.es.js +11 -7
- package/dist/components/FormLayout.es.js.map +1 -1
- package/dist/components/HoverCard.cjs.js +3 -0
- package/dist/components/HoverCard.cjs.js.map +1 -1
- package/dist/components/HoverCard.es.js +3 -1
- package/dist/components/HoverCard.es.js.map +1 -1
- package/dist/components/MetricsLineChart.cjs.js +1 -1
- package/dist/components/MetricsLineChart.es.js +1 -1
- package/dist/components/MetricsStackedBarChart.cjs.js +1 -1
- package/dist/components/MetricsStackedBarChart.es.js +1 -1
- package/dist/components/Section.cjs.js +1 -1
- package/dist/components/Section.es.js +1 -1
- package/dist/components/SideDialog.cjs.js +1 -1
- package/dist/components/SideDialog.es.js +1 -1
- package/dist/domains/chat/tools/badges/resolve-child-messages.cjs.js.map +1 -1
- package/dist/domains/chat/tools/badges/resolve-child-messages.es.js.map +1 -1
- package/dist/domains/dashboards/kinds/scores/scores-widget.cjs.js +1 -1
- package/dist/domains/dashboards/kinds/scores/scores-widget.es.js +1 -1
- package/dist/domains/dashboards/kinds/timeseries/timeseries-widget.cjs.js +2 -2
- package/dist/domains/dashboards/kinds/timeseries/timeseries-widget.es.js +2 -2
- package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.cjs.js +1 -1
- package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.es.js +1 -1
- package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.cjs.js +1 -1
- package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.es.js +1 -1
- package/dist/domains/metrics/components/agent-runs-card.cjs.js +2 -2
- package/dist/domains/metrics/components/agent-runs-card.es.js +2 -2
- package/dist/domains/metrics/components/distinct-ids/distinct-ids-chart.cjs.js +1 -1
- package/dist/domains/metrics/components/distinct-ids/distinct-ids-chart.es.js +1 -1
- package/dist/domains/metrics/components/failure-rate-card.cjs.js +1 -1
- package/dist/domains/metrics/components/failure-rate-card.es.js +1 -1
- package/dist/domains/metrics/components/latency-card.cjs.js +1 -1
- package/dist/domains/metrics/components/latency-card.es.js +1 -1
- package/dist/domains/metrics/components/scores-card.cjs.js +1 -1
- package/dist/domains/metrics/components/scores-card.es.js +1 -1
- package/dist/domains/metrics/components/token-usage-card.cjs.js +2 -2
- package/dist/domains/metrics/components/token-usage-card.es.js +2 -2
- package/dist/domains/observability/components/observability-histogram.cjs.js +1 -1
- package/dist/domains/observability/components/observability-histogram.es.js +1 -1
- package/dist/new/settings.cjs.js +3 -4
- package/dist/new/settings.es.js +2 -3
- package/dist/{settings-B7RMGKgf.js → settings-9ei5ML-D.js} +39 -3
- package/dist/settings-9ei5ML-D.js.map +1 -0
- package/dist/{settings-row-BnlFZSQL.js → settings-row-BeVVZ7Bs.js} +15 -8
- package/dist/settings-row-BeVVZ7Bs.js.map +1 -0
- package/dist/{settings-row-Da1HHyBg.cjs → settings-row-SN-YS0LA.cjs} +15 -8
- package/dist/settings-row-SN-YS0LA.cjs.map +1 -0
- package/dist/{settings-CYKWxfrJ.cjs → settings-u4KjAKPi.cjs} +44 -2
- package/dist/settings-u4KjAKPi.cjs.map +1 -0
- package/dist/src/domains/workflows/context/use-persisted-workflow-run.d.ts +7 -0
- package/dist/src/ds/components/FormLayout/form-layout.d.ts +2 -2
- package/dist/src/ds/components/HoverCard/create-hover-card-handle.d.ts +2 -0
- package/dist/src/ds/components/HoverCard/index.d.ts +1 -0
- package/dist/style.css +22 -6
- package/package.json +6 -6
- package/dist/MetricsLineChart-CFKyRZ0t.cjs.map +0 -1
- package/dist/MetricsLineChart-CwQ7c3nK.js.map +0 -1
- package/dist/settings-B7RMGKgf.js.map +0 -1
- package/dist/settings-CYKWxfrJ.cjs.map +0 -1
- package/dist/settings-layout-BxtShpY6.cjs +0 -46
- package/dist/settings-layout-BxtShpY6.cjs.map +0 -1
- package/dist/settings-layout-UPnWI3FZ.js +0 -41
- package/dist/settings-layout-UPnWI3FZ.js.map +0 -1
- package/dist/settings-row-BnlFZSQL.js.map +0 -1
- package/dist/settings-row-Da1HHyBg.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section-BdO9TFjY.cjs","names":["cn","Txt","cn","cn","cn","cn","HeadingTag","cn","cn","Field","cn","FieldLabel","FieldDescription","FieldError","SettingsRowControl"],"sources":["../src/ds/components/Section/section-content.tsx","../src/ds/components/Section/section-description.tsx","../src/ds/components/Section/section-divider.tsx","../src/ds/components/Section/section-header.tsx","../src/ds/components/Section/section-header-text.tsx","../src/ds/components/Section/section-heading.tsx","../src/ds/components/Section/section-root.tsx","../src/ds/components/Section/section-row.tsx","../src/ds/components/Section/section.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionContentProps = ComponentProps<'div'>;\n\nexport function SectionContent({ className, ...props }: SectionContentProps) {\n return (\n <div\n data-slot=\"section-content\"\n className={cn(\n 'group-data-[variant=factory]/section:overflow-hidden group-data-[variant=factory]/section:rounded-xl',\n 'group-data-[variant=factory]/section:bg-card group-data-[variant=factory]/section:shadow-raised',\n className,\n )}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDescriptionProps = ComponentProps<'p'>;\n\nexport function SectionDescription({ className, ...props }: SectionDescriptionProps) {\n return (\n <Txt\n variant=\"caption\"\n tone=\"muted\"\n data-slot=\"section-description\"\n className={cn('max-w-[62ch] text-pretty', className)}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDividerProps = ComponentProps<'div'>;\n\nexport function SectionDivider({ className, ...props }: SectionDividerProps) {\n return <div role=\"separator\" aria-orientation=\"horizontal\" className={cn('h-px bg-border', className)} {...props} />;\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderProps = ComponentProps<'header'> & {\n inset?: boolean;\n};\n\nexport function SectionHeader({ children, className, inset = false, ...props }: SectionHeaderProps) {\n return (\n <header\n data-slot=\"section-header\"\n className={cn(\n 'group-data-[variant=default]/section:grid group-data-[variant=default]/section:grid-cols-[1fr_auto] group-data-[variant=default]/section:items-center',\n 'group-data-[variant=flat]/section:flex group-data-[variant=flat]/section:min-w-0 group-data-[variant=flat]/section:flex-col group-data-[variant=flat]/section:gap-3 group-data-[variant=flat]/section:pb-3 sm:group-data-[variant=flat]/section:flex-row sm:group-data-[variant=flat]/section:items-start sm:group-data-[variant=flat]/section:justify-between sm:group-data-[variant=flat]/section:gap-4',\n 'group-data-[variant=factory]/section:flex group-data-[variant=factory]/section:min-w-0 group-data-[variant=factory]/section:flex-col group-data-[variant=factory]/section:gap-2 sm:group-data-[variant=factory]/section:flex-row sm:group-data-[variant=factory]/section:items-start sm:group-data-[variant=factory]/section:justify-between sm:group-data-[variant=factory]/section:gap-4',\n inset && 'px-4',\n className,\n )}\n {...props}\n >\n {children}\n </header>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderTextProps = ComponentProps<'div'>;\n\nexport function SectionHeaderText({ className, ...props }: SectionHeaderTextProps) {\n return <div data-slot=\"section-header-text\" className={cn('flex min-w-0 flex-col gap-1.5', className)} {...props} />;\n}\n","import type { ComponentProps, ElementType } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeadingProps = ComponentProps<'h2'> & {\n headingLevel?: 'h2' | 'h3' | 'h4';\n};\n\nexport function SectionHeading({ headingLevel = 'h2', children, className, ...props }: SectionHeadingProps) {\n const HeadingTag: ElementType = headingLevel;\n\n return (\n <HeadingTag\n data-slot=\"section-heading\"\n className={cn(\n 'group-data-[variant=default]/section:flex group-data-[variant=default]/section:items-center group-data-[variant=default]/section:gap-2 group-data-[variant=default]/section:text-subheading group-data-[variant=default]/section:text-muted-foreground group-data-[variant=default]/section:[&>svg]:size-[1.2em] group-data-[variant=default]/section:[&>svg]:opacity-50',\n 'group-data-[variant=flat]/section:text-subheading group-data-[variant=flat]/section:text-balance group-data-[variant=flat]/section:text-foreground',\n 'group-data-[variant=factory]/section:text-subheading group-data-[variant=factory]/section:text-balance group-data-[variant=factory]/section:text-foreground',\n className,\n )}\n {...props}\n >\n {children}\n </HeadingTag>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionVariant = 'default' | 'flat' | 'factory';\n\nexport type SectionRootProps = ComponentProps<'section'> & {\n variant?: SectionVariant;\n};\n\nexport function SectionRoot({ variant = 'default', children, className, ...props }: SectionRootProps) {\n return (\n <section\n data-slot=\"section\"\n data-variant={variant}\n className={cn(\n 'group/section',\n variant === 'default' && 'grid gap-3',\n variant === 'flat' && 'w-full min-w-0',\n variant === 'factory' && 'flex w-full min-w-0 flex-col gap-2',\n className,\n )}\n {...props}\n >\n {children}\n </section>\n );\n}\n\nexport function SubSectionRoot({ children, className, ...props }: ComponentProps<'section'>) {\n return (\n <section className={cn('grid gap-2', className)} {...props}>\n {children}\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@/ds/components/Field';\nimport type { FieldProps } from '@/ds/components/Field';\nimport { SettingsRowControl } from '@/ds/new/settings/settings-row';\nimport { cn } from '@/lib/utils';\n\nexport type SectionRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n htmlFor?: string;\n children?: ReactNode;\n required?: boolean;\n errorMsg?: ReactNode;\n};\nexport type SectionViewOnlyRowProps = SectionRowProps & { children: ReactNode };\nexport type SectionDestructiveRowProps = SectionRowProps & { children: ReactNode };\n\nfunction SectionRowBase({\n label,\n description,\n htmlFor,\n children,\n className,\n required = false,\n errorMsg,\n disabled,\n viewOnly = false,\n destructive = false,\n ...props\n}: SectionRowProps & { viewOnly?: boolean; destructive?: boolean }) {\n return (\n <Field\n orientation=\"responsive\"\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"section-row\"\n className={cn(\n 'grid min-w-0 gap-3 group-data-[variant=factory]/section:px-3 group-data-[variant=factory]/section:py-2 group-data-[variant=flat]/section:p-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:group-data-[variant=default]/section:gap-4 sm:group-data-[variant=factory]/section:gap-4 sm:group-data-[variant=flat]/section:gap-6',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0\">\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(destructive && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && <FieldDescription className=\"mt-1 text-pretty\">{description}</FieldDescription>}\n <FieldError className=\"mt-1\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"section-control\"\n className={cn(\n 'min-w-0 sm:justify-self-end',\n viewOnly && 'flex items-center gap-2 text-body-sm text-muted-foreground',\n )}\n >\n <SettingsRowControl viewOnly={viewOnly}>{children}</SettingsRowControl>\n </div>\n )}\n </Field>\n );\n}\n\n/** @deprecated Use SettingsRow from @mastra/playground-ui/new/settings for settings pages. */\nexport function SectionRow(props: SectionRowProps) {\n return <SectionRowBase {...props} />;\n}\n\n/** @deprecated Use SettingsRow with viewOnly from @mastra/playground-ui/new/settings. */\nexport function SectionViewOnlyRow(props: SectionViewOnlyRowProps) {\n return <SectionRowBase {...props} viewOnly />;\n}\n\n/** @deprecated Use SettingsRow with tone=\"destructive\" from @mastra/playground-ui/new/settings. */\nexport function SectionDestructiveRow(props: SectionDestructiveRowProps) {\n return <SectionRowBase {...props} destructive />;\n}\n","import { SectionContent } from './section-content';\nimport { SectionDescription } from './section-description';\nimport { SectionDivider } from './section-divider';\nimport { SectionHeader } from './section-header';\nimport { SectionHeaderText } from './section-header-text';\nimport { SectionHeading } from './section-heading';\nimport { SectionRoot } from './section-root';\nimport type { SectionRootProps } from './section-root';\nimport { SectionDestructiveRow, SectionRow, SectionViewOnlyRow } from './section-row';\n\nexport { type SectionContentProps } from './section-content';\nexport { type SectionDescriptionProps } from './section-description';\nexport { type SectionDividerProps } from './section-divider';\nexport { type SectionHeaderProps } from './section-header';\nexport { type SectionHeaderTextProps } from './section-header-text';\nexport { type SectionHeadingProps } from './section-heading';\nexport { type SectionRootProps as SectionProps, type SectionVariant } from './section-root';\nexport { type SectionDestructiveRowProps, type SectionRowProps, type SectionViewOnlyRowProps } from './section-row';\n\nexport function Section(props: SectionRootProps) {\n return <SectionRoot {...props} />;\n}\n\nSection.Header = SectionHeader;\nSection.HeaderText = SectionHeaderText;\nSection.Heading = SectionHeading;\nSection.Description = SectionDescription;\nSection.Content = SectionContent;\nSection.Row = SectionRow;\nSection.ViewOnlyRow = SectionViewOnlyRow;\nSection.DestructiveRow = SectionDestructiveRow;\nSection.Divider = SectionDivider;\n"],"mappings":";;;;;;AAKA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWA,cAAAA,GACT,wGACA,mGACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,mBAAmB,EAAE,WAAW,GAAG,SAAkC;CACnF,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,YAAAA,KAAD;EACE,SAAQ;EACR,MAAK;EACL,aAAU;EACV,WAAWC,cAAAA,GAAG,4BAA4B,SAAS;EACnD,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,MAAK;EAAY,oBAAiB;EAAa,WAAWC,cAAAA,GAAG,kBAAkB,SAAS;EAAG,GAAI;CAAQ,CAAA;AACrH;;ACAA,SAAgB,cAAc,EAAE,UAAU,WAAW,QAAQ,OAAO,GAAG,SAA6B;CAClG,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;EACE,aAAU;EACV,WAAWC,cAAAA,GACT,yJACA,6YACA,8XACA,SAAS,QACT,SACF;EACA,GAAI;EAEH;CACK,CAAA;AAEZ;;AClBA,SAAgB,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CACjF,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,aAAU;EAAsB,WAAWC,cAAAA,GAAG,iCAAiC,SAAS;EAAG,GAAI;CAAQ,CAAA;AACrH;;ACAA,SAAgB,eAAe,EAAE,eAAe,MAAM,UAAU,WAAW,GAAG,SAA8B;CAG1G,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,cAAD;EACE,aAAU;EACV,WAAWC,cAAAA,GACT,4WACA,sJACA,+JACA,SACF;EACA,GAAI;EAEH;CACS,CAAA;AAEhB;;ACfA,SAAgB,YAAY,EAAE,UAAU,WAAW,UAAU,WAAW,GAAG,SAA2B;CACpG,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EACE,aAAU;EACV,gBAAc;EACd,WAAWC,cAAAA,GACT,iBACA,YAAY,aAAa,cACzB,YAAY,UAAU,kBACtB,YAAY,aAAa,sCACzB,SACF;EACA,GAAI;EAEH;CACM,CAAA;AAEb;AAEA,SAAgB,eAAe,EAAE,UAAU,WAAW,GAAG,SAAoC;CAC3F,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAS,WAAWA,cAAAA,GAAG,cAAc,SAAS;EAAG,GAAI;EAClD;CACM,CAAA;AAEb;;ACjBA,SAAS,eAAe,EACtB,OACA,aACA,SACA,UACA,WACA,WAAW,OACX,UACA,UACA,WAAW,OACX,cAAc,OACd,GAAG,SAC+D;CAClE,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,yBAAAA,OAAD;EACE,aAAY;EACZ,SAAS,QAAQ,QAAQ;EACzB,UAAU,YAAY;EACtB,aAAU;EACV,WAAWC,cAAAA,GACT,yUACA,SACF;EACA,GAAI;EATN,UAAA,CAWE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;GAAK,WAAU;GAAf,UAAA;IACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,yBAAAA,YAAD;KACE,GAAK,UAAU,EAAE,QAAQ,IAAI,CAAC;KACpB;KACV,WAAWD,cAAAA,GAAG,eAAe,6BAA6B;KAEzD,UAAA;IACS,CAAA;IACX,eAAe,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAACE,yBAAAA,kBAAD;KAAkB,WAAU;KAAoB,UAAA;IAA8B,CAAA;IACtG,iBAAA,GAAA,kBAAA,IAAA,CAACC,yBAAAA,YAAD;KAAY,WAAU;KAAQ,UAAA;IAAqB,CAAA;GAChD;EACJ,CAAA,GAAA,YAAY,QACX,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GACE,aAAU;GACV,WAAWH,cAAAA,GACT,+BACA,YAAY,4DACd;GAEA,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACI,qBAAAA,oBAAD;IAA8B;IAAW;GAA6B,CAAA;EACnE,CAAA,CAEF;;AAEX;;AAGA,SAAgB,WAAW,OAAwB;CACjD,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD,EAAgB,GAAI,MAAQ,CAAA;AACrC;;AAGA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;EAAgB,GAAI;EAAO,UAAA;CAAU,CAAA;AAC9C;;AAGA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;EAAgB,GAAI;EAAO,aAAA;CAAa,CAAA;AACjD;;AC9DA,SAAgB,QAAQ,OAAyB;CAC/C,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAD,EAAa,GAAI,MAAQ,CAAA;AAClC;AAEA,QAAQ,SAAS;AACjB,QAAQ,aAAa;AACrB,QAAQ,UAAU;AAClB,QAAQ,cAAc;AACtB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,cAAc;AACtB,QAAQ,iBAAiB;AACzB,QAAQ,UAAU"}
|
|
1
|
+
{"version":3,"file":"Section-Co1kxY3S.cjs","names":["cn","Txt","cn","cn","cn","cn","HeadingTag","cn","cn","Field","cn","FieldLabel","FieldDescription","FieldError","SettingsRowControl"],"sources":["../src/ds/components/Section/section-content.tsx","../src/ds/components/Section/section-description.tsx","../src/ds/components/Section/section-divider.tsx","../src/ds/components/Section/section-header.tsx","../src/ds/components/Section/section-header-text.tsx","../src/ds/components/Section/section-heading.tsx","../src/ds/components/Section/section-root.tsx","../src/ds/components/Section/section-row.tsx","../src/ds/components/Section/section.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionContentProps = ComponentProps<'div'>;\n\nexport function SectionContent({ className, ...props }: SectionContentProps) {\n return (\n <div\n data-slot=\"section-content\"\n className={cn(\n 'group-data-[variant=factory]/section:overflow-hidden group-data-[variant=factory]/section:rounded-xl',\n 'group-data-[variant=factory]/section:bg-card group-data-[variant=factory]/section:shadow-raised',\n className,\n )}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDescriptionProps = ComponentProps<'p'>;\n\nexport function SectionDescription({ className, ...props }: SectionDescriptionProps) {\n return (\n <Txt\n variant=\"caption\"\n tone=\"muted\"\n data-slot=\"section-description\"\n className={cn('max-w-[62ch] text-pretty', className)}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDividerProps = ComponentProps<'div'>;\n\nexport function SectionDivider({ className, ...props }: SectionDividerProps) {\n return <div role=\"separator\" aria-orientation=\"horizontal\" className={cn('h-px bg-border', className)} {...props} />;\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderProps = ComponentProps<'header'> & {\n inset?: boolean;\n};\n\nexport function SectionHeader({ children, className, inset = false, ...props }: SectionHeaderProps) {\n return (\n <header\n data-slot=\"section-header\"\n className={cn(\n 'group-data-[variant=default]/section:grid group-data-[variant=default]/section:grid-cols-[1fr_auto] group-data-[variant=default]/section:items-center',\n 'group-data-[variant=flat]/section:flex group-data-[variant=flat]/section:min-w-0 group-data-[variant=flat]/section:flex-col group-data-[variant=flat]/section:gap-3 group-data-[variant=flat]/section:pb-3 sm:group-data-[variant=flat]/section:flex-row sm:group-data-[variant=flat]/section:items-start sm:group-data-[variant=flat]/section:justify-between sm:group-data-[variant=flat]/section:gap-4',\n 'group-data-[variant=factory]/section:flex group-data-[variant=factory]/section:min-w-0 group-data-[variant=factory]/section:flex-col group-data-[variant=factory]/section:gap-2 sm:group-data-[variant=factory]/section:flex-row sm:group-data-[variant=factory]/section:items-start sm:group-data-[variant=factory]/section:justify-between sm:group-data-[variant=factory]/section:gap-4',\n inset && 'px-4',\n className,\n )}\n {...props}\n >\n {children}\n </header>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderTextProps = ComponentProps<'div'>;\n\nexport function SectionHeaderText({ className, ...props }: SectionHeaderTextProps) {\n return <div data-slot=\"section-header-text\" className={cn('flex min-w-0 flex-col gap-1.5', className)} {...props} />;\n}\n","import type { ComponentProps, ElementType } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeadingProps = ComponentProps<'h2'> & {\n headingLevel?: 'h2' | 'h3' | 'h4';\n};\n\nexport function SectionHeading({ headingLevel = 'h2', children, className, ...props }: SectionHeadingProps) {\n const HeadingTag: ElementType = headingLevel;\n\n return (\n <HeadingTag\n data-slot=\"section-heading\"\n className={cn(\n 'group-data-[variant=default]/section:flex group-data-[variant=default]/section:items-center group-data-[variant=default]/section:gap-2 group-data-[variant=default]/section:text-subheading group-data-[variant=default]/section:text-muted-foreground group-data-[variant=default]/section:[&>svg]:size-[1.2em] group-data-[variant=default]/section:[&>svg]:opacity-50',\n 'group-data-[variant=flat]/section:text-subheading group-data-[variant=flat]/section:text-balance group-data-[variant=flat]/section:text-foreground',\n 'group-data-[variant=factory]/section:text-subheading group-data-[variant=factory]/section:text-balance group-data-[variant=factory]/section:text-foreground',\n className,\n )}\n {...props}\n >\n {children}\n </HeadingTag>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionVariant = 'default' | 'flat' | 'factory';\n\nexport type SectionRootProps = ComponentProps<'section'> & {\n variant?: SectionVariant;\n};\n\nexport function SectionRoot({ variant = 'default', children, className, ...props }: SectionRootProps) {\n return (\n <section\n data-slot=\"section\"\n data-variant={variant}\n className={cn(\n 'group/section',\n variant === 'default' && 'grid gap-3',\n variant === 'flat' && 'w-full min-w-0',\n variant === 'factory' && 'flex w-full min-w-0 flex-col gap-2',\n className,\n )}\n {...props}\n >\n {children}\n </section>\n );\n}\n\nexport function SubSectionRoot({ children, className, ...props }: ComponentProps<'section'>) {\n return (\n <section className={cn('grid gap-2', className)} {...props}>\n {children}\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@/ds/components/Field';\nimport type { FieldProps } from '@/ds/components/Field';\nimport { SettingsRowControl } from '@/ds/new/settings/settings-row';\nimport { cn } from '@/lib/utils';\n\nexport type SectionRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n htmlFor?: string;\n children?: ReactNode;\n required?: boolean;\n errorMsg?: ReactNode;\n};\nexport type SectionViewOnlyRowProps = SectionRowProps & { children: ReactNode };\nexport type SectionDestructiveRowProps = SectionRowProps & { children: ReactNode };\n\nfunction SectionRowBase({\n label,\n description,\n htmlFor,\n children,\n className,\n required = false,\n errorMsg,\n disabled,\n viewOnly = false,\n destructive = false,\n ...props\n}: SectionRowProps & { viewOnly?: boolean; destructive?: boolean }) {\n return (\n <Field\n orientation=\"responsive\"\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"section-row\"\n className={cn(\n 'grid min-w-0 gap-3 group-data-[variant=factory]/section:px-3 group-data-[variant=factory]/section:py-2 group-data-[variant=flat]/section:p-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:group-data-[variant=default]/section:gap-4 sm:group-data-[variant=factory]/section:gap-4 sm:group-data-[variant=flat]/section:gap-6',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0\">\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(destructive && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && <FieldDescription className=\"mt-1 text-pretty\">{description}</FieldDescription>}\n <FieldError className=\"mt-1\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"section-control\"\n className={cn(\n 'min-w-0 sm:justify-self-end',\n viewOnly && 'flex items-center gap-2 text-body-sm text-muted-foreground',\n )}\n >\n <SettingsRowControl viewOnly={viewOnly}>{children}</SettingsRowControl>\n </div>\n )}\n </Field>\n );\n}\n\n/** @deprecated Use SettingsRow from @mastra/playground-ui/new/settings for settings pages. */\nexport function SectionRow(props: SectionRowProps) {\n return <SectionRowBase {...props} />;\n}\n\n/** @deprecated Use SettingsRow with viewOnly from @mastra/playground-ui/new/settings. */\nexport function SectionViewOnlyRow(props: SectionViewOnlyRowProps) {\n return <SectionRowBase {...props} viewOnly />;\n}\n\n/** @deprecated Use SettingsRow with tone=\"destructive\" from @mastra/playground-ui/new/settings. */\nexport function SectionDestructiveRow(props: SectionDestructiveRowProps) {\n return <SectionRowBase {...props} destructive />;\n}\n","import { SectionContent } from './section-content';\nimport { SectionDescription } from './section-description';\nimport { SectionDivider } from './section-divider';\nimport { SectionHeader } from './section-header';\nimport { SectionHeaderText } from './section-header-text';\nimport { SectionHeading } from './section-heading';\nimport { SectionRoot } from './section-root';\nimport type { SectionRootProps } from './section-root';\nimport { SectionDestructiveRow, SectionRow, SectionViewOnlyRow } from './section-row';\n\nexport { type SectionContentProps } from './section-content';\nexport { type SectionDescriptionProps } from './section-description';\nexport { type SectionDividerProps } from './section-divider';\nexport { type SectionHeaderProps } from './section-header';\nexport { type SectionHeaderTextProps } from './section-header-text';\nexport { type SectionHeadingProps } from './section-heading';\nexport { type SectionRootProps as SectionProps, type SectionVariant } from './section-root';\nexport { type SectionDestructiveRowProps, type SectionRowProps, type SectionViewOnlyRowProps } from './section-row';\n\nexport function Section(props: SectionRootProps) {\n return <SectionRoot {...props} />;\n}\n\nSection.Header = SectionHeader;\nSection.HeaderText = SectionHeaderText;\nSection.Heading = SectionHeading;\nSection.Description = SectionDescription;\nSection.Content = SectionContent;\nSection.Row = SectionRow;\nSection.ViewOnlyRow = SectionViewOnlyRow;\nSection.DestructiveRow = SectionDestructiveRow;\nSection.Divider = SectionDivider;\n"],"mappings":"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"}
|
|
@@ -3,14 +3,13 @@ const require_page_layout = require("../page-layout-1mI4bnlW.cjs");
|
|
|
3
3
|
const require_icons_central_IconArrowLeft = require("../icons/central/IconArrowLeft.cjs.js");
|
|
4
4
|
const require_icons_Icon = require("../icons/Icon.cjs.js");
|
|
5
5
|
const require_page_header = require("../page-header-pZCts_WC.cjs");
|
|
6
|
-
const require_settings_layout = require("../settings-layout-BxtShpY6.cjs");
|
|
7
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
7
|
// src/ds/components/FormLayout/form-layout.tsx
|
|
9
8
|
/**
|
|
10
9
|
* The page frame for any create or edit form: New alert, New project, Edit destination.
|
|
11
10
|
*
|
|
12
|
-
* A centered 640px column, the same as `SettingsLayout`, under a header made of a back link and the page title.
|
|
13
|
-
* The
|
|
11
|
+
* A centered 640px column, the same width as `SettingsLayout`, under a header made of a back link and the page title.
|
|
12
|
+
* The back link, the title, each section's `SettingsTitle` and the field labels share one left edge, and sections sit 28px apart.
|
|
14
13
|
* There is no breadcrumb bar: the back link is the way out, so a form page shows one way back, not two.
|
|
15
14
|
*
|
|
16
15
|
* Use another frame when the page is not a form:
|
|
@@ -20,8 +19,10 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
20
19
|
* Pass the app's router link as `LinkComponent` so the back link navigates without a reload. It renders an `<a>` otherwise.
|
|
21
20
|
*/
|
|
22
21
|
function FormLayout({ backHref, backLabel, title, isLoading = false, LinkComponent: Link = "a", children }) {
|
|
23
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_page_layout.PageLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
24
|
-
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_page_layout.PageLayout, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
|
+
"data-slot": "form-layout",
|
|
24
|
+
className: "mx-auto grid min-h-full w-full max-w-160 min-w-0 grid-rows-[auto_1fr] gap-8 py-6",
|
|
25
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_page_header.PageHeader, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_page_header.PageHeader.Eyebrow, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Link, {
|
|
25
26
|
href: backHref,
|
|
26
27
|
"aria-label": `Back to ${backLabel}`,
|
|
27
28
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_Icon.Icon, {
|
|
@@ -32,8 +33,11 @@ function FormLayout({ backHref, backLabel, title, isLoading = false, LinkCompone
|
|
|
32
33
|
isLoading,
|
|
33
34
|
"aria-busy": isLoading || void 0,
|
|
34
35
|
children: title
|
|
35
|
-
})] }),
|
|
36
|
-
|
|
36
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
37
|
+
"data-slot": "form-layout-content",
|
|
38
|
+
className: "grid min-w-0 content-start gap-7 has-[>[data-slot=empty-state-fill]:only-child]:content-stretch",
|
|
39
|
+
children
|
|
40
|
+
})]
|
|
37
41
|
}) });
|
|
38
42
|
}
|
|
39
43
|
exports.FormLayout = FormLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormLayout.cjs.js","names":["PageLayout","
|
|
1
|
+
{"version":3,"file":"FormLayout.cjs.js","names":["PageLayout","PageHeader","Icon","IconArrowLeft"],"sources":["../../src/ds/components/FormLayout/form-layout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { PageLayout } from '../PageLayout/page-layout';\nimport { IconArrowLeft } from '@/ds/icons/central/IconArrowLeft';\nimport { Icon } from '@/ds/icons/Icon';\nimport { PageHeader } from '@/ds/new/layout/page-header/page-header';\nimport type { LinkComponent } from '@/ds/types/link-component';\n\nexport interface FormLayoutProps {\n backHref: string;\n backLabel: string;\n title: ReactNode;\n isLoading?: boolean;\n LinkComponent?: LinkComponent;\n children: ReactNode;\n}\n\n/**\n * The page frame for any create or edit form: New alert, New project, Edit destination.\n *\n * A centered 640px column, the same width as `SettingsLayout`, under a header made of a back link and the page title.\n * The back link, the title, each section's `SettingsTitle` and the field labels share one left edge, and sections sit 28px apart.\n * There is no breadcrumb bar: the back link is the way out, so a form page shows one way back, not two.\n *\n * Use another frame when the page is not a form:\n * - `SettingsLayout` inside a `PageLayout` with breadcrumbs, for a settings page someone browses to and changes in place.\n * - `PageLayout variant=\"narrow\"` with a `PageHeader`, for a one-column page to read: an overview, a feed, a detail page.\n *\n * Pass the app's router link as `LinkComponent` so the back link navigates without a reload. It renders an `<a>` otherwise.\n */\nexport function FormLayout({\n backHref,\n backLabel,\n title,\n isLoading = false,\n LinkComponent: Link = 'a',\n children,\n}: FormLayoutProps) {\n return (\n <PageLayout>\n <div\n data-slot=\"form-layout\"\n className=\"mx-auto grid min-h-full w-full max-w-160 min-w-0 grid-rows-[auto_1fr] gap-8 py-6\"\n >\n <PageHeader>\n <PageHeader.Eyebrow>\n <Link href={backHref} aria-label={`Back to ${backLabel}`}>\n <Icon size=\"xs\">\n <IconArrowLeft aria-hidden />\n </Icon>\n {backLabel}\n </Link>\n </PageHeader.Eyebrow>\n <PageHeader.Title isLoading={isLoading} aria-busy={isLoading || undefined}>\n {title}\n </PageHeader.Title>\n </PageHeader>\n <div\n data-slot=\"form-layout-content\"\n className=\"grid min-w-0 content-start gap-7 has-[>[data-slot=empty-state-fill]:only-child]:content-stretch\"\n >\n {children}\n </div>\n </div>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,WAAW,EACzB,UACA,WACA,OACA,YAAY,OACZ,eAAe,OAAO,KACtB,YACkB;CAClB,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,oBAAAA,YAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAU;EAFZ,UAAA,CAIE,iBAAA,GAAA,kBAAA,KAAA,CAACC,oBAAAA,YAAD,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACA,oBAAAA,WAAW,SAAZ,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,MAAD;GAAM,MAAM;GAAU,cAAY,WAAW;GAA7C,UAAA,CACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,mBAAAA,MAAD;IAAM,MAAK;IACT,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,oCAAAA,eAAD,EAAe,eAAA,KAAa,CAAA;GACxB,CAAA,GACL,SACG;EACY,CAAA,EAAA,CAAA,GACpB,iBAAA,GAAA,kBAAA,IAAA,CAACF,oBAAAA,WAAW,OAAZ;GAA6B;GAAW,aAAW,aAAa,KAAA;GAC7D,UAAA;EACe,CAAA,CACR,EAAA,CAAA,GACZ,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GACE,aAAU;GACV,WAAU;GAET;EACE,CAAA,CACF;CACK,CAAA,EAAA,CAAA;AAEhB"}
|
|
@@ -2,14 +2,13 @@ import { t as PageLayout } from "../page-layout-nvAs_Fis.js";
|
|
|
2
2
|
import { IconArrowLeft } from "../icons/central/IconArrowLeft.es.js";
|
|
3
3
|
import { Icon } from "../icons/Icon.es.js";
|
|
4
4
|
import { t as PageHeader } from "../page-header-Maytcmgh.js";
|
|
5
|
-
import { t as SettingsLayout } from "../settings-layout-UPnWI3FZ.js";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
// src/ds/components/FormLayout/form-layout.tsx
|
|
8
7
|
/**
|
|
9
8
|
* The page frame for any create or edit form: New alert, New project, Edit destination.
|
|
10
9
|
*
|
|
11
|
-
* A centered 640px column, the same as `SettingsLayout`, under a header made of a back link and the page title.
|
|
12
|
-
* The
|
|
10
|
+
* A centered 640px column, the same width as `SettingsLayout`, under a header made of a back link and the page title.
|
|
11
|
+
* The back link, the title, each section's `SettingsTitle` and the field labels share one left edge, and sections sit 28px apart.
|
|
13
12
|
* There is no breadcrumb bar: the back link is the way out, so a form page shows one way back, not two.
|
|
14
13
|
*
|
|
15
14
|
* Use another frame when the page is not a form:
|
|
@@ -19,8 +18,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
19
18
|
* Pass the app's router link as `LinkComponent` so the back link navigates without a reload. It renders an `<a>` otherwise.
|
|
20
19
|
*/
|
|
21
20
|
function FormLayout({ backHref, backLabel, title, isLoading = false, LinkComponent: Link = "a", children }) {
|
|
22
|
-
return /* @__PURE__ */ jsx(PageLayout, { children: /* @__PURE__ */
|
|
23
|
-
|
|
21
|
+
return /* @__PURE__ */ jsx(PageLayout, { children: /* @__PURE__ */ jsxs("div", {
|
|
22
|
+
"data-slot": "form-layout",
|
|
23
|
+
className: "mx-auto grid min-h-full w-full max-w-160 min-w-0 grid-rows-[auto_1fr] gap-8 py-6",
|
|
24
|
+
children: [/* @__PURE__ */ jsxs(PageHeader, { children: [/* @__PURE__ */ jsx(PageHeader.Eyebrow, { children: /* @__PURE__ */ jsxs(Link, {
|
|
24
25
|
href: backHref,
|
|
25
26
|
"aria-label": `Back to ${backLabel}`,
|
|
26
27
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
@@ -31,8 +32,11 @@ function FormLayout({ backHref, backLabel, title, isLoading = false, LinkCompone
|
|
|
31
32
|
isLoading,
|
|
32
33
|
"aria-busy": isLoading || void 0,
|
|
33
34
|
children: title
|
|
34
|
-
})] }),
|
|
35
|
-
|
|
35
|
+
})] }), /* @__PURE__ */ jsx("div", {
|
|
36
|
+
"data-slot": "form-layout-content",
|
|
37
|
+
className: "grid min-w-0 content-start gap-7 has-[>[data-slot=empty-state-fill]:only-child]:content-stretch",
|
|
38
|
+
children
|
|
39
|
+
})]
|
|
36
40
|
}) });
|
|
37
41
|
}
|
|
38
42
|
export { FormLayout };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormLayout.es.js","names":[],"sources":["../../src/ds/components/FormLayout/form-layout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { PageLayout } from '../PageLayout/page-layout';\nimport { IconArrowLeft } from '@/ds/icons/central/IconArrowLeft';\nimport { Icon } from '@/ds/icons/Icon';\nimport { PageHeader } from '@/ds/new/layout/page-header/page-header';\nimport
|
|
1
|
+
{"version":3,"file":"FormLayout.es.js","names":[],"sources":["../../src/ds/components/FormLayout/form-layout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { PageLayout } from '../PageLayout/page-layout';\nimport { IconArrowLeft } from '@/ds/icons/central/IconArrowLeft';\nimport { Icon } from '@/ds/icons/Icon';\nimport { PageHeader } from '@/ds/new/layout/page-header/page-header';\nimport type { LinkComponent } from '@/ds/types/link-component';\n\nexport interface FormLayoutProps {\n backHref: string;\n backLabel: string;\n title: ReactNode;\n isLoading?: boolean;\n LinkComponent?: LinkComponent;\n children: ReactNode;\n}\n\n/**\n * The page frame for any create or edit form: New alert, New project, Edit destination.\n *\n * A centered 640px column, the same width as `SettingsLayout`, under a header made of a back link and the page title.\n * The back link, the title, each section's `SettingsTitle` and the field labels share one left edge, and sections sit 28px apart.\n * There is no breadcrumb bar: the back link is the way out, so a form page shows one way back, not two.\n *\n * Use another frame when the page is not a form:\n * - `SettingsLayout` inside a `PageLayout` with breadcrumbs, for a settings page someone browses to and changes in place.\n * - `PageLayout variant=\"narrow\"` with a `PageHeader`, for a one-column page to read: an overview, a feed, a detail page.\n *\n * Pass the app's router link as `LinkComponent` so the back link navigates without a reload. It renders an `<a>` otherwise.\n */\nexport function FormLayout({\n backHref,\n backLabel,\n title,\n isLoading = false,\n LinkComponent: Link = 'a',\n children,\n}: FormLayoutProps) {\n return (\n <PageLayout>\n <div\n data-slot=\"form-layout\"\n className=\"mx-auto grid min-h-full w-full max-w-160 min-w-0 grid-rows-[auto_1fr] gap-8 py-6\"\n >\n <PageHeader>\n <PageHeader.Eyebrow>\n <Link href={backHref} aria-label={`Back to ${backLabel}`}>\n <Icon size=\"xs\">\n <IconArrowLeft aria-hidden />\n </Icon>\n {backLabel}\n </Link>\n </PageHeader.Eyebrow>\n <PageHeader.Title isLoading={isLoading} aria-busy={isLoading || undefined}>\n {title}\n </PageHeader.Title>\n </PageHeader>\n <div\n data-slot=\"form-layout-content\"\n className=\"grid min-w-0 content-start gap-7 has-[>[data-slot=empty-state-fill]:only-child]:content-stretch\"\n >\n {children}\n </div>\n </div>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,WAAW,EACzB,UACA,WACA,OACA,YAAY,OACZ,eAAe,OAAO,KACtB,YACkB;CAClB,OACE,oBAAC,YAAD,EAAA,UACE,qBAAC,OAAD;EACE,aAAU;EACV,WAAU;EAFZ,UAAA,CAIE,qBAAC,YAAD,EAAA,UAAA,CACE,oBAAC,WAAW,SAAZ,EAAA,UACE,qBAAC,MAAD;GAAM,MAAM;GAAU,cAAY,WAAW;GAA7C,UAAA,CACE,oBAAC,MAAD;IAAM,MAAK;IACT,UAAA,oBAAC,eAAD,EAAe,eAAA,KAAa,CAAA;GACxB,CAAA,GACL,SACG;EACY,CAAA,EAAA,CAAA,GACpB,oBAAC,WAAW,OAAZ;GAA6B;GAAW,aAAW,aAAa,KAAA;GAC7D,UAAA;EACe,CAAA,CACR,EAAA,CAAA,GACZ,oBAAC,OAAD;GACE,aAAU;GACV,WAAU;GAET;EACE,CAAA,CACF;CACK,CAAA,EAAA,CAAA;AAEhB"}
|
|
@@ -7,6 +7,8 @@ let react = require("react");
|
|
|
7
7
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let _base_ui_react_preview_card = require("@base-ui/react/preview-card");
|
|
10
|
+
// src/ds/components/HoverCard/create-hover-card-handle.ts
|
|
11
|
+
var createHoverCardHandle = _base_ui_react_preview_card.PreviewCard.createHandle;
|
|
10
12
|
// src/ds/components/HoverCard/hover-card.tsx
|
|
11
13
|
var HoverCard = _base_ui_react_preview_card.PreviewCard.Root;
|
|
12
14
|
var HoverCardTrigger = react.forwardRef(({ className, delay = 250, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_preview_card.PreviewCard.Trigger, {
|
|
@@ -49,5 +51,6 @@ HoverCardContent.displayName = "HoverCardContent";
|
|
|
49
51
|
exports.HoverCard = HoverCard;
|
|
50
52
|
exports.HoverCardContent = HoverCardContent;
|
|
51
53
|
exports.HoverCardTrigger = HoverCardTrigger;
|
|
54
|
+
exports.createHoverCardHandle = createHoverCardHandle;
|
|
52
55
|
|
|
53
56
|
//# sourceMappingURL=HoverCard.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverCard.cjs.js","names":["PreviewCardPrimitive","React","FLOATING_POSITION_METHOD","cn","overlaySurfaceStyle"],"sources":["../../src/ds/components/HoverCard/hover-card.tsx"],"sourcesContent":["import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';\nimport type { PreviewCardPopupProps, PreviewCardPositionerProps } from '@base-ui/react/preview-card';\nimport * as React from 'react';\n\nimport { FLOATING_POSITION_METHOD } from '@/ds/primitives/floating';\nimport { overlaySurfaceStyle } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\nconst HoverCard = PreviewCardPrimitive.Root;\n\nexport type HoverCardTriggerProps = Omit<PreviewCardPrimitive.Trigger.Props, 'className'> & {\n className?: string;\n};\n\nconst HoverCardTrigger = React.forwardRef<HTMLAnchorElement, HoverCardTriggerProps>(\n ({ className, delay = 250, ...props }, ref) => (\n <PreviewCardPrimitive.Trigger ref={ref} delay={delay} className={className} {...props} />\n ),\n);\nHoverCardTrigger.displayName = 'HoverCardTrigger';\n\ntype HoverCardContentPositionerProps = Omit<PreviewCardPositionerProps, keyof PreviewCardPopupProps>;\n\nexport type HoverCardContentProps = Omit<PreviewCardPopupProps, 'className'> &\n HoverCardContentPositionerProps & {\n className?: string;\n container?: HTMLElement | null;\n showArrow?: boolean;\n };\n\nconst HoverCardContent = React.forwardRef<HTMLDivElement, HoverCardContentProps>(\n (\n {\n className,\n children,\n side = 'top',\n align,\n sideOffset = 5,\n container,\n showArrow = true,\n anchor,\n positionMethod = FLOATING_POSITION_METHOD,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n ...props\n },\n ref,\n ) => {\n const positionerProps: HoverCardContentPositionerProps = {\n side,\n align,\n sideOffset,\n anchor,\n positionMethod,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n };\n\n return (\n <PreviewCardPrimitive.Portal container={container ?? undefined}>\n <PreviewCardPrimitive.Positioner className=\"z-50 data-[anchor-hidden]:hidden\" {...positionerProps}>\n <PreviewCardPrimitive.Popup\n ref={ref}\n className={cn(\n 'w-auto max-w-100 origin-[var(--transform-origin)] rounded-xl px-3 py-2.5 text-caption text-foreground',\n overlaySurfaceStyle,\n 'data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95 data-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95',\n 'data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',\n 'motion-reduce:data-[closed]:animate-none motion-reduce:data-[open]:animate-none',\n className,\n )}\n {...props}\n >\n {children}\n {showArrow && <PreviewCardPrimitive.Arrow className=\"fill-popover\" />}\n </PreviewCardPrimitive.Popup>\n </PreviewCardPrimitive.Positioner>\n </PreviewCardPrimitive.Portal>\n );\n },\n);\nHoverCardContent.displayName = 'HoverCardContent';\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"HoverCard.cjs.js","names":["PreviewCardPrimitive","PreviewCardPrimitive","React","FLOATING_POSITION_METHOD","cn","overlaySurfaceStyle"],"sources":["../../src/ds/components/HoverCard/create-hover-card-handle.ts","../../src/ds/components/HoverCard/hover-card.tsx"],"sourcesContent":["import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';\n\nexport const createHoverCardHandle = PreviewCardPrimitive.createHandle;\n","import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';\nimport type { PreviewCardPopupProps, PreviewCardPositionerProps } from '@base-ui/react/preview-card';\nimport * as React from 'react';\n\nimport { FLOATING_POSITION_METHOD } from '@/ds/primitives/floating';\nimport { overlaySurfaceStyle } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\nconst HoverCard = PreviewCardPrimitive.Root;\n\nexport type HoverCardTriggerProps = Omit<PreviewCardPrimitive.Trigger.Props, 'className'> & {\n className?: string;\n};\n\nconst HoverCardTrigger = React.forwardRef<HTMLAnchorElement, HoverCardTriggerProps>(\n ({ className, delay = 250, ...props }, ref) => (\n <PreviewCardPrimitive.Trigger ref={ref} delay={delay} className={className} {...props} />\n ),\n);\nHoverCardTrigger.displayName = 'HoverCardTrigger';\n\ntype HoverCardContentPositionerProps = Omit<PreviewCardPositionerProps, keyof PreviewCardPopupProps>;\n\nexport type HoverCardContentProps = Omit<PreviewCardPopupProps, 'className'> &\n HoverCardContentPositionerProps & {\n className?: string;\n container?: HTMLElement | null;\n showArrow?: boolean;\n };\n\nconst HoverCardContent = React.forwardRef<HTMLDivElement, HoverCardContentProps>(\n (\n {\n className,\n children,\n side = 'top',\n align,\n sideOffset = 5,\n container,\n showArrow = true,\n anchor,\n positionMethod = FLOATING_POSITION_METHOD,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n ...props\n },\n ref,\n ) => {\n const positionerProps: HoverCardContentPositionerProps = {\n side,\n align,\n sideOffset,\n anchor,\n positionMethod,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n };\n\n return (\n <PreviewCardPrimitive.Portal container={container ?? undefined}>\n <PreviewCardPrimitive.Positioner className=\"z-50 data-[anchor-hidden]:hidden\" {...positionerProps}>\n <PreviewCardPrimitive.Popup\n ref={ref}\n className={cn(\n 'w-auto max-w-100 origin-[var(--transform-origin)] rounded-xl px-3 py-2.5 text-caption text-foreground',\n overlaySurfaceStyle,\n 'data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95 data-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95',\n 'data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',\n 'motion-reduce:data-[closed]:animate-none motion-reduce:data-[open]:animate-none',\n className,\n )}\n {...props}\n >\n {children}\n {showArrow && <PreviewCardPrimitive.Arrow className=\"fill-popover\" />}\n </PreviewCardPrimitive.Popup>\n </PreviewCardPrimitive.Positioner>\n </PreviewCardPrimitive.Portal>\n );\n },\n);\nHoverCardContent.displayName = 'HoverCardContent';\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":";;;;;;;;;;AAEA,IAAa,wBAAwBA,4BAAAA,YAAqB;;ACM1D,IAAM,YAAYC,4BAAAA,YAAqB;AAMvC,IAAM,mBAAmBC,MAAM,YAC5B,EAAE,WAAW,QAAQ,KAAK,GAAG,SAAS,QACrC,iBAAA,GAAA,kBAAA,IAAA,CAACD,4BAAAA,YAAqB,SAAtB;CAAmC;CAAY;CAAkB;CAAW,GAAI;AAAQ,CAAA,CAE5F;AACA,iBAAiB,cAAc;AAW/B,IAAM,mBAAmBC,MAAM,YAE3B,EACE,WACA,UACA,OAAO,OACP,OACA,aAAa,GACb,WACA,YAAY,MACZ,QACA,iBAAiBC,4BAAAA,0BACjB,aACA,mBACA,kBACA,QACA,cACA,uBACA,oBACA,GAAG,SAEL,QACG;CACH,MAAM,kBAAmD;EACvD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACF,4BAAAA,YAAqB,QAAtB;EAA6B,WAAW,aAAa,KAAA;EACnD,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACA,4BAAAA,YAAqB,YAAtB;GAAiC,WAAU;GAAmC,GAAI;GAChF,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAACA,4BAAAA,YAAqB,OAAtB;IACO;IACL,WAAWG,cAAAA,GACT,yGACAC,kCAAAA,qBACA,oJACA,+JACA,mFACA,SACF;IACA,GAAI;IAVN,UAAA,CAYG,UACA,aAAa,iBAAA,GAAA,kBAAA,IAAA,CAACJ,4BAAAA,YAAqB,OAAtB,EAA4B,WAAU,eAAgB,CAAA,CAC1C;;EACG,CAAA;CACN,CAAA;AAEjC,CACF;AACA,iBAAiB,cAAc"}
|
|
@@ -4,6 +4,8 @@ import { t as cn } from "../utils-DQx8TpNT.js";
|
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
7
|
+
// src/ds/components/HoverCard/create-hover-card-handle.ts
|
|
8
|
+
var createHoverCardHandle = PreviewCard.createHandle;
|
|
7
9
|
// src/ds/components/HoverCard/hover-card.tsx
|
|
8
10
|
var HoverCard = PreviewCard.Root;
|
|
9
11
|
var HoverCardTrigger = React$1.forwardRef(({ className, delay = 250, ...props }, ref) => /* @__PURE__ */ jsx(PreviewCard.Trigger, {
|
|
@@ -43,6 +45,6 @@ var HoverCardContent = React$1.forwardRef(({ className, children, side = "top",
|
|
|
43
45
|
});
|
|
44
46
|
});
|
|
45
47
|
HoverCardContent.displayName = "HoverCardContent";
|
|
46
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
48
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger, createHoverCardHandle };
|
|
47
49
|
|
|
48
50
|
//# sourceMappingURL=HoverCard.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverCard.es.js","names":["PreviewCardPrimitive","React"],"sources":["../../src/ds/components/HoverCard/hover-card.tsx"],"sourcesContent":["import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';\nimport type { PreviewCardPopupProps, PreviewCardPositionerProps } from '@base-ui/react/preview-card';\nimport * as React from 'react';\n\nimport { FLOATING_POSITION_METHOD } from '@/ds/primitives/floating';\nimport { overlaySurfaceStyle } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\nconst HoverCard = PreviewCardPrimitive.Root;\n\nexport type HoverCardTriggerProps = Omit<PreviewCardPrimitive.Trigger.Props, 'className'> & {\n className?: string;\n};\n\nconst HoverCardTrigger = React.forwardRef<HTMLAnchorElement, HoverCardTriggerProps>(\n ({ className, delay = 250, ...props }, ref) => (\n <PreviewCardPrimitive.Trigger ref={ref} delay={delay} className={className} {...props} />\n ),\n);\nHoverCardTrigger.displayName = 'HoverCardTrigger';\n\ntype HoverCardContentPositionerProps = Omit<PreviewCardPositionerProps, keyof PreviewCardPopupProps>;\n\nexport type HoverCardContentProps = Omit<PreviewCardPopupProps, 'className'> &\n HoverCardContentPositionerProps & {\n className?: string;\n container?: HTMLElement | null;\n showArrow?: boolean;\n };\n\nconst HoverCardContent = React.forwardRef<HTMLDivElement, HoverCardContentProps>(\n (\n {\n className,\n children,\n side = 'top',\n align,\n sideOffset = 5,\n container,\n showArrow = true,\n anchor,\n positionMethod = FLOATING_POSITION_METHOD,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n ...props\n },\n ref,\n ) => {\n const positionerProps: HoverCardContentPositionerProps = {\n side,\n align,\n sideOffset,\n anchor,\n positionMethod,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n };\n\n return (\n <PreviewCardPrimitive.Portal container={container ?? undefined}>\n <PreviewCardPrimitive.Positioner className=\"z-50 data-[anchor-hidden]:hidden\" {...positionerProps}>\n <PreviewCardPrimitive.Popup\n ref={ref}\n className={cn(\n 'w-auto max-w-100 origin-[var(--transform-origin)] rounded-xl px-3 py-2.5 text-caption text-foreground',\n overlaySurfaceStyle,\n 'data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95 data-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95',\n 'data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',\n 'motion-reduce:data-[closed]:animate-none motion-reduce:data-[open]:animate-none',\n className,\n )}\n {...props}\n >\n {children}\n {showArrow && <PreviewCardPrimitive.Arrow className=\"fill-popover\" />}\n </PreviewCardPrimitive.Popup>\n </PreviewCardPrimitive.Positioner>\n </PreviewCardPrimitive.Portal>\n );\n },\n);\nHoverCardContent.displayName = 'HoverCardContent';\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"HoverCard.es.js","names":["PreviewCardPrimitive","PreviewCardPrimitive","React"],"sources":["../../src/ds/components/HoverCard/create-hover-card-handle.ts","../../src/ds/components/HoverCard/hover-card.tsx"],"sourcesContent":["import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';\n\nexport const createHoverCardHandle = PreviewCardPrimitive.createHandle;\n","import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';\nimport type { PreviewCardPopupProps, PreviewCardPositionerProps } from '@base-ui/react/preview-card';\nimport * as React from 'react';\n\nimport { FLOATING_POSITION_METHOD } from '@/ds/primitives/floating';\nimport { overlaySurfaceStyle } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\nconst HoverCard = PreviewCardPrimitive.Root;\n\nexport type HoverCardTriggerProps = Omit<PreviewCardPrimitive.Trigger.Props, 'className'> & {\n className?: string;\n};\n\nconst HoverCardTrigger = React.forwardRef<HTMLAnchorElement, HoverCardTriggerProps>(\n ({ className, delay = 250, ...props }, ref) => (\n <PreviewCardPrimitive.Trigger ref={ref} delay={delay} className={className} {...props} />\n ),\n);\nHoverCardTrigger.displayName = 'HoverCardTrigger';\n\ntype HoverCardContentPositionerProps = Omit<PreviewCardPositionerProps, keyof PreviewCardPopupProps>;\n\nexport type HoverCardContentProps = Omit<PreviewCardPopupProps, 'className'> &\n HoverCardContentPositionerProps & {\n className?: string;\n container?: HTMLElement | null;\n showArrow?: boolean;\n };\n\nconst HoverCardContent = React.forwardRef<HTMLDivElement, HoverCardContentProps>(\n (\n {\n className,\n children,\n side = 'top',\n align,\n sideOffset = 5,\n container,\n showArrow = true,\n anchor,\n positionMethod = FLOATING_POSITION_METHOD,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n ...props\n },\n ref,\n ) => {\n const positionerProps: HoverCardContentPositionerProps = {\n side,\n align,\n sideOffset,\n anchor,\n positionMethod,\n alignOffset,\n collisionBoundary,\n collisionPadding,\n sticky,\n arrowPadding,\n disableAnchorTracking,\n collisionAvoidance,\n };\n\n return (\n <PreviewCardPrimitive.Portal container={container ?? undefined}>\n <PreviewCardPrimitive.Positioner className=\"z-50 data-[anchor-hidden]:hidden\" {...positionerProps}>\n <PreviewCardPrimitive.Popup\n ref={ref}\n className={cn(\n 'w-auto max-w-100 origin-[var(--transform-origin)] rounded-xl px-3 py-2.5 text-caption text-foreground',\n overlaySurfaceStyle,\n 'data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95 data-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95',\n 'data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',\n 'motion-reduce:data-[closed]:animate-none motion-reduce:data-[open]:animate-none',\n className,\n )}\n {...props}\n >\n {children}\n {showArrow && <PreviewCardPrimitive.Arrow className=\"fill-popover\" />}\n </PreviewCardPrimitive.Popup>\n </PreviewCardPrimitive.Positioner>\n </PreviewCardPrimitive.Portal>\n );\n },\n);\nHoverCardContent.displayName = 'HoverCardContent';\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":";;;;;;;AAEA,IAAa,wBAAwBA,YAAqB;;ACM1D,IAAM,YAAYC,YAAqB;AAMvC,IAAM,mBAAmBC,QAAM,YAC5B,EAAE,WAAW,QAAQ,KAAK,GAAG,SAAS,QACrC,oBAACD,YAAqB,SAAtB;CAAmC;CAAY;CAAkB;CAAW,GAAI;AAAQ,CAAA,CAE5F;AACA,iBAAiB,cAAc;AAW/B,IAAM,mBAAmBC,QAAM,YAE3B,EACE,WACA,UACA,OAAO,OACP,OACA,aAAa,GACb,WACA,YAAY,MACZ,QACA,iBAAiB,0BACjB,aACA,mBACA,kBACA,QACA,cACA,uBACA,oBACA,GAAG,SAEL,QACG;CACH,MAAM,kBAAmD;EACvD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,OACE,oBAACD,YAAqB,QAAtB;EAA6B,WAAW,aAAa,KAAA;EACnD,UAAA,oBAACA,YAAqB,YAAtB;GAAiC,WAAU;GAAmC,GAAI;GAChF,UAAA,qBAACA,YAAqB,OAAtB;IACO;IACL,WAAW,GACT,yGACA,qBACA,oJACA,+JACA,mFACA,SACF;IACA,GAAI;IAVN,UAAA,CAYG,UACA,aAAa,oBAACA,YAAqB,OAAtB,EAA4B,WAAU,eAAgB,CAAA,CAC1C;;EACG,CAAA;CACN,CAAA;AAEjC,CACF;AACA,iBAAiB,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_MetricsLineChart = require("../MetricsLineChart-
|
|
2
|
+
const require_MetricsLineChart = require("../MetricsLineChart-DupSN9YT.cjs");
|
|
3
3
|
exports.MetricsLineChart = require_MetricsLineChart.MetricsLineChart;
|
|
4
4
|
exports.MetricsLineChartLegend = require_MetricsLineChart.MetricsLineChartLegend;
|
|
5
5
|
exports.MetricsLineChartTooltip = require_MetricsLineChart.MetricsLineChartTooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MetricsLineChart, r as MetricsLineChartLegend, n as MetricsLineChartTooltip } from "../MetricsLineChart-
|
|
1
|
+
export { t as MetricsLineChart, r as MetricsLineChartLegend, n as MetricsLineChartTooltip } from "../MetricsLineChart-vgZTYICl.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_MetricsStackedBarChart = require("../MetricsStackedBarChart-
|
|
2
|
+
const require_MetricsStackedBarChart = require("../MetricsStackedBarChart-CYX6HW01.cjs");
|
|
3
3
|
exports.MetricsStackedBarChart = require_MetricsStackedBarChart.MetricsStackedBarChart;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MetricsStackedBarChart } from "../MetricsStackedBarChart-
|
|
1
|
+
export { t as MetricsStackedBarChart } from "../MetricsStackedBarChart-CqsIfBK7.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_Section = require("../Section-
|
|
2
|
+
const require_Section = require("../Section-Co1kxY3S.cjs");
|
|
3
3
|
exports.Section = require_Section.Section;
|
|
4
4
|
exports.SectionRoot = require_Section.SectionRoot;
|
|
5
5
|
exports.SubSectionRoot = require_Section.SubSectionRoot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Section, n as SectionRoot, r as SubSectionRoot } from "../Section-
|
|
1
|
+
export { t as Section, n as SectionRoot, r as SubSectionRoot } from "../Section-BdaqU_k5.js";
|
|
@@ -4,7 +4,7 @@ const require_Button = require("../Button-C_tgwxcK.cjs");
|
|
|
4
4
|
const require_buttons_group = require("../buttons-group-DM6_Kohs.cjs");
|
|
5
5
|
const require_CodeEditor = require("../CodeEditor-CeQHPj0g.cjs");
|
|
6
6
|
const require_copy_button = require("../copy-button-BipGcWo2.cjs");
|
|
7
|
-
const require_Section = require("../Section-
|
|
7
|
+
const require_Section = require("../Section-Co1kxY3S.cjs");
|
|
8
8
|
const require_icons_central_IconAlignmentJustify = require("../icons/central/IconAlignmentJustify.cjs.js");
|
|
9
9
|
const require_icons_central_IconAlignmentLeft = require("../icons/central/IconAlignmentLeft.cjs.js");
|
|
10
10
|
require("../primitives/raised-surface.cjs.js");
|
|
@@ -2,7 +2,7 @@ import { t as Button } from "../Button-BcQ4CsoL.js";
|
|
|
2
2
|
import { t as ButtonsGroup } from "../buttons-group-DA_wORqQ.js";
|
|
3
3
|
import { n as useCodemirrorTheme, s as codeFoldGutter } from "../CodeEditor-AaW7HgY9.js";
|
|
4
4
|
import { t as CopyButton } from "../copy-button-5PzdvEQI.js";
|
|
5
|
-
import { t as Section } from "../Section-
|
|
5
|
+
import { t as Section } from "../Section-BdaqU_k5.js";
|
|
6
6
|
import { IconAlignmentJustify } from "../icons/central/IconAlignmentJustify.es.js";
|
|
7
7
|
import { IconAlignmentLeft } from "../icons/central/IconAlignmentLeft.es.js";
|
|
8
8
|
import "../primitives/raised-surface.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-child-messages.cjs.js","names":[],"sources":["../../../../../src/domains/chat/tools/badges/resolve-child-messages.ts"],"sourcesContent":["import type { toAISdkV5Messages } from '@mastra/ai-sdk/ui';\n\ntype AISdkUIMessage = ReturnType<typeof toAISdkV5Messages>[number];\n\nexport interface ChildMessage {\n type: 'tool' | 'text';\n toolCallId?: string;\n toolName?: string;\n args?: Record<string, unknown>;\n toolOutput?: Record<string, unknown>;\n content?: string;\n}\n\n/**\n * Extract child messages (tool calls and text) from all assistant\n * messages in order. Used by the agent badge to render a nested sub-agent\n * conversation.\n */\nexport const resolveToChildMessages = (messages: AISdkUIMessage[]): ChildMessage[] => {\n const assistantParts = messages.flatMap(message => (message.role === 'assistant' ? (message.parts ?? []) : []));\n const childMessages: ChildMessage[] = [];\n\n for (const part of assistantParts) {\n const toolPart = part
|
|
1
|
+
{"version":3,"file":"resolve-child-messages.cjs.js","names":[],"sources":["../../../../../src/domains/chat/tools/badges/resolve-child-messages.ts"],"sourcesContent":["import type { toAISdkV5Messages } from '@mastra/ai-sdk/ui';\n\ntype AISdkUIMessage = ReturnType<typeof toAISdkV5Messages>[number];\n\nexport interface ChildMessage {\n type: 'tool' | 'text';\n toolCallId?: string;\n toolName?: string;\n args?: Record<string, unknown>;\n toolOutput?: Record<string, unknown>;\n content?: string;\n}\n\n/**\n * Extract child messages (tool calls and text) from all assistant\n * messages in order. Used by the agent badge to render a nested sub-agent\n * conversation.\n */\nexport const resolveToChildMessages = (messages: AISdkUIMessage[]): ChildMessage[] => {\n const assistantParts = messages.flatMap(message => (message.role === 'assistant' ? (message.parts ?? []) : []));\n const childMessages: ChildMessage[] = [];\n\n for (const part of assistantParts) {\n const toolPart: any = part;\n if (typeof part.type === 'string' && part.type.startsWith('tool-')) {\n const toolName = part.type.substring('tool-'.length);\n const isWorkflow = toolName.startsWith('workflow-');\n childMessages.push({\n type: 'tool',\n toolCallId: toolPart.toolCallId,\n toolName,\n args: toolPart.input,\n toolOutput: isWorkflow ? { ...toolPart.output?.result, runId: toolPart.output?.runId } : toolPart.output,\n });\n }\n\n if (part.type === 'text') {\n childMessages.push({\n type: 'text',\n content: toolPart.text,\n });\n }\n }\n\n return childMessages;\n};\n"],"mappings":";;;;;;;AAkBA,IAAa,0BAA0B,aAA+C;CACpF,MAAM,iBAAiB,SAAS,SAAQ,YAAY,QAAQ,SAAS,cAAe,QAAQ,SAAS,CAAC,IAAK,CAAC,CAAE;CAC9G,MAAM,gBAAgC,CAAC;CAEvC,KAAK,MAAM,QAAQ,gBAAgB;EACjC,MAAM,WAAgB;EACtB,IAAI,OAAO,KAAK,SAAS,YAAY,KAAK,KAAK,WAAW,OAAO,GAAG;GAClE,MAAM,WAAW,KAAK,KAAK,UAAU,CAAc;GACnD,MAAM,aAAa,SAAS,WAAW,WAAW;GAClD,cAAc,KAAK;IACjB,MAAM;IACN,YAAY,SAAS;IACrB;IACA,MAAM,SAAS;IACf,YAAY,aAAa;KAAE,GAAG,SAAS,QAAQ;KAAQ,OAAO,SAAS,QAAQ;IAAM,IAAI,SAAS;GACpG,CAAC;EACH;EAEA,IAAI,KAAK,SAAS,QAChB,cAAc,KAAK;GACjB,MAAM;GACN,SAAS,SAAS;EACpB,CAAC;CAEL;CAEA,OAAO;AACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-child-messages.es.js","names":[],"sources":["../../../../../src/domains/chat/tools/badges/resolve-child-messages.ts"],"sourcesContent":["import type { toAISdkV5Messages } from '@mastra/ai-sdk/ui';\n\ntype AISdkUIMessage = ReturnType<typeof toAISdkV5Messages>[number];\n\nexport interface ChildMessage {\n type: 'tool' | 'text';\n toolCallId?: string;\n toolName?: string;\n args?: Record<string, unknown>;\n toolOutput?: Record<string, unknown>;\n content?: string;\n}\n\n/**\n * Extract child messages (tool calls and text) from all assistant\n * messages in order. Used by the agent badge to render a nested sub-agent\n * conversation.\n */\nexport const resolveToChildMessages = (messages: AISdkUIMessage[]): ChildMessage[] => {\n const assistantParts = messages.flatMap(message => (message.role === 'assistant' ? (message.parts ?? []) : []));\n const childMessages: ChildMessage[] = [];\n\n for (const part of assistantParts) {\n const toolPart = part
|
|
1
|
+
{"version":3,"file":"resolve-child-messages.es.js","names":[],"sources":["../../../../../src/domains/chat/tools/badges/resolve-child-messages.ts"],"sourcesContent":["import type { toAISdkV5Messages } from '@mastra/ai-sdk/ui';\n\ntype AISdkUIMessage = ReturnType<typeof toAISdkV5Messages>[number];\n\nexport interface ChildMessage {\n type: 'tool' | 'text';\n toolCallId?: string;\n toolName?: string;\n args?: Record<string, unknown>;\n toolOutput?: Record<string, unknown>;\n content?: string;\n}\n\n/**\n * Extract child messages (tool calls and text) from all assistant\n * messages in order. Used by the agent badge to render a nested sub-agent\n * conversation.\n */\nexport const resolveToChildMessages = (messages: AISdkUIMessage[]): ChildMessage[] => {\n const assistantParts = messages.flatMap(message => (message.role === 'assistant' ? (message.parts ?? []) : []));\n const childMessages: ChildMessage[] = [];\n\n for (const part of assistantParts) {\n const toolPart: any = part;\n if (typeof part.type === 'string' && part.type.startsWith('tool-')) {\n const toolName = part.type.substring('tool-'.length);\n const isWorkflow = toolName.startsWith('workflow-');\n childMessages.push({\n type: 'tool',\n toolCallId: toolPart.toolCallId,\n toolName,\n args: toolPart.input,\n toolOutput: isWorkflow ? { ...toolPart.output?.result, runId: toolPart.output?.runId } : toolPart.output,\n });\n }\n\n if (part.type === 'text') {\n childMessages.push({\n type: 'text',\n content: toolPart.text,\n });\n }\n }\n\n return childMessages;\n};\n"],"mappings":";;;;;;AAkBA,IAAa,0BAA0B,aAA+C;CACpF,MAAM,iBAAiB,SAAS,SAAQ,YAAY,QAAQ,SAAS,cAAe,QAAQ,SAAS,CAAC,IAAK,CAAC,CAAE;CAC9G,MAAM,gBAAgC,CAAC;CAEvC,KAAK,MAAM,QAAQ,gBAAgB;EACjC,MAAM,WAAgB;EACtB,IAAI,OAAO,KAAK,SAAS,YAAY,KAAK,KAAK,WAAW,OAAO,GAAG;GAClE,MAAM,WAAW,KAAK,KAAK,UAAU,CAAc;GACnD,MAAM,aAAa,SAAS,WAAW,WAAW;GAClD,cAAc,KAAK;IACjB,MAAM;IACN,YAAY,SAAS;IACrB;IACA,MAAM,SAAS;IACf,YAAY,aAAa;KAAE,GAAG,SAAS,QAAQ;KAAQ,OAAO,SAAS,QAAQ;IAAM,IAAI,SAAS;GACpG,CAAC;EACH;EAEA,IAAI,KAAK,SAAS,QAChB,cAAc,KAAK;GACjB,MAAM;GACN,SAAS,SAAS;EACpB,CAAC;CAEL;CAEA,OAAO;AACT"}
|
|
@@ -11,7 +11,7 @@ const require_domains_dashboards_lib_alert_actions = require("../../lib/alert-ac
|
|
|
11
11
|
const require_domains_dashboards_lib_chrome = require("../../lib/chrome.cjs.js");
|
|
12
12
|
const require_domains_dashboards_lib_format = require("../../lib/format.cjs.js");
|
|
13
13
|
const require_domains_dashboards_lib_scores = require("../../lib/scores.cjs.js");
|
|
14
|
-
const require_MetricsLineChart = require("../../../../MetricsLineChart-
|
|
14
|
+
const require_MetricsLineChart = require("../../../../MetricsLineChart-DupSN9YT.cjs");
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
// src/domains/dashboards/kinds/scores/scores-widget.tsx
|
|
17
17
|
/** Scores aren't problems, so no warm hues; past five scorers the colors repeat. */
|
|
@@ -10,7 +10,7 @@ import { alertAction, pendingHeading, withAction } from "../../lib/alert-actions
|
|
|
10
10
|
import { viewTitle } from "../../lib/chrome.es.js";
|
|
11
11
|
import { FORMATTERS } from "../../lib/format.es.js";
|
|
12
12
|
import { scorersOf, shapeScores } from "../../lib/scores.es.js";
|
|
13
|
-
import { t as MetricsLineChart } from "../../../../MetricsLineChart-
|
|
13
|
+
import { t as MetricsLineChart } from "../../../../MetricsLineChart-vgZTYICl.js";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
// src/domains/dashboards/kinds/scores/scores-widget.tsx
|
|
16
16
|
/** Scores aren't problems, so no warm hues; past five scorers the colors repeat. */
|
|
@@ -12,8 +12,8 @@ const require_domains_dashboards_lib_format = require("../../lib/format.cjs.js")
|
|
|
12
12
|
const require_domains_dashboards_lib_timeseries = require("../../lib/timeseries.cjs.js");
|
|
13
13
|
const require_domains_dashboards_lib_values = require("../../lib/values.cjs.js");
|
|
14
14
|
const require_MetricsCard = require("../../../../MetricsCard-tXPRK8vr.cjs");
|
|
15
|
-
const require_MetricsLineChart = require("../../../../MetricsLineChart-
|
|
16
|
-
const require_MetricsStackedBarChart = require("../../../../MetricsStackedBarChart-
|
|
15
|
+
const require_MetricsLineChart = require("../../../../MetricsLineChart-DupSN9YT.cjs");
|
|
16
|
+
const require_MetricsStackedBarChart = require("../../../../MetricsStackedBarChart-CYX6HW01.cjs");
|
|
17
17
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
18
18
|
// src/domains/dashboards/kinds/timeseries/timeseries-widget.tsx
|
|
19
19
|
function TimeseriesWidget(props) {
|
|
@@ -11,8 +11,8 @@ import { FORMATTERS, chartColor } from "../../lib/format.es.js";
|
|
|
11
11
|
import { shapeTimeseries, timeseriesAlertValues } from "../../lib/timeseries.es.js";
|
|
12
12
|
import { answersById } from "../../lib/values.es.js";
|
|
13
13
|
import { n as MetricsCard } from "../../../../MetricsCard-CdOaKjmX.js";
|
|
14
|
-
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../../MetricsLineChart-
|
|
15
|
-
import { t as MetricsStackedBarChart } from "../../../../MetricsStackedBarChart-
|
|
14
|
+
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../../MetricsLineChart-vgZTYICl.js";
|
|
15
|
+
import { t as MetricsStackedBarChart } from "../../../../MetricsStackedBarChart-CqsIfBK7.js";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
// src/domains/dashboards/kinds/timeseries/timeseries-widget.tsx
|
|
18
18
|
function TimeseriesWidget(props) {
|
package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.cjs.js
CHANGED
|
@@ -13,7 +13,7 @@ const require_CodeEditor = require("../../../../CodeEditor-CeQHPj0g.cjs");
|
|
|
13
13
|
const require_Dialog = require("../../../../Dialog-vZiwc-R9.cjs");
|
|
14
14
|
const require_components_Field = require("../../../../components/Field.cjs.js");
|
|
15
15
|
const require_Txt = require("../../../../Txt-_00wWxTd.cjs");
|
|
16
|
-
const require_settings = require("../../../../settings-
|
|
16
|
+
const require_settings = require("../../../../settings-u4KjAKPi.cjs");
|
|
17
17
|
const require_lib_framework = require("../../../../lib/framework.cjs.js");
|
|
18
18
|
const require_utils = require("../../../../utils-uDc1ofX1.cjs");
|
|
19
19
|
const require_toast_api = require("../../../../toast-api-B1NLVGk7.cjs");
|
package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.es.js
CHANGED
|
@@ -12,7 +12,7 @@ import { t as CodeEditor } from "../../../../CodeEditor-AaW7HgY9.js";
|
|
|
12
12
|
import { a as DialogContent, c as DialogHeader, d as DialogTitle, n as DialogBody, o as DialogDescription, p as DialogAction, r as DialogCancel, s as DialogFooter, t as Dialog } from "../../../../Dialog-CQ0-jiY3.js";
|
|
13
13
|
import { Field, FieldDescription, FieldError, FieldLabel } from "../../../../components/Field.es.js";
|
|
14
14
|
import { t as Txt } from "../../../../Txt-5efBsb2p.js";
|
|
15
|
-
import {
|
|
15
|
+
import { f as SettingsContainer } from "../../../../settings-9ei5ML-D.js";
|
|
16
16
|
import { useLinkComponent } from "../../../../lib/framework.es.js";
|
|
17
17
|
import { t as cn } from "../../../../utils-DQx8TpNT.js";
|
|
18
18
|
import { t as toast } from "../../../../toast-api-0fwBoJod.js";
|
package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_components_Collapsible = require("../../../../components/Collapsible.cjs.js");
|
|
3
3
|
const require_components_Switch = require("../../../../components/Switch.cjs.js");
|
|
4
|
-
const require_settings_row = require("../../../../settings-row-
|
|
4
|
+
const require_settings_row = require("../../../../settings-row-SN-YS0LA.cjs");
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
// src/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.tsx
|
|
7
7
|
/**
|
package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Collapsible, CollapsibleContent } from "../../../../components/Collapsible.es.js";
|
|
2
2
|
import { Switch } from "../../../../components/Switch.es.js";
|
|
3
|
-
import { n as SettingsRow } from "../../../../settings-row-
|
|
3
|
+
import { n as SettingsRow } from "../../../../settings-row-BeVVZ7Bs.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
// src/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.tsx
|
|
6
6
|
/**
|
|
@@ -10,8 +10,8 @@ const require_domains_metrics_components_chart_card = require("./chart-card.cjs.
|
|
|
10
10
|
const require_domains_metrics_components_chart_card_error = require("./chart-card-error.cjs.js");
|
|
11
11
|
const require_domains_metrics_components_failure_rate_card = require("./failure-rate-card.cjs.js");
|
|
12
12
|
const require_MetricsCard = require("../../../MetricsCard-tXPRK8vr.cjs");
|
|
13
|
-
const require_MetricsLineChart = require("../../../MetricsLineChart-
|
|
14
|
-
const require_MetricsStackedBarChart = require("../../../MetricsStackedBarChart-
|
|
13
|
+
const require_MetricsLineChart = require("../../../MetricsLineChart-DupSN9YT.cjs");
|
|
14
|
+
const require_MetricsStackedBarChart = require("../../../MetricsStackedBarChart-CYX6HW01.cjs");
|
|
15
15
|
let react = require("react");
|
|
16
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
17
|
// src/domains/metrics/components/agent-runs-card.tsx
|
|
@@ -9,8 +9,8 @@ import { ChartCard } from "./chart-card.es.js";
|
|
|
9
9
|
import { ChartCardError } from "./chart-card-error.es.js";
|
|
10
10
|
import { FailureRateCard } from "./failure-rate-card.es.js";
|
|
11
11
|
import { n as MetricsCard } from "../../../MetricsCard-CdOaKjmX.js";
|
|
12
|
-
import { r as MetricsLineChartLegend } from "../../../MetricsLineChart-
|
|
13
|
-
import { t as MetricsStackedBarChart } from "../../../MetricsStackedBarChart-
|
|
12
|
+
import { r as MetricsLineChartLegend } from "../../../MetricsLineChart-vgZTYICl.js";
|
|
13
|
+
import { t as MetricsStackedBarChart } from "../../../MetricsStackedBarChart-CqsIfBK7.js";
|
|
14
14
|
import { useState } from "react";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
// src/domains/metrics/components/agent-runs-card.tsx
|
|
@@ -9,7 +9,7 @@ const require_domains_metrics_components_chart_area = require("../chart-area.cjs
|
|
|
9
9
|
const require_domains_metrics_components_chart_card = require("../chart-card.cjs.js");
|
|
10
10
|
const require_domains_metrics_components_chart_card_error = require("../chart-card-error.cjs.js");
|
|
11
11
|
const require_MetricsCard = require("../../../../MetricsCard-tXPRK8vr.cjs");
|
|
12
|
-
const require_MetricsLineChart = require("../../../../MetricsLineChart-
|
|
12
|
+
const require_MetricsLineChart = require("../../../../MetricsLineChart-DupSN9YT.cjs");
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
14
|
// src/domains/metrics/components/distinct-ids/distinct-ids-chart.tsx
|
|
15
15
|
/** Most apps set resource and thread ids (through memory); few set user and session ids. */
|
|
@@ -8,7 +8,7 @@ import { ChartArea } from "../chart-area.es.js";
|
|
|
8
8
|
import { ChartCard } from "../chart-card.es.js";
|
|
9
9
|
import { ChartCardError } from "../chart-card-error.es.js";
|
|
10
10
|
import { n as MetricsCard } from "../../../../MetricsCard-CdOaKjmX.js";
|
|
11
|
-
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../../MetricsLineChart-
|
|
11
|
+
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../../MetricsLineChart-vgZTYICl.js";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
// src/domains/metrics/components/distinct-ids/distinct-ids-chart.tsx
|
|
14
14
|
/** Most apps set resource and thread ids (through memory); few set user and session ids. */
|
|
@@ -10,7 +10,7 @@ const require_domains_metrics_components_chart_area = require("./chart-area.cjs.
|
|
|
10
10
|
const require_domains_metrics_components_chart_card = require("./chart-card.cjs.js");
|
|
11
11
|
const require_domains_metrics_components_chart_card_error = require("./chart-card-error.cjs.js");
|
|
12
12
|
const require_MetricsCard = require("../../../MetricsCard-tXPRK8vr.cjs");
|
|
13
|
-
const require_MetricsLineChart = require("../../../MetricsLineChart-
|
|
13
|
+
const require_MetricsLineChart = require("../../../MetricsLineChart-DupSN9YT.cjs");
|
|
14
14
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
15
|
// src/domains/metrics/components/failure-rate-card.tsx
|
|
16
16
|
var SERIES = [{
|
|
@@ -9,7 +9,7 @@ import { ChartArea } from "./chart-area.es.js";
|
|
|
9
9
|
import { ChartCard } from "./chart-card.es.js";
|
|
10
10
|
import { ChartCardError } from "./chart-card-error.es.js";
|
|
11
11
|
import { n as MetricsCard } from "../../../MetricsCard-CdOaKjmX.js";
|
|
12
|
-
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../MetricsLineChart-
|
|
12
|
+
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../MetricsLineChart-vgZTYICl.js";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
// src/domains/metrics/components/failure-rate-card.tsx
|
|
15
15
|
var SERIES = [{
|
|
@@ -10,7 +10,7 @@ const require_domains_metrics_components_chart_area = require("./chart-area.cjs.
|
|
|
10
10
|
const require_domains_metrics_components_chart_card = require("./chart-card.cjs.js");
|
|
11
11
|
const require_domains_metrics_components_chart_card_error = require("./chart-card-error.cjs.js");
|
|
12
12
|
const require_MetricsCard = require("../../../MetricsCard-tXPRK8vr.cjs");
|
|
13
|
-
const require_MetricsLineChart = require("../../../MetricsLineChart-
|
|
13
|
+
const require_MetricsLineChart = require("../../../MetricsLineChart-DupSN9YT.cjs");
|
|
14
14
|
let react = require("react");
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
let _mastra_core_observability = require("@mastra/core/observability");
|
|
@@ -9,7 +9,7 @@ import { ChartArea } from "./chart-area.es.js";
|
|
|
9
9
|
import { ChartCard } from "./chart-card.es.js";
|
|
10
10
|
import { ChartCardError } from "./chart-card-error.es.js";
|
|
11
11
|
import { n as MetricsCard } from "../../../MetricsCard-CdOaKjmX.js";
|
|
12
|
-
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../MetricsLineChart-
|
|
12
|
+
import { r as MetricsLineChartLegend, t as MetricsLineChart } from "../../../MetricsLineChart-vgZTYICl.js";
|
|
13
13
|
import { useState } from "react";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
import { EntityType } from "@mastra/core/observability";
|
|
@@ -5,7 +5,7 @@ const require_domains_metrics_lib_chart_colors = require("../lib/chart-colors.cj
|
|
|
5
5
|
const require_domains_metrics_components_chart_area = require("./chart-area.cjs.js");
|
|
6
6
|
const require_domains_metrics_components_chart_card = require("./chart-card.cjs.js");
|
|
7
7
|
const require_domains_metrics_components_chart_card_error = require("./chart-card-error.cjs.js");
|
|
8
|
-
const require_MetricsLineChart = require("../../../MetricsLineChart-
|
|
8
|
+
const require_MetricsLineChart = require("../../../MetricsLineChart-DupSN9YT.cjs");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
// src/domains/metrics/components/scores-card.tsx
|
|
11
11
|
/** Scores aren't problems, so no warm hues; past five scorers the colors repeat. */
|
|
@@ -4,7 +4,7 @@ import { CHART_COLORS } from "../lib/chart-colors.es.js";
|
|
|
4
4
|
import { ChartArea } from "./chart-area.es.js";
|
|
5
5
|
import { ChartCard } from "./chart-card.es.js";
|
|
6
6
|
import { ChartCardError } from "./chart-card-error.es.js";
|
|
7
|
-
import { t as MetricsLineChart } from "../../../MetricsLineChart-
|
|
7
|
+
import { t as MetricsLineChart } from "../../../MetricsLineChart-vgZTYICl.js";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
// src/domains/metrics/components/scores-card.tsx
|
|
10
10
|
/** Scores aren't problems, so no warm hues; past five scorers the colors repeat. */
|