@lssm/lib.design-system 0.0.0-canary-20251217060433 → 0.0.0-canary-20251217062139
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/_virtual/rolldown_runtime.js +1 -12
- package/dist/components/agent/AgentMonitor.js +3 -3
- package/dist/components/agent/ApprovalQueue.d.ts +2 -2
- package/dist/components/agent/ApprovalQueue.js +4 -5
- package/dist/components/atoms/ActionButtons.d.ts +3 -3
- package/dist/components/atoms/ActionButtons.js +3 -3
- package/dist/components/atoms/Button.d.ts +6 -6
- package/dist/components/atoms/Button.js +2 -2
- package/dist/components/atoms/ButtonLink.js +2 -2
- package/dist/components/atoms/Cta.d.ts +7 -7
- package/dist/components/atoms/Cta.js +2 -2
- package/dist/components/atoms/DataChips.d.ts +2 -2
- package/dist/components/atoms/DataChips.js +1 -1
- package/dist/components/atoms/EmptyState.d.ts +2 -2
- package/dist/components/atoms/EmptyState.js +1 -1
- package/dist/components/atoms/ErrorState.d.ts +6 -6
- package/dist/components/atoms/ErrorState.js +1 -1
- package/dist/components/atoms/Input.d.ts +2 -2
- package/dist/components/atoms/Input.js +1 -1
- package/dist/components/atoms/Link.web.d.ts +3 -3
- package/dist/components/atoms/Link.web.js +4 -6
- package/dist/components/atoms/LoaderCircular.d.ts +3 -3
- package/dist/components/atoms/LoaderCircular.js +2 -2
- package/dist/components/atoms/NavBrand.d.ts +3 -3
- package/dist/components/atoms/NavBrand.js +1 -1
- package/dist/components/atoms/Stepper.d.ts +2 -2
- package/dist/components/atoms/Stepper.js +1 -1
- package/dist/components/atoms/Textarea.d.ts +2 -2
- package/dist/components/atoms/Textarea.js +4 -4
- package/dist/components/data-view/DataViewDetail.d.ts +3 -3
- package/dist/components/data-view/DataViewList.d.ts +3 -3
- package/dist/components/data-view/DataViewRenderer.d.ts +5 -5
- package/dist/components/data-view/DataViewRenderer.js +3 -3
- package/dist/components/data-view/DataViewTable.d.ts +4 -4
- package/dist/components/forms/ActionForm.d.ts +3 -3
- package/dist/components/forms/ActionForm.js +1 -1
- package/dist/components/forms/FormCardLayout.d.ts +5 -5
- package/dist/components/forms/FormCardLayout.js +2 -2
- package/dist/components/forms/FormDialog.d.ts +5 -5
- package/dist/components/forms/FormDialog.js +1 -1
- package/dist/components/forms/FormLayout.d.ts +4 -4
- package/dist/components/forms/FormLayout.js +1 -1
- package/dist/components/forms/FormOneByOneLayout.d.ts +4 -4
- package/dist/components/forms/FormOneByOneLayout.js +4 -4
- package/dist/components/forms/FormStepsLayout.d.ts +4 -4
- package/dist/components/forms/FormStepsLayout.js +5 -5
- package/dist/components/forms/ZodForm.d.ts +4 -4
- package/dist/components/forms/ZodForm.js +1 -1
- package/dist/components/legal/atoms/DefinitionList.d.ts +3 -3
- package/dist/components/legal/atoms/DefinitionList.js +1 -1
- package/dist/components/legal/atoms/KeyValueList.d.ts +3 -3
- package/dist/components/legal/atoms/KeyValueList.js +1 -1
- package/dist/components/legal/atoms/LegalCallout.d.ts +2 -2
- package/dist/components/legal/atoms/LegalCallout.js +1 -1
- package/dist/components/legal/atoms/LegalHeading.d.ts +2 -2
- package/dist/components/legal/atoms/LegalHeading.js +1 -1
- package/dist/components/legal/atoms/LegalList.d.ts +2 -2
- package/dist/components/legal/atoms/LegalList.js +1 -1
- package/dist/components/legal/atoms/LegalSection.d.ts +2 -2
- package/dist/components/legal/atoms/LegalSection.js +1 -1
- package/dist/components/legal/atoms/LegalText.d.ts +2 -2
- package/dist/components/legal/atoms/LegalText.js +1 -1
- package/dist/components/legal/molecules/Consent.d.ts +5 -5
- package/dist/components/legal/molecules/Consent.js +2 -2
- package/dist/components/legal/molecules/ContactFields.js +1 -1
- package/dist/components/legal/molecules/LegalMeta.js +1 -1
- package/dist/components/legal/molecules/LegalTOC.d.ts +3 -3
- package/dist/components/legal/molecules/LegalTOC.js +1 -1
- package/dist/components/legal/organisms/ContactForm.d.ts +2 -2
- package/dist/components/legal/organisms/ContactForm.js +3 -3
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +3 -3
- package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
- package/dist/components/legal/organisms/GDPRRights.d.ts +3 -3
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +3 -3
- package/dist/components/legal/organisms/LegalPageLayout.js +1 -1
- package/dist/components/legal/templates/ContactTemplate.d.ts +2 -2
- package/dist/components/legal/templates/ContactTemplate.js +3 -3
- package/dist/components/legal/templates/CookiesTemplate.d.ts +7 -7
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +7 -7
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +5 -5
- package/dist/components/legal/templates/TermsTemplate.d.ts +5 -5
- package/dist/components/marketing/MarketingCard.d.ts +4 -4
- package/dist/components/marketing/MarketingCard.js +3 -3
- package/dist/components/marketing/MarketingCardsSection.d.ts +2 -2
- package/dist/components/marketing/MarketingCardsSection.js +1 -1
- package/dist/components/marketing/MarketingComparisonSection.d.ts +5 -5
- package/dist/components/marketing/MarketingComparisonSection.js +3 -3
- package/dist/components/marketing/MarketingIconCard.d.ts +5 -5
- package/dist/components/marketing/MarketingIconCard.js +4 -3
- package/dist/components/marketing/MarketingSection.d.ts +5 -5
- package/dist/components/marketing/MarketingSection.js +3 -3
- package/dist/components/marketing/MarketingStepCard.d.ts +3 -3
- package/dist/components/marketing/MarketingStepCard.js +4 -3
- package/dist/components/molecules/AiLinkButton.js +5 -5
- package/dist/components/molecules/Breadcrumbs.d.ts +4 -4
- package/dist/components/molecules/Breadcrumbs.js +3 -3
- package/dist/components/molecules/CommandPalette.js +4 -4
- package/dist/components/molecules/CommandSearchTrigger.d.ts +4 -4
- package/dist/components/molecules/CommandSearchTrigger.js +5 -5
- package/dist/components/molecules/EntityCard.d.ts +9 -9
- package/dist/components/molecules/EntityCard.js +2 -2
- package/dist/components/molecules/FiltersToolbar.d.ts +4 -4
- package/dist/components/molecules/FiltersToolbar.js +6 -6
- package/dist/components/molecules/HoverPreview.d.ts +3 -3
- package/dist/components/molecules/HoverPreview.js +4 -2
- package/dist/components/molecules/LangSwitch.d.ts +2 -2
- package/dist/components/molecules/LangSwitchDropdown.js +4 -4
- package/dist/components/molecules/LoaderBlock.d.ts +3 -3
- package/dist/components/molecules/LoaderBlock.js +1 -1
- package/dist/components/molecules/MobileNavMenu.js +1 -1
- package/dist/components/molecules/NavItemCard.js +1 -1
- package/dist/components/molecules/NavMain.js +4 -4
- package/dist/components/molecules/NavUser.js +2 -2
- package/dist/components/molecules/OverviewCard.d.ts +2 -2
- package/dist/components/molecules/OverviewCard.js +3 -5
- package/dist/components/molecules/SkeletonBlock/index.web.js +2 -2
- package/dist/components/molecules/SkeletonCircle/index.web.js +1 -1
- package/dist/components/molecules/SkeletonList/index.web.js +1 -1
- package/dist/components/molecules/StatCard.d.ts +8 -8
- package/dist/components/molecules/StatCard.js +2 -2
- package/dist/components/molecules/StatusChip.d.ts +5 -5
- package/dist/components/molecules/StatusChip.js +1 -1
- package/dist/components/molecules/hover-previews/Doc.d.ts +6 -6
- package/dist/components/molecules/hover-previews/Media.d.ts +5 -5
- package/dist/components/molecules/hover-previews/Simple.d.ts +7 -7
- package/dist/components/molecules/hover-previews/Stats.d.ts +6 -6
- package/dist/components/molecules/hover-previews/User.d.ts +7 -7
- package/dist/components/organisms/AcademyLayout.d.ts +7 -7
- package/dist/components/organisms/AcademyLayout.js +4 -4
- package/dist/components/organisms/AppHeader.d.ts +3 -3
- package/dist/components/organisms/AppHeader.js +2 -2
- package/dist/components/organisms/AppLayout.d.ts +6 -6
- package/dist/components/organisms/AppLayout.js +5 -5
- package/dist/components/organisms/AppSidebar.d.ts +3 -3
- package/dist/components/organisms/AppSidebar.js +2 -2
- package/dist/components/organisms/EmptyDataList.js +1 -1
- package/dist/components/organisms/EmptyDataList.types.d.ts +8 -8
- package/dist/components/organisms/EmptySearchResult.d.ts +5 -5
- package/dist/components/organisms/EmptySearchResult.js +3 -3
- package/dist/components/organisms/FAQSection.d.ts +6 -6
- package/dist/components/organisms/FAQSection.js +4 -4
- package/dist/components/organisms/FeatureCarousel.d.ts +6 -6
- package/dist/components/organisms/FeatureCarousel.js +2 -2
- package/dist/components/organisms/FeaturesSection.d.ts +4 -4
- package/dist/components/organisms/FeaturesSection.js +1 -1
- package/dist/components/organisms/Footer.d.ts +7 -7
- package/dist/components/organisms/Footer.js +2 -2
- package/dist/components/organisms/Header.d.ts +5 -5
- package/dist/components/organisms/Header.js +4 -4
- package/dist/components/organisms/HeroResponsive.d.ts +2 -2
- package/dist/components/organisms/HeroSection.d.ts +3 -3
- package/dist/components/organisms/HeroSection.js +1 -1
- package/dist/components/organisms/ListCardPage.d.ts +4 -4
- package/dist/components/organisms/ListCardPage.js +2 -2
- package/dist/components/organisms/ListGridPage.d.ts +4 -4
- package/dist/components/organisms/ListGridPage.js +1 -1
- package/dist/components/organisms/ListPageResponsive.js +1 -1
- package/dist/components/organisms/ListTablePage.d.ts +6 -6
- package/dist/components/organisms/ListTablePage.js +2 -2
- package/dist/components/organisms/MarketingHeader.d.ts +4 -4
- package/dist/components/organisms/MarketingHeader.js +9 -9
- package/dist/components/organisms/MarketingHeaderDesktop.js +3 -3
- package/dist/components/organisms/MarketingHeaderMobile.js +6 -6
- package/dist/components/organisms/MarketingLayout.d.ts +4 -4
- package/dist/components/organisms/MarketingLayout.js +2 -2
- package/dist/components/organisms/PageHeaderResponsive.js +1 -1
- package/dist/components/organisms/PricingCarousel.js +2 -2
- package/dist/components/organisms/PricingSection.d.ts +3 -3
- package/dist/components/organisms/PricingSection.js +1 -1
- package/dist/components/organisms/TestimonialCarousel.d.ts +5 -5
- package/dist/components/organisms/TestimonialCarousel.js +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.web.js +5 -5
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts +7 -7
- package/dist/contracts/dist/client/react/drivers/shadcn.js +7 -0
- package/dist/contracts/dist/client/react/form-render.js +261 -0
- package/dist/contracts/dist/forms.js +78 -0
- package/dist/hooks/useListUrlState.js +7 -7
- package/dist/index.js +2 -1
- package/dist/platform/useColorScheme.js +3 -3
- package/dist/platform/useReducedMotion.js +3 -3
- package/dist/platform/useResponsive.js +4 -4
- package/dist/renderers/form-contract.d.ts +1 -1
- package/dist/renderers/form-contract.js +13 -13
- package/dist/types/navigation.d.ts +10 -10
- package/dist/ui-kit-web/dist/ui/accordion.js +48 -0
- package/dist/ui-kit-web/dist/ui/atoms/FilterSelect/FilterSelect.js +52 -0
- package/dist/ui-kit-web/dist/ui/atoms/Pagination/Pagination.js +156 -0
- package/dist/ui-kit-web/dist/ui/atoms/SearchInput/SearchInput.js +49 -0
- package/dist/ui-kit-web/dist/ui/avatar.js +32 -0
- package/dist/ui-kit-web/dist/ui/badge.js +27 -0
- package/dist/ui-kit-web/dist/ui/breadcrumb.js +59 -0
- package/dist/ui-kit-web/dist/ui/button.js +55 -0
- package/dist/ui-kit-web/dist/ui/card.js +44 -0
- package/dist/ui-kit-web/dist/ui/carousel.js +135 -0
- package/dist/ui-kit-web/dist/ui/checkbox.js +25 -0
- package/dist/ui-kit-web/dist/ui/collapsible.js +27 -0
- package/dist/ui-kit-web/dist/ui/command.js +90 -0
- package/dist/ui-kit-web/dist/ui/dialog.js +84 -0
- package/dist/ui-kit-web/dist/ui/dropdown-menu.js +57 -0
- package/dist/ui-kit-web/dist/ui/empty-state.js +43 -0
- package/dist/ui-kit-web/dist/ui/empty.js +62 -0
- package/dist/ui-kit-web/dist/ui/field.js +78 -0
- package/dist/ui-kit-web/dist/ui/form.js +16 -0
- package/dist/ui-kit-web/dist/ui/hover-card.js +40 -0
- package/dist/ui-kit-web/dist/ui/input.js +17 -0
- package/dist/ui-kit-web/dist/ui/label.js +19 -0
- package/dist/ui-kit-web/dist/ui/marketing/Hero.js +52 -0
- package/dist/ui-kit-web/dist/ui/marketing/PricingTable.js +59 -0
- package/dist/ui-kit-web/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +102 -0
- package/dist/ui-kit-web/dist/ui/molecules/SkeletonList.js +14 -0
- package/dist/ui-kit-web/dist/ui/navigation-menu.js +75 -0
- package/dist/ui-kit-web/dist/ui/organisms/ListPage/ListPage.js +197 -0
- package/dist/ui-kit-web/dist/ui/page-header.js +40 -0
- package/dist/ui-kit-web/dist/ui/pagination.js +65 -0
- package/dist/ui-kit-web/dist/ui/radio-group.js +32 -0
- package/dist/ui-kit-web/dist/ui/select.js +86 -0
- package/dist/ui-kit-web/dist/ui/separator.js +21 -0
- package/dist/ui-kit-web/dist/ui/sheet.js +80 -0
- package/dist/ui-kit-web/dist/ui/sidebar.js +281 -0
- package/dist/ui-kit-web/dist/ui/skeleton.js +14 -0
- package/dist/ui-kit-web/dist/ui/stack.js +158 -0
- package/dist/ui-kit-web/dist/ui/stepper.js +37 -0
- package/dist/ui-kit-web/dist/ui/switch.js +24 -0
- package/dist/ui-kit-web/dist/ui/table.js +57 -0
- package/dist/ui-kit-web/dist/ui/text.js +16 -0
- package/dist/ui-kit-web/dist/ui/textarea.js +16 -0
- package/dist/ui-kit-web/dist/ui/tooltip.js +40 -0
- package/dist/ui-kit-web/dist/ui/typography.js +23 -0
- package/dist/ui-kit-web/dist/ui/use-mobile.js +20 -0
- package/dist/ui-kit-web/dist/ui/utils.js +10 -0
- package/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +13 -0
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from "../../ui-kit-web/dist/ui/utils.js";
|
|
2
|
+
import { Card, CardContent, CardHeader, CardTitle } from "../../ui-kit-web/dist/ui/card.js";
|
|
1
3
|
import "react";
|
|
2
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
4
|
-
import { Card, CardContent, CardHeader, CardTitle } from "@lssm/lib.ui-kit-web/ui/card";
|
|
5
5
|
|
|
6
6
|
//#region src/components/forms/FormCardLayout.tsx
|
|
7
7
|
function FormCardLayout({ title, description, actions, children, className, contentClassName }) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime96 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormDialog.d.ts
|
|
5
5
|
interface FormDialogProps {
|
|
6
6
|
open: boolean;
|
|
7
7
|
onOpenChange: (open: boolean) => void;
|
|
8
|
-
title: React.ReactNode;
|
|
9
|
-
description?: React.ReactNode;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
footer?: React.ReactNode;
|
|
8
|
+
title: React$1.ReactNode;
|
|
9
|
+
description?: React$1.ReactNode;
|
|
10
|
+
children: React$1.ReactNode;
|
|
11
|
+
footer?: React$1.ReactNode;
|
|
12
12
|
maxWidth?: string;
|
|
13
13
|
}
|
|
14
14
|
declare function FormDialog({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "../../ui-kit-web/dist/ui/dialog.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@lssm/lib.ui-kit-web/ui/dialog";
|
|
6
6
|
|
|
7
7
|
//#region src/components/forms/FormDialog.tsx
|
|
8
8
|
function FormDialog({ open, onOpenChange, title, description, children, footer, maxWidth = "sm:max-w-[480px]" }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime98 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormLayout.d.ts
|
|
@@ -6,14 +6,14 @@ declare function FormSection({
|
|
|
6
6
|
children,
|
|
7
7
|
className
|
|
8
8
|
}: {
|
|
9
|
-
children: React.ReactNode;
|
|
9
|
+
children: React$1.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
11
|
}): react_jsx_runtime98.JSX.Element;
|
|
12
12
|
declare function FormRow({
|
|
13
13
|
children,
|
|
14
14
|
className
|
|
15
15
|
}: {
|
|
16
|
-
children: React.ReactNode;
|
|
16
|
+
children: React$1.ReactNode;
|
|
17
17
|
className?: string;
|
|
18
18
|
}): react_jsx_runtime98.JSX.Element;
|
|
19
19
|
declare function FormGrid({
|
|
@@ -21,7 +21,7 @@ declare function FormGrid({
|
|
|
21
21
|
cols,
|
|
22
22
|
className
|
|
23
23
|
}: {
|
|
24
|
-
children: React.ReactNode;
|
|
24
|
+
children: React$1.ReactNode;
|
|
25
25
|
cols?: 1 | 2 | 3 | 4;
|
|
26
26
|
className?: string;
|
|
27
27
|
}): react_jsx_runtime98.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { cn } from "../../ui-kit-web/dist/ui/utils.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
6
6
|
|
|
7
7
|
//#region src/components/forms/FormLayout.tsx
|
|
8
8
|
function FormSection({ children, className }) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormOneByOneLayout.d.ts
|
|
5
5
|
interface OneByOneFieldDef {
|
|
6
6
|
key: string;
|
|
7
|
-
title: React.ReactNode;
|
|
8
|
-
description?: React.ReactNode;
|
|
9
|
-
input: React.ReactNode;
|
|
7
|
+
title: React$1.ReactNode;
|
|
8
|
+
description?: React$1.ReactNode;
|
|
9
|
+
input: React$1.ReactNode;
|
|
10
10
|
validate?: () => boolean;
|
|
11
11
|
}
|
|
12
12
|
interface FormOneByOneLayoutProps {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Button } from "../atoms/Button.js";
|
|
2
|
-
import
|
|
2
|
+
import { cn } from "../../ui-kit-web/dist/ui/utils.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/forms/FormOneByOneLayout.tsx
|
|
7
7
|
function FormOneByOneLayout({ fields, initialKey, onComplete, className }) {
|
|
8
|
-
const indexByKey = React.useMemo(() => Object.fromEntries(fields.map((f, i) => [f.key, i])), [fields]);
|
|
9
|
-
const [idx, setIdx] = React.useState(() => {
|
|
8
|
+
const indexByKey = React$1.useMemo(() => Object.fromEntries(fields.map((f, i) => [f.key, i])), [fields]);
|
|
9
|
+
const [idx, setIdx] = React$1.useState(() => {
|
|
10
10
|
if (initialKey && initialKey in indexByKey) return indexByKey[initialKey] || 0;
|
|
11
11
|
return 0;
|
|
12
12
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/FormStepsLayout.d.ts
|
|
5
5
|
interface StepDef {
|
|
6
6
|
key: string;
|
|
7
|
-
title: React.ReactNode;
|
|
8
|
-
description?: React.ReactNode;
|
|
9
|
-
content: React.ReactNode;
|
|
7
|
+
title: React$1.ReactNode;
|
|
8
|
+
description?: React$1.ReactNode;
|
|
9
|
+
content: React$1.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
interface FormStepsLayoutProps {
|
|
12
12
|
steps: StepDef[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { Separator } from "../../ui-kit-web/dist/ui/separator.js";
|
|
1
2
|
import { Button } from "../atoms/Button.js";
|
|
2
|
-
import
|
|
3
|
+
import { cn } from "../../ui-kit-web/dist/ui/utils.js";
|
|
4
|
+
import * as React$1 from "react";
|
|
3
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
|
-
import { Separator } from "@lssm/lib.ui-kit-web/ui/separator";
|
|
6
6
|
|
|
7
7
|
//#region src/components/forms/FormStepsLayout.tsx
|
|
8
8
|
function FormStepsLayout({ steps, initialStepKey, onFinish, canNext, className }) {
|
|
9
|
-
const indexByKey = React.useMemo(() => Object.fromEntries(steps.map((s, i) => [s.key, i])), [steps]);
|
|
10
|
-
const [idx, setIdx] = React.useState(() => {
|
|
9
|
+
const indexByKey = React$1.useMemo(() => Object.fromEntries(steps.map((s, i) => [s.key, i])), [steps]);
|
|
10
|
+
const [idx, setIdx] = React$1.useState(() => {
|
|
11
11
|
if (initialStepKey && initialStepKey in indexByKey) return indexByKey[initialStepKey] || 0;
|
|
12
12
|
return 0;
|
|
13
13
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { FieldValues } from "react-hook-form";
|
|
2
3
|
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
3
|
-
import { UseFormReturn } from "@lssm/lib.ui-kit-web/ui/form";
|
|
4
4
|
import * as z from "zod";
|
|
5
|
-
import {
|
|
5
|
+
import { UseFormReturn } from "@lssm/lib.ui-kit-web/ui/form";
|
|
6
6
|
|
|
7
7
|
//#region src/components/forms/ZodForm.d.ts
|
|
8
8
|
interface ZodFormProps<TSchema extends z.ZodType<any, FieldValues>, TFieldValues extends FieldValues = z.input<TSchema>, TOutput = z.output<TSchema>> {
|
|
9
9
|
schema: TSchema;
|
|
10
10
|
defaultValues?: Partial<TFieldValues> | Promise<Partial<TFieldValues>>;
|
|
11
11
|
onSubmit: (data: TOutput) => Promise<void> | void;
|
|
12
|
-
children: (f: UseFormReturn<TFieldValues, any, TOutput>) => React.ReactNode;
|
|
12
|
+
children: (f: UseFormReturn<TFieldValues, any, TOutput>) => React$1.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
declare function ZodForm<TSchema extends z.ZodType<any, FieldValues>, TFieldValues extends FieldValues = z.input<TSchema>, TOutput = z.output<TSchema>>({
|
|
15
15
|
schema,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { Form, useForm, zodResolver } from "../../ui-kit-web/dist/ui/form.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Form, useForm, zodResolver } from "@lssm/lib.ui-kit-web/ui/form";
|
|
6
6
|
import "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/components/forms/ZodForm.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/atoms/DefinitionList.d.ts
|
|
@@ -7,8 +7,8 @@ declare function DefinitionList({
|
|
|
7
7
|
className
|
|
8
8
|
}: {
|
|
9
9
|
items: {
|
|
10
|
-
term: React.ReactNode;
|
|
11
|
-
description: React.ReactNode;
|
|
10
|
+
term: React$1.ReactNode;
|
|
11
|
+
description: React$1.ReactNode;
|
|
12
12
|
}[];
|
|
13
13
|
className?: string;
|
|
14
14
|
}): react_jsx_runtime78.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
4
4
|
|
|
5
5
|
//#region src/components/legal/atoms/DefinitionList.tsx
|
|
6
6
|
function DefinitionList({ items, className }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/atoms/KeyValueList.d.ts
|
|
@@ -7,8 +7,8 @@ declare function KeyValueList({
|
|
|
7
7
|
className
|
|
8
8
|
}: {
|
|
9
9
|
items: {
|
|
10
|
-
key: React.ReactNode;
|
|
11
|
-
value: React.ReactNode;
|
|
10
|
+
key: React$1.ReactNode;
|
|
11
|
+
value: React$1.ReactNode;
|
|
12
12
|
}[];
|
|
13
13
|
className?: string;
|
|
14
14
|
}): react_jsx_runtime79.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
4
4
|
|
|
5
5
|
//#region src/components/legal/atoms/KeyValueList.tsx
|
|
6
6
|
function KeyValueList({ items, className }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime81 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types19 from "class-variance-authority/types";
|
|
@@ -7,7 +7,7 @@ import * as class_variance_authority_types19 from "class-variance-authority/type
|
|
|
7
7
|
declare const calloutVariants: (props?: ({
|
|
8
8
|
tone?: "danger" | "info" | "warning" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types19.ClassProp) | undefined) => string;
|
|
10
|
-
type LegalCalloutProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof calloutVariants>;
|
|
10
|
+
type LegalCalloutProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof calloutVariants>;
|
|
11
11
|
declare function LegalCallout({
|
|
12
12
|
tone,
|
|
13
13
|
className,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalCallout.tsx
|
|
7
7
|
const calloutVariants = cva("rounded-md border p-4", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types15 from "class-variance-authority/types";
|
|
@@ -9,7 +9,7 @@ declare const headingVariants: (props?: ({
|
|
|
9
9
|
tone?: "default" | "muted" | "accent" | null | undefined;
|
|
10
10
|
spacing?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types15.ClassProp) | undefined) => string;
|
|
12
|
-
type LegalHeadingProps = React.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof headingVariants> & {
|
|
12
|
+
type LegalHeadingProps = React$1.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof headingVariants> & {
|
|
13
13
|
as?: 'h1' | 'h2' | 'h3' | 'h4';
|
|
14
14
|
};
|
|
15
15
|
declare function LegalHeading({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalHeading.tsx
|
|
7
7
|
const headingVariants = cva("text-foreground tracking-tight", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime80 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types18 from "class-variance-authority/types";
|
|
@@ -8,7 +8,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_types18.ClassProp) | undefined) => string;
|
|
11
|
-
type LegalListProps = React.HTMLAttributes<HTMLUListElement | HTMLOListElement> & VariantProps<typeof listVariants>;
|
|
11
|
+
type LegalListProps = React$1.HTMLAttributes<HTMLUListElement | HTMLOListElement> & VariantProps<typeof listVariants>;
|
|
12
12
|
declare function LegalList({
|
|
13
13
|
type,
|
|
14
14
|
spacing,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalList.tsx
|
|
7
7
|
const listVariants = cva("", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types17 from "class-variance-authority/types";
|
|
@@ -9,7 +9,7 @@ declare const sectionVariants: (props?: ({
|
|
|
9
9
|
border?: "none" | "top" | "bottom" | "both" | null | undefined;
|
|
10
10
|
tone?: "subtle" | "plain" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types17.ClassProp) | undefined) => string;
|
|
12
|
-
type LegalSectionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof sectionVariants>;
|
|
12
|
+
type LegalSectionProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof sectionVariants>;
|
|
13
13
|
declare function LegalSection({
|
|
14
14
|
spacing,
|
|
15
15
|
border,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalSection.tsx
|
|
7
7
|
const sectionVariants = cva("space-y-3", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types16 from "class-variance-authority/types";
|
|
@@ -9,7 +9,7 @@ declare const textVariants: (props?: ({
|
|
|
9
9
|
size?: "base" | "sm" | "lg" | null | undefined;
|
|
10
10
|
spacing?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types16.ClassProp) | undefined) => string;
|
|
12
|
-
type LegalTextProps = React.HTMLAttributes<HTMLParagraphElement> & VariantProps<typeof textVariants> & {
|
|
12
|
+
type LegalTextProps = React$1.HTMLAttributes<HTMLParagraphElement> & VariantProps<typeof textVariants> & {
|
|
13
13
|
as?: 'p' | 'div' | 'span';
|
|
14
14
|
};
|
|
15
15
|
declare function LegalText({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/atoms/LegalText.tsx
|
|
7
7
|
const textVariants = cva("text-base leading-relaxed", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime84 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/molecules/Consent.d.ts
|
|
@@ -11,8 +11,8 @@ declare function ConsentItem({
|
|
|
11
11
|
className
|
|
12
12
|
}: {
|
|
13
13
|
id: string;
|
|
14
|
-
label: React.ReactNode;
|
|
15
|
-
description?: React.ReactNode;
|
|
14
|
+
label: React$1.ReactNode;
|
|
15
|
+
description?: React$1.ReactNode;
|
|
16
16
|
checked: boolean;
|
|
17
17
|
onChange: (checked: boolean) => void;
|
|
18
18
|
className?: string;
|
|
@@ -24,8 +24,8 @@ declare function ConsentList({
|
|
|
24
24
|
}: {
|
|
25
25
|
items: {
|
|
26
26
|
id: string;
|
|
27
|
-
label: React.ReactNode;
|
|
28
|
-
description?: React.ReactNode;
|
|
27
|
+
label: React$1.ReactNode;
|
|
28
|
+
description?: React$1.ReactNode;
|
|
29
29
|
checked: boolean;
|
|
30
30
|
}[];
|
|
31
31
|
onChange: (id: string, checked: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Checkbox } from "../../../ui-kit-web/dist/ui/checkbox.js";
|
|
2
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
3
|
import "react";
|
|
2
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Checkbox } from "@lssm/lib.ui-kit-web/ui/checkbox";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/molecules/Consent.tsx
|
|
7
7
|
function ConsentItem({ id, label, description, checked, onChange, className }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Label } from "../../../ui-kit-web/dist/ui/label.js";
|
|
1
2
|
import { Input } from "../../atoms/Input.js";
|
|
2
3
|
import { Textarea } from "../../atoms/Textarea.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Label } from "@lssm/lib.ui-kit-web/ui/label";
|
|
6
6
|
|
|
7
7
|
//#region src/components/legal/molecules/ContactFields.tsx
|
|
8
8
|
function ContactFields({ value, onChange, disabled }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
4
4
|
|
|
5
5
|
//#region src/components/legal/molecules/LegalMeta.tsx
|
|
6
6
|
function LegalMeta({ lastUpdated, version, className }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types20 from "class-variance-authority/types";
|
|
@@ -6,7 +6,7 @@ import * as class_variance_authority_types20 from "class-variance-authority/type
|
|
|
6
6
|
//#region src/components/legal/molecules/LegalTOC.d.ts
|
|
7
7
|
interface TocItem {
|
|
8
8
|
href: string;
|
|
9
|
-
label: React.ReactNode;
|
|
9
|
+
label: React$1.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
declare const tocVariants: (props?: ({
|
|
12
12
|
variant?: "sidebar" | "inline" | null | undefined;
|
|
@@ -16,7 +16,7 @@ type LegalTOCProps = {
|
|
|
16
16
|
items: TocItem[];
|
|
17
17
|
activeHref?: string;
|
|
18
18
|
onNavigate?: (href: string) => void;
|
|
19
|
-
} & VariantProps<typeof tocVariants> & React.HTMLAttributes<HTMLDivElement>;
|
|
19
|
+
} & VariantProps<typeof tocVariants> & React$1.HTMLAttributes<HTMLDivElement>;
|
|
20
20
|
declare function LegalTOC({
|
|
21
21
|
items,
|
|
22
22
|
activeHref,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/molecules/LegalTOC.tsx
|
|
7
7
|
const tocVariants = cva("text-base", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime89 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/organisms/ContactForm.d.ts
|
|
@@ -9,7 +9,7 @@ declare function ContactForm({
|
|
|
9
9
|
onSubmit
|
|
10
10
|
}: {
|
|
11
11
|
labels?: {
|
|
12
|
-
submit: React.ReactNode;
|
|
12
|
+
submit: React$1.ReactNode;
|
|
13
13
|
};
|
|
14
14
|
initialValue?: {
|
|
15
15
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "../../atoms/Button.js";
|
|
2
2
|
import { ContactFields } from "../molecules/ContactFields.js";
|
|
3
|
-
import * as React from "react";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/organisms/ContactForm.tsx
|
|
@@ -10,8 +10,8 @@ function ContactForm({ labels = { submit: "Envoyer" }, initialValue = {
|
|
|
10
10
|
subject: "",
|
|
11
11
|
message: ""
|
|
12
12
|
}, disabled, onSubmit }) {
|
|
13
|
-
const [value, setValue] = React.useState(initialValue);
|
|
14
|
-
const [loading, setLoading] = React.useState(false);
|
|
13
|
+
const [value, setValue] = React$1.useState(initialValue);
|
|
14
|
+
const [loading, setLoading] = React$1.useState(false);
|
|
15
15
|
const handleSubmit = async (e) => {
|
|
16
16
|
e.preventDefault();
|
|
17
17
|
if (!onSubmit) return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime90 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/organisms/GDPRDataRequest.d.ts
|
|
@@ -10,8 +10,8 @@ declare function GDPRDataRequest({
|
|
|
10
10
|
onExport?: () => Promise<void> | void;
|
|
11
11
|
onDelete?: () => Promise<void> | void;
|
|
12
12
|
labels?: {
|
|
13
|
-
export: React.ReactNode;
|
|
14
|
-
delete: React.ReactNode;
|
|
13
|
+
export: React$1.ReactNode;
|
|
14
|
+
delete: React$1.ReactNode;
|
|
15
15
|
};
|
|
16
16
|
}): react_jsx_runtime90.JSX.Element;
|
|
17
17
|
//#endregion
|
|
@@ -2,7 +2,7 @@ import { Button } from "../../atoms/Button.js";
|
|
|
2
2
|
import { LegalHeading } from "../atoms/LegalHeading.js";
|
|
3
3
|
import { LegalText } from "../atoms/LegalText.js";
|
|
4
4
|
import { LegalSection } from "../atoms/LegalSection.js";
|
|
5
|
-
import * as React from "react";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/legal/organisms/GDPRDataRequest.tsx
|
|
@@ -10,7 +10,7 @@ function GDPRDataRequest({ onExport, onDelete, labels = {
|
|
|
10
10
|
export: "Demander une copie",
|
|
11
11
|
delete: "Demander la suppression"
|
|
12
12
|
} }) {
|
|
13
|
-
const [loading, setLoading] = React.useState(null);
|
|
13
|
+
const [loading, setLoading] = React$1.useState(null);
|
|
14
14
|
const handle = async (kind) => {
|
|
15
15
|
const fn = kind === "export" ? onExport : onDelete;
|
|
16
16
|
if (!fn) return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/organisms/GDPRRights.d.ts
|
|
@@ -6,8 +6,8 @@ declare function GDPRRights({
|
|
|
6
6
|
title,
|
|
7
7
|
rights
|
|
8
8
|
}: {
|
|
9
|
-
title?: React.ReactNode;
|
|
10
|
-
rights?: React.ReactNode[];
|
|
9
|
+
title?: React$1.ReactNode;
|
|
10
|
+
rights?: React$1.ReactNode[];
|
|
11
11
|
}): react_jsx_runtime88.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { GDPRRights };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TocItem } from "../molecules/LegalTOC.js";
|
|
2
|
-
import * as React from "react";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
3
|
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/legal/organisms/LegalPageLayout.d.ts
|
|
@@ -10,13 +10,13 @@ declare function LegalPageLayout({
|
|
|
10
10
|
children,
|
|
11
11
|
className
|
|
12
12
|
}: {
|
|
13
|
-
title: React.ReactNode;
|
|
13
|
+
title: React$1.ReactNode;
|
|
14
14
|
meta?: {
|
|
15
15
|
lastUpdated?: string | Date;
|
|
16
16
|
version?: string;
|
|
17
17
|
};
|
|
18
18
|
toc?: TocItem[];
|
|
19
|
-
children: React.ReactNode;
|
|
19
|
+
children: React$1.ReactNode;
|
|
20
20
|
className?: string;
|
|
21
21
|
}): react_jsx_runtime87.JSX.Element;
|
|
22
22
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import { LegalHeading } from "../atoms/LegalHeading.js";
|
|
2
3
|
import { LegalTOC } from "../molecules/LegalTOC.js";
|
|
3
4
|
import { LegalMeta } from "../molecules/LegalMeta.js";
|
|
4
5
|
import "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
7
7
|
|
|
8
8
|
//#region src/components/legal/organisms/LegalPageLayout.tsx
|
|
9
9
|
function LegalPageLayout({ title, meta, toc, children, className }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime95 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/legal/templates/ContactTemplate.d.ts
|
|
@@ -7,7 +7,7 @@ declare function ContactTemplate({
|
|
|
7
7
|
meta,
|
|
8
8
|
onSubmit
|
|
9
9
|
}: {
|
|
10
|
-
title?: React.ReactNode;
|
|
10
|
+
title?: React$1.ReactNode;
|
|
11
11
|
meta?: {
|
|
12
12
|
lastUpdated?: string | Date;
|
|
13
13
|
version?: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Button } from "../../atoms/Button.js";
|
|
2
2
|
import { ContactFields } from "../molecules/ContactFields.js";
|
|
3
3
|
import { LegalPageLayout } from "../organisms/LegalPageLayout.js";
|
|
4
|
-
import * as React from "react";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/legal/templates/ContactTemplate.tsx
|
|
8
8
|
function ContactTemplate({ title = "Contact", meta, onSubmit }) {
|
|
9
|
-
const [value, setValue] = React.useState({
|
|
9
|
+
const [value, setValue] = React$1.useState({
|
|
10
10
|
name: "",
|
|
11
11
|
email: "",
|
|
12
12
|
subject: "",
|
|
13
13
|
message: ""
|
|
14
14
|
});
|
|
15
|
-
const [loading, setLoading] = React.useState(false);
|
|
15
|
+
const [loading, setLoading] = React$1.useState(false);
|
|
16
16
|
const handleSubmit = async (e) => {
|
|
17
17
|
e.preventDefault();
|
|
18
18
|
if (!onSubmit) return;
|