@mastra/playground-ui 70.1.0-alpha.2 → 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.
Files changed (29) hide show
  1. package/dist/{Section-DV2aLnkc.js → Section-BdaqU_k5.js} +2 -2
  2. package/dist/{Section-DV2aLnkc.js.map → Section-BdaqU_k5.js.map} +1 -1
  3. package/dist/{Section-BdO9TFjY.cjs → Section-Co1kxY3S.cjs} +2 -2
  4. package/dist/{Section-BdO9TFjY.cjs.map → Section-Co1kxY3S.cjs.map} +1 -1
  5. package/dist/components/Section.cjs.js +1 -1
  6. package/dist/components/Section.es.js +1 -1
  7. package/dist/components/SideDialog.cjs.js +1 -1
  8. package/dist/components/SideDialog.es.js +1 -1
  9. package/dist/domains/chat/tools/badges/resolve-child-messages.cjs.js.map +1 -1
  10. package/dist/domains/chat/tools/badges/resolve-child-messages.es.js.map +1 -1
  11. package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.cjs.js +1 -1
  12. package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.es.js +1 -1
  13. package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.cjs.js +1 -1
  14. package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.es.js +1 -1
  15. package/dist/new/settings.cjs.js +2 -2
  16. package/dist/new/settings.es.js +2 -2
  17. package/dist/{settings-RVbY3OIo.js → settings-9ei5ML-D.js} +2 -2
  18. package/dist/{settings-RVbY3OIo.js.map → settings-9ei5ML-D.js.map} +1 -1
  19. package/dist/{settings-row-BnlFZSQL.js → settings-row-BeVVZ7Bs.js} +15 -8
  20. package/dist/settings-row-BeVVZ7Bs.js.map +1 -0
  21. package/dist/{settings-row-Da1HHyBg.cjs → settings-row-SN-YS0LA.cjs} +15 -8
  22. package/dist/settings-row-SN-YS0LA.cjs.map +1 -0
  23. package/dist/{settings-C85I1245.cjs → settings-u4KjAKPi.cjs} +2 -2
  24. package/dist/{settings-C85I1245.cjs.map → settings-u4KjAKPi.cjs.map} +1 -1
  25. package/dist/src/domains/workflows/context/use-persisted-workflow-run.d.ts +7 -0
  26. package/dist/style.css +22 -6
  27. package/package.json +6 -6
  28. package/dist/settings-row-BnlFZSQL.js.map +0 -1
  29. package/dist/settings-row-Da1HHyBg.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { t as cn } from "./utils-DQx8TpNT.js";
2
2
  import { t as Txt } from "./Txt-5efBsb2p.js";
3
3
  import { Field, FieldDescription, FieldError, FieldLabel } from "./components/Field.es.js";
