@contractspec/lib.design-system 1.61.0 → 2.0.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/browser/index.js +72 -74
- package/dist/components/agent/AgentMonitor.d.ts +0 -1
- package/dist/components/agent/ApprovalQueue.d.ts +0 -1
- package/dist/components/atoms/ActionButtons.d.ts +0 -1
- package/dist/components/atoms/Button.d.ts +0 -1
- package/dist/components/atoms/Button.mobile.d.ts +0 -1
- package/dist/components/atoms/ButtonLink.d.ts +0 -1
- package/dist/components/atoms/ButtonLink.mobile.d.ts +0 -1
- package/dist/components/atoms/Cta.d.ts +2 -23
- package/dist/components/atoms/Cta.mobile.d.ts +5 -20
- package/dist/components/atoms/DataChips.d.ts +0 -1
- package/dist/components/atoms/EmptyState.d.ts +0 -1
- package/dist/components/atoms/ErrorState.d.ts +0 -1
- package/dist/components/atoms/ErrorState.mobile.d.ts +0 -1
- package/dist/components/atoms/Input.d.ts +0 -1
- package/dist/components/atoms/Input.mobile.d.ts +0 -1
- package/dist/components/atoms/Link.d.ts +0 -1
- package/dist/components/atoms/Link.native.d.ts +0 -1
- package/dist/components/atoms/Link.web.d.ts +0 -1
- package/dist/components/atoms/LoaderCircular.d.ts +0 -1
- package/dist/components/atoms/LoaderCircular.mobile.d.ts +0 -1
- package/dist/components/atoms/NavBrand.d.ts +0 -1
- package/dist/components/atoms/Stepper.d.ts +0 -1
- package/dist/components/atoms/Textarea.d.ts +0 -1
- package/dist/components/atoms/Textarea.mobile.d.ts +0 -1
- package/dist/components/data-view/DataViewDetail.d.ts +1 -2
- package/dist/components/data-view/DataViewList.d.ts +1 -2
- package/dist/components/data-view/DataViewRenderer.d.ts +1 -2
- package/dist/components/data-view/DataViewTable.d.ts +1 -2
- package/dist/components/data-view/utils.d.ts +1 -2
- package/dist/components/forms/ActionForm.d.ts +0 -1
- package/dist/components/forms/FormCardLayout.d.ts +0 -1
- package/dist/components/forms/FormDialog.d.ts +0 -1
- package/dist/components/forms/FormLayout.d.ts +0 -1
- package/dist/components/forms/FormOneByOneLayout.d.ts +0 -1
- package/dist/components/forms/FormStepsLayout.d.ts +0 -1
- package/dist/components/forms/ZodForm.d.ts +0 -1
- package/dist/components/legal/atoms/DefinitionList.d.ts +0 -1
- package/dist/components/legal/atoms/KeyValueList.d.ts +0 -1
- package/dist/components/legal/atoms/LegalCallout.d.ts +0 -1
- package/dist/components/legal/atoms/LegalHeading.d.ts +0 -1
- package/dist/components/legal/atoms/LegalList.d.ts +0 -1
- package/dist/components/legal/atoms/LegalSection.d.ts +0 -1
- package/dist/components/legal/atoms/LegalText.d.ts +0 -1
- package/dist/components/legal/molecules/Consent.d.ts +0 -1
- package/dist/components/legal/molecules/ContactFields.d.ts +0 -1
- package/dist/components/legal/molecules/LegalMeta.d.ts +0 -1
- package/dist/components/legal/molecules/LegalTOC.d.ts +0 -1
- package/dist/components/legal/organisms/ContactForm.d.ts +0 -1
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +0 -1
- package/dist/components/legal/organisms/GDPRRights.d.ts +0 -1
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +0 -1
- package/dist/components/legal/templates/ContactTemplate.d.ts +0 -1
- package/dist/components/legal/templates/CookiesTemplate.d.ts +0 -1
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +0 -1
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +0 -1
- package/dist/components/legal/templates/TermsTemplate.d.ts +0 -1
- package/dist/components/marketing/MarketingCard.d.ts +0 -1
- package/dist/components/marketing/MarketingCardsSection.d.ts +0 -1
- package/dist/components/marketing/MarketingComparisonSection.d.ts +0 -1
- package/dist/components/marketing/MarketingIconCard.d.ts +0 -1
- package/dist/components/marketing/MarketingSection.d.ts +0 -1
- package/dist/components/marketing/MarketingStepCard.d.ts +0 -1
- package/dist/components/molecules/AiLinkButton.d.ts +0 -1
- package/dist/components/molecules/Breadcrumbs.d.ts +0 -1
- package/dist/components/molecules/CodeBlock/CodeBlock.d.ts +0 -1
- package/dist/components/molecules/CodeBlock/index.d.ts +0 -1
- package/dist/components/molecules/CodeBlock/types.d.ts +0 -1
- package/dist/components/molecules/CommandPalette.d.ts +0 -1
- package/dist/components/molecules/CommandSearchTrigger.d.ts +0 -1
- package/dist/components/molecules/CommandTabs/CommandTabs.d.ts +0 -1
- package/dist/components/molecules/CommandTabs/index.d.ts +0 -1
- package/dist/components/molecules/CommandTabs/types.d.ts +0 -1
- package/dist/components/molecules/CopyButton/CopyButton.d.ts +0 -1
- package/dist/components/molecules/CopyButton/index.d.ts +0 -1
- package/dist/components/molecules/CopyButton/types.d.ts +0 -1
- package/dist/components/molecules/DropdownMenu.d.ts +0 -1
- package/dist/components/molecules/EntityCard.d.ts +0 -1
- package/dist/components/molecules/FiltersToolbar.d.ts +0 -1
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts +0 -1
- package/dist/components/molecules/HoverPreview.d.ts +0 -1
- package/dist/components/molecules/InstallCommand/InstallCommand.d.ts +1 -2
- package/dist/components/molecules/InstallCommand/index.d.ts +0 -1
- package/dist/components/molecules/InstallCommand/types.d.ts +0 -1
- package/dist/components/molecules/LangSwitch.d.ts +0 -1
- package/dist/components/molecules/LangSwitchDropdown.d.ts +0 -1
- package/dist/components/molecules/LoaderBlock.d.ts +0 -1
- package/dist/components/molecules/LoaderBlock.mobile.d.ts +0 -1
- package/dist/components/molecules/MobileNavMenu.d.ts +0 -1
- package/dist/components/molecules/NavItemCard.d.ts +0 -1
- package/dist/components/molecules/NavMain.d.ts +0 -1
- package/dist/components/molecules/NavUser.d.ts +0 -1
- package/dist/components/molecules/OverviewCard.d.ts +0 -1
- package/dist/components/molecules/SkeletonBlock/index.d.ts +0 -1
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +0 -1
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +0 -1
- package/dist/components/molecules/SkeletonBlock/types.d.ts +0 -1
- package/dist/components/molecules/SkeletonCircle/index.d.ts +0 -1
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +0 -1
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +0 -1
- package/dist/components/molecules/SkeletonCircle/types.d.ts +0 -1
- package/dist/components/molecules/SkeletonList/index.d.ts +0 -1
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts +0 -1
- package/dist/components/molecules/SkeletonList/index.web.d.ts +0 -1
- package/dist/components/molecules/SkeletonList/types.d.ts +0 -1
- package/dist/components/molecules/StatCard.d.ts +0 -1
- package/dist/components/molecules/StatusChip.d.ts +0 -1
- package/dist/components/molecules/hover-previews/Doc.d.ts +0 -1
- package/dist/components/molecules/hover-previews/Media.d.ts +0 -1
- package/dist/components/molecules/hover-previews/Simple.d.ts +0 -1
- package/dist/components/molecules/hover-previews/Stats.d.ts +0 -1
- package/dist/components/molecules/hover-previews/User.d.ts +0 -1
- package/dist/components/native/BottomTabs.mobile.d.ts +0 -1
- package/dist/components/native/FlatListScreen.mobile.d.ts +0 -1
- package/dist/components/native/SheetMenu.mobile.d.ts +0 -1
- package/dist/components/organisms/AcademyLayout.d.ts +0 -1
- package/dist/components/organisms/AppHeader.d.ts +0 -1
- package/dist/components/organisms/AppHeader.mobile.d.ts +0 -1
- package/dist/components/organisms/AppLayout.d.ts +0 -1
- package/dist/components/organisms/AppSidebar.d.ts +0 -1
- package/dist/components/organisms/AppSidebar.mobile.d.ts +0 -1
- package/dist/components/organisms/EmptyDataList.d.ts +0 -1
- package/dist/components/organisms/EmptyDataList.mobile.d.ts +0 -1
- package/dist/components/organisms/EmptyDataList.types.d.ts +0 -1
- package/dist/components/organisms/EmptySearchResult.d.ts +0 -1
- package/dist/components/organisms/FAQSection.d.ts +0 -1
- package/dist/components/organisms/FeatureCarousel.d.ts +0 -1
- package/dist/components/organisms/FeaturesSection.d.ts +0 -1
- package/dist/components/organisms/Footer.d.ts +0 -1
- package/dist/components/organisms/GridLayout.d.ts +0 -1
- package/dist/components/organisms/Header.d.ts +0 -1
- package/dist/components/organisms/Header.mobile.d.ts +0 -1
- package/dist/components/organisms/HeroResponsive.d.ts +0 -1
- package/dist/components/organisms/HeroSection.d.ts +0 -1
- package/dist/components/organisms/ListCardPage.d.ts +0 -1
- package/dist/components/organisms/ListGridPage.d.ts +0 -1
- package/dist/components/organisms/ListPageResponsive.d.ts +0 -1
- package/dist/components/organisms/ListTablePage.d.ts +0 -1
- package/dist/components/organisms/MarketingHeader.d.ts +0 -1
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +0 -1
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +0 -1
- package/dist/components/organisms/MarketingLayout.d.ts +0 -1
- package/dist/components/organisms/PageHeaderResponsive.d.ts +0 -1
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +0 -1
- package/dist/components/organisms/PricingCarousel.d.ts +0 -1
- package/dist/components/organisms/PricingSection.d.ts +0 -1
- package/dist/components/organisms/TestimonialCarousel.d.ts +0 -1
- package/dist/components/providers/PackageManagerProvider.d.ts +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.d.ts +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +0 -1
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts +0 -1
- package/dist/hooks/useListUrlState.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +72 -74
- package/dist/lib/keyboard.d.ts +0 -1
- package/dist/lib/utils.d.ts +0 -1
- package/dist/platform/useColorScheme.d.ts +0 -1
- package/dist/platform/useColorScheme.mobile.d.ts +0 -1
- package/dist/platform/useReducedMotion.d.ts +0 -1
- package/dist/platform/useReducedMotion.mobile.d.ts +0 -1
- package/dist/platform/useResponsive.d.ts +0 -1
- package/dist/platform/useResponsive.mobile.d.ts +0 -1
- package/dist/platform/withPlatformUI.d.ts +0 -1
- package/dist/renderers/form-contract.d.ts +1 -2
- package/dist/renderers/index.d.ts +0 -1
- package/dist/theme/tokenBridge.d.ts +0 -1
- package/dist/theme/tokens.d.ts +0 -1
- package/dist/theme/variants.d.ts +0 -1
- package/dist/types/navigation.d.ts +0 -1
- package/package.json +11 -10
- package/dist/components/agent/AgentMonitor.d.ts.map +0 -1
- package/dist/components/agent/ApprovalQueue.d.ts.map +0 -1
- package/dist/components/atoms/ActionButtons.d.ts.map +0 -1
- package/dist/components/atoms/Button.d.ts.map +0 -1
- package/dist/components/atoms/Button.mobile.d.ts.map +0 -1
- package/dist/components/atoms/ButtonLink.d.ts.map +0 -1
- package/dist/components/atoms/ButtonLink.mobile.d.ts.map +0 -1
- package/dist/components/atoms/Cta.d.ts.map +0 -1
- package/dist/components/atoms/Cta.mobile.d.ts.map +0 -1
- package/dist/components/atoms/DataChips.d.ts.map +0 -1
- package/dist/components/atoms/EmptyState.d.ts.map +0 -1
- package/dist/components/atoms/ErrorState.d.ts.map +0 -1
- package/dist/components/atoms/ErrorState.mobile.d.ts.map +0 -1
- package/dist/components/atoms/Input.d.ts.map +0 -1
- package/dist/components/atoms/Input.mobile.d.ts.map +0 -1
- package/dist/components/atoms/Link.d.ts.map +0 -1
- package/dist/components/atoms/Link.native.d.ts.map +0 -1
- package/dist/components/atoms/Link.web.d.ts.map +0 -1
- package/dist/components/atoms/LoaderCircular.d.ts.map +0 -1
- package/dist/components/atoms/LoaderCircular.mobile.d.ts.map +0 -1
- package/dist/components/atoms/NavBrand.d.ts.map +0 -1
- package/dist/components/atoms/Stepper.d.ts.map +0 -1
- package/dist/components/atoms/Textarea.d.ts.map +0 -1
- package/dist/components/atoms/Textarea.mobile.d.ts.map +0 -1
- package/dist/components/data-view/DataViewDetail.d.ts.map +0 -1
- package/dist/components/data-view/DataViewList.d.ts.map +0 -1
- package/dist/components/data-view/DataViewRenderer.d.ts.map +0 -1
- package/dist/components/data-view/DataViewTable.d.ts.map +0 -1
- package/dist/components/data-view/utils.d.ts.map +0 -1
- package/dist/components/forms/ActionForm.d.ts.map +0 -1
- package/dist/components/forms/FormCardLayout.d.ts.map +0 -1
- package/dist/components/forms/FormDialog.d.ts.map +0 -1
- package/dist/components/forms/FormLayout.d.ts.map +0 -1
- package/dist/components/forms/FormOneByOneLayout.d.ts.map +0 -1
- package/dist/components/forms/FormStepsLayout.d.ts.map +0 -1
- package/dist/components/forms/ZodForm.d.ts.map +0 -1
- package/dist/components/legal/atoms/DefinitionList.d.ts.map +0 -1
- package/dist/components/legal/atoms/KeyValueList.d.ts.map +0 -1
- package/dist/components/legal/atoms/LegalCallout.d.ts.map +0 -1
- package/dist/components/legal/atoms/LegalHeading.d.ts.map +0 -1
- package/dist/components/legal/atoms/LegalList.d.ts.map +0 -1
- package/dist/components/legal/atoms/LegalSection.d.ts.map +0 -1
- package/dist/components/legal/atoms/LegalText.d.ts.map +0 -1
- package/dist/components/legal/molecules/Consent.d.ts.map +0 -1
- package/dist/components/legal/molecules/ContactFields.d.ts.map +0 -1
- package/dist/components/legal/molecules/LegalMeta.d.ts.map +0 -1
- package/dist/components/legal/molecules/LegalTOC.d.ts.map +0 -1
- package/dist/components/legal/organisms/ContactForm.d.ts.map +0 -1
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts.map +0 -1
- package/dist/components/legal/organisms/GDPRRights.d.ts.map +0 -1
- package/dist/components/legal/organisms/LegalPageLayout.d.ts.map +0 -1
- package/dist/components/legal/templates/ContactTemplate.d.ts.map +0 -1
- package/dist/components/legal/templates/CookiesTemplate.d.ts.map +0 -1
- package/dist/components/legal/templates/PrivacyTemplate.d.ts.map +0 -1
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts.map +0 -1
- package/dist/components/legal/templates/TermsTemplate.d.ts.map +0 -1
- package/dist/components/marketing/MarketingCard.d.ts.map +0 -1
- package/dist/components/marketing/MarketingCardsSection.d.ts.map +0 -1
- package/dist/components/marketing/MarketingComparisonSection.d.ts.map +0 -1
- package/dist/components/marketing/MarketingIconCard.d.ts.map +0 -1
- package/dist/components/marketing/MarketingSection.d.ts.map +0 -1
- package/dist/components/marketing/MarketingStepCard.d.ts.map +0 -1
- package/dist/components/molecules/AiLinkButton.d.ts.map +0 -1
- package/dist/components/molecules/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/molecules/CodeBlock/CodeBlock.d.ts.map +0 -1
- package/dist/components/molecules/CodeBlock/index.d.ts.map +0 -1
- package/dist/components/molecules/CodeBlock/types.d.ts.map +0 -1
- package/dist/components/molecules/CommandPalette.d.ts.map +0 -1
- package/dist/components/molecules/CommandSearchTrigger.d.ts.map +0 -1
- package/dist/components/molecules/CommandTabs/CommandTabs.d.ts.map +0 -1
- package/dist/components/molecules/CommandTabs/index.d.ts.map +0 -1
- package/dist/components/molecules/CommandTabs/types.d.ts.map +0 -1
- package/dist/components/molecules/CopyButton/CopyButton.d.ts.map +0 -1
- package/dist/components/molecules/CopyButton/index.d.ts.map +0 -1
- package/dist/components/molecules/CopyButton/types.d.ts.map +0 -1
- package/dist/components/molecules/DropdownMenu.d.ts.map +0 -1
- package/dist/components/molecules/EntityCard.d.ts.map +0 -1
- package/dist/components/molecules/FiltersToolbar.d.ts.map +0 -1
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts.map +0 -1
- package/dist/components/molecules/HoverPreview.d.ts.map +0 -1
- package/dist/components/molecules/InstallCommand/InstallCommand.d.ts.map +0 -1
- package/dist/components/molecules/InstallCommand/index.d.ts.map +0 -1
- package/dist/components/molecules/InstallCommand/types.d.ts.map +0 -1
- package/dist/components/molecules/LangSwitch.d.ts.map +0 -1
- package/dist/components/molecules/LangSwitchDropdown.d.ts.map +0 -1
- package/dist/components/molecules/LoaderBlock.d.ts.map +0 -1
- package/dist/components/molecules/LoaderBlock.mobile.d.ts.map +0 -1
- package/dist/components/molecules/MobileNavMenu.d.ts.map +0 -1
- package/dist/components/molecules/NavItemCard.d.ts.map +0 -1
- package/dist/components/molecules/NavMain.d.ts.map +0 -1
- package/dist/components/molecules/NavUser.d.ts.map +0 -1
- package/dist/components/molecules/OverviewCard.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonBlock/index.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonBlock/types.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonCircle/index.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonCircle/types.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonList/index.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonList/index.web.d.ts.map +0 -1
- package/dist/components/molecules/SkeletonList/types.d.ts.map +0 -1
- package/dist/components/molecules/StatCard.d.ts.map +0 -1
- package/dist/components/molecules/StatusChip.d.ts.map +0 -1
- package/dist/components/molecules/hover-previews/Doc.d.ts.map +0 -1
- package/dist/components/molecules/hover-previews/Media.d.ts.map +0 -1
- package/dist/components/molecules/hover-previews/Simple.d.ts.map +0 -1
- package/dist/components/molecules/hover-previews/Stats.d.ts.map +0 -1
- package/dist/components/molecules/hover-previews/User.d.ts.map +0 -1
- package/dist/components/native/BottomTabs.mobile.d.ts.map +0 -1
- package/dist/components/native/FlatListScreen.mobile.d.ts.map +0 -1
- package/dist/components/native/SheetMenu.mobile.d.ts.map +0 -1
- package/dist/components/organisms/AcademyLayout.d.ts.map +0 -1
- package/dist/components/organisms/AppHeader.d.ts.map +0 -1
- package/dist/components/organisms/AppHeader.mobile.d.ts.map +0 -1
- package/dist/components/organisms/AppLayout.d.ts.map +0 -1
- package/dist/components/organisms/AppSidebar.d.ts.map +0 -1
- package/dist/components/organisms/AppSidebar.mobile.d.ts.map +0 -1
- package/dist/components/organisms/EmptyDataList.d.ts.map +0 -1
- package/dist/components/organisms/EmptyDataList.mobile.d.ts.map +0 -1
- package/dist/components/organisms/EmptyDataList.types.d.ts.map +0 -1
- package/dist/components/organisms/EmptySearchResult.d.ts.map +0 -1
- package/dist/components/organisms/FAQSection.d.ts.map +0 -1
- package/dist/components/organisms/FeatureCarousel.d.ts.map +0 -1
- package/dist/components/organisms/FeaturesSection.d.ts.map +0 -1
- package/dist/components/organisms/Footer.d.ts.map +0 -1
- package/dist/components/organisms/GridLayout.d.ts.map +0 -1
- package/dist/components/organisms/Header.d.ts.map +0 -1
- package/dist/components/organisms/Header.mobile.d.ts.map +0 -1
- package/dist/components/organisms/HeroResponsive.d.ts.map +0 -1
- package/dist/components/organisms/HeroSection.d.ts.map +0 -1
- package/dist/components/organisms/ListCardPage.d.ts.map +0 -1
- package/dist/components/organisms/ListGridPage.d.ts.map +0 -1
- package/dist/components/organisms/ListPageResponsive.d.ts.map +0 -1
- package/dist/components/organisms/ListTablePage.d.ts.map +0 -1
- package/dist/components/organisms/MarketingHeader.d.ts.map +0 -1
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts.map +0 -1
- package/dist/components/organisms/MarketingHeaderMobile.d.ts.map +0 -1
- package/dist/components/organisms/MarketingLayout.d.ts.map +0 -1
- package/dist/components/organisms/PageHeaderResponsive.d.ts.map +0 -1
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts.map +0 -1
- package/dist/components/organisms/PricingCarousel.d.ts.map +0 -1
- package/dist/components/organisms/PricingSection.d.ts.map +0 -1
- package/dist/components/organisms/TestimonialCarousel.d.ts.map +0 -1
- package/dist/components/providers/PackageManagerProvider.d.ts.map +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.d.ts.map +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts.map +0 -1
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts.map +0 -1
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts.map +0 -1
- package/dist/hooks/useListUrlState.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/keyboard.d.ts.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/platform/useColorScheme.d.ts.map +0 -1
- package/dist/platform/useColorScheme.mobile.d.ts.map +0 -1
- package/dist/platform/useReducedMotion.d.ts.map +0 -1
- package/dist/platform/useReducedMotion.mobile.d.ts.map +0 -1
- package/dist/platform/useResponsive.d.ts.map +0 -1
- package/dist/platform/useResponsive.mobile.d.ts.map +0 -1
- package/dist/platform/withPlatformUI.d.ts.map +0 -1
- package/dist/renderers/form-contract.d.ts.map +0 -1
- package/dist/renderers/index.d.ts.map +0 -1
- package/dist/theme/tokenBridge.d.ts.map +0 -1
- package/dist/theme/tokens.d.ts.map +0 -1
- package/dist/theme/variants.d.ts.map +0 -1
- package/dist/types/navigation.d.ts.map +0 -1
package/dist/browser/index.js
CHANGED
|
@@ -71,8 +71,8 @@ var init_HoverPreview = __esm(() => {
|
|
|
71
71
|
"use client";
|
|
72
72
|
});
|
|
73
73
|
// src/renderers/form-contract.tsx
|
|
74
|
-
import { createFormRenderer } from "@contractspec/lib.contracts
|
|
75
|
-
import { shadcnDriver } from "@contractspec/lib.contracts
|
|
74
|
+
import { createFormRenderer } from "@contractspec/lib.contracts-runtime-client-react/form-render";
|
|
75
|
+
import { shadcnDriver } from "@contractspec/lib.contracts-runtime-client-react/drivers/shadcn";
|
|
76
76
|
import {
|
|
77
77
|
Field as FieldWrap,
|
|
78
78
|
FieldDescription,
|
|
@@ -527,7 +527,6 @@ var formRenderer = createFormRenderer({
|
|
|
527
527
|
})
|
|
528
528
|
});
|
|
529
529
|
// src/components/atoms/Cta.tsx
|
|
530
|
-
import * as React3 from "react";
|
|
531
530
|
import { cva } from "class-variance-authority";
|
|
532
531
|
|
|
533
532
|
// src/components/atoms/ButtonLink.tsx
|
|
@@ -591,7 +590,7 @@ var _ctaVariants = cva("", {
|
|
|
591
590
|
},
|
|
592
591
|
defaultVariants: { size: "touch", emphasis: "default" }
|
|
593
592
|
});
|
|
594
|
-
|
|
593
|
+
function Cta({
|
|
595
594
|
capture,
|
|
596
595
|
ctaName,
|
|
597
596
|
as = "button",
|
|
@@ -601,7 +600,7 @@ var Cta = React3.forwardRef(({
|
|
|
601
600
|
emphasis = "default",
|
|
602
601
|
children,
|
|
603
602
|
...props
|
|
604
|
-
}
|
|
603
|
+
}) {
|
|
605
604
|
const handleClick = (e) => {
|
|
606
605
|
if (ctaName) {
|
|
607
606
|
try {
|
|
@@ -630,8 +629,7 @@ var Cta = React3.forwardRef(({
|
|
|
630
629
|
...props,
|
|
631
630
|
children
|
|
632
631
|
}, undefined, false, undefined, this);
|
|
633
|
-
}
|
|
634
|
-
Cta.displayName = "Cta";
|
|
632
|
+
}
|
|
635
633
|
// src/components/atoms/Link.tsx
|
|
636
634
|
import { jsxDEV as jsxDEV8 } from "react/jsx-dev-runtime";
|
|
637
635
|
function Link2({ children, ...props }) {
|
|
@@ -1973,7 +1971,7 @@ function FeatureCarousel({
|
|
|
1973
1971
|
}, undefined, false, undefined, this);
|
|
1974
1972
|
}
|
|
1975
1973
|
// src/components/organisms/MarketingHeader.tsx
|
|
1976
|
-
import * as
|
|
1974
|
+
import * as React6 from "react";
|
|
1977
1975
|
import { cn as cn10 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
1978
1976
|
import {
|
|
1979
1977
|
NavigationMenu as Nav2,
|
|
@@ -2075,12 +2073,12 @@ function MobileNavMenu({
|
|
|
2075
2073
|
}
|
|
2076
2074
|
|
|
2077
2075
|
// src/components/molecules/CommandSearchTrigger.tsx
|
|
2078
|
-
import * as
|
|
2076
|
+
import * as React4 from "react";
|
|
2079
2077
|
import { SearchIcon } from "lucide-react";
|
|
2080
2078
|
import { cn as cn9 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
2081
2079
|
|
|
2082
2080
|
// src/components/molecules/CommandPalette.tsx
|
|
2083
|
-
import * as
|
|
2081
|
+
import * as React3 from "react";
|
|
2084
2082
|
import {
|
|
2085
2083
|
CommandDialog,
|
|
2086
2084
|
CommandEmpty,
|
|
@@ -2099,11 +2097,11 @@ function CommandPalette({
|
|
|
2099
2097
|
groups,
|
|
2100
2098
|
placeholder = "Type a command or search…"
|
|
2101
2099
|
}) {
|
|
2102
|
-
const [internalOpen, setInternalOpen] =
|
|
2100
|
+
const [internalOpen, setInternalOpen] = React3.useState(false);
|
|
2103
2101
|
const isControlled = typeof open === "boolean";
|
|
2104
2102
|
const visible = isControlled ? open : internalOpen;
|
|
2105
2103
|
const setVisible = isControlled && onOpenChange ? onOpenChange : setInternalOpen;
|
|
2106
|
-
|
|
2104
|
+
React3.useEffect(() => {
|
|
2107
2105
|
const handler = (e) => {
|
|
2108
2106
|
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {
|
|
2109
2107
|
e.preventDefault();
|
|
@@ -2155,8 +2153,8 @@ function CommandSearchTrigger({
|
|
|
2155
2153
|
placeholder = "Search…",
|
|
2156
2154
|
compact = false
|
|
2157
2155
|
}) {
|
|
2158
|
-
const [open, setOpen] =
|
|
2159
|
-
|
|
2156
|
+
const [open, setOpen] = React4.useState(false);
|
|
2157
|
+
React4.useEffect(() => {
|
|
2160
2158
|
const handler = (e) => {
|
|
2161
2159
|
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {
|
|
2162
2160
|
e.preventDefault();
|
|
@@ -2200,7 +2198,7 @@ function CommandSearchTrigger({
|
|
|
2200
2198
|
}
|
|
2201
2199
|
|
|
2202
2200
|
// src/components/molecules/LangSwitchDropdown.tsx
|
|
2203
|
-
import * as
|
|
2201
|
+
import * as React5 from "react";
|
|
2204
2202
|
import { Globe } from "lucide-react";
|
|
2205
2203
|
import {
|
|
2206
2204
|
DropdownMenu as DropdownMenu2,
|
|
@@ -2215,7 +2213,7 @@ function LangSwitchDropdown({
|
|
|
2215
2213
|
onChange,
|
|
2216
2214
|
className
|
|
2217
2215
|
}) {
|
|
2218
|
-
const [open, setOpen] =
|
|
2216
|
+
const [open, setOpen] = React5.useState(false);
|
|
2219
2217
|
const current = options.find((o) => o.code === value);
|
|
2220
2218
|
return /* @__PURE__ */ jsxDEV30(DropdownMenu2, {
|
|
2221
2219
|
open,
|
|
@@ -2278,7 +2276,7 @@ function MarketingHeader({
|
|
|
2278
2276
|
commandPaletteGroups,
|
|
2279
2277
|
langSwitchProps
|
|
2280
2278
|
}) {
|
|
2281
|
-
const [open, setOpen] =
|
|
2279
|
+
const [open, setOpen] = React6.useState(false);
|
|
2282
2280
|
return /* @__PURE__ */ jsxDEV31(HStack2, {
|
|
2283
2281
|
as: "header",
|
|
2284
2282
|
className: cn10("bg-background/95 supports-backdrop-filter:bg-background/60 sticky top-0 z-50 w-full border-b backdrop-blur-xs", className),
|
|
@@ -2505,7 +2503,7 @@ function MarketingHeaderDesktop({
|
|
|
2505
2503
|
}, undefined, false, undefined, this);
|
|
2506
2504
|
}
|
|
2507
2505
|
// src/components/organisms/MarketingHeaderMobile.tsx
|
|
2508
|
-
import * as
|
|
2506
|
+
import * as React7 from "react";
|
|
2509
2507
|
import { cn as cn12 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
2510
2508
|
import {
|
|
2511
2509
|
Sheet as Sheet3,
|
|
@@ -2526,7 +2524,7 @@ function MarketingHeaderMobile({
|
|
|
2526
2524
|
className,
|
|
2527
2525
|
right
|
|
2528
2526
|
}) {
|
|
2529
|
-
const [open, setOpen] =
|
|
2527
|
+
const [open, setOpen] = React7.useState(false);
|
|
2530
2528
|
return /* @__PURE__ */ jsxDEV33("div", {
|
|
2531
2529
|
className: cn12("bg-background/95 supports-backdrop-filter:bg-background/60 w-full border-b backdrop-blur-xs md:hidden", className),
|
|
2532
2530
|
children: /* @__PURE__ */ jsxDEV33("div", {
|
|
@@ -2945,7 +2943,7 @@ function MarketingComparisonSection({
|
|
|
2945
2943
|
}, undefined, false, undefined, this);
|
|
2946
2944
|
}
|
|
2947
2945
|
// src/components/organisms/AppLayout.tsx
|
|
2948
|
-
import * as
|
|
2946
|
+
import * as React8 from "react";
|
|
2949
2947
|
import { cn as cn17 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
2950
2948
|
import { Separator as Separator4 } from "@contractspec/lib.ui-kit-web/ui/separator";
|
|
2951
2949
|
import {
|
|
@@ -2990,7 +2988,7 @@ function AppLayout({
|
|
|
2990
2988
|
className: "mb-2",
|
|
2991
2989
|
children: /* @__PURE__ */ jsxDEV41(Breadcrumb, {
|
|
2992
2990
|
children: /* @__PURE__ */ jsxDEV41(BreadcrumbList, {
|
|
2993
|
-
children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxDEV41(
|
|
2991
|
+
children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxDEV41(React8.Fragment, {
|
|
2994
2992
|
children: [
|
|
2995
2993
|
/* @__PURE__ */ jsxDEV41(BreadcrumbItem, {
|
|
2996
2994
|
children: it.href ? /* @__PURE__ */ jsxDEV41(BreadcrumbLink, {
|
|
@@ -3023,7 +3021,7 @@ function AppLayout({
|
|
|
3023
3021
|
}, undefined, true, undefined, this);
|
|
3024
3022
|
}
|
|
3025
3023
|
// src/components/organisms/AcademyLayout.tsx
|
|
3026
|
-
import * as
|
|
3024
|
+
import * as React9 from "react";
|
|
3027
3025
|
import { cn as cn18 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
3028
3026
|
import {
|
|
3029
3027
|
Breadcrumb as Breadcrumb2,
|
|
@@ -3062,7 +3060,7 @@ function AcademyLayout({
|
|
|
3062
3060
|
className: "mb-4",
|
|
3063
3061
|
children: /* @__PURE__ */ jsxDEV42(Breadcrumb2, {
|
|
3064
3062
|
children: /* @__PURE__ */ jsxDEV42(BreadcrumbList2, {
|
|
3065
|
-
children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxDEV42(
|
|
3063
|
+
children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxDEV42(React9.Fragment, {
|
|
3066
3064
|
children: [
|
|
3067
3065
|
/* @__PURE__ */ jsxDEV42(BreadcrumbItem2, {
|
|
3068
3066
|
children: it.href ? /* @__PURE__ */ jsxDEV42(BreadcrumbLink2, {
|
|
@@ -3182,7 +3180,7 @@ function NavBrand({
|
|
|
3182
3180
|
}, undefined, false, undefined, this) : content;
|
|
3183
3181
|
}
|
|
3184
3182
|
// src/components/molecules/Breadcrumbs.tsx
|
|
3185
|
-
import * as
|
|
3183
|
+
import * as React10 from "react";
|
|
3186
3184
|
import {
|
|
3187
3185
|
Breadcrumb as Root,
|
|
3188
3186
|
BreadcrumbItem as BreadcrumbItem3,
|
|
@@ -3198,7 +3196,7 @@ function Breadcrumbs({ items }) {
|
|
|
3198
3196
|
return null;
|
|
3199
3197
|
return /* @__PURE__ */ jsxDEV46(Root, {
|
|
3200
3198
|
children: /* @__PURE__ */ jsxDEV46(BreadcrumbList3, {
|
|
3201
|
-
children: items.map((it, idx) => /* @__PURE__ */ jsxDEV46(
|
|
3199
|
+
children: items.map((it, idx) => /* @__PURE__ */ jsxDEV46(React10.Fragment, {
|
|
3202
3200
|
children: [
|
|
3203
3201
|
/* @__PURE__ */ jsxDEV46(BreadcrumbItem3, {
|
|
3204
3202
|
children: it.href ? /* @__PURE__ */ jsxDEV46(BreadcrumbLink3, {
|
|
@@ -3268,7 +3266,7 @@ function StatusChip({
|
|
|
3268
3266
|
}
|
|
3269
3267
|
}
|
|
3270
3268
|
// src/components/molecules/EntityCard.tsx
|
|
3271
|
-
import * as
|
|
3269
|
+
import * as React11 from "react";
|
|
3272
3270
|
import { Card as Card5, CardContent as CardContent5 } from "@contractspec/lib.ui-kit-web/ui/card";
|
|
3273
3271
|
import { cva as cva13 } from "class-variance-authority";
|
|
3274
3272
|
import { cn as cn22 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
@@ -3337,7 +3335,7 @@ function EntityCard({
|
|
|
3337
3335
|
onClick,
|
|
3338
3336
|
...cardProps
|
|
3339
3337
|
}) {
|
|
3340
|
-
const [isExpanded, setIsExpanded] =
|
|
3338
|
+
const [isExpanded, setIsExpanded] = React11.useState(defaultExpanded);
|
|
3341
3339
|
const Wrapper = href ? "a" : "div";
|
|
3342
3340
|
const isInteractive = interactive ?? !!(onClick || href);
|
|
3343
3341
|
const handleExpandClick = (e) => {
|
|
@@ -3983,13 +3981,13 @@ function HeroSection({
|
|
|
3983
3981
|
}, undefined, false, undefined, this);
|
|
3984
3982
|
}
|
|
3985
3983
|
// src/platform/useResponsive.ts
|
|
3986
|
-
import * as
|
|
3984
|
+
import * as React12 from "react";
|
|
3987
3985
|
"use client";
|
|
3988
3986
|
var DEFAULT = { sm: 640, md: 768, lg: 1024, xl: 1280 };
|
|
3989
3987
|
function useResponsive(custom) {
|
|
3990
|
-
const bp =
|
|
3991
|
-
const [width, setWidth] =
|
|
3992
|
-
|
|
3988
|
+
const bp = React12.useMemo(() => ({ ...DEFAULT, ...custom }), [custom]);
|
|
3989
|
+
const [width, setWidth] = React12.useState(typeof window !== "undefined" ? window.innerWidth : bp.md);
|
|
3990
|
+
React12.useEffect(() => {
|
|
3993
3991
|
if (typeof window === "undefined")
|
|
3994
3992
|
return;
|
|
3995
3993
|
const onResize = () => setWidth(window.innerWidth);
|
|
@@ -4133,7 +4131,7 @@ function PricingSection({
|
|
|
4133
4131
|
}, undefined, false, undefined, this);
|
|
4134
4132
|
}
|
|
4135
4133
|
// src/components/organisms/FAQSection.tsx
|
|
4136
|
-
import * as
|
|
4134
|
+
import * as React13 from "react";
|
|
4137
4135
|
import { VStack as VStack10 } from "@contractspec/lib.ui-kit-web/ui/stack";
|
|
4138
4136
|
import {
|
|
4139
4137
|
Accordion,
|
|
@@ -4154,7 +4152,7 @@ function FAQSection({
|
|
|
4154
4152
|
accordionClassName
|
|
4155
4153
|
}) {
|
|
4156
4154
|
const hasItems = Array.isArray(items) && items.length > 0;
|
|
4157
|
-
const defaultValue =
|
|
4155
|
+
const defaultValue = React13.useMemo(() => {
|
|
4158
4156
|
if (!hasItems)
|
|
4159
4157
|
return;
|
|
4160
4158
|
if (accordionType === "multiple")
|
|
@@ -4453,7 +4451,7 @@ function ListTablePage({
|
|
|
4453
4451
|
}, undefined, true, undefined, this);
|
|
4454
4452
|
}
|
|
4455
4453
|
// src/components/molecules/FiltersToolbar.tsx
|
|
4456
|
-
import * as
|
|
4454
|
+
import * as React14 from "react";
|
|
4457
4455
|
import { cn as cn24 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
4458
4456
|
import { Badge as Badge3 } from "@contractspec/lib.ui-kit-web/ui/badge";
|
|
4459
4457
|
import { jsxDEV as jsxDEV69 } from "react/jsx-dev-runtime";
|
|
@@ -4469,11 +4467,11 @@ function FiltersToolbar({
|
|
|
4469
4467
|
activeChips = [],
|
|
4470
4468
|
onClearAll
|
|
4471
4469
|
}) {
|
|
4472
|
-
const [q, setQ] =
|
|
4473
|
-
|
|
4470
|
+
const [q, setQ] = React14.useState(searchValue ?? "");
|
|
4471
|
+
React14.useEffect(() => {
|
|
4474
4472
|
setQ(searchValue ?? "");
|
|
4475
4473
|
}, [searchValue]);
|
|
4476
|
-
|
|
4474
|
+
React14.useEffect(() => {
|
|
4477
4475
|
if (!onSearchChange)
|
|
4478
4476
|
return;
|
|
4479
4477
|
const id = setTimeout(() => onSearchChange(q), debounceMs);
|
|
@@ -4546,12 +4544,12 @@ function FiltersToolbar({
|
|
|
4546
4544
|
}, undefined, true, undefined, this);
|
|
4547
4545
|
}
|
|
4548
4546
|
// src/components/templates/lists/ListPageTemplate/index.web.tsx
|
|
4549
|
-
import * as
|
|
4547
|
+
import * as React16 from "react";
|
|
4550
4548
|
import { cva as cva20 } from "class-variance-authority";
|
|
4551
4549
|
import { cn as cn25 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
4552
4550
|
|
|
4553
4551
|
// src/components/molecules/AiLinkButton.tsx
|
|
4554
|
-
import * as
|
|
4552
|
+
import * as React15 from "react";
|
|
4555
4553
|
import {
|
|
4556
4554
|
DropdownMenu as DropdownMenu3,
|
|
4557
4555
|
DropdownMenuContent as DropdownMenuContent3,
|
|
@@ -4573,19 +4571,19 @@ function buildProviderUrl(provider, href) {
|
|
|
4573
4571
|
}
|
|
4574
4572
|
}
|
|
4575
4573
|
function AiLinkButton({ href, className }) {
|
|
4576
|
-
const copyLink =
|
|
4574
|
+
const copyLink = React15.useCallback(() => {
|
|
4577
4575
|
try {
|
|
4578
4576
|
navigator.clipboard?.writeText(href).catch(() => {});
|
|
4579
4577
|
} catch (_e) {}
|
|
4580
4578
|
}, [href]);
|
|
4581
|
-
const openChatGPT =
|
|
4579
|
+
const openChatGPT = React15.useCallback(() => {
|
|
4582
4580
|
const url = buildProviderUrl("chatgpt", href);
|
|
4583
4581
|
try {
|
|
4584
4582
|
navigator.clipboard?.writeText(href).catch(() => {});
|
|
4585
4583
|
} catch (_e) {}
|
|
4586
4584
|
window.open(url, "_blank", "noopener,noreferrer");
|
|
4587
4585
|
}, [href]);
|
|
4588
|
-
const openClaude =
|
|
4586
|
+
const openClaude = React15.useCallback(() => {
|
|
4589
4587
|
const url = buildProviderUrl("claude", href);
|
|
4590
4588
|
try {
|
|
4591
4589
|
navigator.clipboard?.writeText(href).catch(() => {});
|
|
@@ -4723,7 +4721,7 @@ function ListPageTemplate({
|
|
|
4723
4721
|
renderItem,
|
|
4724
4722
|
emptyProps
|
|
4725
4723
|
}) {
|
|
4726
|
-
const mdHref =
|
|
4724
|
+
const mdHref = React16.useMemo(() => {
|
|
4727
4725
|
if (typeof window === "undefined")
|
|
4728
4726
|
return;
|
|
4729
4727
|
const url = new URL(window.location.href);
|
|
@@ -4777,7 +4775,7 @@ function ListPageTemplate({
|
|
|
4777
4775
|
}, undefined, true, undefined, this);
|
|
4778
4776
|
}
|
|
4779
4777
|
// src/components/organisms/EmptySearchResult.tsx
|
|
4780
|
-
import * as
|
|
4778
|
+
import * as React17 from "react";
|
|
4781
4779
|
import {
|
|
4782
4780
|
Empty as Empty2,
|
|
4783
4781
|
EmptyContent as EmptyContent2,
|
|
@@ -4798,7 +4796,7 @@ function EmptySearchResult({
|
|
|
4798
4796
|
const title = emptySearchTitle ?? emtptySearchTitle ?? "No results";
|
|
4799
4797
|
const description = emptySearchDescription ?? emtptySearchDescription ?? "Try another search.";
|
|
4800
4798
|
const onChange = onSearchChange ?? handleSearchChange;
|
|
4801
|
-
const [q, setQ] =
|
|
4799
|
+
const [q, setQ] = React17.useState("");
|
|
4802
4800
|
return /* @__PURE__ */ jsxDEV73(Empty2, {
|
|
4803
4801
|
className,
|
|
4804
4802
|
children: [
|
|
@@ -5002,7 +5000,7 @@ function ErrorState({
|
|
|
5002
5000
|
}, undefined, true, undefined, this);
|
|
5003
5001
|
}
|
|
5004
5002
|
// src/hooks/useListUrlState.ts
|
|
5005
|
-
import * as
|
|
5003
|
+
import * as React18 from "react";
|
|
5006
5004
|
function useListUrlState({
|
|
5007
5005
|
defaults,
|
|
5008
5006
|
paramKeys = {
|
|
@@ -5014,7 +5012,7 @@ function useListUrlState({
|
|
|
5014
5012
|
},
|
|
5015
5013
|
replaceState = true
|
|
5016
5014
|
}) {
|
|
5017
|
-
const read =
|
|
5015
|
+
const read = React18.useCallback(() => {
|
|
5018
5016
|
if (typeof window === "undefined")
|
|
5019
5017
|
return defaults;
|
|
5020
5018
|
const url = new URL(window.location.href);
|
|
@@ -5040,8 +5038,8 @@ function useListUrlState({
|
|
|
5040
5038
|
filters
|
|
5041
5039
|
};
|
|
5042
5040
|
}, [defaults, paramKeys]);
|
|
5043
|
-
const [state, setState] =
|
|
5044
|
-
const write =
|
|
5041
|
+
const [state, setState] = React18.useState(read);
|
|
5042
|
+
const write = React18.useCallback((next) => {
|
|
5045
5043
|
if (typeof window === "undefined")
|
|
5046
5044
|
return;
|
|
5047
5045
|
const url = new URL(window.location.href);
|
|
@@ -5071,15 +5069,15 @@ function useListUrlState({
|
|
|
5071
5069
|
window.history.pushState({}, "", newUrl);
|
|
5072
5070
|
setState(merged);
|
|
5073
5071
|
}, [state, paramKeys, replaceState]);
|
|
5074
|
-
const setFilter =
|
|
5072
|
+
const setFilter = React18.useCallback((key, value) => {
|
|
5075
5073
|
write({
|
|
5076
5074
|
filters: { ...state.filters, [key]: value }
|
|
5077
5075
|
});
|
|
5078
5076
|
}, [state.filters, write]);
|
|
5079
|
-
const clearFilters =
|
|
5077
|
+
const clearFilters = React18.useCallback(() => {
|
|
5080
5078
|
write({ filters: {}, page: 1 });
|
|
5081
5079
|
}, [write]);
|
|
5082
|
-
|
|
5080
|
+
React18.useEffect(() => {
|
|
5083
5081
|
const onPop = () => setState(read());
|
|
5084
5082
|
window.addEventListener("popstate", onPop);
|
|
5085
5083
|
return () => window.removeEventListener("popstate", onPop);
|
|
@@ -5618,7 +5616,7 @@ function GDPRRights({
|
|
|
5618
5616
|
}, undefined, true, undefined, this);
|
|
5619
5617
|
}
|
|
5620
5618
|
// src/components/legal/organisms/ContactForm.tsx
|
|
5621
|
-
import * as
|
|
5619
|
+
import * as React19 from "react";
|
|
5622
5620
|
import { jsxDEV as jsxDEV93 } from "react/jsx-dev-runtime";
|
|
5623
5621
|
function ContactForm({
|
|
5624
5622
|
labels = { submit: "Envoyer" },
|
|
@@ -5626,8 +5624,8 @@ function ContactForm({
|
|
|
5626
5624
|
disabled,
|
|
5627
5625
|
onSubmit
|
|
5628
5626
|
}) {
|
|
5629
|
-
const [value, setValue] =
|
|
5630
|
-
const [loading, setLoading] =
|
|
5627
|
+
const [value, setValue] = React19.useState(initialValue);
|
|
5628
|
+
const [loading, setLoading] = React19.useState(false);
|
|
5631
5629
|
const handleSubmit = async (e) => {
|
|
5632
5630
|
e.preventDefault();
|
|
5633
5631
|
if (!onSubmit)
|
|
@@ -5657,14 +5655,14 @@ function ContactForm({
|
|
|
5657
5655
|
}, undefined, true, undefined, this);
|
|
5658
5656
|
}
|
|
5659
5657
|
// src/components/legal/organisms/GDPRDataRequest.tsx
|
|
5660
|
-
import * as
|
|
5658
|
+
import * as React20 from "react";
|
|
5661
5659
|
import { jsxDEV as jsxDEV94 } from "react/jsx-dev-runtime";
|
|
5662
5660
|
function GDPRDataRequest({
|
|
5663
5661
|
onExport,
|
|
5664
5662
|
onDelete,
|
|
5665
5663
|
labels = { export: "Demander une copie", delete: "Demander la suppression" }
|
|
5666
5664
|
}) {
|
|
5667
|
-
const [loading, setLoading] =
|
|
5665
|
+
const [loading, setLoading] = React20.useState(null);
|
|
5668
5666
|
const handle = async (kind) => {
|
|
5669
5667
|
const fn = kind === "export" ? onExport : onDelete;
|
|
5670
5668
|
if (!fn)
|
|
@@ -5854,20 +5852,20 @@ function CookiesTemplate({
|
|
|
5854
5852
|
}, undefined, true, undefined, this);
|
|
5855
5853
|
}
|
|
5856
5854
|
// src/components/legal/templates/ContactTemplate.tsx
|
|
5857
|
-
import * as
|
|
5855
|
+
import * as React21 from "react";
|
|
5858
5856
|
import { jsxDEV as jsxDEV99 } from "react/jsx-dev-runtime";
|
|
5859
5857
|
function ContactTemplate({
|
|
5860
5858
|
title = "Contact",
|
|
5861
5859
|
meta,
|
|
5862
5860
|
onSubmit
|
|
5863
5861
|
}) {
|
|
5864
|
-
const [value, setValue] =
|
|
5862
|
+
const [value, setValue] = React21.useState({
|
|
5865
5863
|
name: "",
|
|
5866
5864
|
email: "",
|
|
5867
5865
|
subject: "",
|
|
5868
5866
|
message: ""
|
|
5869
5867
|
});
|
|
5870
|
-
const [loading, setLoading] =
|
|
5868
|
+
const [loading, setLoading] = React21.useState(false);
|
|
5871
5869
|
const handleSubmit = async (e) => {
|
|
5872
5870
|
e.preventDefault();
|
|
5873
5871
|
if (!onSubmit)
|
|
@@ -5921,11 +5919,11 @@ function withPlatformUI(options) {
|
|
|
5921
5919
|
};
|
|
5922
5920
|
}
|
|
5923
5921
|
// src/platform/useReducedMotion.ts
|
|
5924
|
-
import * as
|
|
5922
|
+
import * as React22 from "react";
|
|
5925
5923
|
"use client";
|
|
5926
5924
|
function useReducedMotion() {
|
|
5927
|
-
const [reduced, setReduced] =
|
|
5928
|
-
|
|
5925
|
+
const [reduced, setReduced] = React22.useState(false);
|
|
5926
|
+
React22.useEffect(() => {
|
|
5929
5927
|
if (typeof window === "undefined" || !window.matchMedia)
|
|
5930
5928
|
return;
|
|
5931
5929
|
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
@@ -5937,11 +5935,11 @@ function useReducedMotion() {
|
|
|
5937
5935
|
return reduced;
|
|
5938
5936
|
}
|
|
5939
5937
|
// src/platform/useColorScheme.ts
|
|
5940
|
-
import * as
|
|
5938
|
+
import * as React23 from "react";
|
|
5941
5939
|
"use client";
|
|
5942
5940
|
function useColorScheme() {
|
|
5943
|
-
const [scheme, setScheme] =
|
|
5944
|
-
|
|
5941
|
+
const [scheme, setScheme] = React23.useState("light");
|
|
5942
|
+
React23.useEffect(() => {
|
|
5945
5943
|
if (typeof window === "undefined" || !window.matchMedia)
|
|
5946
5944
|
return;
|
|
5947
5945
|
const media = window.matchMedia("(prefers-color-scheme: dark)");
|
|
@@ -6178,7 +6176,7 @@ function FormCardLayout({
|
|
|
6178
6176
|
}, undefined, true, undefined, this);
|
|
6179
6177
|
}
|
|
6180
6178
|
// src/components/forms/FormStepsLayout.tsx
|
|
6181
|
-
import * as
|
|
6179
|
+
import * as React24 from "react";
|
|
6182
6180
|
import { Separator as Separator6 } from "@contractspec/lib.ui-kit-web/ui/separator";
|
|
6183
6181
|
import { cn as cn42 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
6184
6182
|
import { jsxDEV as jsxDEV104 } from "react/jsx-dev-runtime";
|
|
@@ -6189,8 +6187,8 @@ function FormStepsLayout({
|
|
|
6189
6187
|
canNext,
|
|
6190
6188
|
className
|
|
6191
6189
|
}) {
|
|
6192
|
-
const indexByKey =
|
|
6193
|
-
const [idx, setIdx] =
|
|
6190
|
+
const indexByKey = React24.useMemo(() => Object.fromEntries(steps.map((s, i) => [s.key, i])), [steps]);
|
|
6191
|
+
const [idx, setIdx] = React24.useState(() => {
|
|
6194
6192
|
if (initialStepKey && initialStepKey in indexByKey)
|
|
6195
6193
|
return indexByKey[initialStepKey] || 0;
|
|
6196
6194
|
return 0;
|
|
@@ -6258,7 +6256,7 @@ function FormStepsLayout({
|
|
|
6258
6256
|
}, undefined, true, undefined, this);
|
|
6259
6257
|
}
|
|
6260
6258
|
// src/components/forms/FormOneByOneLayout.tsx
|
|
6261
|
-
import * as
|
|
6259
|
+
import * as React25 from "react";
|
|
6262
6260
|
import { cn as cn43 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
6263
6261
|
import { jsxDEV as jsxDEV105 } from "react/jsx-dev-runtime";
|
|
6264
6262
|
function FormOneByOneLayout({
|
|
@@ -6267,8 +6265,8 @@ function FormOneByOneLayout({
|
|
|
6267
6265
|
onComplete,
|
|
6268
6266
|
className
|
|
6269
6267
|
}) {
|
|
6270
|
-
const indexByKey =
|
|
6271
|
-
const [idx, setIdx] =
|
|
6268
|
+
const indexByKey = React25.useMemo(() => Object.fromEntries(fields.map((f, i) => [f.key, i])), [fields]);
|
|
6269
|
+
const [idx, setIdx] = React25.useState(() => {
|
|
6272
6270
|
if (initialKey && initialKey in indexByKey) {
|
|
6273
6271
|
return indexByKey[initialKey] || 0;
|
|
6274
6272
|
}
|
|
@@ -6736,7 +6734,7 @@ function fieldByKey2(fields, key) {
|
|
|
6736
6734
|
return fields.find((field) => field.key === key);
|
|
6737
6735
|
}
|
|
6738
6736
|
// src/components/data-view/DataViewRenderer.tsx
|
|
6739
|
-
import * as
|
|
6737
|
+
import * as React26 from "react";
|
|
6740
6738
|
import {
|
|
6741
6739
|
Pagination,
|
|
6742
6740
|
PaginationContent,
|
|
@@ -6765,7 +6763,7 @@ function DataViewRenderer({
|
|
|
6765
6763
|
pagination,
|
|
6766
6764
|
onPageChange
|
|
6767
6765
|
}) {
|
|
6768
|
-
const viewContent =
|
|
6766
|
+
const viewContent = React26.useMemo(() => {
|
|
6769
6767
|
switch (spec.view.kind) {
|
|
6770
6768
|
case "list":
|
|
6771
6769
|
return /* @__PURE__ */ jsxDEV111(DataViewList, {
|
|
@@ -15,4 +15,3 @@ export interface AgentMonitorProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
}
|
|
17
17
|
export declare function AgentMonitor({ title, sessions, highlightStatus, onSelectSession, className, }: AgentMonitorProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=AgentMonitor.d.ts.map
|
|
@@ -10,4 +10,3 @@ export interface ApprovalQueueProps {
|
|
|
10
10
|
emptyState?: React.ReactNode;
|
|
11
11
|
}
|
|
12
12
|
export declare function ApprovalQueue({ title, description, requests, onApprove, onReject, className, emptyState, }: ApprovalQueueProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=ApprovalQueue.d.ts.map
|
|
@@ -18,4 +18,3 @@ export declare function ToggleButton(props: Omit<ActionBtnProps, 'iconLeft'> & {
|
|
|
18
18
|
export declare function ToggleLeftButton(props: Omit<ActionBtnProps, 'iconLeft'>): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export declare function ToggleRightButton(props: Omit<ActionBtnProps, 'iconLeft'>): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
21
|
-
//# sourceMappingURL=ActionButtons.d.ts.map
|
|
@@ -15,4 +15,3 @@ export type ButtonProps = Omit<WebButtonProps, 'onClick' | 'disabled' | 'childre
|
|
|
15
15
|
};
|
|
16
16
|
export declare function Button({ children, loading, spinnerPlacement, onPress, onPressIn, onPressOut, onLongPress, onTouchStart, onTouchEnd, onTouchCancel, onMouseDown, onMouseUp, onClick, className, disabled, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
18
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -8,4 +8,3 @@ export type ButtonProps = NativeButtonProps & Omit<PressableProps, 'disabled'> &
|
|
|
8
8
|
};
|
|
9
9
|
export declare function Button({ children, loading, loadingText, spinnerPlacement, disabled, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default Button;
|
|
11
|
-
//# sourceMappingURL=Button.mobile.d.ts.map
|
|
@@ -4,4 +4,3 @@ export type ButtonLinkProps = Omit<ButtonProps, 'onClick'> & Pick<LinkProps, 'hr
|
|
|
4
4
|
replace?: boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare function ButtonLink({ href, target, rel, replace, loading, disabled, children, onClick, ...btn }: ButtonLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=ButtonLink.d.ts.map
|
|
@@ -5,4 +5,3 @@ export type ButtonLinkProps = Omit<ButtonProps, 'onPress'> & {
|
|
|
5
5
|
};
|
|
6
6
|
export declare function ButtonLink({ href, replace, loading, disabled, onPressIn, onPressOut, ...btn }: ButtonLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default ButtonLink;
|
|
8
|
-
//# sourceMappingURL=ButtonLink.mobile.d.ts.map
|
|
@@ -5,33 +5,12 @@ declare const _ctaVariants: (props?: ({
|
|
|
5
5
|
size?: "sm" | "lg" | "md" | "touch" | null | undefined;
|
|
6
6
|
emphasis?: "default" | "strong" | "subtle" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
-
export type CtaProps = ButtonProps & VariantProps<typeof _ctaVariants> & {
|
|
8
|
+
export type CtaProps = Omit<ButtonProps, 'size'> & VariantProps<typeof _ctaVariants> & {
|
|
9
9
|
capture?: (cta: string) => void;
|
|
10
10
|
ctaName?: string;
|
|
11
11
|
as?: 'button' | 'a';
|
|
12
12
|
href?: string;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
};
|
|
15
|
-
export declare
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
loadingText?: string;
|
|
19
|
-
spinnerPlacement?: "start" | "end";
|
|
20
|
-
onPress?: () => void;
|
|
21
|
-
onPressIn?: () => void;
|
|
22
|
-
onPressOut?: () => void;
|
|
23
|
-
onLongPress?: () => void;
|
|
24
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
} & VariantProps<(props?: ({
|
|
27
|
-
size?: "sm" | "lg" | "md" | "touch" | null | undefined;
|
|
28
|
-
emphasis?: "default" | "strong" | "subtle" | null | undefined;
|
|
29
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
30
|
-
capture?: (cta: string) => void;
|
|
31
|
-
ctaName?: string;
|
|
32
|
-
as?: "button" | "a";
|
|
33
|
-
href?: string;
|
|
34
|
-
children?: React.ReactNode;
|
|
35
|
-
} & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
15
|
+
export declare function Cta({ capture, ctaName, as, href, onClick, size, emphasis, children, ...props }: CtaProps): import("react/jsx-runtime").JSX.Element;
|
|
36
16
|
export {};
|
|
37
|
-
//# sourceMappingURL=Cta.d.ts.map
|
|
@@ -1,28 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type ButtonProps } from './Button';
|
|
3
|
-
export type CtaProps = ButtonProps & {
|
|
3
|
+
export type CtaProps = Omit<ButtonProps, 'size'> & {
|
|
4
4
|
capture?: (cta: string) => void;
|
|
5
5
|
ctaName?: string;
|
|
6
6
|
as?: 'button' | 'a';
|
|
7
7
|
href?: string;
|
|
8
|
+
size?: 'default' | 'sm' | 'lg' | 'icon' | 'touch' | null;
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
};
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
loadingText?: string;
|
|
14
|
-
spinnerPlacement?: "start" | "end";
|
|
15
|
-
onPress?: () => void;
|
|
16
|
-
onPressIn?: () => void;
|
|
17
|
-
onPressOut?: () => void;
|
|
18
|
-
onLongPress?: () => void;
|
|
19
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
} & {
|
|
22
|
-
capture?: (cta: string) => void;
|
|
23
|
-
ctaName?: string;
|
|
24
|
-
as?: "button" | "a";
|
|
25
|
-
href?: string;
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
} & React.RefAttributes<unknown>>;
|
|
28
|
-
//# sourceMappingURL=Cta.mobile.d.ts.map
|
|
11
|
+
export declare function Cta({ capture, ctaName, size, onClick, children, ref, ...props }: CtaProps & {
|
|
12
|
+
ref?: React.Ref<unknown>;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,4 +11,3 @@ export interface ErrorStateProps {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare function ErrorState({ title, description, icon, onRetry, retryLabel, supportHref, onContactSupport, supportLabel, className, }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=ErrorState.d.ts.map
|
|
@@ -12,4 +12,3 @@ export interface ErrorStateProps {
|
|
|
12
12
|
}
|
|
13
13
|
export declare function ErrorState({ title, description, icon, onRetry, retryLabel, supportHref, onContactSupport, supportLabel, className, }: ErrorStateProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export default ErrorState;
|
|
15
|
-
//# sourceMappingURL=ErrorState.mobile.d.ts.map
|
|
@@ -14,4 +14,3 @@ interface BaseFieldProps {
|
|
|
14
14
|
export type InputProps = Omit<WebInputProps, 'input'> & BaseFieldProps;
|
|
15
15
|
export declare function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, keyboard, ...rest }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
17
|
-
//# sourceMappingURL=Input.d.ts.map
|