@lssm/lib.design-system 1.7.4 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -0
- package/dist/_virtual/rolldown_runtime.js +21 -12
- package/dist/components/agent/AgentMonitor.d.ts +29 -0
- package/dist/components/agent/AgentMonitor.d.ts.map +1 -0
- package/dist/components/agent/AgentMonitor.js +79 -0
- package/dist/components/agent/AgentMonitor.js.map +1 -0
- package/dist/components/agent/ApprovalQueue.d.ts +26 -0
- package/dist/components/agent/ApprovalQueue.d.ts.map +1 -0
- package/dist/components/agent/ApprovalQueue.js +89 -0
- package/dist/components/agent/ApprovalQueue.js.map +1 -0
- package/dist/components/atoms/ActionButtons.d.ts +7 -7
- package/dist/components/atoms/ActionButtons.js +2 -2
- package/dist/components/atoms/ActionButtons.js.map +1 -1
- package/dist/components/atoms/Button.d.ts +2 -2
- package/dist/components/atoms/Button.d.ts.map +1 -1
- package/dist/components/atoms/Button.js +1 -1
- package/dist/components/atoms/Button.js.map +1 -1
- package/dist/components/atoms/Button.mobile.d.ts +2 -2
- package/dist/components/atoms/Button.mobile.js +1 -1
- package/dist/components/atoms/Button.mobile.js.map +1 -1
- package/dist/components/atoms/ButtonLink.d.ts +2 -2
- package/dist/components/atoms/ButtonLink.d.ts.map +1 -1
- package/dist/components/atoms/ButtonLink.js +1 -2
- package/dist/components/atoms/ButtonLink.js.map +1 -1
- package/dist/components/atoms/ButtonLink.mobile.d.ts +2 -2
- package/dist/components/atoms/ButtonLink.mobile.d.ts.map +1 -1
- package/dist/components/atoms/ButtonLink.mobile.js +1 -1
- package/dist/components/atoms/ButtonLink.mobile.js.map +1 -1
- package/dist/components/atoms/Cta.d.ts +1 -1
- package/dist/components/atoms/Cta.js +1 -1
- package/dist/components/atoms/Cta.js.map +1 -1
- package/dist/components/atoms/Cta.mobile.js +1 -2
- package/dist/components/atoms/Cta.mobile.js.map +1 -1
- package/dist/components/atoms/DataChips.d.ts +5 -5
- package/dist/components/atoms/DataChips.js +4 -4
- package/dist/components/atoms/DataChips.js.map +1 -1
- package/dist/components/atoms/EmptyState.d.ts +2 -2
- package/dist/components/atoms/EmptyState.js +0 -1
- package/dist/components/atoms/EmptyState.js.map +1 -1
- package/dist/components/atoms/ErrorState.d.ts +2 -2
- package/dist/components/atoms/ErrorState.d.ts.map +1 -1
- package/dist/components/atoms/ErrorState.mobile.d.ts +2 -2
- package/dist/components/atoms/Input.d.ts +2 -2
- package/dist/components/atoms/Input.js +1 -1
- package/dist/components/atoms/Input.js.map +1 -1
- package/dist/components/atoms/Input.mobile.d.ts +2 -2
- package/dist/components/atoms/Input.mobile.d.ts.map +1 -1
- package/dist/components/atoms/Input.mobile.js +1 -1
- package/dist/components/atoms/Input.mobile.js.map +1 -1
- package/dist/components/atoms/Link.d.ts +2 -2
- package/dist/components/atoms/Link.d.ts.map +1 -1
- package/dist/components/atoms/Link.js +1 -1
- package/dist/components/atoms/Link.js.map +1 -1
- package/dist/components/atoms/Link.web.d.ts +2 -2
- package/dist/components/atoms/Link.web.d.ts.map +1 -1
- package/dist/components/atoms/Link.web.js +1 -1
- package/dist/components/atoms/Link.web.js.map +1 -1
- package/dist/components/atoms/LoaderCircular.d.ts +4 -4
- package/dist/components/atoms/LoaderCircular.d.ts.map +1 -1
- package/dist/components/atoms/LoaderCircular.js +1 -1
- package/dist/components/atoms/LoaderCircular.js.map +1 -1
- package/dist/components/atoms/LoaderCircular.mobile.d.ts +2 -2
- package/dist/components/atoms/LoaderCircular.mobile.d.ts.map +1 -1
- package/dist/components/atoms/NavBrand.d.ts +2 -2
- package/dist/components/atoms/NavBrand.js +0 -1
- package/dist/components/atoms/NavBrand.js.map +1 -1
- package/dist/components/atoms/Stepper.d.ts +2 -2
- package/dist/components/atoms/Stepper.js +0 -1
- package/dist/components/atoms/Stepper.js.map +1 -1
- package/dist/components/atoms/Textarea.d.ts +2 -2
- package/dist/components/atoms/Textarea.js +1 -1
- package/dist/components/atoms/Textarea.js.map +1 -1
- package/dist/components/atoms/Textarea.mobile.d.ts +2 -2
- package/dist/components/atoms/Textarea.mobile.js +1 -1
- package/dist/components/atoms/Textarea.mobile.js.map +1 -1
- package/dist/components/data-view/DataViewDetail.d.ts +2 -2
- package/dist/components/data-view/DataViewDetail.js +9 -10
- package/dist/components/data-view/DataViewDetail.js.map +1 -1
- package/dist/components/data-view/DataViewList.d.ts +2 -2
- package/dist/components/data-view/DataViewList.js +5 -6
- package/dist/components/data-view/DataViewList.js.map +1 -1
- package/dist/components/data-view/DataViewRenderer.d.ts +19 -3
- package/dist/components/data-view/DataViewRenderer.d.ts.map +1 -1
- package/dist/components/data-view/DataViewRenderer.js +128 -50
- 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/DataViewTable.js +9 -10
- package/dist/components/data-view/DataViewTable.js.map +1 -1
- package/dist/components/data-view/utils.js +0 -1
- package/dist/components/data-view/utils.js.map +1 -1
- package/dist/components/forms/FormCardLayout.d.ts +2 -2
- package/dist/components/forms/FormDialog.d.ts +2 -2
- package/dist/components/forms/FormDialog.js +0 -1
- package/dist/components/forms/FormDialog.js.map +1 -1
- package/dist/components/forms/FormLayout.d.ts +4 -4
- package/dist/components/forms/FormLayout.js +0 -1
- package/dist/components/forms/FormLayout.js.map +1 -1
- package/dist/components/forms/FormOneByOneLayout.d.ts +2 -2
- package/dist/components/forms/FormStepsLayout.d.ts +2 -2
- package/dist/components/forms/FormStepsLayout.d.ts.map +1 -1
- package/dist/components/forms/ZodForm.d.ts +2 -2
- package/dist/components/forms/ZodForm.js +0 -1
- package/dist/components/forms/ZodForm.js.map +1 -1
- 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 +4 -4
- package/dist/components/legal/atoms/LegalCallout.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalCallout.js +1 -1
- package/dist/components/legal/atoms/LegalCallout.js.map +1 -1
- package/dist/components/legal/atoms/LegalHeading.d.ts +5 -5
- package/dist/components/legal/atoms/LegalHeading.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalHeading.js +1 -1
- package/dist/components/legal/atoms/LegalHeading.js.map +1 -1
- package/dist/components/legal/atoms/LegalList.d.ts +4 -4
- package/dist/components/legal/atoms/LegalList.js +1 -1
- package/dist/components/legal/atoms/LegalList.js.map +1 -1
- package/dist/components/legal/atoms/LegalSection.d.ts +4 -4
- package/dist/components/legal/atoms/LegalSection.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalSection.js +1 -1
- package/dist/components/legal/atoms/LegalSection.js.map +1 -1
- package/dist/components/legal/atoms/LegalText.d.ts +6 -6
- package/dist/components/legal/atoms/LegalText.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalText.js +1 -1
- package/dist/components/legal/atoms/LegalText.js.map +1 -1
- package/dist/components/legal/molecules/Consent.d.ts +3 -3
- package/dist/components/legal/molecules/Consent.d.ts.map +1 -1
- 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/LegalMeta.d.ts.map +1 -1
- package/dist/components/legal/molecules/LegalTOC.d.ts +4 -4
- package/dist/components/legal/molecules/LegalTOC.d.ts.map +1 -1
- package/dist/components/legal/molecules/LegalTOC.js +1 -1
- package/dist/components/legal/molecules/LegalTOC.js.map +1 -1
- package/dist/components/legal/organisms/ContactForm.d.ts +2 -2
- package/dist/components/legal/organisms/ContactForm.d.ts.map +1 -1
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +2 -2
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts.map +1 -1
- package/dist/components/legal/organisms/GDPRRights.d.ts +2 -2
- package/dist/components/legal/organisms/GDPRRights.d.ts.map +1 -1
- 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.d.ts.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/SalesTermsTemplate.d.ts.map +1 -1
- package/dist/components/legal/templates/TermsTemplate.d.ts +2 -2
- package/dist/components/legal/templates/TermsTemplate.d.ts.map +1 -1
- package/dist/components/legal/templates/TermsTemplate.js +0 -1
- package/dist/components/legal/templates/TermsTemplate.js.map +1 -1
- package/dist/components/molecules/AiLinkButton.d.ts +2 -2
- package/dist/components/molecules/AiLinkButton.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumbs.d.ts +2 -2
- package/dist/components/molecules/Breadcrumbs.js +0 -1
- package/dist/components/molecules/Breadcrumbs.js.map +1 -1
- package/dist/components/molecules/CommandPalette.d.ts +2 -2
- package/dist/components/molecules/CommandPalette.js +0 -1
- package/dist/components/molecules/CommandPalette.js.map +1 -1
- package/dist/components/molecules/CommandSearchTrigger.d.ts +2 -2
- package/dist/components/molecules/CommandSearchTrigger.js +0 -1
- package/dist/components/molecules/CommandSearchTrigger.js.map +1 -1
- package/dist/components/molecules/EntityCard.d.ts +5 -5
- package/dist/components/molecules/EntityCard.js +1 -2
- package/dist/components/molecules/EntityCard.js.map +1 -1
- package/dist/components/molecules/FiltersToolbar.d.ts +2 -2
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts +2 -2
- package/dist/components/molecules/HoverPreview.d.ts +2 -2
- package/dist/components/molecules/HoverPreview.js +0 -1
- package/dist/components/molecules/HoverPreview.js.map +1 -1
- package/dist/components/molecules/LangSwitch.d.ts +2 -2
- package/dist/components/molecules/LangSwitch.js +0 -1
- package/dist/components/molecules/LangSwitch.js.map +1 -1
- package/dist/components/molecules/LangSwitchDropdown.d.ts +2 -2
- package/dist/components/molecules/LoaderBlock.d.ts +2 -2
- package/dist/components/molecules/LoaderBlock.mobile.d.ts +2 -2
- package/dist/components/molecules/MobileNavMenu.d.ts +2 -2
- package/dist/components/molecules/MobileNavMenu.js +0 -1
- package/dist/components/molecules/MobileNavMenu.js.map +1 -1
- package/dist/components/molecules/NavItemCard.d.ts +2 -2
- package/dist/components/molecules/NavItemCard.d.ts.map +1 -1
- package/dist/components/molecules/NavItemCard.js +0 -1
- package/dist/components/molecules/NavItemCard.js.map +1 -1
- 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/OverviewCard.d.ts.map +1 -1
- package/dist/components/molecules/OverviewCard.js +0 -1
- package/dist/components/molecules/OverviewCard.js.map +1 -1
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +2 -2
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +2 -2
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts +2 -2
- package/dist/components/molecules/SkeletonList/index.web.d.ts +2 -2
- package/dist/components/molecules/StatCard.d.ts +6 -6
- package/dist/components/molecules/StatCard.d.ts.map +1 -1
- package/dist/components/molecules/StatCard.js +1 -2
- package/dist/components/molecules/StatCard.js.map +1 -1
- package/dist/components/molecules/StatusChip.d.ts +4 -4
- package/dist/components/molecules/StatusChip.d.ts.map +1 -1
- package/dist/components/molecules/StatusChip.js +1 -2
- package/dist/components/molecules/StatusChip.js.map +1 -1
- package/dist/components/molecules/hover-previews/Doc.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Doc.js +0 -1
- package/dist/components/molecules/hover-previews/Doc.js.map +1 -1
- package/dist/components/molecules/hover-previews/Media.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Media.js +0 -1
- package/dist/components/molecules/hover-previews/Media.js.map +1 -1
- package/dist/components/molecules/hover-previews/Simple.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Simple.js +0 -1
- package/dist/components/molecules/hover-previews/Simple.js.map +1 -1
- package/dist/components/molecules/hover-previews/Stats.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Stats.js +0 -1
- package/dist/components/molecules/hover-previews/Stats.js.map +1 -1
- package/dist/components/molecules/hover-previews/User.d.ts +2 -2
- package/dist/components/molecules/hover-previews/User.js +0 -1
- package/dist/components/molecules/hover-previews/User.js.map +1 -1
- package/dist/components/native/BottomTabs.mobile.d.ts +2 -2
- package/dist/components/native/BottomTabs.mobile.d.ts.map +1 -1
- package/dist/components/native/BottomTabs.mobile.js +0 -1
- package/dist/components/native/BottomTabs.mobile.js.map +1 -1
- package/dist/components/native/FlatListScreen.mobile.d.ts +5 -5
- package/dist/components/native/FlatListScreen.mobile.d.ts.map +1 -1
- package/dist/components/native/FlatListScreen.mobile.js +1 -2
- package/dist/components/native/FlatListScreen.mobile.js.map +1 -1
- package/dist/components/native/SheetMenu.mobile.d.ts +2 -2
- package/dist/components/native/SheetMenu.mobile.d.ts.map +1 -1
- package/dist/components/native/SheetMenu.mobile.js +0 -1
- package/dist/components/native/SheetMenu.mobile.js.map +1 -1
- package/dist/components/organisms/AcademyLayout.d.ts +2 -2
- package/dist/components/organisms/AcademyLayout.js +0 -1
- package/dist/components/organisms/AcademyLayout.js.map +1 -1
- package/dist/components/organisms/AppHeader.d.ts +2 -2
- package/dist/components/organisms/AppHeader.d.ts.map +1 -1
- package/dist/components/organisms/AppHeader.js +1 -2
- package/dist/components/organisms/AppHeader.js.map +1 -1
- package/dist/components/organisms/AppHeader.mobile.d.ts +2 -2
- package/dist/components/organisms/AppHeader.mobile.d.ts.map +1 -1
- package/dist/components/organisms/AppHeader.mobile.js +0 -1
- package/dist/components/organisms/AppHeader.mobile.js.map +1 -1
- package/dist/components/organisms/AppLayout.d.ts +2 -2
- package/dist/components/organisms/AppLayout.js +0 -1
- package/dist/components/organisms/AppLayout.js.map +1 -1
- package/dist/components/organisms/AppSidebar.d.ts +2 -2
- package/dist/components/organisms/EmptyDataList.d.ts +2 -2
- package/dist/components/organisms/EmptyDataList.d.ts.map +1 -1
- package/dist/components/organisms/EmptyDataList.mobile.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/FeatureCarousel.js +1 -1
- package/dist/components/organisms/FeaturesSection.d.ts +2 -2
- package/dist/components/organisms/Footer.d.ts +2 -2
- package/dist/components/organisms/GridLayout.d.ts +4 -4
- package/dist/components/organisms/GridLayout.d.ts.map +1 -1
- package/dist/components/organisms/Header.d.ts +4 -4
- package/dist/components/organisms/Header.d.ts.map +1 -1
- package/dist/components/organisms/Header.js +0 -1
- package/dist/components/organisms/Header.js.map +1 -1
- package/dist/components/organisms/Header.mobile.d.ts +2 -2
- package/dist/components/organisms/Header.mobile.js +0 -1
- package/dist/components/organisms/Header.mobile.js.map +1 -1
- package/dist/components/organisms/HeroResponsive.d.ts +2 -2
- package/dist/components/organisms/HeroResponsive.d.ts.map +1 -1
- package/dist/components/organisms/HeroResponsive.js +0 -1
- package/dist/components/organisms/HeroResponsive.js.map +1 -1
- package/dist/components/organisms/HeroSection.d.ts +2 -2
- package/dist/components/organisms/HeroSection.d.ts.map +1 -1
- package/dist/components/organisms/ListCardPage.d.ts +5 -5
- package/dist/components/organisms/ListCardPage.js +0 -1
- package/dist/components/organisms/ListCardPage.js.map +1 -1
- package/dist/components/organisms/ListGridPage.d.ts +2 -2
- package/dist/components/organisms/ListGridPage.js +0 -1
- package/dist/components/organisms/ListGridPage.js.map +1 -1
- package/dist/components/organisms/ListPageResponsive.d.ts +2 -2
- package/dist/components/organisms/ListPageResponsive.d.ts.map +1 -1
- package/dist/components/organisms/ListPageResponsive.js +0 -1
- package/dist/components/organisms/ListPageResponsive.js.map +1 -1
- package/dist/components/organisms/ListTablePage.d.ts +4 -4
- package/dist/components/organisms/ListTablePage.d.ts.map +1 -1
- package/dist/components/organisms/ListTablePage.js +0 -1
- package/dist/components/organisms/ListTablePage.js.map +1 -1
- package/dist/components/organisms/MarketingHeader.d.ts +2 -2
- package/dist/components/organisms/MarketingHeader.js +0 -1
- package/dist/components/organisms/MarketingHeader.js.map +1 -1
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +2 -2
- package/dist/components/organisms/MarketingHeaderDesktop.js +0 -1
- package/dist/components/organisms/MarketingHeaderDesktop.js.map +1 -1
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +2 -2
- package/dist/components/organisms/MarketingHeaderMobile.d.ts.map +1 -1
- package/dist/components/organisms/MarketingHeaderMobile.js +0 -1
- package/dist/components/organisms/MarketingHeaderMobile.js.map +1 -1
- package/dist/components/organisms/MarketingLayout.d.ts +2 -2
- package/dist/components/organisms/MarketingLayout.js +0 -1
- package/dist/components/organisms/MarketingLayout.js.map +1 -1
- package/dist/components/organisms/PageHeaderResponsive.d.ts +2 -2
- package/dist/components/organisms/PageHeaderResponsive.js +0 -1
- package/dist/components/organisms/PageHeaderResponsive.js.map +1 -1
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +2 -2
- package/dist/components/organisms/PageHeaderResponsive.mobile.js +0 -1
- package/dist/components/organisms/PageHeaderResponsive.mobile.js.map +1 -1
- package/dist/components/organisms/PricingCarousel.d.ts +2 -2
- package/dist/components/organisms/PricingCarousel.js +1 -1
- package/dist/components/organisms/PricingSection.d.ts +2 -2
- package/dist/components/organisms/PricingSection.d.ts.map +1 -1
- package/dist/components/organisms/TestimonialCarousel.d.ts +2 -2
- package/dist/components/organisms/TestimonialCarousel.js +1 -1
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts.map +1 -1
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/platform/useColorScheme.js +0 -1
- package/dist/platform/useColorScheme.js.map +1 -1
- package/dist/platform/useColorScheme.mobile.js +0 -1
- package/dist/platform/useColorScheme.mobile.js.map +1 -1
- package/dist/platform/useReducedMotion.js +0 -1
- package/dist/platform/useReducedMotion.js.map +1 -1
- package/dist/platform/useReducedMotion.mobile.js +0 -1
- package/dist/platform/useReducedMotion.mobile.js.map +1 -1
- package/dist/platform/useResponsive.js +0 -1
- package/dist/platform/useResponsive.js.map +1 -1
- package/dist/platform/useResponsive.mobile.js +0 -1
- package/dist/platform/useResponsive.mobile.js.map +1 -1
- package/dist/platform/withPlatformUI.js +0 -1
- package/dist/platform/withPlatformUI.js.map +1 -1
- package/dist/renderers/form-contract.d.ts +2 -2
- package/dist/renderers/form-contract.js +1 -2
- package/dist/renderers/form-contract.js.map +1 -1
- package/dist/theme/tokenBridge.d.ts.map +1 -1
- package/dist/theme/tokenBridge.js +0 -1
- package/dist/theme/tokenBridge.js.map +1 -1
- package/dist/theme/tokens.js +0 -1
- package/dist/theme/tokens.js.map +1 -1
- package/dist/theme/variants.d.ts +1 -1
- package/dist/theme/variants.js +0 -1
- package/dist/theme/variants.js.map +1 -1
- package/package.json +11 -8
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "../../lib/utils.js";
|
|
5
4
|
import { formatValue, getAtPath } from "./utils.js";
|
|
6
5
|
import "react";
|
|
@@ -24,11 +23,11 @@ function DataViewTable({ spec, items, className, onRowClick, emptyState, headerA
|
|
|
24
23
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
25
24
|
className: "flex items-center justify-between",
|
|
26
25
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
27
|
-
className: "text-base font-semibold
|
|
26
|
+
className: "text-foreground text-base font-semibold",
|
|
28
27
|
children: spec.meta.title
|
|
29
28
|
}), headerActions]
|
|
30
29
|
}), emptyState ?? /* @__PURE__ */ jsx("div", {
|
|
31
|
-
className: "rounded-md border border-dashed
|
|
30
|
+
className: "border-muted-foreground/40 text-muted-foreground rounded-md border border-dashed p-8 text-center text-sm",
|
|
32
31
|
children: "No records available."
|
|
33
32
|
})]
|
|
34
33
|
});
|
|
@@ -38,28 +37,28 @@ function DataViewTable({ spec, items, className, onRowClick, emptyState, headerA
|
|
|
38
37
|
/* @__PURE__ */ jsxs("div", {
|
|
39
38
|
className: "flex items-center justify-between",
|
|
40
39
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
41
|
-
className: "text-base font-semibold
|
|
40
|
+
className: "text-foreground text-base font-semibold",
|
|
42
41
|
children: spec.meta.title
|
|
43
42
|
}), headerActions]
|
|
44
43
|
}),
|
|
45
44
|
/* @__PURE__ */ jsx("div", {
|
|
46
|
-
className: "overflow-x-auto rounded-lg border
|
|
45
|
+
className: "border-border bg-card overflow-x-auto rounded-lg border shadow-sm",
|
|
47
46
|
children: /* @__PURE__ */ jsxs("table", {
|
|
48
|
-
className: cn("min-w-full divide-y
|
|
47
|
+
className: cn("divide-border min-w-full divide-y text-sm", view.density === "compact" ? "text-sm" : "text-base"),
|
|
49
48
|
children: [/* @__PURE__ */ jsx("thead", {
|
|
50
49
|
className: "bg-muted/50",
|
|
51
50
|
children: /* @__PURE__ */ jsx("tr", { children: columns.map((column, columnIdx) => /* @__PURE__ */ jsx("th", {
|
|
52
51
|
scope: "col",
|
|
53
|
-
className: cn("px-4 py-3 text-left font-semibold
|
|
52
|
+
className: cn("text-muted-foreground px-4 py-3 text-left font-semibold", alignmentClass(column.align)),
|
|
54
53
|
children: column.label
|
|
55
54
|
}, `${column.field}.${columnIdx}`)) })
|
|
56
55
|
}), /* @__PURE__ */ jsx("tbody", {
|
|
57
|
-
className: "divide-
|
|
56
|
+
className: "divide-border bg-background divide-y",
|
|
58
57
|
children: items.map((item, rowIdx) => /* @__PURE__ */ jsx("tr", {
|
|
59
|
-
className: cn(onRowClick && "
|
|
58
|
+
className: cn(onRowClick && "hover:bg-muted/30 cursor-pointer transition-colors"),
|
|
60
59
|
onClick: () => onRowClick?.(item),
|
|
61
60
|
children: columns.map((column) => /* @__PURE__ */ jsx("td", {
|
|
62
|
-
className: cn("px-4 py-3
|
|
61
|
+
className: cn("text-foreground px-4 py-3", alignmentClass(column.align)),
|
|
63
62
|
children: displayValue(item, fields, column.field)
|
|
64
63
|
}, column.field))
|
|
65
64
|
}, rowIdx))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataViewTable.js","names":[],"sources":["../../../src/components/data-view/DataViewTable.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type {\n DataViewSpec,\n DataViewTableConfig,\n DataViewField,\n} from '@lssm/lib.contracts/data-views';\nimport { cn } from '../../lib/utils';\nimport { getAtPath, formatValue } from './utils';\n\nexport interface DataViewTableProps {\n spec: DataViewSpec;\n items: Record<string, unknown>[];\n className?: string;\n onRowClick?: (item: Record<string, unknown>) => void;\n emptyState?: React.ReactNode;\n headerActions?: React.ReactNode;\n footer?: React.ReactNode;\n}\n\nexport function DataViewTable({\n spec,\n items,\n className,\n onRowClick,\n emptyState,\n headerActions,\n footer,\n}: DataViewTableProps) {\n if (spec.view.kind !== 'table') {\n throw new Error(\n `DataViewTable received view kind \"${spec.view.kind}\", expected \"table\".`\n );\n }\n\n const view = spec.view as DataViewTableConfig;\n const fields = view.fields;\n const columns =\n view.columns?.map((column) => ({\n ...column,\n label: column.label ?? fieldLabel(fields, column.field),\n })) ??\n fields.map((field) => ({\n field: field.key,\n label: field.label,\n align: 'left' as const,\n }));\n\n if (!items.length) {\n return (\n <div className={cn('flex w-full flex-col gap-4', className)}>\n <div className=\"flex items-center justify-between\">\n <h3 className=\"text-base font-semibold
|
|
1
|
+
{"version":3,"file":"DataViewTable.js","names":[],"sources":["../../../src/components/data-view/DataViewTable.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type {\n DataViewSpec,\n DataViewTableConfig,\n DataViewField,\n} from '@lssm/lib.contracts/data-views';\nimport { cn } from '../../lib/utils';\nimport { getAtPath, formatValue } from './utils';\n\nexport interface DataViewTableProps {\n spec: DataViewSpec;\n items: Record<string, unknown>[];\n className?: string;\n onRowClick?: (item: Record<string, unknown>) => void;\n emptyState?: React.ReactNode;\n headerActions?: React.ReactNode;\n footer?: React.ReactNode;\n}\n\nexport function DataViewTable({\n spec,\n items,\n className,\n onRowClick,\n emptyState,\n headerActions,\n footer,\n}: DataViewTableProps) {\n if (spec.view.kind !== 'table') {\n throw new Error(\n `DataViewTable received view kind \"${spec.view.kind}\", expected \"table\".`\n );\n }\n\n const view = spec.view as DataViewTableConfig;\n const fields = view.fields;\n const columns =\n view.columns?.map((column) => ({\n ...column,\n label: column.label ?? fieldLabel(fields, column.field),\n })) ??\n fields.map((field) => ({\n field: field.key,\n label: field.label,\n align: 'left' as const,\n }));\n\n if (!items.length) {\n return (\n <div className={cn('flex w-full flex-col gap-4', className)}>\n <div className=\"flex items-center justify-between\">\n <h3 className=\"text-foreground text-base font-semibold\">\n {spec.meta.title}\n </h3>\n {headerActions}\n </div>\n {emptyState ?? (\n <div className=\"border-muted-foreground/40 text-muted-foreground rounded-md border border-dashed p-8 text-center text-sm\">\n No records available.\n </div>\n )}\n </div>\n );\n }\n\n return (\n <div className={cn('flex w-full flex-col gap-4', className)}>\n <div className=\"flex items-center justify-between\">\n <h3 className=\"text-foreground text-base font-semibold\">\n {spec.meta.title}\n </h3>\n {headerActions}\n </div>\n <div className=\"border-border bg-card overflow-x-auto rounded-lg border shadow-sm\">\n <table\n className={cn(\n 'divide-border min-w-full divide-y text-sm',\n view.density === 'compact' ? 'text-sm' : 'text-base'\n )}\n >\n <thead className=\"bg-muted/50\">\n <tr>\n {columns.map((column, columnIdx) => (\n <th\n key={`${column.field}.${columnIdx}`}\n scope=\"col\"\n className={cn(\n 'text-muted-foreground px-4 py-3 text-left font-semibold',\n alignmentClass(column.align)\n )}\n >\n {column.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody className=\"divide-border bg-background divide-y\">\n {items.map((item, rowIdx) => (\n <tr\n key={rowIdx}\n className={cn(\n onRowClick &&\n 'hover:bg-muted/30 cursor-pointer transition-colors'\n )}\n onClick={() => onRowClick?.(item)}\n >\n {columns.map((column) => (\n <td\n key={column.field}\n className={cn(\n 'text-foreground px-4 py-3',\n alignmentClass(column.align)\n )}\n >\n {displayValue(item, fields, column.field)}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n {footer}\n </div>\n );\n}\n\nfunction fieldLabel(fields: DataViewField[], key: string) {\n return fields.find((field) => field.key === key)?.label ?? key;\n}\n\nfunction fieldByKey(fields: DataViewField[], key: string) {\n return fields.find((field) => field.key === key);\n}\n\nfunction displayValue(\n item: Record<string, unknown>,\n fields: DataViewField[],\n key: string\n) {\n const field = fieldByKey(fields, key);\n if (!field) return '';\n const value = getAtPath(item, field.dataPath);\n return formatValue(value, field.format);\n}\n\nfunction alignmentClass(\n align: 'left' | 'center' | 'right' | undefined\n): string | undefined {\n switch (align) {\n case 'center':\n return 'text-center';\n case 'right':\n return 'text-right';\n default:\n return 'text-left';\n }\n}\n"],"mappings":";;;;;;;;AAqBA,SAAgB,cAAc,EAC5B,MACA,OACA,WACA,YACA,YACA,eACA,UACqB;AACrB,KAAI,KAAK,KAAK,SAAS,QACrB,OAAM,IAAI,MACR,qCAAqC,KAAK,KAAK,KAAK,sBACrD;CAGH,MAAM,OAAO,KAAK;CAClB,MAAM,SAAS,KAAK;CACpB,MAAM,UACJ,KAAK,SAAS,KAAK,YAAY;EAC7B,GAAG;EACH,OAAO,OAAO,SAAS,WAAW,QAAQ,OAAO,MAAM;EACxD,EAAE,IACH,OAAO,KAAK,WAAW;EACrB,OAAO,MAAM;EACb,OAAO,MAAM;EACb,OAAO;EACR,EAAE;AAEL,KAAI,CAAC,MAAM,OACT,QACE,qBAAC;EAAI,WAAW,GAAG,8BAA8B,UAAU;aACzD,qBAAC;GAAI,WAAU;cACb,oBAAC;IAAG,WAAU;cACX,KAAK,KAAK;KACR,EACJ;IACG,EACL,cACC,oBAAC;GAAI,WAAU;aAA2G;IAEpH;GAEJ;AAIV,QACE,qBAAC;EAAI,WAAW,GAAG,8BAA8B,UAAU;;GACzD,qBAAC;IAAI,WAAU;eACb,oBAAC;KAAG,WAAU;eACX,KAAK,KAAK;MACR,EACJ;KACG;GACN,oBAAC;IAAI,WAAU;cACb,qBAAC;KACC,WAAW,GACT,6CACA,KAAK,YAAY,YAAY,YAAY,YAC1C;gBAED,oBAAC;MAAM,WAAU;gBACf,oBAAC,kBACE,QAAQ,KAAK,QAAQ,cACpB,oBAAC;OAEC,OAAM;OACN,WAAW,GACT,2DACA,eAAe,OAAO,MAAM,CAC7B;iBAEA,OAAO;SAPH,GAAG,OAAO,MAAM,GAAG,YAQrB,CACL,GACC;OACC,EACR,oBAAC;MAAM,WAAU;gBACd,MAAM,KAAK,MAAM,WAChB,oBAAC;OAEC,WAAW,GACT,cACE,qDACH;OACD,eAAe,aAAa,KAAK;iBAEhC,QAAQ,KAAK,WACZ,oBAAC;QAEC,WAAW,GACT,6BACA,eAAe,OAAO,MAAM,CAC7B;kBAEA,aAAa,MAAM,QAAQ,OAAO,MAAM;UANpC,OAAO,MAOT,CACL;SAjBG,OAkBF,CACL;OACI;MACF;KACJ;GACL;;GACG;;AAIV,SAAS,WAAW,QAAyB,KAAa;AACxD,QAAO,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,EAAE,SAAS;;AAG7D,SAAS,WAAW,QAAyB,KAAa;AACxD,QAAO,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI;;AAGlD,SAAS,aACP,MACA,QACA,KACA;CACA,MAAM,QAAQ,WAAW,QAAQ,IAAI;AACrC,KAAI,CAAC,MAAO,QAAO;AAEnB,QAAO,YADO,UAAU,MAAM,MAAM,SAAS,EACnB,MAAM,OAAO;;AAGzC,SAAS,eACP,OACoB;AACpB,SAAQ,OAAR;EACE,KAAK,SACH,QAAO;EACT,KAAK,QACH,QAAO;EACT,QACE,QAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["current: unknown"],"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
|
|
1
|
+
{"version":3,"file":"utils.js","names":["current: unknown"],"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,IAAIA,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$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime52 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_runtime52.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FormCardLayout, FormCardLayoutProps };
|
|
23
23
|
//# sourceMappingURL=FormCardLayout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime60 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_runtime60.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FormDialog, FormDialogProps };
|
|
25
25
|
//# sourceMappingURL=FormDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormDialog.js","names":[],"sources":["../../../src/components/forms/FormDialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from '@lssm/lib.ui-kit-web/ui/dialog';\n\nexport interface FormDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: React.ReactNode;\n description?: React.ReactNode;\n children: React.ReactNode; // form body\n footer?: React.ReactNode; // actions\n maxWidth?: string; // e.g., 'sm:max-w-[480px]'\n}\n\nexport function FormDialog({\n open,\n onOpenChange,\n title,\n description,\n children,\n footer,\n maxWidth = 'sm:max-w-[480px]',\n}: FormDialogProps) {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className={maxWidth}>\n <DialogHeader>\n <DialogTitle>{title}</DialogTitle>\n {description && <DialogDescription>{description}</DialogDescription>}\n </DialogHeader>\n {children}\n {footer && <DialogFooter>{footer}</DialogFooter>}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormDialog.js","names":[],"sources":["../../../src/components/forms/FormDialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n} from '@lssm/lib.ui-kit-web/ui/dialog';\n\nexport interface FormDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n title: React.ReactNode;\n description?: React.ReactNode;\n children: React.ReactNode; // form body\n footer?: React.ReactNode; // actions\n maxWidth?: string; // e.g., 'sm:max-w-[480px]'\n}\n\nexport function FormDialog({\n open,\n onOpenChange,\n title,\n description,\n children,\n footer,\n maxWidth = 'sm:max-w-[480px]',\n}: FormDialogProps) {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className={maxWidth}>\n <DialogHeader>\n <DialogTitle>{title}</DialogTitle>\n {description && <DialogDescription>{description}</DialogDescription>}\n </DialogHeader>\n {children}\n {footer && <DialogFooter>{footer}</DialogFooter>}\n </DialogContent>\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;AAsBA,SAAgB,WAAW,EACzB,MACA,cACA,OACA,aACA,UACA,QACA,WAAW,sBACO;AAClB,QACE,oBAAC;EAAa;EAAoB;YAChC,qBAAC;GAAc,WAAW;;IACxB,qBAAC,2BACC,oBAAC,yBAAa,QAAoB,EACjC,eAAe,oBAAC,+BAAmB,cAAgC,IACvD;IACd;IACA,UAAU,oBAAC,0BAAc,SAAsB;;IAClC;GACT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime41 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$1.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
|
-
}):
|
|
11
|
+
}): react_jsx_runtime41.JSX.Element;
|
|
12
12
|
declare function FormRow({
|
|
13
13
|
children,
|
|
14
14
|
className
|
|
15
15
|
}: {
|
|
16
16
|
children: React$1.ReactNode;
|
|
17
17
|
className?: string;
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime41.JSX.Element;
|
|
19
19
|
declare function FormGrid({
|
|
20
20
|
children,
|
|
21
21
|
cols,
|
|
@@ -24,7 +24,7 @@ declare function FormGrid({
|
|
|
24
24
|
children: React$1.ReactNode;
|
|
25
25
|
cols?: 1 | 2 | 3 | 4;
|
|
26
26
|
className?: string;
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime41.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { FormGrid, FormRow, FormSection };
|
|
30
30
|
//# sourceMappingURL=FormLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormLayout.js","names":[],"sources":["../../../src/components/forms/FormLayout.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nexport function FormSection({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n return <div className={cn('space-y-4', className)}>{children}</div>;\n}\n\nexport function FormRow({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n return (\n <div className={cn('grid grid-cols-1 gap-4 md:grid-cols-2', className)}>\n {children}\n </div>\n );\n}\n\nexport function FormGrid({\n children,\n cols = 2,\n className,\n}: {\n children: React.ReactNode;\n cols?: 1 | 2 | 3 | 4;\n className?: string;\n}) {\n const preset =\n cols === 1\n ? 'grid-cols-1'\n : cols === 2\n ? 'grid-cols-2'\n : cols === 3\n ? 'grid-cols-3'\n : 'grid-cols-4';\n return <div className={cn('grid gap-4', preset, className)}>{children}</div>;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormLayout.js","names":[],"sources":["../../../src/components/forms/FormLayout.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nexport function FormSection({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n return <div className={cn('space-y-4', className)}>{children}</div>;\n}\n\nexport function FormRow({\n children,\n className,\n}: {\n children: React.ReactNode;\n className?: string;\n}) {\n return (\n <div className={cn('grid grid-cols-1 gap-4 md:grid-cols-2', className)}>\n {children}\n </div>\n );\n}\n\nexport function FormGrid({\n children,\n cols = 2,\n className,\n}: {\n children: React.ReactNode;\n cols?: 1 | 2 | 3 | 4;\n className?: string;\n}) {\n const preset =\n cols === 1\n ? 'grid-cols-1'\n : cols === 2\n ? 'grid-cols-2'\n : cols === 3\n ? 'grid-cols-3'\n : 'grid-cols-4';\n return <div className={cn('grid gap-4', preset, className)}>{children}</div>;\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,YAAY,EAC1B,UACA,aAIC;AACD,QAAO,oBAAC;EAAI,WAAW,GAAG,aAAa,UAAU;EAAG;GAAe;;AAGrE,SAAgB,QAAQ,EACtB,UACA,aAIC;AACD,QACE,oBAAC;EAAI,WAAW,GAAG,yCAAyC,UAAU;EACnE;GACG;;AAIV,SAAgB,SAAS,EACvB,UACA,OAAO,GACP,aAKC;AASD,QAAO,oBAAC;EAAI,WAAW,GAAG,cAPxB,SAAS,IACL,gBACA,SAAS,IACP,gBACA,SAAS,IACP,gBACA,eACsC,UAAU;EAAG;GAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime40 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_runtime40.JSX.Element | null;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { FormOneByOneLayout, FormOneByOneLayoutProps, OneByOneFieldDef };
|
|
26
26
|
//# sourceMappingURL=FormOneByOneLayout.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime120 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_runtime120.JSX.Element | null;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { FormStepsLayout, FormStepsLayoutProps, StepDef };
|
|
27
27
|
//# sourceMappingURL=FormStepsLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStepsLayout.d.ts","names":[],"sources":["../../../src/components/forms/FormStepsLayout.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,OAAA;;SAER,OAAA,CAAM;EAFE,WAAO,CAAA,EAGR,OAAA,CAAM,SAHE;EAEf,OAAM,EAEJ,OAAA,CAAM,SAFF;;AAEJ,UAGM,oBAAA,CAHA;EAAS,KAAA,EAIjB,OAJiB,EAAA;EAGT,cAAA,CAAA,EAAA,MAAoB;EAQrB,QAAA,CAAA,EAAA,GAAA,GAAA,IAAe,GALL,OAKK,CAAA,IAAA,CAAA;EAC7B,OAAA,CAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,GAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;;AAEA,iBAJc,eAAA,CAId;EAAA,KAAA;EAAA,cAAA;EAAA,QAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAEC,oBAFD,CAAA,EAEqB,
|
|
1
|
+
{"version":3,"file":"FormStepsLayout.d.ts","names":[],"sources":["../../../src/components/forms/FormStepsLayout.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,OAAA;;SAER,OAAA,CAAM;EAFE,WAAO,CAAA,EAGR,OAAA,CAAM,SAHE;EAEf,OAAM,EAEJ,OAAA,CAAM,SAFF;;AAEJ,UAGM,oBAAA,CAHA;EAAS,KAAA,EAIjB,OAJiB,EAAA;EAGT,cAAA,CAAA,EAAA,MAAoB;EAQrB,QAAA,CAAA,EAAA,GAAA,GAAA,IAAe,GALL,OAKK,CAAA,IAAA,CAAA;EAC7B,OAAA,CAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,GAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;;AAEA,iBAJc,eAAA,CAId;EAAA,KAAA;EAAA,cAAA;EAAA,QAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAEC,oBAFD,CAAA,EAEqB,oBAAA,CAAA,GAAA,CAAA,OAAA,GAFrB,IAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
3
3
|
import { UseFormReturn } from "@lssm/lib.ui-kit-web/ui/form";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { FieldValues } from "react-hook-form";
|
|
@@ -16,7 +16,7 @@ declare function ZodForm<TSchema extends z.ZodType<any, FieldValues>, TFieldValu
|
|
|
16
16
|
defaultValues,
|
|
17
17
|
onSubmit,
|
|
18
18
|
children
|
|
19
|
-
}: ZodFormProps<TSchema, TFieldValues, TOutput>):
|
|
19
|
+
}: ZodFormProps<TSchema, TFieldValues, TOutput>): react_jsx_runtime62.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ZodForm, ZodFormProps };
|
|
22
22
|
//# sourceMappingURL=ZodForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZodForm.js","names":[],"sources":["../../../src/components/forms/ZodForm.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n Form,\n useForm,\n type UseFormReturn,\n zodResolver,\n} from '@lssm/lib.ui-kit-web/ui/form';\nimport type { FieldValues } from 'react-hook-form';\nimport { z } from 'zod';\n\n// import { useForm, type UseFormReturn } from 'react-hook-form';\n\nexport interface ZodFormProps<\n TSchema extends z.ZodType<any, FieldValues>,\n TFieldValues extends FieldValues = z.input<TSchema>,\n TOutput = z.output<TSchema>,\n> {\n schema: TSchema;\n defaultValues?: Partial<TFieldValues> | Promise<Partial<TFieldValues>>;\n onSubmit: (data: TOutput) => Promise<void> | void;\n children: (f: UseFormReturn<TFieldValues, any, TOutput>) => React.ReactNode;\n}\n\nexport function ZodForm<\n TSchema extends z.ZodType<any, FieldValues>,\n TFieldValues extends FieldValues = z.input<TSchema>,\n TOutput = z.output<TSchema>,\n>({\n schema,\n defaultValues,\n onSubmit,\n children,\n}: ZodFormProps<TSchema, TFieldValues, TOutput>) {\n const form = useForm<TFieldValues, any, TOutput>({\n resolver: zodResolver<TFieldValues, any, TOutput>(schema as any),\n defaultValues: defaultValues as any,\n });\n return (\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)}>{children(form)}</form>\n </Form>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ZodForm.js","names":[],"sources":["../../../src/components/forms/ZodForm.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n Form,\n useForm,\n type UseFormReturn,\n zodResolver,\n} from '@lssm/lib.ui-kit-web/ui/form';\nimport type { FieldValues } from 'react-hook-form';\nimport { z } from 'zod';\n\n// import { useForm, type UseFormReturn } from 'react-hook-form';\n\nexport interface ZodFormProps<\n TSchema extends z.ZodType<any, FieldValues>,\n TFieldValues extends FieldValues = z.input<TSchema>,\n TOutput = z.output<TSchema>,\n> {\n schema: TSchema;\n defaultValues?: Partial<TFieldValues> | Promise<Partial<TFieldValues>>;\n onSubmit: (data: TOutput) => Promise<void> | void;\n children: (f: UseFormReturn<TFieldValues, any, TOutput>) => React.ReactNode;\n}\n\nexport function ZodForm<\n TSchema extends z.ZodType<any, FieldValues>,\n TFieldValues extends FieldValues = z.input<TSchema>,\n TOutput = z.output<TSchema>,\n>({\n schema,\n defaultValues,\n onSubmit,\n children,\n}: ZodFormProps<TSchema, TFieldValues, TOutput>) {\n const form = useForm<TFieldValues, any, TOutput>({\n resolver: zodResolver<TFieldValues, any, TOutput>(schema as any),\n defaultValues: defaultValues as any,\n });\n return (\n <Form {...form}>\n <form onSubmit={form.handleSubmit(onSubmit)}>{children(form)}</form>\n </Form>\n );\n}\n"],"mappings":";;;;;;;;AAyBA,SAAgB,QAId,EACA,QACA,eACA,UACA,YAC+C;CAC/C,MAAM,OAAO,QAAoC;EAC/C,UAAU,YAAwC,OAAc;EACjD;EAChB,CAAC;AACF,QACE,oBAAC;EAAK,GAAI;YACR,oBAAC;GAAK,UAAU,KAAK,aAAa,SAAS;aAAG,SAAS,KAAK;IAAQ;GAC/D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime44 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$1.ReactNode;
|
|
12
12
|
}[];
|
|
13
13
|
className?: string;
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime44.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$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime51 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$1.ReactNode;
|
|
12
12
|
}[];
|
|
13
13
|
className?: string;
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime51.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { KeyValueList };
|
|
17
17
|
//# sourceMappingURL=KeyValueList.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalCallout.d.ts
|
|
7
7
|
declare const calloutVariants: (props?: ({
|
|
8
8
|
tone?: "info" | "warning" | "danger" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
10
10
|
type LegalCalloutProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof calloutVariants>;
|
|
11
11
|
declare function LegalCallout({
|
|
12
12
|
tone,
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: LegalCalloutProps):
|
|
15
|
+
}: LegalCalloutProps): react_jsx_runtime45.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { LegalCallout, LegalCalloutProps, calloutVariants };
|
|
18
18
|
//# sourceMappingURL=LegalCallout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalCallout.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalCallout.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM;;IAWJ,
|
|
1
|
+
{"version":3,"file":"LegalCallout.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalCallout.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM;;IAWJ,+BAAA,CAAA;KAEU,iBAAA,GAAoB,OAAA,CAAM,eAAe,kBACnD,oBAAoB;AAdhB,iBAgBU,YAAA,CALd;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAK0D,iBAL1D,CAAA,EAK2E,mBAAA,CAAA,GAAA,CAAA,OAL3E"}
|
|
@@ -12,7 +12,7 @@ const calloutVariants = cva("rounded-md border p-4", {
|
|
|
12
12
|
} },
|
|
13
13
|
defaultVariants: { tone: "info" }
|
|
14
14
|
});
|
|
15
|
-
function LegalCallout({ tone, className
|
|
15
|
+
function LegalCallout({ tone, className, ...props }) {
|
|
16
16
|
return /* @__PURE__ */ jsx("div", {
|
|
17
17
|
className: cn(calloutVariants({ tone }), className),
|
|
18
18
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalCallout.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalCallout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst calloutVariants = cva('rounded-md border p-4', {\n variants: {\n tone: {\n info: 'border-border bg-muted/30',\n warning: 'border-warning/50 bg-warning/10',\n danger: 'border-destructive/50 bg-destructive/10',\n },\n },\n defaultVariants: {\n tone: 'info',\n },\n});\n\nexport type LegalCalloutProps = React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof calloutVariants>;\n\nexport function LegalCallout({ tone, className, ...props }: LegalCalloutProps) {\n return (\n <div className={cn(calloutVariants({ tone }), className)} {...props} />\n );\n}\n\nexport { calloutVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,yBAAyB;CACnD,UAAU,EACR,MAAM;EACJ,MAAM;EACN,SAAS;EACT,QAAQ;EACT,EACF;CACD,iBAAiB,EACf,MAAM,QACP;CACF,CAAC;AAKF,SAAgB,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LegalCallout.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalCallout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst calloutVariants = cva('rounded-md border p-4', {\n variants: {\n tone: {\n info: 'border-border bg-muted/30',\n warning: 'border-warning/50 bg-warning/10',\n danger: 'border-destructive/50 bg-destructive/10',\n },\n },\n defaultVariants: {\n tone: 'info',\n },\n});\n\nexport type LegalCalloutProps = React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof calloutVariants>;\n\nexport function LegalCallout({ tone, className, ...props }: LegalCalloutProps) {\n return (\n <div className={cn(calloutVariants({ tone }), className)} {...props} />\n );\n}\n\nexport { calloutVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,yBAAyB;CACnD,UAAU,EACR,MAAM;EACJ,MAAM;EACN,SAAS;EACT,QAAQ;EACT,EACF;CACD,iBAAiB,EACf,MAAM,QACP;CACF,CAAC;AAKF,SAAgB,aAAa,EAAE,MAAM,WAAW,GAAG,SAA4B;AAC7E,QACE,oBAAC;EAAI,WAAW,GAAG,gBAAgB,EAAE,MAAM,CAAC,EAAE,UAAU;EAAE,GAAI;GAAS"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types9 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalHeading.d.ts
|
|
7
7
|
declare const headingVariants: (props?: ({
|
|
8
8
|
level?: "h1" | "h2" | "h3" | "h4" | null | undefined;
|
|
9
9
|
tone?: "default" | "muted" | "accent" | null | undefined;
|
|
10
|
-
spacing?: "
|
|
11
|
-
} &
|
|
10
|
+
spacing?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string;
|
|
12
12
|
type LegalHeadingProps = React$1.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof headingVariants> & {
|
|
13
13
|
as?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
14
14
|
};
|
|
@@ -19,7 +19,7 @@ declare function LegalHeading({
|
|
|
19
19
|
spacing,
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: LegalHeadingProps):
|
|
22
|
+
}: LegalHeadingProps): react_jsx_runtime61.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { LegalHeading, LegalHeadingProps, headingVariants };
|
|
25
25
|
//# sourceMappingURL=LegalHeading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalHeading.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalHeading.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM,uBAyBJ;;;;AA5BgE,CAAA,GA4BhE,
|
|
1
|
+
{"version":3,"file":"LegalHeading.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalHeading.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM,uBAyBJ;;;;AA5BgE,CAAA,GA4BhE,+BAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAEU,KAAA,iBAAA,GAAoB,OAAA,CAAM,cAAT,CAAwB,kBAAxB,CAAA,GAC3B,YAD2B,CAAA,OACP,eADO,CAAA,GAAA;EAAwB,EAAA,CAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA;CAArB;AACV,iBAIN,YAAA,CAJM;EAAA,EAAA;EAAA,KAAA;EAAA,IAAA;EAAA,OAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAWnB,iBAXmB,CAAA,EAWF,mBAAA,CAAA,GAAA,CAAA,OAXE"}
|
|
@@ -30,7 +30,7 @@ const headingVariants = cva("text-foreground tracking-tight", {
|
|
|
30
30
|
spacing: "md"
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
function LegalHeading({ as, level, tone, spacing, className
|
|
33
|
+
function LegalHeading({ as, level, tone, spacing, className, ...props }) {
|
|
34
34
|
return /* @__PURE__ */ jsx(as ?? level ?? "h2", {
|
|
35
35
|
className: cn(headingVariants({
|
|
36
36
|
level,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalHeading.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalHeading.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst headingVariants = cva('text-foreground tracking-tight', {\n variants: {\n level: {\n h1: 'text-3xl font-semibold md:text-4xl',\n h2: 'text-2xl font-semibold md:text-3xl',\n h3: 'text-xl font-semibold md:text-2xl',\n h4: 'text-lg font-semibold md:text-xl',\n },\n tone: {\n default: '',\n muted: 'text-muted-foreground',\n accent: 'text-primary',\n },\n spacing: {\n none: '',\n sm: 'mt-4',\n md: 'mt-6',\n lg: 'mt-8',\n },\n },\n defaultVariants: {\n level: 'h2',\n tone: 'default',\n spacing: 'md',\n },\n});\n\nexport type LegalHeadingProps = React.HTMLAttributes<HTMLHeadingElement> &\n VariantProps<typeof headingVariants> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4';\n };\n\nexport function LegalHeading({\n as,\n level,\n tone,\n spacing,\n className,\n ...props\n}: LegalHeadingProps) {\n const Comp = (as ?? level ?? 'h2') as any;\n return (\n <Comp\n className={cn(headingVariants({ level, tone, spacing }), className)}\n {...props}\n />\n );\n}\n\nexport { headingVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,kCAAkC;CAC5D,UAAU;EACR,OAAO;GACL,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,MAAM;GACJ,SAAS;GACT,OAAO;GACP,QAAQ;GACT;EACD,SAAS;GACP,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,OAAO;EACP,MAAM;EACN,SAAS;EACV;CACF,CAAC;AAOF,SAAgB,aAAa,EAC3B,IACA,OACA,MACA,SACA,
|
|
1
|
+
{"version":3,"file":"LegalHeading.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalHeading.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst headingVariants = cva('text-foreground tracking-tight', {\n variants: {\n level: {\n h1: 'text-3xl font-semibold md:text-4xl',\n h2: 'text-2xl font-semibold md:text-3xl',\n h3: 'text-xl font-semibold md:text-2xl',\n h4: 'text-lg font-semibold md:text-xl',\n },\n tone: {\n default: '',\n muted: 'text-muted-foreground',\n accent: 'text-primary',\n },\n spacing: {\n none: '',\n sm: 'mt-4',\n md: 'mt-6',\n lg: 'mt-8',\n },\n },\n defaultVariants: {\n level: 'h2',\n tone: 'default',\n spacing: 'md',\n },\n});\n\nexport type LegalHeadingProps = React.HTMLAttributes<HTMLHeadingElement> &\n VariantProps<typeof headingVariants> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4';\n };\n\nexport function LegalHeading({\n as,\n level,\n tone,\n spacing,\n className,\n ...props\n}: LegalHeadingProps) {\n const Comp = (as ?? level ?? 'h2') as any;\n return (\n <Comp\n className={cn(headingVariants({ level, tone, spacing }), className)}\n {...props}\n />\n );\n}\n\nexport { headingVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,kCAAkC;CAC5D,UAAU;EACR,OAAO;GACL,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,MAAM;GACJ,SAAS;GACT,OAAO;GACP,QAAQ;GACT;EACD,SAAS;GACP,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,OAAO;EACP,MAAM;EACN,SAAS;EACV;CACF,CAAC;AAOF,SAAgB,aAAa,EAC3B,IACA,OACA,MACA,SACA,WACA,GAAG,SACiB;AAEpB,QACE,oBAFY,MAAM,SAAS;EAGzB,WAAW,GAAG,gBAAgB;GAAE;GAAO;GAAM;GAAS,CAAC,EAAE,UAAU;EACnE,GAAI;GACJ"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalList.d.ts
|
|
7
7
|
declare const listVariants: (props?: ({
|
|
8
8
|
type?: "none" | "unordered" | "ordered" | null | undefined;
|
|
9
9
|
spacing?: "sm" | "md" | "lg" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
11
11
|
type LegalListProps = React$1.HTMLAttributes<HTMLUListElement | HTMLOListElement> & VariantProps<typeof listVariants>;
|
|
12
12
|
declare function LegalList({
|
|
13
13
|
type,
|
|
@@ -15,7 +15,7 @@ declare function LegalList({
|
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
...props
|
|
18
|
-
}: LegalListProps):
|
|
18
|
+
}: LegalListProps): react_jsx_runtime57.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { LegalList, LegalListProps, listVariants };
|
|
21
21
|
//# sourceMappingURL=LegalList.d.ts.map
|
|
@@ -22,7 +22,7 @@ const listVariants = cva("", {
|
|
|
22
22
|
spacing: "md"
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
function LegalList({ type, spacing, className, children
|
|
25
|
+
function LegalList({ type, spacing, className, children, ...props }) {
|
|
26
26
|
return /* @__PURE__ */ jsx(type === "ordered" ? "ol" : "ul", {
|
|
27
27
|
className: cn(listVariants({
|
|
28
28
|
type,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalList.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst listVariants = cva('', {\n variants: {\n type: {\n unordered: 'list-disc pl-6',\n ordered: 'list-decimal pl-6',\n none: 'pl-0',\n },\n spacing: {\n sm: 'space-y-1',\n md: 'space-y-2',\n lg: 'space-y-3',\n },\n },\n defaultVariants: {\n type: 'unordered',\n spacing: 'md',\n },\n});\n\nexport type LegalListProps = React.HTMLAttributes<\n HTMLUListElement | HTMLOListElement\n> &\n VariantProps<typeof listVariants>;\n\nexport function LegalList({\n type,\n spacing,\n className,\n children,\n ...props\n}: LegalListProps) {\n const Comp: any = type === 'ordered' ? 'ol' : 'ul';\n return (\n <Comp className={cn(listVariants({ type, spacing }), className)} {...props}>\n {children}\n </Comp>\n );\n}\n\nexport { listVariants };\n"],"mappings":";;;;;;AAIA,MAAM,eAAe,IAAI,IAAI;CAC3B,UAAU;EACR,MAAM;GACJ,WAAW;GACX,SAAS;GACT,MAAM;GACP;EACD,SAAS;GACP,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACF,CAAC;AAOF,SAAgB,UAAU,EACxB,MACA,SACA,WACA,
|
|
1
|
+
{"version":3,"file":"LegalList.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst listVariants = cva('', {\n variants: {\n type: {\n unordered: 'list-disc pl-6',\n ordered: 'list-decimal pl-6',\n none: 'pl-0',\n },\n spacing: {\n sm: 'space-y-1',\n md: 'space-y-2',\n lg: 'space-y-3',\n },\n },\n defaultVariants: {\n type: 'unordered',\n spacing: 'md',\n },\n});\n\nexport type LegalListProps = React.HTMLAttributes<\n HTMLUListElement | HTMLOListElement\n> &\n VariantProps<typeof listVariants>;\n\nexport function LegalList({\n type,\n spacing,\n className,\n children,\n ...props\n}: LegalListProps) {\n const Comp: any = type === 'ordered' ? 'ol' : 'ul';\n return (\n <Comp className={cn(listVariants({ type, spacing }), className)} {...props}>\n {children}\n </Comp>\n );\n}\n\nexport { listVariants };\n"],"mappings":";;;;;;AAIA,MAAM,eAAe,IAAI,IAAI;CAC3B,UAAU;EACR,MAAM;GACJ,WAAW;GACX,SAAS;GACT,MAAM;GACP;EACD,SAAS;GACP,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACF,CAAC;AAOF,SAAgB,UAAU,EACxB,MACA,SACA,WACA,UACA,GAAG,SACc;AAEjB,QACE,oBAFgB,SAAS,YAAY,OAAO;EAEtC,WAAW,GAAG,aAAa;GAAE;GAAM;GAAS,CAAC,EAAE,UAAU;EAAE,GAAI;EAClE;GACI"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types7 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalSection.d.ts
|
|
7
7
|
declare const sectionVariants: (props?: ({
|
|
8
8
|
spacing?: "sm" | "md" | "lg" | null | undefined;
|
|
9
9
|
border?: "none" | "top" | "bottom" | "both" | null | undefined;
|
|
10
10
|
tone?: "subtle" | "plain" | null | undefined;
|
|
11
|
-
} &
|
|
11
|
+
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
12
12
|
type LegalSectionProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof sectionVariants>;
|
|
13
13
|
declare function LegalSection({
|
|
14
14
|
spacing,
|
|
@@ -16,7 +16,7 @@ declare function LegalSection({
|
|
|
16
16
|
tone,
|
|
17
17
|
className,
|
|
18
18
|
...props
|
|
19
|
-
}: LegalSectionProps):
|
|
19
|
+
}: LegalSectionProps): react_jsx_runtime50.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { LegalSection, LegalSectionProps, sectionVariants };
|
|
22
22
|
//# sourceMappingURL=LegalSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalSection.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalSection.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM,uBAuBJ;;;;AA1BgE,CAAA,GA0BhE,
|
|
1
|
+
{"version":3,"file":"LegalSection.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalSection.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM,uBAuBJ;;;;AA1BgE,CAAA,GA0BhE,+BAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAEU,KAAA,iBAAA,GAAoB,OAAA,CAAM,cAAT,CAAwB,cAAxB,CAAA,GAC3B,YAD2B,CAAA,OACP,eADO,CAAA;AAAwB,iBAGrC,YAAA,CAHqC;EAAA,OAAA;EAAA,MAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EASlD,iBATkD,CAAA,EASjC,mBAAA,CAAA,GAAA,CAAA,OATiC"}
|
|
@@ -28,7 +28,7 @@ const sectionVariants = cva("space-y-3", {
|
|
|
28
28
|
tone: "plain"
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
function LegalSection({ spacing, border, tone, className
|
|
31
|
+
function LegalSection({ spacing, border, tone, className, ...props }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", {
|
|
33
33
|
className: cn(sectionVariants({
|
|
34
34
|
spacing,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalSection.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalSection.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst sectionVariants = cva('space-y-3', {\n variants: {\n spacing: {\n sm: 'py-3',\n md: 'py-4',\n lg: 'py-6',\n },\n border: {\n none: '',\n top: 'border-t',\n bottom: 'border-b',\n both: 'border-y',\n },\n tone: {\n plain: '',\n subtle: 'bg-muted/30',\n },\n },\n defaultVariants: {\n spacing: 'md',\n border: 'none',\n tone: 'plain',\n },\n});\n\nexport type LegalSectionProps = React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof sectionVariants>;\n\nexport function LegalSection({\n spacing,\n border,\n tone,\n className,\n ...props\n}: LegalSectionProps) {\n return (\n <div\n className={cn(sectionVariants({ spacing, border, tone }), className)}\n {...props}\n />\n );\n}\n\nexport { sectionVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,aAAa;CACvC,UAAU;EACR,SAAS;GACP,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,QAAQ;GACN,MAAM;GACN,KAAK;GACL,QAAQ;GACR,MAAM;GACP;EACD,MAAM;GACJ,OAAO;GACP,QAAQ;GACT;EACF;CACD,iBAAiB;EACf,SAAS;EACT,QAAQ;EACR,MAAM;EACP;CACF,CAAC;AAKF,SAAgB,aAAa,EAC3B,SACA,QACA,MACA,
|
|
1
|
+
{"version":3,"file":"LegalSection.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalSection.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst sectionVariants = cva('space-y-3', {\n variants: {\n spacing: {\n sm: 'py-3',\n md: 'py-4',\n lg: 'py-6',\n },\n border: {\n none: '',\n top: 'border-t',\n bottom: 'border-b',\n both: 'border-y',\n },\n tone: {\n plain: '',\n subtle: 'bg-muted/30',\n },\n },\n defaultVariants: {\n spacing: 'md',\n border: 'none',\n tone: 'plain',\n },\n});\n\nexport type LegalSectionProps = React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof sectionVariants>;\n\nexport function LegalSection({\n spacing,\n border,\n tone,\n className,\n ...props\n}: LegalSectionProps) {\n return (\n <div\n className={cn(sectionVariants({ spacing, border, tone }), className)}\n {...props}\n />\n );\n}\n\nexport { sectionVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,aAAa;CACvC,UAAU;EACR,SAAS;GACP,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,QAAQ;GACN,MAAM;GACN,KAAK;GACL,QAAQ;GACR,MAAM;GACP;EACD,MAAM;GACJ,OAAO;GACP,QAAQ;GACT;EACF;CACD,iBAAiB;EACf,SAAS;EACT,QAAQ;EACR,MAAM;EACP;CACF,CAAC;AAKF,SAAgB,aAAa,EAC3B,SACA,QACA,MACA,WACA,GAAG,SACiB;AACpB,QACE,oBAAC;EACC,WAAW,GAAG,gBAAgB;GAAE;GAAS;GAAQ;GAAM,CAAC,EAAE,UAAU;EACpE,GAAI;GACJ"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalText.d.ts
|
|
7
7
|
declare const textVariants: (props?: ({
|
|
8
8
|
tone?: "default" | "danger" | "muted" | null | undefined;
|
|
9
|
-
size?: "
|
|
10
|
-
spacing?: "
|
|
11
|
-
} &
|
|
9
|
+
size?: "base" | "sm" | "lg" | null | undefined;
|
|
10
|
+
spacing?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
12
12
|
type LegalTextProps = React$1.HTMLAttributes<HTMLParagraphElement> & VariantProps<typeof textVariants> & {
|
|
13
13
|
as?: 'p' | 'div' | 'span';
|
|
14
14
|
};
|
|
@@ -19,7 +19,7 @@ declare function LegalText({
|
|
|
19
19
|
spacing,
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: LegalTextProps):
|
|
22
|
+
}: LegalTextProps): react_jsx_runtime46.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { LegalText, LegalTextProps, textVariants };
|
|
25
25
|
//# sourceMappingURL=LegalText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalText.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalText.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM,oBAwBJ;;;;AA3BgE,CAAA,GA2BhE,
|
|
1
|
+
{"version":3,"file":"LegalText.d.ts","names":[],"sources":["../../../../src/components/legal/atoms/LegalText.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM,oBAwBJ;;;;AA3BgE,CAAA,GA2BhE,+BAAA,CAAA,SAAA,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AAEU,KAAA,cAAA,GAAiB,OAAA,CAAM,cAAT,CAAwB,oBAAxB,CAAA,GACxB,YADwB,CAAA,OACJ,YADI,CAAA,GAAA;EAAwB,EAAA,CAAA,EAAA,GAAA,GAAA,KAAA,GAAA,MAAA;CAArB;AACP,iBAEN,SAAA,CAFM;EAAA,EAAA;EAAA,IAAA;EAAA,IAAA;EAAA,OAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EASnB,cATmB,CAAA,EASL,mBAAA,CAAA,GAAA,CAAA,OATK"}
|
|
@@ -29,7 +29,7 @@ const textVariants = cva("text-base leading-relaxed", {
|
|
|
29
29
|
spacing: "sm"
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
function LegalText({ as = "p", tone, size, spacing, className
|
|
32
|
+
function LegalText({ as = "p", tone, size, spacing, className, ...props }) {
|
|
33
33
|
return /* @__PURE__ */ jsx(as, {
|
|
34
34
|
className: cn(textVariants({
|
|
35
35
|
tone,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegalText.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalText.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst textVariants = cva('text-base leading-relaxed', {\n variants: {\n tone: {\n default: 'text-foreground',\n muted: 'text-muted-foreground',\n danger: 'text-destructive',\n },\n size: {\n base: 'text-base',\n sm: 'text-sm',\n lg: 'text-lg',\n },\n spacing: {\n none: '',\n sm: 'mt-2',\n md: 'mt-3',\n lg: 'mt-4',\n },\n },\n defaultVariants: {\n tone: 'default',\n size: 'base',\n spacing: 'sm',\n },\n});\n\nexport type LegalTextProps = React.HTMLAttributes<HTMLParagraphElement> &\n VariantProps<typeof textVariants> & { as?: 'p' | 'div' | 'span' };\n\nexport function LegalText({\n as = 'p',\n tone,\n size,\n spacing,\n className,\n ...props\n}: LegalTextProps) {\n const Comp: any = as;\n return (\n <Comp\n className={cn(textVariants({ tone, size, spacing }), className)}\n {...props}\n />\n );\n}\n\nexport { textVariants };\n"],"mappings":";;;;;;AAIA,MAAM,eAAe,IAAI,6BAA6B;CACpD,UAAU;EACR,MAAM;GACJ,SAAS;GACT,OAAO;GACP,QAAQ;GACT;EACD,MAAM;GACJ,MAAM;GACN,IAAI;GACJ,IAAI;GACL;EACD,SAAS;GACP,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,MAAM;EACN,MAAM;EACN,SAAS;EACV;CACF,CAAC;AAKF,SAAgB,UAAU,EACxB,KAAK,KACL,MACA,MACA,SACA,
|
|
1
|
+
{"version":3,"file":"LegalText.js","names":[],"sources":["../../../../src/components/legal/atoms/LegalText.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@lssm/lib.ui-kit-web/ui/utils';\n\nconst textVariants = cva('text-base leading-relaxed', {\n variants: {\n tone: {\n default: 'text-foreground',\n muted: 'text-muted-foreground',\n danger: 'text-destructive',\n },\n size: {\n base: 'text-base',\n sm: 'text-sm',\n lg: 'text-lg',\n },\n spacing: {\n none: '',\n sm: 'mt-2',\n md: 'mt-3',\n lg: 'mt-4',\n },\n },\n defaultVariants: {\n tone: 'default',\n size: 'base',\n spacing: 'sm',\n },\n});\n\nexport type LegalTextProps = React.HTMLAttributes<HTMLParagraphElement> &\n VariantProps<typeof textVariants> & { as?: 'p' | 'div' | 'span' };\n\nexport function LegalText({\n as = 'p',\n tone,\n size,\n spacing,\n className,\n ...props\n}: LegalTextProps) {\n const Comp: any = as;\n return (\n <Comp\n className={cn(textVariants({ tone, size, spacing }), className)}\n {...props}\n />\n );\n}\n\nexport { textVariants };\n"],"mappings":";;;;;;AAIA,MAAM,eAAe,IAAI,6BAA6B;CACpD,UAAU;EACR,MAAM;GACJ,SAAS;GACT,OAAO;GACP,QAAQ;GACT;EACD,MAAM;GACJ,MAAM;GACN,IAAI;GACJ,IAAI;GACL;EACD,SAAS;GACP,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,MAAM;EACN,MAAM;EACN,SAAS;EACV;CACF,CAAC;AAKF,SAAgB,UAAU,EACxB,KAAK,KACL,MACA,MACA,SACA,WACA,GAAG,SACc;AAEjB,QACE,oBAFgB;EAGd,WAAW,GAAG,aAAa;GAAE;GAAM;GAAM;GAAS,CAAC,EAAE,UAAU;EAC/D,GAAI;GACJ"}
|