@contractspec/lib.design-system 3.7.6 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -110
- package/dist/browser/index.js +473 -466
- package/dist/components/agent/ApprovalQueue.d.ts +1 -1
- package/dist/components/agent/ApprovalQueue.mobile.d.ts +12 -0
- package/dist/components/atoms/ActionButtons.d.ts +3 -3
- package/dist/components/atoms/Button.d.ts +1 -1
- package/dist/components/atoms/Cta.d.ts +2 -2
- package/dist/components/atoms/DataChips.d.ts +1 -1
- package/dist/components/atoms/Input.mobile.d.ts +1 -1
- package/dist/components/atoms/LoaderCircular.d.ts +1 -1
- package/dist/components/atoms/Textarea.mobile.d.ts +1 -1
- package/dist/components/data-table/DataTable.d.ts +15 -0
- package/dist/components/data-table/DataTable.mobile.d.ts +15 -0
- package/dist/components/data-view/DataViewDetail.d.ts +1 -1
- package/dist/components/data-view/DataViewList.d.ts +1 -1
- package/dist/components/data-view/DataViewRenderer.d.ts +1 -1
- package/dist/components/data-view/DataViewRenderer.mobile.d.ts +25 -0
- package/dist/components/data-view/DataViewTable.d.ts +2 -2
- package/dist/components/data-view/DataViewTable.mobile.d.ts +17 -0
- package/dist/components/forms/ZodForm.d.ts +1 -1
- package/dist/components/legal/atoms/LegalCallout.d.ts +1 -1
- package/dist/components/legal/atoms/LegalHeading.d.ts +2 -2
- package/dist/components/legal/atoms/LegalList.d.ts +1 -1
- package/dist/components/legal/atoms/LegalSection.d.ts +2 -2
- package/dist/components/legal/atoms/LegalText.d.ts +3 -3
- package/dist/components/legal/molecules/LegalTOC.d.ts +1 -1
- package/dist/components/marketing/MarketingCard.d.ts +1 -1
- package/dist/components/marketing/MarketingCardsSection.d.ts +2 -2
- package/dist/components/marketing/MarketingComparisonSection.d.ts +1 -1
- package/dist/components/marketing/MarketingIconCard.d.ts +2 -2
- package/dist/components/marketing/MarketingSection.d.ts +1 -1
- package/dist/components/molecules/EntityCard.d.ts +2 -2
- package/dist/components/molecules/MarkdownRenderer/MarkdownRenderer.d.ts +2 -0
- package/dist/components/molecules/MarkdownRenderer/formatInlineMarkdown.d.ts +2 -0
- package/dist/components/molecules/MarkdownRenderer/index.d.ts +2 -0
- package/dist/components/molecules/MarkdownRenderer/renderMarkdownTable.d.ts +2 -0
- package/dist/components/molecules/MarkdownRenderer/types.d.ts +3 -0
- package/dist/components/molecules/SkeletonBlock/index.d.ts +1 -1
- package/dist/components/molecules/SkeletonCircle/index.d.ts +1 -1
- package/dist/components/molecules/SkeletonList/index.d.ts +1 -1
- package/dist/components/molecules/StatCard.d.ts +2 -2
- package/dist/components/molecules/StatusChip.d.ts +1 -1
- package/dist/components/native/FlatListScreen.mobile.d.ts +2 -2
- package/dist/components/organisms/GridLayout.d.ts +1 -1
- package/dist/components/organisms/ListCardPage.d.ts +1 -1
- package/dist/components/organisms/ListGridPage.d.ts +1 -1
- package/dist/components/organisms/ListTablePage.d.ts +1 -1
- package/dist/components/organisms/ListTablePage.mobile.d.ts +20 -0
- package/dist/components/organisms/PricingSection.d.ts +1 -1
- package/dist/components/templates/lists/ListPageTemplate/index.d.ts +1 -1
- package/dist/components/visualization/ComparisonView.d.ts +9 -0
- package/dist/components/visualization/ComparisonView.mobile.d.ts +9 -0
- package/dist/components/visualization/TimelineView.d.ts +9 -0
- package/dist/components/visualization/TimelineView.mobile.d.ts +9 -0
- package/dist/components/visualization/VisualizationCard.d.ts +13 -0
- package/dist/components/visualization/VisualizationCard.mobile.d.ts +13 -0
- package/dist/components/visualization/VisualizationGrid.d.ts +6 -0
- package/dist/components/visualization/VisualizationGrid.mobile.d.ts +6 -0
- package/dist/components/visualization/VisualizationRenderer.d.ts +12 -0
- package/dist/components/visualization/VisualizationRenderer.mobile.d.ts +12 -0
- package/dist/components/visualization/types.d.ts +12 -0
- package/dist/index.d.ts +108 -100
- package/dist/index.js +473 -466
- package/dist/theme/tokenBridge.d.ts +1 -1
- package/dist/theme/variants.d.ts +1 -1
- package/package.json +11 -10
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ApprovalRequest } from '@contractspec/lib.ai-agent/approval';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface ApprovalQueueProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
requests: ApprovalRequest[];
|
|
7
|
+
onApprove?: (request: ApprovalRequest) => void;
|
|
8
|
+
onReject?: (request: ApprovalRequest) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
emptyState?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function ApprovalQueue({ title, description, requests, onApprove, onReject, className, emptyState, }: ApprovalQueueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { type ButtonProps } from './Button';
|
|
3
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
4
4
|
declare const _actionBtn: (props?: ({
|
|
5
|
-
tone?: "outline" | "
|
|
6
|
-
size?: "sm" | "lg" | "
|
|
5
|
+
tone?: "outline" | "neutral" | "danger" | "subtle" | null | undefined;
|
|
6
|
+
size?: "sm" | "lg" | "md" | "icon" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type ActionBtnProps = Omit<ButtonProps, 'size' | 'variant'> & VariantProps<typeof _actionBtn> & {
|
|
9
9
|
label?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type ButtonProps as WebButtonProps } from '@contractspec/lib.ui-kit-web/ui/button';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
type SpinnerPlacement = 'start' | 'end';
|
|
4
4
|
export type ButtonProps = Omit<WebButtonProps, 'onClick' | 'disabled' | 'children'> & {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { type ButtonProps } from './Button';
|
|
3
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
4
4
|
declare const _ctaVariants: (props?: ({
|
|
5
5
|
size?: "sm" | "lg" | "md" | "touch" | null | undefined;
|
|
6
|
-
emphasis?: "
|
|
6
|
+
emphasis?: "strong" | "default" | "subtle" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type CtaProps = Omit<ButtonProps, 'size'> & VariantProps<typeof _ctaVariants> & {
|
|
9
9
|
capture?: (cta: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const spinnerVariants: (props?: ({
|
|
4
4
|
size?: "sm" | "lg" | "md" | null | undefined;
|
|
5
5
|
tone?: "default" | "muted" | null | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ContractTableController, ContractTableRowRenderModel } from '@contractspec/lib.presentation-runtime-react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface DataTableProps<TItem = unknown> {
|
|
4
|
+
controller: ContractTableController<TItem, React.ReactNode>;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
headerActions?: React.ReactNode;
|
|
9
|
+
toolbar?: React.ReactNode;
|
|
10
|
+
footer?: React.ReactNode;
|
|
11
|
+
emptyState?: React.ReactNode;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
onRowPress?: (row: ContractTableRowRenderModel<TItem, React.ReactNode>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function DataTable<TItem>({ controller, title, description, className, headerActions, toolbar, footer, emptyState, loading, onRowPress, }: DataTableProps<TItem>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ContractTableController, ContractTableRowRenderModel } from '@contractspec/lib.presentation-runtime-react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface DataTableProps<TItem = unknown> {
|
|
4
|
+
controller: ContractTableController<TItem, React.ReactNode>;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
headerActions?: React.ReactNode;
|
|
9
|
+
toolbar?: React.ReactNode;
|
|
10
|
+
footer?: React.ReactNode;
|
|
11
|
+
emptyState?: React.ReactNode;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
onRowPress?: (row: ContractTableRowRenderModel<TItem, React.ReactNode>) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function DataTable<TItem>({ controller, title, description, className, headerActions, toolbar, footer, emptyState, loading, onRowPress, }: DataTableProps<TItem>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { DataViewSpec } from '@contractspec/lib.contracts-spec/data-views';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface DataViewRendererProps {
|
|
4
|
+
spec: DataViewSpec;
|
|
5
|
+
items?: Record<string, unknown>[];
|
|
6
|
+
item?: Record<string, unknown> | null;
|
|
7
|
+
className?: string;
|
|
8
|
+
renderActions?: (item: Record<string, unknown>) => React.ReactNode;
|
|
9
|
+
onSelect?: (item: Record<string, unknown>) => void;
|
|
10
|
+
onRowClick?: (item: Record<string, unknown>) => void;
|
|
11
|
+
headerActions?: React.ReactNode;
|
|
12
|
+
emptyState?: React.ReactNode;
|
|
13
|
+
footer?: React.ReactNode;
|
|
14
|
+
search?: string;
|
|
15
|
+
onSearchChange?: (value: string) => void;
|
|
16
|
+
filters?: Record<string, unknown>;
|
|
17
|
+
onFilterChange?: (filters: Record<string, unknown>) => void;
|
|
18
|
+
pagination?: {
|
|
19
|
+
page: number;
|
|
20
|
+
pageSize: number;
|
|
21
|
+
total: number;
|
|
22
|
+
};
|
|
23
|
+
onPageChange?: (page: number) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function DataViewRenderer({ spec, items, item, className, renderActions, onSelect, onRowClick, headerActions, emptyState, footer, search, onSearchChange, filters, onFilterChange, pagination, onPageChange, }: DataViewRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import type { DataViewField, DataViewSpec } from '@contractspec/lib.contracts-spec/data-views';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
export interface DataViewTableProps {
|
|
4
4
|
spec: DataViewSpec;
|
|
5
5
|
items: Record<string, unknown>[];
|
|
@@ -14,4 +14,4 @@ export declare function DisplayValue({ item, fields, fieldKey, }: {
|
|
|
14
14
|
item: Record<string, unknown>;
|
|
15
15
|
fields: DataViewField[];
|
|
16
16
|
fieldKey: string;
|
|
17
|
-
}):
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element | "";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DataViewField, DataViewSpec } from '@contractspec/lib.contracts-spec/data-views';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface DataViewTableProps {
|
|
4
|
+
spec: DataViewSpec;
|
|
5
|
+
items: Record<string, unknown>[];
|
|
6
|
+
className?: string;
|
|
7
|
+
onRowClick?: (item: Record<string, unknown>) => void;
|
|
8
|
+
emptyState?: React.ReactNode;
|
|
9
|
+
headerActions?: React.ReactNode;
|
|
10
|
+
footer?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function DataViewTable({ spec, items, className, onRowClick, emptyState, headerActions, footer, }: DataViewTableProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function DisplayValue({ item, fields, fieldKey, }: {
|
|
14
|
+
item: Record<string, unknown>;
|
|
15
|
+
fields: DataViewField[];
|
|
16
|
+
fieldKey: string;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element | "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type UseFormReturn } from '@contractspec/lib.ui-kit-web/ui/form';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import type { FieldValues } from 'react-hook-form';
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
export interface ZodFormProps<TSchema extends z.ZodType<any, any, any>, TFieldValues extends FieldValues = z.input<TSchema>, TOutput = z.output<TSchema>> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const calloutVariants: (props?: ({
|
|
4
4
|
tone?: "danger" | "info" | "warning" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const headingVariants: (props?: ({
|
|
4
4
|
level?: "h1" | "h2" | "h3" | "h4" | null | undefined;
|
|
5
5
|
tone?: "default" | "muted" | "accent" | null | undefined;
|
|
6
|
-
spacing?: "
|
|
6
|
+
spacing?: "none" | "sm" | "lg" | "md" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type LegalHeadingProps = React.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof headingVariants> & {
|
|
9
9
|
as?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const listVariants: (props?: ({
|
|
4
4
|
type?: "none" | "unordered" | "ordered" | null | undefined;
|
|
5
5
|
spacing?: "sm" | "lg" | "md" | null | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const sectionVariants: (props?: ({
|
|
4
4
|
spacing?: "sm" | "lg" | "md" | null | undefined;
|
|
5
|
-
border?: "none" | "
|
|
5
|
+
border?: "none" | "top" | "bottom" | "both" | null | undefined;
|
|
6
6
|
tone?: "subtle" | "plain" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type LegalSectionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof sectionVariants>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const textVariants: (props?: ({
|
|
4
4
|
tone?: "default" | "danger" | "muted" | null | undefined;
|
|
5
|
-
size?: "
|
|
6
|
-
spacing?: "
|
|
5
|
+
size?: "base" | "sm" | "lg" | null | undefined;
|
|
6
|
+
spacing?: "none" | "sm" | "lg" | "md" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type LegalTextProps = React.HTMLAttributes<HTMLParagraphElement> & VariantProps<typeof textVariants> & {
|
|
9
9
|
as?: 'p' | 'div' | 'span';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@contractspec/lib.ui-kit-web/ui/card';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
export type MarketingCardTone = 'default' | 'muted' | 'elevated';
|
|
4
4
|
type MarketingCardProps = React.ComponentProps<typeof Card> & {
|
|
5
5
|
tone?: MarketingCardTone;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import { MarketingSection } from './MarketingSection';
|
|
4
4
|
declare const gridVariants: (props?: ({
|
|
5
|
-
columns?:
|
|
5
|
+
columns?: 1 | 2 | 4 | 3 | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
type MarketingCardsSectionProps = React.PropsWithChildren<Omit<React.ComponentProps<typeof MarketingSection>, 'children'> & VariantProps<typeof gridVariants> & {
|
|
8
8
|
gridClassName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type MarketingSectionPadding, type MarketingSectionTone } from './MarketingSection';
|
|
3
3
|
interface ComparisonColumn {
|
|
4
4
|
title: string;
|
|
5
5
|
items: (string | React.ReactNode)[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import { type MarketingCardTone } from './MarketingCard';
|
|
4
4
|
type IconComponent = React.ComponentType<{
|
|
5
5
|
className?: string;
|
|
6
6
|
size?: number;
|
|
7
7
|
}>;
|
|
8
8
|
declare const layoutVariants: (props?: ({
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "listing" | "iconFirst" | "support" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
export type MarketingIconCardVariant = VariantProps<typeof layoutVariants>['variant'];
|
|
12
12
|
interface MarketingIconCardProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const sectionVariants: (props?: ({
|
|
4
4
|
tone?: "default" | "muted" | "panel" | "gradient" | null | undefined;
|
|
5
5
|
padding?: "compact" | "comfortable" | "spacious" | null | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Card } from '@contractspec/lib.ui-kit-web/ui/card';
|
|
3
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
declare const entityCardVariants: (props?: ({
|
|
5
|
-
emphasis?: "
|
|
5
|
+
emphasis?: "strong" | "default" | "subtle" | "accentGradient" | null | undefined;
|
|
6
6
|
density?: "compact" | "comfortable" | null | undefined;
|
|
7
7
|
interactive?: boolean | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { Card } from '@contractspec/lib.ui-kit-web/ui/card';
|
|
3
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
declare const statVariants: (props?: ({
|
|
5
|
-
emphasis?: "
|
|
5
|
+
emphasis?: "strong" | "default" | "subtle" | null | undefined;
|
|
6
6
|
density?: "compact" | "comfortable" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type StatCardProps = React.ComponentProps<typeof Card> & VariantProps<typeof statVariants> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const chipVariants: (props?: ({
|
|
4
4
|
tone?: "success" | "neutral" | "danger" | "info" | "warning" | null | undefined;
|
|
5
5
|
size?: "sm" | "md" | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { type FlatListProps } from 'react-native';
|
|
3
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
4
4
|
export interface FlatListScreenProps<T> extends Omit<FlatListProps<T>, 'data' | 'renderItem'>, VariantProps<typeof containerVariants> {
|
|
5
5
|
data: T[];
|
|
6
6
|
renderItem: FlatListProps<T>['renderItem'];
|
|
@@ -16,7 +16,7 @@ export interface FlatListScreenProps<T> extends Omit<FlatListProps<T>, 'data' |
|
|
|
16
16
|
emptyText?: string;
|
|
17
17
|
}
|
|
18
18
|
declare const containerVariants: (props?: ({
|
|
19
|
-
padding?: "
|
|
19
|
+
padding?: "none" | "sm" | "lg" | "md" | null | undefined;
|
|
20
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
21
|
export declare function FlatListScreen<T>({ children, data, renderItem, header, className, contentClassName, edges, showsVerticalScrollIndicator, keyboardShouldPersistTaps, onRefresh, refreshing, emptyComponent, emptyText, padding, ...flatListProps }: FlatListScreenProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const gridVariants: (props?: ({
|
|
4
4
|
gap?: "sm" | "lg" | "md" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const containerVariants: (props?: ({
|
|
4
4
|
density?: "compact" | "comfortable" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const containerVariants: (props?: ({
|
|
4
4
|
density?: "compact" | "comfortable" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface TableColumn<T> {
|
|
4
|
+
header: React.ReactNode;
|
|
5
|
+
cell: (item: T, index: number) => React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const containerVariants: (props?: ({
|
|
9
|
+
density?: "compact" | "comfortable" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export interface ListTablePageProps<T> extends VariantProps<typeof containerVariants> {
|
|
12
|
+
title: React.ReactNode;
|
|
13
|
+
subtitle?: React.ReactNode;
|
|
14
|
+
items: T[];
|
|
15
|
+
columns: TableColumn<T>[];
|
|
16
|
+
className?: string;
|
|
17
|
+
renderActions?: (item: T, index: number) => React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function ListTablePage<T>({ title, subtitle, items, columns, className, density, renderActions, }: ListTablePageProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type PricingTier } from '@contractspec/lib.ui-kit-web/ui/marketing/PricingTable';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
export declare function PricingSection({ tiers, title, subtitle, className, }: {
|
|
4
4
|
tiers: PricingTier[];
|
|
5
5
|
title?: React.ReactNode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { VisualizationSurfaceItem } from './types';
|
|
3
|
+
export interface ComparisonViewProps {
|
|
4
|
+
items: VisualizationSurfaceItem[];
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function ComparisonView({ items, title, description, className, }: ComparisonViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { VisualizationSurfaceItem } from './types';
|
|
3
|
+
export interface ComparisonViewProps {
|
|
4
|
+
items: VisualizationSurfaceItem[];
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function ComparisonView({ items, title, description, className, }: ComparisonViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { VisualizationSurfaceItem } from './types';
|
|
3
|
+
export interface TimelineViewProps {
|
|
4
|
+
items: VisualizationSurfaceItem[];
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function TimelineView({ items, title, description, className, }: TimelineViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { VisualizationSurfaceItem } from './types';
|
|
3
|
+
export interface TimelineViewProps {
|
|
4
|
+
items: VisualizationSurfaceItem[];
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function TimelineView({ items, title, description, className, }: TimelineViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VisualizationSpec } from '@contractspec/lib.contracts-spec/visualizations';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface VisualizationCardProps {
|
|
4
|
+
spec: VisualizationSpec;
|
|
5
|
+
data: unknown;
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
footer?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
contentClassName?: string;
|
|
11
|
+
height?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function VisualizationCard({ spec, data, title, description, footer, className, contentClassName, height, }: VisualizationCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VisualizationSpec } from '@contractspec/lib.contracts-spec/visualizations';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface VisualizationCardProps {
|
|
4
|
+
spec: VisualizationSpec;
|
|
5
|
+
data: unknown;
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
footer?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
contentClassName?: string;
|
|
11
|
+
height?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function VisualizationCard({ spec, data, title, description, footer, className, contentClassName, height, }: VisualizationCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { VisualizationSpec } from '@contractspec/lib.contracts-spec/visualizations';
|
|
2
|
+
import { type VisualizationInteractionHandler } from '@contractspec/lib.ui-kit-web/ui/visualization';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface VisualizationRendererProps {
|
|
5
|
+
spec: VisualizationSpec;
|
|
6
|
+
data: unknown;
|
|
7
|
+
className?: string;
|
|
8
|
+
height?: number;
|
|
9
|
+
emptyState?: React.ReactNode;
|
|
10
|
+
onDataPointPress?: VisualizationInteractionHandler;
|
|
11
|
+
}
|
|
12
|
+
export declare function VisualizationRenderer({ spec, data, className, height, emptyState, onDataPointPress, }: VisualizationRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { VisualizationSpec } from '@contractspec/lib.contracts-spec/visualizations';
|
|
2
|
+
import { type VisualizationInteractionHandler } from '@contractspec/lib.ui-kit/ui/visualization';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface VisualizationRendererProps {
|
|
5
|
+
spec: VisualizationSpec;
|
|
6
|
+
data: unknown;
|
|
7
|
+
className?: string;
|
|
8
|
+
height?: number;
|
|
9
|
+
emptyState?: React.ReactNode;
|
|
10
|
+
onDataPointPress?: VisualizationInteractionHandler;
|
|
11
|
+
}
|
|
12
|
+
export declare function VisualizationRenderer({ spec, data, className, height, emptyState, onDataPointPress, }: VisualizationRendererProps): import("react/jsx-runtime").JSX.Element;
|