@contractspec/lib.design-system 1.46.2 → 1.48.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/agent/AgentMonitor.d.ts +2 -2
- package/dist/components/agent/ApprovalQueue.d.ts +2 -2
- package/dist/components/atoms/ActionButtons.d.ts +7 -7
- package/dist/components/atoms/ButtonLink.d.ts +2 -2
- package/dist/components/atoms/Cta.d.ts +1 -1
- package/dist/components/atoms/Cta.js.map +1 -1
- package/dist/components/atoms/DataChips.d.ts +5 -5
- package/dist/components/atoms/EmptyState.d.ts +2 -2
- package/dist/components/atoms/ErrorState.d.ts +2 -2
- package/dist/components/atoms/Input.d.ts +2 -2
- package/dist/components/atoms/Link.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/atoms/Stepper.d.ts +2 -2
- package/dist/components/atoms/Textarea.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.d.ts +2 -2
- package/dist/components/data-view/DataViewRenderer.d.ts.map +1 -1
- 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 +3 -3
- 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/NavMain.d.ts +2 -2
- package/dist/components/molecules/NavUser.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 +4 -4
- 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/components/templates/lists/ListPageTemplate/index.web.js +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.web.js.map +1 -1
- package/dist/hooks/useListUrlState.js.map +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +6 -7
- 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/dist/theme/variants.d.ts +1 -1
- package/package.json +16 -13
- package/dist/components/molecules/SkeletonBlock/index.js +0 -1
- package/dist/components/molecules/SkeletonCircle/index.js +0 -1
- package/dist/components/molecules/SkeletonList/index.js +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.js +0 -2
- package/dist/components/templates/lists/ListPageTemplate/types.js +0 -1
- package/dist/renderers/index.js +0 -1
- package/dist/types/navigation.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/agent/AgentMonitor.d.ts
|
|
4
4
|
interface AgentSessionSnapshot {
|
|
@@ -23,7 +23,7 @@ declare function AgentMonitor({
|
|
|
23
23
|
highlightStatus,
|
|
24
24
|
onSelectSession,
|
|
25
25
|
className
|
|
26
|
-
}: AgentMonitorProps):
|
|
26
|
+
}: AgentMonitorProps): react_jsx_runtime19.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { AgentMonitor };
|
|
29
29
|
//# sourceMappingURL=AgentMonitor.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
import { ApprovalRequest } from "@contractspec/lib.ai-agent/approval";
|
|
4
4
|
|
|
5
5
|
//#region src/components/agent/ApprovalQueue.d.ts
|
|
@@ -20,7 +20,7 @@ declare function ApprovalQueue({
|
|
|
20
20
|
onReject,
|
|
21
21
|
className,
|
|
22
22
|
emptyState
|
|
23
|
-
}: ApprovalQueueProps):
|
|
23
|
+
}: ApprovalQueueProps): react_jsx_runtime18.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ApprovalQueue };
|
|
26
26
|
//# sourceMappingURL=ApprovalQueue.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
6
6
|
|
|
@@ -13,14 +13,14 @@ type ActionBtnProps = Omit<ButtonProps, 'size' | 'variant'> & VariantProps<typeo
|
|
|
13
13
|
label?: React.ReactNode;
|
|
14
14
|
iconLeft?: React.ReactNode;
|
|
15
15
|
};
|
|
16
|
-
declare function EditButton(props: Omit<ActionBtnProps, 'iconLeft' | 'tone'>):
|
|
17
|
-
declare function DeleteButton(props: Omit<ActionBtnProps, 'iconLeft'>):
|
|
18
|
-
declare function ViewButton(props: Omit<ActionBtnProps, 'iconLeft'>):
|
|
16
|
+
declare function EditButton(props: Omit<ActionBtnProps, 'iconLeft' | 'tone'>): react_jsx_runtime6.JSX.Element;
|
|
17
|
+
declare function DeleteButton(props: Omit<ActionBtnProps, 'iconLeft'>): react_jsx_runtime6.JSX.Element;
|
|
18
|
+
declare function ViewButton(props: Omit<ActionBtnProps, 'iconLeft'>): react_jsx_runtime6.JSX.Element;
|
|
19
19
|
declare function ToggleButton(props: Omit<ActionBtnProps, 'iconLeft'> & {
|
|
20
20
|
active?: boolean;
|
|
21
|
-
}):
|
|
22
|
-
declare function ToggleLeftButton(props: Omit<ActionBtnProps, 'iconLeft'>):
|
|
23
|
-
declare function ToggleRightButton(props: Omit<ActionBtnProps, 'iconLeft'>):
|
|
21
|
+
}): react_jsx_runtime6.JSX.Element;
|
|
22
|
+
declare function ToggleLeftButton(props: Omit<ActionBtnProps, 'iconLeft'>): react_jsx_runtime6.JSX.Element;
|
|
23
|
+
declare function ToggleRightButton(props: Omit<ActionBtnProps, 'iconLeft'>): react_jsx_runtime6.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { DeleteButton, EditButton, ToggleButton, ToggleLeftButton, ToggleRightButton, ViewButton };
|
|
26
26
|
//# sourceMappingURL=ActionButtons.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button.js";
|
|
2
2
|
import { LinkProps } from "./Link.web.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/atoms/ButtonLink.d.ts
|
|
6
6
|
type ButtonLinkProps = Omit<ButtonProps, 'onClick'> & Pick<LinkProps, 'href' | 'target' | 'rel' | 'onClick'> & {
|
|
@@ -16,7 +16,7 @@ declare function ButtonLink({
|
|
|
16
16
|
children,
|
|
17
17
|
onClick,
|
|
18
18
|
...btn
|
|
19
|
-
}: ButtonLinkProps):
|
|
19
|
+
}: ButtonLinkProps): react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ButtonLink };
|
|
22
22
|
//# sourceMappingURL=ButtonLink.d.ts.map
|
|
@@ -19,7 +19,7 @@ declare const Cta: React.ForwardRefExoticComponent<Omit<_contractspec_lib_ui_kit
|
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
} & VariantProps<(props?: ({
|
|
21
21
|
size?: "sm" | "md" | "lg" | "touch" | null | undefined;
|
|
22
|
-
emphasis?: "
|
|
22
|
+
emphasis?: "strong" | "default" | "subtle" | null | undefined;
|
|
23
23
|
} & class_variance_authority_types0.ClassProp) | undefined) => string> & {
|
|
24
24
|
capture?: (cta: string) => void;
|
|
25
25
|
ctaName?: string;
|
|
@@ -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_runtime12 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -14,25 +14,25 @@ declare function DateChip({
|
|
|
14
14
|
...v
|
|
15
15
|
}: {
|
|
16
16
|
value?: string | Date | null;
|
|
17
|
-
} & ChipVariants):
|
|
17
|
+
} & ChipVariants): react_jsx_runtime12.JSX.Element | null;
|
|
18
18
|
declare function TimeChip({
|
|
19
19
|
value,
|
|
20
20
|
...v
|
|
21
21
|
}: {
|
|
22
22
|
value?: string | Date | null;
|
|
23
|
-
} & ChipVariants):
|
|
23
|
+
} & ChipVariants): react_jsx_runtime12.JSX.Element | null;
|
|
24
24
|
declare function PlaceChip({
|
|
25
25
|
label,
|
|
26
26
|
...v
|
|
27
27
|
}: {
|
|
28
28
|
label?: React.ReactNode;
|
|
29
|
-
} & ChipVariants):
|
|
29
|
+
} & ChipVariants): react_jsx_runtime12.JSX.Element | null;
|
|
30
30
|
declare function DurationChip({
|
|
31
31
|
minutes,
|
|
32
32
|
...v
|
|
33
33
|
}: {
|
|
34
34
|
minutes?: number | null;
|
|
35
|
-
} & ChipVariants):
|
|
35
|
+
} & ChipVariants): react_jsx_runtime12.JSX.Element | null;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { DateChip, DurationChip, PlaceChip, TimeChip };
|
|
38
38
|
//# sourceMappingURL=DataChips.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
import { EmptyStateProps } from "@contractspec/lib.ui-kit-web/ui/empty-state";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/EmptyState.d.ts
|
|
5
|
-
declare function EmptyState$1(props: EmptyStateProps):
|
|
5
|
+
declare function EmptyState$1(props: EmptyStateProps): react_jsx_runtime4.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { EmptyState$1 as EmptyState };
|
|
8
8
|
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -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 { KeyboardOptions } from "../../lib/keyboard.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { InputProps } from "@contractspec/lib.ui-kit-web/ui/input";
|
|
4
4
|
|
|
5
5
|
//#region src/components/atoms/Input.d.ts
|
|
@@ -30,7 +30,7 @@ declare function Input$1({
|
|
|
30
30
|
className,
|
|
31
31
|
keyboard,
|
|
32
32
|
...rest
|
|
33
|
-
}: InputProps$1):
|
|
33
|
+
}: InputProps$1): react_jsx_runtime2.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { Input$1 as Input };
|
|
36
36
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/Link.d.ts
|
|
5
5
|
type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
6
6
|
declare function Link({
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
|
-
}: LinkProps):
|
|
9
|
+
}: LinkProps): react_jsx_runtime1.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Link };
|
|
12
12
|
//# sourceMappingURL=Link.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,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
import { StepperProps } from "@contractspec/lib.ui-kit-web/ui/stepper";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/Stepper.d.ts
|
|
5
|
-
declare function Stepper$1(props: StepperProps):
|
|
5
|
+
declare function Stepper$1(props: StepperProps): react_jsx_runtime5.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Stepper$1 as Stepper };
|
|
8
8
|
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyboardOptions } from "../../lib/keyboard.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
import { TextareaProps } from "@contractspec/lib.ui-kit-web/ui/textarea";
|
|
4
4
|
|
|
5
5
|
//#region src/components/atoms/Textarea.d.ts
|
|
@@ -32,7 +32,7 @@ declare function Textarea$1({
|
|
|
32
32
|
rows,
|
|
33
33
|
keyboard,
|
|
34
34
|
...rest
|
|
35
|
-
}: TextareaProps$1):
|
|
35
|
+
}: TextareaProps$1): react_jsx_runtime3.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Textarea$1 as Textarea };
|
|
38
38
|
//# sourceMappingURL=Textarea.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,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@contractspec/lib.contracts/data-views";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-view/DataViewRenderer.d.ts
|
|
@@ -42,7 +42,7 @@ declare function DataViewRenderer({
|
|
|
42
42
|
onFilterChange,
|
|
43
43
|
pagination,
|
|
44
44
|
onPageChange
|
|
45
|
-
}: DataViewRendererProps):
|
|
45
|
+
}: DataViewRendererProps): react_jsx_runtime20.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { DataViewRenderer };
|
|
48
48
|
//# sourceMappingURL=DataViewRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataViewRenderer.d.ts","names":[],"sources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AAA,aAAA;EAAA,QAAA;EAAA,UAAA;EAAA,aAAA;EAAA,UAAA;EAAA,MAAA;EAAA,MAAA;EAAA,cAAA;EAAA,OAAA;EAAA,cAAA;EAAA,UAAA;EAAA;AAAA,CAAA,EAYC,qBAZD,CAAA,EAYsB,mBAAA,CAAA,GAAA,CAAA,OAZtB"}
|
|
@@ -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,o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AE5D,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
|