@contractspec/lib.design-system 1.46.1 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Cta.js.map +1 -1
- package/dist/components/atoms/ErrorState.d.ts +2 -2
- package/dist/components/atoms/LoaderCircular.d.ts +2 -2
- package/dist/components/atoms/NavBrand.d.ts +2 -2
- package/dist/components/data-view/DataViewDetail.d.ts +2 -2
- package/dist/components/data-view/DataViewList.d.ts +2 -2
- package/dist/components/data-view/DataViewRenderer.js.map +1 -1
- package/dist/components/data-view/DataViewTable.d.ts +2 -2
- package/dist/components/data-view/utils.js.map +1 -1
- package/dist/components/forms/ActionForm.d.ts +2 -2
- package/dist/components/forms/FormCardLayout.d.ts +2 -2
- package/dist/components/forms/FormDialog.d.ts +2 -2
- package/dist/components/forms/FormLayout.d.ts +4 -4
- package/dist/components/forms/FormOneByOneLayout.d.ts +2 -2
- package/dist/components/forms/FormStepsLayout.d.ts +2 -2
- package/dist/components/forms/ZodForm.d.ts +2 -2
- package/dist/components/legal/atoms/DefinitionList.d.ts +2 -2
- package/dist/components/legal/atoms/KeyValueList.d.ts +2 -2
- package/dist/components/legal/atoms/LegalCallout.d.ts +2 -2
- package/dist/components/legal/atoms/LegalHeading.d.ts +2 -2
- package/dist/components/legal/atoms/LegalList.d.ts +2 -2
- package/dist/components/legal/atoms/LegalSection.d.ts +2 -2
- package/dist/components/legal/atoms/LegalText.d.ts +2 -2
- package/dist/components/legal/molecules/Consent.d.ts +3 -3
- package/dist/components/legal/molecules/ContactFields.d.ts +2 -2
- package/dist/components/legal/molecules/LegalMeta.d.ts +2 -2
- package/dist/components/legal/molecules/LegalTOC.d.ts +2 -2
- package/dist/components/legal/organisms/ContactForm.d.ts +2 -2
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +2 -2
- package/dist/components/legal/organisms/GDPRRights.d.ts +2 -2
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +2 -2
- package/dist/components/legal/templates/ContactTemplate.d.ts +2 -2
- package/dist/components/legal/templates/ContactTemplate.js +0 -1
- package/dist/components/legal/templates/ContactTemplate.js.map +1 -1
- package/dist/components/legal/templates/CookiesTemplate.d.ts +2 -2
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +2 -2
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +2 -2
- package/dist/components/legal/templates/TermsTemplate.d.ts +2 -2
- package/dist/components/marketing/MarketingCard.d.ts +2 -2
- package/dist/components/marketing/MarketingCard.js.map +1 -1
- package/dist/components/marketing/MarketingCardsSection.d.ts +2 -2
- package/dist/components/marketing/MarketingComparisonSection.d.ts +2 -2
- package/dist/components/marketing/MarketingIconCard.d.ts +2 -2
- package/dist/components/marketing/MarketingSection.d.ts +2 -2
- package/dist/components/marketing/MarketingStepCard.d.ts +2 -2
- package/dist/components/molecules/AiLinkButton.d.ts +2 -2
- package/dist/components/molecules/Breadcrumbs.d.ts +2 -2
- package/dist/components/molecules/CodeBlock/CodeBlock.d.ts +16 -0
- package/dist/components/molecules/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/molecules/CodeBlock/CodeBlock.js +54 -0
- package/dist/components/molecules/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/components/molecules/CodeBlock/index.d.ts +2 -0
- package/dist/components/molecules/CodeBlock/types.d.ts +19 -0
- package/dist/components/molecules/CodeBlock/types.d.ts.map +1 -0
- package/dist/components/molecules/CommandPalette.d.ts +2 -2
- package/dist/components/molecules/CommandSearchTrigger.d.ts +2 -2
- package/dist/components/molecules/CommandTabs/CommandTabs.d.ts +13 -0
- package/dist/components/molecules/CommandTabs/CommandTabs.d.ts.map +1 -0
- package/dist/components/molecules/CommandTabs/CommandTabs.js +68 -0
- package/dist/components/molecules/CommandTabs/CommandTabs.js.map +1 -0
- package/dist/components/molecules/CommandTabs/index.d.ts +2 -0
- package/dist/components/molecules/CommandTabs/types.d.ts +19 -0
- package/dist/components/molecules/CommandTabs/types.d.ts.map +1 -0
- package/dist/components/molecules/CopyButton/CopyButton.d.ts +13 -0
- package/dist/components/molecules/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/molecules/CopyButton/CopyButton.js +42 -0
- package/dist/components/molecules/CopyButton/CopyButton.js.map +1 -0
- package/dist/components/molecules/CopyButton/index.d.ts +2 -0
- package/dist/components/molecules/CopyButton/types.d.ts +12 -0
- package/dist/components/molecules/CopyButton/types.d.ts.map +1 -0
- package/dist/components/molecules/EntityCard.d.ts +2 -2
- package/dist/components/molecules/EntityCard.js.map +1 -1
- package/dist/components/molecules/FiltersToolbar.d.ts +2 -2
- package/dist/components/molecules/FiltersToolbar.js +0 -1
- package/dist/components/molecules/FiltersToolbar.js.map +1 -1
- package/dist/components/molecules/HoverPreview.d.ts +2 -2
- package/dist/components/molecules/InstallCommand/InstallCommand.d.ts +27 -0
- package/dist/components/molecules/InstallCommand/InstallCommand.d.ts.map +1 -0
- package/dist/components/molecules/InstallCommand/InstallCommand.js +68 -0
- package/dist/components/molecules/InstallCommand/InstallCommand.js.map +1 -0
- package/dist/components/molecules/InstallCommand/index.d.ts +2 -0
- package/dist/components/molecules/InstallCommand/types.d.ts +17 -0
- package/dist/components/molecules/InstallCommand/types.d.ts.map +1 -0
- package/dist/components/molecules/LangSwitch.d.ts +2 -2
- package/dist/components/molecules/LoaderBlock.d.ts +2 -2
- package/dist/components/molecules/OverviewCard.d.ts +2 -2
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonList/index.web.d.ts +2 -2
- package/dist/components/molecules/StatCard.d.ts +3 -3
- package/dist/components/molecules/StatusChip.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Doc.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Media.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Simple.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Stats.d.ts +2 -2
- package/dist/components/molecules/hover-previews/User.d.ts +2 -2
- package/dist/components/organisms/AcademyLayout.d.ts +2 -2
- package/dist/components/organisms/AppHeader.d.ts +2 -2
- package/dist/components/organisms/AppLayout.d.ts +2 -2
- package/dist/components/organisms/AppSidebar.d.ts +2 -2
- package/dist/components/organisms/EmptyDataList.d.ts +2 -2
- package/dist/components/organisms/EmptySearchResult.d.ts +2 -2
- package/dist/components/organisms/FAQSection.d.ts +2 -2
- package/dist/components/organisms/FeatureCarousel.d.ts +2 -2
- package/dist/components/organisms/FeaturesSection.d.ts +2 -2
- package/dist/components/organisms/Footer.d.ts +2 -2
- package/dist/components/organisms/Header.d.ts +4 -4
- package/dist/components/organisms/HeroResponsive.d.ts +2 -2
- package/dist/components/organisms/HeroSection.d.ts +2 -2
- package/dist/components/organisms/ListCardPage.d.ts +2 -2
- package/dist/components/organisms/ListGridPage.d.ts +2 -2
- package/dist/components/organisms/ListPageResponsive.d.ts +2 -2
- package/dist/components/organisms/ListTablePage.d.ts +2 -2
- package/dist/components/organisms/MarketingHeader.d.ts +2 -2
- package/dist/components/organisms/MarketingHeader.js +1 -1
- package/dist/components/organisms/MarketingHeader.js.map +1 -1
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +2 -2
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +2 -2
- package/dist/components/organisms/MarketingLayout.d.ts +2 -2
- package/dist/components/organisms/PageHeaderResponsive.d.ts +2 -2
- package/dist/components/organisms/PricingCarousel.d.ts +2 -2
- package/dist/components/organisms/PricingSection.d.ts +2 -2
- package/dist/components/organisms/TestimonialCarousel.d.ts +2 -2
- package/dist/components/providers/PackageManagerProvider.d.ts +26 -0
- package/dist/components/providers/PackageManagerProvider.d.ts.map +1 -0
- package/dist/components/providers/PackageManagerProvider.js +50 -0
- package/dist/components/providers/PackageManagerProvider.js.map +1 -0
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +2 -2
- package/dist/hooks/useListUrlState.js.map +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/keyboard.js.map +1 -1
- package/dist/platform/useResponsive.js.map +1 -1
- package/dist/platform/withPlatformUI.js.map +1 -1
- package/dist/renderers/form-contract.d.ts +2 -2
- package/dist/theme/tokens.js.map +1 -1
- package/package.json +16 -13
- package/dist/types/navigation.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cta.js","names":[
|
|
1
|
+
{"version":3,"file":"Cta.js","names":[],"sources":["../../../src/components/atoms/Cta.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button, type ButtonProps } from './Button';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { ButtonLink } from './ButtonLink';\n\nconst _ctaVariants = cva('', {\n variants: {\n size: { sm: 'sm', md: 'md', lg: 'lg', touch: 'touch' },\n emphasis: { default: 'default', subtle: 'secondary', strong: 'default' },\n },\n defaultVariants: { size: 'touch', emphasis: 'default' },\n});\n\nexport type CtaProps = ButtonProps &\n VariantProps<typeof _ctaVariants> & {\n capture?: (cta: string) => void;\n ctaName?: string;\n as?: 'button' | 'a';\n href?: string;\n children?: React.ReactNode;\n };\n\nexport const Cta = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n CtaProps\n>(\n (\n {\n capture,\n ctaName,\n as = 'button',\n href,\n onClick,\n size = 'touch',\n emphasis = 'default',\n children,\n ...props\n },\n _ref\n ) => {\n const handleClick: React.MouseEventHandler<\n HTMLButtonElement | HTMLAnchorElement\n > = (e) => {\n if (ctaName) {\n try {\n if (capture) capture(ctaName);\n // Optional PostHog fallback if present globally\n const ph = (globalThis as unknown as { posthog?: unknown }).posthog;\n if (\n ph &&\n typeof (ph as { capture?: unknown }).capture === 'function'\n ) {\n (\n ph as {\n capture: (\n event: string,\n props?: Record<string, unknown>\n ) => void;\n }\n ).capture('cta_click', { cta: ctaName });\n }\n } catch {\n /* noop */\n }\n }\n onClick?.(e as unknown as React.MouseEvent<HTMLButtonElement>);\n };\n\n const uiSize = size as ButtonProps['size'];\n const uiVariant = (\n emphasis === 'subtle' ? 'secondary' : 'default'\n ) as ButtonProps['variant'];\n\n if (as === 'a') {\n return (\n <ButtonLink\n size={uiSize}\n variant={uiVariant}\n {...props}\n href={href}\n onClick={\n handleClick as unknown as React.MouseEventHandler<HTMLAnchorElement>\n }\n >\n {children}\n </ButtonLink>\n );\n }\n\n return (\n <Button\n size={uiSize}\n variant={uiVariant}\n onClick={\n handleClick as unknown as React.MouseEventHandler<HTMLButtonElement>\n }\n {...props}\n >\n {children}\n </Button>\n );\n }\n);\nCta.displayName = 'Cta';\n"],"mappings":";;;;;;;AAKqB,IAAI,IAAI;CAC3B,UAAU;EACR,MAAM;GAAE,IAAI;GAAM,IAAI;GAAM,IAAI;GAAM,OAAO;GAAS;EACtD,UAAU;GAAE,SAAS;GAAW,QAAQ;GAAa,QAAQ;GAAW;EACzE;CACD,iBAAiB;EAAE,MAAM;EAAS,UAAU;EAAW;CACxD,CAAC;AAWF,MAAa,MAAM,MAAM,YAKrB,EACE,SACA,SACA,KAAK,UACL,MACA,SACA,OAAO,SACP,WAAW,WACX,UACA,GAAG,SAEL,SACG;CACH,MAAM,eAED,MAAM;AACT,MAAI,QACF,KAAI;AACF,OAAI,QAAS,SAAQ,QAAQ;GAE7B,MAAM,KAAM,WAAgD;AAC5D,OACE,MACA,OAAQ,GAA6B,YAAY,WAEjD,CACE,GAMA,QAAQ,aAAa,EAAE,KAAK,SAAS,CAAC;UAEpC;AAIV,YAAU,EAAoD;;CAGhE,MAAM,SAAS;CACf,MAAM,YACJ,aAAa,WAAW,cAAc;AAGxC,KAAI,OAAO,IACT,QACE,oBAAC;EACC,MAAM;EACN,SAAS;EACT,GAAI;EACE;EACN,SACE;EAGD;GACU;AAIjB,QACE,oBAAC;EACC,MAAM;EACN,SAAS;EACT,SACE;EAEF,GAAI;EAEH;GACM;EAGd;AACD,IAAI,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/ErrorState.d.ts
|
|
5
5
|
interface ErrorStateProps {
|
|
@@ -23,7 +23,7 @@ declare function ErrorState({
|
|
|
23
23
|
onContactSupport,
|
|
24
24
|
supportLabel,
|
|
25
25
|
className
|
|
26
|
-
}: ErrorStateProps):
|
|
26
|
+
}: ErrorStateProps): react_jsx_runtime75.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ErrorState };
|
|
29
29
|
//# sourceMappingURL=ErrorState.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime73 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types14 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ declare function LoaderCircular({
|
|
|
17
17
|
label,
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: LoaderCircularProps):
|
|
20
|
+
}: LoaderCircularProps): react_jsx_runtime73.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { LoaderCircular };
|
|
23
23
|
//# sourceMappingURL=LoaderCircular.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime43 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/NavBrand.d.ts
|
|
5
5
|
interface NavBrandProps {
|
|
@@ -13,7 +13,7 @@ declare function NavBrand({
|
|
|
13
13
|
logo,
|
|
14
14
|
title,
|
|
15
15
|
className
|
|
16
|
-
}: NavBrandProps):
|
|
16
|
+
}: NavBrandProps): react_jsx_runtime43.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { NavBrand };
|
|
19
19
|
//# sourceMappingURL=NavBrand.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime108 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@contractspec/lib.contracts/data-views";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-view/DataViewDetail.d.ts
|
|
@@ -16,7 +16,7 @@ declare function DataViewDetail({
|
|
|
16
16
|
className,
|
|
17
17
|
emptyState,
|
|
18
18
|
headerActions
|
|
19
|
-
}: DataViewDetailProps):
|
|
19
|
+
}: DataViewDetailProps): react_jsx_runtime108.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DataViewDetail };
|
|
22
22
|
//# sourceMappingURL=DataViewDetail.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime106 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@contractspec/lib.contracts/data-views";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-view/DataViewList.d.ts
|
|
@@ -18,7 +18,7 @@ declare function DataViewList({
|
|
|
18
18
|
renderActions,
|
|
19
19
|
onSelect,
|
|
20
20
|
emptyState
|
|
21
|
-
}: DataViewListProps):
|
|
21
|
+
}: DataViewListProps): react_jsx_runtime106.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { DataViewList };
|
|
24
24
|
//# sourceMappingURL=DataViewList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataViewRenderer.js","names":[
|
|
1
|
+
{"version":3,"file":"DataViewRenderer.js","names":[],"sources":["../../../src/components/data-view/DataViewRenderer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type {\n DataViewGridConfig,\n DataViewListConfig,\n DataViewSpec,\n} from '@contractspec/lib.contracts/data-views';\nimport { DataViewList } from './DataViewList';\nimport { DataViewTable } from './DataViewTable';\nimport { DataViewDetail } from './DataViewDetail';\nimport { FiltersToolbar } from '../molecules/FiltersToolbar';\nimport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n} from '@contractspec/lib.ui-kit-web/ui/pagination';\n\nexport interface DataViewRendererProps {\n spec: DataViewSpec;\n items?: Record<string, unknown>[];\n item?: Record<string, unknown> | null;\n className?: string;\n renderActions?: (item: Record<string, unknown>) => React.ReactNode;\n onSelect?: (item: Record<string, unknown>) => void;\n onRowClick?: (item: Record<string, unknown>) => void;\n headerActions?: React.ReactNode;\n emptyState?: React.ReactNode;\n footer?: React.ReactNode;\n\n // Filters & Search\n search?: string;\n onSearchChange?: (value: string) => void;\n filters?: Record<string, unknown>;\n onFilterChange?: (filters: Record<string, unknown>) => void;\n\n // Pagination\n pagination?: {\n page: number;\n pageSize: number;\n total: number;\n };\n onPageChange?: (page: number) => void;\n}\n\nexport function DataViewRenderer({\n spec,\n items = [],\n item = null,\n className,\n renderActions,\n onSelect,\n onRowClick,\n headerActions,\n emptyState,\n footer,\n search,\n onSearchChange,\n filters,\n onFilterChange,\n pagination,\n onPageChange,\n}: DataViewRendererProps) {\n const viewContent = React.useMemo(() => {\n switch (spec.view.kind) {\n case 'list':\n return (\n <DataViewList\n spec={spec}\n items={items}\n className={className}\n renderActions={renderActions}\n onSelect={onSelect}\n emptyState={emptyState}\n />\n );\n case 'table':\n return (\n <DataViewTable\n spec={spec}\n items={items}\n className={className}\n onRowClick={onRowClick}\n emptyState={emptyState}\n headerActions={headerActions}\n footer={footer}\n />\n );\n case 'detail':\n return (\n <DataViewDetail\n spec={spec}\n item={item}\n className={className}\n emptyState={emptyState}\n headerActions={headerActions}\n />\n );\n case 'grid': {\n const grid = spec.view as DataViewGridConfig;\n const listView: DataViewListConfig = {\n kind: 'list',\n layout: 'card',\n fields: grid.fields,\n filters: grid.filters,\n actions: grid.actions,\n primaryField: grid.primaryField,\n secondaryFields: grid.secondaryFields,\n };\n const listSpec = {\n ...spec,\n view: listView,\n } satisfies DataViewSpec;\n return (\n <DataViewList\n spec={listSpec}\n items={items}\n className={className}\n renderActions={renderActions}\n onSelect={onSelect}\n emptyState={emptyState}\n />\n );\n }\n default:\n return <div className={className}>Unsupported data view kind</div>;\n }\n }, [\n spec,\n items,\n item,\n className,\n renderActions,\n onSelect,\n onRowClick,\n headerActions,\n emptyState,\n footer,\n ]);\n\n // Only render toolbar/pagination if it's a collection view\n const isCollection =\n spec.view.kind === 'list' ||\n spec.view.kind === 'table' ||\n spec.view.kind === 'grid';\n\n if (!isCollection) {\n return <>{viewContent}</>;\n }\n\n return (\n <div className=\"space-y-4\">\n {(spec.view.filters?.length || onSearchChange) && (\n <FiltersToolbar\n searchValue={search}\n onSearchChange={onSearchChange}\n searchPlaceholder=\"Search...\"\n activeChips={\n filters\n ? Object.entries(filters).map(([key, value]) => ({\n key,\n label: `${key}: ${value}`,\n onRemove: () => {\n if (filters) {\n const { [key]: _, ...rest } = filters;\n onFilterChange?.(rest);\n }\n },\n }))\n : []\n }\n onClearAll={\n filters && Object.keys(filters).length > 0\n ? () => onFilterChange?.({})\n : undefined\n }\n right={headerActions}\n >\n {/* Render filter dropdowns here if needed */}\n </FiltersToolbar>\n )}\n\n {viewContent}\n\n {pagination && pagination.total > 0 && (\n <div className=\"py-4\">\n <Pagination>\n <PaginationContent>\n <PaginationItem>\n <PaginationPrevious\n href=\"#\"\n onClick={(e) => {\n e.preventDefault();\n if (pagination.page > 1) {\n onPageChange?.(pagination.page - 1);\n }\n }}\n aria-disabled={pagination.page <= 1}\n className={\n pagination.page <= 1 ? 'pointer-events-none opacity-50' : ''\n }\n />\n </PaginationItem>\n\n {/* Simplified pagination: show current page */}\n <PaginationItem>\n <PaginationLink href=\"#\" isActive>\n {pagination.page}\n </PaginationLink>\n </PaginationItem>\n\n <PaginationItem>\n <PaginationNext\n href=\"#\"\n onClick={(e) => {\n e.preventDefault();\n const totalPages = Math.ceil(\n pagination.total / pagination.pageSize\n );\n if (pagination.page < totalPages) {\n onPageChange?.(pagination.page + 1);\n }\n }}\n aria-disabled={\n pagination.page >=\n Math.ceil(pagination.total / pagination.pageSize)\n }\n className={\n pagination.page >=\n Math.ceil(pagination.total / pagination.pageSize)\n ? 'pointer-events-none opacity-50'\n : ''\n }\n />\n </PaginationItem>\n </PaginationContent>\n </Pagination>\n <div className=\"text-muted-foreground mt-2 text-center text-sm\">\n Page {pagination.page} of{' '}\n {Math.ceil(pagination.total / pagination.pageSize)} (\n {pagination.total} items)\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAgDA,SAAgB,iBAAiB,EAC/B,MACA,QAAQ,EAAE,EACV,OAAO,MACP,WACA,eACA,UACA,YACA,eACA,YACA,QACA,QACA,gBACA,SACA,gBACA,YACA,gBACwB;CACxB,MAAM,cAAc,MAAM,cAAc;AACtC,UAAQ,KAAK,KAAK,MAAlB;GACE,KAAK,OACH,QACE,oBAAC;IACO;IACC;IACI;IACI;IACL;IACE;KACZ;GAEN,KAAK,QACH,QACE,oBAAC;IACO;IACC;IACI;IACC;IACA;IACG;IACP;KACR;GAEN,KAAK,SACH,QACE,oBAAC;IACO;IACA;IACK;IACC;IACG;KACf;GAEN,KAAK,QAAQ;IACX,MAAM,OAAO,KAAK;IAClB,MAAM,WAA+B;KACnC,MAAM;KACN,QAAQ;KACR,QAAQ,KAAK;KACb,SAAS,KAAK;KACd,SAAS,KAAK;KACd,cAAc,KAAK;KACnB,iBAAiB,KAAK;KACvB;AAKD,WACE,oBAAC;KACC,MANa;MACf,GAAG;MACH,MAAM;MACP;KAIU;KACI;KACI;KACL;KACE;MACZ;;GAGN,QACE,QAAO,oBAAC;IAAe;cAAW;KAAgC;;IAErE;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,CAAC;AAQF,KAAI,EAJF,KAAK,KAAK,SAAS,UACnB,KAAK,KAAK,SAAS,WACnB,KAAK,KAAK,SAAS,QAGnB,QAAO,0CAAG,cAAe;AAG3B,QACE,qBAAC;EAAI,WAAU;;IACX,KAAK,KAAK,SAAS,UAAU,mBAC7B,oBAAC;IACC,aAAa;IACG;IAChB,mBAAkB;IAClB,aACE,UACI,OAAO,QAAQ,QAAQ,CAAC,KAAK,CAAC,KAAK,YAAY;KAC7C;KACA,OAAO,GAAG,IAAI,IAAI;KAClB,gBAAgB;AACd,UAAI,SAAS;OACX,MAAM,GAAG,MAAM,GAAG,GAAG,SAAS;AAC9B,wBAAiB,KAAK;;;KAG3B,EAAE,GACH,EAAE;IAER,YACE,WAAW,OAAO,KAAK,QAAQ,CAAC,SAAS,UAC/B,iBAAiB,EAAE,CAAC,GAC1B;IAEN,OAAO;KAGQ;GAGlB;GAEA,cAAc,WAAW,QAAQ,KAChC,qBAAC;IAAI,WAAU;eACb,oBAAC,wBACC,qBAAC;KACC,oBAAC,4BACC,oBAAC;MACC,MAAK;MACL,UAAU,MAAM;AACd,SAAE,gBAAgB;AAClB,WAAI,WAAW,OAAO,EACpB,gBAAe,WAAW,OAAO,EAAE;;MAGvC,iBAAe,WAAW,QAAQ;MAClC,WACE,WAAW,QAAQ,IAAI,mCAAmC;OAE5D,GACa;KAGjB,oBAAC,4BACC,oBAAC;MAAe,MAAK;MAAI;gBACtB,WAAW;OACG,GACF;KAEjB,oBAAC,4BACC,oBAAC;MACC,MAAK;MACL,UAAU,MAAM;AACd,SAAE,gBAAgB;OAClB,MAAM,aAAa,KAAK,KACtB,WAAW,QAAQ,WAAW,SAC/B;AACD,WAAI,WAAW,OAAO,WACpB,gBAAe,WAAW,OAAO,EAAE;;MAGvC,iBACE,WAAW,QACX,KAAK,KAAK,WAAW,QAAQ,WAAW,SAAS;MAEnD,WACE,WAAW,QACX,KAAK,KAAK,WAAW,QAAQ,WAAW,SAAS,GAC7C,mCACA;OAEN,GACa;QACC,GACT,EACb,qBAAC;KAAI,WAAU;;MAAiD;MACxD,WAAW;MAAK;MAAI;MACzB,KAAK,KAAK,WAAW,QAAQ,WAAW,SAAS;MAAC;MAClD,WAAW;MAAM;;MACd;KACF;;GAEJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@contractspec/lib.contracts/data-views";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-view/DataViewTable.d.ts
|
|
@@ -20,7 +20,7 @@ declare function DataViewTable({
|
|
|
20
20
|
emptyState,
|
|
21
21
|
headerActions,
|
|
22
22
|
footer
|
|
23
|
-
}: DataViewTableProps):
|
|
23
|
+
}: DataViewTableProps): react_jsx_runtime107.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { DataViewTable };
|
|
26
26
|
//# sourceMappingURL=DataViewTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":[
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/data-view/utils.ts"],"sourcesContent":["'use client';\n\nexport function getAtPath(\n source: Record<string, unknown> | undefined,\n path: string\n): unknown {\n if (!source) return undefined;\n if (!path) return source;\n const segments = path\n .replace(/\\[(\\d+)\\]/g, '.$1')\n .split('.')\n .filter(Boolean);\n\n let current: unknown = source;\n for (const segment of segments) {\n if (\n current == null ||\n (typeof current !== 'object' && !Array.isArray(current))\n )\n return undefined;\n current = (current as Record<string, unknown>)[segment];\n }\n return current;\n}\n\nexport function formatValue(value: unknown, format?: string): string {\n if (value == null) return '';\n switch (format) {\n case 'boolean':\n return value ? 'Yes' : 'No';\n case 'currency':\n return typeof value === 'number'\n ? new Intl.NumberFormat(undefined, {\n style: 'currency',\n currency: 'USD',\n }).format(value)\n : String(value);\n case 'percentage':\n return typeof value === 'number'\n ? `${(value * 100).toFixed(1)}%`\n : String(value);\n case 'date':\n return formatDate(value, {\n dateStyle: 'medium',\n });\n case 'dateTime':\n return formatDate(value, {\n dateStyle: 'medium',\n timeStyle: 'short',\n });\n default:\n return String(value);\n }\n}\n\nfunction formatDate(\n value: unknown,\n options: Intl.DateTimeFormatOptions\n): string {\n if (value instanceof Date) {\n return new Intl.DateTimeFormat(undefined, options).format(value);\n }\n if (typeof value === 'string' || typeof value === 'number') {\n const date = new Date(value);\n if (!Number.isNaN(date.getTime())) {\n return new Intl.DateTimeFormat(undefined, options).format(date);\n }\n }\n return String(value ?? '');\n}\n"],"mappings":";;;AAEA,SAAgB,UACd,QACA,MACS;AACT,KAAI,CAAC,OAAQ,QAAO;AACpB,KAAI,CAAC,KAAM,QAAO;CAClB,MAAM,WAAW,KACd,QAAQ,cAAc,MAAM,CAC5B,MAAM,IAAI,CACV,OAAO,QAAQ;CAElB,IAAI,UAAmB;AACvB,MAAK,MAAM,WAAW,UAAU;AAC9B,MACE,WAAW,QACV,OAAO,YAAY,YAAY,CAAC,MAAM,QAAQ,QAAQ,CAEvD,QAAO;AACT,YAAW,QAAoC;;AAEjD,QAAO;;AAGT,SAAgB,YAAY,OAAgB,QAAyB;AACnE,KAAI,SAAS,KAAM,QAAO;AAC1B,SAAQ,QAAR;EACE,KAAK,UACH,QAAO,QAAQ,QAAQ;EACzB,KAAK,WACH,QAAO,OAAO,UAAU,WACpB,IAAI,KAAK,aAAa,QAAW;GAC/B,OAAO;GACP,UAAU;GACX,CAAC,CAAC,OAAO,MAAM,GAChB,OAAO,MAAM;EACnB,KAAK,aACH,QAAO,OAAO,UAAU,WACpB,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC,KAC5B,OAAO,MAAM;EACnB,KAAK,OACH,QAAO,WAAW,OAAO,EACvB,WAAW,UACZ,CAAC;EACJ,KAAK,WACH,QAAO,WAAW,OAAO;GACvB,WAAW;GACX,WAAW;GACZ,CAAC;EACJ,QACE,QAAO,OAAO,MAAM;;;AAI1B,SAAS,WACP,OACA,SACQ;AACR,KAAI,iBAAiB,KACnB,QAAO,IAAI,KAAK,eAAe,QAAW,QAAQ,CAAC,OAAO,MAAM;AAElE,KAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAAU;EAC1D,MAAM,OAAO,IAAI,KAAK,MAAM;AAC5B,MAAI,CAAC,OAAO,MAAM,KAAK,SAAS,CAAC,CAC/B,QAAO,IAAI,KAAK,eAAe,QAAW,QAAQ,CAAC,OAAO,KAAK;;AAGnE,QAAO,OAAO,SAAS,GAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime105 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/ActionForm.d.ts
|
|
5
5
|
interface ActionFormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, 'action'> {
|
|
@@ -11,7 +11,7 @@ declare function ActionForm({
|
|
|
11
11
|
children,
|
|
12
12
|
className,
|
|
13
13
|
...rest
|
|
14
|
-
}: ActionFormProps):
|
|
14
|
+
}: ActionFormProps): react_jsx_runtime105.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ActionForm };
|
|
17
17
|
//# sourceMappingURL=ActionForm.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormCardLayout.d.ts
|
|
5
5
|
interface FormCardLayoutProps {
|
|
@@ -17,7 +17,7 @@ declare function FormCardLayout({
|
|
|
17
17
|
children,
|
|
18
18
|
className,
|
|
19
19
|
contentClassName
|
|
20
|
-
}: FormCardLayoutProps):
|
|
20
|
+
}: FormCardLayoutProps): react_jsx_runtime102.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FormCardLayout };
|
|
23
23
|
//# sourceMappingURL=FormCardLayout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormDialog.d.ts
|
|
5
5
|
interface FormDialogProps {
|
|
@@ -19,7 +19,7 @@ declare function FormDialog({
|
|
|
19
19
|
children,
|
|
20
20
|
footer,
|
|
21
21
|
maxWidth
|
|
22
|
-
}: FormDialogProps):
|
|
22
|
+
}: FormDialogProps): react_jsx_runtime97.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FormDialog };
|
|
25
25
|
//# sourceMappingURL=FormDialog.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime99 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormLayout.d.ts
|
|
5
5
|
declare function FormSection({
|
|
@@ -8,14 +8,14 @@ declare function FormSection({
|
|
|
8
8
|
}: {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime99.JSX.Element;
|
|
12
12
|
declare function FormRow({
|
|
13
13
|
children,
|
|
14
14
|
className
|
|
15
15
|
}: {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
className?: string;
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime99.JSX.Element;
|
|
19
19
|
declare function FormGrid({
|
|
20
20
|
children,
|
|
21
21
|
cols,
|
|
@@ -24,7 +24,7 @@ declare function FormGrid({
|
|
|
24
24
|
children: React.ReactNode;
|
|
25
25
|
cols?: 1 | 2 | 3 | 4;
|
|
26
26
|
className?: string;
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime99.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { FormGrid, FormRow, FormSection };
|
|
30
30
|
//# sourceMappingURL=FormLayout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormOneByOneLayout.d.ts
|
|
5
5
|
interface OneByOneFieldDef {
|
|
@@ -20,7 +20,7 @@ declare function FormOneByOneLayout({
|
|
|
20
20
|
initialKey,
|
|
21
21
|
onComplete,
|
|
22
22
|
className
|
|
23
|
-
}: FormOneByOneLayoutProps):
|
|
23
|
+
}: FormOneByOneLayoutProps): react_jsx_runtime104.JSX.Element | null;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { FormOneByOneLayout };
|
|
26
26
|
//# sourceMappingURL=FormOneByOneLayout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormStepsLayout.d.ts
|
|
5
5
|
interface StepDef {
|
|
@@ -21,7 +21,7 @@ declare function FormStepsLayout({
|
|
|
21
21
|
onFinish,
|
|
22
22
|
canNext,
|
|
23
23
|
className
|
|
24
|
-
}: FormStepsLayoutProps):
|
|
24
|
+
}: FormStepsLayoutProps): react_jsx_runtime103.JSX.Element | null;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { FormStepsLayout };
|
|
27
27
|
//# sourceMappingURL=FormStepsLayout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime98 from "react/jsx-runtime";
|
|
3
3
|
import { UseFormReturn } from "@contractspec/lib.ui-kit-web/ui/form";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { FieldValues } from "react-hook-form";
|
|
@@ -16,7 +16,7 @@ declare function ZodForm<TSchema extends z.ZodType<any, any, any>, TFieldValues
|
|
|
16
16
|
defaultValues,
|
|
17
17
|
onSubmit,
|
|
18
18
|
children
|
|
19
|
-
}: ZodFormProps<TSchema, TFieldValues, TOutput>):
|
|
19
|
+
}: ZodFormProps<TSchema, TFieldValues, TOutput>): react_jsx_runtime98.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ZodForm };
|
|
22
22
|
//# sourceMappingURL=ZodForm.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/atoms/DefinitionList.d.ts
|
|
5
5
|
declare function DefinitionList({
|
|
@@ -11,7 +11,7 @@ declare function DefinitionList({
|
|
|
11
11
|
description: React.ReactNode;
|
|
12
12
|
}[];
|
|
13
13
|
className?: string;
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { DefinitionList };
|
|
17
17
|
//# sourceMappingURL=DefinitionList.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime80 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/atoms/KeyValueList.d.ts
|
|
5
5
|
declare function KeyValueList({
|
|
@@ -11,7 +11,7 @@ declare function KeyValueList({
|
|
|
11
11
|
value: React.ReactNode;
|
|
12
12
|
}[];
|
|
13
13
|
className?: string;
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime80.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { KeyValueList };
|
|
17
17
|
//# sourceMappingURL=KeyValueList.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types19 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ declare function LegalCallout({
|
|
|
12
12
|
tone,
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: LegalCalloutProps):
|
|
15
|
+
}: LegalCalloutProps): react_jsx_runtime82.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { LegalCallout };
|
|
18
18
|
//# sourceMappingURL=LegalCallout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types15 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -19,7 +19,7 @@ declare function LegalHeading({
|
|
|
19
19
|
spacing,
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: LegalHeadingProps):
|
|
22
|
+
}: LegalHeadingProps): react_jsx_runtime76.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { LegalHeading };
|
|
25
25
|
//# sourceMappingURL=LegalHeading.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime81 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types18 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ declare function LegalList({
|
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
...props
|
|
18
|
-
}: LegalListProps):
|
|
18
|
+
}: LegalListProps): react_jsx_runtime81.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { LegalList };
|
|
21
21
|
//# sourceMappingURL=LegalList.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types17 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@ declare function LegalSection({
|
|
|
16
16
|
tone,
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: LegalSectionProps):
|
|
19
|
+
}: LegalSectionProps): react_jsx_runtime78.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { LegalSection };
|
|
22
22
|
//# sourceMappingURL=LegalSection.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types16 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -19,7 +19,7 @@ declare function LegalText({
|
|
|
19
19
|
spacing,
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: LegalTextProps):
|
|
22
|
+
}: LegalTextProps): react_jsx_runtime77.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { LegalText };
|
|
25
25
|
//# sourceMappingURL=LegalText.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/molecules/Consent.d.ts
|
|
5
5
|
declare function ConsentItem({
|
|
@@ -16,7 +16,7 @@ declare function ConsentItem({
|
|
|
16
16
|
checked: boolean;
|
|
17
17
|
onChange: (checked: boolean) => void;
|
|
18
18
|
className?: string;
|
|
19
|
-
}):
|
|
19
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
20
20
|
declare function ConsentList({
|
|
21
21
|
items,
|
|
22
22
|
onChange,
|
|
@@ -30,7 +30,7 @@ declare function ConsentList({
|
|
|
30
30
|
}[];
|
|
31
31
|
onChange: (id: string, checked: boolean) => void;
|
|
32
32
|
className?: string;
|
|
33
|
-
}):
|
|
33
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { ConsentItem, ConsentList };
|
|
36
36
|
//# sourceMappingURL=Consent.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/legal/molecules/ContactFields.d.ts
|
|
4
4
|
declare function ContactFields({
|
|
@@ -19,7 +19,7 @@ declare function ContactFields({
|
|
|
19
19
|
message: string;
|
|
20
20
|
}) => void;
|
|
21
21
|
disabled?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime87.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { ContactFields };
|
|
25
25
|
//# sourceMappingURL=ContactFields.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime84 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/legal/molecules/LegalMeta.d.ts
|
|
4
4
|
declare function LegalMeta({
|
|
@@ -9,7 +9,7 @@ declare function LegalMeta({
|
|
|
9
9
|
lastUpdated?: string | Date;
|
|
10
10
|
version?: string;
|
|
11
11
|
className?: string;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime84.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { LegalMeta };
|
|
15
15
|
//# sourceMappingURL=LegalMeta.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime83 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types20 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -25,7 +25,7 @@ declare function LegalTOC({
|
|
|
25
25
|
size,
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: LegalTOCProps):
|
|
28
|
+
}: LegalTOCProps): react_jsx_runtime83.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { LegalTOC, TocItem };
|
|
31
31
|
//# sourceMappingURL=LegalTOC.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime90 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/organisms/ContactForm.d.ts
|
|
5
5
|
declare function ContactForm({
|
|
@@ -24,7 +24,7 @@ declare function ContactForm({
|
|
|
24
24
|
subject: string;
|
|
25
25
|
message: string;
|
|
26
26
|
}) => Promise<void> | void;
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime90.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ContactForm };
|
|
30
30
|
//# sourceMappingURL=ContactForm.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime91 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/organisms/GDPRDataRequest.d.ts
|
|
5
5
|
declare function GDPRDataRequest({
|
|
@@ -13,7 +13,7 @@ declare function GDPRDataRequest({
|
|
|
13
13
|
export: React.ReactNode;
|
|
14
14
|
delete: React.ReactNode;
|
|
15
15
|
};
|
|
16
|
-
}):
|
|
16
|
+
}): react_jsx_runtime91.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { GDPRDataRequest };
|
|
19
19
|
//# sourceMappingURL=GDPRDataRequest.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime89 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/organisms/GDPRRights.d.ts
|
|
5
5
|
declare function GDPRRights({
|
|
@@ -8,7 +8,7 @@ declare function GDPRRights({
|
|
|
8
8
|
}: {
|
|
9
9
|
title?: React.ReactNode;
|
|
10
10
|
rights?: React.ReactNode[];
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime89.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { GDPRRights };
|
|
14
14
|
//# sourceMappingURL=GDPRRights.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TocItem } from "../molecules/LegalTOC.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/legal/organisms/LegalPageLayout.d.ts
|
|
6
6
|
declare function LegalPageLayout({
|
|
@@ -18,7 +18,7 @@ declare function LegalPageLayout({
|
|
|
18
18
|
toc?: TocItem[];
|
|
19
19
|
children: React.ReactNode;
|
|
20
20
|
className?: string;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime88.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { LegalPageLayout };
|
|
24
24
|
//# sourceMappingURL=LegalPageLayout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime96 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/templates/ContactTemplate.d.ts
|
|
5
5
|
declare function ContactTemplate({
|
|
@@ -18,7 +18,7 @@ declare function ContactTemplate({
|
|
|
18
18
|
subject: string;
|
|
19
19
|
message: string;
|
|
20
20
|
}) => Promise<void> | void;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime96.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ContactTemplate };
|
|
24
24
|
//# sourceMappingURL=ContactTemplate.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Button } from "../../atoms/Button.js";
|
|
2
2
|
import { ContactFields } from "../molecules/ContactFields.js";
|
|
3
3
|
import { LegalPageLayout } from "../organisms/LegalPageLayout.js";
|
|
4
|
-
import "../../../index.js";
|
|
5
4
|
import * as React from "react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactTemplate.js","names":[],"sources":["../../../../src/components/legal/templates/ContactTemplate.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LegalPageLayout } from '../organisms/LegalPageLayout';\nimport { ContactFields } from '../molecules/ContactFields';\nimport { Button } from '../../../index';\n\nexport function ContactTemplate({\n title = 'Contact',\n meta,\n onSubmit,\n}: {\n title?: React.ReactNode;\n meta?: { lastUpdated?: string | Date; version?: string };\n onSubmit?: (data: {\n name: string;\n email: string;\n subject: string;\n message: string;\n }) => Promise<void> | void;\n}) {\n const [value, setValue] = React.useState({\n name: '',\n email: '',\n subject: '',\n message: '',\n });\n const [loading, setLoading] = React.useState(false);\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!onSubmit) return;\n setLoading(true);\n try {\n await onSubmit(value);\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <LegalPageLayout title={title} meta={meta}>\n <form onSubmit={handleSubmit} className=\"space-y-6\">\n <ContactFields value={value} onChange={setValue} disabled={loading} />\n <Button disabled={loading} type=\"submit\">\n {loading ? 'Envoi…' : 'Envoyer'}\n </Button>\n </form>\n </LegalPageLayout>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContactTemplate.js","names":[],"sources":["../../../../src/components/legal/templates/ContactTemplate.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LegalPageLayout } from '../organisms/LegalPageLayout';\nimport { ContactFields } from '../molecules/ContactFields';\nimport { Button } from '../../../index';\n\nexport function ContactTemplate({\n title = 'Contact',\n meta,\n onSubmit,\n}: {\n title?: React.ReactNode;\n meta?: { lastUpdated?: string | Date; version?: string };\n onSubmit?: (data: {\n name: string;\n email: string;\n subject: string;\n message: string;\n }) => Promise<void> | void;\n}) {\n const [value, setValue] = React.useState({\n name: '',\n email: '',\n subject: '',\n message: '',\n });\n const [loading, setLoading] = React.useState(false);\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!onSubmit) return;\n setLoading(true);\n try {\n await onSubmit(value);\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <LegalPageLayout title={title} meta={meta}>\n <form onSubmit={handleSubmit} className=\"space-y-6\">\n <ContactFields value={value} onChange={setValue} disabled={loading} />\n <Button disabled={loading} type=\"submit\">\n {loading ? 'Envoi…' : 'Envoyer'}\n </Button>\n </form>\n </LegalPageLayout>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,gBAAgB,EAC9B,QAAQ,WACR,MACA,YAUC;CACD,MAAM,CAAC,OAAO,YAAY,MAAM,SAAS;EACvC,MAAM;EACN,OAAO;EACP,SAAS;EACT,SAAS;EACV,CAAC;CACF,MAAM,CAAC,SAAS,cAAc,MAAM,SAAS,MAAM;CAEnD,MAAM,eAAe,OAAO,MAAuB;AACjD,IAAE,gBAAgB;AAClB,MAAI,CAAC,SAAU;AACf,aAAW,KAAK;AAChB,MAAI;AACF,SAAM,SAAS,MAAM;YACb;AACR,cAAW,MAAM;;;AAIrB,QACE,oBAAC;EAAuB;EAAa;YACnC,qBAAC;GAAK,UAAU;GAAc,WAAU;cACtC,oBAAC;IAAqB;IAAO,UAAU;IAAU,UAAU;KAAW,EACtE,oBAAC;IAAO,UAAU;IAAS,MAAK;cAC7B,UAAU,WAAW;KACf;IACJ;GACS"}
|