4
- import { r as SettingsRowControl } from "./settings-row-BnlFZSQL.js";
4
+ import { r as SettingsRowControl } from "./settings-row-BeVVZ7Bs.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  // src/ds/components/Section/section-content.tsx
7
7
  function SectionContent({ className, ...props }) {
@@ -143,4 +143,4 @@ Section.DestructiveRow = SectionDestructiveRow;
143
143
  Section.Divider = SectionDivider;
144
144
  export { SectionRoot as n, SubSectionRoot as r, Section as t };
145
145
 
146
- //# sourceMappingURL=Section-DV2aLnkc.js.map
146
+ //# sourceMappingURL=Section-BdaqU_k5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Section-DV2aLnkc.js","names":["HeadingTag"],"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,oBAAC,OAAD;EACE,aAAU;EACV,WAAW,GACT,wGACA,mG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B,QAAQ,iBAAiB;AACzB,QAAQ,UAAU"}
1
+ {"version":3,"file":"Section-BdaqU_k5.js","names":["HeadingTag"],"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,oBAAC,OAAD;EACE,aAAU;EACV,WAAW,GACT,wGACA,mGACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,mBAAmB,EAAE,WAAW,GAAG,SAAkC;CACnF,OACE,oBAAC,KAAD;EACE,SAAQ;EACR,MAAK;EACL,aAAU;EACV,WAAW,GAAG,4BAA4B,SAAS;EACnD,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OAAO,oBAAC,OAAD;EAAK,MAAK;EAAY,oBAAiB;EAAa,WAAW,GAAG,kBAAkB,SAAS;EAAG,GAAI;CAAQ,CAAA;AACrH;;ACAA,SAAgB,cAAc,EAAE,UAAU,WAAW,QAAQ,OAAO,GAAG,SAA6B;CAClG,OACE,oBAAC,UAAD;EACE,aAAU;EACV,WAAW,GACT,yJACA,6YACA,8XACA,SAAS,QACT,SACF;EACA,GAAI;EAEH;CACK,CAAA;AAEZ;;AClBA,SAAgB,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CACjF,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAsB,WAAW,GAAG,iCAAiC,SAAS;EAAG,GAAI;CAAQ,CAAA;AACrH;;ACAA,SAAgB,eAAe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;;AAGA,SAAgB,WAAW,OAAwB;CACjD,OAAO,oBAAC,gBAAD,EAAgB,GAAI,MAAQ,CAAA;AACrC;;AAGA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,UAAA;CAAU,CAAA;AAC9C;;AAGA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,aAAA;CAAa,CAAA;AACjD;;AC9DA,SAAgB,QAAQ,OAAyB;CAC/C,OAAO,oBAAC,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,7 +1,7 @@
1
1
  const require_utils = require("./utils-uDc1ofX1.cjs");
2
2
  const require_Txt = require("./Txt-_00wWxTd.cjs");
3
3
  const require_components_Field = require("./components/Field.cjs.js");
4
- const require_settings_row = require("./settings-row-Da1HHyBg.cjs");
4
+ const require_settings_row = require("./settings-row-SN-YS0LA.cjs");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  // src/ds/components/Section/section-content.tsx
7
7
  function SectionContent({ className, ...props }) {
@@ -160,4 +160,4 @@ Object.defineProperty(exports, "SubSectionRoot", {
160
160
  }
161
161
  });
162
162
 
163
- //# sourceMappingURL=Section-BdO9TFjY.cjs.map
163
+ //# sourceMappingURL=Section-Co1kxY3S.cjs.map
@@ -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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A8B,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":";;;;;;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,WAA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,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,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Section = require("../Section-BdO9TFjY.cjs");
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-DV2aLnkc.js";
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-BdO9TFjY.cjs");
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-DV2aLnkc.js";
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 as any;\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,WAAW;EACjB,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
+ {"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 as any;\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,WAAW;EACjB,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
+ {"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"}
@@ -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-C85I1245.cjs");
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");
@@ -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 { f as SettingsContainer } from "../../../../settings-RVbY3OIo.js";
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";
@@ -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-Da1HHyBg.cjs");
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
  /**
@@ -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-BnlFZSQL.js";
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
  /**
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_settings = require("../settings-C85I1245.cjs");
3
- const require_settings_row = require("../settings-row-Da1HHyBg.cjs");
2
+ const require_settings = require("../settings-u4KjAKPi.cjs");
3
+ const require_settings_row = require("../settings-row-SN-YS0LA.cjs");
4
4
  exports.SettingsContainer = require_settings.SettingsContainer;
5
5
  exports.SettingsDescription = require_settings.SettingsDescription;
6
6
  exports.SettingsEmptyRow = require_settings.SettingsEmptyRow;
@@ -1,3 +1,3 @@
1
- import { a as SettingsListHeader, c as SettingsDescription, d as SettingsTitle, f as SettingsContainer, i as SettingsItemIcon, l as SettingsGroup, n as SettingsEmptyRow, o as SettingsNoticeRow, r as SettingsItem, s as SettingsLayout, t as SettingsSkeleton, u as SettingsHeader } from "../settings-RVbY3OIo.js";
2
- import { n as SettingsRow, t as SettingsFieldsetRow } from "../settings-row-BnlFZSQL.js";
1
+ import { a as SettingsListHeader, c as SettingsDescription, d as SettingsTitle, f as SettingsContainer, i as SettingsItemIcon, l as SettingsGroup, n as SettingsEmptyRow, o as SettingsNoticeRow, r as SettingsItem, s as SettingsLayout, t as SettingsSkeleton, u as SettingsHeader } from "../settings-9ei5ML-D.js";
2
+ import { n as SettingsRow, t as SettingsFieldsetRow } from "../settings-row-BeVVZ7Bs.js";
3
3
  export { SettingsContainer, SettingsDescription, SettingsEmptyRow, SettingsFieldsetRow, SettingsGroup, SettingsHeader, SettingsItem, SettingsItemIcon, SettingsLayout, SettingsListHeader, SettingsNoticeRow, SettingsRow, SettingsSkeleton, SettingsTitle };
@@ -3,7 +3,7 @@ import { t as cn } from "./utils-DQx8TpNT.js";
3
3
  import { i as TooltipTrigger, n as TooltipContent, t as Tooltip } from "./tooltip-DJcze2VZ.js";
4
4
  import { t as Txt } from "./Txt-5efBsb2p.js";
5
5
  import { t as PageHeader } from "./page-header-Maytcmgh.js";
6
- import { n as SettingsRow } from "./settings-row-BnlFZSQL.js";
6
+ import { n as SettingsRow } from "./settings-row-BeVVZ7Bs.js";
7
7
  import { n as Skeleton, t as SkeletonText } from "./skeleton-text-BPa4Tg4u.js";
8
8
  import { createContext, useContext, useId } from "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -273,4 +273,4 @@ function RowPlaceholder() {
273
273
  }
274
274
  export { SettingsListHeader as a, SettingsDescription as c, SettingsTitle as d, SettingsContainer as f, SettingsItemIcon as i, SettingsGroup as l, SettingsEmptyRow as n, SettingsNoticeRow as o, SettingsItem as r, SettingsLayout as s, SettingsSkeleton as t, SettingsHeader as u };
275
275
 
276
- //# sourceMappingURL=settings-RVbY3OIo.js.map
276
+ //# sourceMappingURL=settings-9ei5ML-D.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-RVbY3OIo.js","names":[],"sources":["../src/ds/new/settings/settings-container.tsx","../src/ds/new/settings/settings-header.tsx","../src/ds/new/settings/settings-layout.tsx","../src/ds/new/settings/settings-list.tsx","../src/ds/new/settings/settings-skeleton.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { fieldsOnSurface } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\n/**\n * A settings card: the card fill with no rim, 14px from its edge to the content, and hairlines between rows that\n * stop at that inset. The card owns its rows' spacing: each direct child gets 13px above and below, and the card\n * adds the last 1px at its edges. Children with nothing in them (an empty `SettingsNoticeRow`) take no space and\n * draw no hairline, so a list can always render its notice row.\n */\nconst settingsCardStyle = cn(\n // `!`: the card owns row spacing, so a row's own reset (`Fieldset`'s `p-0`) can't remove it.\n 'flex min-w-0 flex-col rounded-xl bg-card px-3.5 py-px *:py-3.25! *:empty:hidden',\n '[&>:not(:empty)~:not(:empty)]:border-t [&>:not(:empty)~:not(:empty)]:border-border',\n fieldsOnSurface,\n);\n\nexport type SettingsContainerProps = ComponentProps<'div'>;\n\n/** One settings card. Holds `SettingsRow`s, `SettingsItem`s, a `SettingsListHeader` or a `SettingsEmptyRow`. */\nexport function SettingsContainer({ className, ...props }: SettingsContainerProps) {\n return <div data-slot=\"settings-container\" className={cn(settingsCardStyle, className)} {...props} />;\n}\n","import { createContext, useContext, useId } from 'react';\nimport type { ComponentProps, ReactNode } from 'react';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/ds/components/Tooltip';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\n// On a settings page (`SettingsLayout`), section titles and descriptions sit 10px inside the card's edge, in line with\n// the inset page title. Anywhere else (forms, other pages) they line up with the page's left edge and field labels.\n// The inset is a custom property, so a caller's `ps-*` class still wins. Written out in full so Tailwind finds it.\nconst settingsInset =\n '[--settings-inset:0px] in-data-[slot=settings-layout]:[--settings-inset:--spacing(2.5)] ps-(--settings-inset)';\n\nconst SettingsTitleIdContext = createContext<string | undefined>(undefined);\n\n/** One section of a settings page: a `SettingsTitle` (or `SettingsHeader`) above its `SettingsContainer`. */\nexport function SettingsGroup({ className, ...props }: ComponentProps<'section'>) {\n const titleId = useId();\n\n return (\n <SettingsTitleIdContext.Provider value={titleId}>\n <section\n aria-labelledby={titleId}\n className={cn('flex min-w-0 scroll-mt-4 flex-col gap-2', className)}\n {...props}\n />\n </SettingsTitleIdContext.Provider>\n );\n}\n\n/** A section title with something beside it. A list's actions go in its card (`SettingsListHeader`), not here. */\nexport function SettingsHeader({\n action,\n children,\n className,\n ...props\n}: ComponentProps<'header'> & { action?: ReactNode }) {\n return (\n <header\n className={cn('flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-4', className)}\n {...props}\n >\n <div className=\"flex min-w-0 flex-col gap-1\">{children}</div>\n {action != null && <div className=\"shrink-0\">{action}</div>}\n </header>\n );\n}\n\nexport function SettingsTitle({\n accessory,\n info,\n className,\n children,\n ...props\n}: Omit<ComponentProps<'h2'>, 'id'> & {\n accessory?: ReactNode;\n /** What the section is for, shown in a tooltip on the title. For sections whose name isn't self-explanatory. */\n info?: ReactNode;\n}) {\n const titleId = useContext(SettingsTitleIdContext);\n\n return (\n <div className={cn('flex min-w-0 flex-wrap items-center gap-2', settingsInset)}>\n <Txt as=\"h2\" id={titleId} variant=\"subheading\" tone=\"ink\" className={className} {...props}>\n {info == null ? children : <SettingsTitleInfo info={info}>{children}</SettingsTitleInfo>}\n </Txt>\n {accessory}\n </div>\n );\n}\n\n/** The title's text as a tooltip trigger, described by `info`. */\nfunction SettingsTitleInfo({ info, children }: { info: ReactNode; children: ReactNode }) {\n const infoId = useId();\n\n return (\n <Tooltip>\n <TooltipTrigger\n render={\n <span\n tabIndex={0}\n aria-describedby={infoId}\n className=\"cursor-help underline decoration-transparent decoration-dotted underline-offset-4 hover:decoration-current focus-visible:decoration-current focus-visible:outline-none\"\n />\n }\n >\n {children}\n </TooltipTrigger>\n <TooltipContent id={infoId} keepMounted className=\"max-w-64\">\n {info}\n </TooltipContent>\n </Tooltip>\n );\n}\n\nexport function SettingsDescription({ className, ...props }: ComponentProps<'p'>) {\n return <Txt as=\"p\" variant=\"caption\" tone=\"muted\" className={cn(settingsInset, className)} {...props} />;\n}\n","import type { ReactNode } from 'react';\nimport { PageHeader } from '@/ds/new/layout/page-header';\nimport { cn } from '@/lib/utils';\n\nexport interface SettingsLayoutProps {\n /** The page title. Leave it out when the app's own header already names the page. */\n title?: ReactNode;\n titleAccessory?: ReactNode;\n action?: ReactNode;\n /** A header of the app's own in place of `title` (a `PageHeader` whose title takes focus), with the same inset. */\n header?: ReactNode;\n /** `SettingsGroup`s, 28px apart. */\n children: ReactNode;\n}\n\n/**\n * A settings page: a centered 640px column with the title, inset like the section titles, above its sections.\n * The app's page around it gives the side gutter (`PageLayout`, Factory's settings panel, Platform's page).\n */\nexport function SettingsLayout({ title, titleAccessory, action, header, children }: SettingsLayoutProps) {\n return (\n // The content row takes the rest of the page's height, so a lone `EmptyState variant=\"fill\"` centers in it.\n <div\n data-slot=\"settings-layout\"\n className={cn(\n 'mx-auto grid min-h-full w-full max-w-160 min-w-0 gap-8 py-6',\n header != null || title != null ? 'grid-rows-[auto_1fr]' : 'grid-rows-[1fr]',\n )}\n >\n {header != null && (\n <div data-slot=\"settings-page-header\" className=\"ps-2.5\">\n {header}\n </div>\n )}\n {header == null && title != null && (\n <PageHeader data-slot=\"settings-page-header\" className=\"ps-2.5\">\n <PageHeader.Title>{title}</PageHeader.Title>\n {titleAccessory != null && <PageHeader.Meta beside>{titleAccessory}</PageHeader.Meta>}\n {action != null && <PageHeader.Action>{action}</PageHeader.Action>}\n </PageHeader>\n )}\n <div\n data-slot=\"settings-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 );\n}\n","import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@/lib/utils';\n\n/**\n * A list's first row: its count, caption or empty text on the left and its one action (\"Add account\", \"Invite\n * member\") on the right. A full list and an empty one share this exact look, so the card reads the same either way.\n */\nfunction SettingsListBar({ action, className, children, ...props }: ComponentProps<'div'> & { action?: ReactNode }) {\n return (\n <div\n className={cn(\n // As tall as a `SettingsRow` (label + one-line description) plus the 13px the card puts above and below each\n // row, since this row's own box includes that padding. Keeps a list's first row level with the settings above it.\n 'flex min-h-8 items-center justify-between gap-3 sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5+--spacing(6.5))]',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0 truncate text-label text-foreground\">{children}</div>\n {action != null && <div className=\"flex shrink-0 items-center gap-2\">{action}</div>}\n </div>\n );\n}\n\nexport type SettingsListHeaderProps = ComponentProps<'div'> & {\n /** The list's action, on the right. Refresh and other list controls can sit beside it. */\n action?: ReactNode;\n};\n\n/** The first row of a list's `SettingsContainer`: a count (\"2 accounts\") and the list's action. */\nexport function SettingsListHeader(props: SettingsListHeaderProps) {\n return <SettingsListBar data-slot=\"settings-list-header\" {...props} />;\n}\n\nexport type SettingsEmptyRowProps = ComponentProps<'div'> & {\n /** The same action the list's header would hold, so an empty list still offers it. */\n action?: ReactNode;\n};\n\n/**\n * An empty list's only row: what's missing on the left (\"No join links\"), the list's action on the right. Looks\n * exactly like `SettingsListHeader`, so empty and full lists match; use it for every empty list in a card.\n */\nexport function SettingsEmptyRow(props: SettingsEmptyRowProps) {\n return <SettingsListBar data-slot=\"settings-empty-row\" {...props} />;\n}\n\n/** A list's notices and errors, as a row of its `SettingsContainer`. Takes no space while it has nothing in it. */\nexport function SettingsNoticeRow({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"settings-notice-row\" className={cn('flex flex-col gap-2', className)} {...props} />;\n}\n\n/** The square on the left of a `SettingsItem` holding an icon or logo. Avatars use `Avatar size=\"md\"`, the\n * same size, so every list's text starts at the same place. */\nexport function SettingsItemIcon({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"settings-item-icon\"\n aria-hidden\n className={cn(\n 'flex size-avatar-md shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground [&>svg]:size-icon-md',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type SettingsItemProps = Omit<ComponentProps<'div'>, 'title'> & {\n /** A `SettingsItemIcon` or an `Avatar size=\"md\"`. */\n media?: ReactNode;\n title: ReactNode;\n /** One line under the title: \"GitHub · Connected 3 weeks ago\". */\n description?: ReactNode;\n /** The item's status or actions, on the right. */\n children?: ReactNode;\n};\n\n/**\n * One thing in a settings list (an account, a member, a session, a source, a package version). Its right side holds\n * the item's status or its own actions (Remove, Revoke, Copy), not a control that changes a setting. Goes in a\n * `SettingsContainer`, usually under a `SettingsListHeader`.\n *\n * For a setting the person changes (an input, select or switch with a label), use `SettingsRow` instead.\n *\n * @example\n * <SettingsItem media={<Avatar size=\"md\" … />} title=\"Ada Lovelace\" description=\"ada@example.com\">\n * <Button size=\"sm\" variant=\"ghost\">Remove</Button>\n * </SettingsItem>\n */\nexport function SettingsItem({ media, title, description, children, className, ...props }: SettingsItemProps) {\n return (\n <div\n data-slot=\"settings-item\"\n // Below `sm` the item's value or actions wrap onto their own full-width line under the title, as a\n // `SettingsRow`'s control does, so a long value (an email, a type) never squeezes the title out.\n className={cn('flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 sm:flex-nowrap', className)}\n {...props}\n >\n {media}\n <div className=\"flex min-w-0 flex-1 flex-col gap-px\">\n {/* A string title truncates, so it also goes in the hover title to stay readable in full. */}\n <div className=\"truncate text-label text-foreground\" title={typeof title === 'string' ? title : undefined}>\n {title}\n </div>\n {description != null && <div className=\"truncate text-caption text-muted-foreground\">{description}</div>}\n </div>\n {children != null && (\n <div className=\"flex min-w-0 basis-full items-center gap-2 sm:shrink-0 sm:basis-auto\">{children}</div>\n )}\n </div>\n );\n}\n","import { SettingsItem } from './settings-list';\nimport { SettingsRow } from './settings-row';\nimport { Skeleton } from '@/ds/components/Skeleton/skeleton';\nimport { SkeletonText } from '@/ds/components/Skeleton/skeleton-text';\nimport { cn } from '@/lib/utils';\n\nconst bar = 'motion-reduce:before:animate-none';\n\nexport type SettingsSkeletonProps = {\n /** Announced while loading, e.g. \"Loading members\". */\n label: string;\n /** Placeholder rows, matching how many the loaded list usually has. */\n rows?: number;\n /** `row` stands in for `SettingsRow`s (label left, control right); `item` for `SettingsItem`s (icon, title, description). */\n variant?: 'row' | 'item';\n className?: string;\n};\n\n/**\n * The loading state for anything inside a `SettingsContainer`. Placeholders are built from the real `SettingsRow` and\n * `SettingsItem`, so they sit exactly where the loaded rows will.\n *\n * ```tsx\n * <SettingsContainer>\n * {isLoading ? <SettingsSkeleton label=\"Loading members\" variant=\"item\" rows={3} /> : members.map(...)}\n * </SettingsContainer>\n * ```\n */\nexport function SettingsSkeleton({ label, rows = 2, variant = 'row', className }: SettingsSkeletonProps) {\n const Placeholder = variant === 'item' ? ItemPlaceholder : RowPlaceholder;\n\n return (\n // One child of the card, so it takes the card's row padding; inside, rows repeat that rhythm with hairlines.\n <div\n role=\"status\"\n aria-label={label}\n data-slot=\"settings-skeleton\"\n className={cn('grid divide-y divide-border *:py-3.25 *:first:pt-0 *:last:pb-0', className)}\n >\n {Array.from({ length: rows }, (_, index) => (\n <Placeholder key={index} />\n ))}\n </div>\n );\n}\n\nfunction ItemPlaceholder() {\n return (\n <SettingsItem\n aria-hidden\n media={<Skeleton className={cn('size-avatar-md shrink-0 rounded-lg', bar)} />}\n title={<SkeletonText line=\"text-label\" className={cn('w-32', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n />\n );\n}\n\nfunction RowPlaceholder() {\n return (\n <SettingsRow\n aria-hidden\n label={<SkeletonText line=\"text-label\" className={cn('w-28', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n >\n <Skeleton className={cn('h-control-sm w-28 max-w-full rounded-full', bar)} />\n </SettingsRow>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAM,oBAAoB,GAExB,mFACA,sFACA,eACF;;AAKA,SAAgB,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CACjF,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAqB,WAAW,GAAG,mBAAmB,SAAS;EAAG,GAAI;CAAQ,CAAA;AACtG;;ACbA,IAAM,gBACJ;AAEF,IAAM,yBAAyB,cAAkC,KAAA,CAAS;;AAG1E,SAAgB,cAAc,EAAE,WAAW,GAAG,SAAoC;CAChF,MAAM,UAAU,MAAM;CAEtB,OACE,oBAAC,uBAAuB,UAAxB;EAAiC,OAAO;EACtC,UAAA,oBAAC,WAAD;GACE,mBAAiB;GACjB,WAAW,GAAG,2CAA2C,SAAS;GAClE,GAAI;EACL,CAAA;CAC8B,CAAA;AAErC;;AAGA,SAAgB,eAAe,EAC7B,QACA,UACA,WACA,GAAG,SACiD;CACpD,OACE,qBAAC,UAAD;EACE,WAAW,GAAG,+EAA+E,SAAS;EACtG,GAAI;EAFN,UAAA,CAIE,oBAAC,OAAD;GAAK,WAAU;GAA+B;EAAc,CAAA,GAC3D,UAAU,QAAQ,oBAAC,OAAD;GAAK,WAAU;GAAY,UAAA;EAAY,CAAA,CACpD;;AAEZ;AAEA,SAAgB,cAAc,EAC5B,WACA,MACA,WACA,UACA,GAAG,SAKF;CACD,MAAM,UAAU,WAAW,sBAAsB;CAEjD,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,6CAA6C,aAAa;EAA7E,UAAA,CACE,oBAAC,KAAD;GAAK,IAAG;GAAK,IAAI;GAAS,SAAQ;GAAa,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E;GAAc,CAAA;EAEpG;;AAET;;AC1GA,IAAM,MAAM;;;;;;;;;;;AAsBZ,SAAgB,iBAAiB,EAAE,OAAO,OAAO,GAAG,UAAU,OAAO,aAAoC;CACvG,MAAM,cAAc,YAAY,SAAS,kBAAkB;CAE3D,OAEE,oBAAC,OAAD;EACE,MAAK;EACL,cAAY;EACZ,aAAU;EACV,WAAW,GAAG,kEAAkE,SAAS;EAExF,UAAA,MAAM,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,UAChC,oBAAC,aAAD,CAA0B,GAAR,KAAQ,CAC3B;CACE,CAAA;AAET;AAEA,SAAS,kBAAkB;CACzB,OACE,oBAAC,cAAD;EACE,eAAA;EACA,OAAO,oBAAC,UAAD,EAAU,WAAW,GAAG,sCAAsC,GAAG,EAAI,CAAA;EAC5E,OAAO,oBAAC,cAAD;GAAc,MAAK;GAAa,WAAW,GAAG,QAAQ,GAAG;EAAI,CAAA;EACpE,aAAa,oBAAC,cAAD;GAAc,MAAK;GAAe,WAAW,GAAG,mBAAmB,GAAG;EAAI,CAAA;CACxF,CAAA;AAEL;AAEA,SAAS,iBAAiB;CACxB,OACE,oBAAC,aAAD;EACE,eAAA;EACA,OAAO,oBAAC,cAAD;GAAc,MAAK;GAAa,WAAW,GAAG,QAAQ,GAAG;EAAI,CAAA;EACpE,aAAa,oBAAC,cAAD;GAAc,MAAK;GAAe,WAAW,GAAG,mBAAmB,GAAG;EAAI,CAAA;EAEvF,UAAA,oBAAC,UAAD,EAAU,WAAW,GAAG,6CAA6C,GAAG,EAAI,CAAA;CACjE,CAAA;AAEjB"}
1
+ {"version":3,"file":"settings-9ei5ML-D.js","names":[],"sources":["../src/ds/new/settings/settings-container.tsx","../src/ds/new/settings/settings-header.tsx","../src/ds/new/settings/settings-layout.tsx","../src/ds/new/settings/settings-list.tsx","../src/ds/new/settings/settings-skeleton.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { fieldsOnSurface } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\n/**\n * A settings card: the card fill with no rim, 14px from its edge to the content, and hairlines between rows that\n * stop at that inset. The card owns its rows' spacing: each direct child gets 13px above and below, and the card\n * adds the last 1px at its edges. Children with nothing in them (an empty `SettingsNoticeRow`) take no space and\n * draw no hairline, so a list can always render its notice row.\n */\nconst settingsCardStyle = cn(\n // `!`: the card owns row spacing, so a row's own reset (`Fieldset`'s `p-0`) can't remove it.\n 'flex min-w-0 flex-col rounded-xl bg-card px-3.5 py-px *:py-3.25! *:empty:hidden',\n '[&>:not(:empty)~:not(:empty)]:border-t [&>:not(:empty)~:not(:empty)]:border-border',\n fieldsOnSurface,\n);\n\nexport type SettingsContainerProps = ComponentProps<'div'>;\n\n/** One settings card. Holds `SettingsRow`s, `SettingsItem`s, a `SettingsListHeader` or a `SettingsEmptyRow`. */\nexport function SettingsContainer({ className, ...props }: SettingsContainerProps) {\n return <div data-slot=\"settings-container\" className={cn(settingsCardStyle, className)} {...props} />;\n}\n","import { createContext, useContext, useId } from 'react';\nimport type { ComponentProps, ReactNode } from 'react';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/ds/components/Tooltip';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\n// On a settings page (`SettingsLayout`), section titles and descriptions sit 10px inside the card's edge, in line with\n// the inset page title. Anywhere else (forms, other pages) they line up with the page's left edge and field labels.\n// The inset is a custom property, so a caller's `ps-*` class still wins. Written out in full so Tailwind finds it.\nconst settingsInset =\n '[--settings-inset:0px] in-data-[slot=settings-layout]:[--settings-inset:--spacing(2.5)] ps-(--settings-inset)';\n\nconst SettingsTitleIdContext = createContext<string | undefined>(undefined);\n\n/** One section of a settings page: a `SettingsTitle` (or `SettingsHeader`) above its `SettingsContainer`. */\nexport function SettingsGroup({ className, ...props }: ComponentProps<'section'>) {\n const titleId = useId();\n\n return (\n <SettingsTitleIdContext.Provider value={titleId}>\n <section\n aria-labelledby={titleId}\n className={cn('flex min-w-0 scroll-mt-4 flex-col gap-2', className)}\n {...props}\n />\n </SettingsTitleIdContext.Provider>\n );\n}\n\n/** A section title with something beside it. A list's actions go in its card (`SettingsListHeader`), not here. */\nexport function SettingsHeader({\n action,\n children,\n className,\n ...props\n}: ComponentProps<'header'> & { action?: ReactNode }) {\n return (\n <header\n className={cn('flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-4', className)}\n {...props}\n >\n <div className=\"flex min-w-0 flex-col gap-1\">{children}</div>\n {action != null && <div className=\"shrink-0\">{action}</div>}\n </header>\n );\n}\n\nexport function SettingsTitle({\n accessory,\n info,\n className,\n children,\n ...props\n}: Omit<ComponentProps<'h2'>, 'id'> & {\n accessory?: ReactNode;\n /** What the section is for, shown in a tooltip on the title. For sections whose name isn't self-explanatory. */\n info?: ReactNode;\n}) {\n const titleId = useContext(SettingsTitleIdContext);\n\n return (\n <div className={cn('flex min-w-0 flex-wrap items-center gap-2', settingsInset)}>\n <Txt as=\"h2\" id={titleId} variant=\"subheading\" tone=\"ink\" className={className} {...props}>\n {info == null ? children : <SettingsTitleInfo info={info}>{children}</SettingsTitleInfo>}\n </Txt>\n {accessory}\n </div>\n );\n}\n\n/** The title's text as a tooltip trigger, described by `info`. */\nfunction SettingsTitleInfo({ info, children }: { info: ReactNode; children: ReactNode }) {\n const infoId = useId();\n\n return (\n <Tooltip>\n <TooltipTrigger\n render={\n <span\n tabIndex={0}\n aria-describedby={infoId}\n className=\"cursor-help underline decoration-transparent decoration-dotted underline-offset-4 hover:decoration-current focus-visible:decoration-current focus-visible:outline-none\"\n />\n }\n >\n {children}\n </TooltipTrigger>\n <TooltipContent id={infoId} keepMounted className=\"max-w-64\">\n {info}\n </TooltipContent>\n </Tooltip>\n );\n}\n\nexport function SettingsDescription({ className, ...props }: ComponentProps<'p'>) {\n return <Txt as=\"p\" variant=\"caption\" tone=\"muted\" className={cn(settingsInset, className)} {...props} />;\n}\n","import type { ReactNode } from 'react';\nimport { PageHeader } from '@/ds/new/layout/page-header';\nimport { cn } from '@/lib/utils';\n\nexport interface SettingsLayoutProps {\n /** The page title. Leave it out when the app's own header already names the page. */\n title?: ReactNode;\n titleAccessory?: ReactNode;\n action?: ReactNode;\n /** A header of the app's own in place of `title` (a `PageHeader` whose title takes focus), with the same inset. */\n header?: ReactNode;\n /** `SettingsGroup`s, 28px apart. */\n children: ReactNode;\n}\n\n/**\n * A settings page: a centered 640px column with the title, inset like the section titles, above its sections.\n * The app's page around it gives the side gutter (`PageLayout`, Factory's settings panel, Platform's page).\n */\nexport function SettingsLayout({ title, titleAccessory, action, header, children }: SettingsLayoutProps) {\n return (\n // The content row takes the rest of the page's height, so a lone `EmptyState variant=\"fill\"` centers in it.\n <div\n data-slot=\"settings-layout\"\n className={cn(\n 'mx-auto grid min-h-full w-full max-w-160 min-w-0 gap-8 py-6',\n header != null || title != null ? 'grid-rows-[auto_1fr]' : 'grid-rows-[1fr]',\n )}\n >\n {header != null && (\n <div data-slot=\"settings-page-header\" className=\"ps-2.5\">\n {header}\n </div>\n )}\n {header == null && title != null && (\n <PageHeader data-slot=\"settings-page-header\" className=\"ps-2.5\">\n <PageHeader.Title>{title}</PageHeader.Title>\n {titleAccessory != null && <PageHeader.Meta beside>{titleAccessory}</PageHeader.Meta>}\n {action != null && <PageHeader.Action>{action}</PageHeader.Action>}\n </PageHeader>\n )}\n <div\n data-slot=\"settings-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 );\n}\n","import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@/lib/utils';\n\n/**\n * A list's first row: its count, caption or empty text on the left and its one action (\"Add account\", \"Invite\n * member\") on the right. A full list and an empty one share this exact look, so the card reads the same either way.\n */\nfunction SettingsListBar({ action, className, children, ...props }: ComponentProps<'div'> & { action?: ReactNode }) {\n return (\n <div\n className={cn(\n // As tall as a `SettingsRow` (label + one-line description) plus the 13px the card puts above and below each\n // row, since this row's own box includes that padding. Keeps a list's first row level with the settings above it.\n 'flex min-h-8 items-center justify-between gap-3 sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5+--spacing(6.5))]',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0 truncate text-label text-foreground\">{children}</div>\n {action != null && <div className=\"flex shrink-0 items-center gap-2\">{action}</div>}\n </div>\n );\n}\n\nexport type SettingsListHeaderProps = ComponentProps<'div'> & {\n /** The list's action, on the right. Refresh and other list controls can sit beside it. */\n action?: ReactNode;\n};\n\n/** The first row of a list's `SettingsContainer`: a count (\"2 accounts\") and the list's action. */\nexport function SettingsListHeader(props: SettingsListHeaderProps) {\n return <SettingsListBar data-slot=\"settings-list-header\" {...props} />;\n}\n\nexport type SettingsEmptyRowProps = ComponentProps<'div'> & {\n /** The same action the list's header would hold, so an empty list still offers it. */\n action?: ReactNode;\n};\n\n/**\n * An empty list's only row: what's missing on the left (\"No join links\"), the list's action on the right. Looks\n * exactly like `SettingsListHeader`, so empty and full lists match; use it for every empty list in a card.\n */\nexport function SettingsEmptyRow(props: SettingsEmptyRowProps) {\n return <SettingsListBar data-slot=\"settings-empty-row\" {...props} />;\n}\n\n/** A list's notices and errors, as a row of its `SettingsContainer`. Takes no space while it has nothing in it. */\nexport function SettingsNoticeRow({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"settings-notice-row\" className={cn('flex flex-col gap-2', className)} {...props} />;\n}\n\n/** The square on the left of a `SettingsItem` holding an icon or logo. Avatars use `Avatar size=\"md\"`, the\n * same size, so every list's text starts at the same place. */\nexport function SettingsItemIcon({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"settings-item-icon\"\n aria-hidden\n className={cn(\n 'flex size-avatar-md shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground [&>svg]:size-icon-md',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type SettingsItemProps = Omit<ComponentProps<'div'>, 'title'> & {\n /** A `SettingsItemIcon` or an `Avatar size=\"md\"`. */\n media?: ReactNode;\n title: ReactNode;\n /** One line under the title: \"GitHub · Connected 3 weeks ago\". */\n description?: ReactNode;\n /** The item's status or actions, on the right. */\n children?: ReactNode;\n};\n\n/**\n * One thing in a settings list (an account, a member, a session, a source, a package version). Its right side holds\n * the item's status or its own actions (Remove, Revoke, Copy), not a control that changes a setting. Goes in a\n * `SettingsContainer`, usually under a `SettingsListHeader`.\n *\n * For a setting the person changes (an input, select or switch with a label), use `SettingsRow` instead.\n *\n * @example\n * <SettingsItem media={<Avatar size=\"md\" … />} title=\"Ada Lovelace\" description=\"ada@example.com\">\n * <Button size=\"sm\" variant=\"ghost\">Remove</Button>\n * </SettingsItem>\n */\nexport function SettingsItem({ media, title, description, children, className, ...props }: SettingsItemProps) {\n return (\n <div\n data-slot=\"settings-item\"\n // Below `sm` the item's value or actions wrap onto their own full-width line under the title, as a\n // `SettingsRow`'s control does, so a long value (an email, a type) never squeezes the title out.\n className={cn('flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 sm:flex-nowrap', className)}\n {...props}\n >\n {media}\n <div className=\"flex min-w-0 flex-1 flex-col gap-px\">\n {/* A string title truncates, so it also goes in the hover title to stay readable in full. */}\n <div className=\"truncate text-label text-foreground\" title={typeof title === 'string' ? title : undefined}>\n {title}\n </div>\n {description != null && <div className=\"truncate text-caption text-muted-foreground\">{description}</div>}\n </div>\n {children != null && (\n <div className=\"flex min-w-0 basis-full items-center gap-2 sm:shrink-0 sm:basis-auto\">{children}</div>\n )}\n </div>\n );\n}\n","import { SettingsItem } from './settings-list';\nimport { SettingsRow } from './settings-row';\nimport { Skeleton } from '@/ds/components/Skeleton/skeleton';\nimport { SkeletonText } from '@/ds/components/Skeleton/skeleton-text';\nimport { cn } from '@/lib/utils';\n\nconst bar = 'motion-reduce:before:animate-none';\n\nexport type SettingsSkeletonProps = {\n /** Announced while loading, e.g. \"Loading members\". */\n label: string;\n /** Placeholder rows, matching how many the loaded list usually has. */\n rows?: number;\n /** `row` stands in for `SettingsRow`s (label left, control right); `item` for `SettingsItem`s (icon, title, description). */\n variant?: 'row' | 'item';\n className?: string;\n};\n\n/**\n * The loading state for anything inside a `SettingsContainer`. Placeholders are built from the real `SettingsRow` and\n * `SettingsItem`, so they sit exactly where the loaded rows will.\n *\n * ```tsx\n * <SettingsContainer>\n * {isLoading ? <SettingsSkeleton label=\"Loading members\" variant=\"item\" rows={3} /> : members.map(...)}\n * </SettingsContainer>\n * ```\n */\nexport function SettingsSkeleton({ label, rows = 2, variant = 'row', className }: SettingsSkeletonProps) {\n const Placeholder = variant === 'item' ? ItemPlaceholder : RowPlaceholder;\n\n return (\n // One child of the card, so it takes the card's row padding; inside, rows repeat that rhythm with hairlines.\n <div\n role=\"status\"\n aria-label={label}\n data-slot=\"settings-skeleton\"\n className={cn('grid divide-y divide-border *:py-3.25 *:first:pt-0 *:last:pb-0', className)}\n >\n {Array.from({ length: rows }, (_, index) => (\n <Placeholder key={index} />\n ))}\n </div>\n );\n}\n\nfunction ItemPlaceholder() {\n return (\n <SettingsItem\n aria-hidden\n media={<Skeleton className={cn('size-avatar-md shrink-0 rounded-lg', bar)} />}\n title={<SkeletonText line=\"text-label\" className={cn('w-32', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n />\n );\n}\n\nfunction RowPlaceholder() {\n return (\n <SettingsRow\n aria-hidden\n label={<SkeletonText line=\"text-label\" className={cn('w-28', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n >\n <Skeleton className={cn('h-control-sm w-28 max-w-full rounded-full', bar)} />\n </SettingsRow>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAM,oBAAoB,GAExB,mFACA,sFACA,eACF;;AAKA,SAAgB,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CACjF,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAqB,WAAW,GAAG,mBAAmB,SAAS;EAAG,GAAI;CAAQ,CAAA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BAAC,UAAD,EAAU,WAAW,GAAG,sCAAsC,GAAG,EAAI,CAAA;EAC5E,OAAO,oBAAC,cAAD;GAAc,MAAK;GAAa,WAAW,GAAG,QAAQ,GAAG;EAAI,CAAA;EACpE,aAAa,oBAAC,cAAD;GAAc,MAAK;GAAe,WAAW,GAAG,mBAAmB,GAAG;EAAI,CAAA;CACxF,CAAA;AAEL;AAEA,SAAS,iBAAiB;CACxB,OACE,oBAAC,aAAD;EACE,eAAA;EACA,OAAO,oBAAC,cAAD;GAAc,MAAK;GAAa,WAAW,GAAG,QAAQ,GAAG;EAAI,CAAA;EACpE,aAAa,oBAAC,cAAD;GAAc,MAAK;GAAe,WAAW,GAAG,mBAAmB,GAAG;EAAI,CAAA;EAEvF,UAAA,oBAAC,UAAD,EAAU,WAAW,GAAG,6CAA6C,GAAG,EAAI,CAAA;CACjE,CAAA;AAEjB"}
@@ -6,16 +6,23 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  // src/ds/new/settings/settings-row.tsx
7
7
  /** Label left, control right; stacked below `sm`. The card around the row gives it its spacing. */
8
8
  var rowClassName = "min-w-0 gap-3";
9
- /** Side by side: label left, control pushed right. A control below its label fills the row instead. */
10
- var sideRowClassName = "sm:justify-between sm:gap-6";
9
+ /**
10
+ * Side by side: label left, control right. The label stays at the top, so a control that grows (an error or preview
11
+ * line under a field) doesn't pull it down. When the control is too wide to sit beside the label (keeping the label at
12
+ * least 16rem), it wraps onto its own line under the label, starting at the left edge. A control below its label fills
13
+ * the row instead.
14
+ */
15
+ var sideRowClassName = "sm:flex-wrap sm:items-start sm:justify-between sm:gap-x-6 sm:gap-y-3";
11
16
  var headingClassName = "flex min-w-0 flex-col gap-px";
12
17
  /** Beside its control, the label column is as tall as a label with a one-line description, so rows with and without one match. */
13
- var sideHeadingClassName = "sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center";
18
+ var sideHeadingClassName = "sm:flex-[1_1_16rem] sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center";
14
19
  /**
15
- * The control column on the right. Inputs fill it (at least 13.75rem); selects and other field triggers hug
16
- * their value (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width.
20
+ * The controls. With a text input they take at least 13.75rem; selects and other field triggers hug their value
21
+ * (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width; switches and buttons keep their size,
22
+ * so a row of only those never wraps for lack of room. The column is as tall as the row, so a control shorter than the
23
+ * label column is centered against it.
17
24
  */
18
- var sideControlClassName = "flex min-w-0 items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:min-w-55 sm:shrink-0";
25
+ var sideControlClassName = "flex min-w-0 max-w-full flex-wrap items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:shrink-0 sm:self-stretch sm:has-[>input:not([aria-hidden]),>[data-slot=input-group]]:min-w-55";
19
26
  function SettingsRowControl({ viewOnly = false, children }) {
20
27
  if (!viewOnly) return children;
21
28
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
@@ -96,7 +103,7 @@ function SettingsFieldsetRow({ label, description, children, className, controlP
96
103
  return /* @__PURE__ */ jsxs(Fieldset, {
97
104
  "data-slot": "settings-row",
98
105
  "aria-describedby": description == null ? void 0 : descriptionId,
99
- className: cn("flex flex-col", rowClassName, !controlBelow && ["sm:flex-row sm:items-center", sideRowClassName], className),
106
+ className: cn("flex flex-col", rowClassName, !controlBelow && ["sm:flex-row", sideRowClassName], className),
100
107
  ...props,
101
108
  children: [/* @__PURE__ */ jsxs("div", {
102
109
  className: cn(headingClassName, !controlBelow && sideHeadingClassName),
@@ -114,4 +121,4 @@ function SettingsFieldsetRow({ label, description, children, className, controlP
114
121
  }
115
122
  export { SettingsRow as n, SettingsRowControl as r, SettingsFieldsetRow as t };
116
123
 
117
- //# sourceMappingURL=settings-row-BnlFZSQL.js.map
124
+ //# sourceMappingURL=settings-row-BeVVZ7Bs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-row-BeVVZ7Bs.js","names":["_Fragment"],"sources":["../src/ds/new/settings/settings-row.tsx"],"sourcesContent":["import { useId } from 'react';\nimport type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend } from '@/ds/components/Field';\nimport type { FieldProps, FieldsetProps } from '@/ds/components/Field';\nimport { IconLock } from '@/ds/icons/central/IconLock';\nimport { cn } from '@/lib/utils';\n\nexport type SettingsRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n /** @deprecated The row's `Field` names the control it holds; drop `htmlFor` and the control's `id`. */\n htmlFor?: string;\n children?: ReactNode;\n tone?: 'default' | 'destructive';\n viewOnly?: boolean;\n required?: boolean;\n errorMsg?: ReactNode;\n /**\n * `side` (default): the control sits on the right. Text fields take one shared width (13.75rem), selects hug\n * their value up to that width, and switches and buttons keep their own size; all end at the right edge.\n * `below`: the control goes under the label at full width, for forms with several controls.\n */\n controlPlacement?: 'side' | 'below';\n};\n\n/** Label left, control right; stacked below `sm`. The card around the row gives it its spacing. */\nconst rowClassName = 'min-w-0 gap-3';\n/**\n * Side by side: label left, control right. The label stays at the top, so a control that grows (an error or preview\n * line under a field) doesn't pull it down. When the control is too wide to sit beside the label (keeping the label at\n * least 16rem), it wraps onto its own line under the label, starting at the left edge. A control below its label fills\n * the row instead.\n */\nconst sideRowClassName = 'sm:flex-wrap sm:items-start sm:justify-between sm:gap-x-6 sm:gap-y-3';\nconst headingClassName = 'flex min-w-0 flex-col gap-px';\n/** Beside its control, the label column is as tall as a label with a one-line description, so rows with and without one match. */\nconst sideHeadingClassName =\n 'sm:flex-[1_1_16rem] sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center';\n/**\n * The controls. With a text input they take at least 13.75rem; selects and other field triggers hug their value\n * (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width; switches and buttons keep their size,\n * so a row of only those never wraps for lack of room. The column is as tall as the row, so a control shorter than the\n * label column is centered against it.\n */\nconst sideControlClassName =\n 'flex min-w-0 max-w-full flex-wrap items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:shrink-0 sm:self-stretch sm:has-[>input:not([aria-hidden]),>[data-slot=input-group]]:min-w-55';\n\nexport function SettingsRowControl({ viewOnly = false, children }: { viewOnly?: boolean; children: ReactNode }) {\n if (!viewOnly) return children;\n return (\n <>\n <IconLock className=\"size-icon-md shrink-0\" aria-hidden />\n <span className=\"sr-only\">View only: </span>\n {children}\n </>\n );\n}\n\n/**\n * One setting the person changes: a label, an optional one-line description, and the control that changes it. The\n * row is a form field, so its label names the control. Goes in a `SettingsContainer`.\n *\n * For one thing in a list (an account, a member, an API key, a package version), use `SettingsItem` instead: a row\n * with no control, or one per record in a `.map`, is a list item. A setting someone may not change stays a\n * `SettingsRow` with `viewOnly`.\n *\n * @example\n * <SettingsRow label=\"Theme\" description=\"Color scheme for the interface.\">\n * <ThemeToggle />\n * </SettingsRow>\n */\nexport function SettingsRow({\n label,\n description,\n htmlFor,\n children,\n className,\n tone = 'default',\n viewOnly = false,\n required = false,\n errorMsg,\n disabled,\n controlPlacement = 'side',\n ...props\n}: SettingsRowProps) {\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Field\n orientation={controlBelow ? 'vertical' : 'responsive'}\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"settings-row\"\n className={cn(rowClassName, !controlBelow && sideRowClassName, className)}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(tone === 'destructive' && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && (\n <FieldDescription render={<div />} className=\"mt-0 flex flex-col gap-0.5 text-pretty\">\n {description}\n </FieldDescription>\n )}\n <FieldError className=\"mt-0\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"settings-row-control\"\n className={cn(\n 'min-w-0',\n !controlBelow && sideControlClassName,\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\nexport type SettingsFieldsetRowProps = Omit<FieldsetProps, 'children'> & {\n label: ReactNode;\n description?: ReactNode;\n children?: ReactNode;\n /** Same as `SettingsRow`'s: `below` puts the controls under the label at full width. */\n controlPlacement?: 'side' | 'below';\n};\n\n/**\n * A `SettingsRow` for one setting made of several controls (radios, several switches), labelled by a legend. Same\n * rule as `SettingsRow`: a setting the person changes, never a list entry.\n *\n * @example\n * <SettingsFieldsetRow label=\"Notify me about\" controlPlacement=\"below\">\n * <Checkbox … />\n * </SettingsFieldsetRow>\n */\nexport function SettingsFieldsetRow({\n label,\n description,\n children,\n className,\n controlPlacement = 'side',\n ...props\n}: SettingsFieldsetRowProps) {\n const descriptionId = useId();\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Fieldset\n data-slot=\"settings-row\"\n aria-describedby={description == null ? undefined : descriptionId}\n className={cn('flex flex-col', rowClassName, !controlBelow && ['sm:flex-row', sideRowClassName], className)}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldsetLegend>{label}</FieldsetLegend>\n {description != null && (\n <div id={descriptionId} className=\"flex flex-col gap-0.5 text-caption text-pretty text-muted-foreground\">\n {description}\n </div>\n )}\n </div>\n {children != null && (\n <div data-slot=\"settings-row-control\" className={cn('min-w-0', !controlBelow && sideControlClassName)}>\n {children}\n </div>\n )}\n </Fieldset>\n );\n}\n"],"mappings":";;;;;;;AA0BA,IAAM,eAAe;;;;;;;AAOrB,IAAM,mBAAmB;AACzB,IAAM,mBAAmB;;AAEzB,IAAM,uBACJ;;;;;;;AAOF,IAAM,uBACJ;AAEF,SAAgB,mBAAmB,EAAE,WAAW,OA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AgB,MAAM;CAC5B,MAAM,eAAe,qBAAqB;CAE1C,OACE,qBAAC,UAAD;EACE,aAAU;EACV,oBAAkB,eAAe,OAAO,KAAA,IAAY;EACpD,WAAW,GAAG,iBAAiB,cAAc,CAAC,gBAAgB,CAAC,eAAe,gBAAgB,GAAG,SAAS;EAC1G,GAAI;EAJN,UAAA,CAME,qBAAC,OAAD;GAAK,WAAW,GAAG,kBAAkB,CAAC,gBAAgB,oBAAoB;GAA1E,UAAA,CACE,oBAAC,gBAAD,EAAA,UAAiB,MAAsB,CAAA,GACtC,eAAe,QACd,oBAAC,OAAD;IAAK,IAAI;IAAe,WAAU;IAC/B,UAAA;GACE,CAAA,CAEJ;EACJ,CAAA,GAAA,YAAY,QACX,oBAAC,OAAD;GAAK,aAAU;GAAuB,WAAW,GAAG,WAAW,CAAC,gBAAgB,oBAAoB;GACjG;EACE,CAAA,CAEC;;AAEd"}
@@ -6,16 +6,23 @@ let react_jsx_runtime = require("react/jsx-runtime");
6
6
  // src/ds/new/settings/settings-row.tsx
7
7
  /** Label left, control right; stacked below `sm`. The card around the row gives it its spacing. */
8
8
  var rowClassName = "min-w-0 gap-3";
9
- /** Side by side: label left, control pushed right. A control below its label fills the row instead. */
10
- var sideRowClassName = "sm:justify-between sm:gap-6";
9
+ /**
10
+ * Side by side: label left, control right. The label stays at the top, so a control that grows (an error or preview
11
+ * line under a field) doesn't pull it down. When the control is too wide to sit beside the label (keeping the label at
12
+ * least 16rem), it wraps onto its own line under the label, starting at the left edge. A control below its label fills
13
+ * the row instead.
14
+ */
15
+ var sideRowClassName = "sm:flex-wrap sm:items-start sm:justify-between sm:gap-x-6 sm:gap-y-3";
11
16
  var headingClassName = "flex min-w-0 flex-col gap-px";
12
17
  /** Beside its control, the label column is as tall as a label with a one-line description, so rows with and without one match. */
13
- var sideHeadingClassName = "sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center";
18
+ var sideHeadingClassName = "sm:flex-[1_1_16rem] sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center";
14
19
  /**
15
- * The control column on the right. Inputs fill it (at least 13.75rem); selects and other field triggers hug
16
- * their value (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width.
20
+ * The controls. With a text input they take at least 13.75rem; selects and other field triggers hug their value
21
+ * (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width; switches and buttons keep their size,
22
+ * so a row of only those never wraps for lack of room. The column is as tall as the row, so a control shorter than the
23
+ * label column is centered against it.
17
24
  */
18
- var sideControlClassName = "flex min-w-0 items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:min-w-55 sm:shrink-0";
25
+ var sideControlClassName = "flex min-w-0 max-w-full flex-wrap items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:shrink-0 sm:self-stretch sm:has-[>input:not([aria-hidden]),>[data-slot=input-group]]:min-w-55";
19
26
  function SettingsRowControl({ viewOnly = false, children }) {
20
27
  if (!viewOnly) return children;
21
28
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
@@ -96,7 +103,7 @@ function SettingsFieldsetRow({ label, description, children, className, controlP
96
103
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Field.Fieldset, {
97
104
  "data-slot": "settings-row",
98
105
  "aria-describedby": description == null ? void 0 : descriptionId,
99
- className: require_utils.cn("flex flex-col", rowClassName, !controlBelow && ["sm:flex-row sm:items-center", sideRowClassName], className),
106
+ className: require_utils.cn("flex flex-col", rowClassName, !controlBelow && ["sm:flex-row", sideRowClassName], className),
100
107
  ...props,
101
108
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
102
109
  className: require_utils.cn(headingClassName, !controlBelow && sideHeadingClassName),
@@ -131,4 +138,4 @@ Object.defineProperty(exports, "SettingsRowControl", {
131
138
  }
132
139
  });
133
140
 
134
- //# sourceMappingURL=settings-row-Da1HHyBg.cjs.map
141
+ //# sourceMappingURL=settings-row-SN-YS0LA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-row-SN-YS0LA.cjs","names":["_Fragment","IconLock","Field","cn","FieldLabel","FieldDescription","FieldError","useId","Fieldset","FieldsetLegend"],"sources":["../src/ds/new/settings/settings-row.tsx"],"sourcesContent":["import { useId } from 'react';\nimport type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend } from '@/ds/components/Field';\nimport type { FieldProps, FieldsetProps } from '@/ds/components/Field';\nimport { IconLock } from '@/ds/icons/central/IconLock';\nimport { cn } from '@/lib/utils';\n\nexport type SettingsRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n /** @deprecated The row's `Field` names the control it holds; drop `htmlFor` and the control's `id`. */\n htmlFor?: string;\n children?: ReactNode;\n tone?: 'default' | 'destructive';\n viewOnly?: boolean;\n required?: boolean;\n errorMsg?: ReactNode;\n /**\n * `side` (default): the control sits on the right. Text fields take one shared width (13.75rem), selects hug\n * their value up to that width, and switches and buttons keep their own size; all end at the right edge.\n * `below`: the control goes under the label at full width, for forms with several controls.\n */\n controlPlacement?: 'side' | 'below';\n};\n\n/** Label left, control right; stacked below `sm`. The card around the row gives it its spacing. */\nconst rowClassName = 'min-w-0 gap-3';\n/**\n * Side by side: label left, control right. The label stays at the top, so a control that grows (an error or preview\n * line under a field) doesn't pull it down. When the control is too wide to sit beside the label (keeping the label at\n * least 16rem), it wraps onto its own line under the label, starting at the left edge. A control below its label fills\n * the row instead.\n */\nconst sideRowClassName = 'sm:flex-wrap sm:items-start sm:justify-between sm:gap-x-6 sm:gap-y-3';\nconst headingClassName = 'flex min-w-0 flex-col gap-px';\n/** Beside its control, the label column is as tall as a label with a one-line description, so rows with and without one match. */\nconst sideHeadingClassName =\n 'sm:flex-[1_1_16rem] sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center';\n/**\n * The controls. With a text input they take at least 13.75rem; selects and other field triggers hug their value\n * (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width; switches and buttons keep their size,\n * so a row of only those never wraps for lack of room. The column is as tall as the row, so a control shorter than the\n * label column is centered against it.\n */\nconst sideControlClassName =\n 'flex min-w-0 max-w-full flex-wrap items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:shrink-0 sm:self-stretch sm:has-[>input:not([aria-hidden]),>[data-slot=input-group]]:min-w-55';\n\nexport function SettingsRowControl({ viewOnly = false, children }: { viewOnly?: boolean; children: ReactNode }) {\n if (!viewOnly) return children;\n return (\n <>\n <IconLock className=\"size-icon-md shrink-0\" aria-hidden />\n <span className=\"sr-only\">View only: </span>\n {children}\n </>\n );\n}\n\n/**\n * One setting the person changes: a label, an optional one-line description, and the control that changes it. The\n * row is a form field, so its label names the control. Goes in a `SettingsContainer`.\n *\n * For one thing in a list (an account, a member, an API key, a package version), use `SettingsItem` instead: a row\n * with no control, or one per record in a `.map`, is a list item. A setting someone may not change stays a\n * `SettingsRow` with `viewOnly`.\n *\n * @example\n * <SettingsRow label=\"Theme\" description=\"Color scheme for the interface.\">\n * <ThemeToggle />\n * </SettingsRow>\n */\nexport function SettingsRow({\n label,\n description,\n htmlFor,\n children,\n className,\n tone = 'default',\n viewOnly = false,\n required = false,\n errorMsg,\n disabled,\n controlPlacement = 'side',\n ...props\n}: SettingsRowProps) {\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Field\n orientation={controlBelow ? 'vertical' : 'responsive'}\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"settings-row\"\n className={cn(rowClassName, !controlBelow && sideRowClassName, className)}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(tone === 'destructive' && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && (\n <FieldDescription render={<div />} className=\"mt-0 flex flex-col gap-0.5 text-pretty\">\n {description}\n </FieldDescription>\n )}\n <FieldError className=\"mt-0\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"settings-row-control\"\n className={cn(\n 'min-w-0',\n !controlBelow && sideControlClassName,\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\nexport type SettingsFieldsetRowProps = Omit<FieldsetProps, 'children'> & {\n label: ReactNode;\n description?: ReactNode;\n children?: ReactNode;\n /** Same as `SettingsRow`'s: `below` puts the controls under the label at full width. */\n controlPlacement?: 'side' | 'below';\n};\n\n/**\n * A `SettingsRow` for one setting made of several controls (radios, several switches), labelled by a legend. Same\n * rule as `SettingsRow`: a setting the person changes, never a list entry.\n *\n * @example\n * <SettingsFieldsetRow label=\"Notify me about\" controlPlacement=\"below\">\n * <Checkbox … />\n * </SettingsFieldsetRow>\n */\nexport function SettingsFieldsetRow({\n label,\n description,\n children,\n className,\n controlPlacement = 'side',\n ...props\n}: SettingsFieldsetRowProps) {\n const descriptionId = useId();\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Fieldset\n data-slot=\"settings-row\"\n aria-describedby={description == null ? undefined : descriptionId}\n className={cn('flex flex-col', rowClassName, !controlBelow && ['sm:flex-row', sideRowClassName], className)}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldsetLegend>{label}</FieldsetLegend>\n {description != null && (\n <div id={descriptionId} className=\"flex flex-col gap-0.5 text-caption text-pretty text-muted-foreground\">\n {description}\n </div>\n )}\n </div>\n {children != null && (\n <div data-slot=\"settings-row-control\" className={cn('min-w-0', !controlBelow && sideControlClassName)}>\n {children}\n </div>\n )}\n </Fieldset>\n );\n}\n"],"mappings":";;;;;;;AA0BA,IAAM,eAAe;;;;;;;AAOrB,IAAM,mBAAmB;A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7 @@ const require_utils = require("./utils-uDc1ofX1.cjs");
3
3
  const require_tooltip = require("./tooltip-BsExuMO8.cjs");
4
4
  const require_Txt = require("./Txt-_00wWxTd.cjs");
5
5
  const require_page_header = require("./page-header-pZCts_WC.cjs");
6
- const require_settings_row = require("./settings-row-Da1HHyBg.cjs");
6
+ const require_settings_row = require("./settings-row-SN-YS0LA.cjs");
7
7
  const require_skeleton_text = require("./skeleton-text-Bi4d2-D8.cjs");
8
8
  let react = require("react");
9
9
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -344,4 +344,4 @@ Object.defineProperty(exports, "SettingsTitle", {
344
344
  }
345
345
  });
346
346
 
347
- //# sourceMappingURL=settings-C85I1245.cjs.map
347
+ //# sourceMappingURL=settings-u4KjAKPi.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-C85I1245.cjs","names":["cn","fieldsOnSurface","createContext","useId","cn","useContext","Txt","Tooltip","TooltipTrigger","TooltipContent","cn","PageHeader","cn","cn","Skeleton","SkeletonText","SettingsRow"],"sources":["../src/ds/new/settings/settings-container.tsx","../src/ds/new/settings/settings-header.tsx","../src/ds/new/settings/settings-layout.tsx","../src/ds/new/settings/settings-list.tsx","../src/ds/new/settings/settings-skeleton.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { fieldsOnSurface } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\n/**\n * A settings card: the card fill with no rim, 14px from its edge to the content, and hairlines between rows that\n * stop at that inset. The card owns its rows' spacing: each direct child gets 13px above and below, and the card\n * adds the last 1px at its edges. Children with nothing in them (an empty `SettingsNoticeRow`) take no space and\n * draw no hairline, so a list can always render its notice row.\n */\nconst settingsCardStyle = cn(\n // `!`: the card owns row spacing, so a row's own reset (`Fieldset`'s `p-0`) can't remove it.\n 'flex min-w-0 flex-col rounded-xl bg-card px-3.5 py-px *:py-3.25! *:empty:hidden',\n '[&>:not(:empty)~:not(:empty)]:border-t [&>:not(:empty)~:not(:empty)]:border-border',\n fieldsOnSurface,\n);\n\nexport type SettingsContainerProps = ComponentProps<'div'>;\n\n/** One settings card. Holds `SettingsRow`s, `SettingsItem`s, a `SettingsListHeader` or a `SettingsEmptyRow`. */\nexport function SettingsContainer({ className, ...props }: SettingsContainerProps) {\n return <div data-slot=\"settings-container\" className={cn(settingsCardStyle, className)} {...props} />;\n}\n","import { createContext, useContext, useId } from 'react';\nimport type { ComponentProps, ReactNode } from 'react';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/ds/components/Tooltip';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\n// On a settings page (`SettingsLayout`), section titles and descriptions sit 10px inside the card's edge, in line with\n// the inset page title. Anywhere else (forms, other pages) they line up with the page's left edge and field labels.\n// The inset is a custom property, so a caller's `ps-*` class still wins. Written out in full so Tailwind finds it.\nconst settingsInset =\n '[--settings-inset:0px] in-data-[slot=settings-layout]:[--settings-inset:--spacing(2.5)] ps-(--settings-inset)';\n\nconst SettingsTitleIdContext = createContext<string | undefined>(undefined);\n\n/** One section of a settings page: a `SettingsTitle` (or `SettingsHeader`) above its `SettingsContainer`. */\nexport function SettingsGroup({ className, ...props }: ComponentProps<'section'>) {\n const titleId = useId();\n\n return (\n <SettingsTitleIdContext.Provider value={titleId}>\n <section\n aria-labelledby={titleId}\n className={cn('flex min-w-0 scroll-mt-4 flex-col gap-2', className)}\n {...props}\n />\n </SettingsTitleIdContext.Provider>\n );\n}\n\n/** A section title with something beside it. A list's actions go in its card (`SettingsListHeader`), not here. */\nexport function SettingsHeader({\n action,\n children,\n className,\n ...props\n}: ComponentProps<'header'> & { action?: ReactNode }) {\n return (\n <header\n className={cn('flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-4', className)}\n {...props}\n >\n <div className=\"flex min-w-0 flex-col gap-1\">{children}</div>\n {action != null && <div className=\"shrink-0\">{action}</div>}\n </header>\n );\n}\n\nexport function SettingsTitle({\n accessory,\n info,\n className,\n children,\n ...props\n}: Omit<ComponentProps<'h2'>, 'id'> & {\n accessory?: ReactNode;\n /** What the section is for, shown in a tooltip on the title. For sections whose name isn't self-explanatory. */\n info?: ReactNode;\n}) {\n const titleId = useContext(SettingsTitleIdContext);\n\n return (\n <div className={cn('flex min-w-0 flex-wrap items-center gap-2', settingsInset)}>\n <Txt as=\"h2\" id={titleId} variant=\"subheading\" tone=\"ink\" className={className} {...props}>\n {info == null ? children : <SettingsTitleInfo info={info}>{children}</SettingsTitleInfo>}\n </Txt>\n {accessory}\n </div>\n );\n}\n\n/** The title's text as a tooltip trigger, described by `info`. */\nfunction SettingsTitleInfo({ info, children }: { info: ReactNode; children: ReactNode }) {\n const infoId = useId();\n\n return (\n <Tooltip>\n <TooltipTrigger\n render={\n <span\n tabIndex={0}\n aria-describedby={infoId}\n className=\"cursor-help underline decoration-transparent decoration-dotted underline-offset-4 hover:decoration-current focus-visible:decoration-current focus-visible:outline-none\"\n />\n }\n >\n {children}\n </TooltipTrigger>\n <TooltipContent id={infoId} keepMounted className=\"max-w-64\">\n {info}\n </TooltipContent>\n </Tooltip>\n );\n}\n\nexport function SettingsDescription({ className, ...props }: ComponentProps<'p'>) {\n return <Txt as=\"p\" variant=\"caption\" tone=\"muted\" className={cn(settingsInset, className)} {...props} />;\n}\n","import type { ReactNode } from 'react';\nimport { PageHeader } from '@/ds/new/layout/page-header';\nimport { cn } from '@/lib/utils';\n\nexport interface SettingsLayoutProps {\n /** The page title. Leave it out when the app's own header already names the page. */\n title?: ReactNode;\n titleAccessory?: ReactNode;\n action?: ReactNode;\n /** A header of the app's own in place of `title` (a `PageHeader` whose title takes focus), with the same inset. */\n header?: ReactNode;\n /** `SettingsGroup`s, 28px apart. */\n children: ReactNode;\n}\n\n/**\n * A settings page: a centered 640px column with the title, inset like the section titles, above its sections.\n * The app's page around it gives the side gutter (`PageLayout`, Factory's settings panel, Platform's page).\n */\nexport function SettingsLayout({ title, titleAccessory, action, header, children }: SettingsLayoutProps) {\n return (\n // The content row takes the rest of the page's height, so a lone `EmptyState variant=\"fill\"` centers in it.\n <div\n data-slot=\"settings-layout\"\n className={cn(\n 'mx-auto grid min-h-full w-full max-w-160 min-w-0 gap-8 py-6',\n header != null || title != null ? 'grid-rows-[auto_1fr]' : 'grid-rows-[1fr]',\n )}\n >\n {header != null && (\n <div data-slot=\"settings-page-header\" className=\"ps-2.5\">\n {header}\n </div>\n )}\n {header == null && title != null && (\n <PageHeader data-slot=\"settings-page-header\" className=\"ps-2.5\">\n <PageHeader.Title>{title}</PageHeader.Title>\n {titleAccessory != null && <PageHeader.Meta beside>{titleAccessory}</PageHeader.Meta>}\n {action != null && <PageHeader.Action>{action}</PageHeader.Action>}\n </PageHeader>\n )}\n <div\n data-slot=\"settings-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 );\n}\n","import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@/lib/utils';\n\n/**\n * A list's first row: its count, caption or empty text on the left and its one action (\"Add account\", \"Invite\n * member\") on the right. A full list and an empty one share this exact look, so the card reads the same either way.\n */\nfunction SettingsListBar({ action, className, children, ...props }: ComponentProps<'div'> & { action?: ReactNode }) {\n return (\n <div\n className={cn(\n // As tall as a `SettingsRow` (label + one-line description) plus the 13px the card puts above and below each\n // row, since this row's own box includes that padding. Keeps a list's first row level with the settings above it.\n 'flex min-h-8 items-center justify-between gap-3 sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5+--spacing(6.5))]',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0 truncate text-label text-foreground\">{children}</div>\n {action != null && <div className=\"flex shrink-0 items-center gap-2\">{action}</div>}\n </div>\n );\n}\n\nexport type SettingsListHeaderProps = ComponentProps<'div'> & {\n /** The list's action, on the right. Refresh and other list controls can sit beside it. */\n action?: ReactNode;\n};\n\n/** The first row of a list's `SettingsContainer`: a count (\"2 accounts\") and the list's action. */\nexport function SettingsListHeader(props: SettingsListHeaderProps) {\n return <SettingsListBar data-slot=\"settings-list-header\" {...props} />;\n}\n\nexport type SettingsEmptyRowProps = ComponentProps<'div'> & {\n /** The same action the list's header would hold, so an empty list still offers it. */\n action?: ReactNode;\n};\n\n/**\n * An empty list's only row: what's missing on the left (\"No join links\"), the list's action on the right. Looks\n * exactly like `SettingsListHeader`, so empty and full lists match; use it for every empty list in a card.\n */\nexport function SettingsEmptyRow(props: SettingsEmptyRowProps) {\n return <SettingsListBar data-slot=\"settings-empty-row\" {...props} />;\n}\n\n/** A list's notices and errors, as a row of its `SettingsContainer`. Takes no space while it has nothing in it. */\nexport function SettingsNoticeRow({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"settings-notice-row\" className={cn('flex flex-col gap-2', className)} {...props} />;\n}\n\n/** The square on the left of a `SettingsItem` holding an icon or logo. Avatars use `Avatar size=\"md\"`, the\n * same size, so every list's text starts at the same place. */\nexport function SettingsItemIcon({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"settings-item-icon\"\n aria-hidden\n className={cn(\n 'flex size-avatar-md shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground [&>svg]:size-icon-md',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type SettingsItemProps = Omit<ComponentProps<'div'>, 'title'> & {\n /** A `SettingsItemIcon` or an `Avatar size=\"md\"`. */\n media?: ReactNode;\n title: ReactNode;\n /** One line under the title: \"GitHub · Connected 3 weeks ago\". */\n description?: ReactNode;\n /** The item's status or actions, on the right. */\n children?: ReactNode;\n};\n\n/**\n * One thing in a settings list (an account, a member, a session, a source, a package version). Its right side holds\n * the item's status or its own actions (Remove, Revoke, Copy), not a control that changes a setting. Goes in a\n * `SettingsContainer`, usually under a `SettingsListHeader`.\n *\n * For a setting the person changes (an input, select or switch with a label), use `SettingsRow` instead.\n *\n * @example\n * <SettingsItem media={<Avatar size=\"md\" … />} title=\"Ada Lovelace\" description=\"ada@example.com\">\n * <Button size=\"sm\" variant=\"ghost\">Remove</Button>\n * </SettingsItem>\n */\nexport function SettingsItem({ media, title, description, children, className, ...props }: SettingsItemProps) {\n return (\n <div\n data-slot=\"settings-item\"\n // Below `sm` the item's value or actions wrap onto their own full-width line under the title, as a\n // `SettingsRow`'s control does, so a long value (an email, a type) never squeezes the title out.\n className={cn('flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 sm:flex-nowrap', className)}\n {...props}\n >\n {media}\n <div className=\"flex min-w-0 flex-1 flex-col gap-px\">\n {/* A string title truncates, so it also goes in the hover title to stay readable in full. */}\n <div className=\"truncate text-label text-foreground\" title={typeof title === 'string' ? title : undefined}>\n {title}\n </div>\n {description != null && <div className=\"truncate text-caption text-muted-foreground\">{description}</div>}\n </div>\n {children != null && (\n <div className=\"flex min-w-0 basis-full items-center gap-2 sm:shrink-0 sm:basis-auto\">{children}</div>\n )}\n </div>\n );\n}\n","import { SettingsItem } from './settings-list';\nimport { SettingsRow } from './settings-row';\nimport { Skeleton } from '@/ds/components/Skeleton/skeleton';\nimport { SkeletonText } from '@/ds/components/Skeleton/skeleton-text';\nimport { cn } from '@/lib/utils';\n\nconst bar = 'motion-reduce:before:animate-none';\n\nexport type SettingsSkeletonProps = {\n /** Announced while loading, e.g. \"Loading members\". */\n label: string;\n /** Placeholder rows, matching how many the loaded list usually has. */\n rows?: number;\n /** `row` stands in for `SettingsRow`s (label left, control right); `item` for `SettingsItem`s (icon, title, description). */\n variant?: 'row' | 'item';\n className?: string;\n};\n\n/**\n * The loading state for anything inside a `SettingsContainer`. Placeholders are built from the real `SettingsRow` and\n * `SettingsItem`, so they sit exactly where the loaded rows will.\n *\n * ```tsx\n * <SettingsContainer>\n * {isLoading ? <SettingsSkeleton label=\"Loading members\" variant=\"item\" rows={3} /> : members.map(...)}\n * </SettingsContainer>\n * ```\n */\nexport function SettingsSkeleton({ label, rows = 2, variant = 'row', className }: SettingsSkeletonProps) {\n const Placeholder = variant === 'item' ? ItemPlaceholder : RowPlaceholder;\n\n return (\n // One child of the card, so it takes the card's row padding; inside, rows repeat that rhythm with hairlines.\n <div\n role=\"status\"\n aria-label={label}\n data-slot=\"settings-skeleton\"\n className={cn('grid divide-y divide-border *:py-3.25 *:first:pt-0 *:last:pb-0', className)}\n >\n {Array.from({ length: rows }, (_, index) => (\n <Placeholder key={index} />\n ))}\n </div>\n );\n}\n\nfunction ItemPlaceholder() {\n return (\n <SettingsItem\n aria-hidden\n media={<Skeleton className={cn('size-avatar-md shrink-0 rounded-lg', bar)} />}\n title={<SkeletonText line=\"text-label\" className={cn('w-32', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n />\n );\n}\n\nfunction RowPlaceholder() {\n return (\n <SettingsRow\n aria-hidden\n label={<SkeletonText line=\"text-label\" className={cn('w-28', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n >\n <Skeleton className={cn('h-control-sm w-28 max-w-full rounded-full', bar)} />\n </SettingsRow>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAM,oBAAoBA,cAAAA,GAExB,mFACA,sFACAC,kCAAAA,eACF;;AAKA,SAAgB,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CACjF,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,aAAU;EAAqB,WAAWD,cAAAA,GAAG,mBAAmB,SAAS;EAAG,GAAI;CAAQ,CAAA;AACtG;;ACbA,IAAM,gBACJ;AAEF,IAAM,0BAAA,GAAyBE,MAAAA,cAAAA,CAAkC,KAAA,CAAS;;AAG1E,SAAgB,cAAc,EAAE,WAAW,GAAG,SAAoC;CAChF,MAAM,WAAA,GAAUC,MAAAA,MAAAA,CAAM;CAEtB,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAuB,UAAxB;EAAiC,OAAO;EACtC,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;GACE,mBAAiB;GACjB,WAAWC,cAAAA,G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E,eAAA;EACA,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACD,sBAAAA,cAAD;GAAc,MAAK;GAAa,WAAWF,cAAAA,GAAG,QAAQ,GAAG;EAAI,CAAA;EACpE,aAAa,iBAAA,GAAA,kBAAA,IAAA,CAACE,sBAAAA,cAAD;GAAc,MAAK;GAAe,WAAWF,cAAAA,GAAG,mBAAmB,GAAG;EAAI,CAAA;EAEvF,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,UAAD,EAAU,WAAWD,cAAAA,GAAG,6CAA6C,GAAG,EAAI,CAAA;CACjE,CAAA;AAEjB"}
1
+ {"version":3,"file":"settings-u4KjAKPi.cjs","names":["cn","fieldsOnSurface","createContext","useId","cn","useContext","Txt","Tooltip","TooltipTrigger","TooltipContent","cn","PageHeader","cn","cn","Skeleton","SkeletonText","SettingsRow"],"sources":["../src/ds/new/settings/settings-container.tsx","../src/ds/new/settings/settings-header.tsx","../src/ds/new/settings/settings-layout.tsx","../src/ds/new/settings/settings-list.tsx","../src/ds/new/settings/settings-skeleton.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { fieldsOnSurface } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\n/**\n * A settings card: the card fill with no rim, 14px from its edge to the content, and hairlines between rows that\n * stop at that inset. The card owns its rows' spacing: each direct child gets 13px above and below, and the card\n * adds the last 1px at its edges. Children with nothing in them (an empty `SettingsNoticeRow`) take no space and\n * draw no hairline, so a list can always render its notice row.\n */\nconst settingsCardStyle = cn(\n // `!`: the card owns row spacing, so a row's own reset (`Fieldset`'s `p-0`) can't remove it.\n 'flex min-w-0 flex-col rounded-xl bg-card px-3.5 py-px *:py-3.25! *:empty:hidden',\n '[&>:not(:empty)~:not(:empty)]:border-t [&>:not(:empty)~:not(:empty)]:border-border',\n fieldsOnSurface,\n);\n\nexport type SettingsContainerProps = ComponentProps<'div'>;\n\n/** One settings card. Holds `SettingsRow`s, `SettingsItem`s, a `SettingsListHeader` or a `SettingsEmptyRow`. */\nexport function SettingsContainer({ className, ...props }: SettingsContainerProps) {\n return <div data-slot=\"settings-container\" className={cn(settingsCardStyle, className)} {...props} />;\n}\n","import { createContext, useContext, useId } from 'react';\nimport type { ComponentProps, ReactNode } from 'react';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/ds/components/Tooltip';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\n// On a settings page (`SettingsLayout`), section titles and descriptions sit 10px inside the card's edge, in line with\n// the inset page title. Anywhere else (forms, other pages) they line up with the page's left edge and field labels.\n// The inset is a custom property, so a caller's `ps-*` class still wins. Written out in full so Tailwind finds it.\nconst settingsInset =\n '[--settings-inset:0px] in-data-[slot=settings-layout]:[--settings-inset:--spacing(2.5)] ps-(--settings-inset)';\n\nconst SettingsTitleIdContext = createContext<string | undefined>(undefined);\n\n/** One section of a settings page: a `SettingsTitle` (or `SettingsHeader`) above its `SettingsContainer`. */\nexport function SettingsGroup({ className, ...props }: ComponentProps<'section'>) {\n const titleId = useId();\n\n return (\n <SettingsTitleIdContext.Provider value={titleId}>\n <section\n aria-labelledby={titleId}\n className={cn('flex min-w-0 scroll-mt-4 flex-col gap-2', className)}\n {...props}\n />\n </SettingsTitleIdContext.Provider>\n );\n}\n\n/** A section title with something beside it. A list's actions go in its card (`SettingsListHeader`), not here. */\nexport function SettingsHeader({\n action,\n children,\n className,\n ...props\n}: ComponentProps<'header'> & { action?: ReactNode }) {\n return (\n <header\n className={cn('flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-4', className)}\n {...props}\n >\n <div className=\"flex min-w-0 flex-col gap-1\">{children}</div>\n {action != null && <div className=\"shrink-0\">{action}</div>}\n </header>\n );\n}\n\nexport function SettingsTitle({\n accessory,\n info,\n className,\n children,\n ...props\n}: Omit<ComponentProps<'h2'>, 'id'> & {\n accessory?: ReactNode;\n /** What the section is for, shown in a tooltip on the title. For sections whose name isn't self-explanatory. */\n info?: ReactNode;\n}) {\n const titleId = useContext(SettingsTitleIdContext);\n\n return (\n <div className={cn('flex min-w-0 flex-wrap items-center gap-2', settingsInset)}>\n <Txt as=\"h2\" id={titleId} variant=\"subheading\" tone=\"ink\" className={className} {...props}>\n {info == null ? children : <SettingsTitleInfo info={info}>{children}</SettingsTitleInfo>}\n </Txt>\n {accessory}\n </div>\n );\n}\n\n/** The title's text as a tooltip trigger, described by `info`. */\nfunction SettingsTitleInfo({ info, children }: { info: ReactNode; children: ReactNode }) {\n const infoId = useId();\n\n return (\n <Tooltip>\n <TooltipTrigger\n render={\n <span\n tabIndex={0}\n aria-describedby={infoId}\n className=\"cursor-help underline decoration-transparent decoration-dotted underline-offset-4 hover:decoration-current focus-visible:decoration-current focus-visible:outline-none\"\n />\n }\n >\n {children}\n </TooltipTrigger>\n <TooltipContent id={infoId} keepMounted className=\"max-w-64\">\n {info}\n </TooltipContent>\n </Tooltip>\n );\n}\n\nexport function SettingsDescription({ className, ...props }: ComponentProps<'p'>) {\n return <Txt as=\"p\" variant=\"caption\" tone=\"muted\" className={cn(settingsInset, className)} {...props} />;\n}\n","import type { ReactNode } from 'react';\nimport { PageHeader } from '@/ds/new/layout/page-header';\nimport { cn } from '@/lib/utils';\n\nexport interface SettingsLayoutProps {\n /** The page title. Leave it out when the app's own header already names the page. */\n title?: ReactNode;\n titleAccessory?: ReactNode;\n action?: ReactNode;\n /** A header of the app's own in place of `title` (a `PageHeader` whose title takes focus), with the same inset. */\n header?: ReactNode;\n /** `SettingsGroup`s, 28px apart. */\n children: ReactNode;\n}\n\n/**\n * A settings page: a centered 640px column with the title, inset like the section titles, above its sections.\n * The app's page around it gives the side gutter (`PageLayout`, Factory's settings panel, Platform's page).\n */\nexport function SettingsLayout({ title, titleAccessory, action, header, children }: SettingsLayoutProps) {\n return (\n // The content row takes the rest of the page's height, so a lone `EmptyState variant=\"fill\"` centers in it.\n <div\n data-slot=\"settings-layout\"\n className={cn(\n 'mx-auto grid min-h-full w-full max-w-160 min-w-0 gap-8 py-6',\n header != null || title != null ? 'grid-rows-[auto_1fr]' : 'grid-rows-[1fr]',\n )}\n >\n {header != null && (\n <div data-slot=\"settings-page-header\" className=\"ps-2.5\">\n {header}\n </div>\n )}\n {header == null && title != null && (\n <PageHeader data-slot=\"settings-page-header\" className=\"ps-2.5\">\n <PageHeader.Title>{title}</PageHeader.Title>\n {titleAccessory != null && <PageHeader.Meta beside>{titleAccessory}</PageHeader.Meta>}\n {action != null && <PageHeader.Action>{action}</PageHeader.Action>}\n </PageHeader>\n )}\n <div\n data-slot=\"settings-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 );\n}\n","import type { ComponentProps, ReactNode } from 'react';\nimport { cn } from '@/lib/utils';\n\n/**\n * A list's first row: its count, caption or empty text on the left and its one action (\"Add account\", \"Invite\n * member\") on the right. A full list and an empty one share this exact look, so the card reads the same either way.\n */\nfunction SettingsListBar({ action, className, children, ...props }: ComponentProps<'div'> & { action?: ReactNode }) {\n return (\n <div\n className={cn(\n // As tall as a `SettingsRow` (label + one-line description) plus the 13px the card puts above and below each\n // row, since this row's own box includes that padding. Keeps a list's first row level with the settings above it.\n 'flex min-h-8 items-center justify-between gap-3 sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5+--spacing(6.5))]',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0 truncate text-label text-foreground\">{children}</div>\n {action != null && <div className=\"flex shrink-0 items-center gap-2\">{action}</div>}\n </div>\n );\n}\n\nexport type SettingsListHeaderProps = ComponentProps<'div'> & {\n /** The list's action, on the right. Refresh and other list controls can sit beside it. */\n action?: ReactNode;\n};\n\n/** The first row of a list's `SettingsContainer`: a count (\"2 accounts\") and the list's action. */\nexport function SettingsListHeader(props: SettingsListHeaderProps) {\n return <SettingsListBar data-slot=\"settings-list-header\" {...props} />;\n}\n\nexport type SettingsEmptyRowProps = ComponentProps<'div'> & {\n /** The same action the list's header would hold, so an empty list still offers it. */\n action?: ReactNode;\n};\n\n/**\n * An empty list's only row: what's missing on the left (\"No join links\"), the list's action on the right. Looks\n * exactly like `SettingsListHeader`, so empty and full lists match; use it for every empty list in a card.\n */\nexport function SettingsEmptyRow(props: SettingsEmptyRowProps) {\n return <SettingsListBar data-slot=\"settings-empty-row\" {...props} />;\n}\n\n/** A list's notices and errors, as a row of its `SettingsContainer`. Takes no space while it has nothing in it. */\nexport function SettingsNoticeRow({ className, ...props }: ComponentProps<'div'>) {\n return <div data-slot=\"settings-notice-row\" className={cn('flex flex-col gap-2', className)} {...props} />;\n}\n\n/** The square on the left of a `SettingsItem` holding an icon or logo. Avatars use `Avatar size=\"md\"`, the\n * same size, so every list's text starts at the same place. */\nexport function SettingsItemIcon({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"settings-item-icon\"\n aria-hidden\n className={cn(\n 'flex size-avatar-md shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground [&>svg]:size-icon-md',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport type SettingsItemProps = Omit<ComponentProps<'div'>, 'title'> & {\n /** A `SettingsItemIcon` or an `Avatar size=\"md\"`. */\n media?: ReactNode;\n title: ReactNode;\n /** One line under the title: \"GitHub · Connected 3 weeks ago\". */\n description?: ReactNode;\n /** The item's status or actions, on the right. */\n children?: ReactNode;\n};\n\n/**\n * One thing in a settings list (an account, a member, a session, a source, a package version). Its right side holds\n * the item's status or its own actions (Remove, Revoke, Copy), not a control that changes a setting. Goes in a\n * `SettingsContainer`, usually under a `SettingsListHeader`.\n *\n * For a setting the person changes (an input, select or switch with a label), use `SettingsRow` instead.\n *\n * @example\n * <SettingsItem media={<Avatar size=\"md\" … />} title=\"Ada Lovelace\" description=\"ada@example.com\">\n * <Button size=\"sm\" variant=\"ghost\">Remove</Button>\n * </SettingsItem>\n */\nexport function SettingsItem({ media, title, description, children, className, ...props }: SettingsItemProps) {\n return (\n <div\n data-slot=\"settings-item\"\n // Below `sm` the item's value or actions wrap onto their own full-width line under the title, as a\n // `SettingsRow`'s control does, so a long value (an email, a type) never squeezes the title out.\n className={cn('flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 sm:flex-nowrap', className)}\n {...props}\n >\n {media}\n <div className=\"flex min-w-0 flex-1 flex-col gap-px\">\n {/* A string title truncates, so it also goes in the hover title to stay readable in full. */}\n <div className=\"truncate text-label text-foreground\" title={typeof title === 'string' ? title : undefined}>\n {title}\n </div>\n {description != null && <div className=\"truncate text-caption text-muted-foreground\">{description}</div>}\n </div>\n {children != null && (\n <div className=\"flex min-w-0 basis-full items-center gap-2 sm:shrink-0 sm:basis-auto\">{children}</div>\n )}\n </div>\n );\n}\n","import { SettingsItem } from './settings-list';\nimport { SettingsRow } from './settings-row';\nimport { Skeleton } from '@/ds/components/Skeleton/skeleton';\nimport { SkeletonText } from '@/ds/components/Skeleton/skeleton-text';\nimport { cn } from '@/lib/utils';\n\nconst bar = 'motion-reduce:before:animate-none';\n\nexport type SettingsSkeletonProps = {\n /** Announced while loading, e.g. \"Loading members\". */\n label: string;\n /** Placeholder rows, matching how many the loaded list usually has. */\n rows?: number;\n /** `row` stands in for `SettingsRow`s (label left, control right); `item` for `SettingsItem`s (icon, title, description). */\n variant?: 'row' | 'item';\n className?: string;\n};\n\n/**\n * The loading state for anything inside a `SettingsContainer`. Placeholders are built from the real `SettingsRow` and\n * `SettingsItem`, so they sit exactly where the loaded rows will.\n *\n * ```tsx\n * <SettingsContainer>\n * {isLoading ? <SettingsSkeleton label=\"Loading members\" variant=\"item\" rows={3} /> : members.map(...)}\n * </SettingsContainer>\n * ```\n */\nexport function SettingsSkeleton({ label, rows = 2, variant = 'row', className }: SettingsSkeletonProps) {\n const Placeholder = variant === 'item' ? ItemPlaceholder : RowPlaceholder;\n\n return (\n // One child of the card, so it takes the card's row padding; inside, rows repeat that rhythm with hairlines.\n <div\n role=\"status\"\n aria-label={label}\n data-slot=\"settings-skeleton\"\n className={cn('grid divide-y divide-border *:py-3.25 *:first:pt-0 *:last:pb-0', className)}\n >\n {Array.from({ length: rows }, (_, index) => (\n <Placeholder key={index} />\n ))}\n </div>\n );\n}\n\nfunction ItemPlaceholder() {\n return (\n <SettingsItem\n aria-hidden\n media={<Skeleton className={cn('size-avatar-md shrink-0 rounded-lg', bar)} />}\n title={<SkeletonText line=\"text-label\" className={cn('w-32', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n />\n );\n}\n\nfunction RowPlaceholder() {\n return (\n <SettingsRow\n aria-hidden\n label={<SkeletonText line=\"text-label\" className={cn('w-28', bar)} />}\n description={<SkeletonText line=\"text-caption\" className={cn('w-48 max-w-full', bar)} />}\n >\n <Skeleton className={cn('h-control-sm w-28 max-w-full rounded-full', bar)} />\n </SettingsRow>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAM,oBAAoBA,cAAAA,GAExB,mFACA,sFACAC,kCAAAA,eACF;;AAKA,SAAgB,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CACjF,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EAAK,aAAU;EAAqB,WAAWD,cAAAA,GAAG,mBAAmB,SAAS;EAAG,GAAI;CAAQ,CAAA;AACtG;;ACbA,IAAM,gBACJ;AAEF,IAAM,0BAAA,GAAyBE,MAAAA,cAAAA,CAAkC,KAAA,CAAS;;AAG1E,SAAgB,cAAc,EAAE,WAAW,GAAG,SAAoC;CAChF,MAAM,WAAA,GAAUC,MAAAA,MAAAA,CAAM;CAEtB,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAuB,UAAxB;EAAiC,OAAO;EACtC,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;GACE,mBAAiB;GACjB,WAAWC,cAAAA,GAAG,2CAA2C,SAAS;GAClE,GAAI;EACL,CAAA;CAC8B,CAAA;AAErC;;AAGA,SAAgB,eAAe,EAC7B,QACA,UACA,WAC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AG,QAAQ,GAAG;EAAI,CAAA;EACpE,aAAa,iBAAA,GAAA,kBAAA,IAAA,CAACE,sBAAAA,cAAD;GAAc,MAAK;GAAe,WAAWF,cAAAA,GAAG,mBAAmB,GAAG;EAAI,CAAA;EAEvF,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,UAAD,EAAU,WAAWD,cAAAA,GAAG,6CAA6C,GAAG,EAAI,CAAA;CACjE,CAAA;AAEjB"}
@@ -26,6 +26,13 @@ export declare function usePersistedWorkflowRun(workflowId: string, runId: strin
26
26
  parentSpanId?: string;
27
27
  resumedFromSpanId?: string;
28
28
  externalParentSpanId?: string;
29
+ sampled?: boolean;
30
+ traceState?: {
31
+ requestContextKeys: string[];
32
+ hideInput?: boolean;
33
+ hideOutput?: boolean;
34
+ nestedUnderParent?: boolean;
35
+ } | undefined;
29
36
  } | undefined;
30
37
  runId: string;
31
38
  workflowName: string;
package/dist/style.css CHANGED
@@ -12717,8 +12717,8 @@
12717
12717
  max-width: var(--container-sm);
12718
12718
  }
12719
12719
 
12720
- .sm\:min-w-55 {
12721
- min-width: calc(var(--spacing) * 55);
12720
+ .sm\:flex-\[1_1_16rem\] {
12721
+ flex: 16rem;
12722
12722
  }
12723
12723
 
12724
12724
  .sm\:shrink-0 {
@@ -12774,6 +12774,10 @@
12774
12774
  flex-wrap: nowrap;
12775
12775
  }
12776
12776
 
12777
+ .sm\:flex-wrap {
12778
+ flex-wrap: wrap;
12779
+ }
12780
+
12777
12781
  .sm\:items-baseline {
12778
12782
  align-items: baseline;
12779
12783
  }
@@ -12806,18 +12810,26 @@
12806
12810
  gap: calc(var(--spacing) * 4);
12807
12811
  }
12808
12812
 
12809
- .sm\:gap-6 {
12810
- gap: calc(var(--spacing) * 6);
12811
- }
12812
-
12813
12813
  .sm\:gap-8 {
12814
12814
  gap: calc(var(--spacing) * 8);
12815
12815
  }
12816
12816
 
12817
+ .sm\:gap-x-6 {
12818
+ column-gap: calc(var(--spacing) * 6);
12819
+ }
12820
+
12821
+ .sm\:gap-y-3 {
12822
+ row-gap: calc(var(--spacing) * 3);
12823
+ }
12824
+
12817
12825
  .sm\:self-auto {
12818
12826
  align-self: auto;
12819
12827
  }
12820
12828
 
12829
+ .sm\:self-stretch {
12830
+ align-self: stretch;
12831
+ }
12832
+
12821
12833
  .sm\:justify-self-end {
12822
12834
  justify-self: flex-end;
12823
12835
  }
@@ -12897,6 +12909,10 @@
12897
12909
  .sm\:group-data-\[variant\=flat\]\/section\:gap-6:is(:where(.group\/section)[data-variant="flat"] *) {
12898
12910
  gap: calc(var(--spacing) * 6);
12899
12911
  }
12912
+
12913
+ .sm\:has-\[\>input\:not\(\[aria-hidden\]\)\,\>\[data-slot\=input-group\]\]\:min-w-55:has( > input:not([aria-hidden]), > [data-slot="input-group"]) {
12914
+ min-width: calc(var(--spacing) * 55);
12915
+ }
12900
12916
  }
12901
12917
 
12902
12918
  @media (min-width: 48rem) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "70.1.0-alpha.2",
4
+ "version": "70.1.0-alpha.3",
5
5
  "description": "Mastra Playground components",
6
6
  "sideEffects": [
7
7
  "**/*.css"
@@ -225,8 +225,8 @@
225
225
  "react-dom": ">=19.0.0",
226
226
  "tailwindcss": "^4.0.0",
227
227
  "@mastra/ai-sdk": "^1.12.0",
228
- "@mastra/client-js": "^1.61.1-alpha.2",
229
- "@mastra/react": "1.15.2-alpha.2"
228
+ "@mastra/client-js": "^1.61.1-alpha.3",
229
+ "@mastra/react": "1.15.2-alpha.3"
230
230
  },
231
231
  "devDependencies": {
232
232
  "@modelcontextprotocol/client": "2.4.0",
@@ -272,10 +272,10 @@
272
272
  "vitest": "5.1.0",
273
273
  "@internal/lint": "0.0.150",
274
274
  "@mastra/ai-sdk": "1.12.0",
275
- "@mastra/client-js": "^1.61.1-alpha.2",
276
- "@mastra/core": "1.85.0-alpha.2",
275
+ "@mastra/client-js": "^1.61.1-alpha.3",
276
+ "@mastra/core": "1.85.0-alpha.3",
277
277
  "@mastra/memory": "1.41.2",
278
- "@mastra/react": "1.15.2-alpha.2",
278
+ "@mastra/react": "1.15.2-alpha.3",
279
279
  "@mastra/schema-compat": "1.4.0"
280
280
  },
281
281
  "homepage": "https://mastra.ai",
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-row-BnlFZSQL.js","names":["_Fragment"],"sources":["../src/ds/new/settings/settings-row.tsx"],"sourcesContent":["import { useId } from 'react';\nimport type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend } from '@/ds/components/Field';\nimport type { FieldProps, FieldsetProps } from '@/ds/components/Field';\nimport { IconLock } from '@/ds/icons/central/IconLock';\nimport { cn } from '@/lib/utils';\n\nexport type SettingsRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n /** @deprecated The row's `Field` names the control it holds; drop `htmlFor` and the control's `id`. */\n htmlFor?: string;\n children?: ReactNode;\n tone?: 'default' | 'destructive';\n viewOnly?: boolean;\n required?: boolean;\n errorMsg?: ReactNode;\n /**\n * `side` (default): the control sits on the right. Text fields take one shared width (13.75rem), selects hug\n * their value up to that width, and switches and buttons keep their own size; all end at the right edge.\n * `below`: the control goes under the label at full width, for forms with several controls.\n */\n controlPlacement?: 'side' | 'below';\n};\n\n/** Label left, control right; stacked below `sm`. The card around the row gives it its spacing. */\nconst rowClassName = 'min-w-0 gap-3';\n/** Side by side: label left, control pushed right. A control below its label fills the row instead. */\nconst sideRowClassName = 'sm:justify-between sm:gap-6';\nconst headingClassName = 'flex min-w-0 flex-col gap-px';\n/** Beside its control, the label column is as tall as a label with a one-line description, so rows with and without one match. */\nconst sideHeadingClassName = 'sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center';\n/**\n * The control column on the right. Inputs fill it (at least 13.75rem); selects and other field triggers hug\n * their value (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width.\n */\nconst sideControlClassName =\n 'flex min-w-0 items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:min-w-55 sm:shrink-0';\n\nexport function SettingsRowControl({ viewOnly = false, children }: { viewOnly?: boolean; children: ReactNode }) {\n if (!viewOnly) return children;\n return (\n <>\n <IconLock className=\"size-icon-md shrink-0\" aria-hidden />\n <span className=\"sr-only\">View only: </span>\n {children}\n </>\n );\n}\n\n/**\n * One setting the person changes: a label, an optional one-line description, and the control that changes it. The\n * row is a form field, so its label names the control. Goes in a `SettingsContainer`.\n *\n * For one thing in a list (an account, a member, an API key, a package version), use `SettingsItem` instead: a row\n * with no control, or one per record in a `.map`, is a list item. A setting someone may not change stays a\n * `SettingsRow` with `viewOnly`.\n *\n * @example\n * <SettingsRow label=\"Theme\" description=\"Color scheme for the interface.\">\n * <ThemeToggle />\n * </SettingsRow>\n */\nexport function SettingsRow({\n label,\n description,\n htmlFor,\n children,\n className,\n tone = 'default',\n viewOnly = false,\n required = false,\n errorMsg,\n disabled,\n controlPlacement = 'side',\n ...props\n}: SettingsRowProps) {\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Field\n orientation={controlBelow ? 'vertical' : 'responsive'}\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"settings-row\"\n className={cn(rowClassName, !controlBelow && sideRowClassName, className)}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(tone === 'destructive' && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && (\n <FieldDescription render={<div />} className=\"mt-0 flex flex-col gap-0.5 text-pretty\">\n {description}\n </FieldDescription>\n )}\n <FieldError className=\"mt-0\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"settings-row-control\"\n className={cn(\n 'min-w-0',\n !controlBelow && sideControlClassName,\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\nexport type SettingsFieldsetRowProps = Omit<FieldsetProps, 'children'> & {\n label: ReactNode;\n description?: ReactNode;\n children?: ReactNode;\n /** Same as `SettingsRow`'s: `below` puts the controls under the label at full width. */\n controlPlacement?: 'side' | 'below';\n};\n\n/**\n * A `SettingsRow` for one setting made of several controls (radios, several switches), labelled by a legend. Same\n * rule as `SettingsRow`: a setting the person changes, never a list entry.\n *\n * @example\n * <SettingsFieldsetRow label=\"Notify me about\" controlPlacement=\"below\">\n * <Checkbox … />\n * </SettingsFieldsetRow>\n */\nexport function SettingsFieldsetRow({\n label,\n description,\n children,\n className,\n controlPlacement = 'side',\n ...props\n}: SettingsFieldsetRowProps) {\n const descriptionId = useId();\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Fieldset\n data-slot=\"settings-row\"\n aria-describedby={description == null ? undefined : descriptionId}\n className={cn(\n 'flex flex-col',\n rowClassName,\n !controlBelow && ['sm:flex-row sm:items-center', sideRowClassName],\n className,\n )}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldsetLegend>{label}</FieldsetLegend>\n {description != null && (\n <div id={descriptionId} className=\"flex flex-col gap-0.5 text-caption text-pretty text-muted-foreground\">\n {description}\n </div>\n )}\n </div>\n {children != null && (\n <div data-slot=\"settings-row-control\" className={cn('min-w-0', !controlBelow && sideControlClassName)}>\n {children}\n </div>\n )}\n </Fieldset>\n );\n}\n"],"mappings":";;;;;;;AA0BA,IAAM,eAAe;;AAErB,IAAM,mBAAmB;AACzB,IAAM,mBAAmB;;AAEzB,IAAM,uBAAuB;;;;;AAK7B,IAAM,uBACJ;AAEF,SAAgB,mBAAmB,EAAE,WAAW,OAAO,YAAyD;CAC9G,IAAI,CAAC,UAAU,OAAO;CACtB,OACE,qBAAAA,YAAA,EAAA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U;EACV,oBAAkB,eAAe,OAAO,KAAA,IAAY;EACpD,WAAW,GACT,iBACA,cACA,CAAC,gBAAgB,CAAC,+BAA+B,gBAAgB,GACjE,SACF;EACA,GAAI;EATN,UAAA,CAWE,qBAAC,OAAD;GAAK,WAAW,GAAG,kBAAkB,CAAC,gBAAgB,oBAAoB;GAA1E,UAAA,CACE,oBAAC,gBAAD,EAAA,UAAiB,MAAsB,CAAA,GACtC,eAAe,QACd,oBAAC,OAAD;IAAK,IAAI;IAAe,WAAU;IAC/B,UAAA;GACE,CAAA,CAEJ;EACJ,CAAA,GAAA,YAAY,QACX,oBAAC,OAAD;GAAK,aAAU;GAAuB,WAAW,GAAG,WAAW,CAAC,gBAAgB,oBAAoB;GACjG;EACE,CAAA,CAEC;;AAEd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-row-Da1HHyBg.cjs","names":["_Fragment","IconLock","Field","cn","FieldLabel","FieldDescription","FieldError","useId","Fieldset","FieldsetLegend"],"sources":["../src/ds/new/settings/settings-row.tsx"],"sourcesContent":["import { useId } from 'react';\nimport type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel, Fieldset, FieldsetLegend } from '@/ds/components/Field';\nimport type { FieldProps, FieldsetProps } from '@/ds/components/Field';\nimport { IconLock } from '@/ds/icons/central/IconLock';\nimport { cn } from '@/lib/utils';\n\nexport type SettingsRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n /** @deprecated The row's `Field` names the control it holds; drop `htmlFor` and the control's `id`. */\n htmlFor?: string;\n children?: ReactNode;\n tone?: 'default' | 'destructive';\n viewOnly?: boolean;\n required?: boolean;\n errorMsg?: ReactNode;\n /**\n * `side` (default): the control sits on the right. Text fields take one shared width (13.75rem), selects hug\n * their value up to that width, and switches and buttons keep their own size; all end at the right edge.\n * `below`: the control goes under the label at full width, for forms with several controls.\n */\n controlPlacement?: 'side' | 'below';\n};\n\n/** Label left, control right; stacked below `sm`. The card around the row gives it its spacing. */\nconst rowClassName = 'min-w-0 gap-3';\n/** Side by side: label left, control pushed right. A control below its label fills the row instead. */\nconst sideRowClassName = 'sm:justify-between sm:gap-6';\nconst headingClassName = 'flex min-w-0 flex-col gap-px';\n/** Beside its control, the label column is as tall as a label with a one-line description, so rows with and without one match. */\nconst sideHeadingClassName = 'sm:min-h-[calc(var(--text-label)*1.5+1px+var(--text-caption)*1.5)] sm:justify-center';\n/**\n * The control column on the right. Inputs fill it (at least 13.75rem); selects and other field triggers hug\n * their value (`--field-width: auto`, see `fieldTriggerWidthStyle`) up to that same width.\n */\nconst sideControlClassName =\n 'flex min-w-0 items-center justify-end gap-2 [--field-max-width:13.75rem] [--field-width:auto] sm:min-w-55 sm:shrink-0';\n\nexport function SettingsRowControl({ viewOnly = false, children }: { viewOnly?: boolean; children: ReactNode }) {\n if (!viewOnly) return children;\n return (\n <>\n <IconLock className=\"size-icon-md shrink-0\" aria-hidden />\n <span className=\"sr-only\">View only: </span>\n {children}\n </>\n );\n}\n\n/**\n * One setting the person changes: a label, an optional one-line description, and the control that changes it. The\n * row is a form field, so its label names the control. Goes in a `SettingsContainer`.\n *\n * For one thing in a list (an account, a member, an API key, a package version), use `SettingsItem` instead: a row\n * with no control, or one per record in a `.map`, is a list item. A setting someone may not change stays a\n * `SettingsRow` with `viewOnly`.\n *\n * @example\n * <SettingsRow label=\"Theme\" description=\"Color scheme for the interface.\">\n * <ThemeToggle />\n * </SettingsRow>\n */\nexport function SettingsRow({\n label,\n description,\n htmlFor,\n children,\n className,\n tone = 'default',\n viewOnly = false,\n required = false,\n errorMsg,\n disabled,\n controlPlacement = 'side',\n ...props\n}: SettingsRowProps) {\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Field\n orientation={controlBelow ? 'vertical' : 'responsive'}\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"settings-row\"\n className={cn(rowClassName, !controlBelow && sideRowClassName, className)}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(tone === 'destructive' && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && (\n <FieldDescription render={<div />} className=\"mt-0 flex flex-col gap-0.5 text-pretty\">\n {description}\n </FieldDescription>\n )}\n <FieldError className=\"mt-0\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"settings-row-control\"\n className={cn(\n 'min-w-0',\n !controlBelow && sideControlClassName,\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\nexport type SettingsFieldsetRowProps = Omit<FieldsetProps, 'children'> & {\n label: ReactNode;\n description?: ReactNode;\n children?: ReactNode;\n /** Same as `SettingsRow`'s: `below` puts the controls under the label at full width. */\n controlPlacement?: 'side' | 'below';\n};\n\n/**\n * A `SettingsRow` for one setting made of several controls (radios, several switches), labelled by a legend. Same\n * rule as `SettingsRow`: a setting the person changes, never a list entry.\n *\n * @example\n * <SettingsFieldsetRow label=\"Notify me about\" controlPlacement=\"below\">\n * <Checkbox … />\n * </SettingsFieldsetRow>\n */\nexport function SettingsFieldsetRow({\n label,\n description,\n children,\n className,\n controlPlacement = 'side',\n ...props\n}: SettingsFieldsetRowProps) {\n const descriptionId = useId();\n const controlBelow = controlPlacement === 'below';\n\n return (\n <Fieldset\n data-slot=\"settings-row\"\n aria-describedby={description == null ? undefined : descriptionId}\n className={cn(\n 'flex flex-col',\n rowClassName,\n !controlBelow && ['sm:flex-row sm:items-center', sideRowClassName],\n className,\n )}\n {...props}\n >\n <div className={cn(headingClassName, !controlBelow && sideHeadingClassName)}>\n <FieldsetLegend>{label}</FieldsetLegend>\n {description != null && (\n <div id={descriptionId} className=\"flex flex-col gap-0.5 text-caption text-pretty text-muted-foreground\">\n {description}\n </div>\n )}\n </div>\n {children != null && (\n <div data-slot=\"settings-row-control\" className={cn('min-w-0', !controlBelow && sideControlClassName)}>\n {children}\n </div>\n )}\n </Fieldset>\n );\n}\n"],"mappings":";;;;;;;AA0BA,IAAM,eAAe;;AAErB,IAAM,mBAAmB;AACzB,IAAM,mBAAmB;;AAEzB,IAAM,uBAAuB;;;;;AAK7B,IAAM,uBACJ;AAEF,SAAgB,mBAAmB,EAAE,WAAW,OAAO,YAAyD;CAC9G,IAAI,CAAC,UAAU,OAAO;CACtB,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAAA,kBAAAA,UAAA,EAAA,UAAA;EACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,+BAAAA,UAAD;GAAU,WAAU;GAAwB,eAAA;EAAa,CAAA;EACzD,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;GAAM,WAAU;GAAU,UAAA;EAAiB,CAAA;EAC1C;CACD,EAAA,CAAA;AAEN;;;;;;;;;;;;;;AAeA,SAAgB,YAAY,EAC1B,OACA,aACA,SACA,UACA,WACA,OAAO,WACP,WAAW,OACX,WAAW,OACX,UACA,UACA,mBAAmB,QACnB,GAAG,SACgB;CACnB,MAAM,eAAe,qBAAqB;CAE1C,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACC,yBAAAA,OAAD;EACE,aAAa,eAAe,aAAa;EACzC,SAAS,QAAQ,QAAQ;EACzB,UAAU,YAAY;EACtB,aAAU;EACV,WAAWC,cAAAA,GAAG,cAAc,CAAC,gBAAgB,kBAAkB,SAAS;EACxE,GAAI;EANN,UAAA,CAQE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;GAAK,WAAWA,cAAAA,GAAG,kBAAkB,CAAC,gBAAgB,oBAAoB;GAA1E,UAAA;IACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,yBAAAA,YAAD;KACE,GAAK,UAAU,EAAE,QAAQ,IAAI,CAAC;KACpB;KACV,WAAWD,cAAAA,GAAG,SAAS,iBAAiB,6BAA6B;KAEp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